@linkdlab/funcnodes_react_flow 0.4.0 → 0.4.4
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/browser_index.d.ts +8 -0
- package/dist/frontend/assets/fontawsome.d.ts +21 -0
- package/dist/frontend/assets/mui.d.ts +8 -0
- package/dist/frontend/datarenderer/data_renderer_overlay.d.ts +3 -0
- package/dist/frontend/datarenderer/default_data_overlay_views.d.ts +6 -0
- package/dist/frontend/datarenderer/default_data_preview_renderer.d.ts +5 -0
- package/dist/frontend/datarenderer/default_data_view_renderer.d.ts +13 -0
- package/dist/frontend/datarenderer/default_handle_previews.d.ts +4 -0
- package/dist/frontend/datarenderer/default_inline_renderer.d.ts +5 -0
- package/dist/frontend/datarenderer/default_input_renderer.d.ts +17 -0
- package/dist/frontend/datarenderer/default_output_renderer.d.ts +9 -0
- package/dist/frontend/datarenderer/images.d.ts +19 -0
- package/dist/frontend/datarenderer/rendermappings.d.ts +204 -0
- package/dist/frontend/dialog.d.ts +20 -0
- package/dist/frontend/edge.d.ts +4 -0
- package/dist/frontend/funcnodesreactflow/index.d.ts +8 -0
- package/dist/frontend/funcnodesreactflow/react_flow_layer.d.ts +7 -0
- package/dist/frontend/header/index.d.ts +4 -0
- package/dist/frontend/index.d.ts +0 -0
- package/dist/frontend/layout/components.d.ts +36 -0
- package/dist/frontend/layout/fullscreenelement.d.ts +17 -0
- package/dist/frontend/layout/smoothexpand.d.ts +22 -0
- package/dist/frontend/lib.d.ts +10 -0
- package/dist/frontend/node/body_data_renderer.d.ts +3 -0
- package/dist/frontend/node/index.d.ts +4 -0
- package/dist/frontend/node/io/handle_renderer.d.ts +3 -0
- package/dist/frontend/node/io/index.d.ts +3 -0
- package/dist/frontend/node/io/io.d.ts +15 -0
- package/dist/frontend/node/io/iodataoverlay.d.ts +10 -0
- package/dist/frontend/node/io/nodeinput.d.ts +10 -0
- package/dist/frontend/node/io/nodeoutput.d.ts +6 -0
- package/dist/frontend/node/node.d.ts +25 -0
- package/dist/frontend/node/nodesettings.d.ts +3 -0
- package/dist/frontend/utils/colorpicker.d.ts +22 -0
- package/dist/frontend/utils/jsondata.d.ts +5 -0
- package/dist/frontend/utils/progressbar.d.ts +46 -0
- package/dist/frontend/utils/select.d.ts +17 -0
- package/dist/frontend/utils/table.d.ts +10 -0
- package/dist/funcnodes/datastructures.d.ts +51 -0
- package/dist/funcnodes/funcnodesworker.d.ts +147 -0
- package/dist/funcnodes/index.d.ts +4 -0
- package/dist/funcnodes/websocketworker.d.ts +45 -0
- package/dist/funcnodes/workermanager.d.ts +34 -0
- package/dist/funcnodes_react_flow.css +1 -0
- package/dist/index.cjs.js +865 -0
- package/dist/index.d.ts +16 -1222
- package/dist/index.es.js +40601 -0
- package/dist/index.umd.js +865 -0
- package/dist/plugin/helper.d.ts +2 -0
- package/dist/plugin/index.d.ts +7 -0
- package/dist/plugin/v0/index.d.ts +2 -0
- package/dist/plugin/v1/index.d.ts +2 -0
- package/dist/plugin/v1/upgrader.d.ts +34 -0
- package/dist/states/edge.d.ts +7 -0
- package/dist/states/edge.t.d.ts +16 -0
- package/dist/states/fnrfzst.d.ts +9 -0
- package/dist/states/fnrfzst.t.d.ts +182 -0
- package/dist/states/index.d.ts +7 -0
- package/dist/states/lib.d.ts +3 -0
- package/dist/states/lib.t.d.ts +45 -0
- package/dist/states/node/newnode.d.ts +4 -0
- package/dist/states/node/update_funcs.d.ts +9 -0
- package/dist/states/node/update_io.d.ts +3 -0
- package/dist/states/node/update_node.d.ts +6 -0
- package/dist/states/nodespace.d.ts +3 -0
- package/dist/states/nodespace.t.d.ts +16 -0
- package/dist/states/reactflow.d.ts +8 -0
- package/dist/states/reactflow.t.d.ts +11 -0
- package/dist/types/versioned/v0/index.d.ts +5 -0
- package/dist/types/versioned/v0/io.t.d.ts +29 -0
- package/dist/types/versioned/v0/node.t.d.ts +75 -0
- package/dist/types/versioned/v0/plugins.t.d.ts +37 -0
- package/dist/types/versioned/v0/rendering.t.d.ts +42 -0
- package/dist/types/versioned/v0/rendermappings.t.d.ts +27 -0
- package/dist/types/versioned/v1/index.d.ts +5 -0
- package/dist/types/versioned/v1/io.t.d.ts +51 -0
- package/dist/types/versioned/v1/node.t.d.ts +64 -0
- package/dist/types/versioned/v1/plugins.t.d.ts +39 -0
- package/dist/types/versioned/v1/rendering.t.d.ts +1 -0
- package/dist/types/versioned/v1/rendermappings.t.d.ts +53 -0
- package/dist/types/versioned/versions.t.d.ts +3 -0
- package/dist/utils/autolayout/force.d.ts +2 -0
- package/dist/utils/autolayout/index.d.ts +2 -0
- package/dist/utils/autolayout/txt.d.ts +15 -0
- package/dist/utils/data.d.ts +12 -0
- package/dist/utils/debugger.d.ts +5 -0
- package/dist/utils/helperfunctions.d.ts +16 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/logger.d.ts +26 -0
- package/dist/utils/objects.d.ts +142 -0
- package/package.json +38 -68
- package/dist/esm/index.esm.mjs +0 -157
- package/dist/esm/index.esm.mjs.map +0 -1
- package/dist/style.css +0 -1
- package/dist/umd/index.umd.js +0 -157
- package/dist/umd/index.umd.js.map +0 -1
|
@@ -0,0 +1,865 @@
|
|
|
1
|
+
(function(Le,T){typeof exports=="object"&&typeof module<"u"?T(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],T):(Le=typeof globalThis<"u"?globalThis:Le||self,T(Le.funcnodes_react_flow={},Le.React,Le.ReactDOM))})(this,function(Le,T,Kn){"use strict";var fJ=Object.defineProperty;var dJ=(Le,T,Kn)=>T in Le?fJ(Le,T,{enumerable:!0,configurable:!0,writable:!0,value:Kn}):Le[T]=Kn;var Is=(Le,T,Kn)=>dJ(Le,typeof T!="symbol"?T+"":T,Kn);function yh(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const k=yh(T),ku=yh(Kn);function ks(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var As={exports:{}},ni={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var bh;function IE(){if(bh)return ni;bh=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,i){var s=null;if(i!==void 0&&(s=""+i),o.key!==void 0&&(s=""+o.key),"key"in o){i={};for(var a in o)a!=="key"&&(i[a]=o[a])}else i=o;return o=i.ref,{$$typeof:e,type:r,key:s,ref:o!==void 0?o:null,props:i}}return ni.Fragment=t,ni.jsx=n,ni.jsxs=n,ni}var ri={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var vh;function kE(){return vh||(vh=1,process.env.NODE_ENV!=="production"&&function(){function e(_){if(_==null)return null;if(typeof _=="function")return _.$$typeof===w?null:_.displayName||_.name||null;if(typeof _=="string")return _;switch(_){case h:return"Fragment";case m:return"Profiler";case y:return"StrictMode";case S:return"Suspense";case E:return"SuspenseList";case M:return"Activity"}if(typeof _=="object")switch(typeof _.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),_.$$typeof){case g:return"Portal";case v:return(_.displayName||"Context")+".Provider";case x:return(_._context.displayName||"Context")+".Consumer";case C:var G=_.render;return _=_.displayName,_||(_=G.displayName||G.name||"",_=_!==""?"ForwardRef("+_+")":"ForwardRef"),_;case I:return G=_.displayName||null,G!==null?G:e(_.type)||"Memo";case O:G=_._payload,_=_._init;try{return e(_(G))}catch{}}return null}function t(_){return""+_}function n(_){try{t(_);var G=!1}catch{G=!0}if(G){G=console;var $=G.error,P=typeof Symbol=="function"&&Symbol.toStringTag&&_[Symbol.toStringTag]||_.constructor.name||"Object";return $.call(G,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",P),t(_)}}function r(_){if(_===h)return"<>";if(typeof _=="object"&&_!==null&&_.$$typeof===O)return"<...>";try{var G=e(_);return G?"<"+G+">":"<...>"}catch{return"<...>"}}function o(){var _=N.A;return _===null?null:_.getOwner()}function i(){return Error("react-stack-top-frame")}function s(_){if(R.call(_,"key")){var G=Object.getOwnPropertyDescriptor(_,"key").get;if(G&&G.isReactWarning)return!1}return _.key!==void 0}function a(_,G){function $(){j||(j=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",G))}$.isReactWarning=!0,Object.defineProperty(_,"key",{get:$,configurable:!0})}function l(){var _=e(this.type);return D[_]||(D[_]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),_=this.props.ref,_!==void 0?_:null}function u(_,G,$,P,H,J,W,X){return $=J.ref,_={$$typeof:p,type:_,key:G,props:J,_owner:H},($!==void 0?$:null)!==null?Object.defineProperty(_,"ref",{enumerable:!1,get:l}):Object.defineProperty(_,"ref",{enumerable:!1,value:null}),_._store={},Object.defineProperty(_._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(_,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(_,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:W}),Object.defineProperty(_,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.freeze&&(Object.freeze(_.props),Object.freeze(_)),_}function c(_,G,$,P,H,J,W,X){var U=G.children;if(U!==void 0)if(P)if(L(U)){for(P=0;P<U.length;P++)f(U[P]);Object.freeze&&Object.freeze(U)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else f(U);if(R.call(G,"key")){U=e(_);var Q=Object.keys(G).filter(function(oe){return oe!=="key"});P=0<Q.length?"{key: someKey, "+Q.join(": ..., ")+": ...}":"{key: someKey}",F[U+P]||(Q=0<Q.length?"{"+Q.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
|
+
let props = %s;
|
|
19
|
+
<%s {...props} />
|
|
20
|
+
React keys must be passed directly to JSX without using spread:
|
|
21
|
+
let props = %s;
|
|
22
|
+
<%s key={someKey} {...props} />`,P,U,Q,U),F[U+P]=!0)}if(U=null,$!==void 0&&(n($),U=""+$),s(G)&&(n(G.key),U=""+G.key),"key"in G){$={};for(var ne in G)ne!=="key"&&($[ne]=G[ne])}else $=G;return U&&a($,typeof _=="function"?_.displayName||_.name||"Unknown":_),u(_,U,J,H,o(),$,W,X)}function f(_){typeof _=="object"&&_!==null&&_.$$typeof===p&&_._store&&(_._store.validated=1)}var d=T,p=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),v=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),w=Symbol.for("react.client.reference"),N=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,R=Object.prototype.hasOwnProperty,L=Array.isArray,A=console.createTask?console.createTask:function(){return null};d={"react-stack-bottom-frame":function(_){return _()}};var j,D={},z=d["react-stack-bottom-frame"].bind(d,i)(),V=A(r(i)),F={};ri.Fragment=h,ri.jsx=function(_,G,$,P,H){var J=1e4>N.recentlyCreatedOwnerStacks++;return c(_,G,$,!1,P,H,J?Error("react-stack-top-frame"):z,J?A(r(_)):V)},ri.jsxs=function(_,G,$,P,H){var J=1e4>N.recentlyCreatedOwnerStacks++;return c(_,G,$,!0,P,H,J?Error("react-stack-top-frame"):z,J?A(r(_)):V)}}()),ri}var xh;function AE(){return xh||(xh=1,process.env.NODE_ENV==="production"?As.exports=IE():As.exports=kE()),As.exports}var b=AE();const TE={},wh=e=>{let t;const n=new Set,r=(c,f)=>{const d=typeof c=="function"?c(t):c;if(!Object.is(d,t)){const p=t;t=f??(typeof d!="object"||d===null)?d:Object.assign({},t,d),n.forEach(g=>g(t,p))}},o=()=>t,l={setState:r,getState:o,getInitialState:()=>u,subscribe:c=>(n.add(c),()=>n.delete(c)),destroy:()=>{(TE?"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()}},u=t=e(r,o,l);return l},Ch=e=>e?wh(e):wh;var Ts={exports:{}},Au={},Ns={exports:{}},Tu={};/**
|
|
23
|
+
* @license React
|
|
24
|
+
* use-sync-external-store-shim.production.js
|
|
25
|
+
*
|
|
26
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
27
|
+
*
|
|
28
|
+
* This source code is licensed under the MIT license found in the
|
|
29
|
+
* LICENSE file in the root directory of this source tree.
|
|
30
|
+
*/var _h;function NE(){if(_h)return Tu;_h=1;var e=T;function t(f,d){return f===d&&(f!==0||1/f===1/d)||f!==f&&d!==d}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,s=e.useDebugValue;function a(f,d){var p=d(),g=r({inst:{value:p,getSnapshot:d}}),h=g[0].inst,y=g[1];return i(function(){h.value=p,h.getSnapshot=d,l(h)&&y({inst:h})},[f,p,d]),o(function(){return l(h)&&y({inst:h}),f(function(){l(h)&&y({inst:h})})},[f]),s(p),p}function l(f){var d=f.getSnapshot;f=f.value;try{var p=d();return!n(f,p)}catch{return!0}}function u(f,d){return d()}var c=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:a;return Tu.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:c,Tu}var Nu={};/**
|
|
31
|
+
* @license React
|
|
32
|
+
* use-sync-external-store-shim.development.js
|
|
33
|
+
*
|
|
34
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
35
|
+
*
|
|
36
|
+
* This source code is licensed under the MIT license found in the
|
|
37
|
+
* LICENSE file in the root directory of this source tree.
|
|
38
|
+
*/var Sh;function PE(){return Sh||(Sh=1,process.env.NODE_ENV!=="production"&&function(){function e(p,g){return p===g&&(p!==0||1/p===1/g)||p!==p&&g!==g}function t(p,g){c||o.startTransition===void 0||(c=!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 h=g();if(!f){var y=g();i(h,y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}y=s({inst:{value:h,getSnapshot:g}});var m=y[0].inst,x=y[1];return l(function(){m.value=h,m.getSnapshot=g,n(m)&&x({inst:m})},[p,h,g]),a(function(){return n(m)&&x({inst:m}),p(function(){n(m)&&x({inst:m})})},[p]),u(h),h}function n(p){var g=p.getSnapshot;p=p.value;try{var h=g();return!i(p,h)}catch{return!0}}function r(p,g){return g()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=T,i=typeof Object.is=="function"?Object.is:e,s=o.useState,a=o.useEffect,l=o.useLayoutEffect,u=o.useDebugValue,c=!1,f=!1,d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;Nu.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:d,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Nu}var Eh;function Ih(){return Eh||(Eh=1,process.env.NODE_ENV==="production"?Ns.exports=NE():Ns.exports=PE()),Ns.exports}/**
|
|
39
|
+
* @license React
|
|
40
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
41
|
+
*
|
|
42
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
43
|
+
*
|
|
44
|
+
* This source code is licensed under the MIT license found in the
|
|
45
|
+
* LICENSE file in the root directory of this source tree.
|
|
46
|
+
*/var kh;function OE(){if(kh)return Au;kh=1;var e=T,t=Ih();function n(u,c){return u===c&&(u!==0||1/u===1/c)||u!==u&&c!==c}var r=typeof Object.is=="function"?Object.is:n,o=t.useSyncExternalStore,i=e.useRef,s=e.useEffect,a=e.useMemo,l=e.useDebugValue;return Au.useSyncExternalStoreWithSelector=function(u,c,f,d,p){var g=i(null);if(g.current===null){var h={hasValue:!1,value:null};g.current=h}else h=g.current;g=a(function(){function m(E){if(!x){if(x=!0,v=E,E=d(E),p!==void 0&&h.hasValue){var I=h.value;if(p(I,E))return C=I}return C=E}if(I=C,r(v,E))return I;var O=d(E);return p!==void 0&&p(I,O)?(v=E,I):(v=E,C=O)}var x=!1,v,C,S=f===void 0?null:f;return[function(){return m(c())},S===null?void 0:function(){return m(S())}]},[c,f,d,p]);var y=o(u,g[0],g[1]);return s(function(){h.hasValue=!0,h.value=y},[y]),l(y),y},Au}var Pu={};/**
|
|
47
|
+
* @license React
|
|
48
|
+
* use-sync-external-store-shim/with-selector.development.js
|
|
49
|
+
*
|
|
50
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
51
|
+
*
|
|
52
|
+
* This source code is licensed under the MIT license found in the
|
|
53
|
+
* LICENSE file in the root directory of this source tree.
|
|
54
|
+
*/var Ah;function RE(){return Ah||(Ah=1,process.env.NODE_ENV!=="production"&&function(){function e(u,c){return u===c&&(u!==0||1/u===1/c)||u!==u&&c!==c}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=T,n=Ih(),r=typeof Object.is=="function"?Object.is:e,o=n.useSyncExternalStore,i=t.useRef,s=t.useEffect,a=t.useMemo,l=t.useDebugValue;Pu.useSyncExternalStoreWithSelector=function(u,c,f,d,p){var g=i(null);if(g.current===null){var h={hasValue:!1,value:null};g.current=h}else h=g.current;g=a(function(){function m(E){if(!x){if(x=!0,v=E,E=d(E),p!==void 0&&h.hasValue){var I=h.value;if(p(I,E))return C=I}return C=E}if(I=C,r(v,E))return I;var O=d(E);return p!==void 0&&p(I,O)?(v=E,I):(v=E,C=O)}var x=!1,v,C,S=f===void 0?null:f;return[function(){return m(c())},S===null?void 0:function(){return m(S())}]},[c,f,d,p]);var y=o(u,g[0],g[1]);return s(function(){h.hasValue=!0,h.value=y},[y]),l(y),y},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Pu}var Th;function ME(){return Th||(Th=1,process.env.NODE_ENV==="production"?Ts.exports=OE():Ts.exports=RE()),Ts.exports}var DE=ME();const Nh=ks(DE),Ph={},{useDebugValue:FE}=T,{useSyncExternalStoreWithSelector:jE}=Nh;let Oh=!1;const LE=e=>e;function BE(e,t=LE,n){(Ph?"production":void 0)!=="production"&&n&&!Oh&&(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"),Oh=!0);const r=jE(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return FE(r),r}const Rh=e=>{(Ph?"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"?Ch(e):e,n=(r,o)=>BE(t,r,o);return Object.assign(n,t),n},dt=e=>e?Rh(e):Rh,zE=()=>({libstate:dt((e,t)=>({lib:{shelves:[]},external_worker:[],set:n=>e(r=>({...r,...n})),get_lib:()=>t().lib,get_external_worker:()=>t().external_worker}))}),VE=({})=>{const e=new Map;return{nodesstates:e,get_node:(t,n=!0)=>{const r=e.get(t);if(!r&&n){const o=e.keys();throw new Error(`Node ${t} not found, available nodes: ${Array.from(o)}`)}return r}}};function Qn(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ou(e,t){if(e===t)return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null||e.constructor!==t.constructor)return!1;if(e.constructor===Object||e.constructor===Array){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n)if(!r.includes(o)||!Ou(e[o],t[o]))return!1}return e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!0}const Wt=(e,t)=>{let n=!1;if(!Qn(e))throw new Error("Target must be a plain object not"+typeof e);if(!Qn(t))throw new Error("Source must be a plain object not"+typeof t);const r={...e};return Object.keys(t).forEach(o=>{const i=t[o],s=e[o];if(Qn(i)&&Qn(s)){const{new_obj:a,change:l}=Wt(s,i);l&&(n=!0,r[o]=a)}else Ou(s,i)||(n=!0,r[o]=i)}),{new_obj:r,change:n}},oi=(e,t)=>{let n=!1;if(!Qn(e))throw new Error("Target must be a plain object");if(!Qn(t))throw new Error("Source must be a plain object");const r={...e};return Object.keys(t).forEach(o=>{const i=t[o],s=e[o];if(!(s===void 0&&i===void 0)){if(s===void 0){n=!0,r[o]=i;return}if(Qn(i)&&Qn(s)){const{new_obj:a,change:l}=oi(s,i);l&&(n=!0,r[o]=a)}}}),{new_obj:r,change:n}},ln=(e,t)=>t===void 0?[e,!1]:[t,e!==t];function Mh(e,t){throw new Error("Unhandled case: "+e+" with: "+JSON.stringify(t))}const Dh=e=>{e.io===void 0&&(e.io={});let t=e.io,n=e.io_order;if(n===void 0)if(Array.isArray(t)){n=t.map(o=>o.id);const r={};for(const o of t)r[o.id]=o;t=r}else n=Object.keys(e.io);else if(Array.isArray(t)){const r={};for(const o of t)r[o.id]=o,n.includes(o.id)||n.push(o.id);t=r}else for(const r in t)n.includes(r)||n.push(r);return{...e,io_order:n,io:t}},GE=(e,t)=>{const n=e.getState(),r={},o=Dh(t),i=Object.keys(o);for(const s of i)switch(s){case"id":{const[a,l]=ln(n[s],o[s]);l&&(r[s]=a);break}case"node_id":{const[a,l]=ln(n[s],o[s]);l&&(r[s]=a);break}case"node_name":{const[a,l]=ln(n[s],o[s]);l&&(r[s]=a);break}case"name":{const[a,l]=ln(n[s],o[s]);l&&(r[s]=a);break}case"in_trigger":{n[s].setState(!!o[s]);break}case"error":{o[s]!==n[s]&&(r[s]=o[s]);break}case"render_options":{const[a,l]=((u,c)=>{if(c===void 0)return[u,!1];if(u===void 0)return[c,c!==void 0];const{new_obj:f,change:d}=Wt(u,c);return[f,d]})(n[s],o[s]);l&&(r[s]=a);break}case"io_order":{const[a,l]=((u,c)=>c===void 0?[u,!1]:[c,!Ou(u,c)])(n[s],o[s]);l&&(r[s]=a);break}case"io":{const a=n[s],l=o[s];if(l===void 0||a===void 0)break;for(const u in l){if(a[u]===void 0){console.error("io key not found in oldvalue:",u,"allowed:",a,"for update:",o);continue}a[u].update(l[u])}break}case"progress":{const[a,l]=((u,c)=>{if(c===void 0)return[u,!1];if(u===void 0)return[c,c!==void 0];const{new_obj:f,change:d}=Wt(u,c);return[f,d]})(n[s].getState(),o[s]);l&&n[s].setState(a);break}case"description":{r[s]=o[s];break}case"properties":{const[a,l]=((u,c)=>{if(c===void 0)return[u,!1];if(u===void 0)return[c,c!==void 0];const{new_obj:f,change:d}=Wt(u,c);return[f,d]})(n[s],o[s]);l&&(r[s]=a);break}case"status":{const[a,l]=((u,c)=>{if(c===void 0)return[u,!1];if(u===void 0)return[c,c!==void 0];const{new_obj:f,change:d}=Wt(u,c);return[f,d]})(n[s],o[s]);l&&(r[s]=a);break}default:try{Mh(s,o[s])}catch(a){console.error(a)}}Object.keys(r).length>0&&e.setState(r)},Fh=(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)},$E=(e,t)=>{const n=e.getState(),r={},o={},i=Object.keys(t);for(const s of i)switch(s){case"name":{const[a,l]=ln(n[s],t[s]);l&&(r[s]=a);break}case"id":{const[a,l]=ln(n[s],t[s]);l&&(r[s]=a);break}case"connected":{const[a,l]=ln(n[s],t[s]);l&&(r[s]=a);break}case"does_trigger":{const[a,l]=ln(n[s],t[s]);l&&(r[s]=a);break}case"hidden":{const[a,l]=ln(n[s],t[s]);l&&(r[s]=a);break}case"full_id":{const[a,l]=ln(n[s],t[s]);l&&(r[s]=a);break}case"is_input":break;case"node":break;case"type":break;case"value":{o.preview=t[s];break}case"fullvalue":{o.full=t[s];break}case"render_options":{const[a,l]=((u,c)=>{if(c===void 0)return[u,!1];if(u===void 0)return[c,c!==void 0];const{new_obj:f,change:d}=Wt(u,c);return[f,d]})(n[s],t[s]);l&&(r[s]=a);break}case"value_options":{const[a,l]=((u,c)=>{if(c===void 0)return[u,!1];if(u===void 0)return[c,c!==void 0];const{new_obj:f,change:d}=Wt(u,c);return[f,d]})(n[s],t[s]);l&&(r[s]=a);break}case"valuepreview_type":{r[s]=t[s];break}case"emit_value_set":{r[s]=t[s];break}case"default":{r[s]=t[s];break}case"required":{r[s]=t[s];break}default:try{Mh(s,t[s])}catch(a){console.error(a)}}Object.keys(o).length>0&&e.updateValueStore(o),Object.keys(r).length>0&&e.setState(r)};class Tn{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 HE extends Tn{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 Je=e=>e.buffer?e.buffer:e,WE={x:(e,t)=>null,c:(e,t)=>new DataView(Je(e)).getInt8(0),B:(e,t)=>new DataView(Je(e)).getUint8(0),"?":(e,t)=>new DataView(Je(e)).getInt8(0)===1,h:(e,t)=>new DataView(Je(e)).getInt16(0,t),H:(e,t)=>new DataView(Je(e)).getUint16(0,t),i:(e,t)=>new DataView(Je(e)).getInt32(0,t),I:(e,t)=>new DataView(Je(e)).getUint32(0,t),l:(e,t)=>new DataView(Je(e)).getInt32(0,t),L:(e,t)=>new DataView(Je(e)).getUint32(0,t),q:(e,t)=>Number(new DataView(Je(e)).getBigInt64(0,t)),Q:(e,t)=>Number(new DataView(Je(e)).getBigUint64(0,t)),n:(e,t)=>Number(new DataView(Je(e)).getBigInt64(0,t)),N:(e,t)=>Number(new DataView(Je(e)).getBigUint64(0,t)),f:(e,t)=>new DataView(Je(e)).getFloat32(0,t),d:(e,t)=>new DataView(Je(e)).getFloat64(0,t),s:(e,t)=>new TextDecoder().decode(Je(e)),p:(e,t)=>new TextDecoder().decode(Je(e)),P:(e,t)=>Number(new DataView(Je(e)).getBigUint64(0,t))};class XE extends Tn{constructor({data:t,mime:n}){super({data: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=WE[n](this.data,t),this._value}get value(){return this._value}toString(){return this._value===null?"null":this._value.toString()}}class Sr extends Tn{constructor({data:t,mime:n}){super({data:t,mime:n}),t.length===0?this._json=void 0:(this._json=JSON.parse(new TextDecoder().decode(Je(t))),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 Sr({data:n,mime:"application/json"})}toString(){return JSON.stringify(this._json)}}class YE extends Tn{constructor({data:t,mime:n}){super({data:t,mime:n}),this._value=new TextDecoder().decode(Je(t))}get value(){return this._value}toString(){return this._value}}const jh=({data:e,mime:t})=>e instanceof ArrayBuffer||e instanceof Uint8Array?t.startsWith("application/fn.struct.")?new XE({data:e,mime:t}):t.startsWith("application/json")?new Sr({data:e,mime:t}):t==="text"||t.startsWith("text/")?new YE({data:e,mime:t}):new HE({data:e,mime:t}):new Tn({data:e,mime:t}),UE={id:"dummy",node_id:"dummy",node_name:"dummy",properties:{"frontend:size":[200,100],"frontend:pos":[NaN,NaN],"frontend:collapsed":!1},io:{},name:"dummy",in_trigger:!1,progress:{ascii:!1,elapsed:0,initial:0,n:0,prefix:"idle",unit:"it",unit_divisor:1e3,unit_scale:!1}},ZE={id:"dummy",name:"dummy",node:"dummy",full_id:"dummy",type:"any",value:void 0,is_input:!1,connected:!1,does_trigger:!0,fullvalue:void 0,render_options:{set_default:!0,type:"any"},hidden:!1,emit_value_set:!0,required:!1},JE=(e,t)=>{const n=()=>{var i;t.node===void 0||t.id===void 0||(i=e.worker)==null||i.get_io_full_value({nid:t.node,ioid:t.id})};return t.value==="<NoValue>"&&(t.value=void 0),t.fullvalue==="<NoValue>"&&(t.fullvalue=void 0),t.hidden===void 0&&(t.hidden=!1),{...t,try_get_full_value:n,set_hidden:i=>{var s;t.node===void 0||t.id===void 0||(s=e.worker)==null||s.update_io_options({nid:t.node,ioid:t.id,options:{hidden:i}})}}},qE=(e,t)=>{if(!t.id)throw new Error("IO must have an id but is missing for "+JSON.stringify(t));t.name===void 0&&(t.name=t.id);const{new_obj:n}=oi(t,ZE);return(n.render_options.type==="any"||n.render_options.type===void 0)&&(n.render_options.type=n.type),JE(e,n)},KE=(e,t,n)=>{let r;if(e===void 0)throw new Error("nodestore is undefined");return r={_state:dt((o,i)=>qE(t,n)),use:()=>r._state(),getState:()=>r._state.getState(),setState:o=>{r._state.setState(o)},update:o=>{$E(r,o)},valuestore:dt((o,i)=>{let s=n.value;s==="<NoValue>"&&(s=void 0),!(s instanceof Tn)&&s!==void 0&&(s=Sr.fromObject(s));let a=n.fullvalue;return a==="<NoValue>"&&(a=void 0),!(a instanceof Tn)&&a!==void 0&&(a=Sr.fromObject(a)),{preview:s,full:a}}),updateValueStore:o=>{r.valuestore.setState(i=>(i.preview&&typeof i.preview.dispose=="function"&&i.preview.dispose(),i.full&&typeof i.full.dispose=="function"&&i.full.dispose(),o.preview!==void 0&&o.full===void 0&&(o.full=void 0,i.full=void 0),o.preview!==void 0&&!(o.preview instanceof Tn)&&(o.preview=Sr.fromObject(o.preview)),o.full!==void 0&&!(o.full instanceof Tn)&&(o.full=Sr.fromObject(o.full)),{...i,...o}))},node:e},r},QE=(e,t,n)=>{const r=n.io_order;if(r===void 0)throw new Error("Node must have io_order");return{...n,in_trigger:dt(()=>!1),inputs:Object.keys(n.io).filter(i=>n.io[i].is_input),outputs:Object.keys(n.io).filter(i=>!n.io[i].is_input),io:Object.fromEntries(Object.entries(n.io).map(([i,s])=>[i,KE(e,t,s)])),io_order:r,progress:dt(()=>n.progress)}},e2=(e,t,n)=>{if(!n.id)throw new Error("Node must have an id");const{new_obj:r}=oi(n,UE);return QE(e,t,r)},t2=(e,t)=>{const r={use:()=>r._state(),getState:()=>r._state.getState(),setState:o=>{r._state.setState(o)},update:o=>{GE(r._state,o)}};return r._state=dt((o,i)=>e2(r,e,Dh(t))),r};function qe(e){if(typeof e=="string"||typeof e=="number")return""+e;let t="";if(Array.isArray(e))for(let n=0,r;n<e.length;n++)(r=qe(e[n]))!==""&&(t+=(t&&" ")+r);else for(let n in e)e[n]&&(t+=(t&&" ")+n);return t}var n2={value:()=>{}};function Ps(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Os(n)}function Os(e){this._=e}function r2(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",o=n.indexOf(".");if(o>=0&&(r=n.slice(o+1),n=n.slice(0,o)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Os.prototype=Ps.prototype={constructor:Os,on:function(e,t){var n=this._,r=r2(e+"",n),o,i=-1,s=r.length;if(arguments.length<2){for(;++i<s;)if((o=(e=r[i]).type)&&(o=o2(n[o],e.name)))return o;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++i<s;)if(o=(e=r[i]).type)n[o]=Lh(n[o],e.name,t);else if(t==null)for(o in n)n[o]=Lh(n[o],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Os(e)},call:function(e,t){if((o=arguments.length-2)>0)for(var n=new Array(o),r=0,o,i;r<o;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(i=this._[e],r=0,o=i.length;r<o;++r)i[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],o=0,i=r.length;o<i;++o)r[o].value.apply(t,n)}};function o2(e,t){for(var n=0,r=e.length,o;n<r;++n)if((o=e[n]).name===t)return o.value}function Lh(e,t,n){for(var r=0,o=e.length;r<o;++r)if(e[r].name===t){e[r]=n2,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var Ru="http://www.w3.org/1999/xhtml";const Bh={svg:"http://www.w3.org/2000/svg",xhtml:Ru,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Rs(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),Bh.hasOwnProperty(t)?{space:Bh[t],local:e}:e}function i2(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Ru&&t.documentElement.namespaceURI===Ru?t.createElement(e):t.createElementNS(n,e)}}function s2(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function zh(e){var t=Rs(e);return(t.local?s2:i2)(t)}function a2(){}function Mu(e){return e==null?a2:function(){return this.querySelector(e)}}function l2(e){typeof e!="function"&&(e=Mu(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i=t[o],s=i.length,a=r[o]=new Array(s),l,u,c=0;c<s;++c)(l=i[c])&&(u=e.call(l,l.__data__,c,i))&&("__data__"in l&&(u.__data__=l.__data__),a[c]=u);return new _t(r,this._parents)}function u2(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function c2(){return[]}function Vh(e){return e==null?c2:function(){return this.querySelectorAll(e)}}function f2(e){return function(){return u2(e.apply(this,arguments))}}function d2(e){typeof e=="function"?e=f2(e):e=Vh(e);for(var t=this._groups,n=t.length,r=[],o=[],i=0;i<n;++i)for(var s=t[i],a=s.length,l,u=0;u<a;++u)(l=s[u])&&(r.push(e.call(l,l.__data__,u,s)),o.push(l));return new _t(r,o)}function Gh(e){return function(){return this.matches(e)}}function $h(e){return function(t){return t.matches(e)}}var p2=Array.prototype.find;function h2(e){return function(){return p2.call(this.children,e)}}function g2(){return this.firstElementChild}function m2(e){return this.select(e==null?g2:h2(typeof e=="function"?e:$h(e)))}var y2=Array.prototype.filter;function b2(){return Array.from(this.children)}function v2(e){return function(){return y2.call(this.children,e)}}function x2(e){return this.selectAll(e==null?b2:v2(typeof e=="function"?e:$h(e)))}function w2(e){typeof e!="function"&&(e=Gh(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i=t[o],s=i.length,a=r[o]=[],l,u=0;u<s;++u)(l=i[u])&&e.call(l,l.__data__,u,i)&&a.push(l);return new _t(r,this._parents)}function Hh(e){return new Array(e.length)}function C2(){return new _t(this._enter||this._groups.map(Hh),this._parents)}function Ms(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Ms.prototype={constructor:Ms,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function _2(e){return function(){return e}}function S2(e,t,n,r,o,i){for(var s=0,a,l=t.length,u=i.length;s<u;++s)(a=t[s])?(a.__data__=i[s],r[s]=a):n[s]=new Ms(e,i[s]);for(;s<l;++s)(a=t[s])&&(o[s]=a)}function E2(e,t,n,r,o,i,s){var a,l,u=new Map,c=t.length,f=i.length,d=new Array(c),p;for(a=0;a<c;++a)(l=t[a])&&(d[a]=p=s.call(l,l.__data__,a,t)+"",u.has(p)?o[a]=l:u.set(p,l));for(a=0;a<f;++a)p=s.call(e,i[a],a,i)+"",(l=u.get(p))?(r[a]=l,l.__data__=i[a],u.delete(p)):n[a]=new Ms(e,i[a]);for(a=0;a<c;++a)(l=t[a])&&u.get(d[a])===l&&(o[a]=l)}function I2(e){return e.__data__}function k2(e,t){if(!arguments.length)return Array.from(this,I2);var n=t?E2:S2,r=this._parents,o=this._groups;typeof e!="function"&&(e=_2(e));for(var i=o.length,s=new Array(i),a=new Array(i),l=new Array(i),u=0;u<i;++u){var c=r[u],f=o[u],d=f.length,p=A2(e.call(c,c&&c.__data__,u,r)),g=p.length,h=a[u]=new Array(g),y=s[u]=new Array(g),m=l[u]=new Array(d);n(c,f,h,y,m,p,t);for(var x=0,v=0,C,S;x<g;++x)if(C=h[x]){for(x>=v&&(v=x+1);!(S=y[v])&&++v<g;);C._next=S||null}}return s=new _t(s,r),s._enter=a,s._exit=l,s}function A2(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function T2(){return new _t(this._exit||this._groups.map(Hh),this._parents)}function N2(e,t,n){var r=this.enter(),o=this,i=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(o=t(o),o&&(o=o.selection())),n==null?i.remove():n(i),r&&o?r.merge(o).order():o}function P2(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,o=n.length,i=r.length,s=Math.min(o,i),a=new Array(o),l=0;l<s;++l)for(var u=n[l],c=r[l],f=u.length,d=a[l]=new Array(f),p,g=0;g<f;++g)(p=u[g]||c[g])&&(d[g]=p);for(;l<o;++l)a[l]=n[l];return new _t(a,this._parents)}function O2(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],o=r.length-1,i=r[o],s;--o>=0;)(s=r[o])&&(i&&s.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(s,i),i=s);return this}function R2(e){e||(e=M2);function t(f,d){return f&&d?e(f.__data__,d.__data__):!f-!d}for(var n=this._groups,r=n.length,o=new Array(r),i=0;i<r;++i){for(var s=n[i],a=s.length,l=o[i]=new Array(a),u,c=0;c<a;++c)(u=s[c])&&(l[c]=u);l.sort(t)}return new _t(o,this._parents).order()}function M2(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function D2(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function F2(){return Array.from(this)}function j2(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],o=0,i=r.length;o<i;++o){var s=r[o];if(s)return s}return null}function L2(){let e=0;for(const t of this)++e;return e}function B2(){return!this.node()}function z2(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var o=t[n],i=0,s=o.length,a;i<s;++i)(a=o[i])&&e.call(a,a.__data__,i,o);return this}function V2(e){return function(){this.removeAttribute(e)}}function G2(e){return function(){this.removeAttributeNS(e.space,e.local)}}function $2(e,t){return function(){this.setAttribute(e,t)}}function H2(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function W2(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function X2(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function Y2(e,t){var n=Rs(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?G2:V2:typeof t=="function"?n.local?X2:W2:n.local?H2:$2)(n,t))}function Wh(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function U2(e){return function(){this.style.removeProperty(e)}}function Z2(e,t,n){return function(){this.style.setProperty(e,t,n)}}function J2(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function q2(e,t,n){return arguments.length>1?this.each((t==null?U2:typeof t=="function"?J2:Z2)(e,t,n??"")):to(this.node(),e)}function to(e,t){return e.style.getPropertyValue(t)||Wh(e).getComputedStyle(e,null).getPropertyValue(t)}function K2(e){return function(){delete this[e]}}function Q2(e,t){return function(){this[e]=t}}function eI(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function tI(e,t){return arguments.length>1?this.each((t==null?K2:typeof t=="function"?eI:Q2)(e,t)):this.node()[e]}function Xh(e){return e.trim().split(/^|\s+/)}function Du(e){return e.classList||new Yh(e)}function Yh(e){this._node=e,this._names=Xh(e.getAttribute("class")||"")}Yh.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Uh(e,t){for(var n=Du(e),r=-1,o=t.length;++r<o;)n.add(t[r])}function Zh(e,t){for(var n=Du(e),r=-1,o=t.length;++r<o;)n.remove(t[r])}function nI(e){return function(){Uh(this,e)}}function rI(e){return function(){Zh(this,e)}}function oI(e,t){return function(){(t.apply(this,arguments)?Uh:Zh)(this,e)}}function iI(e,t){var n=Xh(e+"");if(arguments.length<2){for(var r=Du(this.node()),o=-1,i=n.length;++o<i;)if(!r.contains(n[o]))return!1;return!0}return this.each((typeof t=="function"?oI:t?nI:rI)(n,t))}function sI(){this.textContent=""}function aI(e){return function(){this.textContent=e}}function lI(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function uI(e){return arguments.length?this.each(e==null?sI:(typeof e=="function"?lI:aI)(e)):this.node().textContent}function cI(){this.innerHTML=""}function fI(e){return function(){this.innerHTML=e}}function dI(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function pI(e){return arguments.length?this.each(e==null?cI:(typeof e=="function"?dI:fI)(e)):this.node().innerHTML}function hI(){this.nextSibling&&this.parentNode.appendChild(this)}function gI(){return this.each(hI)}function mI(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function yI(){return this.each(mI)}function bI(e){var t=typeof e=="function"?e:zh(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function vI(){return null}function xI(e,t){var n=typeof e=="function"?e:zh(e),r=t==null?vI:typeof t=="function"?t:Mu(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function wI(){var e=this.parentNode;e&&e.removeChild(this)}function CI(){return this.each(wI)}function _I(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function SI(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function EI(e){return this.select(e?SI:_I)}function II(e){return arguments.length?this.property("__data__",e):this.node().__data__}function kI(e){return function(t){e.call(this,t,this.__data__)}}function AI(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function TI(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,o=t.length,i;n<o;++n)i=t[n],(!e.type||i.type===e.type)&&i.name===e.name?this.removeEventListener(i.type,i.listener,i.options):t[++r]=i;++r?t.length=r:delete this.__on}}}function NI(e,t,n){return function(){var r=this.__on,o,i=kI(t);if(r){for(var s=0,a=r.length;s<a;++s)if((o=r[s]).type===e.type&&o.name===e.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=i,o.options=n),o.value=t;return}}this.addEventListener(e.type,i,n),o={type:e.type,name:e.name,value:t,listener:i,options:n},r?r.push(o):this.__on=[o]}}function PI(e,t,n){var r=AI(e+""),o,i=r.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,u=a.length,c;l<u;++l)for(o=0,c=a[l];o<i;++o)if((s=r[o]).type===c.type&&s.name===c.name)return c.value}return}for(a=t?NI:TI,o=0;o<i;++o)this.each(a(r[o],t,n));return this}function Jh(e,t,n){var r=Wh(e),o=r.CustomEvent;typeof o=="function"?o=new o(t,n):(o=r.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function OI(e,t){return function(){return Jh(this,e,t)}}function RI(e,t){return function(){return Jh(this,e,t.apply(this,arguments))}}function MI(e,t){return this.each((typeof t=="function"?RI:OI)(e,t))}function*DI(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],o=0,i=r.length,s;o<i;++o)(s=r[o])&&(yield s)}var qh=[null];function _t(e,t){this._groups=e,this._parents=t}function ii(){return new _t([[document.documentElement]],qh)}function FI(){return this}_t.prototype=ii.prototype={constructor:_t,select:l2,selectAll:d2,selectChild:m2,selectChildren:x2,filter:w2,data:k2,enter:C2,exit:T2,join:N2,merge:P2,selection:FI,order:O2,sort:R2,call:D2,nodes:F2,node:j2,size:L2,empty:B2,each:z2,attr:Y2,style:q2,property:tI,classed:iI,text:uI,html:pI,raise:gI,lower:yI,append:bI,insert:xI,remove:CI,clone:EI,datum:II,on:PI,dispatch:MI,[Symbol.iterator]:DI};function St(e){return typeof e=="string"?new _t([[document.querySelector(e)]],[document.documentElement]):new _t([[e]],qh)}function jI(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Xt(e,t){if(e=jI(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var o=t.getBoundingClientRect();return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}const LI={passive:!1},si={capture:!0,passive:!1};function Fu(e){e.stopImmediatePropagation()}function no(e){e.preventDefault(),e.stopImmediatePropagation()}function Kh(e){var t=e.document.documentElement,n=St(e).on("dragstart.drag",no,si);"onselectstart"in t?n.on("selectstart.drag",no,si):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Qh(e,t){var n=e.document.documentElement,r=St(e).on("dragstart.drag",null);t&&(r.on("click.drag",no,si),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const Ds=e=>()=>e;function ju(e,{sourceEvent:t,subject:n,target:r,identifier:o,active:i,x:s,y:a,dx:l,dy:u,dispatch:c}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:i,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:a,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:c}})}ju.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function BI(e){return!e.ctrlKey&&!e.button}function zI(){return this.parentNode}function VI(e,t){return t??{x:e.x,y:e.y}}function GI(){return navigator.maxTouchPoints||"ontouchstart"in this}function eg(){var e=BI,t=zI,n=VI,r=GI,o={},i=Ps("start","drag","end"),s=0,a,l,u,c,f=0;function d(C){C.on("mousedown.drag",p).filter(r).on("touchstart.drag",y).on("touchmove.drag",m,LI).on("touchend.drag touchcancel.drag",x).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(C,S){if(!(c||!e.call(this,C,S))){var E=v(this,t.call(this,C,S),C,S,"mouse");E&&(St(C.view).on("mousemove.drag",g,si).on("mouseup.drag",h,si),Kh(C.view),Fu(C),u=!1,a=C.clientX,l=C.clientY,E("start",C))}}function g(C){if(no(C),!u){var S=C.clientX-a,E=C.clientY-l;u=S*S+E*E>f}o.mouse("drag",C)}function h(C){St(C.view).on("mousemove.drag mouseup.drag",null),Qh(C.view,u),no(C),o.mouse("end",C)}function y(C,S){if(e.call(this,C,S)){var E=C.changedTouches,I=t.call(this,C,S),O=E.length,M,w;for(M=0;M<O;++M)(w=v(this,I,C,S,E[M].identifier,E[M]))&&(Fu(C),w("start",C,E[M]))}}function m(C){var S=C.changedTouches,E=S.length,I,O;for(I=0;I<E;++I)(O=o[S[I].identifier])&&(no(C),O("drag",C,S[I]))}function x(C){var S=C.changedTouches,E=S.length,I,O;for(c&&clearTimeout(c),c=setTimeout(function(){c=null},500),I=0;I<E;++I)(O=o[S[I].identifier])&&(Fu(C),O("end",C,S[I]))}function v(C,S,E,I,O,M){var w=i.copy(),N=Xt(M||E,S),R,L,A;if((A=n.call(C,new ju("beforestart",{sourceEvent:E,target:d,identifier:O,active:s,x:N[0],y:N[1],dx:0,dy:0,dispatch:w}),I))!=null)return R=A.x-N[0]||0,L=A.y-N[1]||0,function j(D,z,V){var F=N,_;switch(D){case"start":o[O]=j,_=s++;break;case"end":delete o[O],--s;case"drag":N=Xt(V||z,S),_=s;break}w.call(D,C,new ju(D,{sourceEvent:z,subject:A,target:d,identifier:O,active:_,x:N[0]+R,y:N[1]+L,dx:N[0]-F[0],dy:N[1]-F[1],dispatch:w}),I)}}return d.filter=function(C){return arguments.length?(e=typeof C=="function"?C:Ds(!!C),d):e},d.container=function(C){return arguments.length?(t=typeof C=="function"?C:Ds(C),d):t},d.subject=function(C){return arguments.length?(n=typeof C=="function"?C:Ds(C),d):n},d.touchable=function(C){return arguments.length?(r=typeof C=="function"?C:Ds(!!C),d):r},d.on=function(){var C=i.on.apply(i,arguments);return C===i?d:C},d.clickDistance=function(C){return arguments.length?(f=(C=+C)*C,d):Math.sqrt(f)},d}function Lu(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function tg(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ai(){}var li=.7,Fs=1/li,ro="\\s*([+-]?\\d+)\\s*",ui="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",un="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",$I=/^#([0-9a-f]{3,8})$/,HI=new RegExp(`^rgb\\(${ro},${ro},${ro}\\)$`),WI=new RegExp(`^rgb\\(${un},${un},${un}\\)$`),XI=new RegExp(`^rgba\\(${ro},${ro},${ro},${ui}\\)$`),YI=new RegExp(`^rgba\\(${un},${un},${un},${ui}\\)$`),UI=new RegExp(`^hsl\\(${ui},${un},${un}\\)$`),ZI=new RegExp(`^hsla\\(${ui},${un},${un},${ui}\\)$`),ng={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Lu(ai,ci,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:rg,formatHex:rg,formatHex8:JI,formatHsl:qI,formatRgb:og,toString:og});function rg(){return this.rgb().formatHex()}function JI(){return this.rgb().formatHex8()}function qI(){return ug(this).formatHsl()}function og(){return this.rgb().formatRgb()}function ci(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=$I.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?ig(t):n===3?new yt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?js(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?js(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=HI.exec(e))?new yt(t[1],t[2],t[3],1):(t=WI.exec(e))?new yt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=XI.exec(e))?js(t[1],t[2],t[3],t[4]):(t=YI.exec(e))?js(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=UI.exec(e))?lg(t[1],t[2]/100,t[3]/100,1):(t=ZI.exec(e))?lg(t[1],t[2]/100,t[3]/100,t[4]):ng.hasOwnProperty(e)?ig(ng[e]):e==="transparent"?new yt(NaN,NaN,NaN,0):null}function ig(e){return new yt(e>>16&255,e>>8&255,e&255,1)}function js(e,t,n,r){return r<=0&&(e=t=n=NaN),new yt(e,t,n,r)}function KI(e){return e instanceof ai||(e=ci(e)),e?(e=e.rgb(),new yt(e.r,e.g,e.b,e.opacity)):new yt}function Bu(e,t,n,r){return arguments.length===1?KI(e):new yt(e,t,n,r??1)}function yt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Lu(yt,Bu,tg(ai,{brighter(e){return e=e==null?Fs:Math.pow(Fs,e),new yt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?li:Math.pow(li,e),new yt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new yt(Er(this.r),Er(this.g),Er(this.b),Ls(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:sg,formatHex:sg,formatHex8:QI,formatRgb:ag,toString:ag}));function sg(){return`#${Ir(this.r)}${Ir(this.g)}${Ir(this.b)}`}function QI(){return`#${Ir(this.r)}${Ir(this.g)}${Ir(this.b)}${Ir((isNaN(this.opacity)?1:this.opacity)*255)}`}function ag(){const e=Ls(this.opacity);return`${e===1?"rgb(":"rgba("}${Er(this.r)}, ${Er(this.g)}, ${Er(this.b)}${e===1?")":`, ${e})`}`}function Ls(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Er(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ir(e){return e=Er(e),(e<16?"0":"")+e.toString(16)}function lg(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Yt(e,t,n,r)}function ug(e){if(e instanceof Yt)return new Yt(e.h,e.s,e.l,e.opacity);if(e instanceof ai||(e=ci(e)),!e)return new Yt;if(e instanceof Yt)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),s=NaN,a=i-o,l=(i+o)/2;return a?(t===i?s=(n-r)/a+(n<r)*6:n===i?s=(r-t)/a+2:s=(t-n)/a+4,a/=l<.5?i+o:2-i-o,s*=60):a=l>0&&l<1?0:s,new Yt(s,a,l,e.opacity)}function ek(e,t,n,r){return arguments.length===1?ug(e):new Yt(e,t,n,r??1)}function Yt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Lu(Yt,ek,tg(ai,{brighter(e){return e=e==null?Fs:Math.pow(Fs,e),new Yt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?li:Math.pow(li,e),new Yt(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new yt(zu(e>=240?e-240:e+120,o,r),zu(e,o,r),zu(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Yt(cg(this.h),Bs(this.s),Bs(this.l),Ls(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Ls(this.opacity);return`${e===1?"hsl(":"hsla("}${cg(this.h)}, ${Bs(this.s)*100}%, ${Bs(this.l)*100}%${e===1?")":`, ${e})`}`}}));function cg(e){return e=(e||0)%360,e<0?e+360:e}function Bs(e){return Math.max(0,Math.min(1,e||0))}function zu(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const fg=e=>()=>e;function tk(e,t){return function(n){return e+n*t}}function nk(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function rk(e){return(e=+e)==1?dg:function(t,n){return n-t?nk(t,n,e):fg(isNaN(t)?n:t)}}function dg(e,t){var n=t-e;return n?tk(e,n):fg(isNaN(e)?t:e)}const pg=function e(t){var n=rk(t);function r(o,i){var s=n((o=Bu(o)).r,(i=Bu(i)).r),a=n(o.g,i.g),l=n(o.b,i.b),u=dg(o.opacity,i.opacity);return function(c){return o.r=s(c),o.g=a(c),o.b=l(c),o.opacity=u(c),o+""}}return r.gamma=e,r}(1);function er(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Vu=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Gu=new RegExp(Vu.source,"g");function ok(e){return function(){return e}}function ik(e){return function(t){return e(t)+""}}function sk(e,t){var n=Vu.lastIndex=Gu.lastIndex=0,r,o,i,s=-1,a=[],l=[];for(e=e+"",t=t+"";(r=Vu.exec(e))&&(o=Gu.exec(t));)(i=o.index)>n&&(i=t.slice(n,i),a[s]?a[s]+=i:a[++s]=i),(r=r[0])===(o=o[0])?a[s]?a[s]+=o:a[++s]=o:(a[++s]=null,l.push({i:s,x:er(r,o)})),n=Gu.lastIndex;return n<t.length&&(i=t.slice(n),a[s]?a[s]+=i:a[++s]=i),a.length<2?l[0]?ik(l[0].x):ok(t):(t=l.length,function(u){for(var c=0,f;c<t;++c)a[(f=l[c]).i]=f.x(u);return a.join("")})}var hg=180/Math.PI,$u={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function gg(e,t,n,r,o,i){var s,a,l;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,l/=a),e*r<t*n&&(e=-e,t=-t,l=-l,s=-s),{translateX:o,translateY:i,rotate:Math.atan2(t,e)*hg,skewX:Math.atan(l)*hg,scaleX:s,scaleY:a}}var zs;function ak(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?$u:gg(t.a,t.b,t.c,t.d,t.e,t.f)}function lk(e){return e==null||(zs||(zs=document.createElementNS("http://www.w3.org/2000/svg","g")),zs.setAttribute("transform",e),!(e=zs.transform.baseVal.consolidate()))?$u:(e=e.matrix,gg(e.a,e.b,e.c,e.d,e.e,e.f))}function mg(e,t,n,r){function o(u){return u.length?u.pop()+" ":""}function i(u,c,f,d,p,g){if(u!==f||c!==d){var h=p.push("translate(",null,t,null,n);g.push({i:h-4,x:er(u,f)},{i:h-2,x:er(c,d)})}else(f||d)&&p.push("translate("+f+t+d+n)}function s(u,c,f,d){u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),d.push({i:f.push(o(f)+"rotate(",null,r)-2,x:er(u,c)})):c&&f.push(o(f)+"rotate("+c+r)}function a(u,c,f,d){u!==c?d.push({i:f.push(o(f)+"skewX(",null,r)-2,x:er(u,c)}):c&&f.push(o(f)+"skewX("+c+r)}function l(u,c,f,d,p,g){if(u!==f||c!==d){var h=p.push(o(p)+"scale(",null,",",null,")");g.push({i:h-4,x:er(u,f)},{i:h-2,x:er(c,d)})}else(f!==1||d!==1)&&p.push(o(p)+"scale("+f+","+d+")")}return function(u,c){var f=[],d=[];return u=e(u),c=e(c),i(u.translateX,u.translateY,c.translateX,c.translateY,f,d),s(u.rotate,c.rotate,f,d),a(u.skewX,c.skewX,f,d),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,f,d),u=c=null,function(p){for(var g=-1,h=d.length,y;++g<h;)f[(y=d[g]).i]=y.x(p);return f.join("")}}}var uk=mg(ak,"px, ","px)","deg)"),ck=mg(lk,", ",")",")"),fk=1e-12;function yg(e){return((e=Math.exp(e))+1/e)/2}function dk(e){return((e=Math.exp(e))-1/e)/2}function pk(e){return((e=Math.exp(2*e))-1)/(e+1)}const hk=function e(t,n,r){function o(i,s){var a=i[0],l=i[1],u=i[2],c=s[0],f=s[1],d=s[2],p=c-a,g=f-l,h=p*p+g*g,y,m;if(h<fk)m=Math.log(d/u)/t,y=function(I){return[a+I*p,l+I*g,u*Math.exp(t*I*m)]};else{var x=Math.sqrt(h),v=(d*d-u*u+r*h)/(2*u*n*x),C=(d*d-u*u-r*h)/(2*d*n*x),S=Math.log(Math.sqrt(v*v+1)-v),E=Math.log(Math.sqrt(C*C+1)-C);m=(E-S)/t,y=function(I){var O=I*m,M=yg(S),w=u/(n*x)*(M*pk(t*O+S)-dk(S));return[a+w*p,l+w*g,u*M/yg(t*O+S)]}}return y.duration=m*1e3*t/Math.SQRT2,y}return o.rho=function(i){var s=Math.max(.001,+i),a=s*s,l=a*a;return e(s,a,l)},o}(Math.SQRT2,2,4);var oo=0,fi=0,di=0,bg=1e3,Vs,pi,Gs=0,kr=0,$s=0,hi=typeof performance=="object"&&performance.now?performance:Date,vg=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Hu(){return kr||(vg(gk),kr=hi.now()+$s)}function gk(){kr=0}function Hs(){this._call=this._time=this._next=null}Hs.prototype=xg.prototype={constructor:Hs,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?Hu():+n)+(t==null?0:+t),!this._next&&pi!==this&&(pi?pi._next=this:Vs=this,pi=this),this._call=e,this._time=n,Wu()},stop:function(){this._call&&(this._call=null,this._time=1/0,Wu())}};function xg(e,t,n){var r=new Hs;return r.restart(e,t,n),r}function mk(){Hu(),++oo;for(var e=Vs,t;e;)(t=kr-e._time)>=0&&e._call.call(void 0,t),e=e._next;--oo}function wg(){kr=(Gs=hi.now())+$s,oo=fi=0;try{mk()}finally{oo=0,bk(),kr=0}}function yk(){var e=hi.now(),t=e-Gs;t>bg&&($s-=t,Gs=e)}function bk(){for(var e,t=Vs,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Vs=n);pi=e,Wu(r)}function Wu(e){if(!oo){fi&&(fi=clearTimeout(fi));var t=e-kr;t>24?(e<1/0&&(fi=setTimeout(wg,e-hi.now()-$s)),di&&(di=clearInterval(di))):(di||(Gs=hi.now(),di=setInterval(yk,bg)),oo=1,vg(wg))}}function Cg(e,t,n){var r=new Hs;return t=t==null?0:+t,r.restart(o=>{r.stop(),e(o+t)},t,n),r}var vk=Ps("start","end","cancel","interrupt"),xk=[],_g=0,Sg=1,Xu=2,Ws=3,Eg=4,Yu=5,Xs=6;function Ys(e,t,n,r,o,i){var s=e.__transition;if(!s)e.__transition={};else if(n in s)return;wk(e,n,{name:t,index:r,group:o,on:vk,tween:xk,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:_g})}function Uu(e,t){var n=Ut(e,t);if(n.state>_g)throw new Error("too late; already scheduled");return n}function cn(e,t){var n=Ut(e,t);if(n.state>Ws)throw new Error("too late; already running");return n}function Ut(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function wk(e,t,n){var r=e.__transition,o;r[t]=n,n.timer=xg(i,0,n.time);function i(u){n.state=Sg,n.timer.restart(s,n.delay,n.time),n.delay<=u&&s(u-n.delay)}function s(u){var c,f,d,p;if(n.state!==Sg)return l();for(c in r)if(p=r[c],p.name===n.name){if(p.state===Ws)return Cg(s);p.state===Eg?(p.state=Xs,p.timer.stop(),p.on.call("interrupt",e,e.__data__,p.index,p.group),delete r[c]):+c<t&&(p.state=Xs,p.timer.stop(),p.on.call("cancel",e,e.__data__,p.index,p.group),delete r[c])}if(Cg(function(){n.state===Ws&&(n.state=Eg,n.timer.restart(a,n.delay,n.time),a(u))}),n.state=Xu,n.on.call("start",e,e.__data__,n.index,n.group),n.state===Xu){for(n.state=Ws,o=new Array(d=n.tween.length),c=0,f=-1;c<d;++c)(p=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(o[++f]=p);o.length=f+1}}function a(u){for(var c=u<n.duration?n.ease.call(null,u/n.duration):(n.timer.restart(l),n.state=Yu,1),f=-1,d=o.length;++f<d;)o[f].call(e,c);n.state===Yu&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){n.state=Xs,n.timer.stop(),delete r[t];for(var u in r)return;delete e.__transition}}function Us(e,t){var n=e.__transition,r,o,i=!0,s;if(n){t=t==null?null:t+"";for(s in n){if((r=n[s]).name!==t){i=!1;continue}o=r.state>Xu&&r.state<Yu,r.state=Xs,r.timer.stop(),r.on.call(o?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[s]}i&&delete e.__transition}}function Ck(e){return this.each(function(){Us(this,e)})}function _k(e,t){var n,r;return function(){var o=cn(this,e),i=o.tween;if(i!==n){r=n=i;for(var s=0,a=r.length;s<a;++s)if(r[s].name===t){r=r.slice(),r.splice(s,1);break}}o.tween=r}}function Sk(e,t,n){var r,o;if(typeof n!="function")throw new Error;return function(){var i=cn(this,e),s=i.tween;if(s!==r){o=(r=s).slice();for(var a={name:t,value:n},l=0,u=o.length;l<u;++l)if(o[l].name===t){o[l]=a;break}l===u&&o.push(a)}i.tween=o}}function Ek(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=Ut(this.node(),n).tween,o=0,i=r.length,s;o<i;++o)if((s=r[o]).name===e)return s.value;return null}return this.each((t==null?_k:Sk)(n,e,t))}function Zu(e,t,n){var r=e._id;return e.each(function(){var o=cn(this,r);(o.value||(o.value={}))[t]=n.apply(this,arguments)}),function(o){return Ut(o,r).value[t]}}function Ig(e,t){var n;return(typeof t=="number"?er:t instanceof ci?pg:(n=ci(t))?(t=n,pg):sk)(e,t)}function Ik(e){return function(){this.removeAttribute(e)}}function kk(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ak(e,t,n){var r,o=n+"",i;return function(){var s=this.getAttribute(e);return s===o?null:s===r?i:i=t(r=s,n)}}function Tk(e,t,n){var r,o=n+"",i;return function(){var s=this.getAttributeNS(e.space,e.local);return s===o?null:s===r?i:i=t(r=s,n)}}function Nk(e,t,n){var r,o,i;return function(){var s,a=n(this),l;return a==null?void this.removeAttribute(e):(s=this.getAttribute(e),l=a+"",s===l?null:s===r&&l===o?i:(o=l,i=t(r=s,a)))}}function Pk(e,t,n){var r,o,i;return function(){var s,a=n(this),l;return a==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),l=a+"",s===l?null:s===r&&l===o?i:(o=l,i=t(r=s,a)))}}function Ok(e,t){var n=Rs(e),r=n==="transform"?ck:Ig;return this.attrTween(e,typeof t=="function"?(n.local?Pk:Nk)(n,r,Zu(this,"attr."+e,t)):t==null?(n.local?kk:Ik)(n):(n.local?Tk:Ak)(n,r,t))}function Rk(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Mk(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Dk(e,t){var n,r;function o(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Mk(e,i)),n}return o._value=t,o}function Fk(e,t){var n,r;function o(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Rk(e,i)),n}return o._value=t,o}function jk(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=Rs(e);return this.tween(n,(r.local?Dk:Fk)(r,t))}function Lk(e,t){return function(){Uu(this,e).delay=+t.apply(this,arguments)}}function Bk(e,t){return t=+t,function(){Uu(this,e).delay=t}}function zk(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Lk:Bk)(t,e)):Ut(this.node(),t).delay}function Vk(e,t){return function(){cn(this,e).duration=+t.apply(this,arguments)}}function Gk(e,t){return t=+t,function(){cn(this,e).duration=t}}function $k(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Vk:Gk)(t,e)):Ut(this.node(),t).duration}function Hk(e,t){if(typeof t!="function")throw new Error;return function(){cn(this,e).ease=t}}function Wk(e){var t=this._id;return arguments.length?this.each(Hk(t,e)):Ut(this.node(),t).ease}function Xk(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;cn(this,e).ease=n}}function Yk(e){if(typeof e!="function")throw new Error;return this.each(Xk(this._id,e))}function Uk(e){typeof e!="function"&&(e=Gh(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i=t[o],s=i.length,a=r[o]=[],l,u=0;u<s;++u)(l=i[u])&&e.call(l,l.__data__,u,i)&&a.push(l);return new Nn(r,this._parents,this._name,this._id)}function Zk(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,o=n.length,i=Math.min(r,o),s=new Array(r),a=0;a<i;++a)for(var l=t[a],u=n[a],c=l.length,f=s[a]=new Array(c),d,p=0;p<c;++p)(d=l[p]||u[p])&&(f[p]=d);for(;a<r;++a)s[a]=t[a];return new Nn(s,this._parents,this._name,this._id)}function Jk(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function qk(e,t,n){var r,o,i=Jk(t)?Uu:cn;return function(){var s=i(this,e),a=s.on;a!==r&&(o=(r=a).copy()).on(t,n),s.on=o}}function Kk(e,t){var n=this._id;return arguments.length<2?Ut(this.node(),n).on.on(e):this.each(qk(n,e,t))}function Qk(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function eA(){return this.on("end.remove",Qk(this._id))}function tA(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Mu(e));for(var r=this._groups,o=r.length,i=new Array(o),s=0;s<o;++s)for(var a=r[s],l=a.length,u=i[s]=new Array(l),c,f,d=0;d<l;++d)(c=a[d])&&(f=e.call(c,c.__data__,d,a))&&("__data__"in c&&(f.__data__=c.__data__),u[d]=f,Ys(u[d],t,n,d,u,Ut(c,n)));return new Nn(i,this._parents,t,n)}function nA(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Vh(e));for(var r=this._groups,o=r.length,i=[],s=[],a=0;a<o;++a)for(var l=r[a],u=l.length,c,f=0;f<u;++f)if(c=l[f]){for(var d=e.call(c,c.__data__,f,l),p,g=Ut(c,n),h=0,y=d.length;h<y;++h)(p=d[h])&&Ys(p,t,n,h,d,g);i.push(d),s.push(c)}return new Nn(i,s,t,n)}var rA=ii.prototype.constructor;function oA(){return new rA(this._groups,this._parents)}function iA(e,t){var n,r,o;return function(){var i=to(this,e),s=(this.style.removeProperty(e),to(this,e));return i===s?null:i===n&&s===r?o:o=t(n=i,r=s)}}function kg(e){return function(){this.style.removeProperty(e)}}function sA(e,t,n){var r,o=n+"",i;return function(){var s=to(this,e);return s===o?null:s===r?i:i=t(r=s,n)}}function aA(e,t,n){var r,o,i;return function(){var s=to(this,e),a=n(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(e),to(this,e))),s===l?null:s===r&&l===o?i:(o=l,i=t(r=s,a))}}function lA(e,t){var n,r,o,i="style."+t,s="end."+i,a;return function(){var l=cn(this,e),u=l.on,c=l.value[i]==null?a||(a=kg(t)):void 0;(u!==n||o!==c)&&(r=(n=u).copy()).on(s,o=c),l.on=r}}function uA(e,t,n){var r=(e+="")=="transform"?uk:Ig;return t==null?this.styleTween(e,iA(e,r)).on("end.style."+e,kg(e)):typeof t=="function"?this.styleTween(e,aA(e,r,Zu(this,"style."+e,t))).each(lA(this._id,e)):this.styleTween(e,sA(e,r,t),n).on("end.style."+e,null)}function cA(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function fA(e,t,n){var r,o;function i(){var s=t.apply(this,arguments);return s!==o&&(r=(o=s)&&cA(e,s,n)),r}return i._value=t,i}function dA(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,fA(e,t,n??""))}function pA(e){return function(){this.textContent=e}}function hA(e){return function(){var t=e(this);this.textContent=t??""}}function gA(e){return this.tween("text",typeof e=="function"?hA(Zu(this,"text",e)):pA(e==null?"":e+""))}function mA(e){return function(t){this.textContent=e.call(this,t)}}function yA(e){var t,n;function r(){var o=e.apply(this,arguments);return o!==n&&(t=(n=o)&&mA(o)),t}return r._value=e,r}function bA(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,yA(e))}function vA(){for(var e=this._name,t=this._id,n=Ag(),r=this._groups,o=r.length,i=0;i<o;++i)for(var s=r[i],a=s.length,l,u=0;u<a;++u)if(l=s[u]){var c=Ut(l,t);Ys(l,e,n,u,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new Nn(r,this._parents,e,n)}function xA(){var e,t,n=this,r=n._id,o=n.size();return new Promise(function(i,s){var a={value:s},l={value:function(){--o===0&&i()}};n.each(function(){var u=cn(this,r),c=u.on;c!==e&&(t=(e=c).copy(),t._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),u.on=t}),o===0&&i()})}var wA=0;function Nn(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Ag(){return++wA}var Pn=ii.prototype;Nn.prototype={constructor:Nn,select:tA,selectAll:nA,selectChild:Pn.selectChild,selectChildren:Pn.selectChildren,filter:Uk,merge:Zk,selection:oA,transition:vA,call:Pn.call,nodes:Pn.nodes,node:Pn.node,size:Pn.size,empty:Pn.empty,each:Pn.each,on:Kk,attr:Ok,attrTween:jk,style:uA,styleTween:dA,text:gA,textTween:bA,remove:eA,tween:Ek,delay:zk,duration:$k,ease:Wk,easeVarying:Yk,end:xA,[Symbol.iterator]:Pn[Symbol.iterator]};function CA(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var _A={time:null,delay:0,duration:250,ease:CA};function SA(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function EA(e){var t,n;e instanceof Nn?(t=e._id,e=e._name):(t=Ag(),(n=_A).time=Hu(),e=e==null?null:e+"");for(var r=this._groups,o=r.length,i=0;i<o;++i)for(var s=r[i],a=s.length,l,u=0;u<a;++u)(l=s[u])&&Ys(l,e,t,u,s,n||SA(l,t));return new Nn(r,this._parents,e,t)}ii.prototype.interrupt=Ck,ii.prototype.transition=EA;const Zs=e=>()=>e;function IA(e,{sourceEvent:t,target:n,transform:r,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:o}})}function On(e,t,n){this.k=e,this.x=t,this.y=n}On.prototype={constructor:On,scale:function(e){return e===1?this:new On(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new On(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Js=new On(1,0,0);Tg.prototype=On.prototype;function Tg(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Js;return e.__zoom}function Ju(e){e.stopImmediatePropagation()}function gi(e){e.preventDefault(),e.stopImmediatePropagation()}function kA(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function AA(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function Ng(){return this.__zoom||Js}function TA(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function NA(){return navigator.maxTouchPoints||"ontouchstart"in this}function PA(e,t,n){var r=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],i=e.invertY(t[0][1])-n[0][1],s=e.invertY(t[1][1])-n[1][1];return e.translate(o>r?(r+o)/2:Math.min(0,r)||Math.max(0,o),s>i?(i+s)/2:Math.min(0,i)||Math.max(0,s))}function Pg(){var e=kA,t=AA,n=PA,r=TA,o=NA,i=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],a=250,l=hk,u=Ps("start","zoom","end"),c,f,d,p=500,g=150,h=0,y=10;function m(A){A.property("__zoom",Ng).on("wheel.zoom",O,{passive:!1}).on("mousedown.zoom",M).on("dblclick.zoom",w).filter(o).on("touchstart.zoom",N).on("touchmove.zoom",R).on("touchend.zoom touchcancel.zoom",L).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}m.transform=function(A,j,D,z){var V=A.selection?A.selection():A;V.property("__zoom",Ng),A!==V?S(A,j,D,z):V.interrupt().each(function(){E(this,arguments).event(z).start().zoom(null,typeof j=="function"?j.apply(this,arguments):j).end()})},m.scaleBy=function(A,j,D,z){m.scaleTo(A,function(){var V=this.__zoom.k,F=typeof j=="function"?j.apply(this,arguments):j;return V*F},D,z)},m.scaleTo=function(A,j,D,z){m.transform(A,function(){var V=t.apply(this,arguments),F=this.__zoom,_=D==null?C(V):typeof D=="function"?D.apply(this,arguments):D,G=F.invert(_),$=typeof j=="function"?j.apply(this,arguments):j;return n(v(x(F,$),_,G),V,s)},D,z)},m.translateBy=function(A,j,D,z){m.transform(A,function(){return n(this.__zoom.translate(typeof j=="function"?j.apply(this,arguments):j,typeof D=="function"?D.apply(this,arguments):D),t.apply(this,arguments),s)},null,z)},m.translateTo=function(A,j,D,z,V){m.transform(A,function(){var F=t.apply(this,arguments),_=this.__zoom,G=z==null?C(F):typeof z=="function"?z.apply(this,arguments):z;return n(Js.translate(G[0],G[1]).scale(_.k).translate(typeof j=="function"?-j.apply(this,arguments):-j,typeof D=="function"?-D.apply(this,arguments):-D),F,s)},z,V)};function x(A,j){return j=Math.max(i[0],Math.min(i[1],j)),j===A.k?A:new On(j,A.x,A.y)}function v(A,j,D){var z=j[0]-D[0]*A.k,V=j[1]-D[1]*A.k;return z===A.x&&V===A.y?A:new On(A.k,z,V)}function C(A){return[(+A[0][0]+ +A[1][0])/2,(+A[0][1]+ +A[1][1])/2]}function S(A,j,D,z){A.on("start.zoom",function(){E(this,arguments).event(z).start()}).on("interrupt.zoom end.zoom",function(){E(this,arguments).event(z).end()}).tween("zoom",function(){var V=this,F=arguments,_=E(V,F).event(z),G=t.apply(V,F),$=D==null?C(G):typeof D=="function"?D.apply(V,F):D,P=Math.max(G[1][0]-G[0][0],G[1][1]-G[0][1]),H=V.__zoom,J=typeof j=="function"?j.apply(V,F):j,W=l(H.invert($).concat(P/H.k),J.invert($).concat(P/J.k));return function(X){if(X===1)X=J;else{var U=W(X),Q=P/U[2];X=new On(Q,$[0]-U[0]*Q,$[1]-U[1]*Q)}_.zoom(null,X)}})}function E(A,j,D){return!D&&A.__zooming||new I(A,j)}function I(A,j){this.that=A,this.args=j,this.active=0,this.sourceEvent=null,this.extent=t.apply(A,j),this.taps=0}I.prototype={event:function(A){return A&&(this.sourceEvent=A),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(A,j){return this.mouse&&A!=="mouse"&&(this.mouse[1]=j.invert(this.mouse[0])),this.touch0&&A!=="touch"&&(this.touch0[1]=j.invert(this.touch0[0])),this.touch1&&A!=="touch"&&(this.touch1[1]=j.invert(this.touch1[0])),this.that.__zoom=j,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(A){var j=St(this.that).datum();u.call(A,this.that,new IA(A,{sourceEvent:this.sourceEvent,target:m,transform:this.that.__zoom,dispatch:u}),j)}};function O(A,...j){if(!e.apply(this,arguments))return;var D=E(this,j).event(A),z=this.__zoom,V=Math.max(i[0],Math.min(i[1],z.k*Math.pow(2,r.apply(this,arguments)))),F=Xt(A);if(D.wheel)(D.mouse[0][0]!==F[0]||D.mouse[0][1]!==F[1])&&(D.mouse[1]=z.invert(D.mouse[0]=F)),clearTimeout(D.wheel);else{if(z.k===V)return;D.mouse=[F,z.invert(F)],Us(this),D.start()}gi(A),D.wheel=setTimeout(_,g),D.zoom("mouse",n(v(x(z,V),D.mouse[0],D.mouse[1]),D.extent,s));function _(){D.wheel=null,D.end()}}function M(A,...j){if(d||!e.apply(this,arguments))return;var D=A.currentTarget,z=E(this,j,!0).event(A),V=St(A.view).on("mousemove.zoom",$,!0).on("mouseup.zoom",P,!0),F=Xt(A,D),_=A.clientX,G=A.clientY;Kh(A.view),Ju(A),z.mouse=[F,this.__zoom.invert(F)],Us(this),z.start();function $(H){if(gi(H),!z.moved){var J=H.clientX-_,W=H.clientY-G;z.moved=J*J+W*W>h}z.event(H).zoom("mouse",n(v(z.that.__zoom,z.mouse[0]=Xt(H,D),z.mouse[1]),z.extent,s))}function P(H){V.on("mousemove.zoom mouseup.zoom",null),Qh(H.view,z.moved),gi(H),z.event(H).end()}}function w(A,...j){if(e.apply(this,arguments)){var D=this.__zoom,z=Xt(A.changedTouches?A.changedTouches[0]:A,this),V=D.invert(z),F=D.k*(A.shiftKey?.5:2),_=n(v(x(D,F),z,V),t.apply(this,j),s);gi(A),a>0?St(this).transition().duration(a).call(S,_,z,A):St(this).call(m.transform,_,z,A)}}function N(A,...j){if(e.apply(this,arguments)){var D=A.touches,z=D.length,V=E(this,j,A.changedTouches.length===z).event(A),F,_,G,$;for(Ju(A),_=0;_<z;++_)G=D[_],$=Xt(G,this),$=[$,this.__zoom.invert($),G.identifier],V.touch0?!V.touch1&&V.touch0[2]!==$[2]&&(V.touch1=$,V.taps=0):(V.touch0=$,F=!0,V.taps=1+!!c);c&&(c=clearTimeout(c)),F&&(V.taps<2&&(f=$[0],c=setTimeout(function(){c=null},p)),Us(this),V.start())}}function R(A,...j){if(this.__zooming){var D=E(this,j).event(A),z=A.changedTouches,V=z.length,F,_,G,$;for(gi(A),F=0;F<V;++F)_=z[F],G=Xt(_,this),D.touch0&&D.touch0[2]===_.identifier?D.touch0[0]=G:D.touch1&&D.touch1[2]===_.identifier&&(D.touch1[0]=G);if(_=D.that.__zoom,D.touch1){var P=D.touch0[0],H=D.touch0[1],J=D.touch1[0],W=D.touch1[1],X=(X=J[0]-P[0])*X+(X=J[1]-P[1])*X,U=(U=W[0]-H[0])*U+(U=W[1]-H[1])*U;_=x(_,Math.sqrt(X/U)),G=[(P[0]+J[0])/2,(P[1]+J[1])/2],$=[(H[0]+W[0])/2,(H[1]+W[1])/2]}else if(D.touch0)G=D.touch0[0],$=D.touch0[1];else return;D.zoom("touch",n(v(_,G,$),D.extent,s))}}function L(A,...j){if(this.__zooming){var D=E(this,j).event(A),z=A.changedTouches,V=z.length,F,_;for(Ju(A),d&&clearTimeout(d),d=setTimeout(function(){d=null},p),F=0;F<V;++F)_=z[F],D.touch0&&D.touch0[2]===_.identifier?delete D.touch0:D.touch1&&D.touch1[2]===_.identifier&&delete D.touch1;if(D.touch1&&!D.touch0&&(D.touch0=D.touch1,delete D.touch1),D.touch0)D.touch0[1]=this.__zoom.invert(D.touch0[0]);else if(D.end(),D.taps===2&&(_=Xt(_,this),Math.hypot(f[0]-_[0],f[1]-_[1])<y)){var G=St(this).on("dblclick.zoom");G&&G.apply(this,arguments)}}}return m.wheelDelta=function(A){return arguments.length?(r=typeof A=="function"?A:Zs(+A),m):r},m.filter=function(A){return arguments.length?(e=typeof A=="function"?A:Zs(!!A),m):e},m.touchable=function(A){return arguments.length?(o=typeof A=="function"?A:Zs(!!A),m):o},m.extent=function(A){return arguments.length?(t=typeof A=="function"?A:Zs([[+A[0][0],+A[0][1]],[+A[1][0],+A[1][1]]]),m):t},m.scaleExtent=function(A){return arguments.length?(i[0]=+A[0],i[1]=+A[1],m):[i[0],i[1]]},m.translateExtent=function(A){return arguments.length?(s[0][0]=+A[0][0],s[1][0]=+A[1][0],s[0][1]=+A[0][1],s[1][1]=+A[1][1],m):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},m.constrain=function(A){return arguments.length?(n=A,m):n},m.duration=function(A){return arguments.length?(a=+A,m):a},m.interpolate=function(A){return arguments.length?(l=A,m):l},m.on=function(){var A=u.on.apply(u,arguments);return A===u?m:A},m.clickDistance=function(A){return arguments.length?(h=(A=+A)*A,m):Math.sqrt(h)},m.tapDistance=function(A){return arguments.length?(y=+A,m):y},m}const Et={error001:()=>"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,{id:t,sourceHandle:n,targetHandle:r})=>`Couldn't create edge for ${e} handle id: "${e==="source"?n:r}", edge id: ${t}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(e="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${e}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."},mi=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],Og=["Enter"," ","Escape"];var io;(function(e){e.Strict="strict",e.Loose="loose"})(io||(io={}));var Ar;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(Ar||(Ar={}));var yi;(function(e){e.Partial="partial",e.Full="full"})(yi||(yi={}));const Rg={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null};var tr;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(tr||(tr={}));var qs;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(qs||(qs={}));var ae;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(ae||(ae={}));const Mg={[ae.Left]:ae.Right,[ae.Right]:ae.Left,[ae.Top]:ae.Bottom,[ae.Bottom]:ae.Top};function Dg(e){return e===null?null:e?"valid":"invalid"}const Fg=e=>"id"in e&&"source"in e&&"target"in e,OA=e=>"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),qu=e=>"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),bi=(e,t=[0,0])=>{const{width:n,height:r}=Rn(e),o=e.origin??t,i=n*o[0],s=r*o[1];return{x:e.position.x-i,y:e.position.y-s}},RA=(e,t={nodeOrigin:[0,0]})=>{if(process.env.NODE_ENV==="development"&&!t.nodeLookup&&console.warn("Please use `getNodesBounds` from `useReactFlow`/`useSvelteFlow` hook to ensure correct values for sub flows. If not possible, you have to provide a nodeLookup to support sub flows."),e.length===0)return{x:0,y:0,width:0,height:0};const n=e.reduce((r,o)=>{const i=typeof o=="string";let s=!t.nodeLookup&&!i?o:void 0;t.nodeLookup&&(s=i?t.nodeLookup.get(o):qu(o)?o:t.nodeLookup.get(o.id));const a=s?ea(s,t.nodeOrigin):{x:0,y:0,x2:0,y2:0};return Ks(r,a)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return Qs(n)},vi=(e,t={})=>{if(e.size===0)return{x:0,y:0,width:0,height:0};let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0};return e.forEach(r=>{if(t.filter===void 0||t.filter(r)){const o=ea(r);n=Ks(n,o)}}),Qs(n)},jg=(e,t,[n,r,o]=[0,0,1],i=!1,s=!1)=>{const a={...wi(t,[n,r,o]),width:t.width/o,height:t.height/o},l=[];for(const u of e.values()){const{measured:c,selectable:f=!0,hidden:d=!1}=u;if(s&&!f||d)continue;const p=c.width??u.width??u.initialWidth??null,g=c.height??u.height??u.initialHeight??null,h=xi(a,ao(u)),y=(p??0)*(g??0),m=i&&h>0;(!u.internals.handleBounds||m||h>=y||u.dragging)&&l.push(u)}return l},MA=(e,t)=>{const n=new Set;return e.forEach(r=>{n.add(r.id)}),t.filter(r=>n.has(r.source)||n.has(r.target))};function DA(e,t){const n=new Map,r=t!=null&&t.nodes?new Set(t.nodes.map(o=>o.id)):null;return e.forEach(o=>{o.measured.width&&o.measured.height&&((t==null?void 0:t.includeHiddenNodes)||!o.hidden)&&(!r||r.has(o.id))&&n.set(o.id,o)}),n}async function FA({nodes:e,width:t,height:n,panZoom:r,minZoom:o,maxZoom:i},s){if(e.size===0)return Promise.resolve(!0);const a=DA(e,s),l=vi(a),u=Qu(l,t,n,(s==null?void 0:s.minZoom)??o,(s==null?void 0:s.maxZoom)??i,(s==null?void 0:s.padding)??.1);return await r.setViewport(u,{duration:s==null?void 0:s.duration}),Promise.resolve(!0)}function Lg({nodeId:e,nextPosition:t,nodeLookup:n,nodeOrigin:r=[0,0],nodeExtent:o,onError:i}){const s=n.get(e),a=s.parentId?n.get(s.parentId):void 0,{x:l,y:u}=a?a.internals.positionAbsolute:{x:0,y:0},c=s.origin??r;let f=o;if(s.extent==="parent"&&!s.expandParent)if(!a)i==null||i("005",Et.error005());else{const p=a.measured.width,g=a.measured.height;p&&g&&(f=[[l,u],[l+p,u+g]])}else a&&uo(s.extent)&&(f=[[s.extent[0][0]+l,s.extent[0][1]+u],[s.extent[1][0]+l,s.extent[1][1]+u]]);const d=uo(f)?Tr(t,f,s.measured):t;return(s.measured.width===void 0||s.measured.height===void 0)&&(i==null||i("015",Et.error015())),{position:{x:d.x-l+(s.measured.width??0)*c[0],y:d.y-u+(s.measured.height??0)*c[1]},positionAbsolute:d}}async function jA({nodesToRemove:e=[],edgesToRemove:t=[],nodes:n,edges:r,onBeforeDelete:o}){const i=new Set(e.map(d=>d.id)),s=[];for(const d of n){if(d.deletable===!1)continue;const p=i.has(d.id),g=!p&&d.parentId&&s.find(h=>h.id===d.parentId);(p||g)&&s.push(d)}const a=new Set(t.map(d=>d.id)),l=r.filter(d=>d.deletable!==!1),c=MA(s,l);for(const d of l)a.has(d.id)&&!c.find(g=>g.id===d.id)&&c.push(d);if(!o)return{edges:c,nodes:s};const f=await o({nodes:s,edges:c});return typeof f=="boolean"?f?{edges:c,nodes:s}:{edges:[],nodes:[]}:f}const so=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),Tr=(e={x:0,y:0},t,n)=>({x:so(e.x,t[0][0],t[1][0]-((n==null?void 0:n.width)??0)),y:so(e.y,t[0][1],t[1][1]-((n==null?void 0:n.height)??0))});function Bg(e,t,n){const{width:r,height:o}=Rn(n),{x:i,y:s}=n.internals.positionAbsolute;return Tr(e,[[i,s],[i+r,s+o]],t)}const zg=(e,t,n)=>e<t?so(Math.abs(e-t),1,t)/t:e>n?-so(Math.abs(e-n),1,t)/t:0,Vg=(e,t,n=15,r=40)=>{const o=zg(e.x,r,t.width-r)*n,i=zg(e.y,r,t.height-r)*n;return[o,i]},Ks=(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}),Ku=({x:e,y:t,width:n,height:r})=>({x:e,y:t,x2:e+n,y2:t+r}),Qs=({x:e,y:t,x2:n,y2:r})=>({x:e,y:t,width:n-e,height:r-t}),ao=(e,t=[0,0])=>{var o,i;const{x:n,y:r}=qu(e)?e.internals.positionAbsolute:bi(e,t);return{x:n,y:r,width:((o=e.measured)==null?void 0:o.width)??e.width??e.initialWidth??0,height:((i=e.measured)==null?void 0:i.height)??e.height??e.initialHeight??0}},ea=(e,t=[0,0])=>{var o,i;const{x:n,y:r}=qu(e)?e.internals.positionAbsolute:bi(e,t);return{x:n,y:r,x2:n+(((o=e.measured)==null?void 0:o.width)??e.width??e.initialWidth??0),y2:r+(((i=e.measured)==null?void 0:i.height)??e.height??e.initialHeight??0)}},Gg=(e,t)=>Qs(Ks(Ku(e),Ku(t))),xi=(e,t)=>{const n=Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x)),r=Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y));return Math.ceil(n*r)},$g=e=>Zt(e.width)&&Zt(e.height)&&Zt(e.x)&&Zt(e.y),Zt=e=>!isNaN(e)&&isFinite(e),Hg=(e,t)=>{process.env.NODE_ENV==="development"&&console.warn(`[React Flow]: ${t} Help: https://reactflow.dev/error#${e}`)},ta=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),wi=({x:e,y:t},[n,r,o],i=!1,s=[1,1])=>{const a={x:(e-n)/o,y:(t-r)/o};return i?ta(a,s):a},na=({x:e,y:t},[n,r,o])=>({x:e*o+n,y:t*o+r});function lo(e,t){if(typeof e=="number")return Math.floor(t-t/(1+e));if(typeof e=="string"&&e.endsWith("px")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(n)}if(typeof e=="string"&&e.endsWith("%")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(t*n*.01)}return console.error(`[React Flow] The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function LA(e,t,n){if(typeof e=="string"||typeof e=="number"){const r=lo(e,n),o=lo(e,t);return{top:r,right:o,bottom:r,left:o,x:o*2,y:r*2}}if(typeof e=="object"){const r=lo(e.top??e.y??0,n),o=lo(e.bottom??e.y??0,n),i=lo(e.left??e.x??0,t),s=lo(e.right??e.x??0,t);return{top:r,right:s,bottom:o,left:i,x:i+s,y:r+o}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function BA(e,t,n,r,o,i){const{x:s,y:a}=na(e,[t,n,r]),{x:l,y:u}=na({x:e.x+e.width,y:e.y+e.height},[t,n,r]),c=o-l,f=i-u;return{left:Math.floor(s),top:Math.floor(a),right:Math.floor(c),bottom:Math.floor(f)}}const Qu=(e,t,n,r,o,i)=>{const s=LA(i,t,n),a=(t-s.x)/e.width,l=(n-s.y)/e.height,u=Math.min(a,l),c=so(u,r,o),f=e.x+e.width/2,d=e.y+e.height/2,p=t/2-f*c,g=n/2-d*c,h=BA(e,p,g,c,t,n),y={left:Math.min(h.left-s.left,0),top:Math.min(h.top-s.top,0),right:Math.min(h.right-s.right,0),bottom:Math.min(h.bottom-s.bottom,0)};return{x:p-y.left+y.right,y:g-y.top+y.bottom,zoom:c}},ra=()=>{var e;return typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)==null?void 0:e.indexOf("Mac"))>=0};function uo(e){return e!==void 0&&e!=="parent"}function Rn(e){var t,n;return{width:((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth??0,height:((n=e.measured)==null?void 0:n.height)??e.height??e.initialHeight??0}}function Wg(e){var t,n;return(((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth)!==void 0&&(((n=e.measured)==null?void 0:n.height)??e.height??e.initialHeight)!==void 0}function Xg(e,t={width:0,height:0},n,r,o){const i={...e},s=r.get(n);if(s){const a=s.origin||o;i.x+=s.internals.positionAbsolute.x-(t.width??0)*a[0],i.y+=s.internals.positionAbsolute.y-(t.height??0)*a[1]}return i}function Yg(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}function Ci(e,{snapGrid:t=[0,0],snapToGrid:n=!1,transform:r,containerBounds:o}){const{x:i,y:s}=Mn(e),a=wi({x:i-((o==null?void 0:o.left)??0),y:s-((o==null?void 0:o.top)??0)},r),{x:l,y:u}=n?ta(a,t):a;return{xSnapped:l,ySnapped:u,...a}}const ec=e=>({width:e.offsetWidth,height:e.offsetHeight}),Ug=e=>{var t;return((t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e))||(window==null?void 0:window.document)},zA=["INPUT","SELECT","TEXTAREA"];function Zg(e){var r,o;const t=((o=(r=e.composedPath)==null?void 0:r.call(e))==null?void 0:o[0])||e.target;return(t==null?void 0:t.nodeType)!==1?!1:zA.includes(t.nodeName)||t.hasAttribute("contenteditable")||!!t.closest(".nokey")}const Jg=e=>"clientX"in e,Mn=(e,t)=>{var i,s;const n=Jg(e),r=n?e.clientX:(i=e.touches)==null?void 0:i[0].clientX,o=n?e.clientY:(s=e.touches)==null?void 0:s[0].clientY;return{x:r-((t==null?void 0:t.left)??0),y:o-((t==null?void 0:t.top)??0)}},qg=(e,t,n,r,o)=>{const i=t.querySelectorAll(`.${e}`);return!i||!i.length?null:Array.from(i).map(s=>{const a=s.getBoundingClientRect();return{id:s.getAttribute("data-handleid"),type:e,nodeId:o,position:s.getAttribute("data-handlepos"),x:(a.left-n.left)/r,y:(a.top-n.top)/r,...ec(s)}})};function Kg({sourceX:e,sourceY:t,targetX:n,targetY:r,sourceControlX:o,sourceControlY:i,targetControlX:s,targetControlY:a}){const l=e*.125+o*.375+s*.375+n*.125,u=t*.125+i*.375+a*.375+r*.125,c=Math.abs(l-e),f=Math.abs(u-t);return[l,u,c,f]}function oa(e,t){return e>=0?.5*e:t*25*Math.sqrt(-e)}function Qg({pos:e,x1:t,y1:n,x2:r,y2:o,c:i}){switch(e){case ae.Left:return[t-oa(t-r,i),n];case ae.Right:return[t+oa(r-t,i),n];case ae.Top:return[t,n-oa(n-o,i)];case ae.Bottom:return[t,n+oa(o-n,i)]}}function tc({sourceX:e,sourceY:t,sourcePosition:n=ae.Bottom,targetX:r,targetY:o,targetPosition:i=ae.Top,curvature:s=.25}){const[a,l]=Qg({pos:n,x1:e,y1:t,x2:r,y2:o,c:s}),[u,c]=Qg({pos:i,x1:r,y1:o,x2:e,y2:t,c:s}),[f,d,p,g]=Kg({sourceX:e,sourceY:t,targetX:r,targetY:o,sourceControlX:a,sourceControlY:l,targetControlX:u,targetControlY:c});return[`M${e},${t} C${a},${l} ${u},${c} ${r},${o}`,f,d,p,g]}function em({sourceX:e,sourceY:t,targetX:n,targetY:r}){const o=Math.abs(n-e)/2,i=n<e?n+o:n-o,s=Math.abs(r-t)/2,a=r<t?r+s:r-s;return[i,a,o,s]}function VA({sourceNode:e,targetNode:t,selected:n=!1,zIndex:r=0,elevateOnSelect:o=!1}){if(!o)return r;const i=n||t.selected||e.selected,s=Math.max(e.internals.z||0,t.internals.z||0,1e3);return r+(i?s:0)}function GA({sourceNode:e,targetNode:t,width:n,height:r,transform:o}){const i=Ks(ea(e),ea(t));i.x===i.x2&&(i.x2+=1),i.y===i.y2&&(i.y2+=1);const s={x:-o[0]/o[2],y:-o[1]/o[2],width:n/o[2],height:r/o[2]};return xi(s,Qs(i))>0}const $A=({source:e,sourceHandle:t,target:n,targetHandle:r})=>`xy-edge__${e}${t||""}-${n}${r||""}`,HA=(e,t)=>t.some(n=>n.source===e.source&&n.target===e.target&&(n.sourceHandle===e.sourceHandle||!n.sourceHandle&&!e.sourceHandle)&&(n.targetHandle===e.targetHandle||!n.targetHandle&&!e.targetHandle)),WA=(e,t)=>{if(!e.source||!e.target)return Hg("006",Et.error006()),t;let n;return Fg(e)?n={...e}:n={...e,id:$A(e)},HA(n,t)?t:(n.sourceHandle===null&&delete n.sourceHandle,n.targetHandle===null&&delete n.targetHandle,t.concat(n))};function tm({sourceX:e,sourceY:t,targetX:n,targetY:r}){const[o,i,s,a]=em({sourceX:e,sourceY:t,targetX:n,targetY:r});return[`M ${e},${t}L ${n},${r}`,o,i,s,a]}const nm={[ae.Left]:{x:-1,y:0},[ae.Right]:{x:1,y:0},[ae.Top]:{x:0,y:-1},[ae.Bottom]:{x:0,y:1}},XA=({source:e,sourcePosition:t=ae.Bottom,target:n})=>t===ae.Left||t===ae.Right?e.x<n.x?{x:1,y:0}:{x:-1,y:0}:e.y<n.y?{x:0,y:1}:{x:0,y:-1},rm=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function YA({source:e,sourcePosition:t=ae.Bottom,target:n,targetPosition:r=ae.Top,center:o,offset:i}){const s=nm[t],a=nm[r],l={x:e.x+s.x*i,y:e.y+s.y*i},u={x:n.x+a.x*i,y:n.y+a.y*i},c=XA({source:l,sourcePosition:t,target:u}),f=c.x!==0?"x":"y",d=c[f];let p=[],g,h;const y={x:0,y:0},m={x:0,y:0},[x,v,C,S]=em({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(s[f]*a[f]===-1){g=o.x??x,h=o.y??v;const I=[{x:g,y:l.y},{x:g,y:u.y}],O=[{x:l.x,y:h},{x:u.x,y:h}];s[f]===d?p=f==="x"?I:O:p=f==="x"?O:I}else{const I=[{x:l.x,y:u.y}],O=[{x:u.x,y:l.y}];if(f==="x"?p=s.x===d?O:I:p=s.y===d?I:O,t===r){const L=Math.abs(e[f]-n[f]);if(L<=i){const A=Math.min(i-1,i-L);s[f]===d?y[f]=(l[f]>e[f]?-1:1)*A:m[f]=(u[f]>n[f]?-1:1)*A}}if(t!==r){const L=f==="x"?"y":"x",A=s[f]===a[L],j=l[L]>u[L],D=l[L]<u[L];(s[f]===1&&(!A&&j||A&&D)||s[f]!==1&&(!A&&D||A&&j))&&(p=f==="x"?I:O)}const M={x:l.x+y.x,y:l.y+y.y},w={x:u.x+m.x,y:u.y+m.y},N=Math.max(Math.abs(M.x-p[0].x),Math.abs(w.x-p[0].x)),R=Math.max(Math.abs(M.y-p[0].y),Math.abs(w.y-p[0].y));N>=R?(g=(M.x+w.x)/2,h=p[0].y):(g=p[0].x,h=(M.y+w.y)/2)}return[[e,{x:l.x+y.x,y:l.y+y.y},...p,{x:u.x+m.x,y:u.y+m.y},n],g,h,C,S]}function UA(e,t,n,r){const o=Math.min(rm(e,t)/2,rm(t,n)/2,r),{x:i,y:s}=t;if(e.x===i&&i===n.x||e.y===s&&s===n.y)return`L${i} ${s}`;if(e.y===s){const u=e.x<n.x?-1:1,c=e.y<n.y?1:-1;return`L ${i+o*u},${s}Q ${i},${s} ${i},${s+o*c}`}const a=e.x<n.x?1:-1,l=e.y<n.y?-1:1;return`L ${i},${s+o*l}Q ${i},${s} ${i+o*a},${s}`}function nc({sourceX:e,sourceY:t,sourcePosition:n=ae.Bottom,targetX:r,targetY:o,targetPosition:i=ae.Top,borderRadius:s=5,centerX:a,centerY:l,offset:u=20}){const[c,f,d,p,g]=YA({source:{x:e,y:t},sourcePosition:n,target:{x:r,y:o},targetPosition:i,center:{x:a,y:l},offset:u});return[c.reduce((y,m,x)=>{let v="";return x>0&&x<c.length-1?v=UA(c[x-1],m,c[x+1],s):v=`${x===0?"M":"L"}${m.x} ${m.y}`,y+=v,y},""),f,d,p,g]}function om(e){var t;return e&&!!(e.internals.handleBounds||(t=e.handles)!=null&&t.length)&&!!(e.measured.width||e.width||e.initialWidth)}function ZA(e){var f;const{sourceNode:t,targetNode:n}=e;if(!om(t)||!om(n))return null;const r=t.internals.handleBounds||im(t.handles),o=n.internals.handleBounds||im(n.handles),i=sm((r==null?void 0:r.source)??[],e.sourceHandle),s=sm(e.connectionMode===io.Strict?(o==null?void 0:o.target)??[]:((o==null?void 0:o.target)??[]).concat((o==null?void 0:o.source)??[]),e.targetHandle);if(!i||!s)return(f=e.onError)==null||f.call(e,"008",Et.error008(i?"target":"source",{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle})),null;const a=(i==null?void 0:i.position)||ae.Bottom,l=(s==null?void 0:s.position)||ae.Top,u=_i(t,i,a),c=_i(n,s,l);return{sourceX:u.x,sourceY:u.y,targetX:c.x,targetY:c.y,sourcePosition:a,targetPosition:l}}function im(e){if(!e)return null;const t=[],n=[];for(const r of e)r.width=r.width??1,r.height=r.height??1,r.type==="source"?t.push(r):r.type==="target"&&n.push(r);return{source:t,target:n}}function _i(e,t,n=ae.Left,r=!1){const o=((t==null?void 0:t.x)??0)+e.internals.positionAbsolute.x,i=((t==null?void 0:t.y)??0)+e.internals.positionAbsolute.y,{width:s,height:a}=t??Rn(e);if(r)return{x:o+s/2,y:i+a/2};switch((t==null?void 0:t.position)??n){case ae.Top:return{x:o+s/2,y:i};case ae.Right:return{x:o+s,y:i+a/2};case ae.Bottom:return{x:o+s/2,y:i+a};case ae.Left:return{x:o,y:i+a/2}}}function sm(e,t){return e&&(t?e.find(n=>n.id===t):e[0])||null}function rc(e,t){return e?typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(r=>`${r}=${e[r]}`).join("&")}`:""}function JA(e,{id:t,defaultColor:n,defaultMarkerStart:r,defaultMarkerEnd:o}){const i=new Set;return e.reduce((s,a)=>([a.markerStart||r,a.markerEnd||o].forEach(l=>{if(l&&typeof l=="object"){const u=rc(l,t);i.has(u)||(s.push({id:u,color:l.color||n,...l}),i.add(u))}}),s),[]).sort((s,a)=>s.id.localeCompare(a.id))}const oc={nodeOrigin:[0,0],nodeExtent:mi,elevateNodesOnSelect:!0,defaults:{}},qA={...oc,checkEquality:!0};function ic(e,t){const n={...e};for(const r in t)t[r]!==void 0&&(n[r]=t[r]);return n}function KA(e,t,n){const r=ic(oc,n);for(const o of e.values())if(o.parentId)ac(o,e,t,r);else{const i=bi(o,r.nodeOrigin),s=uo(o.extent)?o.extent:r.nodeExtent,a=Tr(i,s,Rn(o));o.internals.positionAbsolute=a}}function sc(e,t,n,r){var l,u;const o=ic(qA,r);let i=!0;const s=new Map(t),a=o!=null&&o.elevateNodesOnSelect?1e3:0;t.clear(),n.clear();for(const c of e){let f=s.get(c.id);if(o.checkEquality&&c===(f==null?void 0:f.internals.userNode))t.set(c.id,f);else{const d=bi(c,o.nodeOrigin),p=uo(c.extent)?c.extent:o.nodeExtent,g=Tr(d,p,Rn(c));f={...o.defaults,...c,measured:{width:(l=c.measured)==null?void 0:l.width,height:(u=c.measured)==null?void 0:u.height},internals:{positionAbsolute:g,handleBounds:c.measured?f==null?void 0:f.internals.handleBounds:void 0,z:am(c,a),userNode:c}},t.set(c.id,f)}(!f.measured||!f.measured.width||!f.measured.height)&&!f.hidden&&(i=!1),c.parentId&&ac(f,t,n,r)}return i}function QA(e,t){if(!e.parentId)return;const n=t.get(e.parentId);n?n.set(e.id,e):t.set(e.parentId,new Map([[e.id,e]]))}function ac(e,t,n,r){const{elevateNodesOnSelect:o,nodeOrigin:i,nodeExtent:s}=ic(oc,r),a=e.parentId,l=t.get(a);if(!l){console.warn(`Parent node ${a} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}QA(e,n);const u=o?1e3:0,{x:c,y:f,z:d}=eT(e,l,i,s,u),{positionAbsolute:p}=e.internals,g=c!==p.x||f!==p.y;(g||d!==e.internals.z)&&t.set(e.id,{...e,internals:{...e.internals,positionAbsolute:g?{x:c,y:f}:p,z:d}})}function am(e,t){return(Zt(e.zIndex)?e.zIndex:0)+(e.selected?t:0)}function eT(e,t,n,r,o){const{x:i,y:s}=t.internals.positionAbsolute,a=Rn(e),l=bi(e,n),u=uo(e.extent)?Tr(l,e.extent,a):l;let c=Tr({x:i+u.x,y:s+u.y},r,a);e.extent==="parent"&&(c=Bg(c,a,t));const f=am(e,o),d=t.internals.z??0;return{x:c.x,y:c.y,z:d>f?d:f}}function lc(e,t,n,r=[0,0]){var s;const o=[],i=new Map;for(const a of e){const l=t.get(a.parentId);if(!l)continue;const u=((s=i.get(a.parentId))==null?void 0:s.expandedRect)??ao(l),c=Gg(u,a.rect);i.set(a.parentId,{expandedRect:c,parent:l})}return i.size>0&&i.forEach(({expandedRect:a,parent:l},u)=>{var v;const c=l.internals.positionAbsolute,f=Rn(l),d=l.origin??r,p=a.x<c.x?Math.round(Math.abs(c.x-a.x)):0,g=a.y<c.y?Math.round(Math.abs(c.y-a.y)):0,h=Math.max(f.width,Math.round(a.width)),y=Math.max(f.height,Math.round(a.height)),m=(h-f.width)*d[0],x=(y-f.height)*d[1];(p>0||g>0||m||x)&&(o.push({id:u,type:"position",position:{x:l.position.x-p+m,y:l.position.y-g+x}}),(v=n.get(u))==null||v.forEach(C=>{e.some(S=>S.id===C.id)||o.push({id:C.id,type:"position",position:{x:C.position.x+p,y:C.position.y+g}})})),(f.width<a.width||f.height<a.height||p||g)&&o.push({id:u,type:"dimensions",setAttributes:!0,dimensions:{width:h+(p?d[0]*p-m:0),height:y+(g?d[1]*g-x:0)}})}),o}function tT(e,t,n,r,o,i){const s=r==null?void 0:r.querySelector(".xyflow__viewport");let a=!1;if(!s)return{changes:[],updatedInternals:a};const l=[],u=window.getComputedStyle(s),{m22:c}=new window.DOMMatrixReadOnly(u.transform),f=[];for(const d of e.values()){const p=t.get(d.id);if(!p)continue;if(p.hidden){t.set(p.id,{...p,internals:{...p.internals,handleBounds:void 0}}),a=!0;continue}const g=ec(d.nodeElement),h=p.measured.width!==g.width||p.measured.height!==g.height;if(!!(g.width&&g.height&&(h||!p.internals.handleBounds||d.force))){const m=d.nodeElement.getBoundingClientRect(),x=uo(p.extent)?p.extent:i;let{positionAbsolute:v}=p.internals;p.parentId&&p.extent==="parent"?v=Bg(v,g,t.get(p.parentId)):x&&(v=Tr(v,x,g));const C={...p,measured:g,internals:{...p.internals,positionAbsolute:v,handleBounds:{source:qg("source",d.nodeElement,m,c,p.id),target:qg("target",d.nodeElement,m,c,p.id)}}};t.set(p.id,C),p.parentId&&ac(C,t,n,{nodeOrigin:o}),a=!0,h&&(l.push({id:p.id,type:"dimensions",dimensions:g}),p.expandParent&&p.parentId&&f.push({id:p.id,parentId:p.parentId,rect:ao(C,o)}))}}if(f.length>0){const d=lc(f,t,n,o);l.push(...d)}return{changes:l,updatedInternals:a}}async function nT({delta:e,panZoom:t,transform:n,translateExtent:r,width:o,height:i}){if(!t||!e.x&&!e.y)return Promise.resolve(!1);const s=await t.setViewportConstrained({x:n[0]+e.x,y:n[1]+e.y,zoom:n[2]},[[0,0],[o,i]],r),a=!!s&&(s.x!==n[0]||s.y!==n[1]||s.k!==n[2]);return Promise.resolve(a)}function lm(e,t,n,r,o,i){let s=o;const a=r.get(s)||new Map;r.set(s,a.set(n,t)),s=`${o}-${e}`;const l=r.get(s)||new Map;if(r.set(s,l.set(n,t)),i){s=`${o}-${e}-${i}`;const u=r.get(s)||new Map;r.set(s,u.set(n,t))}}function um(e,t,n){e.clear(),t.clear();for(const r of n){const{source:o,target:i,sourceHandle:s=null,targetHandle:a=null}=r,l={edgeId:r.id,source:o,target:i,sourceHandle:s,targetHandle:a},u=`${o}-${s}--${i}-${a}`,c=`${i}-${a}--${o}-${s}`;lm("source",l,c,e,o,s),lm("target",l,u,e,i,a),t.set(r.id,r)}}function cm(e,t){if(!e.parentId)return!1;const n=t.get(e.parentId);return n?n.selected?!0:cm(n,t):!1}function fm(e,t,n){var o;let r=e;do{if((o=r==null?void 0:r.matches)!=null&&o.call(r,t))return!0;if(r===n)return!1;r=r==null?void 0:r.parentElement}while(r);return!1}function rT(e,t,n,r){const o=new Map;for(const[i,s]of e)if((s.selected||s.id===r)&&(!s.parentId||!cm(s,e))&&(s.draggable||t&&typeof s.draggable>"u")){const a=e.get(i);a&&o.set(i,{id:i,position:a.position||{x:0,y:0},distance:{x:n.x-a.internals.positionAbsolute.x,y:n.y-a.internals.positionAbsolute.y},extent:a.extent,parentId:a.parentId,origin:a.origin,expandParent:a.expandParent,internals:{positionAbsolute:a.internals.positionAbsolute||{x:0,y:0}},measured:{width:a.measured.width??0,height:a.measured.height??0}})}return o}function uc({nodeId:e,dragItems:t,nodeLookup:n,dragging:r=!0}){var s,a,l;const o=[];for(const[u,c]of t){const f=(s=n.get(u))==null?void 0:s.internals.userNode;f&&o.push({...f,position:c.position,dragging:r})}if(!e)return[o[0],o];const i=(a=n.get(e))==null?void 0:a.internals.userNode;return[i?{...i,position:((l=t.get(e))==null?void 0:l.position)||i.position,dragging:r}:o[0],o]}function oT({onNodeMouseDown:e,getStoreItems:t,onDragStart:n,onDrag:r,onDragStop:o}){let i={x:null,y:null},s=0,a=new Map,l=!1,u={x:0,y:0},c=null,f=!1,d=null,p=!1;function g({noDragClassName:y,handleSelector:m,domNode:x,isSelectable:v,nodeId:C,nodeClickDistance:S=0}){d=St(x);function E({x:w,y:N},R){const{nodeLookup:L,nodeExtent:A,snapGrid:j,snapToGrid:D,nodeOrigin:z,onNodeDrag:V,onSelectionDrag:F,onError:_,updateNodePositions:G}=t();i={x:w,y:N};let $=!1,P={x:0,y:0,x2:0,y2:0};if(a.size>1&&A){const H=vi(a);P=Ku(H)}for(const[H,J]of a){if(!L.has(H))continue;let W={x:w-J.distance.x,y:N-J.distance.y};D&&(W=ta(W,j));let X=[[A[0][0],A[0][1]],[A[1][0],A[1][1]]];if(a.size>1&&A&&!J.extent){const{positionAbsolute:ne}=J.internals,oe=ne.x-P.x+A[0][0],Z=ne.x+J.measured.width-P.x2+A[1][0],ce=ne.y-P.y+A[0][1],pe=ne.y+J.measured.height-P.y2+A[1][1];X=[[oe,ce],[Z,pe]]}const{position:U,positionAbsolute:Q}=Lg({nodeId:H,nextPosition:W,nodeLookup:L,nodeExtent:X,nodeOrigin:z,onError:_});$=$||J.position.x!==U.x||J.position.y!==U.y,J.position=U,J.internals.positionAbsolute=Q}if($&&(G(a,!0),R&&(r||V||!C&&F))){const[H,J]=uc({nodeId:C,dragItems:a,nodeLookup:L});r==null||r(R,a,H,J),V==null||V(R,H,J),C||F==null||F(R,J)}}async function I(){if(!c)return;const{transform:w,panBy:N,autoPanSpeed:R,autoPanOnNodeDrag:L}=t();if(!L){l=!1,cancelAnimationFrame(s);return}const[A,j]=Vg(u,c,R);(A!==0||j!==0)&&(i.x=(i.x??0)-A/w[2],i.y=(i.y??0)-j/w[2],await N({x:A,y:j})&&E(i,null)),s=requestAnimationFrame(I)}function O(w){var $;const{nodeLookup:N,multiSelectionActive:R,nodesDraggable:L,transform:A,snapGrid:j,snapToGrid:D,selectNodesOnDrag:z,onNodeDragStart:V,onSelectionDragStart:F,unselectNodesAndEdges:_}=t();f=!0,(!z||!v)&&!R&&C&&(($=N.get(C))!=null&&$.selected||_()),v&&z&&C&&(e==null||e(C));const G=Ci(w.sourceEvent,{transform:A,snapGrid:j,snapToGrid:D,containerBounds:c});if(i=G,a=rT(N,L,G,C),a.size>0&&(n||V||!C&&F)){const[P,H]=uc({nodeId:C,dragItems:a,nodeLookup:N});n==null||n(w.sourceEvent,a,P,H),V==null||V(w.sourceEvent,P,H),C||F==null||F(w.sourceEvent,H)}}const M=eg().clickDistance(S).on("start",w=>{const{domNode:N,nodeDragThreshold:R,transform:L,snapGrid:A,snapToGrid:j}=t();c=(N==null?void 0:N.getBoundingClientRect())||null,p=!1,R===0&&O(w),i=Ci(w.sourceEvent,{transform:L,snapGrid:A,snapToGrid:j,containerBounds:c}),u=Mn(w.sourceEvent,c)}).on("drag",w=>{const{autoPanOnNodeDrag:N,transform:R,snapGrid:L,snapToGrid:A,nodeDragThreshold:j,nodeLookup:D}=t(),z=Ci(w.sourceEvent,{transform:R,snapGrid:L,snapToGrid:A,containerBounds:c});if((w.sourceEvent.type==="touchmove"&&w.sourceEvent.touches.length>1||C&&!D.has(C))&&(p=!0),!p){if(!l&&N&&f&&(l=!0,I()),!f){const V=z.xSnapped-(i.x??0),F=z.ySnapped-(i.y??0);Math.sqrt(V*V+F*F)>j&&O(w)}(i.x!==z.xSnapped||i.y!==z.ySnapped)&&a&&f&&(u=Mn(w.sourceEvent,c),E(z,w.sourceEvent))}}).on("end",w=>{if(!(!f||p)&&(l=!1,f=!1,cancelAnimationFrame(s),a.size>0)){const{nodeLookup:N,updateNodePositions:R,onNodeDragStop:L,onSelectionDragStop:A}=t();if(R(a,!1),o||L||!C&&A){const[j,D]=uc({nodeId:C,dragItems:a,nodeLookup:N,dragging:!1});o==null||o(w.sourceEvent,a,j,D),L==null||L(w.sourceEvent,j,D),C||A==null||A(w.sourceEvent,D)}}}).filter(w=>{const N=w.target;return!w.button&&(!y||!fm(N,`.${y}`,x))&&(!m||fm(N,m,x))});d.call(M)}function h(){d==null||d.on(".drag",null)}return{update:g,destroy:h}}function iT(e,t,n){const r=[],o={x:e.x-n,y:e.y-n,width:n*2,height:n*2};for(const i of t.values())xi(o,ao(i))>0&&r.push(i);return r}const sT=250;function aT(e,t,n,r){var a,l;let o=[],i=1/0;const s=iT(e,n,t+sT);for(const u of s){const c=[...((a=u.internals.handleBounds)==null?void 0:a.source)??[],...((l=u.internals.handleBounds)==null?void 0:l.target)??[]];for(const f of c){if(r.nodeId===f.nodeId&&r.type===f.type&&r.id===f.id)continue;const{x:d,y:p}=_i(u,f,f.position,!0),g=Math.sqrt(Math.pow(d-e.x,2)+Math.pow(p-e.y,2));g>t||(g<i?(o=[{...f,x:d,y:p}],i=g):g===i&&o.push({...f,x:d,y:p}))}}if(!o.length)return null;if(o.length>1){const u=r.type==="source"?"target":"source";return o.find(c=>c.type===u)??o[0]}return o[0]}function dm(e,t,n,r,o,i=!1){var u,c,f;const s=r.get(e);if(!s)return null;const a=o==="strict"?(u=s.internals.handleBounds)==null?void 0:u[t]:[...((c=s.internals.handleBounds)==null?void 0:c.source)??[],...((f=s.internals.handleBounds)==null?void 0:f.target)??[]],l=(n?a==null?void 0:a.find(d=>d.id===n):a==null?void 0:a[0])??null;return l&&i?{...l,..._i(s,l,l.position,!0)}:l}function pm(e,t){return e||(t!=null&&t.classList.contains("target")?"target":t!=null&&t.classList.contains("source")?"source":null)}function lT(e,t){let n=null;return t?n=!0:e&&!t&&(n=!1),n}const hm=()=>!0;function uT(e,{connectionMode:t,connectionRadius:n,handleId:r,nodeId:o,edgeUpdaterType:i,isTarget:s,domNode:a,nodeLookup:l,lib:u,autoPanOnConnect:c,flowId:f,panBy:d,cancelConnection:p,onConnectStart:g,onConnect:h,onConnectEnd:y,isValidConnection:m=hm,onReconnectEnd:x,updateConnection:v,getTransform:C,getFromHandle:S,autoPanSpeed:E}){const I=Ug(e.target);let O=0,M;const{x:w,y:N}=Mn(e),R=I==null?void 0:I.elementFromPoint(w,N),L=pm(i,R),A=a==null?void 0:a.getBoundingClientRect();if(!A||!L)return;const j=dm(o,L,r,l,t);if(!j)return;let D=Mn(e,A),z=!1,V=null,F=!1,_=null;function G(){if(!c||!A)return;const[Q,ne]=Vg(D,A,E);d({x:Q,y:ne}),O=requestAnimationFrame(G)}const $={...j,nodeId:o,type:L,position:j.position},P=l.get(o),J={inProgress:!0,isValid:null,from:_i(P,$,ae.Left,!0),fromHandle:$,fromPosition:$.position,fromNode:P,to:D,toHandle:null,toPosition:Mg[$.position],toNode:null};v(J);let W=J;g==null||g(e,{nodeId:o,handleId:r,handleType:L});function X(Q){if(!S()||!$){U(Q);return}const ne=C();D=Mn(Q,A),M=aT(wi(D,ne,!1,[1,1]),n,l,$),z||(G(),z=!0);const oe=gm(Q,{handle:M,connectionMode:t,fromNodeId:o,fromHandleId:r,fromType:s?"target":"source",isValidConnection:m,doc:I,lib:u,flowId:f,nodeLookup:l});_=oe.handleDomNode,V=oe.connection,F=lT(!!M,oe.isValid);const Z={...W,isValid:F,to:M&&F?na({x:M.x,y:M.y},ne):D,toHandle:oe.toHandle,toPosition:F&&oe.toHandle?oe.toHandle.position:Mg[$.position],toNode:oe.toHandle?l.get(oe.toHandle.nodeId):null};F&&M&&W.toHandle&&Z.toHandle&&W.toHandle.type===Z.toHandle.type&&W.toHandle.nodeId===Z.toHandle.nodeId&&W.toHandle.id===Z.toHandle.id&&W.to.x===Z.to.x&&W.to.y===Z.to.y||(v(Z),W=Z)}function U(Q){(M||_)&&V&&F&&(h==null||h(V));const{inProgress:ne,...oe}=W,Z={...oe,toPosition:W.toHandle?W.toPosition:null};y==null||y(Q,Z),i&&(x==null||x(Q,Z)),p(),cancelAnimationFrame(O),z=!1,F=!1,V=null,_=null,I.removeEventListener("mousemove",X),I.removeEventListener("mouseup",U),I.removeEventListener("touchmove",X),I.removeEventListener("touchend",U)}I.addEventListener("mousemove",X),I.addEventListener("mouseup",U),I.addEventListener("touchmove",X),I.addEventListener("touchend",U)}function gm(e,{handle:t,connectionMode:n,fromNodeId:r,fromHandleId:o,fromType:i,doc:s,lib:a,flowId:l,isValidConnection:u=hm,nodeLookup:c}){const f=i==="target",d=t?s.querySelector(`.${a}-flow__handle[data-id="${l}-${t==null?void 0:t.nodeId}-${t==null?void 0:t.id}-${t==null?void 0:t.type}"]`):null,{x:p,y:g}=Mn(e),h=s.elementFromPoint(p,g),y=h!=null&&h.classList.contains(`${a}-flow__handle`)?h:d,m={handleDomNode:y,isValid:!1,connection:null,toHandle:null};if(y){const x=pm(void 0,y),v=y.getAttribute("data-nodeid"),C=y.getAttribute("data-handleid"),S=y.classList.contains("connectable"),E=y.classList.contains("connectableend");if(!v||!x)return m;const I={source:f?v:r,sourceHandle:f?C:o,target:f?r:v,targetHandle:f?o:C};m.connection=I;const M=S&&E&&(n===io.Strict?f&&x==="source"||!f&&x==="target":v!==r||C!==o);m.isValid=M&&u(I),m.toHandle=dm(v,x,C,c,n,!1)}return m}const cc={onPointerDown:uT,isValid:gm};function cT({domNode:e,panZoom:t,getTransform:n,getViewScale:r}){const o=St(e);function i({translateExtent:a,width:l,height:u,zoomStep:c=10,pannable:f=!0,zoomable:d=!0,inversePan:p=!1}){const g=v=>{const C=n();if(v.sourceEvent.type!=="wheel"||!t)return;const S=-v.sourceEvent.deltaY*(v.sourceEvent.deltaMode===1?.05:v.sourceEvent.deltaMode?1:.002)*c,E=C[2]*Math.pow(2,S);t.scaleTo(E)};let h=[0,0];const y=v=>{(v.sourceEvent.type==="mousedown"||v.sourceEvent.type==="touchstart")&&(h=[v.sourceEvent.clientX??v.sourceEvent.touches[0].clientX,v.sourceEvent.clientY??v.sourceEvent.touches[0].clientY])},m=v=>{const C=n();if(v.sourceEvent.type!=="mousemove"&&v.sourceEvent.type!=="touchmove"||!t)return;const S=[v.sourceEvent.clientX??v.sourceEvent.touches[0].clientX,v.sourceEvent.clientY??v.sourceEvent.touches[0].clientY],E=[S[0]-h[0],S[1]-h[1]];h=S;const I=r()*Math.max(C[2],Math.log(C[2]))*(p?-1:1),O={x:C[0]-E[0]*I,y:C[1]-E[1]*I},M=[[0,0],[l,u]];t.setViewportConstrained({x:O.x,y:O.y,zoom:C[2]},M,a)},x=Pg().on("start",y).on("zoom",f?m:null).on("zoom.wheel",d?g:null);o.call(x,{})}function s(){o.on("zoom",null)}return{update:i,destroy:s,pointer:Xt}}const fT=(e,t)=>e.x!==t.x||e.y!==t.y||e.zoom!==t.k,ia=e=>({x:e.x,y:e.y,zoom:e.k}),fc=({x:e,y:t,zoom:n})=>Js.translate(e,t).scale(n),co=(e,t)=>e.target.closest(`.${t}`),mm=(e,t)=>t===2&&Array.isArray(e)&&e.includes(2),dc=(e,t=0,n=()=>{})=>{const r=typeof t=="number"&&t>0;return r||n(),r?e.transition().duration(t).on("end",n):e},ym=e=>{const t=e.ctrlKey&&ra()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*t};function dT({zoomPanValues:e,noWheelClassName:t,d3Selection:n,d3Zoom:r,panOnScrollMode:o,panOnScrollSpeed:i,zoomOnPinch:s,onPanZoomStart:a,onPanZoom:l,onPanZoomEnd:u}){return c=>{if(co(c,t))return!1;c.preventDefault(),c.stopImmediatePropagation();const f=n.property("__zoom").k||1;if(c.ctrlKey&&s){const y=Xt(c),m=ym(c),x=f*Math.pow(2,m);r.scaleTo(n,x,y,c);return}const d=c.deltaMode===1?20:1;let p=o===Ar.Vertical?0:c.deltaX*d,g=o===Ar.Horizontal?0:c.deltaY*d;!ra()&&c.shiftKey&&o!==Ar.Vertical&&(p=c.deltaY*d,g=0),r.translateBy(n,-(p/f)*i,-(g/f)*i,{internal:!0});const h=ia(n.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling||(e.isPanScrolling=!0,a==null||a(c,h)),e.isPanScrolling&&(l==null||l(c,h),e.panScrollTimeout=setTimeout(()=>{u==null||u(c,h),e.isPanScrolling=!1},150))}}function pT({noWheelClassName:e,preventScrolling:t,d3ZoomHandler:n}){return function(r,o){const i=r.type==="wheel",s=!t&&i&&!r.ctrlKey,a=co(r,e);if(r.ctrlKey&&i&&a&&r.preventDefault(),s||a)return null;r.preventDefault(),n.call(this,r,o)}}function hT({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:n}){return r=>{var i,s,a;if((i=r.sourceEvent)!=null&&i.internal)return;const o=ia(r.transform);e.mouseButton=((s=r.sourceEvent)==null?void 0:s.button)||0,e.isZoomingOrPanning=!0,e.prevViewport=o,((a=r.sourceEvent)==null?void 0:a.type)==="mousedown"&&t(!0),n&&(n==null||n(r.sourceEvent,o))}}function gT({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:n,onTransformChange:r,onPanZoom:o}){return i=>{var s,a;e.usedRightMouseButton=!!(n&&mm(t,e.mouseButton??0)),(s=i.sourceEvent)!=null&&s.sync||r([i.transform.x,i.transform.y,i.transform.k]),o&&!((a=i.sourceEvent)!=null&&a.internal)&&(o==null||o(i.sourceEvent,ia(i.transform)))}}function mT({zoomPanValues:e,panOnDrag:t,panOnScroll:n,onDraggingChange:r,onPanZoomEnd:o,onPaneContextMenu:i}){return s=>{var a;if(!((a=s.sourceEvent)!=null&&a.internal)&&(e.isZoomingOrPanning=!1,i&&mm(t,e.mouseButton??0)&&!e.usedRightMouseButton&&s.sourceEvent&&i(s.sourceEvent),e.usedRightMouseButton=!1,r(!1),o&&fT(e.prevViewport,s.transform))){const l=ia(s.transform);e.prevViewport=l,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{o==null||o(s.sourceEvent,l)},n?150:0)}}}function yT({zoomActivationKeyPressed:e,zoomOnScroll:t,zoomOnPinch:n,panOnDrag:r,panOnScroll:o,zoomOnDoubleClick:i,userSelectionActive:s,noWheelClassName:a,noPanClassName:l,lib:u}){return c=>{var g;const f=e||t,d=n&&c.ctrlKey;if(c.button===1&&c.type==="mousedown"&&(co(c,`${u}-flow__node`)||co(c,`${u}-flow__edge`)))return!0;if(!r&&!f&&!o&&!i&&!n||s||co(c,a)&&c.type==="wheel"||co(c,l)&&(c.type!=="wheel"||o&&c.type==="wheel"&&!e)||!n&&c.ctrlKey&&c.type==="wheel")return!1;if(!n&&c.type==="touchstart"&&((g=c.touches)==null?void 0:g.length)>1)return c.preventDefault(),!1;if(!f&&!o&&!d&&c.type==="wheel"||!r&&(c.type==="mousedown"||c.type==="touchstart")||Array.isArray(r)&&!r.includes(c.button)&&c.type==="mousedown")return!1;const p=Array.isArray(r)&&r.includes(c.button)||!c.button||c.button<=1;return(!c.ctrlKey||c.type==="wheel")&&p}}function bT({domNode:e,minZoom:t,maxZoom:n,paneClickDistance:r,translateExtent:o,viewport:i,onPanZoom:s,onPanZoomStart:a,onPanZoomEnd:l,onDraggingChange:u}){const c={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{x:0,y:0,zoom:0},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},f=e.getBoundingClientRect(),d=Pg().clickDistance(!Zt(r)||r<0?0:r).scaleExtent([t,n]).translateExtent(o),p=St(e).call(d);v({x:i.x,y:i.y,zoom:so(i.zoom,t,n)},[[0,0],[f.width,f.height]],o);const g=p.on("wheel.zoom"),h=p.on("dblclick.zoom");d.wheelDelta(ym);function y(R,L){return p?new Promise(A=>{d==null||d.transform(dc(p,L==null?void 0:L.duration,()=>A(!0)),R)}):Promise.resolve(!1)}function m({noWheelClassName:R,noPanClassName:L,onPaneContextMenu:A,userSelectionActive:j,panOnScroll:D,panOnDrag:z,panOnScrollMode:V,panOnScrollSpeed:F,preventScrolling:_,zoomOnPinch:G,zoomOnScroll:$,zoomOnDoubleClick:P,zoomActivationKeyPressed:H,lib:J,onTransformChange:W}){j&&!c.isZoomingOrPanning&&x();const U=D&&!H&&!j?dT({zoomPanValues:c,noWheelClassName:R,d3Selection:p,d3Zoom:d,panOnScrollMode:V,panOnScrollSpeed:F,zoomOnPinch:G,onPanZoomStart:a,onPanZoom:s,onPanZoomEnd:l}):pT({noWheelClassName:R,preventScrolling:_,d3ZoomHandler:g});if(p.on("wheel.zoom",U,{passive:!1}),!j){const ne=hT({zoomPanValues:c,onDraggingChange:u,onPanZoomStart:a});d.on("start",ne);const oe=gT({zoomPanValues:c,panOnDrag:z,onPaneContextMenu:!!A,onPanZoom:s,onTransformChange:W});d.on("zoom",oe);const Z=mT({zoomPanValues:c,panOnDrag:z,panOnScroll:D,onPaneContextMenu:A,onPanZoomEnd:l,onDraggingChange:u});d.on("end",Z)}const Q=yT({zoomActivationKeyPressed:H,panOnDrag:z,zoomOnScroll:$,panOnScroll:D,zoomOnDoubleClick:P,zoomOnPinch:G,userSelectionActive:j,noPanClassName:L,noWheelClassName:R,lib:J});d.filter(Q),P?p.on("dblclick.zoom",h):p.on("dblclick.zoom",null)}function x(){d.on("zoom",null)}async function v(R,L,A){const j=fc(R),D=d==null?void 0:d.constrain()(j,L,A);return D&&await y(D),new Promise(z=>z(D))}async function C(R,L){const A=fc(R);return await y(A,L),new Promise(j=>j(A))}function S(R){if(p){const L=fc(R),A=p.property("__zoom");(A.k!==R.zoom||A.x!==R.x||A.y!==R.y)&&(d==null||d.transform(p,L,null,{sync:!0}))}}function E(){const R=p?Tg(p.node()):{x:0,y:0,k:1};return{x:R.x,y:R.y,zoom:R.k}}function I(R,L){return p?new Promise(A=>{d==null||d.scaleTo(dc(p,L==null?void 0:L.duration,()=>A(!0)),R)}):Promise.resolve(!1)}function O(R,L){return p?new Promise(A=>{d==null||d.scaleBy(dc(p,L==null?void 0:L.duration,()=>A(!0)),R)}):Promise.resolve(!1)}function M(R){d==null||d.scaleExtent(R)}function w(R){d==null||d.translateExtent(R)}function N(R){const L=!Zt(R)||R<0?0:R;d==null||d.clickDistance(L)}return{update:m,destroy:x,setViewport:C,setViewportConstrained:v,getViewport:E,scaleTo:I,scaleBy:O,setScaleExtent:M,setTranslateExtent:w,syncViewport:S,setClickDistance:N}}var Si;(function(e){e.Line="line",e.Handle="handle"})(Si||(Si={}));function vT({width:e,prevWidth:t,height:n,prevHeight:r,affectsX:o,affectsY:i}){const s=e-t,a=n-r,l=[s>0?1:s<0?-1:0,a>0?1:a<0?-1:0];return s&&o&&(l[0]=l[0]*-1),a&&i&&(l[1]=l[1]*-1),l}function xT(e){const t=e.includes("right")||e.includes("left"),n=e.includes("bottom")||e.includes("top"),r=e.includes("left"),o=e.includes("top");return{isHorizontal:t,isVertical:n,affectsX:r,affectsY:o}}function nr(e,t){return Math.max(0,t-e)}function rr(e,t){return Math.max(0,e-t)}function sa(e,t,n){return Math.max(0,t-e,e-n)}function bm(e,t){return e?!t:t}function wT(e,t,n,r,o,i,s,a){let{affectsX:l,affectsY:u}=t;const{isHorizontal:c,isVertical:f}=t,d=c&&f,{xSnapped:p,ySnapped:g}=n,{minWidth:h,maxWidth:y,minHeight:m,maxHeight:x}=r,{x:v,y:C,width:S,height:E,aspectRatio:I}=e;let O=Math.floor(c?p-e.pointerX:0),M=Math.floor(f?g-e.pointerY:0);const w=S+(l?-O:O),N=E+(u?-M:M),R=-i[0]*S,L=-i[1]*E;let A=sa(w,h,y),j=sa(N,m,x);if(s){let V=0,F=0;l&&O<0?V=nr(v+O+R,s[0][0]):!l&&O>0&&(V=rr(v+w+R,s[1][0])),u&&M<0?F=nr(C+M+L,s[0][1]):!u&&M>0&&(F=rr(C+N+L,s[1][1])),A=Math.max(A,V),j=Math.max(j,F)}if(a){let V=0,F=0;l&&O>0?V=rr(v+O,a[0][0]):!l&&O<0&&(V=nr(v+w,a[1][0])),u&&M>0?F=rr(C+M,a[0][1]):!u&&M<0&&(F=nr(C+N,a[1][1])),A=Math.max(A,V),j=Math.max(j,F)}if(o){if(c){const V=sa(w/I,m,x)*I;if(A=Math.max(A,V),s){let F=0;!l&&!u||l&&!u&&d?F=rr(C+L+w/I,s[1][1])*I:F=nr(C+L+(l?O:-O)/I,s[0][1])*I,A=Math.max(A,F)}if(a){let F=0;!l&&!u||l&&!u&&d?F=nr(C+w/I,a[1][1])*I:F=rr(C+(l?O:-O)/I,a[0][1])*I,A=Math.max(A,F)}}if(f){const V=sa(N*I,h,y)/I;if(j=Math.max(j,V),s){let F=0;!l&&!u||u&&!l&&d?F=rr(v+N*I+R,s[1][0])/I:F=nr(v+(u?M:-M)*I+R,s[0][0])/I,j=Math.max(j,F)}if(a){let F=0;!l&&!u||u&&!l&&d?F=nr(v+N*I,a[1][0])/I:F=rr(v+(u?M:-M)*I,a[0][0])/I,j=Math.max(j,F)}}}M=M+(M<0?j:-j),O=O+(O<0?A:-A),o&&(d?w>N*I?M=(bm(l,u)?-O:O)/I:O=(bm(l,u)?-M:M)*I:c?(M=O/I,u=l):(O=M*I,l=u));const D=l?v+O:v,z=u?C+M:C;return{width:S+(l?-O:O),height:E+(u?-M:M),x:i[0]*O*(l?-1:1)+D,y:i[1]*M*(u?-1:1)+z}}const vm={width:0,height:0,x:0,y:0},CT={...vm,pointerX:0,pointerY:0,aspectRatio:1};function _T(e){return[[0,0],[e.measured.width,e.measured.height]]}function ST(e,t,n){const r=t.position.x+e.position.x,o=t.position.y+e.position.y,i=e.measured.width??0,s=e.measured.height??0,a=n[0]*i,l=n[1]*s;return[[r-a,o-l],[r+i-a,o+s-l]]}function ET({domNode:e,nodeId:t,getStoreItems:n,onChange:r,onEnd:o}){const i=St(e);function s({controlPosition:l,boundaries:u,keepAspectRatio:c,onResizeStart:f,onResize:d,onResizeEnd:p,shouldResize:g}){let h={...vm},y={...CT};const m=xT(l);let x,v=null,C=[],S,E,I;const O=eg().on("start",M=>{const{nodeLookup:w,transform:N,snapGrid:R,snapToGrid:L,nodeOrigin:A,paneDomNode:j}=n();if(x=w.get(t),!x)return;v=(j==null?void 0:j.getBoundingClientRect())??null;const{xSnapped:D,ySnapped:z}=Ci(M.sourceEvent,{transform:N,snapGrid:R,snapToGrid:L,containerBounds:v});h={width:x.measured.width??0,height:x.measured.height??0,x:x.position.x??0,y:x.position.y??0},y={...h,pointerX:D,pointerY:z,aspectRatio:h.width/h.height},S=void 0,x.parentId&&(x.extent==="parent"||x.expandParent)&&(S=w.get(x.parentId),E=S&&x.extent==="parent"?_T(S):void 0),C=[],I=void 0;for(const[V,F]of w)if(F.parentId===t&&(C.push({id:V,position:{...F.position},extent:F.extent}),F.extent==="parent"||F.expandParent)){const _=ST(F,x,F.origin??A);I?I=[[Math.min(_[0][0],I[0][0]),Math.min(_[0][1],I[0][1])],[Math.max(_[1][0],I[1][0]),Math.max(_[1][1],I[1][1])]]:I=_}f==null||f(M,{...h})}).on("drag",M=>{const{transform:w,snapGrid:N,snapToGrid:R,nodeOrigin:L}=n(),A=Ci(M.sourceEvent,{transform:w,snapGrid:N,snapToGrid:R,containerBounds:v}),j=[];if(!x)return;const{x:D,y:z,width:V,height:F}=h,_={},G=x.origin??L,{width:$,height:P,x:H,y:J}=wT(y,m,A,u,c,G,E,I),W=$!==V,X=P!==F,U=H!==D&&W,Q=J!==z&&X;if(!U&&!Q&&!W&&!X)return;if((U||Q||G[0]===1||G[1]===1)&&(_.x=U?H:h.x,_.y=Q?J:h.y,h.x=_.x,h.y=_.y,C.length>0)){const ce=H-D,pe=J-z;for(const Ie of C)Ie.position={x:Ie.position.x-ce+G[0]*($-V),y:Ie.position.y-pe+G[1]*(P-F)},j.push(Ie)}if((W||X)&&(_.width=W?$:h.width,_.height=X?P:h.height,h.width=_.width,h.height=_.height),S&&x.expandParent){const ce=G[0]*(_.width??0);_.x&&_.x<ce&&(h.x=ce,y.x=y.x-(_.x-ce));const pe=G[1]*(_.height??0);_.y&&_.y<pe&&(h.y=pe,y.y=y.y-(_.y-pe))}const ne=vT({width:h.width,prevWidth:V,height:h.height,prevHeight:F,affectsX:m.affectsX,affectsY:m.affectsY}),oe={...h,direction:ne};(g==null?void 0:g(M,oe))!==!1&&(d==null||d(M,oe),r(_,j))}).on("end",M=>{p==null||p(M,{...h}),o==null||o({...h})});i.call(O)}function a(){i.on(".drag",null)}return{update:s,destroy:a}}const{useDebugValue:IT}=T,{useSyncExternalStoreWithSelector:kT}=Nh,AT=e=>e;function xm(e,t=AT,n){const r=kT(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return IT(r),r}const wm=(e,t)=>{const n=Ch(e),r=(o,i=t)=>xm(n,o,i);return Object.assign(r,n),r},TT=(e,t)=>e?wm(e,t):wm;function ze(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,o]of e)if(!Object.is(o,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(const r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}const aa=T.createContext(null),NT=aa.Provider,Cm=Et.error001();function Ce(e,t){const n=T.useContext(aa);if(n===null)throw new Error(Cm);return xm(n,e,t)}function Ve(){const e=T.useContext(aa);if(e===null)throw new Error(Cm);return T.useMemo(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}const _m={display:"none"},PT={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},Sm="react-flow__node-desc",Em="react-flow__edge-desc",OT="react-flow__aria-live",RT=e=>e.ariaLiveMessage;function MT({rfId:e}){const t=Ce(RT);return b.jsx("div",{id:`${OT}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:PT,children:t})}function DT({rfId:e,disableKeyboardA11y:t}){return b.jsxs(b.Fragment,{children:[b.jsxs("div",{id:`${Sm}-${e}`,style:_m,children:["Press enter or space to select a node.",!t&&"You can then use the arrow keys to move the node around."," Press delete to remove it and escape to cancel."," "]}),b.jsx("div",{id:`${Em}-${e}`,style:_m,children:"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel."}),!t&&b.jsx(MT,{rfId:e})]})}const FT=e=>e.userSelectionActive?"none":"all",la=T.forwardRef(({position:e="top-left",children:t,className:n,style:r,...o},i)=>{const s=Ce(FT),a=`${e}`.split("-");return b.jsx("div",{className:qe(["react-flow__panel",n,...a]),style:{...r,pointerEvents:s},ref:i,...o,children:t})});la.displayName="Panel";function jT({proOptions:e,position:t="bottom-right"}){return e!=null&&e.hideAttribution?null:b.jsx(la,{position:t,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",children:b.jsx("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const LT=e=>{const t=[],n=[];for(const[,r]of e.nodeLookup)r.selected&&t.push(r.internals.userNode);for(const[,r]of e.edgeLookup)r.selected&&n.push(r);return{selectedNodes:t,selectedEdges:n}},ua=e=>e.id;function BT(e,t){return ze(e.selectedNodes.map(ua),t.selectedNodes.map(ua))&&ze(e.selectedEdges.map(ua),t.selectedEdges.map(ua))}function zT({onSelectionChange:e}){const t=Ve(),{selectedNodes:n,selectedEdges:r}=Ce(LT,BT);return T.useEffect(()=>{const o={nodes:n,edges:r};e==null||e(o),t.getState().onSelectionChangeHandlers.forEach(i=>i(o))},[n,r,e]),null}const VT=e=>!!e.onSelectionChangeHandlers;function GT({onSelectionChange:e}){const t=Ce(VT);return e||t?b.jsx(zT,{onSelectionChange:e}):null}const Im=[0,0],$T={x:0,y:0,zoom:1},km=[...["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","onBeforeDelete","debug","autoPanSpeed","paneClickDistance"],"rfId"],HT=e=>({setNodes:e.setNodes,setEdges:e.setEdges,setMinZoom:e.setMinZoom,setMaxZoom:e.setMaxZoom,setTranslateExtent:e.setTranslateExtent,setNodeExtent:e.setNodeExtent,reset:e.reset,setDefaultNodesAndEdges:e.setDefaultNodesAndEdges,setPaneClickDistance:e.setPaneClickDistance}),Am={translateExtent:mi,nodeOrigin:Im,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1",paneClickDistance:0};function WT(e){const{setNodes:t,setEdges:n,setMinZoom:r,setMaxZoom:o,setTranslateExtent:i,setNodeExtent:s,reset:a,setDefaultNodesAndEdges:l,setPaneClickDistance:u}=Ce(HT,ze),c=Ve();T.useEffect(()=>(l(e.defaultNodes,e.defaultEdges),()=>{f.current=Am,a()}),[]);const f=T.useRef(Am);return T.useEffect(()=>{for(const d of km){const p=e[d],g=f.current[d];p!==g&&(typeof e[d]>"u"||(d==="nodes"?t(p):d==="edges"?n(p):d==="minZoom"?r(p):d==="maxZoom"?o(p):d==="translateExtent"?i(p):d==="nodeExtent"?s(p):d==="paneClickDistance"?u(p):d==="fitView"?c.setState({fitViewQueued:p}):d==="fitViewOptions"?c.setState({fitViewOptions:p}):c.setState({[d]:p})))}f.current=e},km.map(d=>e[d])),null}function Tm(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function XT(e){var r;const[t,n]=T.useState(e==="system"?null:e);return T.useEffect(()=>{if(e!=="system"){n(e);return}const o=Tm(),i=()=>n(o!=null&&o.matches?"dark":"light");return i(),o==null||o.addEventListener("change",i),()=>{o==null||o.removeEventListener("change",i)}},[e]),t!==null?t:(r=Tm())!=null&&r.matches?"dark":"light"}const Nm=typeof document<"u"?document:null;function fo(e=null,t={target:Nm,actInsideInputWithModifier:!0}){const[n,r]=T.useState(!1),o=T.useRef(!1),i=T.useRef(new Set([])),[s,a]=T.useMemo(()=>{if(e!==null){const u=(Array.isArray(e)?e:[e]).filter(f=>typeof f=="string").map(f=>f.replace("+",`
|
|
55
|
+
`).replace(`
|
|
56
|
+
|
|
57
|
+
`,`
|
|
58
|
+
+`).split(`
|
|
59
|
+
`)),c=u.reduce((f,d)=>f.concat(...d),[]);return[u,c]}return[[],[]]},[e]);return T.useEffect(()=>{const l=(t==null?void 0:t.target)||Nm;if(e!==null){const u=d=>{var h,y;if(o.current=d.ctrlKey||d.metaKey||d.shiftKey||d.altKey,(!o.current||o.current&&!t.actInsideInputWithModifier)&&Zg(d))return!1;const g=Om(d.code,a);if(i.current.add(d[g]),Pm(s,i.current,!1)){const m=((y=(h=d.composedPath)==null?void 0:h.call(d))==null?void 0:y[0])||d.target,x=(m==null?void 0:m.nodeName)==="BUTTON"||(m==null?void 0:m.nodeName)==="A";t.preventDefault!==!1&&(o.current||!x)&&d.preventDefault(),r(!0)}},c=d=>{const p=Om(d.code,a);Pm(s,i.current,!0)?(r(!1),i.current.clear()):i.current.delete(d[p]),d.key==="Meta"&&i.current.clear(),o.current=!1},f=()=>{i.current.clear(),r(!1)};return l==null||l.addEventListener("keydown",u),l==null||l.addEventListener("keyup",c),window.addEventListener("blur",f),window.addEventListener("contextmenu",f),()=>{l==null||l.removeEventListener("keydown",u),l==null||l.removeEventListener("keyup",c),window.removeEventListener("blur",f),window.removeEventListener("contextmenu",f)}}},[e,r]),n}function Pm(e,t,n){return e.filter(r=>n||r.length===t.size).some(r=>r.every(o=>t.has(o)))}function Om(e,t){return t.includes(e)?"code":"key"}const YT=()=>{const e=Ve();return T.useMemo(()=>({zoomIn:t=>{const{panZoom:n}=e.getState();return n?n.scaleBy(1.2,{duration:t==null?void 0:t.duration}):Promise.resolve(!1)},zoomOut:t=>{const{panZoom:n}=e.getState();return n?n.scaleBy(1/1.2,{duration:t==null?void 0:t.duration}):Promise.resolve(!1)},zoomTo:(t,n)=>{const{panZoom:r}=e.getState();return r?r.scaleTo(t,{duration:n==null?void 0:n.duration}):Promise.resolve(!1)},getZoom:()=>e.getState().transform[2],setViewport:async(t,n)=>{const{transform:[r,o,i],panZoom:s}=e.getState();return s?(await s.setViewport({x:t.x??r,y:t.y??o,zoom:t.zoom??i},{duration:n==null?void 0:n.duration}),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{const[t,n,r]=e.getState().transform;return{x:t,y:n,zoom:r}},setCenter:async(t,n,r)=>{const{width:o,height:i,maxZoom:s,panZoom:a}=e.getState(),l=typeof(r==null?void 0:r.zoom)<"u"?r.zoom:s,u=o/2-t*l,c=i/2-n*l;return a?(await a.setViewport({x:u,y:c,zoom:l},{duration:r==null?void 0:r.duration}),Promise.resolve(!0)):Promise.resolve(!1)},fitBounds:async(t,n)=>{const{width:r,height:o,minZoom:i,maxZoom:s,panZoom:a}=e.getState(),l=Qu(t,r,o,i,s,(n==null?void 0:n.padding)??.1);return a?(await a.setViewport(l,{duration:n==null?void 0:n.duration}),Promise.resolve(!0)):Promise.resolve(!1)},screenToFlowPosition:(t,n={})=>{const{transform:r,snapGrid:o,snapToGrid:i,domNode:s}=e.getState();if(!s)return t;const{x:a,y:l}=s.getBoundingClientRect(),u={x:t.x-a,y:t.y-l},c=n.snapGrid??o,f=n.snapToGrid??i;return wi(u,r,f,c)},flowToScreenPosition:t=>{const{transform:n,domNode:r}=e.getState();if(!r)return t;const{x:o,y:i}=r.getBoundingClientRect(),s=na(t,n);return{x:s.x+o,y:s.y+i}}}),[])};function Rm(e,t){const n=[],r=new Map,o=[];for(const i of e)if(i.type==="add"){o.push(i);continue}else if(i.type==="remove"||i.type==="replace")r.set(i.id,[i]);else{const s=r.get(i.id);s?s.push(i):r.set(i.id,[i])}for(const i of t){const s=r.get(i.id);if(!s){n.push(i);continue}if(s[0].type==="remove")continue;if(s[0].type==="replace"){n.push({...s[0].item});continue}const a={...i};for(const l of s)UT(l,a);n.push(a)}return o.length&&o.forEach(i=>{i.index!==void 0?n.splice(i.index,0,{...i.item}):n.push({...i.item})}),n}function UT(e,t){switch(e.type){case"select":{t.selected=e.selected;break}case"position":{typeof e.position<"u"&&(t.position=e.position),typeof e.dragging<"u"&&(t.dragging=e.dragging);break}case"dimensions":{typeof e.dimensions<"u"&&(t.measured??(t.measured={}),t.measured.width=e.dimensions.width,t.measured.height=e.dimensions.height,e.setAttributes&&(t.width=e.dimensions.width,t.height=e.dimensions.height)),typeof e.resizing=="boolean"&&(t.resizing=e.resizing);break}}}function Mm(e,t){return Rm(e,t)}function Dm(e,t){return Rm(e,t)}function Nr(e,t){return{id:e,type:"select",selected:t}}function po(e,t=new Set,n=!1){const r=[];for(const[o,i]of e){const s=t.has(o);!(i.selected===void 0&&!s)&&i.selected!==s&&(n&&(i.selected=s),r.push(Nr(i.id,s)))}return r}function Fm({items:e=[],lookup:t}){var o;const n=[],r=new Map(e.map(i=>[i.id,i]));for(const[i,s]of e.entries()){const a=t.get(s.id),l=((o=a==null?void 0:a.internals)==null?void 0:o.userNode)??a;l!==void 0&&l!==s&&n.push({id:s.id,item:s,type:"replace"}),l===void 0&&n.push({item:s,type:"add",index:i})}for(const[i]of t)r.get(i)===void 0&&n.push({id:i,type:"remove"});return n}function jm(e){return{id:e.id,type:"remove"}}const Lm=e=>OA(e),ZT=e=>Fg(e);function Bm(e){return T.forwardRef(e)}const JT=typeof window<"u"?T.useLayoutEffect:T.useEffect;function zm(e){const[t,n]=T.useState(BigInt(0)),[r]=T.useState(()=>qT(()=>n(o=>o+BigInt(1))));return JT(()=>{const o=r.get();o.length&&(e(o),r.reset())},[t]),r}function qT(e){let t=[];return{get:()=>t,reset:()=>{t=[]},push:n=>{t.push(n),e()}}}const Vm=T.createContext(null);function KT({children:e}){const t=Ve(),n=T.useCallback(a=>{const{nodes:l=[],setNodes:u,hasDefaultNodes:c,onNodesChange:f,nodeLookup:d,fitViewQueued:p}=t.getState();let g=l;for(const h of a)g=typeof h=="function"?h(g):h;if(c)u(g);else{const h=Fm({items:g,lookup:d});h.length>0?f==null||f(h):p&&window.requestAnimationFrame(()=>{const{fitViewQueued:y,nodes:m,setNodes:x}=t.getState();y&&x(m)})}},[]),r=zm(n),o=T.useCallback(a=>{const{edges:l=[],setEdges:u,hasDefaultEdges:c,onEdgesChange:f,edgeLookup:d}=t.getState();let p=l;for(const g of a)p=typeof g=="function"?g(p):g;c?u(p):f&&f(Fm({items:p,lookup:d}))},[]),i=zm(o),s=T.useMemo(()=>({nodeQueue:r,edgeQueue:i}),[]);return b.jsx(Vm.Provider,{value:s,children:e})}function QT(){const e=T.useContext(Vm);if(!e)throw new Error("useBatchContext must be used within a BatchProvider");return e}const eN=e=>!!e.panZoom;function Ei(){const e=YT(),t=Ve(),n=QT(),r=Ce(eN),o=T.useMemo(()=>{const i=f=>t.getState().nodeLookup.get(f),s=f=>{n.nodeQueue.push(f)},a=f=>{n.edgeQueue.push(f)},l=f=>{var m,x;const{nodeLookup:d,nodeOrigin:p}=t.getState(),g=Lm(f)?f:d.get(f.id),h=g.parentId?Xg(g.position,g.measured,g.parentId,d,p):g.position,y={...g,position:h,width:((m=g.measured)==null?void 0:m.width)??g.width,height:((x=g.measured)==null?void 0:x.height)??g.height};return ao(y)},u=(f,d,p={replace:!1})=>{s(g=>g.map(h=>{if(h.id===f){const y=typeof d=="function"?d(h):d;return p.replace&&Lm(y)?y:{...h,...y}}return h}))},c=(f,d,p={replace:!1})=>{a(g=>g.map(h=>{if(h.id===f){const y=typeof d=="function"?d(h):d;return p.replace&&ZT(y)?y:{...h,...y}}return h}))};return{getNodes:()=>t.getState().nodes.map(f=>({...f})),getNode:f=>{var d;return(d=i(f))==null?void 0:d.internals.userNode},getInternalNode:i,getEdges:()=>{const{edges:f=[]}=t.getState();return f.map(d=>({...d}))},getEdge:f=>t.getState().edgeLookup.get(f),setNodes:s,setEdges:a,addNodes:f=>{const d=Array.isArray(f)?f:[f];n.nodeQueue.push(p=>[...p,...d])},addEdges:f=>{const d=Array.isArray(f)?f:[f];n.edgeQueue.push(p=>[...p,...d])},toObject:()=>{const{nodes:f=[],edges:d=[],transform:p}=t.getState(),[g,h,y]=p;return{nodes:f.map(m=>({...m})),edges:d.map(m=>({...m})),viewport:{x:g,y:h,zoom:y}}},deleteElements:async({nodes:f=[],edges:d=[]})=>{const{nodes:p,edges:g,onNodesDelete:h,onEdgesDelete:y,triggerNodeChanges:m,triggerEdgeChanges:x,onDelete:v,onBeforeDelete:C}=t.getState(),{nodes:S,edges:E}=await jA({nodesToRemove:f,edgesToRemove:d,nodes:p,edges:g,onBeforeDelete:C}),I=E.length>0,O=S.length>0;if(I){const M=E.map(jm);y==null||y(E),x(M)}if(O){const M=S.map(jm);h==null||h(S),m(M)}return(O||I)&&(v==null||v({nodes:S,edges:E})),{deletedNodes:S,deletedEdges:E}},getIntersectingNodes:(f,d=!0,p)=>{const g=$g(f),h=g?f:l(f),y=p!==void 0;return h?(p||t.getState().nodes).filter(m=>{const x=t.getState().nodeLookup.get(m.id);if(x&&!g&&(m.id===f.id||!x.internals.positionAbsolute))return!1;const v=ao(y?m:x),C=xi(v,h);return d&&C>0||C>=h.width*h.height}):[]},isNodeIntersecting:(f,d,p=!0)=>{const h=$g(f)?f:l(f);if(!h)return!1;const y=xi(h,d);return p&&y>0||y>=h.width*h.height},updateNode:u,updateNodeData:(f,d,p={replace:!1})=>{u(f,g=>{const h=typeof d=="function"?d(g):d;return p.replace?{...g,data:h}:{...g,data:{...g.data,...h}}},p)},updateEdge:c,updateEdgeData:(f,d,p={replace:!1})=>{c(f,g=>{const h=typeof d=="function"?d(g):d;return p.replace?{...g,data:h}:{...g,data:{...g.data,...h}}},p)},getNodesBounds:f=>{const{nodeLookup:d,nodeOrigin:p}=t.getState();return RA(f,{nodeLookup:d,nodeOrigin:p})},getHandleConnections:({type:f,id:d,nodeId:p})=>{var g;return Array.from(((g=t.getState().connectionLookup.get(`${p}-${f}${d?`-${d}`:""}`))==null?void 0:g.values())??[])},getNodeConnections:({type:f,handleId:d,nodeId:p})=>{var g;return Array.from(((g=t.getState().connectionLookup.get(`${p}${f?d?`-${f}-${d}`:`-${f}`:""}`))==null?void 0:g.values())??[])},fitView:async f=>{const d=t.getState().fitViewResolver??Promise.withResolvers();return t.setState({fitViewQueued:!0,fitViewOptions:f,fitViewResolver:d}),n.nodeQueue.push(p=>[...p]),d.promise}}},[]);return T.useMemo(()=>({...o,...e,viewportInitialized:r}),[r])}const Gm=e=>e.selected,tN={actInsideInputWithModifier:!1},nN=typeof window<"u"?window:void 0;function rN({deleteKeyCode:e,multiSelectionKeyCode:t}){const n=Ve(),{deleteElements:r}=Ei(),o=fo(e,tN),i=fo(t,{target:nN});T.useEffect(()=>{if(o){const{edges:s,nodes:a}=n.getState();r({nodes:a.filter(Gm),edges:s.filter(Gm)}),n.setState({nodesSelectionActive:!1})}},[o]),T.useEffect(()=>{n.setState({multiSelectionActive:i})},[i])}function oN(e){const t=Ve();T.useEffect(()=>{const n=()=>{var o,i;if(!e.current)return!1;const r=ec(e.current);(r.height===0||r.width===0)&&((i=(o=t.getState()).onError)==null||i.call(o,"004",Et.error004())),t.setState({width:r.width||500,height:r.height||500})};if(e.current){n(),window.addEventListener("resize",n);const r=new ResizeObserver(()=>n());return r.observe(e.current),()=>{window.removeEventListener("resize",n),r&&e.current&&r.unobserve(e.current)}}},[])}const ca={position:"absolute",width:"100%",height:"100%",top:0,left:0},iN=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib});function sN({onPaneContextMenu:e,zoomOnScroll:t=!0,zoomOnPinch:n=!0,panOnScroll:r=!1,panOnScrollSpeed:o=.5,panOnScrollMode:i=Ar.Free,zoomOnDoubleClick:s=!0,panOnDrag:a=!0,defaultViewport:l,translateExtent:u,minZoom:c,maxZoom:f,zoomActivationKeyCode:d,preventScrolling:p=!0,children:g,noWheelClassName:h,noPanClassName:y,onViewportChange:m,isControlledViewport:x,paneClickDistance:v}){const C=Ve(),S=T.useRef(null),{userSelectionActive:E,lib:I}=Ce(iN,ze),O=fo(d),M=T.useRef();oN(S);const w=T.useCallback(N=>{m==null||m({x:N[0],y:N[1],zoom:N[2]}),x||C.setState({transform:N})},[m,x]);return T.useEffect(()=>{if(S.current){M.current=bT({domNode:S.current,minZoom:c,maxZoom:f,translateExtent:u,viewport:l,paneClickDistance:v,onDraggingChange:A=>C.setState({paneDragging:A}),onPanZoomStart:(A,j)=>{const{onViewportChangeStart:D,onMoveStart:z}=C.getState();z==null||z(A,j),D==null||D(j)},onPanZoom:(A,j)=>{const{onViewportChange:D,onMove:z}=C.getState();z==null||z(A,j),D==null||D(j)},onPanZoomEnd:(A,j)=>{const{onViewportChangeEnd:D,onMoveEnd:z}=C.getState();z==null||z(A,j),D==null||D(j)}});const{x:N,y:R,zoom:L}=M.current.getViewport();return C.setState({panZoom:M.current,transform:[N,R,L],domNode:S.current.closest(".react-flow")}),()=>{var A;(A=M.current)==null||A.destroy()}}},[]),T.useEffect(()=>{var N;(N=M.current)==null||N.update({onPaneContextMenu:e,zoomOnScroll:t,zoomOnPinch:n,panOnScroll:r,panOnScrollSpeed:o,panOnScrollMode:i,zoomOnDoubleClick:s,panOnDrag:a,zoomActivationKeyPressed:O,preventScrolling:p,noPanClassName:y,userSelectionActive:E,noWheelClassName:h,lib:I,onTransformChange:w})},[e,t,n,r,o,i,s,a,O,p,y,E,h,I,w]),b.jsx("div",{className:"react-flow__renderer",ref:S,style:ca,children:g})}const aN=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function lN(){const{userSelectionActive:e,userSelectionRect:t}=Ce(aN,ze);return e&&t?b.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:t.width,height:t.height,transform:`translate(${t.x}px, ${t.y}px)`}}):null}const pc=(e,t)=>n=>{n.target===t.current&&(e==null||e(n))},uN=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,connectionInProgress:e.connection.inProgress,dragging:e.paneDragging});function cN({isSelecting:e,selectionKeyPressed:t,selectionMode:n=yi.Full,panOnDrag:r,selectionOnDrag:o,onSelectionStart:i,onSelectionEnd:s,onPaneClick:a,onPaneContextMenu:l,onPaneScroll:u,onPaneMouseEnter:c,onPaneMouseMove:f,onPaneMouseLeave:d,children:p}){const g=Ve(),{userSelectionActive:h,elementsSelectable:y,dragging:m,connectionInProgress:x}=Ce(uN,ze),v=y&&(e||h),C=T.useRef(null),S=T.useRef(),E=T.useRef(new Set),I=T.useRef(new Set),O=T.useRef(!1),M=T.useRef(!1),w=z=>{if(O.current||x){O.current=!1;return}a==null||a(z),g.getState().resetSelectedElements(),g.setState({nodesSelectionActive:!1})},N=z=>{if(Array.isArray(r)&&(r!=null&&r.includes(2))){z.preventDefault();return}l==null||l(z)},R=u?z=>u(z):void 0,L=z=>{var $,P;const{resetSelectedElements:V,domNode:F}=g.getState();if(S.current=F==null?void 0:F.getBoundingClientRect(),!y||!e||z.button!==0||z.target!==C.current||!S.current)return;(P=($=z.target)==null?void 0:$.setPointerCapture)==null||P.call($,z.pointerId),M.current=!0,O.current=!1;const{x:_,y:G}=Mn(z.nativeEvent,S.current);V(),g.setState({userSelectionRect:{width:0,height:0,startX:_,startY:G,x:_,y:G}}),i==null||i(z)},A=z=>{const{userSelectionRect:V,transform:F,nodeLookup:_,edgeLookup:G,connectionLookup:$,triggerNodeChanges:P,triggerEdgeChanges:H,defaultEdgeOptions:J}=g.getState();if(!S.current||!V)return;O.current=!0;const{x:W,y:X}=Mn(z.nativeEvent,S.current),{startX:U,startY:Q}=V,ne={startX:U,startY:Q,x:W<U?W:U,y:X<Q?X:Q,width:Math.abs(W-U),height:Math.abs(X-Q)},oe=E.current,Z=I.current;E.current=new Set(jg(_,ne,F,n===yi.Partial,!0).map(pe=>pe.id)),I.current=new Set;const ce=(J==null?void 0:J.selectable)??!0;for(const pe of E.current){const Ie=$.get(pe);if(Ie)for(const{edgeId:Ze}of Ie.values()){const ft=G.get(Ze);ft&&(ft.selectable??ce)&&I.current.add(Ze)}}if(!Yg(oe,E.current)){const pe=po(_,E.current,!0);P(pe)}if(!Yg(Z,I.current)){const pe=po(G,I.current);H(pe)}g.setState({userSelectionRect:ne,userSelectionActive:!0,nodesSelectionActive:!1})},j=z=>{var F,_;if(z.button!==0||!M.current)return;(_=(F=z.target)==null?void 0:F.releasePointerCapture)==null||_.call(F,z.pointerId);const{userSelectionRect:V}=g.getState();!h&&V&&z.target===C.current&&(w==null||w(z)),g.setState({userSelectionActive:!1,userSelectionRect:null,nodesSelectionActive:E.current.size>0}),s==null||s(z),(t||o)&&(O.current=!1),M.current=!1},D=r===!0||Array.isArray(r)&&r.includes(0);return b.jsxs("div",{className:qe(["react-flow__pane",{draggable:D,dragging:m,selection:e}]),onClick:v?void 0:pc(w,C),onContextMenu:pc(N,C),onWheel:pc(R,C),onPointerEnter:v?void 0:c,onPointerDown:v?L:f,onPointerMove:v?A:f,onPointerUp:v?j:void 0,onPointerLeave:d,ref:C,style:ca,children:[p,b.jsx(lN,{})]})}function hc({id:e,store:t,unselect:n=!1,nodeRef:r}){const{addSelectedNodes:o,unselectNodesAndEdges:i,multiSelectionActive:s,nodeLookup:a,onError:l}=t.getState(),u=a.get(e);if(!u){l==null||l("012",Et.error012(e));return}t.setState({nodesSelectionActive:!1}),u.selected?(n||u.selected&&s)&&(i({nodes:[u],edges:[]}),requestAnimationFrame(()=>{var c;return(c=r==null?void 0:r.current)==null?void 0:c.blur()})):o([e])}function $m({nodeRef:e,disabled:t=!1,noDragClassName:n,handleSelector:r,nodeId:o,isSelectable:i,nodeClickDistance:s}){const a=Ve(),[l,u]=T.useState(!1),c=T.useRef();return T.useEffect(()=>{c.current=oT({getStoreItems:()=>a.getState(),onNodeMouseDown:f=>{hc({id:f,store:a,nodeRef:e})},onDragStart:()=>{u(!0)},onDragStop:()=>{u(!1)}})},[]),T.useEffect(()=>{var f,d;if(t)(f=c.current)==null||f.destroy();else if(e.current)return(d=c.current)==null||d.update({noDragClassName:n,handleSelector:r,domNode:e.current,isSelectable:i,nodeId:o,nodeClickDistance:s}),()=>{var p;(p=c.current)==null||p.destroy()}},[n,r,t,i,e,o]),l}const fN=e=>t=>t.selected&&(t.draggable||e&&typeof t.draggable>"u");function Hm(){const e=Ve();return T.useCallback(n=>{const{nodeExtent:r,snapToGrid:o,snapGrid:i,nodesDraggable:s,onError:a,updateNodePositions:l,nodeLookup:u,nodeOrigin:c}=e.getState(),f=new Map,d=fN(s),p=o?i[0]:5,g=o?i[1]:5,h=n.direction.x*p*n.factor,y=n.direction.y*g*n.factor;for(const[,m]of u){if(!d(m))continue;let x={x:m.internals.positionAbsolute.x+h,y:m.internals.positionAbsolute.y+y};o&&(x=ta(x,i));const{position:v,positionAbsolute:C}=Lg({nodeId:m.id,nextPosition:x,nodeLookup:u,nodeExtent:r,nodeOrigin:c,onError:a});m.position=v,m.internals.positionAbsolute=C,f.set(m.id,m)}l(f)},[])}const gc=T.createContext(null),dN=gc.Provider;gc.Consumer;const Wm=()=>T.useContext(gc),pN=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),hN=(e,t,n)=>r=>{const{connectionClickStartHandle:o,connectionMode:i,connection:s}=r,{fromHandle:a,toHandle:l,isValid:u}=s,c=(l==null?void 0:l.nodeId)===e&&(l==null?void 0:l.id)===t&&(l==null?void 0:l.type)===n;return{connectingFrom:(a==null?void 0:a.nodeId)===e&&(a==null?void 0:a.id)===t&&(a==null?void 0:a.type)===n,connectingTo:c,clickConnecting:(o==null?void 0:o.nodeId)===e&&(o==null?void 0:o.id)===t&&(o==null?void 0:o.type)===n,isPossibleEndHandle:i===io.Strict?(a==null?void 0:a.type)!==n:e!==(a==null?void 0:a.nodeId)||t!==(a==null?void 0:a.id),connectionInProcess:!!a,clickConnectionInProcess:!!o,valid:c&&u}};function gN({type:e="source",position:t=ae.Top,isValidConnection:n,isConnectable:r=!0,isConnectableStart:o=!0,isConnectableEnd:i=!0,id:s,onConnect:a,children:l,className:u,onMouseDown:c,onTouchStart:f,...d},p){var j,D;const g=s||null,h=e==="target",y=Ve(),m=Wm(),{connectOnClick:x,noPanClassName:v,rfId:C}=Ce(pN,ze),{connectingFrom:S,connectingTo:E,clickConnecting:I,isPossibleEndHandle:O,connectionInProcess:M,clickConnectionInProcess:w,valid:N}=Ce(hN(m,g,e),ze);m||(D=(j=y.getState()).onError)==null||D.call(j,"010",Et.error010());const R=z=>{const{defaultEdgeOptions:V,onConnect:F,hasDefaultEdges:_}=y.getState(),G={...V,...z};if(_){const{edges:$,setEdges:P}=y.getState();P(WA(G,$))}F==null||F(G),a==null||a(G)},L=z=>{if(!m)return;const V=Jg(z.nativeEvent);if(o&&(V&&z.button===0||!V)){const F=y.getState();cc.onPointerDown(z.nativeEvent,{autoPanOnConnect:F.autoPanOnConnect,connectionMode:F.connectionMode,connectionRadius:F.connectionRadius,domNode:F.domNode,nodeLookup:F.nodeLookup,lib:F.lib,isTarget:h,handleId:g,nodeId:m,flowId:F.rfId,panBy:F.panBy,cancelConnection:F.cancelConnection,onConnectStart:F.onConnectStart,onConnectEnd:F.onConnectEnd,updateConnection:F.updateConnection,onConnect:R,isValidConnection:n||F.isValidConnection,getTransform:()=>y.getState().transform,getFromHandle:()=>y.getState().connection.fromHandle,autoPanSpeed:F.autoPanSpeed})}V?c==null||c(z):f==null||f(z)},A=z=>{const{onClickConnectStart:V,onClickConnectEnd:F,connectionClickStartHandle:_,connectionMode:G,isValidConnection:$,lib:P,rfId:H,nodeLookup:J,connection:W}=y.getState();if(!m||!_&&!o)return;if(!_){V==null||V(z.nativeEvent,{nodeId:m,handleId:g,handleType:e}),y.setState({connectionClickStartHandle:{nodeId:m,type:e,id:g}});return}const X=Ug(z.target),U=n||$,{connection:Q,isValid:ne}=cc.isValid(z.nativeEvent,{handle:{nodeId:m,id:g,type:e},connectionMode:G,fromNodeId:_.nodeId,fromHandleId:_.id||null,fromType:_.type,isValidConnection:U,flowId:H,doc:X,lib:P,nodeLookup:J});ne&&Q&&R(Q);const oe=structuredClone(W);delete oe.inProgress,oe.toPosition=oe.toHandle?oe.toHandle.position:null,F==null||F(z,oe),y.setState({connectionClickStartHandle:null})};return b.jsx("div",{"data-handleid":g,"data-nodeid":m,"data-handlepos":t,"data-id":`${C}-${m}-${g}-${e}`,className:qe(["react-flow__handle",`react-flow__handle-${t}`,"nodrag",v,u,{source:!h,target:h,connectable:r,connectablestart:o,connectableend:i,clickconnecting:I,connectingfrom:S,connectingto:E,valid:N,connectionindicator:r&&(!M||O)&&(M||w?i:o)}]),onMouseDown:L,onTouchStart:L,onClick:x?A:void 0,ref:p,...d,children:l})}const Ii=T.memo(Bm(gN));function mN({data:e,isConnectable:t,sourcePosition:n=ae.Bottom}){return b.jsxs(b.Fragment,{children:[e==null?void 0:e.label,b.jsx(Ii,{type:"source",position:n,isConnectable:t})]})}function yN({data:e,isConnectable:t,targetPosition:n=ae.Top,sourcePosition:r=ae.Bottom}){return b.jsxs(b.Fragment,{children:[b.jsx(Ii,{type:"target",position:n,isConnectable:t}),e==null?void 0:e.label,b.jsx(Ii,{type:"source",position:r,isConnectable:t})]})}function bN(){return null}function vN({data:e,isConnectable:t,targetPosition:n=ae.Top}){return b.jsxs(b.Fragment,{children:[b.jsx(Ii,{type:"target",position:n,isConnectable:t}),e==null?void 0:e.label]})}const fa={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},Xm={input:mN,default:yN,output:vN,group:bN};function xN(e){var t,n,r,o;return e.internals.handleBounds===void 0?{width:e.width??e.initialWidth??((t=e.style)==null?void 0:t.width),height:e.height??e.initialHeight??((n=e.style)==null?void 0:n.height)}:{width:e.width??((r=e.style)==null?void 0:r.width),height:e.height??((o=e.style)==null?void 0:o.height)}}const wN=e=>{const{width:t,height:n,x:r,y:o}=vi(e.nodeLookup,{filter:i=>!!i.selected});return{width:Zt(t)?t:null,height:Zt(n)?n:null,userSelectionActive:e.userSelectionActive,transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]}) translate(${r}px,${o}px)`}};function CN({onSelectionContextMenu:e,noPanClassName:t,disableKeyboardA11y:n}){const r=Ve(),{width:o,height:i,transformString:s,userSelectionActive:a}=Ce(wN,ze),l=Hm(),u=T.useRef(null);if(T.useEffect(()=>{var d;n||(d=u.current)==null||d.focus({preventScroll:!0})},[n]),$m({nodeRef:u}),a||!o||!i)return null;const c=e?d=>{const p=r.getState().nodes.filter(g=>g.selected);e(d,p)}:void 0,f=d=>{Object.prototype.hasOwnProperty.call(fa,d.key)&&(d.preventDefault(),l({direction:fa[d.key],factor:d.shiftKey?4:1}))};return b.jsx("div",{className:qe(["react-flow__nodesselection","react-flow__container",t]),style:{transform:s},children:b.jsx("div",{ref:u,className:"react-flow__nodesselection-rect",onContextMenu:c,tabIndex:n?void 0:-1,onKeyDown:n?void 0:f,style:{width:o,height:i}})})}const Ym=typeof window<"u"?window:void 0,_N=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function Um({children:e,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:r,onPaneMouseLeave:o,onPaneContextMenu:i,onPaneScroll:s,paneClickDistance:a,deleteKeyCode:l,selectionKeyCode:u,selectionOnDrag:c,selectionMode:f,onSelectionStart:d,onSelectionEnd:p,multiSelectionKeyCode:g,panActivationKeyCode:h,zoomActivationKeyCode:y,elementsSelectable:m,zoomOnScroll:x,zoomOnPinch:v,panOnScroll:C,panOnScrollSpeed:S,panOnScrollMode:E,zoomOnDoubleClick:I,panOnDrag:O,defaultViewport:M,translateExtent:w,minZoom:N,maxZoom:R,preventScrolling:L,onSelectionContextMenu:A,noWheelClassName:j,noPanClassName:D,disableKeyboardA11y:z,onViewportChange:V,isControlledViewport:F}){const{nodesSelectionActive:_,userSelectionActive:G}=Ce(_N),$=fo(u,{target:Ym}),P=fo(h,{target:Ym}),H=P||O,J=P||C,W=c&&H!==!0,X=$||G||W;return rN({deleteKeyCode:l,multiSelectionKeyCode:g}),b.jsx(sN,{onPaneContextMenu:i,elementsSelectable:m,zoomOnScroll:x,zoomOnPinch:v,panOnScroll:J,panOnScrollSpeed:S,panOnScrollMode:E,zoomOnDoubleClick:I,panOnDrag:!$&&H,defaultViewport:M,translateExtent:w,minZoom:N,maxZoom:R,zoomActivationKeyCode:y,preventScrolling:L,noWheelClassName:j,noPanClassName:D,onViewportChange:V,isControlledViewport:F,paneClickDistance:a,children:b.jsxs(cN,{onSelectionStart:d,onSelectionEnd:p,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:r,onPaneMouseLeave:o,onPaneContextMenu:i,onPaneScroll:s,panOnDrag:H,isSelecting:!!X,selectionMode:f,selectionKeyPressed:$,selectionOnDrag:W,children:[e,_&&b.jsx(CN,{onSelectionContextMenu:A,noPanClassName:D,disableKeyboardA11y:z})]})})}Um.displayName="FlowRenderer";const SN=T.memo(Um),EN=e=>t=>e?jg(t.nodeLookup,{x:0,y:0,width:t.width,height:t.height},t.transform,!0).map(n=>n.id):Array.from(t.nodeLookup.keys());function IN(e){return Ce(T.useCallback(EN(e),[e]),ze)}const kN=e=>e.updateNodeInternals;function AN(){const e=Ce(kN),[t]=T.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(n=>{const r=new Map;n.forEach(o=>{const i=o.target.getAttribute("data-id");r.set(i,{id:i,nodeElement:o.target,force:!0})}),e(r)}));return T.useEffect(()=>()=>{t==null||t.disconnect()},[t]),t}function TN({node:e,nodeType:t,hasDimensions:n,resizeObserver:r}){const o=Ve(),i=T.useRef(null),s=T.useRef(null),a=T.useRef(e.sourcePosition),l=T.useRef(e.targetPosition),u=T.useRef(t),c=n&&!!e.internals.handleBounds;return T.useEffect(()=>{i.current&&!e.hidden&&(!c||s.current!==i.current)&&(s.current&&(r==null||r.unobserve(s.current)),r==null||r.observe(i.current),s.current=i.current)},[c,e.hidden]),T.useEffect(()=>()=>{s.current&&(r==null||r.unobserve(s.current),s.current=null)},[]),T.useEffect(()=>{if(i.current){const f=u.current!==t,d=a.current!==e.sourcePosition,p=l.current!==e.targetPosition;(f||d||p)&&(u.current=t,a.current=e.sourcePosition,l.current=e.targetPosition,o.getState().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:i.current,force:!0}]])))}},[e.id,t,e.sourcePosition,e.targetPosition]),i}function NN({id:e,onClick:t,onMouseEnter:n,onMouseMove:r,onMouseLeave:o,onContextMenu:i,onDoubleClick:s,nodesDraggable:a,elementsSelectable:l,nodesConnectable:u,nodesFocusable:c,resizeObserver:f,noDragClassName:d,noPanClassName:p,disableKeyboardA11y:g,rfId:h,nodeTypes:y,nodeClickDistance:m,onError:x}){const{node:v,internals:C,isParent:S}=Ce(X=>{const U=X.nodeLookup.get(e),Q=X.parentLookup.has(e);return{node:U,internals:U.internals,isParent:Q}},ze);let E=v.type||"default",I=(y==null?void 0:y[E])||Xm[E];I===void 0&&(x==null||x("003",Et.error003(E)),E="default",I=Xm.default);const O=!!(v.draggable||a&&typeof v.draggable>"u"),M=!!(v.selectable||l&&typeof v.selectable>"u"),w=!!(v.connectable||u&&typeof v.connectable>"u"),N=!!(v.focusable||c&&typeof v.focusable>"u"),R=Ve(),L=Wg(v),A=TN({node:v,nodeType:E,hasDimensions:L,resizeObserver:f}),j=$m({nodeRef:A,disabled:v.hidden||!O,noDragClassName:d,handleSelector:v.dragHandle,nodeId:e,isSelectable:M,nodeClickDistance:m}),D=Hm();if(v.hidden)return null;const z=Rn(v),V=xN(v),F=M||O||t||n||r||o,_=n?X=>n(X,{...C.userNode}):void 0,G=r?X=>r(X,{...C.userNode}):void 0,$=o?X=>o(X,{...C.userNode}):void 0,P=i?X=>i(X,{...C.userNode}):void 0,H=s?X=>s(X,{...C.userNode}):void 0,J=X=>{const{selectNodesOnDrag:U,nodeDragThreshold:Q}=R.getState();M&&(!U||!O||Q>0)&&hc({id:e,store:R,nodeRef:A}),t&&t(X,{...C.userNode})},W=X=>{if(!(Zg(X.nativeEvent)||g))if(Og.includes(X.key)&&M){const U=X.key==="Escape";hc({id:e,store:R,unselect:U,nodeRef:A})}else O&&v.selected&&Object.prototype.hasOwnProperty.call(fa,X.key)&&(X.preventDefault(),R.setState({ariaLiveMessage:`Moved selected node ${X.key.replace("Arrow","").toLowerCase()}. New position, x: ${~~C.positionAbsolute.x}, y: ${~~C.positionAbsolute.y}`}),D({direction:fa[X.key],factor:X.shiftKey?4:1}))};return b.jsx("div",{className:qe(["react-flow__node",`react-flow__node-${E}`,{[p]:O},v.className,{selected:v.selected,selectable:M,parent:S,draggable:O,dragging:j}]),ref:A,style:{zIndex:C.z,transform:`translate(${C.positionAbsolute.x}px,${C.positionAbsolute.y}px)`,pointerEvents:F?"all":"none",visibility:L?"visible":"hidden",...v.style,...V},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:_,onMouseMove:G,onMouseLeave:$,onContextMenu:P,onClick:J,onDoubleClick:H,onKeyDown:N?W:void 0,tabIndex:N?0:void 0,role:N?"button":void 0,"aria-describedby":g?void 0:`${Sm}-${h}`,"aria-label":v.ariaLabel,children:b.jsx(dN,{value:e,children:b.jsx(I,{id:e,data:v.data,type:E,positionAbsoluteX:C.positionAbsolute.x,positionAbsoluteY:C.positionAbsolute.y,selected:v.selected??!1,selectable:M,draggable:O,deletable:v.deletable??!0,isConnectable:w,sourcePosition:v.sourcePosition,targetPosition:v.targetPosition,dragging:j,dragHandle:v.dragHandle,zIndex:C.z,parentId:v.parentId,...z})})})}const PN=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function Zm(e){const{nodesDraggable:t,nodesConnectable:n,nodesFocusable:r,elementsSelectable:o,onError:i}=Ce(PN,ze),s=IN(e.onlyRenderVisibleElements),a=AN();return b.jsx("div",{className:"react-flow__nodes",style:ca,children:s.map(l=>b.jsx(NN,{id:l,nodeTypes:e.nodeTypes,nodeExtent:e.nodeExtent,onClick:e.onNodeClick,onMouseEnter:e.onNodeMouseEnter,onMouseMove:e.onNodeMouseMove,onMouseLeave:e.onNodeMouseLeave,onContextMenu:e.onNodeContextMenu,onDoubleClick:e.onNodeDoubleClick,noDragClassName:e.noDragClassName,noPanClassName:e.noPanClassName,rfId:e.rfId,disableKeyboardA11y:e.disableKeyboardA11y,resizeObserver:a,nodesDraggable:t,nodesConnectable:n,nodesFocusable:r,elementsSelectable:o,nodeClickDistance:e.nodeClickDistance,onError:i},l))})}Zm.displayName="NodeRenderer";const ON=T.memo(Zm);function RN(e){return Ce(T.useCallback(n=>{if(!e)return n.edges.map(o=>o.id);const r=[];if(n.width&&n.height)for(const o of n.edges){const i=n.nodeLookup.get(o.source),s=n.nodeLookup.get(o.target);i&&s&&GA({sourceNode:i,targetNode:s,width:n.width,height:n.height,transform:n.transform})&&r.push(o.id)}return r},[e]),ze)}const MN=({color:e="none",strokeWidth:t=1})=>b.jsx("polyline",{style:{stroke:e,strokeWidth:t},strokeLinecap:"round",strokeLinejoin:"round",fill:"none",points:"-5,-4 0,0 -5,4"}),DN=({color:e="none",strokeWidth:t=1})=>b.jsx("polyline",{style:{stroke:e,fill:e,strokeWidth:t},strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"}),Jm={[qs.Arrow]:MN,[qs.ArrowClosed]:DN};function FN(e){const t=Ve();return T.useMemo(()=>{var o,i;return Object.prototype.hasOwnProperty.call(Jm,e)?Jm[e]:((i=(o=t.getState()).onError)==null||i.call(o,"009",Et.error009(e)),null)},[e])}const jN=({id:e,type:t,color:n,width:r=12.5,height:o=12.5,markerUnits:i="strokeWidth",strokeWidth:s,orient:a="auto-start-reverse"})=>{const l=FN(t);return l?b.jsx("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${r}`,markerHeight:`${o}`,viewBox:"-10 -10 20 20",markerUnits:i,orient:a,refX:"0",refY:"0",children:b.jsx(l,{color:n,strokeWidth:s})}):null},qm=({defaultColor:e,rfId:t})=>{const n=Ce(i=>i.edges),r=Ce(i=>i.defaultEdgeOptions),o=T.useMemo(()=>JA(n,{id:t,defaultColor:e,defaultMarkerStart:r==null?void 0:r.markerStart,defaultMarkerEnd:r==null?void 0:r.markerEnd}),[n,r,t,e]);return o.length?b.jsx("svg",{className:"react-flow__marker",children:b.jsx("defs",{children:o.map(i=>b.jsx(jN,{id:i.id,type:i.type,color:i.color,width:i.width,height:i.height,markerUnits:i.markerUnits,strokeWidth:i.strokeWidth,orient:i.orient},i.id))})}):null};qm.displayName="MarkerDefinitions";var LN=T.memo(qm);function Km({x:e,y:t,label:n,labelStyle:r,labelShowBg:o=!0,labelBgStyle:i,labelBgPadding:s=[2,4],labelBgBorderRadius:a=2,children:l,className:u,...c}){const[f,d]=T.useState({x:1,y:0,width:0,height:0}),p=qe(["react-flow__edge-textwrapper",u]),g=T.useRef(null);return T.useEffect(()=>{if(g.current){const h=g.current.getBBox();d({x:h.x,y:h.y,width:h.width,height:h.height})}},[n]),n?b.jsxs("g",{transform:`translate(${e-f.width/2} ${t-f.height/2})`,className:p,visibility:f.width?"visible":"hidden",...c,children:[o&&b.jsx("rect",{width:f.width+2*s[0],x:-s[0],y:-s[1],height:f.height+2*s[1],className:"react-flow__edge-textbg",style:i,rx:a,ry:a}),b.jsx("text",{className:"react-flow__edge-text",y:f.height/2,dy:"0.3em",ref:g,style:r,children:n}),l]}):null}Km.displayName="EdgeText";const BN=T.memo(Km);function ki({path:e,labelX:t,labelY:n,label:r,labelStyle:o,labelShowBg:i,labelBgStyle:s,labelBgPadding:a,labelBgBorderRadius:l,interactionWidth:u=20,...c}){return b.jsxs(b.Fragment,{children:[b.jsx("path",{...c,d:e,fill:"none",className:qe(["react-flow__edge-path",c.className])}),u&&b.jsx("path",{d:e,fill:"none",strokeOpacity:0,strokeWidth:u,className:"react-flow__edge-interaction"}),r&&Zt(t)&&Zt(n)?b.jsx(BN,{x:t,y:n,label:r,labelStyle:o,labelShowBg:i,labelBgStyle:s,labelBgPadding:a,labelBgBorderRadius:l}):null]})}function Qm({pos:e,x1:t,y1:n,x2:r,y2:o}){return e===ae.Left||e===ae.Right?[.5*(t+r),n]:[t,.5*(n+o)]}function e0({sourceX:e,sourceY:t,sourcePosition:n=ae.Bottom,targetX:r,targetY:o,targetPosition:i=ae.Top}){const[s,a]=Qm({pos:n,x1:e,y1:t,x2:r,y2:o}),[l,u]=Qm({pos:i,x1:r,y1:o,x2:e,y2:t}),[c,f,d,p]=Kg({sourceX:e,sourceY:t,targetX:r,targetY:o,sourceControlX:s,sourceControlY:a,targetControlX:l,targetControlY:u});return[`M${e},${t} C${s},${a} ${l},${u} ${r},${o}`,c,f,d,p]}function t0(e){return T.memo(({id:t,sourceX:n,sourceY:r,targetX:o,targetY:i,sourcePosition:s,targetPosition:a,label:l,labelStyle:u,labelShowBg:c,labelBgStyle:f,labelBgPadding:d,labelBgBorderRadius:p,style:g,markerEnd:h,markerStart:y,interactionWidth:m})=>{const[x,v,C]=e0({sourceX:n,sourceY:r,sourcePosition:s,targetX:o,targetY:i,targetPosition:a}),S=e.isInternal?void 0:t;return b.jsx(ki,{id:S,path:x,labelX:v,labelY:C,label:l,labelStyle:u,labelShowBg:c,labelBgStyle:f,labelBgPadding:d,labelBgBorderRadius:p,style:g,markerEnd:h,markerStart:y,interactionWidth:m})})}const zN=t0({isInternal:!1}),n0=t0({isInternal:!0});zN.displayName="SimpleBezierEdge",n0.displayName="SimpleBezierEdgeInternal";function r0(e){return T.memo(({id:t,sourceX:n,sourceY:r,targetX:o,targetY:i,label:s,labelStyle:a,labelShowBg:l,labelBgStyle:u,labelBgPadding:c,labelBgBorderRadius:f,style:d,sourcePosition:p=ae.Bottom,targetPosition:g=ae.Top,markerEnd:h,markerStart:y,pathOptions:m,interactionWidth:x})=>{const[v,C,S]=nc({sourceX:n,sourceY:r,sourcePosition:p,targetX:o,targetY:i,targetPosition:g,borderRadius:m==null?void 0:m.borderRadius,offset:m==null?void 0:m.offset}),E=e.isInternal?void 0:t;return b.jsx(ki,{id:E,path:v,labelX:C,labelY:S,label:s,labelStyle:a,labelShowBg:l,labelBgStyle:u,labelBgPadding:c,labelBgBorderRadius:f,style:d,markerEnd:h,markerStart:y,interactionWidth:x})})}const o0=r0({isInternal:!1}),i0=r0({isInternal:!0});o0.displayName="SmoothStepEdge",i0.displayName="SmoothStepEdgeInternal";function s0(e){return T.memo(({id:t,...n})=>{var o;const r=e.isInternal?void 0:t;return b.jsx(o0,{...n,id:r,pathOptions:T.useMemo(()=>{var i;return{borderRadius:0,offset:(i=n.pathOptions)==null?void 0:i.offset}},[(o=n.pathOptions)==null?void 0:o.offset])})})}const VN=s0({isInternal:!1}),a0=s0({isInternal:!0});VN.displayName="StepEdge",a0.displayName="StepEdgeInternal";function l0(e){return T.memo(({id:t,sourceX:n,sourceY:r,targetX:o,targetY:i,label:s,labelStyle:a,labelShowBg:l,labelBgStyle:u,labelBgPadding:c,labelBgBorderRadius:f,style:d,markerEnd:p,markerStart:g,interactionWidth:h})=>{const[y,m,x]=tm({sourceX:n,sourceY:r,targetX:o,targetY:i}),v=e.isInternal?void 0:t;return b.jsx(ki,{id:v,path:y,labelX:m,labelY:x,label:s,labelStyle:a,labelShowBg:l,labelBgStyle:u,labelBgPadding:c,labelBgBorderRadius:f,style:d,markerEnd:p,markerStart:g,interactionWidth:h})})}const GN=l0({isInternal:!1}),u0=l0({isInternal:!0});GN.displayName="StraightEdge",u0.displayName="StraightEdgeInternal";function c0(e){return T.memo(({id:t,sourceX:n,sourceY:r,targetX:o,targetY:i,sourcePosition:s=ae.Bottom,targetPosition:a=ae.Top,label:l,labelStyle:u,labelShowBg:c,labelBgStyle:f,labelBgPadding:d,labelBgBorderRadius:p,style:g,markerEnd:h,markerStart:y,pathOptions:m,interactionWidth:x})=>{const[v,C,S]=tc({sourceX:n,sourceY:r,sourcePosition:s,targetX:o,targetY:i,targetPosition:a,curvature:m==null?void 0:m.curvature}),E=e.isInternal?void 0:t;return b.jsx(ki,{id:E,path:v,labelX:C,labelY:S,label:l,labelStyle:u,labelShowBg:c,labelBgStyle:f,labelBgPadding:d,labelBgBorderRadius:p,style:g,markerEnd:h,markerStart:y,interactionWidth:x})})}const $N=c0({isInternal:!1}),f0=c0({isInternal:!0});$N.displayName="BezierEdge",f0.displayName="BezierEdgeInternal";const d0={default:f0,straight:u0,step:a0,smoothstep:i0,simplebezier:n0},p0={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},HN=(e,t,n)=>n===ae.Left?e-t:n===ae.Right?e+t:e,WN=(e,t,n)=>n===ae.Top?e-t:n===ae.Bottom?e+t:e,h0="react-flow__edgeupdater";function g0({position:e,centerX:t,centerY:n,radius:r=10,onMouseDown:o,onMouseEnter:i,onMouseOut:s,type:a}){return b.jsx("circle",{onMouseDown:o,onMouseEnter:i,onMouseOut:s,className:qe([h0,`${h0}-${a}`]),cx:HN(t,r,e),cy:WN(n,r,e),r,stroke:"transparent",fill:"transparent"})}function XN({isReconnectable:e,reconnectRadius:t,edge:n,sourceX:r,sourceY:o,targetX:i,targetY:s,sourcePosition:a,targetPosition:l,onReconnect:u,onReconnectStart:c,onReconnectEnd:f,setReconnecting:d,setUpdateHover:p}){const g=Ve(),h=(C,S)=>{if(C.button!==0)return;const{autoPanOnConnect:E,domNode:I,isValidConnection:O,connectionMode:M,connectionRadius:w,lib:N,onConnectStart:R,onConnectEnd:L,cancelConnection:A,nodeLookup:j,rfId:D,panBy:z,updateConnection:V}=g.getState(),F=S.type==="target";d(!0),c==null||c(C,n,S.type);const _=($,P)=>{d(!1),f==null||f($,n,S.type,P)},G=$=>u==null?void 0:u(n,$);cc.onPointerDown(C.nativeEvent,{autoPanOnConnect:E,connectionMode:M,connectionRadius:w,domNode:I,handleId:S.id,nodeId:S.nodeId,nodeLookup:j,isTarget:F,edgeUpdaterType:S.type,lib:N,flowId:D,cancelConnection:A,panBy:z,isValidConnection:O,onConnect:G,onConnectStart:R,onConnectEnd:L,onReconnectEnd:_,updateConnection:V,getTransform:()=>g.getState().transform,getFromHandle:()=>g.getState().connection.fromHandle})},y=C=>h(C,{nodeId:n.target,id:n.targetHandle??null,type:"target"}),m=C=>h(C,{nodeId:n.source,id:n.sourceHandle??null,type:"source"}),x=()=>p(!0),v=()=>p(!1);return b.jsxs(b.Fragment,{children:[(e===!0||e==="source")&&b.jsx(g0,{position:a,centerX:r,centerY:o,radius:t,onMouseDown:y,onMouseEnter:x,onMouseOut:v,type:"source"}),(e===!0||e==="target")&&b.jsx(g0,{position:l,centerX:i,centerY:s,radius:t,onMouseDown:m,onMouseEnter:x,onMouseOut:v,type:"target"})]})}function YN({id:e,edgesFocusable:t,edgesReconnectable:n,elementsSelectable:r,onClick:o,onDoubleClick:i,onContextMenu:s,onMouseEnter:a,onMouseMove:l,onMouseLeave:u,reconnectRadius:c,onReconnect:f,onReconnectStart:d,onReconnectEnd:p,rfId:g,edgeTypes:h,noPanClassName:y,onError:m,disableKeyboardA11y:x}){let v=Ce(Z=>Z.edgeLookup.get(e));const C=Ce(Z=>Z.defaultEdgeOptions);v=C?{...C,...v}:v;let S=v.type||"default",E=(h==null?void 0:h[S])||d0[S];E===void 0&&(m==null||m("011",Et.error011(S)),S="default",E=d0.default);const I=!!(v.focusable||t&&typeof v.focusable>"u"),O=typeof f<"u"&&(v.reconnectable||n&&typeof v.reconnectable>"u"),M=!!(v.selectable||r&&typeof v.selectable>"u"),w=T.useRef(null),[N,R]=T.useState(!1),[L,A]=T.useState(!1),j=Ve(),{zIndex:D,sourceX:z,sourceY:V,targetX:F,targetY:_,sourcePosition:G,targetPosition:$}=Ce(T.useCallback(Z=>{const ce=Z.nodeLookup.get(v.source),pe=Z.nodeLookup.get(v.target);if(!ce||!pe)return{zIndex:v.zIndex,...p0};const Ie=ZA({id:e,sourceNode:ce,targetNode:pe,sourceHandle:v.sourceHandle||null,targetHandle:v.targetHandle||null,connectionMode:Z.connectionMode,onError:m});return{zIndex:VA({selected:v.selected,zIndex:v.zIndex,sourceNode:ce,targetNode:pe,elevateOnSelect:Z.elevateEdgesOnSelect}),...Ie||p0}},[v.source,v.target,v.sourceHandle,v.targetHandle,v.selected,v.zIndex]),ze),P=T.useMemo(()=>v.markerStart?`url('#${rc(v.markerStart,g)}')`:void 0,[v.markerStart,g]),H=T.useMemo(()=>v.markerEnd?`url('#${rc(v.markerEnd,g)}')`:void 0,[v.markerEnd,g]);if(v.hidden||z===null||V===null||F===null||_===null)return null;const J=Z=>{var Ze;const{addSelectedEdges:ce,unselectNodesAndEdges:pe,multiSelectionActive:Ie}=j.getState();M&&(j.setState({nodesSelectionActive:!1}),v.selected&&Ie?(pe({nodes:[],edges:[v]}),(Ze=w.current)==null||Ze.blur()):ce([e])),o&&o(Z,v)},W=i?Z=>{i(Z,{...v})}:void 0,X=s?Z=>{s(Z,{...v})}:void 0,U=a?Z=>{a(Z,{...v})}:void 0,Q=l?Z=>{l(Z,{...v})}:void 0,ne=u?Z=>{u(Z,{...v})}:void 0,oe=Z=>{var ce;if(!x&&Og.includes(Z.key)&&M){const{unselectNodesAndEdges:pe,addSelectedEdges:Ie}=j.getState();Z.key==="Escape"?((ce=w.current)==null||ce.blur(),pe({edges:[v]})):Ie([e])}};return b.jsx("svg",{style:{zIndex:D},children:b.jsxs("g",{className:qe(["react-flow__edge",`react-flow__edge-${S}`,v.className,y,{selected:v.selected,animated:v.animated,inactive:!M&&!o,updating:N,selectable:M}]),onClick:J,onDoubleClick:W,onContextMenu:X,onMouseEnter:U,onMouseMove:Q,onMouseLeave:ne,onKeyDown:I?oe:void 0,tabIndex:I?0:void 0,role:I?"button":"img","data-id":e,"data-testid":`rf__edge-${e}`,"aria-label":v.ariaLabel===null?void 0:v.ariaLabel||`Edge from ${v.source} to ${v.target}`,"aria-describedby":I?`${Em}-${g}`:void 0,ref:w,children:[!L&&b.jsx(E,{id:e,source:v.source,target:v.target,type:v.type,selected:v.selected,animated:v.animated,selectable:M,deletable:v.deletable??!0,label:v.label,labelStyle:v.labelStyle,labelShowBg:v.labelShowBg,labelBgStyle:v.labelBgStyle,labelBgPadding:v.labelBgPadding,labelBgBorderRadius:v.labelBgBorderRadius,sourceX:z,sourceY:V,targetX:F,targetY:_,sourcePosition:G,targetPosition:$,data:v.data,style:v.style,sourceHandleId:v.sourceHandle,targetHandleId:v.targetHandle,markerStart:P,markerEnd:H,pathOptions:"pathOptions"in v?v.pathOptions:void 0,interactionWidth:v.interactionWidth}),O&&b.jsx(XN,{edge:v,isReconnectable:O,reconnectRadius:c,onReconnect:f,onReconnectStart:d,onReconnectEnd:p,sourceX:z,sourceY:V,targetX:F,targetY:_,sourcePosition:G,targetPosition:$,setUpdateHover:R,setReconnecting:A})]})})}const UN=e=>({edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function m0({defaultMarkerColor:e,onlyRenderVisibleElements:t,rfId:n,edgeTypes:r,noPanClassName:o,onReconnect:i,onEdgeContextMenu:s,onEdgeMouseEnter:a,onEdgeMouseMove:l,onEdgeMouseLeave:u,onEdgeClick:c,reconnectRadius:f,onEdgeDoubleClick:d,onReconnectStart:p,onReconnectEnd:g,disableKeyboardA11y:h}){const{edgesFocusable:y,edgesReconnectable:m,elementsSelectable:x,onError:v}=Ce(UN,ze),C=RN(t);return b.jsxs("div",{className:"react-flow__edges",children:[b.jsx(LN,{defaultColor:e,rfId:n}),C.map(S=>b.jsx(YN,{id:S,edgesFocusable:y,edgesReconnectable:m,elementsSelectable:x,noPanClassName:o,onReconnect:i,onContextMenu:s,onMouseEnter:a,onMouseMove:l,onMouseLeave:u,onClick:c,reconnectRadius:f,onDoubleClick:d,onReconnectStart:p,onReconnectEnd:g,rfId:n,onError:v,edgeTypes:r,disableKeyboardA11y:h},S))]})}m0.displayName="EdgeRenderer";const ZN=T.memo(m0),JN=e=>`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;function qN({children:e}){const t=Ce(JN);return b.jsx("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:t},children:e})}function KN(e){const t=Ei(),n=T.useRef(!1);T.useEffect(()=>{!n.current&&t.viewportInitialized&&e&&(setTimeout(()=>e(t),1),n.current=!0)},[e,t.viewportInitialized])}const QN=e=>{var t;return(t=e.panZoom)==null?void 0:t.syncViewport};function eP(e){const t=Ce(QN),n=Ve();return T.useEffect(()=>{e&&(t==null||t(e),n.setState({transform:[e.x,e.y,e.zoom]}))},[e,t]),null}function tP(e){return e.connection.inProgress?{...e.connection,to:wi(e.connection.to,e.transform)}:{...e.connection}}function nP(e){return tP}function rP(e){const t=nP();return Ce(t,ze)}const oP=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function iP({containerStyle:e,style:t,type:n,component:r}){const{nodesConnectable:o,width:i,height:s,isValid:a,inProgress:l}=Ce(oP,ze);return!(i&&o&&l)?null:b.jsx("svg",{style:e,width:i,height:s,className:"react-flow__connectionline react-flow__container",children:b.jsx("g",{className:qe(["react-flow__connection",Dg(a)]),children:b.jsx(y0,{style:t,type:n,CustomComponent:r,isValid:a})})})}const y0=({style:e,type:t=tr.Bezier,CustomComponent:n,isValid:r})=>{const{inProgress:o,from:i,fromNode:s,fromHandle:a,fromPosition:l,to:u,toNode:c,toHandle:f,toPosition:d}=rP();if(!o)return;if(n)return b.jsx(n,{connectionLineType:t,connectionLineStyle:e,fromNode:s,fromHandle:a,fromX:i.x,fromY:i.y,toX:u.x,toY:u.y,fromPosition:l,toPosition:d,connectionStatus:Dg(r),toNode:c,toHandle:f});let p="";const g={sourceX:i.x,sourceY:i.y,sourcePosition:l,targetX:u.x,targetY:u.y,targetPosition:d};switch(t){case tr.Bezier:[p]=tc(g);break;case tr.SimpleBezier:[p]=e0(g);break;case tr.Step:[p]=nc({...g,borderRadius:0});break;case tr.SmoothStep:[p]=nc(g);break;default:[p]=tm(g)}return b.jsx("path",{d:p,fill:"none",className:"react-flow__connection-path",style:e})};y0.displayName="ConnectionLine";const sP={};function b0(e=sP){const t=T.useRef(e),n=Ve();T.useEffect(()=>{var r,o;if(process.env.NODE_ENV==="development"){const i=new Set([...Object.keys(t.current),...Object.keys(e)]);for(const s of i)if(t.current[s]!==e[s]){(o=(r=n.getState()).onError)==null||o.call(r,"002",Et.error002());break}t.current=e}},[e])}function aP(){const e=Ve(),t=T.useRef(!1);T.useEffect(()=>{var n,r;if(process.env.NODE_ENV==="development"&&!t.current){const o=document.querySelector(".react-flow__pane");o&&window.getComputedStyle(o).zIndex!=="1"&&((r=(n=e.getState()).onError)==null||r.call(n,"013",Et.error013("react"))),t.current=!0}},[])}function v0({nodeTypes:e,edgeTypes:t,onInit:n,onNodeClick:r,onEdgeClick:o,onNodeDoubleClick:i,onEdgeDoubleClick:s,onNodeMouseEnter:a,onNodeMouseMove:l,onNodeMouseLeave:u,onNodeContextMenu:c,onSelectionContextMenu:f,onSelectionStart:d,onSelectionEnd:p,connectionLineType:g,connectionLineStyle:h,connectionLineComponent:y,connectionLineContainerStyle:m,selectionKeyCode:x,selectionOnDrag:v,selectionMode:C,multiSelectionKeyCode:S,panActivationKeyCode:E,zoomActivationKeyCode:I,deleteKeyCode:O,onlyRenderVisibleElements:M,elementsSelectable:w,defaultViewport:N,translateExtent:R,minZoom:L,maxZoom:A,preventScrolling:j,defaultMarkerColor:D,zoomOnScroll:z,zoomOnPinch:V,panOnScroll:F,panOnScrollSpeed:_,panOnScrollMode:G,zoomOnDoubleClick:$,panOnDrag:P,onPaneClick:H,onPaneMouseEnter:J,onPaneMouseMove:W,onPaneMouseLeave:X,onPaneScroll:U,onPaneContextMenu:Q,paneClickDistance:ne,nodeClickDistance:oe,onEdgeContextMenu:Z,onEdgeMouseEnter:ce,onEdgeMouseMove:pe,onEdgeMouseLeave:Ie,reconnectRadius:Ze,onReconnect:ft,onReconnectStart:Dt,onReconnectEnd:Ft,noDragClassName:on,noWheelClassName:Jr,noPanClassName:ge,disableKeyboardA11y:qr,nodeExtent:Es,rfId:Kr,viewport:K,onViewportChange:re}){return b0(e),b0(t),aP(),KN(n),eP(K),b.jsx(SN,{onPaneClick:H,onPaneMouseEnter:J,onPaneMouseMove:W,onPaneMouseLeave:X,onPaneContextMenu:Q,onPaneScroll:U,paneClickDistance:ne,deleteKeyCode:O,selectionKeyCode:x,selectionOnDrag:v,selectionMode:C,onSelectionStart:d,onSelectionEnd:p,multiSelectionKeyCode:S,panActivationKeyCode:E,zoomActivationKeyCode:I,elementsSelectable:w,zoomOnScroll:z,zoomOnPinch:V,zoomOnDoubleClick:$,panOnScroll:F,panOnScrollSpeed:_,panOnScrollMode:G,panOnDrag:P,defaultViewport:N,translateExtent:R,minZoom:L,maxZoom:A,onSelectionContextMenu:f,preventScrolling:j,noDragClassName:on,noWheelClassName:Jr,noPanClassName:ge,disableKeyboardA11y:qr,onViewportChange:re,isControlledViewport:!!K,children:b.jsxs(qN,{children:[b.jsx(ZN,{edgeTypes:t,onEdgeClick:o,onEdgeDoubleClick:s,onReconnect:ft,onReconnectStart:Dt,onReconnectEnd:Ft,onlyRenderVisibleElements:M,onEdgeContextMenu:Z,onEdgeMouseEnter:ce,onEdgeMouseMove:pe,onEdgeMouseLeave:Ie,reconnectRadius:Ze,defaultMarkerColor:D,noPanClassName:ge,disableKeyboardA11y:qr,rfId:Kr}),b.jsx(iP,{style:h,type:g,component:y,containerStyle:m}),b.jsx("div",{className:"react-flow__edgelabel-renderer"}),b.jsx(ON,{nodeTypes:e,onNodeClick:r,onNodeDoubleClick:i,onNodeMouseEnter:a,onNodeMouseMove:l,onNodeMouseLeave:u,onNodeContextMenu:c,nodeClickDistance:oe,onlyRenderVisibleElements:M,noPanClassName:ge,noDragClassName:on,disableKeyboardA11y:qr,nodeExtent:Es,rfId:Kr}),b.jsx("div",{className:"react-flow__viewport-portal"})]})})}v0.displayName="GraphView";const lP=T.memo(v0),x0=({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,width:o,height:i,fitView:s,nodeOrigin:a,nodeExtent:l}={})=>{const u=new Map,c=new Map,f=new Map,d=new Map,p=r??t??[],g=n??e??[],h=a??[0,0],y=l??mi;um(f,d,p),sc(g,u,c,{nodeOrigin:h,nodeExtent:y,elevateNodesOnSelect:!1});let m=[0,0,1];if(s&&o&&i){const x=vi(u,{filter:E=>!!((E.width||E.initialWidth)&&(E.height||E.initialHeight))}),{x:v,y:C,zoom:S}=Qu(x,o,i,.5,2,.1);m=[v,C,S]}return{rfId:"1",width:0,height:0,transform:m,nodes:g,nodeLookup:u,parentLookup:c,edges:p,edgeLookup:d,connectionLookup:f,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:n!==void 0,hasDefaultEdges:r!==void 0,panZoom:null,minZoom:.5,maxZoom:2,translateExtent:mi,nodeExtent:y,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:io.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:h,nodeDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!1,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:s??!1,fitViewOptions:void 0,fitViewResolver:null,connection:{...Rg},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanSpeed:15,connectionRadius:20,onError:Hg,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1}},uP=({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,width:o,height:i,fitView:s,nodeOrigin:a,nodeExtent:l})=>TT((u,c)=>{async function f(){const{nodeLookup:d,panZoom:p,fitViewOptions:g,fitViewResolver:h,width:y,height:m,minZoom:x,maxZoom:v}=c();p&&(await FA({nodes:d,width:y,height:m,panZoom:p,minZoom:x,maxZoom:v},g),h==null||h.resolve(!0),u({fitViewResolver:null}))}return{...x0({nodes:e,edges:t,width:o,height:i,fitView:s,nodeOrigin:a,nodeExtent:l,defaultNodes:n,defaultEdges:r}),setNodes:d=>{const{nodeLookup:p,parentLookup:g,nodeOrigin:h,elevateNodesOnSelect:y,fitViewQueued:m}=c(),x=sc(d,p,g,{nodeOrigin:h,nodeExtent:l,elevateNodesOnSelect:y,checkEquality:!0});m&&x?(f(),u({nodes:d,fitViewQueued:!1,fitViewOptions:void 0})):u({nodes:d})},setEdges:d=>{const{connectionLookup:p,edgeLookup:g}=c();um(p,g,d),u({edges:d})},setDefaultNodesAndEdges:(d,p)=>{if(d){const{setNodes:g}=c();g(d),u({hasDefaultNodes:!0})}if(p){const{setEdges:g}=c();g(p),u({hasDefaultEdges:!0})}},updateNodeInternals:d=>{const{triggerNodeChanges:p,nodeLookup:g,parentLookup:h,domNode:y,nodeOrigin:m,nodeExtent:x,debug:v,fitViewQueued:C}=c(),{changes:S,updatedInternals:E}=tT(d,g,h,y,m,x);E&&(KA(g,h,{nodeOrigin:m,nodeExtent:x}),C?(f(),u({fitViewQueued:!1,fitViewOptions:void 0})):u({}),(S==null?void 0:S.length)>0&&(v&&console.log("React Flow: trigger node changes",S),p==null||p(S)))},updateNodePositions:(d,p=!1)=>{const g=[],h=[],{nodeLookup:y,triggerNodeChanges:m}=c();for(const[x,v]of d){const C=y.get(x),S=!!(C!=null&&C.expandParent&&(C!=null&&C.parentId)&&(v!=null&&v.position)),E={id:x,type:"position",position:S?{x:Math.max(0,v.position.x),y:Math.max(0,v.position.y)}:v.position,dragging:p};S&&C.parentId&&g.push({id:x,parentId:C.parentId,rect:{...v.internals.positionAbsolute,width:v.measured.width??0,height:v.measured.height??0}}),h.push(E)}if(g.length>0){const{parentLookup:x,nodeOrigin:v}=c(),C=lc(g,y,x,v);h.push(...C)}m(h)},triggerNodeChanges:d=>{const{onNodesChange:p,setNodes:g,nodes:h,hasDefaultNodes:y,debug:m}=c();if(d!=null&&d.length){if(y){const x=Mm(d,h);g(x)}m&&console.log("React Flow: trigger node changes",d),p==null||p(d)}},triggerEdgeChanges:d=>{const{onEdgesChange:p,setEdges:g,edges:h,hasDefaultEdges:y,debug:m}=c();if(d!=null&&d.length){if(y){const x=Dm(d,h);g(x)}m&&console.log("React Flow: trigger edge changes",d),p==null||p(d)}},addSelectedNodes:d=>{const{multiSelectionActive:p,edgeLookup:g,nodeLookup:h,triggerNodeChanges:y,triggerEdgeChanges:m}=c();if(p){const x=d.map(v=>Nr(v,!0));y(x);return}y(po(h,new Set([...d]),!0)),m(po(g))},addSelectedEdges:d=>{const{multiSelectionActive:p,edgeLookup:g,nodeLookup:h,triggerNodeChanges:y,triggerEdgeChanges:m}=c();if(p){const x=d.map(v=>Nr(v,!0));m(x);return}m(po(g,new Set([...d]))),y(po(h,new Set,!0))},unselectNodesAndEdges:({nodes:d,edges:p}={})=>{const{edges:g,nodes:h,nodeLookup:y,triggerNodeChanges:m,triggerEdgeChanges:x}=c(),v=d||h,C=p||g,S=v.map(I=>{const O=y.get(I.id);return O&&(O.selected=!1),Nr(I.id,!1)}),E=C.map(I=>Nr(I.id,!1));m(S),x(E)},setMinZoom:d=>{const{panZoom:p,maxZoom:g}=c();p==null||p.setScaleExtent([d,g]),u({minZoom:d})},setMaxZoom:d=>{const{panZoom:p,minZoom:g}=c();p==null||p.setScaleExtent([g,d]),u({maxZoom:d})},setTranslateExtent:d=>{var p;(p=c().panZoom)==null||p.setTranslateExtent(d),u({translateExtent:d})},setPaneClickDistance:d=>{var p;(p=c().panZoom)==null||p.setClickDistance(d)},resetSelectedElements:()=>{const{edges:d,nodes:p,triggerNodeChanges:g,triggerEdgeChanges:h}=c(),y=p.reduce((x,v)=>v.selected?[...x,Nr(v.id,!1)]:x,[]),m=d.reduce((x,v)=>v.selected?[...x,Nr(v.id,!1)]:x,[]);g(y),h(m)},setNodeExtent:d=>{const{nodes:p,nodeLookup:g,parentLookup:h,nodeOrigin:y,elevateNodesOnSelect:m,nodeExtent:x}=c();d[0][0]===x[0][0]&&d[0][1]===x[0][1]&&d[1][0]===x[1][0]&&d[1][1]===x[1][1]||(sc(p,g,h,{nodeOrigin:y,nodeExtent:d,elevateNodesOnSelect:m,checkEquality:!1}),u({nodeExtent:d}))},panBy:d=>{const{transform:p,width:g,height:h,panZoom:y,translateExtent:m}=c();return nT({delta:d,panZoom:y,transform:p,translateExtent:m,width:g,height:h})},cancelConnection:()=>{u({connection:{...Rg}})},updateConnection:d=>{u({connection:d})},reset:()=>u({...x0()})}},Object.is);function cP({initialNodes:e,initialEdges:t,defaultNodes:n,defaultEdges:r,initialWidth:o,initialHeight:i,fitView:s,nodeOrigin:a,nodeExtent:l,children:u}){const[c]=T.useState(()=>uP({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,width:o,height:i,fitView:s,nodeOrigin:a,nodeExtent:l}));return b.jsx(NT,{value:c,children:b.jsx(KT,{children:u})})}function fP({children:e,nodes:t,edges:n,defaultNodes:r,defaultEdges:o,width:i,height:s,fitView:a,nodeOrigin:l,nodeExtent:u}){return T.useContext(aa)?b.jsx(b.Fragment,{children:e}):b.jsx(cP,{initialNodes:t,initialEdges:n,defaultNodes:r,defaultEdges:o,initialWidth:i,initialHeight:s,fitView:a,nodeOrigin:l,nodeExtent:u,children:e})}const dP={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function pP({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,className:o,nodeTypes:i,edgeTypes:s,onNodeClick:a,onEdgeClick:l,onInit:u,onMove:c,onMoveStart:f,onMoveEnd:d,onConnect:p,onConnectStart:g,onConnectEnd:h,onClickConnectStart:y,onClickConnectEnd:m,onNodeMouseEnter:x,onNodeMouseMove:v,onNodeMouseLeave:C,onNodeContextMenu:S,onNodeDoubleClick:E,onNodeDragStart:I,onNodeDrag:O,onNodeDragStop:M,onNodesDelete:w,onEdgesDelete:N,onDelete:R,onSelectionChange:L,onSelectionDragStart:A,onSelectionDrag:j,onSelectionDragStop:D,onSelectionContextMenu:z,onSelectionStart:V,onSelectionEnd:F,onBeforeDelete:_,connectionMode:G,connectionLineType:$=tr.Bezier,connectionLineStyle:P,connectionLineComponent:H,connectionLineContainerStyle:J,deleteKeyCode:W="Backspace",selectionKeyCode:X="Shift",selectionOnDrag:U=!1,selectionMode:Q=yi.Full,panActivationKeyCode:ne="Space",multiSelectionKeyCode:oe=ra()?"Meta":"Control",zoomActivationKeyCode:Z=ra()?"Meta":"Control",snapToGrid:ce,snapGrid:pe,onlyRenderVisibleElements:Ie=!1,selectNodesOnDrag:Ze,nodesDraggable:ft,nodesConnectable:Dt,nodesFocusable:Ft,nodeOrigin:on=Im,edgesFocusable:Jr,edgesReconnectable:ge,elementsSelectable:qr=!0,defaultViewport:Es=$T,minZoom:Kr=.5,maxZoom:K=2,translateExtent:re=mi,preventScrolling:me=!0,nodeExtent:ve,defaultMarkerColor:Ne="#b1b1b7",zoomOnScroll:jt=!0,zoomOnPinch:qn=!0,panOnScroll:sn=!1,panOnScrollSpeed:Qr=.5,panOnScrollMode:eo=Ar.Free,zoomOnDoubleClick:mt=!0,panOnDrag:_r=!0,onPaneClick:an,onPaneMouseEnter:xZ,onPaneMouseMove:wZ,onPaneMouseLeave:CZ,onPaneScroll:_Z,onPaneContextMenu:SZ,paneClickDistance:vE=0,nodeClickDistance:EZ=0,children:IZ,onReconnect:kZ,onReconnectStart:AZ,onReconnectEnd:TZ,onEdgeContextMenu:NZ,onEdgeDoubleClick:PZ,onEdgeMouseEnter:OZ,onEdgeMouseMove:RZ,onEdgeMouseLeave:MZ,reconnectRadius:DZ=10,onNodesChange:FZ,onEdgesChange:jZ,noDragClassName:LZ="nodrag",noWheelClassName:BZ="nowheel",noPanClassName:xE="nopan",fitView:wE,fitViewOptions:zZ,connectOnClick:VZ,attributionPosition:GZ,proOptions:$Z,defaultEdgeOptions:HZ,elevateNodesOnSelect:WZ,elevateEdgesOnSelect:XZ,disableKeyboardA11y:CE=!1,autoPanOnConnect:YZ,autoPanOnNodeDrag:UZ,autoPanSpeed:ZZ,connectionRadius:JZ,isValidConnection:qZ,onError:KZ,style:QZ,id:_E,nodeDragThreshold:eJ,viewport:tJ,onViewportChange:nJ,width:rJ,height:oJ,colorMode:iJ="light",debug:sJ,onScroll:Iu,...aJ},lJ){const mh=_E||"1",uJ=XT(iJ),cJ=T.useCallback(SE=>{SE.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),Iu==null||Iu(SE)},[Iu]);return b.jsx("div",{"data-testid":"rf__wrapper",...aJ,onScroll:cJ,style:{...QZ,...dP},ref:lJ,className:qe(["react-flow",o,uJ]),id:_E,children:b.jsxs(fP,{nodes:e,edges:t,width:rJ,height:oJ,fitView:wE,nodeOrigin:on,nodeExtent:ve,children:[b.jsx(lP,{onInit:u,onNodeClick:a,onEdgeClick:l,onNodeMouseEnter:x,onNodeMouseMove:v,onNodeMouseLeave:C,onNodeContextMenu:S,onNodeDoubleClick:E,nodeTypes:i,edgeTypes:s,connectionLineType:$,connectionLineStyle:P,connectionLineComponent:H,connectionLineContainerStyle:J,selectionKeyCode:X,selectionOnDrag:U,selectionMode:Q,deleteKeyCode:W,multiSelectionKeyCode:oe,panActivationKeyCode:ne,zoomActivationKeyCode:Z,onlyRenderVisibleElements:Ie,defaultViewport:Es,translateExtent:re,minZoom:Kr,maxZoom:K,preventScrolling:me,zoomOnScroll:jt,zoomOnPinch:qn,zoomOnDoubleClick:mt,panOnScroll:sn,panOnScrollSpeed:Qr,panOnScrollMode:eo,panOnDrag:_r,onPaneClick:an,onPaneMouseEnter:xZ,onPaneMouseMove:wZ,onPaneMouseLeave:CZ,onPaneScroll:_Z,onPaneContextMenu:SZ,paneClickDistance:vE,nodeClickDistance:EZ,onSelectionContextMenu:z,onSelectionStart:V,onSelectionEnd:F,onReconnect:kZ,onReconnectStart:AZ,onReconnectEnd:TZ,onEdgeContextMenu:NZ,onEdgeDoubleClick:PZ,onEdgeMouseEnter:OZ,onEdgeMouseMove:RZ,onEdgeMouseLeave:MZ,reconnectRadius:DZ,defaultMarkerColor:Ne,noDragClassName:LZ,noWheelClassName:BZ,noPanClassName:xE,rfId:mh,disableKeyboardA11y:CE,nodeExtent:ve,viewport:tJ,onViewportChange:nJ}),b.jsx(WT,{nodes:e,edges:t,defaultNodes:n,defaultEdges:r,onConnect:p,onConnectStart:g,onConnectEnd:h,onClickConnectStart:y,onClickConnectEnd:m,nodesDraggable:ft,nodesConnectable:Dt,nodesFocusable:Ft,edgesFocusable:Jr,edgesReconnectable:ge,elementsSelectable:qr,elevateNodesOnSelect:WZ,elevateEdgesOnSelect:XZ,minZoom:Kr,maxZoom:K,nodeExtent:ve,onNodesChange:FZ,onEdgesChange:jZ,snapToGrid:ce,snapGrid:pe,connectionMode:G,translateExtent:re,connectOnClick:VZ,defaultEdgeOptions:HZ,fitView:wE,fitViewOptions:zZ,onNodesDelete:w,onEdgesDelete:N,onDelete:R,onNodeDragStart:I,onNodeDrag:O,onNodeDragStop:M,onSelectionDrag:j,onSelectionDragStart:A,onSelectionDragStop:D,onMove:c,onMoveStart:f,onMoveEnd:d,noPanClassName:xE,nodeOrigin:on,rfId:mh,autoPanOnConnect:YZ,autoPanOnNodeDrag:UZ,autoPanSpeed:ZZ,onError:KZ,connectionRadius:JZ,isValidConnection:qZ,selectNodesOnDrag:Ze,nodeDragThreshold:eJ,onBeforeDelete:_,paneClickDistance:vE,debug:sJ}),b.jsx(GT,{onSelectionChange:L}),IZ,b.jsx(jT,{proOptions:$Z,position:GZ}),b.jsx(DT,{rfId:mh,disableKeyboardA11y:CE})]})})}var hP=Bm(pP);const gP=e=>e.nodes;function mP(){return Ce(gP,ze)}const yP=e=>e.edges;function bP(){return Ce(yP,ze)}function vP({dimensions:e,lineWidth:t,variant:n,className:r}){return b.jsx("path",{strokeWidth:t,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:qe(["react-flow__background-pattern",n,r])})}function xP({radius:e,className:t}){return b.jsx("circle",{cx:e,cy:e,r:e,className:qe(["react-flow__background-pattern","dots",t])})}var or;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(or||(or={}));const wP={[or.Dots]:1,[or.Lines]:1,[or.Cross]:6},CP=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function w0({id:e,variant:t=or.Dots,gap:n=20,size:r,lineWidth:o=1,offset:i=0,color:s,bgColor:a,style:l,className:u,patternClassName:c}){const f=T.useRef(null),{transform:d,patternId:p}=Ce(CP,ze),g=r||wP[t],h=t===or.Dots,y=t===or.Cross,m=Array.isArray(n)?n:[n,n],x=[m[0]*d[2]||1,m[1]*d[2]||1],v=g*d[2],C=Array.isArray(i)?i:[i,i],S=y?[v,v]:x,E=[C[0]*d[2]||1+S[0]/2,C[1]*d[2]||1+S[1]/2],I=`${p}${e||""}`;return b.jsxs("svg",{className:qe(["react-flow__background",u]),style:{...l,...ca,"--xy-background-color-props":a,"--xy-background-pattern-color-props":s},ref:f,"data-testid":"rf__background",children:[b.jsx("pattern",{id:I,x:d[0]%x[0],y:d[1]%x[1],width:x[0],height:x[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${E[0]},-${E[1]})`,children:h?b.jsx(xP,{radius:v/2,className:c}):b.jsx(vP,{dimensions:S,lineWidth:o,variant:t,className:c})}),b.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${I})`})]})}w0.displayName="Background";const _P=T.memo(w0);function SP(){return b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:b.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function EP(){return b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:b.jsx("path",{d:"M0 0h32v4.2H0z"})})}function IP(){return b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:b.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function kP(){return b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:b.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function AP(){return b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:b.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function da({children:e,className:t,...n}){return b.jsx("button",{type:"button",className:qe(["react-flow__controls-button",t]),...n,children:e})}const TP=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom});function C0({style:e,showZoom:t=!0,showFitView:n=!0,showInteractive:r=!0,fitViewOptions:o,onZoomIn:i,onZoomOut:s,onFitView:a,onInteractiveChange:l,className:u,children:c,position:f="bottom-left",orientation:d="vertical","aria-label":p="React Flow controls"}){const g=Ve(),{isInteractive:h,minZoomReached:y,maxZoomReached:m}=Ce(TP,ze),{zoomIn:x,zoomOut:v,fitView:C}=Ei(),S=()=>{x(),i==null||i()},E=()=>{v(),s==null||s()},I=()=>{C(o),a==null||a()},O=()=>{g.setState({nodesDraggable:!h,nodesConnectable:!h,elementsSelectable:!h}),l==null||l(!h)},M=d==="horizontal"?"horizontal":"vertical";return b.jsxs(la,{className:qe(["react-flow__controls",M,u]),position:f,style:e,"data-testid":"rf__controls","aria-label":p,children:[t&&b.jsxs(b.Fragment,{children:[b.jsx(da,{onClick:S,className:"react-flow__controls-zoomin",title:"zoom in","aria-label":"zoom in",disabled:m,children:b.jsx(SP,{})}),b.jsx(da,{onClick:E,className:"react-flow__controls-zoomout",title:"zoom out","aria-label":"zoom out",disabled:y,children:b.jsx(EP,{})})]}),n&&b.jsx(da,{className:"react-flow__controls-fitview",onClick:I,title:"fit view","aria-label":"fit view",children:b.jsx(IP,{})}),r&&b.jsx(da,{className:"react-flow__controls-interactive",onClick:O,title:"toggle interactivity","aria-label":"toggle interactivity",children:h?b.jsx(AP,{}):b.jsx(kP,{})}),c]})}C0.displayName="Controls",T.memo(C0);function NP({id:e,x:t,y:n,width:r,height:o,style:i,color:s,strokeColor:a,strokeWidth:l,className:u,borderRadius:c,shapeRendering:f,selected:d,onClick:p}){const{background:g,backgroundColor:h}=i||{},y=s||g||h;return b.jsx("rect",{className:qe(["react-flow__minimap-node",{selected:d},u]),x:t,y:n,rx:c,ry:c,width:r,height:o,style:{fill:y,stroke:a,strokeWidth:l},shapeRendering:f,onClick:p?m=>p(m,e):void 0})}const PP=T.memo(NP),OP=e=>e.nodes.map(t=>t.id),mc=e=>e instanceof Function?e:()=>e;function RP({nodeStrokeColor:e,nodeColor:t,nodeClassName:n="",nodeBorderRadius:r=5,nodeStrokeWidth:o,nodeComponent:i=PP,onClick:s}){const a=Ce(OP,ze),l=mc(t),u=mc(e),c=mc(n),f=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return b.jsx(b.Fragment,{children:a.map(d=>b.jsx(DP,{id:d,nodeColorFunc:l,nodeStrokeColorFunc:u,nodeClassNameFunc:c,nodeBorderRadius:r,nodeStrokeWidth:o,NodeComponent:i,onClick:s,shapeRendering:f},d))})}function MP({id:e,nodeColorFunc:t,nodeStrokeColorFunc:n,nodeClassNameFunc:r,nodeBorderRadius:o,nodeStrokeWidth:i,shapeRendering:s,NodeComponent:a,onClick:l}){const{node:u,x:c,y:f,width:d,height:p}=Ce(g=>{const{internals:h}=g.nodeLookup.get(e),y=h.userNode,{x:m,y:x}=h.positionAbsolute,{width:v,height:C}=Rn(y);return{node:y,x:m,y:x,width:v,height:C}},ze);return!u||u.hidden||!Wg(u)?null:b.jsx(a,{x:c,y:f,width:d,height:p,style:u.style,selected:!!u.selected,className:r(u),color:t(u),borderRadius:o,strokeColor:n(u),strokeWidth:i,shapeRendering:s,onClick:l,id:u.id})}const DP=T.memo(MP);var FP=T.memo(RP);const jP=200,LP=150,BP=e=>!e.hidden,zP=e=>{const t={x:-e.transform[0]/e.transform[2],y:-e.transform[1]/e.transform[2],width:e.width/e.transform[2],height:e.height/e.transform[2]};return{viewBB:t,boundingRect:e.nodeLookup.size>0?Gg(vi(e.nodeLookup,{filter:BP}),t):t,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height}},VP="react-flow__minimap-desc";function _0({style:e,className:t,nodeStrokeColor:n,nodeColor:r,nodeClassName:o="",nodeBorderRadius:i=5,nodeStrokeWidth:s,nodeComponent:a,bgColor:l,maskColor:u,maskStrokeColor:c,maskStrokeWidth:f,position:d="bottom-right",onClick:p,onNodeClick:g,pannable:h=!1,zoomable:y=!1,ariaLabel:m="React Flow mini map",inversePan:x,zoomStep:v=10,offsetScale:C=5}){const S=Ve(),E=T.useRef(null),{boundingRect:I,viewBB:O,rfId:M,panZoom:w,translateExtent:N,flowWidth:R,flowHeight:L}=Ce(zP,ze),A=(e==null?void 0:e.width)??jP,j=(e==null?void 0:e.height)??LP,D=I.width/A,z=I.height/j,V=Math.max(D,z),F=V*A,_=V*j,G=C*V,$=I.x-(F-I.width)/2-G,P=I.y-(_-I.height)/2-G,H=F+G*2,J=_+G*2,W=`${VP}-${M}`,X=T.useRef(0),U=T.useRef();X.current=V,T.useEffect(()=>{if(E.current&&w)return U.current=cT({domNode:E.current,panZoom:w,getTransform:()=>S.getState().transform,getViewScale:()=>X.current}),()=>{var oe;(oe=U.current)==null||oe.destroy()}},[w]),T.useEffect(()=>{var oe;(oe=U.current)==null||oe.update({translateExtent:N,width:R,height:L,inversePan:x,pannable:h,zoomStep:v,zoomable:y})},[h,y,x,v,N,R,L]);const Q=p?oe=>{var pe;const[Z,ce]=((pe=U.current)==null?void 0:pe.pointer(oe))||[0,0];p(oe,{x:Z,y:ce})}:void 0,ne=g?T.useCallback((oe,Z)=>{const ce=S.getState().nodeLookup.get(Z).internals.userNode;g(oe,ce)},[]):void 0;return b.jsx(la,{position:d,style:{...e,"--xy-minimap-background-color-props":typeof l=="string"?l:void 0,"--xy-minimap-mask-background-color-props":typeof u=="string"?u:void 0,"--xy-minimap-mask-stroke-color-props":typeof c=="string"?c:void 0,"--xy-minimap-mask-stroke-width-props":typeof f=="number"?f*V:void 0,"--xy-minimap-node-background-color-props":typeof r=="string"?r:void 0,"--xy-minimap-node-stroke-color-props":typeof n=="string"?n:void 0,"--xy-minimap-node-stroke-width-props":typeof s=="number"?s:void 0},className:qe(["react-flow__minimap",t]),"data-testid":"rf__minimap",children:b.jsxs("svg",{width:A,height:j,viewBox:`${$} ${P} ${H} ${J}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":W,ref:E,onClick:Q,children:[m&&b.jsx("title",{id:W,children:m}),b.jsx(FP,{onClick:ne,nodeColor:r,nodeStrokeColor:n,nodeBorderRadius:i,nodeClassName:o,nodeStrokeWidth:s,nodeComponent:a}),b.jsx("path",{className:"react-flow__minimap-mask",d:`M${$-G},${P-G}h${H+G*2}v${J+G*2}h${-H-G*2}z
|
|
60
|
+
M${O.x},${O.y}h${O.width}v${O.height}h${-O.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}_0.displayName="MiniMap";const GP=T.memo(_0);function $P({nodeId:e,position:t,variant:n=Si.Handle,className:r,style:o={},children:i,color:s,minWidth:a=10,minHeight:l=10,maxWidth:u=Number.MAX_VALUE,maxHeight:c=Number.MAX_VALUE,keepAspectRatio:f=!1,shouldResize:d,onResizeStart:p,onResize:g,onResizeEnd:h}){const y=Wm(),m=typeof e=="string"?e:y,x=Ve(),v=T.useRef(null),C=n===Si.Line?"right":"bottom-right",S=t??C,E=T.useRef(null);T.useEffect(()=>{if(!(!v.current||!m))return E.current||(E.current=ET({domNode:v.current,nodeId:m,getStoreItems:()=>{const{nodeLookup:w,transform:N,snapGrid:R,snapToGrid:L,nodeOrigin:A,domNode:j}=x.getState();return{nodeLookup:w,transform:N,snapGrid:R,snapToGrid:L,nodeOrigin:A,paneDomNode:j}},onChange:(w,N)=>{const{triggerNodeChanges:R,nodeLookup:L,parentLookup:A,nodeOrigin:j}=x.getState(),D=[],z={x:w.x,y:w.y},V=L.get(m);if(V&&V.expandParent&&V.parentId){const F=V.origin??j,_=w.width??V.measured.width??0,G=w.height??V.measured.height??0,$={id:V.id,parentId:V.parentId,rect:{width:_,height:G,...Xg({x:w.x??V.position.x,y:w.y??V.position.y},{width:_,height:G},V.parentId,L,F)}},P=lc([$],L,A,j);D.push(...P),z.x=w.x?Math.max(F[0]*_,w.x):void 0,z.y=w.y?Math.max(F[1]*G,w.y):void 0}if(z.x!==void 0&&z.y!==void 0){const F={id:m,type:"position",position:{...z}};D.push(F)}if(w.width!==void 0&&w.height!==void 0){const F={id:m,type:"dimensions",resizing:!0,setAttributes:!0,dimensions:{width:w.width,height:w.height}};D.push(F)}for(const F of N){const _={...F,type:"position"};D.push(_)}R(D)},onEnd:({width:w,height:N})=>{const R={id:m,type:"dimensions",resizing:!1,dimensions:{width:w,height:N}};x.getState().triggerNodeChanges([R])}})),E.current.update({controlPosition:S,boundaries:{minWidth:a,minHeight:l,maxWidth:u,maxHeight:c},keepAspectRatio:f,onResizeStart:p,onResize:g,onResizeEnd:h,shouldResize:d}),()=>{var w;(w=E.current)==null||w.destroy()}},[S,a,l,u,c,f,p,g,h,d]);const I=S.split("-"),O=n===Si.Line?"borderColor":"backgroundColor",M=s?{...o,[O]:s}:o;return b.jsx("div",{className:qe(["react-flow__resize-control","nodrag",...I,n,r]),ref:v,style:M,children:i})}T.memo($P);const HP=({on_node_change:e,on_edge_change:t,on_connect:n})=>{const r=e||(s=>{}),o=n||(s=>{});return dt((s,a)=>({nodes:[],edges:[],onNodesChange:l=>{s({nodes:Mm(l,a().nodes)}),r(l)},onEdgesChange:l=>{s({edges:Dm(l,a().edges)})},onConnect:l=>{l.source==null||l.target==null||o(l)}}))},S0=({src_nid:e,src_ioid:t,trg_nid:n,trg_ioid:r})=>[`${e}:${t}`,`${n}:${r}`].sort().join("--");function WP(e){console.error("Unhandled case: "+e)}const XP=e=>{const t=e.v?Number(e.v):0;if(t>0)throw new Error("Plugin version is too new");return e};class YP{constructor(t){this.iostore=t}get connected(){return this.iostore.getState().connected}set connected(t){this.iostore.setState({connected:t})}get does_trigger(){return this.iostore.getState().does_trigger}set does_trigger(t){this.iostore.setState({does_trigger:t})}get full_id(){return this.iostore.getState().full_id}set full_id(t){this.iostore.setState({full_id:t})}get id(){return this.iostore.getState().id}set id(t){this.iostore.setState({id:t})}get is_input(){return this.iostore.getState().is_input}set is_input(t){this.iostore.setState({is_input:t})}get name(){return this.iostore.getState().name}set name(t){this.iostore.setState({name:t})}get node(){return this.iostore.getState().node}set node(t){this.iostore.setState({node:t})}get type(){return this.iostore.getState().type}set type(t){this.iostore.setState({type:t})}get value(){return this.iostore.valuestore.getState().preview}set value(t){this.iostore.updateValueStore({preview:t})}get fullvalue(){return this.iostore.valuestore.getState().full}set fullvalue(t){this.iostore.updateValueStore({full:t})}get render_options(){return this.iostore.getState().render_options}set render_options(t){this.iostore.setState({render_options:t})}get hidden(){return this.iostore.getState().hidden}set hidden(t){this.iostore.setState({hidden:t})}get try_get_full_value(){return this.iostore.getState().try_get_full_value}get set_hidden(){return this.iostore.getState().set_hidden}}const ho=e=>t=>{const{iostore:n,...r}=t,o=new YP(n);return e({...r,io:o})},UP=e=>{const t=e.v?Number(e.v):0;if(t>1)throw new Error("Plugin version is too new");if(t===1)return e;const n=XP(e);return{...n,renderpluginfactory:o=>{var u;const i=((u=n.renderpluginfactory)==null?void 0:u.call(n,o))||{},s=n.RendererPlugin||{},a=Object.keys({...s,...i}),l={};for(const c of a)switch(c){case"input_renderers":const f={};for(const[m,x]of Object.entries(s.input_renderers||{}))x!==void 0&&(f[m]=ho(x));l.input_renderers=f;break;case"output_renderers":const d={};for(const[m,x]of Object.entries(s.output_renderers||{}))x!==void 0&&(d[m]=ho(x));l.output_renderers=d;break;case"handle_preview_renderers":const p={};for(const[m,x]of Object.entries(s.handle_preview_renderers||{}))x!==void 0&&(p[m]=ho(x));l.handle_preview_renderers=p;break;case"data_overlay_renderers":const g={};for(const[m,x]of Object.entries(s.data_overlay_renderers||{}))x!==void 0&&(g[m]=ho(x));l.data_overlay_renderers=g;break;case"data_preview_renderers":const h={};for(const[m,x]of Object.entries(s.data_preview_renderers||{}))x!==void 0&&(h[m]=ho(x));l.data_preview_renderers=h;break;case"data_view_renderers":const y={};for(const[m,x]of Object.entries(s.data_view_renderers||{}))x!==void 0&&(y[m]=ho(x));l.data_view_renderers=y;break;default:WP(c)}return l},v:1}},ZP=e=>UP(e),bt={DEBUG:0,INFO:10,WARN:20,ERROR:30},JP=bt.INFO,E0=e=>typeof e=="string"?e:e===bt.DEBUG?"DEBUG":e===bt.INFO?"INFO":e===bt.WARN?"WARN":e===bt.ERROR?"ERROR":"UNKNOWN";function qP(){const e=[];return function(t,n){if(typeof n!="object"||n===null)return n;for(;e.length>0&&e.at(-1)!==this;)e.pop();return e.includes(n)?"[Circular]":(e.push(n),n)}}const KP=e=>{if(typeof e=="number")return e;const t=e.toLowerCase();if(t==="debug")return bt.DEBUG;if(t==="info")return bt.INFO;if(t==="warn"||t==="warning")return bt.WARN;if(t==="error")return bt.ERROR;throw new Error(`Unknown log level: ${e}`)};class I0{constructor(t,n=bt.INFO){this.name=t,this.level=KP(n),this._level_name=E0(n)}set_level(t){this.level=t,this._level_name=E0(t)}_fomat_message(t,...n){return`[${this.name}] ${this._level_name}: ${t} ${n.map(r=>JSON.stringify(r,qP())).join(" ")}`}debug(t,...n){this.level<=bt.DEBUG&&console.debug(this._fomat_message(t,...n))}info(t,...n){this.level<=bt.INFO&&console.info(this._fomat_message(t,...n))}warn(t,...n){this.level<=bt.WARN&&console.warn(this._fomat_message(t,...n))}error(t,...n){this.level<=bt.ERROR&&console.error(this._fomat_message(t,...n))}}const yc=!1,QP=(e,t)=>{const n=e.properties||{};n["frontend:size"]||(n["frontend:size"]=[200,100]);const r=n["frontend:pos"];if(!r||r.length!==2||isNaN(r[0])||r[0]===null||isNaN(r[1])||r[1]===null)if(!t||!t.rf_instance||t.reactflowRef===null)n["frontend:pos"]=[0,0];else{const i=t.reactflowRef.getBoundingClientRect(),s=i.left+i.width/2,a=i.top+i.height/2,l=t.rf_instance.screenToFlowPosition({x:s,y:a});n["frontend:pos"]=[l.x-n["frontend:size"][0]/2,l.y-n["frontend:size"][0]/2]}n["frontend:collapsed"]||(n["frontend:collapsed"]=!1),e.properties=n},eO=(e,t)=>{const n=e.getState();if(QP(n,t),n.id===void 0)throw new Error("Node must have an id");const r={nodestore:e};return{position:{x:n.properties["frontend:pos"][0],y:n.properties["frontend:pos"][1]},data:r,type:"default",...n}},bc=e=>{const t={...e},n=x=>{var C;const v=d.getState();if(x.from_remote){let S=p.get_node(x.node.id,!1);if(S)return;if(!S)try{S=t2(m,x.node),p.nodesstates.set(x.node.id,S)}catch(O){m.logger.error(`Failed to create node store ${O}`);return}const E=S.getState();m.logger.info("Add node",E.id,E.name);const I=[...v.nodes,eO(S,m)];d.setState({nodes:I});for(const O in x.node.io){const M=x.node.io[O].id;M!==void 0&&((C=m.worker)==null||C.get_io_value({nid:x.node.id,ioid:M}))}setTimeout(()=>{var O;(O=m.worker)==null||O.call_hooks("node_added",{node:E.id})},0)}},r=x=>{if(x.node.in_trigger&&(x.node.error=void 0),x.from_remote){const v=p.get_node(x.id,!1);if(!v){console.error("Node not found to update",x.id);return}v.update(x.node)}else m.worker&&m.worker.locally_update_node(x)},o=x=>{var v;m.logger.info("Deleting node",x.id),x.from_remote?d.getState().onNodesChange([{type:"remove",id:x.id}]):(v=m.worker)==null||v.remove_node(x.id)},i=x=>{m.logger.error("Error",x),a({type:"update",id:x.id,node:{in_trigger:!1,error:x.error},from_remote:!0})},s=x=>{var v;x.from_remote?a({type:"update",id:x.id,node:{in_trigger:!0,error:void 0},from_remote:!0}):(v=m.worker)==null||v.trigger_node(x.id)},a=x=>{switch(x.type){case"add":n(x);break;case"update":r(x);break;case"delete":o(x);break;case"error":i(x);break;case"trigger":s(x);break;default:m.logger.error("Unknown node action",x)}},l=x=>{var C,S,E,I;const v=d.getState();switch(x.type){case"add":if(x.from_remote){const O=v.edges,M=S0(x);if(O.some(N=>N.id===M))return;const w={id:M,source:x.src_nid,target:x.trg_nid,sourceHandle:x.src_ioid,targetHandle:x.trg_ioid,className:"funcnodes-edge animated"};m.logger.info("Adding edge",w),d.setState({edges:[...O,w]}),(C=m.worker)==null||C.get_remote_node_state(x.src_nid),(S=m.worker)==null||S.get_remote_node_state(x.trg_nid)}break;case"delete":if(x.from_remote){const O=v.edges,M=S0(x);m.logger.info("Deleting edge",M);const w=O.filter(N=>N.id!==M);d.setState({edges:w}),(E=m.worker)==null||E.get_remote_node_state(x.src_nid),(I=m.worker)==null||I.get_remote_node_state(x.trg_nid)}break;default:m.logger.error("Unknown edge action",x)}},d=HP({on_node_change:x=>{for(const v of x)switch(v.type){case"position":v.position&&a({type:"update",id:v.id,node:{properties:{"frontend:pos":[v.position.x,v.position.y]}},from_remote:!1});break;case"dimensions":v.dimensions&&a({type:"update",id:v.id,node:{properties:{"frontend:size":[v.dimensions.width,v.dimensions.height]}},from_remote:!1});break}},on_edge_change:x=>{},on_connect:x=>{x.source===null||x.target===null||x.sourceHandle===null||x.targetHandle===null||!m.worker||m.worker.add_edge({src_nid:x.source,src_ioid:x.sourceHandle,trg_nid:x.target,trg_ioid:x.targetHandle,replace:!0})}}),p=VE({}),g=zE(),h=()=>{var x,v;(x=m.worker)==null||x.disconnect(),m.set_worker(void 0),(v=m.workermanager)==null||v.setWorker(void 0),m.lib.libstate.getState().set({lib:{shelves:[]},external_worker:[]}),m.nodespace.nodesstates.clear(),m.useReactFlowStore.setState({nodes:[],edges:[]}),m.auto_progress()},y=x=>{var C;if(!m.rf_instance)return;x=Array.isArray(x)?x:[x];const v=m.useReactFlowStore.getState().nodes.filter(S=>x.includes(S.id));v.length>0&&((C=m.rf_instance)==null||C.fitView({padding:.2,nodes:v}))},m={local_settings:dt((x,v)=>({view_settings:{},update_view_settings:C=>{const S=m.local_settings.getState().view_settings,{new_obj:E,change:I}=Wt(S,C);I&&m.local_settings.setState(O=>({...O,view_settings:E}))}})),local_state:dt((x,v)=>({selected_nodes:[],selected_edges:[],funcnodescontainerRef:null})),options:t,lib:g,workermanager:void 0,workers:dt((x,v)=>({})),workerstate:dt((x,v)=>({is_open:!1})),render_options:dt((x,v)=>({})),progress_state:dt((x,v)=>({message:"please select worker",status:"info",progress:0,blocking:!1})),update_render_options:x=>{const v=m.render_options.getState(),{new_obj:C,change:S}=Wt(v,x);S&&m.render_options.setState(C)},worker:void 0,_unsubscribeFromWorker:void 0,set_worker:x=>{x!==m.worker&&(m._unsubscribeFromWorker&&(m._unsubscribeFromWorker(),m._unsubscribeFromWorker=void 0),x&&(m._unsubscribeFromWorker=x.state.subscribe(v=>{m.workerstate.setState(v)}),m.workerstate.setState(x.state.getState())),m.worker=x,x==null||x.set_zustand(m))},nodespace:p,useReactFlowStore:d,on_node_action:a,on_edge_action:l,reactflowRef:null,clear_all:h,center_node:y,center_all:()=>{var x;console.log("center all",m.rf_instance),(x=m.rf_instance)==null||x.fitView({padding:.2})},set_progress:x=>{if(x.message==="")return m.auto_progress();const v=m.progress_state.getState(),{new_obj:C,change:S}=Wt(v,x);S&&m.progress_state.setState(C)},auto_progress:()=>{if(m.workermanager!==void 0&&!m.workermanager.open)return m.set_progress({progress:0,message:"connecting to worker manager",status:"error",blocking:!1});if(m.worker===void 0)return m.set_progress({progress:0,message:"please select worker",status:"error",blocking:!1});if(!m.worker.is_open)return m.set_progress({progress:0,message:"connecting to worker",status:"info",blocking:!0});m.set_progress({progress:1,message:"running",status:"info",blocking:!1})},plugins:dt((x,v)=>({})),add_plugin:(x,v)=>{if(v===void 0)return;const C=ZP(v);m.plugins.setState(S=>({...S,[x]:C}))},dev_settings:{debug:!0},logger:new I0("fn",JP)};return m};function k0(e,t){return function(){return e.apply(t,arguments)}}const{toString:tO}=Object.prototype,{getPrototypeOf:vc}=Object,pa=(e=>t=>{const n=tO.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Jt=e=>(e=e.toLowerCase(),t=>pa(t)===e),ha=e=>t=>typeof t===e,{isArray:go}=Array,Ai=ha("undefined");function nO(e){return e!==null&&!Ai(e)&&e.constructor!==null&&!Ai(e.constructor)&&It(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const A0=Jt("ArrayBuffer");function rO(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&A0(e.buffer),t}const oO=ha("string"),It=ha("function"),T0=ha("number"),ga=e=>e!==null&&typeof e=="object",iO=e=>e===!0||e===!1,ma=e=>{if(pa(e)!=="object")return!1;const t=vc(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},sO=Jt("Date"),aO=Jt("File"),lO=Jt("Blob"),uO=Jt("FileList"),cO=e=>ga(e)&&It(e.pipe),fO=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||It(e.append)&&((t=pa(e))==="formdata"||t==="object"&&It(e.toString)&&e.toString()==="[object FormData]"))},dO=Jt("URLSearchParams"),[pO,hO,gO,mO]=["ReadableStream","Request","Response","Headers"].map(Jt),yO=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ti(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),go(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let a;for(r=0;r<s;r++)a=i[r],t.call(null,e[a],a,e)}}function N0(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Pr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,P0=e=>!Ai(e)&&e!==Pr;function xc(){const{caseless:e}=P0(this)&&this||{},t={},n=(r,o)=>{const i=e&&N0(t,o)||o;ma(t[i])&&ma(r)?t[i]=xc(t[i],r):ma(r)?t[i]=xc({},r):go(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Ti(arguments[r],n);return t}const bO=(e,t,n,{allOwnKeys:r}={})=>(Ti(t,(o,i)=>{n&&It(o)?e[i]=k0(o,n):e[i]=o},{allOwnKeys:r}),e),vO=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),xO=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},wO=(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&vc(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},CO=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},_O=e=>{if(!e)return null;if(go(e))return e;let t=e.length;if(!T0(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},SO=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&vc(Uint8Array)),EO=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},IO=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},kO=Jt("HTMLFormElement"),AO=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),O0=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),TO=Jt("RegExp"),R0=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ti(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},NO=e=>{R0(e,(t,n)=>{if(It(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(It(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},PO=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return go(e)?r(e):r(String(e).split(t)),n},OO=()=>{},RO=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function MO(e){return!!(e&&It(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const DO=e=>{const t=new Array(10),n=(r,o)=>{if(ga(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=go(r)?[]:{};return Ti(r,(s,a)=>{const l=n(s,o+1);!Ai(l)&&(i[a]=l)}),t[o]=void 0,i}}return r};return n(e,0)},FO=Jt("AsyncFunction"),jO=e=>e&&(ga(e)||It(e))&&It(e.then)&&It(e.catch),M0=((e,t)=>e?setImmediate:t?((n,r)=>(Pr.addEventListener("message",({source:o,data:i})=>{o===Pr&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Pr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",It(Pr.postMessage)),LO=typeof queueMicrotask<"u"?queueMicrotask.bind(Pr):typeof process<"u"&&process.nextTick||M0,Y={isArray:go,isArrayBuffer:A0,isBuffer:nO,isFormData:fO,isArrayBufferView:rO,isString:oO,isNumber:T0,isBoolean:iO,isObject:ga,isPlainObject:ma,isReadableStream:pO,isRequest:hO,isResponse:gO,isHeaders:mO,isUndefined:Ai,isDate:sO,isFile:aO,isBlob:lO,isRegExp:TO,isFunction:It,isStream:cO,isURLSearchParams:dO,isTypedArray:SO,isFileList:uO,forEach:Ti,merge:xc,extend:bO,trim:yO,stripBOM:vO,inherits:xO,toFlatObject:wO,kindOf:pa,kindOfTest:Jt,endsWith:CO,toArray:_O,forEachEntry:EO,matchAll:IO,isHTMLForm:kO,hasOwnProperty:O0,hasOwnProp:O0,reduceDescriptors:R0,freezeMethods:NO,toObjectSet:PO,toCamelCase:AO,noop:OO,toFiniteNumber:RO,findKey:N0,global:Pr,isContextDefined:P0,isSpecCompliantForm:MO,toJSONObject:DO,isAsyncFn:FO,isThenable:jO,setImmediate:M0,asap:LO};function ye(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}Y.inherits(ye,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Y.toJSONObject(this.config),code:this.code,status:this.status}}});const D0=ye.prototype,F0={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{F0[e]={value:e}}),Object.defineProperties(ye,F0),Object.defineProperty(D0,"isAxiosError",{value:!0}),ye.from=(e,t,n,r,o,i)=>{const s=Object.create(D0);return Y.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),ye.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const BO=null;function wc(e){return Y.isPlainObject(e)||Y.isArray(e)}function j0(e){return Y.endsWith(e,"[]")?e.slice(0,-2):e}function L0(e,t,n){return e?e.concat(t).map(function(o,i){return o=j0(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function zO(e){return Y.isArray(e)&&!e.some(wc)}const VO=Y.toFlatObject(Y,{},null,function(t){return/^is[A-Z]/.test(t)});function ya(e,t,n){if(!Y.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,y){return!Y.isUndefined(y[h])});const r=n.metaTokens,o=n.visitor||c,i=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&Y.isSpecCompliantForm(t);if(!Y.isFunction(o))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(Y.isDate(g))return g.toISOString();if(!l&&Y.isBlob(g))throw new ye("Blob is not supported. Use a Buffer instead.");return Y.isArrayBuffer(g)||Y.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function c(g,h,y){let m=g;if(g&&!y&&typeof g=="object"){if(Y.endsWith(h,"{}"))h=r?h:h.slice(0,-2),g=JSON.stringify(g);else if(Y.isArray(g)&&zO(g)||(Y.isFileList(g)||Y.endsWith(h,"[]"))&&(m=Y.toArray(g)))return h=j0(h),m.forEach(function(v,C){!(Y.isUndefined(v)||v===null)&&t.append(s===!0?L0([h],C,i):s===null?h:h+"[]",u(v))}),!1}return wc(g)?!0:(t.append(L0(y,h,i),u(g)),!1)}const f=[],d=Object.assign(VO,{defaultVisitor:c,convertValue:u,isVisitable:wc});function p(g,h){if(!Y.isUndefined(g)){if(f.indexOf(g)!==-1)throw Error("Circular reference detected in "+h.join("."));f.push(g),Y.forEach(g,function(m,x){(!(Y.isUndefined(m)||m===null)&&o.call(t,m,Y.isString(x)?x.trim():x,h,d))===!0&&p(m,h?h.concat(x):[x])}),f.pop()}}if(!Y.isObject(e))throw new TypeError("data must be an object");return p(e),t}function B0(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Cc(e,t){this._pairs=[],e&&ya(e,this,t)}const z0=Cc.prototype;z0.append=function(t,n){this._pairs.push([t,n])},z0.toString=function(t){const n=t?function(r){return t.call(this,r,B0)}:B0;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function GO(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function V0(e,t,n){if(!t)return e;const r=n&&n.encode||GO;Y.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=Y.isURLSearchParams(t)?t.toString():new Cc(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class G0{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Y.forEach(this.handlers,function(r){r!==null&&t(r)})}}const $0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},$O={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Cc,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},_c=typeof window<"u"&&typeof document<"u",Sc=typeof navigator=="object"&&navigator||void 0,HO=_c&&(!Sc||["ReactNative","NativeScript","NS"].indexOf(Sc.product)<0),WO=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",XO=_c&&window.location.href||"http://localhost",ot={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:_c,hasStandardBrowserEnv:HO,hasStandardBrowserWebWorkerEnv:WO,navigator:Sc,origin:XO},Symbol.toStringTag,{value:"Module"})),...$O};function YO(e,t){return ya(e,new ot.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return ot.isNode&&Y.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function UO(e){return Y.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ZO(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function H0(e){function t(n,r,o,i){let s=n[i++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),l=i>=n.length;return s=!s&&Y.isArray(o)?o.length:s,l?(Y.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!a):((!o[s]||!Y.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&Y.isArray(o[s])&&(o[s]=ZO(o[s])),!a)}if(Y.isFormData(e)&&Y.isFunction(e.entries)){const n={};return Y.forEachEntry(e,(r,o)=>{t(UO(r),o,n,0)}),n}return null}function JO(e,t,n){if(Y.isString(e))try{return(t||JSON.parse)(e),Y.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Ni={transitional:$0,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=Y.isObject(t);if(i&&Y.isHTMLForm(t)&&(t=new FormData(t)),Y.isFormData(t))return o?JSON.stringify(H0(t)):t;if(Y.isArrayBuffer(t)||Y.isBuffer(t)||Y.isStream(t)||Y.isFile(t)||Y.isBlob(t)||Y.isReadableStream(t))return t;if(Y.isArrayBufferView(t))return t.buffer;if(Y.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return YO(t,this.formSerializer).toString();if((a=Y.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return ya(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),JO(t)):t}],transformResponse:[function(t){const n=this.transitional||Ni.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Y.isResponse(t)||Y.isReadableStream(t))return t;if(t&&Y.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?ye.from(a,ye.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ot.classes.FormData,Blob:ot.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Y.forEach(["delete","get","head","post","put","patch"],e=>{Ni.headers[e]={}});const qO=Y.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),KO=e=>{const t={};let n,r,o;return e&&e.split(`
|
|
61
|
+
`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&qO[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},W0=Symbol("internals");function Pi(e){return e&&String(e).trim().toLowerCase()}function ba(e){return e===!1||e==null?e:Y.isArray(e)?e.map(ba):String(e)}function QO(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const eR=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ec(e,t,n,r,o){if(Y.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Y.isString(t)){if(Y.isString(r))return t.indexOf(r)!==-1;if(Y.isRegExp(r))return r.test(t)}}function tR(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function nR(e,t){const n=Y.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}let vt=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(a,l,u){const c=Pi(l);if(!c)throw new Error("header name must be a non-empty string");const f=Y.findKey(o,c);(!f||o[f]===void 0||u===!0||u===void 0&&o[f]!==!1)&&(o[f||l]=ba(a))}const s=(a,l)=>Y.forEach(a,(u,c)=>i(u,c,l));if(Y.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(Y.isString(t)&&(t=t.trim())&&!eR(t))s(KO(t),n);else if(Y.isHeaders(t))for(const[a,l]of t.entries())i(l,a,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=Pi(t),t){const r=Y.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return QO(o);if(Y.isFunction(n))return n.call(this,o,r);if(Y.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Pi(t),t){const r=Y.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Ec(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(s){if(s=Pi(s),s){const a=Y.findKey(r,s);a&&(!n||Ec(r,r[a],a,n))&&(delete r[a],o=!0)}}return Y.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Ec(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return Y.forEach(this,(o,i)=>{const s=Y.findKey(r,i);if(s){n[s]=ba(o),delete n[i];return}const a=t?tR(i):String(i).trim();a!==i&&delete n[i],n[a]=ba(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Y.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Y.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
62
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[W0]=this[W0]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=Pi(s);r[a]||(nR(o,s),r[a]=!0)}return Y.isArray(t)?t.forEach(i):i(t),this}};vt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Y.reduceDescriptors(vt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),Y.freezeMethods(vt);function Ic(e,t){const n=this||Ni,r=t||n,o=vt.from(r.headers);let i=r.data;return Y.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function X0(e){return!!(e&&e.__CANCEL__)}function mo(e,t,n){ye.call(this,e??"canceled",ye.ERR_CANCELED,t,n),this.name="CanceledError"}Y.inherits(mo,ye,{__CANCEL__:!0});function Y0(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ye("Request failed with status code "+n.status,[ye.ERR_BAD_REQUEST,ye.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function rR(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function oR(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[i];s||(s=u),n[o]=l,r[o]=u;let f=i,d=0;for(;f!==o;)d+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-s<t)return;const p=c&&u-c;return p?Math.round(d*1e3/p):void 0}}function iR(e,t){let n=0,r=1e3/t,o,i;const s=(u,c=Date.now())=>{n=c,o=null,i&&(clearTimeout(i),i=null),e.apply(null,u)};return[(...u)=>{const c=Date.now(),f=c-n;f>=r?s(u,c):(o=u,i||(i=setTimeout(()=>{i=null,s(o)},r-f)))},()=>o&&s(o)]}const va=(e,t,n=3)=>{let r=0;const o=oR(50,250);return iR(i=>{const s=i.loaded,a=i.lengthComputable?i.total:void 0,l=s-r,u=o(l),c=s<=a;r=s;const f={loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:u||void 0,estimated:u&&a&&c?(a-s)/u:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(f)},n)},U0=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Z0=e=>(...t)=>Y.asap(()=>e(...t)),sR=ot.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ot.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ot.origin),ot.navigator&&/(msie|trident)/i.test(ot.navigator.userAgent)):()=>!0,aR=ot.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];Y.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),Y.isString(r)&&s.push("path="+r),Y.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function lR(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function uR(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function J0(e,t,n){let r=!lR(t);return e&&(r||n==!1)?uR(e,t):t}const q0=e=>e instanceof vt?{...e}:e;function Or(e,t){t=t||{};const n={};function r(u,c,f,d){return Y.isPlainObject(u)&&Y.isPlainObject(c)?Y.merge.call({caseless:d},u,c):Y.isPlainObject(c)?Y.merge({},c):Y.isArray(c)?c.slice():c}function o(u,c,f,d){if(Y.isUndefined(c)){if(!Y.isUndefined(u))return r(void 0,u,f,d)}else return r(u,c,f,d)}function i(u,c){if(!Y.isUndefined(c))return r(void 0,c)}function s(u,c){if(Y.isUndefined(c)){if(!Y.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function a(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,c,f)=>o(q0(u),q0(c),f,!0)};return Y.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=l[c]||o,d=f(e[c],t[c],c);Y.isUndefined(d)&&f!==a||(n[c]=d)}),n}const K0=e=>{const t=Or({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=t;t.headers=s=vt.from(s),t.url=V0(J0(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(Y.isFormData(n)){if(ot.hasStandardBrowserEnv||ot.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((l=s.getContentType())!==!1){const[u,...c]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];s.setContentType([u||"multipart/form-data",...c].join("; "))}}if(ot.hasStandardBrowserEnv&&(r&&Y.isFunction(r)&&(r=r(t)),r||r!==!1&&sR(t.url))){const u=o&&i&&aR.read(i);u&&s.set(o,u)}return t},cR=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const o=K0(e);let i=o.data;const s=vt.from(o.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:u}=o,c,f,d,p,g;function h(){p&&p(),g&&g(),o.cancelToken&&o.cancelToken.unsubscribe(c),o.signal&&o.signal.removeEventListener("abort",c)}let y=new XMLHttpRequest;y.open(o.method.toUpperCase(),o.url,!0),y.timeout=o.timeout;function m(){if(!y)return;const v=vt.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),S={data:!a||a==="text"||a==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:v,config:e,request:y};Y0(function(I){n(I),h()},function(I){r(I),h()},S),y=null}"onloadend"in y?y.onloadend=m:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(m)},y.onabort=function(){y&&(r(new ye("Request aborted",ye.ECONNABORTED,e,y)),y=null)},y.onerror=function(){r(new ye("Network Error",ye.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let C=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const S=o.transitional||$0;o.timeoutErrorMessage&&(C=o.timeoutErrorMessage),r(new ye(C,S.clarifyTimeoutError?ye.ETIMEDOUT:ye.ECONNABORTED,e,y)),y=null},i===void 0&&s.setContentType(null),"setRequestHeader"in y&&Y.forEach(s.toJSON(),function(C,S){y.setRequestHeader(S,C)}),Y.isUndefined(o.withCredentials)||(y.withCredentials=!!o.withCredentials),a&&a!=="json"&&(y.responseType=o.responseType),u&&([d,g]=va(u,!0),y.addEventListener("progress",d)),l&&y.upload&&([f,p]=va(l),y.upload.addEventListener("progress",f),y.upload.addEventListener("loadend",p)),(o.cancelToken||o.signal)&&(c=v=>{y&&(r(!v||v.type?new mo(null,e,y):v),y.abort(),y=null)},o.cancelToken&&o.cancelToken.subscribe(c),o.signal&&(o.signal.aborted?c():o.signal.addEventListener("abort",c)));const x=rR(o.url);if(x&&ot.protocols.indexOf(x)===-1){r(new ye("Unsupported protocol "+x+":",ye.ERR_BAD_REQUEST,e));return}y.send(i||null)})},fR=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(u){if(!o){o=!0,a();const c=u instanceof Error?u:this.reason;r.abort(c instanceof ye?c:new mo(c instanceof Error?c.message:c))}};let s=t&&setTimeout(()=>{s=null,i(new ye(`timeout ${t} of ms exceeded`,ye.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),e=null)};e.forEach(u=>u.addEventListener("abort",i));const{signal:l}=r;return l.unsubscribe=()=>Y.asap(a),l}},dR=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},pR=async function*(e,t){for await(const n of hR(e))yield*dR(n,t)},hR=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Q0=(e,t,n,r)=>{const o=pR(e,t);let i=0,s,a=l=>{s||(s=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:c}=await o.next();if(u){a(),l.close();return}let f=c.byteLength;if(n){let d=i+=f;n(d)}l.enqueue(new Uint8Array(c))}catch(u){throw a(u),u}},cancel(l){return a(l),o.return()}},{highWaterMark:2})},xa=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ey=xa&&typeof ReadableStream=="function",gR=xa&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),ty=(e,...t)=>{try{return!!e(...t)}catch{return!1}},mR=ey&&ty(()=>{let e=!1;const t=new Request(ot.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),ny=64*1024,kc=ey&&ty(()=>Y.isReadableStream(new Response("").body)),wa={stream:kc&&(e=>e.body)};xa&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!wa[t]&&(wa[t]=Y.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new ye(`Response type '${t}' is not supported`,ye.ERR_NOT_SUPPORT,r)})})})(new Response);const yR=async e=>{if(e==null)return 0;if(Y.isBlob(e))return e.size;if(Y.isSpecCompliantForm(e))return(await new Request(ot.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Y.isArrayBufferView(e)||Y.isArrayBuffer(e))return e.byteLength;if(Y.isURLSearchParams(e)&&(e=e+""),Y.isString(e))return(await gR(e)).byteLength},bR=async(e,t)=>{const n=Y.toFiniteNumber(e.getContentLength());return n??yR(t)},Ac={http:BO,xhr:cR,fetch:xa&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:l,responseType:u,headers:c,withCredentials:f="same-origin",fetchOptions:d}=K0(e);u=u?(u+"").toLowerCase():"text";let p=fR([o,i&&i.toAbortSignal()],s),g;const h=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let y;try{if(l&&mR&&n!=="get"&&n!=="head"&&(y=await bR(c,r))!==0){let S=new Request(t,{method:"POST",body:r,duplex:"half"}),E;if(Y.isFormData(r)&&(E=S.headers.get("content-type"))&&c.setContentType(E),S.body){const[I,O]=U0(y,va(Z0(l)));r=Q0(S.body,ny,I,O)}}Y.isString(f)||(f=f?"include":"omit");const m="credentials"in Request.prototype;g=new Request(t,{...d,signal:p,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:m?f:void 0});let x=await fetch(g);const v=kc&&(u==="stream"||u==="response");if(kc&&(a||v&&h)){const S={};["status","statusText","headers"].forEach(M=>{S[M]=x[M]});const E=Y.toFiniteNumber(x.headers.get("content-length")),[I,O]=a&&U0(E,va(Z0(a),!0))||[];x=new Response(Q0(x.body,ny,I,()=>{O&&O(),h&&h()}),S)}u=u||"text";let C=await wa[Y.findKey(wa,u)||"text"](x,e);return!v&&h&&h(),await new Promise((S,E)=>{Y0(S,E,{data:C,headers:vt.from(x.headers),status:x.status,statusText:x.statusText,config:e,request:g})})}catch(m){throw h&&h(),m&&m.name==="TypeError"&&/fetch/i.test(m.message)?Object.assign(new ye("Network Error",ye.ERR_NETWORK,e,g),{cause:m.cause||m}):ye.from(m,m&&m.code,e,g)}})};Y.forEach(Ac,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ry=e=>`- ${e}`,vR=e=>Y.isFunction(e)||e===null||e===!1,oy={getAdapter:e=>{e=Y.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){n=e[i];let s;if(r=n,!vR(n)&&(r=Ac[(s=String(n)).toLowerCase()],r===void 0))throw new ye(`Unknown adapter '${s}'`);if(r)break;o[s||"#"+i]=r}if(!r){const i=Object.entries(o).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since :
|
|
63
|
+
`+i.map(ry).join(`
|
|
64
|
+
`):" "+ry(i[0]):"as no adapter specified";throw new ye("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:Ac};function Tc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new mo(null,e)}function iy(e){return Tc(e),e.headers=vt.from(e.headers),e.data=Ic.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),oy.getAdapter(e.adapter||Ni.adapter)(e).then(function(r){return Tc(e),r.data=Ic.call(e,e.transformResponse,r),r.headers=vt.from(r.headers),r},function(r){return X0(r)||(Tc(e),r&&r.response&&(r.response.data=Ic.call(e,e.transformResponse,r.response),r.response.headers=vt.from(r.response.headers))),Promise.reject(r)})}const sy="1.8.4",Ca={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ca[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ay={};Ca.transitional=function(t,n,r){function o(i,s){return"[Axios v"+sy+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,a)=>{if(t===!1)throw new ye(o(s," has been removed"+(n?" in "+n:"")),ye.ERR_DEPRECATED);return n&&!ay[s]&&(ay[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,a):!0}},Ca.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function xR(e,t,n){if(typeof e!="object")throw new ye("options must be an object",ye.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const a=e[i],l=a===void 0||s(a,i,e);if(l!==!0)throw new ye("option "+i+" must be "+l,ye.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ye("Unknown option "+i,ye.ERR_BAD_OPTION)}}const _a={assertOptions:xR,validators:Ca},fn=_a.validators;let Rr=class{constructor(t){this.defaults=t,this.interceptors={request:new G0,response:new G0}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
65
|
+
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Or(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&_a.assertOptions(r,{silentJSONParsing:fn.transitional(fn.boolean),forcedJSONParsing:fn.transitional(fn.boolean),clarifyTimeoutError:fn.transitional(fn.boolean)},!1),o!=null&&(Y.isFunction(o)?n.paramsSerializer={serialize:o}:_a.assertOptions(o,{encode:fn.function,serialize:fn.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),_a.assertOptions(n,{baseUrl:fn.spelling("baseURL"),withXsrfToken:fn.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&Y.merge(i.common,i[n.method]);i&&Y.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),n.headers=vt.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(l=l&&h.synchronous,a.unshift(h.fulfilled,h.rejected))});const u=[];this.interceptors.response.forEach(function(h){u.push(h.fulfilled,h.rejected)});let c,f=0,d;if(!l){const g=[iy.bind(this),void 0];for(g.unshift.apply(g,a),g.push.apply(g,u),d=g.length,c=Promise.resolve(n);f<d;)c=c.then(g[f++],g[f++]);return c}d=a.length;let p=n;for(f=0;f<d;){const g=a[f++],h=a[f++];try{p=g(p)}catch(y){h.call(this,y);break}}try{c=iy.call(this,p)}catch(g){return Promise.reject(g)}for(f=0,d=u.length;f<d;)c=c.then(u[f++],u[f++]);return c}getUri(t){t=Or(this.defaults,t);const n=J0(t.baseURL,t.url,t.allowAbsoluteUrls);return V0(n,t.params,t.paramsSerializer)}};Y.forEach(["delete","get","head","options"],function(t){Rr.prototype[t]=function(n,r){return this.request(Or(r||{},{method:t,url:n,data:(r||{}).data}))}}),Y.forEach(["post","put","patch"],function(t){function n(r){return function(i,s,a){return this.request(Or(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}Rr.prototype[t]=n(),Rr.prototype[t+"Form"]=n(!0)});let wR=class EE{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{r.subscribe(a),i=a}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,a){r.reason||(r.reason=new mo(i,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new EE(function(o){t=o}),cancel:t}}};function CR(e){return function(n){return e.apply(null,n)}}function _R(e){return Y.isObject(e)&&e.isAxiosError===!0}const Nc={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Nc).forEach(([e,t])=>{Nc[t]=e});function ly(e){const t=new Rr(e),n=k0(Rr.prototype.request,t);return Y.extend(n,Rr.prototype,t,{allOwnKeys:!0}),Y.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return ly(Or(e,o))},n}const Ye=ly(Ni);Ye.Axios=Rr,Ye.CanceledError=mo,Ye.CancelToken=wR,Ye.isCancel=X0,Ye.VERSION=sy,Ye.toFormData=ya,Ye.AxiosError=ye,Ye.Cancel=Ye.CanceledError,Ye.all=function(t){return Promise.all(t)},Ye.spread=CR,Ye.isAxiosError=_R,Ye.mergeConfig=Or,Ye.AxiosHeaders=vt,Ye.formToJSON=e=>H0(Y.isHTMLForm(e)?new FormData(e):e),Ye.getAdapter=oy.getAdapter,Ye.HttpStatusCode=Nc,Ye.default=Ye;const{Axios:xJ,AxiosError:wJ,CanceledError:CJ,isCancel:_J,CancelToken:SJ,VERSION:EJ,all:IJ,Cancel:kJ,isAxiosError:AJ,spread:TJ,toFormData:NJ,AxiosHeaders:PJ,HttpStatusCode:OJ,formToJSON:RJ,getAdapter:MJ,mergeConfig:DJ}=Ye,nt=[];for(let e=0;e<256;++e)nt.push((e+256).toString(16).slice(1));function SR(e,t=0){return(nt[e[t+0]]+nt[e[t+1]]+nt[e[t+2]]+nt[e[t+3]]+"-"+nt[e[t+4]]+nt[e[t+5]]+"-"+nt[e[t+6]]+nt[e[t+7]]+"-"+nt[e[t+8]]+nt[e[t+9]]+"-"+nt[e[t+10]]+nt[e[t+11]]+nt[e[t+12]]+nt[e[t+13]]+nt[e[t+14]]+nt[e[t+15]]).toLowerCase()}let Pc;const ER=new Uint8Array(16);function IR(){if(!Pc){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Pc=crypto.getRandomValues.bind(crypto)}return Pc(ER)}const uy={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function cy(e,t,n){var o;if(uy.randomUUID&&!e)return uy.randomUUID();e=e||{};const r=e.random??((o=e.rng)==null?void 0:o.call(e))??IR();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,SR(r)}class fy{constructor(t){this.CHUNK_TIMEOUT=1e4,this.PONGDELAY=2e3,this.blobChunks={},this._hooks=new Map,this._ns_event_intercepts=new Map,this._unique_cmd_outs={},this.uuid=t.uuid,this.on_error=t.on_error||(r=>{var o;(o=this._zustand)==null||o.logger.error(r)}),this.messagePromises=new Map,this._local_nodeupdates=new Map,this._nodeupdatetimer=setTimeout(()=>{this.sync_local_node_updates()},5e3),this.state=dt((r,o)=>({is_open:!1})),t.zustand&&this.set_zustand(t.zustand),t.on_sync_complete?this.on_sync_complete=t.on_sync_complete:this.on_sync_complete=async()=>{},this._responsive=!1,this._last_pong=Date.now()-this.PONGDELAY*100,setInterval(()=>{this.is_open&&this.send({type:"ping"})},this.PONGDELAY),setInterval(()=>{Date.now()-this._last_pong>this.PONGDELAY*3?this._responsive=!1:this._responsive=!0},this.PONGDELAY*2),setInterval(()=>{const r=Date.now();for(const o in this.blobChunks)r-this.blobChunks[o].timestamp>this.CHUNK_TIMEOUT&&delete this.blobChunks[o]},this.CHUNK_TIMEOUT/2)}_receive_pong(){this._last_pong=Date.now(),this._responsive=!0}set_zustand(t){t!==this._zustand&&(this._zustand=t,t.set_worker(this),this._zustand.auto_progress(),this.stepwise_fullsync())}add_hook(t,n){const r=this._hooks.get(t)||[];return r.push(n),this._hooks.set(t,r),()=>{const i=this._hooks.get(t)||[],s=i.indexOf(n);s>=0&&i.splice(s,1)}}async call_hooks(t,n){const r=[];for(const o of this._hooks.get(t)||[]){const i=o({worker:this,data:n});i instanceof Promise&&r.push(i)}await Promise.all(r)}add_ns_event_intercept(t,n){const r=this._ns_event_intercepts.get(t)||[];return r.push(n),this._ns_event_intercepts.set(t,r),()=>{const i=this._ns_event_intercepts.get(t)||[],s=i.indexOf(n);s>=0&&i.splice(s,1)}}async intercept_ns_event(t){let n=t;for(const r of this._ns_event_intercepts.get(t.event)||[])n=await r(n);return n}get is_open(){return this.state.getState().is_open}set is_open(t){this.state.setState({is_open:t})}async stepwise_fullsync(){this._zustand&&this.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))}async sync_lib(){if(!this._zustand||!this.is_open)return;const t=await this._send_cmd({cmd:"get_library",wait_for_response:!0,retries:2,unique:!0});this._zustand.lib.libstate.getState().set({lib:t})}async sync_external_worker(){if(!this._zustand||!this.is_open)return;const t=await this._send_cmd({cmd:"get_worker_dependencies",wait_for_response:!0,unique:!0});this._zustand.lib.libstate.getState().set({external_worker:t})}async sync_funcnodes_plugins(){if(!this._zustand||!this.is_open)return;const t=await this._send_cmd({cmd:"get_plugin_keys",wait_for_response:!0,unique:!0,kwargs:{type:"react"}});for(const n of t){const r=await this._send_cmd({cmd:"get_plugin",wait_for_response:!0,kwargs:{key:n,type:"react"},unique:!0});if(r.js)for(const o of r.js){const i=document.createElement("script");i.text=atob(o),document.body.appendChild(i)}if(r.css)for(const o of r.css){const i=document.createElement("style");i.innerHTML=atob(o),document.head.appendChild(i)}if(r.module!==void 0){const o=atob(r.module),i=o.length,s=new Uint8Array(i);for(let c=0;c<i;c++)s[c]=o.charCodeAt(c);const a=new Blob([s],{type:"application/javascript"}),l=URL.createObjectURL(a),u=await import(l);URL.revokeObjectURL(l),this._zustand.add_plugin(n,u.default)}}}async sync_view_state(){if(!this._zustand||!this.is_open)return;const t=await this._send_cmd({cmd:"view_state",wait_for_response:!0,unique:!0});t.renderoptions&&this._zustand.update_render_options(t.renderoptions);const n=t.nodes;if(n)for(const r in n){const o={};Fh(o,n[r]),this._zustand.on_node_action({type:"update",node:o,id:r,from_remote:!0})}}async sync_nodespace(){if(!this._zustand||!this.is_open)return;const t=await this._send_cmd({cmd:"get_nodes",kwargs:{with_frontend:!0},wait_for_response:!0,unique:!0});for(const r of t)this._receive_node_added(r);const n=await this._send_cmd({cmd:"get_edges",wait_for_response:!0,unique:!0});for(const r of n)this._receive_edge_added(...r)}async fullsync(){if(!this._zustand||!this.is_open)return;let t;for(;;)try{t=await this._send_cmd({cmd:"full_state",unique:!0});break}catch(r){this._zustand.logger.error("Error in fullsync",r)}this._zustand.logger.debug("Full state",t),this._zustand.lib.libstate.getState().set({lib:t.backend.lib,external_worker:t.worker_dependencies}),t.view.renderoptions&&this._zustand.update_render_options(t.view.renderoptions);const n=t.view.nodes;for(const r of t.backend.nodes){const o=n[r.id];o!==void 0&&Fh(r,o),this._receive_node_added(r)}for(const r of t.backend.edges)this._receive_edge_added(...r)}async _receive_edge_added(t,n,r,o){this._zustand&&this._zustand.on_edge_action({type:"add",from_remote:!0,src_nid:t,src_ioid:n,trg_nid:r,trg_ioid:o})}async trigger_node(t){await this._send_cmd({cmd:"trigger_node",kwargs:{nid:t},wait_for_response:!1})}async add_node(t){const n=await this._send_cmd({cmd:"add_node",kwargs:{id:t}});this._receive_node_added(n)}async remove_node(t){await this._send_cmd({cmd:"remove_node",kwargs:{id:t}})}async _receive_node_added(t){this._zustand&&this._zustand.on_node_action({type:"add",node:t,id:t.id,from_remote:!0})}add_edge({src_nid:t,src_ioid:n,trg_nid:r,trg_ioid:o,replace:i=!1}){return this._send_cmd({cmd:"add_edge",kwargs:{src_nid:t,src_ioid:n,trg_nid:r,trg_ioid:o,replace:i}})}remove_edge({src_nid:t,src_ioid:n,trg_nid:r,trg_ioid:o}){return this._send_cmd({cmd:"remove_edge",kwargs:{src_nid:t,src_ioid:n,trg_nid:r,trg_ioid:o}})}async add_external_worker({module:t,cls_module:n,cls_name:r}){return await this._send_cmd({cmd:"add_external_worker",kwargs:{module:t,cls_module:n,cls_name:r}})}sync_local_node_updates(){clearTimeout(this._nodeupdatetimer),this._local_nodeupdates.forEach(async(t,n)=>{const r=await this._send_cmd({cmd:"update_node",kwargs:{nid:n,data:t},wait_for_response:!0});this._zustand&&this._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()},200)}locally_update_node(t){const n=this._local_nodeupdates.get(t.id);if(n){const{new_obj:r,change:o}=Wt(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()}async get_remote_node_state(t){const n=await this._send_cmd({cmd:"get_node_state",kwargs:{nid:t},wait_for_response:!0});this._zustand&&this._zustand.on_node_action({type:"update",node:n,id:n.id,from_remote:!0})}set_io_value({nid:t,ioid:n,value:r,set_default:o=!1}){return this._send_cmd({cmd:"set_io_value",kwargs:{nid:t,ioid:n,value:r,set_default:o},wait_for_response:!0})}clear(){return this._send_cmd({cmd:"clear",unique:!0})}save(){return this._send_cmd({cmd:"save",wait_for_response:!0,unique:!0})}load(t){return this._send_cmd({cmd:"load_data",kwargs:{data:t},wait_for_response:!0}).then(()=>{this.stepwise_fullsync()})}async get_io_value({nid:t,ioid:n}){const r=await this._send_cmd({cmd:"get_io_value",kwargs:{nid:t,ioid:n},wait_for_response:!0});return this._zustand&&this._zustand.on_node_action({type:"update",node:{io:{[n]:{value:r}}},id:t,from_remote:!0}),r}async get_ios_values({nid:t}){const n=await this._send_cmd({cmd:"get_ios_values",kwargs:{nid:t},wait_for_response:!0});if(!this._zustand)return n;const r={};for(const o in n)r[o]={value:n[o]};return this._zustand.on_node_action({type:"update",node:{io:r},id:t,from_remote:!0}),n}async get_runstate(){return await this._send_cmd({cmd:"get_runstate",wait_for_response:!0,unique:!0})}async _send_cmd({cmd:t,kwargs:n,as_bytes:r=!1,wait_for_response:o=!0,response_timeout:i=5e3,retries:s=2,unique:a=!1}){const l={type:"cmd",as_bytes:r,cmd:t,kwargs:n||{}};if(await new Promise(async u=>{if(this._responsive)return u();const c=setInterval(()=>{this._responsive&&(clearInterval(c),u())},100)}),o){if(a&&this._unique_cmd_outs[l.cmd]!==void 0)return this._unique_cmd_outs[l.cmd];s<0&&(s=0);const c=(async()=>{let f;for(;s>=0;){const d=l.id||cy();l.id=d;const p=new Promise((g,h)=>{const y=setTimeout(()=>{h("Timeout@wait_for_response for "+t)},i);this.messagePromises.set(d,{resolve:m=>{clearTimeout(y),g(m),this.messagePromises.delete(d)},reject:m=>{clearTimeout(y),h(m),this.messagePromises.delete(d)}})});await this.send(l);try{f=await p;break}catch(g){if(s===0)throw delete this._unique_cmd_outs[l.cmd],g;s-=1;continue}}return delete this._unique_cmd_outs[l.cmd],f})();return a&&(this._unique_cmd_outs[l.cmd]=c),c}return this.send(l)}async send(t){throw new Error("async send(data: any) not implemented")}async upload_file({files:t,onProgressCallback:n,root:r}){throw new Error("upload_file not implemented ")}async handle_large_message_hint({}){throw new Error("async handle_large_message_hint({}: LargeMessageHint) not implemented ")}async receive_workerevent({event:t,data:n}){switch(t){case"worker_error":return this._zustand?this._zustand.logger.error(n.error):void 0;case"update_worker_dependencies":return this._zustand?this._zustand.lib.libstate.getState().set({external_worker:n.worker_dependencies}):void 0;case"lib_update":await this.sync_lib();return;case"fullsync":await this.stepwise_fullsync();return;case"external_worker_update":await this.sync_lib(),await this.sync_external_worker();return;case"starting":this.call_hooks("starting");return;case"stopping":this.call_hooks("stopping");return;default:console.warn("Unhandled worker event",t,n);break}}async receive_nodespace_event(t){const{event:n,data:r}=await this.intercept_ns_event(t);switch(n){case"after_set_value":return this._zustand?this._zustand.on_node_action({type:"update",node:{id:r.node,io:{[r.io]:{value:r.result}}},id:r.node,from_remote:!0}):void 0;case"after_update_value_options":return this._zustand?this._zustand.on_node_action({type:"update",node:{id:r.node,io:{[r.io]:{value_options:r.result}}},id:r.node,from_remote:!0}):void 0;case"triggerstart":return this._zustand?this._zustand.on_node_action({type:"update",node:{id:r.node,in_trigger:!0},id:r.node,from_remote:!0}):void 0;case"triggerdone":return this._zustand?this._zustand.on_node_action({type:"update",node:{id:r.node,in_trigger:!1},id:r.node,from_remote:!0}):void 0;case"triggerfast":if(!this._zustand)return;this._zustand.on_node_action({type:"update",node:{id:r.node,in_trigger:!0},id:r.node,from_remote:!0}),setTimeout(()=>{this._zustand&&this._zustand.on_node_action({type:"update",node:{id:r.node,in_trigger:!1},id:r.node,from_remote:!0})},50);return;case"node_trigger_error":return this._zustand?this._zustand.on_node_action({type:"error",errortype:"trigger",error:r.error,id:r.node,tb:r.tb,from_remote:!0}):void 0;case"node_removed":if(!this._zustand)return;this._zustand.on_node_action({type:"delete",id:r.node,from_remote:!0}),this.call_hooks("node_removed",{node:r.node});return;case"node_added":this._receive_node_added(r.node);return;case"after_disconnect":return!r.result||!Array.isArray(r.result)||r.result.length!==4||!this._zustand?void 0:this._zustand.on_edge_action({type:"delete",from_remote:!0,src_nid:r.result[0],src_ioid:r.result[1],trg_nid:r.result[2],trg_ioid:r.result[3]});case"after_unforward":return!r.result||!Array.isArray(r.result)||r.result.length!==4||!this._zustand?void 0:this._zustand.on_edge_action({type:"delete",from_remote:!0,src_nid:r.result[0],src_ioid:r.result[1],trg_nid:r.result[2],trg_ioid:r.result[3]});case"after_connect":return!r.result||!Array.isArray(r.result)||r.result.length!==4?void 0:this._receive_edge_added(...r.result);case"after_forward":return!r.result||!Array.isArray(r.result)||r.result.length!==4?void 0:this._receive_edge_added(...r.result);case"after_add_shelf":return!r.result||!this._zustand?void 0:this._zustand.lib.libstate.getState().set({lib:r.result});case"after_remove_shelf":return!r.result||!this._zustand?void 0:this._zustand.lib.libstate.getState().set({lib:r.result});case"progress":if(!this._zustand)return;if(r.node)return this._zustand.on_node_action({type:"update",node:{id:r.node,progress:r.info},id:r.node,from_remote:!0});console.warn("Unhandled nodepsace event",n,r);break;default:if(["after_set_nodespace"].includes(n))return;console.warn("Unhandled nodepsace event",n,r);break}}async add_lib(t,n){return await this._send_cmd({cmd:"add_package_dependency",kwargs:{name:t,version:n},wait_for_response:!1})}async remove_lib(t){return await this._send_cmd({cmd:"remove_package_dependency",kwargs:{name:t},wait_for_response:!1})}async receive(t){let n;switch(this._last_pong=Date.now(),this._responsive=!0,t.type){case"pong":this._receive_pong();return;case"nsevent":return await this.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.on_error(t.tb+`
|
|
66
|
+
`+t.error),n=t.id&&this.messagePromises.get(t.id),n)return n.reject(t.error);break;case"progress":if(!this._zustand)return;this._zustand.set_progress(t);break;case"workerevent":return await this.receive_workerevent(t);case"large_message":return await this.handle_large_message_hint(t);default:console.warn("Unhandled message",t);break}}async onbytes(t){try{const n=new TextDecoder("utf-8").decode(t),r=n.indexOf(`\r
|
|
67
|
+
\r
|
|
68
|
+
`);if(r===-1){console.error(`Header terminator not found for:
|
|
69
|
+
`,n);return}const o=n.substring(0,r+4),i=t.slice(r+4),s=o.split(";"),a={};if(s.forEach(f=>{const[d,p]=f.split("=");a[d.trim()]=p.trim()}),!a.chunk||!a.msgid){console.error("Header missing required fields chunk or msgid",a);return}const[l,u]=a.chunk.split("/"),c=a.msgid;if(l==="1"&&u==="1")return this.recieve_bytes(a,i);if(this.blobChunks[c]||(this.blobChunks[c]={chunks:Array.from({length:parseInt(u)},()=>null),timestamp:Date.now()}),this.blobChunks[c].chunks.length!==parseInt(u)){console.error("Total chunks mismatch");return}if(this.blobChunks[c].chunks[parseInt(l)-1]=t,this.blobChunks[c].chunks.every(f=>f!==null)){const f=new Uint8Array(this.blobChunks[c].chunks.reduce((d,p)=>d.concat(Array.from(p)),[]));this.recieve_bytes(a,f),delete this.blobChunks[c]}}catch(n){console.error("Websocketworker: onbytes error",n,t);return}}async recieve_bytes(t,n){const{type:r}=t;if(r==="io_value"){if(!this._zustand)return;const{node:o,io:i,preview:s,mime:a}=t,l=s?"value":"fullvalue";(!o||!i)&&console.error("Invalid io_value message",t);const u=jh({data:n,mime:a||"application/octet-stream"});this._zustand.on_node_action({type:"update",node:{id:o,io:{[i]:{[l]:u}}},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)}disconnect(){}onclose(){this.is_open=!1,this._zustand&&this._zustand.auto_progress()}async reconnect(){}async stop(){await this._send_cmd({cmd:"stop_worker",wait_for_response:!1});const t=this.onclose.bind(this);this.onclose=()=>{t(),this._zustand&&(this._zustand.worker===this&&this._zustand.clear_all(),this.onclose=t)}}async get_io_full_value({nid:t,ioid:n}){const r=await this._send_cmd({cmd:"get_io_full_value",kwargs:{nid:t,ioid:n},wait_for_response:!0,as_bytes:!0});if(!this._zustand)return r;if(!this._zustand)return;const{header:o,bytes:i}=r,{mime:s}=o,a=jh({data:i,mime:s||"application/octet-stream"});return this._zustand.on_node_action({type:"update",node:{id:t,io:{[n]:{fullvalue:a}}},id:t,from_remote:!0}),r}async update_io_options({nid:t,ioid:n,options:r}){const o=await this._send_cmd({cmd:"update_io_options",kwargs:{nid:t,ioid:n,...r},wait_for_response:!0});if(!this._zustand)return o;this._zustand.on_node_action({type:"update",node:{io:{[n]:{...r}}},id:t,from_remote:!0})}async get_node_status(t){return await this._send_cmd({cmd:"get_node_state",kwargs:{nid:t},wait_for_response:!0})}async get_available_modules(){return await this._send_cmd({cmd:"get_available_modules",wait_for_response:!0,unique:!0})}async update_external_worker(t,n,r){return await this._send_cmd({cmd:"update_external_worker",kwargs:{worker_id:t,class_id:n,...r},wait_for_response:!0})}async remove_external_worker(t,n){return await this._send_cmd({cmd:"remove_external_worker",kwargs:{worker_id:t,class_id:n},wait_for_response:!0})}async export({withFiles:t=!1}){return await this._send_cmd({cmd:"export_worker",wait_for_response:!0,kwargs:{with_files:t}})}async update_from_export(t){const n=this.add_hook("node_added",async({})=>{var r;(r=this._zustand)==null||r.center_all()});try{const r=await this._send_cmd({cmd:"update_from_export",kwargs:{data:t},wait_for_response:!0,response_timeout:6e5,unique:!0});return await new Promise(o=>{setTimeout(()=>{o()},1e3)}),await this.stepwise_fullsync(),r}finally{n()}}}class Oc extends fy{constructor(t){super(t),this._websocket=null,this.reconnectAttempts=0,this.maxReconnectAttempts=999,this.initialTimeout=200,this.maxTimeout=5e3,this._reconnect=!0,this._reconnect_timeout=void 0,this._url=t.url,this._reconnect_timeout=setTimeout(()=>{this.connect()},200),this._zustand&&this._zustand.auto_progress()}connect(){var t;(t=this._zustand)==null||t.logger.info("Connecting to websocket"),this.is_open=!1,this._websocket=new WebSocket(this._url),this._websocket.onopen=()=>{this.onopen()},this._websocket.onclose=()=>{this.onclose()},this._websocket.onerror=()=>{this.on_ws_error()},this._websocket.onmessage=n=>{typeof n.data=="string"?this.onmessage(n.data):n.data instanceof Blob&&n.data.arrayBuffer().then(r=>{const o=new Uint8Array(r);this.onbytes(o)})}}calculateReconnectTimeout(){return Math.min(this.initialTimeout*Math.pow(2,this.reconnectAttempts),this.maxTimeout)}auto_reconnect(){var t,n;if(this.reconnectAttempts<this.maxReconnectAttempts){let r=this.calculateReconnectTimeout();(t=this._zustand)==null||t.logger.info(`Attempting to reconnect in ${r} ms`),this._reconnect_timeout=setTimeout(()=>{this._websocket&&this._websocket.readyState===WebSocket.OPEN||(this.reconnectAttempts++,this.connect())},r)}else(n=this._zustand)==null||n.logger.warn("Maximum reconnect attempts reached. Giving up.")}async onmessage(t){var n;try{const r=JSON.parse(t);(n=this._zustand)==null||n.logger.debug(`Recieved data of length: ${t.length} and data"`,r),await this.receive(r)}catch(r){console.error("Websocketworker: onmessage JSON.parse error",r,t);return}}get http_protocol(){return this.secure_url?"https":"http"}get secure_url(){return this._url.startsWith("wss")}get url_wo_protocol(){return this._url.substring(this.secure_url?6:5)}get http_url(){var t=this.http_protocol+"://"+this.url_wo_protocol;return t[t.length-1]!=="/"&&(t+="/"),t}get_io_subscription_url({node_id:t,io_id:n,stream:r}){let o=this.http_url+`node/${t}/io/${n}/value`;return r&&(o+="/stream"),o}async upload_file({files:t,onProgressCallback:n,root:r}){const o=`${this.http_url}upload/`,i=new FormData,s=Array.isArray(t)?t:Array.from(t);for(const a of s){const l=a.webkitRelativePath||a.name,u=r?`${r}/${l}`:l;i.append("file",a,u)}try{return(await Ye.post(o,i,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:l=>{n&&n(l.loaded,l.total)}})).data.file}catch{throw new Error("Failed to upload file")}}async handle_large_message_hint({msg_id:t}){const n=this.http_url+"message/"+t,o=await(await fetch(n,{method:"GET",headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}})).json();this.receive(o)}onopen(){var t;(t=this._zustand)==null||t.logger.info("Websocket opened"),this.is_open=!0,this._zustand&&this._zustand.auto_progress(),this.reconnectAttempts=0,this.stepwise_fullsync()}onclose(){var t,n;(t=this._zustand)==null||t.logger.info("Websocket closed"),super.onclose(),this._reconnect&&((n=this._zustand)==null||n.logger.info("Websocket closed,reconnecting"),this.auto_reconnect())}on_ws_error(){var t;(t=this._zustand)==null||t.logger.warn("Websocket error"),this._websocket?this._websocket.close():this.auto_reconnect()}async send_large_message(t){const n=`${this.http_url}message/`;await fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:t})}async send(t){var o,i,s;if(!this._websocket||this._websocket.readyState!==WebSocket.OPEN){(o=this._zustand)==null||o.logger.warn("Websocket not connected");return}const n=JSON.stringify(t);if(new Blob([n]).size>1e6)return(i=this._zustand)==null||i.logger.info("Data too large, sending via http"),await this.send_large_message(n);(s=this._zustand)==null||s.logger.debug("Sending data",t),this._websocket.send(n)}async stop(){await super.stop(),this._reconnect=!1}close(){this._websocket&&this._websocket.close()}disconnect(){super.disconnect(),this._reconnect=!1,this._reconnect_timeout&&(clearTimeout(this._reconnect_timeout),this._reconnect_timeout=void 0),this.close()}async reconnect(){var t;if(await super.reconnect(),this._reconnect=!0,this._websocket&&((t=this._zustand)==null||t.logger.info("Reconnecting"),(this._websocket.readyState===WebSocket.OPEN||this._websocket.readyState===WebSocket.CONNECTING)&&(this._websocket.readyState===WebSocket.CONNECTING&&await new Promise((n,r)=>{if(this._websocket===null)return;let o=setTimeout(()=>{r("Timeout@reconnect")},2e3);this._websocket.addEventListener("open",()=>{clearTimeout(o),n(null)},{once:!0}),this._websocket.readyState===WebSocket.OPEN&&(clearTimeout(o),n(null))}),this._websocket.readyState===WebSocket.OPEN))){this.stepwise_fullsync();return}this.connect()}}class kR{constructor(t,n){this.ws=null,this.reconnectAttempts=0,this.maxReconnectAttempts=999,this.initialTimeout=200,this.maxTimeout=2e3,this.wsuri=t,this.zustand=n,this.workers={},this.on_setWorker=r=>{this.zustand.set_worker(r)},this.connectionTimeout=setTimeout(()=>{this.connect()},200)}get open(){var t;return((t=this.ws)==null?void 0:t.readyState)===WebSocket.OPEN}connect(){this.zustand.set_progress({progress:0,message:"connecting to worker manager",status:"info",blocking:!0}),this.zustand.logger.info("Connecting to websocket:",this.wsuri),this.ws=new WebSocket(this.wsuri),this.ws.onopen=()=>{this.onopen()},this.ws.onclose=()=>{this.onclose()},this.ws.onerror=()=>{this.on_ws_error()},this.ws.onmessage=t=>{typeof t.data=="string"?this.onmessage(t.data):console.error("WorkerManager: onmessage event.data is not a string",typeof t.data)},this.connectionTimeout=setTimeout(()=>{var t;((t=this.ws)==null?void 0:t.readyState)!==WebSocket.OPEN&&this.on_ws_error()},5e3)}on_ws_error(){console.warn("Websocket error"),this.ws?this.ws.close():this.reconnect()}onopen(){this.connectionTimeout&&(clearTimeout(this.connectionTimeout),this.connectionTimeout=void 0),this.zustand.auto_progress(),this.ws&&this.ws.send("worker_status");const t=window.localStorage.getItem("funcnodes__active_worker");t&&this.set_active(t)}onmessage(t){try{let n=JSON.parse(t);if(n.type==="worker_status"){const r={};for(let o of n.active)o.active=!0,r[o.uuid]=o;for(let o of n.inactive)o.active=!1,r[o.uuid]=o;this.zustand.workers.setState(r);return}else if(n.type==="set_worker"){if(n.data.type==="WSWorker"){let r="ws"+(n.data.ssl?"s":"")+"://"+n.data.host+":"+n.data.port;this.setWorker(this.workers[n.data.uuid]||new Oc({url:r,zustand:this.zustand,uuid:n.data.uuid,on_sync_complete:this.zustand.options.on_sync_complete}))}else this.zustand.logger.error("WorkerManager: unknown worker type",n);return}else if(n.type==="progress"){this.zustand.set_progress(n);return}this.zustand.logger.error("WorkerManager: unknown message",n)}catch(n){console.error("WorkerManager: onmessage JSON.parse error",n,t);return}}setWorker(t){for(let n in this.workers)n!==(t==null?void 0:t.uuid)&&this.workers[n].disconnect();t!==void 0&&(this.workers[t.uuid]=t,t.reconnect()),t!=null&&t.uuid&&window.localStorage.setItem("funcnodes__active_worker",t==null?void 0:t.uuid),this.zustand.worker!==void 0&&this.zustand.clear_all(),this.zustand.set_worker(t),this.on_setWorker(t)}async restart_worker(t){var n;(n=this.ws)==null||n.send(JSON.stringify({type:"restart_worker",workerid:t}))}calculateReconnectTimeout(){return Math.min(this.initialTimeout*Math.pow(2,this.reconnectAttempts),this.maxTimeout)}reconnect(){if(this.reconnectAttempts<this.maxReconnectAttempts){let t=this.calculateReconnectTimeout();this.zustand.logger.info(`Attempting to reconnect in ${t} ms`),setTimeout(()=>{this.ws&&this.ws.readyState===WebSocket.OPEN||(this.reconnectAttempts++,this.connect())},t)}else this.zustand.logger.warn("Maximum reconnect attempts reached. Giving up.")}onclose(){this.zustand.logger.warn("WorkerManager: onclose"),this.reconnect()}set_active(t){this.ws&&this.ws.send(JSON.stringify({type:"set_active",workerid:t}))}new_worker({name:t,reference:n,copyLib:r,copyNS:o}){t||(t=void 0),r||(r=!1),o||(o=!1),n||(n=void 0,r=!1,o=!1),this.ws&&this.ws.send(JSON.stringify({type:"new_worker",kwargs:{name:t,reference:n,copyLib:r,copyNS:o}}))}remove(){for(let t in this.workers)this.workers[t].disconnect();this.connectionTimeout&&(clearTimeout(this.connectionTimeout),this.connectionTimeout=void 0),this.ws&&(this.ws.onclose=()=>{},this.ws.onerror=()=>{},this.ws.onmessage=()=>{},this.ws.onopen=()=>{},this.ws.close())}}function AR(e){const t=window.atob(e),n=t.length,r=new Uint8Array(n);for(let o=0;o<n;o++)r[o]=t.charCodeAt(o);return r}function TR(e,t){return new Blob([e],{type:t})}function NR(e,t){return TR(AR(e),t)}function PR(e,t,n){const r=NR(e,n),o=URL.createObjectURL(r),i=document.createElement("a");i.href=o,i.download=t,i.click(),URL.revokeObjectURL(o),i.remove()}function OR(e,t=!0){return new Promise(n=>{const r=new FileReader;r.onload=()=>{const o=r.result;t&&n(o.split(",")[1]),n(o)},r.readAsDataURL(e)})}function RR(e){return new Promise(t=>{const n=document.createElement("input");n.type="file",n.accept=e,n.onchange=()=>{var o;const r=(o=n.files)==null?void 0:o[0];r&&t(r)},n.click()})}function MR(e){return RR(e).then(OR)}async function DR(e,t=!0){try{const n=await fetch(e);if(!n.ok)throw new Error(`Failed to fetch from URL: ${n.status} ${n.statusText}`);const r=await n.blob();return await new Promise((i,s)=>{const a=new FileReader;a.onload=()=>{const l=a.result;typeof l!="string"&&(s("Failed to convert URL to Base64: No result from FileReader"),s(a.error)),i(t?l.split(",")[1]:l)},a.onerror=()=>s(a.error),a.readAsDataURL(r)})}catch(n){throw console.error("Error converting URL to Base64:",n),n}}function he(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function dy(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Sa(...e){return t=>{let n=!1;const r=e.map(o=>{const i=dy(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():dy(e[o],null)}}}}function Ge(...e){return k.useCallback(Sa(...e),e)}function FR(e,t){const n=k.createContext(t),r=i=>{const{children:s,...a}=i,l=k.useMemo(()=>a,Object.values(a));return b.jsx(n.Provider,{value:l,children:s})};r.displayName=e+"Provider";function o(i){const s=k.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function ir(e,t=[]){let n=[];function r(i,s){const a=k.createContext(s),l=n.length;n=[...n,s];const u=f=>{var m;const{scope:d,children:p,...g}=f,h=((m=d==null?void 0:d[e])==null?void 0:m[l])||a,y=k.useMemo(()=>g,Object.values(g));return b.jsx(h.Provider,{value:y,children:p})};u.displayName=i+"Provider";function c(f,d){var h;const p=((h=d==null?void 0:d[e])==null?void 0:h[l])||a,g=k.useContext(p);if(g)return g;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[u,c]}const o=()=>{const i=n.map(s=>k.createContext(s));return function(a){const l=(a==null?void 0:a[e])||i;return k.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,jR(o,...t)]}function jR(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:l,scopeName:u})=>{const f=l(i)[`__scope${u}`];return{...a,...f}},{});return k.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var Mr=globalThis!=null&&globalThis.document?k.useLayoutEffect:()=>{},LR=k[" useId ".trim().toString()]||(()=>{}),BR=0;function Dn(e){const[t,n]=k.useState(LR());return Mr(()=>{n(r=>r??String(BR++))},[e]),e||(t?`radix-${t}`:"")}function Lt(e){const t=k.useRef(e);return k.useEffect(()=>{t.current=e}),k.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function yo({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=zR({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:r,a=Lt(n),l=k.useCallback(u=>{if(i){const f=typeof u=="function"?u(e):u;f!==e&&a(f)}else o(u)},[i,e,o,a]);return[s,l]}function zR({defaultProp:e,onChange:t}){const n=k.useState(e),[r]=n,o=k.useRef(r),i=Lt(t);return k.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}function bo(e){const t=VR(e),n=k.forwardRef((r,o)=>{const{children:i,...s}=r,a=k.Children.toArray(i),l=a.find($R);if(l){const u=l.props.children,c=a.map(f=>f===l?k.Children.count(u)>1?k.Children.only(null):k.isValidElement(u)?u.props.children:null:f);return b.jsx(t,{...s,ref:o,children:k.isValidElement(u)?k.cloneElement(u,void 0,c):null})}return b.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function VR(e){const t=k.forwardRef((n,r)=>{const{children:o,...i}=n;if(k.isValidElement(o)){const s=WR(o),a=HR(i,o.props);return o.type!==k.Fragment&&(a.ref=r?Sa(r,s):s),k.cloneElement(o,a)}return k.Children.count(o)>1?k.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var GR=Symbol("radix.slottable");function $R(e){return k.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===GR}function HR(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{i(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function WR(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var XR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Fe=XR.reduce((e,t)=>{const n=bo(`Primitive.${t}`),r=k.forwardRef((o,i)=>{const{asChild:s,...a}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(l,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function py(e,t){e&&ku.flushSync(()=>e.dispatchEvent(t))}function YR(e,t=globalThis==null?void 0:globalThis.document){const n=Lt(e);k.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var UR="DismissableLayer",Rc="dismissableLayer.update",ZR="dismissableLayer.pointerDownOutside",JR="dismissableLayer.focusOutside",hy,gy=k.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ea=k.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...l}=e,u=k.useContext(gy),[c,f]=k.useState(null),d=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=k.useState({}),g=Ge(t,I=>f(I)),h=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=h.indexOf(y),x=c?h.indexOf(c):-1,v=u.layersWithOutsidePointerEventsDisabled.size>0,C=x>=m,S=QR(I=>{const O=I.target,M=[...u.branches].some(w=>w.contains(O));!C||M||(o==null||o(I),s==null||s(I),I.defaultPrevented||a==null||a())},d),E=eM(I=>{const O=I.target;[...u.branches].some(w=>w.contains(O))||(i==null||i(I),s==null||s(I),I.defaultPrevented||a==null||a())},d);return YR(I=>{x===u.layers.size-1&&(r==null||r(I),!I.defaultPrevented&&a&&(I.preventDefault(),a()))},d),k.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(hy=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),my(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=hy)}},[c,d,n,u]),k.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),my())},[c,u]),k.useEffect(()=>{const I=()=>p({});return document.addEventListener(Rc,I),()=>document.removeEventListener(Rc,I)},[]),b.jsx(Fe.div,{...l,ref:g,style:{pointerEvents:v?C?"auto":"none":void 0,...e.style},onFocusCapture:he(e.onFocusCapture,E.onFocusCapture),onBlurCapture:he(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:he(e.onPointerDownCapture,S.onPointerDownCapture)})});Ea.displayName=UR;var qR="DismissableLayerBranch",KR=k.forwardRef((e,t)=>{const n=k.useContext(gy),r=k.useRef(null),o=Ge(t,r);return k.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),b.jsx(Fe.div,{...e,ref:o})});KR.displayName=qR;function QR(e,t=globalThis==null?void 0:globalThis.document){const n=Lt(e),r=k.useRef(!1),o=k.useRef(()=>{});return k.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){yy(ZR,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function eM(e,t=globalThis==null?void 0:globalThis.document){const n=Lt(e),r=k.useRef(!1);return k.useEffect(()=>{const o=i=>{i.target&&!r.current&&yy(JR,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function my(){const e=new CustomEvent(Rc);document.dispatchEvent(e)}function yy(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?py(o,i):o.dispatchEvent(i)}var Mc="focusScope.autoFocusOnMount",Dc="focusScope.autoFocusOnUnmount",by={bubbles:!1,cancelable:!0},tM="FocusScope",Ia=k.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,l]=k.useState(null),u=Lt(o),c=Lt(i),f=k.useRef(null),d=Ge(t,h=>l(h)),p=k.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;k.useEffect(()=>{if(r){let h=function(v){if(p.paused||!a)return;const C=v.target;a.contains(C)?f.current=C:sr(f.current,{select:!0})},y=function(v){if(p.paused||!a)return;const C=v.relatedTarget;C!==null&&(a.contains(C)||sr(f.current,{select:!0}))},m=function(v){if(document.activeElement===document.body)for(const S of v)S.removedNodes.length>0&&sr(a)};document.addEventListener("focusin",h),document.addEventListener("focusout",y);const x=new MutationObserver(m);return a&&x.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",y),x.disconnect()}}},[r,a,p.paused]),k.useEffect(()=>{if(a){wy.add(p);const h=document.activeElement;if(!a.contains(h)){const m=new CustomEvent(Mc,by);a.addEventListener(Mc,u),a.dispatchEvent(m),m.defaultPrevented||(nM(aM(vy(a)),{select:!0}),document.activeElement===h&&sr(a))}return()=>{a.removeEventListener(Mc,u),setTimeout(()=>{const m=new CustomEvent(Dc,by);a.addEventListener(Dc,c),a.dispatchEvent(m),m.defaultPrevented||sr(h??document.body,{select:!0}),a.removeEventListener(Dc,c),wy.remove(p)},0)}}},[a,u,c,p]);const g=k.useCallback(h=>{if(!n&&!r||p.paused)return;const y=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,m=document.activeElement;if(y&&m){const x=h.currentTarget,[v,C]=rM(x);v&&C?!h.shiftKey&&m===C?(h.preventDefault(),n&&sr(v,{select:!0})):h.shiftKey&&m===v&&(h.preventDefault(),n&&sr(C,{select:!0})):m===x&&h.preventDefault()}},[n,r,p.paused]);return b.jsx(Fe.div,{tabIndex:-1,...s,ref:d,onKeyDown:g})});Ia.displayName=tM;function nM(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(sr(r,{select:t}),document.activeElement!==n)return}function rM(e){const t=vy(e),n=xy(t,e),r=xy(t.reverse(),e);return[n,r]}function vy(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 xy(e,t){for(const n of e)if(!oM(n,{upTo:t}))return n}function oM(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function iM(e){return e instanceof HTMLInputElement&&"select"in e}function sr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&iM(e)&&t&&e.select()}}var wy=sM();function sM(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Cy(e,t),e.unshift(t)},remove(t){var n;e=Cy(e,t),(n=e[0])==null||n.resume()}}}function Cy(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function aM(e){return e.filter(t=>t.tagName!=="A")}var lM="Portal",Fc=k.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,i]=k.useState(!1);Mr(()=>i(!0),[]);const s=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?Kn.createPortal(b.jsx(Fe.div,{...r,ref:t}),s):null});Fc.displayName=lM;function uM(e,t){return k.useReducer((n,r)=>t[n][r]??n,e)}var Fn=e=>{const{present:t,children:n}=e,r=cM(t),o=typeof n=="function"?n({present:r.isPresent}):k.Children.only(n),i=Ge(r.ref,fM(o));return typeof n=="function"||r.isPresent?k.cloneElement(o,{ref:i}):null};Fn.displayName="Presence";function cM(e){const[t,n]=k.useState(),r=k.useRef({}),o=k.useRef(e),i=k.useRef("none"),s=e?"mounted":"unmounted",[a,l]=uM(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return k.useEffect(()=>{const u=ka(r.current);i.current=a==="mounted"?u:"none"},[a]),Mr(()=>{const u=r.current,c=o.current;if(c!==e){const d=i.current,p=ka(u);e?l("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&d!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Mr(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,f=p=>{const h=ka(r.current).includes(p.animationName);if(p.target===t&&h&&(l("ANIMATION_END"),!o.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},d=p=>{p.target===t&&(i.current=ka(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:k.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function ka(e){return(e==null?void 0:e.animationName)||"none"}function fM(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var jc=0;function Lc(){k.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??_y()),document.body.insertAdjacentElement("beforeend",e[1]??_y()),jc++,()=>{jc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),jc--}},[])}function _y(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var dn=function(){return dn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},dn.apply(this,arguments)};function Sy(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Aa(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Ta="right-scroll-bar-position",Na="width-before-scroll-bar",dM="with-scroll-bars-hidden",pM="--removed-body-scroll-bar-size";function Bc(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function hM(e,t){var n=T.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var gM=typeof window<"u"?k.useLayoutEffect:k.useEffect,Ey=new WeakMap;function mM(e,t){var n=hM(null,function(r){return e.forEach(function(o){return Bc(o,r)})});return gM(function(){var r=Ey.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||Bc(a,null)}),i.forEach(function(a){o.has(a)||Bc(a,s)})}Ey.set(n,e)},[e]),n}function yM(e){return e}function bM(e,t){t===void 0&&(t=yM);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var l=function(){var c=s;s=[],c.forEach(i)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(c){s.push(c),u()},filter:function(c){return s=s.filter(c),n}}}};return o}function vM(e){e===void 0&&(e={});var t=bM(null);return t.options=dn({async:!0,ssr:!1},e),t}var Iy=function(e){var t=e.sideCar,n=Sy(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return k.createElement(r,dn({},n))};Iy.isSideCarExport=!0;function xM(e,t){return e.useMedium(t),Iy}var ky=vM(),zc=function(){},Pa=k.forwardRef(function(e,t){var n=k.useRef(null),r=k.useState({onScrollCapture:zc,onWheelCapture:zc,onTouchMoveCapture:zc}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,f=e.shards,d=e.sideCar,p=e.noIsolation,g=e.inert,h=e.allowPinchZoom,y=e.as,m=y===void 0?"div":y,x=e.gapMode,v=Sy(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=d,S=mM([n,t]),E=dn(dn({},v),o);return k.createElement(k.Fragment,null,c&&k.createElement(C,{sideCar:ky,removeScrollBar:u,shards:f,noIsolation:p,inert:g,setCallbacks:i,allowPinchZoom:!!h,lockRef:n,gapMode:x}),s?k.cloneElement(k.Children.only(a),dn(dn({},E),{ref:S})):k.createElement(m,dn({},E,{className:l,ref:S}),a))});Pa.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Pa.classNames={fullWidth:Na,zeroRight:Ta};var wM=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function CM(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=wM();return t&&e.setAttribute("nonce",t),e}function _M(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function SM(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var EM=function(){var e=0,t=null;return{add:function(n){e==0&&(t=CM())&&(_M(t,n),SM(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},IM=function(){var e=EM();return function(t,n){k.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ay=function(){var e=IM(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},kM={left:0,top:0,right:0,gap:0},Vc=function(e){return parseInt(e||"",10)||0},AM=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Vc(n),Vc(r),Vc(o)]},TM=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return kM;var t=AM(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},NM=Ay(),vo="data-scroll-locked",PM=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
70
|
+
.`.concat(dM,` {
|
|
71
|
+
overflow: hidden `).concat(r,`;
|
|
72
|
+
padding-right: `).concat(a,"px ").concat(r,`;
|
|
73
|
+
}
|
|
74
|
+
body[`).concat(vo,`] {
|
|
75
|
+
overflow: hidden `).concat(r,`;
|
|
76
|
+
overscroll-behavior: contain;
|
|
77
|
+
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
78
|
+
padding-left: `.concat(o,`px;
|
|
79
|
+
padding-top: `).concat(i,`px;
|
|
80
|
+
padding-right: `).concat(s,`px;
|
|
81
|
+
margin-left:0;
|
|
82
|
+
margin-top:0;
|
|
83
|
+
margin-right: `).concat(a,"px ").concat(r,`;
|
|
84
|
+
`),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.`).concat(Ta,` {
|
|
88
|
+
right: `).concat(a,"px ").concat(r,`;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.`).concat(Na,` {
|
|
92
|
+
margin-right: `).concat(a,"px ").concat(r,`;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.`).concat(Ta," .").concat(Ta,` {
|
|
96
|
+
right: 0 `).concat(r,`;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.`).concat(Na," .").concat(Na,` {
|
|
100
|
+
margin-right: 0 `).concat(r,`;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
body[`).concat(vo,`] {
|
|
104
|
+
`).concat(pM,": ").concat(a,`px;
|
|
105
|
+
}
|
|
106
|
+
`)},Ty=function(){var e=parseInt(document.body.getAttribute(vo)||"0",10);return isFinite(e)?e:0},OM=function(){k.useEffect(function(){return document.body.setAttribute(vo,(Ty()+1).toString()),function(){var e=Ty()-1;e<=0?document.body.removeAttribute(vo):document.body.setAttribute(vo,e.toString())}},[])},RM=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;OM();var i=k.useMemo(function(){return TM(o)},[o]);return k.createElement(NM,{styles:PM(i,!t,o,n?"":"!important")})},Gc=!1;if(typeof window<"u")try{var Oa=Object.defineProperty({},"passive",{get:function(){return Gc=!0,!0}});window.addEventListener("test",Oa,Oa),window.removeEventListener("test",Oa,Oa)}catch{Gc=!1}var xo=Gc?{passive:!1}:!1,MM=function(e){return e.tagName==="TEXTAREA"},Ny=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!MM(e)&&n[t]==="visible")},DM=function(e){return Ny(e,"overflowY")},FM=function(e){return Ny(e,"overflowX")},Py=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Oy(e,r);if(o){var i=Ry(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},jM=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},LM=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Oy=function(e,t){return e==="v"?DM(t):FM(t)},Ry=function(e,t){return e==="v"?jM(t):LM(t)},BM=function(e,t){return e==="h"&&t==="rtl"?-1:1},zM=function(e,t,n,r,o){var i=BM(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,l=t.contains(a),u=!1,c=s>0,f=0,d=0;do{var p=Ry(e,a),g=p[0],h=p[1],y=p[2],m=h-y-i*g;(g||m)&&Oy(e,a)&&(f+=m,d+=g),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(c&&Math.abs(f)<1||!c&&Math.abs(d)<1)&&(u=!0),u},Ra=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},My=function(e){return[e.deltaX,e.deltaY]},Dy=function(e){return e&&"current"in e?e.current:e},VM=function(e,t){return e[0]===t[0]&&e[1]===t[1]},GM=function(e){return`
|
|
107
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
108
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
109
|
+
`)},$M=0,wo=[];function HM(e){var t=k.useRef([]),n=k.useRef([0,0]),r=k.useRef(),o=k.useState($M++)[0],i=k.useState(Ay)[0],s=k.useRef(e);k.useEffect(function(){s.current=e},[e]),k.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=Aa([e.lockRef.current],(e.shards||[]).map(Dy),!0).filter(Boolean);return h.forEach(function(y){return y.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=k.useCallback(function(h,y){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!s.current.allowPinchZoom;var m=Ra(h),x=n.current,v="deltaX"in h?h.deltaX:x[0]-m[0],C="deltaY"in h?h.deltaY:x[1]-m[1],S,E=h.target,I=Math.abs(v)>Math.abs(C)?"h":"v";if("touches"in h&&I==="h"&&E.type==="range")return!1;var O=Py(I,E);if(!O)return!0;if(O?S=I:(S=I==="v"?"h":"v",O=Py(I,E)),!O)return!1;if(!r.current&&"changedTouches"in h&&(v||C)&&(r.current=S),!S)return!0;var M=r.current||S;return zM(M,y,h,M==="h"?v:C)},[]),l=k.useCallback(function(h){var y=h;if(!(!wo.length||wo[wo.length-1]!==i)){var m="deltaY"in y?My(y):Ra(y),x=t.current.filter(function(S){return S.name===y.type&&(S.target===y.target||y.target===S.shadowParent)&&VM(S.delta,m)})[0];if(x&&x.should){y.cancelable&&y.preventDefault();return}if(!x){var v=(s.current.shards||[]).map(Dy).filter(Boolean).filter(function(S){return S.contains(y.target)}),C=v.length>0?a(y,v[0]):!s.current.noIsolation;C&&y.cancelable&&y.preventDefault()}}},[]),u=k.useCallback(function(h,y,m,x){var v={name:h,delta:y,target:m,should:x,shadowParent:WM(m)};t.current.push(v),setTimeout(function(){t.current=t.current.filter(function(C){return C!==v})},1)},[]),c=k.useCallback(function(h){n.current=Ra(h),r.current=void 0},[]),f=k.useCallback(function(h){u(h.type,My(h),h.target,a(h,e.lockRef.current))},[]),d=k.useCallback(function(h){u(h.type,Ra(h),h.target,a(h,e.lockRef.current))},[]);k.useEffect(function(){return wo.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",l,xo),document.addEventListener("touchmove",l,xo),document.addEventListener("touchstart",c,xo),function(){wo=wo.filter(function(h){return h!==i}),document.removeEventListener("wheel",l,xo),document.removeEventListener("touchmove",l,xo),document.removeEventListener("touchstart",c,xo)}},[]);var p=e.removeScrollBar,g=e.inert;return k.createElement(k.Fragment,null,g?k.createElement(i,{styles:GM(o)}):null,p?k.createElement(RM,{gapMode:e.gapMode}):null)}function WM(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const XM=xM(ky,HM);var Ma=k.forwardRef(function(e,t){return k.createElement(Pa,dn({},e,{ref:t,sideCar:XM}))});Ma.classNames=Pa.classNames;var YM=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Co=new WeakMap,Da=new WeakMap,Fa={},$c=0,Fy=function(e){return e&&(e.host||Fy(e.parentNode))},UM=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Fy(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},ZM=function(e,t,n,r){var o=UM(t,Array.isArray(e)?e:[e]);Fa[n]||(Fa[n]=new WeakMap);var i=Fa[n],s=[],a=new Set,l=new Set(o),u=function(f){!f||a.has(f)||(a.add(f),u(f.parentNode))};o.forEach(u);var c=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(d){if(a.has(d))c(d);else try{var p=d.getAttribute(r),g=p!==null&&p!=="false",h=(Co.get(d)||0)+1,y=(i.get(d)||0)+1;Co.set(d,h),i.set(d,y),s.push(d),h===1&&g&&Da.set(d,!0),y===1&&d.setAttribute(n,"true"),g||d.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",d,m)}})};return c(t),a.clear(),$c++,function(){s.forEach(function(f){var d=Co.get(f)-1,p=i.get(f)-1;Co.set(f,d),i.set(f,p),d||(Da.has(f)||f.removeAttribute(r),Da.delete(f)),p||f.removeAttribute(n)}),$c--,$c||(Co=new WeakMap,Co=new WeakMap,Da=new WeakMap,Fa={})}},Hc=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=YM(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),ZM(r,o,n,"aria-hidden")):function(){return null}},Wc="Dialog",[jy,jJ]=ir(Wc),[JM,qt]=jy(Wc),Ly=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,a=k.useRef(null),l=k.useRef(null),[u=!1,c]=yo({prop:r,defaultProp:o,onChange:i});return b.jsx(JM,{scope:t,triggerRef:a,contentRef:l,contentId:Dn(),titleId:Dn(),descriptionId:Dn(),open:u,onOpenChange:c,onOpenToggle:k.useCallback(()=>c(f=>!f),[c]),modal:s,children:n})};Ly.displayName=Wc;var By="DialogTrigger",zy=k.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=qt(By,n),i=Ge(t,o.triggerRef);return b.jsx(Fe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Uc(o.open),...r,ref:i,onClick:he(e.onClick,o.onOpenToggle)})});zy.displayName=By;var Xc="DialogPortal",[qM,Vy]=jy(Xc,{forceMount:void 0}),Gy=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=qt(Xc,t);return b.jsx(qM,{scope:t,forceMount:n,children:k.Children.map(r,s=>b.jsx(Fn,{present:n||i.open,children:b.jsx(Fc,{asChild:!0,container:o,children:s})}))})};Gy.displayName=Xc;var ja="DialogOverlay",$y=k.forwardRef((e,t)=>{const n=Vy(ja,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=qt(ja,e.__scopeDialog);return i.modal?b.jsx(Fn,{present:r||i.open,children:b.jsx(QM,{...o,ref:t})}):null});$y.displayName=ja;var KM=bo("DialogOverlay.RemoveScroll"),QM=k.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=qt(ja,n);return b.jsx(Ma,{as:KM,allowPinchZoom:!0,shards:[o.contentRef],children:b.jsx(Fe.div,{"data-state":Uc(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Dr="DialogContent",Hy=k.forwardRef((e,t)=>{const n=Vy(Dr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=qt(Dr,e.__scopeDialog);return b.jsx(Fn,{present:r||i.open,children:i.modal?b.jsx(e5,{...o,ref:t}):b.jsx(t5,{...o,ref:t})})});Hy.displayName=Dr;var e5=k.forwardRef((e,t)=>{const n=qt(Dr,e.__scopeDialog),r=k.useRef(null),o=Ge(t,n.contentRef,r);return k.useEffect(()=>{const i=r.current;if(i)return Hc(i)},[]),b.jsx(Wy,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:he(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:he(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:he(e.onFocusOutside,i=>i.preventDefault())})}),t5=k.forwardRef((e,t)=>{const n=qt(Dr,e.__scopeDialog),r=k.useRef(!1),o=k.useRef(!1);return b.jsx(Wy,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),Wy=k.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,a=qt(Dr,n),l=k.useRef(null),u=Ge(t,l);return Lc(),b.jsxs(b.Fragment,{children:[b.jsx(Ia,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:b.jsx(Ea,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Uc(a.open),...s,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),b.jsxs(b.Fragment,{children:[b.jsx(n5,{titleId:a.titleId}),b.jsx(o5,{contentRef:l,descriptionId:a.descriptionId})]})]})}),Yc="DialogTitle",Xy=k.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=qt(Yc,n);return b.jsx(Fe.h2,{id:o.titleId,...r,ref:t})});Xy.displayName=Yc;var Yy="DialogDescription",Uy=k.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=qt(Yy,n);return b.jsx(Fe.p,{id:o.descriptionId,...r,ref:t})});Uy.displayName=Yy;var Zy="DialogClose",Jy=k.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=qt(Zy,n);return b.jsx(Fe.button,{type:"button",...r,ref:t,onClick:he(e.onClick,()=>o.onOpenChange(!1))})});Jy.displayName=Zy;function Uc(e){return e?"open":"closed"}var qy="DialogTitleWarning",[LJ,Ky]=FR(qy,{contentName:Dr,titleName:Yc,docsSlug:"dialog"}),n5=({titleId:e})=>{const t=Ky(qy),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
110
|
+
|
|
111
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
112
|
+
|
|
113
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return k.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},r5="DialogDescriptionWarning",o5=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ky(r5).contentName}}.`;return k.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},i5=Ly,s5=zy,a5=Gy,l5=$y,u5=Hy,c5=Xy,f5=Uy,Qy=Jy;/*!
|
|
114
|
+
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
|
|
115
|
+
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
116
|
+
* Copyright 2024 Fonticons, Inc.
|
|
117
|
+
*/function d5(e,t,n){return(t=h5(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ee(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eb(Object(n),!0).forEach(function(r){d5(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function p5(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function h5(e){var t=p5(e,"string");return typeof t=="symbol"?t:t+""}const tb=()=>{};let Zc={},nb={},rb=null,ob={mark:tb,measure:tb};try{typeof window<"u"&&(Zc=window),typeof document<"u"&&(nb=document),typeof MutationObserver<"u"&&(rb=MutationObserver),typeof performance<"u"&&(ob=performance)}catch{}const{userAgent:ib=""}=Zc.navigator||{},ar=Zc,Be=nb,sb=rb,La=ob;ar.document;const jn=!!Be.documentElement&&!!Be.head&&typeof Be.addEventListener=="function"&&typeof Be.createElement=="function",ab=~ib.indexOf("MSIE")||~ib.indexOf("Trident/");var g5=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,m5=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,lb={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},y5={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},ub=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],it="classic",Ba="duotone",b5="sharp",v5="sharp-duotone",cb=[it,Ba,b5,v5],x5={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}},w5={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}},C5=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),_5={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}},S5=["fak","fa-kit","fakd","fa-kit-duotone"],fb={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},E5=["kit"],I5={kit:{"fa-kit":"fak"}},k5=["fak","fakd"],A5={kit:{fak:"fa-kit"}},db={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},za={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},T5=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],N5=["fak","fa-kit","fakd","fa-kit-duotone"],P5={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},O5={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}},R5={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},Jc={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},M5=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],qc=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...T5,...M5],D5=["solid","regular","light","thin","duotone","brands"],pb=[1,2,3,4,5,6,7,8,9,10],F5=pb.concat([11,12,13,14,15,16,17,18,19,20]),j5=[...Object.keys(R5),...D5,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",za.GROUP,za.SWAP_OPACITY,za.PRIMARY,za.SECONDARY].concat(pb.map(e=>"".concat(e,"x"))).concat(F5.map(e=>"w-".concat(e))),L5={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}};const Ln="___FONT_AWESOME___",Kc=16,hb="fa",gb="svg-inline--fa",Fr="data-fa-i2svg",Qc="data-fa-pseudo-element",B5="data-fa-pseudo-element-pending",ef="data-prefix",tf="data-icon",mb="fontawesome-i2svg",z5="async",V5=["HTML","HEAD","STYLE","SCRIPT"],yb=(()=>{try{return process.env.NODE_ENV==="production"}catch{return!1}})();function Oi(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[it]}})}const bb=ee({},lb);bb[it]=ee(ee(ee(ee({},{"fa-duotone":"duotone"}),lb[it]),fb.kit),fb["kit-duotone"]);const G5=Oi(bb),nf=ee({},_5);nf[it]=ee(ee(ee(ee({},{duotone:"fad"}),nf[it]),db.kit),db["kit-duotone"]);const vb=Oi(nf),rf=ee({},Jc);rf[it]=ee(ee({},rf[it]),A5.kit);const of=Oi(rf),sf=ee({},O5);sf[it]=ee(ee({},sf[it]),I5.kit),Oi(sf);const $5=g5,xb="fa-layers-text",H5=m5,W5=ee({},x5);Oi(W5);const X5=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],af=y5,Y5=[...E5,...j5],Ri=ar.FontAwesomeConfig||{};function U5(e){var t=Be.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function Z5(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}Be&&typeof Be.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(t=>{let[n,r]=t;const o=Z5(U5(n));o!=null&&(Ri[r]=o)});const wb={styleDefault:"solid",familyDefault:it,cssPrefix:hb,replacementClass:gb,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Ri.familyPrefix&&(Ri.cssPrefix=Ri.familyPrefix);const _o=ee(ee({},wb),Ri);_o.autoReplaceSvg||(_o.observeMutations=!1);const se={};Object.keys(wb).forEach(e=>{Object.defineProperty(se,e,{enumerable:!0,set:function(t){_o[e]=t,Mi.forEach(n=>n(se))},get:function(){return _o[e]}})}),Object.defineProperty(se,"familyPrefix",{enumerable:!0,set:function(e){_o.cssPrefix=e,Mi.forEach(t=>t(se))},get:function(){return _o.cssPrefix}}),ar.FontAwesomeConfig=se;const Mi=[];function J5(e){return Mi.push(e),()=>{Mi.splice(Mi.indexOf(e),1)}}const lr=Kc,pn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function q5(e){if(!e||!jn)return;const t=Be.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=Be.head.childNodes;let r=null;for(let o=n.length-1;o>-1;o--){const i=n[o],s=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(r=i)}return Be.head.insertBefore(t,r),e}const K5="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Di(){let e=12,t="";for(;e-- >0;)t+=K5[Math.random()*62|0];return t}function So(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function lf(e){return e.classList?So(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function Cb(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Q5(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(Cb(e[n]),'" '),"").trim()}function Va(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function uf(e){return e.size!==pn.size||e.x!==pn.x||e.y!==pn.y||e.rotate!==pn.rotate||e.flipX||e.flipY}function e4(e){let{transform:t,containerWidth:n,iconWidth:r}=e;const o={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(t.x*32,", ").concat(t.y*32,") "),s="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(i," ").concat(s," ").concat(a)},u={transform:"translate(".concat(r/2*-1," -256)")};return{outer:o,inner:l,path:u}}function t4(e){let{transform:t,width:n=Kc,height:r=Kc,startCentered:o=!1}=e,i="";return o&&ab?i+="translate(".concat(t.x/lr-n/2,"em, ").concat(t.y/lr-r/2,"em) "):o?i+="translate(calc(-50% + ".concat(t.x/lr,"em), calc(-50% + ").concat(t.y/lr,"em)) "):i+="translate(".concat(t.x/lr,"em, ").concat(t.y/lr,"em) "),i+="scale(".concat(t.size/lr*(t.flipX?-1:1),", ").concat(t.size/lr*(t.flipY?-1:1),") "),i+="rotate(".concat(t.rotate,"deg) "),i}var n4=`:root, :host {
|
|
118
|
+
--fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
|
|
119
|
+
--fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";
|
|
120
|
+
--fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";
|
|
121
|
+
--fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";
|
|
122
|
+
--fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
|
|
123
|
+
--fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 6 Duotone";
|
|
124
|
+
--fa-font-duotone-light: normal 300 1em/1 "Font Awesome 6 Duotone";
|
|
125
|
+
--fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 6 Duotone";
|
|
126
|
+
--fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
|
|
127
|
+
--fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";
|
|
128
|
+
--fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";
|
|
129
|
+
--fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";
|
|
130
|
+
--fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";
|
|
131
|
+
--fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";
|
|
132
|
+
--fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 6 Sharp Duotone";
|
|
133
|
+
--fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 6 Sharp Duotone";
|
|
134
|
+
--fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 6 Sharp Duotone";
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
|
|
138
|
+
overflow: visible;
|
|
139
|
+
box-sizing: content-box;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.svg-inline--fa {
|
|
143
|
+
display: var(--fa-display, inline-block);
|
|
144
|
+
height: 1em;
|
|
145
|
+
overflow: visible;
|
|
146
|
+
vertical-align: -0.125em;
|
|
147
|
+
}
|
|
148
|
+
.svg-inline--fa.fa-2xs {
|
|
149
|
+
vertical-align: 0.1em;
|
|
150
|
+
}
|
|
151
|
+
.svg-inline--fa.fa-xs {
|
|
152
|
+
vertical-align: 0em;
|
|
153
|
+
}
|
|
154
|
+
.svg-inline--fa.fa-sm {
|
|
155
|
+
vertical-align: -0.0714285705em;
|
|
156
|
+
}
|
|
157
|
+
.svg-inline--fa.fa-lg {
|
|
158
|
+
vertical-align: -0.2em;
|
|
159
|
+
}
|
|
160
|
+
.svg-inline--fa.fa-xl {
|
|
161
|
+
vertical-align: -0.25em;
|
|
162
|
+
}
|
|
163
|
+
.svg-inline--fa.fa-2xl {
|
|
164
|
+
vertical-align: -0.3125em;
|
|
165
|
+
}
|
|
166
|
+
.svg-inline--fa.fa-pull-left {
|
|
167
|
+
margin-right: var(--fa-pull-margin, 0.3em);
|
|
168
|
+
width: auto;
|
|
169
|
+
}
|
|
170
|
+
.svg-inline--fa.fa-pull-right {
|
|
171
|
+
margin-left: var(--fa-pull-margin, 0.3em);
|
|
172
|
+
width: auto;
|
|
173
|
+
}
|
|
174
|
+
.svg-inline--fa.fa-li {
|
|
175
|
+
width: var(--fa-li-width, 2em);
|
|
176
|
+
top: 0.25em;
|
|
177
|
+
}
|
|
178
|
+
.svg-inline--fa.fa-fw {
|
|
179
|
+
width: var(--fa-fw-width, 1.25em);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.fa-layers svg.svg-inline--fa {
|
|
183
|
+
bottom: 0;
|
|
184
|
+
left: 0;
|
|
185
|
+
margin: auto;
|
|
186
|
+
position: absolute;
|
|
187
|
+
right: 0;
|
|
188
|
+
top: 0;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.fa-layers-counter, .fa-layers-text {
|
|
192
|
+
display: inline-block;
|
|
193
|
+
position: absolute;
|
|
194
|
+
text-align: center;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.fa-layers {
|
|
198
|
+
display: inline-block;
|
|
199
|
+
height: 1em;
|
|
200
|
+
position: relative;
|
|
201
|
+
text-align: center;
|
|
202
|
+
vertical-align: -0.125em;
|
|
203
|
+
width: 1em;
|
|
204
|
+
}
|
|
205
|
+
.fa-layers svg.svg-inline--fa {
|
|
206
|
+
transform-origin: center center;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.fa-layers-text {
|
|
210
|
+
left: 50%;
|
|
211
|
+
top: 50%;
|
|
212
|
+
transform: translate(-50%, -50%);
|
|
213
|
+
transform-origin: center center;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.fa-layers-counter {
|
|
217
|
+
background-color: var(--fa-counter-background-color, #ff253a);
|
|
218
|
+
border-radius: var(--fa-counter-border-radius, 1em);
|
|
219
|
+
box-sizing: border-box;
|
|
220
|
+
color: var(--fa-inverse, #fff);
|
|
221
|
+
line-height: var(--fa-counter-line-height, 1);
|
|
222
|
+
max-width: var(--fa-counter-max-width, 5em);
|
|
223
|
+
min-width: var(--fa-counter-min-width, 1.5em);
|
|
224
|
+
overflow: hidden;
|
|
225
|
+
padding: var(--fa-counter-padding, 0.25em 0.5em);
|
|
226
|
+
right: var(--fa-right, 0);
|
|
227
|
+
text-overflow: ellipsis;
|
|
228
|
+
top: var(--fa-top, 0);
|
|
229
|
+
transform: scale(var(--fa-counter-scale, 0.25));
|
|
230
|
+
transform-origin: top right;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.fa-layers-bottom-right {
|
|
234
|
+
bottom: var(--fa-bottom, 0);
|
|
235
|
+
right: var(--fa-right, 0);
|
|
236
|
+
top: auto;
|
|
237
|
+
transform: scale(var(--fa-layers-scale, 0.25));
|
|
238
|
+
transform-origin: bottom right;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.fa-layers-bottom-left {
|
|
242
|
+
bottom: var(--fa-bottom, 0);
|
|
243
|
+
left: var(--fa-left, 0);
|
|
244
|
+
right: auto;
|
|
245
|
+
top: auto;
|
|
246
|
+
transform: scale(var(--fa-layers-scale, 0.25));
|
|
247
|
+
transform-origin: bottom left;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.fa-layers-top-right {
|
|
251
|
+
top: var(--fa-top, 0);
|
|
252
|
+
right: var(--fa-right, 0);
|
|
253
|
+
transform: scale(var(--fa-layers-scale, 0.25));
|
|
254
|
+
transform-origin: top right;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.fa-layers-top-left {
|
|
258
|
+
left: var(--fa-left, 0);
|
|
259
|
+
right: auto;
|
|
260
|
+
top: var(--fa-top, 0);
|
|
261
|
+
transform: scale(var(--fa-layers-scale, 0.25));
|
|
262
|
+
transform-origin: top left;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.fa-1x {
|
|
266
|
+
font-size: 1em;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.fa-2x {
|
|
270
|
+
font-size: 2em;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.fa-3x {
|
|
274
|
+
font-size: 3em;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.fa-4x {
|
|
278
|
+
font-size: 4em;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.fa-5x {
|
|
282
|
+
font-size: 5em;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.fa-6x {
|
|
286
|
+
font-size: 6em;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.fa-7x {
|
|
290
|
+
font-size: 7em;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.fa-8x {
|
|
294
|
+
font-size: 8em;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.fa-9x {
|
|
298
|
+
font-size: 9em;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.fa-10x {
|
|
302
|
+
font-size: 10em;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.fa-2xs {
|
|
306
|
+
font-size: 0.625em;
|
|
307
|
+
line-height: 0.1em;
|
|
308
|
+
vertical-align: 0.225em;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.fa-xs {
|
|
312
|
+
font-size: 0.75em;
|
|
313
|
+
line-height: 0.0833333337em;
|
|
314
|
+
vertical-align: 0.125em;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.fa-sm {
|
|
318
|
+
font-size: 0.875em;
|
|
319
|
+
line-height: 0.0714285718em;
|
|
320
|
+
vertical-align: 0.0535714295em;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.fa-lg {
|
|
324
|
+
font-size: 1.25em;
|
|
325
|
+
line-height: 0.05em;
|
|
326
|
+
vertical-align: -0.075em;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.fa-xl {
|
|
330
|
+
font-size: 1.5em;
|
|
331
|
+
line-height: 0.0416666682em;
|
|
332
|
+
vertical-align: -0.125em;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.fa-2xl {
|
|
336
|
+
font-size: 2em;
|
|
337
|
+
line-height: 0.03125em;
|
|
338
|
+
vertical-align: -0.1875em;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.fa-fw {
|
|
342
|
+
text-align: center;
|
|
343
|
+
width: 1.25em;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.fa-ul {
|
|
347
|
+
list-style-type: none;
|
|
348
|
+
margin-left: var(--fa-li-margin, 2.5em);
|
|
349
|
+
padding-left: 0;
|
|
350
|
+
}
|
|
351
|
+
.fa-ul > li {
|
|
352
|
+
position: relative;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.fa-li {
|
|
356
|
+
left: calc(-1 * var(--fa-li-width, 2em));
|
|
357
|
+
position: absolute;
|
|
358
|
+
text-align: center;
|
|
359
|
+
width: var(--fa-li-width, 2em);
|
|
360
|
+
line-height: inherit;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.fa-border {
|
|
364
|
+
border-color: var(--fa-border-color, #eee);
|
|
365
|
+
border-radius: var(--fa-border-radius, 0.1em);
|
|
366
|
+
border-style: var(--fa-border-style, solid);
|
|
367
|
+
border-width: var(--fa-border-width, 0.08em);
|
|
368
|
+
padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.fa-pull-left {
|
|
372
|
+
float: left;
|
|
373
|
+
margin-right: var(--fa-pull-margin, 0.3em);
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.fa-pull-right {
|
|
377
|
+
float: right;
|
|
378
|
+
margin-left: var(--fa-pull-margin, 0.3em);
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.fa-beat {
|
|
382
|
+
animation-name: fa-beat;
|
|
383
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
|
384
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
385
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
|
386
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
387
|
+
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.fa-bounce {
|
|
391
|
+
animation-name: fa-bounce;
|
|
392
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
|
393
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
394
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
|
395
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
396
|
+
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
.fa-fade {
|
|
400
|
+
animation-name: fa-fade;
|
|
401
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
|
402
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
403
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
|
404
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
405
|
+
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.fa-beat-fade {
|
|
409
|
+
animation-name: fa-beat-fade;
|
|
410
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
|
411
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
412
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
|
413
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
414
|
+
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.fa-flip {
|
|
418
|
+
animation-name: fa-flip;
|
|
419
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
|
420
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
421
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
|
422
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
423
|
+
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.fa-shake {
|
|
427
|
+
animation-name: fa-shake;
|
|
428
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
|
429
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
430
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
|
431
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
432
|
+
animation-timing-function: var(--fa-animation-timing, linear);
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.fa-spin {
|
|
436
|
+
animation-name: fa-spin;
|
|
437
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
|
438
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
439
|
+
animation-duration: var(--fa-animation-duration, 2s);
|
|
440
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
441
|
+
animation-timing-function: var(--fa-animation-timing, linear);
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
.fa-spin-reverse {
|
|
445
|
+
--fa-animation-direction: reverse;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
.fa-pulse,
|
|
449
|
+
.fa-spin-pulse {
|
|
450
|
+
animation-name: fa-spin;
|
|
451
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
452
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
|
453
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
454
|
+
animation-timing-function: var(--fa-animation-timing, steps(8));
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
@media (prefers-reduced-motion: reduce) {
|
|
458
|
+
.fa-beat,
|
|
459
|
+
.fa-bounce,
|
|
460
|
+
.fa-fade,
|
|
461
|
+
.fa-beat-fade,
|
|
462
|
+
.fa-flip,
|
|
463
|
+
.fa-pulse,
|
|
464
|
+
.fa-shake,
|
|
465
|
+
.fa-spin,
|
|
466
|
+
.fa-spin-pulse {
|
|
467
|
+
animation-delay: -1ms;
|
|
468
|
+
animation-duration: 1ms;
|
|
469
|
+
animation-iteration-count: 1;
|
|
470
|
+
transition-delay: 0s;
|
|
471
|
+
transition-duration: 0s;
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
@keyframes fa-beat {
|
|
475
|
+
0%, 90% {
|
|
476
|
+
transform: scale(1);
|
|
477
|
+
}
|
|
478
|
+
45% {
|
|
479
|
+
transform: scale(var(--fa-beat-scale, 1.25));
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
@keyframes fa-bounce {
|
|
483
|
+
0% {
|
|
484
|
+
transform: scale(1, 1) translateY(0);
|
|
485
|
+
}
|
|
486
|
+
10% {
|
|
487
|
+
transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
|
|
488
|
+
}
|
|
489
|
+
30% {
|
|
490
|
+
transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
|
|
491
|
+
}
|
|
492
|
+
50% {
|
|
493
|
+
transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
|
|
494
|
+
}
|
|
495
|
+
57% {
|
|
496
|
+
transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
|
|
497
|
+
}
|
|
498
|
+
64% {
|
|
499
|
+
transform: scale(1, 1) translateY(0);
|
|
500
|
+
}
|
|
501
|
+
100% {
|
|
502
|
+
transform: scale(1, 1) translateY(0);
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
@keyframes fa-fade {
|
|
506
|
+
50% {
|
|
507
|
+
opacity: var(--fa-fade-opacity, 0.4);
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
@keyframes fa-beat-fade {
|
|
511
|
+
0%, 100% {
|
|
512
|
+
opacity: var(--fa-beat-fade-opacity, 0.4);
|
|
513
|
+
transform: scale(1);
|
|
514
|
+
}
|
|
515
|
+
50% {
|
|
516
|
+
opacity: 1;
|
|
517
|
+
transform: scale(var(--fa-beat-fade-scale, 1.125));
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
@keyframes fa-flip {
|
|
521
|
+
50% {
|
|
522
|
+
transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
@keyframes fa-shake {
|
|
526
|
+
0% {
|
|
527
|
+
transform: rotate(-15deg);
|
|
528
|
+
}
|
|
529
|
+
4% {
|
|
530
|
+
transform: rotate(15deg);
|
|
531
|
+
}
|
|
532
|
+
8%, 24% {
|
|
533
|
+
transform: rotate(-18deg);
|
|
534
|
+
}
|
|
535
|
+
12%, 28% {
|
|
536
|
+
transform: rotate(18deg);
|
|
537
|
+
}
|
|
538
|
+
16% {
|
|
539
|
+
transform: rotate(-22deg);
|
|
540
|
+
}
|
|
541
|
+
20% {
|
|
542
|
+
transform: rotate(22deg);
|
|
543
|
+
}
|
|
544
|
+
32% {
|
|
545
|
+
transform: rotate(-12deg);
|
|
546
|
+
}
|
|
547
|
+
36% {
|
|
548
|
+
transform: rotate(12deg);
|
|
549
|
+
}
|
|
550
|
+
40%, 100% {
|
|
551
|
+
transform: rotate(0deg);
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
@keyframes fa-spin {
|
|
555
|
+
0% {
|
|
556
|
+
transform: rotate(0deg);
|
|
557
|
+
}
|
|
558
|
+
100% {
|
|
559
|
+
transform: rotate(360deg);
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
.fa-rotate-90 {
|
|
563
|
+
transform: rotate(90deg);
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
.fa-rotate-180 {
|
|
567
|
+
transform: rotate(180deg);
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
.fa-rotate-270 {
|
|
571
|
+
transform: rotate(270deg);
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
.fa-flip-horizontal {
|
|
575
|
+
transform: scale(-1, 1);
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
.fa-flip-vertical {
|
|
579
|
+
transform: scale(1, -1);
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
.fa-flip-both,
|
|
583
|
+
.fa-flip-horizontal.fa-flip-vertical {
|
|
584
|
+
transform: scale(-1, -1);
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
.fa-rotate-by {
|
|
588
|
+
transform: rotate(var(--fa-rotate-angle, 0));
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
.fa-stack {
|
|
592
|
+
display: inline-block;
|
|
593
|
+
vertical-align: middle;
|
|
594
|
+
height: 2em;
|
|
595
|
+
position: relative;
|
|
596
|
+
width: 2.5em;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
.fa-stack-1x,
|
|
600
|
+
.fa-stack-2x {
|
|
601
|
+
bottom: 0;
|
|
602
|
+
left: 0;
|
|
603
|
+
margin: auto;
|
|
604
|
+
position: absolute;
|
|
605
|
+
right: 0;
|
|
606
|
+
top: 0;
|
|
607
|
+
z-index: var(--fa-stack-z-index, auto);
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
.svg-inline--fa.fa-stack-1x {
|
|
611
|
+
height: 1em;
|
|
612
|
+
width: 1.25em;
|
|
613
|
+
}
|
|
614
|
+
.svg-inline--fa.fa-stack-2x {
|
|
615
|
+
height: 2em;
|
|
616
|
+
width: 2.5em;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
.fa-inverse {
|
|
620
|
+
color: var(--fa-inverse, #fff);
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
.sr-only,
|
|
624
|
+
.fa-sr-only {
|
|
625
|
+
position: absolute;
|
|
626
|
+
width: 1px;
|
|
627
|
+
height: 1px;
|
|
628
|
+
padding: 0;
|
|
629
|
+
margin: -1px;
|
|
630
|
+
overflow: hidden;
|
|
631
|
+
clip: rect(0, 0, 0, 0);
|
|
632
|
+
white-space: nowrap;
|
|
633
|
+
border-width: 0;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
.sr-only-focusable:not(:focus),
|
|
637
|
+
.fa-sr-only-focusable:not(:focus) {
|
|
638
|
+
position: absolute;
|
|
639
|
+
width: 1px;
|
|
640
|
+
height: 1px;
|
|
641
|
+
padding: 0;
|
|
642
|
+
margin: -1px;
|
|
643
|
+
overflow: hidden;
|
|
644
|
+
clip: rect(0, 0, 0, 0);
|
|
645
|
+
white-space: nowrap;
|
|
646
|
+
border-width: 0;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
.svg-inline--fa .fa-primary {
|
|
650
|
+
fill: var(--fa-primary-color, currentColor);
|
|
651
|
+
opacity: var(--fa-primary-opacity, 1);
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
.svg-inline--fa .fa-secondary {
|
|
655
|
+
fill: var(--fa-secondary-color, currentColor);
|
|
656
|
+
opacity: var(--fa-secondary-opacity, 0.4);
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
.svg-inline--fa.fa-swap-opacity .fa-primary {
|
|
660
|
+
opacity: var(--fa-secondary-opacity, 0.4);
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
.svg-inline--fa.fa-swap-opacity .fa-secondary {
|
|
664
|
+
opacity: var(--fa-primary-opacity, 1);
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
.svg-inline--fa mask .fa-primary,
|
|
668
|
+
.svg-inline--fa mask .fa-secondary {
|
|
669
|
+
fill: black;
|
|
670
|
+
}`;function _b(){const e=hb,t=gb,n=se.cssPrefix,r=se.replacementClass;let o=n4;if(n!==e||r!==t){const i=new RegExp("\\.".concat(e,"\\-"),"g"),s=new RegExp("\\--".concat(e,"\\-"),"g"),a=new RegExp("\\.".concat(t),"g");o=o.replace(i,".".concat(n,"-")).replace(s,"--".concat(n,"-")).replace(a,".".concat(r))}return o}let Sb=!1;function cf(){se.autoAddCss&&!Sb&&(q5(_b()),Sb=!0)}var r4={mixout(){return{dom:{css:_b,insertCss:cf}}},hooks(){return{beforeDOMElementCreation(){cf()},beforeI2svg(){cf()}}}};const Bn=ar||{};Bn[Ln]||(Bn[Ln]={}),Bn[Ln].styles||(Bn[Ln].styles={}),Bn[Ln].hooks||(Bn[Ln].hooks={}),Bn[Ln].shims||(Bn[Ln].shims=[]);var hn=Bn[Ln];const Eb=[],Ib=function(){Be.removeEventListener("DOMContentLoaded",Ib),Ga=1,Eb.map(e=>e())};let Ga=!1;jn&&(Ga=(Be.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Be.readyState),Ga||Be.addEventListener("DOMContentLoaded",Ib));function o4(e){jn&&(Ga?setTimeout(e,0):Eb.push(e))}function Fi(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?Cb(e):"<".concat(t," ").concat(Q5(n),">").concat(r.map(Fi).join(""),"</").concat(t,">")}function kb(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var ff=function(t,n,r,o){var i=Object.keys(t),s=i.length,a=n,l,u,c;for(r===void 0?(l=1,c=t[i[0]]):(l=0,c=r);l<s;l++)u=i[l],c=a(c,t[u],u,t);return c};function i4(e){const t=[];let n=0;const r=e.length;for(;n<r;){const o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){const i=e.charCodeAt(n++);(i&64512)==56320?t.push(((o&1023)<<10)+(i&1023)+65536):(t.push(o),n--)}else t.push(o)}return t}function df(e){const t=i4(e);return t.length===1?t[0].toString(16):null}function s4(e,t){const n=e.length;let r=e.charCodeAt(t),o;return r>=55296&&r<=56319&&n>t+1&&(o=e.charCodeAt(t+1),o>=56320&&o<=57343)?(r-55296)*1024+o-56320+65536:r}function Ab(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t},{})}function pf(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,o=Ab(t);typeof hn.hooks.addPack=="function"&&!r?hn.hooks.addPack(e,Ab(t)):hn.styles[e]=ee(ee({},hn.styles[e]||{}),o),e==="fas"&&pf("fa",t)}const{styles:ji,shims:a4}=hn,Tb=Object.keys(of),l4=Tb.reduce((e,t)=>(e[t]=Object.keys(of[t]),e),{});let hf=null,Nb={},Pb={},Ob={},Rb={},Mb={};function u4(e){return~Y5.indexOf(e)}function c4(e,t){const n=t.split("-"),r=n[0],o=n.slice(1).join("-");return r===e&&o!==""&&!u4(o)?o:null}const Db=()=>{const e=r=>ff(ji,(o,i,s)=>(o[s]=ff(i,r,{}),o),{});Nb=e((r,o,i)=>(o[3]&&(r[o[3]]=i),o[2]&&o[2].filter(a=>typeof a=="number").forEach(a=>{r[a.toString(16)]=i}),r)),Pb=e((r,o,i)=>(r[i]=i,o[2]&&o[2].filter(a=>typeof a=="string").forEach(a=>{r[a]=i}),r)),Mb=e((r,o,i)=>{const s=o[2];return r[i]=i,s.forEach(a=>{r[a]=i}),r});const t="far"in ji||se.autoFetchSvg,n=ff(a4,(r,o)=>{const i=o[0];let s=o[1];const a=o[2];return s==="far"&&!t&&(s="fas"),typeof i=="string"&&(r.names[i]={prefix:s,iconName:a}),typeof i=="number"&&(r.unicodes[i.toString(16)]={prefix:s,iconName:a}),r},{names:{},unicodes:{}});Ob=n.names,Rb=n.unicodes,hf=$a(se.styleDefault,{family:se.familyDefault})};J5(e=>{hf=$a(e.styleDefault,{family:se.familyDefault})}),Db();function gf(e,t){return(Nb[e]||{})[t]}function f4(e,t){return(Pb[e]||{})[t]}function jr(e,t){return(Mb[e]||{})[t]}function Fb(e){return Ob[e]||{prefix:null,iconName:null}}function d4(e){const t=Rb[e],n=gf("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function ur(){return hf}const jb=()=>({prefix:null,iconName:null,rest:[]});function p4(e){let t=it;const n=Tb.reduce((r,o)=>(r[o]="".concat(se.cssPrefix,"-").concat(o),r),{});return cb.forEach(r=>{(e.includes(n[r])||e.some(o=>l4[r].includes(o)))&&(t=r)}),t}function $a(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=it}=t,r=G5[n][e];if(n===Ba&&!e)return"fad";const o=vb[n][e]||vb[n][r],i=e in hn.styles?e:null;return o||i||null}function h4(e){let t=[],n=null;return e.forEach(r=>{const o=c4(se.cssPrefix,r);o?n=o:r&&t.push(r)}),{iconName:n,rest:t}}function Lb(e){return e.sort().filter((t,n,r)=>r.indexOf(t)===n)}function Ha(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t;let r=null;const o=qc.concat(N5),i=Lb(e.filter(f=>o.includes(f))),s=Lb(e.filter(f=>!qc.includes(f))),a=i.filter(f=>(r=f,!ub.includes(f))),[l=null]=a,u=p4(i),c=ee(ee({},h4(s)),{},{prefix:$a(l,{family:u})});return ee(ee(ee({},c),b4({values:e,family:u,styles:ji,config:se,canonical:c,givenPrefix:r})),g4(n,r,c))}function g4(e,t,n){let{prefix:r,iconName:o}=n;if(e||!r||!o)return{prefix:r,iconName:o};const i=t==="fa"?Fb(o):{},s=jr(r,o);return o=i.iconName||s||o,r=i.prefix||r,r==="far"&&!ji.far&&ji.fas&&!se.autoFetchSvg&&(r="fas"),{prefix:r,iconName:o}}const m4=cb.filter(e=>e!==it||e!==Ba),y4=Object.keys(Jc).filter(e=>e!==it).map(e=>Object.keys(Jc[e])).flat();function b4(e){const{values:t,family:n,canonical:r,givenPrefix:o="",styles:i={},config:s={}}=e,a=n===Ba,l=t.includes("fa-duotone")||t.includes("fad"),u=s.familyDefault==="duotone",c=r.prefix==="fad"||r.prefix==="fa-duotone";if(!a&&(l||u||c)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&m4.includes(n)&&(Object.keys(i).find(d=>y4.includes(d))||s.autoFetchSvg)){const d=C5.get(n).defaultShortPrefixId;r.prefix=d,r.iconName=jr(r.prefix,r.iconName)||r.iconName}return(r.prefix==="fa"||o==="fa")&&(r.prefix=ur()||"fas"),r}let v4=class{constructor(){this.definitions={}}add(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o=n.reduce(this._pullDefinitions,{});Object.keys(o).forEach(i=>{this.definitions[i]=ee(ee({},this.definitions[i]||{}),o[i]),pf(i,o[i]);const s=of[it][i];s&&pf(s,o[i]),Db()})}reset(){this.definitions={}}_pullDefinitions(t,n){const r=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(r).map(o=>{const{prefix:i,iconName:s,icon:a}=r[o],l=a[2];t[i]||(t[i]={}),l.length>0&&l.forEach(u=>{typeof u=="string"&&(t[i][u]=a)}),t[i][s]=a}),t}},Bb=[],Eo={};const Io={},x4=Object.keys(Io);function w4(e,t){let{mixoutsTo:n}=t;return Bb=e,Eo={},Object.keys(Io).forEach(r=>{x4.indexOf(r)===-1&&delete Io[r]}),Bb.forEach(r=>{const o=r.mixout?r.mixout():{};if(Object.keys(o).forEach(i=>{typeof o[i]=="function"&&(n[i]=o[i]),typeof o[i]=="object"&&Object.keys(o[i]).forEach(s=>{n[i]||(n[i]={}),n[i][s]=o[i][s]})}),r.hooks){const i=r.hooks();Object.keys(i).forEach(s=>{Eo[s]||(Eo[s]=[]),Eo[s].push(i[s])})}r.provides&&r.provides(Io)}),n}function mf(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];return(Eo[e]||[]).forEach(s=>{t=s.apply(null,[t,...r])}),t}function Lr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(Eo[e]||[]).forEach(i=>{i.apply(null,n)})}function cr(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Io[e]?Io[e].apply(null,t):void 0}function yf(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||ur();if(t)return t=jr(n,t)||t,kb(zb.definitions,n,t)||kb(hn.styles,n,t)}const zb=new v4,kt={noAuto:()=>{se.autoReplaceSvg=!1,se.observeMutations=!1,Lr("noAuto")},config:se,dom:{i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return jn?(Lr("beforeI2svg",e),cr("pseudoElements2svg",e),cr("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;se.autoReplaceSvg===!1&&(se.autoReplaceSvg=!0),se.observeMutations=!0,o4(()=>{C4({autoReplaceSvgRoot:t}),Lr("watch",e)})}},parse:{icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:jr(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){const t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],n=$a(e[0]);return{prefix:n,iconName:jr(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(se.cssPrefix,"-"))>-1||e.match($5))){const t=Ha(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||ur(),iconName:jr(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=ur();return{prefix:t,iconName:jr(t,e)||e}}}},library:zb,findIconDefinition:yf,toHtml:Fi},C4=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=Be}=e;(Object.keys(hn.styles).length>0||se.autoFetchSvg)&&jn&&se.autoReplaceSvg&&kt.dom.i2svg({node:t})};function Wa(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>Fi(n))}}),Object.defineProperty(e,"node",{get:function(){if(!jn)return;const n=Be.createElement("div");return n.innerHTML=e.html,n.children}}),e}function _4(e){let{children:t,main:n,mask:r,attributes:o,styles:i,transform:s}=e;if(uf(s)&&n.found&&!r.found){const{width:a,height:l}=n,u={x:a/l/2,y:.5};o.style=Va(ee(ee({},i),{},{"transform-origin":"".concat(u.x+s.x/16,"em ").concat(u.y+s.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}function S4(e){let{prefix:t,iconName:n,children:r,attributes:o,symbol:i}=e;const s=i===!0?"".concat(t,"-").concat(se.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:ee(ee({},o),{},{id:s}),children:r}]}]}function bf(e){const{icons:{main:t,mask:n},prefix:r,iconName:o,transform:i,symbol:s,title:a,maskId:l,titleId:u,extra:c,watchable:f=!1}=e,{width:d,height:p}=n.found?n:t,g=k5.includes(r),h=[se.replacementClass,o?"".concat(se.cssPrefix,"-").concat(o):""].filter(S=>c.classes.indexOf(S)===-1).filter(S=>S!==""||!!S).concat(c.classes).join(" ");let y={children:[],attributes:ee(ee({},c.attributes),{},{"data-prefix":r,"data-icon":o,class:h,role:c.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(d," ").concat(p)})};const m=g&&!~c.classes.indexOf("fa-fw")?{width:"".concat(d/p*16*.0625,"em")}:{};f&&(y.attributes[Fr]=""),a&&(y.children.push({tag:"title",attributes:{id:y.attributes["aria-labelledby"]||"title-".concat(u||Di())},children:[a]}),delete y.attributes.title);const x=ee(ee({},y),{},{prefix:r,iconName:o,main:t,mask:n,maskId:l,transform:i,symbol:s,styles:ee(ee({},m),c.styles)}),{children:v,attributes:C}=n.found&&t.found?cr("generateAbstractMask",x)||{children:[],attributes:{}}:cr("generateAbstractIcon",x)||{children:[],attributes:{}};return x.children=v,x.attributes=C,s?S4(x):_4(x)}function Vb(e){const{content:t,width:n,height:r,transform:o,title:i,extra:s,watchable:a=!1}=e,l=ee(ee(ee({},s.attributes),i?{title:i}:{}),{},{class:s.classes.join(" ")});a&&(l[Fr]="");const u=ee({},s.styles);uf(o)&&(u.transform=t4({transform:o,startCentered:!0,width:n,height:r}),u["-webkit-transform"]=u.transform);const c=Va(u);c.length>0&&(l.style=c);const f=[];return f.push({tag:"span",attributes:l,children:[t]}),i&&f.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),f}function E4(e){const{content:t,title:n,extra:r}=e,o=ee(ee(ee({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),i=Va(r.styles);i.length>0&&(o.style=i);const s=[];return s.push({tag:"span",attributes:o,children:[t]}),n&&s.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),s}const{styles:vf}=hn;function xf(e){const t=e[0],n=e[1],[r]=e.slice(4);let o=null;return Array.isArray(r)?o={tag:"g",attributes:{class:"".concat(se.cssPrefix,"-").concat(af.GROUP)},children:[{tag:"path",attributes:{class:"".concat(se.cssPrefix,"-").concat(af.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(se.cssPrefix,"-").concat(af.PRIMARY),fill:"currentColor",d:r[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:o}}const I4={found:!1,width:512,height:512};function k4(e,t){!yb&&!se.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function wf(e,t){let n=t;return t==="fa"&&se.styleDefault!==null&&(t=ur()),new Promise((r,o)=>{if(n==="fa"){const i=Fb(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&vf[t]&&vf[t][e]){const i=vf[t][e];return r(xf(i))}k4(e,t),r(ee(ee({},I4),{},{icon:se.showMissingIcons&&e?cr("missingIconAbstract")||{}:{}}))})}const Gb=()=>{},Cf=se.measurePerformance&&La&&La.mark&&La.measure?La:{mark:Gb,measure:Gb},Li='FA "6.7.2"',A4=e=>(Cf.mark("".concat(Li," ").concat(e," begins")),()=>$b(e)),$b=e=>{Cf.mark("".concat(Li," ").concat(e," ends")),Cf.measure("".concat(Li," ").concat(e),"".concat(Li," ").concat(e," begins"),"".concat(Li," ").concat(e," ends"))};var _f={begin:A4,end:$b};const Xa=()=>{};function Hb(e){return typeof(e.getAttribute?e.getAttribute(Fr):null)=="string"}function T4(e){const t=e.getAttribute?e.getAttribute(ef):null,n=e.getAttribute?e.getAttribute(tf):null;return t&&n}function N4(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(se.replacementClass)}function P4(){return se.autoReplaceSvg===!0?Ya.replace:Ya[se.autoReplaceSvg]||Ya.replace}function O4(e){return Be.createElementNS("http://www.w3.org/2000/svg",e)}function R4(e){return Be.createElement(e)}function Wb(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?O4:R4}=t;if(typeof e=="string")return Be.createTextNode(e);const r=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(i){r.setAttribute(i,e.attributes[i])}),(e.children||[]).forEach(function(i){r.appendChild(Wb(i,{ceFn:n}))}),r}function M4(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const Ya={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(Wb(n),t)}),t.getAttribute(Fr)===null&&se.keepOriginalSource){let n=Be.createComment(M4(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~lf(t).indexOf(se.replacementClass))return Ya.replace(e);const r=new RegExp("".concat(se.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const i=n[0].attributes.class.split(" ").reduce((s,a)=>(a===se.replacementClass||a.match(r)?s.toSvg.push(a):s.toNode.push(a),s),{toNode:[],toSvg:[]});n[0].attributes.class=i.toSvg.join(" "),i.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",i.toNode.join(" "))}const o=n.map(i=>Fi(i)).join(`
|
|
671
|
+
`);t.setAttribute(Fr,""),t.innerHTML=o}};function Xb(e){e()}function Yb(e,t){const n=typeof t=="function"?t:Xa;if(e.length===0)n();else{let r=Xb;se.mutateApproach===z5&&(r=ar.requestAnimationFrame||Xb),r(()=>{const o=P4(),i=_f.begin("mutate");e.map(o),i(),n()})}}let Sf=!1;function Ub(){Sf=!0}function Ef(){Sf=!1}let Ua=null;function Zb(e){if(!sb||!se.observeMutations)return;const{treeCallback:t=Xa,nodeCallback:n=Xa,pseudoElementsCallback:r=Xa,observeMutationsRoot:o=Be}=e;Ua=new sb(i=>{if(Sf)return;const s=ur();So(i).forEach(a=>{if(a.type==="childList"&&a.addedNodes.length>0&&!Hb(a.addedNodes[0])&&(se.searchPseudoElements&&r(a.target),t(a.target)),a.type==="attributes"&&a.target.parentNode&&se.searchPseudoElements&&r(a.target.parentNode),a.type==="attributes"&&Hb(a.target)&&~X5.indexOf(a.attributeName))if(a.attributeName==="class"&&T4(a.target)){const{prefix:l,iconName:u}=Ha(lf(a.target));a.target.setAttribute(ef,l||s),u&&a.target.setAttribute(tf,u)}else N4(a.target)&&n(a.target)})}),jn&&Ua.observe(o,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function D4(){Ua&&Ua.disconnect()}function F4(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce((r,o)=>{const i=o.split(":"),s=i[0],a=i.slice(1);return s&&a.length>0&&(r[s]=a.join(":").trim()),r},{})),n}function j4(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"";let o=Ha(lf(e));return o.prefix||(o.prefix=ur()),t&&n&&(o.prefix=t,o.iconName=n),o.iconName&&o.prefix||(o.prefix&&r.length>0&&(o.iconName=f4(o.prefix,e.innerText)||gf(o.prefix,df(e.innerText))),!o.iconName&&se.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=e.firstChild.data)),o}function L4(e){const t=So(e.attributes).reduce((o,i)=>(o.name!=="class"&&o.name!=="style"&&(o[i.name]=i.value),o),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return se.autoA11y&&(n?t["aria-labelledby"]="".concat(se.replacementClass,"-title-").concat(r||Di()):(t["aria-hidden"]="true",t.focusable="false")),t}function B4(){return{iconName:null,title:null,titleId:null,prefix:null,transform:pn,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Jb(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:o}=j4(e),i=L4(e),s=mf("parseNodeAttributes",{},e);let a=t.styleParser?F4(e):[];return ee({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:pn,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:a,attributes:i}},s)}const{styles:z4}=hn;function qb(e){const t=se.autoReplaceSvg==="nest"?Jb(e,{styleParser:!1}):Jb(e);return~t.extra.classes.indexOf(xb)?cr("generateLayersText",e,t):cr("generateSvgReplacementMutation",e,t)}function V4(){return[...S5,...qc]}function Kb(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!jn)return Promise.resolve();const n=Be.documentElement.classList,r=c=>n.add("".concat(mb,"-").concat(c)),o=c=>n.remove("".concat(mb,"-").concat(c)),i=se.autoFetchSvg?V4():ub.concat(Object.keys(z4));i.includes("fa")||i.push("fa");const s=[".".concat(xb,":not([").concat(Fr,"])")].concat(i.map(c=>".".concat(c,":not([").concat(Fr,"])"))).join(", ");if(s.length===0)return Promise.resolve();let a=[];try{a=So(e.querySelectorAll(s))}catch{}if(a.length>0)r("pending"),o("complete");else return Promise.resolve();const l=_f.begin("onTree"),u=a.reduce((c,f)=>{try{const d=qb(f);d&&c.push(d)}catch(d){yb||d.name==="MissingIcon"&&console.error(d)}return c},[]);return new Promise((c,f)=>{Promise.all(u).then(d=>{Yb(d,()=>{r("active"),r("complete"),o("pending"),typeof t=="function"&&t(),l(),c()})}).catch(d=>{l(),f(d)})})}function G4(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;qb(e).then(n=>{n&&Yb([n],t)})}function $4(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=(t||{}).icon?t:yf(t||{});let{mask:o}=n;return o&&(o=(o||{}).icon?o:yf(o||{})),e(r,ee(ee({},n),{},{mask:o}))}}const H4=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=pn,symbol:r=!1,mask:o=null,maskId:i=null,title:s=null,titleId:a=null,classes:l=[],attributes:u={},styles:c={}}=t;if(!e)return;const{prefix:f,iconName:d,icon:p}=e;return Wa(ee({type:"icon"},e),()=>(Lr("beforeDOMElementCreation",{iconDefinition:e,params:t}),se.autoA11y&&(s?u["aria-labelledby"]="".concat(se.replacementClass,"-title-").concat(a||Di()):(u["aria-hidden"]="true",u.focusable="false")),bf({icons:{main:xf(p),mask:o?xf(o.icon):{found:!1,width:null,height:null,icon:{}}},prefix:f,iconName:d,transform:ee(ee({},pn),n),symbol:r,title:s,maskId:i,titleId:a,extra:{attributes:u,styles:c,classes:l}})))};var W4={mixout(){return{icon:$4(H4)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=Kb,e.nodeCallback=G4,e}}},provides(e){e.i2svg=function(t){const{node:n=Be,callback:r=()=>{}}=t;return Kb(n,r)},e.generateSvgReplacementMutation=function(t,n){const{iconName:r,title:o,titleId:i,prefix:s,transform:a,symbol:l,mask:u,maskId:c,extra:f}=n;return new Promise((d,p)=>{Promise.all([wf(r,s),u.iconName?wf(u.iconName,u.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(g=>{let[h,y]=g;d([t,bf({icons:{main:h,mask:y},prefix:s,iconName:r,transform:a,symbol:l,maskId:c,title:o,titleId:i,extra:f,watchable:!0})])}).catch(p)})},e.generateAbstractIcon=function(t){let{children:n,attributes:r,main:o,transform:i,styles:s}=t;const a=Va(s);a.length>0&&(r.style=a);let l;return uf(i)&&(l=cr("generateAbstractTransformGrouping",{main:o,transform:i,containerWidth:o.width,iconWidth:o.width})),n.push(l||o.icon),{children:n,attributes:r}}}},X4={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return Wa({type:"layer"},()=>{Lr("beforeDOMElementCreation",{assembler:e,params:t});let r=[];return e(o=>{Array.isArray(o)?o.map(i=>{r=r.concat(i.abstract)}):r=r.concat(o.abstract)}),[{tag:"span",attributes:{class:["".concat(se.cssPrefix,"-layers"),...n].join(" ")},children:r}]})}}}},Y4={mixout(){return{counter(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:n=null,classes:r=[],attributes:o={},styles:i={}}=t;return Wa({type:"counter",content:e},()=>(Lr("beforeDOMElementCreation",{content:e,params:t}),E4({content:e.toString(),title:n,extra:{attributes:o,styles:i,classes:["".concat(se.cssPrefix,"-layers-counter"),...r]}})))}}}},U4={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=pn,title:r=null,classes:o=[],attributes:i={},styles:s={}}=t;return Wa({type:"text",content:e},()=>(Lr("beforeDOMElementCreation",{content:e,params:t}),Vb({content:e,transform:ee(ee({},pn),n),title:r,extra:{attributes:i,styles:s,classes:["".concat(se.cssPrefix,"-layers-text"),...o]}})))}}},provides(e){e.generateLayersText=function(t,n){const{title:r,transform:o,extra:i}=n;let s=null,a=null;if(ab){const l=parseInt(getComputedStyle(t).fontSize,10),u=t.getBoundingClientRect();s=u.width/l,a=u.height/l}return se.autoA11y&&!r&&(i.attributes["aria-hidden"]="true"),Promise.resolve([t,Vb({content:t.innerHTML,width:s,height:a,transform:o,title:r,extra:i,watchable:!0})])}}};const Z4=new RegExp('"',"ug"),Qb=[1105920,1112319],ev=ee(ee(ee(ee({},{FontAwesome:{normal:"fas",400:"fas"}}),w5),L5),P5),If=Object.keys(ev).reduce((e,t)=>(e[t.toLowerCase()]=ev[t],e),{}),J4=Object.keys(If).reduce((e,t)=>{const n=If[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function q4(e){const t=e.replace(Z4,""),n=s4(t,0),r=n>=Qb[0]&&n<=Qb[1],o=t.length===2?t[0]===t[1]:!1;return{value:df(o?t[0]:t),isSecondary:r||o}}function K4(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),o=isNaN(r)?"normal":r;return(If[n]||{})[o]||J4[n]}function tv(e,t){const n="".concat(B5).concat(t.replace(":","-"));return new Promise((r,o)=>{if(e.getAttribute(n)!==null)return r();const s=So(e.children).filter(d=>d.getAttribute(Qc)===t)[0],a=ar.getComputedStyle(e,t),l=a.getPropertyValue("font-family"),u=l.match(H5),c=a.getPropertyValue("font-weight"),f=a.getPropertyValue("content");if(s&&!u)return e.removeChild(s),r();if(u&&f!=="none"&&f!==""){const d=a.getPropertyValue("content");let p=K4(l,c);const{value:g,isSecondary:h}=q4(d),y=u[0].startsWith("FontAwesome");let m=gf(p,g),x=m;if(y){const v=d4(g);v.iconName&&v.prefix&&(m=v.iconName,p=v.prefix)}if(m&&!h&&(!s||s.getAttribute(ef)!==p||s.getAttribute(tf)!==x)){e.setAttribute(n,x),s&&e.removeChild(s);const v=B4(),{extra:C}=v;C.attributes[Qc]=t,wf(m,p).then(S=>{const E=bf(ee(ee({},v),{},{icons:{main:S,mask:jb()},prefix:p,iconName:x,extra:C,watchable:!0})),I=Be.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(I,e.firstChild):e.appendChild(I),I.outerHTML=E.map(O=>Fi(O)).join(`
|
|
672
|
+
`),e.removeAttribute(n),r()}).catch(o)}else r()}else r()})}function Q4(e){return Promise.all([tv(e,"::before"),tv(e,"::after")])}function eD(e){return e.parentNode!==document.head&&!~V5.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Qc)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function nv(e){if(jn)return new Promise((t,n)=>{const r=So(e.querySelectorAll("*")).filter(eD).map(Q4),o=_f.begin("searchPseudoElements");Ub(),Promise.all(r).then(()=>{o(),Ef(),t()}).catch(()=>{o(),Ef(),n()})})}var tD={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=nv,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=Be}=t;se.searchPseudoElements&&nv(n)}}};let rv=!1;var nD={mixout(){return{dom:{unwatch(){Ub(),rv=!0}}}},hooks(){return{bootstrap(){Zb(mf("mutationObserverCallbacks",{}))},noAuto(){D4()},watch(e){const{observeMutationsRoot:t}=e;rv?Ef():Zb(mf("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const ov=e=>{let t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce((n,r)=>{const o=r.toLowerCase().split("-"),i=o[0];let s=o.slice(1).join("-");if(i&&s==="h")return n.flipX=!0,n;if(i&&s==="v")return n.flipY=!0,n;if(s=parseFloat(s),isNaN(s))return n;switch(i){case"grow":n.size=n.size+s;break;case"shrink":n.size=n.size-s;break;case"left":n.x=n.x-s;break;case"right":n.x=n.x+s;break;case"up":n.y=n.y-s;break;case"down":n.y=n.y+s;break;case"rotate":n.rotate=n.rotate+s;break}return n},t)};var rD={mixout(){return{parse:{transform:e=>ov(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=ov(n)),e}}},provides(e){e.generateAbstractTransformGrouping=function(t){let{main:n,transform:r,containerWidth:o,iconWidth:i}=t;const s={transform:"translate(".concat(o/2," 256)")},a="translate(".concat(r.x*32,", ").concat(r.y*32,") "),l="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),u="rotate(".concat(r.rotate," 0 0)"),c={transform:"".concat(a," ").concat(l," ").concat(u)},f={transform:"translate(".concat(i/2*-1," -256)")},d={outer:s,inner:c,path:f};return{tag:"g",attributes:ee({},d.outer),children:[{tag:"g",attributes:ee({},d.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:ee(ee({},n.icon.attributes),d.path)}]}]}}}};const kf={x:0,y:0,width:"100%",height:"100%"};function iv(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function oD(e){return e.tag==="g"?e.children:[e]}var iD={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?Ha(n.split(" ").map(o=>o.trim())):jb();return r.prefix||(r.prefix=ur()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides(e){e.generateAbstractMask=function(t){let{children:n,attributes:r,main:o,mask:i,maskId:s,transform:a}=t;const{width:l,icon:u}=o,{width:c,icon:f}=i,d=e4({transform:a,containerWidth:c,iconWidth:l}),p={tag:"rect",attributes:ee(ee({},kf),{},{fill:"white"})},g=u.children?{children:u.children.map(iv)}:{},h={tag:"g",attributes:ee({},d.inner),children:[iv(ee({tag:u.tag,attributes:ee(ee({},u.attributes),d.path)},g))]},y={tag:"g",attributes:ee({},d.outer),children:[h]},m="mask-".concat(s||Di()),x="clip-".concat(s||Di()),v={tag:"mask",attributes:ee(ee({},kf),{},{id:m,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[p,y]},C={tag:"defs",children:[{tag:"clipPath",attributes:{id:x},children:oD(f)},v]};return n.push(C,{tag:"rect",attributes:ee({fill:"currentColor","clip-path":"url(#".concat(x,")"),mask:"url(#".concat(m,")")},kf)}),{children:n,attributes:r}}}},sD={provides(e){let t=!1;ar.matchMedia&&(t=ar.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const n=[],r={fill:"currentColor"},o={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:ee(ee({},r),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});const i=ee(ee({},o),{},{attributeName:"opacity"}),s={tag:"circle",attributes:ee(ee({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||s.children.push({tag:"animate",attributes:ee(ee({},o),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:ee(ee({},i),{},{values:"1;0;1;1;0;1;"})}),n.push(s),n.push({tag:"path",attributes:ee(ee({},r),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:ee(ee({},i),{},{values:"1;0;0;0;0;1;"})}]}),t||n.push({tag:"path",attributes:ee(ee({},r),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:ee(ee({},i),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},aD={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return e.symbol=r,e}}}},lD=[r4,W4,X4,Y4,U4,tD,nD,rD,iD,sD,aD];w4(lD,{mixoutsTo:kt}),kt.noAuto;const uD=kt.config;kt.library,kt.dom;const Af=kt.parse;kt.findIconDefinition,kt.toHtml;const cD=kt.icon;kt.layer,kt.text,kt.counter;var Za={exports:{}},Ja={exports:{}},ke={};/** @license React v16.13.1
|
|
673
|
+
* react-is.production.min.js
|
|
674
|
+
*
|
|
675
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
676
|
+
*
|
|
677
|
+
* This source code is licensed under the MIT license found in the
|
|
678
|
+
* LICENSE file in the root directory of this source tree.
|
|
679
|
+
*/var sv;function fD(){if(sv)return ke;sv=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function v(S){if(typeof S=="object"&&S!==null){var E=S.$$typeof;switch(E){case t:switch(S=S.type,S){case l:case u:case r:case i:case o:case f:return S;default:switch(S=S&&S.$$typeof,S){case a:case c:case g:case p:case s:return S;default:return E}}case n:return E}}}function C(S){return v(S)===u}return ke.AsyncMode=l,ke.ConcurrentMode=u,ke.ContextConsumer=a,ke.ContextProvider=s,ke.Element=t,ke.ForwardRef=c,ke.Fragment=r,ke.Lazy=g,ke.Memo=p,ke.Portal=n,ke.Profiler=i,ke.StrictMode=o,ke.Suspense=f,ke.isAsyncMode=function(S){return C(S)||v(S)===l},ke.isConcurrentMode=C,ke.isContextConsumer=function(S){return v(S)===a},ke.isContextProvider=function(S){return v(S)===s},ke.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},ke.isForwardRef=function(S){return v(S)===c},ke.isFragment=function(S){return v(S)===r},ke.isLazy=function(S){return v(S)===g},ke.isMemo=function(S){return v(S)===p},ke.isPortal=function(S){return v(S)===n},ke.isProfiler=function(S){return v(S)===i},ke.isStrictMode=function(S){return v(S)===o},ke.isSuspense=function(S){return v(S)===f},ke.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===r||S===u||S===i||S===o||S===f||S===d||typeof S=="object"&&S!==null&&(S.$$typeof===g||S.$$typeof===p||S.$$typeof===s||S.$$typeof===a||S.$$typeof===c||S.$$typeof===y||S.$$typeof===m||S.$$typeof===x||S.$$typeof===h)},ke.typeOf=v,ke}var Ae={};/** @license React v16.13.1
|
|
680
|
+
* react-is.development.js
|
|
681
|
+
*
|
|
682
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
683
|
+
*
|
|
684
|
+
* This source code is licensed under the MIT license found in the
|
|
685
|
+
* LICENSE file in the root directory of this source tree.
|
|
686
|
+
*/var av;function dD(){return av||(av=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function v(Z){return typeof Z=="string"||typeof Z=="function"||Z===r||Z===u||Z===i||Z===o||Z===f||Z===d||typeof Z=="object"&&Z!==null&&(Z.$$typeof===g||Z.$$typeof===p||Z.$$typeof===s||Z.$$typeof===a||Z.$$typeof===c||Z.$$typeof===y||Z.$$typeof===m||Z.$$typeof===x||Z.$$typeof===h)}function C(Z){if(typeof Z=="object"&&Z!==null){var ce=Z.$$typeof;switch(ce){case t:var pe=Z.type;switch(pe){case l:case u:case r:case i:case o:case f:return pe;default:var Ie=pe&&pe.$$typeof;switch(Ie){case a:case c:case g:case p:case s:return Ie;default:return ce}}case n:return ce}}}var S=l,E=u,I=a,O=s,M=t,w=c,N=r,R=g,L=p,A=n,j=i,D=o,z=f,V=!1;function F(Z){return V||(V=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),_(Z)||C(Z)===l}function _(Z){return C(Z)===u}function G(Z){return C(Z)===a}function $(Z){return C(Z)===s}function P(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===t}function H(Z){return C(Z)===c}function J(Z){return C(Z)===r}function W(Z){return C(Z)===g}function X(Z){return C(Z)===p}function U(Z){return C(Z)===n}function Q(Z){return C(Z)===i}function ne(Z){return C(Z)===o}function oe(Z){return C(Z)===f}Ae.AsyncMode=S,Ae.ConcurrentMode=E,Ae.ContextConsumer=I,Ae.ContextProvider=O,Ae.Element=M,Ae.ForwardRef=w,Ae.Fragment=N,Ae.Lazy=R,Ae.Memo=L,Ae.Portal=A,Ae.Profiler=j,Ae.StrictMode=D,Ae.Suspense=z,Ae.isAsyncMode=F,Ae.isConcurrentMode=_,Ae.isContextConsumer=G,Ae.isContextProvider=$,Ae.isElement=P,Ae.isForwardRef=H,Ae.isFragment=J,Ae.isLazy=W,Ae.isMemo=X,Ae.isPortal=U,Ae.isProfiler=Q,Ae.isStrictMode=ne,Ae.isSuspense=oe,Ae.isValidElementType=v,Ae.typeOf=C}()),Ae}var lv;function Tf(){return lv||(lv=1,process.env.NODE_ENV==="production"?Ja.exports=fD():Ja.exports=dD()),Ja.exports}/*
|
|
687
|
+
object-assign
|
|
688
|
+
(c) Sindre Sorhus
|
|
689
|
+
@license MIT
|
|
690
|
+
*/var Nf,uv;function pD(){if(uv)return Nf;uv=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var s={},a=0;a<10;a++)s["_"+String.fromCharCode(a)]=a;var l=Object.getOwnPropertyNames(s).map(function(c){return s[c]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(c){u[c]=c}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Nf=o()?Object.assign:function(i,s){for(var a,l=r(i),u,c=1;c<arguments.length;c++){a=Object(arguments[c]);for(var f in a)t.call(a,f)&&(l[f]=a[f]);if(e){u=e(a);for(var d=0;d<u.length;d++)n.call(a,u[d])&&(l[u[d]]=a[u[d]])}}return l},Nf}var Pf,cv;function Of(){if(cv)return Pf;cv=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Pf=e,Pf}var Rf,fv;function dv(){return fv||(fv=1,Rf=Function.call.bind(Object.prototype.hasOwnProperty)),Rf}var Mf,pv;function hD(){if(pv)return Mf;pv=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Of(),n={},r=dv();e=function(i){var s="Warning: "+i;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function o(i,s,a,l,u){if(process.env.NODE_ENV!=="production"){for(var c in i)if(r(i,c)){var f;try{if(typeof i[c]!="function"){var d=Error((l||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}f=i[c](s,c,l,a,null,t)}catch(g){f=g}if(f&&!(f instanceof Error)&&e((l||"React class")+": type specification of "+a+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var p=u?u():"";e("Failed "+a+" type: "+f.message+(p??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Mf=o,Mf}var Df,hv;function gD(){if(hv)return Df;hv=1;var e=Tf(),t=pD(),n=Of(),r=dv(),o=hD(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(a){var l="Warning: "+a;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function s(){return null}return Df=function(a,l){var u=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function f(_){var G=_&&(u&&_[u]||_[c]);if(typeof G=="function")return G}var d="<<anonymous>>",p={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:x(),arrayOf:v,element:C(),elementType:S(),instanceOf:E,node:w(),objectOf:O,oneOf:I,oneOfType:M,shape:R,exact:L};function g(_,G){return _===G?_!==0||1/_===1/G:_!==_&&G!==G}function h(_,G){this.message=_,this.data=G&&typeof G=="object"?G:{},this.stack=""}h.prototype=Error.prototype;function y(_){if(process.env.NODE_ENV!=="production")var G={},$=0;function P(J,W,X,U,Q,ne,oe){if(U=U||d,ne=ne||X,oe!==n){if(l){var Z=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Z.name="Invariant Violation",Z}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ce=U+":"+X;!G[ce]&&$<3&&(i("You are manually calling a React.PropTypes validation function for the `"+ne+"` prop on `"+U+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),G[ce]=!0,$++)}}return W[X]==null?J?W[X]===null?new h("The "+Q+" `"+ne+"` is marked as required "+("in `"+U+"`, but its value is `null`.")):new h("The "+Q+" `"+ne+"` is marked as required in "+("`"+U+"`, but its value is `undefined`.")):null:_(W,X,U,Q,ne)}var H=P.bind(null,!1);return H.isRequired=P.bind(null,!0),H}function m(_){function G($,P,H,J,W,X){var U=$[P],Q=D(U);if(Q!==_){var ne=z(U);return new h("Invalid "+J+" `"+W+"` of type "+("`"+ne+"` supplied to `"+H+"`, expected ")+("`"+_+"`."),{expectedType:_})}return null}return y(G)}function x(){return y(s)}function v(_){function G($,P,H,J,W){if(typeof _!="function")return new h("Property `"+W+"` of component `"+H+"` has invalid PropType notation inside arrayOf.");var X=$[P];if(!Array.isArray(X)){var U=D(X);return new h("Invalid "+J+" `"+W+"` of type "+("`"+U+"` supplied to `"+H+"`, expected an array."))}for(var Q=0;Q<X.length;Q++){var ne=_(X,Q,H,J,W+"["+Q+"]",n);if(ne instanceof Error)return ne}return null}return y(G)}function C(){function _(G,$,P,H,J){var W=G[$];if(!a(W)){var X=D(W);return new h("Invalid "+H+" `"+J+"` of type "+("`"+X+"` supplied to `"+P+"`, expected a single ReactElement."))}return null}return y(_)}function S(){function _(G,$,P,H,J){var W=G[$];if(!e.isValidElementType(W)){var X=D(W);return new h("Invalid "+H+" `"+J+"` of type "+("`"+X+"` supplied to `"+P+"`, expected a single ReactElement type."))}return null}return y(_)}function E(_){function G($,P,H,J,W){if(!($[P]instanceof _)){var X=_.name||d,U=F($[P]);return new h("Invalid "+J+" `"+W+"` of type "+("`"+U+"` supplied to `"+H+"`, expected ")+("instance of `"+X+"`."))}return null}return y(G)}function I(_){if(!Array.isArray(_))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),s;function G($,P,H,J,W){for(var X=$[P],U=0;U<_.length;U++)if(g(X,_[U]))return null;var Q=JSON.stringify(_,function(oe,Z){var ce=z(Z);return ce==="symbol"?String(Z):Z});return new h("Invalid "+J+" `"+W+"` of value `"+String(X)+"` "+("supplied to `"+H+"`, expected one of "+Q+"."))}return y(G)}function O(_){function G($,P,H,J,W){if(typeof _!="function")return new h("Property `"+W+"` of component `"+H+"` has invalid PropType notation inside objectOf.");var X=$[P],U=D(X);if(U!=="object")return new h("Invalid "+J+" `"+W+"` of type "+("`"+U+"` supplied to `"+H+"`, expected an object."));for(var Q in X)if(r(X,Q)){var ne=_(X,Q,H,J,W+"."+Q,n);if(ne instanceof Error)return ne}return null}return y(G)}function M(_){if(!Array.isArray(_))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var G=0;G<_.length;G++){var $=_[G];if(typeof $!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+V($)+" at index "+G+"."),s}function P(H,J,W,X,U){for(var Q=[],ne=0;ne<_.length;ne++){var oe=_[ne],Z=oe(H,J,W,X,U,n);if(Z==null)return null;Z.data&&r(Z.data,"expectedType")&&Q.push(Z.data.expectedType)}var ce=Q.length>0?", expected one of type ["+Q.join(", ")+"]":"";return new h("Invalid "+X+" `"+U+"` supplied to "+("`"+W+"`"+ce+"."))}return y(P)}function w(){function _(G,$,P,H,J){return A(G[$])?null:new h("Invalid "+H+" `"+J+"` supplied to "+("`"+P+"`, expected a ReactNode."))}return y(_)}function N(_,G,$,P,H){return new h((_||"React class")+": "+G+" type `"+$+"."+P+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+H+"`.")}function R(_){function G($,P,H,J,W){var X=$[P],U=D(X);if(U!=="object")return new h("Invalid "+J+" `"+W+"` of type `"+U+"` "+("supplied to `"+H+"`, expected `object`."));for(var Q in _){var ne=_[Q];if(typeof ne!="function")return N(H,J,W,Q,z(ne));var oe=ne(X,Q,H,J,W+"."+Q,n);if(oe)return oe}return null}return y(G)}function L(_){function G($,P,H,J,W){var X=$[P],U=D(X);if(U!=="object")return new h("Invalid "+J+" `"+W+"` of type `"+U+"` "+("supplied to `"+H+"`, expected `object`."));var Q=t({},$[P],_);for(var ne in Q){var oe=_[ne];if(r(_,ne)&&typeof oe!="function")return N(H,J,W,ne,z(oe));if(!oe)return new h("Invalid "+J+" `"+W+"` key `"+ne+"` supplied to `"+H+"`.\nBad object: "+JSON.stringify($[P],null," ")+`
|
|
691
|
+
Valid keys: `+JSON.stringify(Object.keys(_),null," "));var Z=oe(X,ne,H,J,W+"."+ne,n);if(Z)return Z}return null}return y(G)}function A(_){switch(typeof _){case"number":case"string":case"undefined":return!0;case"boolean":return!_;case"object":if(Array.isArray(_))return _.every(A);if(_===null||a(_))return!0;var G=f(_);if(G){var $=G.call(_),P;if(G!==_.entries){for(;!(P=$.next()).done;)if(!A(P.value))return!1}else for(;!(P=$.next()).done;){var H=P.value;if(H&&!A(H[1]))return!1}}else return!1;return!0;default:return!1}}function j(_,G){return _==="symbol"?!0:G?G["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&G instanceof Symbol:!1}function D(_){var G=typeof _;return Array.isArray(_)?"array":_ instanceof RegExp?"object":j(G,_)?"symbol":G}function z(_){if(typeof _>"u"||_===null)return""+_;var G=D(_);if(G==="object"){if(_ instanceof Date)return"date";if(_ instanceof RegExp)return"regexp"}return G}function V(_){var G=z(_);switch(G){case"array":case"object":return"an "+G;case"boolean":case"date":case"regexp":return"a "+G;default:return G}}function F(_){return!_.constructor||!_.constructor.name?d:_.constructor.name}return p.checkPropTypes=o,p.resetWarningCache=o.resetWarningCache,p.PropTypes=p,p},Df}var Ff,gv;function mD(){if(gv)return Ff;gv=1;var e=Of();function t(){}function n(){}return n.resetWarningCache=t,Ff=function(){function r(s,a,l,u,c,f){if(f!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Ff}var mv;function yD(){if(mv)return Za.exports;if(mv=1,process.env.NODE_ENV!=="production"){var e=Tf(),t=!0;Za.exports=gD()(e.isElement,t)}else Za.exports=mD()();return Za.exports}var Ke=yD();const B=ks(Ke);function yv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function gn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yv(Object(n),!0).forEach(function(r){ko(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qa(e){"@babel/helpers - typeof";return qa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qa(e)}function ko(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bD(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function vD(e,t){if(e==null)return{};var n=bD(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jf(e){return xD(e)||wD(e)||CD(e)||_D()}function xD(e){if(Array.isArray(e))return Lf(e)}function wD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function CD(e,t){if(e){if(typeof e=="string")return Lf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Lf(e,t)}}function Lf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _D(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
692
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SD(e){var t,n=e.beat,r=e.fade,o=e.beatFade,i=e.bounce,s=e.shake,a=e.flash,l=e.spin,u=e.spinPulse,c=e.spinReverse,f=e.pulse,d=e.fixedWidth,p=e.inverse,g=e.border,h=e.listItem,y=e.flip,m=e.size,x=e.rotation,v=e.pull,C=(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":o,"fa-bounce":i,"fa-shake":s,"fa-flash":a,"fa-spin":l,"fa-spin-reverse":c,"fa-spin-pulse":u,"fa-pulse":f,"fa-fw":d,"fa-inverse":p,"fa-border":g,"fa-li":h,"fa-flip":y===!0,"fa-flip-horizontal":y==="horizontal"||y==="both","fa-flip-vertical":y==="vertical"||y==="both"},ko(t,"fa-".concat(m),typeof m<"u"&&m!==null),ko(t,"fa-rotate-".concat(x),typeof x<"u"&&x!==null&&x!==0),ko(t,"fa-pull-".concat(v),typeof v<"u"&&v!==null),ko(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(C).map(function(S){return C[S]?S:null}).filter(function(S){return S})}function ED(e){return e=e-0,e===e}function bv(e){return ED(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var ID=["style"];function kD(e){return e.charAt(0).toUpperCase()+e.slice(1)}function AD(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),o=bv(n.slice(0,r)),i=n.slice(r+1).trim();return o.startsWith("webkit")?t[kD(o)]=i:t[o]=i,t},{})}function vv(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(l){return vv(e,l)}),o=Object.keys(t.attributes||{}).reduce(function(l,u){var c=t.attributes[u];switch(u){case"class":l.attrs.className=c,delete t.attributes.class;break;case"style":l.attrs.style=AD(c);break;default:u.indexOf("aria-")===0||u.indexOf("data-")===0?l.attrs[u.toLowerCase()]=c:l.attrs[bv(u)]=c}return l},{attrs:{}}),i=n.style,s=i===void 0?{}:i,a=vD(n,ID);return o.attrs.style=gn(gn({},o.attrs.style),s),e.apply(void 0,[t.tag,gn(gn({},o.attrs),a)].concat(jf(r)))}var xv=!1;try{xv=process.env.NODE_ENV==="production"}catch{}function TD(){if(!xv&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function wv(e){if(e&&qa(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Af.icon)return Af.icon(e);if(e===null)return null;if(e&&qa(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function Bf(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?ko({},e,t):{}}var Cv={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1},zf=T.forwardRef(function(e,t){var n=gn(gn({},Cv),e),r=n.icon,o=n.mask,i=n.symbol,s=n.className,a=n.title,l=n.titleId,u=n.maskId,c=wv(r),f=Bf("classes",[].concat(jf(SD(n)),jf((s||"").split(" ")))),d=Bf("transform",typeof n.transform=="string"?Af.transform(n.transform):n.transform),p=Bf("mask",wv(o)),g=cD(c,gn(gn(gn(gn({},f),d),p),{},{symbol:i,title:a,titleId:l,maskId:u}));if(!g)return TD("Could not find icon",c),null;var h=g.abstract,y={ref:t};return Object.keys(n).forEach(function(m){Cv.hasOwnProperty(m)||(y[m]=n[m])}),ND(h[0],y)});zf.displayName="FontAwesomeIcon",zf.propTypes={beat:B.bool,border:B.bool,beatFade:B.bool,bounce:B.bool,className:B.string,fade:B.bool,flash:B.bool,mask:B.oneOfType([B.object,B.array,B.string]),maskId:B.string,fixedWidth:B.bool,inverse:B.bool,flip:B.oneOf([!0,!1,"horizontal","vertical","both"]),icon:B.oneOfType([B.object,B.array,B.string]),listItem:B.bool,pull:B.oneOf(["right","left"]),pulse:B.bool,rotation:B.oneOf([0,90,180,270]),shake:B.bool,size:B.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:B.bool,spinPulse:B.bool,spinReverse:B.bool,symbol:B.oneOfType([B.bool,B.string]),title:B.string,titleId:B.string,transform:B.oneOfType([B.string,B.object]),swapOpacity:B.bool};var ND=vv.bind(null,T.createElement);/*!
|
|
693
|
+
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
|
|
694
|
+
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
695
|
+
* Copyright 2024 Fonticons, Inc.
|
|
696
|
+
*/const PD={prefix:"fas",iconName:"down-left-and-up-right-to-center",icon:[512,512,["compress-alt"],"f422","M439 7c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8l-144 0c-13.3 0-24-10.7-24-24l0-144c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39L439 7zM72 272l144 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39L73 505c-9.4 9.4-24.6 9.4-33.9 0L7 473c-9.4-9.4-9.4-24.6 0-33.9l87-87L55 313c-6.9-6.9-8.9-17.2-5.2-26.2s12.5-14.8 22.2-14.8z"]},OD={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},RD={prefix:"fas",iconName:"compress",icon:[448,512,[],"f066","M160 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96zM32 320c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM352 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 320c-17.7 0-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0z"]},MD={prefix:"fas",iconName:"lock",icon:[448,512,[128274],"f023","M144 144l0 48 160 0 0-48c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192l0-48C80 64.5 144.5 0 224 0s144 64.5 144 144l0 48 16 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 256c0-35.3 28.7-64 64-64l16 0z"]},DD={prefix:"fas",iconName:"chevron-up",icon:[512,512,[],"f077","M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"]},FD={prefix:"fas",iconName:"circle-play",icon:[512,512,[61469,"play-circle"],"f144","M0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM188.3 147.1c-7.6 4.2-12.3 12.3-12.3 20.9l0 176c0 8.7 4.7 16.7 12.3 20.9s16.8 4.1 24.3-.5l144-88c7.1-4.4 11.5-12.1 11.5-20.5s-4.4-16.1-11.5-20.5l-144-88c-7.4-4.5-16.7-4.7-24.3-.5z"]},jD={prefix:"fas",iconName:"lock-open",icon:[576,512,[],"f3c1","M352 144c0-44.2 35.8-80 80-80s80 35.8 80 80l0 48c0 17.7 14.3 32 32 32s32-14.3 32-32l0-48C576 64.5 511.5 0 432 0S288 64.5 288 144l0 48L64 192c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-192c0-35.3-28.7-64-64-64l-32 0 0-48z"]},LD={prefix:"fas",iconName:"network-wired",icon:[640,512,[],"f6ff","M256 64l128 0 0 64-128 0 0-64zM240 0c-26.5 0-48 21.5-48 48l0 96c0 26.5 21.5 48 48 48l48 0 0 32L32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0 0 32-48 0c-26.5 0-48 21.5-48 48l0 96c0 26.5 21.5 48 48 48l160 0c26.5 0 48-21.5 48-48l0-96c0-26.5-21.5-48-48-48l-48 0 0-32 256 0 0 32-48 0c-26.5 0-48 21.5-48 48l0 96c0 26.5 21.5 48 48 48l160 0c26.5 0 48-21.5 48-48l0-96c0-26.5-21.5-48-48-48l-48 0 0-32 96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-256 0 0-32 48 0c26.5 0 48-21.5 48-48l0-96c0-26.5-21.5-48-48-48L240 0zM96 448l0-64 128 0 0 64L96 448zm320-64l128 0 0 64-128 0 0-64z"]},BD={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},zD={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},VD={prefix:"fas",iconName:"expand",icon:[448,512,[],"f065","M32 32C14.3 32 0 46.3 0 64l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 32zM64 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM448 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96z"]},GD={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},$D={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},HD={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},WD={prefix:"fas",iconName:"up-right-and-down-left-from-center",icon:[512,512,["expand-alt"],"f424","M344 0L488 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39-87 87c-9.4 9.4-24.6 9.4-33.9 0l-32-32c-9.4-9.4-9.4-24.6 0-33.9l87-87L327 41c-6.9-6.9-8.9-17.2-5.2-26.2S334.3 0 344 0zM168 512L24 512c-13.3 0-24-10.7-24-24L0 344c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39 87-87c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8z"]};uD.autoAddCss=!1;const pt=e=>{const{style:t,...n}=e;return b.jsx("span",{style:{marginLeft:"5px",...t},children:b.jsx(zf,{...n})})},_v=e=>b.jsx(pt,{...e,icon:OD}),Vf=e=>b.jsx(pt,{...e,icon:HD}),Sv=e=>b.jsx(pt,{...e,icon:$D}),Ev=e=>b.jsx(pt,{...e,icon:VD}),XD=e=>b.jsx(pt,{...e,icon:RD}),YD=e=>b.jsx(pt,{...e,icon:PD}),UD=e=>b.jsx(pt,{...e,icon:WD}),Iv=e=>b.jsx(pt,{...e,icon:zD}),Gf=e=>b.jsx(pt,{...e,icon:DD}),Bi=Gf,kv=e=>b.jsx(pt,{...e,icon:GD}),ZD=e=>b.jsx(pt,{...e,icon:jD}),JD=e=>b.jsx(pt,{...e,icon:MD}),qD=e=>b.jsx(pt,{...e,icon:LD}),KD=e=>b.jsx(pt,{...e,icon:FD}),QD=e=>b.jsx(pt,{...e,icon:BD}),Ao=({trigger:e,title:t,description:n,children:r,closebutton:o=!0,onOpenChange:i,buttons:s=[],open:a,setOpen:l,modal:u=!0})=>{const c=g=>{l&&l(g),i&&i(g)},d=k.useContext(xe).local_state(g=>g.funcnodescontainerRef),p=b.jsx(u5,{asChild:!0,children:b.jsxs("div",{className:"dialogconent funcnodescontainer",children:[t&&b.jsx(c5,{className:"dialogtitle",children:t}),b.jsx(f5,{className:"dialogdescription",children:n}),b.jsx("div",{className:"dialogchildren",children:r}),b.jsx("div",{style:{display:"flex",marginTop:25,justifyContent:"flex-end"},children:(s||[]).map((g,h)=>b.jsx(Qy,{asChild:!0,children:b.jsx("button",{className:"dialogsendbutton",onClick:g.onClick,children:g.text})},h))}),o&&b.jsx(Qy,{asChild:!0,children:b.jsx("button",{className:"dialogclosebutton","aria-label":"Close",children:b.jsx(kv,{})})})]})});return b.jsxs(i5,{open:a,onOpenChange:c,modal:u,children:[e&&b.jsx(s5,{asChild:!0,children:e}),b.jsxs(a5,{container:d,children:[b.jsx(l5,{className:"dialogoverlay funcnodescontainer"}),p]})]})};function $f(e){const t=e+"CollectionProvider",[n,r]=ir(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=h=>{const{scope:y,children:m}=h,x=T.useRef(null),v=T.useRef(new Map).current;return b.jsx(o,{scope:y,itemMap:v,collectionRef:x,children:m})};s.displayName=t;const a=e+"CollectionSlot",l=bo(a),u=T.forwardRef((h,y)=>{const{scope:m,children:x}=h,v=i(a,m),C=Ge(y,v.collectionRef);return b.jsx(l,{ref:C,children:x})});u.displayName=a;const c=e+"CollectionItemSlot",f="data-radix-collection-item",d=bo(c),p=T.forwardRef((h,y)=>{const{scope:m,children:x,...v}=h,C=T.useRef(null),S=Ge(y,C),E=i(c,m);return T.useEffect(()=>(E.itemMap.set(C,{ref:C,...v}),()=>void E.itemMap.delete(C))),b.jsx(d,{[f]:"",ref:S,children:x})});p.displayName=c;function g(h){const y=i(e+"CollectionConsumer",h);return T.useCallback(()=>{const x=y.collectionRef.current;if(!x)return[];const v=Array.from(x.querySelectorAll(`[${f}]`));return Array.from(y.itemMap.values()).sort((E,I)=>v.indexOf(E.ref.current)-v.indexOf(I.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:s,Slot:u,ItemSlot:p},g,r]}var e3=k.createContext(void 0);function Hf(e){const t=k.useContext(e3);return e||t||"ltr"}const t3=["top","right","bottom","left"],fr=Math.min,At=Math.max,Ka=Math.round,Qa=Math.floor,mn=e=>({x:e,y:e}),n3={left:"right",right:"left",bottom:"top",top:"bottom"},r3={start:"end",end:"start"};function Wf(e,t,n){return At(e,fr(t,n))}function zn(e,t){return typeof e=="function"?e(t):e}function Vn(e){return e.split("-")[0]}function To(e){return e.split("-")[1]}function Xf(e){return e==="x"?"y":"x"}function Yf(e){return e==="y"?"height":"width"}function dr(e){return["top","bottom"].includes(Vn(e))?"y":"x"}function Uf(e){return Xf(dr(e))}function o3(e,t,n){n===void 0&&(n=!1);const r=To(e),o=Uf(e),i=Yf(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=el(s)),[s,el(s)]}function i3(e){const t=el(e);return[Zf(e),t,Zf(t)]}function Zf(e){return e.replace(/start|end/g,t=>r3[t])}function s3(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function a3(e,t,n,r){const o=To(e);let i=s3(Vn(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Zf)))),i}function el(e){return e.replace(/left|right|bottom|top/g,t=>n3[t])}function l3(e){return{top:0,right:0,bottom:0,left:0,...e}}function Av(e){return typeof e!="number"?l3(e):{top:e,right:e,bottom:e,left:e}}function tl(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Tv(e,t,n){let{reference:r,floating:o}=e;const i=dr(t),s=Uf(t),a=Yf(s),l=Vn(t),u=i==="y",c=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,d=r[a]/2-o[a]/2;let p;switch(l){case"top":p={x:c,y:r.y-o.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-o.width,y:f};break;default:p={x:r.x,y:r.y}}switch(To(t)){case"start":p[s]-=d*(n&&u?-1:1);break;case"end":p[s]+=d*(n&&u?-1:1);break}return p}const u3=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=Tv(u,r,l),d=r,p={},g=0;for(let h=0;h<a.length;h++){const{name:y,fn:m}=a[h],{x,y:v,data:C,reset:S}=await m({x:c,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:p,rects:u,platform:s,elements:{reference:e,floating:t}});c=x??c,f=v??f,p={...p,[y]:{...p[y],...C}},S&&g<=50&&(g++,typeof S=="object"&&(S.placement&&(d=S.placement),S.rects&&(u=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:c,y:f}=Tv(u,d,l)),h=-1)}return{x:c,y:f,placement:d,strategy:o,middlewareData:p}};async function zi(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=zn(t,e),g=Av(p),y=a[d?f==="floating"?"reference":"floating":f],m=tl(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(y)))==null||n?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),x=f==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,v=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),C=await(i.isElement==null?void 0:i.isElement(v))?await(i.getScale==null?void 0:i.getScale(v))||{x:1,y:1}:{x:1,y:1},S=tl(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:v,strategy:l}):x);return{top:(m.top-S.top+g.top)/C.y,bottom:(S.bottom-m.bottom+g.bottom)/C.y,left:(m.left-S.left+g.left)/C.x,right:(S.right-m.right+g.right)/C.x}}const c3=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:u,padding:c=0}=zn(e,t)||{};if(u==null)return{};const f=Av(c),d={x:n,y:r},p=Uf(o),g=Yf(p),h=await s.getDimensions(u),y=p==="y",m=y?"top":"left",x=y?"bottom":"right",v=y?"clientHeight":"clientWidth",C=i.reference[g]+i.reference[p]-d[p]-i.floating[g],S=d[p]-i.reference[p],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let I=E?E[v]:0;(!I||!await(s.isElement==null?void 0:s.isElement(E)))&&(I=a.floating[v]||i.floating[g]);const O=C/2-S/2,M=I/2-h[g]/2-1,w=fr(f[m],M),N=fr(f[x],M),R=w,L=I-h[g]-N,A=I/2-h[g]/2+O,j=Wf(R,A,L),D=!l.arrow&&To(o)!=null&&A!==j&&i.reference[g]/2-(A<R?w:N)-h[g]/2<0,z=D?A<R?A-R:A-L:0;return{[p]:d[p]+z,data:{[p]:j,centerOffset:A-j-z,...D&&{alignmentOffset:z}},reset:D}}}),f3=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...y}=zn(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const m=Vn(o),x=dr(a),v=Vn(a)===a,C=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=d||(v||!h?[el(a)]:i3(a)),E=g!=="none";!d&&E&&S.push(...a3(a,h,g,C));const I=[a,...S],O=await zi(t,y),M=[];let w=((r=i.flip)==null?void 0:r.overflows)||[];if(c&&M.push(O[m]),f){const A=o3(o,s,C);M.push(O[A[0]],O[A[1]])}if(w=[...w,{placement:o,overflows:M}],!M.every(A=>A<=0)){var N,R;const A=(((N=i.flip)==null?void 0:N.index)||0)+1,j=I[A];if(j)return{data:{index:A,overflows:w},reset:{placement:j}};let D=(R=w.filter(z=>z.overflows[0]<=0).sort((z,V)=>z.overflows[1]-V.overflows[1])[0])==null?void 0:R.placement;if(!D)switch(p){case"bestFit":{var L;const z=(L=w.filter(V=>{if(E){const F=dr(V.placement);return F===x||F==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(F=>F>0).reduce((F,_)=>F+_,0)]).sort((V,F)=>V[1]-F[1])[0])==null?void 0:L[0];z&&(D=z);break}case"initialPlacement":D=a;break}if(o!==D)return{reset:{placement:D}}}return{}}}};function Nv(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Pv(e){return t3.some(t=>e[t]>=0)}const d3=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=zn(e,t);switch(r){case"referenceHidden":{const i=await zi(t,{...o,elementContext:"reference"}),s=Nv(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Pv(s)}}}case"escaped":{const i=await zi(t,{...o,altBoundary:!0}),s=Nv(i,n.floating);return{data:{escapedOffsets:s,escaped:Pv(s)}}}default:return{}}}}};async function p3(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Vn(n),a=To(n),l=dr(n)==="y",u=["left","top"].includes(s)?-1:1,c=i&&l?-1:1,f=zn(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof g=="number"&&(p=a==="end"?g*-1:g),l?{x:p*c,y:d*u}:{x:d*u,y:p*c}}const h3=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await p3(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},g3=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:y=>{let{x:m,y:x}=y;return{x:m,y:x}}},...l}=zn(e,t),u={x:n,y:r},c=await zi(t,l),f=dr(Vn(o)),d=Xf(f);let p=u[d],g=u[f];if(i){const y=d==="y"?"top":"left",m=d==="y"?"bottom":"right",x=p+c[y],v=p-c[m];p=Wf(x,p,v)}if(s){const y=f==="y"?"top":"left",m=f==="y"?"bottom":"right",x=g+c[y],v=g-c[m];g=Wf(x,g,v)}const h=a.fn({...t,[d]:p,[f]:g});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[d]:i,[f]:s}}}}}},m3=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=zn(e,t),c={x:n,y:r},f=dr(o),d=Xf(f);let p=c[d],g=c[f];const h=zn(a,t),y=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const v=d==="y"?"height":"width",C=i.reference[d]-i.floating[v]+y.mainAxis,S=i.reference[d]+i.reference[v]-y.mainAxis;p<C?p=C:p>S&&(p=S)}if(u){var m,x;const v=d==="y"?"width":"height",C=["top","left"].includes(Vn(o)),S=i.reference[f]-i.floating[v]+(C&&((m=s.offset)==null?void 0:m[f])||0)+(C?0:y.crossAxis),E=i.reference[f]+i.reference[v]+(C?0:((x=s.offset)==null?void 0:x[f])||0)-(C?y.crossAxis:0);g<S?g=S:g>E&&(g=E)}return{[d]:p,[f]:g}}}},y3=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...u}=zn(e,t),c=await zi(t,u),f=Vn(o),d=To(o),p=dr(o)==="y",{width:g,height:h}=i.floating;let y,m;f==="top"||f==="bottom"?(y=f,m=d===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(m=f,y=d==="end"?"top":"bottom");const x=h-c.top-c.bottom,v=g-c.left-c.right,C=fr(h-c[y],x),S=fr(g-c[m],v),E=!t.middlewareData.shift;let I=C,O=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(I=x),E&&!d){const w=At(c.left,0),N=At(c.right,0),R=At(c.top,0),L=At(c.bottom,0);p?O=g-2*(w!==0||N!==0?w+N:At(c.left,c.right)):I=h-2*(R!==0||L!==0?R+L:At(c.top,c.bottom))}await l({...t,availableWidth:O,availableHeight:I});const M=await s.getDimensions(a.floating);return g!==M.width||h!==M.height?{reset:{rects:!0}}:{}}}};function nl(){return typeof window<"u"}function No(e){return Ov(e)?(e.nodeName||"").toLowerCase():"#document"}function Tt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function yn(e){var t;return(t=(Ov(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ov(e){return nl()?e instanceof Node||e instanceof Tt(e).Node:!1}function Kt(e){return nl()?e instanceof Element||e instanceof Tt(e).Element:!1}function bn(e){return nl()?e instanceof HTMLElement||e instanceof Tt(e).HTMLElement:!1}function Rv(e){return!nl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Tt(e).ShadowRoot}function Vi(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Qt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function b3(e){return["table","td","th"].includes(No(e))}function rl(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Jf(e){const t=qf(),n=Kt(e)?Qt(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function v3(e){let t=pr(e);for(;bn(t)&&!Po(t);){if(Jf(t))return t;if(rl(t))return null;t=pr(t)}return null}function qf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Po(e){return["html","body","#document"].includes(No(e))}function Qt(e){return Tt(e).getComputedStyle(e)}function ol(e){return Kt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function pr(e){if(No(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Rv(e)&&e.host||yn(e);return Rv(t)?t.host:t}function Mv(e){const t=pr(e);return Po(t)?e.ownerDocument?e.ownerDocument.body:e.body:bn(t)&&Vi(t)?t:Mv(t)}function Gi(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Mv(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Tt(o);if(i){const a=Kf(s);return t.concat(s,s.visualViewport||[],Vi(o)?o:[],a&&n?Gi(a):[])}return t.concat(o,Gi(o,[],n))}function Kf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Dv(e){const t=Qt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=bn(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Ka(n)!==i||Ka(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Qf(e){return Kt(e)?e:e.contextElement}function Oo(e){const t=Qf(e);if(!bn(t))return mn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Dv(t);let s=(i?Ka(n.width):n.width)/r,a=(i?Ka(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const x3=mn(0);function Fv(e){const t=Tt(e);return!qf()||!t.visualViewport?x3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function w3(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Tt(e)?!1:t}function Br(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Qf(e);let s=mn(1);t&&(r?Kt(r)&&(s=Oo(r)):s=Oo(e));const a=w3(i,n,r)?Fv(i):mn(0);let l=(o.left+a.x)/s.x,u=(o.top+a.y)/s.y,c=o.width/s.x,f=o.height/s.y;if(i){const d=Tt(i),p=r&&Kt(r)?Tt(r):r;let g=d,h=Kf(g);for(;h&&r&&p!==g;){const y=Oo(h),m=h.getBoundingClientRect(),x=Qt(h),v=m.left+(h.clientLeft+parseFloat(x.paddingLeft))*y.x,C=m.top+(h.clientTop+parseFloat(x.paddingTop))*y.y;l*=y.x,u*=y.y,c*=y.x,f*=y.y,l+=v,u+=C,g=Tt(h),h=Kf(g)}}return tl({width:c,height:f,x:l,y:u})}function ed(e,t){const n=ol(e).scrollLeft;return t?t.left+n:Br(yn(e)).left+n}function jv(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:ed(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function C3(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=yn(r),a=t?rl(t.floating):!1;if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},u=mn(1);const c=mn(0),f=bn(r);if((f||!f&&!i)&&((No(r)!=="body"||Vi(s))&&(l=ol(r)),bn(r))){const p=Br(r);u=Oo(r),c.x=p.x+r.clientLeft,c.y=p.y+r.clientTop}const d=s&&!f&&!i?jv(s,l,!0):mn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+d.x,y:n.y*u.y-l.scrollTop*u.y+c.y+d.y}}function _3(e){return Array.from(e.getClientRects())}function S3(e){const t=yn(e),n=ol(e),r=e.ownerDocument.body,o=At(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=At(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+ed(e);const a=-n.scrollTop;return Qt(r).direction==="rtl"&&(s+=At(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function E3(e,t){const n=Tt(e),r=yn(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const u=qf();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}function I3(e,t){const n=Br(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=bn(e)?Oo(e):mn(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,u=r*i.y;return{width:s,height:a,x:l,y:u}}function Lv(e,t,n){let r;if(t==="viewport")r=E3(e,n);else if(t==="document")r=S3(yn(e));else if(Kt(t))r=I3(t,n);else{const o=Fv(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return tl(r)}function Bv(e,t){const n=pr(e);return n===t||!Kt(n)||Po(n)?!1:Qt(n).position==="fixed"||Bv(n,t)}function k3(e,t){const n=t.get(e);if(n)return n;let r=Gi(e,[],!1).filter(a=>Kt(a)&&No(a)!=="body"),o=null;const i=Qt(e).position==="fixed";let s=i?pr(e):e;for(;Kt(s)&&!Po(s);){const a=Qt(s),l=Jf(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Vi(s)&&!l&&Bv(e,s))?r=r.filter(c=>c!==s):o=a,s=pr(s)}return t.set(e,r),r}function A3(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?rl(t)?[]:k3(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((u,c)=>{const f=Lv(t,c,o);return u.top=At(f.top,u.top),u.right=fr(f.right,u.right),u.bottom=fr(f.bottom,u.bottom),u.left=At(f.left,u.left),u},Lv(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function T3(e){const{width:t,height:n}=Dv(e);return{width:t,height:n}}function N3(e,t,n){const r=bn(t),o=yn(t),i=n==="fixed",s=Br(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=mn(0);if(r||!r&&!i)if((No(t)!=="body"||Vi(o))&&(a=ol(t)),r){const d=Br(t,!0,i,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else o&&(l.x=ed(o));const u=o&&!r&&!i?jv(o,a):mn(0),c=s.left+a.scrollLeft-l.x-u.x,f=s.top+a.scrollTop-l.y-u.y;return{x:c,y:f,width:s.width,height:s.height}}function td(e){return Qt(e).position==="static"}function zv(e,t){if(!bn(e)||Qt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return yn(e)===n&&(n=n.ownerDocument.body),n}function Vv(e,t){const n=Tt(e);if(rl(e))return n;if(!bn(e)){let o=pr(e);for(;o&&!Po(o);){if(Kt(o)&&!td(o))return o;o=pr(o)}return n}let r=zv(e,t);for(;r&&b3(r)&&td(r);)r=zv(r,t);return r&&Po(r)&&td(r)&&!Jf(r)?n:r||v3(e)||n}const P3=async function(e){const t=this.getOffsetParent||Vv,n=this.getDimensions,r=await n(e.floating);return{reference:N3(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function O3(e){return Qt(e).direction==="rtl"}const R3={convertOffsetParentRelativeRectToViewportRelativeRect:C3,getDocumentElement:yn,getClippingRect:A3,getOffsetParent:Vv,getElementRects:P3,getClientRects:_3,getDimensions:T3,getScale:Oo,isElement:Kt,isRTL:O3};function Gv(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function M3(e,t){let n=null,r;const o=yn(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const u=e.getBoundingClientRect(),{left:c,top:f,width:d,height:p}=u;if(a||t(),!d||!p)return;const g=Qa(f),h=Qa(o.clientWidth-(c+d)),y=Qa(o.clientHeight-(f+p)),m=Qa(c),v={rootMargin:-g+"px "+-h+"px "+-y+"px "+-m+"px",threshold:At(0,fr(1,l))||1};let C=!0;function S(E){const I=E[0].intersectionRatio;if(I!==l){if(!C)return s();I?s(!1,I):r=setTimeout(()=>{s(!1,1e-7)},1e3)}I===1&&!Gv(u,e.getBoundingClientRect())&&s(),C=!1}try{n=new IntersectionObserver(S,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,v)}n.observe(e)}return s(!0),i}function $v(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Qf(e),c=o||i?[...u?Gi(u):[],...Gi(t)]:[];c.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const f=u&&a?M3(u,n):null;let d=-1,p=null;s&&(p=new ResizeObserver(m=>{let[x]=m;x&&x.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var v;(v=p)==null||v.observe(t)})),n()}),u&&!l&&p.observe(u),p.observe(t));let g,h=l?Br(e):null;l&&y();function y(){const m=Br(e);h&&!Gv(h,m)&&n(),h=m,g=requestAnimationFrame(y)}return n(),()=>{var m;c.forEach(x=>{o&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),f==null||f(),(m=p)==null||m.disconnect(),p=null,l&&cancelAnimationFrame(g)}}const D3=h3,F3=g3,j3=f3,L3=y3,B3=d3,Hv=c3,z3=m3,V3=(e,t,n)=>{const r=new Map,o={platform:R3,...n},i={...o.platform,_c:r};return u3(e,t,{...o,platform:i})};var il=typeof document<"u"?T.useLayoutEffect:T.useEffect;function sl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!sl(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!sl(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Wv(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Xv(e,t){const n=Wv(e);return Math.round(t*n)/n}function nd(e){const t=k.useRef(e);return il(()=>{t.current=e}),t}function G3(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[c,f]=k.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=k.useState(r);sl(d,r)||p(r);const[g,h]=k.useState(null),[y,m]=k.useState(null),x=k.useCallback(V=>{V!==E.current&&(E.current=V,h(V))},[]),v=k.useCallback(V=>{V!==I.current&&(I.current=V,m(V))},[]),C=i||g,S=s||y,E=k.useRef(null),I=k.useRef(null),O=k.useRef(c),M=l!=null,w=nd(l),N=nd(o),R=nd(u),L=k.useCallback(()=>{if(!E.current||!I.current)return;const V={placement:t,strategy:n,middleware:d};N.current&&(V.platform=N.current),V3(E.current,I.current,V).then(F=>{const _={...F,isPositioned:R.current!==!1};A.current&&!sl(O.current,_)&&(O.current=_,ku.flushSync(()=>{f(_)}))})},[d,t,n,N,R]);il(()=>{u===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,f(V=>({...V,isPositioned:!1})))},[u]);const A=k.useRef(!1);il(()=>(A.current=!0,()=>{A.current=!1}),[]),il(()=>{if(C&&(E.current=C),S&&(I.current=S),C&&S){if(w.current)return w.current(C,S,L);L()}},[C,S,L,w,M]);const j=k.useMemo(()=>({reference:E,floating:I,setReference:x,setFloating:v}),[x,v]),D=k.useMemo(()=>({reference:C,floating:S}),[C,S]),z=k.useMemo(()=>{const V={position:n,left:0,top:0};if(!D.floating)return V;const F=Xv(D.floating,c.x),_=Xv(D.floating,c.y);return a?{...V,transform:"translate("+F+"px, "+_+"px)",...Wv(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:F,top:_}},[n,a,D.floating,c.x,c.y]);return k.useMemo(()=>({...c,update:L,refs:j,elements:D,floatingStyles:z}),[c,L,j,D,z])}const $3=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Hv({element:r.current,padding:o}).fn(n):{}:r?Hv({element:r,padding:o}).fn(n):{}}}},H3=(e,t)=>({...D3(e),options:[e,t]}),W3=(e,t)=>({...F3(e),options:[e,t]}),X3=(e,t)=>({...z3(e),options:[e,t]}),Y3=(e,t)=>({...j3(e),options:[e,t]}),U3=(e,t)=>({...L3(e),options:[e,t]}),Z3=(e,t)=>({...B3(e),options:[e,t]}),J3=(e,t)=>({...$3(e),options:[e,t]});var q3="Arrow",Yv=k.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return b.jsx(Fe.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:b.jsx("polygon",{points:"0,0 30,0 15,10"})})});Yv.displayName=q3;var K3=Yv;function Uv(e){const[t,n]=k.useState(void 0);return Mr(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;s=u.inlineSize,a=u.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var rd="Popper",[Zv,al]=ir(rd),[Q3,Jv]=Zv(rd),qv=e=>{const{__scopePopper:t,children:n}=e,[r,o]=k.useState(null);return b.jsx(Q3,{scope:t,anchor:r,onAnchorChange:o,children:n})};qv.displayName=rd;var Kv="PopperAnchor",Qv=k.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Jv(Kv,n),s=k.useRef(null),a=Ge(t,s);return k.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:b.jsx(Fe.div,{...o,ref:a})});Qv.displayName=Kv;var od="PopperContent",[eF,tF]=Zv(od),ex=k.forwardRef((e,t)=>{var X,U,Q,ne,oe,Z;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:f="partial",hideWhenDetached:d=!1,updatePositionStrategy:p="optimized",onPlaced:g,...h}=e,y=Jv(od,n),[m,x]=k.useState(null),v=Ge(t,ce=>x(ce)),[C,S]=k.useState(null),E=Uv(C),I=(E==null?void 0:E.width)??0,O=(E==null?void 0:E.height)??0,M=r+(i!=="center"?"-"+i:""),w=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},N=Array.isArray(u)?u:[u],R=N.length>0,L={padding:w,boundary:N.filter(rF),altBoundary:R},{refs:A,floatingStyles:j,placement:D,isPositioned:z,middlewareData:V}=G3({strategy:"fixed",placement:M,whileElementsMounted:(...ce)=>$v(...ce,{animationFrame:p==="always"}),elements:{reference:y.anchor},middleware:[H3({mainAxis:o+O,alignmentAxis:s}),l&&W3({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?X3():void 0,...L}),l&&Y3({...L}),U3({...L,apply:({elements:ce,rects:pe,availableWidth:Ie,availableHeight:Ze})=>{const{width:ft,height:Dt}=pe.reference,Ft=ce.floating.style;Ft.setProperty("--radix-popper-available-width",`${Ie}px`),Ft.setProperty("--radix-popper-available-height",`${Ze}px`),Ft.setProperty("--radix-popper-anchor-width",`${ft}px`),Ft.setProperty("--radix-popper-anchor-height",`${Dt}px`)}}),C&&J3({element:C,padding:a}),oF({arrowWidth:I,arrowHeight:O}),d&&Z3({strategy:"referenceHidden",...L})]}),[F,_]=rx(D),G=Lt(g);Mr(()=>{z&&(G==null||G())},[z,G]);const $=(X=V.arrow)==null?void 0:X.x,P=(U=V.arrow)==null?void 0:U.y,H=((Q=V.arrow)==null?void 0:Q.centerOffset)!==0,[J,W]=k.useState();return Mr(()=>{m&&W(window.getComputedStyle(m).zIndex)},[m]),b.jsx("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...j,transform:z?j.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[(ne=V.transformOrigin)==null?void 0:ne.x,(oe=V.transformOrigin)==null?void 0:oe.y].join(" "),...((Z=V.hide)==null?void 0:Z.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:b.jsx(eF,{scope:n,placedSide:F,onArrowChange:S,arrowX:$,arrowY:P,shouldHideArrow:H,children:b.jsx(Fe.div,{"data-side":F,"data-align":_,...h,ref:v,style:{...h.style,animation:z?void 0:"none"}})})})});ex.displayName=od;var tx="PopperArrow",nF={top:"bottom",right:"left",bottom:"top",left:"right"},nx=k.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=tF(tx,r),s=nF[i.placedSide];return b.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:b.jsx(K3,{...o,ref:n,style:{...o.style,display:"block"}})})});nx.displayName=tx;function rF(e){return e!==null}var oF=e=>({name:"transformOrigin",options:e,fn(t){var y,m,x;const{placement:n,rects:r,middlewareData:o}=t,s=((y=o.arrow)==null?void 0:y.centerOffset)!==0,a=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[u,c]=rx(n),f={start:"0%",center:"50%",end:"100%"}[c],d=(((m=o.arrow)==null?void 0:m.x)??0)+a/2,p=(((x=o.arrow)==null?void 0:x.y)??0)+l/2;let g="",h="";return u==="bottom"?(g=s?f:`${d}px`,h=`${-l}px`):u==="top"?(g=s?f:`${d}px`,h=`${r.floating.height+l}px`):u==="right"?(g=`${-l}px`,h=s?f:`${p}px`):u==="left"&&(g=`${r.floating.width+l}px`,h=s?f:`${p}px`),{data:{x:g,y:h}}}});function rx(e){const[t,n="center"]=e.split("-");return[t,n]}var id=qv,sd=Qv,ox=ex,ix=nx,ad="rovingFocusGroup.onEntryFocus",iF={bubbles:!1,cancelable:!0},ll="RovingFocusGroup",[ld,sx,sF]=$f(ll),[aF,ax]=ir(ll,[sF]),[lF,uF]=aF(ll),lx=k.forwardRef((e,t)=>b.jsx(ld.Provider,{scope:e.__scopeRovingFocusGroup,children:b.jsx(ld.Slot,{scope:e.__scopeRovingFocusGroup,children:b.jsx(cF,{...e,ref:t})})}));lx.displayName=ll;var cF=k.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:c=!1,...f}=e,d=k.useRef(null),p=Ge(t,d),g=Hf(i),[h=null,y]=yo({prop:s,defaultProp:a,onChange:l}),[m,x]=k.useState(!1),v=Lt(u),C=sx(n),S=k.useRef(!1),[E,I]=k.useState(0);return k.useEffect(()=>{const O=d.current;if(O)return O.addEventListener(ad,v),()=>O.removeEventListener(ad,v)},[v]),b.jsx(lF,{scope:n,orientation:r,dir:g,loop:o,currentTabStopId:h,onItemFocus:k.useCallback(O=>y(O),[y]),onItemShiftTab:k.useCallback(()=>x(!0),[]),onFocusableItemAdd:k.useCallback(()=>I(O=>O+1),[]),onFocusableItemRemove:k.useCallback(()=>I(O=>O-1),[]),children:b.jsx(Fe.div,{tabIndex:m||E===0?-1:0,"data-orientation":r,...f,ref:p,style:{outline:"none",...e.style},onMouseDown:he(e.onMouseDown,()=>{S.current=!0}),onFocus:he(e.onFocus,O=>{const M=!S.current;if(O.target===O.currentTarget&&M&&!m){const w=new CustomEvent(ad,iF);if(O.currentTarget.dispatchEvent(w),!w.defaultPrevented){const N=C().filter(D=>D.focusable),R=N.find(D=>D.active),L=N.find(D=>D.id===h),j=[R,L,...N].filter(Boolean).map(D=>D.ref.current);fx(j,c)}}S.current=!1}),onBlur:he(e.onBlur,()=>x(!1))})})}),ux="RovingFocusGroupItem",cx=k.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...s}=e,a=Dn(),l=i||a,u=uF(ux,n),c=u.currentTabStopId===l,f=sx(n),{onFocusableItemAdd:d,onFocusableItemRemove:p}=u;return k.useEffect(()=>{if(r)return d(),()=>p()},[r,d,p]),b.jsx(ld.ItemSlot,{scope:n,id:l,focusable:r,active:o,children:b.jsx(Fe.span,{tabIndex:c?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:he(e.onMouseDown,g=>{r?u.onItemFocus(l):g.preventDefault()}),onFocus:he(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:he(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const h=pF(g,u.orientation,u.dir);if(h!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let m=f().filter(x=>x.focusable).map(x=>x.ref.current);if(h==="last")m.reverse();else if(h==="prev"||h==="next"){h==="prev"&&m.reverse();const x=m.indexOf(g.currentTarget);m=u.loop?hF(m,x+1):m.slice(x+1)}setTimeout(()=>fx(m))}})})})});cx.displayName=ux;var fF={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function dF(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function pF(e,t,n){const r=dF(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return fF[r]}function fx(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function hF(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var gF=lx,mF=cx,ud=["Enter"," "],yF=["ArrowDown","PageUp","Home"],dx=["ArrowUp","PageDown","End"],bF=[...yF,...dx],vF={ltr:[...ud,"ArrowRight"],rtl:[...ud,"ArrowLeft"]},xF={ltr:["ArrowLeft"],rtl:["ArrowRight"]},$i="Menu",[Hi,wF,CF]=$f($i),[zr,px]=ir($i,[CF,al,ax]),Wi=al(),hx=ax(),[gx,Vr]=zr($i),[_F,Xi]=zr($i),mx=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:s=!0}=e,a=Wi(t),[l,u]=k.useState(null),c=k.useRef(!1),f=Lt(i),d=Hf(o);return k.useEffect(()=>{const p=()=>{c.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>c.current=!1;return document.addEventListener("keydown",p,{capture:!0}),()=>{document.removeEventListener("keydown",p,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),b.jsx(id,{...a,children:b.jsx(gx,{scope:t,open:n,onOpenChange:f,content:l,onContentChange:u,children:b.jsx(_F,{scope:t,onClose:k.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:c,dir:d,modal:s,children:r})})})};mx.displayName=$i;var SF="MenuAnchor",cd=k.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Wi(n);return b.jsx(sd,{...o,...r,ref:t})});cd.displayName=SF;var EF="MenuPortal",[GJ,yx]=zr(EF,{forceMount:void 0}),Bt="MenuContent",[IF,fd]=zr(Bt),bx=k.forwardRef((e,t)=>{const n=yx(Bt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=Vr(Bt,e.__scopeMenu),s=Xi(Bt,e.__scopeMenu);return b.jsx(Hi.Provider,{scope:e.__scopeMenu,children:b.jsx(Fn,{present:r||i.open,children:b.jsx(Hi.Slot,{scope:e.__scopeMenu,children:s.modal?b.jsx(kF,{...o,ref:t}):b.jsx(AF,{...o,ref:t})})})})}),kF=k.forwardRef((e,t)=>{const n=Vr(Bt,e.__scopeMenu),r=k.useRef(null),o=Ge(t,r);return k.useEffect(()=>{const i=r.current;if(i)return Hc(i)},[]),b.jsx(dd,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:he(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),AF=k.forwardRef((e,t)=>{const n=Vr(Bt,e.__scopeMenu);return b.jsx(dd,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),TF=bo("MenuContent.ScrollLock"),dd=k.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:d,onDismiss:p,disableOutsideScroll:g,...h}=e,y=Vr(Bt,n),m=Xi(Bt,n),x=Wi(n),v=hx(n),C=wF(n),[S,E]=k.useState(null),I=k.useRef(null),O=Ge(t,I,y.onContentChange),M=k.useRef(0),w=k.useRef(""),N=k.useRef(0),R=k.useRef(null),L=k.useRef("right"),A=k.useRef(0),j=g?Ma:k.Fragment,D=g?{as:TF,allowPinchZoom:!0}:void 0,z=F=>{var X,U;const _=w.current+F,G=C().filter(Q=>!Q.disabled),$=document.activeElement,P=(X=G.find(Q=>Q.ref.current===$))==null?void 0:X.textValue,H=G.map(Q=>Q.textValue),J=VF(H,_,P),W=(U=G.find(Q=>Q.textValue===J))==null?void 0:U.ref.current;(function Q(ne){w.current=ne,window.clearTimeout(M.current),ne!==""&&(M.current=window.setTimeout(()=>Q(""),1e3))})(_),W&&setTimeout(()=>W.focus())};k.useEffect(()=>()=>window.clearTimeout(M.current),[]),Lc();const V=k.useCallback(F=>{var G,$;return L.current===((G=R.current)==null?void 0:G.side)&&$F(F,($=R.current)==null?void 0:$.area)},[]);return b.jsx(IF,{scope:n,searchRef:w,onItemEnter:k.useCallback(F=>{V(F)&&F.preventDefault()},[V]),onItemLeave:k.useCallback(F=>{var _;V(F)||((_=I.current)==null||_.focus(),E(null))},[V]),onTriggerLeave:k.useCallback(F=>{V(F)&&F.preventDefault()},[V]),pointerGraceTimerRef:N,onPointerGraceIntentChange:k.useCallback(F=>{R.current=F},[]),children:b.jsx(j,{...D,children:b.jsx(Ia,{asChild:!0,trapped:o,onMountAutoFocus:he(i,F=>{var _;F.preventDefault(),(_=I.current)==null||_.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:b.jsx(Ea,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:d,onDismiss:p,children:b.jsx(gF,{asChild:!0,...v,dir:m.dir,orientation:"vertical",loop:r,currentTabStopId:S,onCurrentTabStopIdChange:E,onEntryFocus:he(l,F=>{m.isUsingKeyboardRef.current||F.preventDefault()}),preventScrollOnEntryFocus:!0,children:b.jsx(ox,{role:"menu","aria-orientation":"vertical","data-state":Fx(y.open),"data-radix-menu-content":"",dir:m.dir,...x,...h,ref:O,style:{outline:"none",...h.style},onKeyDown:he(h.onKeyDown,F=>{const G=F.target.closest("[data-radix-menu-content]")===F.currentTarget,$=F.ctrlKey||F.altKey||F.metaKey,P=F.key.length===1;G&&(F.key==="Tab"&&F.preventDefault(),!$&&P&&z(F.key));const H=I.current;if(F.target!==H||!bF.includes(F.key))return;F.preventDefault();const W=C().filter(X=>!X.disabled).map(X=>X.ref.current);dx.includes(F.key)&&W.reverse(),BF(W)}),onBlur:he(e.onBlur,F=>{F.currentTarget.contains(F.target)||(window.clearTimeout(M.current),w.current="")}),onPointerMove:he(e.onPointerMove,Ui(F=>{const _=F.target,G=A.current!==F.clientX;if(F.currentTarget.contains(_)&&G){const $=F.clientX>A.current?"right":"left";L.current=$,A.current=F.clientX}}))})})})})})})});bx.displayName=Bt;var NF="MenuGroup",pd=k.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return b.jsx(Fe.div,{role:"group",...r,ref:t})});pd.displayName=NF;var PF="MenuLabel",vx=k.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return b.jsx(Fe.div,{...r,ref:t})});vx.displayName=PF;var ul="MenuItem",xx="menu.itemSelect",cl=k.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=k.useRef(null),s=Xi(ul,e.__scopeMenu),a=fd(ul,e.__scopeMenu),l=Ge(t,i),u=k.useRef(!1),c=()=>{const f=i.current;if(!n&&f){const d=new CustomEvent(xx,{bubbles:!0,cancelable:!0});f.addEventListener(xx,p=>r==null?void 0:r(p),{once:!0}),py(f,d),d.defaultPrevented?u.current=!1:s.onClose()}};return b.jsx(wx,{...o,ref:l,disabled:n,onClick:he(e.onClick,c),onPointerDown:f=>{var d;(d=e.onPointerDown)==null||d.call(e,f),u.current=!0},onPointerUp:he(e.onPointerUp,f=>{var d;u.current||(d=f.currentTarget)==null||d.click()}),onKeyDown:he(e.onKeyDown,f=>{const d=a.searchRef.current!=="";n||d&&f.key===" "||ud.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});cl.displayName=ul;var wx=k.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,s=fd(ul,n),a=hx(n),l=k.useRef(null),u=Ge(t,l),[c,f]=k.useState(!1),[d,p]=k.useState("");return k.useEffect(()=>{const g=l.current;g&&p((g.textContent??"").trim())},[i.children]),b.jsx(Hi.ItemSlot,{scope:n,disabled:r,textValue:o??d,children:b.jsx(mF,{asChild:!0,...a,focusable:!r,children:b.jsx(Fe.div,{role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...i,ref:u,onPointerMove:he(e.onPointerMove,Ui(g=>{r?s.onItemLeave(g):(s.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:he(e.onPointerLeave,Ui(g=>s.onItemLeave(g))),onFocus:he(e.onFocus,()=>f(!0)),onBlur:he(e.onBlur,()=>f(!1))})})})}),OF="MenuCheckboxItem",Cx=k.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return b.jsx(kx,{scope:e.__scopeMenu,checked:n,children:b.jsx(cl,{role:"menuitemcheckbox","aria-checked":fl(n)?"mixed":n,...o,ref:t,"data-state":md(n),onSelect:he(o.onSelect,()=>r==null?void 0:r(fl(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Cx.displayName=OF;var _x="MenuRadioGroup",[RF,MF]=zr(_x,{value:void 0,onValueChange:()=>{}}),Sx=k.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,i=Lt(r);return b.jsx(RF,{scope:e.__scopeMenu,value:n,onValueChange:i,children:b.jsx(pd,{...o,ref:t})})});Sx.displayName=_x;var Ex="MenuRadioItem",Ix=k.forwardRef((e,t)=>{const{value:n,...r}=e,o=MF(Ex,e.__scopeMenu),i=n===o.value;return b.jsx(kx,{scope:e.__scopeMenu,checked:i,children:b.jsx(cl,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":md(i),onSelect:he(r.onSelect,()=>{var s;return(s=o.onValueChange)==null?void 0:s.call(o,n)},{checkForDefaultPrevented:!1})})})});Ix.displayName=Ex;var hd="MenuItemIndicator",[kx,DF]=zr(hd,{checked:!1}),Ax=k.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=DF(hd,n);return b.jsx(Fn,{present:r||fl(i.checked)||i.checked===!0,children:b.jsx(Fe.span,{...o,ref:t,"data-state":md(i.checked)})})});Ax.displayName=hd;var FF="MenuSeparator",Tx=k.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return b.jsx(Fe.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Tx.displayName=FF;var jF="MenuArrow",Nx=k.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Wi(n);return b.jsx(ix,{...o,...r,ref:t})});Nx.displayName=jF;var gd="MenuSub",[LF,Px]=zr(gd),Ox=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,i=Vr(gd,t),s=Wi(t),[a,l]=k.useState(null),[u,c]=k.useState(null),f=Lt(o);return k.useEffect(()=>(i.open===!1&&f(!1),()=>f(!1)),[i.open,f]),b.jsx(id,{...s,children:b.jsx(gx,{scope:t,open:r,onOpenChange:f,content:u,onContentChange:c,children:b.jsx(LF,{scope:t,contentId:Dn(),triggerId:Dn(),trigger:a,onTriggerChange:l,children:n})})})};Ox.displayName=gd;var Yi="MenuSubTrigger",Rx=k.forwardRef((e,t)=>{const n=Vr(Yi,e.__scopeMenu),r=Xi(Yi,e.__scopeMenu),o=Px(Yi,e.__scopeMenu),i=fd(Yi,e.__scopeMenu),s=k.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:l}=i,u={__scopeMenu:e.__scopeMenu},c=k.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return k.useEffect(()=>c,[c]),k.useEffect(()=>{const f=a.current;return()=>{window.clearTimeout(f),l(null)}},[a,l]),b.jsx(cd,{asChild:!0,...u,children:b.jsx(wx,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Fx(n.open),...e,ref:Sa(t,o.onTriggerChange),onClick:f=>{var d;(d=e.onClick)==null||d.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:he(e.onPointerMove,Ui(f=>{i.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(i.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),c()},100))})),onPointerLeave:he(e.onPointerLeave,Ui(f=>{var p,g;c();const d=(p=n.content)==null?void 0:p.getBoundingClientRect();if(d){const h=(g=n.content)==null?void 0:g.dataset.side,y=h==="right",m=y?-5:5,x=d[y?"left":"right"],v=d[y?"right":"left"];i.onPointerGraceIntentChange({area:[{x:f.clientX+m,y:f.clientY},{x,y:d.top},{x:v,y:d.top},{x:v,y:d.bottom},{x,y:d.bottom}],side:h}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(f),f.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:he(e.onKeyDown,f=>{var p;const d=i.searchRef.current!=="";e.disabled||d&&f.key===" "||vF[r.dir].includes(f.key)&&(n.onOpenChange(!0),(p=n.content)==null||p.focus(),f.preventDefault())})})})});Rx.displayName=Yi;var Mx="MenuSubContent",Dx=k.forwardRef((e,t)=>{const n=yx(Bt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=Vr(Bt,e.__scopeMenu),s=Xi(Bt,e.__scopeMenu),a=Px(Mx,e.__scopeMenu),l=k.useRef(null),u=Ge(t,l);return b.jsx(Hi.Provider,{scope:e.__scopeMenu,children:b.jsx(Fn,{present:r||i.open,children:b.jsx(Hi.Slot,{scope:e.__scopeMenu,children:b.jsx(dd,{id:a.contentId,"aria-labelledby":a.triggerId,...o,ref:u,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:c=>{var f;s.isUsingKeyboardRef.current&&((f=l.current)==null||f.focus()),c.preventDefault()},onCloseAutoFocus:c=>c.preventDefault(),onFocusOutside:he(e.onFocusOutside,c=>{c.target!==a.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:he(e.onEscapeKeyDown,c=>{s.onClose(),c.preventDefault()}),onKeyDown:he(e.onKeyDown,c=>{var p;const f=c.currentTarget.contains(c.target),d=xF[s.dir].includes(c.key);f&&d&&(i.onOpenChange(!1),(p=a.trigger)==null||p.focus(),c.preventDefault())})})})})})});Dx.displayName=Mx;function Fx(e){return e?"open":"closed"}function fl(e){return e==="indeterminate"}function md(e){return fl(e)?"indeterminate":e?"checked":"unchecked"}function BF(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function zF(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function VF(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let s=zF(e,Math.max(i,0));o.length===1&&(s=s.filter(u=>u!==n));const l=s.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function GF(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const a=t[i].x,l=t[i].y,u=t[s].x,c=t[s].y;l>r!=c>r&&n<(u-a)*(r-l)/(c-l)+a&&(o=!o)}return o}function $F(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return GF(n,t)}function Ui(e){return t=>t.pointerType==="mouse"?e(t):void 0}var HF=mx,WF=cd,XF=bx,YF=pd,UF=vx,ZF=cl,JF=Cx,qF=Sx,KF=Ix,QF=Ax,ej=Tx,tj=Nx,nj=Ox,rj=Rx,oj=Dx,yd="DropdownMenu",[ij,$J]=ir(yd,[px]),ht=px(),[sj,jx]=ij(yd),Lx=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:s,modal:a=!0}=e,l=ht(t),u=k.useRef(null),[c=!1,f]=yo({prop:o,defaultProp:i,onChange:s});return b.jsx(sj,{scope:t,triggerId:Dn(),triggerRef:u,contentId:Dn(),open:c,onOpenChange:f,onOpenToggle:k.useCallback(()=>f(d=>!d),[f]),modal:a,children:b.jsx(HF,{...l,open:c,onOpenChange:f,dir:r,modal:a,children:n})})};Lx.displayName=yd;var Bx="DropdownMenuTrigger",zx=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=jx(Bx,n),s=ht(n);return b.jsx(WF,{asChild:!0,...s,children:b.jsx(Fe.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:Sa(t,i.triggerRef),onPointerDown:he(e.onPointerDown,a=>{!r&&a.button===0&&a.ctrlKey===!1&&(i.onOpenToggle(),i.open||a.preventDefault())}),onKeyDown:he(e.onKeyDown,a=>{r||(["Enter"," "].includes(a.key)&&i.onOpenToggle(),a.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});zx.displayName=Bx;var Vx="DropdownMenuContent",Gx=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=jx(Vx,n),i=ht(n),s=k.useRef(!1);return b.jsx(XF,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...r,ref:t,onCloseAutoFocus:he(e.onCloseAutoFocus,a=>{var l;s.current||(l=o.triggerRef.current)==null||l.focus(),s.current=!1,a.preventDefault()}),onInteractOutside:he(e.onInteractOutside,a=>{const l=a.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0,c=l.button===2||u;(!o.modal||c)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Gx.displayName=Vx;var aj="DropdownMenuGroup",$x=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return b.jsx(YF,{...o,...r,ref:t})});$x.displayName=aj;var lj="DropdownMenuLabel",uj=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return b.jsx(UF,{...o,...r,ref:t})});uj.displayName=lj;var cj="DropdownMenuItem",Hx=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return b.jsx(ZF,{...o,...r,ref:t})});Hx.displayName=cj;var fj="DropdownMenuCheckboxItem",dj=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return b.jsx(JF,{...o,...r,ref:t})});dj.displayName=fj;var pj="DropdownMenuRadioGroup",Wx=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return b.jsx(qF,{...o,...r,ref:t})});Wx.displayName=pj;var hj="DropdownMenuRadioItem",Xx=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return b.jsx(KF,{...o,...r,ref:t})});Xx.displayName=hj;var gj="DropdownMenuItemIndicator",mj=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return b.jsx(QF,{...o,...r,ref:t})});mj.displayName=gj;var yj="DropdownMenuSeparator",bj=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return b.jsx(ej,{...o,...r,ref:t})});bj.displayName=yj;var vj="DropdownMenuArrow",xj=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return b.jsx(tj,{...o,...r,ref:t})});xj.displayName=vj;var wj=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,s=ht(t),[a=!1,l]=yo({prop:r,defaultProp:i,onChange:o});return b.jsx(nj,{...s,open:a,onOpenChange:l,children:n})},Cj="DropdownMenuSubTrigger",Yx=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return b.jsx(rj,{...o,...r,ref:t})});Yx.displayName=Cj;var _j="DropdownMenuSubContent",Ux=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return b.jsx(oj,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Ux.displayName=_j;var Zx=Lx,Jx=zx,qx=Gx,Kx=$x,hr=Hx,Sj=Wx,Ej=Xx,Ij=wj,kj=Yx,Aj=Ux;const bd={xxs:0,xs:320,s:480,m:768,l:960,xl:1280,xxl:1920},Qx=k.createContext(void 0),Tj=k.forwardRef((e,t)=>{const{className:n,children:r,...o}=e,[i,s]=k.useState("m"),[a,l]=k.useState(0),[u,c]=k.useState(0),f=k.useRef(null);k.useImperativeHandle(t,()=>f.current,[]);const d=k.useCallback(p=>{const g=p.width,h=p.height;let y="xxs";Object.entries(bd).forEach(([m,x])=>{g>=x&&(y=m)}),s(m=>m!==y?y:m),l(g),c(h)},[]);return k.useEffect(()=>{const p=f.current;if(!p)return;const g=new ResizeObserver(h=>{for(let y of h)d(y.contentRect)});return g.observe(p),d(p.getBoundingClientRect()),()=>{g.disconnect()}},[]),b.jsx(Qx.Provider,{value:{wKey:i,w:a,h:u},children:b.jsx("div",{ref:f,className:`size-context w-${i} ${n||""}`.trim(),...o,children:r})})}),Nj=()=>{const e=k.useContext(Qx);if(!e)throw new Error("useSizeContext must be used within a SizeContextContainerContext");return e},Pj=(e,t)=>e==t?!1:e==""?!0:bd[e]<bd[t],Oj=e=>Pj(Nj().wKey,e),Ro=({direction:e,className:t="",children:n,wrap:r=!1,grow:o=!1,...i})=>{const s="float-container";let a="";typeof e=="string"?a=`direction-${e} `:typeof e=="object"&&e!==null&&Object.entries(e).forEach(([c,f])=>{c===""?a+=`direction-${f} `:a+=`${c}-direction-${f} `});let l="";typeof o=="boolean"?l=o?"grow ":"":typeof o=="object"&&o!==null&&Object.entries(o).forEach(([c,f])=>{c===""?l+=f?"grow ":"no-grow":l+=f?`${c}-grow `:`${c}-no-grow`}),a+=l,r&&(a+="flex-wrap "),a=a.trim();const u=`${s} ${a} ${t}`.trim();return b.jsx("div",{className:u,...i,children:n})},e1=({direction:e,expanded:t=!0,children:n,className:r,maxSize:o,expanderSize:i="40px",containerStyle:s,style:a,containerClassName:l,onExpandChange:u,...c})=>{const f={up:Gf,down:Iv,left:Sv,right:Vf}[e],d={up:Iv,down:Gf,left:Vf,right:Sv}[e],[p,g]=k.useState(t),h=O=>{p!==O&&(g(O),u&&u(O))},y=`${e} ${p?"expanded":"collapsed"}`,m=e==="right"||e==="left"?{width:p?o:i}:{height:p?o:i},x=e==="right"||e==="left"?{width:p?o:0}:{height:p?o:0},v=e==="right"||e==="left"?{width:i}:{height:i},C=b.jsx("div",{className:`expanding_container_content ${y} ${r||""}`.trim(),style:{...a,...x},...c,children:n}),S=b.jsx("div",{className:`expanding_container_expander ${y}`,onClick:()=>h(!p),style:v,children:p?b.jsx(d,{}):b.jsx(f,{})}),E=e==="right"||e==="down"?C:S,I=e==="left"||e==="up"?C:S;return b.jsxs("div",{className:`expanding_container ${y} ${l||""}`,style:{...s,...m},children:[E,I]})},Rj=({trigger:e,setOpen:t,open:n})=>{const[r,o]=T.useState(""),i=T.useContext(xe);return i.options.useWorkerManager?b.jsxs(Ao,{setOpen:t,open:n,trigger:e,title:"New Worker",description:"Create a new worker",children:[b.jsxs("div",{children:["Name:",b.jsx("br",{}),b.jsx("input",{className:"styledinput",onChange:s=>{o(s.currentTarget.value)},value:r})]}),b.jsx("div",{children:r&&b.jsx("div",{children:b.jsx("button",{className:"styledbtn",onClick:()=>{var s;(s=i.workermanager)==null||s.new_worker({name:r}),t(!1)},children:"Create"})})})]}):null},Mj=({trigger:e,setOpen:t,open:n})=>{var c,f;const r=T.useContext(xe),[o,i]=T.useState(!1),s=r.workers(),a=(c=r.worker)==null?void 0:c.uuid,l=(a?(f=s[a])==null?void 0:f.name:void 0)||a||"worker",u=async()=>{if(!r.worker)return;const d=await r.worker.export({withFiles:o});PR(d,l+".fnw","application/zip"),t(!1)};return b.jsx(Ao,{setOpen:t,open:n,trigger:e,title:"Export Worker",description:"Export the worker as a .fnw file",children:b.jsxs("div",{children:[b.jsxs("div",{children:[b.jsx("input",{type:"checkbox",className:"styledcheckbox",checked:o,onChange:d=>{i(d.currentTarget.checked)}}),"Include Files"]}),b.jsx("button",{className:"styledbtn",onClick:u,children:"Export"})]})})},Dj=()=>{const t=T.useContext(xe).progress_state();return b.jsxs("div",{className:"statusbar",children:[b.jsx("span",{className:"statusbar-progressbar",style:{width:Math.min(100,100*t.progress)+"%"}}),b.jsx("span",{className:"statusbar-message",children:t.message})]})},Fj=()=>{var p;const e=T.useContext(xe),t=e.workers(),[n,r]=T.useState(!1),[o,i]=T.useState(!1),s=g=>{g!=="__select__"&&e.workers&&e.workermanager&&t[g]&&(!t[g].active&&!window.confirm("this is an inactive worker, selecting it will start it, continue?")||e.workermanager.set_active(g))},a=async()=>{if(!e.worker||!window.confirm("Updateing the worker might replace the current nodespace, continue?"))return;const h=await MR(".fnw");e.worker.update_from_export(h)},l=e.options.useWorkerManager&&e.workermanager&&e.workermanager.open||yc,u=l&&Object.keys(t).length>0,c=e.worker&&e.worker.is_open,f=c&&l;return l||c?b.jsxs(b.Fragment,{children:[b.jsxs(Zx,{children:[b.jsx(Jx,{asChild:!0,children:b.jsx("button",{className:"styledbtn",children:b.jsxs(Ro,{direction:"row",children:["Worker ",b.jsx(_v,{})]})})}),b.jsx(qx,{className:"headermenucontent funcnodescontainer",children:b.jsxs(Kx,{children:[u&&b.jsxs(Ij,{children:[b.jsx(kj,{className:"headermenuitem submenuitem",children:b.jsxs(Ro,{direction:"row",children:["Select",b.jsx(Vf,{})]})}),b.jsx(Aj,{className:"headermenucontent funcnodescontainer",sideOffset:2,alignOffset:-5,children:b.jsx(Sj,{value:(p=e.worker)==null?void 0:p.uuid,onValueChange:g=>{s(g)},children:Object.keys(t).sort((g,h)=>{if(t[g].active&&!t[h].active)return-1;if(!t[g].active&&t[h].active)return 1;const y=t[g].name||g,m=t[h].name||h;return y.localeCompare(m)}).map(g=>{var h,y,m;return b.jsx(Ej,{className:"headermenuitem workerselectoption"+((h=t[g])!=null&&h.active?" active":" inactive")+" headermenuitem",value:g,disabled:g===((y=e.worker)==null?void 0:y.uuid),children:((m=t[g])==null?void 0:m.name)||g},g)})})})]}),c&&b.jsxs(b.Fragment,{children:[f&&b.jsx(hr,{className:"headermenuitem",onClick:()=>{var g;if(e.worker){if(!e.workermanager)return e.logger.error("no workermanager");(g=e.workermanager)==null||g.restart_worker(e.worker.uuid)}},children:"Restart"}),b.jsx(hr,{className:"headermenuitem",onClick:()=>{e.worker&&e.worker.stop()},children:"Stop"}),b.jsx(hr,{className:"headermenuitem",onClick:()=>i(!0),children:"Export"}),b.jsx(hr,{className:"headermenuitem",onClick:a,children:"Update"})]}),l&&b.jsx(b.Fragment,{children:b.jsx(hr,{className:"headermenuitem",onClick:()=>r(!0),children:"New"})})]})})]}),b.jsx(Rj,{open:n,setOpen:r}),b.jsx(Mj,{open:o,setOpen:i})]}):null},jj=()=>{const e=T.useContext(xe),t=()=>{var i;window.confirm("Are you sure you want to start a new flow?")&&((i=e.worker)==null||i.clear())},n=async()=>{var l;const o=await((l=e.worker)==null?void 0:l.save());if(!o)return;const i=new Blob([JSON.stringify(o)],{type:"application/json"}),s=URL.createObjectURL(i),a=document.createElement("a");a.href=s,a.download="flow.json",a.click(),URL.revokeObjectURL(s),a.remove()},r=async()=>{const o=document.createElement("input");o.type="file",o.accept=".json",o.onchange=async i=>{var l;const s=(l=i.target.files)==null?void 0:l[0];if(!s)return;const a=new FileReader;a.onload=async u=>{var d,p;const c=(d=u.target)==null?void 0:d.result;if(!c)return;const f=JSON.parse(c);await((p=e.worker)==null?void 0:p.load(f))},a.readAsText(s)},o.click()};return b.jsx(b.Fragment,{children:b.jsxs(Zx,{children:[b.jsx(Jx,{asChild:!0,children:b.jsx("button",{className:"styledbtn",children:b.jsxs(Ro,{direction:"row",children:["Nodespace ",b.jsx(_v,{})]})})}),b.jsx(qx,{className:"headermenucontent funcnodescontainer",children:b.jsxs(Kx,{children:[b.jsx(hr,{className:"headermenuitem",onClick:t,children:"New"}),b.jsx(hr,{className:"headermenuitem",onClick:n,children:"Save"}),b.jsx(hr,{className:"headermenuitem",onClick:r,children:"Load"})]})})]})})},Lj=({...e})=>{const t=T.useContext(xe),n=t.workerstate();return Object.keys(e).length>0&&t.logger.debug("headerprops",e),b.jsxs(Ro,{className:"funcnodesreactflowheader",direction:"row",wrap:!0,children:[b.jsx(Ro,{className:"headerelement m-w-6",grow:{"":!0,m:!1},children:b.jsx(Dj,{})}),(e.showmenu||yc)&&b.jsxs(Ro,{direction:"row",wrap:!0,children:[b.jsx("div",{className:"headerelement",children:b.jsx(Fj,{})}),(t.worker&&n.is_open||yc)&&b.jsx("div",{className:"headerelement",children:b.jsx(jj,{})})]})]})};function HJ(){}function WJ(){}function Bj(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const zj=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Vj=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Gj={};function t1(e,t){return(Gj.jsx?Vj:zj).test(e)}const $j=/[ \t\n\f\r]/g;function Hj(e){return typeof e=="object"?e.type==="text"?n1(e.value):!1:n1(e)}function n1(e){return e.replace($j,"")===""}class Zi{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Zi.prototype.normal={},Zi.prototype.property={},Zi.prototype.space=void 0;function r1(e,t){const n={},r={};for(const o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new Zi(n,r,t)}function vd(e){return e.toLowerCase()}class xt{constructor(t,n){this.attribute=n,this.property=t}}xt.prototype.attribute="",xt.prototype.booleanish=!1,xt.prototype.boolean=!1,xt.prototype.commaOrSpaceSeparated=!1,xt.prototype.commaSeparated=!1,xt.prototype.defined=!1,xt.prototype.mustUseProperty=!1,xt.prototype.number=!1,xt.prototype.overloadedBoolean=!1,xt.prototype.property="",xt.prototype.spaceSeparated=!1,xt.prototype.space=void 0;let Wj=0;const be=Gr(),Qe=Gr(),o1=Gr(),te=Gr(),je=Gr(),Mo=Gr(),Nt=Gr();function Gr(){return 2**++Wj}const xd=Object.freeze(Object.defineProperty({__proto__:null,boolean:be,booleanish:Qe,commaOrSpaceSeparated:Nt,commaSeparated:Mo,number:te,overloadedBoolean:o1,spaceSeparated:je},Symbol.toStringTag,{value:"Module"})),wd=Object.keys(xd);class Cd extends xt{constructor(t,n,r,o){let i=-1;if(super(t,n),i1(this,"space",o),typeof r=="number")for(;++i<wd.length;){const s=wd[i];i1(this,wd[i],(r&xd[s])===xd[s])}}}Cd.prototype.defined=!0;function i1(e,t,n){n&&(e[t]=n)}function Do(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const i=new Cd(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[vd(r)]=r,n[vd(i.attribute)]=r}return new Zi(t,n,e.space)}const s1=Do({properties:{ariaActiveDescendant:null,ariaAtomic:Qe,ariaAutoComplete:null,ariaBusy:Qe,ariaChecked:Qe,ariaColCount:te,ariaColIndex:te,ariaColSpan:te,ariaControls:je,ariaCurrent:null,ariaDescribedBy:je,ariaDetails:null,ariaDisabled:Qe,ariaDropEffect:je,ariaErrorMessage:null,ariaExpanded:Qe,ariaFlowTo:je,ariaGrabbed:Qe,ariaHasPopup:null,ariaHidden:Qe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:je,ariaLevel:te,ariaLive:null,ariaModal:Qe,ariaMultiLine:Qe,ariaMultiSelectable:Qe,ariaOrientation:null,ariaOwns:je,ariaPlaceholder:null,ariaPosInSet:te,ariaPressed:Qe,ariaReadOnly:Qe,ariaRelevant:null,ariaRequired:Qe,ariaRoleDescription:je,ariaRowCount:te,ariaRowIndex:te,ariaRowSpan:te,ariaSelected:Qe,ariaSetSize:te,ariaSort:null,ariaValueMax:te,ariaValueMin:te,ariaValueNow:te,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function a1(e,t){return t in e?e[t]:t}function l1(e,t){return a1(e,t.toLowerCase())}const Xj=Do({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Mo,acceptCharset:je,accessKey:je,action:null,allow:null,allowFullScreen:be,allowPaymentRequest:be,allowUserMedia:be,alt:null,as:null,async:be,autoCapitalize:null,autoComplete:je,autoFocus:be,autoPlay:be,blocking:je,capture:null,charSet:null,checked:be,cite:null,className:je,cols:te,colSpan:null,content:null,contentEditable:Qe,controls:be,controlsList:je,coords:te|Mo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:be,defer:be,dir:null,dirName:null,disabled:be,download:o1,draggable:Qe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:be,formTarget:null,headers:je,height:te,hidden:be,high:te,href:null,hrefLang:null,htmlFor:je,httpEquiv:je,id:null,imageSizes:null,imageSrcSet:null,inert:be,inputMode:null,integrity:null,is:null,isMap:be,itemId:null,itemProp:je,itemRef:je,itemScope:be,itemType:je,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:be,low:te,manifest:null,max:null,maxLength:te,media:null,method:null,min:null,minLength:te,multiple:be,muted:be,name:null,nonce:null,noModule:be,noValidate:be,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:be,optimum:te,pattern:null,ping:je,placeholder:null,playsInline:be,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:be,referrerPolicy:null,rel:je,required:be,reversed:be,rows:te,rowSpan:te,sandbox:je,scope:null,scoped:be,seamless:be,selected:be,shadowRootClonable:be,shadowRootDelegatesFocus:be,shadowRootMode:null,shape:null,size:te,sizes:null,slot:null,span:te,spellCheck:Qe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:te,step:null,style:null,tabIndex:te,target:null,title:null,translate:null,type:null,typeMustMatch:be,useMap:null,value:Qe,width:te,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:je,axis:null,background:null,bgColor:null,border:te,borderColor:null,bottomMargin:te,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:be,declare:be,event:null,face:null,frame:null,frameBorder:null,hSpace:te,leftMargin:te,link:null,longDesc:null,lowSrc:null,marginHeight:te,marginWidth:te,noResize:be,noHref:be,noShade:be,noWrap:be,object:null,profile:null,prompt:null,rev:null,rightMargin:te,rules:null,scheme:null,scrolling:Qe,standby:null,summary:null,text:null,topMargin:te,valueType:null,version:null,vAlign:null,vLink:null,vSpace:te,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:be,disableRemotePlayback:be,prefix:null,property:null,results:te,security:null,unselectable:null},space:"html",transform:l1}),Yj=Do({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Nt,accentHeight:te,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:te,amplitude:te,arabicForm:null,ascent:te,attributeName:null,attributeType:null,azimuth:te,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:te,by:null,calcMode:null,capHeight:te,className:je,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:te,diffuseConstant:te,direction:null,display:null,dur:null,divisor:te,dominantBaseline:null,download:be,dx:null,dy:null,edgeMode:null,editable:null,elevation:te,enableBackground:null,end:null,event:null,exponent:te,externalResourcesRequired:null,fill:null,fillOpacity:te,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Mo,g2:Mo,glyphName:Mo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:te,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:te,horizOriginX:te,horizOriginY:te,id:null,ideographic:te,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:te,k:te,k1:te,k2:te,k3:te,k4:te,kernelMatrix:Nt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:te,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:te,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:te,overlineThickness:te,paintOrder:null,panose1:null,path:null,pathLength:te,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:je,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:te,pointsAtY:te,pointsAtZ:te,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Nt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Nt,rev:Nt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Nt,requiredFeatures:Nt,requiredFonts:Nt,requiredFormats:Nt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:te,specularExponent:te,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:te,strikethroughThickness:te,string:null,stroke:null,strokeDashArray:Nt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:te,strokeOpacity:te,strokeWidth:null,style:null,surfaceScale:te,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Nt,tabIndex:te,tableValues:null,target:null,targetX:te,targetY:te,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Nt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:te,underlineThickness:te,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:te,values:null,vAlphabetic:te,vMathematical:te,vectorEffect:null,vHanging:te,vIdeographic:te,version:null,vertAdvY:te,vertOriginX:te,vertOriginY:te,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:te,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:a1}),u1=Do({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),c1=Do({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:l1}),f1=Do({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Uj={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Zj=/[A-Z]/g,d1=/-[a-z]/g,Jj=/^data[-\w.:]+$/i;function qj(e,t){const n=vd(t);let r=t,o=xt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Jj.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(d1,Qj);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!d1.test(i)){let s=i.replace(Zj,Kj);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}o=Cd}return new o(r,t)}function Kj(e){return"-"+e.toLowerCase()}function Qj(e){return e.charAt(1).toUpperCase()}const eL=r1([s1,Xj,u1,c1,f1],"html"),_d=r1([s1,Yj,u1,c1,f1],"svg");function tL(e){return e.join(" ").trim()}var Fo={},Sd,p1;function nL(){if(p1)return Sd;p1=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,a=/^\s+|\s+$/g,l=`
|
|
697
|
+
`,u="/",c="*",f="",d="comment",p="declaration";Sd=function(h,y){if(typeof h!="string")throw new TypeError("First argument must be a string");if(!h)return[];y=y||{};var m=1,x=1;function v(L){var A=L.match(t);A&&(m+=A.length);var j=L.lastIndexOf(l);x=~j?L.length-j:x+L.length}function C(){var L={line:m,column:x};return function(A){return A.position=new S(L),O(),A}}function S(L){this.start=L,this.end={line:m,column:x},this.source=y.source}S.prototype.content=h;function E(L){var A=new Error(y.source+":"+m+":"+x+": "+L);if(A.reason=L,A.filename=y.source,A.line=m,A.column=x,A.source=h,!y.silent)throw A}function I(L){var A=L.exec(h);if(A){var j=A[0];return v(j),h=h.slice(j.length),A}}function O(){I(n)}function M(L){var A;for(L=L||[];A=w();)A!==!1&&L.push(A);return L}function w(){var L=C();if(!(u!=h.charAt(0)||c!=h.charAt(1))){for(var A=2;f!=h.charAt(A)&&(c!=h.charAt(A)||u!=h.charAt(A+1));)++A;if(A+=2,f===h.charAt(A-1))return E("End of comment missing");var j=h.slice(2,A-2);return x+=2,v(j),h=h.slice(A),x+=2,L({type:d,comment:j})}}function N(){var L=C(),A=I(r);if(A){if(w(),!I(o))return E("property missing ':'");var j=I(i),D=L({type:p,property:g(A[0].replace(e,f)),value:j?g(j[0].replace(e,f)):f});return I(s),D}}function R(){var L=[];M(L);for(var A;A=N();)A!==!1&&(L.push(A),M(L));return L}return O(),R()};function g(h){return h?h.replace(a,f):f}return Sd}var h1;function rL(){if(h1)return Fo;h1=1;var e=Fo&&Fo.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Fo,"__esModule",{value:!0}),Fo.default=n;var t=e(nL());function n(r,o){var i=null;if(!r||typeof r!="string")return i;var s=(0,t.default)(r),a=typeof o=="function";return s.forEach(function(l){if(l.type==="declaration"){var u=l.property,c=l.value;a?o(u,c,l):c&&(i=i||{},i[u]=c)}}),i}return Fo}var Ji={},g1;function oL(){if(g1)return Ji;g1=1,Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,i=function(u){return!u||n.test(u)||e.test(u)},s=function(u,c){return c.toUpperCase()},a=function(u,c){return"".concat(c,"-")},l=function(u,c){return c===void 0&&(c={}),i(u)?u:(u=u.toLowerCase(),c.reactCompat?u=u.replace(o,a):u=u.replace(r,a),u.replace(t,s))};return Ji.camelCase=l,Ji}var qi,m1;function iL(){if(m1)return qi;m1=1;var e=qi&&qi.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},t=e(rL()),n=oL();function r(o,i){var s={};return!o||typeof o!="string"||(0,t.default)(o,function(a,l){a&&l&&(s[(0,n.camelCase)(a,i)]=l)}),s}return r.default=r,qi=r,qi}var sL=iL();const aL=ks(sL),y1=b1("end"),Ed=b1("start");function b1(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function lL(e){const t=Ed(e),n=y1(e);if(t&&n)return{start:t,end:n}}function Ki(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?v1(e.position):"start"in e||"end"in e?v1(e):"line"in e||"column"in e?Id(e):""}function Id(e){return x1(e&&e.line)+":"+x1(e&&e.column)}function v1(e){return Id(e&&e.start)+"-"+Id(e&&e.end)}function x1(e){return e&&typeof e=="number"?e:1}class st extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let o="",i={},s=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?o=t:!i.cause&&t&&(s=!0,o=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?i.ruleId=r:(i.source=r.slice(0,l),i.ruleId=r.slice(l+1))}if(!i.place&&i.ancestors&&i.ancestors){const l=i.ancestors[i.ancestors.length-1];l&&(i.place=l.position)}const a=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=o,this.line=a?a.line:void 0,this.name=Ki(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=s&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}st.prototype.file="",st.prototype.name="",st.prototype.reason="",st.prototype.message="",st.prototype.stack="",st.prototype.column=void 0,st.prototype.line=void 0,st.prototype.ancestors=void 0,st.prototype.cause=void 0,st.prototype.fatal=void 0,st.prototype.place=void 0,st.prototype.ruleId=void 0,st.prototype.source=void 0;const kd={}.hasOwnProperty,uL=new Map,cL=/[A-Z]/g,fL=new Set(["table","tbody","thead","tfoot","tr"]),dL=new Set(["td","th"]),w1="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function pL(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=wL(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=xL(n,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?_d:eL,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=C1(o,e,void 0);return i&&typeof i!="string"?i:o.create(e,o.Fragment,{children:i||void 0},void 0)}function C1(e,t,n){if(t.type==="element")return hL(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return gL(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return yL(e,t,n);if(t.type==="mdxjsEsm")return mL(e,t);if(t.type==="root")return bL(e,t,n);if(t.type==="text")return vL(e,t)}function hL(e,t,n){const r=e.schema;let o=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(o=_d,e.schema=o),e.ancestors.push(t);const i=S1(e,t.tagName,!1),s=CL(e,t);let a=Td(e,t);return fL.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!Hj(l):!0})),_1(e,s,i,t),Ad(s,a),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}function gL(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Qi(e,t.position)}function mL(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Qi(e,t.position)}function yL(e,t,n){const r=e.schema;let o=r;t.name==="svg"&&r.space==="html"&&(o=_d,e.schema=o),e.ancestors.push(t);const i=t.name===null?e.Fragment:S1(e,t.name,!0),s=_L(e,t),a=Td(e,t);return _1(e,s,i,t),Ad(s,a),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}function bL(e,t,n){const r={};return Ad(r,Td(e,t)),e.create(t,e.Fragment,r,n)}function vL(e,t){return t.value}function _1(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Ad(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function xL(e,t,n){return r;function r(o,i,s,a){const u=Array.isArray(s.children)?n:t;return a?u(i,s,a):u(i,s)}}function wL(e,t){return n;function n(r,o,i,s){const a=Array.isArray(i.children),l=Ed(r);return t(o,i,s,a,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function CL(e,t){const n={};let r,o;for(o in t.properties)if(o!=="children"&&kd.call(t.properties,o)){const i=SL(e,o,t.properties[o]);if(i){const[s,a]=i;e.tableCellAlignToStyle&&s==="align"&&typeof a=="string"&&dL.has(t.tagName)?r=a:n[s]=a}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function _L(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const s=i.expression;s.type;const a=s.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else Qi(e,t.position);else{const o=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,i=e.evaluater.evaluateExpression(a.expression)}else Qi(e,t.position);else i=r.value===null?!0:r.value;n[o]=i}return n}function Td(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:uL;for(;++r<t.children.length;){const i=t.children[r];let s;if(e.passKeys){const l=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(l){const u=o.get(l)||0;s=l+"-"+u,o.set(l,u+1)}}const a=C1(e,i,s);a!==void 0&&n.push(a)}return n}function SL(e,t,n){const r=qj(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Bj(n):tL(n)),r.property==="style"){let o=typeof n=="object"?n:EL(e,String(n));return e.stylePropertyNameCase==="css"&&(o=IL(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&r.space?Uj[r.property]||r.property:r.attribute,n]}}function EL(e,t){try{return aL(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,o=new st("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=w1+"#cannot-parse-style-attribute",o}}function S1(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const o=t.split(".");let i=-1,s;for(;++i<o.length;){const a=t1(o[i])?{type:"Identifier",name:o[i]}:{type:"Literal",value:o[i]};s=s?{type:"MemberExpression",object:s,property:a,computed:!!(i&&a.type==="Literal"),optional:!1}:a}r=s}else r=t1(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const o=r.value;return kd.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(r);Qi(e)}function Qi(e,t){const n=new st("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=w1+"#cannot-handle-mdx-estrees-without-createevaluater",n}function IL(e){const t={};let n;for(n in e)kd.call(e,n)&&(t[kL(n)]=e[n]);return t}function kL(e){let t=e.replace(cL,AL);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function AL(e){return"-"+e.toLowerCase()}const Nd={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},TL={};function Pd(e,t){const n=TL,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,o=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return E1(e,r,o)}function E1(e,t,n){if(NL(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return I1(e.children,t,n)}return Array.isArray(e)?I1(e,t,n):""}function I1(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=E1(e[o],t,n);return r.join("")}function NL(e){return!!(e&&typeof e=="object")}const k1=document.createElement("i");function Od(e){const t="&"+e+";";k1.innerHTML=t;const n=k1.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Pt(e,t,n,r){const o=e.length;let i=0,s;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);i<r.length;)s=r.slice(i,i+1e4),s.unshift(t,0),e.splice(...s),i+=1e4,t+=1e4}function zt(e,t){return e.length>0?(Pt(e,e.length,0,t),e):t}const A1={}.hasOwnProperty;function T1(e){const t={};let n=-1;for(;++n<e.length;)PL(t,e[n]);return t}function PL(e,t){let n;for(n in t){const o=(A1.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let s;if(i)for(s in i){A1.call(o,s)||(o[s]=[]);const a=i[s];OL(o[s],Array.isArray(a)?a:a?[a]:[])}}}function OL(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Pt(e,0,0,r)}function N1(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function en(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const gt=gr(/[A-Za-z]/),at=gr(/[\dA-Za-z]/),RL=gr(/[#-'*+\--9=?A-Z^-~]/);function dl(e){return e!==null&&(e<32||e===127)}const Rd=gr(/\d/),ML=gr(/[\dA-Fa-f]/),DL=gr(/[!-/:-@[-`{-~]/);function fe(e){return e!==null&&e<-2}function Re(e){return e!==null&&(e<0||e===32)}function we(e){return e===-2||e===-1||e===32}const pl=gr(new RegExp("\\p{P}|\\p{S}","u")),$r=gr(/\s/);function gr(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function jo(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let s="";if(i===37&&at(e.charCodeAt(n+1))&&at(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(s=String.fromCharCode(i));else if(i>55295&&i<57344){const a=e.charCodeAt(n+1);i<56320&&a>56319&&a<57344?(s=String.fromCharCode(i,a),o=1):s="�"}else s=String.fromCharCode(i);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+o+1,s=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function _e(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return s;function s(l){return we(l)?(e.enter(n),a(l)):t(l)}function a(l){return we(l)&&i++<o?(e.consume(l),a):(e.exit(n),t(l))}}const FL={tokenize:jL};function jL(e){const t=e.attempt(this.parser.constructs.contentInitial,r,o);let n;return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),_e(e,t,"linePrefix")}function o(a){return e.enter("paragraph"),i(a)}function i(a){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,s(a)}function s(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return fe(a)?(e.consume(a),e.exit("chunkText"),i):(e.consume(a),s)}}const LL={tokenize:BL},P1={tokenize:zL};function BL(e){const t=this,n=[];let r=0,o,i,s;return a;function a(v){if(r<n.length){const C=n[r];return t.containerState=C[1],e.attempt(C[0].continuation,l,u)(v)}return u(v)}function l(v){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&x();const C=t.events.length;let S=C,E;for(;S--;)if(t.events[S][0]==="exit"&&t.events[S][1].type==="chunkFlow"){E=t.events[S][1].end;break}m(r);let I=C;for(;I<t.events.length;)t.events[I][1].end={...E},I++;return Pt(t.events,S+1,0,t.events.slice(C)),t.events.length=I,u(v)}return a(v)}function u(v){if(r===n.length){if(!o)return d(v);if(o.currentConstruct&&o.currentConstruct.concrete)return g(v);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(P1,c,f)(v)}function c(v){return o&&x(),m(r),d(v)}function f(v){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,g(v)}function d(v){return t.containerState={},e.attempt(P1,p,g)(v)}function p(v){return r++,n.push([t.currentConstruct,t.containerState]),d(v)}function g(v){if(v===null){o&&x(),m(0),e.consume(v);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:i}),h(v)}function h(v){if(v===null){y(e.exit("chunkFlow"),!0),m(0),e.consume(v);return}return fe(v)?(e.consume(v),y(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(v),h)}function y(v,C){const S=t.sliceStream(v);if(C&&S.push(null),v.previous=i,i&&(i.next=v),i=v,o.defineSkip(v.start),o.write(S),t.parser.lazy[v.start.line]){let E=o.events.length;for(;E--;)if(o.events[E][1].start.offset<s&&(!o.events[E][1].end||o.events[E][1].end.offset>s))return;const I=t.events.length;let O=I,M,w;for(;O--;)if(t.events[O][0]==="exit"&&t.events[O][1].type==="chunkFlow"){if(M){w=t.events[O][1].end;break}M=!0}for(m(r),E=I;E<t.events.length;)t.events[E][1].end={...w},E++;Pt(t.events,O+1,0,t.events.slice(I)),t.events.length=E}}function m(v){let C=n.length;for(;C-- >v;){const S=n[C];t.containerState=S[1],S[0].exit.call(t,e)}n.length=v}function x(){o.write([null]),i=void 0,o=void 0,t.containerState._closeFlow=void 0}}function zL(e,t,n){return _e(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Lo(e){if(e===null||Re(e)||$r(e))return 1;if(pl(e))return 2}function hl(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const Md={name:"attention",resolveAll:VL,tokenize:GL};function VL(e,t){let n=-1,r,o,i,s,a,l,u,c;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[r][1].end},d={...e[n][1].start};O1(f,-l),O1(d,l),s={type:l>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},a={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:d},i={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},o={type:l>1?"strong":"emphasis",start:{...s.start},end:{...a.end}},e[r][1].end={...s.start},e[n][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=zt(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=zt(u,[["enter",o,t],["enter",s,t],["exit",s,t],["enter",i,t]]),u=zt(u,hl(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=zt(u,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",o,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=zt(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,Pt(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function GL(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=Lo(r);let i;return s;function s(l){return i=l,e.enter("attentionSequence"),a(l)}function a(l){if(l===i)return e.consume(l),a;const u=e.exit("attentionSequence"),c=Lo(l),f=!c||c===2&&o||n.includes(l),d=!o||o===2&&c||n.includes(r);return u._open=!!(i===42?f:f&&(o||!d)),u._close=!!(i===42?d:d&&(c||!f)),t(l)}}function O1(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const $L={name:"autolink",tokenize:HL};function HL(e,t,n){let r=0;return o;function o(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(p){return gt(p)?(e.consume(p),s):p===64?n(p):u(p)}function s(p){return p===43||p===45||p===46||at(p)?(r=1,a(p)):u(p)}function a(p){return p===58?(e.consume(p),r=0,l):(p===43||p===45||p===46||at(p))&&r++<32?(e.consume(p),a):(r=0,u(p))}function l(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||dl(p)?n(p):(e.consume(p),l)}function u(p){return p===64?(e.consume(p),c):RL(p)?(e.consume(p),u):n(p)}function c(p){return at(p)?f(p):n(p)}function f(p){return p===46?(e.consume(p),r=0,c):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):d(p)}function d(p){if((p===45||at(p))&&r++<63){const g=p===45?d:f;return e.consume(p),g}return n(p)}}const es={partial:!0,tokenize:WL};function WL(e,t,n){return r;function r(i){return we(i)?_e(e,o,"linePrefix")(i):o(i)}function o(i){return i===null||fe(i)?t(i):n(i)}}const R1={continuation:{tokenize:YL},exit:UL,name:"blockQuote",tokenize:XL};function XL(e,t,n){const r=this;return o;function o(s){if(s===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),i}return n(s)}function i(s){return we(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function YL(e,t,n){const r=this;return o;function o(s){return we(s)?_e(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):i(s)}function i(s){return e.attempt(R1,t,n)(s)}}function UL(e){e.exit("blockQuote")}const M1={name:"characterEscape",tokenize:ZL};function ZL(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),o}function o(i){return DL(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const D1={name:"characterReference",tokenize:JL};function JL(e,t,n){const r=this;let o=0,i,s;return a;function a(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),l}function l(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),i=31,s=at,c(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,s=ML,c):(e.enter("characterReferenceValue"),i=7,s=Rd,c(f))}function c(f){if(f===59&&o){const d=e.exit("characterReferenceValue");return s===at&&!Od(r.sliceSerialize(d))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(f)&&o++<i?(e.consume(f),c):n(f)}}const F1={partial:!0,tokenize:KL},j1={concrete:!0,name:"codeFenced",tokenize:qL};function qL(e,t,n){const r=this,o={partial:!0,tokenize:S};let i=0,s=0,a;return l;function l(E){return u(E)}function u(E){const I=r.events[r.events.length-1];return i=I&&I[1].type==="linePrefix"?I[2].sliceSerialize(I[1],!0).length:0,a=E,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(E)}function c(E){return E===a?(s++,e.consume(E),c):s<3?n(E):(e.exit("codeFencedFenceSequence"),we(E)?_e(e,f,"whitespace")(E):f(E))}function f(E){return E===null||fe(E)?(e.exit("codeFencedFence"),r.interrupt?t(E):e.check(F1,h,C)(E)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(E))}function d(E){return E===null||fe(E)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(E)):we(E)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),_e(e,p,"whitespace")(E)):E===96&&E===a?n(E):(e.consume(E),d)}function p(E){return E===null||fe(E)?f(E):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(E))}function g(E){return E===null||fe(E)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(E)):E===96&&E===a?n(E):(e.consume(E),g)}function h(E){return e.attempt(o,C,y)(E)}function y(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),m}function m(E){return i>0&&we(E)?_e(e,x,"linePrefix",i+1)(E):x(E)}function x(E){return E===null||fe(E)?e.check(F1,h,C)(E):(e.enter("codeFlowValue"),v(E))}function v(E){return E===null||fe(E)?(e.exit("codeFlowValue"),x(E)):(e.consume(E),v)}function C(E){return e.exit("codeFenced"),t(E)}function S(E,I,O){let M=0;return w;function w(j){return E.enter("lineEnding"),E.consume(j),E.exit("lineEnding"),N}function N(j){return E.enter("codeFencedFence"),we(j)?_e(E,R,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):R(j)}function R(j){return j===a?(E.enter("codeFencedFenceSequence"),L(j)):O(j)}function L(j){return j===a?(M++,E.consume(j),L):M>=s?(E.exit("codeFencedFenceSequence"),we(j)?_e(E,A,"whitespace")(j):A(j)):O(j)}function A(j){return j===null||fe(j)?(E.exit("codeFencedFence"),I(j)):O(j)}}}function KL(e,t,n){const r=this;return o;function o(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i)}function i(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const Dd={name:"codeIndented",tokenize:eB},QL={partial:!0,tokenize:tB};function eB(e,t,n){const r=this;return o;function o(u){return e.enter("codeIndented"),_e(e,i,"linePrefix",5)(u)}function i(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(u):n(u)}function s(u){return u===null?l(u):fe(u)?e.attempt(QL,s,l)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||fe(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),a)}function l(u){return e.exit("codeIndented"),t(u)}}function tB(e,t,n){const r=this;return o;function o(s){return r.parser.lazy[r.now().line]?n(s):fe(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):_e(e,i,"linePrefix",5)(s)}function i(s){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):fe(s)?o(s):n(s)}}const nB={name:"codeText",previous:oB,resolve:rB,tokenize:iB};function rB(e){let t=e.length-4,n=3,r,o;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)o===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(o=r):(r===t||e[r][1].type==="lineEnding")&&(e[o][1].type="codeTextData",r!==o+2&&(e[o][1].end=e[r-1][1].end,e.splice(o+2,r-o-2),t-=r-o-2,r=o+2),o=void 0);return e}function oB(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function iB(e,t,n){let r=0,o,i;return s;function s(f){return e.enter("codeText"),e.enter("codeTextSequence"),a(f)}function a(f){return f===96?(e.consume(f),r++,a):(e.exit("codeTextSequence"),l(f))}function l(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),l):f===96?(i=e.enter("codeTextSequence"),o=0,c(f)):fe(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(f))}function u(f){return f===null||f===32||f===96||fe(f)?(e.exit("codeTextData"),l(f)):(e.consume(f),u)}function c(f){return f===96?(e.consume(f),o++,c):o===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(i.type="codeTextData",u(f))}}class sB{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const o=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return r&&ts(this.left,r),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),ts(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ts(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);ts(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ts(this.left,n.reverse())}}}function ts(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function L1(e){const t={};let n=-1,r,o,i,s,a,l,u;const c=new sB(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,i=0,i<l.length&&l[i][1].type==="lineEndingBlank"&&(i+=2),i<l.length&&l[i][1].type==="content"))for(;++i<l.length&&l[i][1].type!=="content";)l[i][1].type==="chunkText"&&(l[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,aB(c,n)),n=t[n],u=!0);else if(r[1]._container){for(i=n,o=void 0;i--;)if(s=c.get(i),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(o&&(c.get(o)[1].type="lineEndingBlank"),s[1].type="lineEnding",o=i);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;o&&(r[1].end={...c.get(o)[1].start},a=c.slice(o,n),a.unshift(r),c.splice(o,n-o+1,a))}}return Pt(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function aB(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const i=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const a=s.events,l=[],u={};let c,f,d=-1,p=n,g=0,h=0;const y=[h];for(;p;){for(;e.get(++o)[1]!==p;);i.push(o),p._tokenizer||(c=r.sliceStream(p),p.next||c.push(null),f&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=n;++d<a.length;)a[d][0]==="exit"&&a[d-1][0]==="enter"&&a[d][1].type===a[d-1][1].type&&a[d][1].start.line!==a[d][1].end.line&&(h=d+1,y.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):y.pop(),d=y.length;d--;){const m=a.slice(y[d],y[d+1]),x=i.pop();l.push([x,x+m.length-1]),e.splice(x,2,m)}for(l.reverse(),d=-1;++d<l.length;)u[g+l[d][0]]=g+l[d][1],g+=l[d][1]-l[d][0]-1;return u}const lB={resolve:cB,tokenize:fB},uB={partial:!0,tokenize:dB};function cB(e){return L1(e),e}function fB(e,t){let n;return r;function r(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),o(a)}function o(a){return a===null?i(a):fe(a)?e.check(uB,s,i)(a):(e.consume(a),o)}function i(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function s(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,o}}function dB(e,t,n){const r=this;return o;function o(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),_e(e,i,"linePrefix")}function i(s){if(s===null||fe(s))return n(s);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function B1(e,t,n,r,o,i,s,a,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return f;function f(m){return m===60?(e.enter(r),e.enter(o),e.enter(i),e.consume(m),e.exit(i),d):m===null||m===32||m===41||dl(m)?n(m):(e.enter(r),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),h(m))}function d(m){return m===62?(e.enter(i),e.consume(m),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(m))}function p(m){return m===62?(e.exit("chunkString"),e.exit(a),d(m)):m===null||m===60||fe(m)?n(m):(e.consume(m),m===92?g:p)}function g(m){return m===60||m===62||m===92?(e.consume(m),p):p(m)}function h(m){return!c&&(m===null||m===41||Re(m))?(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(r),t(m)):c<u&&m===40?(e.consume(m),c++,h):m===41?(e.consume(m),c--,h):m===null||m===32||m===40||dl(m)?n(m):(e.consume(m),m===92?y:h)}function y(m){return m===40||m===41||m===92?(e.consume(m),h):h(m)}}function z1(e,t,n,r,o,i){const s=this;let a=0,l;return u;function u(p){return e.enter(r),e.enter(o),e.consume(p),e.exit(o),e.enter(i),c}function c(p){return a>999||p===null||p===91||p===93&&!l||p===94&&!a&&"_hiddenFootnoteSupport"in s.parser.constructs?n(p):p===93?(e.exit(i),e.enter(o),e.consume(p),e.exit(o),e.exit(r),t):fe(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||fe(p)||a++>999?(e.exit("chunkString"),c(p)):(e.consume(p),l||(l=!we(p)),p===92?d:f)}function d(p){return p===91||p===92||p===93?(e.consume(p),a++,f):f(p)}}function V1(e,t,n,r,o,i){let s;return a;function a(d){return d===34||d===39||d===40?(e.enter(r),e.enter(o),e.consume(d),e.exit(o),s=d===40?41:d,l):n(d)}function l(d){return d===s?(e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):(e.enter(i),u(d))}function u(d){return d===s?(e.exit(i),l(s)):d===null?n(d):fe(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),_e(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===s||d===null||fe(d)?(e.exit("chunkString"),u(d)):(e.consume(d),d===92?f:c)}function f(d){return d===s||d===92?(e.consume(d),c):c(d)}}function ns(e,t){let n;return r;function r(o){return fe(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):we(o)?_e(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}const pB={name:"definition",tokenize:gB},hB={partial:!0,tokenize:mB};function gB(e,t,n){const r=this;let o;return i;function i(p){return e.enter("definition"),s(p)}function s(p){return z1.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return o=en(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),l):n(p)}function l(p){return Re(p)?ns(e,u)(p):u(p)}function u(p){return B1(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(hB,f,f)(p)}function f(p){return we(p)?_e(e,d,"whitespace")(p):d(p)}function d(p){return p===null||fe(p)?(e.exit("definition"),r.parser.defined.push(o),t(p)):n(p)}}function mB(e,t,n){return r;function r(a){return Re(a)?ns(e,o)(a):n(a)}function o(a){return V1(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function i(a){return we(a)?_e(e,s,"whitespace")(a):s(a)}function s(a){return a===null||fe(a)?t(a):n(a)}}const yB={name:"hardBreakEscape",tokenize:bB};function bB(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),o}function o(i){return fe(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const vB={name:"headingAtx",resolve:xB,tokenize:wB};function xB(e,t){let n=e.length-2,r=3,o,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(o={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Pt(e,r,n-r+1,[["enter",o,t],["enter",i,t],["exit",i,t],["exit",o,t]])),e}function wB(e,t,n){let r=0;return o;function o(c){return e.enter("atxHeading"),i(c)}function i(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&r++<6?(e.consume(c),s):c===null||Re(c)?(e.exit("atxHeadingSequence"),a(c)):n(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||fe(c)?(e.exit("atxHeading"),t(c)):we(c)?_e(e,a,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),a(c))}function u(c){return c===null||c===35||Re(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),u)}}const CB=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],G1=["pre","script","style","textarea"],_B={concrete:!0,name:"htmlFlow",resolveTo:IB,tokenize:kB},SB={partial:!0,tokenize:TB},EB={partial:!0,tokenize:AB};function IB(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function kB(e,t,n){const r=this;let o,i,s,a,l;return u;function u(P){return c(P)}function c(P){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(P),f}function f(P){return P===33?(e.consume(P),d):P===47?(e.consume(P),i=!0,h):P===63?(e.consume(P),o=3,r.interrupt?t:_):gt(P)?(e.consume(P),s=String.fromCharCode(P),y):n(P)}function d(P){return P===45?(e.consume(P),o=2,p):P===91?(e.consume(P),o=5,a=0,g):gt(P)?(e.consume(P),o=4,r.interrupt?t:_):n(P)}function p(P){return P===45?(e.consume(P),r.interrupt?t:_):n(P)}function g(P){const H="CDATA[";return P===H.charCodeAt(a++)?(e.consume(P),a===H.length?r.interrupt?t:R:g):n(P)}function h(P){return gt(P)?(e.consume(P),s=String.fromCharCode(P),y):n(P)}function y(P){if(P===null||P===47||P===62||Re(P)){const H=P===47,J=s.toLowerCase();return!H&&!i&&G1.includes(J)?(o=1,r.interrupt?t(P):R(P)):CB.includes(s.toLowerCase())?(o=6,H?(e.consume(P),m):r.interrupt?t(P):R(P)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(P):i?x(P):v(P))}return P===45||at(P)?(e.consume(P),s+=String.fromCharCode(P),y):n(P)}function m(P){return P===62?(e.consume(P),r.interrupt?t:R):n(P)}function x(P){return we(P)?(e.consume(P),x):w(P)}function v(P){return P===47?(e.consume(P),w):P===58||P===95||gt(P)?(e.consume(P),C):we(P)?(e.consume(P),v):w(P)}function C(P){return P===45||P===46||P===58||P===95||at(P)?(e.consume(P),C):S(P)}function S(P){return P===61?(e.consume(P),E):we(P)?(e.consume(P),S):v(P)}function E(P){return P===null||P===60||P===61||P===62||P===96?n(P):P===34||P===39?(e.consume(P),l=P,I):we(P)?(e.consume(P),E):O(P)}function I(P){return P===l?(e.consume(P),l=null,M):P===null||fe(P)?n(P):(e.consume(P),I)}function O(P){return P===null||P===34||P===39||P===47||P===60||P===61||P===62||P===96||Re(P)?S(P):(e.consume(P),O)}function M(P){return P===47||P===62||we(P)?v(P):n(P)}function w(P){return P===62?(e.consume(P),N):n(P)}function N(P){return P===null||fe(P)?R(P):we(P)?(e.consume(P),N):n(P)}function R(P){return P===45&&o===2?(e.consume(P),D):P===60&&o===1?(e.consume(P),z):P===62&&o===4?(e.consume(P),G):P===63&&o===3?(e.consume(P),_):P===93&&o===5?(e.consume(P),F):fe(P)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(SB,$,L)(P)):P===null||fe(P)?(e.exit("htmlFlowData"),L(P)):(e.consume(P),R)}function L(P){return e.check(EB,A,$)(P)}function A(P){return e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),j}function j(P){return P===null||fe(P)?L(P):(e.enter("htmlFlowData"),R(P))}function D(P){return P===45?(e.consume(P),_):R(P)}function z(P){return P===47?(e.consume(P),s="",V):R(P)}function V(P){if(P===62){const H=s.toLowerCase();return G1.includes(H)?(e.consume(P),G):R(P)}return gt(P)&&s.length<8?(e.consume(P),s+=String.fromCharCode(P),V):R(P)}function F(P){return P===93?(e.consume(P),_):R(P)}function _(P){return P===62?(e.consume(P),G):P===45&&o===2?(e.consume(P),_):R(P)}function G(P){return P===null||fe(P)?(e.exit("htmlFlowData"),$(P)):(e.consume(P),G)}function $(P){return e.exit("htmlFlow"),t(P)}}function AB(e,t,n){const r=this;return o;function o(s){return fe(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):n(s)}function i(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function TB(e,t,n){return r;function r(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(es,t,n)}}const NB={name:"htmlText",tokenize:PB};function PB(e,t,n){const r=this;let o,i,s;return a;function a(_){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(_),l}function l(_){return _===33?(e.consume(_),u):_===47?(e.consume(_),S):_===63?(e.consume(_),v):gt(_)?(e.consume(_),O):n(_)}function u(_){return _===45?(e.consume(_),c):_===91?(e.consume(_),i=0,g):gt(_)?(e.consume(_),x):n(_)}function c(_){return _===45?(e.consume(_),p):n(_)}function f(_){return _===null?n(_):_===45?(e.consume(_),d):fe(_)?(s=f,z(_)):(e.consume(_),f)}function d(_){return _===45?(e.consume(_),p):f(_)}function p(_){return _===62?D(_):_===45?d(_):f(_)}function g(_){const G="CDATA[";return _===G.charCodeAt(i++)?(e.consume(_),i===G.length?h:g):n(_)}function h(_){return _===null?n(_):_===93?(e.consume(_),y):fe(_)?(s=h,z(_)):(e.consume(_),h)}function y(_){return _===93?(e.consume(_),m):h(_)}function m(_){return _===62?D(_):_===93?(e.consume(_),m):h(_)}function x(_){return _===null||_===62?D(_):fe(_)?(s=x,z(_)):(e.consume(_),x)}function v(_){return _===null?n(_):_===63?(e.consume(_),C):fe(_)?(s=v,z(_)):(e.consume(_),v)}function C(_){return _===62?D(_):v(_)}function S(_){return gt(_)?(e.consume(_),E):n(_)}function E(_){return _===45||at(_)?(e.consume(_),E):I(_)}function I(_){return fe(_)?(s=I,z(_)):we(_)?(e.consume(_),I):D(_)}function O(_){return _===45||at(_)?(e.consume(_),O):_===47||_===62||Re(_)?M(_):n(_)}function M(_){return _===47?(e.consume(_),D):_===58||_===95||gt(_)?(e.consume(_),w):fe(_)?(s=M,z(_)):we(_)?(e.consume(_),M):D(_)}function w(_){return _===45||_===46||_===58||_===95||at(_)?(e.consume(_),w):N(_)}function N(_){return _===61?(e.consume(_),R):fe(_)?(s=N,z(_)):we(_)?(e.consume(_),N):M(_)}function R(_){return _===null||_===60||_===61||_===62||_===96?n(_):_===34||_===39?(e.consume(_),o=_,L):fe(_)?(s=R,z(_)):we(_)?(e.consume(_),R):(e.consume(_),A)}function L(_){return _===o?(e.consume(_),o=void 0,j):_===null?n(_):fe(_)?(s=L,z(_)):(e.consume(_),L)}function A(_){return _===null||_===34||_===39||_===60||_===61||_===96?n(_):_===47||_===62||Re(_)?M(_):(e.consume(_),A)}function j(_){return _===47||_===62||Re(_)?M(_):n(_)}function D(_){return _===62?(e.consume(_),e.exit("htmlTextData"),e.exit("htmlText"),t):n(_)}function z(_){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),V}function V(_){return we(_)?_e(e,F,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(_):F(_)}function F(_){return e.enter("htmlTextData"),s(_)}}const Fd={name:"labelEnd",resolveAll:DB,resolveTo:FB,tokenize:jB},OB={tokenize:LB},RB={tokenize:BB},MB={tokenize:zB};function DB(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const o=r.type==="labelImage"?4:2;r.type="data",t+=o}}return e.length!==n.length&&Pt(e,0,e.length,n),e}function FB(e,t){let n=e.length,r=0,o,i,s,a;for(;n--;)if(o=e[n][1],i){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[n][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(i=n,o.type!=="labelLink")){r=2;break}}else o.type==="labelEnd"&&(s=n);const l={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[i][1].start},end:{...e[s][1].end}},c={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[s-2][1].start}};return a=[["enter",l,t],["enter",u,t]],a=zt(a,e.slice(i+1,i+r+3)),a=zt(a,[["enter",c,t]]),a=zt(a,hl(t.parser.constructs.insideSpan.null,e.slice(i+r+4,s-3),t)),a=zt(a,[["exit",c,t],e[s-2],e[s-1],["exit",u,t]]),a=zt(a,e.slice(s+1)),a=zt(a,[["exit",l,t]]),Pt(e,i,e.length,a),e}function jB(e,t,n){const r=this;let o=r.events.length,i,s;for(;o--;)if((r.events[o][1].type==="labelImage"||r.events[o][1].type==="labelLink")&&!r.events[o][1]._balanced){i=r.events[o][1];break}return a;function a(d){return i?i._inactive?f(d):(s=r.parser.defined.includes(en(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),l):n(d)}function l(d){return d===40?e.attempt(OB,c,s?c:f)(d):d===91?e.attempt(RB,c,s?u:f)(d):s?c(d):f(d)}function u(d){return e.attempt(MB,c,f)(d)}function c(d){return t(d)}function f(d){return i._balanced=!0,n(d)}}function LB(e,t,n){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),o}function o(f){return Re(f)?ns(e,i)(f):i(f)}function i(f){return f===41?c(f):B1(e,s,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return Re(f)?ns(e,l)(f):c(f)}function a(f){return n(f)}function l(f){return f===34||f===39||f===40?V1(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return Re(f)?ns(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function BB(e,t,n){const r=this;return o;function o(a){return z1.call(r,e,i,s,"reference","referenceMarker","referenceString")(a)}function i(a){return r.parser.defined.includes(en(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function s(a){return n(a)}}function zB(e,t,n){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),o}function o(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const VB={name:"labelStartImage",resolveAll:Fd.resolveAll,tokenize:GB};function GB(e,t,n){const r=this;return o;function o(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),i}function i(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),s):n(a)}function s(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const $B={name:"labelStartLink",resolveAll:Fd.resolveAll,tokenize:HB};function HB(e,t,n){const r=this;return o;function o(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),i}function i(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const jd={name:"lineEnding",tokenize:WB};function WB(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),_e(e,t,"linePrefix")}}const gl={name:"thematicBreak",tokenize:XB};function XB(e,t,n){let r=0,o;return i;function i(u){return e.enter("thematicBreak"),s(u)}function s(u){return o=u,a(u)}function a(u){return u===o?(e.enter("thematicBreakSequence"),l(u)):r>=3&&(u===null||fe(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===o?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),we(u)?_e(e,a,"whitespace")(u):a(u))}}const wt={continuation:{tokenize:JB},exit:KB,name:"list",tokenize:ZB},YB={partial:!0,tokenize:QB},UB={partial:!0,tokenize:qB};function ZB(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,s=0;return a;function a(p){const g=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Rd(p)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(gl,n,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(p)}return n(p)}function l(p){return Rd(p)&&++s<10?(e.consume(p),l):(!r.interrupt||s<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):n(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(es,r.interrupt?n:c,e.attempt(YB,d,f))}function c(p){return r.containerState.initialBlankLine=!0,i++,d(p)}function f(p){return we(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),d):n(p)}function d(p){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function JB(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(es,o,i);function o(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,_e(e,t,"listItemIndent",r.containerState.size+1)(a)}function i(a){return r.containerState.furtherBlankLines||!we(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(UB,t,s)(a))}function s(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,_e(e,e.attempt(wt,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function qB(e,t,n){const r=this;return _e(e,o,"listItemIndent",r.containerState.size+1);function o(i){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(i):n(i)}}function KB(e){e.exit(this.containerState.type)}function QB(e,t,n){const r=this;return _e(e,o,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(i){const s=r.events[r.events.length-1];return!we(i)&&s&&s[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const $1={name:"setextUnderline",resolveTo:e9,tokenize:t9};function e9(e,t){let n=e.length,r,o,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(o=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",i?(e.splice(o,0,["enter",s,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end={...e[i][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function t9(e,t,n){const r=this;let o;return i;function i(u){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),o=u,s(u)):n(u)}function s(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===o?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),we(u)?_e(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||fe(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const n9={tokenize:r9};function r9(e){const t=this,n=e.attempt(es,r,e.attempt(this.parser.constructs.flowInitial,o,_e(e,e.attempt(this.parser.constructs.flow,o,e.attempt(lB,o)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function o(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const o9={resolveAll:W1()},i9=H1("string"),s9=H1("text");function H1(e){return{resolveAll:W1(e==="text"?a9:void 0),tokenize:t};function t(n){const r=this,o=this.parser.constructs[e],i=n.attempt(o,s,a);return s;function s(c){return u(c)?i(c):a(c)}function a(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),i(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;const f=o[c];let d=-1;if(f)for(;++d<f.length;){const p=f[d];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function W1(e){return t;function t(n,r){let o=-1,i;for(;++o<=n.length;)i===void 0?n[o]&&n[o][1].type==="data"&&(i=o,o++):(!n[o]||n[o][1].type!=="data")&&(o!==i+2&&(n[i][1].end=n[o-1][1].end,n.splice(i+2,o-i-2),o=i+2),i=void 0);return e?e(n,r):n}}function a9(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],o=t.sliceStream(r);let i=o.length,s=-1,a=0,l;for(;i--;){const u=o[i];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)a++,s--;if(s)break;s=-1}else if(u===-2)l=!0,a++;else if(u!==-1){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const u={type:n===e.length||l||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?s:r.start._bufferIndex+s,_index:r.start._index+i,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const l9=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:pB},disable:{null:[]},document:{42:wt,43:wt,45:wt,48:wt,49:wt,50:wt,51:wt,52:wt,53:wt,54:wt,55:wt,56:wt,57:wt,62:R1},flow:{35:vB,42:gl,45:[$1,gl],60:_B,61:$1,95:gl,96:j1,126:j1},flowInitial:{[-2]:Dd,[-1]:Dd,32:Dd},insideSpan:{null:[Md,o9]},string:{38:D1,92:M1},text:{[-5]:jd,[-4]:jd,[-3]:jd,33:VB,38:D1,42:Md,60:[$L,NB],91:$B,92:[yB,M1],93:Fd,95:Md,96:nB}},Symbol.toStringTag,{value:"Module"}));function u9(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},i=[];let s=[],a=[];const l={attempt:I(S),check:I(E),consume:x,enter:v,exit:C,interrupt:I(E,{interrupt:!0})},u={code:null,containerState:{},defineSkip:h,events:[],now:g,parser:e,previous:null,sliceSerialize:d,sliceStream:p,write:f};let c=t.tokenize.call(u,l);return t.resolveAll&&i.push(t),u;function f(N){return s=zt(s,N),y(),s[s.length-1]!==null?[]:(O(t,0),u.events=hl(i,u.events,u),u.events)}function d(N,R){return f9(p(N),R)}function p(N){return c9(s,N)}function g(){const{_bufferIndex:N,_index:R,line:L,column:A,offset:j}=r;return{_bufferIndex:N,_index:R,line:L,column:A,offset:j}}function h(N){o[N.line]=N.column,w()}function y(){let N;for(;r._index<s.length;){const R=s[r._index];if(typeof R=="string")for(N=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===N&&r._bufferIndex<R.length;)m(R.charCodeAt(r._bufferIndex));else m(R)}}function m(N){c=c(N)}function x(N){fe(N)?(r.line++,r.column=1,r.offset+=N===-3?2:1,w()):N!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=N}function v(N,R){const L=R||{};return L.type=N,L.start=g(),u.events.push(["enter",L,u]),a.push(L),L}function C(N){const R=a.pop();return R.end=g(),u.events.push(["exit",R,u]),R}function S(N,R){O(N,R.from)}function E(N,R){R.restore()}function I(N,R){return L;function L(A,j,D){let z,V,F,_;return Array.isArray(A)?$(A):"tokenize"in A?$([A]):G(A);function G(W){return X;function X(U){const Q=U!==null&&W[U],ne=U!==null&&W.null,oe=[...Array.isArray(Q)?Q:Q?[Q]:[],...Array.isArray(ne)?ne:ne?[ne]:[]];return $(oe)(U)}}function $(W){return z=W,V=0,W.length===0?D:P(W[V])}function P(W){return X;function X(U){return _=M(),F=W,W.partial||(u.currentConstruct=W),W.name&&u.parser.constructs.disable.null.includes(W.name)?J():W.tokenize.call(R?Object.assign(Object.create(u),R):u,l,H,J)(U)}}function H(W){return N(F,_),j}function J(W){return _.restore(),++V<z.length?P(z[V]):D}}}function O(N,R){N.resolveAll&&!i.includes(N)&&i.push(N),N.resolve&&Pt(u.events,R,u.events.length-R,N.resolve(u.events.slice(R),u)),N.resolveTo&&(u.events=N.resolveTo(u.events,u))}function M(){const N=g(),R=u.previous,L=u.currentConstruct,A=u.events.length,j=Array.from(a);return{from:A,restore:D};function D(){r=N,u.previous=R,u.currentConstruct=L,u.events.length=A,a=j,w()}}function w(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}function c9(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let s;if(n===o)s=[e[n].slice(r,i)];else{if(s=e.slice(n,o),r>-1){const a=s[0];typeof a=="string"?s[0]=a.slice(r):s.shift()}i>0&&s.push(e[o].slice(0,i))}return s}function f9(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const i=e[n];let s;if(typeof i=="string")s=i;else switch(i){case-5:{s="\r";break}case-4:{s=`
|
|
698
|
+
`;break}case-3:{s=`\r
|
|
699
|
+
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&o)continue;s=" ";break}default:s=String.fromCharCode(i)}o=i===-2,r.push(s)}return r.join("")}function d9(e){const r={constructs:T1([l9,...(e||{}).extensions||[]]),content:o(FL),defined:[],document:o(LL),flow:o(n9),lazy:{},string:o(i9),text:o(s9)};return r;function o(i){return s;function s(a){return u9(r,i,a)}}}function p9(e){for(;!L1(e););return e}const X1=/[\0\t\n\r]/g;function h9(){let e=1,t="",n=!0,r;return o;function o(i,s,a){const l=[];let u,c,f,d,p;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(s||void 0).decode(i)),f=0,t="",n&&(i.charCodeAt(0)===65279&&f++,n=void 0);f<i.length;){if(X1.lastIndex=f,u=X1.exec(i),d=u&&u.index!==void 0?u.index:i.length,p=i.charCodeAt(d),!u){t=i.slice(f);break}if(p===10&&f===d&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),f<d&&(l.push(i.slice(f,d)),e+=d-f),p){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}f=d+1}return a&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const g9=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function m9(e){return e.replace(g9,y9)}function y9(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const o=n.charCodeAt(1),i=o===120||o===88;return N1(n.slice(i?2:1),i?16:10)}return Od(n)||e}const Y1={}.hasOwnProperty;function b9(e,t,n){return typeof t!="string"&&(n=t,t=void 0),v9(n)(p9(d9(n).document().write(h9()(e,t,!0))))}function v9(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(Ft),autolinkProtocol:M,autolinkEmail:M,atxHeading:i(Ie),blockQuote:i(ne),characterEscape:M,characterReference:M,codeFenced:i(oe),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:i(oe,s),codeText:i(Z,s),codeTextData:M,data:M,codeFlowValue:M,definition:i(ce),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:i(pe),hardBreakEscape:i(Ze),hardBreakTrailing:i(Ze),htmlFlow:i(ft,s),htmlFlowData:M,htmlText:i(ft,s),htmlTextData:M,image:i(Dt),label:s,link:i(Ft),listItem:i(Jr),listItemValue:d,listOrdered:i(on,f),listUnordered:i(on),paragraph:i(ge),reference:P,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:i(Ie),strong:i(qr),thematicBreak:i(Kr)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:Q,autolinkProtocol:U,blockQuote:l(),characterEscapeValue:w,characterReferenceMarkerHexadecimal:J,characterReferenceMarkerNumeric:J,characterReferenceValue:W,characterReference:X,codeFenced:l(y),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:g,codeFlowValue:w,codeIndented:l(m),codeText:l(j),codeTextData:w,data:w,definition:l(),definitionDestinationString:C,definitionLabelString:x,definitionTitleString:v,emphasis:l(),hardBreakEscape:l(R),hardBreakTrailing:l(R),htmlFlow:l(L),htmlFlowData:w,htmlText:l(A),htmlTextData:w,image:l(z),label:F,labelText:V,lineEnding:N,link:l(D),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:H,resourceDestinationString:_,resourceTitleString:G,resource:$,setextHeading:l(O),setextHeadingLineSequence:I,setextHeadingText:E,strong:l(),thematicBreak:l()}};U1(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(K){let re={type:"root",children:[]};const me={stack:[re],tokenStack:[],config:t,enter:a,exit:u,buffer:s,resume:c,data:n},ve=[];let Ne=-1;for(;++Ne<K.length;)if(K[Ne][1].type==="listOrdered"||K[Ne][1].type==="listUnordered")if(K[Ne][0]==="enter")ve.push(Ne);else{const jt=ve.pop();Ne=o(K,jt,Ne)}for(Ne=-1;++Ne<K.length;){const jt=t[K[Ne][0]];Y1.call(jt,K[Ne][1].type)&&jt[K[Ne][1].type].call(Object.assign({sliceSerialize:K[Ne][2].sliceSerialize},me),K[Ne][1])}if(me.tokenStack.length>0){const jt=me.tokenStack[me.tokenStack.length-1];(jt[1]||Z1).call(me,void 0,jt[0])}for(re.position={start:mr(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:mr(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},Ne=-1;++Ne<t.transforms.length;)re=t.transforms[Ne](re)||re;return re}function o(K,re,me){let ve=re-1,Ne=-1,jt=!1,qn,sn,Qr,eo;for(;++ve<=me;){const mt=K[ve];switch(mt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{mt[0]==="enter"?Ne++:Ne--,eo=void 0;break}case"lineEndingBlank":{mt[0]==="enter"&&(qn&&!eo&&!Ne&&!Qr&&(Qr=ve),eo=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:eo=void 0}if(!Ne&&mt[0]==="enter"&&mt[1].type==="listItemPrefix"||Ne===-1&&mt[0]==="exit"&&(mt[1].type==="listUnordered"||mt[1].type==="listOrdered")){if(qn){let _r=ve;for(sn=void 0;_r--;){const an=K[_r];if(an[1].type==="lineEnding"||an[1].type==="lineEndingBlank"){if(an[0]==="exit")continue;sn&&(K[sn][1].type="lineEndingBlank",jt=!0),an[1].type="lineEnding",sn=_r}else if(!(an[1].type==="linePrefix"||an[1].type==="blockQuotePrefix"||an[1].type==="blockQuotePrefixWhitespace"||an[1].type==="blockQuoteMarker"||an[1].type==="listItemIndent"))break}Qr&&(!sn||Qr<sn)&&(qn._spread=!0),qn.end=Object.assign({},sn?K[sn][1].start:mt[1].end),K.splice(sn||ve,0,["exit",qn,mt[2]]),ve++,me++}if(mt[1].type==="listItemPrefix"){const _r={type:"listItem",_spread:!1,start:Object.assign({},mt[1].start),end:void 0};qn=_r,K.splice(ve,0,["enter",_r,mt[2]]),ve++,me++,Qr=void 0,eo=!0}}}return K[re][1]._spread=jt,me}function i(K,re){return me;function me(ve){a.call(this,K(ve),ve),re&&re.call(this,ve)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(K,re,me){this.stack[this.stack.length-1].children.push(K),this.stack.push(K),this.tokenStack.push([re,me||void 0]),K.position={start:mr(re.start),end:void 0}}function l(K){return re;function re(me){K&&K.call(this,me),u.call(this,me)}}function u(K,re){const me=this.stack.pop(),ve=this.tokenStack.pop();if(ve)ve[0].type!==K.type&&(re?re.call(this,K,ve[0]):(ve[1]||Z1).call(this,K,ve[0]));else throw new Error("Cannot close `"+K.type+"` ("+Ki({start:K.start,end:K.end})+"): it’s not open");me.position.end=mr(K.end)}function c(){return Pd(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function d(K){if(this.data.expectingFirstListItemValue){const re=this.stack[this.stack.length-2];re.start=Number.parseInt(this.sliceSerialize(K),10),this.data.expectingFirstListItemValue=void 0}}function p(){const K=this.resume(),re=this.stack[this.stack.length-1];re.lang=K}function g(){const K=this.resume(),re=this.stack[this.stack.length-1];re.meta=K}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){const K=this.resume(),re=this.stack[this.stack.length-1];re.value=K.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){const K=this.resume(),re=this.stack[this.stack.length-1];re.value=K.replace(/(\r?\n|\r)$/g,"")}function x(K){const re=this.resume(),me=this.stack[this.stack.length-1];me.label=re,me.identifier=en(this.sliceSerialize(K)).toLowerCase()}function v(){const K=this.resume(),re=this.stack[this.stack.length-1];re.title=K}function C(){const K=this.resume(),re=this.stack[this.stack.length-1];re.url=K}function S(K){const re=this.stack[this.stack.length-1];if(!re.depth){const me=this.sliceSerialize(K).length;re.depth=me}}function E(){this.data.setextHeadingSlurpLineEnding=!0}function I(K){const re=this.stack[this.stack.length-1];re.depth=this.sliceSerialize(K).codePointAt(0)===61?1:2}function O(){this.data.setextHeadingSlurpLineEnding=void 0}function M(K){const me=this.stack[this.stack.length-1].children;let ve=me[me.length-1];(!ve||ve.type!=="text")&&(ve=Es(),ve.position={start:mr(K.start),end:void 0},me.push(ve)),this.stack.push(ve)}function w(K){const re=this.stack.pop();re.value+=this.sliceSerialize(K),re.position.end=mr(K.end)}function N(K){const re=this.stack[this.stack.length-1];if(this.data.atHardBreak){const me=re.children[re.children.length-1];me.position.end=mr(K.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(re.type)&&(M.call(this,K),w.call(this,K))}function R(){this.data.atHardBreak=!0}function L(){const K=this.resume(),re=this.stack[this.stack.length-1];re.value=K}function A(){const K=this.resume(),re=this.stack[this.stack.length-1];re.value=K}function j(){const K=this.resume(),re=this.stack[this.stack.length-1];re.value=K}function D(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const re=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=re,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function z(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const re=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=re,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function V(K){const re=this.sliceSerialize(K),me=this.stack[this.stack.length-2];me.label=m9(re),me.identifier=en(re).toLowerCase()}function F(){const K=this.stack[this.stack.length-1],re=this.resume(),me=this.stack[this.stack.length-1];if(this.data.inReference=!0,me.type==="link"){const ve=K.children;me.children=ve}else me.alt=re}function _(){const K=this.resume(),re=this.stack[this.stack.length-1];re.url=K}function G(){const K=this.resume(),re=this.stack[this.stack.length-1];re.title=K}function $(){this.data.inReference=void 0}function P(){this.data.referenceType="collapsed"}function H(K){const re=this.resume(),me=this.stack[this.stack.length-1];me.label=re,me.identifier=en(this.sliceSerialize(K)).toLowerCase(),this.data.referenceType="full"}function J(K){this.data.characterReferenceType=K.type}function W(K){const re=this.sliceSerialize(K),me=this.data.characterReferenceType;let ve;me?(ve=N1(re,me==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ve=Od(re);const Ne=this.stack[this.stack.length-1];Ne.value+=ve}function X(K){const re=this.stack.pop();re.position.end=mr(K.end)}function U(K){w.call(this,K);const re=this.stack[this.stack.length-1];re.url=this.sliceSerialize(K)}function Q(K){w.call(this,K);const re=this.stack[this.stack.length-1];re.url="mailto:"+this.sliceSerialize(K)}function ne(){return{type:"blockquote",children:[]}}function oe(){return{type:"code",lang:null,meta:null,value:""}}function Z(){return{type:"inlineCode",value:""}}function ce(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function pe(){return{type:"emphasis",children:[]}}function Ie(){return{type:"heading",depth:0,children:[]}}function Ze(){return{type:"break"}}function ft(){return{type:"html",value:""}}function Dt(){return{type:"image",title:null,url:"",alt:null}}function Ft(){return{type:"link",title:null,url:"",children:[]}}function on(K){return{type:"list",ordered:K.type==="listOrdered",start:null,spread:K._spread,children:[]}}function Jr(K){return{type:"listItem",spread:K._spread,checked:null,children:[]}}function ge(){return{type:"paragraph",children:[]}}function qr(){return{type:"strong",children:[]}}function Es(){return{type:"text",value:""}}function Kr(){return{type:"thematicBreak"}}}function mr(e){return{line:e.line,column:e.column,offset:e.offset}}function U1(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?U1(e,r):x9(e,r)}}function x9(e,t){let n;for(n in t)if(Y1.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Z1(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ki({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ki({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ki({start:t.start,end:t.end})+") is still open")}function w9(e){const t=this;t.parser=n;function n(r){return b9(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function C9(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function _9(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
700
|
+
`}]}function S9(e,t){const n=t.value?t.value+`
|
|
701
|
+
`:"",r={};t.lang&&(r.className=["language-"+t.lang]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function E9(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function I9(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function k9(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=jo(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let s,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=i+1,a+=1,e.footnoteCounts.set(r,a);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function A9(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function T9(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function J1(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),i=o[0];i&&i.type==="text"?i.value="["+i.value:o.unshift({type:"text",value:"["});const s=o[o.length-1];return s&&s.type==="text"?s.value+=r:o.push({type:"text",value:r}),o}function N9(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return J1(e,t);const o={src:jo(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(o.title=r.title);const i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)}function P9(e,t){const n={src:jo(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function O9(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function R9(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return J1(e,t);const o={href:jo(r.url||"")};r.title!==null&&r.title!==void 0&&(o.title=r.title);const i={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function M9(e,t){const n={href:jo(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function D9(e,t,n){const r=e.all(t),o=n?F9(n):q1(t),i={},s=[];if(typeof t.checked=="boolean"){const c=r[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const c=r[a];(o||a!==0||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
|
|
702
|
+
`}),c.type==="element"&&c.tagName==="p"&&!o?s.push(...c.children):s.push(c)}const l=r[r.length-1];l&&(o||l.type!=="element"||l.tagName!=="p")&&s.push({type:"text",value:`
|
|
703
|
+
`});const u={type:"element",tagName:"li",properties:i,children:s};return e.patch(t,u),e.applyData(t,u)}function F9(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=q1(n[r])}return t}function q1(e){const t=e.spread;return t??e.children.length>1}function j9(e,t){const n={},r=e.all(t);let o=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++o<r.length;){const s=r[o];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)}function L9(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function B9(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function z9(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function V9(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],s),o.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=Ed(t.children[1]),l=y1(t.children[t.children.length-1]);a&&l&&(s.position={start:a,end:l}),o.push(s)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)}function G9(e,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,a=s?s.length:t.children.length;let l=-1;const u=[];for(;++l<a;){const f=t.children[l],d={},p=s?s[l]:void 0;p&&(d.align=p);let g={type:"element",tagName:i,properties:d,children:[]};f&&(g.children=e.all(f),e.patch(f,g),g=e.applyData(f,g)),u.push(g)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function $9(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const K1=9,Q1=32;function H9(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(ew(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(ew(t.slice(o),o>0,!1)),i.join("")}function ew(e,t,n){let r=0,o=e.length;if(t){let i=e.codePointAt(r);for(;i===K1||i===Q1;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(o-1);for(;i===K1||i===Q1;)o--,i=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}function W9(e,t){const n={type:"text",value:H9(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function X9(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Y9={blockquote:C9,break:_9,code:S9,delete:E9,emphasis:I9,footnoteReference:k9,heading:A9,html:T9,imageReference:N9,image:P9,inlineCode:O9,linkReference:R9,link:M9,listItem:D9,list:j9,paragraph:L9,root:B9,strong:z9,table:V9,tableCell:$9,tableRow:G9,text:W9,thematicBreak:X9,toml:ml,yaml:ml,definition:ml,footnoteDefinition:ml};function ml(){}const tw=-1,yl=0,rs=1,bl=2,Ld=3,Bd=4,zd=5,Vd=6,nw=7,rw=8,ow=typeof self=="object"?self:globalThis,U9=(e,t)=>{const n=(o,i)=>(e.set(i,o),o),r=o=>{if(e.has(o))return e.get(o);const[i,s]=t[o];switch(i){case yl:case tw:return n(s,o);case rs:{const a=n([],o);for(const l of s)a.push(r(l));return a}case bl:{const a=n({},o);for(const[l,u]of s)a[r(l)]=r(u);return a}case Ld:return n(new Date(s),o);case Bd:{const{source:a,flags:l}=s;return n(new RegExp(a,l),o)}case zd:{const a=n(new Map,o);for(const[l,u]of s)a.set(r(l),r(u));return a}case Vd:{const a=n(new Set,o);for(const l of s)a.add(r(l));return a}case nw:{const{name:a,message:l}=s;return n(new ow[a](l),o)}case rw:return n(BigInt(s),o);case"BigInt":return n(Object(BigInt(s)),o);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:a}=new Uint8Array(s);return n(new DataView(a),s)}}return n(new ow[i](s),o)};return r},iw=e=>U9(new Map,e)(0),Bo="",{toString:Z9}={},{keys:J9}=Object,os=e=>{const t=typeof e;if(t!=="object"||!e)return[yl,t];const n=Z9.call(e).slice(8,-1);switch(n){case"Array":return[rs,Bo];case"Object":return[bl,Bo];case"Date":return[Ld,Bo];case"RegExp":return[Bd,Bo];case"Map":return[zd,Bo];case"Set":return[Vd,Bo];case"DataView":return[rs,n]}return n.includes("Array")?[rs,n]:n.includes("Error")?[nw,n]:[bl,n]},vl=([e,t])=>e===yl&&(t==="function"||t==="symbol"),q9=(e,t,n,r)=>{const o=(s,a)=>{const l=r.push(s)-1;return n.set(a,l),l},i=s=>{if(n.has(s))return n.get(s);let[a,l]=os(s);switch(a){case yl:{let c=s;switch(l){case"bigint":a=rw,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return o([tw],s)}return o([a,c],s)}case rs:{if(l){let d=s;return l==="DataView"?d=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(d=new Uint8Array(s)),o([l,[...d]],s)}const c=[],f=o([a,c],s);for(const d of s)c.push(i(d));return f}case bl:{if(l)switch(l){case"BigInt":return o([l,s.toString()],s);case"Boolean":case"Number":case"String":return o([l,s.valueOf()],s)}if(t&&"toJSON"in s)return i(s.toJSON());const c=[],f=o([a,c],s);for(const d of J9(s))(e||!vl(os(s[d])))&&c.push([i(d),i(s[d])]);return f}case Ld:return o([a,s.toISOString()],s);case Bd:{const{source:c,flags:f}=s;return o([a,{source:c,flags:f}],s)}case zd:{const c=[],f=o([a,c],s);for(const[d,p]of s)(e||!(vl(os(d))||vl(os(p))))&&c.push([i(d),i(p)]);return f}case Vd:{const c=[],f=o([a,c],s);for(const d of s)(e||!vl(os(d)))&&c.push(i(d));return f}}const{message:u}=s;return o([a,{name:l,message:u}],s)};return i},sw=(e,{json:t,lossy:n}={})=>{const r=[];return q9(!(t||n),!!t,new Map,r)(e),r},xl=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?iw(sw(e,t)):structuredClone(e):(e,t)=>iw(sw(e,t));function K9(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Q9(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function ez(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||K9,r=e.options.footnoteBackLabel||Q9,o=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let l=-1;for(;++l<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;const c=e.all(u),f=String(u.identifier).toUpperCase(),d=jo(f.toLowerCase());let p=0;const g=[],h=e.footnoteCounts.get(f);for(;h!==void 0&&++p<=h;){g.length>0&&g.push({type:"text",value:" "});let x=typeof n=="string"?n:n(l,p);typeof x=="string"&&(x={type:"text",value:x}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,p),className:["data-footnote-backref"]},children:Array.isArray(x)?x:[x]})}const y=c[c.length-1];if(y&&y.type==="element"&&y.tagName==="p"){const x=y.children[y.children.length-1];x&&x.type==="text"?x.value+=" ":y.children.push({type:"text",value:" "}),y.children.push(...g)}else c.push(...g);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(c,!0)};e.patch(u,m),a.push(m)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...xl(s),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
|
|
704
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
|
|
705
|
+
`}]}}const wl=function(e){if(e==null)return oz;if(typeof e=="function")return Cl(e);if(typeof e=="object")return Array.isArray(e)?tz(e):nz(e);if(typeof e=="string")return rz(e);throw new Error("Expected function, string, or object as test")};function tz(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=wl(e[n]);return Cl(r);function r(...o){let i=-1;for(;++i<t.length;)if(t[i].apply(this,o))return!0;return!1}}function nz(e){const t=e;return Cl(n);function n(r){const o=r;let i;for(i in e)if(o[i]!==t[i])return!1;return!0}}function rz(e){return Cl(t);function t(n){return n&&n.type===e}}function Cl(e){return t;function t(n,r,o){return!!(iz(n)&&e.call(this,n,typeof r=="number"?r:void 0,o||void 0))}}function oz(){return!0}function iz(e){return e!==null&&typeof e=="object"&&"type"in e}function tq(e){return e}const aw=[],sz=!0,Gd=!1,az="skip";function lw(e,t,n,r){let o;typeof t=="function"&&typeof n!="function"?(r=n,n=t):o=t;const i=wl(o),s=r?-1:1;a(e,void 0,[])();function a(l,u,c){const f=l&&typeof l=="object"?l:{};if(typeof f.type=="string"){const p=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(l.type+(p?"<"+p+">":""))+")"})}return d;function d(){let p=aw,g,h,y;if((!t||i(l,u,c[c.length-1]||void 0))&&(p=lz(n(l,c)),p[0]===Gd))return p;if("children"in l&&l.children){const m=l;if(m.children&&p[0]!==az)for(h=(r?m.children.length:-1)+s,y=c.concat(m);h>-1&&h<m.children.length;){const x=m.children[h];if(g=a(x,h,y)(),g[0]===Gd)return g;h=typeof g[1]=="number"?g[1]:h+s}}return p}}}function lz(e){return Array.isArray(e)?e:typeof e=="number"?[sz,e]:e==null?aw:[e]}function $d(e,t,n,r){let o,i,s;typeof t=="function"?(i=void 0,s=t,o=n):(i=t,s=n,o=r),lw(e,i,a,o);function a(l,u){const c=u[u.length-1],f=c?c.children.indexOf(l):void 0;return s(l,f,c)}}const Hd={}.hasOwnProperty,uz={};function cz(e,t){const n=t||uz,r=new Map,o=new Map,i=new Map,s={...Y9,...n.handlers},a={all:u,applyData:dz,definitionById:r,footnoteById:o,footnoteCounts:i,footnoteOrder:[],handlers:s,one:l,options:n,patch:fz,wrap:hz};return $d(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const f=c.type==="definition"?r:o,d=String(c.identifier).toUpperCase();f.has(d)||f.set(d,c)}}),a;function l(c,f){const d=c.type,p=a.handlers[d];if(Hd.call(a.handlers,d)&&p)return p(a,c,f);if(a.options.passThrough&&a.options.passThrough.includes(d)){if("children"in c){const{children:h,...y}=c,m=xl(y);return m.children=a.all(c),m}return xl(c)}return(a.options.unknownHandler||pz)(a,c,f)}function u(c){const f=[];if("children"in c){const d=c.children;let p=-1;for(;++p<d.length;){const g=a.one(d[p],c);if(g){if(p&&d[p-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=uw(g.value)),!Array.isArray(g)&&g.type==="element")){const h=g.children[0];h&&h.type==="text"&&(h.value=uw(h.value))}Array.isArray(g)?f.push(...g):f.push(g)}}}return f}}function fz(e,t){e.position&&(t.position=lL(e))}function dz(e,t){let n=t;if(e&&e.data){const r=e.data.hName,o=e.data.hChildren,i=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const s="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:s}}n.type==="element"&&i&&Object.assign(n.properties,xl(i)),"children"in n&&n.children&&o!==null&&o!==void 0&&(n.children=o)}return n}function pz(e,t){const n=t.data||{},r="value"in t&&!(Hd.call(n,"hProperties")||Hd.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function hz(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
706
|
+
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
707
|
+
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
708
|
+
`}),n}function uw(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function cw(e,t){const n=cz(e,t),r=n.one(e,void 0),o=ez(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&i.children.push({type:"text",value:`
|
|
709
|
+
`},o),i}function gz(e,t){return e&&"run"in e?async function(n,r){const o=cw(n,{file:r,...t});await e.run(o,r)}:function(n,r){return cw(n,{file:r,...e||t})}}function fw(e){if(e)throw e}var Wd,dw;function mz(){if(dw)return Wd;dw=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(u){return typeof Array.isArray=="function"?Array.isArray(u):t.call(u)==="[object Array]"},i=function(u){if(!u||t.call(u)!=="[object Object]")return!1;var c=e.call(u,"constructor"),f=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!c&&!f)return!1;var d;for(d in u);return typeof d>"u"||e.call(u,d)},s=function(u,c){n&&c.name==="__proto__"?n(u,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):u[c.name]=c.newValue},a=function(u,c){if(c==="__proto__")if(e.call(u,c)){if(r)return r(u,c).value}else return;return u[c]};return Wd=function l(){var u,c,f,d,p,g,h=arguments[0],y=1,m=arguments.length,x=!1;for(typeof h=="boolean"&&(x=h,h=arguments[1]||{},y=2),(h==null||typeof h!="object"&&typeof h!="function")&&(h={});y<m;++y)if(u=arguments[y],u!=null)for(c in u)f=a(h,c),d=a(u,c),h!==d&&(x&&d&&(i(d)||(p=o(d)))?(p?(p=!1,g=f&&o(f)?f:[]):g=f&&i(f)?f:{},s(h,{name:c,newValue:l(x,g,d)})):typeof d<"u"&&s(h,{name:c,newValue:d}));return h},Wd}var yz=mz();const Xd=ks(yz);function Yd(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function bz(){const e=[],t={run:n,use:r};return t;function n(...o){let i=-1;const s=o.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);a(null,...o);function a(l,...u){const c=e[++i];let f=-1;if(l){s(l);return}for(;++f<o.length;)(u[f]===null||u[f]===void 0)&&(u[f]=o[f]);o=u,c?vz(c,a)(...u):s(null,...u)}}function r(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),t}}function vz(e,t){let n;return r;function r(...s){const a=e.length>s.length;let l;a&&s.push(o);try{l=e.apply(this,s)}catch(u){const c=u;if(a&&n)throw c;return o(c)}a||(l&&l.then&&typeof l.then=="function"?l.then(i,o):l instanceof Error?o(l):i(l))}function o(s,...a){n||(n=!0,t(s,...a))}function i(s){o(null,s)}}const vn={basename:xz,dirname:wz,extname:Cz,join:_z,sep:"/"};function xz(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');is(e);let n=0,r=-1,o=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(i){n=o+1;break}}else r<0&&(i=!0,r=o+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,a=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(i){n=o+1;break}}else s<0&&(i=!0,s=o+1),a>-1&&(e.codePointAt(o)===t.codePointAt(a--)?a<0&&(r=o):(a=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function wz(e){if(is(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Cz(e){is(e);let t=e.length,n=-1,r=0,o=-1,i=0,s;for(;t--;){const a=e.codePointAt(t);if(a===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),a===46?o<0?o=t:i!==1&&(i=1):o>-1&&(i=-1)}return o<0||n<0||i===0||i===1&&o===n-1&&o===r+1?"":e.slice(o,n)}function _z(...e){let t=-1,n;for(;++t<e.length;)is(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Sz(n)}function Sz(e){is(e);const t=e.codePointAt(0)===47;let n=Ez(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Ez(e,t){let n="",r=0,o=-1,i=0,s=-1,a,l;for(;++s<=e.length;){if(s<e.length)a=e.codePointAt(s);else{if(a===47)break;a=47}if(a===47){if(!(o===s-1||i===1))if(o!==s-1&&i===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),o=s,i=0;continue}}else if(n.length>0){n="",r=0,o=s,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(o+1,s):n=e.slice(o+1,s),r=s-o-1;o=s,i=0}else a===46&&i>-1?i++:i=-1}return n}function is(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Iz={cwd:kz};function kz(){return"/"}function Ud(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Az(e){if(typeof e=="string")e=new URL(e);else if(!Ud(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Tz(e)}function Tz(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(t)}const Zd=["history","path","basename","stem","extname","dirname"];class pw{constructor(t){let n;t?Ud(t)?n={path:t}:typeof t=="string"||Nz(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Iz.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Zd.length;){const i=Zd[r];i in n&&n[i]!==void 0&&n[i]!==null&&(this[i]=i==="history"?[...n[i]]:n[i])}let o;for(o in n)Zd.includes(o)||(this[o]=n[o])}get basename(){return typeof this.path=="string"?vn.basename(this.path):void 0}set basename(t){qd(t,"basename"),Jd(t,"basename"),this.path=vn.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?vn.dirname(this.path):void 0}set dirname(t){hw(this.basename,"dirname"),this.path=vn.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?vn.extname(this.path):void 0}set extname(t){if(Jd(t,"extname"),hw(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=vn.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Ud(t)&&(t=Az(t)),qd(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?vn.basename(this.path,this.extname):void 0}set stem(t){qd(t,"stem"),Jd(t,"stem"),this.path=vn.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const o=this.message(t,n,r);throw o.fatal=!0,o}info(t,n,r){const o=this.message(t,n,r);return o.fatal=void 0,o}message(t,n,r){const o=new st(t,n,r);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Jd(e,t){if(e&&e.includes(vn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+vn.sep+"`")}function qd(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function hw(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Nz(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Pz=function(e){const r=this.constructor.prototype,o=r[e],i=function(){return o.apply(i,arguments)};return Object.setPrototypeOf(i,r),i},Oz={}.hasOwnProperty;class Kd extends Pz{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=bz()}copy(){const t=new Kd;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Xd(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(tp("data",this.frozen),this.namespace[t]=n,this):Oz.call(this.namespace,t)&&this.namespace[t]||void 0:t?(tp("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const o=n.call(t,...r);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=_l(t),r=this.parser||this.Parser;return Qd("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Qd("process",this.parser||this.Parser),ep("process",this.compiler||this.Compiler),n?o(void 0,n):new Promise(o);function o(i,s){const a=_l(t),l=r.parse(a);r.run(l,a,function(c,f,d){if(c||!f||!d)return u(c);const p=f,g=r.stringify(p,d);Dz(g)?d.value=g:d.result=g,u(c,d)});function u(c,f){c||!f?s(c):i?i(f):n(void 0,f)}}}processSync(t){let n=!1,r;return this.freeze(),Qd("processSync",this.parser||this.Parser),ep("processSync",this.compiler||this.Compiler),this.process(t,o),mw("processSync","process",n),r;function o(i,s){n=!0,fw(i),r=s}}run(t,n,r){gw(t),this.freeze();const o=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?i(void 0,r):new Promise(i);function i(s,a){const l=_l(n);o.run(t,l,u);function u(c,f,d){const p=f||t;c?a(c):s?s(p):r(void 0,p,d)}}}runSync(t,n){let r=!1,o;return this.run(t,n,i),mw("runSync","run",r),o;function i(s,a){fw(s),o=a,r=!0}}stringify(t,n){this.freeze();const r=_l(n),o=this.compiler||this.Compiler;return ep("stringify",o),gw(t),o(t,r)}use(t,...n){const r=this.attachers,o=this.namespace;if(tp("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...f]=u;l(c,f)}else s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(u.plugins),u.settings&&(o.settings=Xd(!0,o.settings,u.settings))}function a(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const f=u[c];i(f)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let f=-1,d=-1;for(;++f<r.length;)if(r[f][0]===u){d=f;break}if(d===-1)r.push([u,...c]);else if(c.length>0){let[p,...g]=c;const h=r[d][1];Yd(h)&&Yd(p)&&(p=Xd(!0,h,p)),r[d]=[u,p,...g]}}}}const Rz=new Kd().freeze();function Qd(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function ep(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function tp(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function gw(e){if(!Yd(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function mw(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function _l(e){return Mz(e)?e:new pw(e)}function Mz(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Dz(e){return typeof e=="string"||Fz(e)}function Fz(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const jz="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",yw=[],bw={allowDangerousHtml:!0},Lz=/^(https?|ircs?|mailto|xmpp)$/i,Bz=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function zz(e){const t=Vz(e),n=Gz(e);return $z(t.runSync(t.parse(n),n),e)}function Vz(e){const t=e.rehypePlugins||yw,n=e.remarkPlugins||yw,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...bw}:bw;return Rz().use(w9).use(n).use(gz,r).use(t)}function Gz(e){const t=e.children||"",n=new pw;return typeof t=="string"&&(n.value=t),n}function $z(e,t){const n=t.allowedElements,r=t.allowElement,o=t.components,i=t.disallowedElements,s=t.skipHtml,a=t.unwrapDisallowed,l=t.urlTransform||Hz;for(const c of Bz)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+jz+c.id,void 0);return $d(e,u),pL(e,{Fragment:b.Fragment,components:o,ignoreInvalidStyle:!0,jsx:b.jsx,jsxs:b.jsxs,passKeys:!0,passNode:!0});function u(c,f,d){if(c.type==="raw"&&d&&typeof f=="number")return s?d.children.splice(f,1):d.children[f]={type:"text",value:c.value},f;if(c.type==="element"){let p;for(p in Nd)if(Object.hasOwn(Nd,p)&&Object.hasOwn(c.properties,p)){const g=c.properties[p],h=Nd[p];(h===null||h.includes(c.tagName))&&(c.properties[p]=l(String(g||""),p,c))}}if(c.type==="element"){let p=n?!n.includes(c.tagName):i?i.includes(c.tagName):!1;if(!p&&r&&typeof f=="number"&&(p=!r(c,f,d)),p&&d&&typeof f=="number")return a&&c.children?d.children.splice(f,1,...c.children):d.children.splice(f,1),f}}}function Hz(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return t===-1||o!==-1&&t>o||n!==-1&&t>n||r!==-1&&t>r||Lz.test(e.slice(0,t))?e:""}function vw(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;o!==-1;)r++,o=n.indexOf(t,o+t.length);return r}function Wz(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Xz(e,t,n){const o=wl((n||{}).ignore||[]),i=Yz(t);let s=-1;for(;++s<i.length;)lw(e,"text",a);function a(u,c){let f=-1,d;for(;++f<c.length;){const p=c[f],g=d?d.children:void 0;if(o(p,g?g.indexOf(p):void 0,d))return;d=p}if(d)return l(u,c)}function l(u,c){const f=c[c.length-1],d=i[s][0],p=i[s][1];let g=0;const y=f.children.indexOf(u);let m=!1,x=[];d.lastIndex=0;let v=d.exec(u.value);for(;v;){const C=v.index,S={index:v.index,input:v.input,stack:[...c,u]};let E=p(...v,S);if(typeof E=="string"&&(E=E.length>0?{type:"text",value:E}:void 0),E===!1?d.lastIndex=C+1:(g!==C&&x.push({type:"text",value:u.value.slice(g,C)}),Array.isArray(E)?x.push(...E):E&&x.push(E),g=C+v[0].length,m=!0),!d.global)break;v=d.exec(u.value)}return m?(g<u.value.length&&x.push({type:"text",value:u.value.slice(g)}),f.children.splice(y,1,...x)):x=[u],y+x.length}}function Yz(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const o=n[r];t.push([Uz(o[0]),Zz(o[1])])}return t}function Uz(e){return typeof e=="string"?new RegExp(Wz(e),"g"):e}function Zz(e){return typeof e=="function"?e:function(){return e}}const np="phrasing",rp=["autolink","link","image","label"];function Jz(){return{transforms:[rV],enter:{literalAutolink:Kz,literalAutolinkEmail:op,literalAutolinkHttp:op,literalAutolinkWww:op},exit:{literalAutolink:nV,literalAutolinkEmail:tV,literalAutolinkHttp:Qz,literalAutolinkWww:eV}}}function qz(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:np,notInConstruct:rp},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:np,notInConstruct:rp},{character:":",before:"[ps]",after:"\\/",inConstruct:np,notInConstruct:rp}]}}function Kz(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function op(e){this.config.enter.autolinkProtocol.call(this,e)}function Qz(e){this.config.exit.autolinkProtocol.call(this,e)}function eV(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function tV(e){this.config.exit.autolinkEmail.call(this,e)}function nV(e){this.exit(e)}function rV(e){Xz(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,oV],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),iV]],{ignore:["link","linkReference"]})}function oV(e,t,n,r,o){let i="";if(!xw(o)||(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!sV(n)))return!1;const s=aV(n+r);if(!s[0])return!1;const a={type:"link",title:null,url:i+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[a,{type:"text",value:s[1]}]:a}function iV(e,t,n,r){return!xw(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function sV(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function aV(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const o=vw(e,"(");let i=vw(e,")");for(;r!==-1&&o>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[e,n]}function xw(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||$r(n)||pl(n))&&(!t||n!==47)}ww.peek=mV;function lV(){this.buffer()}function uV(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function cV(){this.buffer()}function fV(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function dV(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=en(this.sliceSerialize(e)).toLowerCase(),n.label=t}function pV(e){this.exit(e)}function hV(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=en(this.sliceSerialize(e)).toLowerCase(),n.label=t}function gV(e){this.exit(e)}function mV(){return"["}function ww(e,t,n,r){const o=n.createTracker(r);let i=o.move("[^");const s=n.enter("footnoteReference"),a=n.enter("reference");return i+=o.move(n.safe(n.associationId(e),{after:"]",before:i})),a(),s(),i+=o.move("]"),i}function yV(){return{enter:{gfmFootnoteCallString:lV,gfmFootnoteCall:uV,gfmFootnoteDefinitionLabelString:cV,gfmFootnoteDefinition:fV},exit:{gfmFootnoteCallString:dV,gfmFootnoteCall:pV,gfmFootnoteDefinitionLabelString:hV,gfmFootnoteDefinition:gV}}}function bV(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:ww},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,o,i,s){const a=i.createTracker(s);let l=a.move("[^");const u=i.enter("footnoteDefinition"),c=i.enter("label");return l+=a.move(i.safe(i.associationId(r),{before:l,after:"]"})),c(),l+=a.move("]:"),r.children&&r.children.length>0&&(a.shift(4),l+=a.move((t?`
|
|
710
|
+
`:" ")+i.indentLines(i.containerFlow(r,a.current()),t?Cw:vV))),u(),l}}function vV(e,t,n){return t===0?e:Cw(e,t,n)}function Cw(e,t,n){return(n?"":" ")+e}const xV=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];_w.peek=EV;function wV(){return{canContainEols:["delete"],enter:{strikethrough:_V},exit:{strikethrough:SV}}}function CV(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:xV}],handlers:{delete:_w}}}function _V(e){this.enter({type:"delete",children:[]},e)}function SV(e){this.exit(e)}function _w(e,t,n,r){const o=n.createTracker(r),i=n.enter("strikethrough");let s=o.move("~~");return s+=n.containerPhrasing(e,{...o.current(),before:s,after:"~"}),s+=o.move("~~"),i(),s}function EV(){return"~"}function IV(e){return e.length}function kV(e,t){const n=t||{},r=(n.align||[]).concat(),o=n.stringLength||IV,i=[],s=[],a=[],l=[];let u=0,c=-1;for(;++c<e.length;){const h=[],y=[];let m=-1;for(e[c].length>u&&(u=e[c].length);++m<e[c].length;){const x=AV(e[c][m]);if(n.alignDelimiters!==!1){const v=o(x);y[m]=v,(l[m]===void 0||v>l[m])&&(l[m]=v)}h.push(x)}s[c]=h,a[c]=y}let f=-1;if(typeof r=="object"&&"length"in r)for(;++f<u;)i[f]=Sw(r[f]);else{const h=Sw(r);for(;++f<u;)i[f]=h}f=-1;const d=[],p=[];for(;++f<u;){const h=i[f];let y="",m="";h===99?(y=":",m=":"):h===108?y=":":h===114&&(m=":");let x=n.alignDelimiters===!1?1:Math.max(1,l[f]-y.length-m.length);const v=y+"-".repeat(x)+m;n.alignDelimiters!==!1&&(x=y.length+x+m.length,x>l[f]&&(l[f]=x),p[f]=x),d[f]=v}s.splice(1,0,d),a.splice(1,0,p),c=-1;const g=[];for(;++c<s.length;){const h=s[c],y=a[c];f=-1;const m=[];for(;++f<u;){const x=h[f]||"";let v="",C="";if(n.alignDelimiters!==!1){const S=l[f]-(y[f]||0),E=i[f];E===114?v=" ".repeat(S):E===99?S%2?(v=" ".repeat(S/2+.5),C=" ".repeat(S/2-.5)):(v=" ".repeat(S/2),C=v):C=" ".repeat(S)}n.delimiterStart!==!1&&!f&&m.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&x==="")&&(n.delimiterStart!==!1||f)&&m.push(" "),n.alignDelimiters!==!1&&m.push(v),m.push(x),n.alignDelimiters!==!1&&m.push(C),n.padding!==!1&&m.push(" "),(n.delimiterEnd!==!1||f!==u-1)&&m.push("|")}g.push(n.delimiterEnd===!1?m.join("").replace(/ +$/,""):m.join(""))}return g.join(`
|
|
711
|
+
`)}function AV(e){return e==null?"":String(e)}function Sw(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function TV(e,t,n,r){const o=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const s=n.indentLines(n.containerFlow(e,i.current()),NV);return o(),s}function NV(e,t,n){return">"+(n?"":" ")+e}function PV(e,t){return Ew(e,t.inConstruct,!0)&&!Ew(e,t.notInConstruct,!1)}function Ew(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Iw(e,t,n,r){let o=-1;for(;++o<n.unsafe.length;)if(n.unsafe[o].character===`
|
|
712
|
+
`&&PV(n.stack,n.unsafe[o]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
713
|
+
`}function OV(e,t){const n=String(e);let r=n.indexOf(t),o=r,i=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===o?++i>s&&(s=i):i=1,o=r+t.length,r=n.indexOf(t,o);return s}function RV(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function MV(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function DV(e,t,n,r){const o=MV(n),i=e.value||"",s=o==="`"?"GraveAccent":"Tilde";if(RV(e,n)){const f=n.enter("codeIndented"),d=n.indentLines(i,FV);return f(),d}const a=n.createTracker(r),l=o.repeat(Math.max(OV(i,o)+1,3)),u=n.enter("codeFenced");let c=a.move(l);if(e.lang){const f=n.enter(`codeFencedLang${s}`);c+=a.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...a.current()})),f()}if(e.lang&&e.meta){const f=n.enter(`codeFencedMeta${s}`);c+=a.move(" "),c+=a.move(n.safe(e.meta,{before:c,after:`
|
|
714
|
+
`,encode:["`"],...a.current()})),f()}return c+=a.move(`
|
|
715
|
+
`),i&&(c+=a.move(i+`
|
|
716
|
+
`)),c+=a.move(l),u(),c}function FV(e,t,n){return(n?"":" ")+e}function ip(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function jV(e,t,n,r){const o=ip(n),i=o==='"'?"Quote":"Apostrophe",s=n.enter("definition");let a=n.enter("label");const l=n.createTracker(r);let u=l.move("[");return u+=l.move(n.safe(n.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(a=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":`
|
|
717
|
+
`,...l.current()}))),a(),e.title&&(a=n.enter(`title${i}`),u+=l.move(" "+o),u+=l.move(n.safe(e.title,{before:u,after:o,...l.current()})),u+=l.move(o),a()),s(),u}function LV(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function ss(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Sl(e,t,n){const r=Lo(e),o=Lo(t);return r===void 0?o===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}kw.peek=BV;function kw(e,t,n,r){const o=LV(n),i=n.enter("emphasis"),s=n.createTracker(r),a=s.move(o);let l=s.move(n.containerPhrasing(e,{after:o,before:a,...s.current()}));const u=l.charCodeAt(0),c=Sl(r.before.charCodeAt(r.before.length-1),u,o);c.inside&&(l=ss(u)+l.slice(1));const f=l.charCodeAt(l.length-1),d=Sl(r.after.charCodeAt(0),f,o);d.inside&&(l=l.slice(0,-1)+ss(f));const p=s.move(o);return i(),n.attentionEncodeSurroundingInfo={after:d.outside,before:c.outside},a+l+p}function BV(e,t,n){return n.options.emphasis||"*"}function zV(e,t){let n=!1;return $d(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Gd}),!!((!e.depth||e.depth<3)&&Pd(e)&&(t.options.setext||n))}function VV(e,t,n,r){const o=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(zV(e,n)){const c=n.enter("headingSetext"),f=n.enter("phrasing"),d=n.containerPhrasing(e,{...i.current(),before:`
|
|
718
|
+
`,after:`
|
|
719
|
+
`});return f(),c(),d+`
|
|
720
|
+
`+(o===1?"=":"-").repeat(d.length-(Math.max(d.lastIndexOf("\r"),d.lastIndexOf(`
|
|
721
|
+
`))+1))}const s="#".repeat(o),a=n.enter("headingAtx"),l=n.enter("phrasing");i.move(s+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
|
|
722
|
+
`,...i.current()});return/^[\t ]/.test(u)&&(u=ss(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,n.options.closeAtx&&(u+=" "+s),l(),a(),u}Aw.peek=GV;function Aw(e){return e.value||""}function GV(){return"<"}Tw.peek=$V;function Tw(e,t,n,r){const o=ip(n),i=o==='"'?"Quote":"Apostrophe",s=n.enter("image");let a=n.enter("label");const l=n.createTracker(r);let u=l.move("![");return u+=l.move(n.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(a=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),a(),e.title&&(a=n.enter(`title${i}`),u+=l.move(" "+o),u+=l.move(n.safe(e.title,{before:u,after:o,...l.current()})),u+=l.move(o),a()),u+=l.move(")"),s(),u}function $V(){return"!"}Nw.peek=HV;function Nw(e,t,n,r){const o=e.referenceType,i=n.enter("imageReference");let s=n.enter("label");const a=n.createTracker(r);let l=a.move("![");const u=n.safe(e.alt,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return s(),n.stack=c,i(),o==="full"||!u||u!==f?l+=a.move(f+"]"):o==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function HV(){return"!"}Pw.peek=WV;function Pw(e,t,n){let r=e.value||"",o="`",i=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const s=n.unsafe[i],a=n.compilePattern(s);let l;if(s.atBreak)for(;l=a.exec(r);){let u=l.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(l.index+1)}}return o+r+o}function WV(){return"`"}function Ow(e,t){const n=Pd(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Rw.peek=XV;function Rw(e,t,n,r){const o=ip(n),i=o==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let a,l;if(Ow(e,n)){const c=n.stack;n.stack=[],a=n.enter("autolink");let f=s.move("<");return f+=s.move(n.containerPhrasing(e,{before:f,after:">",...s.current()})),f+=s.move(">"),a(),n.stack=c,f}a=n.enter("link"),l=n.enter("label");let u=s.move("[");return u+=s.move(n.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=n.enter(`title${i}`),u+=s.move(" "+o),u+=s.move(n.safe(e.title,{before:u,after:o,...s.current()})),u+=s.move(o),l()),u+=s.move(")"),a(),u}function XV(e,t,n){return Ow(e,n)?"<":"["}Mw.peek=YV;function Mw(e,t,n,r){const o=e.referenceType,i=n.enter("linkReference");let s=n.enter("label");const a=n.createTracker(r);let l=a.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return s(),n.stack=c,i(),o==="full"||!u||u!==f?l+=a.move(f+"]"):o==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function YV(){return"["}function sp(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function UV(e){const t=sp(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function ZV(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Dw(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function JV(e,t,n,r){const o=n.enter("list"),i=n.bulletCurrent;let s=e.ordered?ZV(n):sp(n);const a=e.ordered?s==="."?")":".":UV(n);let l=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&c&&(!c.children||!c.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),Dw(n)===s&&c){let f=-1;for(;++f<e.children.length;){const d=e.children[f];if(d&&d.type==="listItem"&&d.children&&d.children[0]&&d.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(s=a),n.bulletCurrent=s;const u=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=i,o(),u}function qV(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function KV(e,t,n,r){const o=qV(n);let i=n.bulletCurrent||sp(n);t&&t.type==="list"&&t.ordered&&(i=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+i);let s=i.length+1;(o==="tab"||o==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const a=n.createTracker(r);a.move(i+" ".repeat(s-i.length)),a.shift(s);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,a.current()),c);return l(),u;function c(f,d,p){return d?(p?"":" ".repeat(s))+f:(p?i:i+" ".repeat(s-i.length))+f}}function QV(e,t,n,r){const o=n.enter("paragraph"),i=n.enter("phrasing"),s=n.containerPhrasing(e,r);return i(),o(),s}const eG=wl(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function tG(e,t,n,r){return(e.children.some(function(s){return eG(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function nG(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Fw.peek=rG;function Fw(e,t,n,r){const o=nG(n),i=n.enter("strong"),s=n.createTracker(r),a=s.move(o+o);let l=s.move(n.containerPhrasing(e,{after:o,before:a,...s.current()}));const u=l.charCodeAt(0),c=Sl(r.before.charCodeAt(r.before.length-1),u,o);c.inside&&(l=ss(u)+l.slice(1));const f=l.charCodeAt(l.length-1),d=Sl(r.after.charCodeAt(0),f,o);d.inside&&(l=l.slice(0,-1)+ss(f));const p=s.move(o+o);return i(),n.attentionEncodeSurroundingInfo={after:d.outside,before:c.outside},a+l+p}function rG(e,t,n){return n.options.strong||"*"}function oG(e,t,n,r){return n.safe(e.value,r)}function iG(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function sG(e,t,n){const r=(Dw(n)+(n.options.ruleSpaces?" ":"")).repeat(iG(n));return n.options.ruleSpaces?r.slice(0,-1):r}const jw={blockquote:TV,break:Iw,code:DV,definition:jV,emphasis:kw,hardBreak:Iw,heading:VV,html:Aw,image:Tw,imageReference:Nw,inlineCode:Pw,link:Rw,linkReference:Mw,list:JV,listItem:KV,paragraph:QV,root:tG,strong:Fw,text:oG,thematicBreak:sG};function aG(){return{enter:{table:lG,tableData:Lw,tableHeader:Lw,tableRow:cG},exit:{codeText:fG,table:uG,tableData:ap,tableHeader:ap,tableRow:ap}}}function lG(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function uG(e){this.exit(e),this.data.inTable=void 0}function cG(e){this.enter({type:"tableRow",children:[]},e)}function ap(e){this.exit(e)}function Lw(e){this.enter({type:"tableCell",children:[]},e)}function fG(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,dG));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function dG(e,t){return t==="|"?t:e}function pG(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
723
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:d,table:s,tableCell:l,tableRow:a}};function s(p,g,h,y){return u(c(p,h,y),p.align)}function a(p,g,h,y){const m=f(p,h,y),x=u([m]);return x.slice(0,x.indexOf(`
|
|
724
|
+
`))}function l(p,g,h,y){const m=h.enter("tableCell"),x=h.enter("phrasing"),v=h.containerPhrasing(p,{...y,before:i,after:i});return x(),m(),v}function u(p,g){return kV(p,{align:g,alignDelimiters:r,padding:n,stringLength:o})}function c(p,g,h){const y=p.children;let m=-1;const x=[],v=g.enter("table");for(;++m<y.length;)x[m]=f(y[m],g,h);return v(),x}function f(p,g,h){const y=p.children;let m=-1;const x=[],v=g.enter("tableRow");for(;++m<y.length;)x[m]=l(y[m],p,g,h);return v(),x}function d(p,g,h){let y=jw.inlineCode(p,g,h);return h.stack.includes("tableCell")&&(y=y.replace(/\|/g,"\\$&")),y}}function hG(){return{exit:{taskListCheckValueChecked:Bw,taskListCheckValueUnchecked:Bw,paragraph:mG}}}function gG(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:yG}}}function Bw(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function mG(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const o=t.children;let i=-1,s;for(;++i<o.length;){const a=o[i];if(a.type==="paragraph"){s=a;break}}s===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function yG(e,t,n,r){const o=e.children[0],i=typeof e.checked=="boolean"&&o&&o.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);i&&a.move(s);let l=jw.listItem(e,t,n,{...r,...a.current()});return i&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+s}}function bG(){return[Jz(),yV(),wV(),aG(),hG()]}function vG(e){return{extensions:[qz(),bV(e),CV(),pG(e),gG()]}}const xG={tokenize:IG,partial:!0},zw={tokenize:kG,partial:!0},Vw={tokenize:AG,partial:!0},Gw={tokenize:TG,partial:!0},wG={tokenize:NG,partial:!0},$w={name:"wwwAutolink",tokenize:SG,previous:Ww},Hw={name:"protocolAutolink",tokenize:EG,previous:Xw},Gn={name:"emailAutolink",tokenize:_G,previous:Yw},xn={};function CG(){return{text:xn}}let Hr=48;for(;Hr<123;)xn[Hr]=Gn,Hr++,Hr===58?Hr=65:Hr===91&&(Hr=97);xn[43]=Gn,xn[45]=Gn,xn[46]=Gn,xn[95]=Gn,xn[72]=[Gn,Hw],xn[104]=[Gn,Hw],xn[87]=[Gn,$w],xn[119]=[Gn,$w];function _G(e,t,n){const r=this;let o,i;return s;function s(f){return!lp(f)||!Yw.call(r,r.previous)||up(r.events)?n(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(f))}function a(f){return lp(f)?(e.consume(f),a):f===64?(e.consume(f),l):n(f)}function l(f){return f===46?e.check(wG,c,u)(f):f===45||f===95||at(f)?(i=!0,e.consume(f),l):c(f)}function u(f){return e.consume(f),o=!0,l}function c(f){return i&&o&>(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):n(f)}}function SG(e,t,n){const r=this;return o;function o(s){return s!==87&&s!==119||!Ww.call(r,r.previous)||up(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(xG,e.attempt(zw,e.attempt(Vw,i),n),n)(s))}function i(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function EG(e,t,n){const r=this;let o="",i=!1;return s;function s(f){return(f===72||f===104)&&Xw.call(r,r.previous)&&!up(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(f),e.consume(f),a):n(f)}function a(f){if(gt(f)&&o.length<5)return o+=String.fromCodePoint(f),e.consume(f),a;if(f===58){const d=o.toLowerCase();if(d==="http"||d==="https")return e.consume(f),l}return n(f)}function l(f){return f===47?(e.consume(f),i?u:(i=!0,l)):n(f)}function u(f){return f===null||dl(f)||Re(f)||$r(f)||pl(f)?n(f):e.attempt(zw,e.attempt(Vw,c),n)(f)}function c(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function IG(e,t,n){let r=0;return o;function o(s){return(s===87||s===119)&&r<3?(r++,e.consume(s),o):s===46&&r===3?(e.consume(s),i):n(s)}function i(s){return s===null?n(s):t(s)}}function kG(e,t,n){let r,o,i;return s;function s(u){return u===46||u===95?e.check(Gw,l,a)(u):u===null||Re(u)||$r(u)||u!==45&&pl(u)?l(u):(i=!0,e.consume(u),s)}function a(u){return u===95?r=!0:(o=r,r=void 0),e.consume(u),s}function l(u){return o||r||!i?n(u):t(u)}}function AG(e,t){let n=0,r=0;return o;function o(s){return s===40?(n++,e.consume(s),o):s===41&&r<n?i(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(Gw,t,i)(s):s===null||Re(s)||$r(s)?t(s):(e.consume(s),o)}function i(s){return s===41&&r++,e.consume(s),o}}function TG(e,t,n){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),i):a===93?(e.consume(a),o):a===60||a===null||Re(a)||$r(a)?t(a):n(a)}function o(a){return a===null||a===40||a===91||Re(a)||$r(a)?t(a):r(a)}function i(a){return gt(a)?s(a):n(a)}function s(a){return a===59?(e.consume(a),r):gt(a)?(e.consume(a),s):n(a)}}function NG(e,t,n){return r;function r(i){return e.consume(i),o}function o(i){return at(i)?n(i):t(i)}}function Ww(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Re(e)}function Xw(e){return!gt(e)}function Yw(e){return!(e===47||lp(e))}function lp(e){return e===43||e===45||e===46||e===95||at(e)}function up(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const PG={tokenize:BG,partial:!0};function OG(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:FG,continuation:{tokenize:jG},exit:LG}},text:{91:{name:"gfmFootnoteCall",tokenize:DG},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:RG,resolveTo:MG}}}}function RG(e,t,n){const r=this;let o=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;o--;){const l=r.events[o][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return a;function a(l){if(!s||!s._balanced)return n(l);const u=en(r.sliceSerialize({start:s.end,end:r.now()}));return u.codePointAt(0)!==94||!i.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function MG(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",i,t],["enter",s,t],["exit",s,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function DG(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i=0,s;return a;function a(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),l}function l(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(f){if(i>999||f===93&&!s||f===null||f===91||Re(f))return n(f);if(f===93){e.exit("chunkString");const d=e.exit("gfmFootnoteCallString");return o.includes(en(r.sliceSerialize(d)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return Re(f)||(s=!0),i++,e.consume(f),f===92?c:u}function c(f){return f===91||f===92||f===93?(e.consume(f),i++,u):u(f)}}function FG(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,s=0,a;return l;function l(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(g)}function c(g){if(s>999||g===93&&!a||g===null||g===91||Re(g))return n(g);if(g===93){e.exit("chunkString");const h=e.exit("gfmFootnoteDefinitionLabelString");return i=en(r.sliceSerialize(h)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return Re(g)||(a=!0),s++,e.consume(g),g===92?f:c}function f(g){return g===91||g===92||g===93?(e.consume(g),s++,c):c(g)}function d(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),o.includes(i)||o.push(i),_e(e,p,"gfmFootnoteDefinitionWhitespace")):n(g)}function p(g){return t(g)}}function jG(e,t,n){return e.check(es,t,e.attempt(PG,t,n))}function LG(e){e.exit("gfmFootnoteDefinition")}function BG(e,t,n){const r=this;return _e(e,o,"gfmFootnoteDefinitionIndent",5);function o(i){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(i):n(i)}}function zG(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:i,resolveAll:o};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function o(s,a){let l=-1;for(;++l<s.length;)if(s[l][0]==="enter"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._close){let u=l;for(;u--;)if(s[u][0]==="exit"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[u][1].end.offset-s[u][1].start.offset){s[l][1].type="strikethroughSequence",s[u][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},s[u][1].start),end:Object.assign({},s[l][1].end)},f={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[l][1].start)},d=[["enter",c,a],["enter",s[u][1],a],["exit",s[u][1],a],["enter",f,a]],p=a.parser.constructs.insideSpan.null;p&&Pt(d,d.length,0,hl(p,s.slice(u+1,l),a)),Pt(d,d.length,0,[["exit",f,a],["enter",s[l][1],a],["exit",s[l][1],a],["exit",c,a]]),Pt(s,u-1,l-u+3,d),l=u+d.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type="data");return s}function i(s,a,l){const u=this.previous,c=this.events;let f=0;return d;function d(g){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(g):(s.enter("strikethroughSequenceTemporary"),p(g))}function p(g){const h=Lo(u);if(g===126)return f>1?l(g):(s.consume(g),f++,p);if(f<2&&!n)return l(g);const y=s.exit("strikethroughSequenceTemporary"),m=Lo(g);return y._open=!m||m===2&&!!h,y._close=!h||h===2&&!!m,a(g)}}}class VG{constructor(){this.map=[]}add(t,n,r){GG(this,t,n,r)}consume(t){if(this.map.sort(function(i,s){return i[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let o=r.pop();for(;o;){for(const i of o)t.push(i);o=r.pop()}this.map.length=0}}function GG(e,t,n,r){let o=0;if(!(n===0&&r.length===0)){for(;o<e.map.length;){if(e.map[o][0]===t){e.map[o][1]+=n,e.map[o][2].push(...r);return}o+=1}e.map.push([t,n,r])}}function $G(e,t){let n=!1;const r=[];for(;t<e.length;){const o=e[t];if(n){if(o[0]==="enter")o[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const i=r.length-1;r[i]=r[i]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function HG(){return{flow:{null:{name:"table",tokenize:WG,resolveAll:XG}}}}function WG(e,t,n){const r=this;let o=0,i=0,s;return a;function a(w){let N=r.events.length-1;for(;N>-1;){const A=r.events[N][1].type;if(A==="lineEnding"||A==="linePrefix")N--;else break}const R=N>-1?r.events[N][1].type:null,L=R==="tableHead"||R==="tableRow"?E:l;return L===E&&r.parser.lazy[r.now().line]?n(w):L(w)}function l(w){return e.enter("tableHead"),e.enter("tableRow"),u(w)}function u(w){return w===124||(s=!0,i+=1),c(w)}function c(w){return w===null?n(w):fe(w)?i>1?(i=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),p):n(w):we(w)?_e(e,c,"whitespace")(w):(i+=1,s&&(s=!1,o+=1),w===124?(e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),f(w)))}function f(w){return w===null||w===124||Re(w)?(e.exit("data"),c(w)):(e.consume(w),w===92?d:f)}function d(w){return w===92||w===124?(e.consume(w),f):f(w)}function p(w){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(w):(e.enter("tableDelimiterRow"),s=!1,we(w)?_e(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):g(w))}function g(w){return w===45||w===58?y(w):w===124?(s=!0,e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),h):S(w)}function h(w){return we(w)?_e(e,y,"whitespace")(w):y(w)}function y(w){return w===58?(i+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(w),e.exit("tableDelimiterMarker"),m):w===45?(i+=1,m(w)):w===null||fe(w)?C(w):S(w)}function m(w){return w===45?(e.enter("tableDelimiterFiller"),x(w)):S(w)}function x(w){return w===45?(e.consume(w),x):w===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(w),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(w))}function v(w){return we(w)?_e(e,C,"whitespace")(w):C(w)}function C(w){return w===124?g(w):w===null||fe(w)?!s||o!==i?S(w):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(w)):S(w)}function S(w){return n(w)}function E(w){return e.enter("tableRow"),I(w)}function I(w){return w===124?(e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),I):w===null||fe(w)?(e.exit("tableRow"),t(w)):we(w)?_e(e,I,"whitespace")(w):(e.enter("data"),O(w))}function O(w){return w===null||w===124||Re(w)?(e.exit("data"),I(w)):(e.consume(w),w===92?M:O)}function M(w){return w===92||w===124?(e.consume(w),O):O(w)}}function XG(e,t){let n=-1,r=!0,o=0,i=[0,0,0,0],s=[0,0,0,0],a=!1,l=0,u,c,f;const d=new VG;for(;++n<e.length;){const p=e[n],g=p[1];p[0]==="enter"?g.type==="tableHead"?(a=!1,l!==0&&(Uw(d,t,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},d.add(n,0,[["enter",u,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,f=void 0,i=[0,0,0,0],s=[0,n+1,0,0],a&&(a=!1,c={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},d.add(n,0,[["enter",c,t]])),o=g.type==="tableDelimiterRow"?2:c?3:1):o&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,s[2]===0&&(i[1]!==0&&(s[0]=s[1],f=El(d,t,i,o,void 0,f),i=[0,0,0,0]),s[2]=n)):g.type==="tableCellDivider"&&(r?r=!1:(i[1]!==0&&(s[0]=s[1],f=El(d,t,i,o,void 0,f)),i=s,s=[i[1],n,0,0])):g.type==="tableHead"?(a=!0,l=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(l=n,i[1]!==0?(s[0]=s[1],f=El(d,t,i,o,n,f)):s[1]!==0&&(f=El(d,t,s,o,n,f)),o=0):o&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(s[3]=n)}for(l!==0&&Uw(d,t,l,u,c),d.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=$G(t.events,n))}return e}function El(e,t,n,r,o,i){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";n[0]!==0&&(i.end=Object.assign({},zo(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const l=zo(t.events,n[1]);if(i={type:s,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",i,t]]),n[2]!==0){const u=zo(t.events,n[2]),c=zo(t.events,n[3]),f={type:a,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(n[2],0,[["enter",f,t]]),r!==2){const d=t.events[n[2]],p=t.events[n[3]];if(d[1].end=Object.assign({},p[1].end),d[1].type="chunkText",d[1].contentType="text",n[3]>n[2]+1){const g=n[2]+1,h=n[3]-n[2]-1;e.add(g,h,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return o!==void 0&&(i.end=Object.assign({},zo(t.events,o)),e.add(o,0,[["exit",i,t]]),i=void 0),i}function Uw(e,t,n,r,o){const i=[],s=zo(t.events,n);o&&(o.end=Object.assign({},s),i.push(["exit",o,t])),r.end=Object.assign({},s),i.push(["exit",r,t]),e.add(n+1,0,i)}function zo(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const YG={name:"tasklistCheck",tokenize:ZG};function UG(){return{text:{91:YG}}}function ZG(e,t,n){const r=this;return o;function o(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),i)}function i(l){return Re(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):n(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(l)}function a(l){return fe(l)?t(l):we(l)?e.check({tokenize:JG},t,n)(l):n(l)}}function JG(e,t,n){return _e(e,r,"whitespace");function r(o){return o===null?n(o):t(o)}}function qG(e){return T1([CG(),OG(),zG(e),HG(),UG()])}const KG={};function QG(e){const t=this,n=e||KG,r=t.data(),o=r.micromarkExtensions||(r.micromarkExtensions=[]),i=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);o.push(qG(n)),i.push(bG()),s.push(vG(n))}const Zw=({item:e})=>{const t=T.useContext(xe),n=()=>{var o;(o=t.worker)==null||o.add_node(e.node_id)},r=o=>{o.detail===2&&n()};return b.jsx("div",{className:"libnodeentry",onClick:r,title:e.description,children:e.node_name||e.node_id})},Jw=(e,t)=>{var o,i;const n=((o=e.nodes)==null?void 0:o.some(s=>s.node_id.toLowerCase().includes(t.toLowerCase())))??!1,r=((i=e.subshelves)==null?void 0:i.some(s=>Jw(s,t)))??!1;return n||r},cp=({item:e,filter:t,parentkey:n})=>{var l;const[r,o]=T.useState(!1),i=()=>o(!r),s=(l=e.nodes)==null?void 0:l.filter(u=>u.node_id.toLowerCase().includes(t.toLowerCase())),a=r||t.length>0;return Jw(e,t)?b.jsxs("div",{className:"shelfcontainer",children:[b.jsxs("div",{className:"shelftitle",onClick:i,style:{cursor:"pointer"},title:e.description,children:[b.jsx("div",{className:"shelftitle_text",children:e.name}),b.jsx("div",{className:"expandicon "+(a?"open":"close"),children:b.jsx(Bi,{})})]}),b.jsx("div",{className:"libnodecontainer "+(a?"open":"close"),children:b.jsxs("div",{className:"libnodecontainer_inner",children:[s&&b.jsx(b.Fragment,{children:s.map(u=>b.jsx(Zw,{item:u},u.node_id))}),e.subshelves&&b.jsx(b.Fragment,{children:e.subshelves.map(u=>b.jsx(cp,{item:u,filter:t,parentkey:n+u.name},n+u.name))})]})}),b.jsx("hr",{})]}):b.jsx(b.Fragment,{})},e6=({filter:e,setFilter:t})=>b.jsxs("div",{className:"libfilter",children:[b.jsx(QD,{fontSize:"inherit"}),b.jsx("input",{type:"text",placeholder:"Filter",value:e,onChange:n=>{t(n.target.value)}}),e&&b.jsx(kv,{fontSize:"inherit",onClick:()=>{t("")}})]}),qw=[">=","==","<=","<",">"],Il=">=",fp=({availableModule:e})=>b.jsxs("div",{className:"module-links",children:[e.homepage&&b.jsx(b.Fragment,{children:b.jsx("a",{href:e.homepage,target:"_blank",rel:"noopener noreferrer",children:"Homepage"})}),e.source&&e.homepage&&" | ",e.source&&b.jsx(b.Fragment,{children:b.jsx("a",{href:e.source,target:"_blank",rel:"noopener noreferrer",children:"Source"})})]}),dp=({availableModule:e})=>{const[t,n]=T.useState(!1),r=()=>n(!t),o=150,i=e.description.length>o?e.description.substring(0,o)+"...":e.description;return b.jsxs("div",{className:"module-description",children:[b.jsx(zz,{remarkPlugins:[QG],children:t?e.description.replace(/\\n/g,`
|
|
725
|
+
`):i.replace(/\\n/g,`
|
|
726
|
+
`)}),e.description.length>o&&b.jsx("button",{onClick:r,className:"toggle-description",children:t?"Show less":"Show more"})]})},pp=({availableModule:e,on_change:t})=>{const[n,r]=T.useState(e.version||"latest"),[o,i]=T.useState(Il),s=l=>{const u=l.target.value;r(u),t(u!=="latest"?o+u:u)},a=l=>{l.target.value!==o&&qw.includes(l.target.value)&&(i(l.target.value),n!=="latest"&&t(l.target.value+n))};return e.releases&&!e.releases.includes(n)&&e.releases.unshift(n),b.jsxs(b.Fragment,{children:[b.jsx("select",{value:o,onChange:a,children:qw.map(l=>b.jsx("option",{value:l,children:l},l))}),b.jsx("select",{onChange:s,value:n,children:e.releases&&e.releases.map(l=>b.jsx("option",{value:l,children:l},l))})]})},t6=({availableModule:e,on_remove:t,on_update:n})=>{const[r,o]=T.useState(Il+e.version||"latest");return b.jsxs("div",{className:"addable-module",children:[b.jsx("div",{className:"module-name",children:e.name+(e.version?` (${e.version})`:"")}),b.jsx(fp,{availableModule:e}),b.jsx(dp,{availableModule:e}),b.jsxs("div",{children:[b.jsx(pp,{availableModule:e,on_change:o}),b.jsx("button",{className:"update-button",disabled:r===e.version,onClick:()=>{n(e,r)},children:"Update"}),b.jsx("button",{className:"remove-button",onClick:()=>{t(e)},children:"Remove"})]})]})},n6=({availableModule:e,on_add:t})=>{const[n,r]=T.useState(Il+e.version||"latest");return b.jsxs("div",{className:"addable-module",children:[b.jsx("div",{className:"module-name",children:e.name+(e.version?` (${e.version})`:"")}),b.jsx(fp,{availableModule:e}),b.jsx(dp,{availableModule:e}),b.jsxs("div",{children:[b.jsx(pp,{availableModule:e,on_change:r}),b.jsx("button",{className:"add-button",onClick:()=>{t(e,n)},children:"Add"})]})]})},r6=({availableModule:e,on_add:t})=>{const[n,r]=T.useState(Il+e.version||"latest");return b.jsxs("div",{className:"addable-module",children:[b.jsx("div",{className:"module-name",children:e.name}),b.jsx(fp,{availableModule:e}),b.jsx(dp,{availableModule:e}),b.jsxs("div",{children:[b.jsx(pp,{availableModule:e,on_change:r}),b.jsx("button",{className:"add-button",onClick:()=>{t(e,n)},children:"Add"})]})]})},o6=({children:e})=>{const[t,n]=T.useState(""),r=T.useContext(xe),[o,i]=T.useState(!0),[s,a]=T.useState(!0),[l,u]=T.useState(!0),[c,f]=T.useState({installed:[],available:[],active:[]}),[d,p]=T.useState(!1),g=I=>{I&&(r.worker===void 0||!r.worker.is_open||r.worker.get_available_modules().then(O=>{f(O)}))};if(!r.worker)return b.jsx(b.Fragment,{});const h=(I,O)=>{p(!1),r.worker!==void 0&&r.worker.add_lib(I.name,O)},y=(I,O)=>{p(!1),r.worker!==void 0&&r.worker.add_lib(I.name,O)},m=I=>{p(!1),r.worker!==void 0&&r.worker.remove_lib(I.name)},x=(I,O)=>{p(!1),r.worker!==void 0&&r.worker.add_lib(I.name,O)},v=I=>I.filter(O=>O.name.toLowerCase().includes(t.toLowerCase())||O.description.toLowerCase().includes(t.toLowerCase())),C=v(c.available),S=v(c.installed),E=v(c.active);return b.jsxs(Ao,{title:"Manage Library",trigger:e,description:"Add or remove libraries to the current worker.",onOpenChange:g,open:d,setOpen:p,children:[b.jsx("input",{className:"filter-input styledinput",type:"text",placeholder:"Filter modules...",value:t,onChange:I=>n(I.target.value)}),b.jsxs("div",{className:"packagelist",style:{maxHeight:"70%",overflow:"auto"},children:[S.length>0&&b.jsx("h3",{onClick:()=>{u(!l)},children:"Installed"}),l&&S.map(I=>b.jsx(n6,{availableModule:I,on_add:h},I.name+I.source)),C.length>0&&b.jsx("h3",{onClick:()=>{a(!s)},children:"Available"}),s&&C.map(I=>b.jsx(r6,{availableModule:I,on_add:y},I.name+I.source)),E.length>0&&b.jsx("h3",{onClick:()=>{i(!o)},children:"Active"}),o&&E.map(I=>b.jsx(t6,{availableModule:I,on_remove:m,on_update:x},I.name+I.source))]})]})},i6=({ins:e})=>{const[t,n]=T.useState(e.name),r=T.useContext(xe),o=()=>{r.worker&&r.worker.remove_external_worker(e.uuid,e.nodeclassid)},i=()=>{r.worker&&(r.worker.update_external_worker(e.uuid,e.nodeclassid,{name:t}),e.name=t)};return b.jsx(b.Fragment,{children:b.jsx(Ao,{title:e.name,description:"Settings for"+e.name,trigger:b.jsx("div",{children:"Settings"}),buttons:[{text:"Save",onClick:i,close:!0},{text:"Delete",onClick:o,close:!0}],children:b.jsx("div",{children:b.jsxs("div",{children:[b.jsx("label",{htmlFor:"name",children:"Name: "}),b.jsx("input",{type:"text",name:"name",value:t,onChange:s=>n(s.target.value),className:"styledinput"})]})})})})},s6=({ins:e,lib:t,filter:n="",parentkey:r})=>{var l;const[o,i]=T.useState(!1),s=()=>i(!o),a=(l=t==null?void 0:t.nodes)==null?void 0:l.filter(u=>u.node_id.toLowerCase().includes(n.toLowerCase()));return b.jsxs("div",{className:"shelfcontainer",children:[b.jsxs("div",{className:"shelftitle",onClick:s,style:{cursor:"pointer"},title:e.name,children:[b.jsx("div",{className:"shelftitle_text",children:e.name}),b.jsx("div",{className:"expandicon "+(o?"open":"close"),children:b.jsx(Bi,{})})]}),b.jsx("div",{className:"libnodecontainer "+(o?"open":"close"),children:b.jsx("div",{className:"libnodecontainer_inner",children:o&&b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"libnodeentry",title:e.uuid,children:b.jsx(i6,{ins:e})}),t&&b.jsxs(b.Fragment,{children:[a&&b.jsx(b.Fragment,{children:a.map(u=>b.jsx(Zw,{item:u},r+u.node_id))}),t.subshelves.map(u=>b.jsx(cp,{item:u,filter:n,parentkey:r+u.name},r+u.name))]})]})})})]})},a6=({item:e,mod:t,lib:n})=>{const r=T.useContext(xe),[o,i]=T.useState(!1),s=()=>i(!o),a=()=>{var c;(c=r.worker)==null||c.add_external_worker({module:t,cls_module:e.module,cls_name:e.class_name})},l=c=>{c.detail===2&&a()},u=e.name||e.module+"."+e.class_name;return b.jsxs("div",{className:"shelfcontainer",children:[b.jsxs("div",{className:"shelftitle",onClick:s,style:{cursor:"pointer"},title:u,children:[b.jsx("div",{className:"shelftitle_text",children:u}),b.jsx("div",{className:"expandicon "+(o?"open":"close"),children:b.jsx(Bi,{})})]}),b.jsx("div",{className:"libnodecontainer "+(o?"open":"close"),children:b.jsx("div",{className:"libnodecontainer_inner",children:o&&b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"libnodeentry",onClick:l,title:e.name,children:"New Instance"}),e.instances.map(c=>b.jsx(s6,{ins:c,lib:n==null?void 0:n.subshelves.find(f=>f.name===c.uuid),parentkey:c.uuid},c.uuid))]})})})]})},l6=({externalworkermod:e,lib:t})=>{const[n,r]=T.useState(!1),o=()=>r(!n),i=n;return b.jsxs("div",{className:"shelfcontainer",children:[b.jsxs("div",{className:"shelftitle",onClick:o,style:{cursor:"pointer"},title:e.module,children:[b.jsx("div",{className:"shelftitle_text",children:e.module}),b.jsx("div",{className:"expandicon "+(i?"open":"close"),children:b.jsx(Bi,{})})]}),b.jsx("div",{className:"libnodecontainer "+(i?"open":"close"),children:b.jsx("div",{className:"libnodecontainer_inner",children:e.worker_classes.map(s=>b.jsx(a6,{item:s,mod:e.module,lib:t},s.module+s.class_name))})}),b.jsx("hr",{})]})},u6=()=>{var c,f;const e=T.useContext(xe),t=e.lib.libstate(),n=k.useContext(xe),r=n.local_settings(d=>d.view_settings.expand_lib),o=n.local_settings(d=>d.update_view_settings),i=d=>{o({expand_lib:d})},s=Oj("m"),[a,l]=T.useState(""),u=((c=e.worker)==null?void 0:c.state(d=>d.is_open))??!1;return b.jsx(e1,{maxSize:s?"100%":"300px",direction:s?"down":"right",containerClassName:"pos-left pos-top bg1 h-12",onExpandChange:i,expanded:r===void 0?!0:r,children:b.jsxs("div",{className:"libcontainer",children:[b.jsxs("div",{className:"library",children:[b.jsx("div",{className:"libtitle",children:"Lib"}),b.jsx("hr",{className:"hr_prominent"}),b.jsx(e6,{filter:a,setFilter:l}),b.jsx("div",{className:"vscrollcontainer",children:t.lib.shelves.filter(d=>d.name!=="_external_worker").map(d=>b.jsx(cp,{item:d,filter:a,parentkey:d.name},d.name))}),b.jsx("hr",{}),b.jsx("div",{className:"libtitle",children:"External Worker"}),b.jsx("hr",{className:"hr_prominent"}),b.jsx("div",{className:"vscrollcontainer",children:(f=t.external_worker)==null?void 0:f.map(d=>b.jsx(l6,{externalworkermod:d,lib:t.lib.shelves.find(p=>p.name==="_external_worker")},d.module))}),b.jsx("hr",{})]}),b.jsx("div",{style:{paddingTop:"0.5rem"}}),u&&b.jsx("div",{className:"addlib",children:b.jsx(o6,{children:b.jsx("button",{children:"Manage Libraries"})})})]})})};function c6(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,o]of e)if(!Object.is(o,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(const r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}const{useRef:f6}=T;function d6(e){const t=f6();return n=>{const r=e(n);return c6(t.current,r)?t.current:t.current=r}}var hp="Popover",[Kw,nq]=ir(hp,[al]),as=al(),[p6,yr]=Kw(hp),Qw=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!1}=e,a=as(t),l=k.useRef(null),[u,c]=k.useState(!1),[f=!1,d]=yo({prop:r,defaultProp:o,onChange:i});return b.jsx(id,{...a,children:b.jsx(p6,{scope:t,contentId:Dn(),triggerRef:l,open:f,onOpenChange:d,onOpenToggle:k.useCallback(()=>d(p=>!p),[d]),hasCustomAnchor:u,onCustomAnchorAdd:k.useCallback(()=>c(!0),[]),onCustomAnchorRemove:k.useCallback(()=>c(!1),[]),modal:s,children:n})})};Qw.displayName=hp;var eC="PopoverAnchor",h6=k.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=yr(eC,n),i=as(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:a}=o;return k.useEffect(()=>(s(),()=>a()),[s,a]),b.jsx(sd,{...i,...r,ref:t})});h6.displayName=eC;var tC="PopoverTrigger",nC=k.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=yr(tC,n),i=as(n),s=Ge(t,o.triggerRef),a=b.jsx(Fe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":lC(o.open),...r,ref:s,onClick:he(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?a:b.jsx(sd,{asChild:!0,...i,children:a})});nC.displayName=tC;var gp="PopoverPortal",[g6,m6]=Kw(gp,{forceMount:void 0}),rC=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=yr(gp,t);return b.jsx(g6,{scope:t,forceMount:n,children:b.jsx(Fn,{present:n||i.open,children:b.jsx(Fc,{asChild:!0,container:o,children:r})})})};rC.displayName=gp;var Vo="PopoverContent",oC=k.forwardRef((e,t)=>{const n=m6(Vo,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=yr(Vo,e.__scopePopover);return b.jsx(Fn,{present:r||i.open,children:i.modal?b.jsx(b6,{...o,ref:t}):b.jsx(v6,{...o,ref:t})})});oC.displayName=Vo;var y6=bo("PopoverContent.RemoveScroll"),b6=k.forwardRef((e,t)=>{const n=yr(Vo,e.__scopePopover),r=k.useRef(null),o=Ge(t,r),i=k.useRef(!1);return k.useEffect(()=>{const s=r.current;if(s)return Hc(s)},[]),b.jsx(Ma,{as:y6,allowPinchZoom:!0,children:b.jsx(iC,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:he(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),i.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:he(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0,u=a.button===2||l;i.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:he(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),v6=k.forwardRef((e,t)=>{const n=yr(Vo,e.__scopePopover),r=k.useRef(!1),o=k.useRef(!1);return b.jsx(iC,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),iC=k.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,...f}=e,d=yr(Vo,n),p=as(n);return Lc(),b.jsx(Ia,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:b.jsx(Ea,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:c,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>d.onOpenChange(!1),children:b.jsx(ox,{"data-state":lC(d.open),role:"dialog",id:d.contentId,...p,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),sC="PopoverClose",x6=k.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=yr(sC,n);return b.jsx(Fe.button,{type:"button",...r,ref:t,onClick:he(e.onClick,()=>o.onOpenChange(!1))})});x6.displayName=sC;var w6="PopoverArrow",aC=k.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=as(n);return b.jsx(ix,{...o,...r,ref:t})});aC.displayName=w6;function lC(e){return e?"open":"closed"}var uC=Qw,cC=nC,fC=rC,dC=oC,C6=aC;const _6={bytes:({iostore:e})=>{const{full:t,preview:n}=e.valuestore(),r=JSON.stringify((t==null?void 0:t.value)||(n==null?void 0:n.value))||"";return`Bytes(${Math.round(3*r.length/4)})`}},S6=e=>typeof e=="boolean"||e instanceof Boolean,E6=e=>typeof e=="number"||e instanceof Number,I6=e=>typeof e=="bigint"||e instanceof BigInt,pC=e=>!!e&&e instanceof Date,k6=e=>typeof e=="string"||e instanceof String,A6=e=>Array.isArray(e),T6=e=>typeof e=="object"&&e!==null,hC=e=>!!e&&e instanceof Object&&typeof e=="function";function kl(e,t){return t===void 0&&(t=!1),!e||t?`"${e}"`:e}function N6(e,t,n){return n?JSON.stringify(e):t?`"${e}"`:e}function gC(e){let{field:t,value:n,data:r,lastElement:o,openBracket:i,closeBracket:s,level:a,style:l,shouldExpandNode:u,clickToExpandNode:c,outerRef:f,beforeExpandChange:d}=e;const p=T.useRef(!1),[g,h]=T.useState(()=>u(a,n,t)),y=T.useRef(null);T.useEffect(()=>{p.current?h(u(a,n,t)):p.current=!0},[u]);const m=T.useId();if(r.length===0)return P6({field:t,openBracket:i,closeBracket:s,lastElement:o,style:l});const x=g?l.collapseIcon:l.expandIcon,v=g?l.ariaLables.collapseJson:l.ariaLables.expandJson,C=a+1,S=r.length-1,E=M=>{g!==M&&(!d||d({level:a,value:n,field:t,newExpandValue:M}))&&h(M)},I=M=>{if(M.key==="ArrowRight"||M.key==="ArrowLeft")M.preventDefault(),E(M.key==="ArrowRight");else if(M.key==="ArrowUp"||M.key==="ArrowDown"){M.preventDefault();const w=M.key==="ArrowUp"?-1:1;if(!f.current)return;const N=f.current.querySelectorAll("[role=button]");let R=-1;for(let A=0;A<N.length;A++)if(N[A].tabIndex===0){R=A;break}if(R<0)return;const L=(R+w+N.length)%N.length;N[R].tabIndex=-1,N[L].tabIndex=0,N[L].focus()}},O=()=>{var M;E(!g);const w=y.current;if(!w)return;const N=(M=f.current)===null||M===void 0?void 0:M.querySelector('[role=button][tabindex="0"]');N&&(N.tabIndex=-1),w.tabIndex=0,w.focus()};return T.createElement("div",{className:l.basicChildStyle,role:"treeitem","aria-expanded":g,"aria-selected":void 0},T.createElement("span",{className:x,onClick:O,onKeyDown:I,role:"button","aria-label":v,"aria-expanded":g,"aria-controls":g?m:void 0,ref:y,tabIndex:a===0?0:-1}),(t||t==="")&&(c?T.createElement("span",{className:l.clickableLabel,onClick:O,onKeyDown:I},kl(t,l.quotesForFieldNames),":"):T.createElement("span",{className:l.label},kl(t,l.quotesForFieldNames),":")),T.createElement("span",{className:l.punctuation},i),g?T.createElement("ul",{id:m,role:"group",className:l.childFieldsContainer},r.map((M,w)=>T.createElement(mC,{key:M[0]||w,field:M[0],value:M[1],style:l,lastElement:w===S,level:C,shouldExpandNode:u,clickToExpandNode:c,outerRef:f}))):T.createElement("span",{className:l.collapsedContent,onClick:O,onKeyDown:I}),T.createElement("span",{className:l.punctuation},s),!o&&T.createElement("span",{className:l.punctuation},","))}function P6(e){let{field:t,openBracket:n,closeBracket:r,lastElement:o,style:i}=e;return T.createElement("div",{className:i.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||t==="")&&T.createElement("span",{className:i.label},kl(t,i.quotesForFieldNames),":"),T.createElement("span",{className:i.punctuation},n),T.createElement("span",{className:i.punctuation},r),!o&&T.createElement("span",{className:i.punctuation},","))}function O6(e){let{field:t,value:n,style:r,lastElement:o,shouldExpandNode:i,clickToExpandNode:s,level:a,outerRef:l,beforeExpandChange:u}=e;return gC({field:t,value:n,lastElement:o||!1,level:a,openBracket:"{",closeBracket:"}",style:r,shouldExpandNode:i,clickToExpandNode:s,data:Object.keys(n).map(c=>[c,n[c]]),outerRef:l,beforeExpandChange:u})}function R6(e){let{field:t,value:n,style:r,lastElement:o,level:i,shouldExpandNode:s,clickToExpandNode:a,outerRef:l,beforeExpandChange:u}=e;return gC({field:t,value:n,lastElement:o||!1,level:i,openBracket:"[",closeBracket:"]",style:r,shouldExpandNode:s,clickToExpandNode:a,data:n.map(c=>[void 0,c]),outerRef:l,beforeExpandChange:u})}function M6(e){let{field:t,value:n,style:r,lastElement:o}=e,i,s=r.otherValue;return n===null?(i="null",s=r.nullValue):n===void 0?(i="undefined",s=r.undefinedValue):k6(n)?(i=N6(n,!r.noQuotesForStringValues,r.stringifyStringValues),s=r.stringValue):S6(n)?(i=n?"true":"false",s=r.booleanValue):E6(n)?(i=n.toString(),s=r.numberValue):I6(n)?(i=`${n.toString()}n`,s=r.numberValue):pC(n)?i=n.toISOString():hC(n)?i="function() { }":i=n.toString(),T.createElement("div",{className:r.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||t==="")&&T.createElement("span",{className:r.label},kl(t,r.quotesForFieldNames),":"),T.createElement("span",{className:s},i),!o&&T.createElement("span",{className:r.punctuation},","))}function mC(e){const t=e.value;return A6(t)?T.createElement(R6,Object.assign({},e)):T6(t)&&!pC(t)&&!hC(t)?T.createElement(O6,Object.assign({},e)):T.createElement(M6,Object.assign({},e))}var Te={"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 yC={collapseJson:"collapse JSON",expandJson:"expand JSON"},bC={container:Te["container-light"],basicChildStyle:Te["basic-element-style"],childFieldsContainer:Te["child-fields-container"],label:Te["label-light"],clickableLabel:Te["clickable-label-light"],nullValue:Te["value-null-light"],undefinedValue:Te["value-undefined-light"],stringValue:Te["value-string-light"],booleanValue:Te["value-boolean-light"],numberValue:Te["value-number-light"],otherValue:Te["value-other-light"],punctuation:Te["punctuation-light"],collapseIcon:Te["collapse-icon-light"],expandIcon:Te["expand-icon-light"],collapsedContent:Te["collapsed-content-light"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:yC,stringifyStringValues:!1},D6={container:Te["container-dark"],basicChildStyle:Te["basic-element-style"],childFieldsContainer:Te["child-fields-container"],label:Te["label-dark"],clickableLabel:Te["clickable-label-dark"],nullValue:Te["value-null-dark"],undefinedValue:Te["value-undefined-dark"],stringValue:Te["value-string-dark"],booleanValue:Te["value-boolean-dark"],numberValue:Te["value-number-dark"],otherValue:Te["value-other-dark"],punctuation:Te["punctuation-dark"],collapseIcon:Te["collapse-icon-dark"],expandIcon:Te["expand-icon-dark"],collapsedContent:Te["collapsed-content-dark"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:yC,stringifyStringValues:!1},F6=()=>!0,j6=e=>e<1,L6=e=>{let{data:t,style:n=bC,shouldExpandNode:r=F6,clickToExpandNode:o=!1,beforeExpandChange:i,...s}=e;const a=T.useRef(null);return T.createElement("div",Object.assign({"aria-label":"JSON view"},s,{className:n.container,ref:a,role:"tree"}),T.createElement(mC,{value:t,style:{...bC,...n},lastElement:!0,level:0,shouldExpandNode:r,clickToExpandNode:o,outerRef:a,beforeExpandChange:i}))};function B6(e){for(const t in e)if(Object.hasOwn(e,t))return!1;return!0}function z6(e){if(e==null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype?!1:B6(e)}const V6=({data:e})=>b.jsx(L6,{data:z6(e)?"":e,style:D6,shouldExpandNode:j6});function vC(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=vC(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function et(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=vC(e))&&(r&&(r+=" "),r+=t);return r}function $n(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let s="",a=!0;for(let l=0;l<i.length;l+=1){const u=i[l];u&&(s+=(a===!0?"":" ")+t(u),a=!1,n&&n[u]&&(s+=" "+n[u]))}r[o]=s}return r}const mp=k.createContext();process.env.NODE_ENV!=="production"&&(mp.displayName="TableContext");function br(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function lt(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":br(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Al={exports:{}},Pe={};/**
|
|
727
|
+
* @license React
|
|
728
|
+
* react-is.production.js
|
|
729
|
+
*
|
|
730
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
731
|
+
*
|
|
732
|
+
* This source code is licensed under the MIT license found in the
|
|
733
|
+
* LICENSE file in the root directory of this source tree.
|
|
734
|
+
*/var xC;function G6(){if(xC)return Pe;xC=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),d=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function g(h){if(typeof h=="object"&&h!==null){var y=h.$$typeof;switch(y){case e:switch(h=h.type,h){case n:case o:case r:case l:case u:case d:return h;default:switch(h=h&&h.$$typeof,h){case s:case a:case f:case c:return h;case i:return h;default:return y}}case t:return y}}}return Pe.ContextConsumer=i,Pe.ContextProvider=s,Pe.Element=e,Pe.ForwardRef=a,Pe.Fragment=n,Pe.Lazy=f,Pe.Memo=c,Pe.Portal=t,Pe.Profiler=o,Pe.StrictMode=r,Pe.Suspense=l,Pe.SuspenseList=u,Pe.isContextConsumer=function(h){return g(h)===i},Pe.isContextProvider=function(h){return g(h)===s},Pe.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===e},Pe.isForwardRef=function(h){return g(h)===a},Pe.isFragment=function(h){return g(h)===n},Pe.isLazy=function(h){return g(h)===f},Pe.isMemo=function(h){return g(h)===c},Pe.isPortal=function(h){return g(h)===t},Pe.isProfiler=function(h){return g(h)===o},Pe.isStrictMode=function(h){return g(h)===r},Pe.isSuspense=function(h){return g(h)===l},Pe.isSuspenseList=function(h){return g(h)===u},Pe.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===n||h===o||h===r||h===l||h===u||typeof h=="object"&&h!==null&&(h.$$typeof===f||h.$$typeof===c||h.$$typeof===s||h.$$typeof===i||h.$$typeof===a||h.$$typeof===p||h.getModuleId!==void 0)},Pe.typeOf=g,Pe}var Oe={};/**
|
|
735
|
+
* @license React
|
|
736
|
+
* react-is.development.js
|
|
737
|
+
*
|
|
738
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
739
|
+
*
|
|
740
|
+
* This source code is licensed under the MIT license found in the
|
|
741
|
+
* LICENSE file in the root directory of this source tree.
|
|
742
|
+
*/var wC;function $6(){return wC||(wC=1,process.env.NODE_ENV!=="production"&&function(){function e(h){if(typeof h=="object"&&h!==null){var y=h.$$typeof;switch(y){case t:switch(h=h.type,h){case r:case i:case o:case u:case c:case p:return h;default:switch(h=h&&h.$$typeof,h){case a:case l:case d:case f:return h;case s:return h;default:return y}}case n:return y}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");Oe.ContextConsumer=s,Oe.ContextProvider=a,Oe.Element=t,Oe.ForwardRef=l,Oe.Fragment=r,Oe.Lazy=d,Oe.Memo=f,Oe.Portal=n,Oe.Profiler=i,Oe.StrictMode=o,Oe.Suspense=u,Oe.SuspenseList=c,Oe.isContextConsumer=function(h){return e(h)===s},Oe.isContextProvider=function(h){return e(h)===a},Oe.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===t},Oe.isForwardRef=function(h){return e(h)===l},Oe.isFragment=function(h){return e(h)===r},Oe.isLazy=function(h){return e(h)===d},Oe.isMemo=function(h){return e(h)===f},Oe.isPortal=function(h){return e(h)===n},Oe.isProfiler=function(h){return e(h)===i},Oe.isStrictMode=function(h){return e(h)===o},Oe.isSuspense=function(h){return e(h)===u},Oe.isSuspenseList=function(h){return e(h)===c},Oe.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===r||h===i||h===o||h===u||h===c||typeof h=="object"&&h!==null&&(h.$$typeof===d||h.$$typeof===f||h.$$typeof===a||h.$$typeof===s||h.$$typeof===l||h.$$typeof===g||h.getModuleId!==void 0)},Oe.typeOf=e}()),Oe}var CC;function H6(){return CC||(CC=1,process.env.NODE_ENV==="production"?Al.exports=G6():Al.exports=$6()),Al.exports}var Tl=H6();function Hn(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function _C(e){if(k.isValidElement(e)||Tl.isValidElementType(e)||!Hn(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=_C(e[n])}),t}function Ot(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Hn(e)&&Hn(t)&&Object.keys(t).forEach(o=>{k.isValidElement(t[o])||Tl.isValidElementType(t[o])?r[o]=t[o]:Hn(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Hn(e[o])?r[o]=Ot(e[o],t[o],n):n.clone?r[o]=Hn(t[o])?_C(t[o]):t[o]:r[o]=t[o]}),r}function ls(e,t){return t?Ot(e,t,{clone:!1}):e}const vr=process.env.NODE_ENV!=="production"?B.oneOfType([B.number,B.string,B.object,B.array]):{};function W6(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{var s,a;const i=/min-width:\s*([0-9.]+)/;return+(((s=r.match(i))==null?void 0:s[1])||0)-+(((a=o.match(i))==null?void 0:a[1])||0)});return n.length?n.reduce((r,o)=>{const i=t[o];return delete r[o],r[o]=i,r},{...t}):t}function X6(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Y6(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
|
|
743
|
+
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:br(18,`(${t})`));return null}const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}function U6(e){const t=(i,s)=>i.replace("@media",s?`@container ${s}`:"@container");function n(i,s){i.up=(...a)=>t(e.breakpoints.up(...a),s),i.down=(...a)=>t(e.breakpoints.down(...a),s),i.between=(...a)=>t(e.breakpoints.between(...a),s),i.only=(...a)=>t(e.breakpoints.only(...a),s),i.not=(...a)=>{const l=t(e.breakpoints.not(...a),s);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},o=i=>(n(r,i),r);return n(o),{...e,containerQueries:o}}const Nl={xs:0,sm:600,md:900,lg:1200,xl:1536},SC={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Nl[e]}px)`},Z6={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Nl[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Wn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||SC;return t.reduce((s,a,l)=>(s[i.up(i.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const i=r.breakpoints||SC;return Object.keys(t).reduce((s,a)=>{if(X6(i.keys,a)){const l=Y6(r.containerQueries?r:Z6,a);l&&(s[l]=n(t[a],a))}else if(Object.keys(i.values||Nl).includes(a)){const l=i.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function J6(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function q6(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Pl(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Ol(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Pl(e,n)||r,t&&(o=t(o,r,e)),o}function Ue(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,u=Pl(l,r)||{};return Wn(s,a,f=>{let d=Ol(u,o,f);return f===d&&typeof f=="string"&&(d=Ol(u,o,`${t}${f==="default"?"":lt(f)}`,f)),n===!1?d:{[n]:d}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:vr}:{},i.filterProps=[t],i}function K6(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Q6={m:"margin",p:"padding"},e$={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},EC={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},t$=K6(e=>{if(e.length>2)if(EC[e])e=EC[e];else return[e];const[t,n]=e.split(""),r=Q6[t],o=e$[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Rl=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ml=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],n$=[...Rl,...Ml];function us(e,t,n,r){const o=Pl(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${i}.`),typeof o=="string"?o.startsWith("var(")&&i===0?0:o.startsWith("var(")&&i===1?o:`calc(${i} * ${o})`:o*i):Array.isArray(o)?i=>{if(typeof i=="string")return i;const s=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(s)?s>o.length-1&&console.error([`MUI: The value provided (${s}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${s} > ${o.length-1}, you need to add the missing values.`].join(`
|
|
744
|
+
`)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
|
|
745
|
+
`)));const a=o[s];return i>=0?a:typeof a=="number"?-a:typeof a=="string"&&a.startsWith("var(")?`calc(-1 * ${a})`:`-${a}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
746
|
+
`)),()=>{})}function yp(e){return us(e,"spacing",8,"spacing")}function cs(e,t){return typeof t=="string"||t==null?t:e(t)}function r$(e,t){return n=>e.reduce((r,o)=>(r[o]=cs(t,n),r),{})}function o$(e,t,n,r){if(!t.includes(n))return null;const o=t$(n),i=r$(o,r),s=e[n];return Wn(e,s,i)}function IC(e,t){const n=yp(e.theme);return Object.keys(e).map(r=>o$(e,t,r,n)).reduce(ls,{})}function He(e){return IC(e,Rl)}He.propTypes=process.env.NODE_ENV!=="production"?Rl.reduce((e,t)=>(e[t]=vr,e),{}):{},He.filterProps=Rl;function We(e){return IC(e,Ml)}We.propTypes=process.env.NODE_ENV!=="production"?Ml.reduce((e,t)=>(e[t]=vr,e),{}):{},We.filterProps=Ml,process.env.NODE_ENV!=="production"&&n$.reduce((e,t)=>(e[t]=vr,e),{});function Dl(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?ls(o,t[i](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Vt(e){return typeof e!="number"?e:`${e}px solid`}function Gt(e,t){return Ue({prop:e,themeKey:"borders",transform:t})}const i$=Gt("border",Vt),s$=Gt("borderTop",Vt),a$=Gt("borderRight",Vt),l$=Gt("borderBottom",Vt),u$=Gt("borderLeft",Vt),c$=Gt("borderColor"),f$=Gt("borderTopColor"),d$=Gt("borderRightColor"),p$=Gt("borderBottomColor"),h$=Gt("borderLeftColor"),g$=Gt("outline",Vt),m$=Gt("outlineColor"),Fl=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=us(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:cs(t,r)});return Wn(e,e.borderRadius,n)}return null};Fl.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:vr}:{},Fl.filterProps=["borderRadius"],Dl(i$,s$,a$,l$,u$,c$,f$,d$,p$,h$,Fl,g$,m$);const jl=e=>{if(e.gap!==void 0&&e.gap!==null){const t=us(e.theme,"spacing",8,"gap"),n=r=>({gap:cs(t,r)});return Wn(e,e.gap,n)}return null};jl.propTypes=process.env.NODE_ENV!=="production"?{gap:vr}:{},jl.filterProps=["gap"];const Ll=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=us(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:cs(t,r)});return Wn(e,e.columnGap,n)}return null};Ll.propTypes=process.env.NODE_ENV!=="production"?{columnGap:vr}:{},Ll.filterProps=["columnGap"];const Bl=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=us(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:cs(t,r)});return Wn(e,e.rowGap,n)}return null};Bl.propTypes=process.env.NODE_ENV!=="production"?{rowGap:vr}:{},Bl.filterProps=["rowGap"];const y$=Ue({prop:"gridColumn"}),b$=Ue({prop:"gridRow"}),v$=Ue({prop:"gridAutoFlow"}),x$=Ue({prop:"gridAutoColumns"}),w$=Ue({prop:"gridAutoRows"}),C$=Ue({prop:"gridTemplateColumns"}),_$=Ue({prop:"gridTemplateRows"}),S$=Ue({prop:"gridTemplateAreas"}),E$=Ue({prop:"gridArea"});Dl(jl,Ll,Bl,y$,b$,v$,x$,w$,C$,_$,S$,E$);function Go(e,t){return t==="grey"?t:e}const I$=Ue({prop:"color",themeKey:"palette",transform:Go}),k$=Ue({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Go}),A$=Ue({prop:"backgroundColor",themeKey:"palette",transform:Go});Dl(I$,k$,A$);function Rt(e){return e<=1&&e!==0?`${e*100}%`:e}const T$=Ue({prop:"width",transform:Rt}),bp=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,i,s,a,l;const r=((s=(i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:s[n])||Nl[n];return r?((l=(a=e.theme)==null?void 0:a.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Rt(n)}};return Wn(e,e.maxWidth,t)}return null};bp.filterProps=["maxWidth"];const N$=Ue({prop:"minWidth",transform:Rt}),P$=Ue({prop:"height",transform:Rt}),O$=Ue({prop:"maxHeight",transform:Rt}),R$=Ue({prop:"minHeight",transform:Rt});Ue({prop:"size",cssProperty:"width",transform:Rt}),Ue({prop:"size",cssProperty:"height",transform:Rt});const M$=Ue({prop:"boxSizing"});Dl(T$,bp,N$,P$,O$,R$,M$);const zl={border:{themeKey:"borders",transform:Vt},borderTop:{themeKey:"borders",transform:Vt},borderRight:{themeKey:"borders",transform:Vt},borderBottom:{themeKey:"borders",transform:Vt},borderLeft:{themeKey:"borders",transform:Vt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Vt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Fl},color:{themeKey:"palette",transform:Go},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Go},backgroundColor:{themeKey:"palette",transform:Go},p:{style:We},pt:{style:We},pr:{style:We},pb:{style:We},pl:{style:We},px:{style:We},py:{style:We},padding:{style:We},paddingTop:{style:We},paddingRight:{style:We},paddingBottom:{style:We},paddingLeft:{style:We},paddingX:{style:We},paddingY:{style:We},paddingInline:{style:We},paddingInlineStart:{style:We},paddingInlineEnd:{style:We},paddingBlock:{style:We},paddingBlockStart:{style:We},paddingBlockEnd:{style:We},m:{style:He},mt:{style:He},mr:{style:He},mb:{style:He},ml:{style:He},mx:{style:He},my:{style:He},margin:{style:He},marginTop:{style:He},marginRight:{style:He},marginBottom:{style:He},marginLeft:{style:He},marginX:{style:He},marginY:{style:He},marginInline:{style:He},marginInlineStart:{style:He},marginInlineEnd:{style:He},marginBlock:{style:He},marginBlockStart:{style:He},marginBlockEnd:{style:He},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:jl},rowGap:{style:Bl},columnGap:{style:Ll},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Rt},maxWidth:{style:bp},minWidth:{transform:Rt},height:{transform:Rt},maxHeight:{transform:Rt},minHeight:{transform:Rt},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function D$(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function F$(e,t){return typeof e=="function"?e(t):e}function j$(){function e(n,r,o,i){const s={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:c,style:f}=a;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const d=Pl(o,u)||{};return f?f(s):Wn(s,r,g=>{let h=Ol(d,c,g);return g===h&&typeof g=="string"&&(h=Ol(d,c,`${n}${g==="default"?"":lt(g)}`,g)),l===!1?h:{[l]:h}})}function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const i=o.unstable_sxConfig??zl;function s(a){let l=a;if(typeof a=="function")l=a(o);else if(typeof a!="object")return a;if(!l)return null;const u=J6(o.breakpoints),c=Object.keys(u);let f=u;return Object.keys(l).forEach(d=>{const p=F$(l[d],o);if(p!=null)if(typeof p=="object")if(i[d])f=ls(f,e(d,p,o,i));else{const g=Wn({theme:o},p,h=>({[d]:h}));D$(g,p)?f[d]=t({sx:p,theme:o}):f=ls(f,g)}else f=ls(f,e(d,p,o,i))}),W6(o,q6(c,f))}return Array.isArray(r)?r.map(s):s(r)}return t}const $o=j$();$o.filterProps=["sx"];function ue(){return ue=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ue.apply(null,arguments)}function L$(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function B$(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var z$=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(B$(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=L$(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),ut="-ms-",Vl="-moz-",Se="-webkit-",kC="comm",vp="rule",xp="decl",V$="@import",AC="@keyframes",G$="@layer",$$=Math.abs,Gl=String.fromCharCode,H$=Object.assign;function W$(e,t){return rt(e,0)^45?(((t<<2^rt(e,0))<<2^rt(e,1))<<2^rt(e,2))<<2^rt(e,3):0}function TC(e){return e.trim()}function X$(e,t){return(e=t.exec(e))?e[0]:e}function Ee(e,t,n){return e.replace(t,n)}function wp(e,t){return e.indexOf(t)}function rt(e,t){return e.charCodeAt(t)|0}function fs(e,t,n){return e.slice(t,n)}function wn(e){return e.length}function Cp(e){return e.length}function $l(e,t){return t.push(e),e}function Y$(e,t){return e.map(t).join("")}var Hl=1,Ho=1,NC=0,Ct=0,tt=0,Wo="";function Wl(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Hl,column:Ho,length:s,return:""}}function ds(e,t){return H$(Wl("",null,null,"",null,null,0),e,{length:-e.length},t)}function U$(){return tt}function Z$(){return tt=Ct>0?rt(Wo,--Ct):0,Ho--,tt===10&&(Ho=1,Hl--),tt}function Mt(){return tt=Ct<NC?rt(Wo,Ct++):0,Ho++,tt===10&&(Ho=1,Hl++),tt}function Cn(){return rt(Wo,Ct)}function Xl(){return Ct}function ps(e,t){return fs(Wo,e,t)}function hs(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function PC(e){return Hl=Ho=1,NC=wn(Wo=e),Ct=0,[]}function OC(e){return Wo="",e}function Yl(e){return TC(ps(Ct-1,_p(e===91?e+2:e===40?e+1:e)))}function J$(e){for(;(tt=Cn())&&tt<33;)Mt();return hs(e)>2||hs(tt)>3?"":" "}function q$(e,t){for(;--t&&Mt()&&!(tt<48||tt>102||tt>57&&tt<65||tt>70&&tt<97););return ps(e,Xl()+(t<6&&Cn()==32&&Mt()==32))}function _p(e){for(;Mt();)switch(tt){case e:return Ct;case 34:case 39:e!==34&&e!==39&&_p(tt);break;case 40:e===41&&_p(e);break;case 92:Mt();break}return Ct}function K$(e,t){for(;Mt()&&e+tt!==57;)if(e+tt===84&&Cn()===47)break;return"/*"+ps(t,Ct-1)+"*"+Gl(e===47?e:Mt())}function Q$(e){for(;!hs(Cn());)Mt();return ps(e,Ct)}function eH(e){return OC(Ul("",null,null,null,[""],e=PC(e),0,[0],e))}function Ul(e,t,n,r,o,i,s,a,l){for(var u=0,c=0,f=s,d=0,p=0,g=0,h=1,y=1,m=1,x=0,v="",C=o,S=i,E=r,I=v;y;)switch(g=x,x=Mt()){case 40:if(g!=108&&rt(I,f-1)==58){wp(I+=Ee(Yl(x),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:I+=Yl(x);break;case 9:case 10:case 13:case 32:I+=J$(g);break;case 92:I+=q$(Xl()-1,7);continue;case 47:switch(Cn()){case 42:case 47:$l(tH(K$(Mt(),Xl()),t,n),l);break;default:I+="/"}break;case 123*h:a[u++]=wn(I)*m;case 125*h:case 59:case 0:switch(x){case 0:case 125:y=0;case 59+c:m==-1&&(I=Ee(I,/\f/g,"")),p>0&&wn(I)-f&&$l(p>32?MC(I+";",r,n,f-1):MC(Ee(I," ","")+";",r,n,f-2),l);break;case 59:I+=";";default:if($l(E=RC(I,t,n,u,c,o,a,v,C=[],S=[],f),i),x===123)if(c===0)Ul(I,t,E,E,C,i,f,a,S);else switch(d===99&&rt(I,3)===110?100:d){case 100:case 108:case 109:case 115:Ul(e,E,E,r&&$l(RC(e,E,E,0,0,o,a,v,o,C=[],f),S),o,S,f,a,r?C:S);break;default:Ul(I,E,E,E,[""],S,0,a,S)}}u=c=p=0,h=m=1,v=I="",f=s;break;case 58:f=1+wn(I),p=g;default:if(h<1){if(x==123)--h;else if(x==125&&h++==0&&Z$()==125)continue}switch(I+=Gl(x),x*h){case 38:m=c>0?1:(I+="\f",-1);break;case 44:a[u++]=(wn(I)-1)*m,m=1;break;case 64:Cn()===45&&(I+=Yl(Mt())),d=Cn(),c=f=wn(v=I+=Q$(Xl())),x++;break;case 45:g===45&&wn(I)==2&&(h=0)}}return i}function RC(e,t,n,r,o,i,s,a,l,u,c){for(var f=o-1,d=o===0?i:[""],p=Cp(d),g=0,h=0,y=0;g<r;++g)for(var m=0,x=fs(e,f+1,f=$$(h=s[g])),v=e;m<p;++m)(v=TC(h>0?d[m]+" "+x:Ee(x,/&\f/g,d[m])))&&(l[y++]=v);return Wl(e,t,n,o===0?vp:a,l,u,c)}function tH(e,t,n){return Wl(e,t,n,kC,Gl(U$()),fs(e,2,-2),0)}function MC(e,t,n,r){return Wl(e,t,n,xp,fs(e,0,r),fs(e,r+1,-1),r)}function Xo(e,t){for(var n="",r=Cp(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function nH(e,t,n,r){switch(e.type){case G$:if(e.children.length)break;case V$:case xp:return e.return=e.return||e.value;case kC:return"";case AC:return e.return=e.value+"{"+Xo(e.children,r)+"}";case vp:e.value=e.props.join(",")}return wn(n=Xo(e.children,r))?e.return=e.value+"{"+n+"}":""}function rH(e){var t=Cp(e);return function(n,r,o,i){for(var s="",a=0;a<t;a++)s+=e[a](n,r,o,i)||"";return s}}function oH(e){return function(t){t.root||(t=t.return)&&e(t)}}function DC(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var iH=function(t,n,r){for(var o=0,i=0;o=i,i=Cn(),o===38&&i===12&&(n[r]=1),!hs(i);)Mt();return ps(t,Ct)},sH=function(t,n){var r=-1,o=44;do switch(hs(o)){case 0:o===38&&Cn()===12&&(n[r]=1),t[r]+=iH(Ct-1,n,r);break;case 2:t[r]+=Yl(o);break;case 4:if(o===44){t[++r]=Cn()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Gl(o)}while(o=Mt());return t},aH=function(t,n){return OC(sH(PC(t),n))},FC=new WeakMap,lH=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!FC.get(r))&&!o){FC.set(t,!0);for(var i=[],s=aH(n,i),a=r.props,l=0,u=0;l<s.length;l++)for(var c=0;c<a.length;c++,u++)t.props[u]=i[l]?s[l].replace(/&\f/g,a[c]):a[c]+" "+s[l]}}},uH=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function jC(e,t){switch(W$(e,t)){case 5103:return Se+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Se+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Se+e+Vl+e+ut+e+e;case 6828:case 4268:return Se+e+ut+e+e;case 6165:return Se+e+ut+"flex-"+e+e;case 5187:return Se+e+Ee(e,/(\w+).+(:[^]+)/,Se+"box-$1$2"+ut+"flex-$1$2")+e;case 5443:return Se+e+ut+"flex-item-"+Ee(e,/flex-|-self/,"")+e;case 4675:return Se+e+ut+"flex-line-pack"+Ee(e,/align-content|flex-|-self/,"")+e;case 5548:return Se+e+ut+Ee(e,"shrink","negative")+e;case 5292:return Se+e+ut+Ee(e,"basis","preferred-size")+e;case 6060:return Se+"box-"+Ee(e,"-grow","")+Se+e+ut+Ee(e,"grow","positive")+e;case 4554:return Se+Ee(e,/([^-])(transform)/g,"$1"+Se+"$2")+e;case 6187:return Ee(Ee(Ee(e,/(zoom-|grab)/,Se+"$1"),/(image-set)/,Se+"$1"),e,"")+e;case 5495:case 3959:return Ee(e,/(image-set\([^]*)/,Se+"$1$`$1");case 4968:return Ee(Ee(e,/(.+:)(flex-)?(.*)/,Se+"box-pack:$3"+ut+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Se+e+e;case 4095:case 3583:case 4068:case 2532:return Ee(e,/(.+)-inline(.+)/,Se+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(wn(e)-1-t>6)switch(rt(e,t+1)){case 109:if(rt(e,t+4)!==45)break;case 102:return Ee(e,/(.+:)(.+)-([^]+)/,"$1"+Se+"$2-$3$1"+Vl+(rt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~wp(e,"stretch")?jC(Ee(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(rt(e,t+1)!==115)break;case 6444:switch(rt(e,wn(e)-3-(~wp(e,"!important")&&10))){case 107:return Ee(e,":",":"+Se)+e;case 101:return Ee(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Se+(rt(e,14)===45?"inline-":"")+"box$3$1"+Se+"$2$3$1"+ut+"$2box$3")+e}break;case 5936:switch(rt(e,t+11)){case 114:return Se+e+ut+Ee(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Se+e+ut+Ee(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Se+e+ut+Ee(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Se+e+ut+e+e}return e}var cH=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case xp:t.return=jC(t.value,t.length);break;case AC:return Xo([ds(t,{value:Ee(t.value,"@","@"+Se)})],o);case vp:if(t.length)return Y$(t.props,function(i){switch(X$(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Xo([ds(t,{props:[Ee(i,/:(read-\w+)/,":"+Vl+"$1")]})],o);case"::placeholder":return Xo([ds(t,{props:[Ee(i,/:(plac\w+)/,":"+Se+"input-$1")]}),ds(t,{props:[Ee(i,/:(plac\w+)/,":"+Vl+"$1")]}),ds(t,{props:[Ee(i,/:(plac\w+)/,ut+"input-$1")]})],o)}return""})}},fH=[cH],dH=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(h){var y=h.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var o=t.stylisPlugins||fH,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(h){for(var y=h.getAttribute("data-emotion").split(" "),m=1;m<y.length;m++)i[y[m]]=!0;a.push(h)});var l,u=[lH,uH];{var c,f=[nH,oH(function(h){c.insert(h)})],d=rH(u.concat(o,f)),p=function(y){return Xo(eH(y),d)};l=function(y,m,x,v){c=x,p(y?y+"{"+m.styles+"}":m.styles),v&&(g.inserted[m.name]=!0)}}var g={key:n,sheet:new z$({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return g.sheet.hydrate(a),g},Sp,LC;function pH(){if(LC)return Sp;LC=1;var e=Tf(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=r,i[e.Memo]=o;function s(g){return e.isMemo(g)?o:i[g.$$typeof]||t}var a=Object.defineProperty,l=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,d=Object.prototype;function p(g,h,y){if(typeof h!="string"){if(d){var m=f(h);m&&m!==d&&p(g,m,y)}var x=l(h);u&&(x=x.concat(u(h)));for(var v=s(g),C=s(h),S=0;S<x.length;++S){var E=x[S];if(!n[E]&&!(y&&y[E])&&!(C&&C[E])&&!(v&&v[E])){var I=c(h,E);try{a(g,E,I)}catch{}}}}return g}return Sp=p,Sp}pH();var hH=!0;function BC(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var Ep=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||hH===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},zC=function(t,n,r){Ep(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function gH(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var mH={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},yH=/[A-Z]|^ms/g,bH=/_EMO_([^_]+?)_([^]*?)_EMO_/g,VC=function(t){return t.charCodeAt(1)===45},GC=function(t){return t!=null&&typeof t!="boolean"},Ip=DC(function(e){return VC(e)?e:e.replace(yH,"-$&").toLowerCase()}),$C=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(bH,function(r,o,i){return _n={name:o,styles:i,next:_n},o})}return mH[t]!==1&&!VC(t)&&typeof n=="number"&&n!==0?n+"px":n};function gs(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return _n={name:o.name,styles:o.styles,next:_n},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)_n={name:s.name,styles:s.styles,next:_n},s=s.next;var a=i.styles+";";return a}return vH(e,t,n)}case"function":{if(e!==void 0){var l=_n,u=n(e);return _n=l,gs(e,t,u)}break}}var c=n;if(t==null)return c;var f=t[c];return f!==void 0?f:c}function vH(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=gs(e,t,n[o])+";";else for(var i in n){var s=n[i];if(typeof s!="object"){var a=s;t!=null&&t[a]!==void 0?r+=i+"{"+t[a]+"}":GC(a)&&(r+=Ip(i)+":"+$C(i,a)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var l=0;l<s.length;l++)GC(s[l])&&(r+=Ip(i)+":"+$C(i,s[l])+";");else{var u=gs(e,t,s);switch(i){case"animation":case"animationName":{r+=Ip(i)+":"+u+";";break}default:r+=i+"{"+u+"}"}}}return r}var HC=/label:\s*([^\s;{]+)\s*(;|$)/g,_n;function Zl(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";_n=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,o+=gs(n,t,i);else{var s=i;o+=s[0]}for(var a=1;a<e.length;a++)if(o+=gs(n,t,e[a]),r){var l=i;o+=l[a]}HC.lastIndex=0;for(var u="",c;(c=HC.exec(o))!==null;)u+="-"+c[1];var f=gH(o)+u;return{name:f,styles:o,next:_n}}var xH=function(t){return t()},wH=k.useInsertionEffect?k.useInsertionEffect:!1,WC=wH||xH,XC=k.createContext(typeof HTMLElement<"u"?dH({key:"css"}):null);XC.Provider;var YC=function(t){return T.forwardRef(function(n,r){var o=T.useContext(XC);return t(n,o,r)})},UC=k.createContext({}),kp={}.hasOwnProperty,Ap="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",CH=function(t,n){var r={};for(var o in n)kp.call(n,o)&&(r[o]=n[o]);return r[Ap]=t,r},_H=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Ep(n,r,o),WC(function(){return zC(n,r,o)}),null},SH=YC(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[Ap],i=[r],s="";typeof e.className=="string"?s=BC(t.registered,i,e.className):e.className!=null&&(s=e.className+" ");var a=Zl(i,void 0,k.useContext(UC));s+=t.key+"-"+a.name;var l={};for(var u in e)kp.call(e,u)&&u!=="css"&&u!==Ap&&(l[u]=e[u]);return l.className=s,n&&(l.ref=n),k.createElement(k.Fragment,null,k.createElement(_H,{cache:t,serialized:a,isStringTag:typeof o=="string"}),k.createElement(o,l))}),EH=SH,le=function(t,n){var r=arguments;if(n==null||!kp.call(n,"css"))return k.createElement.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=EH,i[1]=CH(t,n);for(var s=2;s<o;s++)i[s]=r[s];return k.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(le||(le={}));function Tp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Zl(t)}function Jl(){var e=Tp.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var IH=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,kH=DC(function(e){return IH.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),AH=kH,TH=function(t){return t!=="theme"},ZC=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?AH:TH},JC=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},NH=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Ep(n,r,o),WC(function(){return zC(n,r,o)}),null},PH=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=JC(t,n,r),l=a||ZC(o),u=!l("as");return function(){var c=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&f.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{var d=c[0];f.push(d[0]);for(var p=c.length,g=1;g<p;g++)f.push(c[g],d[g])}var h=YC(function(y,m,x){var v=u&&y.as||o,C="",S=[],E=y;if(y.theme==null){E={};for(var I in y)E[I]=y[I];E.theme=k.useContext(UC)}typeof y.className=="string"?C=BC(m.registered,S,y.className):y.className!=null&&(C=y.className+" ");var O=Zl(f.concat(S),m.registered,E);C+=m.key+"-"+O.name,s!==void 0&&(C+=" "+s);var M=u&&a===void 0?ZC(v):l,w={};for(var N in y)u&&N==="as"||M(N)&&(w[N]=y[N]);return w.className=C,x&&(w.ref=x),k.createElement(k.Fragment,null,k.createElement(NH,{cache:m,serialized:O,isStringTag:typeof v=="string"}),k.createElement(v,w))});return h.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=o,h.__emotion_styles=f,h.__emotion_forwardProp=a,Object.defineProperty(h,"toString",{value:function(){return"."+s}}),h.withComponent=function(y,m){var x=e(y,ue({},n,m,{shouldForwardProp:JC(h,m,!0)}));return x.apply(void 0,f)},h}},OH=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Np=PH.bind(null);OH.forEach(function(e){Np[e]=Np(e)});/**
|
|
747
|
+
* @mui/styled-engine v7.0.2
|
|
748
|
+
*
|
|
749
|
+
* @license MIT
|
|
750
|
+
* This source code is licensed under the MIT license found in the
|
|
751
|
+
* LICENSE file in the root directory of this source tree.
|
|
752
|
+
*/function RH(e,t){const n=Np(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const o=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
753
|
+
`)):r.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}function MH(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const qC=[];function KC(e){return qC[0]=e,Zl(qC)}const DH=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function FH(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=DH(t),s=Object.keys(i);function a(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n})`}function l(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-r/100}${n})`}function u(d,p){const g=s.indexOf(p);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n}) and (max-width:${(g!==-1&&typeof t[s[g]]=="number"?t[s[g]]:p)-r/100}${n})`}function c(d){return s.indexOf(d)+1<s.length?u(d,s[s.indexOf(d)+1]):a(d)}function f(d){const p=s.indexOf(d);return p===0?a(s[1]):p===s.length-1?l(s[p]):u(d,s[s.indexOf(d)+1]).replace("@media","@media not all and")}return{keys:s,values:i,up:a,down:l,between:u,only:c,not:f,unit:n,...o}}const jH={borderRadius:4};function QC(e=8,t=yp({spacing:e})){if(e.mui)return e;const n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" "));return n.mui=!0,n}function LH(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function e_(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...s}=e,a=FH(n),l=QC(o);let u=Ot({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...jH,...i}},s);return u=U6(u),u.applyStyles=LH,u=t.reduce((c,f)=>Ot(c,f),u),u.unstable_sxConfig={...zl,...s==null?void 0:s.unstable_sxConfig},u.unstable_sx=function(f){return $o({sx:f,theme:this})},u}const t_=e=>e,BH=(()=>{let e=t_;return{configure(t){e=t},generate(t){return e(t)},reset(){e=t_}}})(),zH={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function tn(e,t,n="Mui"){const r=zH[t];return r?`${n}-${r}`:`${BH.generate(e)}-${t}`}function Sn(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=tn(e,o,n)}),r}function n_(e,t=""){return e.displayName||e.name||t}function r_(e,t,n){const r=n_(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function VH(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return n_(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Tl.ForwardRef:return r_(e,e.render,"ForwardRef");case Tl.Memo:return r_(e,e.type,"memo");default:return}}}function o_(e){const{variants:t,...n}=e,r={variants:t,style:KC(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=KC(o.style))}),r}const GH=e_();function Pp(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function $H(e){return e?(t,n)=>n[e]:null}function HH(e,t,n){e.theme=UH(e.theme)?n:e.theme[t]||e.theme}function ql(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>ql(e,r));if(Array.isArray(n==null?void 0:n.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:o,...i}=n;r=i}return i_(e,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function i_(e,t,n=[]){var o;let r;e:for(let i=0;i<t.length;i+=1){const s=t[i];if(typeof s.props=="function"){if(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),!s.props(r))continue}else for(const a in s.props)if(e[a]!==s.props[a]&&((o=e.ownerState)==null?void 0:o[a])!==s.props[a])continue e;typeof s.style=="function"?(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),n.push(s.style(r))):n.push(s.style)}return n}function WH(e={}){const{themeId:t,defaultTheme:n=GH,rootShouldForwardProp:r=Pp,slotShouldForwardProp:o=Pp}=e;function i(a){HH(a,t,n)}return(a,l={})=>{MH(a,S=>S.filter(E=>E!==$o));const{name:u,slot:c,skipVariantsResolver:f,skipSx:d,overridesResolver:p=$H(s_(c)),...g}=l,h=f!==void 0?f:c&&c!=="Root"&&c!=="root"||!1,y=d||!1;let m=Pp;c==="Root"||c==="root"?m=r:c?m=o:ZH(a)&&(m=void 0);const x=RH(a,{shouldForwardProp:m,label:YH(u,c),...g}),v=S=>{if(typeof S=="function"&&S.__emotion_real!==S)return function(I){return ql(I,S)};if(Hn(S)){const E=o_(S);return E.variants?function(O){return ql(O,E)}:E.style}return S},C=(...S)=>{const E=[],I=S.map(v),O=[];if(E.push(i),u&&p&&O.push(function(R){var D,z;const A=(z=(D=R.theme.components)==null?void 0:D[u])==null?void 0:z.styleOverrides;if(!A)return null;const j={};for(const V in A)j[V]=ql(R,A[V]);return p(R,j)}),u&&!h&&O.push(function(R){var j,D;const L=R.theme,A=(D=(j=L==null?void 0:L.components)==null?void 0:j[u])==null?void 0:D.variants;return A?i_(R,A):null}),y||O.push($o),Array.isArray(I[0])){const N=I.shift(),R=new Array(E.length).fill(""),L=new Array(O.length).fill("");let A;A=[...R,...N,...L],A.raw=[...R,...N.raw,...L],E.unshift(A)}const M=[...E,...I,...O],w=x(...M);return a.muiName&&(w.muiName=a.muiName),process.env.NODE_ENV!=="production"&&(w.displayName=XH(u,c,a)),w};return x.withConfig&&(C.withConfig=x.withConfig),C}}function XH(e,t,n){return e?`${e}${lt(t||"")}`:`Styled(${VH(n)})`}function YH(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${s_(t||"Root")}`),n}function UH(e){for(const t in e)return!1;return!0}function ZH(e){return typeof e=="string"&&e.charCodeAt(0)>96}function s_(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Op(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=r;if(o==="components"||o==="slots")n[o]={...e[o],...n[o]};else if(o==="componentsProps"||o==="slotProps"){const i=e[o],s=t[o];if(!s)n[o]=i||{};else if(!i)n[o]=s;else{n[o]={...s};for(const a in i)if(Object.prototype.hasOwnProperty.call(i,a)){const l=a;n[o][l]=Op(i[l],s[l])}}}else n[o]===void 0&&(n[o]=e[o])}return n}const JH=typeof window<"u"?k.useLayoutEffect:k.useEffect;function qH(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Rp(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),qH(e,t,n)}function KH(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function xr(e){if(e.type)return e;if(e.charAt(0)==="#")return xr(KH(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
754
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:br(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
|
|
755
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:br(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const QH=e=>{const t=xr(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},ms=(e,t)=>{try{return QH(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Kl(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function a_(e){e=xr(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(u,c=(u+n/30)%12)=>o-i*Math.max(Math.min(c-3,9-c,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),Kl({type:a,values:l})}function Mp(e){e=xr(e);let t=e.type==="hsl"||e.type==="hsla"?xr(a_(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function l_(e,t){const n=Mp(e),r=Mp(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function ys(e,t){return e=xr(e),t=Rp(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Kl(e)}function Ql(e,t,n){try{return ys(e,t)}catch{return e}}function eu(e,t){if(e=xr(e),t=Rp(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Kl(e)}function Me(e,t,n){try{return eu(e,t)}catch{return e}}function tu(e,t){if(e=xr(e),t=Rp(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Kl(e)}function De(e,t,n){try{return tu(e,t)}catch{return e}}function eW(e,t=.15){return Mp(e)>.5?eu(e,t):tu(e,t)}function nu(e,t,n){try{return eW(e,t)}catch{return e}}function tW(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function nW(e){const{prototype:t={}}=e;return!!t.isReactComponent}function rW(e,t,n,r,o){const i=e[t],s=o||t;if(i==null||typeof window>"u")return null;let a;return typeof i=="function"&&!nW(i)&&(a="Did you accidentally provide a plain function component instead?"),a!==void 0?new Error(`Invalid ${r} \`${s}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${a} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const oW=tW(B.elementType,rW),iW=B.oneOfType([B.func,B.object]);function ru(e){const t=k.useRef(e);return JH(()=>{t.current=e}),k.useRef((...n)=>(0,t.current)(...n)).current}function Dp(...e){const t=k.useRef(void 0),n=k.useCallback(r=>{const o=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const s=i,a=s(r);return typeof a=="function"?a:()=>{s(null)}}return i.current=r,()=>{i.current=null}});return()=>{o.forEach(i=>i==null?void 0:i())}},e);return k.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}const u_={};function c_(e,t){const n=k.useRef(u_);return n.current===u_&&(n.current=e(t)),n}const sW=[];function aW(e){k.useEffect(e,sW)}class Fp{constructor(){Is(this,"currentId",null);Is(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Is(this,"disposeEffect",()=>this.clear)}static create(){return new Fp}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function lW(){const e=c_(Fp.create).current;return aW(e.disposeEffect),e}function f_(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!/jsdom/.test(window.navigator.userAgent)&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
|
|
756
|
+
`))}return!1}function uW(e){return typeof e=="string"}function cW(e,t,n){return e===void 0||uW(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function fW(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function d_(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function dW(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const p=et(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},h={...n,...o,...r};return p.length>0&&(h.className=p),Object.keys(g).length>0&&(h.style=g),{props:h,internalRef:void 0}}const s=fW({...o,...r}),a=d_(r),l=d_(o),u=t(s),c=et(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),f={...u==null?void 0:u.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},d={...u,...n,...l,...a};return c.length>0&&(d.className=c),Object.keys(f).length>0&&(d.style=f),{props:d,internalRef:u.ref}}function pW(e,t,n){return typeof e=="function"?e(t,n):e}const hW=k.createContext(void 0);process.env.NODE_ENV!=="production"&&(B.node,B.object);function gW(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Op(o.defaultProps,r):!o.styleOverrides&&!o.variants?Op(o,r):r}function mW({props:e,name:t}){const n=k.useContext(hW);return gW({props:e,name:t,theme:{components:n}})}const p_={theme:void 0};function yW(e){let t,n;return function(o){let i=t;return(i===void 0||o.theme!==n)&&(p_.theme=o.theme,i=o_(e(p_)),t=i,n=o.theme),i}}function bW(e=""){function t(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${e?`${e}-`:""}${r}${t(...o)})`}const h_=(e,t,n,r=[])=>{let o=e;t.forEach((i,s)=>{s===t.length-1?Array.isArray(o)?o[Number(i)]=n:o&&typeof o=="object"&&(o[i]=n):o&&typeof o=="object"&&(o[i]||(o[i]=r.includes(i)?[]:{}),o=o[i])})},vW=(e,t,n)=>{function r(o,i=[],s=[]){Object.entries(o).forEach(([a,l])=>{(!n||n&&!n([...i,a]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...i,a],Array.isArray(l)?[...s,a]:s):t([...i,a],l,s))})}r(e)},xW=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function jp(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},s={};return vW(e,(a,l,u)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(a,l))){const c=`--${n?`${n}-`:""}${a.join("-")}`,f=xW(a,l);Object.assign(o,{[c]:f}),h_(i,a,`var(${c})`,u),h_(s,a,`var(${c}, ${f})`,u)}},a=>a[0]==="vars"),{css:o,vars:i,varsWithDefaults:s}}function wW(e,t={}){const{getSelector:n=y,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:i={},components:s,defaultColorScheme:a="light",...l}=e,{vars:u,css:c,varsWithDefaults:f}=jp(l,t);let d=f;const p={},{[a]:g,...h}=i;if(Object.entries(h||{}).forEach(([v,C])=>{const{vars:S,css:E,varsWithDefaults:I}=jp(C,t);d=Ot(d,I),p[v]={css:E,vars:S}}),g){const{css:v,vars:C,varsWithDefaults:S}=jp(g,t);d=Ot(d,S),p[a]={css:v,vars:C}}function y(v,C){var E,I;let S=o;if(o==="class"&&(S=".%s"),o==="data"&&(S="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(S=`[${o}="%s"]`),v){if(S==="media")return e.defaultColorScheme===v?":root":{[`@media (prefers-color-scheme: ${((I=(E=i[v])==null?void 0:E.palette)==null?void 0:I.mode)||v})`]:{":root":C}};if(S)return e.defaultColorScheme===v?`:root, ${S.replace("%s",String(v))}`:S.replace("%s",String(v))}return":root"}return{vars:d,generateThemeVars:()=>{let v={...u};return Object.entries(p).forEach(([,{vars:C}])=>{v=Ot(v,C)}),v},generateStyleSheets:()=>{var O,M;const v=[],C=e.defaultColorScheme||"light";function S(w,N){Object.keys(N).length&&v.push(typeof w=="string"?{[w]:{...N}}:w)}S(n(void 0,{...c}),c);const{[C]:E,...I}=p;if(E){const{css:w}=E,N=(M=(O=i[C])==null?void 0:O.palette)==null?void 0:M.mode,R=!r&&N?{colorScheme:N,...w}:{...w};S(n(C,{...R}),R)}return Object.entries(I).forEach(([w,{css:N}])=>{var A,j;const R=(j=(A=i[w])==null?void 0:A.palette)==null?void 0:j.mode,L=!r&&R?{colorScheme:R,...N}:{...N};S(n(w,{...L}),L)}),v}}}function CW(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const bs={black:"#000",white:"#fff"},_W={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Yo={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Uo={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},vs={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Zo={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Jo={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},qo={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function g_(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:bs.white,default:bs.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const SW=g_();function m_(){return{text:{primary:bs.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:bs.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const y_=m_();function b_(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=tu(e.main,o):t==="dark"&&(e.dark=eu(e.main,i)))}function EW(e="light"){return e==="dark"?{main:Zo[200],light:Zo[50],dark:Zo[400]}:{main:Zo[700],light:Zo[400],dark:Zo[800]}}function IW(e="light"){return e==="dark"?{main:Yo[200],light:Yo[50],dark:Yo[400]}:{main:Yo[500],light:Yo[300],dark:Yo[700]}}function kW(e="light"){return e==="dark"?{main:Uo[500],light:Uo[300],dark:Uo[700]}:{main:Uo[700],light:Uo[400],dark:Uo[800]}}function AW(e="light"){return e==="dark"?{main:Jo[400],light:Jo[300],dark:Jo[700]}:{main:Jo[700],light:Jo[500],dark:Jo[900]}}function TW(e="light"){return e==="dark"?{main:qo[400],light:qo[300],dark:qo[700]}:{main:qo[800],light:qo[500],dark:qo[900]}}function NW(e="light"){return e==="dark"?{main:vs[400],light:vs[300],dark:vs[700]}:{main:"#ed6c02",light:vs[500],dark:vs[900]}}function Lp(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,i=e.primary||EW(t),s=e.secondary||IW(t),a=e.error||kW(t),l=e.info||AW(t),u=e.success||TW(t),c=e.warning||NW(t);function f(h){const y=l_(h,y_.text.primary)>=n?y_.text.primary:SW.text.primary;if(process.env.NODE_ENV!=="production"){const m=l_(h,y);m<3&&console.error([`MUI: The contrast ratio of ${m}:1 for ${y} on ${h}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
757
|
+
`))}return y}const d=({color:h,name:y,mainShade:m=500,lightShade:x=300,darkShade:v=700})=>{if(h={...h},!h.main&&h[m]&&(h.main=h[m]),!h.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${y?` (${y})`:""} provided to augmentColor(color) is invalid.
|
|
758
|
+
The color object needs to have a \`main\` property or a \`${m}\` property.`:br(11,y?` (${y})`:"",m));if(typeof h.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${y?` (${y})`:""} provided to augmentColor(color) is invalid.
|
|
759
|
+
\`color.main\` should be a string, but \`${JSON.stringify(h.main)}\` was provided instead.
|
|
760
|
+
|
|
761
|
+
Did you intend to use one of the following approaches?
|
|
762
|
+
|
|
763
|
+
import { green } from "@mui/material/colors";
|
|
764
|
+
|
|
765
|
+
const theme1 = createTheme({ palette: {
|
|
766
|
+
primary: green,
|
|
767
|
+
} });
|
|
768
|
+
|
|
769
|
+
const theme2 = createTheme({ palette: {
|
|
770
|
+
primary: { main: green[500] },
|
|
771
|
+
} });`:br(12,y?` (${y})`:"",JSON.stringify(h.main)));return b_(h,"light",x,r),b_(h,"dark",v,r),h.contrastText||(h.contrastText=f(h.main)),h};let p;return t==="light"?p=g_():t==="dark"&&(p=m_()),process.env.NODE_ENV!=="production"&&(p||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Ot({common:{...bs},mode:t,primary:d({color:i,name:"primary"}),secondary:d({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:a,name:"error"}),warning:d({color:c,name:"warning"}),info:d({color:l,name:"info"}),success:d({color:u,name:"success"}),grey:_W,contrastThreshold:n,getContrastText:f,augmentColor:d,tonalOffset:r,...p},o)}function PW(e){const t={};return Object.entries(e).forEach(r=>{const[o,i]=r;typeof i=="object"&&(t[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function OW(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function RW(e){return Math.round(e*1e5)/1e5}const v_={textTransform:"uppercase"},x_='"Roboto", "Helvetica", "Arial", sans-serif';function MW(e,t){const{fontFamily:n=x_,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:a=700,htmlFontSize:l=16,allVariants:u,pxToRem:c,...f}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof r!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof l!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const d=r/14,p=c||(y=>`${y/l*d}rem`),g=(y,m,x,v,C)=>({fontFamily:n,fontWeight:y,fontSize:p(m),lineHeight:x,...n===x_?{letterSpacing:`${RW(v/m)}em`}:{},...C,...u}),h={h1:g(o,96,1.167,-1.5),h2:g(o,60,1.2,-.5),h3:g(i,48,1.167,0),h4:g(i,34,1.235,.25),h5:g(i,24,1.334,0),h6:g(s,20,1.6,.15),subtitle1:g(i,16,1.75,.15),subtitle2:g(s,14,1.57,.1),body1:g(i,16,1.5,.15),body2:g(i,14,1.43,.15),button:g(s,14,1.75,.4,v_),caption:g(i,12,1.66,.4),overline:g(i,12,2.66,1,v_),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ot({htmlFontSize:l,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:a,...h},f,{clone:!1})}const DW=.2,FW=.14,jW=.12;function $e(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${DW})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${FW})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${jW})`].join(",")}const LW=["none",$e(0,2,1,-1,0,1,1,0,0,1,3,0),$e(0,3,1,-2,0,2,2,0,0,1,5,0),$e(0,3,3,-2,0,3,4,0,0,1,8,0),$e(0,2,4,-1,0,4,5,0,0,1,10,0),$e(0,3,5,-1,0,5,8,0,0,1,14,0),$e(0,3,5,-1,0,6,10,0,0,1,18,0),$e(0,4,5,-2,0,7,10,1,0,2,16,1),$e(0,5,5,-3,0,8,10,1,0,3,14,2),$e(0,5,6,-3,0,9,12,1,0,3,16,2),$e(0,6,6,-3,0,10,14,1,0,4,18,3),$e(0,6,7,-4,0,11,15,1,0,4,20,3),$e(0,7,8,-4,0,12,17,2,0,5,22,4),$e(0,7,8,-4,0,13,19,2,0,5,24,4),$e(0,7,9,-4,0,14,21,2,0,5,26,4),$e(0,8,9,-5,0,15,22,2,0,6,28,5),$e(0,8,10,-5,0,16,24,2,0,6,30,5),$e(0,8,11,-5,0,17,26,2,0,6,32,5),$e(0,9,11,-5,0,18,28,2,0,7,34,6),$e(0,9,12,-6,0,19,29,2,0,7,36,6),$e(0,10,13,-6,0,20,31,3,0,8,38,7),$e(0,10,13,-6,0,21,33,3,0,8,40,7),$e(0,10,14,-6,0,22,35,3,0,8,42,7),$e(0,11,14,-7,0,23,36,3,0,9,44,8),$e(0,11,15,-7,0,24,38,3,0,9,46,8)],BW={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},zW={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function w_(e){return`${Math.round(e)}ms`}function VW(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function GW(e){const t={...BW,...e.easing},n={...zW,...e.duration};return{getAutoHeightDuration:VW,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0,...u}=i;if(process.env.NODE_ENV!=="production"){const c=d=>typeof d=="string",f=d=>!Number.isNaN(parseFloat(d));!c(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(s)&&!c(s)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`),c(a)||console.error('MUI: Argument "easing" must be a string.'),!f(l)&&!c(l)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
772
|
+
`)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof s=="string"?s:w_(s)} ${a} ${typeof l=="string"?l:w_(l)}`).join(",")},...e,easing:t,duration:n}}const $W={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function HW(e){return Hn(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function C_(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let i=0;i<o.length;i++){const[s,a]=o[i];!HW(a)||s.startsWith("unstable_")?delete r[s]:Hn(a)&&(r[s]={...a},n(r[s]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
773
|
+
|
|
774
|
+
const theme = ${JSON.stringify(t,null,2)};
|
|
775
|
+
|
|
776
|
+
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
777
|
+
theme.transitions = createTransitions(theme.transitions || {});
|
|
778
|
+
|
|
779
|
+
export default theme;`}function Bp(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:s={},typography:a={},shape:l,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":br(20));const c=Lp(i),f=e_(e);let d=Ot(f,{mixins:OW(f.breakpoints,r),palette:c,shadows:LW.slice(),typography:MW(c,a),transitions:GW(s),zIndex:{...$W}});if(d=Ot(d,u),d=t.reduce((p,g)=>Ot(p,g),d),process.env.NODE_ENV!=="production"){const p=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],g=(h,y)=>{let m;for(m in h){const x=h[m];if(p.includes(m)&&Object.keys(x).length>0){if(process.env.NODE_ENV!=="production"){const v=tn("",m);console.error([`MUI: The \`${y}\` component increases the CSS specificity of the \`${m}\` internal state.`,"You can not override it like this: ",JSON.stringify(h,null,2),"",`Instead, you need to use the '&.${v}' syntax:`,JSON.stringify({root:{[`&.${v}`]:x}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
780
|
+
`))}h[m]={}}}};Object.keys(d.components).forEach(h=>{const y=d.components[h].styleOverrides;y&&h.startsWith("Mui")&&g(y,h)})}return d.unstable_sxConfig={...zl,...u==null?void 0:u.unstable_sxConfig},d.unstable_sx=function(g){return $o({sx:g,theme:this})},d.toRuntimeSource=C_,d}function WW(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const XW=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=WW(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function __(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function S_(e){return e==="dark"?XW:[]}function YW(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,i=Lp(t);return{palette:i,opacity:{...__(i.mode),...n},overlays:r||S_(i.mode),...o}}function UW(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const ZW=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],JW=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const s={};return ZW(e.cssVarPrefix).forEach(a=>{s[a]=n[a],delete n[a]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:s}}:i?{[i.replace("%s",t)]:s,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...s}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}return r};function qW(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function q(e,t,n){!e[t]&&n&&(e[t]=n)}function xs(e){return typeof e!="string"||!e.startsWith("hsl")?e:a_(e)}function Xn(e,t){`${t}Channel`in e||(e[`${t}Channel`]=ms(xs(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
781
|
+
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function KW(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const En=e=>{try{return e()}catch{}},QW=(e="mui")=>bW(e);function zp(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=YW({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:i,...s}=Bp({...n,palette:{mode:o,...t==null?void 0:t.palette}});return e[r]={...t,palette:i,opacity:{...__(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||S_(o)},s}function eX(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:s=UW,colorSchemeSelector:a=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...u}=e,c=Object.keys(n)[0],f=r||(n.light&&c!=="light"?"light":c),d=QW(i),{[f]:p,light:g,dark:h,...y}=n,m={...y};let x=p;if((f==="dark"&&!("dark"in n)||f==="light"&&!("light"in n))&&(x=!0),!x)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${f}\` option is either missing or invalid.`:br(21,f));const v=zp(m,x,u,f);g&&!m.light&&zp(m,g,void 0,"light"),h&&!m.dark&&zp(m,h,void 0,"dark");let C={defaultColorScheme:f,...v,cssVarPrefix:i,colorSchemeSelector:a,rootSelector:l,getCssVar:d,colorSchemes:m,font:{...PW(v.typography),...v.font},spacing:KW(u.spacing)};Object.keys(C.colorSchemes).forEach(M=>{const w=C.colorSchemes[M].palette,N=R=>{const L=R.split("-"),A=L[1],j=L[2];return d(R,w[A][j])};if(w.mode==="light"&&(q(w.common,"background","#fff"),q(w.common,"onBackground","#000")),w.mode==="dark"&&(q(w.common,"background","#000"),q(w.common,"onBackground","#fff")),qW(w,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),w.mode==="light"){q(w.Alert,"errorColor",Me(w.error.light,.6)),q(w.Alert,"infoColor",Me(w.info.light,.6)),q(w.Alert,"successColor",Me(w.success.light,.6)),q(w.Alert,"warningColor",Me(w.warning.light,.6)),q(w.Alert,"errorFilledBg",N("palette-error-main")),q(w.Alert,"infoFilledBg",N("palette-info-main")),q(w.Alert,"successFilledBg",N("palette-success-main")),q(w.Alert,"warningFilledBg",N("palette-warning-main")),q(w.Alert,"errorFilledColor",En(()=>w.getContrastText(w.error.main))),q(w.Alert,"infoFilledColor",En(()=>w.getContrastText(w.info.main))),q(w.Alert,"successFilledColor",En(()=>w.getContrastText(w.success.main))),q(w.Alert,"warningFilledColor",En(()=>w.getContrastText(w.warning.main))),q(w.Alert,"errorStandardBg",De(w.error.light,.9)),q(w.Alert,"infoStandardBg",De(w.info.light,.9)),q(w.Alert,"successStandardBg",De(w.success.light,.9)),q(w.Alert,"warningStandardBg",De(w.warning.light,.9)),q(w.Alert,"errorIconColor",N("palette-error-main")),q(w.Alert,"infoIconColor",N("palette-info-main")),q(w.Alert,"successIconColor",N("palette-success-main")),q(w.Alert,"warningIconColor",N("palette-warning-main")),q(w.AppBar,"defaultBg",N("palette-grey-100")),q(w.Avatar,"defaultBg",N("palette-grey-400")),q(w.Button,"inheritContainedBg",N("palette-grey-300")),q(w.Button,"inheritContainedHoverBg",N("palette-grey-A100")),q(w.Chip,"defaultBorder",N("palette-grey-400")),q(w.Chip,"defaultAvatarColor",N("palette-grey-700")),q(w.Chip,"defaultIconColor",N("palette-grey-700")),q(w.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),q(w.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),q(w.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),q(w.LinearProgress,"primaryBg",De(w.primary.main,.62)),q(w.LinearProgress,"secondaryBg",De(w.secondary.main,.62)),q(w.LinearProgress,"errorBg",De(w.error.main,.62)),q(w.LinearProgress,"infoBg",De(w.info.main,.62)),q(w.LinearProgress,"successBg",De(w.success.main,.62)),q(w.LinearProgress,"warningBg",De(w.warning.main,.62)),q(w.Skeleton,"bg",`rgba(${N("palette-text-primaryChannel")} / 0.11)`),q(w.Slider,"primaryTrack",De(w.primary.main,.62)),q(w.Slider,"secondaryTrack",De(w.secondary.main,.62)),q(w.Slider,"errorTrack",De(w.error.main,.62)),q(w.Slider,"infoTrack",De(w.info.main,.62)),q(w.Slider,"successTrack",De(w.success.main,.62)),q(w.Slider,"warningTrack",De(w.warning.main,.62));const R=nu(w.background.default,.8);q(w.SnackbarContent,"bg",R),q(w.SnackbarContent,"color",En(()=>w.getContrastText(R))),q(w.SpeedDialAction,"fabHoverBg",nu(w.background.paper,.15)),q(w.StepConnector,"border",N("palette-grey-400")),q(w.StepContent,"border",N("palette-grey-400")),q(w.Switch,"defaultColor",N("palette-common-white")),q(w.Switch,"defaultDisabledColor",N("palette-grey-100")),q(w.Switch,"primaryDisabledColor",De(w.primary.main,.62)),q(w.Switch,"secondaryDisabledColor",De(w.secondary.main,.62)),q(w.Switch,"errorDisabledColor",De(w.error.main,.62)),q(w.Switch,"infoDisabledColor",De(w.info.main,.62)),q(w.Switch,"successDisabledColor",De(w.success.main,.62)),q(w.Switch,"warningDisabledColor",De(w.warning.main,.62)),q(w.TableCell,"border",De(Ql(w.divider,1),.88)),q(w.Tooltip,"bg",Ql(w.grey[700],.92))}if(w.mode==="dark"){q(w.Alert,"errorColor",De(w.error.light,.6)),q(w.Alert,"infoColor",De(w.info.light,.6)),q(w.Alert,"successColor",De(w.success.light,.6)),q(w.Alert,"warningColor",De(w.warning.light,.6)),q(w.Alert,"errorFilledBg",N("palette-error-dark")),q(w.Alert,"infoFilledBg",N("palette-info-dark")),q(w.Alert,"successFilledBg",N("palette-success-dark")),q(w.Alert,"warningFilledBg",N("palette-warning-dark")),q(w.Alert,"errorFilledColor",En(()=>w.getContrastText(w.error.dark))),q(w.Alert,"infoFilledColor",En(()=>w.getContrastText(w.info.dark))),q(w.Alert,"successFilledColor",En(()=>w.getContrastText(w.success.dark))),q(w.Alert,"warningFilledColor",En(()=>w.getContrastText(w.warning.dark))),q(w.Alert,"errorStandardBg",Me(w.error.light,.9)),q(w.Alert,"infoStandardBg",Me(w.info.light,.9)),q(w.Alert,"successStandardBg",Me(w.success.light,.9)),q(w.Alert,"warningStandardBg",Me(w.warning.light,.9)),q(w.Alert,"errorIconColor",N("palette-error-main")),q(w.Alert,"infoIconColor",N("palette-info-main")),q(w.Alert,"successIconColor",N("palette-success-main")),q(w.Alert,"warningIconColor",N("palette-warning-main")),q(w.AppBar,"defaultBg",N("palette-grey-900")),q(w.AppBar,"darkBg",N("palette-background-paper")),q(w.AppBar,"darkColor",N("palette-text-primary")),q(w.Avatar,"defaultBg",N("palette-grey-600")),q(w.Button,"inheritContainedBg",N("palette-grey-800")),q(w.Button,"inheritContainedHoverBg",N("palette-grey-700")),q(w.Chip,"defaultBorder",N("palette-grey-700")),q(w.Chip,"defaultAvatarColor",N("palette-grey-300")),q(w.Chip,"defaultIconColor",N("palette-grey-300")),q(w.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),q(w.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),q(w.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),q(w.LinearProgress,"primaryBg",Me(w.primary.main,.5)),q(w.LinearProgress,"secondaryBg",Me(w.secondary.main,.5)),q(w.LinearProgress,"errorBg",Me(w.error.main,.5)),q(w.LinearProgress,"infoBg",Me(w.info.main,.5)),q(w.LinearProgress,"successBg",Me(w.success.main,.5)),q(w.LinearProgress,"warningBg",Me(w.warning.main,.5)),q(w.Skeleton,"bg",`rgba(${N("palette-text-primaryChannel")} / 0.13)`),q(w.Slider,"primaryTrack",Me(w.primary.main,.5)),q(w.Slider,"secondaryTrack",Me(w.secondary.main,.5)),q(w.Slider,"errorTrack",Me(w.error.main,.5)),q(w.Slider,"infoTrack",Me(w.info.main,.5)),q(w.Slider,"successTrack",Me(w.success.main,.5)),q(w.Slider,"warningTrack",Me(w.warning.main,.5));const R=nu(w.background.default,.98);q(w.SnackbarContent,"bg",R),q(w.SnackbarContent,"color",En(()=>w.getContrastText(R))),q(w.SpeedDialAction,"fabHoverBg",nu(w.background.paper,.15)),q(w.StepConnector,"border",N("palette-grey-600")),q(w.StepContent,"border",N("palette-grey-600")),q(w.Switch,"defaultColor",N("palette-grey-300")),q(w.Switch,"defaultDisabledColor",N("palette-grey-600")),q(w.Switch,"primaryDisabledColor",Me(w.primary.main,.55)),q(w.Switch,"secondaryDisabledColor",Me(w.secondary.main,.55)),q(w.Switch,"errorDisabledColor",Me(w.error.main,.55)),q(w.Switch,"infoDisabledColor",Me(w.info.main,.55)),q(w.Switch,"successDisabledColor",Me(w.success.main,.55)),q(w.Switch,"warningDisabledColor",Me(w.warning.main,.55)),q(w.TableCell,"border",Me(Ql(w.divider,1),.68)),q(w.Tooltip,"bg",Ql(w.grey[700],.92))}Xn(w.background,"default"),Xn(w.background,"paper"),Xn(w.common,"background"),Xn(w.common,"onBackground"),Xn(w,"divider"),Object.keys(w).forEach(R=>{const L=w[R];R!=="tonalOffset"&&L&&typeof L=="object"&&(L.main&&q(w[R],"mainChannel",ms(xs(L.main))),L.light&&q(w[R],"lightChannel",ms(xs(L.light))),L.dark&&q(w[R],"darkChannel",ms(xs(L.dark))),L.contrastText&&q(w[R],"contrastTextChannel",ms(xs(L.contrastText))),R==="text"&&(Xn(w[R],"primary"),Xn(w[R],"secondary")),R==="action"&&(L.active&&Xn(w[R],"active"),L.selected&&Xn(w[R],"selected")))})}),C=t.reduce((M,w)=>Ot(M,w),C);const S={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:JW(C)},{vars:E,generateThemeVars:I,generateStyleSheets:O}=wW(C,S);return C.vars=E,Object.entries(C.colorSchemes[C.defaultColorScheme]).forEach(([M,w])=>{C[M]=w}),C.generateThemeVars=I,C.generateStyleSheets=O,C.generateSpacing=function(){return QC(u.spacing,yp(this))},C.getColorSchemeSelector=CW(a),C.spacing=C.generateSpacing(),C.shouldSkipGeneratingVar=s,C.unstable_sxConfig={...zl,...u==null?void 0:u.unstable_sxConfig},C.unstable_sx=function(w){return $o({sx:w,theme:this})},C.toRuntimeSource=C_,C}function E_(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Lp({...n===!0?{}:n.palette,mode:t})})}function tX(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...s}=e,a=i||"light",l=o==null?void 0:o[a],u={...o,...n?{[a]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Bp(e,...t);let c=n;"palette"in e||u[a]&&(u[a]!==!0?c=u[a].palette:a==="dark"&&(c={mode:"dark"}));const f=Bp({...e,palette:c},...t);return f.defaultColorScheme=a,f.colorSchemes=u,f.palette.mode==="light"&&(f.colorSchemes.light={...u.light!==!0&&u.light,palette:f.palette},E_(f,"dark",u.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:f.palette},E_(f,"light",u.light)),f}return!n&&!("light"in u)&&a==="light"&&(u.light=!0),eX({...s,colorSchemes:u,defaultColorScheme:a,...typeof r!="boolean"&&r},...t)}const nX=tX(),rX="$$material";function oX(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const $t=WH({themeId:rX,defaultTheme:nX,rootShouldForwardProp:e=>oX(e)&&e!=="classes"}),Ko=yW;process.env.NODE_ENV!=="production"&&(B.node,B.object.isRequired);function In(e){return mW(e)}function iX(e){return tn("MuiTable",e)}Sn("MuiTable",["root","stickyHeader"]);const sX=e=>{const{classes:t,stickyHeader:n}=e;return $n({root:["root",n&&"stickyHeader"]},iX,t)},aX=$t("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(Ko(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),I_="table",k_=k.forwardRef(function(t,n){const r=In({props:t,name:"MuiTable"}),{className:o,component:i=I_,padding:s="normal",size:a="medium",stickyHeader:l=!1,...u}=r,c={...r,component:i,padding:s,size:a,stickyHeader:l},f=sX(c),d=k.useMemo(()=>({padding:s,size:a,stickyHeader:l}),[s,a,l]);return b.jsx(mp.Provider,{value:d,children:b.jsx(aX,{as:i,role:i===I_?null:"table",ref:n,className:et(f.root,o),ownerState:c,...u})})});process.env.NODE_ENV!=="production"&&(k_.propTypes={children:B.node,classes:B.object,className:B.string,component:B.elementType,padding:B.oneOf(["checkbox","none","normal"]),size:B.oneOfType([B.oneOf(["medium","small"]),B.string]),stickyHeader:B.bool,sx:B.oneOfType([B.arrayOf(B.oneOfType([B.func,B.object,B.bool])),B.func,B.object])});const ws=k.createContext();process.env.NODE_ENV!=="production"&&(ws.displayName="Tablelvl2Context");function lX(e){return tn("MuiTableBody",e)}Sn("MuiTableBody",["root"]);const uX=e=>{const{classes:t}=e;return $n({root:["root"]},lX,t)},cX=$t("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),fX={variant:"body"},A_="tbody",T_=k.forwardRef(function(t,n){const r=In({props:t,name:"MuiTableBody"}),{className:o,component:i=A_,...s}=r,a={...r,component:i},l=uX(a);return b.jsx(ws.Provider,{value:fX,children:b.jsx(cX,{className:et(l.root,o),as:i,ref:n,role:i===A_?null:"rowgroup",ownerState:a,...s})})});process.env.NODE_ENV!=="production"&&(T_.propTypes={children:B.node,classes:B.object,className:B.string,component:B.elementType,sx:B.oneOfType([B.arrayOf(B.oneOfType([B.func,B.object,B.bool])),B.func,B.object])});function dX(e){return tn("MuiTableCell",e)}const pX=Sn("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),hX=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:s}=e,a={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${lt(r)}`,o!=="normal"&&`padding${lt(o)}`,`size${lt(i)}`]};return $n(a,dX,t)},gX=$t("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${lt(n.size)}`],n.padding!=="normal"&&t[`padding${lt(n.padding)}`],n.align!=="inherit"&&t[`align${lt(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(Ko(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
|
782
|
+
${e.palette.mode==="light"?tu(ys(e.palette.divider,1),.88):eu(ys(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${pX.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),Vp=k.forwardRef(function(t,n){const r=In({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:s,padding:a,scope:l,size:u,sortDirection:c,variant:f,...d}=r,p=k.useContext(mp),g=k.useContext(ws),h=g&&g.variant==="head";let y;s?y=s:y=h?"th":"td";let m=l;y==="td"?m=void 0:!m&&h&&(m="col");const x=f||g&&g.variant,v={...r,align:o,component:y,padding:a||(p&&p.padding?p.padding:"normal"),size:u||(p&&p.size?p.size:"medium"),sortDirection:c,stickyHeader:x==="head"&&p&&p.stickyHeader,variant:x},C=hX(v);let S=null;return c&&(S=c==="asc"?"ascending":"descending"),b.jsx(gX,{as:y,ref:n,className:et(C.root,i),"aria-sort":S,scope:m,ownerState:v,...d})});process.env.NODE_ENV!=="production"&&(Vp.propTypes={align:B.oneOf(["center","inherit","justify","left","right"]),children:B.node,classes:B.object,className:B.string,component:B.elementType,padding:B.oneOf(["checkbox","none","normal"]),scope:B.string,size:B.oneOfType([B.oneOf(["medium","small"]),B.string]),sortDirection:B.oneOf(["asc","desc",!1]),sx:B.oneOfType([B.arrayOf(B.oneOfType([B.func,B.object,B.bool])),B.func,B.object]),variant:B.oneOfType([B.oneOf(["body","footer","head"]),B.string])});function mX(e){return tn("MuiTableContainer",e)}Sn("MuiTableContainer",["root"]);const yX=e=>{const{classes:t}=e;return $n({root:["root"]},mX,t)},bX=$t("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),N_=k.forwardRef(function(t,n){const r=In({props:t,name:"MuiTableContainer"}),{className:o,component:i="div",...s}=r,a={...r,component:i},l=yX(a);return b.jsx(bX,{ref:n,as:i,className:et(l.root,o),ownerState:a,...s})});process.env.NODE_ENV!=="production"&&(N_.propTypes={children:B.node,classes:B.object,className:B.string,component:B.elementType,sx:B.oneOfType([B.arrayOf(B.oneOfType([B.func,B.object,B.bool])),B.func,B.object])});function vX(e){return tn("MuiTableHead",e)}Sn("MuiTableHead",["root"]);const xX=e=>{const{classes:t}=e;return $n({root:["root"]},vX,t)},wX=$t("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),CX={variant:"head"},P_="thead",O_=k.forwardRef(function(t,n){const r=In({props:t,name:"MuiTableHead"}),{className:o,component:i=P_,...s}=r,a={...r,component:i},l=xX(a);return b.jsx(ws.Provider,{value:CX,children:b.jsx(wX,{as:i,className:et(l.root,o),ref:n,role:i===P_?null:"rowgroup",ownerState:a,...s})})});process.env.NODE_ENV!=="production"&&(O_.propTypes={children:B.node,classes:B.object,className:B.string,component:B.elementType,sx:B.oneOfType([B.arrayOf(B.oneOfType([B.func,B.object,B.bool])),B.func,B.object])});function _X(e){return tn("MuiTableRow",e)}const R_=Sn("MuiTableRow",["root","selected","hover","head","footer"]),SX=e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return $n({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},_X,t)},EX=$t("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(Ko(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${R_.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${R_.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ys(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ys(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),M_="tr",Gp=k.forwardRef(function(t,n){const r=In({props:t,name:"MuiTableRow"}),{className:o,component:i=M_,hover:s=!1,selected:a=!1,...l}=r,u=k.useContext(ws),c={...r,component:i,hover:s,selected:a,head:u&&u.variant==="head",footer:u&&u.variant==="footer"},f=SX(c);return b.jsx(EX,{as:i,ref:n,className:et(f.root,o),role:i===M_?null:"row",ownerState:c,...l})});process.env.NODE_ENV!=="production"&&(Gp.propTypes={children:B.node,classes:B.object,className:B.string,component:B.elementType,hover:B.bool,selected:B.bool,sx:B.oneOfType([B.arrayOf(B.oneOfType([B.func,B.object,B.bool])),B.func,B.object])});class ou{constructor(){Is(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new ou}static use(){const t=c_(ou.create).current,[n,r]=k.useState(!1);return t.shouldMount=n,t.setShouldMount=r,k.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=kX(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function IX(){return ou.use()}function kX(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function $p(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function iu(e,t){return iu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},iu(e,t)}function D_(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,iu(e,t)}const F_=T.createContext(null);function j_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hp(e,t){var n=function(i){return t&&T.isValidElement(i)?t(i):i},r=Object.create(null);return e&&T.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function AX(e,t){e=e||{},t=t||{};function n(c){return c in t?t[c]:e[c]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var s,a={};for(var l in t){if(r[l])for(s=0;s<r[l].length;s++){var u=r[l][s];a[r[l][s]]=n(u)}a[l]=n(l)}for(s=0;s<o.length;s++)a[o[s]]=n(o[s]);return a}function Wr(e,t,n){return n[t]!=null?n[t]:e.props[t]}function TX(e,t){return Hp(e.children,function(n){return T.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Wr(n,"appear",e),enter:Wr(n,"enter",e),exit:Wr(n,"exit",e)})})}function NX(e,t,n){var r=Hp(e.children),o=AX(t,r);return Object.keys(o).forEach(function(i){var s=o[i];if(T.isValidElement(s)){var a=i in t,l=i in r,u=t[i],c=T.isValidElement(u)&&!u.props.in;l&&(!a||c)?o[i]=T.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:Wr(s,"exit",e),enter:Wr(s,"enter",e)}):!l&&a&&!c?o[i]=T.cloneElement(s,{in:!1}):l&&a&&T.isValidElement(u)&&(o[i]=T.cloneElement(s,{onExited:n.bind(null,s),in:u.props.in,exit:Wr(s,"exit",e),enter:Wr(s,"enter",e)}))}}),o}var PX=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},OX={component:"div",childFactory:function(t){return t}},Wp=function(e){D_(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=i.handleExited.bind(j_(i));return i.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var s=i.children,a=i.handleExited,l=i.firstRender;return{children:l?TX(o,a):NX(o,s,a),firstRender:!1}},n.handleExited=function(o,i){var s=Hp(this.props.children);o.key in s||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(a){var l=ue({},a.children);return delete l[o.key],{children:l}}))},n.render=function(){var o=this.props,i=o.component,s=o.childFactory,a=$p(o,["component","childFactory"]),l=this.state.contextValue,u=PX(this.state.children).map(s);return delete a.appear,delete a.enter,delete a.exit,i===null?T.createElement(F_.Provider,{value:l},u):T.createElement(F_.Provider,{value:l},T.createElement(i,a,u))},t}(T.Component);Wp.propTypes=process.env.NODE_ENV!=="production"?{component:B.any,children:B.node,appear:B.bool,enter:B.bool,exit:B.bool,childFactory:B.func}:{},Wp.defaultProps=OX;function L_(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:s,in:a,onExited:l,timeout:u}=e,[c,f]=k.useState(!1),d=et(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:s,height:s,top:-(s/2)+i,left:-(s/2)+o},g=et(n.child,c&&n.childLeaving,r&&n.childPulsate);return!a&&!c&&f(!0),k.useEffect(()=>{if(!a&&l!=null){const h=setTimeout(l,u);return()=>{clearTimeout(h)}}},[l,a,u]),b.jsx("span",{className:d,style:p,children:b.jsx("span",{className:g})})}process.env.NODE_ENV!=="production"&&(L_.propTypes={classes:B.object.isRequired,className:B.string,in:B.bool,onExited:B.func,pulsate:B.bool,rippleSize:B.number,rippleX:B.number,rippleY:B.number,timeout:B.number.isRequired});const Ht=Sn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Xp=550,RX=80,MX=Jl`
|
|
783
|
+
0% {
|
|
784
|
+
transform: scale(0);
|
|
785
|
+
opacity: 0.1;
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
100% {
|
|
789
|
+
transform: scale(1);
|
|
790
|
+
opacity: 0.3;
|
|
791
|
+
}
|
|
792
|
+
`,DX=Jl`
|
|
793
|
+
0% {
|
|
794
|
+
opacity: 1;
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
100% {
|
|
798
|
+
opacity: 0;
|
|
799
|
+
}
|
|
800
|
+
`,FX=Jl`
|
|
801
|
+
0% {
|
|
802
|
+
transform: scale(1);
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
50% {
|
|
806
|
+
transform: scale(0.92);
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
100% {
|
|
810
|
+
transform: scale(1);
|
|
811
|
+
}
|
|
812
|
+
`,jX=$t("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),LX=$t(L_,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
813
|
+
opacity: 0;
|
|
814
|
+
position: absolute;
|
|
815
|
+
|
|
816
|
+
&.${Ht.rippleVisible} {
|
|
817
|
+
opacity: 0.3;
|
|
818
|
+
transform: scale(1);
|
|
819
|
+
animation-name: ${MX};
|
|
820
|
+
animation-duration: ${Xp}ms;
|
|
821
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
&.${Ht.ripplePulsate} {
|
|
825
|
+
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
& .${Ht.child} {
|
|
829
|
+
opacity: 1;
|
|
830
|
+
display: block;
|
|
831
|
+
width: 100%;
|
|
832
|
+
height: 100%;
|
|
833
|
+
border-radius: 50%;
|
|
834
|
+
background-color: currentColor;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
& .${Ht.childLeaving} {
|
|
838
|
+
opacity: 0;
|
|
839
|
+
animation-name: ${DX};
|
|
840
|
+
animation-duration: ${Xp}ms;
|
|
841
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
& .${Ht.childPulsate} {
|
|
845
|
+
position: absolute;
|
|
846
|
+
/* @noflip */
|
|
847
|
+
left: 0px;
|
|
848
|
+
top: 0;
|
|
849
|
+
animation-name: ${FX};
|
|
850
|
+
animation-duration: 2500ms;
|
|
851
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
852
|
+
animation-iteration-count: infinite;
|
|
853
|
+
animation-delay: 200ms;
|
|
854
|
+
}
|
|
855
|
+
`,B_=k.forwardRef(function(t,n){const r=In({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s,...a}=r,[l,u]=k.useState([]),c=k.useRef(0),f=k.useRef(null);k.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const d=k.useRef(!1),p=lW(),g=k.useRef(null),h=k.useRef(null),y=k.useCallback(C=>{const{pulsate:S,rippleX:E,rippleY:I,rippleSize:O,cb:M}=C;u(w=>[...w,b.jsx(LX,{classes:{ripple:et(i.ripple,Ht.ripple),rippleVisible:et(i.rippleVisible,Ht.rippleVisible),ripplePulsate:et(i.ripplePulsate,Ht.ripplePulsate),child:et(i.child,Ht.child),childLeaving:et(i.childLeaving,Ht.childLeaving),childPulsate:et(i.childPulsate,Ht.childPulsate)},timeout:Xp,pulsate:S,rippleX:E,rippleY:I,rippleSize:O},c.current)]),c.current+=1,f.current=M},[i]),m=k.useCallback((C={},S={},E=()=>{})=>{const{pulsate:I=!1,center:O=o||S.pulsate,fakeElement:M=!1}=S;if((C==null?void 0:C.type)==="mousedown"&&d.current){d.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(d.current=!0);const w=M?null:h.current,N=w?w.getBoundingClientRect():{width:0,height:0,left:0,top:0};let R,L,A;if(O||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)R=Math.round(N.width/2),L=Math.round(N.height/2);else{const{clientX:j,clientY:D}=C.touches&&C.touches.length>0?C.touches[0]:C;R=Math.round(j-N.left),L=Math.round(D-N.top)}if(O)A=Math.sqrt((2*N.width**2+N.height**2)/3),A%2===0&&(A+=1);else{const j=Math.max(Math.abs((w?w.clientWidth:0)-R),R)*2+2,D=Math.max(Math.abs((w?w.clientHeight:0)-L),L)*2+2;A=Math.sqrt(j**2+D**2)}C!=null&&C.touches?g.current===null&&(g.current=()=>{y({pulsate:I,rippleX:R,rippleY:L,rippleSize:A,cb:E})},p.start(RX,()=>{g.current&&(g.current(),g.current=null)})):y({pulsate:I,rippleX:R,rippleY:L,rippleSize:A,cb:E})},[o,y,p]),x=k.useCallback(()=>{m({},{pulsate:!0})},[m]),v=k.useCallback((C,S)=>{if(p.clear(),(C==null?void 0:C.type)==="touchend"&&g.current){g.current(),g.current=null,p.start(0,()=>{v(C,S)});return}g.current=null,u(E=>E.length>0?E.slice(1):E),f.current=S},[p]);return k.useImperativeHandle(n,()=>({pulsate:x,start:m,stop:v}),[x,m,v]),b.jsx(jX,{className:et(Ht.root,i.root,s),ref:h,...a,children:b.jsx(Wp,{component:null,exit:!0,children:l})})});process.env.NODE_ENV!=="production"&&(B_.propTypes={center:B.bool,classes:B.object,className:B.string});function BX(e){return tn("MuiButtonBase",e)}const zX=Sn("MuiButtonBase",["root","disabled","focusVisible"]),VX=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=$n({root:["root",t&&"disabled",n&&"focusVisible"]},BX,o);return n&&r&&(s.root+=` ${r}`),s},GX=$t("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${zX.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),z_=k.forwardRef(function(t,n){const r=In({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:a,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:f=!1,focusRipple:d=!1,focusVisibleClassName:p,LinkComponent:g="a",onBlur:h,onClick:y,onContextMenu:m,onDragLeave:x,onFocus:v,onFocusVisible:C,onKeyDown:S,onKeyUp:E,onMouseDown:I,onMouseLeave:O,onMouseUp:M,onTouchEnd:w,onTouchMove:N,onTouchStart:R,tabIndex:L=0,TouchRippleProps:A,touchRippleRef:j,type:D,...z}=r,V=k.useRef(null),F=IX(),_=Dp(F.ref,j),[G,$]=k.useState(!1);u&&G&&$(!1),k.useImperativeHandle(o,()=>({focusVisible:()=>{$(!0),V.current.focus()}}),[]);const P=F.shouldMount&&!c&&!u;k.useEffect(()=>{G&&d&&!c&&F.pulsate()},[c,d,G,F]);const H=Yn(F,"start",I,f),J=Yn(F,"stop",m,f),W=Yn(F,"stop",x,f),X=Yn(F,"stop",M,f),U=Yn(F,"stop",ge=>{G&&ge.preventDefault(),O&&O(ge)},f),Q=Yn(F,"start",R,f),ne=Yn(F,"stop",w,f),oe=Yn(F,"stop",N,f),Z=Yn(F,"stop",ge=>{f_(ge.target)||$(!1),h&&h(ge)},!1),ce=ru(ge=>{V.current||(V.current=ge.currentTarget),f_(ge.target)&&($(!0),C&&C(ge)),v&&v(ge)}),pe=()=>{const ge=V.current;return l&&l!=="button"&&!(ge.tagName==="A"&&ge.href)},Ie=ru(ge=>{d&&!ge.repeat&&G&&ge.key===" "&&F.stop(ge,()=>{F.start(ge)}),ge.target===ge.currentTarget&&pe()&&ge.key===" "&&ge.preventDefault(),S&&S(ge),ge.target===ge.currentTarget&&pe()&&ge.key==="Enter"&&!u&&(ge.preventDefault(),y&&y(ge))}),Ze=ru(ge=>{d&&ge.key===" "&&G&&!ge.defaultPrevented&&F.stop(ge,()=>{F.pulsate(ge)}),E&&E(ge),y&&ge.target===ge.currentTarget&&pe()&&ge.key===" "&&!ge.defaultPrevented&&y(ge)});let ft=l;ft==="button"&&(z.href||z.to)&&(ft=g);const Dt={};ft==="button"?(Dt.type=D===void 0?"button":D,Dt.disabled=u):(!z.href&&!z.to&&(Dt.role="button"),u&&(Dt["aria-disabled"]=u));const Ft=Dp(n,V),on={...r,centerRipple:i,component:l,disabled:u,disableRipple:c,disableTouchRipple:f,focusRipple:d,tabIndex:L,focusVisible:G},Jr=VX(on);return b.jsxs(GX,{as:ft,className:et(Jr.root,a),ownerState:on,onBlur:Z,onClick:y,onContextMenu:J,onFocus:ce,onKeyDown:Ie,onKeyUp:Ze,onMouseDown:H,onMouseLeave:U,onMouseUp:X,onDragLeave:W,onTouchEnd:ne,onTouchMove:oe,onTouchStart:Q,ref:Ft,tabIndex:u?-1:L,type:D,...Dt,...z,children:[s,P?b.jsx(B_,{ref:_,center:i,...A}):null]})});function Yn(e,t,n,r=!1){return ru(o=>(n&&n(o),r||e[t](o),!0))}process.env.NODE_ENV!=="production"&&(z_.propTypes={action:iW,centerRipple:B.bool,children:B.node,classes:B.object,className:B.string,component:oW,disabled:B.bool,disableRipple:B.bool,disableTouchRipple:B.bool,focusRipple:B.bool,focusVisibleClassName:B.string,href:B.any,LinkComponent:B.elementType,onBlur:B.func,onClick:B.func,onContextMenu:B.func,onDragLeave:B.func,onFocus:B.func,onFocusVisible:B.func,onKeyDown:B.func,onKeyUp:B.func,onMouseDown:B.func,onMouseLeave:B.func,onMouseUp:B.func,onTouchEnd:B.func,onTouchMove:B.func,onTouchStart:B.func,sx:B.oneOfType([B.arrayOf(B.oneOfType([B.func,B.object,B.bool])),B.func,B.object]),tabIndex:B.number,TouchRippleProps:B.object,touchRippleRef:B.oneOfType([B.func,B.shape({current:B.shape({pulsate:B.func.isRequired,start:B.func.isRequired,stop:B.func.isRequired})})]),type:B.oneOfType([B.oneOf(["button","reset","submit"]),B.string])});function $X(e){return tn("MuiSvgIcon",e)}Sn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const HX=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${lt(t)}`,`fontSize${lt(n)}`]};return $n(o,$X,r)},WX=$t("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${lt(n.color)}`],t[`fontSize${lt(n.fontSize)}`]]}})(Ko(({theme:e})=>{var t,n,r,o,i,s,a,l,u,c,f,d,p,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(t=e.transitions)==null?void 0:t.create)==null?void 0:o.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:h=>!h.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((s=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:s.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((c=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,h])=>h&&h.main).map(([h])=>{var y,m;return{props:{color:h},style:{color:(m=(y=(e.vars??e).palette)==null?void 0:y[h])==null?void 0:m.main}}}),{props:{color:"action"},style:{color:(d=(f=(e.vars??e).palette)==null?void 0:f.action)==null?void 0:d.active}},{props:{color:"disabled"},style:{color:(g=(p=(e.vars??e).palette)==null?void 0:p.action)==null?void 0:g.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),su=k.forwardRef(function(t,n){const r=In({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:f,viewBox:d="0 0 24 24",...p}=r,g=k.isValidElement(o)&&o.type==="svg",h={...r,color:s,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:g},y={};c||(y.viewBox=d);const m=HX(h);return b.jsxs(WX,{as:a,className:et(m.root,i),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n,...y,...p,...g&&o.props,ownerState:h,children:[g?o.props.children:o,f?b.jsx("title",{children:f}):null]})});process.env.NODE_ENV!=="production"&&(su.propTypes={children:B.node,classes:B.object,className:B.string,color:B.oneOfType([B.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),B.string]),component:B.elementType,fontSize:B.oneOfType([B.oneOf(["inherit","large","medium","small"]),B.string]),htmlColor:B.string,inheritViewBox:B.bool,shapeRendering:B.string,sx:B.oneOfType([B.arrayOf(B.oneOfType([B.func,B.object,B.bool])),B.func,B.object]),titleAccess:B.string,viewBox:B.string}),su.muiName="SvgIcon";function XX(e,t){function n(r,o){return b.jsx(su,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:o,...r,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=su.muiName,k.memo(k.forwardRef(n))}const YX=XX(b.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function UX(e){return tn("MuiTableSortLabel",e)}const Yp=Sn("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc","directionDesc","directionAsc"]);function V_(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,internalForwardedProps:s,shouldForwardComponentProp:a=!1,...l}=t,{component:u,slots:c={[e]:void 0},slotProps:f={[e]:void 0},...d}=i,p=c[e]||r,g=pW(f[e],o),{props:{component:h,...y},internalRef:m}=dW({className:n,...l,externalForwardedProps:e==="root"?d:void 0,externalSlotProps:g}),x=Dp(m,g==null?void 0:g.ref,t.ref),v=e==="root"?h||u:h,C=cW(p,{...e==="root"&&!u&&!c[e]&&s,...e!=="root"&&!c[e]&&s,...y,...v&&!a&&{as:v},...v&&a&&{component:v},ref:x},o);return[p,C]}const ZX=e=>{const{classes:t,direction:n,active:r}=e,o={root:["root",r&&"active",`direction${lt(n)}`],icon:["icon",`iconDirection${lt(n)}`]};return $n(o,UX,t)},JX=$t(z_,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.active&&t.active]}})(Ko(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${Yp.icon}`]:{opacity:.5}},[`&.${Yp.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${Yp.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}}))),qX=$t("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,t[`iconDirection${lt(n.direction)}`]]}})(Ko(({theme:e})=>({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none",variants:[{props:{direction:"desc"},style:{transform:"rotate(0deg)"}},{props:{direction:"asc"},style:{transform:"rotate(180deg)"}}]}))),G_=k.forwardRef(function(t,n){const r=In({props:t,name:"MuiTableSortLabel"}),{active:o=!1,children:i,className:s,direction:a="asc",hideSortIcon:l=!1,IconComponent:u=YX,slots:c={},slotProps:f={},...d}=r,p={...r,active:o,direction:a,hideSortIcon:l,IconComponent:u},g=ZX(p),h={slots:c,slotProps:f},[y,m]=V_("root",{elementType:JX,externalForwardedProps:h,ownerState:p,className:et(g.root,s),ref:n}),[x,v]=V_("icon",{elementType:qX,externalForwardedProps:h,ownerState:p,className:g.icon});return b.jsxs(y,{disableRipple:!0,component:"span",...m,...d,children:[i,l&&!o?null:b.jsx(x,{as:u,...v})]})});process.env.NODE_ENV!=="production"&&(G_.propTypes={active:B.bool,children:B.node,classes:B.object,className:B.string,direction:B.oneOf(["asc","desc"]),hideSortIcon:B.bool,IconComponent:B.elementType,slotProps:B.shape({icon:B.oneOfType([B.func,B.object]),root:B.oneOfType([B.func,B.object])}),slots:B.shape({icon:B.elementType,root:B.elementType}),sx:B.oneOfType([B.arrayOf(B.oneOfType([B.func,B.object,B.bool])),B.func,B.object])});const KX=e=>{const t=[];if(e===void 0)return{header:[],rows:[]};e.data===void 0&&(e.data=[]),e.columns===void 0&&(e.data.length===0?e.columns=[]:e.columns=e.data[0].map((n,r)=>`col${r}`)),e.index===void 0&&(e.index=e.data.map((n,r)=>`row${r}`));for(let n=0;n<e.index.length;n++){const r=[e.index[n]];for(let o=0;o<e.columns.length;o++)r.push(e.data[n][o]);t.push(r)}return{header:["index",...e.columns],rows:t}},QX=({tabledata:e})=>{const t=T.useMemo(()=>KX(e),[e]),[n,r]=T.useState("asc"),[o,i]=T.useState("index");let s=t.header.indexOf(o);s===-1&&(s=0);const a=f=>{r(o===f&&n==="asc"?"desc":"asc"),i(f)},l=(f,d)=>{const p=f.map((g,h)=>[g,h]);return p.sort((g,h)=>d(g[0],h[0])),p.map(g=>g[0])},u=(f,d)=>f==="desc"?(p,g)=>g[s]<p[s]?-1:1:(p,g)=>p[s]<g[s]?-1:1,c=l(t.rows,u(n));return b.jsx(N_,{className:"tablecontainer",children:b.jsxs(k_,{size:"small",children:[b.jsx(O_,{className:"tableHead",children:b.jsx(Gp,{className:"tableheadercolor",children:t.header.map(f=>b.jsx(Vp,{sortDirection:o===f?n:!1,className:"tableheadercolor",children:b.jsx(G_,{active:o===f,direction:o===f?n:"asc",onClick:()=>a(f),className:"tableheadercolor",sx:{"& .MuiTableSortLabel-icon":{color:"inherit !important"}},children:f})},f))})}),b.jsx(T_,{children:c.map((f,d)=>b.jsx(Gp,{children:f.map((p,g)=>b.jsx(Vp,{className:g==0?"indexcol":"datacol",children:p},g))},e.index[d]))})]})})};var au={};/*!
|
|
856
|
+
* content-type
|
|
857
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
858
|
+
* MIT Licensed
|
|
859
|
+
*/var $_;function e8(){if($_)return au;$_=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,i=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;au.format=s,au.parse=a;function s(f){if(!f||typeof f!="object")throw new TypeError("argument obj is required");var d=f.parameters,p=f.type;if(!p||!i.test(p))throw new TypeError("invalid type");var g=p;if(d&&typeof d=="object")for(var h,y=Object.keys(d).sort(),m=0;m<y.length;m++){if(h=y[m],!n.test(h))throw new TypeError("invalid parameter name");g+="; "+h+"="+u(d[h])}return g}function a(f){if(!f)throw new TypeError("argument string is required");var d=typeof f=="object"?l(f):f;if(typeof d!="string")throw new TypeError("argument string is required to be a string");var p=d.indexOf(";"),g=p!==-1?d.slice(0,p).trim():d.trim();if(!i.test(g))throw new TypeError("invalid media type");var h=new c(g.toLowerCase());if(p!==-1){var y,m,x;for(e.lastIndex=p;m=e.exec(d);){if(m.index!==p)throw new TypeError("invalid parameter format");p+=m[0].length,y=m[1].toLowerCase(),x=m[2],x.charCodeAt(0)===34&&(x=x.slice(1,-1),x.indexOf("\\")!==-1&&(x=x.replace(r,"$1"))),h.parameters[y]=x}if(p!==d.length)throw new TypeError("invalid parameter format")}return h}function l(f){var d;if(typeof f.getHeader=="function"?d=f.getHeader("content-type"):typeof f.headers=="object"&&(d=f.headers&&f.headers["content-type"]),typeof d!="string")throw new TypeError("content-type header is missing from object");return d}function u(f){var d=String(f);if(n.test(d))return d;if(d.length>0&&!t.test(d))throw new TypeError("invalid parameter value");return'"'+d.replace(o,"\\$1")+'"'}function c(f){this.parameters=Object.create(null),this.type=f}return au}var t8=e8(),Qo=new Map,H_=function(t){return t.cloneNode(!0)},W_=function(){return window.location.protocol==="file:"},X_=function(t,n,r){var o=new XMLHttpRequest;o.onreadystatechange=function(){try{if(!/\.svg/i.test(t)&&o.readyState===2){var i=o.getResponseHeader("Content-Type");if(!i)throw new Error("Content type not found");var s=t8.parse(i).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(W_()?"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||W_()&&o.status===0)r(null,o);else throw new Error("There was a problem injecting the SVG: "+o.status+" "+o.statusText)}}catch(a){if(o.abort(),a instanceof Error)r(a,o);else throw a}},o.open("GET",t),o.withCredentials=n,o.overrideMimeType&&o.overrideMimeType("text/xml"),o.send()},wr={},Y_=function(t,n){wr[t]=wr[t]||[],wr[t].push(n)},n8=function(t){for(var n=function(s,a){setTimeout(function(){if(Array.isArray(wr[t])){var l=Qo.get(t),u=wr[t][s];l instanceof SVGSVGElement&&u(null,H_(l)),l instanceof Error&&u(l),s===wr[t].length-1&&delete wr[t]}},0)},r=0,o=wr[t].length;r<o;r++)n(r)},r8=function(t,n,r){if(Qo.has(t)){var o=Qo.get(t);if(o===void 0){Y_(t,r);return}if(o instanceof SVGSVGElement){r(null,H_(o));return}}Qo.set(t,void 0),Y_(t,r),X_(t,n,function(i,s){var a;i?Qo.set(t,i):((a=s.responseXML)===null||a===void 0?void 0:a.documentElement)instanceof SVGSVGElement&&Qo.set(t,s.responseXML.documentElement),n8(t)})},o8=function(t,n,r){X_(t,n,function(o,i){var s;o?r(o):((s=i.responseXML)===null||s===void 0?void 0:s.documentElement)instanceof SVGSVGElement&&r(null,i.responseXML.documentElement)})},i8=0,s8=function(){return++i8},kn=[],U_={},a8="http://www.w3.org/2000/svg",Up="http://www.w3.org/1999/xlink",Z_=function(t,n,r,o,i,s,a){var l=t.getAttribute("data-src")||t.getAttribute("src");if(!l){a(new Error("Invalid data-src or src attribute"));return}if(kn.indexOf(t)!==-1){kn.splice(kn.indexOf(t),1),t=null;return}kn.push(t),t.setAttribute("src","");var u=o?r8:o8;u(l,i,function(c,f){if(!f){kn.splice(kn.indexOf(t),1),t=null,a(c);return}var d=t.getAttribute("id");d&&f.setAttribute("id",d);var p=t.getAttribute("title");p&&f.setAttribute("title",p);var g=t.getAttribute("width");g&&f.setAttribute("width",g);var h=t.getAttribute("height");h&&f.setAttribute("height",h);var y=Array.from(new Set(Aa(Aa(Aa([],(f.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(t.getAttribute("class")||"").split(" "),!0))).join(" ").trim();f.setAttribute("class",y);var m=t.getAttribute("style");m&&f.setAttribute("style",m),f.setAttribute("data-src",l);var x=[].filter.call(t.attributes,function(V){return/^data-\w[\w-]*$/.test(V.name)});if(Array.prototype.forEach.call(x,function(V){V.name&&V.value&&f.setAttribute(V.name,V.value)}),r){var v={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"]},C,S,E,I,O;Object.keys(v).forEach(function(V){C=V,E=v[V],S=f.querySelectorAll(C+"[id]");for(var F=function(P,H){I=S[P].id,O=I+"-"+s8();var J;Array.prototype.forEach.call(E,function(ce){J=f.querySelectorAll("["+ce+'*="'+I+'"]');for(var pe=0,Ie=J.length;pe<Ie;pe++){var Ze=J[pe].getAttribute(ce);Ze&&!Ze.match(new RegExp('url\\("?#'+I+'"?\\)'))||J[pe].setAttribute(ce,"url(#"+O+")")}});for(var W=f.querySelectorAll("[*|href]"),X=[],U=0,Q=W.length;U<Q;U++){var ne=W[U].getAttributeNS(Up,"href");ne&&ne.toString()==="#"+S[P].id&&X.push(W[U])}for(var oe=0,Z=X.length;oe<Z;oe++)X[oe].setAttributeNS(Up,"href","#"+O);S[P].id=O},_=0,G=S.length;_<G;_++)F(_)})}f.removeAttribute("xmlns:a");for(var M=f.querySelectorAll("script"),w=[],N,R,L=0,A=M.length;L<A;L++)R=M[L].getAttribute("type"),(!R||R==="application/ecmascript"||R==="application/javascript"||R==="text/javascript")&&(N=M[L].innerText||M[L].textContent,N&&w.push(N),f.removeChild(M[L]));if(w.length>0&&(n==="always"||n==="once"&&!U_[l])){for(var j=0,D=w.length;j<D;j++)new Function(w[j])(window);U_[l]=!0}var z=f.querySelectorAll("style");if(Array.prototype.forEach.call(z,function(V){V.textContent+=""}),f.setAttribute("xmlns",a8),f.setAttribute("xmlns:xlink",Up),s(f),!t.parentNode){kn.splice(kn.indexOf(t),1),t=null,a(new Error("Parent node is null"));return}t.parentNode.replaceChild(f,t),kn.splice(kn.indexOf(t),1),t=null,a(null,f)})},l8=function(t,n){var r=n===void 0?{}:n,o=r.afterAll,i=o===void 0?function(){}:o,s=r.afterEach,a=s===void 0?function(){}:s,l=r.beforeEach,u=l===void 0?function(){}:l,c=r.cacheRequests,f=c===void 0?!0:c,d=r.evalScripts,p=d===void 0?"never":d,g=r.httpRequestWithCredentials,h=g===void 0?!1:g,y=r.renumerateIRIElements,m=y===void 0?!0:y;if(t&&"length"in t)for(var x=0,v=0,C=t.length;v<C;v++)Z_(t[v],p,m,f,h,u,function(S,E){a(S,E),t&&"length"in t&&t.length===++x&&i(x)});else t?Z_(t,p,m,f,h,u,function(S,E){a(S,E),i(1),t=null}):i(0)},u8=function(t){var n=(t==null?void 0:t.ownerDocument)||document;return n.defaultView||window},c8=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},f8=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],lu="http://www.w3.org/2000/svg",J_="http://www.w3.org/1999/xlink",Zp=function(e){function t(){for(var r,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=e.call.apply(e,[this].concat(i))||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(a){r.reactWrapper=a},r}D_(t,e);var n=t.prototype;return n.renderSVG=function(){var o=this;if(this.reactWrapper instanceof u8(this.reactWrapper).Node){var i=this.props,s=i.desc,a=i.evalScripts,l=i.httpRequestWithCredentials,u=i.renumerateIRIElements,c=i.src,f=i.title,d=i.useRequestCache,p=this.props.onError,g=this.props.beforeInjection,h=this.props.afterInjection,y=this.props.wrapper,m,x;y==="svg"?(m=document.createElementNS(lu,y),m.setAttribute("xmlns",lu),m.setAttribute("xmlns:xlink",J_),x=document.createElementNS(lu,y)):(m=document.createElement(y),x=document.createElement(y)),m.appendChild(x),x.dataset.src=c,this.nonReactWrapper=this.reactWrapper.appendChild(m);var v=function(I){if(o.removeSVG(),!o._isMounted){p(I);return}o.setState(function(){return{hasError:!0,isLoading:!1}},function(){p(I)})},C=function(I,O){if(I){v(I);return}o._isMounted&&o.setState(function(){return{isLoading:!1}},function(){try{h(O)}catch(M){v(M)}})},S=function(I){if(I.setAttribute("role","img"),s){var O=I.querySelector(":scope > desc");O&&I.removeChild(O);var M=document.createElement("desc");M.innerHTML=s,I.prepend(M)}if(f){var w=I.querySelector(":scope > title");w&&I.removeChild(w);var N=document.createElement("title");N.innerHTML=f,I.prepend(N)}try{g(I)}catch(R){v(R)}};l8(x,{afterEach:C,beforeEach:S,cacheRequests:d,evalScripts:a,httpRequestWithCredentials:l,renumerateIRIElements:u})}},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 i=this;c8(ue({},o),this.props)&&this.setState(function(){return i.initialState},function(){i.removeSVG(),i.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 i=o.fallback;o.httpRequestWithCredentials;var s=o.loading;o.renumerateIRIElements,o.src,o.title,o.useRequestCache;var a=o.wrapper,l=$p(o,f8),u=a;return k.createElement(u,ue({},l,{ref:this.refCallback},a==="svg"?{xmlns:lu,xmlnsXlink:J_}:{}),this.state.isLoading&&s&&k.createElement(s,null),this.state.hasError&&i&&k.createElement(i,null))},t}(k.Component);Zp.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"},Zp.propTypes={afterInjection:Ke.func,beforeInjection:Ke.func,desc:Ke.string,evalScripts:Ke.oneOf(["always","once","never"]),fallback:Ke.oneOfType([Ke.func,Ke.object,Ke.string]),httpRequestWithCredentials:Ke.bool,loading:Ke.oneOfType([Ke.func,Ke.object,Ke.string]),onError:Ke.func,renumerateIRIElements:Ke.bool,src:Ke.string.isRequired,title:Ke.string,useRequestCache:Ke.bool,wrapper:Ke.oneOf(["div","span","svg"])};const d8=({value:e})=>b.jsx(Zp,{src:`data:image/svg+xml;base64,${btoa(e)}`,style:{maxWidth:"100%",maxHeight:"100%"},beforeInjection:t=>{t.classList.add("svg-class-name"),t.setAttribute("style","max-width: 100%; max-height: 100%;"),t.setAttribute("width","100%"),t.setAttribute("height","100%")}}),q_=({value:e,preValue:t,onLoaded:n})=>{const[r,o]=k.useState(t||e);return k.useEffect(()=>{if(e===t)return;const i=new Image;return i.onload=()=>{n==null||n(),o(e)},i.src=e,()=>{i.onload=null}},[e,t,n]),r===void 0?b.jsx(b.Fragment,{}):typeof r!="string"?(console.error("Base64ImageOutput: value is not a string",r),b.jsx(b.Fragment,{})):b.jsx("img",{src:r,style:{maxWidth:"100%",maxHeight:"100%"}})},K_=({value:e})=>b.jsx(d8,{value:e}),Q_=({value:e})=>{let t="";try{t=JSON.stringify(e)}catch{}return b.jsx("div",{children:b.jsx("pre",{children:t})})},Jp=({value:e})=>{if(typeof e!="string"||e.length%4!==0)return b.jsx("div",{children:e});const t=Math.round(3*e.length/4);return b.jsx("div",{children:b.jsxs("pre",{children:["Bytes(",t,")"]})})},eS=({value:e})=>b.jsx(QX,{tabledata:e||{columns:[],index:[],data:[]}}),uu=({value:e})=>b.jsx(V6,{data:e}),cu=uu,p8={string:Q_,table:eS,image:q_,svg:K_,dict:uu,bytes:Jp};function tS(e,[t,n]){return Math.min(n,Math.max(t,e))}function h8(e){const t=k.useRef({value:e,previous:e});return k.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var nS=["PageUp","PageDown"],rS=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],oS={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},ei="Slider",[qp,g8,m8]=$f(ei),[iS,sq]=ir(ei,[m8]),[y8,fu]=iS(ei),sS=k.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:i=1,orientation:s="horizontal",disabled:a=!1,minStepsBetweenThumbs:l=0,defaultValue:u=[r],value:c,onValueChange:f=()=>{},onValueCommit:d=()=>{},inverted:p=!1,form:g,...h}=e,y=k.useRef(new Set),m=k.useRef(0),v=s==="horizontal"?b8:v8,[C=[],S]=yo({prop:c,defaultProp:u,onChange:N=>{var L;(L=[...y.current][m.current])==null||L.focus(),f(N)}}),E=k.useRef(C);function I(N){const R=S8(C,N);w(N,R)}function O(N){w(N,m.current)}function M(){const N=E.current[m.current];C[m.current]!==N&&d(C)}function w(N,R,{commit:L}={commit:!1}){const A=A8(i),j=T8(Math.round((N-r)/i)*i+r,A),D=tS(j,[r,o]);S((z=[])=>{const V=C8(z,D,R);if(k8(V,l*i)){m.current=V.indexOf(D);const F=String(V)!==String(z);return F&&L&&d(V),F?V:z}else return z})}return b.jsx(y8,{scope:e.__scopeSlider,name:n,disabled:a,min:r,max:o,valueIndexToChangeRef:m,thumbs:y.current,values:C,orientation:s,form:g,children:b.jsx(qp.Provider,{scope:e.__scopeSlider,children:b.jsx(qp.Slot,{scope:e.__scopeSlider,children:b.jsx(v,{"aria-disabled":a,"data-disabled":a?"":void 0,...h,ref:t,onPointerDown:he(h.onPointerDown,()=>{a||(E.current=C)}),min:r,max:o,inverted:p,onSlideStart:a?void 0:I,onSlideMove:a?void 0:O,onSlideEnd:a?void 0:M,onHomeKeyDown:()=>!a&&w(r,0,{commit:!0}),onEndKeyDown:()=>!a&&w(o,C.length-1,{commit:!0}),onStepKeyDown:({event:N,direction:R})=>{if(!a){const j=nS.includes(N.key)||N.shiftKey&&rS.includes(N.key)?10:1,D=m.current,z=C[D],V=i*j*R;w(z+V,D,{commit:!0})}}})})})})});sS.displayName=ei;var[aS,lS]=iS(ei,{startEdge:"left",endEdge:"right",size:"width",direction:1}),b8=k.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:i,onSlideStart:s,onSlideMove:a,onSlideEnd:l,onStepKeyDown:u,...c}=e,[f,d]=k.useState(null),p=Ge(t,v=>d(v)),g=k.useRef(void 0),h=Hf(o),y=h==="ltr",m=y&&!i||!y&&i;function x(v){const C=g.current||f.getBoundingClientRect(),S=[0,C.width],I=eh(S,m?[n,r]:[r,n]);return g.current=C,I(v-C.left)}return b.jsx(aS,{scope:e.__scopeSlider,startEdge:m?"left":"right",endEdge:m?"right":"left",direction:m?1:-1,size:"width",children:b.jsx(uS,{dir:h,"data-orientation":"horizontal",...c,ref:p,style:{...c.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:v=>{const C=x(v.clientX);s==null||s(C)},onSlideMove:v=>{const C=x(v.clientX);a==null||a(C)},onSlideEnd:()=>{g.current=void 0,l==null||l()},onStepKeyDown:v=>{const S=oS[m?"from-left":"from-right"].includes(v.key);u==null||u({event:v,direction:S?-1:1})}})})}),v8=k.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:i,onSlideMove:s,onSlideEnd:a,onStepKeyDown:l,...u}=e,c=k.useRef(null),f=Ge(t,c),d=k.useRef(void 0),p=!o;function g(h){const y=d.current||c.current.getBoundingClientRect(),m=[0,y.height],v=eh(m,p?[r,n]:[n,r]);return d.current=y,v(h-y.top)}return b.jsx(aS,{scope:e.__scopeSlider,startEdge:p?"bottom":"top",endEdge:p?"top":"bottom",size:"height",direction:p?1:-1,children:b.jsx(uS,{"data-orientation":"vertical",...u,ref:f,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:h=>{const y=g(h.clientY);i==null||i(y)},onSlideMove:h=>{const y=g(h.clientY);s==null||s(y)},onSlideEnd:()=>{d.current=void 0,a==null||a()},onStepKeyDown:h=>{const m=oS[p?"from-bottom":"from-top"].includes(h.key);l==null||l({event:h,direction:m?-1:1})}})})}),uS=k.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:i,onHomeKeyDown:s,onEndKeyDown:a,onStepKeyDown:l,...u}=e,c=fu(ei,n);return b.jsx(Fe.span,{...u,ref:t,onKeyDown:he(e.onKeyDown,f=>{f.key==="Home"?(s(f),f.preventDefault()):f.key==="End"?(a(f),f.preventDefault()):nS.concat(rS).includes(f.key)&&(l(f),f.preventDefault())}),onPointerDown:he(e.onPointerDown,f=>{const d=f.target;d.setPointerCapture(f.pointerId),f.preventDefault(),c.thumbs.has(d)?d.focus():r(f)}),onPointerMove:he(e.onPointerMove,f=>{f.target.hasPointerCapture(f.pointerId)&&o(f)}),onPointerUp:he(e.onPointerUp,f=>{const d=f.target;d.hasPointerCapture(f.pointerId)&&(d.releasePointerCapture(f.pointerId),i(f))})})}),cS="SliderTrack",fS=k.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=fu(cS,n);return b.jsx(Fe.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});fS.displayName=cS;var Kp="SliderRange",dS=k.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=fu(Kp,n),i=lS(Kp,n),s=k.useRef(null),a=Ge(t,s),l=o.values.length,u=o.values.map(d=>hS(d,o.min,o.max)),c=l>1?Math.min(...u):0,f=100-Math.max(...u);return b.jsx(Fe.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...r,ref:a,style:{...e.style,[i.startEdge]:c+"%",[i.endEdge]:f+"%"}})});dS.displayName=Kp;var Qp="SliderThumb",pS=k.forwardRef((e,t)=>{const n=g8(e.__scopeSlider),[r,o]=k.useState(null),i=Ge(t,a=>o(a)),s=k.useMemo(()=>r?n().findIndex(a=>a.ref.current===r):-1,[n,r]);return b.jsx(x8,{...e,ref:i,index:s})}),x8=k.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:o,...i}=e,s=fu(Qp,n),a=lS(Qp,n),[l,u]=k.useState(null),c=Ge(t,x=>u(x)),f=l?s.form||!!l.closest("form"):!0,d=Uv(l),p=s.values[r],g=p===void 0?0:hS(p,s.min,s.max),h=_8(r,s.values.length),y=d==null?void 0:d[a.size],m=y?E8(y,g,a.direction):0;return k.useEffect(()=>{if(l)return s.thumbs.add(l),()=>{s.thumbs.delete(l)}},[l,s.thumbs]),b.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${g}% + ${m}px)`},children:[b.jsx(qp.ItemSlot,{scope:e.__scopeSlider,children:b.jsx(Fe.span,{role:"slider","aria-label":e["aria-label"]||h,"aria-valuemin":s.min,"aria-valuenow":p,"aria-valuemax":s.max,"aria-orientation":s.orientation,"data-orientation":s.orientation,"data-disabled":s.disabled?"":void 0,tabIndex:s.disabled?void 0:0,...i,ref:c,style:p===void 0?{display:"none"}:e.style,onFocus:he(e.onFocus,()=>{s.valueIndexToChangeRef.current=r})})}),f&&b.jsx(w8,{name:o??(s.name?s.name+(s.values.length>1?"[]":""):void 0),form:s.form,value:p},r)]})});pS.displayName=Qp;var w8=e=>{const{value:t,...n}=e,r=k.useRef(null),o=h8(t);return k.useEffect(()=>{const i=r.current,s=window.HTMLInputElement.prototype,l=Object.getOwnPropertyDescriptor(s,"value").set;if(o!==t&&l){const u=new Event("input",{bubbles:!0});l.call(i,t),i.dispatchEvent(u)}},[o,t]),b.jsx("input",{style:{display:"none"},...n,ref:r,defaultValue:t})};function C8(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,i)=>o-i)}function hS(e,t,n){const i=100/(n-t)*(e-t);return tS(i,[0,100])}function _8(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function S8(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function E8(e,t,n){const r=e/2,i=eh([0,50],[0,r]);return(r-i(t)*n)*n}function I8(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function k8(e,t){if(t>0){const n=I8(e);return Math.min(...n)>=t}return!0}function eh(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function A8(e){return(String(e).split(".")[1]||"").length}function T8(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var N8=sS,P8=fS,O8=dS,R8=pS;const Cs={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},gS={};for(const e of Object.keys(Cs))gS[Cs[e]]=e;const ie={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},Un=(6/29)**3;for(const e of Object.keys(ie)){if(!("channels"in ie[e]))throw new Error("missing channels property: "+e);if(!("labels"in ie[e]))throw new Error("missing channel labels property: "+e);if(ie[e].labels.length!==ie[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=ie[e];delete ie[e].channels,delete ie[e].labels,Object.defineProperty(ie[e],"channels",{value:t}),Object.defineProperty(ie[e],"labels",{value:n})}ie.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),i=Math.max(t,n,r),s=i-o;let a,l;switch(i){case o:{a=0;break}case t:{a=(n-r)/s;break}case n:{a=2+(r-t)/s;break}case r:{a=4+(t-n)/s;break}}a=Math.min(a*60,360),a<0&&(a+=360);const u=(o+i)/2;return i===o?l=0:u<=.5?l=s/(i+o):l=s/(2-i-o),[a,l*100,u*100]},ie.rgb.hsv=function(e){let t,n,r,o,i;const s=e[0]/255,a=e[1]/255,l=e[2]/255,u=Math.max(s,a,l),c=u-Math.min(s,a,l),f=function(d){return(u-d)/6/c+1/2};if(c===0)o=0,i=0;else{switch(i=c/u,t=f(s),n=f(a),r=f(l),u){case s:{o=r-n;break}case a:{o=1/3+t-r;break}case l:{o=2/3+n-t;break}}o<0?o+=1:o>1&&(o-=1)}return[o*360,i*100,u*100]},ie.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=ie.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,i*100,r*100]},ie.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),i=(1-t-o)/(1-o)||0,s=(1-n-o)/(1-o)||0,a=(1-r-o)/(1-o)||0;return[i*100,s*100,a*100,o*100]};function M8(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}ie.rgb.keyword=function(e){const t=gS[e];if(t)return t;let n=Number.POSITIVE_INFINITY,r;for(const o of Object.keys(Cs)){const i=Cs[o],s=M8(e,i);s<n&&(n=s,r=o)}return r},ie.keyword.rgb=function(e){return Cs[e]},ie.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124564+n*.3575761+r*.1804375,i=t*.2126729+n*.7151522+r*.072175,s=t*.0193339+n*.119192+r*.9503041;return[o*100,i*100,s*100]},ie.rgb.lab=function(e){const t=ie.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>Un?n**(1/3):7.787*n+16/116,r=r>Un?r**(1/3):7.787*r+16/116,o=o>Un?o**(1/3):7.787*o+16/116;const i=116*r-16,s=500*(n-r),a=200*(r-o);return[i,s,a]},ie.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,i;if(n===0)return i=r*255,[i,i,i];const s=r<.5?r*(1+n):r+n-r*n,a=2*r-s,l=[0,0,0];for(let u=0;u<3;u++)o=t+1/3*-(u-1),o<0&&o++,o>1&&o--,6*o<1?i=a+(s-a)*6*o:2*o<1?i=s:3*o<2?i=a+(s-a)*(2/3-o)*6:i=a,l[u]=i*255;return l},ie.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const i=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=i<=1?i:2-i;const s=(r+n)/2,a=r===0?2*o/(i+o):2*n/(r+n);return[t,a*100,s*100]},ie.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,i=t-Math.floor(t),s=255*r*(1-n),a=255*r*(1-n*i),l=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,l,s];case 1:return[a,r,s];case 2:return[s,r,l];case 3:return[s,a,r];case 4:return[l,s,r];case 5:return[r,s,a]}},ie.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let i,s;s=(2-n)*r;const a=(2-n)*o;return i=n*o,i/=a<=1?a:2-a,i=i||0,s/=2,[t,i*100,s*100]},ie.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let i;o>1&&(n/=o,r/=o);const s=Math.floor(6*t),a=1-r;i=6*t-s,(s&1)!==0&&(i=1-i);const l=n+i*(a-n);let u,c,f;switch(s){default:case 6:case 0:{u=a,c=l,f=n;break}case 1:{u=l,c=a,f=n;break}case 2:{u=n,c=a,f=l;break}case 3:{u=n,c=l,f=a;break}case 4:{u=l,c=n,f=a;break}case 5:{u=a,c=n,f=l;break}}return[u*255,c*255,f*255]},ie.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,i=1-Math.min(1,t*(1-o)+o),s=1-Math.min(1,n*(1-o)+o),a=1-Math.min(1,r*(1-o)+o);return[i*255,s*255,a*255]},ie.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,i,s;return o=t*3.2404542+n*-1.5371385+r*-.4985314,i=t*-.969266+n*1.8760108+r*.041556,s=t*.0556434+n*-.2040259+r*1.0572252,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),[o*255,i*255,s*255]},ie.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>Un?t**(1/3):7.787*t+16/116,n=n>Un?n**(1/3):7.787*n+16/116,r=r>Un?r**(1/3):7.787*r+16/116;const o=116*n-16,i=500*(t-n),s=200*(n-r);return[o,i,s]},ie.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,i,s;i=(t+16)/116,o=n/500+i,s=i-r/200;const a=i**3,l=o**3,u=s**3;return i=a>Un?a:(i-16/116)/7.787,o=l>Un?l:(o-16/116)/7.787,s=u>Un?u:(s-16/116)/7.787,o*=95.047,i*=100,s*=108.883,[o,i,s]},ie.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const s=Math.sqrt(n*n+r*r);return[t,s,o]},ie.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,i=n*Math.cos(o),s=n*Math.sin(o);return[t,i,s]},ie.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let i=t===null?ie.rgb.hsv(e)[2]:t;if(i=Math.round(i/50),i===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return i===2&&(s+=60),s},ie.hsv.ansi16=function(e){return ie.rgb.ansi16(ie.hsv.rgb(e),e[2])},ie.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t>>4===n>>4&&n>>4===r>>4?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},ie.ansi16.rgb=function(e){e=e[0];let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(Math.trunc(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,i=(t>>2&1)*n*255;return[r,o,i]},ie.ansi256.rgb=function(e){if(e=e[0],e>=232){const i=(e-232)*10+8;return[i,i,i]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]},ie.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".slice(n.length)+n},ie.hex.rgb=function(e){const t=e.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=[...n].map(a=>a+a).join(""));const r=Number.parseInt(n,16),o=r>>16&255,i=r>>8&255,s=r&255;return[o,i,s]},ie.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),i=Math.min(Math.min(t,n),r),s=o-i;let a;const l=s<1?i/(1-s):0;return s<=0?a=0:o===t?a=(n-r)/s%6:o===n?a=2+(r-t)/s:a=4+(t-n)/s,a/=6,a%=1,[a*360,s*100,l*100]},ie.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]},ie.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]},ie.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],i=t%1*6,s=i%1,a=1-s;let l=0;switch(Math.floor(i)){case 0:{o[0]=1,o[1]=s,o[2]=0;break}case 1:{o[0]=a,o[1]=1,o[2]=0;break}case 2:{o[0]=0,o[1]=1,o[2]=s;break}case 3:{o[0]=0,o[1]=a,o[2]=1;break}case 4:{o[0]=s,o[1]=0,o[2]=1;break}default:o[0]=1,o[1]=0,o[2]=a}return l=(1-n)*r,[(n*o[0]+l)*255,(n*o[1]+l)*255,(n*o[2]+l)*255]},ie.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]},ie.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]},ie.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]},ie.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let i=0;return o<1&&(i=(r-o)/(1-o)),[e[0],o*100,i*100]},ie.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},ie.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},ie.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},ie.gray.hsl=function(e){return[0,0,e[0]]},ie.gray.hsv=ie.gray.hsl,ie.gray.hwb=function(e){return[0,100,e[0]]},ie.gray.cmyk=function(e){return[0,0,0,e[0]]},ie.gray.lab=function(e){return[e[0],0,0]},ie.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".slice(r.length)+r},ie.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};function D8(){const e={},t=Object.keys(ie);for(let{length:n}=t,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}function F8(e){const t=D8(),n=[e];for(t[e].distance=0;n.length>0;){const r=n.pop(),o=Object.keys(ie[r]);for(let{length:i}=o,s=0;s<i;s++){const a=o[s],l=t[a];l.distance===-1&&(l.distance=t[r].distance+1,l.parent=r,n.unshift(a))}}return t}function j8(e,t){return function(n){return t(e(n))}}function L8(e,t){const n=[t[e].parent,e];let r=ie[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)n.unshift(t[o].parent),r=j8(ie[t[o].parent][o],r),o=t[o].parent;return r.conversion=n,r}function B8(e){const t=F8(e),n={},r=Object.keys(t);for(let{length:o}=r,i=0;i<o;i++){const s=r[i];t[s].parent!==null&&(n[s]=L8(s,t))}return n}const Xr={},z8=Object.keys(ie);function V8(e){const t=function(...n){const r=n[0];return r==null?r:(r.length>1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function G8(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let{length:i}=o,s=0;s<i;s++)o[s]=Math.round(o[s]);return o};return"conversion"in e&&(t.conversion=e.conversion),t}for(const e of z8){Xr[e]={},Object.defineProperty(Xr[e],"channels",{value:ie[e].channels}),Object.defineProperty(Xr[e],"labels",{value:ie[e].labels});const t=B8(e),n=Object.keys(t);for(const r of n){const o=t[r];Xr[e][r]=G8(o),Xr[e][r].raw=V8(o)}}const $8=Object.freeze(Object.defineProperty({__proto__:null,default:Xr},Symbol.toStringTag,{value:"Module"})),ct=(e,t)=>{const n=Array.isArray(t)?t:[t];if(n[0]===void 0||n[0]===null)return ct("rgb",[0,0,0]);const r=Xr[e];if(!r)throw new Error(`Unsupported color type: ${e} allowed are ${Object.keys($8).join(", ")}`);r[e]=()=>n;const o=s=>{const a=s(...n);return Array.isArray(a)?a[0]!=null:a};if(!o(r.rgb)||!o(r.hsl))return ct("rgb",[0,0,0]);const i={};return Object.keys(r).forEach(s=>{const a=r[s];typeof a=="function"&&(i[s]=()=>s===e?n:a(...n))}),i},H8=({onChange:e,colorconverter:t,allow_null:n=!1})=>{if(t===null&&!n)throw new Error("Color converter is null");const[r,o]=T.useState(t),[i,s]=T.useState([0,0,0]),[a,l]=T.useState([0,0,0]),[u,c]=T.useState([0,0,0]),[f,d]=T.useState("000");T.useEffect(()=>{if(!r){if(!n)throw new Error("Color converter is null");l([0,0,0]),s([0,0,0]),c([0,0,0]),d("");return}s(r.hsl()),l(r.rgb()),c(r.hsv()),d(r.hex())},[r]);const p={backgroundColor:`hsl(${i[0]}, ${i[1]}%, ${i[2]}%)`,padding:"10px",margin:"10px 0"};return b.jsxs("div",{style:{backgroundColor:"white"},children:[b.jsx("div",{style:p,children:"Color Preview"}),b.jsxs("div",{className:"colorspace",children:[b.jsx("div",{className:"colorspace_title",children:"RGB"}),b.jsx("div",{}),b.jsx("label",{children:"Red"}),b.jsx("input",{type:"range",min:"0",max:"255",value:a[0],onChange:g=>{const h=[parseInt(g.target.value),a[1],a[2]],y=ct("rgb",h);o(y),e(y)},style:{background:"linear-gradient(to right, #000, #f00)"}}),b.jsx("label",{children:"Green"}),b.jsx("input",{type:"range",min:"0",max:"255",value:a[1],onChange:g=>{const h=[a[0],parseInt(g.target.value),a[2]],y=ct("rgb",h);o(y),e(y)},style:{background:"linear-gradient(to right, #000, #0f0)"}}),b.jsx("label",{children:"Blue"}),b.jsx("input",{type:"range",min:"0",max:"255",value:a[2],onChange:g=>{const h=[a[0],a[1],parseInt(g.target.value)],y=ct("rgb",h);o(y),e(y)},style:{background:"linear-gradient(to right, #000, #00f)"}})]}),b.jsxs("div",{className:"colorspace",children:[b.jsx("div",{className:"colorspace_title",children:"HSL"}),b.jsx("div",{}),b.jsx("label",{children:"Hue"}),b.jsx("input",{type:"range",min:"0",max:"360",value:i[0],onChange:g=>{const h=[parseInt(g.target.value),i[1],i[2]],y=ct("hsl",h);o(y),e(y)},style:{background:"linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00)"}}),b.jsx("label",{children:"Saturation"}),b.jsx("input",{type:"range",min:"0",max:"100",value:i[1],onChange:g=>{const h=[i[0],parseInt(g.target.value),i[2]],y=ct("hsl",h);o(y),e(y)},style:{background:`linear-gradient(to right, #fff, hsl(${i[0]}, 100%, 50%))`}}),b.jsx("label",{children:"Lightness"}),b.jsx("input",{type:"range",min:"0",max:"100",value:i[2],onChange:g=>{const h=[i[0],i[1],parseInt(g.target.value)],y=ct("hsl",h);o(y),e(y)},style:{background:`linear-gradient(to right, #000, hsl(${i[0]}, 100%, 50%), #fff)`}})]}),b.jsxs("div",{className:"colorspace",children:[b.jsx("div",{className:"colorspace_title",children:"HSV"}),b.jsx("div",{}),b.jsx("label",{children:"Hue"}),b.jsx("input",{type:"range",min:"0",max:"360",value:u[0],onChange:g=>{const h=[parseInt(g.target.value),u[1],u[2]],y=ct("hsv",h);o(y),e(y)},style:{background:"linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00)"}}),b.jsx("label",{children:"Saturation"}),b.jsx("input",{type:"range",min:"0",max:"100",value:u[1],onChange:g=>{const h=[u[0],parseInt(g.target.value),u[2]],y=ct("hsv",h);o(y),e(y)},style:{background:`linear-gradient(to right, #fff, hsl(${i[0]}, 100%, 50%))`}}),b.jsx("label",{children:"Value"}),b.jsx("input",{type:"range",min:"0",max:"100",value:u[2],onChange:g=>{const h=[u[0],u[1],parseInt(g.target.value)],y=ct("hsv",h);o(y),e(y)},style:{background:`linear-gradient(to right, #000, hsl(${i[0]}, 100%, 50%))`}})]}),b.jsxs("div",{className:"colorspace",children:[b.jsx("div",{className:"colorspace_title",children:"HEX"}),b.jsx("div",{}),b.jsx("input",{type:"text",value:f,onChange:g=>{const h=g.target.value===""?null:ct("hex",[g.target.value]);o(h),e(h)}})]})]})},W8=({inicolordata:e,inicolorspace:t,allow_null:n=!1,delay:r=1e3,onChange:o})=>{const i=e!==void 0?e:[0,0,0],s=e===void 0?"rgb":t||"hex",a=Array.isArray(i)?i:[i],l=T.useMemo(()=>{let y=ct(s,a);return y.rgb()===void 0&&(y=ct("rgb",[0,0,0])),y},[s,a]),[u,c]=T.useState(l);T.useEffect(()=>{const y=e!==void 0?e:[0,0,0],m=e===void 0?"rgb":t||"hex",x=Array.isArray(y)?y:[y];let v=ct(m,x);v.rgb()===void 0&&(v=ct("rgb",[0,0,0])),c(v)},[JSON.stringify(e),t]);const f=T.useContext(xe),d=f.local_state(()=>f.reactflowRef),p=T.useRef(null),g=T.useCallback(y=>{if(y===null&&!n)throw new Error("Color is null");y!==null&&c(y),p.current&&clearTimeout(p.current),o&&(p.current=setTimeout(()=>{o(y),p.current=null},r))},[n,o,r]);T.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]);const h=T.useMemo(()=>({background:"#"+u.hex(),borderRadius:"0.3rem",width:"2rem",height:"1rem"}),[u]);return b.jsxs(uC,{children:[b.jsx(cC,{asChild:!0,children:b.jsx("button",{style:h})}),b.jsx(fC,{container:d,children:b.jsx(dC,{side:"left",className:"iotooltipcontent",children:b.jsx(H8,{onChange:g,colorconverter:u,allow_null:n})})})]})};function Yr(e){"@babel/helpers - typeof";return Yr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yr(e)}function X8(e,t){if(Yr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Yr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mS(e){var t=X8(e,"string");return Yr(t)=="symbol"?t:t+""}function _s(e,t,n){return(t=mS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function de(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yS(Object(n),!0).forEach(function(r){_s(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Y8(e){if(Array.isArray(e))return e}function U8(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,s,a=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(c){u=!0,o=c}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}function th(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function bS(e,t){if(e){if(typeof e=="string")return th(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?th(e,t):void 0}}function Z8(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
860
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zn(e,t){return Y8(e)||U8(e,t)||bS(e,t)||Z8()}function Jn(e,t){if(e==null)return{};var n,r,o=$p(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var J8=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function q8(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,o=r===void 0?!1:r,i=e.defaultValue,s=i===void 0?null:i,a=e.inputValue,l=e.menuIsOpen,u=e.onChange,c=e.onInputChange,f=e.onMenuClose,d=e.onMenuOpen,p=e.value,g=Jn(e,J8),h=T.useState(a!==void 0?a:n),y=Zn(h,2),m=y[0],x=y[1],v=T.useState(l!==void 0?l:o),C=Zn(v,2),S=C[0],E=C[1],I=T.useState(p!==void 0?p:s),O=Zn(I,2),M=O[0],w=O[1],N=T.useCallback(function(V,F){typeof u=="function"&&u(V,F),w(V)},[u]),R=T.useCallback(function(V,F){var _;typeof c=="function"&&(_=c(V,F)),x(_!==void 0?_:V)},[c]),L=T.useCallback(function(){typeof d=="function"&&d(),E(!0)},[d]),A=T.useCallback(function(){typeof f=="function"&&f(),E(!1)},[f]),j=a!==void 0?a:m,D=l!==void 0?l:S,z=p!==void 0?p:M;return de(de({},g),{},{inputValue:j,menuIsOpen:D,onChange:N,onInputChange:R,onMenuClose:A,onMenuOpen:L,value:z})}function K8(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mS(r.key),r)}}function Q8(e,t,n){return t&&vS(e.prototype,t),n&&vS(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function e7(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&iu(e,t)}function du(e){return du=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},du(e)}function xS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xS=function(){return!!e})()}function t7(e,t){if(t&&(Yr(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return j_(e)}function n7(e){var t=xS();return function(){var n,r=du(e);if(t){var o=du(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return t7(this,n)}}function r7(e){if(Array.isArray(e))return th(e)}function o7(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function i7(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
861
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nh(e){return r7(e)||o7(e)||bS(e)||i7()}function s7(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var rh=T.useLayoutEffect,a7=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],pu=function(){};function l7(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function u7(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var s in t)t.hasOwnProperty(s)&&t[s]&&i.push("".concat(l7(e,s)));return i.filter(function(a){return a}).map(function(a){return String(a).trim()}).join(" ")}var wS=function(t){return b7(t)?t.filter(Boolean):Yr(t)==="object"&&t!==null?[t]:[]},CS=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=Jn(t,a7);return de({},n)},Xe=function(t,n,r){var o=t.cx,i=t.getStyles,s=t.getClassNames,a=t.className;return{css:i(n,t),className:o(r??{},s(n,t),a)}};function hu(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function c7(e){return hu(e)?window.innerHeight:e.clientHeight}function _S(e){return hu(e)?window.pageYOffset:e.scrollTop}function gu(e,t){if(hu(e)){window.scrollTo(0,t);return}e.scrollTop=t}function f7(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 d7(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function mu(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:pu,o=_S(e),i=t-o,s=10,a=0;function l(){a+=s;var u=d7(a,o,i,n);gu(e,u),a<n?window.requestAnimationFrame(l):r(e)}l()}function SS(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?gu(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&gu(e,Math.max(t.offsetTop-o,0))}function p7(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 ES(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function h7(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var IS=!1,g7={get passive(){return IS=!0}},yu=typeof window<"u"?window:{};yu.addEventListener&&yu.removeEventListener&&(yu.addEventListener("p",pu,g7),yu.removeEventListener("p",pu,!1));var m7=IS;function y7(e){return e!=null}function b7(e){return Array.isArray(e)}function bu(e,t,n){return e?t:n}function aq(e){return e}function lq(e){return e}var v7=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=Object.entries(t).filter(function(s){var a=Zn(s,1),l=a[0];return!r.includes(l)});return i.reduce(function(s,a){var l=Zn(a,2),u=l[0],c=l[1];return s[u]=c,s},{})},x7=["children","innerProps"],w7=["children","innerProps"];function C7(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,s=e.isFixedPosition,a=e.controlHeight,l=f7(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c=l.getBoundingClientRect(),f=c.height,d=n.getBoundingClientRect(),p=d.bottom,g=d.height,h=d.top,y=n.offsetParent.getBoundingClientRect(),m=y.top,x=s?window.innerHeight:c7(l),v=_S(l),C=parseInt(getComputedStyle(n).marginBottom,10),S=parseInt(getComputedStyle(n).marginTop,10),E=m-S,I=x-h,O=E+v,M=f-v-h,w=p-x+v+C,N=v+h-S,R=160;switch(o){case"auto":case"bottom":if(I>=g)return{placement:"bottom",maxHeight:t};if(M>=g&&!s)return i&&mu(l,w,R),{placement:"bottom",maxHeight:t};if(!s&&M>=r||s&&I>=r){i&&mu(l,w,R);var L=s?I-C:M-C;return{placement:"bottom",maxHeight:L}}if(o==="auto"||s){var A=t,j=s?E:O;return j>=r&&(A=Math.min(j-C-a,t)),{placement:"top",maxHeight:A}}if(o==="bottom")return i&&gu(l,w),{placement:"bottom",maxHeight:t};break;case"top":if(E>=g)return{placement:"top",maxHeight:t};if(O>=g&&!s)return i&&mu(l,N,R),{placement:"top",maxHeight:t};if(!s&&O>=r||s&&E>=r){var D=t;return(!s&&O>=r||s&&E>=r)&&(D=s?E-S:O-S),i&&mu(l,N,R),{placement:"top",maxHeight:D}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}function _7(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var kS=function(t){return t==="auto"?"bottom":t},S7=function(t,n){var r,o=t.placement,i=t.theme,s=i.borderRadius,a=i.spacing,l=i.colors;return de((r={label:"menu"},_s(r,_7(o),"100%"),_s(r,"position","absolute"),_s(r,"width","100%"),_s(r,"zIndex",1),r),n?{}:{backgroundColor:l.neutral0,borderRadius:s,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},AS=T.createContext(null),E7=function(t){var n=t.children,r=t.minMenuHeight,o=t.maxMenuHeight,i=t.menuPlacement,s=t.menuPosition,a=t.menuShouldScrollIntoView,l=t.theme,u=T.useContext(AS)||{},c=u.setPortalPlacement,f=T.useRef(null),d=T.useState(o),p=Zn(d,2),g=p[0],h=p[1],y=T.useState(null),m=Zn(y,2),x=m[0],v=m[1],C=l.spacing.controlHeight;return rh(function(){var S=f.current;if(S){var E=s==="fixed",I=a&&!E,O=C7({maxHeight:o,menuEl:S,minHeight:r,placement:i,shouldScroll:I,isFixedPosition:E,controlHeight:C});h(O.maxHeight),v(O.placement),c==null||c(O.placement)}},[o,i,s,a,r,c,C]),n({ref:f,placerProps:de(de({},t),{},{placement:x||kS(i),maxHeight:g})})},I7=function(t){var n=t.children,r=t.innerRef,o=t.innerProps;return le("div",ue({},Xe(t,"menu",{menu:!0}),{ref:r},o),n)},k7=I7,A7=function(t,n){var r=t.maxHeight,o=t.theme.spacing.baseUnit;return de({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:o,paddingTop:o})},T7=function(t){var n=t.children,r=t.innerProps,o=t.innerRef,i=t.isMulti;return le("div",ue({},Xe(t,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:o},r),n)},TS=function(t,n){var r=t.theme,o=r.spacing.baseUnit,i=r.colors;return de({textAlign:"center"},n?{}:{color:i.neutral40,padding:"".concat(o*2,"px ").concat(o*3,"px")})},N7=TS,P7=TS,O7=function(t){var n=t.children,r=n===void 0?"No options":n,o=t.innerProps,i=Jn(t,x7);return le("div",ue({},Xe(de(de({},i),{},{children:r,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),r)},R7=function(t){var n=t.children,r=n===void 0?"Loading...":n,o=t.innerProps,i=Jn(t,w7);return le("div",ue({},Xe(de(de({},i),{},{children:r,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),r)},M7=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}},D7=function(t){var n=t.appendTo,r=t.children,o=t.controlElement,i=t.innerProps,s=t.menuPlacement,a=t.menuPosition,l=T.useRef(null),u=T.useRef(null),c=T.useState(kS(s)),f=Zn(c,2),d=f[0],p=f[1],g=T.useMemo(function(){return{setPortalPlacement:p}},[]),h=T.useState(null),y=Zn(h,2),m=y[0],x=y[1],v=T.useCallback(function(){if(o){var I=p7(o),O=a==="fixed"?0:window.pageYOffset,M=I[d]+O;(M!==(m==null?void 0:m.offset)||I.left!==(m==null?void 0:m.rect.left)||I.width!==(m==null?void 0:m.rect.width))&&x({offset:M,rect:I})}},[o,a,d,m==null?void 0:m.offset,m==null?void 0:m.rect.left,m==null?void 0:m.rect.width]);rh(function(){v()},[v]);var C=T.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),o&&l.current&&(u.current=$v(o,l.current,v,{elementResize:"ResizeObserver"in window}))},[o,v]);rh(function(){C()},[C]);var S=T.useCallback(function(I){l.current=I,C()},[C]);if(!n&&a!=="fixed"||!m)return null;var E=le("div",ue({ref:S},Xe(de(de({},t),{},{offset:m.offset,position:a,rect:m.rect}),"menuPortal",{"menu-portal":!0}),i),r);return le(AS.Provider,{value:g},n?Kn.createPortal(E,n):E)},F7=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},j7=function(t){var n=t.children,r=t.innerProps,o=t.isDisabled,i=t.isRtl;return le("div",ue({},Xe(t,"container",{"--is-disabled":o,"--is-rtl":i}),r),n)},L7=function(t,n){var r=t.theme.spacing,o=t.isMulti,i=t.hasValue,s=t.selectProps.controlShouldRenderValue;return de({alignItems:"center",display:o&&i&&s?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},B7=function(t){var n=t.children,r=t.innerProps,o=t.isMulti,i=t.hasValue;return le("div",ue({},Xe(t,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i}),r),n)},z7=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},V7=function(t){var n=t.children,r=t.innerProps;return le("div",ue({},Xe(t,"indicatorsContainer",{indicators:!0}),r),n)},NS,G7=["size"],$7=["innerProps","isRtl","size"];function H7(){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 W7=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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:H7},PS=function(t){var n=t.size,r=Jn(t,G7);return le("svg",ue({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:W7},r))},oh=function(t){return le(PS,ue({size:20},t),le("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},OS=function(t){return le(PS,ue({size:20},t),le("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},RS=function(t,n){var r=t.isFocused,o=t.theme,i=o.spacing.baseUnit,s=o.colors;return de({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?s.neutral60:s.neutral20,padding:i*2,":hover":{color:r?s.neutral80:s.neutral40}})},X7=RS,Y7=function(t){var n=t.children,r=t.innerProps;return le("div",ue({},Xe(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||le(OS,null))},U7=RS,Z7=function(t){var n=t.children,r=t.innerProps;return le("div",ue({},Xe(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||le(oh,null))},J7=function(t,n){var r=t.isDisabled,o=t.theme,i=o.spacing.baseUnit,s=o.colors;return de({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?s.neutral10:s.neutral20,marginBottom:i*2,marginTop:i*2})},q7=function(t){var n=t.innerProps;return le("span",ue({},n,Xe(t,"indicatorSeparator",{"indicator-separator":!0})))},K7=Jl(NS||(NS=s7([`
|
|
862
|
+
0%, 80%, 100% { opacity: 0; }
|
|
863
|
+
40% { opacity: 1; }
|
|
864
|
+
`]))),Q7=function(t,n){var r=t.isFocused,o=t.size,i=t.theme,s=i.colors,a=i.spacing.baseUnit;return de({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?s.neutral60:s.neutral20,padding:a*2})},ih=function(t){var n=t.delay,r=t.offset;return le("span",{css:Tp({animation:"".concat(K7," 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+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},eY=function(t){var n=t.innerProps,r=t.isRtl,o=t.size,i=o===void 0?4:o,s=Jn(t,$7);return le("div",ue({},Xe(de(de({},s),{},{innerProps:n,isRtl:r,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),le(ih,{delay:0,offset:r}),le(ih,{delay:160,offset:!0}),le(ih,{delay:320,offset:!r}))},tY=function(t,n){var r=t.isDisabled,o=t.isFocused,i=t.theme,s=i.colors,a=i.borderRadius,l=i.spacing;return de({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?s.neutral5:s.neutral0,borderColor:r?s.neutral10:o?s.primary:s.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(s.primary):void 0,"&:hover":{borderColor:o?s.primary:s.neutral30}})},nY=function(t){var n=t.children,r=t.isDisabled,o=t.isFocused,i=t.innerRef,s=t.innerProps,a=t.menuIsOpen;return le("div",ue({ref:i},Xe(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":o,"control--menu-is-open":a}),s,{"aria-disabled":r||void 0}),n)},rY=nY,oY=["data"],iY=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},sY=function(t){var n=t.children,r=t.cx,o=t.getStyles,i=t.getClassNames,s=t.Heading,a=t.headingProps,l=t.innerProps,u=t.label,c=t.theme,f=t.selectProps;return le("div",ue({},Xe(t,"group",{group:!0}),l),le(s,ue({},a,{selectProps:f,theme:c,getStyles:o,getClassNames:i,cx:r}),u),le("div",null,n))},aY=function(t,n){var r=t.theme,o=r.colors,i=r.spacing;return de({label:"group",cursor:"default",display:"block"},n?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:i.baseUnit*3,paddingRight:i.baseUnit*3,textTransform:"uppercase"})},lY=function(t){var n=CS(t);n.data;var r=Jn(n,oY);return le("div",ue({},Xe(t,"groupHeading",{"group-heading":!0}),r))},uY=sY,cY=["innerRef","isDisabled","isHidden","inputClassName"],fY=function(t,n){var r=t.isDisabled,o=t.value,i=t.theme,s=i.spacing,a=i.colors;return de(de({visibility:r?"hidden":"visible",transform:o?"translateZ(0)":""},dY),n?{}:{margin:s.baseUnit/2,paddingBottom:s.baseUnit/2,paddingTop:s.baseUnit/2,color:a.neutral80})},MS={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},dY={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":de({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},MS)},pY=function(t){return de({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},MS)},hY=function(t){var n=t.cx,r=t.value,o=CS(t),i=o.innerRef,s=o.isDisabled,a=o.isHidden,l=o.inputClassName,u=Jn(o,cY);return le("div",ue({},Xe(t,"input",{"input-container":!0}),{"data-value":r||""}),le("input",ue({className:n({input:!0},l),ref:i,style:pY(a),disabled:s},u)))},gY=hY,mY=function(t,n){var r=t.theme,o=r.spacing,i=r.borderRadius,s=r.colors;return de({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:s.neutral10,borderRadius:i/2,margin:o.baseUnit/2})},yY=function(t,n){var r=t.theme,o=r.borderRadius,i=r.colors,s=t.cropWithEllipsis;return de({overflow:"hidden",textOverflow:s||s===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:o/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},bY=function(t,n){var r=t.theme,o=r.spacing,i=r.borderRadius,s=r.colors,a=t.isFocused;return de({alignItems:"center",display:"flex"},n?{}:{borderRadius:i/2,backgroundColor:a?s.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:s.dangerLight,color:s.danger}})},DS=function(t){var n=t.children,r=t.innerProps;return le("div",r,n)},vY=DS,xY=DS;function wY(e){var t=e.children,n=e.innerProps;return le("div",ue({role:"button"},n),t||le(oh,{size:14}))}var CY=function(t){var n=t.children,r=t.components,o=t.data,i=t.innerProps,s=t.isDisabled,a=t.removeProps,l=t.selectProps,u=r.Container,c=r.Label,f=r.Remove;return le(u,{data:o,innerProps:de(de({},Xe(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),i),selectProps:l},le(c,{data:o,innerProps:de({},Xe(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),le(f,{data:o,innerProps:de(de({},Xe(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},a),selectProps:l}))},_Y=CY,SY=function(t,n){var r=t.isDisabled,o=t.isFocused,i=t.isSelected,s=t.theme,a=s.spacing,l=s.colors;return de({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:i?l.primary:o?l.primary25:"transparent",color:r?l.neutral20:i?l.neutral0:"inherit",padding:"".concat(a.baseUnit*2,"px ").concat(a.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:i?l.primary:l.primary50}})},EY=function(t){var n=t.children,r=t.isDisabled,o=t.isFocused,i=t.isSelected,s=t.innerRef,a=t.innerProps;return le("div",ue({},Xe(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":o,"option--is-selected":i}),{ref:s,"aria-disabled":r},a),n)},IY=EY,kY=function(t,n){var r=t.theme,o=r.spacing,i=r.colors;return de({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:i.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},AY=function(t){var n=t.children,r=t.innerProps;return le("div",ue({},Xe(t,"placeholder",{placeholder:!0}),r),n)},TY=AY,NY=function(t,n){var r=t.isDisabled,o=t.theme,i=o.spacing,s=o.colors;return de({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?s.neutral40:s.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},PY=function(t){var n=t.children,r=t.isDisabled,o=t.innerProps;return le("div",ue({},Xe(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),o),n)},OY=PY,RY={ClearIndicator:Z7,Control:rY,DropdownIndicator:Y7,DownChevron:OS,CrossIcon:oh,Group:uY,GroupHeading:lY,IndicatorsContainer:V7,IndicatorSeparator:q7,Input:gY,LoadingIndicator:eY,Menu:k7,MenuList:T7,MenuPortal:D7,LoadingMessage:R7,NoOptionsMessage:O7,MultiValue:_Y,MultiValueContainer:vY,MultiValueLabel:xY,MultiValueRemove:wY,Option:IY,Placeholder:TY,SelectContainer:j7,SingleValue:OY,ValueContainer:B7},MY=function(t){return de(de({},RY),t.components)},FS=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function DY(e,t){return!!(e===t||FS(e)&&FS(t))}function FY(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!DY(e[n],t[n]))return!1;return!0}function jY(e,t){t===void 0&&(t=FY);var n=null;function r(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var s=e.apply(this,o);return n={lastResult:s,lastArgs:o,lastThis:this},s}return r.clear=function(){n=null},r}function LY(){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 BY=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:LY},zY=function(t){return le("span",ue({css:BY},t))},jS=zY,VY={guidance:function(t){var n=t.isSearchable,r=t.isMulti,o=t.tabSelectsValue,i=t.context,s=t.isInitialFocus;switch(i){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return s?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var n=t.action,r=t.label,o=r===void 0?"":r,i=t.labels,s=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return s?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,o=t.options,i=t.label,s=i===void 0?"":i,a=t.selectValue,l=t.isDisabled,u=t.isSelected,c=t.isAppleDevice,f=function(h,y){return h&&h.length?"".concat(h.indexOf(y)+1," of ").concat(h.length):""};if(n==="value"&&a)return"value ".concat(s," focused, ").concat(f(a,r),".");if(n==="menu"&&c){var d=l?" disabled":"",p="".concat(u?" selected":"").concat(d);return"".concat(s).concat(p,", ").concat(f(o,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},GY=function(t){var n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.focusableOptions,s=t.isFocused,a=t.selectValue,l=t.selectProps,u=t.id,c=t.isAppleDevice,f=l.ariaLiveMessages,d=l.getOptionLabel,p=l.inputValue,g=l.isMulti,h=l.isOptionDisabled,y=l.isSearchable,m=l.menuIsOpen,x=l.options,v=l.screenReaderStatus,C=l.tabSelectsValue,S=l.isLoading,E=l["aria-label"],I=l["aria-live"],O=T.useMemo(function(){return de(de({},VY),f||{})},[f]),M=T.useMemo(function(){var j="";if(n&&O.onChange){var D=n.option,z=n.options,V=n.removedValue,F=n.removedValues,_=n.value,G=function(U){return Array.isArray(U)?null:U},$=V||D||G(_),P=$?d($):"",H=z||F||void 0,J=H?H.map(d):[],W=de({isDisabled:$&&h($,a),label:P,labels:J},n);j=O.onChange(W)}return j},[n,O,h,a,d]),w=T.useMemo(function(){var j="",D=r||o,z=!!(r&&a&&a.includes(r));if(D&&O.onFocus){var V={focused:D,label:d(D),isDisabled:h(D,a),isSelected:z,options:i,context:D===r?"menu":"value",selectValue:a,isAppleDevice:c};j=O.onFocus(V)}return j},[r,o,d,h,O,i,a,c]),N=T.useMemo(function(){var j="";if(m&&x.length&&!S&&O.onFilter){var D=v({count:i.length});j=O.onFilter({inputValue:p,resultsMessage:D})}return j},[i,p,m,O,x,v,S]),R=(n==null?void 0:n.action)==="initial-input-focus",L=T.useMemo(function(){var j="";if(O.guidance){var D=o?"value":m?"menu":"input";j=O.guidance({"aria-label":E,context:D,isDisabled:r&&h(r,a),isMulti:g,isSearchable:y,tabSelectsValue:C,isInitialFocus:R})}return j},[E,r,o,g,h,y,m,O,a,C,R]),A=le(T.Fragment,null,le("span",{id:"aria-selection"},M),le("span",{id:"aria-focused"},w),le("span",{id:"aria-results"},N),le("span",{id:"aria-guidance"},L));return le(T.Fragment,null,le(jS,{id:u},R&&A),le(jS,{"aria-live":I,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},s&&!R&&A))},$Y=GY,sh=[{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źẑżžẓẕƶȥɀⱬꝣ"}],HY=new RegExp("["+sh.map(function(e){return e.letters}).join("")+"]","g"),LS={},ah=0;ah<sh.length;ah++)for(var lh=sh[ah],uh=0;uh<lh.letters.length;uh++)LS[lh.letters[uh]]=lh.base;var BS=function(t){return t.replace(HY,function(n){return LS[n]})},WY=jY(BS),zS=function(t){return t.replace(/^\s+|\s+$/g,"")},XY=function(t){return"".concat(t.label," ").concat(t.value)},YY=function(t){return function(n,r){if(n.data.__isNew__)return!0;var o=de({ignoreCase:!0,ignoreAccents:!0,stringify:XY,trim:!0,matchFrom:"any"},t),i=o.ignoreCase,s=o.ignoreAccents,a=o.stringify,l=o.trim,u=o.matchFrom,c=l?zS(r):r,f=l?zS(a(n)):a(n);return i&&(c=c.toLowerCase(),f=f.toLowerCase()),s&&(c=WY(c),f=BS(f)),u==="start"?f.substr(0,c.length)===c:f.indexOf(c)>-1}},UY=["innerRef"];function ZY(e){var t=e.innerRef,n=Jn(e,UY),r=v7(n,"onExited","in","enter","exit","appear");return le("input",ue({ref:t},r,{css:Tp({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var JY=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function qY(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,s=T.useRef(!1),a=T.useRef(!1),l=T.useRef(0),u=T.useRef(null),c=T.useCallback(function(y,m){if(u.current!==null){var x=u.current,v=x.scrollTop,C=x.scrollHeight,S=x.clientHeight,E=u.current,I=m>0,O=C-S-v,M=!1;O>m&&s.current&&(r&&r(y),s.current=!1),I&&a.current&&(i&&i(y),a.current=!1),I&&m>O?(n&&!s.current&&n(y),E.scrollTop=C,M=!0,s.current=!0):!I&&-m>v&&(o&&!a.current&&o(y),E.scrollTop=0,M=!0,a.current=!0),M&&JY(y)}},[n,r,o,i]),f=T.useCallback(function(y){c(y,y.deltaY)},[c]),d=T.useCallback(function(y){l.current=y.changedTouches[0].clientY},[]),p=T.useCallback(function(y){var m=l.current-y.changedTouches[0].clientY;c(y,m)},[c]),g=T.useCallback(function(y){if(y){var m=m7?{passive:!1}:!1;y.addEventListener("wheel",f,m),y.addEventListener("touchstart",d,m),y.addEventListener("touchmove",p,m)}},[p,d,f]),h=T.useCallback(function(y){y&&(y.removeEventListener("wheel",f,!1),y.removeEventListener("touchstart",d,!1),y.removeEventListener("touchmove",p,!1))},[p,d,f]);return T.useEffect(function(){if(t){var y=u.current;return g(y),function(){h(y)}}},[t,g,h]),function(y){u.current=y}}var VS=["boxSizing","height","overflow","paddingRight","position"],GS={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function $S(e){e.cancelable&&e.preventDefault()}function HS(e){e.stopPropagation()}function WS(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function XS(){return"ontouchstart"in window||navigator.maxTouchPoints}var YS=!!(typeof window<"u"&&window.document&&window.document.createElement),Ss=0,ti={capture:!1,passive:!1};function KY(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,o=T.useRef({}),i=T.useRef(null),s=T.useCallback(function(l){if(YS){var u=document.body,c=u&&u.style;if(r&&VS.forEach(function(g){var h=c&&c[g];o.current[g]=h}),r&&Ss<1){var f=parseInt(o.current.paddingRight,10)||0,d=document.body?document.body.clientWidth:0,p=window.innerWidth-d+f||0;Object.keys(GS).forEach(function(g){var h=GS[g];c&&(c[g]=h)}),c&&(c.paddingRight="".concat(p,"px"))}u&&XS()&&(u.addEventListener("touchmove",$S,ti),l&&(l.addEventListener("touchstart",WS,ti),l.addEventListener("touchmove",HS,ti))),Ss+=1}},[r]),a=T.useCallback(function(l){if(YS){var u=document.body,c=u&&u.style;Ss=Math.max(Ss-1,0),r&&Ss<1&&VS.forEach(function(f){var d=o.current[f];c&&(c[f]=d)}),u&&XS()&&(u.removeEventListener("touchmove",$S,ti),l&&(l.removeEventListener("touchstart",WS,ti),l.removeEventListener("touchmove",HS,ti)))}},[r]);return T.useEffect(function(){if(t){var l=i.current;return s(l),function(){a(l)}}},[t,s,a]),function(l){i.current=l}}function QY(){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 eU=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},tU=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+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:QY};function nU(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=r===void 0?!0:r,i=e.onBottomArrive,s=e.onBottomLeave,a=e.onTopArrive,l=e.onTopLeave,u=qY({isEnabled:o,onBottomArrive:i,onBottomLeave:s,onTopArrive:a,onTopLeave:l}),c=KY({isEnabled:n}),f=function(p){u(p),c(p)};return le(T.Fragment,null,n&&le("div",{onClick:eU,css:tU}),t(f))}function rU(){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 oU=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:rU},iU=function(t){var n=t.name,r=t.onFocus;return le("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:oU,value:"",onChange:function(){}})},sU=iU;function ch(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 aU(){return ch(/^iPhone/i)}function US(){return ch(/^Mac/i)}function lU(){return ch(/^iPad/i)||US()&&navigator.maxTouchPoints>1}function uU(){return aU()||lU()}function cU(){return US()||uU()}var fU=function(t){return t.label},dU=function(t){return t.label},pU=function(t){return t.value},hU=function(t){return!!t.isDisabled},gU={clearIndicator:U7,container:F7,control:tY,dropdownIndicator:X7,group:iY,groupHeading:aY,indicatorsContainer:z7,indicatorSeparator:J7,input:fY,loadingIndicator:Q7,loadingMessage:P7,menu:S7,menuList:A7,menuPortal:M7,multiValue:mY,multiValueLabel:yY,multiValueRemove:bY,noOptionsMessage:N7,option:SY,placeholder:kY,singleValue:NY,valueContainer:L7},mU={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%)"},yU=4,ZS=4,bU=38,vU=ZS*2,xU={baseUnit:ZS,controlHeight:bU,menuGutter:vU},fh={borderRadius:yU,colors:mU,spacing:xU},wU={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ES(),captureMenuScroll:!ES(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:YY(),formatGroupLabel:fU,getOptionLabel:dU,getOptionValue:pU,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:hU,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!h7(),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 JS(e,t,n,r){var o=tE(e,t,n),i=nE(e,t,n),s=eE(e,t),a=xu(e,t);return{type:"option",data:t,isDisabled:o,isSelected:i,label:s,value:a,index:r}}function vu(e,t){return e.options.map(function(n,r){if("options"in n){var o=n.options.map(function(s,a){return JS(e,s,t,a)}).filter(function(s){return QS(e,s)});return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=JS(e,n,t,r);return QS(e,i)?i:void 0}).filter(y7)}function qS(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,nh(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function KS(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,nh(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 CU(e,t){return qS(vu(e,t))}function QS(e,t){var n=e.inputValue,r=n===void 0?"":n,o=t.data,i=t.isSelected,s=t.label,a=t.value;return(!oE(e)||!i)&&rE(e,{label:s,value:a,data:o},r)}function _U(e,t){var n=e.focusedValue,r=e.selectValue,o=r.indexOf(n);if(o>-1){var i=t.indexOf(n);if(i>-1)return n;if(o<t.length)return t[o]}return null}function SU(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var dh=function(t,n){var r,o=(r=t.find(function(i){return i.data===n}))===null||r===void 0?void 0:r.id;return o||null},eE=function(t,n){return t.getOptionLabel(n)},xu=function(t,n){return t.getOptionValue(n)};function tE(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function nE(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=xu(e,t);return n.some(function(o){return xu(e,o)===r})}function rE(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var oE=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},EU=1,iE=function(e){e7(n,e);var t=n7(n);function n(r){var o;if(K8(this,n),o=t.call(this,r),o.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.isAppleDevice=cU(),o.controlRef=null,o.getControlRef=function(l){o.controlRef=l},o.focusedOptionRef=null,o.getFocusedOptionRef=function(l){o.focusedOptionRef=l},o.menuListRef=null,o.getMenuListRef=function(l){o.menuListRef=l},o.inputRef=null,o.getInputRef=function(l){o.inputRef=l},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(l,u){var c=o.props,f=c.onChange,d=c.name;u.name=d,o.ariaOnChange(l,u),f(l,u)},o.setValue=function(l,u,c){var f=o.props,d=f.closeMenuOnSelect,p=f.isMulti,g=f.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:g}),d&&(o.setState({inputIsHiddenAfterUpdate:!p}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(l,{action:u,option:c})},o.selectOption=function(l){var u=o.props,c=u.blurInputOnSelect,f=u.isMulti,d=u.name,p=o.state.selectValue,g=f&&o.isOptionSelected(l,p),h=o.isOptionDisabled(l,p);if(g){var y=o.getOptionValue(l);o.setValue(p.filter(function(m){return o.getOptionValue(m)!==y}),"deselect-option",l)}else if(!h)f?o.setValue([].concat(nh(p),[l]),"select-option",l):o.setValue(l,"select-option");else{o.ariaOnChange(l,{action:"select-option",option:l,name:d});return}c&&o.blurInput()},o.removeValue=function(l){var u=o.props.isMulti,c=o.state.selectValue,f=o.getOptionValue(l),d=c.filter(function(g){return o.getOptionValue(g)!==f}),p=bu(u,d,d[0]||null);o.onChange(p,{action:"remove-value",removedValue:l}),o.focusInput()},o.clearValue=function(){var l=o.state.selectValue;o.onChange(bu(o.props.isMulti,[],null),{action:"clear",removedValues:l})},o.popValue=function(){var l=o.props.isMulti,u=o.state.selectValue,c=u[u.length-1],f=u.slice(0,u.length-1),d=bu(l,f,f[0]||null);c&&o.onChange(d,{action:"pop-value",removedValue:c})},o.getFocusedOptionId=function(l){return dh(o.state.focusableOptionsWithIds,l)},o.getFocusableOptionsWithIds=function(){return KS(vu(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];return u7.apply(void 0,[o.props.classNamePrefix].concat(u))},o.getOptionLabel=function(l){return eE(o.props,l)},o.getOptionValue=function(l){return xu(o.props,l)},o.getStyles=function(l,u){var c=o.props.unstyled,f=gU[l](u,c);f.boxSizing="border-box";var d=o.props.styles[l];return d?d(f,u):f},o.getClassNames=function(l,u){var c,f;return(c=(f=o.props.classNames)[l])===null||c===void 0?void 0:c.call(f,u)},o.getElementId=function(l){return"".concat(o.state.instancePrefix,"-").concat(l)},o.getComponents=function(){return MY(o.props)},o.buildCategorizedOptions=function(){return vu(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return qS(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(l,u){o.setState({ariaSelection:de({value:l},u)})},o.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(l){o.blockOptionHover=!1},o.onControlMouseDown=function(l){if(!l.defaultPrevented){var u=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&o.onMenuClose():u&&o.openMenu("first"):(u&&(o.openAfterFocus=!0),o.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},o.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!o.props.isDisabled){var u=o.props,c=u.isMulti,f=u.menuIsOpen;o.focusInput(),f?(o.setState({inputIsHiddenAfterUpdate:!c}),o.onMenuClose()):o.openMenu("first"),l.preventDefault()}},o.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(o.clearValue(),l.preventDefault(),o.openAfterFocus=!1,l.type==="touchend"?o.focusInput():setTimeout(function(){return o.focusInput()}))},o.onScroll=function(l){typeof o.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&hu(l.target)&&o.props.onMenuClose():typeof o.props.closeMenuOnScroll=="function"&&o.props.closeMenuOnScroll(l)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(l){var u=l.touches,c=u&&u.item(0);c&&(o.initialTouchX=c.clientX,o.initialTouchY=c.clientY,o.userIsDragging=!1)},o.onTouchMove=function(l){var u=l.touches,c=u&&u.item(0);if(c){var f=Math.abs(c.clientX-o.initialTouchX),d=Math.abs(c.clientY-o.initialTouchY),p=5;o.userIsDragging=f>p||d>p}},o.onTouchEnd=function(l){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(l.target)&&o.menuListRef&&!o.menuListRef.contains(l.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(l){o.userIsDragging||o.onControlMouseDown(l)},o.onClearIndicatorTouchEnd=function(l){o.userIsDragging||o.onClearIndicatorMouseDown(l)},o.onDropdownIndicatorTouchEnd=function(l){o.userIsDragging||o.onDropdownIndicatorMouseDown(l)},o.handleInputChange=function(l){var u=o.props.inputValue,c=l.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(c,{action:"input-change",prevInputValue:u}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(l){o.props.onFocus&&o.props.onFocus(l),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(l){var u=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(l),o.onInputChange("",{action:"input-blur",prevInputValue:u}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(l){if(!(o.blockOptionHover||o.state.focusedOption===l)){var u=o.getFocusableOptions(),c=u.indexOf(l);o.setState({focusedOption:l,focusedOptionId:c>-1?o.getFocusedOptionId(l):null})}},o.shouldHideSelectedOptions=function(){return oE(o.props)},o.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),o.focus()},o.onKeyDown=function(l){var u=o.props,c=u.isMulti,f=u.backspaceRemovesValue,d=u.escapeClearsValue,p=u.inputValue,g=u.isClearable,h=u.isDisabled,y=u.menuIsOpen,m=u.onKeyDown,x=u.tabSelectsValue,v=u.openMenuOnFocus,C=o.state,S=C.focusedOption,E=C.focusedValue,I=C.selectValue;if(!h&&!(typeof m=="function"&&(m(l),l.defaultPrevented))){switch(o.blockOptionHover=!0,l.key){case"ArrowLeft":if(!c||p)return;o.focusValue("previous");break;case"ArrowRight":if(!c||p)return;o.focusValue("next");break;case"Delete":case"Backspace":if(p)return;if(E)o.removeValue(E);else{if(!f)return;c?o.popValue():g&&o.clearValue()}break;case"Tab":if(o.isComposing||l.shiftKey||!y||!x||!S||v&&o.isOptionSelected(S,I))return;o.selectOption(S);break;case"Enter":if(l.keyCode===229)break;if(y){if(!S||o.isComposing)return;o.selectOption(S);break}return;case"Escape":y?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:p}),o.onMenuClose()):g&&d&&o.clearValue();break;case" ":if(p)return;if(!y){o.openMenu("first");break}if(!S)return;o.selectOption(S);break;case"ArrowUp":y?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":y?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!y)return;o.focusOption("pageup");break;case"PageDown":if(!y)return;o.focusOption("pagedown");break;case"Home":if(!y)return;o.focusOption("first");break;case"End":if(!y)return;o.focusOption("last");break;default:return}l.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++EU),o.state.selectValue=wS(r.value),r.menuIsOpen&&o.state.selectValue.length){var i=o.getFocusableOptionsWithIds(),s=o.buildFocusableOptions(),a=s.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=i,o.state.focusedOption=s[a],o.state.focusedOptionId=dh(i,s[a])}return o}return Q8(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&&SS(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(o){var i=this.props,s=i.isDisabled,a=i.menuIsOpen,l=this.state.isFocused;(l&&!s&&o.isDisabled||l&&a&&!o.menuIsOpen)&&this.focusInput(),l&&s&&!o.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!s&&o.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(SS(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(o,i){this.props.onInputChange(o,i)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(o){var i=this,s=this.state,a=s.selectValue,l=s.isFocused,u=this.buildFocusableOptions(),c=o==="first"?0:u.length-1;if(!this.props.isMulti){var f=u.indexOf(a[0]);f>-1&&(c=f)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[c],focusedOptionId:this.getFocusedOptionId(u[c])},function(){return i.onMenuOpen()})}},{key:"focusValue",value:function(o){var i=this.state,s=i.selectValue,a=i.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=s.indexOf(a);a||(l=-1);var u=s.length-1,c=-1;if(s.length){switch(o){case"previous":l===0?c=0:l===-1?c=u:c=l-1;break;case"next":l>-1&&l<u&&(c=l+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:s[c]})}}}},{key:"focusOption",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",i=this.props.pageSize,s=this.state.focusedOption,a=this.getFocusableOptions();if(a.length){var l=0,u=a.indexOf(s);s||(u=-1),o==="up"?l=u>0?u-1:a.length-1:o==="down"?l=(u+1)%a.length:o==="pageup"?(l=u-i,l<0&&(l=0)):o==="pagedown"?(l=u+i,l>a.length-1&&(l=a.length-1)):o==="last"&&(l=a.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:a[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(a[l])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(fh):de(de({},fh),this.props.theme):fh}},{key:"getCommonProps",value:function(){var o=this.clearValue,i=this.cx,s=this.getStyles,a=this.getClassNames,l=this.getValue,u=this.selectOption,c=this.setValue,f=this.props,d=f.isMulti,p=f.isRtl,g=f.options,h=this.hasValue();return{clearValue:o,cx:i,getStyles:s,getClassNames:a,getValue:l,hasValue:h,isMulti:d,isRtl:p,options:g,selectOption:u,selectProps:f,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var o=this.state.selectValue;return o.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var o=this.props,i=o.isClearable,s=o.isMulti;return i===void 0?s:i}},{key:"isOptionDisabled",value:function(o,i){return tE(this.props,o,i)}},{key:"isOptionSelected",value:function(o,i){return nE(this.props,o,i)}},{key:"filterOption",value:function(o,i){return rE(this.props,o,i)}},{key:"formatOptionLabel",value:function(o,i){if(typeof this.props.formatOptionLabel=="function"){var s=this.props.inputValue,a=this.state.selectValue;return this.props.formatOptionLabel(o,{context:i,inputValue:s,selectValue:a})}else return this.getOptionLabel(o)}},{key:"formatGroupLabel",value:function(o){return this.props.formatGroupLabel(o)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var o=this.props,i=o.isDisabled,s=o.isSearchable,a=o.inputId,l=o.inputValue,u=o.tabIndex,c=o.form,f=o.menuIsOpen,d=o.required,p=this.getComponents(),g=p.Input,h=this.state,y=h.inputIsHidden,m=h.ariaSelection,x=this.commonProps,v=a||this.getElementId("input"),C=de(de(de({"aria-autocomplete":"list","aria-expanded":f,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":d,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},f&&{"aria-controls":this.getElementId("listbox")}),!s&&{"aria-readonly":!0}),this.hasValue()?(m==null?void 0:m.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return s?k.createElement(g,ue({},x,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:v,innerRef:this.getInputRef,isDisabled:i,isHidden:y,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:c,type:"text",value:l},C)):k.createElement(ZY,ue({id:v,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:pu,onFocus:this.onInputFocus,disabled:i,tabIndex:u,inputMode:"none",form:c,value:""},C))}},{key:"renderPlaceholderOrValue",value:function(){var o=this,i=this.getComponents(),s=i.MultiValue,a=i.MultiValueContainer,l=i.MultiValueLabel,u=i.MultiValueRemove,c=i.SingleValue,f=i.Placeholder,d=this.commonProps,p=this.props,g=p.controlShouldRenderValue,h=p.isDisabled,y=p.isMulti,m=p.inputValue,x=p.placeholder,v=this.state,C=v.selectValue,S=v.focusedValue,E=v.isFocused;if(!this.hasValue()||!g)return m?null:k.createElement(f,ue({},d,{key:"placeholder",isDisabled:h,isFocused:E,innerProps:{id:this.getElementId("placeholder")}}),x);if(y)return C.map(function(O,M){var w=O===S,N="".concat(o.getOptionLabel(O),"-").concat(o.getOptionValue(O));return k.createElement(s,ue({},d,{components:{Container:a,Label:l,Remove:u},isFocused:w,isDisabled:h,key:N,index:M,removeProps:{onClick:function(){return o.removeValue(O)},onTouchEnd:function(){return o.removeValue(O)},onMouseDown:function(L){L.preventDefault()}},data:O}),o.formatOptionLabel(O,"value"))});if(m)return null;var I=C[0];return k.createElement(c,ue({},d,{data:I,isDisabled:h}),this.formatOptionLabel(I,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),i=o.ClearIndicator,s=this.commonProps,a=this.props,l=a.isDisabled,u=a.isLoading,c=this.state.isFocused;if(!this.isClearable()||!i||l||!this.hasValue()||u)return null;var f={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return k.createElement(i,ue({},s,{innerProps:f,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),i=o.LoadingIndicator,s=this.commonProps,a=this.props,l=a.isDisabled,u=a.isLoading,c=this.state.isFocused;if(!i||!u)return null;var f={"aria-hidden":"true"};return k.createElement(i,ue({},s,{innerProps:f,isDisabled:l,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator,s=o.IndicatorSeparator;if(!i||!s)return null;var a=this.commonProps,l=this.props.isDisabled,u=this.state.isFocused;return k.createElement(s,ue({},a,{isDisabled:l,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator;if(!i)return null;var s=this.commonProps,a=this.props.isDisabled,l=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return k.createElement(i,ue({},s,{innerProps:u,isDisabled:a,isFocused:l}))}},{key:"renderMenu",value:function(){var o=this,i=this.getComponents(),s=i.Group,a=i.GroupHeading,l=i.Menu,u=i.MenuList,c=i.MenuPortal,f=i.LoadingMessage,d=i.NoOptionsMessage,p=i.Option,g=this.commonProps,h=this.state.focusedOption,y=this.props,m=y.captureMenuScroll,x=y.inputValue,v=y.isLoading,C=y.loadingMessage,S=y.minMenuHeight,E=y.maxMenuHeight,I=y.menuIsOpen,O=y.menuPlacement,M=y.menuPosition,w=y.menuPortalTarget,N=y.menuShouldBlockScroll,R=y.menuShouldScrollIntoView,L=y.noOptionsMessage,A=y.onMenuScrollToTop,j=y.onMenuScrollToBottom;if(!I)return null;var D=function(P,H){var J=P.type,W=P.data,X=P.isDisabled,U=P.isSelected,Q=P.label,ne=P.value,oe=h===W,Z=X?void 0:function(){return o.onOptionHover(W)},ce=X?void 0:function(){return o.selectOption(W)},pe="".concat(o.getElementId("option"),"-").concat(H),Ie={id:pe,onClick:ce,onMouseMove:Z,onMouseOver:Z,tabIndex:-1,role:"option","aria-selected":o.isAppleDevice?void 0:U};return k.createElement(p,ue({},g,{innerProps:Ie,data:W,isDisabled:X,isSelected:U,key:pe,label:Q,type:J,value:ne,isFocused:oe,innerRef:oe?o.getFocusedOptionRef:void 0}),o.formatOptionLabel(P.data,"menu"))},z;if(this.hasOptions())z=this.getCategorizedOptions().map(function($){if($.type==="group"){var P=$.data,H=$.options,J=$.index,W="".concat(o.getElementId("group"),"-").concat(J),X="".concat(W,"-heading");return k.createElement(s,ue({},g,{key:W,data:P,options:H,Heading:a,headingProps:{id:X,data:$.data},label:o.formatGroupLabel($.data)}),$.options.map(function(U){return D(U,"".concat(J,"-").concat(U.index))}))}else if($.type==="option")return D($,"".concat($.index))});else if(v){var V=C({inputValue:x});if(V===null)return null;z=k.createElement(f,g,V)}else{var F=L({inputValue:x});if(F===null)return null;z=k.createElement(d,g,F)}var _={minMenuHeight:S,maxMenuHeight:E,menuPlacement:O,menuPosition:M,menuShouldScrollIntoView:R},G=k.createElement(E7,ue({},g,_),function($){var P=$.ref,H=$.placerProps,J=H.placement,W=H.maxHeight;return k.createElement(l,ue({},g,_,{innerRef:P,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove},isLoading:v,placement:J}),k.createElement(nU,{captureEnabled:m,onTopArrive:A,onBottomArrive:j,lockEnabled:N},function(X){return k.createElement(u,ue({},g,{innerRef:function(Q){o.getMenuListRef(Q),X(Q)},innerProps:{role:"listbox","aria-multiselectable":g.isMulti,id:o.getElementId("listbox")},isLoading:v,maxHeight:W,focusedOption:h}),z)}))});return w||M==="fixed"?k.createElement(c,ue({},g,{appendTo:w,controlElement:this.controlRef,menuPlacement:O,menuPosition:M}),G):G}},{key:"renderFormField",value:function(){var o=this,i=this.props,s=i.delimiter,a=i.isDisabled,l=i.isMulti,u=i.name,c=i.required,f=this.state.selectValue;if(c&&!this.hasValue()&&!a)return k.createElement(sU,{name:u,onFocus:this.onValueInputFocus});if(!(!u||a))if(l)if(s){var d=f.map(function(h){return o.getOptionValue(h)}).join(s);return k.createElement("input",{name:u,type:"hidden",value:d})}else{var p=f.length>0?f.map(function(h,y){return k.createElement("input",{key:"i-".concat(y),name:u,type:"hidden",value:o.getOptionValue(h)})}):k.createElement("input",{name:u,type:"hidden",value:""});return k.createElement("div",null,p)}else{var g=f[0]?this.getOptionValue(f[0]):"";return k.createElement("input",{name:u,type:"hidden",value:g})}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,i=this.state,s=i.ariaSelection,a=i.focusedOption,l=i.focusedValue,u=i.isFocused,c=i.selectValue,f=this.getFocusableOptions();return k.createElement($Y,ue({},o,{id:this.getElementId("live-region"),ariaSelection:s,focusedOption:a,focusedValue:l,isFocused:u,selectValue:c,focusableOptions:f,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var o=this.getComponents(),i=o.Control,s=o.IndicatorsContainer,a=o.SelectContainer,l=o.ValueContainer,u=this.props,c=u.className,f=u.id,d=u.isDisabled,p=u.menuIsOpen,g=this.state.isFocused,h=this.commonProps=this.getCommonProps();return k.createElement(a,ue({},h,{className:c,innerProps:{id:f,onKeyDown:this.onKeyDown},isDisabled:d,isFocused:g}),this.renderLiveRegion(),k.createElement(i,ue({},h,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:d,isFocused:g,menuIsOpen:p}),k.createElement(l,ue({},h,{isDisabled:d}),this.renderPlaceholderOrValue(),this.renderInput()),k.createElement(s,ue({},h,{isDisabled:d}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,i){var s=i.prevProps,a=i.clearFocusValueOnUpdate,l=i.inputIsHiddenAfterUpdate,u=i.ariaSelection,c=i.isFocused,f=i.prevWasFocused,d=i.instancePrefix,p=o.options,g=o.value,h=o.menuIsOpen,y=o.inputValue,m=o.isMulti,x=wS(g),v={};if(s&&(g!==s.value||p!==s.options||h!==s.menuIsOpen||y!==s.inputValue)){var C=h?CU(o,x):[],S=h?KS(vu(o,x),"".concat(d,"-option")):[],E=a?_U(i,x):null,I=SU(i,C),O=dh(S,I);v={selectValue:x,focusedOption:I,focusedOptionId:O,focusableOptionsWithIds:S,focusedValue:E,clearFocusValueOnUpdate:!1}}var M=l!=null&&o!==s?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},w=u,N=c&&f;return c&&!N&&(w={value:bu(m,x,x[0]||null),options:x,action:"initial-input-focus"},N=!f),(u==null?void 0:u.action)==="initial-input-focus"&&(w=null),de(de(de({},v),M),{},{prevProps:o,ariaSelection:w,prevWasFocused:N})}}]),n}(T.Component);iE.defaultProps=wU;var IU=T.forwardRef(function(e,t){var n=q8(e);return k.createElement(iE,ue({ref:t},n))}),kU=IU;const AU=({options:e,items_per_page:t,className:n,defaultValue:r,onChange:o})=>{const[i,s]=T.useState(""),[a,l]=T.useState(0),u=p=>{s(p.toLowerCase()),l(0)},c=e.filter(p=>p.label.toLowerCase().includes(i)||p.value.toLowerCase().includes(i));var f;t!==void 0?f=c.slice(a*t,(a+1)*t):f=c;const d={control:p=>({...p,minHeight:void 0})};return b.jsx(kU,{options:f,onInputChange:u,onChange:o,inputValue:i,isSearchable:!0,placeholder:"Select an option...",className:n,unstyled:!0,styles:d,classNamePrefix:"styled-select",defaultValue:r,value:r})};function TU(e){return e===0?0:Math.abs(e)<1e-12?e:Number(e.toPrecision(12))}const sE=({iostore:e,inputconverter:t,parser:n=r=>parseFloat(r)})=>{var p,g,h,y,m,x,v,C,S,E,I,O,M,w;const r=k.useContext(xe),{preview:o}=e.valuestore(),i=e.use(),[s,a]=k.useState(t[1](o==null?void 0:o.value));k.useEffect(()=>{a(t[1](o==null?void 0:o.value))},[o]);const l=N=>{var R,L,A;N=n(parseFloat(N.toString()).toString()),isNaN(N)?(N="<NoValue>",a("")):(((R=i.value_options)==null?void 0:R.min)!==void 0&&N<i.value_options.min&&(N=i.value_options.min),((L=i.value_options)==null?void 0:L.max)!==void 0&&N>i.value_options.max&&(N=i.value_options.max),N=TU(N),a(N.toString()));try{N=t[0](N)}catch{}(A=r.worker)==null||A.set_io_value({nid:i.node,ioid:i.id,value:N,set_default:i.render_options.set_default})},u=N=>{l(N.target.value)};let c=i.connected?t[1](o==null?void 0:o.value):s;c===void 0&&(c=(p=i.value_options)==null?void 0:p.min),c===void 0&&(c=(g=i.value_options)==null?void 0:g.max),c===void 0&&(c=""),c===null&&(c="");let f=null,d=1;return((h=i.value_options)==null?void 0:h.step)!==void 0?d=i.value_options.step:((y=i.value_options)==null?void 0:y.max)!==void 0&&((m=i.value_options)==null?void 0:m.min)!==void 0&&(d=(((x=i.value_options)==null?void 0:x.max)-((v=i.value_options)==null?void 0:v.min))/1e3),((C=i.value_options)==null?void 0:C.max)!==void 0&&((S=i.value_options)==null?void 0:S.min)!==void 0&&!i.connected&&(f=b.jsx("div",{style:{minWidth:"100px"},className:"SliderContainer",children:b.jsxs(N8,{className:"SliderRoot",value:[c===void 0?(E=i.value_options)==null?void 0:E.min:c],min:(I=i.value_options)==null?void 0:I.min,max:(O=i.value_options)==null?void 0:O.max,step:d,disabled:i.connected,onValueCommit:N=>{isNaN(N[0])||l(N[0])},onValueChange:N=>{isNaN(N[0])||a(N[0].toString())},onKeyDown:N=>{["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(N.key)&&N.stopPropagation()},children:[b.jsx(P8,{className:"SliderTrack",children:b.jsx(O8,{className:"SliderRange"})}),b.jsx(R8,{className:"SliderThumb"})]})})),b.jsxs(b.Fragment,{children:[f,b.jsx("input",{type:"text",className:"nodedatainput styledinput numberinput",value:c,onChange:N=>a(N.target.value),onBlur:u,step:d,onKeyDown:N=>{if(!(N.ctrlKey||N.metaKey)){if(N.key==="ArrowUp"){N.shiftKey&&(d*=10);let R=(parseFloat(c)||0)+d;l(R);return}if(N.key==="ArrowDown"){N.shiftKey&&(d*=10);let R=(parseFloat(c)||0)-d;l(R);return}!/^[0-9.eE+-]$/.test(N.key)&&!["Backspace","ArrowLeft","ArrowRight","Delete","Tab"].includes(N.key)&&N.preventDefault()}},disabled:i.connected,min:(M=i.value_options)==null?void 0:M.min,max:(w=i.value_options)==null?void 0:w.max})]})},NU=({iostore:e,inputconverter:t})=>sE({iostore:e,inputconverter:t,parser:parseFloat}),PU=({iostore:e,inputconverter:t})=>sE({iostore:e,inputconverter:t,parser:parseInt}),OU=({iostore:e,inputconverter:t})=>{const n=k.useContext(xe),{preview:r}=e.valuestore(),o=e.use(),i=(r==null?void 0:r.value)===void 0,s=k.useRef(null);k.useEffect(()=>{s.current&&(s.current.indeterminate=i)},[s,i]);const a=l=>{var c;let u=l.target.checked;try{u=t[0](l.target.checked)}catch{}(c=n.worker)==null||c.set_io_value({nid:o.node,ioid:o.id,value:u,set_default:o.render_options.set_default})};return b.jsx("input",{ref:s,type:"checkbox",className:"styledcheckbox booleaninput",checked:!!t[1](r==null?void 0:r.value),onChange:a,disabled:o.connected})},aE=({iostore:e,inputconverter:t})=>{const n=k.useContext(xe),{preview:r,full:o}=e.valuestore(),i=e.use(),s=o===void 0?r==null?void 0:r.value:o==null?void 0:o.value,[a,l]=k.useState(t[1](s));k.useEffect(()=>{l(t[1](s))},[s]);const u=f=>{var p;let d=f.target.value;d||(d="<NoValue>");try{d=t[0](d)}catch{}(p=n.worker)==null||p.set_io_value({nid:i.node,ioid:i.id,value:d,set_default:i.render_options.set_default})};let c=i.connected?t[1](s):a;return c==null&&(c=""),b.jsx("input",{className:"nodedatainput styledinput stringinput",value:c,onChange:f=>l(f.target.value),onBlur:u,disabled:i.connected})},RU=({iostore:e})=>{var u;const t=k.useContext(xe),n=e.use(),{preview:r,full:o}=e.valuestore(),i=o===void 0?r==null?void 0:r.value:o.value,s=((u=n.value_options)==null?void 0:u.colorspace)||"hex",a=c=>{var d;let f="<NoValue>";c&&(c[s]?f=c[s]():f=c.hex()),c===null&&(f=null);try{f=f}catch{}(d=t.worker)==null||d.set_io_value({nid:n.node,ioid:n.id,value:f,set_default:n.render_options.set_default})};let l=!1;return typeof n.type!="string"&&"anyOf"in n.type&&n.type.anyOf!==void 0&&(l=n.type.anyOf.some(c=>c==="None")),b.jsx(W8,{onChange:a,inicolordata:i,allow_null:l,inicolorspace:s})},MU=e=>e,DU=e=>parseFloat(e),FU=e=>!!e,jU=e=>e==="null"?null:e,LU=e=>e==="nuinputconvertermber"?DU:e==="boolean"?FU:e==="undefined"?jU:MU,wu=({iostore:e,inputconverter:t,parser:n})=>{var h;const r=e.use(),{preview:o,full:i}=e.valuestore(),s=i===void 0?o==null?void 0:o.value:i.value;let a=((h=r.value_options)==null?void 0:h.options)||[];Array.isArray(a)&&(a={type:"enum",values:a,keys:a.map(y=>y===null?"None":y.toString()),nullable:!1}),a.type!=="enum"&&(a={type:"enum",values:Object.values(a),keys:Object.keys(a),nullable:!1}),a=a,a.nullable&&!a.values.includes(null)&&!a.keys.includes("None")&&(a.values.unshift(null),a.keys.unshift("None"));const l=[];for(let y=0;y<a.values.length;y++){const m=a.values[y]===null||a.values[y]===void 0?"undefined":typeof a.values[y];let x=a.values[y];x===null&&(x="null"),x===void 0&&(x="undefined"),l.push([a.keys[y],x.toString(),m])}const u=k.useContext(xe),c=({value:y,datatype:m})=>{var C;let v=(n||LU(m))(y);try{v=t[0](y)}catch{}(C=u.worker)==null||C.set_io_value({nid:r.node,ioid:r.id,value:v,set_default:r.render_options.set_default})};let f=s;f===null&&(f="null"),f===void 0&&(f="undefined");const d=l.find(y=>y[1]===f.toString());let p;d!==void 0&&(p={value:d[1],label:d[0],datatype:d[2]});const g=l.map(y=>({value:y[1],label:y[0],datatype:y[2]}));return b.jsx(AU,{className:"nodedatainput styleddropdown",options:g,defaultValue:p,onChange:y=>{if(y===null){c({value:"<NoValue>",datatype:"string"});return}c(y)}})},BU={float:NU,int:PU,bool:OU,string:aE,str:aE,color:RU,select:wu,enum:wu,bytes:((e,t=void 0)=>({iostore:n})=>{const{full:r,preview:o}=n.valuestore(),i=r===void 0?o:r,s=(i==null?void 0:i.value)||t;return b.jsx(e,{iostore:n,value:s})})(Jp,"")},zU=({iostore:e,typestring:t})=>{const{InLineRenderer:n}=k.useContext(An),{preview:r,full:o}=e.valuestore();if(t&&n[t])return b.jsx("div",{children:n[t]({iostore:e})});let i=(JSON.stringify(o||r)||"").replace(/\\n/g,`
|
|
865
|
+
`);return i.length>63&&(i=i.slice(0,60)+"..."),b.jsx("div",{children:i})},VU={},nn=(e,t=void 0)=>({iostore:n})=>{const{full:r,preview:o}=n.valuestore(),i=r===void 0?o:r,s=(i==null?void 0:i.value)||t;return b.jsx(e,{iostore:n,value:s})},GU={string:nn(Q_),table:nn(eS),image:nn(q_),svg:nn(K_,""),dict:nn(uu,"{}"),bytes:nn(Jp,"")},$U={},lE=e=>({iostore:t,value:n,preValue:r,onLoaded:o})=>b.jsx(e,{iostore:t,value:n,preValue:r,onLoaded:o}),uE=lE(uu),rn={Inputrenderer:BU,Outputrenderer:VU,HandlePreviewRenderer:$U,DataOverlayRenderer:{},DataPreviewViewRenderer:GU,DataViewRenderer:p8,InLineRenderer:_6,NodeContextExtenders:{},NodeRenderer:{},NodeHooks:{}},HU=(e,t)=>{const n=t.options||{},r=n.overwrite===void 0?!0:n.overwrite;switch(t.type){case"EXTEND_INPUT_RENDER":return!r&&e.Inputrenderer[t.payload.type]?e:{...e,Inputrenderer:{...e.Inputrenderer,[t.payload.type]:t.payload.component}};case"EXTEND_OUTPUT_RENDER":return!r&&e.Outputrenderer[t.payload.type]?e:{...e,Outputrenderer:{...e.Outputrenderer,[t.payload.type]:t.payload.component}};case"EXTEND_HANDLE_PREVIEW_RENDER":return!r&&e.HandlePreviewRenderer[t.payload.type]?e:{...e,HandlePreviewRenderer:{...e.HandlePreviewRenderer,[t.payload.type]:t.payload.component}};case"EXTEND_DATA_OVERLAY_RENDER":return!r&&e.DataOverlayRenderer[t.payload.type]?e:{...e,DataOverlayRenderer:{...e.DataOverlayRenderer,[t.payload.type]:t.payload.component}};case"EXTEND_DATA_PREVIEW_RENDER":return!r&&e.DataPreviewViewRenderer[t.payload.type]?e:{...e,DataPreviewViewRenderer:{...e.DataPreviewViewRenderer,[t.payload.type]:t.payload.component}};case"EXTEND_DATA_VIEW_RENDER":return!r&&e.DataViewRenderer[t.payload.type]?e:{...e,DataViewRenderer:{...e.DataViewRenderer,[t.payload.type]:t.payload.component}};case"EXTEND_NODE_CONTEXT_EXTENDER":return!r&&e.NodeContextExtenders[t.payload.type]?e:{...e,NodeContextExtenders:{...e.NodeContextExtenders,[t.payload.type]:t.payload.component}};case"EXTEND_NODE_RENDERER":return!r&&e.NodeRenderer[t.payload.type]?e:{...e,NodeRenderer:{...e.NodeRenderer,[t.payload.type]:t.payload.component}};case"EXTEND_NODE_HOOKS":return!r&&e.NodeHooks[t.payload.type]?e:{...e,NodeHooks:{...e.NodeHooks,[t.payload.type]:t.payload.component}};case"EXTEND_FROM_PLUGIN":let o=!1;const i=[[t.payload.plugin.input_renderers||{},e.Inputrenderer],[t.payload.plugin.output_renderers||{},e.Outputrenderer],[t.payload.plugin.handle_preview_renderers||{},e.HandlePreviewRenderer],[t.payload.plugin.data_overlay_renderers||{},e.DataOverlayRenderer],[t.payload.plugin.data_preview_renderers||{},e.DataPreviewViewRenderer],[t.payload.plugin.data_view_renderers||{},e.DataViewRenderer],[t.payload.plugin.node_context_extenders||{},e.NodeContextExtenders],[t.payload.plugin.node_renderers||{},e.NodeRenderer],[t.payload.plugin.node_hooks||{},e.NodeHooks]];for(const[a,l]of i){if(Object.keys(a).length>0){if(r)o=!0;else for(const u in a)if(!l[u]){o=!0;break}}if(o)break}if(!o)return e;for(const[a,l]of i)for(const u in a)(r||!l[u])&&(l[u]=a[u]);return{...e};default:return e}},cE=({children:e,plugins:t,fnrf_zst:n})=>{const[r,o]=T.useReducer(HU,rn),i=(h,y,m)=>{o({type:"EXTEND_INPUT_RENDER",payload:{type:h,component:y},options:m})},s=(h,y,m)=>{o({type:"EXTEND_OUTPUT_RENDER",payload:{type:h,component:y},options:m})},a=(h,y,m)=>{o({type:"EXTEND_HANDLE_PREVIEW_RENDER",payload:{type:h,component:y},options:m})},l=(h,y,m)=>{o({type:"EXTEND_DATA_OVERLAY_RENDER",payload:{type:h,component:y},options:m})},u=(h,y,m)=>{o({type:"EXTEND_DATA_PREVIEW_RENDER",payload:{type:h,component:y},options:m})},c=(h,y,m)=>{o({type:"EXTEND_DATA_VIEW_RENDER",payload:{type:h,component:y},options:m})},f=(h,y,m)=>{o({type:"EXTEND_NODE_CONTEXT_EXTENDER",payload:{type:h,component:y},options:m})},d=(h,y,m)=>{o({type:"EXTEND_NODE_RENDERER",payload:{type:h,component:y},options:m})},p=(h,y,m)=>{o({type:"EXTEND_NODE_HOOKS",payload:{type:h,component:y},options:m})},g=(h,y)=>{o({type:"EXTEND_FROM_PLUGIN",payload:{plugin:h},options:y})};return T.useEffect(()=>{for(const h in t){const y=t[h];if(!y)continue;const m=y.renderpluginfactory;m&&g(m({React:k,fnrf_zst:n,NodeContext:hh}))}},[t]),b.jsx(An.Provider,{value:{Inputrenderer:r.Inputrenderer,Outputrenderer:r.Outputrenderer,HandlePreviewRenderer:r.HandlePreviewRenderer,DataOverlayRenderer:r.DataOverlayRenderer,DataPreviewViewRenderer:r.DataPreviewViewRenderer,DataViewRenderer:r.DataViewRenderer,InLineRenderer:r.InLineRenderer,NodeContextExtenders:r.NodeContextExtenders,NodeRenderer:r.NodeRenderer,NodeHooks:r.NodeHooks,extendInputRenderMapping:i,extendOutputRenderMapping:s,extendHandlePreviewRenderMapping:a,extendDataOverlayRenderMapping:l,extendDataPreviewRenderMapping:u,extendDataViewRenderMapping:c,extendNodeContextExtender:f,extendNodeRenderer:d,extendNodeHooks:p,extendFromPlugin:g},children:e})},An=T.createContext({Inputrenderer:rn.Inputrenderer,Outputrenderer:rn.Outputrenderer,HandlePreviewRenderer:rn.HandlePreviewRenderer,DataOverlayRenderer:rn.DataOverlayRenderer,DataPreviewViewRenderer:rn.DataPreviewViewRenderer,DataViewRenderer:rn.DataViewRenderer,InLineRenderer:rn.InLineRenderer,NodeContextExtenders:rn.NodeContextExtenders,NodeRenderer:rn.NodeRenderer,NodeHooks:rn.NodeHooks,extendInputRenderMapping:(e,t,n)=>{},extendOutputRenderMapping:(e,t,n)=>{},extendHandlePreviewRenderMapping:(e,t,n)=>{},extendDataOverlayRenderMapping:(e,t,n)=>{},extendDataPreviewRenderMapping:(e,t,n)=>{},extendDataViewRenderMapping:(e,t,n)=>{},extendNodeContextExtender:(e,t,n)=>{},extendNodeRenderer:(e,t,n)=>{},extendNodeHooks:(e,t,n)=>{},extendFromPlugin:(e,t)=>{}}),fE=e=>{const t=T.useContext(xe),{DataOverlayRenderer:n,DataViewRenderer:r}=T.useContext(An);if(e===void 0)return;const o=t.render_options(),[i]=Ur(e.type,o.typemap||{});return i?n[i]?n[i]:r[i]?lE(r[i]):uE:uE},WU=e=>{const n=T.useContext(xe).render_options(),{HandlePreviewRenderer:r,DataPreviewViewRenderer:o}=T.useContext(An),i=fE(e);let s;if(e){const[a]=Ur(e.type,n.typemap||{});a?r[a]?s=r[a]:o[a]?s=o[a]:s=nn(cu):s=nn(cu)}return[s,i]},dE=({iostore:e,Component:t})=>{const[n,r]=k.useState(void 0),[o,i]=k.useState(void 0),{full:s}=e.valuestore();k.useEffect(()=>{s===void 0?e.getState().try_get_full_value():i(s.value)},[s]);const a=()=>{o!==void 0&&r(o)};return b.jsx(t,{iostore:e,value:o,preValue:n,onLoaded:a})},pE=({iostore:e,Component:t})=>b.jsx(t,{iostore:e}),Ur=(e,t)=>{if(typeof e=="string")return e in t?[t[e],e]:[e,e];if("allOf"in e&&e.allOf!==void 0)return[void 0,void 0];if("anyOf"in e&&e.anyOf!==void 0){const n=e.anyOf.map(r=>Ur(r,t));for(const r of n)switch(r[0]){case"bool":return["bool",r[1]];case"enum":return["enum",r[1]];case"float":return["float",r[1]];case"int":return["int",r[1]];case"string":return["string",r[1]];case"str":return["string",r[1]]}return[void 0,void 0]}return!("type"in e)||e.type===void 0?[void 0,void 0]:e.type==="enum"?["enum","enum"]:[void 0,void 0]},ph=({iostore:e,typestring:t,preview:n,...r})=>{const[o,i]=T.useState(!1),[s,a]=T.useState(!1),l=k.useContext(xe),u=e.use(),[c,f]=WU(u),d=l.local_state(()=>l.reactflowRef);return b.jsxs(uC,{open:o||s,onOpenChange:a,children:[b.jsx(cC,{asChild:!0,children:b.jsx(Ii,{id:u.id,"data-type":t,...r})}),b.jsx(fC,{container:d,children:b.jsxs(dC,{className:"iotooltipcontent",sideOffset:5,children:[b.jsxs("div",{className:"iotooltip_container",children:[b.jsxs("div",{className:"iotooltip_header",children:[o?b.jsx(JD,{onClick:()=>i(!1)}):b.jsx(ZD,{onClick:()=>i(!0)}),f&&b.jsx(Ao,{title:u.full_id,trigger:b.jsx(Ev,{}),onOpenChange:p=>{p&&u.try_get_full_value&&u.try_get_full_value(),i(p)},children:b.jsx(dE,{Component:f,iostore:e})})]}),c?b.jsx(pE,{Component:c,iostore:e}):`no preview available for "${t}"`]}),b.jsx(C6,{className:"iotooltipcontentarrow"})]})})]})},Cu={"":[e=>e,e=>e],str_to_json:[e=>JSON.parse(e),e=>typeof e=="string"?e:JSON.stringify(e)],str_to_list:[e=>{try{const t=JSON.parse(e);return Array.isArray(t)?t:[t]}catch{try{return JSON.parse("["+e+"]")}catch{}}throw new Error("Invalid list")},e=>JSON.stringify(e)]},XU=({iostore:e})=>{var u,c;const n=T.useContext(xe).render_options(),r=e.use(),[o,i]=Ur(r.render_options.type,n.typemap||{}),{Inputrenderer:s}=T.useContext(An),a=o?(u=r.value_options)!=null&&u.options?wu:s[o]:void 0,l=Cu[(i&&((c=n.inputconverter)==null?void 0:c[i]))??""]||Cu[""];return r.hidden?null:b.jsxs("div",{className:"nodeinput","data-type":o,children:[b.jsx(ph,{iostore:e,typestring:o,position:ae.Left,type:"target"}),a&&b.jsx("div",{className:"iovaluefield nodrag","data-type":o,children:b.jsx(a,{iostore:e,inputconverter:l})}),b.jsx("div",{className:"ioname",children:r.name}),b.jsx(ph,{iostore:e,typestring:o,position:ae.Right,type:"source"})]})},YU=({iostore:e})=>{const n=T.useContext(xe).render_options(),r=e.use(),[o]=Ur(r.type,n.typemap||{}),{Outputrenderer:i}=T.useContext(An),s=o?i[o]:void 0;return r.hidden?null:b.jsxs("div",{className:"nodeoutput","data-type":o,children:[b.jsx(ph,{iostore:e,typestring:o,position:ae.Right,type:"source"}),b.jsx("div",{className:"ioname",children:r.name}),s?b.jsx("div",{className:"iovaluefield nodrag",children:b.jsx(s,{iostore:e})}):b.jsx("div",{className:"iovaluefield",children:b.jsx(zU,{iostore:e,typestring:o})})]})},UU=e=>{const t=T.useContext(xe),n=fE(e),{DataPreviewViewRenderer:r,DataViewRenderer:o}=T.useContext(An),i=t.render_options();if(e===void 0)return[void 0,n];const[s]=Ur(e.type,i.typemap||{});return s?r[s]?[r[s],n]:o[s]?[nn(o[s]),n]:[nn(cu),n]:[nn(cu),n]};function ZU(e,t,n={}){const{maxFontSize:r=100,minFontSize:o=6,decrementFactor:i=.9}=n;if(!e||!t)return;if(i>=1||i<=0)throw new Error("decrementFactor must be between 0 and 1");const s=e.getBoundingClientRect(),a=s.width,l=s.height;let u=r;t.style.whiteSpace="nowrap",t.style.display="inline-block",t.style.fontSize=u+"px";let c=t.getBoundingClientRect();for(;(c.width>a||c.height>l)&&u>o;)u*=i,t.style.fontSize=u+"px",c=t.getBoundingClientRect()}function JU(e={n:0,elapsed:0,ascii:!1,unit:"it",unit_scale:!1,unit_divisor:1e3}){let t=e.total??null;const{n,unit_scale:r,elapsed:o,unit:i,unit_divisor:s,prefix:a="",rate:l=void 0,postfix:u=null,initial:c=0}=e;t!==null&&n>=t+.5&&(t=null);let f=n,d=t,p=l;r&&r!==!0&&r!==1&&(t!==null&&(d=t*r),f=n*r,l!==void 0&&(p=l*r));const g=hE(o);p===void 0&&o>0&&(p=(f-c)/o);const h=p?1/p:void 0,[y,m]=p?_u(p,s):[void 0,""],[x,v]=h?_u(h,1e3):[void 0,""],C=(y||"?")+`${m}${i}/s`,S=x?`${x}${v}s/`+i:"?",E=h&&h>1?S:C,I=r?_u(f,s).join(""):f.toString(),O=r&&d!==null?_u(d,s).join(""):(d==null?void 0:d.toString())??"?",M=p&&d!==null?(d-f)/p:0,w=p?hE(M):"?",N=a?`${a}: `:"";if(t!==null){const R=f/t*100,L=` ${I}/${O} [${g} < ${w}, ${E}${u??""}]`;return`${N}${R.toFixed(0)}%${L}`}return`${N}${I}${i} [${g}, ${E}${u??""}]`}function hE(e){const t=Math.floor(e/60),n=Math.floor(e%60);return`${t}:${n.toString().padStart(2,"0")}`}function _u(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 qU=({state:e,className:t="reacttqdm",...n})=>{const r=T.useRef(null),o=T.useRef(null);T.useEffect(()=>{const s=()=>{!r.current||!o.current||ZU(r.current,o.current,{maxFontSize:12,decrementFactor:.9})};return s(),window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s)}},[e]);const i=e.total?e.n/e.total*100:0;return b.jsx("div",{ref:r,className:t,...n,children:b.jsxs("div",{style:{position:"relative",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:[b.jsx("div",{className:t+"-bar",style:{position:"absolute",width:"100%",height:"100%",overflow:"hidden"},children:b.jsx("div",{className:t+"-progress",style:{width:`${i}%`,height:"100%"}})}),b.jsx("div",{className:t+"-text",ref:o,children:JU(e)})]})})},KU=k.memo(({node_data:e})=>{const t=T.useContext(xe),n=()=>{t.on_node_action({type:"trigger",from_remote:!1,id:e.id})};return b.jsxs("div",{className:"nodeheader",title:e.description||e.node_name,children:[b.jsxs("div",{className:"nodeheader_element",children:[b.jsx(KD,{fontSize:"inherit",className:"triggerbutton",onClick:n}),b.jsx(qD,{fontSize:"inherit",onClick:async()=>{var r;console.log("nodestatus",await((r=t.worker)==null?void 0:r.get_node_status(e.id)))}})]}),b.jsx("div",{className:"nodeheader_element nodeheader_title",children:b.jsx("div",{className:"nodeheader_title_text",children:e.node_name})}),b.jsx("div",{className:"nodeheader_element",children:b.jsx(Bi,{fontSize:"inherit"})})]})}),QU=({iostore:e,node_data:t})=>{var i,s;const n=e.use(),[r,o]=UU(n);return b.jsx("div",{className:"nodrag nodedatabody","data-src":((s=(i=t.render_options)==null?void 0:i.data)==null?void 0:s.src)||"",children:r&&n&&b.jsx(Ao,{title:n.full_id,trigger:b.jsx("div",{className:"nodedatabutton",children:b.jsx(pE,{Component:r,iostore:e})}),onOpenChange:a=>{a&&n!=null&&n.try_get_full_value&&(n==null||n.try_get_full_value())},children:o&&b.jsx(dE,{Component:o,iostore:e})})})},eZ=k.memo(({node_data:e})=>{var n,r,o,i;const t=(r=(n=e.render_options)==null?void 0:n.data)!=null&&r.src?e.io[(i=(o=e.render_options)==null?void 0:o.data)==null?void 0:i.src]:void 0;return b.jsxs("div",{className:"nodebody",children:[e.outputs.map(s=>b.jsx(YU,{iostore:e.io[s]},s)),t&&b.jsx(QU,{node_data:e,iostore:t}),e.inputs.map(s=>b.jsx(XU,{iostore:e.io[s]},s))]})}),gE=k.memo(({node_data:e})=>{const[t,n]=T.useState(e.name);T.useEffect(()=>{n(e.name)},[e]);const r=T.useContext(xe),o=s=>{n(s.target.value)},i=s=>{const a=s.target.value;r.on_node_action({type:"update",from_remote:!1,id:e.id,node:{name:a}})};return b.jsx("input",{className:"nodename_input",value:t,onChange:o,onBlur:i})}),tZ=({node_data:e})=>{if(!e.progress)return null;const t=e.progress();return b.jsx(qU,{state:t,className:"nodeprogress"})},nZ=k.memo(({node_data:e})=>b.jsxs("div",{className:"nodefooter",children:[e.error&&b.jsx("div",{className:"nodeerror",children:e.error}),b.jsx(tZ,{node_data:e})]})),rZ=e=>{const t=T.useContext(xe),[n,r]=T.useState(!1),o=e.in_trigger(),i=T.useContext(An),s=i.NodeContextExtenders[e.node_id],a=k.useMemo(()=>(s==null?void 0:s({node_data:e}))||{},[s,e]),l=k.useMemo(()=>({...a,node_data:e}),[a,e]),u=i.NodeHooks[e.node_id];for(const c of u||[])c({nodecontext:l});return T.useEffect(()=>{var c;(c=t.worker)==null||c.call_hooks("node_mounted",e.id)},[t.worker,e.id]),T.useEffect(()=>{let c;return o&&!n?r(!0):n&&(c=setTimeout(()=>r(!1),200)),()=>clearTimeout(c)},[o,n]),{visualTrigger:n,nodecontext:l}},hh=k.createContext(null),oZ=({data:e})=>{const t=e.nodestore.use(),n=t.properties["frontend:collapsed"]||!1,{visualTrigger:r,nodecontext:o}=rZ(t);return b.jsx(hh.Provider,{value:o,children:b.jsxs("div",{className:"innernode"+(r?" intrigger":"")+(t.error?" error":""),children:[b.jsx(KU,{node_data:t}),b.jsx(gE,{node_data:t}),n?null:b.jsx(eZ,{node_data:t}),b.jsx(nZ,{node_data:t})]})})},iZ=({iostore:e})=>{var u,c;const n=k.useContext(xe).render_options(),r=e.use(),[o,i]=Ur(r.render_options.type,n.typemap||{}),{Inputrenderer:s}=k.useContext(An),a=o?(u=r.value_options)!=null&&u.options?wu:s[o]:void 0,l=Cu[(i&&((c=n.inputconverter)==null?void 0:c[i]))??""]||Cu[""];return b.jsxs("div",{className:"nodesettings_component",children:[b.jsx("div",{children:r.name}),a&&b.jsx(a,{iostore:e,inputconverter:l}),b.jsx("div",{children:b.jsxs("label",{children:["hidden:",b.jsx("input",{className:"styledcheckbox",type:"checkbox",disabled:r.connected,onChange:f=>{var d;(d=r.set_hidden)==null||d.call(r,f.target.checked)},checked:r.hidden})]})})]})},sZ=({iostore:e})=>{const t=e.use();return b.jsxs("div",{className:"nodesettings_component",children:[b.jsx("div",{children:t.name}),b.jsx("div",{children:b.jsxs("label",{children:["hidden:",b.jsx("input",{className:"styledcheckbox",type:"checkbox",disabled:t.connected,onChange:n=>{var r;(r=t.set_hidden)==null||r.call(t,n.target.checked)},checked:t.hidden})]})})]})},aZ=({nodestore:e})=>{const t=e.use();return b.jsxs("div",{className:"nodesettings_content",children:[b.jsx("div",{className:"nodesettings_section",children:b.jsxs("div",{className:"nodesettings_component",children:[b.jsx("div",{children:"Name"}),b.jsx("div",{children:b.jsx(gE,{node_data:t})})]})}),b.jsxs("div",{className:"nodesettings_section",children:[b.jsx("div",{children:"Inputs"}),t.inputs.map(n=>b.jsx(iZ,{iostore:t.io[n]},n))]}),b.jsxs("div",{className:"nodesettings_section",children:[b.jsx("div",{children:"Outputs"}),t.outputs.map(n=>b.jsx(sZ,{iostore:t.io[n]},n))]})]})},lZ=()=>{const e=k.useContext(xe),t=e.local_state(r=>r.selected_nodes);if(t.length===0)return b.jsx("div",{children:"Node Settings"});if(t.length>1)return b.jsx("div",{children:"Multiple Nodes Selected"});const n=e.nodespace.get_node(t[0]);return n?b.jsx(aZ,{nodestore:n}):b.jsx("div",{children:"Node not found"})},uZ=()=>{const e=k.useContext(xe),t=e.local_settings(o=>o.view_settings.expand_node_props),n=e.local_settings(o=>o.update_view_settings),r=o=>{n({expand_node_props:o})};return b.jsx(e1,{maxSize:"300px",direction:"left",expanded:t===void 0?!1:t,containerClassName:"pos-right pos-top bg1 h-12",className:"nodesettings_content",onExpandChange:r,children:b.jsx(lZ,{})})},cZ=({id:e,sourceX:t,sourceY:n,targetX:r,targetY:o,sourcePosition:i,targetPosition:s,data:a,...l})=>{const[u]=tc({sourceX:t,sourceY:n,sourcePosition:i,targetX:r,targetY:o,targetPosition:s});return b.jsx(b.Fragment,{children:b.jsx(ki,{id:e,path:u,...l})})},fZ=e=>({nodes:e.nodes,edges:e.edges,onNodesChange:e.onNodesChange,onEdgesChange:e.onEdgesChange,onConnect:e.onConnect}),dZ={default:oZ},pZ={default:cZ},hZ=()=>{const e=Ei(),t=T.useContext(xe);return t.rf_instance=e,b.jsx(b.Fragment,{})},gZ=()=>{const e=T.useContext(xe),t=fo("Delete"),n=bP(),r=mP();if(t){for(const o of n)if(o.selected){if(!e.worker)return b.jsx(b.Fragment,{});if(!o.source||!o.target)return b.jsx(b.Fragment,{});if(!o.sourceHandle||!o.targetHandle)return b.jsx(b.Fragment,{});e.worker.remove_edge({src_nid:o.source,src_ioid:o.sourceHandle,trg_nid:o.target,trg_ioid:o.targetHandle})}for(const o of r)if(o.selected){if(!e.worker)return b.jsx(b.Fragment,{});e.worker.remove_node(o.id)}}return b.jsx(b.Fragment,{})},mZ=({id:e,top:t,left:n,right:r,bottom:o,...i})=>{const{getNode:s,setNodes:a,addNodes:l,setEdges:u}=Ei(),c=T.useContext(xe),f=T.useCallback(()=>{const h=s(e);if(!h)return;const y={x:h.position.x+50,y:h.position.y+50};l({...h,id:`${h.id}-copy`,position:y})},[e,s,l]),d=T.useCallback(()=>{c.on_node_action({type:"delete",id:e,from_remote:!1})},[e,a,u]),p=c.nodespace.get_node(e,!1);if(!p)return b.jsx(b.Fragment,{children:" "});const g=p.use();return b.jsxs("div",{style:{top:t,left:n,right:r,bottom:o},className:"context-menu",...i,children:[b.jsx("p",{style:{fontWeight:"bold"},children:b.jsx("small",{children:g.name})}),b.jsx("button",{onClick:f,children:"duplicate"}),b.jsx("button",{onClick:d,children:"delete"})]})},mE=e=>{const t=T.useContext(xe),n=T.useRef(null);T.useEffect(()=>{t.reactflowRef=n.current},[n]);const[r,o]=T.useState(null),i=({nodes:d,edges:p})=>{const g=t.local_state.getState();t.local_state.setState({...g,selected_nodes:d.map(h=>h.id),selected_edges:p.map(h=>h.id)})},s=T.useCallback(()=>o(null),[o]),{nodes:a,edges:l,onNodesChange:u,onEdgesChange:c,onConnect:f}=t.useReactFlowStore(d6(fZ));return b.jsx("div",{className:"reactflowlayer",children:b.jsxs(hP,{nodes:a,edges:l,onNodesChange:u,onEdgesChange:c,onConnect:f,nodeTypes:dZ,edgeTypes:pZ,minZoom:e.minZoom,maxZoom:e.maxZoom,fitView:!0,onSelectionChange:i,ref:n,onPaneClick:s,panOnDrag:!e.static,children:[b.jsx(hZ,{}),b.jsx(gZ,{}),b.jsx(_P,{color:"#888",gap:16,size:1}),e.minimap&&b.jsx(GP,{nodeStrokeWidth:3,pannable:!e.static,zoomable:!e.static,zoomStep:3}),r&&b.jsx(mZ,{onClick:s,...r})]})})},Su=T.createContext(void 0),Zr=T.forwardRef((e,t)=>{const{asChild:n,children:r,className:o,style:i,...s}=e,[a,l]=T.useState(!1),u=T.useRef(null),[c,f]=T.useState(null),[d,p]=T.useState({}),g=e.htime||300,h=e.vtime||300,y=e.hdelay||0,m=e.vdelay||200;T.useImperativeHandle(t,()=>u.current,[]);const x=async()=>{if(!u.current)return;u.current.style.transition="none",u.current.style.position="",u.current.style.top="",u.current.style.left="",u.current.style.width="",u.current.style.height="";const I=u.current.getBoundingClientRect();f([I.left,I.top,I.width,I.height]),u.current.style.transition="none",p({position:"absolute",top:`${I.top}px`,left:`${I.left}px`,width:`${I.width}px`,height:`${I.height}px`}),p(R=>({...R,transitionProperty:"width, left, height, top",transitionDuration:`${g}ms, ${g}ms, ${h}ms, ${h}ms`})),l(!0);const O=new Promise(R=>{setTimeout(()=>{p(L=>({...L,left:"0px",width:"100vw"})),R()},y)}),M=new Promise(R=>{setTimeout(()=>{p(L=>({...L,top:"0px",height:"100vh"})),R()},m)}),w=Math.max(g+y,h+m),N=new Promise(R=>{setTimeout(()=>{R()},w)});await Promise.all([O,M,N])},v=async()=>{if(!u.current||!c)return;const I={transitionProperty:"width, left, height, top",transitionDuration:`${g}ms, ${g}ms, ${h}ms, ${h}ms`};p(D=>({...D,...I}));const[O,M,w,N]=c,R=new Promise(D=>{setTimeout(()=>{p(z=>({...z,left:`${O}px`,width:`${w}px`})),D()},m)}),L=new Promise(D=>{setTimeout(()=>{p(z=>({...z,top:`${M}px`,height:`${N}px`})),D()},y)}),A=Math.max(g+y,h+m),j=new Promise(D=>{setTimeout(()=>{D()},A)});await Promise.all([R,L,j]),u.current.style.transition="",p({}),l(!1)},C=async()=>{u.current&&(a?await v():await x())};let S;if(n&&k.isValidElement(r)){const I=r,O=[I.props.className,o,"smooth-expand",a?"smooth-expand-expanded":""].filter(Boolean).join(" "),M={...I.props.style,...i,...d};S=k.cloneElement(I,{ref:u,className:O,style:M,...s})}else S=b.jsx("div",{ref:u,...s,className:`smooth-expand ${a?"smooth-expand-expanded":""} ${o||""}`,style:{...i,...d},children:r});const E=b.jsx(Su.Provider,{value:{isExpanded:a,toggleExpand:C},children:S});return a?ku.createPortal(E,document.body):E});Zr.Trigger=function({children:e}){const t=T.useContext(Su);if(!t)throw new Error("SmoothExpandComponent.Trigger must be used within a SmoothExpandComponent");return b.jsx("div",{style:{cursor:"pointer"},onClick:t.toggleExpand,children:e})},Zr.Expanded=function({children:e}){const t=T.useContext(Su);if(!t)throw new Error("SmoothExpandComponent.Expanded must be used within a SmoothExpandComponent");return t.isExpanded?b.jsx(b.Fragment,{children:e}):null},Zr.Collapsed=function({children:e}){const t=T.useContext(Su);if(!t)throw new Error("SmoothExpandComponent.Collapsed must be used within a SmoothExpandComponent");return t.isExpanded?null:b.jsx(b.Fragment,{children:e})};const Eu=k.createContext(void 0),Cr=T.forwardRef((e,t)=>{const{asChild:n,children:r,className:o,style:i,...s}=e,a=T.useRef(null);T.useImperativeHandle(t,()=>a.current,[]);const[l,u]=T.useState(!1),c=T.useCallback(async()=>{try{const d=a.current;if(!d)return;if(!l)d.requestFullscreen?await d.requestFullscreen():d.mozRequestFullScreen?await d.mozRequestFullScreen():d.webkitRequestFullscreen?await d.webkitRequestFullscreen():d.msRequestFullscreen&&await d.msRequestFullscreen(),u(!0);else{const p=document;p.exitFullscreen?await p.exitFullscreen():p.mozCancelFullScreen?await p.mozCancelFullScreen():p.webkitExitFullscreen?await p.webkitExitFullscreen():p.msExitFullscreen&&await p.msExitFullscreen(),u(!1)}}catch(d){console.error("Error toggling fullscreen",d)}},[l]);T.useEffect(()=>{const d=()=>{const p=document.fullscreenElement;u(!!p)};return document.addEventListener("fullscreenchange",d),document.addEventListener("webkitfullscreenchange",d),document.addEventListener("mozfullscreenchange",d),document.addEventListener("MSFullscreenChange",d),()=>{document.removeEventListener("fullscreenchange",d),document.removeEventListener("webkitfullscreenchange",d),document.removeEventListener("mozfullscreenchange",d),document.removeEventListener("MSFullscreenChange",d)}},[]);let f;if(n&&k.isValidElement(r)){const d=r,p=[d.props.className,o].filter(Boolean).join(" "),g={...d.props.style,...i};f=k.cloneElement(d,{ref:a,className:p,style:g,...s})}else f=b.jsx("div",{ref:a,...s,className:o,style:i,children:r});return b.jsx(Eu.Provider,{value:{isFullScreen:l,toggleFullscreen:c},children:f})});Cr.Trigger=function({children:e}){const t=k.useContext(Eu);if(!t)throw new Error("FullScreenComponent.Trigger must be used within a FullScreenComponent");return b.jsx("div",{style:{cursor:"pointer"},onClick:t.toggleFullscreen,children:e})},Cr.InFullScreen=function({children:e}){const t=k.useContext(Eu);if(!t)throw new Error("FullScreenComponent.Expanded must be used within a FullScreenComponent");return t.isFullScreen?b.jsx(b.Fragment,{children:e}):null},Cr.OutFullScreen=function({children:e}){const t=k.useContext(Eu);if(!t)throw new Error("FullScreenComponent.Collapsed must be used within a FullScreenComponent");return t.isFullScreen?null:b.jsx(b.Fragment,{children:e})};const yZ=({fnrf_zst:e,header:t,flow:n,library:r})=>{const[o,i]=T.useState(e.options.worker),s=k.useRef(null);e.workermanager&&(e.workermanager.on_setWorker=i),e.set_worker(o),k.useEffect(()=>{e.auto_progress()},[]),k.useEffect(()=>{e.local_state.setState({funcnodescontainerRef:s.current})},[s]);const a=e.plugins();return b.jsx(cE,{plugins:a,fnrf_zst:e,children:b.jsx(xe.Provider,{value:e,children:b.jsx(Zr,{asChild:!0,children:b.jsx(Cr,{asChild:!0,children:b.jsx(Tj,{style:{height:"100%",width:"100%",display:"flex",flexDirection:"column",flex:1},children:b.jsxs("div",{ref:s,className:"funcnodesreactflowcontainer funcnodescontainer",children:[t.show&&b.jsx(Lj,{...t}),b.jsxs("div",{className:"funcnodesreactflowbody",children:[b.jsx(mE,{...n}),o&&r.show&&b.jsx(u6,{}),o&&n.showNodeSettings&&b.jsx(uZ,{})]}),b.jsxs("div",{className:"funcnodesflaotingmenu",children:[b.jsx(Cr.OutFullScreen,{children:n.allowExpand&&b.jsxs(Zr.Trigger,{children:[b.jsx(Zr.Expanded,{children:b.jsx(YD,{size:"xl",style:{padding:"4px"}})}),b.jsx(Zr.Collapsed,{children:b.jsx(UD,{size:"xl",style:{padding:"4px"}})})]})}),n.allowFullScreen&&b.jsxs(Cr.Trigger,{children:[b.jsx(Cr.OutFullScreen,{children:b.jsx(Ev,{size:"xl",style:{padding:"4px"}})}),b.jsx(Cr.InFullScreen,{children:b.jsx(XD,{size:"xl",style:{padding:"4px"}})})]})]})]})})})})})})},gh={};window.fnrf_zst===void 0&&(window.fnrf_zst=gh);const yE={id:"",debug:!1,useWorkerManager:!0,show_library:!0,header:{show:!0,showmenu:!0},flow:{minimap:!0,static:!1,minZoom:.1,maxZoom:5,allowFullScreen:!0,allowExpand:!0,showNodeSettings:!0},library:{show:!0}},xe=T.createContext(bc(yE)),bE=e=>{let t=oi(e,{...yE,id:cy()}).new_obj;if(!t.useWorkerManager&&t.worker===void 0)return b.jsx("div",{children:"Error: If you don't use a worker manager, you must provide a default worker."});if(e.useWorkerManager&&e.workermanager_url===void 0)return b.jsx("div",{children:"Error: If you use a worker manager, you must provide a worker manager url."});let n=gh[t.id];n===void 0&&(n=bc(t),gh[t.id]=n),n.options.debug=t.debug;const[r,o]=k.useState(t);return k.useEffect(()=>{const i=[];if(r.worker===void 0&&r.worker_url!==void 0){r.useWorkerManager=!1;const s=new Oc({url:r.worker_url,uuid:r.id,on_sync_complete:r.on_sync_complete});r.worker=s,i.push(()=>{s.disconnect()})}if(r.fnw_url!==void 0){if(r.worker===void 0)throw new Error("defining fnw_url requires a worker to be defined");const s=DR(r.fnw_url),a=r.worker.on_sync_complete,l=async u=>{const c=await s;u.on_sync_complete=a,await u.update_from_export(c)};r.worker.on_sync_complete=l}if(r.worker!==void 0&&r.worker.set_zustand(n),t.useWorkerManager){const s=new kR(t.workermanager_url,n);n.workermanager=s,i.push(()=>{s.remove()})}return o({...r}),r.on_ready&&typeof r.on_ready=="function"&&r.on_ready({fnrf_zst:n}),()=>{for(const s of i)s()}},[]),b.jsx(yZ,{fnrf_zst:n,header:r.header,library:r.library,flow:r.flow})},bZ={set_io_value:({nid:e,ioid:t,value:n,set_default:r=!1})=>{var i;(i=T.useContext(xe).worker)==null||i.set_io_value({nid:e,ioid:t,value:n,set_default:r})}},vZ=e=>(new I0("FuncNodes",e.debug?"debug":"info").debug("Initalizing FuncNodes with props:",e),b.jsx("div",{className:"FuncnodesApp",children:b.jsx(bE,{...e})}));Le.FuncNodes=vZ,Le.FuncNodesContext=xe,Le.FuncNodesReactFlowZustand=bc,Le.FuncNodesWorker=fy,Le.FuncnodesReactFlow=bE,Le.NodeContext=hh,Le.ReactFlowLayer=mE,Le.RenderMappingContext=An,Le.RenderMappingProvider=cE,Le.WebSocketWorker=Oc,Le.deep_update=oi,Le.helperfunctions=bZ,Object.defineProperty(Le,Symbol.toStringTag,{value:"Module"})});
|