From 1248b03ef120c5079a2bc334749de749b376b6c4 Mon Sep 17 00:00:00 2001 From: CopyDemon Date: Wed, 1 May 2024 12:51:59 -0700 Subject: [PATCH] react run build --- .../fv/static/assets/allPaths-01c9bf3a.js | 1 + .../fv/static/assets/allPaths-0bc9c7ab.js | 1 + .../fv/static/assets/allPaths-2c6dee0e.js | 1 + .../fv/static/assets/allPaths-54284cc9.js | 1 + .../fv/static/assets/allPaths-73e45bb5.js | 1 + .../fv/static/assets/allPaths-7c6e9f54.js | 1 + .../fv/static/assets/allPaths-c26c5bff.js | 1 + .../static/assets/allPathsLoader-398c3766.js | 1 + .../static/assets/allPathsLoader-405ce845.js | 1 + .../static/assets/allPathsLoader-5f2f8818.js | 1 + .../static/assets/allPathsLoader-88810379.js | 1 + .../static/assets/allPathsLoader-bea5d750.js | 1 + .../static/assets/allPathsLoader-d2e2760d.js | 1 + .../static/assets/allPathsLoader-dab2b8d3.js | 1 + idaes_ui/fv/static/assets/index-056ff5da.js | 854 ++++++++++++++++++ idaes_ui/fv/static/assets/index-1868e2ad.js | 854 ++++++++++++++++++ idaes_ui/fv/static/assets/index-3f372414.js | 854 ++++++++++++++++++ idaes_ui/fv/static/assets/index-65821143.js | 854 ++++++++++++++++++ idaes_ui/fv/static/assets/index-7034b54b.js | 854 ++++++++++++++++++ idaes_ui/fv/static/assets/index-c6225f50.js | 854 ++++++++++++++++++ idaes_ui/fv/static/assets/index-e9678d26.js | 854 ++++++++++++++++++ .../assets/splitPathsBySizeLoader-03cadb62.js | 1 + .../assets/splitPathsBySizeLoader-1e21a819.js | 1 + .../assets/splitPathsBySizeLoader-25ffe49f.js | 1 + .../assets/splitPathsBySizeLoader-2ead7e8a.js | 1 + .../assets/splitPathsBySizeLoader-38b148c8.js | 1 + .../assets/splitPathsBySizeLoader-9e913c89.js | 1 + .../assets/splitPathsBySizeLoader-bc96e91d.js | 1 + idaes_ui/fv/static/index.html | 2 +- 29 files changed, 6000 insertions(+), 1 deletion(-) create mode 100644 idaes_ui/fv/static/assets/allPaths-01c9bf3a.js create mode 100644 idaes_ui/fv/static/assets/allPaths-0bc9c7ab.js create mode 100644 idaes_ui/fv/static/assets/allPaths-2c6dee0e.js create mode 100644 idaes_ui/fv/static/assets/allPaths-54284cc9.js create mode 100644 idaes_ui/fv/static/assets/allPaths-73e45bb5.js create mode 100644 idaes_ui/fv/static/assets/allPaths-7c6e9f54.js create mode 100644 idaes_ui/fv/static/assets/allPaths-c26c5bff.js create mode 100644 idaes_ui/fv/static/assets/allPathsLoader-398c3766.js create mode 100644 idaes_ui/fv/static/assets/allPathsLoader-405ce845.js create mode 100644 idaes_ui/fv/static/assets/allPathsLoader-5f2f8818.js create mode 100644 idaes_ui/fv/static/assets/allPathsLoader-88810379.js create mode 100644 idaes_ui/fv/static/assets/allPathsLoader-bea5d750.js create mode 100644 idaes_ui/fv/static/assets/allPathsLoader-d2e2760d.js create mode 100644 idaes_ui/fv/static/assets/allPathsLoader-dab2b8d3.js create mode 100644 idaes_ui/fv/static/assets/index-056ff5da.js create mode 100644 idaes_ui/fv/static/assets/index-1868e2ad.js create mode 100644 idaes_ui/fv/static/assets/index-3f372414.js create mode 100644 idaes_ui/fv/static/assets/index-65821143.js create mode 100644 idaes_ui/fv/static/assets/index-7034b54b.js create mode 100644 idaes_ui/fv/static/assets/index-c6225f50.js create mode 100644 idaes_ui/fv/static/assets/index-e9678d26.js create mode 100644 idaes_ui/fv/static/assets/splitPathsBySizeLoader-03cadb62.js create mode 100644 idaes_ui/fv/static/assets/splitPathsBySizeLoader-1e21a819.js create mode 100644 idaes_ui/fv/static/assets/splitPathsBySizeLoader-25ffe49f.js create mode 100644 idaes_ui/fv/static/assets/splitPathsBySizeLoader-2ead7e8a.js create mode 100644 idaes_ui/fv/static/assets/splitPathsBySizeLoader-38b148c8.js create mode 100644 idaes_ui/fv/static/assets/splitPathsBySizeLoader-9e913c89.js create mode 100644 idaes_ui/fv/static/assets/splitPathsBySizeLoader-bc96e91d.js diff --git a/idaes_ui/fv/static/assets/allPaths-01c9bf3a.js b/idaes_ui/fv/static/assets/allPaths-01c9bf3a.js new file mode 100644 index 00000000..4845132a --- /dev/null +++ b/idaes_ui/fv/static/assets/allPaths-01c9bf3a.js @@ -0,0 +1 @@ +import{I as n}from"./index-0aa86537.js";import{I as e}from"./index-4387c2ca.js";import{p as r,I as s}from"./index-7034b54b.js";function I(o,t){var a=r(o);return t===s.STANDARD?n[a]:e[a]}function p(o){return r(o)}export{n as IconSvgPaths16,e as IconSvgPaths20,I as getIconPaths,p as iconNameToPathsRecordKey}; diff --git a/idaes_ui/fv/static/assets/allPaths-0bc9c7ab.js b/idaes_ui/fv/static/assets/allPaths-0bc9c7ab.js new file mode 100644 index 00000000..82e2bb87 --- /dev/null +++ b/idaes_ui/fv/static/assets/allPaths-0bc9c7ab.js @@ -0,0 +1 @@ +import{I as n}from"./index-0aa86537.js";import{I as e}from"./index-4387c2ca.js";import{p as r,I as s}from"./index-056ff5da.js";function I(o,t){var a=r(o);return t===s.STANDARD?n[a]:e[a]}function p(o){return r(o)}export{n as IconSvgPaths16,e as IconSvgPaths20,I as getIconPaths,p as iconNameToPathsRecordKey}; diff --git a/idaes_ui/fv/static/assets/allPaths-2c6dee0e.js b/idaes_ui/fv/static/assets/allPaths-2c6dee0e.js new file mode 100644 index 00000000..2e3eab95 --- /dev/null +++ b/idaes_ui/fv/static/assets/allPaths-2c6dee0e.js @@ -0,0 +1 @@ +import{I as n}from"./index-0aa86537.js";import{I as e}from"./index-4387c2ca.js";import{p as r,I as s}from"./index-e9678d26.js";function I(o,t){var a=r(o);return t===s.STANDARD?n[a]:e[a]}function p(o){return r(o)}export{n as IconSvgPaths16,e as IconSvgPaths20,I as getIconPaths,p as iconNameToPathsRecordKey}; diff --git a/idaes_ui/fv/static/assets/allPaths-54284cc9.js b/idaes_ui/fv/static/assets/allPaths-54284cc9.js new file mode 100644 index 00000000..5caf2ab7 --- /dev/null +++ b/idaes_ui/fv/static/assets/allPaths-54284cc9.js @@ -0,0 +1 @@ +import{I as n}from"./index-0aa86537.js";import{I as e}from"./index-4387c2ca.js";import{p as r,I as s}from"./index-c6225f50.js";function I(o,t){var a=r(o);return t===s.STANDARD?n[a]:e[a]}function p(o){return r(o)}export{n as IconSvgPaths16,e as IconSvgPaths20,I as getIconPaths,p as iconNameToPathsRecordKey}; diff --git a/idaes_ui/fv/static/assets/allPaths-73e45bb5.js b/idaes_ui/fv/static/assets/allPaths-73e45bb5.js new file mode 100644 index 00000000..dddec77f --- /dev/null +++ b/idaes_ui/fv/static/assets/allPaths-73e45bb5.js @@ -0,0 +1 @@ +import{I as n}from"./index-0aa86537.js";import{I as e}from"./index-4387c2ca.js";import{p as r,I as s}from"./index-1868e2ad.js";function I(o,t){var a=r(o);return t===s.STANDARD?n[a]:e[a]}function p(o){return r(o)}export{n as IconSvgPaths16,e as IconSvgPaths20,I as getIconPaths,p as iconNameToPathsRecordKey}; diff --git a/idaes_ui/fv/static/assets/allPaths-7c6e9f54.js b/idaes_ui/fv/static/assets/allPaths-7c6e9f54.js new file mode 100644 index 00000000..93dd5bad --- /dev/null +++ b/idaes_ui/fv/static/assets/allPaths-7c6e9f54.js @@ -0,0 +1 @@ +import{I as n}from"./index-0aa86537.js";import{I as e}from"./index-4387c2ca.js";import{p as r,I as s}from"./index-65821143.js";function I(o,t){var a=r(o);return t===s.STANDARD?n[a]:e[a]}function p(o){return r(o)}export{n as IconSvgPaths16,e as IconSvgPaths20,I as getIconPaths,p as iconNameToPathsRecordKey}; diff --git a/idaes_ui/fv/static/assets/allPaths-c26c5bff.js b/idaes_ui/fv/static/assets/allPaths-c26c5bff.js new file mode 100644 index 00000000..942dc735 --- /dev/null +++ b/idaes_ui/fv/static/assets/allPaths-c26c5bff.js @@ -0,0 +1 @@ +import{I as n}from"./index-0aa86537.js";import{I as e}from"./index-4387c2ca.js";import{p as r,I as s}from"./index-3f372414.js";function I(o,t){var a=r(o);return t===s.STANDARD?n[a]:e[a]}function p(o){return r(o)}export{n as IconSvgPaths16,e as IconSvgPaths20,I as getIconPaths,p as iconNameToPathsRecordKey}; diff --git a/idaes_ui/fv/static/assets/allPathsLoader-398c3766.js b/idaes_ui/fv/static/assets/allPathsLoader-398c3766.js new file mode 100644 index 00000000..ee2f80ce --- /dev/null +++ b/idaes_ui/fv/static/assets/allPathsLoader-398c3766.js @@ -0,0 +1 @@ +import{_ as o,a as n,b as i}from"./index-1868e2ad.js";var _=function(e,a){return o(void 0,void 0,void 0,function(){var t;return n(this,function(r){switch(r.label){case 0:return[4,i(()=>import("./allPaths-73e45bb5.js"),["assets/allPaths-73e45bb5.js","assets/index-0aa86537.js","assets/index-4387c2ca.js","assets/index-1868e2ad.js","assets/index-a512f9f0.css"])];case 1:return t=r.sent().getIconPaths,[2,t(e,a)]}})})};export{_ as allPathsLoader}; diff --git a/idaes_ui/fv/static/assets/allPathsLoader-405ce845.js b/idaes_ui/fv/static/assets/allPathsLoader-405ce845.js new file mode 100644 index 00000000..c905ebf0 --- /dev/null +++ b/idaes_ui/fv/static/assets/allPathsLoader-405ce845.js @@ -0,0 +1 @@ +import{_ as o,a as n,b as i}from"./index-c6225f50.js";var _=function(e,a){return o(void 0,void 0,void 0,function(){var t;return n(this,function(r){switch(r.label){case 0:return[4,i(()=>import("./allPaths-54284cc9.js"),["assets/allPaths-54284cc9.js","assets/index-0aa86537.js","assets/index-4387c2ca.js","assets/index-c6225f50.js","assets/index-a512f9f0.css"])];case 1:return t=r.sent().getIconPaths,[2,t(e,a)]}})})};export{_ as allPathsLoader}; diff --git a/idaes_ui/fv/static/assets/allPathsLoader-5f2f8818.js b/idaes_ui/fv/static/assets/allPathsLoader-5f2f8818.js new file mode 100644 index 00000000..0a0b0d2e --- /dev/null +++ b/idaes_ui/fv/static/assets/allPathsLoader-5f2f8818.js @@ -0,0 +1 @@ +import{_ as o,a as n,b as i}from"./index-65821143.js";var _=function(e,a){return o(void 0,void 0,void 0,function(){var t;return n(this,function(r){switch(r.label){case 0:return[4,i(()=>import("./allPaths-7c6e9f54.js"),["assets/allPaths-7c6e9f54.js","assets/index-0aa86537.js","assets/index-4387c2ca.js","assets/index-65821143.js","assets/index-a512f9f0.css"])];case 1:return t=r.sent().getIconPaths,[2,t(e,a)]}})})};export{_ as allPathsLoader}; diff --git a/idaes_ui/fv/static/assets/allPathsLoader-88810379.js b/idaes_ui/fv/static/assets/allPathsLoader-88810379.js new file mode 100644 index 00000000..67ce96fc --- /dev/null +++ b/idaes_ui/fv/static/assets/allPathsLoader-88810379.js @@ -0,0 +1 @@ +import{_ as o,a as n,b as i}from"./index-7034b54b.js";var _=function(e,a){return o(void 0,void 0,void 0,function(){var t;return n(this,function(r){switch(r.label){case 0:return[4,i(()=>import("./allPaths-01c9bf3a.js"),["assets/allPaths-01c9bf3a.js","assets/index-0aa86537.js","assets/index-4387c2ca.js","assets/index-7034b54b.js","assets/index-a512f9f0.css"])];case 1:return t=r.sent().getIconPaths,[2,t(e,a)]}})})};export{_ as allPathsLoader}; diff --git a/idaes_ui/fv/static/assets/allPathsLoader-bea5d750.js b/idaes_ui/fv/static/assets/allPathsLoader-bea5d750.js new file mode 100644 index 00000000..1b7641eb --- /dev/null +++ b/idaes_ui/fv/static/assets/allPathsLoader-bea5d750.js @@ -0,0 +1 @@ +import{_ as o,a as n,b as i}from"./index-e9678d26.js";var _=function(e,a){return o(void 0,void 0,void 0,function(){var t;return n(this,function(r){switch(r.label){case 0:return[4,i(()=>import("./allPaths-2c6dee0e.js"),["assets/allPaths-2c6dee0e.js","assets/index-0aa86537.js","assets/index-4387c2ca.js","assets/index-e9678d26.js","assets/index-a512f9f0.css"])];case 1:return t=r.sent().getIconPaths,[2,t(e,a)]}})})};export{_ as allPathsLoader}; diff --git a/idaes_ui/fv/static/assets/allPathsLoader-d2e2760d.js b/idaes_ui/fv/static/assets/allPathsLoader-d2e2760d.js new file mode 100644 index 00000000..a37b8cfc --- /dev/null +++ b/idaes_ui/fv/static/assets/allPathsLoader-d2e2760d.js @@ -0,0 +1 @@ +import{_ as o,a as n,b as i}from"./index-3f372414.js";var _=function(e,a){return o(void 0,void 0,void 0,function(){var t;return n(this,function(r){switch(r.label){case 0:return[4,i(()=>import("./allPaths-c26c5bff.js"),["assets/allPaths-c26c5bff.js","assets/index-0aa86537.js","assets/index-4387c2ca.js","assets/index-3f372414.js","assets/index-a512f9f0.css"])];case 1:return t=r.sent().getIconPaths,[2,t(e,a)]}})})};export{_ as allPathsLoader}; diff --git a/idaes_ui/fv/static/assets/allPathsLoader-dab2b8d3.js b/idaes_ui/fv/static/assets/allPathsLoader-dab2b8d3.js new file mode 100644 index 00000000..a9352247 --- /dev/null +++ b/idaes_ui/fv/static/assets/allPathsLoader-dab2b8d3.js @@ -0,0 +1 @@ +import{_ as o,a as n,b as i}from"./index-056ff5da.js";var _=function(e,a){return o(void 0,void 0,void 0,function(){var t;return n(this,function(r){switch(r.label){case 0:return[4,i(()=>import("./allPaths-0bc9c7ab.js"),["assets/allPaths-0bc9c7ab.js","assets/index-0aa86537.js","assets/index-4387c2ca.js","assets/index-056ff5da.js","assets/index-a512f9f0.css"])];case 1:return t=r.sent().getIconPaths,[2,t(e,a)]}})})};export{_ as allPathsLoader}; diff --git a/idaes_ui/fv/static/assets/index-056ff5da.js b/idaes_ui/fv/static/assets/index-056ff5da.js new file mode 100644 index 00000000..52a58120 --- /dev/null +++ b/idaes_ui/fv/static/assets/index-056ff5da.js @@ -0,0 +1,854 @@ +var nS=Object.defineProperty;var rS=(e,t,n)=>t in e?nS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var z=(e,t,n)=>(rS(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();var $=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Bf(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),n}var Fv={exports:{}},rl={},Iv={exports:{}},Y={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ri=Symbol.for("react.element"),aS=Symbol.for("react.portal"),iS=Symbol.for("react.fragment"),oS=Symbol.for("react.strict_mode"),sS=Symbol.for("react.profiler"),lS=Symbol.for("react.provider"),uS=Symbol.for("react.context"),cS=Symbol.for("react.forward_ref"),fS=Symbol.for("react.suspense"),dS=Symbol.for("react.memo"),hS=Symbol.for("react.lazy"),Zh=Symbol.iterator;function pS(e){return e===null||typeof e!="object"?null:(e=Zh&&e[Zh]||e["@@iterator"],typeof e=="function"?e:null)}var Uv={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},zv=Object.assign,Hv={};function pa(e,t,n){this.props=e,this.context=t,this.refs=Hv,this.updater=n||Uv}pa.prototype.isReactComponent={};pa.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};pa.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Wv(){}Wv.prototype=pa.prototype;function Zf(e,t,n){this.props=e,this.context=t,this.refs=Hv,this.updater=n||Uv}var ed=Zf.prototype=new Wv;ed.constructor=Zf;zv(ed,pa.prototype);ed.isPureReactComponent=!0;var ep=Array.isArray,Gv=Object.prototype.hasOwnProperty,td={current:null},Vv={key:!0,ref:!0,__self:!0,__source:!0};function qv(e,t,n){var r,a={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Gv.call(t,r)&&!Vv.hasOwnProperty(r)&&(a[r]=t[r]);var s=arguments.length-2;if(s===1)a.children=n;else if(1>>1,Se=F[he];if(0>>1;hea(lu,q))qna(so,lu)?(F[he]=so,F[qn]=q,he=qn):(F[he]=lu,F[Vn]=q,he=Vn);else if(qna(so,q))F[he]=so,F[qn]=q,he=qn;else break e}}return V}function a(F,V){var q=F.sortIndex-V.sortIndex;return q!==0?q:F.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],u=[],h=1,d=null,p=3,w=!1,m=!1,_=!1,b=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(F){for(var V=n(u);V!==null;){if(V.callback===null)r(u);else if(V.startTime<=F)r(u),V.sortIndex=V.expirationTime,t(l,V);else break;V=n(u)}}function x(F){if(_=!1,S(F),!m)if(n(l)!==null)m=!0,Ut(D);else{var V=n(u);V!==null&&Or(x,V.startTime-F)}}function D(F,V){m=!1,_&&(_=!1,v(C),C=-1),w=!0;var q=p;try{for(S(V),d=n(l);d!==null&&(!(d.expirationTime>V)||F&&!L());){var he=d.callback;if(typeof he=="function"){d.callback=null,p=d.priorityLevel;var Se=he(d.expirationTime<=V);V=e.unstable_now(),typeof Se=="function"?d.callback=Se:d===n(l)&&r(l),S(V)}else r(l);d=n(l)}if(d!==null)var oo=!0;else{var Vn=n(u);Vn!==null&&Or(x,Vn.startTime-V),oo=!1}return oo}finally{d=null,p=q,w=!1}}var k=!1,E=null,C=-1,O=5,N=-1;function L(){return!(e.unstable_now()-NF||125he?(F.sortIndex=q,t(u,F),n(l)===null&&F===n(u)&&(_?(v(C),C=-1):_=!0,Or(x,q-he))):(F.sortIndex=Se,t(l,F),m||w||(m=!0,Ut(D))),F},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(F){var V=p;return function(){var q=p;p=V;try{return F.apply(this,arguments)}finally{p=q}}}})(Jv);Xv.exports=Jv;var CS=Xv.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Qv=P,nt=CS;function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hc=Object.prototype.hasOwnProperty,OS=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,np={},rp={};function xS(e){return hc.call(rp,e)?!0:hc.call(np,e)?!1:OS.test(e)?rp[e]=!0:(np[e]=!0,!1)}function PS(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function NS(e,t,n,r){if(t===null||typeof t>"u"||PS(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ge(e,t,n,r,a,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){xe[e]=new Ge(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];xe[t]=new Ge(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){xe[e]=new Ge(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){xe[e]=new Ge(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){xe[e]=new Ge(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){xe[e]=new Ge(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){xe[e]=new Ge(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){xe[e]=new Ge(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){xe[e]=new Ge(e,5,!1,e.toLowerCase(),null,!1,!1)});var rd=/[\-:]([a-z])/g;function ad(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(rd,ad);xe[t]=new Ge(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(rd,ad);xe[t]=new Ge(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(rd,ad);xe[t]=new Ge(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){xe[e]=new Ge(e,1,!1,e.toLowerCase(),null,!1,!1)});xe.xlinkHref=new Ge("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){xe[e]=new Ge(e,1,!1,e.toLowerCase(),null,!0,!0)});function id(e,t,n,r){var a=xe.hasOwnProperty(t)?xe[t]:null;(a!==null?a.type!==0:r||!(2s||a[o]!==i[s]){var l=` +`+a[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{fu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Wa(e):""}function DS(e){switch(e.tag){case 5:return Wa(e.type);case 16:return Wa("Lazy");case 13:return Wa("Suspense");case 19:return Wa("SuspenseList");case 0:case 2:case 15:return e=du(e.type,!1),e;case 11:return e=du(e.type.render,!1),e;case 1:return e=du(e.type,!0),e;default:return""}}function vc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case $r:return"Fragment";case Rr:return"Portal";case pc:return"Profiler";case od:return"StrictMode";case gc:return"Suspense";case mc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ey:return(e.displayName||"Context")+".Consumer";case Zv:return(e._context.displayName||"Context")+".Provider";case sd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ld:return t=e.displayName||null,t!==null?t:vc(e.type)||"Memo";case dn:t=e._payload,e=e._init;try{return vc(e(t))}catch{}}return null}function kS(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return vc(t);case 8:return t===od?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function kn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ny(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function AS(e){var t=ny(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function co(e){e._valueTracker||(e._valueTracker=AS(e))}function ry(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ny(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function gs(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function yc(e,t){var n=t.checked;return ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ip(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=kn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ay(e,t){t=t.checked,t!=null&&id(e,"checked",t,!1)}function wc(e,t){ay(e,t);var n=kn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?_c(e,t.type,n):t.hasOwnProperty("defaultValue")&&_c(e,t.type,kn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function op(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function _c(e,t,n){(t!=="number"||gs(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ga=Array.isArray;function Jr(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=fo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function fi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Qa={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},RS=["Webkit","ms","Moz","O"];Object.keys(Qa).forEach(function(e){RS.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qa[t]=Qa[e]})});function ly(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Qa.hasOwnProperty(e)&&Qa[e]?(""+t).trim():t+"px"}function uy(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,a=ly(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}var $S=ce({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ec(e,t){if(t){if($S[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function Tc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Cc=null;function ud(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Oc=null,Qr=null,Br=null;function up(e){if(e=Mi(e)){if(typeof Oc!="function")throw Error(R(280));var t=e.stateNode;t&&(t=ll(t),Oc(e.stateNode,e.type,t))}}function cy(e){Qr?Br?Br.push(e):Br=[e]:Qr=e}function fy(){if(Qr){var e=Qr,t=Br;if(Br=Qr=null,up(e),t)for(e=0;e>>=0,e===0?32:31-(VS(e)/qS|0)|0}var ho=64,po=4194304;function Va(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ws(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,a=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~a;s!==0?r=Va(s):(i&=o,i!==0&&(r=Va(i)))}else o=n&~a,o!==0?r=Va(o):i!==0&&(r=Va(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&a)&&(a=r&-r,i=t&-t,a>=i||a===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function $i(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ot(t),e[t]=n}function JS(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Za),yp=String.fromCharCode(32),wp=!1;function ky(e,t){switch(e){case"keyup":return T2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ay(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Lr=!1;function O2(e,t){switch(e){case"compositionend":return Ay(t);case"keypress":return t.which!==32?null:(wp=!0,yp);case"textInput":return e=t.data,e===yp&&wp?null:e;default:return null}}function x2(e,t){if(Lr)return e==="compositionend"||!vd&&ky(e,t)?(e=Ny(),Xo=pd=vn=null,Lr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ep(n)}}function My(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?My(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jy(){for(var e=window,t=gs();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=gs(e.document)}return t}function yd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function M2(e){var t=jy(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&My(n.ownerDocument.documentElement,n)){if(r!==null&&yd(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=n.textContent.length,i=Math.min(r.start,a);r=r.end===void 0?i:Math.min(r.end,a),!e.extend&&i>r&&(a=r,r=i,i=a),a=Tp(n,i);var o=Tp(n,r);a&&o&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Mr=null,Ac=null,ti=null,Rc=!1;function Cp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Rc||Mr==null||Mr!==gs(r)||(r=Mr,"selectionStart"in r&&yd(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ti&&vi(ti,r)||(ti=r,r=bs(Ac,"onSelect"),0Ir||(e.current=Ic[Ir],Ic[Ir]=null,Ir--)}function ee(e,t){Ir++,Ic[Ir]=e.current,e.current=t}var An={},Ie=Un(An),Ke=Un(!1),ur=An;function aa(e,t){var n=e.type.contextTypes;if(!n)return An;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in n)a[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Ye(e){return e=e.childContextTypes,e!=null}function Ts(){ie(Ke),ie(Ie)}function Ap(e,t,n){if(Ie.current!==An)throw Error(R(168));ee(Ie,t),ee(Ke,n)}function qy(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var a in r)if(!(a in t))throw Error(R(108,kS(e)||"Unknown",a));return ce({},n,r)}function Cs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||An,ur=Ie.current,ee(Ie,e),ee(Ke,Ke.current),!0}function Rp(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=qy(e,t,ur),r.__reactInternalMemoizedMergedChildContext=e,ie(Ke),ie(Ie),ee(Ie,e)):ie(Ke),ee(Ke,n)}var Wt=null,ul=!1,Ou=!1;function Ky(e){Wt===null?Wt=[e]:Wt.push(e)}function Y2(e){ul=!0,Ky(e)}function zn(){if(!Ou&&Wt!==null){Ou=!0;var e=0,t=B;try{var n=Wt;for(B=1;e>=o,a-=o,qt=1<<32-Ot(t)+a|n<C?(O=E,E=null):O=E.sibling;var N=p(v,E,S[C],x);if(N===null){E===null&&(E=O);break}e&&E&&N.alternate===null&&t(v,E),y=i(N,y,C),k===null?D=N:k.sibling=N,k=N,E=O}if(C===S.length)return n(v,E),se&&Yn(v,C),D;if(E===null){for(;CC?(O=E,E=null):O=E.sibling;var L=p(v,E,N.value,x);if(L===null){E===null&&(E=O);break}e&&E&&L.alternate===null&&t(v,E),y=i(L,y,C),k===null?D=L:k.sibling=L,k=L,E=O}if(N.done)return n(v,E),se&&Yn(v,C),D;if(E===null){for(;!N.done;C++,N=S.next())N=d(v,N.value,x),N!==null&&(y=i(N,y,C),k===null?D=N:k.sibling=N,k=N);return se&&Yn(v,C),D}for(E=r(v,E);!N.done;C++,N=S.next())N=w(E,v,C,N.value,x),N!==null&&(e&&N.alternate!==null&&E.delete(N.key===null?C:N.key),y=i(N,y,C),k===null?D=N:k.sibling=N,k=N);return e&&E.forEach(function(U){return t(v,U)}),se&&Yn(v,C),D}function b(v,y,S,x){if(typeof S=="object"&&S!==null&&S.type===$r&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case uo:e:{for(var D=S.key,k=y;k!==null;){if(k.key===D){if(D=S.type,D===$r){if(k.tag===7){n(v,k.sibling),y=a(k,S.props.children),y.return=v,v=y;break e}}else if(k.elementType===D||typeof D=="object"&&D!==null&&D.$$typeof===dn&&Up(D)===k.type){n(v,k.sibling),y=a(k,S.props),y.ref=Ra(v,k,S),y.return=v,v=y;break e}n(v,k);break}else t(v,k);k=k.sibling}S.type===$r?(y=lr(S.props.children,v.mode,x,S.key),y.return=v,v=y):(x=rs(S.type,S.key,S.props,null,v.mode,x),x.ref=Ra(v,y,S),x.return=v,v=x)}return o(v);case Rr:e:{for(k=S.key;y!==null;){if(y.key===k)if(y.tag===4&&y.stateNode.containerInfo===S.containerInfo&&y.stateNode.implementation===S.implementation){n(v,y.sibling),y=a(y,S.children||[]),y.return=v,v=y;break e}else{n(v,y);break}else t(v,y);y=y.sibling}y=$u(S,v.mode,x),y.return=v,v=y}return o(v);case dn:return k=S._init,b(v,y,k(S._payload),x)}if(Ga(S))return m(v,y,S,x);if(Pa(S))return _(v,y,S,x);So(v,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,y!==null&&y.tag===6?(n(v,y.sibling),y=a(y,S),y.return=v,v=y):(n(v,y),y=Ru(S,v.mode,x),y.return=v,v=y),o(v)):n(v,y)}return b}var oa=t0(!0),n0=t0(!1),ji={},jt=Un(ji),Si=Un(ji),bi=Un(ji);function nr(e){if(e===ji)throw Error(R(174));return e}function xd(e,t){switch(ee(bi,t),ee(Si,e),ee(jt,ji),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:bc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=bc(t,e)}ie(jt),ee(jt,t)}function sa(){ie(jt),ie(Si),ie(bi)}function r0(e){nr(bi.current);var t=nr(jt.current),n=bc(t,e.type);t!==n&&(ee(Si,e),ee(jt,n))}function Pd(e){Si.current===e&&(ie(jt),ie(Si))}var le=Un(0);function ks(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var xu=[];function Nd(){for(var e=0;en?n:4,e(!0);var r=Pu.transition;Pu.transition={};try{e(!1),t()}finally{B=n,Pu.transition=r}}function w0(){return yt().memoizedState}function B2(e,t,n){var r=Pn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},_0(e))S0(t,n);else if(n=Qy(e,t,n,r),n!==null){var a=He();xt(n,e,r,a),b0(n,t,r)}}function Z2(e,t,n){var r=Pn(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(_0(e))S0(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,s=i(o,n);if(a.hasEagerState=!0,a.eagerState=s,Nt(s,o)){var l=t.interleaved;l===null?(a.next=a,Cd(t)):(a.next=l.next,l.next=a),t.interleaved=a;return}}catch{}finally{}n=Qy(e,t,a,r),n!==null&&(a=He(),xt(n,e,r,a),b0(n,t,r))}}function _0(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function S0(e,t){ni=As=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function b0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,fd(e,n)}}var Rs={readContext:vt,useCallback:Ne,useContext:Ne,useEffect:Ne,useImperativeHandle:Ne,useInsertionEffect:Ne,useLayoutEffect:Ne,useMemo:Ne,useReducer:Ne,useRef:Ne,useState:Ne,useDebugValue:Ne,useDeferredValue:Ne,useTransition:Ne,useMutableSource:Ne,useSyncExternalStore:Ne,useId:Ne,unstable_isNewReconciler:!1},eb={readContext:vt,useCallback:function(e,t){return At().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:Hp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Zo(4194308,4,p0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Zo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Zo(4,2,e,t)},useMemo:function(e,t){var n=At();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=At();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=B2.bind(null,ue,e),[r.memoizedState,e]},useRef:function(e){var t=At();return e={current:e},t.memoizedState=e},useState:zp,useDebugValue:$d,useDeferredValue:function(e){return At().memoizedState=e},useTransition:function(){var e=zp(!1),t=e[0];return e=Q2.bind(null,e[1]),At().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ue,a=At();if(se){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),Ee===null)throw Error(R(349));fr&30||o0(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,Hp(l0.bind(null,r,i,e),[e]),r.flags|=2048,Ci(9,s0.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=At(),t=Ee.identifierPrefix;if(se){var n=Kt,r=qt;n=(r&~(1<<32-Ot(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ei++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Rt]=t,e[_i]=r,k0(e,t,!1,!1),t.stateNode=e;e:{switch(o=Tc(n,r),n){case"dialog":te("cancel",e),te("close",e),a=r;break;case"iframe":case"object":case"embed":te("load",e),a=r;break;case"video":case"audio":for(a=0;aua&&(t.flags|=128,r=!0,$a(i,!1),t.lanes=4194304)}else{if(!r)if(e=ks(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),$a(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!se)return De(t),null}else 2*pe()-i.renderingStartTime>ua&&n!==1073741824&&(t.flags|=128,r=!0,$a(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=pe(),t.sibling=null,n=le.current,ee(le,r?n&1|2:n&1),t):(De(t),null);case 22:case 23:return Ud(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ze&1073741824&&(De(t),t.subtreeFlags&6&&(t.flags|=8192)):De(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function lb(e,t){switch(_d(t),t.tag){case 1:return Ye(t.type)&&Ts(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return sa(),ie(Ke),ie(Ie),Nd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Pd(t),null;case 13:if(ie(le),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));ia()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ie(le),null;case 4:return sa(),null;case 10:return Td(t.type._context),null;case 22:case 23:return Ud(),null;case 24:return null;default:return null}}var Eo=!1,Me=!1,ub=typeof WeakSet=="function"?WeakSet:Set,j=null;function Wr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){fe(e,t,r)}else n.current=null}function Qc(e,t,n){try{n()}catch(r){fe(e,t,r)}}var Qp=!1;function cb(e,t){if($c=_s,e=jy(),yd(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,s=-1,l=-1,u=0,h=0,d=e,p=null;t:for(;;){for(var w;d!==n||a!==0&&d.nodeType!==3||(s=o+a),d!==i||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(w=d.firstChild)!==null;)p=d,d=w;for(;;){if(d===e)break t;if(p===n&&++u===a&&(s=o),p===i&&++h===r&&(l=o),(w=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=w}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Lc={focusedElem:e,selectionRange:n},_s=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var _=m.memoizedProps,b=m.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?_:St(t.type,_),b);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(x){fe(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return m=Qp,Qp=!1,m}function ri(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,i!==void 0&&Qc(t,n,i)}a=a.next}while(a!==r)}}function dl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Bc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function $0(e){var t=e.alternate;t!==null&&(e.alternate=null,$0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Rt],delete t[_i],delete t[Fc],delete t[q2],delete t[K2])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function L0(e){return e.tag===5||e.tag===3||e.tag===4}function Bp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||L0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Zc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Es));else if(r!==4&&(e=e.child,e!==null))for(Zc(e,t,n),e=e.sibling;e!==null;)Zc(e,t,n),e=e.sibling}function ef(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ef(e,t,n),e=e.sibling;e!==null;)ef(e,t,n),e=e.sibling}var Ce=null,Et=!1;function sn(e,t,n){for(n=n.child;n!==null;)M0(e,t,n),n=n.sibling}function M0(e,t,n){if(Mt&&typeof Mt.onCommitFiberUnmount=="function")try{Mt.onCommitFiberUnmount(al,n)}catch{}switch(n.tag){case 5:Me||Wr(n,t);case 6:var r=Ce,a=Et;Ce=null,sn(e,t,n),Ce=r,Et=a,Ce!==null&&(Et?(e=Ce,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ce.removeChild(n.stateNode));break;case 18:Ce!==null&&(Et?(e=Ce,n=n.stateNode,e.nodeType===8?Cu(e.parentNode,n):e.nodeType===1&&Cu(e,n),gi(e)):Cu(Ce,n.stateNode));break;case 4:r=Ce,a=Et,Ce=n.stateNode.containerInfo,Et=!0,sn(e,t,n),Ce=r,Et=a;break;case 0:case 11:case 14:case 15:if(!Me&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var i=a,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Qc(n,t,o),a=a.next}while(a!==r)}sn(e,t,n);break;case 1:if(!Me&&(Wr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){fe(n,t,s)}sn(e,t,n);break;case 21:sn(e,t,n);break;case 22:n.mode&1?(Me=(r=Me)||n.memoizedState!==null,sn(e,t,n),Me=r):sn(e,t,n);break;default:sn(e,t,n)}}function Zp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ub),t.forEach(function(r){var a=wb.bind(null,e,r);n.has(r)||(n.add(r),r.then(a,a))})}}function _t(e,t){var n=t.deletions;if(n!==null)for(var r=0;ra&&(a=o),r&=~i}if(r=a,r=pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*db(r/1960))-r,10e?16:e,yn===null)var r=!1;else{if(e=yn,yn=null,Ms=0,J&6)throw Error(R(331));var a=J;for(J|=4,j=e.current;j!==null;){var i=j,o=i.child;if(j.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lpe()-Fd?sr(e,0):jd|=n),Xe(e,t)}function G0(e,t){t===0&&(e.mode&1?(t=po,po<<=1,!(po&130023424)&&(po=4194304)):t=1);var n=He();e=Bt(e,t),e!==null&&($i(e,t,n),Xe(e,n))}function yb(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),G0(e,n)}function wb(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),G0(e,n)}var V0;V0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ke.current)qe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return qe=!1,ob(e,t,n);qe=!!(e.flags&131072)}else qe=!1,se&&t.flags&1048576&&Yy(t,xs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;es(e,t),e=t.pendingProps;var a=aa(t,Ie.current);ea(t,n),a=kd(null,t,r,e,a,n);var i=Ad();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ye(r)?(i=!0,Cs(t)):i=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,Od(t),a.updater=cl,t.stateNode=a,a._reactInternals=t,Gc(t,r,e,n),t=Kc(null,t,r,!0,i,n)):(t.tag=0,se&&i&&wd(t),Ue(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(es(e,t),e=t.pendingProps,a=r._init,r=a(r._payload),t.type=r,a=t.tag=Sb(r),e=St(r,e),a){case 0:t=qc(null,t,r,e,n);break e;case 1:t=Yp(null,t,r,e,n);break e;case 11:t=qp(null,t,r,e,n);break e;case 14:t=Kp(null,t,r,St(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:St(r,a),qc(e,t,r,a,n);case 1:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:St(r,a),Yp(e,t,r,a,n);case 3:e:{if(P0(t),e===null)throw Error(R(387));r=t.pendingProps,i=t.memoizedState,a=i.element,By(e,t),Ds(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){a=la(Error(R(423)),t),t=Xp(e,t,r,n,a);break e}else if(r!==a){a=la(Error(R(424)),t),t=Xp(e,t,r,n,a);break e}else for(et=Cn(t.stateNode.containerInfo.firstChild),tt=t,se=!0,Tt=null,n=n0(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ia(),r===a){t=Zt(e,t,n);break e}Ue(e,t,r,n)}t=t.child}return t;case 5:return r0(t),e===null&&zc(t),r=t.type,a=t.pendingProps,i=e!==null?e.memoizedProps:null,o=a.children,Mc(r,a)?o=null:i!==null&&Mc(r,i)&&(t.flags|=32),x0(e,t),Ue(e,t,o,n),t.child;case 6:return e===null&&zc(t),null;case 13:return N0(e,t,n);case 4:return xd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=oa(t,null,r,n):Ue(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:St(r,a),qp(e,t,r,a,n);case 7:return Ue(e,t,t.pendingProps,n),t.child;case 8:return Ue(e,t,t.pendingProps.children,n),t.child;case 12:return Ue(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,i=t.memoizedProps,o=a.value,ee(Ps,r._currentValue),r._currentValue=o,i!==null)if(Nt(i.value,o)){if(i.children===a.children&&!Ke.current){t=Zt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Yt(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var h=u.pending;h===null?l.next=l:(l.next=h.next,h.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Hc(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(R(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Hc(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ue(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,ea(t,n),a=vt(a),r=r(a),t.flags|=1,Ue(e,t,r,n),t.child;case 14:return r=t.type,a=St(r,t.pendingProps),a=St(r.type,a),Kp(e,t,r,a,n);case 15:return C0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:St(r,a),es(e,t),t.tag=1,Ye(r)?(e=!0,Cs(t)):e=!1,ea(t,n),e0(t,r,a),Gc(t,r,a,n),Kc(null,t,r,!0,e,n);case 19:return D0(e,t,n);case 22:return O0(e,t,n)}throw Error(R(156,t.tag))};function q0(e,t){return yy(e,t)}function _b(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pt(e,t,n,r){return new _b(e,t,n,r)}function Hd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Sb(e){if(typeof e=="function")return Hd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===sd)return 11;if(e===ld)return 14}return 2}function Nn(e,t){var n=e.alternate;return n===null?(n=pt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function rs(e,t,n,r,a,i){var o=2;if(r=e,typeof e=="function")Hd(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case $r:return lr(n.children,a,i,t);case od:o=8,a|=8;break;case pc:return e=pt(12,n,t,a|2),e.elementType=pc,e.lanes=i,e;case gc:return e=pt(13,n,t,a),e.elementType=gc,e.lanes=i,e;case mc:return e=pt(19,n,t,a),e.elementType=mc,e.lanes=i,e;case ty:return pl(n,a,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Zv:o=10;break e;case ey:o=9;break e;case sd:o=11;break e;case ld:o=14;break e;case dn:o=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=pt(o,n,t,a),t.elementType=e,t.type=r,t.lanes=i,t}function lr(e,t,n,r){return e=pt(7,e,r,t),e.lanes=n,e}function pl(e,t,n,r){return e=pt(22,e,r,t),e.elementType=ty,e.lanes=n,e.stateNode={isHidden:!1},e}function Ru(e,t,n){return e=pt(6,e,null,t),e.lanes=n,e}function $u(e,t,n){return t=pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function bb(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=pu(0),this.expirationTimes=pu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pu(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Wd(e,t,n,r,a,i,o,s,l){return e=new bb(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=pt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Od(i),e}function Eb(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(J0)}catch(e){console.error(e)}}J0(),Yv.exports=rt;var Q0=Yv.exports,sg=Q0;dc.createRoot=sg.createRoot,dc.hydrateRoot=sg.hydrateRoot;function Pb(){{const e=window.location.port,n=new URLSearchParams(window.location.search).get("id");return{server_port:e,fv_id:n}}}const it=P.createContext({});function Nb({children:e}){const t=Db(),{server_port:n,fv_id:r}=Pb()??{server_port:"49999",fv_id:"sample_visualization"},[a,i]=P.useState({}),[o,s]=P.useState({fvWrapper:{panelName:"fvWrapper",show:!0,size:{maxSize:100,defaultSize:70}},fv:{panelName:"Flowsheet",show:!0,size:{minSize:100,defaultSize:70}},diagnostics:{panelName:"Diagnostics",show:t.diagnosticsPanelShow==null?!1:t.diagnosticsPanelShow,size:{minSize:100,defaultSize:70}},diagnosticsLogs:{panelName:"Stream Table",show:!1,size:{maxSize:100,defaultSize:30}},streamTable:{panelName:"Stream Table",show:!0,size:{maxSize:100,defaultSize:30}}}),[l,u]=P.useState({isShowSteamName:!0,isShowLabels:!1}),[h,d]=P.useState({}),[p,w]=P.useState([]),[m,_]=P.useState(""),[b,v]=P.useState(!0),[y,S]=P.useState(0),[x,D]=P.useState({expand:!1,expandState:{}}),[k,E]=P.useState({streamTable:!0,diagnosticsLogs:!1});return T.jsx(it.Provider,{value:{server_port:n,fv_id:r,panelState:o,setPanelState:s,showVariable:a,setShowVariable:i,fvHeaderState:l,setFvHeaderState:u,diagnosticsRunFnNameListState:p,setDiagnosticsRunFnNameListState:w,diagnosticsRefreshState:b,setDiagnosticsRefreshState:v,diagnosticsNextStepsOutputState:h,setDiagnosticsNextStepsOutputState:d,diagnosticsRunnerDisplayState:m,setDiagnosticsRunnerDisplayState:_,diagnosticsHistoryState:y,setDiagnosticsHistory:S,viewInLogPanel:k,setViewInLogPanel:E,variablesExpandState:x,setVariablesExpandState:D},children:e})}function Db(){const e=localStorage.getItem("appSetting");return JSON.parse(e)}function lg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function M(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1;a--){var i=n[a],o=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(r=i)}return oe.head.insertBefore(t,r),e}}var tE="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function ki(){for(var e=12,t="";e-- >0;)t+=tE[Math.random()*62|0];return t}function va(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Bd(e){return e.classList?va(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function u1(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function nE(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(u1(e[n]),'" ')},"").trim()}function wl(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function Zd(e){return e.size!==$t.size||e.x!==$t.x||e.y!==$t.y||e.rotate!==$t.rotate||e.flipX||e.flipY}function rE(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,a={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(t.x*32,", ").concat(t.y*32,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(i," ").concat(o," ").concat(s)},u={transform:"translate(".concat(r/2*-1," -256)")};return{outer:a,inner:l,path:u}}function aE(e){var t=e.transform,n=e.width,r=n===void 0?sf:n,a=e.height,i=a===void 0?sf:a,o=e.startCentered,s=o===void 0?!1:o,l="";return s&&n1?l+="translate(".concat(t.x/ln-r/2,"em, ").concat(t.y/ln-i/2,"em) "):s?l+="translate(calc(-50% + ".concat(t.x/ln,"em), calc(-50% + ").concat(t.y/ln,"em)) "):l+="translate(".concat(t.x/ln,"em, ").concat(t.y/ln,"em) "),l+="scale(".concat(t.size/ln*(t.flipX?-1:1),", ").concat(t.size/ln*(t.flipY?-1:1),") "),l+="rotate(".concat(t.rotate,"deg) "),l}var iE=`:root, :host { + --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid"; + --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular"; + --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light"; + --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin"; + --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone"; + --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp"; + --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp"; + --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp"; + --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands"; +} + +svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { + overflow: visible; + box-sizing: content-box; +} + +.svg-inline--fa { + display: var(--fa-display, inline-block); + height: 1em; + overflow: visible; + vertical-align: -0.125em; +} +.svg-inline--fa.fa-2xs { + vertical-align: 0.1em; +} +.svg-inline--fa.fa-xs { + vertical-align: 0em; +} +.svg-inline--fa.fa-sm { + vertical-align: -0.0714285705em; +} +.svg-inline--fa.fa-lg { + vertical-align: -0.2em; +} +.svg-inline--fa.fa-xl { + vertical-align: -0.25em; +} +.svg-inline--fa.fa-2xl { + vertical-align: -0.3125em; +} +.svg-inline--fa.fa-pull-left { + margin-right: var(--fa-pull-margin, 0.3em); + width: auto; +} +.svg-inline--fa.fa-pull-right { + margin-left: var(--fa-pull-margin, 0.3em); + width: auto; +} +.svg-inline--fa.fa-li { + width: var(--fa-li-width, 2em); + top: 0.25em; +} +.svg-inline--fa.fa-fw { + width: var(--fa-fw-width, 1.25em); +} + +.fa-layers svg.svg-inline--fa { + bottom: 0; + left: 0; + margin: auto; + position: absolute; + right: 0; + top: 0; +} + +.fa-layers-counter, .fa-layers-text { + display: inline-block; + position: absolute; + text-align: center; +} + +.fa-layers { + display: inline-block; + height: 1em; + position: relative; + text-align: center; + vertical-align: -0.125em; + width: 1em; +} +.fa-layers svg.svg-inline--fa { + -webkit-transform-origin: center center; + transform-origin: center center; +} + +.fa-layers-text { + left: 50%; + top: 50%; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); + -webkit-transform-origin: center center; + transform-origin: center center; +} + +.fa-layers-counter { + background-color: var(--fa-counter-background-color, #ff253a); + border-radius: var(--fa-counter-border-radius, 1em); + box-sizing: border-box; + color: var(--fa-inverse, #fff); + line-height: var(--fa-counter-line-height, 1); + max-width: var(--fa-counter-max-width, 5em); + min-width: var(--fa-counter-min-width, 1.5em); + overflow: hidden; + padding: var(--fa-counter-padding, 0.25em 0.5em); + right: var(--fa-right, 0); + text-overflow: ellipsis; + top: var(--fa-top, 0); + -webkit-transform: scale(var(--fa-counter-scale, 0.25)); + transform: scale(var(--fa-counter-scale, 0.25)); + -webkit-transform-origin: top right; + transform-origin: top right; +} + +.fa-layers-bottom-right { + bottom: var(--fa-bottom, 0); + right: var(--fa-right, 0); + top: auto; + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: bottom right; + transform-origin: bottom right; +} + +.fa-layers-bottom-left { + bottom: var(--fa-bottom, 0); + left: var(--fa-left, 0); + right: auto; + top: auto; + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: bottom left; + transform-origin: bottom left; +} + +.fa-layers-top-right { + top: var(--fa-top, 0); + right: var(--fa-right, 0); + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: top right; + transform-origin: top right; +} + +.fa-layers-top-left { + left: var(--fa-left, 0); + right: auto; + top: var(--fa-top, 0); + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: top left; + transform-origin: top left; +} + +.fa-1x { + font-size: 1em; +} + +.fa-2x { + font-size: 2em; +} + +.fa-3x { + font-size: 3em; +} + +.fa-4x { + font-size: 4em; +} + +.fa-5x { + font-size: 5em; +} + +.fa-6x { + font-size: 6em; +} + +.fa-7x { + font-size: 7em; +} + +.fa-8x { + font-size: 8em; +} + +.fa-9x { + font-size: 9em; +} + +.fa-10x { + font-size: 10em; +} + +.fa-2xs { + font-size: 0.625em; + line-height: 0.1em; + vertical-align: 0.225em; +} + +.fa-xs { + font-size: 0.75em; + line-height: 0.0833333337em; + vertical-align: 0.125em; +} + +.fa-sm { + font-size: 0.875em; + line-height: 0.0714285718em; + vertical-align: 0.0535714295em; +} + +.fa-lg { + font-size: 1.25em; + line-height: 0.05em; + vertical-align: -0.075em; +} + +.fa-xl { + font-size: 1.5em; + line-height: 0.0416666682em; + vertical-align: -0.125em; +} + +.fa-2xl { + font-size: 2em; + line-height: 0.03125em; + vertical-align: -0.1875em; +} + +.fa-fw { + text-align: center; + width: 1.25em; +} + +.fa-ul { + list-style-type: none; + margin-left: var(--fa-li-margin, 2.5em); + padding-left: 0; +} +.fa-ul > li { + position: relative; +} + +.fa-li { + left: calc(var(--fa-li-width, 2em) * -1); + position: absolute; + text-align: center; + width: var(--fa-li-width, 2em); + line-height: inherit; +} + +.fa-border { + border-color: var(--fa-border-color, #eee); + border-radius: var(--fa-border-radius, 0.1em); + border-style: var(--fa-border-style, solid); + border-width: var(--fa-border-width, 0.08em); + padding: var(--fa-border-padding, 0.2em 0.25em 0.15em); +} + +.fa-pull-left { + float: left; + margin-right: var(--fa-pull-margin, 0.3em); +} + +.fa-pull-right { + float: right; + margin-left: var(--fa-pull-margin, 0.3em); +} + +.fa-beat { + -webkit-animation-name: fa-beat; + animation-name: fa-beat; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-bounce { + -webkit-animation-name: fa-bounce; + animation-name: fa-bounce; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); +} + +.fa-fade { + -webkit-animation-name: fa-fade; + animation-name: fa-fade; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); +} + +.fa-beat-fade { + -webkit-animation-name: fa-beat-fade; + animation-name: fa-beat-fade; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); +} + +.fa-flip { + -webkit-animation-name: fa-flip; + animation-name: fa-flip; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-shake { + -webkit-animation-name: fa-shake; + animation-name: fa-shake; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, linear); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-spin { + -webkit-animation-name: fa-spin; + animation-name: fa-spin; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 2s); + animation-duration: var(--fa-animation-duration, 2s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, linear); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-spin-reverse { + --fa-animation-direction: reverse; +} + +.fa-pulse, +.fa-spin-pulse { + -webkit-animation-name: fa-spin; + animation-name: fa-spin; + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, steps(8)); + animation-timing-function: var(--fa-animation-timing, steps(8)); +} + +@media (prefers-reduced-motion: reduce) { + .fa-beat, +.fa-bounce, +.fa-fade, +.fa-beat-fade, +.fa-flip, +.fa-pulse, +.fa-shake, +.fa-spin, +.fa-spin-pulse { + -webkit-animation-delay: -1ms; + animation-delay: -1ms; + -webkit-animation-duration: 1ms; + animation-duration: 1ms; + -webkit-animation-iteration-count: 1; + animation-iteration-count: 1; + -webkit-transition-delay: 0s; + transition-delay: 0s; + -webkit-transition-duration: 0s; + transition-duration: 0s; + } +} +@-webkit-keyframes fa-beat { + 0%, 90% { + -webkit-transform: scale(1); + transform: scale(1); + } + 45% { + -webkit-transform: scale(var(--fa-beat-scale, 1.25)); + transform: scale(var(--fa-beat-scale, 1.25)); + } +} +@keyframes fa-beat { + 0%, 90% { + -webkit-transform: scale(1); + transform: scale(1); + } + 45% { + -webkit-transform: scale(var(--fa-beat-scale, 1.25)); + transform: scale(var(--fa-beat-scale, 1.25)); + } +} +@-webkit-keyframes fa-bounce { + 0% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 10% { + -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + } + 30% { + -webkit-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)); + 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)); + } + 50% { + -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + } + 57% { + -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + } + 64% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 100% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } +} +@keyframes fa-bounce { + 0% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 10% { + -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + } + 30% { + -webkit-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)); + 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)); + } + 50% { + -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + } + 57% { + -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + } + 64% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 100% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } +} +@-webkit-keyframes fa-fade { + 50% { + opacity: var(--fa-fade-opacity, 0.4); + } +} +@keyframes fa-fade { + 50% { + opacity: var(--fa-fade-opacity, 0.4); + } +} +@-webkit-keyframes fa-beat-fade { + 0%, 100% { + opacity: var(--fa-beat-fade-opacity, 0.4); + -webkit-transform: scale(1); + transform: scale(1); + } + 50% { + opacity: 1; + -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); + transform: scale(var(--fa-beat-fade-scale, 1.125)); + } +} +@keyframes fa-beat-fade { + 0%, 100% { + opacity: var(--fa-beat-fade-opacity, 0.4); + -webkit-transform: scale(1); + transform: scale(1); + } + 50% { + opacity: 1; + -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); + transform: scale(var(--fa-beat-fade-scale, 1.125)); + } +} +@-webkit-keyframes fa-flip { + 50% { + -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + } +} +@keyframes fa-flip { + 50% { + -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + } +} +@-webkit-keyframes fa-shake { + 0% { + -webkit-transform: rotate(-15deg); + transform: rotate(-15deg); + } + 4% { + -webkit-transform: rotate(15deg); + transform: rotate(15deg); + } + 8%, 24% { + -webkit-transform: rotate(-18deg); + transform: rotate(-18deg); + } + 12%, 28% { + -webkit-transform: rotate(18deg); + transform: rotate(18deg); + } + 16% { + -webkit-transform: rotate(-22deg); + transform: rotate(-22deg); + } + 20% { + -webkit-transform: rotate(22deg); + transform: rotate(22deg); + } + 32% { + -webkit-transform: rotate(-12deg); + transform: rotate(-12deg); + } + 36% { + -webkit-transform: rotate(12deg); + transform: rotate(12deg); + } + 40%, 100% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } +} +@keyframes fa-shake { + 0% { + -webkit-transform: rotate(-15deg); + transform: rotate(-15deg); + } + 4% { + -webkit-transform: rotate(15deg); + transform: rotate(15deg); + } + 8%, 24% { + -webkit-transform: rotate(-18deg); + transform: rotate(-18deg); + } + 12%, 28% { + -webkit-transform: rotate(18deg); + transform: rotate(18deg); + } + 16% { + -webkit-transform: rotate(-22deg); + transform: rotate(-22deg); + } + 20% { + -webkit-transform: rotate(22deg); + transform: rotate(22deg); + } + 32% { + -webkit-transform: rotate(-12deg); + transform: rotate(-12deg); + } + 36% { + -webkit-transform: rotate(12deg); + transform: rotate(12deg); + } + 40%, 100% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } +} +@-webkit-keyframes fa-spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +@keyframes fa-spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +.fa-rotate-90 { + -webkit-transform: rotate(90deg); + transform: rotate(90deg); +} + +.fa-rotate-180 { + -webkit-transform: rotate(180deg); + transform: rotate(180deg); +} + +.fa-rotate-270 { + -webkit-transform: rotate(270deg); + transform: rotate(270deg); +} + +.fa-flip-horizontal { + -webkit-transform: scale(-1, 1); + transform: scale(-1, 1); +} + +.fa-flip-vertical { + -webkit-transform: scale(1, -1); + transform: scale(1, -1); +} + +.fa-flip-both, +.fa-flip-horizontal.fa-flip-vertical { + -webkit-transform: scale(-1, -1); + transform: scale(-1, -1); +} + +.fa-rotate-by { + -webkit-transform: rotate(var(--fa-rotate-angle, none)); + transform: rotate(var(--fa-rotate-angle, none)); +} + +.fa-stack { + display: inline-block; + vertical-align: middle; + height: 2em; + position: relative; + width: 2.5em; +} + +.fa-stack-1x, +.fa-stack-2x { + bottom: 0; + left: 0; + margin: auto; + position: absolute; + right: 0; + top: 0; + z-index: var(--fa-stack-z-index, auto); +} + +.svg-inline--fa.fa-stack-1x { + height: 1em; + width: 1.25em; +} +.svg-inline--fa.fa-stack-2x { + height: 2em; + width: 2.5em; +} + +.fa-inverse { + color: var(--fa-inverse, #fff); +} + +.sr-only, +.fa-sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border-width: 0; +} + +.sr-only-focusable:not(:focus), +.fa-sr-only-focusable:not(:focus) { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border-width: 0; +} + +.svg-inline--fa .fa-primary { + fill: var(--fa-primary-color, currentColor); + opacity: var(--fa-primary-opacity, 1); +} + +.svg-inline--fa .fa-secondary { + fill: var(--fa-secondary-color, currentColor); + opacity: var(--fa-secondary-opacity, 0.4); +} + +.svg-inline--fa.fa-swap-opacity .fa-primary { + opacity: var(--fa-secondary-opacity, 0.4); +} + +.svg-inline--fa.fa-swap-opacity .fa-secondary { + opacity: var(--fa-primary-opacity, 1); +} + +.svg-inline--fa mask .fa-primary, +.svg-inline--fa mask .fa-secondary { + fill: black; +} + +.fad.fa-inverse, +.fa-duotone.fa-inverse { + color: var(--fa-inverse, #fff); +}`;function c1(){var e=r1,t=a1,n=I.cssPrefix,r=I.replacementClass,a=iE;if(n!==e||r!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");a=a.replace(i,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(s,".".concat(r))}return a}var gg=!1;function Lu(){I.autoAddCss&&!gg&&(eE(c1()),gg=!0)}var oE={mixout:function(){return{dom:{css:c1,insertCss:Lu}}},hooks:function(){return{beforeDOMElementCreation:function(){Lu()},beforeI2svg:function(){Lu()}}}},tn=Rn||{};tn[en]||(tn[en]={});tn[en].styles||(tn[en].styles={});tn[en].hooks||(tn[en].hooks={});tn[en].shims||(tn[en].shims=[]);var Ct=tn[en],f1=[],sE=function e(){oe.removeEventListener("DOMContentLoaded",e),Us=1,f1.map(function(t){return t()})},Us=!1;an&&(Us=(oe.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(oe.readyState),Us||oe.addEventListener("DOMContentLoaded",sE));function lE(e){an&&(Us?setTimeout(e,0):f1.push(e))}function Ui(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,a=e.children,i=a===void 0?[]:a;return typeof e=="string"?u1(e):"<".concat(t," ").concat(nE(r),">").concat(i.map(Ui).join(""),"")}function mg(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var uE=function(t,n){return function(r,a,i,o){return t.call(n,r,a,i,o)}},Mu=function(t,n,r,a){var i=Object.keys(t),o=i.length,s=a!==void 0?uE(n,a):n,l,u,h;for(r===void 0?(l=1,h=t[i[0]]):(l=0,h=r);l=55296&&a<=56319&&n=55296&&r<=56319&&n>t+1&&(a=e.charCodeAt(t+1),a>=56320&&a<=57343)?(r-55296)*1024+a-56320+65536:r}function vg(e){return Object.keys(e).reduce(function(t,n){var r=e[n],a=!!r.icon;return a?t[r.iconName]=r.icon:t[n]=r,t},{})}function cf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,a=r===void 0?!1:r,i=vg(t);typeof Ct.hooks.addPack=="function"&&!a?Ct.hooks.addPack(e,vg(t)):Ct.styles[e]=M(M({},Ct.styles[e]||{}),i),e==="fas"&&cf("fa",t)}var Ao,Ro,$o,Vr=Ct.styles,dE=Ct.shims,hE=(Ao={},_e(Ao,ae,Object.values(Ni[ae])),_e(Ao,de,Object.values(Ni[de])),Ao),eh=null,d1={},h1={},p1={},g1={},m1={},pE=(Ro={},_e(Ro,ae,Object.keys(xi[ae])),_e(Ro,de,Object.keys(xi[de])),Ro);function gE(e){return~Xb.indexOf(e)}function mE(e,t){var n=t.split("-"),r=n[0],a=n.slice(1).join("-");return r===e&&a!==""&&!gE(a)?a:null}var v1=function(){var t=function(i){return Mu(Vr,function(o,s,l){return o[l]=Mu(s,i,{}),o},{})};d1=t(function(a,i,o){if(i[3]&&(a[i[3]]=o),i[2]){var s=i[2].filter(function(l){return typeof l=="number"});s.forEach(function(l){a[l.toString(16)]=o})}return a}),h1=t(function(a,i,o){if(a[o]=o,i[2]){var s=i[2].filter(function(l){return typeof l=="string"});s.forEach(function(l){a[l]=o})}return a}),m1=t(function(a,i,o){var s=i[2];return a[o]=o,s.forEach(function(l){a[l]=o}),a});var n="far"in Vr||I.autoFetchSvg,r=Mu(dE,function(a,i){var o=i[0],s=i[1],l=i[2];return s==="far"&&!n&&(s="fas"),typeof o=="string"&&(a.names[o]={prefix:s,iconName:l}),typeof o=="number"&&(a.unicodes[o.toString(16)]={prefix:s,iconName:l}),a},{names:{},unicodes:{}});p1=r.names,g1=r.unicodes,eh=_l(I.styleDefault,{family:I.familyDefault})};Zb(function(e){eh=_l(e.styleDefault,{family:I.familyDefault})});v1();function th(e,t){return(d1[e]||{})[t]}function vE(e,t){return(h1[e]||{})[t]}function ar(e,t){return(m1[e]||{})[t]}function y1(e){return p1[e]||{prefix:null,iconName:null}}function yE(e){var t=g1[e],n=th("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function $n(){return eh}var nh=function(){return{prefix:null,iconName:null,rest:[]}};function _l(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?ae:n,a=xi[r][e],i=Pi[r][e]||Pi[r][a],o=e in Ct.styles?e:null;return i||o||null}var yg=($o={},_e($o,ae,Object.keys(Ni[ae])),_e($o,de,Object.keys(Ni[de])),$o);function Sl(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,a=r===void 0?!1:r,i=(t={},_e(t,ae,"".concat(I.cssPrefix,"-").concat(ae)),_e(t,de,"".concat(I.cssPrefix,"-").concat(de)),t),o=null,s=ae;(e.includes(i[ae])||e.some(function(u){return yg[ae].includes(u)}))&&(s=ae),(e.includes(i[de])||e.some(function(u){return yg[de].includes(u)}))&&(s=de);var l=e.reduce(function(u,h){var d=mE(I.cssPrefix,h);if(Vr[h]?(h=hE[s].includes(h)?Wb[s][h]:h,o=h,u.prefix=h):pE[s].indexOf(h)>-1?(o=h,u.prefix=_l(h,{family:s})):d?u.iconName=d:h!==I.replacementClass&&h!==i[ae]&&h!==i[de]&&u.rest.push(h),!a&&u.prefix&&u.iconName){var p=o==="fa"?y1(u.iconName):{},w=ar(u.prefix,u.iconName);p.prefix&&(o=null),u.iconName=p.iconName||w||u.iconName,u.prefix=p.prefix||u.prefix,u.prefix==="far"&&!Vr.far&&Vr.fas&&!I.autoFetchSvg&&(u.prefix="fas")}return u},nh());return(e.includes("fa-brands")||e.includes("fab"))&&(l.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(l.prefix="fad"),!l.prefix&&s===de&&(Vr.fass||I.autoFetchSvg)&&(l.prefix="fass",l.iconName=ar(l.prefix,l.iconName)||l.iconName),(l.prefix==="fa"||o==="fa")&&(l.prefix=$n()||"fas"),l}var wE=function(){function e(){kb(this,e),this.definitions={}}return Ab(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,a=new Array(r),i=0;i0&&h.forEach(function(d){typeof d=="string"&&(n[s][d]=u)}),n[s][l]=u}),n}}]),e}(),wg=[],qr={},na={},_E=Object.keys(na);function SE(e,t){var n=t.mixoutsTo;return wg=e,qr={},Object.keys(na).forEach(function(r){_E.indexOf(r)===-1&&delete na[r]}),wg.forEach(function(r){var a=r.mixout?r.mixout():{};if(Object.keys(a).forEach(function(o){typeof a[o]=="function"&&(n[o]=a[o]),Is(a[o])==="object"&&Object.keys(a[o]).forEach(function(s){n[o]||(n[o]={}),n[o][s]=a[o][s]})}),r.hooks){var i=r.hooks();Object.keys(i).forEach(function(o){qr[o]||(qr[o]=[]),qr[o].push(i[o])})}r.provides&&r.provides(na)}),n}function ff(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a1?t-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:{};return an?(gr("beforeI2svg",t),nn("pseudoElements2svg",t),nn("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;I.autoReplaceSvg===!1&&(I.autoReplaceSvg=!0),I.observeMutations=!0,lE(function(){CE({autoReplaceSvgRoot:n}),gr("watch",t)})}},TE={icon:function(t){if(t===null)return null;if(Is(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:ar(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=_l(t[0]);return{prefix:r,iconName:ar(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(I.cssPrefix,"-"))>-1||t.match(Gb))){var a=Sl(t.split(" "),{skipLookups:!0});return{prefix:a.prefix||$n(),iconName:ar(a.prefix,a.iconName)||a.iconName}}if(typeof t=="string"){var i=$n();return{prefix:i,iconName:ar(i,t)||t}}}},ot={noAuto:bE,config:I,dom:EE,parse:TE,library:w1,findIconDefinition:df,toHtml:Ui},CE=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?oe:n;(Object.keys(Ct.styles).length>0||I.autoFetchSvg)&&an&&I.autoReplaceSvg&&ot.dom.i2svg({node:r})};function bl(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return Ui(r)})}}),Object.defineProperty(e,"node",{get:function(){if(an){var r=oe.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function OE(e){var t=e.children,n=e.main,r=e.mask,a=e.attributes,i=e.styles,o=e.transform;if(Zd(o)&&n.found&&!r.found){var s=n.width,l=n.height,u={x:s/l/2,y:.5};a.style=wl(M(M({},i),{},{"transform-origin":"".concat(u.x+o.x/16,"em ").concat(u.y+o.y/16,"em")}))}return[{tag:"svg",attributes:a,children:t}]}function xE(e){var t=e.prefix,n=e.iconName,r=e.children,a=e.attributes,i=e.symbol,o=i===!0?"".concat(t,"-").concat(I.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:M(M({},a),{},{id:o}),children:r}]}]}function rh(e){var t=e.icons,n=t.main,r=t.mask,a=e.prefix,i=e.iconName,o=e.transform,s=e.symbol,l=e.title,u=e.maskId,h=e.titleId,d=e.extra,p=e.watchable,w=p===void 0?!1:p,m=r.found?r:n,_=m.width,b=m.height,v=a==="fak",y=[I.replacementClass,i?"".concat(I.cssPrefix,"-").concat(i):""].filter(function(O){return d.classes.indexOf(O)===-1}).filter(function(O){return O!==""||!!O}).concat(d.classes).join(" "),S={children:[],attributes:M(M({},d.attributes),{},{"data-prefix":a,"data-icon":i,class:y,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(_," ").concat(b)})},x=v&&!~d.classes.indexOf("fa-fw")?{width:"".concat(_/b*16*.0625,"em")}:{};w&&(S.attributes[pr]=""),l&&(S.children.push({tag:"title",attributes:{id:S.attributes["aria-labelledby"]||"title-".concat(h||ki())},children:[l]}),delete S.attributes.title);var D=M(M({},S),{},{prefix:a,iconName:i,main:n,mask:r,maskId:u,transform:o,symbol:s,styles:M(M({},x),d.styles)}),k=r.found&&n.found?nn("generateAbstractMask",D)||{children:[],attributes:{}}:nn("generateAbstractIcon",D)||{children:[],attributes:{}},E=k.children,C=k.attributes;return D.children=E,D.attributes=C,s?xE(D):OE(D)}function _g(e){var t=e.content,n=e.width,r=e.height,a=e.transform,i=e.title,o=e.extra,s=e.watchable,l=s===void 0?!1:s,u=M(M(M({},o.attributes),i?{title:i}:{}),{},{class:o.classes.join(" ")});l&&(u[pr]="");var h=M({},o.styles);Zd(a)&&(h.transform=aE({transform:a,startCentered:!0,width:n,height:r}),h["-webkit-transform"]=h.transform);var d=wl(h);d.length>0&&(u.style=d);var p=[];return p.push({tag:"span",attributes:u,children:[t]}),i&&p.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),p}function PE(e){var t=e.content,n=e.title,r=e.extra,a=M(M(M({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),i=wl(r.styles);i.length>0&&(a.style=i);var o=[];return o.push({tag:"span",attributes:a,children:[t]}),n&&o.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),o}var ju=Ct.styles;function hf(e){var t=e[0],n=e[1],r=e.slice(4),a=Kd(r,1),i=a[0],o=null;return Array.isArray(i)?o={tag:"g",attributes:{class:"".concat(I.cssPrefix,"-").concat(rr.GROUP)},children:[{tag:"path",attributes:{class:"".concat(I.cssPrefix,"-").concat(rr.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(I.cssPrefix,"-").concat(rr.PRIMARY),fill:"currentColor",d:i[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:i}},{found:!0,width:t,height:n,icon:o}}var NE={found:!1,width:512,height:512};function DE(e,t){!i1&&!I.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function pf(e,t){var n=t;return t==="fa"&&I.styleDefault!==null&&(t=$n()),new Promise(function(r,a){if(nn("missingIconAbstract"),n==="fa"){var i=y1(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&ju[t]&&ju[t][e]){var o=ju[t][e];return r(hf(o))}DE(e,t),r(M(M({},NE),{},{icon:I.showMissingIcons&&e?nn("missingIconAbstract")||{}:{}}))})}var Sg=function(){},gf=I.measurePerformance&&Oo&&Oo.mark&&Oo.measure?Oo:{mark:Sg,measure:Sg},Ka='FA "6.4.0"',kE=function(t){return gf.mark("".concat(Ka," ").concat(t," begins")),function(){return _1(t)}},_1=function(t){gf.mark("".concat(Ka," ").concat(t," ends")),gf.measure("".concat(Ka," ").concat(t),"".concat(Ka," ").concat(t," begins"),"".concat(Ka," ").concat(t," ends"))},ah={begin:kE,end:_1},as=function(){};function bg(e){var t=e.getAttribute?e.getAttribute(pr):null;return typeof t=="string"}function AE(e){var t=e.getAttribute?e.getAttribute(Xd):null,n=e.getAttribute?e.getAttribute(Jd):null;return t&&n}function RE(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(I.replacementClass)}function $E(){if(I.autoReplaceSvg===!0)return is.replace;var e=is[I.autoReplaceSvg];return e||is.replace}function LE(e){return oe.createElementNS("http://www.w3.org/2000/svg",e)}function ME(e){return oe.createElement(e)}function S1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?LE:ME:n;if(typeof e=="string")return oe.createTextNode(e);var a=r(e.tag);Object.keys(e.attributes||[]).forEach(function(o){a.setAttribute(o,e.attributes[o])});var i=e.children||[];return i.forEach(function(o){a.appendChild(S1(o,{ceFn:r}))}),a}function jE(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var is={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(a){n.parentNode.insertBefore(S1(a),n)}),n.getAttribute(pr)===null&&I.keepOriginalSource){var r=oe.createComment(jE(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~Bd(n).indexOf(I.replacementClass))return is.replace(t);var a=new RegExp("".concat(I.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var i=r[0].attributes.class.split(" ").reduce(function(s,l){return l===I.replacementClass||l.match(a)?s.toSvg.push(l):s.toNode.push(l),s},{toNode:[],toSvg:[]});r[0].attributes.class=i.toSvg.join(" "),i.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",i.toNode.join(" "))}var o=r.map(function(s){return Ui(s)}).join(` +`);n.setAttribute(pr,""),n.innerHTML=o}};function Eg(e){e()}function b1(e,t){var n=typeof t=="function"?t:as;if(e.length===0)n();else{var r=Eg;I.mutateApproach===zb&&(r=Rn.requestAnimationFrame||Eg),r(function(){var a=$E(),i=ah.begin("mutate");e.map(a),i(),n()})}}var ih=!1;function E1(){ih=!0}function mf(){ih=!1}var zs=null;function Tg(e){if(hg&&I.observeMutations){var t=e.treeCallback,n=t===void 0?as:t,r=e.nodeCallback,a=r===void 0?as:r,i=e.pseudoElementsCallback,o=i===void 0?as:i,s=e.observeMutationsRoot,l=s===void 0?oe:s;zs=new hg(function(u){if(!ih){var h=$n();va(u).forEach(function(d){if(d.type==="childList"&&d.addedNodes.length>0&&!bg(d.addedNodes[0])&&(I.searchPseudoElements&&o(d.target),n(d.target)),d.type==="attributes"&&d.target.parentNode&&I.searchPseudoElements&&o(d.target.parentNode),d.type==="attributes"&&bg(d.target)&&~Yb.indexOf(d.attributeName))if(d.attributeName==="class"&&AE(d.target)){var p=Sl(Bd(d.target)),w=p.prefix,m=p.iconName;d.target.setAttribute(Xd,w||h),m&&d.target.setAttribute(Jd,m)}else RE(d.target)&&a(d.target)})}}),an&&zs.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function FE(){zs&&zs.disconnect()}function IE(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,a){var i=a.split(":"),o=i[0],s=i.slice(1);return o&&s.length>0&&(r[o]=s.join(":").trim()),r},{})),n}function UE(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",a=Sl(Bd(e));return a.prefix||(a.prefix=$n()),t&&n&&(a.prefix=t,a.iconName=n),a.iconName&&a.prefix||(a.prefix&&r.length>0&&(a.iconName=vE(a.prefix,e.innerText)||th(a.prefix,uf(e.innerText))),!a.iconName&&I.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(a.iconName=e.firstChild.data)),a}function zE(e){var t=va(e.attributes).reduce(function(a,i){return a.name!=="class"&&a.name!=="style"&&(a[i.name]=i.value),a},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return I.autoA11y&&(n?t["aria-labelledby"]="".concat(I.replacementClass,"-title-").concat(r||ki()):(t["aria-hidden"]="true",t.focusable="false")),t}function HE(){return{iconName:null,title:null,titleId:null,prefix:null,transform:$t,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Cg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=UE(e),r=n.iconName,a=n.prefix,i=n.rest,o=zE(e),s=ff("parseNodeAttributes",{},e),l=t.styleParser?IE(e):[];return M({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:a,transform:$t,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:l,attributes:o}},s)}var WE=Ct.styles;function T1(e){var t=I.autoReplaceSvg==="nest"?Cg(e,{styleParser:!1}):Cg(e);return~t.extra.classes.indexOf(o1)?nn("generateLayersText",e,t):nn("generateSvgReplacementMutation",e,t)}var Ln=new Set;Qd.map(function(e){Ln.add("fa-".concat(e))});Object.keys(xi[ae]).map(Ln.add.bind(Ln));Object.keys(xi[de]).map(Ln.add.bind(Ln));Ln=Fi(Ln);function Og(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!an)return Promise.resolve();var n=oe.documentElement.classList,r=function(d){return n.add("".concat(pg,"-").concat(d))},a=function(d){return n.remove("".concat(pg,"-").concat(d))},i=I.autoFetchSvg?Ln:Qd.map(function(h){return"fa-".concat(h)}).concat(Object.keys(WE));i.includes("fa")||i.push("fa");var o=[".".concat(o1,":not([").concat(pr,"])")].concat(i.map(function(h){return".".concat(h,":not([").concat(pr,"])")})).join(", ");if(o.length===0)return Promise.resolve();var s=[];try{s=va(e.querySelectorAll(o))}catch{}if(s.length>0)r("pending"),a("complete");else return Promise.resolve();var l=ah.begin("onTree"),u=s.reduce(function(h,d){try{var p=T1(d);p&&h.push(p)}catch(w){i1||w.name==="MissingIcon"&&console.error(w)}return h},[]);return new Promise(function(h,d){Promise.all(u).then(function(p){b1(p,function(){r("active"),r("complete"),a("pending"),typeof t=="function"&&t(),l(),h()})}).catch(function(p){l(),d(p)})})}function GE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;T1(e).then(function(n){n&&b1([n],t)})}function VE(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:df(t||{}),a=n.mask;return a&&(a=(a||{}).icon?a:df(a||{})),e(r,M(M({},n),{},{mask:a}))}}var qE=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,a=r===void 0?$t:r,i=n.symbol,o=i===void 0?!1:i,s=n.mask,l=s===void 0?null:s,u=n.maskId,h=u===void 0?null:u,d=n.title,p=d===void 0?null:d,w=n.titleId,m=w===void 0?null:w,_=n.classes,b=_===void 0?[]:_,v=n.attributes,y=v===void 0?{}:v,S=n.styles,x=S===void 0?{}:S;if(t){var D=t.prefix,k=t.iconName,E=t.icon;return bl(M({type:"icon"},t),function(){return gr("beforeDOMElementCreation",{iconDefinition:t,params:n}),I.autoA11y&&(p?y["aria-labelledby"]="".concat(I.replacementClass,"-title-").concat(m||ki()):(y["aria-hidden"]="true",y.focusable="false")),rh({icons:{main:hf(E),mask:l?hf(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:D,iconName:k,transform:M(M({},$t),a),symbol:o,title:p,maskId:h,titleId:m,extra:{attributes:y,styles:x,classes:b}})})}},KE={mixout:function(){return{icon:VE(qE)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=Og,n.nodeCallback=GE,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,a=r===void 0?oe:r,i=n.callback,o=i===void 0?function(){}:i;return Og(a,o)},t.generateSvgReplacementMutation=function(n,r){var a=r.iconName,i=r.title,o=r.titleId,s=r.prefix,l=r.transform,u=r.symbol,h=r.mask,d=r.maskId,p=r.extra;return new Promise(function(w,m){Promise.all([pf(a,s),h.iconName?pf(h.iconName,h.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(_){var b=Kd(_,2),v=b[0],y=b[1];w([n,rh({icons:{main:v,mask:y},prefix:s,iconName:a,transform:l,symbol:u,maskId:d,title:i,titleId:o,extra:p,watchable:!0})])}).catch(m)})},t.generateAbstractIcon=function(n){var r=n.children,a=n.attributes,i=n.main,o=n.transform,s=n.styles,l=wl(s);l.length>0&&(a.style=l);var u;return Zd(o)&&(u=nn("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),r.push(u||i.icon),{children:r,attributes:a}}}},YE={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.classes,i=a===void 0?[]:a;return bl({type:"layer"},function(){gr("beforeDOMElementCreation",{assembler:n,params:r});var o=[];return n(function(s){Array.isArray(s)?s.map(function(l){o=o.concat(l.abstract)}):o=o.concat(s.abstract)}),[{tag:"span",attributes:{class:["".concat(I.cssPrefix,"-layers")].concat(Fi(i)).join(" ")},children:o}]})}}}},XE={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.title,i=a===void 0?null:a,o=r.classes,s=o===void 0?[]:o,l=r.attributes,u=l===void 0?{}:l,h=r.styles,d=h===void 0?{}:h;return bl({type:"counter",content:n},function(){return gr("beforeDOMElementCreation",{content:n,params:r}),PE({content:n.toString(),title:i,extra:{attributes:u,styles:d,classes:["".concat(I.cssPrefix,"-layers-counter")].concat(Fi(s))}})})}}}},JE={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.transform,i=a===void 0?$t:a,o=r.title,s=o===void 0?null:o,l=r.classes,u=l===void 0?[]:l,h=r.attributes,d=h===void 0?{}:h,p=r.styles,w=p===void 0?{}:p;return bl({type:"text",content:n},function(){return gr("beforeDOMElementCreation",{content:n,params:r}),_g({content:n,transform:M(M({},$t),i),title:s,extra:{attributes:d,styles:w,classes:["".concat(I.cssPrefix,"-layers-text")].concat(Fi(u))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var a=r.title,i=r.transform,o=r.extra,s=null,l=null;if(n1){var u=parseInt(getComputedStyle(n).fontSize,10),h=n.getBoundingClientRect();s=h.width/u,l=h.height/u}return I.autoA11y&&!a&&(o.attributes["aria-hidden"]="true"),Promise.resolve([n,_g({content:n.innerHTML,width:s,height:l,transform:i,title:a,extra:o,watchable:!0})])}}},QE=new RegExp('"',"ug"),xg=[1105920,1112319];function BE(e){var t=e.replace(QE,""),n=fE(t,0),r=n>=xg[0]&&n<=xg[1],a=t.length===2?t[0]===t[1]:!1;return{value:uf(a?t[0]:t),isSecondary:r||a}}function Pg(e,t){var n="".concat(Ub).concat(t.replace(":","-"));return new Promise(function(r,a){if(e.getAttribute(n)!==null)return r();var i=va(e.children),o=i.filter(function(E){return E.getAttribute(lf)===t})[0],s=Rn.getComputedStyle(e,t),l=s.getPropertyValue("font-family").match(Vb),u=s.getPropertyValue("font-weight"),h=s.getPropertyValue("content");if(o&&!l)return e.removeChild(o),r();if(l&&h!=="none"&&h!==""){var d=s.getPropertyValue("content"),p=~["Sharp"].indexOf(l[2])?de:ae,w=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?Pi[p][l[2].toLowerCase()]:qb[p][u],m=BE(d),_=m.value,b=m.isSecondary,v=l[0].startsWith("FontAwesome"),y=th(w,_),S=y;if(v){var x=yE(_);x.iconName&&x.prefix&&(y=x.iconName,w=x.prefix)}if(y&&!b&&(!o||o.getAttribute(Xd)!==w||o.getAttribute(Jd)!==S)){e.setAttribute(n,S),o&&e.removeChild(o);var D=HE(),k=D.extra;k.attributes[lf]=t,pf(y,w).then(function(E){var C=rh(M(M({},D),{},{icons:{main:E,mask:nh()},prefix:w,iconName:S,extra:k,watchable:!0})),O=oe.createElement("svg");t==="::before"?e.insertBefore(O,e.firstChild):e.appendChild(O),O.outerHTML=C.map(function(N){return Ui(N)}).join(` +`),e.removeAttribute(n),r()}).catch(a)}else r()}else r()})}function ZE(e){return Promise.all([Pg(e,"::before"),Pg(e,"::after")])}function eT(e){return e.parentNode!==document.head&&!~Hb.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(lf)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Ng(e){if(an)return new Promise(function(t,n){var r=va(e.querySelectorAll("*")).filter(eT).map(ZE),a=ah.begin("searchPseudoElements");E1(),Promise.all(r).then(function(){a(),mf(),t()}).catch(function(){a(),mf(),n()})})}var tT={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=Ng,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,a=r===void 0?oe:r;I.searchPseudoElements&&Ng(a)}}},Dg=!1,nT={mixout:function(){return{dom:{unwatch:function(){E1(),Dg=!0}}}},hooks:function(){return{bootstrap:function(){Tg(ff("mutationObserverCallbacks",{}))},noAuto:function(){FE()},watch:function(n){var r=n.observeMutationsRoot;Dg?mf():Tg(ff("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},kg=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,a){var i=a.toLowerCase().split("-"),o=i[0],s=i.slice(1).join("-");if(o&&s==="h")return r.flipX=!0,r;if(o&&s==="v")return r.flipY=!0,r;if(s=parseFloat(s),isNaN(s))return r;switch(o){case"grow":r.size=r.size+s;break;case"shrink":r.size=r.size-s;break;case"left":r.x=r.x-s;break;case"right":r.x=r.x+s;break;case"up":r.y=r.y-s;break;case"down":r.y=r.y+s;break;case"rotate":r.rotate=r.rotate+s;break}return r},n)},rT={mixout:function(){return{parse:{transform:function(n){return kg(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-transform");return a&&(n.transform=kg(a)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,a=n.transform,i=n.containerWidth,o=n.iconWidth,s={transform:"translate(".concat(i/2," 256)")},l="translate(".concat(a.x*32,", ").concat(a.y*32,") "),u="scale(".concat(a.size/16*(a.flipX?-1:1),", ").concat(a.size/16*(a.flipY?-1:1),") "),h="rotate(".concat(a.rotate," 0 0)"),d={transform:"".concat(l," ").concat(u," ").concat(h)},p={transform:"translate(".concat(o/2*-1," -256)")},w={outer:s,inner:d,path:p};return{tag:"g",attributes:M({},w.outer),children:[{tag:"g",attributes:M({},w.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:M(M({},r.icon.attributes),w.path)}]}]}}}},Fu={x:0,y:0,width:"100%",height:"100%"};function Ag(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function aT(e){return e.tag==="g"?e.children:[e]}var iT={hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-mask"),i=a?Sl(a.split(" ").map(function(o){return o.trim()})):nh();return i.prefix||(i.prefix=$n()),n.mask=i,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,a=n.attributes,i=n.main,o=n.mask,s=n.maskId,l=n.transform,u=i.width,h=i.icon,d=o.width,p=o.icon,w=rE({transform:l,containerWidth:d,iconWidth:u}),m={tag:"rect",attributes:M(M({},Fu),{},{fill:"white"})},_=h.children?{children:h.children.map(Ag)}:{},b={tag:"g",attributes:M({},w.inner),children:[Ag(M({tag:h.tag,attributes:M(M({},h.attributes),w.path)},_))]},v={tag:"g",attributes:M({},w.outer),children:[b]},y="mask-".concat(s||ki()),S="clip-".concat(s||ki()),x={tag:"mask",attributes:M(M({},Fu),{},{id:y,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[m,v]},D={tag:"defs",children:[{tag:"clipPath",attributes:{id:S},children:aT(p)},x]};return r.push(D,{tag:"rect",attributes:M({fill:"currentColor","clip-path":"url(#".concat(S,")"),mask:"url(#".concat(y,")")},Fu)}),{children:r,attributes:a}}}},oT={provides:function(t){var n=!1;Rn.matchMedia&&(n=Rn.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],a={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:M(M({},a),{},{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"})});var o=M(M({},i),{},{attributeName:"opacity"}),s={tag:"circle",attributes:M(M({},a),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||s.children.push({tag:"animate",attributes:M(M({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:M(M({},o),{},{values:"1;0;1;1;0;1;"})}),r.push(s),r.push({tag:"path",attributes:M(M({},a),{},{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:n?[]:[{tag:"animate",attributes:M(M({},o),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:M(M({},a),{},{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:M(M({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},sT={hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-symbol"),i=a===null?!1:a===""?!0:a;return n.symbol=i,n}}}},lT=[oE,KE,YE,XE,JE,tT,nT,rT,iT,oT,sT];SE(lT,{mixoutsTo:ot});ot.noAuto;ot.config;ot.library;ot.dom;var vf=ot.parse;ot.findIconDefinition;ot.toHtml;var uT=ot.icon;ot.layer;ot.text;ot.counter;var C1={exports:{}},cT="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",fT=cT,dT=fT;function O1(){}function x1(){}x1.resetWarningCache=O1;var hT=function(){function e(r,a,i,o,s,l){if(l!==dT){var u=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 u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:x1,resetWarningCache:O1};return n.PropTypes=n,n};C1.exports=hT();var pT=C1.exports;const K=nl(pT);function Rg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function wn(e){for(var t=1;t=0)&&(n[a]=e[a]);return n}function mT(e,t){if(e==null)return{};var n=gT(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yf(e){return vT(e)||yT(e)||wT(e)||_T()}function vT(e){if(Array.isArray(e))return wf(e)}function yT(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wT(e,t){if(e){if(typeof e=="string")return wf(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 wf(e,t)}}function wf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(l){return N1(e,l)}),a=Object.keys(t.attributes||{}).reduce(function(l,u){var h=t.attributes[u];switch(u){case"class":l.attrs.className=h,delete t.attributes.class;break;case"style":l.attrs.style=CT(h);break;default:u.indexOf("aria-")===0||u.indexOf("data-")===0?l.attrs[u.toLowerCase()]=h:l.attrs[P1(u)]=h}return l},{attrs:{}}),i=n.style,o=i===void 0?{}:i,s=mT(n,ET);return a.attrs.style=wn(wn({},a.attrs.style),o),e.apply(void 0,[t.tag,wn(wn({},a.attrs),s)].concat(yf(r)))}var D1=!1;try{D1=!0}catch{}function OT(){if(!D1&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function $g(e){if(e&&Hs(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(vf.icon)return vf.icon(e);if(e===null)return null;if(e&&Hs(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 Iu(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Kr({},e,t):{}}var Fe=Sn.forwardRef(function(e,t){var n=e.icon,r=e.mask,a=e.symbol,i=e.className,o=e.title,s=e.titleId,l=e.maskId,u=$g(n),h=Iu("classes",[].concat(yf(ST(e)),yf(i.split(" ")))),d=Iu("transform",typeof e.transform=="string"?vf.transform(e.transform):e.transform),p=Iu("mask",$g(r)),w=uT(u,wn(wn(wn(wn({},h),d),p),{},{symbol:a,title:o,titleId:s,maskId:l}));if(!w)return OT("Could not find icon",u),null;var m=w.abstract,_={ref:t};return Object.keys(e).forEach(function(b){Fe.defaultProps.hasOwnProperty(b)||(_[b]=e[b])}),xT(m[0],_)});Fe.displayName="FontAwesomeIcon";Fe.propTypes={beat:K.bool,border:K.bool,beatFade:K.bool,bounce:K.bool,className:K.string,fade:K.bool,flash:K.bool,mask:K.oneOfType([K.object,K.array,K.string]),maskId:K.string,fixedWidth:K.bool,inverse:K.bool,flip:K.oneOf([!0,!1,"horizontal","vertical","both"]),icon:K.oneOfType([K.object,K.array,K.string]),listItem:K.bool,pull:K.oneOf(["right","left"]),pulse:K.bool,rotation:K.oneOf([0,90,180,270]),shake:K.bool,size:K.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:K.bool,spinPulse:K.bool,spinReverse:K.bool,symbol:K.oneOfType([K.bool,K.string]),title:K.string,titleId:K.string,transform:K.oneOfType([K.string,K.object]),swapOpacity:K.bool};Fe.defaultProps={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};var xT=N1.bind(null,Sn.createElement),PT={prefix:"fas",iconName:"caret-right",icon:[256,512,[],"f0da","M246.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-128-128c-9.2-9.2-22.9-11.9-34.9-6.9s-19.8 16.6-19.8 29.6l0 256c0 12.9 7.8 24.6 19.8 29.6s25.7 2.2 34.9-6.9l128-128z"]},Lg={prefix:"fas",iconName:"square-check",icon:[448,512,[9745,9989,61510,"check-square"],"f14a","M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zM337 209L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},NT={prefix:"fas",iconName:"arrows-rotate",icon:[512,512,[128472,"refresh","sync"],"f021","M105.1 202.6c7.7-21.8 20.2-42.3 37.8-59.8c62.5-62.5 163.8-62.5 226.3 0L386.3 160H336c-17.7 0-32 14.3-32 32s14.3 32 32 32H463.5c0 0 0 0 0 0h.4c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32s-32 14.3-32 32v51.2L414.4 97.6c-87.5-87.5-229.3-87.5-316.8 0C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5zM39 289.3c-5 1.5-9.8 4.2-13.7 8.2c-4 4-6.7 8.8-8.1 14c-.3 1.2-.6 2.5-.8 3.8c-.3 1.7-.4 3.4-.4 5.1V448c0 17.7 14.3 32 32 32s32-14.3 32-32V396.9l17.6 17.5 0 0c87.5 87.4 229.3 87.4 316.7 0c24.4-24.4 42.1-53.1 52.9-83.7c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.5 62.5-163.8 62.5-226.3 0l-.1-.1L125.6 352H176c17.7 0 32-14.3 32-32s-14.3-32-32-32H48.4c-1.6 0-3.2 .1-4.8 .3s-3.1 .5-4.6 1z"]},Mg={prefix:"fas",iconName:"square",icon:[448,512,[9632,9723,9724,61590],"f0c8","M0 96C0 60.7 28.7 32 64 32H384c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96z"]},DT={prefix:"fas",iconName:"circle-question",icon:[512,512,[62108,"question-circle"],"f059","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM169.8 165.3c7.9-22.3 29.1-37.3 52.8-37.3h58.3c34.9 0 63.1 28.3 63.1 63.1c0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6c-13.3 0-24-10.7-24-24V250.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1c0-8.4-6.8-15.1-15.1-15.1H222.6c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},kT={prefix:"fas",iconName:"floppy-disk",icon:[448,512,[128190,128426,"save"],"f0c7","M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V173.3c0-17-6.7-33.3-18.7-45.3L352 50.7C340 38.7 323.7 32 306.7 32H64zm0 96c0-17.7 14.3-32 32-32H288c17.7 0 32 14.3 32 32v64c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V128zM224 288a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"]},AT={prefix:"fas",iconName:"caret-down",icon:[320,512,[],"f0d7","M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"]},RT={prefix:"fas",iconName:"arrow-right-arrow-left",icon:[448,512,[8644,"exchange"],"f0ec","M438.6 150.6c12.5-12.5 12.5-32.8 0-45.3l-96-96c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.7 96 32 96C14.3 96 0 110.3 0 128s14.3 32 32 32l306.7 0-41.4 41.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l96-96zm-333.3 352c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 416 416 416c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0 41.4-41.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-96 96c-12.5 12.5-12.5 32.8 0 45.3l96 96z"]},$T=RT,LT={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},MT={prefix:"fas",iconName:"x",icon:[384,512,[120],"58","M376.6 84.5c11.3-13.6 9.5-33.8-4.1-45.1s-33.8-9.5-45.1 4.1L192 206 56.6 43.5C45.3 29.9 25.1 28.1 11.5 39.4S-3.9 70.9 7.4 84.5L150.3 256 7.4 427.5c-11.3 13.6-9.5 33.8 4.1 45.1s33.8 9.5 45.1-4.1L192 306 327.4 468.5c11.3 13.6 31.5 15.4 45.1 4.1s15.4-31.5 4.1-45.1L233.7 256 376.6 84.5z"]};const jT="_headerDiagnosticsBtnContainer_1ogb6_1",FT="_taggleBtn_1ogb6_12",IT="_toggleBtnInnerOn_1ogb6_26",UT="_toggleBtnInnerOff_1ogb6_27",zT="_faIcon_1ogb6_48",Pr={headerDiagnosticsBtnContainer:jT,taggleBtn:FT,toggleBtnInnerOn:IT,toggleBtnInnerOff:UT,faIcon:zT};function HT(){const{panelState:e,setPanelState:t,setViewInLogPanel:n}=P.useContext(it);function r(){t(a=>{const i={...a},o=!i.diagnostics.show;i.diagnostics.show=o;const s=localStorage.getItem("appSetting"),l=JSON.parse(s);return l.diagnosticsPanelShow=o,localStorage.setItem("appSetting",JSON.stringify(l)),i}),n(a=>{const i={...a};return e.diagnostics.show&&(i.streamTable=!1,i.diagnosticsLogs=!0),e.diagnostics.show||(i.streamTable=!0,i.diagnosticsLogs=!1),i})}return T.jsxs("div",{id:"headerDiagnosticsBtn",className:`header_each_btn ${Pr.headerDiagnosticsBtnContainer}`,onClick:r,children:[T.jsx("span",{className:Pr.taggleBtn,children:T.jsx("span",{className:e.diagnostics.show?Pr.toggleBtnInnerOn:Pr.toggleBtnInnerOff,children:e.diagnostics.show?T.jsx(Fe,{icon:LT,className:Pr.faIcon}):T.jsx(Fe,{icon:MT,className:Pr.faIcon})})}),T.jsx("p",{children:"Diagnostics"})]})}const WT="_headerLeftMainContainer_1bzdp_1",GT="_headerLogoContainer_1bzdp_8",VT="_headerLogo_1bzdp_8",qT="_headerLogoText_1bzdp_21",Lo={headerLeftMainContainer:WT,headerLogoContainer:GT,headerLogo:VT,headerLogoText:qT},KT="/assets/idaes-logo-4b9fada6.png";function YT(){return T.jsxs("div",{className:Lo.headerLeftMainContainer,children:[T.jsxs("div",{id:"headerLogoContainer",className:`headerLogoContainer ${Lo.headerLogoContainer}`,children:[T.jsx("img",{src:KT,alt:"idaes logo for header component",id:"headerLogo",className:`${Lo.headerLogo}`}),T.jsx("p",{id:"headerLogoText",className:`${Lo.headerLogoText}`,children:"IDAES"})]}),T.jsx("div",{children:T.jsx(HT,{})})]})}const XT="_header_flowsheet_name_3hhh9_1",JT={header_flowsheet_name:XT};function QT(){const{fv_id:e}=P.useContext(it);return T.jsx("p",{id:"flowsheet_name_title",className:`${JT.header_flowsheet_name}`,children:e||"Name not found"})}function BT(){return T.jsxs("li",{id:"refresh_btn",className:"header_each_btn",children:[T.jsx(Fe,{icon:NT,className:"mr-sm"}),"Refresh"]})}function ZT(){return T.jsxs("li",{id:"save_btn",className:"header_each_btn",children:[T.jsx(Fe,{icon:kT,className:"mr-sm"}),"Save"]})}const eC="_link_5oxur_1",tC={link:eC};function nC(){return T.jsxs("li",{id:"help_btn",className:"header_each_btn",children:[T.jsx(Fe,{icon:DT,className:"mr-sm"}),T.jsx("a",{href:"https://idaes-pse.readthedocs.io/en/latest/tutorials/getting_started/index.html",target:"_blank",className:`${tC.link}`,children:"Help"})]})}function rC(){function e(){["mosaicLayout","layout","diagnosticsPanelParams"].forEach(n=>{localStorage.removeItem(n)}),window.location.reload()}return T.jsxs("li",{id:"save_btn",className:"header_each_btn",onClick:()=>{e()},children:[T.jsx(Fe,{icon:$T,className:"mr-sm"}),"Reset Layout"]})}const aC="_header_fn_btn_wrapper_ul_18i4g_1",iC={header_fn_btn_wrapper_ul:aC};function oC(){return T.jsxs("ul",{className:`${iC.header_fn_btn_wrapper_ul}`,children:[T.jsx(BT,{}),T.jsx(ZT,{}),T.jsx(rC,{}),T.jsx(nC,{})]})}const sC="_header_container_1gczp_1",lC={header_container:sC};function uC(){return P.useContext(it),T.jsxs("header",{id:"header",className:`row ${lC.header_container}`,children:[T.jsx(YT,{}),T.jsx(QT,{}),T.jsx(oC,{})]})}const _f={attrs:{g:{},text:{display:"block","font-size":"7","text-anchor":"left"},rect:{width:"2000",height:"2000",fill:"white",rx:0,ry:0,"fill-opacity":"1"},tspan:{fill:"white",dy:10}}},Sf={attrs:{text:{display:"none"},rect:{"fill-opacity":"0"}}},Ws=0,jg=1;class cC{constructor(t){z(this,"_app");z(this,"joint");z(this,"_originalLinkStroke");z(this,"_originalLinkStrokeWidth");z(this,"_highlightLinkStroke");z(this,"_highlightLinkStrokeWidth");z(this,"_graph");z(this,"_paper");z(this,"_paperScroller");z(this,"_selection");this._app=t;let n=joint.shapes.standard,r=800,a=800,i=1;this._originalLinkStroke="#979797",this._originalLinkStrokeWidth=2,this._highlightLinkStroke="#0B79BD",this._highlightLinkStrokeWidth=4,this._graph=new joint.dia.Graph([],{cellNamespace:{standard:n}}),this._paper=new joint.dia.Paper({model:this._graph,cellViewNamespace:{standard:n},width:r,height:a,gridSize:i,drawGrid:!1,interactive:!0}),this._paperScroller=new joint.ui.PaperScroller({padding:100,paper:this._paper,autoResizePaper:!0,scrollWhileDragging:!0,baseWidth:10,baseHeight:10,cursor:"grab"}),this._selection=new joint.ui.Selection({paper:this._paper}),this._selection.removeHandle("remove"),this._selection.removeHandle("rotate"),this._selection.removeHandle("resize"),self=this,document.getElementById("fv").append(self._paperScroller.render().el),self.preSetupRegisterEvents()}get graph(){return this._graph}set graph(t){this._graph.fromJSON(t)}get paper(){return self._paper}get paperScroller(){return self._paperScroller}get selection(){return self._selection}translate_for_angle(t){return{0:[0,5],90:[38,-35],180:[0,-72],270:[-38,-34]}[t]}preSetupRegisterEvents(){this._graph.on("change:position change:angle change:vertices",()=>{this._app.graphChanged()});let t=document.getElementById("fv");t||console.error("idaes canvas is not found");const n=document.querySelector("#stream-table-data");t.addEventListener("HighlightStream",r=>{const a=t.querySelector(`[model-id=${r.detail.streamId}]`);a&&a.dispatchEvent(new Event("HighlightStream"))}),t.addEventListener("RemoveHighlightStream",r=>{const a=t.querySelector(`[model-id=${r.detail.streamId}]`);a&&a.dispatchEvent(new Event("RemoveHighlightStream"))}),self._paper.on("blank:pointerdown",self._selection.startSelecting),self._paper.on("element:pointerup",function(r,a){console.log("work"),(a.shiftKey||a.metaKey)&&self._selection.collection.add(r.model)}),self._selection.on("selection-box:pointerdown",function(r,a){(a.shiftKey||a.metaKey)&&self._selection.collection.remove(r.model)}),self._paper.on("element:contextmenu",function(r,a){r.model.rotate(90);const i=r.model.angle(),o=self.translate_for_angle(i,0,0);o===void 0?console.error(`Angle of unit model must be either 0, 90, 180, or 270. Angle is ${i}`):r.model.attr("label/transform",`translate(${o[0]}, ${o[1]}) rotate(-${i})`)}),self._paper.on("link:mouseenter",function(r){let a=document.querySelector("#stream-table-data"),i=document.querySelector("#fv");if(!a||!i)return;let o=new joint.linkTools.Vertices({focusOpacity:.5,redundancyRemoval:!0,snapRadius:20,vertexAdding:!0}),s=new joint.linkTools.Segments,l=new joint.dia.ToolsView({tools:[o,s]});r.addTools(l),r.showTools();const u=new CustomEvent("HighlightStream",{detail:{streamId:r.model.id}});i.dispatchEvent(u),a.dispatchEvent(u)}),self._paper.on("link:mouseleave",function(r){r.hideTools();const a=new CustomEvent("RemoveHighlightStream",{detail:{streamId:r.model.id}});t&&t.dispatchEvent(a),n&&n.dispatchEvent(a)}),self._paper.on("link:contextmenu",function(r,a){r.model.label(Ws).attrs.text.display==="none"?r.model.label(Ws,_f):r.model.label(0,Sf)})}zoomToFit(t=30){this._paperScroller.zoomToFit({padding:t})}postSetupRegisterEvents(){this.zoomToFit(),this._graph.getLinks().forEach(t=>{let n=t.findView(this._paper);n.el.addEventListener("HighlightStream",()=>{n.model.attr({line:{stroke:this._highlightLinkStroke,"stroke-width":this._highlightLinkStrokeWidth}})}),n.el.addEventListener("RemoveHighlightStream",()=>{n.model.attr({line:{stroke:this._originalLinkStroke,"stroke-width":this._originalLinkStrokeWidth}})})})}reorderLabel(t){let n=null,r=null;if(t.cells.forEach((i,o)=>{i.id.includes("liq")&&(n=o),i.id.includes("vap")&&(r=o)}),!n||!r)return;const a=t.cells[n];t.cells[n]=t.cells[r],t.cells[r]=a,t.cells[n]}setup(t){const n="/assets/image/flowsheet_icons/";t.cells.reverse(),t.cells.forEach(r=>{if(r.type==="standard.Image"){let a=n+r.attrs.image.xlinkHref.match(/([^\/]+\.svg)$/)[0];r.attrs.image={...r.attrs.image,xlinkHref:a}}r.labels&&(r.z=1e3,r.labels[0])}),this.reorderLabel(t),this._graph.fromJSON(t),this.postSetupRegisterEvents()}}class fC{constructor(t){z(this,"_model");this._model=t}get model(){return this._model}set model(t){this._model=t}findCellIndex(t,n){for(let r=0;r{const o=i.getEndAnchor("source"),s=i.getEndAnchor("target"),l=new g.Point(o.x+t.source.x,o.y+t.source.y),u=new g.Point(s.x+t.destination.x,s.y+t.destination.y),h=i.getEndView("source").model.angle(),d=i.getEndView("target").model.angle(),p=h%180===0?1:-1,w=d%180===0?1:-1,m=l.rotate(o,p*h),_=u.rotate(s,w*d);return joint.routers.manhattan([m,...r,_],a,i)}}processRoutingConfig(){const t=this._model.routing_config;for(let n in t){const r=this.findCellIndex(n,"standard.Link");let a=t[n].cell_config.gap,i=this.routerGapFnFactory(a);this._model.cells[r].router=i}return this._model.cells.map(n=>{if(n.labels&&n.labels[1].position)return n.labels.reverse(),n}),this._model}}let dC=class{constructor(t,n,r){z(this,"_app");z(this,"UNFIXED","unfixed");z(this,"FIXED","fixed");z(this,"PARAMETER","parameter");z(this,"EXPRESSION","expression");z(this,"highlightFn");z(this,"removeHighlightFn");z(this,"gridCellMouseEnterFn");z(this,"gridCellMouseLeaveFn");z(this,"existing_var_types");z(this,"_gridOptions");z(this,"viewInLogPanel");this._app=t,this.viewInLogPanel=r,this.defineTableBrushingFns(),this.initTable(n),this.existing_var_types=new Set}initTable(t){this.clearTable(),this.emptyVarTypesPanel(),this.fillTable(t),this.setupEvents()}clearTable(){const t=document.querySelector("#stream-table-data");t&&(t.innerHTML="")}emptyVarTypesPanel(){this.existing_var_types=new Set;const t=document.querySelector("#existing-variable-types");t.innerHTML=""}fillVarTypesPanel(){const t=document.querySelector("#existing-variable-types"),n="streamtable-vartype-element";if(this.existing_var_types.has(this.FIXED)||this.existing_var_types.has(this.PARAMETER)||this.existing_var_types.has(this.EXPRESSION)){const r=document.createElement("p");r.innerHTML="Annotated Variable Types:",r.className=n,t.appendChild(r)}this.existing_var_types.forEach(r=>{switch(r){case this.UNFIXED:console.debug("Unfixed variables don't have a visual indicator");break;case this.FIXED:case this.PARAMETER:case this.EXPRESSION:const a=document.createElement("span");a.className=n;const i=document.createElement("span"),o=document.createElement("span");o.className="streamtable-vartype-text",i.className=`streamtable-vartype-${r}`,i.title=r,o.innerHTML=r,a.appendChild(i),a.appendChild(o),t.appendChild(a);break;default:console.warn("Couldn't identify Variable type")}})}fillTable(t){let n=t.model.stream_table;const r=document.querySelector("#hide-fields-list");r&&(r.innerHTML="");let a=n.columns,i=[];for(let w in a){let m=a[w];if(m!==""&&m!=="Units"&&!m.includes("_vartype"))if(m==="Variable")i.push({headerName:m,field:m,filter:"agTextColumnFilter",sortable:!0,resizable:!0,pinned:"left",cellRenderer:_=>''+_.value+""});else{i.push({headerName:m,field:m,filter:"agTextColumnFilter",sortable:!0,resizable:!0,cellRenderer:v=>''+v.value+""});let _=document.createElement("li"),b=document.createElement("div");b.className="checkbox",b.innerHTML=` + + `,_.appendChild(b),r.appendChild(_)}}let o=n.index,s=n.data,l=[],u="Variable";for(let w in o){let m={},_=s[w];for(let b in a)if(a[b]==="Units")_[b]&&_[b].html?m[u]=m[u]+''+_[b].html+"":m[u]=m[u]+'';else if(a[b]==="Variable")m[a[b]]=_[b];else{var[h,d]=_[b];let v="";switch(d){case this.UNFIXED:this.existing_var_types.add(d);break;case this.FIXED:case this.PARAMETER:case this.EXPRESSION:this.existing_var_types.add(d),v=``;break;default:console.warn(`Couldn't identify Variable type: ${d}`)}m[a[b]]=v+''+h+""}l.push(m)}this.fillVarTypesPanel(),this._gridOptions={columnDefs:i,rowData:l,suppressColumnVirtualisation:!0},this._gridOptions.getRowStyle=function(w){if(w.node.rowIndex%2===0)return{background:"#f3f3f3"}};let p=document.querySelector("#stream-table-data");new agGrid.Grid(p,this._gridOptions),this._gridOptions.columnApi.autoSizeAllColumns()}defineTableBrushingFns(){let t=document.querySelector("#stream-table-data"),n=document.querySelector("#fv");!t||!n||!this.viewInLogPanel.streamTable||(this.highlightFn=r=>{let a=t.querySelectorAll(`[col-id=${r.detail.streamId}]`);a.forEach((i,o)=>{i.getAttribute("role")=="columnheader"?i.classList.add("link-streamtable-hover-columnheader"):o==a.length-1?i.classList.add("link-streamtable-hover-lastrow"):i.classList.add("link-streamtable-hover")})},this.removeHighlightFn=r=>{console.log("remove hight light"),t.querySelectorAll(`[col-id=${r.detail.streamId}]`).forEach(i=>{i.classList.remove("link-streamtable-hover-columnheader"),i.classList.remove("link-streamtable-hover-lastrow"),i.classList.remove("link-streamtable-hover")})},this.gridCellMouseEnterFn=r=>{const a=r.target.getAttribute("col-id");if(a){const i=new CustomEvent("HighlightStream",{detail:{streamId:a}});t.dispatchEvent(i),n.dispatchEvent(i)}},this.gridCellMouseLeaveFn=r=>{const a=r.target.getAttribute("col-id"),i=new CustomEvent("RemoveHighlightStream",{detail:{streamId:a}});t.dispatchEvent(i),n.dispatchEvent(i)})}registerTableBrushing(){let t=document.querySelector("#stream-table-data");document.querySelector("#fv");let n=document.querySelectorAll("[col-id]");t.removeEventListener("HighlightStream",this.highlightFn),t.removeEventListener("RemoveHighlightStream",this.removeHighlightFn),n.forEach(r=>{r.removeEventListener("mouseenter",this.gridCellMouseEnterFn),r.removeEventListener("mouseleave",this.gridCellMouseLeaveFn)}),t.addEventListener("HighlightStream",this.highlightFn),t.addEventListener("RemoveHighlightStream",this.removeHighlightFn),n.forEach(r=>{r.addEventListener("mouseenter",this.gridCellMouseEnterFn),r.addEventListener("mouseleave",this.gridCellMouseLeaveFn)})}setupEvents(){let n=document.querySelector("#hide-fields-list").querySelectorAll("input[type=checkbox]"),r=this;n.forEach(function(a){a.addEventListener("change",function(i){var l;i.preventDefault();let o=i.target,s=(l=o.parentElement)==null?void 0:l.querySelector("span");o.checked?(s.style.display="block",r._gridOptions.columnApi.setColumnVisible(o.id,!0),r.registerTableBrushing()):(s.style.display="none",r._gridOptions.columnApi.setColumnVisible(o.id,!1))})}),this.registerTableBrushing()}};class hC{constructor(t,n,r,a,i,o,s){z(this,"_app");z(this,"_paper");z(this,"_stream_table");z(this,"flowsheetId");z(this,"getFSUrl");z(this,"putFSUrl");z(this,"isFvShow");z(this,"zoomRate");z(this,"toggleStreamNameBtn");z(this,"toggleLabelsBtn");z(this,"zoomInBtn");z(this,"zoomOutBtn");z(this,"zoomFitBtn");z(this,"zoomInHandler");z(this,"zoomOutHandler");z(this,"zoomFitHandler");this._app=t,this._paper=n,this._stream_table=r,this.flowsheetId=a,this.getFSUrl=i,this.putFSUrl=o,this.isFvShow=s,this.zoomRate=.2,this.zoomInHandler=void 0,this.zoomOutHandler=void 0,this.zoomFitHandler=void 0,this.registerEventExportFlowsheetToPng(),this.registerEventExportFlowsheetToSvg(),this.registerEventRefresh(this.getFSUrl,this.putFSUrl),this.registerEventSave(this.putFSUrl),this.zoomInBtn=document.querySelector("#zoom-in-btn"),this.zoomOutBtn=document.querySelector("#zoom-out-btn"),this.zoomFitBtn=document.querySelector("#zoom-to-fit"),s&&(this.toggleStreamNameBtn=document.querySelector("#stream-names-toggle"),this.toggleStreamNameBtn&&this.registerToggleStreamNamesEvent(this.toggleStreamNameBtn),this.toggleLabelsBtn=document.querySelector("#show-label-toggle"),this.toggleLabelsBtn&&this.registerEventToggleLabel(this.toggleLabelsBtn),this.zoomInBtn&&this.zoomOutBtn&&this.zoomFitBtn&&this.registerZoomEvent(this.zoomInBtn,this.zoomOutBtn,this.zoomFitBtn))}registerZoomEvent(t,n,r){this.zoomInHandler=()=>this.zoomInEvent(this._paper.paperScroller,this.zoomRate),this.zoomOutHandler=()=>this.zoomOutEvent(this._paper.paperScroller,this.zoomRate),this.zoomFitHandler=()=>this.zoomFitEvent(),t.addEventListener("click",this.zoomInHandler),n.addEventListener("click",this.zoomOutHandler),r.addEventListener("click",this.zoomFitHandler)}zoomInEvent(t,n){t.zoom(n,{max:100})}zoomOutEvent(t,n){t.zoom(-n,{min:.01})}zoomFitEvent(){this._paper.zoomToFit()}registerToggleStreamNamesEvent(t){t.addEventListener("click",()=>{t.getAttribute("data-toggle")==="true"?this._paper._graph.getLinks().forEach(function(r){r.label(jg,Sf)}):this._paper._graph.getLinks().forEach(function(r){r.label(jg,_f)})})}registerEventExportFlowsheetToPng(){const t=document.querySelector("#headerExportImageBtn");document.querySelector("#headerExportSvgBtn"),t.addEventListener("click",()=>{let n=this._paper.paper;const r=this.flowsheetId;n.hideTools(),n.toPNG(function(a){new joint.ui.Lightbox({image:a,downloadable:!0,fileName:r.concat(".png")}).open()},{scale:2,pixelRatio:2,preserveDimensions:!0,convertImagesToDataUris:!0,useComputedStyles:!0,stylesheet:".scalable * { vector-effect: non-scaling-stroke }"})})}registerEventExportFlowsheetToSvg(){document.querySelector("#headerExportSvgBtn").addEventListener("click",()=>{let n=this._paper.paper;const r=this.flowsheetId;n.hideTools(),n.toSVG(a=>{const i=new Blob([a],{type:"image/svg+xml;charset=utf-8"}),o=URL.createObjectURL(i);new joint.ui.Lightbox({image:o,downloadable:!0,fileName:r.concat(".svg")}).open()},{scale:2,pixelRatio:2,preserveDimensions:!0,convertImagesToDataUris:!0,useComputedStyles:!0,stylesheet:".scalable * { vector-effect: non-scaling-stroke }"})})}registerEventToggleLabel(t){t.addEventListener("click",()=>{t.getAttribute("data-toggle")=="true"?this._paper._graph.getLinks().forEach(function(r){r.label(Ws,_f)}):this._paper._graph.getLinks().forEach(function(r){r.label(Ws,Sf)})})}registerEventRefresh(t,n){document.querySelector("#refresh_btn").addEventListener("click",()=>{this._app.refreshModel(t,n,this._paper)})}registerEventSave(t){document.querySelector("#save_btn").addEventListener("click",()=>{this._app.saveModel(t,this._paper.graph)})}cleanUpEvent(){let t=document.getElementById("zoom-in-btn"),n=document.getElementById("zoom-out-btn"),r=document.getElementById("zoom-to-fit");if(t){let u=t.cloneNode(!0);t.parentNode.replaceChild(u,t)}if(n){let u=n.cloneNode(!0);n.parentNode.replaceChild(u,n)}if(r){let u=r.cloneNode(!0);r.parentNode.replaceChild(u,r)}let a=document.getElementById("flowsheet_component_header_dropdown_container"),i=document.getElementById("headerExportImageBtn"),o=document.getElementById("headerExportSvgBtn");if(i){let u=i.cloneNode(!0);a?a.replaceChild(u,i):console.log("error no parent nodes")}if(o){let u=o.cloneNode(!0);a?a.replaceChild(u,o):console.log("error download svg btn replacement failed, in toolbar, parent not found!")}let s=document.getElementById("save_btn");if(s){let u=s.cloneNode(!0);s.parentNode?s.parentNode.replaceChild(u,s):console.log("error save btn replacement error handle in toolbar, parent not found!")}let l=document.getElementById("refresh_btn");if(l){let u=l.cloneNode(!0);l.parentNode?l.parentNode.replaceChild(u,l):console.log("error refresh btn replacement error handle in toolbar, parent not found!")}}}const pC="_message_bar_container_8b2qe_1",gC="_messageBarTextContainer_8b2qe_9",mC="_messageBarShowUp_8b2qe_1",vC="_bg_successful_8b2qe_40",yC="_bg_error_8b2qe_44",os={message_bar_container:pC,messageBarTextContainer:gC,messageBarShowUp:mC,bg_successful:vC,bg_error:yC};function ir(e,t,n){let r="loading...";e=="refreshFS"&&t&&(r="Flowsheet refreshed."),e=="refreshFS"&&!t&&(r="Flowsheet refresh failed! Please reload the page!"),e=="userSave"&&t&&(r="Flowsheet saved."),e=="userSave"&&!t&&(r="Flowsheet save failed! Please restart the server!"),e=="diagnosticRefresh"&&t&&(r="Diagnostics refreshed."),e=="diagnosticRefresh"&&!t&&(r="Diagnostics refresh failed! Please restart the server!"),e=="diagnosticFNRunError"&&!t&&(n?r=n:r="Run diagnostics failed, please check your python terminal.");const a=` +
+

${r}

+
+ `,i=document.getElementById("messageBarContainer");i.innerHTML=a;const o=setTimeout(()=>{const s=document.getElementById("messageBarTextContainer");console.log(s),s?i.removeChild(s):console.log("Child node message bar is not found!"),clearTimeout(o)},3e3)}function k1(e,t){return function(){return e.apply(t,arguments)}}const{toString:wC}=Object.prototype,{getPrototypeOf:oh}=Object,El=(e=>t=>{const n=wC.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ft=e=>(e=e.toLowerCase(),t=>El(t)===e),Tl=e=>t=>typeof t===e,{isArray:ya}=Array,Ai=Tl("undefined");function _C(e){return e!==null&&!Ai(e)&&e.constructor!==null&&!Ai(e.constructor)&&mt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const A1=Ft("ArrayBuffer");function SC(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&A1(e.buffer),t}const bC=Tl("string"),mt=Tl("function"),R1=Tl("number"),Cl=e=>e!==null&&typeof e=="object",EC=e=>e===!0||e===!1,ss=e=>{if(El(e)!=="object")return!1;const t=oh(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},TC=Ft("Date"),CC=Ft("File"),OC=Ft("Blob"),xC=Ft("FileList"),PC=e=>Cl(e)&&mt(e.pipe),NC=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||mt(e.append)&&((t=El(e))==="formdata"||t==="object"&&mt(e.toString)&&e.toString()==="[object FormData]"))},DC=Ft("URLSearchParams"),kC=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zi(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),ya(e))for(r=0,a=e.length;r0;)if(a=n[r],t===a.toLowerCase())return a;return null}const L1=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),M1=e=>!Ai(e)&&e!==L1;function bf(){const{caseless:e}=M1(this)&&this||{},t={},n=(r,a)=>{const i=e&&$1(t,a)||a;ss(t[i])&&ss(r)?t[i]=bf(t[i],r):ss(r)?t[i]=bf({},r):ya(r)?t[i]=r.slice():t[i]=r};for(let r=0,a=arguments.length;r(zi(t,(a,i)=>{n&&mt(a)?e[i]=k1(a,n):e[i]=a},{allOwnKeys:r}),e),RC=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),$C=(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)},LC=(e,t,n,r)=>{let a,i,o;const s={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)o=a[i],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&oh(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},MC=(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},jC=e=>{if(!e)return null;if(ya(e))return e;let t=e.length;if(!R1(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},FC=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&oh(Uint8Array)),IC=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=r.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},UC=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},zC=Ft("HTMLFormElement"),HC=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),Fg=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),WC=Ft("RegExp"),j1=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};zi(n,(a,i)=>{let o;(o=t(a,i,e))!==!1&&(r[i]=o||a)}),Object.defineProperties(e,r)},GC=e=>{j1(e,(t,n)=>{if(mt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(mt(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+"'")})}})},VC=(e,t)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return ya(e)?r(e):r(String(e).split(t)),n},qC=()=>{},KC=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Uu="abcdefghijklmnopqrstuvwxyz",Ig="0123456789",F1={DIGIT:Ig,ALPHA:Uu,ALPHA_DIGIT:Uu+Uu.toUpperCase()+Ig},YC=(e=16,t=F1.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function XC(e){return!!(e&&mt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const JC=e=>{const t=new Array(10),n=(r,a)=>{if(Cl(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[a]=r;const i=ya(r)?[]:{};return zi(r,(o,s)=>{const l=n(o,a+1);!Ai(l)&&(i[s]=l)}),t[a]=void 0,i}}return r};return n(e,0)},QC=Ft("AsyncFunction"),BC=e=>e&&(Cl(e)||mt(e))&&mt(e.then)&&mt(e.catch),A={isArray:ya,isArrayBuffer:A1,isBuffer:_C,isFormData:NC,isArrayBufferView:SC,isString:bC,isNumber:R1,isBoolean:EC,isObject:Cl,isPlainObject:ss,isUndefined:Ai,isDate:TC,isFile:CC,isBlob:OC,isRegExp:WC,isFunction:mt,isStream:PC,isURLSearchParams:DC,isTypedArray:FC,isFileList:xC,forEach:zi,merge:bf,extend:AC,trim:kC,stripBOM:RC,inherits:$C,toFlatObject:LC,kindOf:El,kindOfTest:Ft,endsWith:MC,toArray:jC,forEachEntry:IC,matchAll:UC,isHTMLForm:zC,hasOwnProperty:Fg,hasOwnProp:Fg,reduceDescriptors:j1,freezeMethods:GC,toObjectSet:VC,toCamelCase:HC,noop:qC,toFiniteNumber:KC,findKey:$1,global:L1,isContextDefined:M1,ALPHABET:F1,generateString:YC,isSpecCompliantForm:XC,toJSONObject:JC,isAsyncFn:QC,isThenable:BC};function X(e,t,n,r,a){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),a&&(this.response=a)}A.inherits(X,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:A.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const I1=X.prototype,U1={};["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=>{U1[e]={value:e}});Object.defineProperties(X,U1);Object.defineProperty(I1,"isAxiosError",{value:!0});X.from=(e,t,n,r,a,i)=>{const o=Object.create(I1);return A.toFlatObject(e,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),X.call(o,e.message,t,n,r,a),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const ZC=null;function Ef(e){return A.isPlainObject(e)||A.isArray(e)}function z1(e){return A.endsWith(e,"[]")?e.slice(0,-2):e}function Ug(e,t,n){return e?e.concat(t).map(function(a,i){return a=z1(a),!n&&i?"["+a+"]":a}).join(n?".":""):t}function eO(e){return A.isArray(e)&&!e.some(Ef)}const tO=A.toFlatObject(A,{},null,function(t){return/^is[A-Z]/.test(t)});function Ol(e,t,n){if(!A.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=A.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,b){return!A.isUndefined(b[_])});const r=n.metaTokens,a=n.visitor||h,i=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&A.isSpecCompliantForm(t);if(!A.isFunction(a))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(A.isDate(m))return m.toISOString();if(!l&&A.isBlob(m))throw new X("Blob is not supported. Use a Buffer instead.");return A.isArrayBuffer(m)||A.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function h(m,_,b){let v=m;if(m&&!b&&typeof m=="object"){if(A.endsWith(_,"{}"))_=r?_:_.slice(0,-2),m=JSON.stringify(m);else if(A.isArray(m)&&eO(m)||(A.isFileList(m)||A.endsWith(_,"[]"))&&(v=A.toArray(m)))return _=z1(_),v.forEach(function(S,x){!(A.isUndefined(S)||S===null)&&t.append(o===!0?Ug([_],x,i):o===null?_:_+"[]",u(S))}),!1}return Ef(m)?!0:(t.append(Ug(b,_,i),u(m)),!1)}const d=[],p=Object.assign(tO,{defaultVisitor:h,convertValue:u,isVisitable:Ef});function w(m,_){if(!A.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+_.join("."));d.push(m),A.forEach(m,function(v,y){(!(A.isUndefined(v)||v===null)&&a.call(t,v,A.isString(y)?y.trim():y,_,p))===!0&&w(v,_?_.concat(y):[y])}),d.pop()}}if(!A.isObject(e))throw new TypeError("data must be an object");return w(e),t}function zg(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function sh(e,t){this._pairs=[],e&&Ol(e,this,t)}const H1=sh.prototype;H1.append=function(t,n){this._pairs.push([t,n])};H1.toString=function(t){const n=t?function(r){return t.call(this,r,zg)}:zg;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function nO(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function W1(e,t,n){if(!t)return e;const r=n&&n.encode||nO,a=n&&n.serialize;let i;if(a?i=a(t,n):i=A.isURLSearchParams(t)?t.toString():new sh(t,n).toString(r),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class rO{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){A.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Hg=rO,G1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},aO=typeof URLSearchParams<"u"?URLSearchParams:sh,iO=typeof FormData<"u"?FormData:null,oO=typeof Blob<"u"?Blob:null,sO={isBrowser:!0,classes:{URLSearchParams:aO,FormData:iO,Blob:oO},protocols:["http","https","file","blob","url","data"]},V1=typeof window<"u"&&typeof document<"u",lO=(e=>V1&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),uO=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),cO=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:V1,hasStandardBrowserEnv:lO,hasStandardBrowserWebWorkerEnv:uO},Symbol.toStringTag,{value:"Module"})),Lt={...cO,...sO};function fO(e,t){return Ol(e,new Lt.classes.URLSearchParams,Object.assign({visitor:function(n,r,a,i){return Lt.isNode&&A.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function dO(e){return A.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function hO(e){const t={},n=Object.keys(e);let r;const a=n.length;let i;for(r=0;r=n.length;return o=!o&&A.isArray(a)?a.length:o,l?(A.hasOwnProp(a,o)?a[o]=[a[o],r]:a[o]=r,!s):((!a[o]||!A.isObject(a[o]))&&(a[o]=[]),t(n,r,a[o],i)&&A.isArray(a[o])&&(a[o]=hO(a[o])),!s)}if(A.isFormData(e)&&A.isFunction(e.entries)){const n={};return A.forEachEntry(e,(r,a)=>{t(dO(r),a,n,0)}),n}return null}function pO(e,t,n){if(A.isString(e))try{return(t||JSON.parse)(e),A.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const lh={transitional:G1,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,i=A.isObject(t);if(i&&A.isHTMLForm(t)&&(t=new FormData(t)),A.isFormData(t))return a&&a?JSON.stringify(q1(t)):t;if(A.isArrayBuffer(t)||A.isBuffer(t)||A.isStream(t)||A.isFile(t)||A.isBlob(t))return t;if(A.isArrayBufferView(t))return t.buffer;if(A.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return fO(t,this.formSerializer).toString();if((s=A.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Ol(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||a?(n.setContentType("application/json",!1),pO(t)):t}],transformResponse:[function(t){const n=this.transitional||lh.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(t&&A.isString(t)&&(r&&!this.responseType||a)){const o=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?X.from(s,X.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Lt.classes.FormData,Blob:Lt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};A.forEach(["delete","get","head","post","put","patch"],e=>{lh.headers[e]={}});const uh=lh,gO=A.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"]),mO=e=>{const t={};let n,r,a;return e&&e.split(` +`).forEach(function(o){a=o.indexOf(":"),n=o.substring(0,a).trim().toLowerCase(),r=o.substring(a+1).trim(),!(!n||t[n]&&gO[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Wg=Symbol("internals");function Ma(e){return e&&String(e).trim().toLowerCase()}function ls(e){return e===!1||e==null?e:A.isArray(e)?e.map(ls):String(e)}function vO(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 yO=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function zu(e,t,n,r,a){if(A.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!A.isString(t)){if(A.isString(r))return t.indexOf(r)!==-1;if(A.isRegExp(r))return r.test(t)}}function wO(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function _O(e,t){const n=A.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(a,i,o){return this[r].call(this,t,a,i,o)},configurable:!0})})}class xl{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function i(s,l,u){const h=Ma(l);if(!h)throw new Error("header name must be a non-empty string");const d=A.findKey(a,h);(!d||a[d]===void 0||u===!0||u===void 0&&a[d]!==!1)&&(a[d||l]=ls(s))}const o=(s,l)=>A.forEach(s,(u,h)=>i(u,h,l));return A.isPlainObject(t)||t instanceof this.constructor?o(t,n):A.isString(t)&&(t=t.trim())&&!yO(t)?o(mO(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=Ma(t),t){const r=A.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return vO(a);if(A.isFunction(n))return n.call(this,a,r);if(A.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ma(t),t){const r=A.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||zu(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function i(o){if(o=Ma(o),o){const s=A.findKey(r,o);s&&(!n||zu(r,r[s],s,n))&&(delete r[s],a=!0)}}return A.isArray(t)?t.forEach(i):i(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const i=n[r];(!t||zu(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const n=this,r={};return A.forEach(this,(a,i)=>{const o=A.findKey(r,i);if(o){n[o]=ls(a),delete n[i];return}const s=t?wO(i):String(i).trim();s!==i&&delete n[i],n[s]=ls(a),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return A.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&A.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(` +`)}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(a=>r.set(a)),r}static accessor(t){const r=(this[Wg]=this[Wg]={accessors:{}}).accessors,a=this.prototype;function i(o){const s=Ma(o);r[s]||(_O(a,o),r[s]=!0)}return A.isArray(t)?t.forEach(i):i(t),this}}xl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);A.reduceDescriptors(xl.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});A.freezeMethods(xl);const Xt=xl;function Hu(e,t){const n=this||uh,r=t||n,a=Xt.from(r.headers);let i=r.data;return A.forEach(e,function(s){i=s.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function K1(e){return!!(e&&e.__CANCEL__)}function Hi(e,t,n){X.call(this,e??"canceled",X.ERR_CANCELED,t,n),this.name="CanceledError"}A.inherits(Hi,X,{__CANCEL__:!0});function SO(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new X("Request failed with status code "+n.status,[X.ERR_BAD_REQUEST,X.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const bO=Lt.hasStandardBrowserEnv?{write(e,t,n,r,a,i){const o=[e+"="+encodeURIComponent(t)];A.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),A.isString(r)&&o.push("path="+r),A.isString(a)&&o.push("domain="+a),i===!0&&o.push("secure"),document.cookie=o.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 EO(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function TO(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Y1(e,t){return e&&!EO(t)?TO(e,t):t}const CO=Lt.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function a(i){let o=i;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=a(window.location.href),function(o){const s=A.isString(o)?a(o):o;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function OO(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function xO(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,i=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),h=r[i];o||(o=u),n[a]=l,r[a]=u;let d=i,p=0;for(;d!==a;)p+=n[d++],d=d%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),u-o{const i=a.loaded,o=a.lengthComputable?a.total:void 0,s=i-n,l=r(s),u=i<=o;n=i;const h={loaded:i,total:o,progress:o?i/o:void 0,bytes:s,rate:l||void 0,estimated:l&&o&&u?(o-i)/l:void 0,event:a};h[t?"download":"upload"]=!0,e(h)}}const PO=typeof XMLHttpRequest<"u",NO=PO&&function(e){return new Promise(function(n,r){let a=e.data;const i=Xt.from(e.headers).normalize();let{responseType:o,withXSRFToken:s}=e,l;function u(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let h;if(A.isFormData(a)){if(Lt.hasStandardBrowserEnv||Lt.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((h=i.getContentType())!==!1){const[_,...b]=h?h.split(";").map(v=>v.trim()).filter(Boolean):[];i.setContentType([_||"multipart/form-data",...b].join("; "))}}let d=new XMLHttpRequest;if(e.auth){const _=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(_+":"+b))}const p=Y1(e.baseURL,e.url);d.open(e.method.toUpperCase(),W1(p,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function w(){if(!d)return;const _=Xt.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),v={data:!o||o==="text"||o==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:_,config:e,request:d};SO(function(S){n(S),u()},function(S){r(S),u()},v),d=null}if("onloadend"in d?d.onloadend=w:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(w)},d.onabort=function(){d&&(r(new X("Request aborted",X.ECONNABORTED,e,d)),d=null)},d.onerror=function(){r(new X("Network Error",X.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let b=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const v=e.transitional||G1;e.timeoutErrorMessage&&(b=e.timeoutErrorMessage),r(new X(b,v.clarifyTimeoutError?X.ETIMEDOUT:X.ECONNABORTED,e,d)),d=null},Lt.hasStandardBrowserEnv&&(s&&A.isFunction(s)&&(s=s(e)),s||s!==!1&&CO(p))){const _=e.xsrfHeaderName&&e.xsrfCookieName&&bO.read(e.xsrfCookieName);_&&i.set(e.xsrfHeaderName,_)}a===void 0&&i.setContentType(null),"setRequestHeader"in d&&A.forEach(i.toJSON(),function(b,v){d.setRequestHeader(v,b)}),A.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),o&&o!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",Gg(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",Gg(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=_=>{d&&(r(!_||_.type?new Hi(null,e,d):_),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const m=OO(p);if(m&&Lt.protocols.indexOf(m)===-1){r(new X("Unsupported protocol "+m+":",X.ERR_BAD_REQUEST,e));return}d.send(a||null)})},Tf={http:ZC,xhr:NO};A.forEach(Tf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Vg=e=>`- ${e}`,DO=e=>A.isFunction(e)||e===null||e===!1,X1={getAdapter:e=>{e=A.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let i=0;i`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?i.length>1?`since : +`+i.map(Vg).join(` +`):" "+Vg(i[0]):"as no adapter specified";throw new X("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:Tf};function Wu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Hi(null,e)}function qg(e){return Wu(e),e.headers=Xt.from(e.headers),e.data=Hu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),X1.getAdapter(e.adapter||uh.adapter)(e).then(function(r){return Wu(e),r.data=Hu.call(e,e.transformResponse,r),r.headers=Xt.from(r.headers),r},function(r){return K1(r)||(Wu(e),r&&r.response&&(r.response.data=Hu.call(e,e.transformResponse,r.response),r.response.headers=Xt.from(r.response.headers))),Promise.reject(r)})}const Kg=e=>e instanceof Xt?e.toJSON():e;function fa(e,t){t=t||{};const n={};function r(u,h,d){return A.isPlainObject(u)&&A.isPlainObject(h)?A.merge.call({caseless:d},u,h):A.isPlainObject(h)?A.merge({},h):A.isArray(h)?h.slice():h}function a(u,h,d){if(A.isUndefined(h)){if(!A.isUndefined(u))return r(void 0,u,d)}else return r(u,h,d)}function i(u,h){if(!A.isUndefined(h))return r(void 0,h)}function o(u,h){if(A.isUndefined(h)){if(!A.isUndefined(u))return r(void 0,u)}else return r(void 0,h)}function s(u,h,d){if(d in t)return r(u,h);if(d in e)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(u,h)=>a(Kg(u),Kg(h),!0)};return A.forEach(Object.keys(Object.assign({},e,t)),function(h){const d=l[h]||a,p=d(e[h],t[h],h);A.isUndefined(p)&&d!==s||(n[h]=p)}),n}const J1="1.6.5",ch={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ch[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Yg={};ch.transitional=function(t,n,r){function a(i,o){return"[Axios v"+J1+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,s)=>{if(t===!1)throw new X(a(o," has been removed"+(n?" in "+n:"")),X.ERR_DEPRECATED);return n&&!Yg[o]&&(Yg[o]=!0,console.warn(a(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,s):!0}};function kO(e,t,n){if(typeof e!="object")throw new X("options must be an object",X.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const i=r[a],o=t[i];if(o){const s=e[i],l=s===void 0||o(s,i,e);if(l!==!0)throw new X("option "+i+" must be "+l,X.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new X("Unknown option "+i,X.ERR_BAD_OPTION)}}const Cf={assertOptions:kO,validators:ch},un=Cf.validators;class Gs{constructor(t){this.defaults=t,this.interceptors={request:new Hg,response:new Hg}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=fa(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&Cf.assertOptions(r,{silentJSONParsing:un.transitional(un.boolean),forcedJSONParsing:un.transitional(un.boolean),clarifyTimeoutError:un.transitional(un.boolean)},!1),a!=null&&(A.isFunction(a)?n.paramsSerializer={serialize:a}:Cf.assertOptions(a,{encode:un.function,serialize:un.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&A.merge(i.common,i[n.method]);i&&A.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=Xt.concat(o,i);const s=[];let l=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(n)===!1||(l=l&&_.synchronous,s.unshift(_.fulfilled,_.rejected))});const u=[];this.interceptors.response.forEach(function(_){u.push(_.fulfilled,_.rejected)});let h,d=0,p;if(!l){const m=[qg.bind(this),void 0];for(m.unshift.apply(m,s),m.push.apply(m,u),p=m.length,h=Promise.resolve(n);d{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(s=>{r.subscribe(s),i=s}).then(a);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,s){r.reason||(r.reason=new Hi(i,o,s),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)}static source(){let t;return{token:new fh(function(a){t=a}),cancel:t}}}const AO=fh;function RO(e){return function(n){return e.apply(null,n)}}function $O(e){return A.isObject(e)&&e.isAxiosError===!0}const Of={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(Of).forEach(([e,t])=>{Of[t]=e});const LO=Of;function Q1(e){const t=new us(e),n=k1(us.prototype.request,t);return A.extend(n,us.prototype,t,{allOwnKeys:!0}),A.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return Q1(fa(e,a))},n}const me=Q1(uh);me.Axios=us;me.CanceledError=Hi;me.CancelToken=AO;me.isCancel=K1;me.VERSION=J1;me.toFormData=Ol;me.AxiosError=X;me.Cancel=me.CanceledError;me.all=function(t){return Promise.all(t)};me.spread=RO;me.isAxiosError=$O;me.mergeConfig=fa;me.AxiosHeaders=Xt;me.formToJSON=e=>q1(A.isHTMLForm(e)?new FormData(e):e);me.getAdapter=X1.getAdapter;me.HttpStatusCode=LO;me.default=me;const Zn=me;class MO{constructor(t,n,r,a,i,o){z(this,"flowsheetId");z(this,"isFvShow");z(this,"isStreamTableShow");z(this,"baseUrl");z(this,"getFSUrl");z(this,"putFSUrl");z(this,"model");z(this,"paper");z(this,"_is_graph_changed");z(this,"_save_time_interval_key");z(this,"_default_save_time_interval");z(this,"_save_time_interval");z(this,"stream_table");z(this,"toolbar");z(this,"cleanToolBarEvent");z(this,"viewInLogPanel");this.flowsheetId=t,this.isFvShow=r,this.isStreamTableShow=i,this.viewInLogPanel=o,this.baseUrl=`http://localhost:${n}`,this.getFSUrl=`/fs?id=${t}`,this.putFSUrl=`/fs?id=${t}`,this.model={},r&&(this.paper=new cC(this)),this._is_graph_changed=!1,this._save_time_interval_key="save_time_interval",this._default_save_time_interval=5e3,this._save_time_interval=this.getSaveTimeInterval(),this.setupGraphChangeChecker(this._save_time_interval,t),this.setGetFSUrl(),Zn.get(this.getFSUrl).then(s=>{this.model=s.data,r&&this.renderModel(this.model),i&&o.streamTable&&(this.stream_table=new dC(this,this.model,this.viewInLogPanel)),this.toolbar=new hC(this,this.paper,this.stream_table,this.flowsheetId,this.getFSUrl,this.putFSUrl,this.isFvShow),this.cleanToolBarEvent=this.toolbar.cleanUpEvent}).catch(s=>{console.log(s.message),console.log(s.response.status)}),this.fvExtraContentCleanUp()}setGetFSUrl(){let t=new URLSearchParams(window.location.search);if(!t.get("example"))return;let n=parseInt(t.get("example")),r=["example_1","example_2","example_3","example_4","example_5","example_6","example_7"];n<0||n>r.length||(this.getFSUrl=`/assets/testing_data/example_${n}.json`)}renderModel(t){const r=new fC(t).processRoutingConfig();this.paper.setup(r)}debug_removeFlowsheetPosition(t){let n=5;t.cells.forEach(r=>{n+=150,r.position&&(r.position={x:n,y:void 0})})}informUser(t,n){switch(t){case 0:console.log(n);break;case 1:console.warn(n);break;case 2:console.error(n);break;default:console.log(n)}}refreshModel(t,n,r){this.informUser(0,"Refresh: save current values from model");let a=r.graph,i=JSON.stringify(a.toJSON());Zn.put(n,i,{headers:{"Content-Type":"application/json"}}).then(()=>(this.informUser(0,"Refresh: load new model values from Python program"),Zn.get(t,{responseType:"json"}))).then(o=>{console.log(o.data);const s=o.data;let l;this.isStreamTableShow&&this.viewInLogPanel.streamTable&&(l=document.getElementById("hide-fields-list")),l&&(l.innerHTML="",this.renderModel(s),this.stream_table.initTable(s)),ir("refreshFS",!0)}).catch(o=>{ir("refreshFS",!1),o.response?this.informUser(2,"Fatal error: cannot save current model before refresh: "+o.response.data):this.informUser(2,"Fatal error: Could not retrieve new model from Python program: "+o.message)})}getSaveTimeInterval(){let t=`${this.baseUrl}/setting?setting_key=${this._save_time_interval_key}`,n=this._default_save_time_interval;return Zn.get(t,{headers:{"Content-Type":"application/json"}}).then(r=>{r.data.value!="None"?n=r.data.value:this.informUser(1,`Warning: save_time_interval was not set correctly. Default time value of + ${this._default_save_time_interval.toString()} + will be set.`)}).catch(r=>{this.informUser(2,"Fatal error: cannot get setting value: "+r)}),n}graphChanged(){this._is_graph_changed=!0}setupGraphChangeChecker(t,n){let r=this.putFSUrl;var a=setInterval(()=>{this._is_graph_changed&&(this.saveModel(r,this.paper.graph),this._is_graph_changed=!1)},t);return a}saveModel(t,n){let r=JSON.stringify(n.toJSON());Zn.put(t,r,{headers:{"Content-Type":"application/json"}}).then(a=>{console.log("saved"),this.informUser(0,"Saved new model values"),ir("userSave",!0)}).catch(a=>{ir("userSave",!1),this.informUser(2,"Fatal error: cannot save current model: "+a)})}fvExtraContentCleanUp(){let t=document.getElementById("fv");if(!(!t||t.childNodes.length<=1))for(t.childNodes[(t==null?void 0:t.childNodes.length)-1];t.firstChild!==t.lastChild;)t.removeChild(t.firstChild)}}var xf={},da={},B1={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",o=0;o-1&&e%1==0&&e-1&&e%1==0&&e<=cP}var ph=fP,dP=Wi,hP=ph,pP=Sr,gP="[object Arguments]",mP="[object Array]",vP="[object Boolean]",yP="[object Date]",wP="[object Error]",_P="[object Function]",SP="[object Map]",bP="[object Number]",EP="[object Object]",TP="[object RegExp]",CP="[object Set]",OP="[object String]",xP="[object WeakMap]",PP="[object ArrayBuffer]",NP="[object DataView]",DP="[object Float32Array]",kP="[object Float64Array]",AP="[object Int8Array]",RP="[object Int16Array]",$P="[object Int32Array]",LP="[object Uint8Array]",MP="[object Uint8ClampedArray]",jP="[object Uint16Array]",FP="[object Uint32Array]",re={};re[DP]=re[kP]=re[AP]=re[RP]=re[$P]=re[LP]=re[MP]=re[jP]=re[FP]=!0;re[gP]=re[mP]=re[PP]=re[vP]=re[NP]=re[yP]=re[wP]=re[_P]=re[SP]=re[bP]=re[EP]=re[TP]=re[CP]=re[OP]=re[xP]=!1;function IP(e){return pP(e)&&hP(e.length)&&!!re[dP(e)]}var UP=IP;function zP(e){return function(t){return e(t)}}var gh=zP,qs={exports:{}};qs.exports;(function(e,t){var n=Z1,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,o=i&&n.process,s=function(){try{var l=a&&a.require&&a.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(qs,qs.exports);var mh=qs.exports,HP=UP,WP=gh,tm=mh,nm=tm&&tm.isTypedArray,GP=nm?WP(nm):HP,vh=GP,VP=Kx,qP=Pl,KP=wt,YP=Nl,XP=hh,JP=vh,QP=Object.prototype,BP=QP.hasOwnProperty;function ZP(e,t){var n=KP(e),r=!n&&qP(e),a=!n&&!r&&YP(e),i=!n&&!r&&!a&&JP(e),o=n||r||a||i,s=o?VP(e.length,String):[],l=s.length;for(var u in e)(t||BP.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||XP(u,l)))&&s.push(u);return s}var iw=ZP,eN=Object.prototype;function tN(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||eN;return e===n}var Dl=tN;function nN(e,t){return function(n){return e(t(n))}}var ow=nN,rN=ow,aN=rN(Object.keys,Object),iN=aN,oN=Dl,sN=iN,lN=Object.prototype,uN=lN.hasOwnProperty;function cN(e){if(!oN(e))return sN(e);var t=[];for(var n in Object(e))uN.call(e,n)&&n!="constructor"&&t.push(n);return t}var sw=cN,fN=tw,dN=ph;function hN(e){return e!=null&&dN(e.length)&&!fN(e)}var kl=hN,pN=iw,gN=sw,mN=kl;function vN(e){return mN(e)?pN(e):gN(e)}var br=vN,yN=Vx,wN=br;function _N(e,t){return e&&yN(e,t,wN)}var SN=_N,bN=kl;function EN(e,t){return function(n,r){if(n==null)return n;if(!bN(n))return e(n,r);for(var a=n.length,i=t?a:-1,o=Object(n);(t?i--:++i-1}var KN=qN,YN=Al;function XN(e,t){var n=this.__data__,r=YN(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var JN=XN,QN=RN,BN=zN,ZN=GN,eD=KN,tD=JN;function _a(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ts))return!1;var u=i.get(e),h=i.get(t);if(u&&h)return u==t&&h==e;var d=-1,p=!0,w=n&zk?new jk:void 0;for(i.set(e,t),i.set(t,e);++d(t==null&&(t=e()),t)}function c$(e,t){return e.filter(n=>n!==t)}function f$(e,t){const n=new Set,r=i=>n.add(i);e.forEach(r),t.forEach(r);const a=[];return n.forEach(i=>a.push(i)),a}class d${enter(t){const n=this.entered.length,r=a=>this.isNodeInDocument(a)&&(!a.contains||a.contains(t));return this.entered=f$(this.entered.filter(r),[t]),n===0&&this.entered.length>0}leave(t){const n=this.entered.length;return this.entered=c$(this.entered.filter(this.isNodeInDocument),t),n>0&&this.entered.length===0}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class h${initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(t=>{Object.defineProperty(this.item,t,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${t}" until the drop event.`),null}})})}loadDataTransfer(t){if(t){const n={};Object.keys(this.config.exposeProperties).forEach(r=>{const a=this.config.exposeProperties[r];a!=null&&(n[r]={value:a(t,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,n)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(t,n){return n===t.getSourceId()}endDrag(){}constructor(t){this.config=t,this.item={},this.initializeExposedProperties()}}const Ow="__NATIVE_FILE__",xw="__NATIVE_URL__",Pw="__NATIVE_TEXT__",Nw="__NATIVE_HTML__",Om=Object.freeze(Object.defineProperty({__proto__:null,FILE:Ow,HTML:Nw,TEXT:Pw,URL:xw},Symbol.toStringTag,{value:"Module"}));function Ku(e,t,n){const r=t.reduce((a,i)=>a||e.getData(i),"");return r??n}const Rf={[Ow]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[Nw]:{exposeProperties:{html:(e,t)=>Ku(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[xw]:{exposeProperties:{urls:(e,t)=>Ku(e,t,"").split(` +`),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[Pw]:{exposeProperties:{text:(e,t)=>Ku(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function p$(e,t){const n=Rf[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new h$(n);return r.loadDataTransfer(t),r}function Yu(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(Rf).filter(n=>{const r=Rf[n];return r!=null&&r.matchesTypes?r.matchesTypes.some(a=>t.indexOf(a)>-1):!1})[0]||null}const g$=Cw(()=>/firefox/i.test(navigator.userAgent)),Dw=Cw(()=>!!window.safari);class xm{interpolate(t){const{xs:n,ys:r,c1s:a,c2s:i,c3s:o}=this;let s=n.length-1;if(t===n[s])return r[s];let l=0,u=o.length-1,h;for(;l<=u;){h=Math.floor(.5*(l+u));const w=n[h];if(wt)u=h-1;else return r[h]}s=Math.max(0,u);const d=t-n[s],p=d*d;return r[s]+a[s]*d+i[s]*p+o[s]*d*p}constructor(t,n){const{length:r}=t,a=[];for(let w=0;wt[w]{let k=new xm([0,.5,1],[l.y,l.y/h*m,l.y+m-h]).interpolate(p);return Dw()&&i&&(k+=(window.devicePixelRatio-1)*m),k},b=()=>new xm([0,.5,1],[l.x,l.x/u*w,l.x+w-u]).interpolate(d),{offsetX:v,offsetY:y}=a,S=v===0||v,x=y===0||y;return{x:S?v:b(),y:x?y:_()}}let _$=class{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var t;return!((t=this.globalContext)===null||t===void 0)&&t.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var t;return((t=this.optionsArgs)===null||t===void 0?void 0:t.rootElement)||this.window}constructor(t,n){this.ownerDocument=null,this.globalContext=t,this.optionsArgs=n}};function S$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pm(e){for(var t=1;t{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDragSource(t,n,r){this.sourceNodes.set(t,n),this.sourceNodeOptions.set(t,r);const a=o=>this.handleDragStart(o,t),i=o=>this.handleSelectStart(o);return n.setAttribute("draggable","true"),n.addEventListener("dragstart",a),n.addEventListener("selectstart",i),()=>{this.sourceNodes.delete(t),this.sourceNodeOptions.delete(t),n.removeEventListener("dragstart",a),n.removeEventListener("selectstart",i),n.setAttribute("draggable","false")}}connectDropTarget(t,n){const r=o=>this.handleDragEnter(o,t),a=o=>this.handleDragOver(o,t),i=o=>this.handleDrop(o,t);return n.addEventListener("dragenter",r),n.addEventListener("dragover",a),n.addEventListener("drop",i),()=>{n.removeEventListener("dragenter",r),n.removeEventListener("dragover",a),n.removeEventListener("drop",i)}}addEventListeners(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const t=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(t);return Pm({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const t=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(t);return Pm({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const t=this.monitor.getItemType();return Object.keys(Om).some(n=>Om[n]===t)}beginDragNativeItem(t,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=p$(t,n),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(t){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t;const n=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var r;return(r=this.rootElement)===null||r===void 0?void 0:r.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},n)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var t;(t=this.window)===null||t===void 0||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(t,n){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}handleDragEnter(t,n){this.dragEnterTargetIds.unshift(n)}handleDragOver(t,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}handleDrop(t,n){this.dropTargetIds.unshift(n)}constructor(t,n,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=a=>{const i=this.sourceNodes.get(a);return i&&kw(i)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=a=>!!(a&&this.document&&this.document.body&&this.document.body.contains(a)),this.endDragIfSourceWasRemovedFromDOM=()=>{const a=this.currentDragSourceNode;a==null||this.isNodeInDocument(a)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=a=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(a||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=a=>{if(a.defaultPrevented)return;const{dragStartSourceIds:i}=this;this.dragStartSourceIds=null;const o=jo(a);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(i||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:o});const{dataTransfer:s}=a,l=Yu(s);if(this.monitor.isDragging()){if(s&&typeof s.setDragImage=="function"){const h=this.monitor.getSourceId(),d=this.sourceNodes.get(h),p=this.sourcePreviewNodes.get(h)||d;if(p){const{anchorX:w,anchorY:m,offsetX:_,offsetY:b}=this.getCurrentSourcePreviewNodeOptions(),S=w$(d,p,o,{anchorX:w,anchorY:m},{offsetX:_,offsetY:b});s.setDragImage(p,S.x,S.y)}}try{s==null||s.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(a.target);const{captureDraggingState:u}=this.getCurrentSourcePreviewNodeOptions();u?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(l)this.beginDragNativeItem(l);else{if(s&&!s.types&&(a.target&&!a.target.hasAttribute||!a.target.hasAttribute("draggable")))return;a.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=a=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var i;(i=this.currentNativeSource)===null||i===void 0||i.loadDataTransfer(a.dataTransfer)}if(!this.enterLeaveCounter.enter(a.target)||this.monitor.isDragging())return;const{dataTransfer:s}=a,l=Yu(s);l&&this.beginDragNativeItem(l,s)},this.handleTopDragEnter=a=>{const{dragEnterTargetIds:i}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=a.altKey,i.length>0&&this.actions.hover(i,{clientOffset:jo(a)}),i.some(s=>this.monitor.canDropOnTarget(s))&&(a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=a=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var i;(i=this.currentNativeSource)===null||i===void 0||i.loadDataTransfer(a.dataTransfer)}},this.handleTopDragOver=a=>{const{dragOverTargetIds:i}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect="none");return}this.altKeyPressed=a.altKey,this.lastClientOffset=jo(a),this.scheduleHover(i),(i||[]).some(s=>this.monitor.canDropOnTarget(s))?(a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?a.preventDefault():(a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=a=>{this.isDraggingNativeItem()&&a.preventDefault(),this.enterLeaveCounter.leave(a.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=a=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var i;a.preventDefault(),(i=this.currentNativeSource)===null||i===void 0||i.loadDataTransfer(a.dataTransfer)}else Yu(a.dataTransfer)&&a.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=a=>{const{dropTargetIds:i}=this;this.dropTargetIds=[],this.actions.hover(i,{clientOffset:jo(a)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=a=>{const i=a.target;typeof i.dragDrop=="function"&&(i.tagName==="INPUT"||i.tagName==="SELECT"||i.tagName==="TEXTAREA"||i.isContentEditable||(a.preventDefault(),i.dragDrop()))},this.options=new _$(n,r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new d$(this.isNodeInDocument)}}const E$=function(t,n,r){return new b$(t,n,r)};function G(e,t,...n){if(T$()&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){let r;if(t===void 0)r=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let a=0;r=new Error(t.replace(/%s/g,function(){return n[a++]})),r.name="Invariant Violation"}throw r.framesToPop=1,r}}function T$(){return typeof process<"u"&&process.env.NODE_ENV==="production"}var Dn;(function(e){e.mouse="mouse",e.touch="touch",e.keyboard="keyboard"})(Dn||(Dn={}));class C${get delay(){var t;return(t=this.args.delay)!==null&&t!==void 0?t:0}get scrollAngleRanges(){return this.args.scrollAngleRanges}get getDropTargetElementsAtPoint(){return this.args.getDropTargetElementsAtPoint}get ignoreContextMenu(){var t;return(t=this.args.ignoreContextMenu)!==null&&t!==void 0?t:!1}get enableHoverOutsideTarget(){var t;return(t=this.args.enableHoverOutsideTarget)!==null&&t!==void 0?t:!1}get enableKeyboardEvents(){var t;return(t=this.args.enableKeyboardEvents)!==null&&t!==void 0?t:!1}get enableMouseEvents(){var t;return(t=this.args.enableMouseEvents)!==null&&t!==void 0?t:!1}get enableTouchEvents(){var t;return(t=this.args.enableTouchEvents)!==null&&t!==void 0?t:!0}get touchSlop(){return this.args.touchSlop||0}get delayTouchStart(){var t,n,r,a;return(a=(r=(t=this.args)===null||t===void 0?void 0:t.delayTouchStart)!==null&&r!==void 0?r:(n=this.args)===null||n===void 0?void 0:n.delay)!==null&&a!==void 0?a:0}get delayMouseStart(){var t,n,r,a;return(a=(r=(t=this.args)===null||t===void 0?void 0:t.delayMouseStart)!==null&&r!==void 0?r:(n=this.args)===null||n===void 0?void 0:n.delay)!==null&&a!==void 0?a:0}get window(){if(this.context&&this.context.window)return this.context.window;if(typeof window<"u")return window}get document(){var t;if(!((t=this.context)===null||t===void 0)&&t.document)return this.context.document;if(this.window)return this.window.document}get rootElement(){var t;return((t=this.args)===null||t===void 0?void 0:t.rootElement)||this.document}constructor(t,n){this.args=t,this.context=n}}function O$(e,t,n,r){return Math.sqrt(Math.pow(Math.abs(n-e),2)+Math.pow(Math.abs(r-t),2))}function x$(e,t,n,r,a){if(!a)return!1;const i=Math.atan2(r-t,n-e)*180/Math.PI+180;for(let o=0;o=s.start)&&(s.end==null||i<=s.end))return!0}return!1}const P$={Left:1,Right:2,Center:4},N$={Left:0,Center:1,Right:2};function Xu(e){return e.button===void 0||e.button===N$.Left}function D$(e){return e.buttons===void 0||(e.buttons&P$.Left)===0}function Aw(e){return!!e.targetTouches}const k$=1;function A$(e){const t=e.nodeType===k$?e:e.parentElement;if(!t)return;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function R$(e,t){if(e.targetTouches.length===1)return Ys(e.targetTouches[0]);if(t&&e.touches.length===1&&e.touches[0].target===t.target)return Ys(e.touches[0])}function Ys(e,t){return Aw(e)?R$(e,t):{x:e.clientX,y:e.clientY}}const Nm=(()=>{let e=!1;try{addEventListener("test",()=>{},Object.defineProperty({},"passive",{get(){return e=!0,!0}}))}catch{}return e})(),Fa={[Dn.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[Dn.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[Dn.keyboard]:{keydown:"keydown"}};class li{profile(){var t;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:((t=this.dragOverTargetIds)===null||t===void 0?void 0:t.length)||0}}get document(){return this.options.document}setup(){const t=this.options.rootElement;t&&(G(!li.isSetUp,"Cannot have two Touch backends at the same time."),li.isSetUp=!0,this.addEventListener(t,"start",this.getTopMoveStartHandler()),this.addEventListener(t,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(t,"move",this.handleTopMove),this.addEventListener(t,"move",this.handleTopMoveCapture,!0),this.addEventListener(t,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(t,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(t,"keydown",this.handleCancelOnEscape,!0))}teardown(){const t=this.options.rootElement;t&&(li.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(t,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(t,"start",this.handleTopMoveStart),this.removeEventListener(t,"move",this.handleTopMoveCapture,!0),this.removeEventListener(t,"move",this.handleTopMove),this.removeEventListener(t,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(t,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(t,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}addEventListener(t,n,r,a=!1){const i=Nm?{capture:a,passive:!1}:a;this.listenerTypes.forEach(function(o){const s=Fa[o][n];s&&t.addEventListener(s,r,i)})}removeEventListener(t,n,r,a=!1){const i=Nm?{capture:a,passive:!1}:a;this.listenerTypes.forEach(function(o){const s=Fa[o][n];s&&t.removeEventListener(s,r,i)})}connectDragSource(t,n){const r=this.handleMoveStart.bind(this,t);return this.sourceNodes.set(t,n),this.addEventListener(n,"start",r),()=>{this.sourceNodes.delete(t),this.removeEventListener(n,"start",r)}}connectDragPreview(t,n,r){return this.sourcePreviewNodeOptions.set(t,r),this.sourcePreviewNodes.set(t,n),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDropTarget(t,n){const r=this.options.rootElement;if(!this.document||!r)return()=>{};const a=i=>{if(!this.document||!r||!this.monitor.isDragging())return;let o;switch(i.type){case Fa.mouse.move:o={x:i.clientX,y:i.clientY};break;case Fa.touch.move:var s,l;o={x:((s=i.touches[0])===null||s===void 0?void 0:s.clientX)||0,y:((l=i.touches[0])===null||l===void 0?void 0:l.clientY)||0};break}const u=o!=null?this.document.elementFromPoint(o.x,o.y):void 0,h=u&&n.contains(u);if(u===n||h)return this.handleMove(i,t)};return this.addEventListener(this.document.body,"move",a),this.targetNodes.set(t,n),()=>{this.document&&(this.targetNodes.delete(t),this.removeEventListener(this.document.body,"move",a))}}getTopMoveStartHandler(){return!this.options.delayTouchStart&&!this.options.delayMouseStart?this.handleTopMoveStart:this.handleTopMoveStartDelay}installSourceNodeRemovalObserver(t){this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=t,this.draggedSourceNodeRemovalObserver=new MutationObserver(()=>{t&&!t.parentElement&&(this.resurrectSourceNode(),this.uninstallSourceNodeRemovalObserver())}),!(!t||!t.parentElement)&&this.draggedSourceNodeRemovalObserver.observe(t.parentElement,{childList:!0})}resurrectSourceNode(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}uninstallSourceNodeRemovalObserver(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}constructor(t,n,r){this.getSourceClientOffset=a=>{const i=this.sourceNodes.get(a);return i&&A$(i)},this.handleTopMoveStartCapture=a=>{Xu(a)&&(this.moveStartSourceIds=[])},this.handleMoveStart=a=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(a)},this.handleTopMoveStart=a=>{if(!Xu(a))return;const i=Ys(a);i&&(Aw(a)&&(this.lastTargetTouchFallback=a.targetTouches[0]),this._mouseClientOffset=i),this.waitingForDelay=!1},this.handleTopMoveStartDelay=a=>{if(!Xu(a))return;const i=a.type===Fa.touch.start?this.options.delayTouchStart:this.options.delayMouseStart;this.timeout=setTimeout(this.handleTopMoveStart.bind(this,a),i),this.waitingForDelay=!0},this.handleTopMoveCapture=()=>{this.dragOverTargetIds=[]},this.handleMove=(a,i)=>{this.dragOverTargetIds&&this.dragOverTargetIds.unshift(i)},this.handleTopMove=a=>{if(this.timeout&&clearTimeout(this.timeout),!this.document||this.waitingForDelay)return;const{moveStartSourceIds:i,dragOverTargetIds:o}=this,s=this.options.enableHoverOutsideTarget,l=Ys(a,this.lastTargetTouchFallback);if(!l)return;if(this._isScrolling||!this.monitor.isDragging()&&x$(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,l.x,l.y,this.options.scrollAngleRanges)){this._isScrolling=!0;return}if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty("x")&&i&&O$(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,l.x,l.y)>(this.options.touchSlop?this.options.touchSlop:0)&&(this.moveStartSourceIds=void 0,this.actions.beginDrag(i,{clientOffset:this._mouseClientOffset,getSourceClientOffset:this.getSourceClientOffset,publishSource:!1})),!this.monitor.isDragging())return;const u=this.sourceNodes.get(this.monitor.getSourceId());this.installSourceNodeRemovalObserver(u),this.actions.publishDragSource(),a.cancelable&&a.preventDefault();const h=(o||[]).map(m=>this.targetNodes.get(m)).filter(m=>!!m),d=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(l.x,l.y,h):this.document.elementsFromPoint(l.x,l.y),p=[];for(const m in d){if(!d.hasOwnProperty(m))continue;let _=d[m];for(_!=null&&p.push(_);_;)_=_.parentElement,_&&p.indexOf(_)===-1&&p.push(_)}const w=p.filter(m=>h.indexOf(m)>-1).map(m=>this._getDropTargetId(m)).filter(m=>!!m).filter((m,_,b)=>b.indexOf(m)===_);if(s)for(const m in this.targetNodes){const _=this.targetNodes.get(m);if(u&&_&&_.contains(u)&&w.indexOf(m)===-1){w.unshift(m);break}}w.reverse(),this.actions.hover(w,{clientOffset:l})},this._getDropTargetId=a=>{const i=this.targetNodes.keys();let o=i.next();for(;o.done===!1;){const s=o.value;if(a===this.targetNodes.get(s))return s;o=i.next()}},this.handleTopMoveEndCapture=a=>{if(this._isScrolling=!1,this.lastTargetTouchFallback=void 0,!!D$(a)){if(!this.monitor.isDragging()||this.monitor.didDrop()){this.moveStartSourceIds=void 0;return}a.cancelable&&a.preventDefault(),this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.drop(),this.actions.endDrag()}},this.handleCancelOnEscape=a=>{a.key==="Escape"&&this.monitor.isDragging()&&(this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.endDrag())},this.options=new C$(r,n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(Dn.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(Dn.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(Dn.keyboard)}}const $$=function(t,n={},r={}){return new li(t,n,r)};var Rw=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},W=(e,t,n)=>(Rw(e,t,"read from private field"),n?n.call(e):t.get(e)),ct=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Qn=(e,t,n,r)=>(Rw(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Bn,L$=class{constructor(){ct(this,Bn,void 0),this.register=e=>{W(this,Bn).push(e)},this.unregister=e=>{let t;for(;(t=W(this,Bn).indexOf(e))!==-1;)W(this,Bn).splice(t,1)},this.backendChanged=e=>{for(let t of W(this,Bn))t.backendChanged(e)},Qn(this,Bn,[])}};Bn=new WeakMap;var Je,Ya,Qe,zt,cn,$f,Lf,Mf,cs,fs,Xa,$w=class ds{constructor(t,n,r){if(ct(this,Je,void 0),ct(this,Ya,void 0),ct(this,Qe,void 0),ct(this,zt,void 0),ct(this,cn,void 0),ct(this,$f,(a,i,o)=>{if(!o.backend)throw new Error(`You must specify a 'backend' property in your Backend entry: ${JSON.stringify(o)}`);let s=o.backend(a,i,o.options),l=o.id,u=!o.id&&s&&s.constructor;if(u&&(l=s.constructor.name),l)u&&console.warn(`Deprecation notice: You are using a pipeline which doesn't include backends' 'id'. + This might be unsupported in the future, please specify 'id' explicitely for every backend.`);else throw new Error(`You must specify an 'id' property in your Backend entry: ${JSON.stringify(o)} + see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-5xx`);if(W(this,Qe)[l])throw new Error(`You must specify a unique 'id' property in your Backend entry: + ${JSON.stringify(o)} (conflicts with: ${JSON.stringify(W(this,Qe)[l])})`);return{id:l,instance:s,preview:o.preview??!1,transition:o.transition,skipDispatchOnTransition:o.skipDispatchOnTransition??!1}}),this.setup=()=>{if(!(typeof window>"u")){if(ds.isSetUp)throw new Error("Cannot have two MultiBackends at the same time.");ds.isSetUp=!0,W(this,Lf).call(this,window),W(this,Qe)[W(this,Je)].instance.setup()}},this.teardown=()=>{typeof window>"u"||(ds.isSetUp=!1,W(this,Mf).call(this,window),W(this,Qe)[W(this,Je)].instance.teardown())},this.connectDragSource=(a,i,o)=>W(this,Xa).call(this,"connectDragSource",a,i,o),this.connectDragPreview=(a,i,o)=>W(this,Xa).call(this,"connectDragPreview",a,i,o),this.connectDropTarget=(a,i,o)=>W(this,Xa).call(this,"connectDropTarget",a,i,o),this.profile=()=>W(this,Qe)[W(this,Je)].instance.profile(),this.previewEnabled=()=>W(this,Qe)[W(this,Je)].preview,this.previewsList=()=>W(this,Ya),this.backendsList=()=>W(this,zt),ct(this,Lf,a=>{W(this,zt).forEach(i=>{i.transition&&a.addEventListener(i.transition.event,W(this,cs))})}),ct(this,Mf,a=>{W(this,zt).forEach(i=>{i.transition&&a.removeEventListener(i.transition.event,W(this,cs))})}),ct(this,cs,a=>{var o;let i=W(this,Je);if(W(this,zt).some(s=>s.id!==W(this,Je)&&s.transition&&s.transition.check(a)?(Qn(this,Je,s.id),!0):!1),W(this,Je)!==i){W(this,Qe)[i].instance.teardown(),Object.keys(W(this,cn)).forEach(h=>{let d=W(this,cn)[h];d.unsubscribe(),d.unsubscribe=W(this,fs).call(this,d.func,...d.args)}),W(this,Ya).backendChanged(this);let s=W(this,Qe)[W(this,Je)];if(s.instance.setup(),s.skipDispatchOnTransition)return;let l=a.constructor,u=new l(a.type,a);(o=a.target)==null||o.dispatchEvent(u)}}),ct(this,fs,(a,i,o,s)=>W(this,Qe)[W(this,Je)].instance[a](i,o,s)),ct(this,Xa,(a,i,o,s)=>{let l=`${a}_${i}`,u=W(this,fs).call(this,a,i,o,s);return W(this,cn)[l]={func:a,args:[i,o,s],unsubscribe:u},()=>{W(this,cn)[l].unsubscribe(),delete W(this,cn)[l]}}),!r||!r.backends||r.backends.length<1)throw new Error(`You must specify at least one Backend, if you are coming from 2.x.x (or don't understand this error) + see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-2xx`);Qn(this,Ya,new L$),Qn(this,Qe,{}),Qn(this,zt,[]),r.backends.forEach(a=>{let i=W(this,$f).call(this,t,n,a);W(this,Qe)[i.id]=i,W(this,zt).push(i)}),Qn(this,Je,W(this,zt)[0].id),Qn(this,cn,{})}};Je=new WeakMap,Ya=new WeakMap,Qe=new WeakMap,zt=new WeakMap,cn=new WeakMap,$f=new WeakMap,Lf=new WeakMap,Mf=new WeakMap,cs=new WeakMap,fs=new WeakMap,Xa=new WeakMap,$w.isSetUp=!1;var M$=$w,Lw=(e,t,n)=>new M$(e,t,n),qi=(e,t)=>({event:e,check:t}),Mw=qi("touchstart",e=>{let t=e;return t.touches!==null&&t.touches!==void 0}),j$=qi("dragstart",e=>e.type.indexOf("drag")!==-1||e.type.indexOf("drop")!==-1),F$=qi("mousedown",e=>e.type.indexOf("touch")===-1&&e.type.indexOf("mouse")!==-1),jw=qi("pointerdown",e=>e.pointerType=="mouse"),I$={backends:[{id:"html5",backend:E$,transition:jw},{id:"touch",backend:$$,options:{enableMouseEvents:!0},preview:!0,transition:Mw}]};const U$=Object.freeze(Object.defineProperty({__proto__:null,HTML5toTouch:I$},Symbol.toStringTag,{value:"Module"})),z$=Bf(U$),Ki=P.createContext({dragDropManager:void 0});function ut(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Dm=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Ju=function(){return Math.random().toString(36).substring(7).split("").join(".")},km={INIT:"@@redux/INIT"+Ju(),REPLACE:"@@redux/REPLACE"+Ju(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ju()}};function H$(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Fw(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(ut(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(ut(1));return n(Fw)(e,t)}if(typeof e!="function")throw new Error(ut(2));var a=e,i=t,o=[],s=o,l=!1;function u(){s===o&&(s=o.slice())}function h(){if(l)throw new Error(ut(3));return i}function d(_){if(typeof _!="function")throw new Error(ut(4));if(l)throw new Error(ut(5));var b=!0;return u(),s.push(_),function(){if(b){if(l)throw new Error(ut(6));b=!1,u();var y=s.indexOf(_);s.splice(y,1),o=null}}}function p(_){if(!H$(_))throw new Error(ut(7));if(typeof _.type>"u")throw new Error(ut(8));if(l)throw new Error(ut(9));try{l=!0,i=a(i,_)}finally{l=!1}for(var b=o=s,v=0;vr&&r[a]?r[a]:n||null,e)}function G$(e,t){return e.filter(n=>n!==t)}function Iw(e){return typeof e=="object"}function V$(e,t){const n=new Map,r=i=>{n.set(i,n.has(i)?n.get(i)+1:1)};e.forEach(r),t.forEach(r);const a=[];return n.forEach((i,o)=>{i===1&&a.push(o)}),a}function q$(e,t){return e.filter(n=>t.indexOf(n)>-1)}const Rh="dnd-core/INIT_COORDS",Fl="dnd-core/BEGIN_DRAG",$h="dnd-core/PUBLISH_DRAG_SOURCE",Il="dnd-core/HOVER",Ul="dnd-core/DROP",zl="dnd-core/END_DRAG";function Am(e,t){return{type:Rh,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const K$={type:Rh,payload:{clientOffset:null,sourceClientOffset:null}};function Y$(e){return function(n=[],r={publishSource:!0}){const{publishSource:a=!0,clientOffset:i,getSourceClientOffset:o}=r,s=e.getMonitor(),l=e.getRegistry();e.dispatch(Am(i)),X$(n,s,l);const u=B$(n,s);if(u==null){e.dispatch(K$);return}let h=null;if(i){if(!o)throw new Error("getSourceClientOffset must be defined");J$(o),h=o(u)}e.dispatch(Am(i,h));const p=l.getSource(u).beginDrag(s,u);if(p==null)return;Q$(p),l.pinSource(u);const w=l.getSourceType(u);return{type:Fl,payload:{itemType:w,item:p,sourceId:u,clientOffset:i||null,sourceClientOffset:h||null,isSourcePublic:!!a}}}}function X$(e,t,n){G(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(r){G(n.getSource(r),"Expected sourceIds to be registered.")})}function J$(e){G(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function Q$(e){G(Iw(e),"Item must be an object.")}function B$(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}function Z$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eL(e){for(var t=1;t{const l=rL(o,s,a,r),u={type:Ul,payload:{dropResult:eL({},n,l)}};e.dispatch(u)})}}function nL(e){G(e.isDragging(),"Cannot call drop while not dragging."),G(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function rL(e,t,n,r){const a=n.getTarget(e);let i=a?a.drop(r,e):void 0;return aL(i),typeof i>"u"&&(i=t===0?{}:r.getDropResult()),i}function aL(e){G(typeof e>"u"||Iw(e),"Drop result must either be an object or undefined.")}function iL(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function oL(e){return function(){const n=e.getMonitor(),r=e.getRegistry();sL(n);const a=n.getSourceId();return a!=null&&(r.getSource(a,!0).endDrag(n,a),r.unpinSource()),{type:zl}}}function sL(e){G(e.isDragging(),"Cannot call endDrag while not dragging.")}function jf(e,t){return t===null?e===null:Array.isArray(e)?e.some(n=>n===t):e===t}function lL(e){return function(n,{clientOffset:r}={}){uL(n);const a=n.slice(0),i=e.getMonitor(),o=e.getRegistry(),s=i.getItemType();return fL(a,o,s),cL(a,i,o),dL(a,i,o),{type:Il,payload:{targetIds:a,clientOffset:r||null}}}}function uL(e){G(Array.isArray(e),"Expected targetIds to be an array.")}function cL(e,t,n){G(t.isDragging(),"Cannot call hover while not dragging."),G(!t.didDrop(),"Cannot call hover after drop.");for(let r=0;r=0;r--){const a=e[r],i=t.getTargetType(a);jf(i,n)||e.splice(r,1)}}function dL(e,t,n){e.forEach(function(r){n.getTarget(r).hover(t,r)})}function hL(e){return function(){if(e.getMonitor().isDragging())return{type:$h}}}function pL(e){return{beginDrag:Y$(e),publishDragSource:hL(e),hover:lL(e),drop:tL(e),endDrag:oL(e)}}class gL{receiveBackend(t){this.backend=t}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const t=this,{dispatch:n}=this.store;function r(i){return(...o)=>{const s=i.apply(t,o);typeof s<"u"&&n(s)}}const a=pL(this);return Object.keys(a).reduce((i,o)=>{const s=a[o];return i[o]=r(s),i},{})}dispatch(t){this.store.dispatch(t)}constructor(t,n){this.isSetUp=!1,this.handleRefCountChange=()=>{const r=this.store.getState().refCount>0;this.backend&&(r&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!r&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=t,this.monitor=n,t.subscribe(this.handleRefCountChange)}}function mL(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Uw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function vL(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return!t||!n||!r?null:Uw(mL(t,r),n)}function yL(e){const{clientOffset:t,initialClientOffset:n}=e;return!t||!n?null:Uw(t,n)}const ui=[],Lh=[];ui.__IS_NONE__=!0;Lh.__IS_ALL__=!0;function wL(e,t){return e===ui?!1:e===Lh||typeof t>"u"?!0:q$(t,e).length>0}class _L{subscribeToStateChange(t,n={}){const{handlerIds:r}=n;G(typeof t=="function","listener must be a function."),G(typeof r>"u"||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let a=this.store.getState().stateId;const i=()=>{const o=this.store.getState(),s=o.stateId;try{s===a||s===a+1&&!wL(o.dirtyHandlerIds,r)||t()}finally{a=s}};return this.store.subscribe(i)}subscribeToOffsetChange(t){G(typeof t=="function","listener must be a function.");let n=this.store.getState().dragOffset;const r=()=>{const a=this.store.getState().dragOffset;a!==n&&(n=a,t())};return this.store.subscribe(r)}canDragSource(t){if(!t)return!1;const n=this.registry.getSource(t);return G(n,`Expected to find a valid source. sourceId=${t}`),this.isDragging()?!1:n.canDrag(this,t)}canDropOnTarget(t){if(!t)return!1;const n=this.registry.getTarget(t);if(G(n,`Expected to find a valid target. targetId=${t}`),!this.isDragging()||this.didDrop())return!1;const r=this.registry.getTargetType(t),a=this.getItemType();return jf(r,a)&&n.canDrop(this,t)}isDragging(){return!!this.getItemType()}isDraggingSource(t){if(!t)return!1;const n=this.registry.getSource(t,!0);if(G(n,`Expected to find a valid source. sourceId=${t}`),!this.isDragging()||!this.isSourcePublic())return!1;const r=this.registry.getSourceType(t),a=this.getItemType();return r!==a?!1:n.isDragging(this,t)}isOverTarget(t,n={shallow:!1}){if(!t)return!1;const{shallow:r}=n;if(!this.isDragging())return!1;const a=this.registry.getTargetType(t),i=this.getItemType();if(i&&!jf(a,i))return!1;const o=this.getTargetIds();if(!o.length)return!1;const s=o.indexOf(t);return r?s===o.length-1:s>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return vL(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return yL(this.store.getState().dragOffset)}constructor(t,n){this.store=t,this.registry=n}}const Rm=typeof global<"u"?global:self,zw=Rm.MutationObserver||Rm.WebKitMutationObserver;function Hw(e){return function(){const n=setTimeout(a,0),r=setInterval(a,50);function a(){clearTimeout(n),clearInterval(r),e()}}}function SL(e){let t=1;const n=new zw(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}const bL=typeof zw=="function"?SL:Hw;class EL{enqueueTask(t){const{queue:n,requestFlush:r}=this;n.length||(r(),this.flushing=!0),n[n.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.indexthis.capacity){for(let r=0,a=t.length-this.index;r{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=bL(this.flush),this.requestErrorThrow=Hw(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class TL{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,n){this.onError=t,this.release=n,this.task=null}}class CL{create(t){const n=this.freeTasks,r=n.length?n.pop():new TL(this.onError,a=>n[n.length]=a);return r.task=t,r}constructor(t){this.onError=t,this.freeTasks=[]}}const Ww=new EL,OL=new CL(Ww.registerPendingError);function xL(e){Ww.enqueueTask(OL.create(e))}const Mh="dnd-core/ADD_SOURCE",jh="dnd-core/ADD_TARGET",Fh="dnd-core/REMOVE_SOURCE",Hl="dnd-core/REMOVE_TARGET";function PL(e){return{type:Mh,payload:{sourceId:e}}}function NL(e){return{type:jh,payload:{targetId:e}}}function DL(e){return{type:Fh,payload:{sourceId:e}}}function kL(e){return{type:Hl,payload:{targetId:e}}}function AL(e){G(typeof e.canDrag=="function","Expected canDrag to be a function."),G(typeof e.beginDrag=="function","Expected beginDrag to be a function."),G(typeof e.endDrag=="function","Expected endDrag to be a function.")}function RL(e){G(typeof e.canDrop=="function","Expected canDrop to be a function."),G(typeof e.hover=="function","Expected hover to be a function."),G(typeof e.drop=="function","Expected beginDrag to be a function.")}function Ff(e,t){if(t&&Array.isArray(e)){e.forEach(n=>Ff(n,!1));return}G(typeof e=="string"||typeof e=="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var ht;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(ht||(ht={}));let $L=0;function LL(){return $L++}function ML(e){const t=LL().toString();switch(e){case ht.SOURCE:return`S${t}`;case ht.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function $m(e){switch(e[0]){case"S":return ht.SOURCE;case"T":return ht.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function Lm(e,t){const n=e.entries();let r=!1;do{const{done:a,value:[,i]}=n.next();if(i===t)return!0;r=!!a}while(!r);return!1}class jL{addSource(t,n){Ff(t),AL(n);const r=this.addHandler(ht.SOURCE,t,n);return this.store.dispatch(PL(r)),r}addTarget(t,n){Ff(t,!0),RL(n);const r=this.addHandler(ht.TARGET,t,n);return this.store.dispatch(NL(r)),r}containsHandler(t){return Lm(this.dragSources,t)||Lm(this.dropTargets,t)}getSource(t,n=!1){return G(this.isSourceId(t),"Expected a valid source ID."),n&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return G(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return G(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return G(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return $m(t)===ht.SOURCE}isTargetId(t){return $m(t)===ht.TARGET}removeSource(t){G(this.getSource(t),"Expected an existing source."),this.store.dispatch(DL(t)),xL(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){G(this.getTarget(t),"Expected an existing target."),this.store.dispatch(kL(t)),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){const n=this.getSource(t);G(n,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=n}unpinSource(){G(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,n,r){const a=ML(t);return this.types.set(a,n),t===ht.SOURCE?this.dragSources.set(a,r):t===ht.TARGET&&this.dropTargets.set(a,r),a}constructor(t){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}}const FL=(e,t)=>e===t;function IL(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function UL(e,t,n=FL){if(e.length!==t.length)return!1;for(let r=0;r0||!UL(n,r)))return ui;const o=r[r.length-1],s=n[n.length-1];return o!==s&&(o&&a.push(o),s&&a.push(s)),a}function HL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WL(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nM(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}let jm=0;const hs=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var Gw=P.memo(function(t){var{children:n}=t,r=tM(t,["children"]);const[a,i]=rM(r);return P.useEffect(()=>{if(i){const o=Vw();return++jm,()=>{--jm===0&&(o[hs]=null)}}},[]),T.jsx(Ki.Provider,{value:a,children:n})});function rM(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=aM(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}function aM(e,t=Vw(),n,r){const a=t;return a[hs]||(a[hs]={dragDropManager:ZL(e,t,n,r)}),a[hs]}function Vw(){return typeof global<"u"?global:window}const iM=P.memo(function({connect:t,src:n}){return P.useEffect(()=>{if(typeof Image>"u")return;let r=!1;const a=new Image;return a.src=n,a.onload=()=>{t(a),r=!0},()=>{r&&t(null)}}),null});var oM=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,a,i;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(a=r;a--!==0;)if(!e(t[a],n[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(i=Object.keys(t),r=i.length,r!==Object.keys(n).length)return!1;for(a=r;a--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[a]))return!1;for(a=r;a--!==0;){var o=i[a];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n};const sM=nl(oM),mr=typeof window<"u"?P.useLayoutEffect:P.useEffect;function qw(e,t,n){const[r,a]=P.useState(()=>t(e)),i=P.useCallback(()=>{const o=t(e);sM(r,o)||(a(o),n&&n())},[r,e,n]);return mr(i),[r,i]}function lM(e,t,n){const[r,a]=qw(e,t,n);return mr(function(){const o=e.getHandlerId();if(o!=null)return e.subscribeToStateChange(a,{handlerIds:[o]})},[e,a]),r}function Kw(e,t,n){return lM(t,e||(()=>({})),()=>n.reconnect())}function Yw(e,t){const n=[...t||[]];return t==null&&typeof e!="function"&&n.push(e),P.useMemo(()=>typeof e=="function"?e():e,n)}function uM(e){return P.useMemo(()=>e.hooks.dragSource(),[e])}function cM(e){return P.useMemo(()=>e.hooks.dragPreview(),[e])}let Qu=!1,Bu=!1;class fM{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){G(!Qu,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Qu=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Qu=!1}}isDragging(){if(!this.sourceId)return!1;G(!Bu,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Bu=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Bu=!1}}subscribeToStateChange(t,n){return this.internalMonitor.subscribeToStateChange(t,n)}isDraggingSource(t){return this.internalMonitor.isDraggingSource(t)}isOverTarget(t,n){return this.internalMonitor.isOverTarget(t,n)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(t){return this.internalMonitor.subscribeToOffsetChange(t)}canDragSource(t){return this.internalMonitor.canDragSource(t)}canDropOnTarget(t){return this.internalMonitor.canDropOnTarget(t)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.sourceId=null,this.internalMonitor=t.getMonitor()}}let Zu=!1;class dM{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,n){return this.internalMonitor.subscribeToStateChange(t,n)}canDrop(){if(!this.targetId)return!1;G(!Zu,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return Zu=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Zu=!1}}isOver(t){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,t):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.targetId=null,this.internalMonitor=t.getMonitor()}}function hM(e,t,n){const r=n.getRegistry(),a=r.addTarget(e,t);return[a,()=>r.removeTarget(a)]}function pM(e,t,n){const r=n.getRegistry(),a=r.addSource(e,t);return[a,()=>r.removeSource(a)]}function If(e,t,n,r){let a=n?n.call(r,e,t):void 0;if(a!==void 0)return!!a;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const i=Object.keys(e),o=Object.keys(t);if(i.length!==o.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let l=0;l, or turn it into a drag source or a drop target itself.`)}function mM(e){return(t=null,n=null)=>{if(!P.isValidElement(t)){const i=t;return e(i,n),i}const r=t;return gM(r),vM(r,n?i=>e(i,n):e)}}function Xw(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const a=mM(r);t[n]=()=>a}}),t}function Fm(e,t){typeof e=="function"?e(t):e.current=t}function vM(e,t){const n=e.ref;return G(typeof n!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a or
. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?P.cloneElement(e,{ref:r=>{Fm(n,r),Fm(t,r)}}):P.cloneElement(e,{ref:t})}class yM{receiveHandlerId(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(t){this.dragSourceOptionsInternal=t}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(t){this.dragPreviewOptionsInternal=t}reconnect(){const t=this.reconnectDragSource();this.reconnectDragPreview(t)}reconnectDragSource(){const t=this.dragSource,n=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return n&&this.disconnectDragSource(),this.handlerId?t?(n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)),n):(this.lastConnectedDragSource=t,n):n}reconnectDragPreview(t=!1){const n=this.dragPreview,r=t||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(r&&this.disconnectDragPreview(),!!this.handlerId){if(!n){this.lastConnectedDragPreview=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=n,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,n,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!If(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!If(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(t){this.hooks=Xw({dragSource:(n,r)=>{this.clearDragSource(),this.dragSourceOptions=r||null,Uf(n)?this.dragSourceRef=n:this.dragSourceNode=n,this.reconnectDragSource()},dragPreview:(n,r)=>{this.clearDragPreview(),this.dragPreviewOptions=r||null,Uf(n)?this.dragPreviewRef=n:this.dragPreviewNode=n,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}}class wM{get connectTarget(){return this.dropTarget}reconnect(){const t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();const n=this.dropTarget;if(this.handlerId){if(!n){this.lastConnectedDropTarget=n;return}t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=n,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,n,this.dropTargetOptions))}}receiveHandlerId(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(t){this.dropTargetOptionsInternal=t}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!If(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(t){this.hooks=Xw({dropTarget:(n,r)=>{this.clearDropTarget(),this.dropTargetOptions=r,Uf(n)?this.dropTargetRef=n:this.dropTargetNode=n,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}}function Hn(){const{dragDropManager:e}=P.useContext(Ki);return G(e!=null,"Expected drag drop context"),e}function _M(e,t){const n=Hn(),r=P.useMemo(()=>new yM(n.getBackend()),[n]);return mr(()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource()),[r,e]),mr(()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,t]),r}function SM(){const e=Hn();return P.useMemo(()=>new fM(e),[e])}class bM{beginDrag(){const t=this.spec,n=this.monitor;let r=null;return typeof t.item=="object"?r=t.item:typeof t.item=="function"?r=t.item(n):r={},r??null}canDrag(){const t=this.spec,n=this.monitor;return typeof t.canDrag=="boolean"?t.canDrag:typeof t.canDrag=="function"?t.canDrag(n):!0}isDragging(t,n){const r=this.spec,a=this.monitor,{isDragging:i}=r;return i?i(a):n===t.getSourceId()}endDrag(){const t=this.spec,n=this.monitor,r=this.connector,{end:a}=t;a&&a(n.getItem(),n),r.reconnect()}constructor(t,n,r){this.spec=t,this.monitor=n,this.connector=r}}function EM(e,t,n){const r=P.useMemo(()=>new bM(e,t,n),[t,n]);return P.useEffect(()=>{r.spec=e},[e]),r}function TM(e){return P.useMemo(()=>{const t=e.type;return G(t!=null,"spec.type must be defined"),t},[e])}function CM(e,t,n){const r=Hn(),a=EM(e,t,n),i=TM(e);mr(function(){if(i!=null){const[s,l]=pM(i,a,r);return t.receiveHandlerId(s),n.receiveHandlerId(s),l}},[r,t,n,a,i])}function Jw(e,t){const n=Yw(e,t);G(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const r=SM(),a=_M(n.options,n.previewOptions);return CM(n,r,a),[Kw(n.collect,r,a),uM(a),cM(a)]}function Qw(e){const n=Hn().getMonitor(),[r,a]=qw(n,e);return P.useEffect(()=>n.subscribeToOffsetChange(a)),P.useEffect(()=>n.subscribeToStateChange(a)),r}function OM(e){return P.useMemo(()=>e.hooks.dropTarget(),[e])}function xM(e){const t=Hn(),n=P.useMemo(()=>new wM(t.getBackend()),[t]);return mr(()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget()),[e]),n}function PM(){const e=Hn();return P.useMemo(()=>new dM(e),[e])}function NM(e){const{accept:t}=e;return P.useMemo(()=>(G(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class DM{canDrop(){const t=this.spec,n=this.monitor;return t.canDrop?t.canDrop(n.getItem(),n):!0}hover(){const t=this.spec,n=this.monitor;t.hover&&t.hover(n.getItem(),n)}drop(){const t=this.spec,n=this.monitor;if(t.drop)return t.drop(n.getItem(),n)}constructor(t,n){this.spec=t,this.monitor=n}}function kM(e,t){const n=P.useMemo(()=>new DM(e,t),[t]);return P.useEffect(()=>{n.spec=e},[e]),n}function AM(e,t,n){const r=Hn(),a=kM(e,t),i=NM(e);mr(function(){const[s,l]=hM(i,a,r);return t.receiveHandlerId(s),n.receiveHandlerId(s),l},[r,t,a,n,i.map(o=>o.toString()).join("|")])}function Bw(e,t){const n=Yw(e,t),r=PM(),a=xM(n.options);return AM(n,r,a),[Kw(n.collect,r,a),OM(a)]}const RM=Object.freeze(Object.defineProperty({__proto__:null,DndContext:Ki,DndProvider:Gw,DragPreviewImage:iM,useDrag:Jw,useDragDropManager:Hn,useDragLayer:Qw,useDrop:Bw},Symbol.toStringTag,{value:"Module"})),Wl=Bf(RM);var zf=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),$M=e=>{let t=e.getInitialClientOffset(),n=e.getInitialSourceClientOffset();return t===null||n===null?{x:0,y:0}:zf(t,n)},LM=(e,t)=>{let n=e.getClientOffset();if(n===null)return null;if(!t.current||!t.current.getBoundingClientRect)return zf(n,$M(e));let r=t.current.getBoundingClientRect(),a={x:r.width/2,y:r.height/2};return zf(n,a)},MM=e=>{let t=`translate(${e.x.toFixed(1)}px, ${e.y.toFixed(1)}px)`;return{pointerEvents:"none",position:"fixed",top:0,left:0,transform:t,WebkitTransform:t}},Zw=()=>{let e=P.useRef(null),t=Qw(n=>({currentOffset:LM(n,e),isDragging:n.isDragging(),itemType:n.getItemType(),item:n.getItem(),monitor:n}));return!t.isDragging||t.currentOffset===null?{display:!1}:{display:!0,itemType:t.itemType,item:t.item,style:MM(t.currentOffset),monitor:t.monitor,ref:e}},Ih=P.createContext(void 0),jM=e=>{let t=Zw();if(!t.display)return null;let{display:n,...r}=t,a;return"children"in e?typeof e.children=="function"?a=e.children(r):a=e.children:a=e.generator(r),Sn.createElement(Ih.Provider,{value:r},a)},e_=P.createContext(null),FM=({portal:e,...t})=>{let[n,r]=P.useState(null);return Sn.createElement(e_.Provider,{value:e??n},Sn.createElement(Gw,{backend:Lw,...t}),e?null:Sn.createElement("div",{ref:r}))},t_=()=>{let[e,t]=P.useState(!1),n=P.useContext(Ki);return P.useEffect(()=>{var i;let r=(i=n==null?void 0:n.dragDropManager)==null?void 0:i.getBackend(),a={backendChanged:o=>{t(o.previewEnabled())}};return t(r.previewEnabled()),r.previewsList().register(a),()=>{r.previewsList().unregister(a)}},[n,n.dragDropManager]),e},n_=e=>{let t=t_(),n=P.useContext(e_);if(!t)return null;let r=Sn.createElement(jM,{...e});return n!==null?Q0.createPortal(r,n):r};n_.Context=Ih;var IM=(e,t,n,r)=>{let a=n.getBackend();n.receiveBackend(r);let i=t(e);return n.receiveBackend(a),i},r_=(e,t)=>{var s;let n=P.useContext(Ki),r=(s=n==null?void 0:n.dragDropManager)==null?void 0:s.getBackend();if(r===void 0)throw new Error("could not find backend, make sure you are using a ");let a=t(e),i={},o=r.backendsList();for(let l of o)i[l.id]=IM(e,t,n.dragDropManager,l.instance);return[a,i]},UM=e=>r_(e,Jw),zM=e=>r_(e,Bw),HM=()=>{let e=t_(),t=Zw();return e?t:{display:!1}};const WM=Object.freeze(Object.defineProperty({__proto__:null,DndProvider:FM,HTML5DragTransition:j$,MouseTransition:F$,MultiBackend:Lw,PointerTransition:jw,Preview:n_,PreviewContext:Ih,TouchTransition:Mw,createTransition:qi,useMultiDrag:UM,useMultiDrop:zM,usePreview:HM},Symbol.toStringTag,{value:"Module"})),GM=Bf(WM);var a_={},Gl={},Vl={};Object.defineProperty(Vl,"__esModule",{value:!0});Vl.default=qM;let Fo;const VM=new Uint8Array(16);function qM(){if(!Fo&&(Fo=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Fo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Fo(VM)}var Wn={},Er={},ql={};Object.defineProperty(ql,"__esModule",{value:!0});ql.default=void 0;var KM=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;ql.default=KM;Object.defineProperty(Er,"__esModule",{value:!0});Er.default=void 0;var YM=XM(ql);function XM(e){return e&&e.__esModule?e:{default:e}}function JM(e){return typeof e=="string"&&YM.default.test(e)}var QM=JM;Er.default=QM;Object.defineProperty(Wn,"__esModule",{value:!0});Wn.default=void 0;Wn.unsafeStringify=i_;var BM=ZM(Er);function ZM(e){return e&&e.__esModule?e:{default:e}}const Te=[];for(let e=0;e<256;++e)Te.push((e+256).toString(16).slice(1));function i_(e,t=0){return Te[e[t+0]]+Te[e[t+1]]+Te[e[t+2]]+Te[e[t+3]]+"-"+Te[e[t+4]]+Te[e[t+5]]+"-"+Te[e[t+6]]+Te[e[t+7]]+"-"+Te[e[t+8]]+Te[e[t+9]]+"-"+Te[e[t+10]]+Te[e[t+11]]+Te[e[t+12]]+Te[e[t+13]]+Te[e[t+14]]+Te[e[t+15]]}function e5(e,t=0){const n=i_(e,t);if(!(0,BM.default)(n))throw TypeError("Stringified UUID is invalid");return n}var t5=e5;Wn.default=t5;Object.defineProperty(Gl,"__esModule",{value:!0});Gl.default=void 0;var n5=a5(Vl),r5=Wn;function a5(e){return e&&e.__esModule?e:{default:e}}let Im,ec,tc=0,nc=0;function i5(e,t,n){let r=t&&n||0;const a=t||new Array(16);e=e||{};let i=e.node||Im,o=e.clockseq!==void 0?e.clockseq:ec;if(i==null||o==null){const p=e.random||(e.rng||n5.default)();i==null&&(i=Im=[p[0]|1,p[1],p[2],p[3],p[4],p[5]]),o==null&&(o=ec=(p[6]<<8|p[7])&16383)}let s=e.msecs!==void 0?e.msecs:Date.now(),l=e.nsecs!==void 0?e.nsecs:nc+1;const u=s-tc+(l-nc)/1e4;if(u<0&&e.clockseq===void 0&&(o=o+1&16383),(u<0||s>tc)&&e.nsecs===void 0&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");tc=s,nc=l,ec=o,s+=122192928e5;const h=((s&268435455)*1e4+l)%4294967296;a[r++]=h>>>24&255,a[r++]=h>>>16&255,a[r++]=h>>>8&255,a[r++]=h&255;const d=s/4294967296*1e4&268435455;a[r++]=d>>>8&255,a[r++]=d&255,a[r++]=d>>>24&15|16,a[r++]=d>>>16&255,a[r++]=o>>>8|128,a[r++]=o&255;for(let p=0;p<6;++p)a[r+p]=i[p];return t||(0,r5.unsafeStringify)(a)}var o5=i5;Gl.default=o5;var Kl={},jn={},Yi={};Object.defineProperty(Yi,"__esModule",{value:!0});Yi.default=void 0;var s5=l5(Er);function l5(e){return e&&e.__esModule?e:{default:e}}function u5(e){if(!(0,s5.default)(e))throw TypeError("Invalid UUID");let t;const n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=t&255,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=t&255,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=t&255,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=t&255,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=t&255,n}var c5=u5;Yi.default=c5;Object.defineProperty(jn,"__esModule",{value:!0});jn.URL=jn.DNS=void 0;jn.default=g5;var f5=Wn,d5=h5(Yi);function h5(e){return e&&e.__esModule?e:{default:e}}function p5(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n>5]>>>a%32&255,o=parseInt(r.charAt(i>>>4&15)+r.charAt(i&15),16);t.push(o)}return t}function l_(e){return(e+64>>>9<<4)+14+1}function y5(e,t){e[t>>5]|=128<>5]|=(e[r/8]&255)<>16)+(t>>16)+(n>>16)<<16|n&65535}function _5(e,t){return e<>>32-t}function Xl(e,t,n,r,a,i){return _n(_5(_n(_n(t,e),_n(r,i)),a),n)}function ke(e,t,n,r,a,i,o){return Xl(t&n|~t&r,e,t,a,i,o)}function Ae(e,t,n,r,a,i,o){return Xl(t&r|n&~r,e,t,a,i,o)}function Re(e,t,n,r,a,i,o){return Xl(t^n^r,e,t,a,i,o)}function $e(e,t,n,r,a,i,o){return Xl(n^(t|~r),e,t,a,i,o)}var S5=m5;Yl.default=S5;Object.defineProperty(Kl,"__esModule",{value:!0});Kl.default=void 0;var b5=u_(jn),E5=u_(Yl);function u_(e){return e&&e.__esModule?e:{default:e}}const T5=(0,b5.default)("v3",48,E5.default);var C5=T5;Kl.default=C5;var Jl={},Ql={};Object.defineProperty(Ql,"__esModule",{value:!0});Ql.default=void 0;const O5=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var x5={randomUUID:O5};Ql.default=x5;Object.defineProperty(Jl,"__esModule",{value:!0});Jl.default=void 0;var Um=c_(Ql),P5=c_(Vl),N5=Wn;function c_(e){return e&&e.__esModule?e:{default:e}}function D5(e,t,n){if(Um.default.randomUUID&&!t&&!e)return Um.default.randomUUID();e=e||{};const r=e.random||(e.rng||P5.default)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let a=0;a<16;++a)t[n+a]=r[a];return t}return(0,N5.unsafeStringify)(r)}var k5=D5;Jl.default=k5;var Bl={},Zl={};Object.defineProperty(Zl,"__esModule",{value:!0});Zl.default=void 0;function A5(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function rc(e,t){return e<>>32-t}function R5(e){const t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){const o=unescape(encodeURIComponent(e));e=[];for(let s=0;s>>0;p=d,d=h,h=rc(u,30)>>>0,u=l,l=_}n[0]=n[0]+l>>>0,n[1]=n[1]+u>>>0,n[2]=n[2]+h>>>0,n[3]=n[3]+d>>>0,n[4]=n[4]+p>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,n[0]&255,n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,n[1]&255,n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,n[2]&255,n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,n[3]&255,n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,n[4]&255]}var $5=R5;Zl.default=$5;Object.defineProperty(Bl,"__esModule",{value:!0});Bl.default=void 0;var L5=f_(jn),M5=f_(Zl);function f_(e){return e&&e.__esModule?e:{default:e}}const j5=(0,L5.default)("v5",80,M5.default);var F5=j5;Bl.default=F5;var eu={};Object.defineProperty(eu,"__esModule",{value:!0});eu.default=void 0;var I5="00000000-0000-0000-0000-000000000000";eu.default=I5;var tu={};Object.defineProperty(tu,"__esModule",{value:!0});tu.default=void 0;var U5=z5(Er);function z5(e){return e&&e.__esModule?e:{default:e}}function H5(e){if(!(0,U5.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}var W5=H5;tu.default=W5;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return o.default}});var t=h(Gl),n=h(Kl),r=h(Jl),a=h(Bl),i=h(eu),o=h(tu),s=h(Er),l=h(Wn),u=h(Yi);function h(d){return d&&d.__esModule?d:{default:d}}})(a_);var Pe={},G5=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Pe,"__esModule",{value:!0});Pe.MosaicWindowContext=Pe.MosaicContext=void 0;var d_=G5(P);Pe.MosaicContext=d_.default.createContext(void 0);Pe.MosaicWindowContext=d_.default.createContext(void 0);var nu={},zm=wa,V5=Pl,q5=wt,Hm=zm?zm.isConcatSpreadable:void 0;function K5(e){return q5(e)||V5(e)||!!(Hm&&e&&e[Hm])}var Y5=K5,X5=bh,J5=Y5;function h_(e,t,n,r,a){var i=-1,o=e.length;for(n||(n=J5),a||(a=[]);++i0&&n(s)?t>1?h_(s,t-1,n,r,a):X5(a,s):r||(a[a.length]=s)}return a}var Q5=h_,B5=Q5;function Z5(e){var t=e==null?0:e.length;return t?B5(e,1):[]}var e8=Z5,ru={};function t8(e,t,n){return e===e&&(n!==void 0&&(e=e<=n?e:n),t!==void 0&&(e=e>=t?e:t)),e}var n8=t8,r8=/\s/;function a8(e){for(var t=e.length;t--&&r8.test(e.charAt(t)););return t}var i8=a8,o8=i8,s8=/^\s+/;function l8(e){return e&&e.slice(0,o8(e)+1).replace(s8,"")}var u8=l8,c8=u8,Wm=It,f8=Ml,Gm=0/0,d8=/^[-+]0x[0-9a-f]+$/i,h8=/^0b[01]+$/i,p8=/^0o[0-7]+$/i,g8=parseInt;function m8(e){if(typeof e=="number")return e;if(f8(e))return Gm;if(Wm(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Wm(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=c8(e);var n=h8.test(e);return n||p8.test(e)?g8(e.slice(2),n?2:8):d8.test(e)?Gm:+e}var Uh=m8,v8=n8,ac=Uh;function y8(e,t,n){return n===void 0&&(n=t,t=void 0),n!==void 0&&(n=ac(n),n=n===n?n:0),t!==void 0&&(t=ac(t),t=t===t?t:0),v8(ac(e),t,n)}var w8=y8,_8=Dt,S8=function(){return _8.Date.now()},b8=S8,E8=It,ic=b8,Vm=Uh,T8="Expected a function",C8=Math.max,O8=Math.min;function x8(e,t,n){var r,a,i,o,s,l,u=0,h=!1,d=!1,p=!0;if(typeof e!="function")throw new TypeError(T8);t=Vm(t)||0,E8(n)&&(h=!!n.leading,d="maxWait"in n,i=d?C8(Vm(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p);function w(k){var E=r,C=a;return r=a=void 0,u=k,o=e.apply(C,E),o}function m(k){return u=k,s=setTimeout(v,t),h?w(k):o}function _(k){var E=k-l,C=k-u,O=t-E;return d?O8(O,i-C):O}function b(k){var E=k-l,C=k-u;return l===void 0||E>=t||E<0||d&&C>=i}function v(){var k=ic();if(b(k))return y(k);s=setTimeout(v,_(k))}function y(k){return s=void 0,p&&r?w(k):(r=a=void 0,o)}function S(){s!==void 0&&clearTimeout(s),u=0,r=l=a=s=void 0}function x(){return s===void 0?o:y(ic())}function D(){var k=ic(),E=b(k);if(r=arguments,a=this,l=k,E){if(s===void 0)return m(l);if(d)return clearTimeout(s),s=setTimeout(v,t),w(l)}return s===void 0&&(s=setTimeout(v,t)),o}return D.cancel=S,D.flush=x,D}var P8=x8,N8=P8,D8=It,k8="Expected a function";function A8(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(k8);return D8(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),N8(e,t,{leading:r,maxWait:t,trailing:a})}var R8=A8,zh={},au={};Object.defineProperty(au,"__esModule",{value:!0});au.assertNever=void 0;function $8(e){throw new Error("Unhandled case: "+JSON.stringify(e))}au.assertNever=$8;(function(e){var t=$&&$.__assign||function(){return t=Object.assign||function(r){for(var a,i=1,o=arguments.length;i1;){for(;b.length>0;)b.length>1?v.push({direction:"row",first:b.shift(),second:b.shift()}):v.unshift(b.shift());b=v,v=[]}return a(b[0],_)}e.createBalancedTreeFromLeaves=s;function l(m){if(m==="first")return"second";if(m==="second")return"first";throw new Error("Branch '".concat(m,"' not a valid branch"))}e.getOtherBranch=l;function u(m){return m==="row"?"column":"row"}e.getOtherDirection=u;function h(m,_){for(var b=m,v=[];o(b);)b.direction==="row"&&(_===i.TOP_LEFT||_===i.BOTTOM_LEFT)||b.direction==="column"&&(_===i.TOP_LEFT||_===i.TOP_RIGHT)?(v.push("first"),b=b.first):(v.push("second"),b=b.second);return v}e.getPathToCorner=h;function d(m){return m==null?[]:o(m)?d(m.first).concat(d(m.second)):[m]}e.getLeaves=d;function p(m,_){return _.length>0?(0,r.default)(m,_,null):m}e.getNodeAtPath=p;function w(m,_){if(m==null)throw new Error("Root is empty, cannot fetch path");var b=p(m,_);if(b==null)throw new Error("Path [".concat(_.join(", "),"] did not resolve to a node"));return b}e.getAndAssertNodeAtPathExists=w})(Xi);var T7=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qs=$&&$.__assign||function(){return Qs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n"u"&&!i.call(C,H))&&(U===C&&(U=d(C)),l(U)==="Map"?U.set(H,on):U[H]=on)}}),U},E}();t.Context=p;var w={$push:function(E,C,O){return _(C,O,"$push"),E.length?C.concat(E):C},$unshift:function(E,C,O){return _(C,O,"$unshift"),E.length?E.concat(C):C},$splice:function(E,C,O,N){return v(C,O),E.forEach(function(L){y(L),C===N&&L.length&&(C=d(N)),o.apply(C,L)}),C},$set:function(E,C,O){return x(O),E},$toggle:function(E,C){b(E,"$toggle");var O=E.length?d(C):C;return E.forEach(function(N){O[N]=!C[N]}),O},$unset:function(E,C,O,N){return b(E,"$unset"),E.forEach(function(L){Object.hasOwnProperty.call(C,L)&&(C===N&&(C=d(N)),delete C[L])}),C},$add:function(E,C,O,N){return k(C,"$add"),b(E,"$add"),l(C)==="Map"?E.forEach(function(L){var U=L[0],H=L[1];C===N&&C.get(U)!==H&&(C=d(N)),C.set(U,H)}):E.forEach(function(L){C===N&&!C.has(L)&&(C=d(N)),C.add(L)}),C},$remove:function(E,C,O,N){return k(C,"$remove"),b(E,"$remove"),E.forEach(function(L){C===N&&C.has(L)&&(C=d(N)),C.delete(L)}),C},$merge:function(E,C,O,N){return D(C,E),h(E).forEach(function(L){E[L]!==C[L]&&(C===N&&(C=d(N)),C[L]=E[L])}),C},$apply:function(E,C){return S(E),E(C)}},m=new p;t.isEquals=m.update.isEquals,t.extend=m.extend,t.default=m.update,t.default.default=e.exports=u(t.default,t);function _(E,C,O){a(Array.isArray(E),function(){return"update(): expected target of "+n(O)+" to be an array; got "+n(E)+"."}),b(C[O],O)}function b(E,C){a(Array.isArray(E),function(){return"update(): expected spec of "+n(C)+" to be an array; got "+n(E)+". Did you forget to wrap your parameter in an array?"})}function v(E,C){a(Array.isArray(E),function(){return"Expected $splice target to be an array; got "+n(E)}),y(C.$splice)}function y(E){a(Array.isArray(E),function(){return"update(): expected spec of $splice to be an array of arrays; got "+n(E)+". Did you forget to wrap your parameters in an array?"})}function S(E){a(typeof E=="function",function(){return"update(): expected spec of $apply to be a function; got "+n(E)+"."})}function x(E){a(Object.keys(E).length===1,function(){return"Cannot have more than one key in an object with $set"})}function D(E,C){a(C&&typeof C=="object",function(){return"update(): $merge expects a spec of type 'object'; got "+n(C)}),a(E&&typeof E=="object",function(){return"update(): $merge expects a target of type 'object'; got "+n(E)})}function k(E,C){var O=l(E);a(O==="Map"||O==="Set",function(){return"update(): "+n(C)+" expects a target of type Set or Map; got "+n(O)})}})(Hf,Hf.exports);var lF=Hf.exports;function uF(e,t,n){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(a);++r0?(0,jF.default)({},e.path,e.spec):e.spec}je.buildSpecFromUpdate=j_;function F_(e,t){var n=e;return t.forEach(function(r){n=(0,$F.default)(n,j_(r))}),n}je.updateTree=F_;function Wf(e,t){var n=(0,L_.default)(t),r=(0,M_.default)(t),a=n.concat((0,Bs.getOtherBranch)(r)),i=(0,Bs.getAndAssertNodeAtPathExists)(e,a);return{path:n,spec:{$set:i}}}je.createRemoveUpdate=Wf;function cv(e,t,n){return(0,MF.default)((0,uv.default)(e,n),(0,uv.default)(t,n))}function FF(e,t,n,r){var a=(0,Bs.getAndAssertNodeAtPathExists)(e,n),i=[],o=cv(t,n,n.length);if(o)a=F_(a,[Wf(a,(0,LF.default)(t,n.length))]);else{i.push(Wf(e,t));var s=cv(t,n,t.length-1);s&&n.splice(t.length-1,1)}var l=(0,Bs.getAndAssertNodeAtPathExists)(e,t),u,h;r===Ho.MosaicDropTargetPosition.LEFT||r===Ho.MosaicDropTargetPosition.TOP?(u=l,h=a):(u=a,h=l);var d="column";return(r===Ho.MosaicDropTargetPosition.LEFT||r===Ho.MosaicDropTargetPosition.RIGHT)&&(d="row"),i.push({path:n,spec:{$set:{first:u,second:h,direction:d}}}),i}je.createDragToUpdates=FF;function IF(e){var t=(0,L_.default)(e),n=(0,M_.default)(e),r;return n==="first"?r=0:r=100,{path:t,spec:{splitPercentage:{$set:r}}}}je.createHideUpdate=IF;function UF(e,t){for(var n,r={},a=e.length-1;a>=0;a--){var i=e[a],o=i==="first"?t:100-t;r=(n={splitPercentage:{$set:o}},n[i]=r,n)}return{spec:r,path:[]}}je.createExpandUpdate=UF;var I_=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zs=$&&$.__assign||function(){return Zs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0){if(++t>=dI)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var mI=gI,vI=fI,yI=mI,wI=yI(vI),_I=wI,SI=Dh,bI=iI,EI=_I;function TI(e,t){return EI(bI(e,t,SI),e+"")}var CI=TI,OI=eI,xI=CI,PI=xI(function(e,t){return OI(e,1,t)}),NI=PI,DI=sw,kI=Gi,AI=Pl,RI=wt,$I=kl,LI=Nl,MI=Dl,jI=vh,FI="[object Map]",II="[object Set]",UI=Object.prototype,zI=UI.hasOwnProperty;function HI(e){if(e==null)return!0;if($I(e)&&(RI(e)||typeof e=="string"||typeof e.splice=="function"||LI(e)||jI(e)||AI(e)))return!e.length;var t=kI(e);if(t==FI||t==II)return!e.size;if(MI(e))return!DI(e).length;for(var n in e)if(zI.call(e,n))return!1;return!0}var WI=HI,vr={},Zi={},Oa={};(function(e){var t=$&&$.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0}),e.createDefaultToolbarButton=e.DefaultToolbarButton=void 0;var n=t(st),r=t(P),a=Pe,i=Gn,o=function(l){var u=l.title,h=l.className,d=l.onClick,p=l.text,w=r.default.useContext(a.MosaicContext).blueprintNamespace;return r.default.createElement("button",{title:u,onClick:d,className:(0,n.default)("mosaic-default-control",i.OptionalBlueprint.getClasses(w,"BUTTON","MINIMAL"),h)},p&&r.default.createElement("span",{className:"control-text"},p))};e.DefaultToolbarButton=o;var s=function(l,u,h,d){return r.default.createElement(e.DefaultToolbarButton,{title:l,className:u,onClick:h,text:d})};e.createDefaultToolbarButton=s})(Oa);var GI=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),z_=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zi,"__esModule",{value:!0});Zi.ExpandButton=void 0;var VI=z_(st),uc=z_(P),hv=Pe,qI=Gn,KI=Oa,YI=function(e){GI(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this;return uc.default.createElement(hv.MosaicContext.Consumer,null,function(r){var a=r.mosaicActions;return uc.default.createElement(KI.DefaultToolbarButton,{title:"Expand",className:(0,VI.default)("expand-button",qI.OptionalBlueprint.getIconClass(n.context.blueprintNamespace,"MAXIMIZE")),onClick:n.createExpand(a)})})},t.prototype.createExpand=function(n){var r=this;return function(){n.expand(r.context.mosaicWindowActions.getPath()),r.props.onClick&&r.props.onClick()}},t.contextType=hv.MosaicWindowContext,t}(uc.default.PureComponent);Zi.ExpandButton=YI;var eo={},XI=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),H_=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(eo,"__esModule",{value:!0});eo.RemoveButton=void 0;var JI=H_(st),cc=H_(P),pv=Pe,QI=Gn,BI=Oa,ZI=function(e){XI(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this;return cc.default.createElement(pv.MosaicContext.Consumer,null,function(r){var a=r.mosaicActions,i=r.blueprintNamespace;return cc.default.createElement(BI.DefaultToolbarButton,{title:"Close Window",className:(0,JI.default)("close-button",QI.OptionalBlueprint.getIconClass(i,"CROSS")),onClick:n.createRemove(a)})})},t.prototype.createRemove=function(n){var r=this;return function(){n.remove(r.context.mosaicWindowActions.getPath()),r.props.onClick&&r.props.onClick()}},t.contextType=pv.MosaicWindowContext,t}(cc.default.PureComponent);eo.RemoveButton=ZI;var to={},eU=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Kh=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(to,"__esModule",{value:!0});to.ReplaceButton=void 0;var tU=Kh(st),nU=Kh(Wh),gv=Kh(P),rU=Pe,aU=Gn,iU=Oa,oU=function(e){eU(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.replace=function(){n.context.mosaicWindowActions.replaceWithNew().then(function(){n.props.onClick&&n.props.onClick()}).catch(nU.default)},n}return t.prototype.render=function(){return gv.default.createElement(iU.DefaultToolbarButton,{title:"Replace Window",className:(0,tU.default)("replace-button",aU.OptionalBlueprint.getIconClass(this.context.blueprintNamespace,"EXCHANGE")),onClick:this.replace})},t.contextType=rU.MosaicWindowContext,t}(gv.default.PureComponent);to.ReplaceButton=oU;var no={},sU=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yh=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(no,"__esModule",{value:!0});no.SplitButton=void 0;var lU=Yh(st),uU=Yh(Wh),mv=Yh(P),cU=Pe,fU=Gn,dU=Oa,hU=function(e){sU(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.split=function(){n.context.mosaicWindowActions.split().then(function(){n.props.onClick&&n.props.onClick()}).catch(uU.default)},n}return t.prototype.render=function(){return mv.default.createElement(dU.DefaultToolbarButton,{title:"Split Window",className:(0,lU.default)("split-button",fU.OptionalBlueprint.getIconClass(this.context.blueprintNamespace,"ADD_COLUMN_RIGHT")),onClick:this.split})},t.contextType=cU.MosaicWindowContext,t}(mv.default.PureComponent);no.SplitButton=hU;var pU=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vr,"__esModule",{value:!0});vr.DEFAULT_CONTROLS_WITHOUT_CREATION=vr.DEFAULT_CONTROLS_WITH_CREATION=void 0;var mn=pU(P),W_=Zi,G_=eo,gU=to,mU=no;vr.DEFAULT_CONTROLS_WITH_CREATION=mn.default.Children.toArray([mn.default.createElement(gU.ReplaceButton,null),mn.default.createElement(mU.SplitButton,null),mn.default.createElement(W_.ExpandButton,null),mn.default.createElement(G_.RemoveButton,null)]);vr.DEFAULT_CONTROLS_WITHOUT_CREATION=mn.default.Children.toArray([mn.default.createElement(W_.ExpandButton,null),mn.default.createElement(G_.RemoveButton,null)]);var ro={},vU=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),yU=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ro,"__esModule",{value:!0});ro.Separator=void 0;var vv=yU(P),wU=function(e){vU(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){return vv.default.createElement("div",{className:"separator"})},t}(vv.default.PureComponent);ro.Separator=wU;var V_=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),el=$&&$.__assign||function(){return el=Object.assign||function(e){for(var t,n=1,r=arguments.length;nn.rootElement.offsetHeight?"row":"column";return Promise.resolve(o.apply(void 0,r)).then(function(d){return l.replaceWith(s,{direction:h,second:d,first:(0,AU.getAndAssertNodeAtPathExists)(u,s)})})},n.swap=function(){for(var r=[],a=0;a0,m=w?this.props.connectDragSource:function(y){return y};if(h){var _=m(h(this.props,o));return ne.default.createElement("div",{className:(0,Ia.default)("mosaic-window-toolbar",{draggable:w})},_)}var b=m(ne.default.createElement("div",{title:i,className:"mosaic-window-title"},i)),v=!(0,CU.default)(s);return ne.default.createElement("div",{className:(0,Ia.default)("mosaic-window-toolbar",{draggable:w})},b,ne.default.createElement("div",{className:(0,Ia.default)("mosaic-window-controls",Ua.OptionalBlueprint.getClasses("BUTTON_GROUP"))},v&&ne.default.createElement("button",{onClick:function(){return r.setAdditionalControlsOpen(!d)},className:(0,Ia.default)(Ua.OptionalBlueprint.getClasses(this.context.blueprintNamespace,"BUTTON","MINIMAL"),Ua.OptionalBlueprint.getIconClass(this.context.blueprintNamespace,"MORE"),(n={},n[Ua.OptionalBlueprint.getClasses(this.context.blueprintNamespace,"ACTIVE")]=d,n))},ne.default.createElement("span",{className:"control-text"},l)),v&&ne.default.createElement(PU.Separator,null),p))},t.prototype.checkCreateNode=function(){if(this.props.createNode==null)throw new Error("Operation invalid unless `createNode` is defined")},t.defaultProps={additionalControlButtonText:"More",draggable:!0,renderPreview:function(n){var r=n.title;return ne.default.createElement("div",{className:"mosaic-preview"},ne.default.createElement("div",{className:"mosaic-window-toolbar"},ne.default.createElement("div",{className:"mosaic-window-title"},r)),ne.default.createElement("div",{className:"mosaic-window-body"},ne.default.createElement("h4",null,r),ne.default.createElement(Ua.OptionalBlueprint.Icon,{className:"default-preview-icon",size:"large",icon:"APPLICATION"})))},renderToolbar:null},t.contextType=Gf.MosaicContext,t}(ne.default.Component);ha.InternalMosaicWindow=q_;function RU(e){var t=(0,ne.useContext)(Gf.MosaicContext),n=t.mosaicActions,r=t.mosaicId,a=(0,yv.useDrag)({type:_v.MosaicDragType.WINDOW,item:function(p){e.onDragStart&&e.onDragStart();var w=(0,EU.default)(function(){return n.hide(e.path)});return{mosaicId:r,hideTimer:w}},end:function(p,w){var m=p.hideTimer;window.clearTimeout(m);var _=e.path,b=w.getDropResult()||{},v=b.position,y=b.path;v!=null&&y!=null&&!(0,OU.default)(y,_)?(n.updateTree((0,kU.createDragToUpdates)(n.getRoot(),_,y,v)),e.onDragEnd&&e.onDragEnd("drop")):(n.updateTree([{path:(0,TU.default)(_),spec:{splitPercentage:{$set:void 0}}}]),e.onDragEnd&&e.onDragEnd("reset"))}}),i=a[1],o=a[2],s=(0,yv.useDrop)({accept:_v.MosaicDragType.WINDOW,collect:function(p){var w;return{isOver:p.isOver(),draggedMosaicId:(w=p.getItem())===null||w===void 0?void 0:w.mosaicId}}}),l=s[0],u=l.isOver,h=l.draggedMosaicId,d=s[1];return ne.default.createElement(q_,el({},e,{connectDragPreview:o,connectDragSource:i,connectDropTarget:d,isOver:u,draggedMosaicId:h}))}var $U=function(e){V_(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){return ne.default.createElement(RU,el({},this.props))},t}(ne.default.PureComponent);ha.MosaicWindow=$U;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_CONTROLS_WITHOUT_CREATION=e.DEFAULT_CONTROLS_WITH_CREATION=e.RemoveButton=e.SplitButton=e.ReplaceButton=e.ExpandButton=e.Separator=e.MosaicZeroState=e.DefaultToolbarButton=e.createDefaultToolbarButton=e.MosaicWindow=e.isParent=e.getPathToCorner=e.getOtherDirection=e.getOtherBranch=e.getNodeAtPath=e.getLeaves=e.getAndAssertNodeAtPathExists=e.Corner=e.createBalancedTreeFromLeaves=e.updateTree=e.createRemoveUpdate=e.createHideUpdate=e.createExpandUpdate=e.createDragToUpdates=e.buildSpecFromUpdate=e.MosaicWindowContext=e.MosaicContext=e.MosaicDragType=e.MosaicWithoutDragDropContext=e.Mosaic=void 0;/** + * @license + * Copyright 2019 Kevin Verdieck, originally developed at Palantir Technologies, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */var t=da;Object.defineProperty(e,"Mosaic",{enumerable:!0,get:function(){return t.Mosaic}}),Object.defineProperty(e,"MosaicWithoutDragDropContext",{enumerable:!0,get:function(){return t.MosaicWithoutDragDropContext}});var n=Tr;Object.defineProperty(e,"MosaicDragType",{enumerable:!0,get:function(){return n.MosaicDragType}});var r=Pe;Object.defineProperty(e,"MosaicContext",{enumerable:!0,get:function(){return r.MosaicContext}}),Object.defineProperty(e,"MosaicWindowContext",{enumerable:!0,get:function(){return r.MosaicWindowContext}});var a=je;Object.defineProperty(e,"buildSpecFromUpdate",{enumerable:!0,get:function(){return a.buildSpecFromUpdate}}),Object.defineProperty(e,"createDragToUpdates",{enumerable:!0,get:function(){return a.createDragToUpdates}}),Object.defineProperty(e,"createExpandUpdate",{enumerable:!0,get:function(){return a.createExpandUpdate}}),Object.defineProperty(e,"createHideUpdate",{enumerable:!0,get:function(){return a.createHideUpdate}}),Object.defineProperty(e,"createRemoveUpdate",{enumerable:!0,get:function(){return a.createRemoveUpdate}}),Object.defineProperty(e,"updateTree",{enumerable:!0,get:function(){return a.updateTree}});var i=Xi;Object.defineProperty(e,"createBalancedTreeFromLeaves",{enumerable:!0,get:function(){return i.createBalancedTreeFromLeaves}}),Object.defineProperty(e,"Corner",{enumerable:!0,get:function(){return i.Corner}}),Object.defineProperty(e,"getAndAssertNodeAtPathExists",{enumerable:!0,get:function(){return i.getAndAssertNodeAtPathExists}}),Object.defineProperty(e,"getLeaves",{enumerable:!0,get:function(){return i.getLeaves}}),Object.defineProperty(e,"getNodeAtPath",{enumerable:!0,get:function(){return i.getNodeAtPath}}),Object.defineProperty(e,"getOtherBranch",{enumerable:!0,get:function(){return i.getOtherBranch}}),Object.defineProperty(e,"getOtherDirection",{enumerable:!0,get:function(){return i.getOtherDirection}}),Object.defineProperty(e,"getPathToCorner",{enumerable:!0,get:function(){return i.getPathToCorner}}),Object.defineProperty(e,"isParent",{enumerable:!0,get:function(){return i.isParent}});var o=ha;Object.defineProperty(e,"MosaicWindow",{enumerable:!0,get:function(){return o.MosaicWindow}});var s=Oa;Object.defineProperty(e,"createDefaultToolbarButton",{enumerable:!0,get:function(){return s.createDefaultToolbarButton}}),Object.defineProperty(e,"DefaultToolbarButton",{enumerable:!0,get:function(){return s.DefaultToolbarButton}});var l=Ji;Object.defineProperty(e,"MosaicZeroState",{enumerable:!0,get:function(){return l.MosaicZeroState}});var u=ro;Object.defineProperty(e,"Separator",{enumerable:!0,get:function(){return u.Separator}});var h=Zi;Object.defineProperty(e,"ExpandButton",{enumerable:!0,get:function(){return h.ExpandButton}});var d=to;Object.defineProperty(e,"ReplaceButton",{enumerable:!0,get:function(){return d.ReplaceButton}});var p=no;Object.defineProperty(e,"SplitButton",{enumerable:!0,get:function(){return p.SplitButton}});var w=eo;Object.defineProperty(e,"RemoveButton",{enumerable:!0,get:function(){return w.RemoveButton}});var m=vr;Object.defineProperty(e,"DEFAULT_CONTROLS_WITH_CREATION",{enumerable:!0,get:function(){return m.DEFAULT_CONTROLS_WITH_CREATION}}),Object.defineProperty(e,"DEFAULT_CONTROLS_WITHOUT_CREATION",{enumerable:!0,get:function(){return m.DEFAULT_CONTROLS_WITHOUT_CREATION}})})(xf);var Sv={CENTER:"center",LEFT:"left",RIGHT:"right"},ao={NONE:"none",PRIMARY:"primary",SUCCESS:"success",WARNING:"warning",DANGER:"danger"},ve="bp5";typeof BLUEPRINT_NAMESPACE<"u"?ve=BLUEPRINT_NAMESPACE:typeof REACT_APP_BLUEPRINT_NAMESPACE<"u"&&(ve=REACT_APP_BLUEPRINT_NAMESPACE);var LU="".concat(ve,"-active"),MU="".concat(ve,"-align-left"),jU="".concat(ve,"-align-right"),FU="".concat(ve,"-disabled"),IU="".concat(ve,"-fill"),Vf="".concat(ve,"-large"),UU="".concat(ve,"-loading"),zU="".concat(ve,"-minimal"),HU="".concat(ve,"-outlined"),qf="".concat(ve,"-small");Fn(ao.PRIMARY);Fn(ao.SUCCESS);Fn(ao.WARNING);Fn(ao.DANGER);var WU="".concat(ve,"-text-overflow-ellipsis"),Xh="".concat(ve,"-button"),GU="".concat(Xh,"-spinner"),VU="".concat(Xh,"-text"),su="".concat(ve,"-spinner"),qU="".concat(su,"-animation"),KU="".concat(su,"-head"),YU="".concat(ve,"-no-spin"),XU="".concat(su,"-track"),Jh="".concat(ve,"-icon"),JU="".concat(Jh,"-standard"),QU="".concat(Jh,"-large");function BU(e){switch(e){case Sv.LEFT:return MU;case Sv.RIGHT:return jU;default:return}}function ZU(e){if(e!=null)return e.indexOf("".concat(ve,"-icon-"))===0?e:"".concat(ve,"-icon-").concat(e)}function Fn(e){if(!(e==null||e===ao.NONE))return"".concat(ve,"-intent-").concat(e.toLowerCase())}var Kf=function(e,t){return Kf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},Kf(e,t)};function K_(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Kf(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Pt=function(){return Pt=Object.assign||function(t){for(var n,r=1,a=arguments.length;r Classes.SMALL/LARGE are ignored if size prop is set.";function bv(e){return typeof NODE_ENV<"u"&&NODE_ENV===e}function nz(e,t,n){if(e==null)return e;if(n0){for(var a=0,i=r.timeoutIds;a0){for(var a=0,i=r.requestIds;a0&&n>="0"&&n<="9"?"_"+n+r:""+n.toUpperCase()+r}function fz(e,t){return t===void 0&&(t={}),J_(e,Xf({delimiter:"",transform:cz},t))}var Jf=function(){return Jf=Object.assign||function(t){for(var n,r=1,a=arguments.length;r{if(i=gz(i),i in Ov)return;Ov[i]=!0;const o=i.endsWith(".css"),s=o?'[rel="stylesheet"]':"";if(!!r)for(let h=a.length-1;h>=0;h--){const d=a[h];if(d.href===i&&(!o||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":pz,o||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),o)return new Promise((h,d)=>{u.addEventListener("load",h),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i})};var Vt=function(){return Vt=Object.assign||function(t){for(var n,r=1,a=arguments.length;r0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]import("./allPathsLoader-dab2b8d3.js"),[])];case 2:return[2,r.sent().allPathsLoader];case 3:return[4,xv(()=>import("./splitPathsBySizeLoader-9e913c89.js"),[])];case 4:return[2,r.sent().splitPathsBySizeLoader]}})})}var Ja=function(){function e(){this.defaultLoader="split-by-size",this.loadedIconPaths16=new Map,this.loadedIconPaths20=new Map}return e.setLoaderOptions=function(t){t.loader!==void 0&&(Ar.defaultLoader=t.loader)},e.load=function(t,n,r){return Yr(this,void 0,void 0,function(){var a=this;return Xr(this,function(i){switch(i.label){case 0:return Array.isArray(t)||(t=[t]),[4,Promise.all(t.map(function(o){return a.loadImpl(o,n,r)}))];case 1:return i.sent(),[2]}})})},e.loadAll=function(t){return Yr(this,void 0,void 0,function(){var n,r=this;return Xr(this,function(a){return n=Object.values(Be),wz("[Blueprint] loading all icons",function(){return Yr(r,void 0,void 0,function(){return Xr(this,function(i){switch(i.label){case 0:return[4,Promise.all([this.load(n,Le.STANDARD,t),this.load(n,Le.LARGE,t)])];case 1:return i.sent(),[2]}})})}),[2]})})},e.getPaths=function(t,n){if(this.isValidIconName(t)){var r=n=Le.LARGE,_=m?Le.LARGE:Le.STANDARD,b="0 0 ".concat(_," ").concat(_),v=bz("iconTitle"),y=Vt({fill:a,height:l,role:"img",viewBox:b,width:l},u);return d===null?P.createElement("svg",Vt({"aria-labelledby":p?v:void 0,"data-icon":o,ref:t},y,w,{className:Mn(r,u==null?void 0:u.className)}),p&&P.createElement("title",{id:v},p),n):P.createElement(d,Vt(Vt({"aria-hidden":p?void 0:!0},w),{className:Mn(Nv,"".concat(Nv,"-").concat(o),r),ref:t,title:i}),P.createElement("svg",Vt({"data-icon":o},y,{className:u==null?void 0:u.className}),p&&P.createElement("title",null,p),n))});Z_.displayName="Blueprint5.SVGIconContainer";var ze=P.forwardRef(function(e,t){var n,r,a=e.autoLoad,i=e.className,o=e.color,s=e.icon,l=e.intent,u=e.tagName,h=e.svgProps,d=e.title,p=e.htmlTitle,w=Qh(e,["autoLoad","className","color","icon","intent","tagName","svgProps","title","htmlTitle"]),m=(r=(n=e.iconSize)!==null&&n!==void 0?n:e.size)!==null&&r!==void 0?r:Le.STANDARD,_=P.useState(function(){return typeof s=="string"?Ja.getPaths(s,m):void 0}),b=_[0],v=_[1];if(P.useEffect(function(){var x=!1;if(typeof s=="string"){var D=Ja.getPaths(s,m);D!==void 0?v(D):a?Ja.load(s,m).then(function(){x||v(Ja.getPaths(s,m))}).catch(function(k){console.error("[Blueprint] Icon '".concat(s,"' (").concat(m,"px) could not be loaded."),k)}):console.error("[Blueprint] Icon '".concat(s,"' (").concat(m,"px) is not loaded yet and autoLoad={false}, did you call Icons.load('").concat(s,"', ").concat(m,")?"))}return function(){x=!0}},[a,s,m]),s==null||typeof s=="boolean")return null;if(typeof s!="string")return s;if(b==null){var y=m===Le.STANDARD?JU:m===Le.LARGE?QU:void 0;return P.createElement(u,Pt(Pt({"aria-hidden":d?void 0:!0},tl(w)),{className:Mn(Jh,y,ZU(s),Fn(l),i),"data-icon":s,ref:t,title:p}))}else{var S=b.map(function(x,D){return P.createElement("path",{d:x,key:D,fillRule:"evenodd"})});return P.createElement(Z_,Pt({children:S,className:Mn(Fn(l),i),color:o,htmlTitle:p,iconName:s,ref:t,size:m,svgProps:h,tagName:u,title:d},tl(w)))}});ze.defaultProps={autoLoad:!0,tagName:"span"};ze.displayName="".concat(io,".Icon");var or;(function(e){e[e.SMALL=20]="SMALL",e[e.STANDARD=50]="STANDARD",e[e.LARGE=100]="LARGE"})(or||(or={}));var fn=45,kv="M 50,50 m 0,-".concat(fn," a ").concat(fn,",").concat(fn," 0 1 1 0,").concat(fn*2," a ").concat(fn,",").concat(fn," 0 1 1 0,-").concat(fn*2),za=280,Ez=10,Tz=4,Cz=16,Oz=function(e){K_(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.componentDidUpdate=function(n){n.value!==this.props.value&&this.forceUpdate()},t.prototype.render=function(){var n,r=this.props,a=r.className,i=r.intent,o=r.value,s=r.tagName,l=s===void 0?"div":s,u=Qh(r,["className","intent","value","tagName"]),h=this.getSize(),d=Mn(su,Fn(i),(n={},n[YU]=o!=null,n),a),p=Math.min(Cz,Tz*or.LARGE/h),w=za-za*(o==null?.25:nz(o,0,1));return P.createElement(l,Pt({"aria-label":"loading","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":o===void 0?void 0:o*100,className:d,role:"progressbar"},u),P.createElement(l,{className:qU},P.createElement("svg",{width:h,height:h,strokeWidth:p.toFixed(2),viewBox:this.getViewBox(p)},P.createElement("path",{className:XU,d:kv}),P.createElement("path",{className:KU,d:kv,pathLength:za,strokeDasharray:"".concat(za," ").concat(za),strokeDashoffset:w}))))},t.prototype.validateProps=function(n){var r=n.className,a=r===void 0?"":r,i=n.size;i!=null&&(a.indexOf(qf)>=0||a.indexOf(Vf)>=0)&&console.warn(tz)},t.prototype.getSize=function(){var n=this.props,r=n.className,a=r===void 0?"":r,i=n.size;return i==null?a.indexOf(qf)>=0?or.SMALL:a.indexOf(Vf)>=0?or.LARGE:or.STANDARD:Math.max(Ez,i)},t.prototype.getViewBox=function(n){var r=fn+n/2,a=(50-r).toFixed(2),i=(r*2).toFixed(2);return"".concat(a," ").concat(a," ").concat(i," ").concat(i)},t.displayName="".concat(io,".Spinner"),t}(oz),Bh=P.forwardRef(function(e,t){var n,r=e.children,a=e.tagName,i=a===void 0?"div":a,o=e.title,s=e.className,l=e.ellipsize,u=Qh(e,["children","tagName","title","className","ellipsize"]),h=P.useRef(),d=P.useMemo(function(){return X_(h,t)},[t]),p=P.useState(""),w=p[0],m=p[1],_=P.useState(),b=_[0],v=_[1];return P.useLayoutEffect(function(){var y;((y=h.current)===null||y===void 0?void 0:y.textContent)!=null&&(v(l&&h.current.scrollWidth>h.current.clientWidth),m(h.current.textContent))},[h,r,l]),P.createElement(i,Pt(Pt({},u),{className:Mn((n={},n[WU]=l,n),s),ref:d,title:o??(b?w:void 0)}),r)});Bh.defaultProps={ellipsize:!1};Bh.displayName="".concat(io,".Text");var bt=P.forwardRef(function(e,t){var n=eS(e,t);return P.createElement("button",Pt({type:"button"},tl(e),n),tS(e))});bt.displayName="".concat(io,".Button");var xz=P.forwardRef(function(e,t){var n=e.href,r=e.tabIndex,a=r===void 0?0:r,i=eS(e,t);return P.createElement("a",Pt({role:"button"},tl(e),i,{"aria-disabled":i.disabled,href:i.disabled?void 0:n,tabIndex:i.disabled?-1:a}),tS(e))});xz.displayName="".concat(io,".AnchorButton");function eS(e,t){var n,r=e.active,a=r===void 0?!1:r,i=e.alignText,o=e.fill,s=e.large,l=e.loading,u=l===void 0?!1:l,h=e.minimal,d=e.onBlur,p=e.onKeyDown,w=e.onKeyUp,m=e.outlined,_=e.small,b=e.tabIndex,v=e.disabled||u,y=P.useState(),S=y[0],x=y[1],D=P.useState(!1),k=D[0],E=D[1],C=P.useRef(null),O=P.useCallback(function(H){k&&E(!1),d==null||d(H)},[k,d]),N=P.useCallback(function(H){Ev(H)&&(H.preventDefault(),H.key!==S&&E(!0)),x(H.key),p==null||p(H)},[S,p]),L=P.useCallback(function(H){var lt;Ev(H)&&(E(!1),(lt=C.current)===null||lt===void 0||lt.click()),x(void 0),w==null||w(H)},[w]),U=Mn(Xh,(n={},n[LU]=!v&&(a||k),n[FU]=v,n[IU]=o,n[Vf]=s,n[UU]=u,n[zU]=h,n[HU]=m,n[qf]=_,n),BU(i),Fn(e.intent),e.className);return{className:U,disabled:v,onBlur:O,onClick:v?void 0:e.onClick,onFocus:v?void 0:e.onFocus,onKeyDown:N,onKeyUp:L,ref:X_(C,t),tabIndex:v?-1:b}}function tS(e){var t=e.children,n=e.ellipsizeText,r=e.icon,a=e.loading,i=e.rightIcon,o=e.text,s=e.textClassName,l=!Yf(o)||!Yf(t);return P.createElement(P.Fragment,null,a&&P.createElement(Oz,{key:"loading",className:GU,size:or.SMALL}),P.createElement(ze,{key:"leftIcon",icon:r}),l&&P.createElement(Bh,{key:"text",className:Mn(VU,s),ellipsize:n,tagName:"span"},o,t),P.createElement(ze,{key:"rightIcon",icon:i}))}const Pz="_stream_table_header_main_container_eshmy_1",Nz="_stream_table_header_fn_row_eshmy_7",Dz="_stream_table_right_container_eshmy_15",kz="_stream_table_title_eshmy_23",Az="_hideFieldBtn_eshmy_31",Rz="_dropdownMenu_eshmy_52",$z="_streamtable_vartype_panel_eshmy_107",Ha={stream_table_header_main_container:Pz,stream_table_header_fn_row:Nz,stream_table_right_container:Dz,stream_table_title:kz,hideFieldBtn:Az,dropdownMenu:Rz,streamtable_vartype_panel:$z};function Av(){P.useContext(it);const[e,t]=P.useState(!1);function n(){document.getElementById("hide-fields-list"),t(r=>!r)}return T.jsxs("div",{className:`${Ha.stream_table_header_main_container}`,children:[T.jsx("div",{className:`${Ha.stream_table_header_fn_row}`,children:T.jsxs("div",{id:"hide-fields-dropdown",className:`nav-link dropdown-toggle idaes-nav-button ${Ha.hideFieldBtn}`,"data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",onClick:n,children:[T.jsx("span",{children:"Hide Fields"}),T.jsx("ul",{id:"hide-fields-list",className:`dropdown-menu checkbox-menu ${Ha.dropdownMenu}`,style:{display:e?"block":"none"}})]})}),T.jsx("div",{id:"existing-variable-types",className:`streamtable-vartype-panel ${Ha.streamtable_vartype_panel}`})]})}const Lz="_flowsheet_variable_ul_15yu2_1",Mz="_variables_display_each_unit_label_15yu2_16",Rv={flowsheet_variable_ul:Lz,variables_display_each_unit_label:Mz};function jz(){const{cells:e,model:t,showVariable:n,setShowVariable:r}=P.useContext(it);console.log(e),console.log(t);let a="loading...";return e?a=e.map((o,s)=>{if(o.attrs&&o.attrs.label&&o.attrs.label.text)return T.jsxs("li",{id:`unit_name_${o}`,className:Rv.variables_display_each_unit_label,"data-open":"false","data-which-label":o.attrs.label.text,onClick:l=>Fz(l,r),children:[Object.keys(n).includes(o.attrs.label.text)?T.jsx(Fe,{icon:AT}):T.jsx(Fe,{icon:PT}),T.jsx("span",{children:o.attrs.label.text})]},o.attrs.label.text+s)}):a="Please check flowsheet Joint JS model, looks like it not contain any Cells",Object.keys(n).length>0,T.jsx(T.Fragment,{children:T.jsx("section",{className:"pd-md",children:T.jsx("ul",{className:`${Rv.flowsheet_variable_ul}`,children:a})})})}function Fz(e,t){const r=e.currentTarget.getAttribute("data-which-label");r?(console.log("here"),t(a=>{const i={...a};return i[r]?delete i[r]:i[r]=r,i})):console.error("Click event not receive which variable")}const Iz="_fvContainer_1oimy_1",Uz="_fv_1oimy_1",$v={fvContainer:Iz,fv:Uz};function zz(){const{panelState:e,cells:t}=P.useContext(it),n=e.fv.show;return T.jsxs(T.Fragment,{children:[T.jsx("h1",{children:{}.VITE_TEST}),n&&T.jsx("section",{id:"fvContainer",className:`${$v.fvContainer}`,children:T.jsx("div",{id:"fv",className:`${$v.fv}`})})]})}const Hz="_diagnosticsIssues_container_qe2yw_1",Wz="_diagnosticIssues_each_issue_qe2yw_11",Gz="_activated_qe2yw_36",Vo={diagnosticsIssues_container:Hz,diagnosticIssues_each_issue:Wz,activated:Gz};function Vz(e){let t=e.diagnosticData,n="Loading...";if(t){let r=t.diagnostics_toolbox_report.structural_report.warning[0],a=t.diagnostics_toolbox_report.numerical_report.warning[0],i={structural:r.length,numerical:a.length};const o=Object.keys(i);let s="";!e.whichIssue&&o.length>0?s=o[0]:s=e.whichIssue,n=o.map((l,u)=>T.jsx("div",{className:`${Vo.diagnosticIssues_each_issue} ${l==s?Vo.activated:Vo.deactivated}`,onClick:()=>e.toggleIssue(l),children:T.jsxs("p",{children:[l," issues",T.jsx("sup",{children:i[l]})]})},u))}else console.log("Diagnostic data is not pass from parent!");return T.jsx("div",{className:Vo.diagnosticsIssues_container,children:n})}const qz="_diagnostics_display_main_container_5xc1d_1",Kz="_diagnostic_display_each_section_container_5xc1d_7",Yz="_diagnostic_display_each_config_container_5xc1d_11",Xz="_diagnostics_display_each_severity_main_container_5xc1d_17",Jz="_diagnostic_display_each_severity_title_5xc1d_21",Qz="_diagnostic_display_diagnostic_content_container_5xc1d_31",Bz="_diagnostics_warning_caution_main_container_5xc1d_35",Zz="_diagnostics_display_pre_tag_5xc1d_39",eH="_diagnostics_warning_caution_display_container_5xc1d_53",tH="_warning_5xc1d_57",nH="_caution_5xc1d_65",rH="_diagnostic_display_each_issue_container_5xc1d_73",aH="_diagnostic_display_section_title_5xc1d_79",iH="_diagnostics_display_each_next_step_content_5xc1d_83",oH="_next_step_function_btn_5xc1d_96",sH="_copied_next_step_5xc1d_106",lH="_error_message_5xc1d_127",Q={diagnostics_display_main_container:qz,diagnostic_display_each_section_container:Kz,diagnostic_display_each_config_container:Yz,diagnostics_display_each_severity_main_container:Xz,diagnostic_display_each_severity_title:Jz,diagnostic_display_diagnostic_content_container:Qz,diagnostics_warning_caution_main_container:Bz,diagnostics_display_pre_tag:Zz,diagnostics_warning_caution_display_container:eH,warning:tH,caution:nH,diagnostic_display_each_issue_container:rH,diagnostic_display_section_title:aH,diagnostics_display_each_next_step_content:iH,next_step_function_btn:oH,copied_next_step:sH,error_message:lH};function uH(e){const{server_port:t,fv_id:n,diagnosticsNextStepsOutputState:r,setDiagnosticsNextStepsOutputState:a,diagnosticsRunFnNameListState:i,setDiagnosticsRunFnNameListState:o,setDiagnosticsRunnerDisplayState:s}=P.useContext(it),l=e.diagnosticData,u=e.whichIssue;let h="Loading jacobian condition...",d="Loading model statistics structural...",p="Loading warning...",w="Loading caution...",m="Loading suggested next step...",_=0,b=0,v=[];if(u&&l&&l.diagnostics_toolbox_report){const S=l.diagnostics_toolbox_report;h=T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:S.toolbox_jacobian_condation});const x=S.toolbox_model_statistics;x&&x.length>0?d=x.map((O,N)=>T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:O},`model_structural_statistics_content${N}_${O}`)):d=T.jsxs(T.Fragment,{children:[T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:" Model Statistics is not generate by diagnostics toolbox, please run: "}),T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:" dt = DiagnosticsToolbox(model)"}),T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:" dt.report_structural_issues()"}),T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:" dt.report_numerical_issues()"})]});const D=S[u=="structural"?"structural_report":"numerical_report"].warning[0];_=D.length,D&&D.length>0?p=D.map((O,N)=>(O=O.replace("WARNING","Warning"),T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:O},`eachWarning_${N}_${O}`))):p=T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:"No warning."});const k=S[u=="structural"?"structural_report":"numerical_report"].caution;b=k.length,k&&k.length>0?w=k.map((O,N)=>(O=O.replace("CAUTION","Caution"),T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:O},`eachCaution_${N}_${O}`))):w=T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:"No caution."});let E=!1;const C=S.next_steps[u=="structural"?"structural":"numerical"];C.length>0&&(E=!0,v=[...C]),E?m=C.map((O,N)=>T.jsxs("p",{className:`${Q.diagnostics_display_each_next_step_content}`,children:[T.jsx("span",{className:"function_name",children:O}),T.jsx("span",{className:`${Q.next_step_function_btn}`,onClick:()=>{y(O)},children:"Run"}),T.jsx("span",{className:`${Q.next_step_function_btn}`,onClick:cH,children:"Copy"})]},`diagnostics_suggested_next_step_${O}`)):(u=="structural"&&(m="Try to initialize / solve your model and then call report_numerical_issues()"),u=="numerical"&&(m="Try to initialize / solve your model and then call report_numerical_issues()"))}alert(t);async function y(S){try{if(!S)return;s(S);let x=S.replace("(","").replace(")","");const D=`http://localhost:${t}/run_diagnostic`,E=new URL(window.location.href).searchParams.get("id"),C={function_name:x,id:E},O=await Zn.put(D,C);console.log(O);const N=O.data;a(L=>{const U={...L};return U[S]||(U[S]=[]),U[S]&&U[S].push(N),U})}catch(x){ir("diagnosticFNRunError",!1,x.response.data.error),console.log(x);const D=document.getElementById("diagnosticsRunner_content_container");if(D){const k=` +
${x.response.data.error}
+                    
+ `;D.innerHTML+=k}}}return P.useEffect(()=>{for(let S=0;S{const k=D.map(E=>E);return k.push(x),k})}},[v]),T.jsxs("div",{className:`${Q.diagnostics_display_main_container}`,children:[T.jsxs("div",{className:Q.diagnostic_display_each_section_container,children:[T.jsx("p",{className:Q.diagnostic_display_section_title,children:"Model Statistics"}),u=="structural"||!u?d:h]}),T.jsxs("div",{className:Q.diagnostic_display_each_section_container,children:[T.jsxs("div",{className:Q.diagnostics_warning_caution_main_container,children:[T.jsxs("div",{className:`${Q.diagnostic_display_each_severity_title} ${Q.warning}`,children:["WARNINGS",T.jsx("span",{children:_})]}),T.jsx("div",{className:Q.diagnostics_warning_caution_display_container,children:p})]}),T.jsxs("div",{className:Q.diagnostics_warning_caution_main_container,children:[T.jsxs("div",{className:`${Q.diagnostic_display_each_severity_title} ${Q.caution}`,children:["CAUTIONS",T.jsx("span",{children:b})]}),T.jsx("div",{className:Q.diagnostics_warning_caution_display_container,children:w})]})]}),T.jsxs("div",{className:Q.diagnostic_display_each_section_container,children:[m!="Loading suggested next step..."&&T.jsx("p",{className:Q.diagnostic_display_section_title,children:"Suggested next steps:"}),T.jsx("div",{className:Q.diagnostic_display_diagnostic_content_container,children:m})]})]})}function cH(e){let t=e.currentTarget,n=t.parentElement.querySelector(".function_name");if(!n){console.error("There is an issue with click copy next step function");return}const r=n.textContent||"";navigator.clipboard.writeText(r).then(()=>{let a;a?clearTimeout(a):(t.innerText="Copied",a=setTimeout(()=>{t.innerText="Copy"},900))}).catch(a=>{console.error("Failed to copy text: ",a)})}function fH(){let{server_port:e,diagnosticsRefreshState:t}=P.useContext(it);const[n,r]=P.useState(null),[a,i]=P.useState("structural"),o=s=>{i(s)};return P.useEffect(()=>{const l=new URL(window.location.href).searchParams.get("id"),u=`http://localhost:${e}/diagnostics?id=${l}`;(async d=>{try{const w=(await Zn.get(d)).data;ir("diagnosticRefresh",!0),r(w)}catch(p){console.error("Fetch diagnostic data error",p),ir("diagnosticRefresh",!1)}})(u)},[t]),T.jsxs(T.Fragment,{children:[T.jsx(Vz,{diagnosticData:n,toggleIssue:o,whichIssue:a}),T.jsx(uH,{diagnosticData:n,whichIssue:a})]})}const dH="_diagnosticsRunner_content_container_151kk_1",Lv={diagnosticsRunner_content_container:dH};function hH(){const{diagnosticsNextStepsOutputState:e,diagnosticsRunnerDisplayState:t,diagnosticsHistoryState:n,setDiagnosticsHistory:r}=P.useContext(it);let a="",i=0;return!t||t=="default"?a="Please select a function to check diagnostics result!":!e[t]||e[t][0].diagnostics_runner_result.length==0?a="Please run diagnostics function first!":e[t]&&e[t]&&(i=e[t].length,a=e[t].map((o,s)=>T.jsx(Sn.Fragment,{children:T.jsx("pre",{id:`diagnostics_log_${s}`,className:Lv.diagnostics_runner_output_pre,children:o.diagnostics_runner_result})},`diagnosticsRunnerDisplayContentContainerContent${s}`))),P.useEffect(()=>{r(o=>i)},[i]),T.jsx("div",{className:Lv.diagnosticsRunner_content_container,id:"diagnosticsRunner_content_container",style:{overflowY:"scroll"},children:a})}const pH="_diagnostics_log_header_history_btn_container_1ynrk_1",gH="_diagnostics_log_header_history_btn_1ynrk_1",mH={diagnostics_log_header_history_btn_container:pH,diagnostics_log_header_history_btn:gH};function vH(){const{diagnosticsHistoryState:e,setDiagnosticsHistory:t,viewInLogPanel:n}=P.useContext(it),[r,a]=P.useState(0),[i,o]=P.useState({hasPrevHistory:!1,hasNextHistory:!1});function s(){r>0&&a(d=>{let p=d;return p-=1,p}),window.location.hash=`#diagnostics_log_${r-1}`}function l(){r{let p=d;return p+=1,p})),window.location.hash=`#diagnostics_log_${r}`}function u(){if(r-1<=0){o(d=>{const p={...d};return p.hasPrevHistory=!1,p});return}if(r-1>=0){o(d=>{const p={...d};return p.hasPrevHistory=!0,p});return}}function h(){if(r==e){o(d=>{const p={...d};return p.hasNextHistory=!1,p});return}if(r{const p={...d};return p.hasNextHistory=!0,p});return}}return P.useEffect(()=>{window.location.hash=`diagnostics_log_${r}`},[n]),P.useEffect(()=>{u(),h(),a(()=>e),window.location.hash=`diagnostics_log_${r-1}`},[e]),P.useEffect(()=>{u(),h(),window.location.hash=`diagnostics_log_${r-1}`},[r]),T.jsxs("div",{id:"diagnostics_log_panel",className:`${mH.diagnostics_log_header_history_btn_container}`,children:[T.jsx(bt,{minimal:!0,disabled:!i.hasPrevHistory,onClick:()=>s(),children:T.jsx(ze,{icon:Be.UNDO,size:20})}),T.jsx(bt,{minimal:!0,disabled:!i.hasNextHistory,onClick:()=>l(),children:T.jsx(ze,{icon:Be.REDO,size:20})})]})}function Mv(){return T.jsx(T.Fragment,{children:T.jsx("div",{id:"stream-table",className:"idaes-container",style:{display:"block"},children:T.jsx("div",{id:"stream-table-container",className:"pd-md tableContainer",children:T.jsx("div",{id:"stream-table-data",className:"ag-theme-alpine"})})})})}const yH=()=>{const{panelState:e,setPanelState:t,fvHeaderState:n,setFvHeaderState:r,diagnosticsRunFnNameListState:a,setDiagnosticsRunnerDisplayState:i,viewInLogPanel:o,setViewInLogPanel:s,setDiagnosticsRefreshState:l}=P.useContext(it),u=n.isShowSteamName,h=n.isShowLabels,[d,p]=P.useState(E());function w(O){Object.keys(o).includes(O)&&s(N=>{const L={...N};return Object.keys(L).forEach(U=>{U==O?L[U]=!0:L[U]=!1}),L})}function m(){return e.diagnostics.show===!0&&o.diagnosticsLogs?T.jsx(hH,{}):e.diagnostics.show===!0&&o.streamTable===!0?T.jsx(Mv,{}):e.diagnostics.show===!1?T.jsx(Mv,{}):T.jsx(T.Fragment,{children:"Bottom panel display error cause by diagnosticsRunnerOrStreamTableDisplay"})}const _={components:T.jsx(jz,{}),flowsheet:T.jsx(zz,{}),diagnostics:T.jsx(fH,{}),streamTableAndDiagnostics:m()},b={components:"Components",flowsheet:"Diagram",diagnostics:"Diagnostics",diagnosticsRunner:"Diagnostics Runner",streamTable:"Stream Table",streamTableAndDiagnostics:"Diagnostics Logs"},v=(O,N)=>(jv(O,y,S,u,h,a,i,o,l),T.jsx(T.Fragment,{children:T.jsx(xf.MosaicWindow,{path:N,createNode:()=>"new",title:b[O],renderToolbar:(L,U)=>T.jsxs("div",{className:"mosaic_customized_toolbar_header",children:[T.jsx("div",{className:"mosaic_customized_toolbar_title_container",children:b[O]==b.streamTableAndDiagnostics?T.jsxs(T.Fragment,{children:[T.jsx("p",{onClick:()=>w("streamTable"),className:` + ${o.streamTable?"mosaic_header_toolbar_title_activate":"mosaic_header_toolbar_title_deactivate"} + mosaic_header_toolbar_title diagnostics_runner_panel_title + `,children:"Stream Table"}),T.jsx("p",{onClick:()=>{e.diagnostics.show&&w("diagnosticsLogs")},className:` + ${o.diagnosticsLogs?"mosaic_header_toolbar_title_activate":"mosaic_header_toolbar_title_deactivate"} + + ${!e.diagnostics.show&&"mosaic_header_tool_bar_fully_deactivate"} + mosaic_header_toolbar_title diagnostics_runner_panel_title + `,children:b[O]})]}):T.jsx("p",{className:"mosaic_header_toolbar_title",children:b[O]})}),T.jsx("div",{className:"mosaic_customized_toolbar_btn_container",children:jv(O,y,S,u,h,a,i,o,l)})]}),children:_[O]})}));function y(){r(O=>({...O,isShowSteamName:!O.isShowSteamName}))}function S(){r(O=>({...O,isShowLabels:!O.isShowLabels}))}function x(O){e.diagnostics.show&&D(O),localStorage.setItem("mosaicLayout",JSON.stringify(O)),p(()=>O)}function D(O){let N,L=localStorage.getItem("diagnosticsPanelParams");L?N=JSON.parse(L):N=k(),Object.keys(O).forEach(U=>{O[U]=="diagnostics"&&(N.direction=O.direction,N.splitPercentage=O.splitPercentage,N.diagnosticsPanelLocationInItem=U,N.diagnosticsPanelLocationInObj=void 0,N.diagnosticsPanelStayWith=void 0),typeof O[U]=="object"&&Object.keys(O[U]).forEach(H=>{if(O[U][H]=="diagnostics"){N.direction=O[U].direction,N.splitPercentage=O[U].splitPercentage;const lt=H=="first"?"second":"first";N.diagnosticsPanelStayWith=O[U][lt],N.diagnosticsPanelLocationInItem=U,N.diagnosticsPanelLocationInObj=H}})}),localStorage.setItem("diagnosticsPanelParams",JSON.stringify(N))}function k(){let O=localStorage.getItem("diagnosticsPanelParams");if(O)return JSON.parse(O);{const N={direction:"row",diagnosticsPanelParamsLocationInItem:"first",diagnosticsPanelLocationInObj:"second",diagnosticsPanelStayWith:"flowsheet",splitPercentage:55};return localStorage.setItem("diagnosticsPanelParams",JSON.stringify(N)),N}}function E(){let O;return e.diagnostics.show&&(O={direction:"column",first:{direction:"row",first:"flowsheet",second:"diagnostics",splitPercentage:55},second:"streamTableAndDiagnostics",splitPercentage:60}),e.diagnostics.show||(O={direction:"column",first:"flowsheet",second:"streamTableAndDiagnostics",splitPercentage:60}),O}function C(){try{if(k(),e.diagnostics.show){let O=JSON.parse(JSON.stringify(d));if(!JSON.stringify(d).includes("diagnostics")){localStorage.getItem("diagnosticsPanelParams")||k();const N=localStorage.getItem("diagnosticsPanelParams");if(N){let L=JSON.parse(N);if(!L.diagnosticsPanelLocationInObj){const U=L.diagnosticsPanelLocationInItem=="first"?"second":"first",H={direction:O.direction?O.direction:"row",splitPercentage:O.splitPercentage?O.splitPercentage:55,first:O.first?O.first:"flowsheet",second:O.second?O.second:"streamTableAndDiagnostics"};O.direction=L.direction?L.direction:"column",O.splitPercentage=L.splitPercentage?L.splitPercentage:55,O[L.diagnosticsPanelLocationInItem]="diagnostics",O[U]=H}if(L.diagnosticsPanelLocationInObj){const U=L.diagnosticsPanelStayWith?L.diagnosticsPanelStayWith:"flowsheet";let H=Object.keys(O).find(Or=>{if(O[Or]==U)return Or});const lt=U=="flowsheet"?"streamTableAndDiagnostics":"flowsheet",on=H=="first"?"second":"first";H||(H="first");const Ut={direction:L.direction?L.direction:"column",splitPercentage:O.splitPercentage?O.splitPercentage:55};Ut[H]=U,H==L.diagnosticsPanelLocationInObj&&(H=="first"?L.diagnosticsPanelLocationInObj="second":L.diagnosticsPanelLocationInObj="first"),Ut[L.diagnosticsPanelLocationInObj]="diagnostics",O=JSON.parse(JSON.stringify(O)),O[H]=Ut,O[on]=lt}}}return O}if(!e.diagnostics.show){let O=JSON.stringify(d),N=JSON.parse(O);return Object.keys(N).forEach(L=>{if(N[L]=="diagnostics"){delete N[L];const U=L=="first"?"second":"first",H=JSON.parse(JSON.stringify(N[U]));N.first=H.first,N.second=H.second,N.direction=H.direction,N.splitPercentage=H.splitPercentage}}),Object.keys(N).forEach(L=>{typeof N[L]=="object"&&Object.keys(N[L]).forEach(U=>{N[L][U]=="diagnostics"&&(delete N[L][U],N[L].first?N[L]=N[L].first:N[L]=N[L].second)})}),N}}catch{console.log("error in get mosaic layout rest layout"),E()}}return P.useEffect(()=>{p(()=>{const O=localStorage.getItem("mosaicLayout");return O?JSON.parse(O):E()})},[e.diagnostics.show]),T.jsx(xf.Mosaic,{renderTile:v,onChange:x,initialValue:C()})};function jv(e,t,n,r,a,i,o,s,l){switch(e){case"components":return T.jsxs("div",{className:"mosaic_toolbar_btn_container",children:[T.jsx(bt,{minimal:!0,children:T.jsx(ze,{icon:Be.MINIMIZE,size:20})}),T.jsx(bt,{minimal:!0,children:T.jsx(ze,{icon:Be.MAXIMIZE,size:20})}),T.jsx(bt,{minimal:!0,children:T.jsx(ze,{icon:Be.CROSS,size:20})})]});case"flowsheet":return T.jsxs("div",{className:"mosaic_toolbar_btn_container",children:[T.jsx(bt,{id:"zoom-in-btn",minimal:!0,children:T.jsx(ze,{icon:Be.ZOOM_IN,size:20})}),T.jsx(bt,{id:"zoom-out-btn",minimal:!0,children:T.jsx(ze,{icon:Be.ZOOM_OUT,size:20})}),T.jsx(bt,{id:"zoom-to-fit",minimal:!0,children:T.jsx(ze,{icon:Be.ZOOM_TO_FIT,size:20})}),T.jsxs(bt,{className:"mosaic_flowsheet_header_view",minimal:!0,children:[T.jsx(ze,{icon:Be.EYE_OPEN,size:20}),T.jsxs("ul",{className:"mosaic_dropdown_view",children:[T.jsxs("li",{id:"stream-names-toggle",onClick:t,"data-toggle":`${r}`,children:[r?T.jsx(Fe,{icon:Lg,className:"mosaic_toolbar_diagram_view_icon_stroke_only"}):T.jsx(Fe,{icon:Mg,className:"mosaic_toolbar_diagram_view_icon_stroke_only"}),T.jsx("span",{children:"Stream Name"})]}),T.jsxs("li",{id:"show-label-toggle",onClick:n,"data-toggle":a?"false":"true",children:[a?T.jsx(Fe,{icon:Lg,className:"mosaic_toolbar_diagram_view_icon_stroke_only"}):T.jsx(Fe,{icon:Mg,className:"mosaic_toolbar_diagram_view_icon_stroke_only"}),T.jsx("span",{children:"Labels"})]})]})]}),T.jsxs(bt,{className:"mosaic_flowsheet_header_download",minimal:!0,children:[T.jsx(ze,{icon:Be.BRING_DATA,size:20}),T.jsxs("ul",{id:"flowsheet_component_header_dropdown_container",className:"mosaic_dropdown_download",children:[T.jsx("li",{id:"headerExportImageBtn",children:"Export PNG"}),T.jsx("li",{id:"headerExportSvgBtn",children:"Export SVG"})]})]})]});case"diagnostics":let u=function(){l(p=>!p)};return T.jsxs("div",{className:"mosaic_toolbar_btn_container",children:[T.jsx("p",{className:"mosaic_diagnostic_toolbar_content",children:"BLOCK: FLOWSHEET"}),T.jsxs("div",{className:"mosaic_toolbar_btn_icon_with_text clickable_btn",onClick:()=>u(),children:[T.jsx(ze,{icon:Be.REFRESH,size:20}),T.jsx("span",{className:"mosaic_toolbar_btn_icon_with_text_text",children:"Refresh"})]})]});case"streamTable":return T.jsx("div",{className:"mosaic_toolbar_btn_container",children:T.jsx(Av,{})});case"streamTableAndDiagnostics":return T.jsxs("div",{className:"mosaic_toolbar_btn_container",children:[!s.diagnosticsLogs&&T.jsx(Av,{}),s.diagnosticsLogs&&T.jsx(vH,{})]});case"diagnosticsRunner":let h=function(p){o(p.currentTarget.value)};const d=i.map((p,w)=>T.jsx("option",{value:`${p}`,children:p},`diagnosticsRunnerSelection${p}`));return T.jsx("div",{className:"mosaic_toolbar_btn_container",children:T.jsxs("select",{name:"diagnosticsRunnerSelection",id:"",className:"mosaic_diagnosticsRunner_select",onChange:h,children:[T.jsx("option",{value:"default",children:"Select a function"}),d]})});default:return T.jsx(T.Fragment,{})}}function wH(e){return e.messageType&&e.messageType,T.jsx(T.Fragment,{children:T.jsx("div",{className:os.message_bar_container,id:"messageBarContainer"})})}const _H="_flowsheetWrapper_11hj9_1",SH={flowsheetWrapper:_H};function bH(){let{server_port:e,fv_id:t,panelState:n,viewInLogPanel:r}=P.useContext(it);const a=n.fv.show,i=n.diagnostics.show,o=n.streamTable.show;return P.useEffect(()=>{let s;return s?s=void 0:(e=="5173"?e=8e3:e=e,s=new MO(t,e,a,!1,o,r)),()=>{s&&typeof s.cleanToolBarEvent=="function"&&s.cleanToolBarEvent()}},[a,o,i,r]),T.jsxs("div",{id:"flowsheet-wrapper",className:SH.flowsheetWrapper,children:[T.jsx(yH,{}),T.jsx(wH,{})]})}function EH(){return T.jsxs("main",{id:"main",className:"main",children:[T.jsx(uC,{}),T.jsx(bH,{})]})}localStorage.getItem("appSetting")||localStorage.setItem("appSetting","{}");dc.createRoot(document.getElementById("root")).render(T.jsx(Nb,{children:T.jsx(EH,{})}));export{Le as I,Yr as _,Xr as a,xv as b,fz as p}; diff --git a/idaes_ui/fv/static/assets/index-1868e2ad.js b/idaes_ui/fv/static/assets/index-1868e2ad.js new file mode 100644 index 00000000..c182b5b5 --- /dev/null +++ b/idaes_ui/fv/static/assets/index-1868e2ad.js @@ -0,0 +1,854 @@ +var nS=Object.defineProperty;var rS=(e,t,n)=>t in e?nS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var U=(e,t,n)=>(rS(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();var $=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Bf(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),n}var Fv={exports:{}},rl={},Iv={exports:{}},Y={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ri=Symbol.for("react.element"),aS=Symbol.for("react.portal"),iS=Symbol.for("react.fragment"),oS=Symbol.for("react.strict_mode"),sS=Symbol.for("react.profiler"),lS=Symbol.for("react.provider"),uS=Symbol.for("react.context"),cS=Symbol.for("react.forward_ref"),fS=Symbol.for("react.suspense"),dS=Symbol.for("react.memo"),hS=Symbol.for("react.lazy"),Zh=Symbol.iterator;function pS(e){return e===null||typeof e!="object"?null:(e=Zh&&e[Zh]||e["@@iterator"],typeof e=="function"?e:null)}var Uv={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},zv=Object.assign,Hv={};function pa(e,t,n){this.props=e,this.context=t,this.refs=Hv,this.updater=n||Uv}pa.prototype.isReactComponent={};pa.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};pa.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Wv(){}Wv.prototype=pa.prototype;function Zf(e,t,n){this.props=e,this.context=t,this.refs=Hv,this.updater=n||Uv}var ed=Zf.prototype=new Wv;ed.constructor=Zf;zv(ed,pa.prototype);ed.isPureReactComponent=!0;var ep=Array.isArray,Gv=Object.prototype.hasOwnProperty,td={current:null},Vv={key:!0,ref:!0,__self:!0,__source:!0};function qv(e,t,n){var r,a={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Gv.call(t,r)&&!Vv.hasOwnProperty(r)&&(a[r]=t[r]);var s=arguments.length-2;if(s===1)a.children=n;else if(1>>1,Se=F[he];if(0>>1;hea(lu,q))qna(so,lu)?(F[he]=so,F[qn]=q,he=qn):(F[he]=lu,F[Vn]=q,he=Vn);else if(qna(so,q))F[he]=so,F[qn]=q,he=qn;else break e}}return V}function a(F,V){var q=F.sortIndex-V.sortIndex;return q!==0?q:F.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],u=[],h=1,d=null,p=3,w=!1,m=!1,_=!1,E=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(F){for(var V=n(u);V!==null;){if(V.callback===null)r(u);else if(V.startTime<=F)r(u),V.sortIndex=V.expirationTime,t(l,V);else break;V=n(u)}}function O(F){if(_=!1,S(F),!m)if(n(l)!==null)m=!0,Ut(D);else{var V=n(u);V!==null&&Or(O,V.startTime-F)}}function D(F,V){m=!1,_&&(_=!1,v(C),C=-1),w=!0;var q=p;try{for(S(V),d=n(l);d!==null&&(!(d.expirationTime>V)||F&&!L());){var he=d.callback;if(typeof he=="function"){d.callback=null,p=d.priorityLevel;var Se=he(d.expirationTime<=V);V=e.unstable_now(),typeof Se=="function"?d.callback=Se:d===n(l)&&r(l),S(V)}else r(l);d=n(l)}if(d!==null)var oo=!0;else{var Vn=n(u);Vn!==null&&Or(O,Vn.startTime-V),oo=!1}return oo}finally{d=null,p=q,w=!1}}var A=!1,b=null,C=-1,x=5,N=-1;function L(){return!(e.unstable_now()-NF||125he?(F.sortIndex=q,t(u,F),n(l)===null&&F===n(u)&&(_?(v(C),C=-1):_=!0,Or(O,q-he))):(F.sortIndex=Se,t(l,F),m||w||(m=!0,Ut(D))),F},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(F){var V=p;return function(){var q=p;p=V;try{return F.apply(this,arguments)}finally{p=q}}}})(Jv);Xv.exports=Jv;var CS=Xv.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Qv=P,nt=CS;function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hc=Object.prototype.hasOwnProperty,OS=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,np={},rp={};function xS(e){return hc.call(rp,e)?!0:hc.call(np,e)?!1:OS.test(e)?rp[e]=!0:(np[e]=!0,!1)}function PS(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function NS(e,t,n,r){if(t===null||typeof t>"u"||PS(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ge(e,t,n,r,a,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){xe[e]=new Ge(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];xe[t]=new Ge(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){xe[e]=new Ge(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){xe[e]=new Ge(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){xe[e]=new Ge(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){xe[e]=new Ge(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){xe[e]=new Ge(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){xe[e]=new Ge(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){xe[e]=new Ge(e,5,!1,e.toLowerCase(),null,!1,!1)});var rd=/[\-:]([a-z])/g;function ad(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(rd,ad);xe[t]=new Ge(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(rd,ad);xe[t]=new Ge(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(rd,ad);xe[t]=new Ge(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){xe[e]=new Ge(e,1,!1,e.toLowerCase(),null,!1,!1)});xe.xlinkHref=new Ge("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){xe[e]=new Ge(e,1,!1,e.toLowerCase(),null,!0,!0)});function id(e,t,n,r){var a=xe.hasOwnProperty(t)?xe[t]:null;(a!==null?a.type!==0:r||!(2s||a[o]!==i[s]){var l=` +`+a[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{fu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Wa(e):""}function DS(e){switch(e.tag){case 5:return Wa(e.type);case 16:return Wa("Lazy");case 13:return Wa("Suspense");case 19:return Wa("SuspenseList");case 0:case 2:case 15:return e=du(e.type,!1),e;case 11:return e=du(e.type.render,!1),e;case 1:return e=du(e.type,!0),e;default:return""}}function vc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case $r:return"Fragment";case Rr:return"Portal";case pc:return"Profiler";case od:return"StrictMode";case gc:return"Suspense";case mc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ey:return(e.displayName||"Context")+".Consumer";case Zv:return(e._context.displayName||"Context")+".Provider";case sd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ld:return t=e.displayName||null,t!==null?t:vc(e.type)||"Memo";case dn:t=e._payload,e=e._init;try{return vc(e(t))}catch{}}return null}function kS(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return vc(t);case 8:return t===od?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function kn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ny(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function AS(e){var t=ny(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function co(e){e._valueTracker||(e._valueTracker=AS(e))}function ry(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ny(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function gs(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function yc(e,t){var n=t.checked;return ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ip(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=kn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ay(e,t){t=t.checked,t!=null&&id(e,"checked",t,!1)}function wc(e,t){ay(e,t);var n=kn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?_c(e,t.type,n):t.hasOwnProperty("defaultValue")&&_c(e,t.type,kn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function op(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function _c(e,t,n){(t!=="number"||gs(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ga=Array.isArray;function Jr(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=fo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function fi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Qa={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},RS=["Webkit","ms","Moz","O"];Object.keys(Qa).forEach(function(e){RS.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qa[t]=Qa[e]})});function ly(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Qa.hasOwnProperty(e)&&Qa[e]?(""+t).trim():t+"px"}function uy(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,a=ly(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}var $S=ce({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ec(e,t){if(t){if($S[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function Tc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Cc=null;function ud(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Oc=null,Qr=null,Br=null;function up(e){if(e=Mi(e)){if(typeof Oc!="function")throw Error(R(280));var t=e.stateNode;t&&(t=ll(t),Oc(e.stateNode,e.type,t))}}function cy(e){Qr?Br?Br.push(e):Br=[e]:Qr=e}function fy(){if(Qr){var e=Qr,t=Br;if(Br=Qr=null,up(e),t)for(e=0;e>>=0,e===0?32:31-(VS(e)/qS|0)|0}var ho=64,po=4194304;function Va(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ws(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,a=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~a;s!==0?r=Va(s):(i&=o,i!==0&&(r=Va(i)))}else o=n&~a,o!==0?r=Va(o):i!==0&&(r=Va(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&a)&&(a=r&-r,i=t&-t,a>=i||a===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function $i(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ot(t),e[t]=n}function JS(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Za),yp=String.fromCharCode(32),wp=!1;function ky(e,t){switch(e){case"keyup":return T2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ay(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Lr=!1;function O2(e,t){switch(e){case"compositionend":return Ay(t);case"keypress":return t.which!==32?null:(wp=!0,yp);case"textInput":return e=t.data,e===yp&&wp?null:e;default:return null}}function x2(e,t){if(Lr)return e==="compositionend"||!vd&&ky(e,t)?(e=Ny(),Xo=pd=vn=null,Lr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ep(n)}}function My(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?My(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jy(){for(var e=window,t=gs();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=gs(e.document)}return t}function yd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function M2(e){var t=jy(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&My(n.ownerDocument.documentElement,n)){if(r!==null&&yd(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=n.textContent.length,i=Math.min(r.start,a);r=r.end===void 0?i:Math.min(r.end,a),!e.extend&&i>r&&(a=r,r=i,i=a),a=Tp(n,i);var o=Tp(n,r);a&&o&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Mr=null,Ac=null,ti=null,Rc=!1;function Cp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Rc||Mr==null||Mr!==gs(r)||(r=Mr,"selectionStart"in r&&yd(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ti&&vi(ti,r)||(ti=r,r=bs(Ac,"onSelect"),0Ir||(e.current=Ic[Ir],Ic[Ir]=null,Ir--)}function ee(e,t){Ir++,Ic[Ir]=e.current,e.current=t}var An={},Ie=Un(An),Ke=Un(!1),ur=An;function aa(e,t){var n=e.type.contextTypes;if(!n)return An;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in n)a[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Ye(e){return e=e.childContextTypes,e!=null}function Ts(){ie(Ke),ie(Ie)}function Ap(e,t,n){if(Ie.current!==An)throw Error(R(168));ee(Ie,t),ee(Ke,n)}function qy(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var a in r)if(!(a in t))throw Error(R(108,kS(e)||"Unknown",a));return ce({},n,r)}function Cs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||An,ur=Ie.current,ee(Ie,e),ee(Ke,Ke.current),!0}function Rp(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=qy(e,t,ur),r.__reactInternalMemoizedMergedChildContext=e,ie(Ke),ie(Ie),ee(Ie,e)):ie(Ke),ee(Ke,n)}var Wt=null,ul=!1,Ou=!1;function Ky(e){Wt===null?Wt=[e]:Wt.push(e)}function Y2(e){ul=!0,Ky(e)}function zn(){if(!Ou&&Wt!==null){Ou=!0;var e=0,t=B;try{var n=Wt;for(B=1;e>=o,a-=o,qt=1<<32-Ot(t)+a|n<C?(x=b,b=null):x=b.sibling;var N=p(v,b,S[C],O);if(N===null){b===null&&(b=x);break}e&&b&&N.alternate===null&&t(v,b),y=i(N,y,C),A===null?D=N:A.sibling=N,A=N,b=x}if(C===S.length)return n(v,b),se&&Yn(v,C),D;if(b===null){for(;CC?(x=b,b=null):x=b.sibling;var L=p(v,b,N.value,O);if(L===null){b===null&&(b=x);break}e&&b&&L.alternate===null&&t(v,b),y=i(L,y,C),A===null?D=L:A.sibling=L,A=L,b=x}if(N.done)return n(v,b),se&&Yn(v,C),D;if(b===null){for(;!N.done;C++,N=S.next())N=d(v,N.value,O),N!==null&&(y=i(N,y,C),A===null?D=N:A.sibling=N,A=N);return se&&Yn(v,C),D}for(b=r(v,b);!N.done;C++,N=S.next())N=w(b,v,C,N.value,O),N!==null&&(e&&N.alternate!==null&&b.delete(N.key===null?C:N.key),y=i(N,y,C),A===null?D=N:A.sibling=N,A=N);return e&&b.forEach(function(z){return t(v,z)}),se&&Yn(v,C),D}function E(v,y,S,O){if(typeof S=="object"&&S!==null&&S.type===$r&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case uo:e:{for(var D=S.key,A=y;A!==null;){if(A.key===D){if(D=S.type,D===$r){if(A.tag===7){n(v,A.sibling),y=a(A,S.props.children),y.return=v,v=y;break e}}else if(A.elementType===D||typeof D=="object"&&D!==null&&D.$$typeof===dn&&Up(D)===A.type){n(v,A.sibling),y=a(A,S.props),y.ref=Ra(v,A,S),y.return=v,v=y;break e}n(v,A);break}else t(v,A);A=A.sibling}S.type===$r?(y=lr(S.props.children,v.mode,O,S.key),y.return=v,v=y):(O=rs(S.type,S.key,S.props,null,v.mode,O),O.ref=Ra(v,y,S),O.return=v,v=O)}return o(v);case Rr:e:{for(A=S.key;y!==null;){if(y.key===A)if(y.tag===4&&y.stateNode.containerInfo===S.containerInfo&&y.stateNode.implementation===S.implementation){n(v,y.sibling),y=a(y,S.children||[]),y.return=v,v=y;break e}else{n(v,y);break}else t(v,y);y=y.sibling}y=$u(S,v.mode,O),y.return=v,v=y}return o(v);case dn:return A=S._init,E(v,y,A(S._payload),O)}if(Ga(S))return m(v,y,S,O);if(Pa(S))return _(v,y,S,O);So(v,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,y!==null&&y.tag===6?(n(v,y.sibling),y=a(y,S),y.return=v,v=y):(n(v,y),y=Ru(S,v.mode,O),y.return=v,v=y),o(v)):n(v,y)}return E}var oa=t0(!0),n0=t0(!1),ji={},jt=Un(ji),Si=Un(ji),bi=Un(ji);function nr(e){if(e===ji)throw Error(R(174));return e}function xd(e,t){switch(ee(bi,t),ee(Si,e),ee(jt,ji),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:bc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=bc(t,e)}ie(jt),ee(jt,t)}function sa(){ie(jt),ie(Si),ie(bi)}function r0(e){nr(bi.current);var t=nr(jt.current),n=bc(t,e.type);t!==n&&(ee(Si,e),ee(jt,n))}function Pd(e){Si.current===e&&(ie(jt),ie(Si))}var le=Un(0);function ks(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var xu=[];function Nd(){for(var e=0;en?n:4,e(!0);var r=Pu.transition;Pu.transition={};try{e(!1),t()}finally{B=n,Pu.transition=r}}function w0(){return yt().memoizedState}function B2(e,t,n){var r=Pn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},_0(e))S0(t,n);else if(n=Qy(e,t,n,r),n!==null){var a=He();xt(n,e,r,a),b0(n,t,r)}}function Z2(e,t,n){var r=Pn(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(_0(e))S0(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,s=i(o,n);if(a.hasEagerState=!0,a.eagerState=s,Nt(s,o)){var l=t.interleaved;l===null?(a.next=a,Cd(t)):(a.next=l.next,l.next=a),t.interleaved=a;return}}catch{}finally{}n=Qy(e,t,a,r),n!==null&&(a=He(),xt(n,e,r,a),b0(n,t,r))}}function _0(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function S0(e,t){ni=As=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function b0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,fd(e,n)}}var Rs={readContext:vt,useCallback:Ne,useContext:Ne,useEffect:Ne,useImperativeHandle:Ne,useInsertionEffect:Ne,useLayoutEffect:Ne,useMemo:Ne,useReducer:Ne,useRef:Ne,useState:Ne,useDebugValue:Ne,useDeferredValue:Ne,useTransition:Ne,useMutableSource:Ne,useSyncExternalStore:Ne,useId:Ne,unstable_isNewReconciler:!1},eb={readContext:vt,useCallback:function(e,t){return At().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:Hp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Zo(4194308,4,p0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Zo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Zo(4,2,e,t)},useMemo:function(e,t){var n=At();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=At();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=B2.bind(null,ue,e),[r.memoizedState,e]},useRef:function(e){var t=At();return e={current:e},t.memoizedState=e},useState:zp,useDebugValue:$d,useDeferredValue:function(e){return At().memoizedState=e},useTransition:function(){var e=zp(!1),t=e[0];return e=Q2.bind(null,e[1]),At().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ue,a=At();if(se){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),Ee===null)throw Error(R(349));fr&30||o0(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,Hp(l0.bind(null,r,i,e),[e]),r.flags|=2048,Ci(9,s0.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=At(),t=Ee.identifierPrefix;if(se){var n=Kt,r=qt;n=(r&~(1<<32-Ot(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ei++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Rt]=t,e[_i]=r,k0(e,t,!1,!1),t.stateNode=e;e:{switch(o=Tc(n,r),n){case"dialog":te("cancel",e),te("close",e),a=r;break;case"iframe":case"object":case"embed":te("load",e),a=r;break;case"video":case"audio":for(a=0;aua&&(t.flags|=128,r=!0,$a(i,!1),t.lanes=4194304)}else{if(!r)if(e=ks(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),$a(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!se)return De(t),null}else 2*pe()-i.renderingStartTime>ua&&n!==1073741824&&(t.flags|=128,r=!0,$a(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=pe(),t.sibling=null,n=le.current,ee(le,r?n&1|2:n&1),t):(De(t),null);case 22:case 23:return Ud(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ze&1073741824&&(De(t),t.subtreeFlags&6&&(t.flags|=8192)):De(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function lb(e,t){switch(_d(t),t.tag){case 1:return Ye(t.type)&&Ts(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return sa(),ie(Ke),ie(Ie),Nd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Pd(t),null;case 13:if(ie(le),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));ia()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ie(le),null;case 4:return sa(),null;case 10:return Td(t.type._context),null;case 22:case 23:return Ud(),null;case 24:return null;default:return null}}var Eo=!1,Me=!1,ub=typeof WeakSet=="function"?WeakSet:Set,j=null;function Wr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){fe(e,t,r)}else n.current=null}function Qc(e,t,n){try{n()}catch(r){fe(e,t,r)}}var Qp=!1;function cb(e,t){if($c=_s,e=jy(),yd(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,s=-1,l=-1,u=0,h=0,d=e,p=null;t:for(;;){for(var w;d!==n||a!==0&&d.nodeType!==3||(s=o+a),d!==i||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(w=d.firstChild)!==null;)p=d,d=w;for(;;){if(d===e)break t;if(p===n&&++u===a&&(s=o),p===i&&++h===r&&(l=o),(w=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=w}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Lc={focusedElem:e,selectionRange:n},_s=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var _=m.memoizedProps,E=m.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?_:St(t.type,_),E);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(O){fe(t,t.return,O)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return m=Qp,Qp=!1,m}function ri(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,i!==void 0&&Qc(t,n,i)}a=a.next}while(a!==r)}}function dl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Bc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function $0(e){var t=e.alternate;t!==null&&(e.alternate=null,$0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Rt],delete t[_i],delete t[Fc],delete t[q2],delete t[K2])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function L0(e){return e.tag===5||e.tag===3||e.tag===4}function Bp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||L0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Zc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Es));else if(r!==4&&(e=e.child,e!==null))for(Zc(e,t,n),e=e.sibling;e!==null;)Zc(e,t,n),e=e.sibling}function ef(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ef(e,t,n),e=e.sibling;e!==null;)ef(e,t,n),e=e.sibling}var Ce=null,Et=!1;function sn(e,t,n){for(n=n.child;n!==null;)M0(e,t,n),n=n.sibling}function M0(e,t,n){if(Mt&&typeof Mt.onCommitFiberUnmount=="function")try{Mt.onCommitFiberUnmount(al,n)}catch{}switch(n.tag){case 5:Me||Wr(n,t);case 6:var r=Ce,a=Et;Ce=null,sn(e,t,n),Ce=r,Et=a,Ce!==null&&(Et?(e=Ce,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ce.removeChild(n.stateNode));break;case 18:Ce!==null&&(Et?(e=Ce,n=n.stateNode,e.nodeType===8?Cu(e.parentNode,n):e.nodeType===1&&Cu(e,n),gi(e)):Cu(Ce,n.stateNode));break;case 4:r=Ce,a=Et,Ce=n.stateNode.containerInfo,Et=!0,sn(e,t,n),Ce=r,Et=a;break;case 0:case 11:case 14:case 15:if(!Me&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var i=a,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Qc(n,t,o),a=a.next}while(a!==r)}sn(e,t,n);break;case 1:if(!Me&&(Wr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){fe(n,t,s)}sn(e,t,n);break;case 21:sn(e,t,n);break;case 22:n.mode&1?(Me=(r=Me)||n.memoizedState!==null,sn(e,t,n),Me=r):sn(e,t,n);break;default:sn(e,t,n)}}function Zp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ub),t.forEach(function(r){var a=wb.bind(null,e,r);n.has(r)||(n.add(r),r.then(a,a))})}}function _t(e,t){var n=t.deletions;if(n!==null)for(var r=0;ra&&(a=o),r&=~i}if(r=a,r=pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*db(r/1960))-r,10e?16:e,yn===null)var r=!1;else{if(e=yn,yn=null,Ms=0,J&6)throw Error(R(331));var a=J;for(J|=4,j=e.current;j!==null;){var i=j,o=i.child;if(j.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lpe()-Fd?sr(e,0):jd|=n),Xe(e,t)}function G0(e,t){t===0&&(e.mode&1?(t=po,po<<=1,!(po&130023424)&&(po=4194304)):t=1);var n=He();e=Bt(e,t),e!==null&&($i(e,t,n),Xe(e,n))}function yb(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),G0(e,n)}function wb(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),G0(e,n)}var V0;V0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ke.current)qe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return qe=!1,ob(e,t,n);qe=!!(e.flags&131072)}else qe=!1,se&&t.flags&1048576&&Yy(t,xs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;es(e,t),e=t.pendingProps;var a=aa(t,Ie.current);ea(t,n),a=kd(null,t,r,e,a,n);var i=Ad();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ye(r)?(i=!0,Cs(t)):i=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,Od(t),a.updater=cl,t.stateNode=a,a._reactInternals=t,Gc(t,r,e,n),t=Kc(null,t,r,!0,i,n)):(t.tag=0,se&&i&&wd(t),Ue(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(es(e,t),e=t.pendingProps,a=r._init,r=a(r._payload),t.type=r,a=t.tag=Sb(r),e=St(r,e),a){case 0:t=qc(null,t,r,e,n);break e;case 1:t=Yp(null,t,r,e,n);break e;case 11:t=qp(null,t,r,e,n);break e;case 14:t=Kp(null,t,r,St(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:St(r,a),qc(e,t,r,a,n);case 1:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:St(r,a),Yp(e,t,r,a,n);case 3:e:{if(P0(t),e===null)throw Error(R(387));r=t.pendingProps,i=t.memoizedState,a=i.element,By(e,t),Ds(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){a=la(Error(R(423)),t),t=Xp(e,t,r,n,a);break e}else if(r!==a){a=la(Error(R(424)),t),t=Xp(e,t,r,n,a);break e}else for(et=Cn(t.stateNode.containerInfo.firstChild),tt=t,se=!0,Tt=null,n=n0(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ia(),r===a){t=Zt(e,t,n);break e}Ue(e,t,r,n)}t=t.child}return t;case 5:return r0(t),e===null&&zc(t),r=t.type,a=t.pendingProps,i=e!==null?e.memoizedProps:null,o=a.children,Mc(r,a)?o=null:i!==null&&Mc(r,i)&&(t.flags|=32),x0(e,t),Ue(e,t,o,n),t.child;case 6:return e===null&&zc(t),null;case 13:return N0(e,t,n);case 4:return xd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=oa(t,null,r,n):Ue(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:St(r,a),qp(e,t,r,a,n);case 7:return Ue(e,t,t.pendingProps,n),t.child;case 8:return Ue(e,t,t.pendingProps.children,n),t.child;case 12:return Ue(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,i=t.memoizedProps,o=a.value,ee(Ps,r._currentValue),r._currentValue=o,i!==null)if(Nt(i.value,o)){if(i.children===a.children&&!Ke.current){t=Zt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Yt(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var h=u.pending;h===null?l.next=l:(l.next=h.next,h.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Hc(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(R(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Hc(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ue(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,ea(t,n),a=vt(a),r=r(a),t.flags|=1,Ue(e,t,r,n),t.child;case 14:return r=t.type,a=St(r,t.pendingProps),a=St(r.type,a),Kp(e,t,r,a,n);case 15:return C0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:St(r,a),es(e,t),t.tag=1,Ye(r)?(e=!0,Cs(t)):e=!1,ea(t,n),e0(t,r,a),Gc(t,r,a,n),Kc(null,t,r,!0,e,n);case 19:return D0(e,t,n);case 22:return O0(e,t,n)}throw Error(R(156,t.tag))};function q0(e,t){return yy(e,t)}function _b(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pt(e,t,n,r){return new _b(e,t,n,r)}function Hd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Sb(e){if(typeof e=="function")return Hd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===sd)return 11;if(e===ld)return 14}return 2}function Nn(e,t){var n=e.alternate;return n===null?(n=pt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function rs(e,t,n,r,a,i){var o=2;if(r=e,typeof e=="function")Hd(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case $r:return lr(n.children,a,i,t);case od:o=8,a|=8;break;case pc:return e=pt(12,n,t,a|2),e.elementType=pc,e.lanes=i,e;case gc:return e=pt(13,n,t,a),e.elementType=gc,e.lanes=i,e;case mc:return e=pt(19,n,t,a),e.elementType=mc,e.lanes=i,e;case ty:return pl(n,a,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Zv:o=10;break e;case ey:o=9;break e;case sd:o=11;break e;case ld:o=14;break e;case dn:o=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=pt(o,n,t,a),t.elementType=e,t.type=r,t.lanes=i,t}function lr(e,t,n,r){return e=pt(7,e,r,t),e.lanes=n,e}function pl(e,t,n,r){return e=pt(22,e,r,t),e.elementType=ty,e.lanes=n,e.stateNode={isHidden:!1},e}function Ru(e,t,n){return e=pt(6,e,null,t),e.lanes=n,e}function $u(e,t,n){return t=pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function bb(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=pu(0),this.expirationTimes=pu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pu(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Wd(e,t,n,r,a,i,o,s,l){return e=new bb(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=pt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Od(i),e}function Eb(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(J0)}catch(e){console.error(e)}}J0(),Yv.exports=rt;var Q0=Yv.exports,sg=Q0;dc.createRoot=sg.createRoot,dc.hydrateRoot=sg.hydrateRoot;function Pb(){{const e=window.location.port,n=new URLSearchParams(window.location.search).get("id");return{server_port:e,fv_id:n}}}const it=P.createContext({});function Nb({children:e}){const t=Db(),{server_port:n,fv_id:r}=Pb()??{server_port:"49999",fv_id:"sample_visualization"};console.log("port: ",n),console.log("id: ",r);const[a,i]=P.useState({}),[o,s]=P.useState({fvWrapper:{panelName:"fvWrapper",show:!0,size:{maxSize:100,defaultSize:70}},fv:{panelName:"Flowsheet",show:!0,size:{minSize:100,defaultSize:70}},diagnostics:{panelName:"Diagnostics",show:t.diagnosticsPanelShow==null?!1:t.diagnosticsPanelShow,size:{minSize:100,defaultSize:70}},diagnosticsLogs:{panelName:"Stream Table",show:!1,size:{maxSize:100,defaultSize:30}},streamTable:{panelName:"Stream Table",show:!0,size:{maxSize:100,defaultSize:30}}}),[l,u]=P.useState({isShowSteamName:!0,isShowLabels:!1}),[h,d]=P.useState({}),[p,w]=P.useState([]),[m,_]=P.useState(""),[E,v]=P.useState(!0),[y,S]=P.useState(0),[O,D]=P.useState({expand:!1,expandState:{}}),[A,b]=P.useState({streamTable:!0,diagnosticsLogs:!1});return T.jsx(it.Provider,{value:{server_port:n,fv_id:r,panelState:o,setPanelState:s,showVariable:a,setShowVariable:i,fvHeaderState:l,setFvHeaderState:u,diagnosticsRunFnNameListState:p,setDiagnosticsRunFnNameListState:w,diagnosticsRefreshState:E,setDiagnosticsRefreshState:v,diagnosticsNextStepsOutputState:h,setDiagnosticsNextStepsOutputState:d,diagnosticsRunnerDisplayState:m,setDiagnosticsRunnerDisplayState:_,diagnosticsHistoryState:y,setDiagnosticsHistory:S,viewInLogPanel:A,setViewInLogPanel:b,variablesExpandState:O,setVariablesExpandState:D},children:e})}function Db(){const e=localStorage.getItem("appSetting");return JSON.parse(e)}function lg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function M(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1;a--){var i=n[a],o=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(r=i)}return oe.head.insertBefore(t,r),e}}var tE="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function ki(){for(var e=12,t="";e-- >0;)t+=tE[Math.random()*62|0];return t}function va(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Bd(e){return e.classList?va(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function u1(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function nE(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(u1(e[n]),'" ')},"").trim()}function wl(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function Zd(e){return e.size!==$t.size||e.x!==$t.x||e.y!==$t.y||e.rotate!==$t.rotate||e.flipX||e.flipY}function rE(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,a={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(t.x*32,", ").concat(t.y*32,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(i," ").concat(o," ").concat(s)},u={transform:"translate(".concat(r/2*-1," -256)")};return{outer:a,inner:l,path:u}}function aE(e){var t=e.transform,n=e.width,r=n===void 0?sf:n,a=e.height,i=a===void 0?sf:a,o=e.startCentered,s=o===void 0?!1:o,l="";return s&&n1?l+="translate(".concat(t.x/ln-r/2,"em, ").concat(t.y/ln-i/2,"em) "):s?l+="translate(calc(-50% + ".concat(t.x/ln,"em), calc(-50% + ").concat(t.y/ln,"em)) "):l+="translate(".concat(t.x/ln,"em, ").concat(t.y/ln,"em) "),l+="scale(".concat(t.size/ln*(t.flipX?-1:1),", ").concat(t.size/ln*(t.flipY?-1:1),") "),l+="rotate(".concat(t.rotate,"deg) "),l}var iE=`:root, :host { + --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid"; + --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular"; + --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light"; + --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin"; + --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone"; + --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp"; + --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp"; + --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp"; + --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands"; +} + +svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { + overflow: visible; + box-sizing: content-box; +} + +.svg-inline--fa { + display: var(--fa-display, inline-block); + height: 1em; + overflow: visible; + vertical-align: -0.125em; +} +.svg-inline--fa.fa-2xs { + vertical-align: 0.1em; +} +.svg-inline--fa.fa-xs { + vertical-align: 0em; +} +.svg-inline--fa.fa-sm { + vertical-align: -0.0714285705em; +} +.svg-inline--fa.fa-lg { + vertical-align: -0.2em; +} +.svg-inline--fa.fa-xl { + vertical-align: -0.25em; +} +.svg-inline--fa.fa-2xl { + vertical-align: -0.3125em; +} +.svg-inline--fa.fa-pull-left { + margin-right: var(--fa-pull-margin, 0.3em); + width: auto; +} +.svg-inline--fa.fa-pull-right { + margin-left: var(--fa-pull-margin, 0.3em); + width: auto; +} +.svg-inline--fa.fa-li { + width: var(--fa-li-width, 2em); + top: 0.25em; +} +.svg-inline--fa.fa-fw { + width: var(--fa-fw-width, 1.25em); +} + +.fa-layers svg.svg-inline--fa { + bottom: 0; + left: 0; + margin: auto; + position: absolute; + right: 0; + top: 0; +} + +.fa-layers-counter, .fa-layers-text { + display: inline-block; + position: absolute; + text-align: center; +} + +.fa-layers { + display: inline-block; + height: 1em; + position: relative; + text-align: center; + vertical-align: -0.125em; + width: 1em; +} +.fa-layers svg.svg-inline--fa { + -webkit-transform-origin: center center; + transform-origin: center center; +} + +.fa-layers-text { + left: 50%; + top: 50%; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); + -webkit-transform-origin: center center; + transform-origin: center center; +} + +.fa-layers-counter { + background-color: var(--fa-counter-background-color, #ff253a); + border-radius: var(--fa-counter-border-radius, 1em); + box-sizing: border-box; + color: var(--fa-inverse, #fff); + line-height: var(--fa-counter-line-height, 1); + max-width: var(--fa-counter-max-width, 5em); + min-width: var(--fa-counter-min-width, 1.5em); + overflow: hidden; + padding: var(--fa-counter-padding, 0.25em 0.5em); + right: var(--fa-right, 0); + text-overflow: ellipsis; + top: var(--fa-top, 0); + -webkit-transform: scale(var(--fa-counter-scale, 0.25)); + transform: scale(var(--fa-counter-scale, 0.25)); + -webkit-transform-origin: top right; + transform-origin: top right; +} + +.fa-layers-bottom-right { + bottom: var(--fa-bottom, 0); + right: var(--fa-right, 0); + top: auto; + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: bottom right; + transform-origin: bottom right; +} + +.fa-layers-bottom-left { + bottom: var(--fa-bottom, 0); + left: var(--fa-left, 0); + right: auto; + top: auto; + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: bottom left; + transform-origin: bottom left; +} + +.fa-layers-top-right { + top: var(--fa-top, 0); + right: var(--fa-right, 0); + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: top right; + transform-origin: top right; +} + +.fa-layers-top-left { + left: var(--fa-left, 0); + right: auto; + top: var(--fa-top, 0); + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: top left; + transform-origin: top left; +} + +.fa-1x { + font-size: 1em; +} + +.fa-2x { + font-size: 2em; +} + +.fa-3x { + font-size: 3em; +} + +.fa-4x { + font-size: 4em; +} + +.fa-5x { + font-size: 5em; +} + +.fa-6x { + font-size: 6em; +} + +.fa-7x { + font-size: 7em; +} + +.fa-8x { + font-size: 8em; +} + +.fa-9x { + font-size: 9em; +} + +.fa-10x { + font-size: 10em; +} + +.fa-2xs { + font-size: 0.625em; + line-height: 0.1em; + vertical-align: 0.225em; +} + +.fa-xs { + font-size: 0.75em; + line-height: 0.0833333337em; + vertical-align: 0.125em; +} + +.fa-sm { + font-size: 0.875em; + line-height: 0.0714285718em; + vertical-align: 0.0535714295em; +} + +.fa-lg { + font-size: 1.25em; + line-height: 0.05em; + vertical-align: -0.075em; +} + +.fa-xl { + font-size: 1.5em; + line-height: 0.0416666682em; + vertical-align: -0.125em; +} + +.fa-2xl { + font-size: 2em; + line-height: 0.03125em; + vertical-align: -0.1875em; +} + +.fa-fw { + text-align: center; + width: 1.25em; +} + +.fa-ul { + list-style-type: none; + margin-left: var(--fa-li-margin, 2.5em); + padding-left: 0; +} +.fa-ul > li { + position: relative; +} + +.fa-li { + left: calc(var(--fa-li-width, 2em) * -1); + position: absolute; + text-align: center; + width: var(--fa-li-width, 2em); + line-height: inherit; +} + +.fa-border { + border-color: var(--fa-border-color, #eee); + border-radius: var(--fa-border-radius, 0.1em); + border-style: var(--fa-border-style, solid); + border-width: var(--fa-border-width, 0.08em); + padding: var(--fa-border-padding, 0.2em 0.25em 0.15em); +} + +.fa-pull-left { + float: left; + margin-right: var(--fa-pull-margin, 0.3em); +} + +.fa-pull-right { + float: right; + margin-left: var(--fa-pull-margin, 0.3em); +} + +.fa-beat { + -webkit-animation-name: fa-beat; + animation-name: fa-beat; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-bounce { + -webkit-animation-name: fa-bounce; + animation-name: fa-bounce; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); +} + +.fa-fade { + -webkit-animation-name: fa-fade; + animation-name: fa-fade; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); +} + +.fa-beat-fade { + -webkit-animation-name: fa-beat-fade; + animation-name: fa-beat-fade; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); +} + +.fa-flip { + -webkit-animation-name: fa-flip; + animation-name: fa-flip; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-shake { + -webkit-animation-name: fa-shake; + animation-name: fa-shake; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, linear); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-spin { + -webkit-animation-name: fa-spin; + animation-name: fa-spin; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 2s); + animation-duration: var(--fa-animation-duration, 2s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, linear); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-spin-reverse { + --fa-animation-direction: reverse; +} + +.fa-pulse, +.fa-spin-pulse { + -webkit-animation-name: fa-spin; + animation-name: fa-spin; + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, steps(8)); + animation-timing-function: var(--fa-animation-timing, steps(8)); +} + +@media (prefers-reduced-motion: reduce) { + .fa-beat, +.fa-bounce, +.fa-fade, +.fa-beat-fade, +.fa-flip, +.fa-pulse, +.fa-shake, +.fa-spin, +.fa-spin-pulse { + -webkit-animation-delay: -1ms; + animation-delay: -1ms; + -webkit-animation-duration: 1ms; + animation-duration: 1ms; + -webkit-animation-iteration-count: 1; + animation-iteration-count: 1; + -webkit-transition-delay: 0s; + transition-delay: 0s; + -webkit-transition-duration: 0s; + transition-duration: 0s; + } +} +@-webkit-keyframes fa-beat { + 0%, 90% { + -webkit-transform: scale(1); + transform: scale(1); + } + 45% { + -webkit-transform: scale(var(--fa-beat-scale, 1.25)); + transform: scale(var(--fa-beat-scale, 1.25)); + } +} +@keyframes fa-beat { + 0%, 90% { + -webkit-transform: scale(1); + transform: scale(1); + } + 45% { + -webkit-transform: scale(var(--fa-beat-scale, 1.25)); + transform: scale(var(--fa-beat-scale, 1.25)); + } +} +@-webkit-keyframes fa-bounce { + 0% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 10% { + -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + } + 30% { + -webkit-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)); + 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)); + } + 50% { + -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + } + 57% { + -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + } + 64% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 100% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } +} +@keyframes fa-bounce { + 0% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 10% { + -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + } + 30% { + -webkit-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)); + 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)); + } + 50% { + -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + } + 57% { + -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + } + 64% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 100% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } +} +@-webkit-keyframes fa-fade { + 50% { + opacity: var(--fa-fade-opacity, 0.4); + } +} +@keyframes fa-fade { + 50% { + opacity: var(--fa-fade-opacity, 0.4); + } +} +@-webkit-keyframes fa-beat-fade { + 0%, 100% { + opacity: var(--fa-beat-fade-opacity, 0.4); + -webkit-transform: scale(1); + transform: scale(1); + } + 50% { + opacity: 1; + -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); + transform: scale(var(--fa-beat-fade-scale, 1.125)); + } +} +@keyframes fa-beat-fade { + 0%, 100% { + opacity: var(--fa-beat-fade-opacity, 0.4); + -webkit-transform: scale(1); + transform: scale(1); + } + 50% { + opacity: 1; + -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); + transform: scale(var(--fa-beat-fade-scale, 1.125)); + } +} +@-webkit-keyframes fa-flip { + 50% { + -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + } +} +@keyframes fa-flip { + 50% { + -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + } +} +@-webkit-keyframes fa-shake { + 0% { + -webkit-transform: rotate(-15deg); + transform: rotate(-15deg); + } + 4% { + -webkit-transform: rotate(15deg); + transform: rotate(15deg); + } + 8%, 24% { + -webkit-transform: rotate(-18deg); + transform: rotate(-18deg); + } + 12%, 28% { + -webkit-transform: rotate(18deg); + transform: rotate(18deg); + } + 16% { + -webkit-transform: rotate(-22deg); + transform: rotate(-22deg); + } + 20% { + -webkit-transform: rotate(22deg); + transform: rotate(22deg); + } + 32% { + -webkit-transform: rotate(-12deg); + transform: rotate(-12deg); + } + 36% { + -webkit-transform: rotate(12deg); + transform: rotate(12deg); + } + 40%, 100% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } +} +@keyframes fa-shake { + 0% { + -webkit-transform: rotate(-15deg); + transform: rotate(-15deg); + } + 4% { + -webkit-transform: rotate(15deg); + transform: rotate(15deg); + } + 8%, 24% { + -webkit-transform: rotate(-18deg); + transform: rotate(-18deg); + } + 12%, 28% { + -webkit-transform: rotate(18deg); + transform: rotate(18deg); + } + 16% { + -webkit-transform: rotate(-22deg); + transform: rotate(-22deg); + } + 20% { + -webkit-transform: rotate(22deg); + transform: rotate(22deg); + } + 32% { + -webkit-transform: rotate(-12deg); + transform: rotate(-12deg); + } + 36% { + -webkit-transform: rotate(12deg); + transform: rotate(12deg); + } + 40%, 100% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } +} +@-webkit-keyframes fa-spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +@keyframes fa-spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +.fa-rotate-90 { + -webkit-transform: rotate(90deg); + transform: rotate(90deg); +} + +.fa-rotate-180 { + -webkit-transform: rotate(180deg); + transform: rotate(180deg); +} + +.fa-rotate-270 { + -webkit-transform: rotate(270deg); + transform: rotate(270deg); +} + +.fa-flip-horizontal { + -webkit-transform: scale(-1, 1); + transform: scale(-1, 1); +} + +.fa-flip-vertical { + -webkit-transform: scale(1, -1); + transform: scale(1, -1); +} + +.fa-flip-both, +.fa-flip-horizontal.fa-flip-vertical { + -webkit-transform: scale(-1, -1); + transform: scale(-1, -1); +} + +.fa-rotate-by { + -webkit-transform: rotate(var(--fa-rotate-angle, none)); + transform: rotate(var(--fa-rotate-angle, none)); +} + +.fa-stack { + display: inline-block; + vertical-align: middle; + height: 2em; + position: relative; + width: 2.5em; +} + +.fa-stack-1x, +.fa-stack-2x { + bottom: 0; + left: 0; + margin: auto; + position: absolute; + right: 0; + top: 0; + z-index: var(--fa-stack-z-index, auto); +} + +.svg-inline--fa.fa-stack-1x { + height: 1em; + width: 1.25em; +} +.svg-inline--fa.fa-stack-2x { + height: 2em; + width: 2.5em; +} + +.fa-inverse { + color: var(--fa-inverse, #fff); +} + +.sr-only, +.fa-sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border-width: 0; +} + +.sr-only-focusable:not(:focus), +.fa-sr-only-focusable:not(:focus) { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border-width: 0; +} + +.svg-inline--fa .fa-primary { + fill: var(--fa-primary-color, currentColor); + opacity: var(--fa-primary-opacity, 1); +} + +.svg-inline--fa .fa-secondary { + fill: var(--fa-secondary-color, currentColor); + opacity: var(--fa-secondary-opacity, 0.4); +} + +.svg-inline--fa.fa-swap-opacity .fa-primary { + opacity: var(--fa-secondary-opacity, 0.4); +} + +.svg-inline--fa.fa-swap-opacity .fa-secondary { + opacity: var(--fa-primary-opacity, 1); +} + +.svg-inline--fa mask .fa-primary, +.svg-inline--fa mask .fa-secondary { + fill: black; +} + +.fad.fa-inverse, +.fa-duotone.fa-inverse { + color: var(--fa-inverse, #fff); +}`;function c1(){var e=r1,t=a1,n=I.cssPrefix,r=I.replacementClass,a=iE;if(n!==e||r!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");a=a.replace(i,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(s,".".concat(r))}return a}var gg=!1;function Lu(){I.autoAddCss&&!gg&&(eE(c1()),gg=!0)}var oE={mixout:function(){return{dom:{css:c1,insertCss:Lu}}},hooks:function(){return{beforeDOMElementCreation:function(){Lu()},beforeI2svg:function(){Lu()}}}},tn=Rn||{};tn[en]||(tn[en]={});tn[en].styles||(tn[en].styles={});tn[en].hooks||(tn[en].hooks={});tn[en].shims||(tn[en].shims=[]);var Ct=tn[en],f1=[],sE=function e(){oe.removeEventListener("DOMContentLoaded",e),Us=1,f1.map(function(t){return t()})},Us=!1;an&&(Us=(oe.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(oe.readyState),Us||oe.addEventListener("DOMContentLoaded",sE));function lE(e){an&&(Us?setTimeout(e,0):f1.push(e))}function Ui(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,a=e.children,i=a===void 0?[]:a;return typeof e=="string"?u1(e):"<".concat(t," ").concat(nE(r),">").concat(i.map(Ui).join(""),"")}function mg(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var uE=function(t,n){return function(r,a,i,o){return t.call(n,r,a,i,o)}},Mu=function(t,n,r,a){var i=Object.keys(t),o=i.length,s=a!==void 0?uE(n,a):n,l,u,h;for(r===void 0?(l=1,h=t[i[0]]):(l=0,h=r);l=55296&&a<=56319&&n=55296&&r<=56319&&n>t+1&&(a=e.charCodeAt(t+1),a>=56320&&a<=57343)?(r-55296)*1024+a-56320+65536:r}function vg(e){return Object.keys(e).reduce(function(t,n){var r=e[n],a=!!r.icon;return a?t[r.iconName]=r.icon:t[n]=r,t},{})}function cf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,a=r===void 0?!1:r,i=vg(t);typeof Ct.hooks.addPack=="function"&&!a?Ct.hooks.addPack(e,vg(t)):Ct.styles[e]=M(M({},Ct.styles[e]||{}),i),e==="fas"&&cf("fa",t)}var Ao,Ro,$o,Vr=Ct.styles,dE=Ct.shims,hE=(Ao={},_e(Ao,ae,Object.values(Ni[ae])),_e(Ao,de,Object.values(Ni[de])),Ao),eh=null,d1={},h1={},p1={},g1={},m1={},pE=(Ro={},_e(Ro,ae,Object.keys(xi[ae])),_e(Ro,de,Object.keys(xi[de])),Ro);function gE(e){return~Xb.indexOf(e)}function mE(e,t){var n=t.split("-"),r=n[0],a=n.slice(1).join("-");return r===e&&a!==""&&!gE(a)?a:null}var v1=function(){var t=function(i){return Mu(Vr,function(o,s,l){return o[l]=Mu(s,i,{}),o},{})};d1=t(function(a,i,o){if(i[3]&&(a[i[3]]=o),i[2]){var s=i[2].filter(function(l){return typeof l=="number"});s.forEach(function(l){a[l.toString(16)]=o})}return a}),h1=t(function(a,i,o){if(a[o]=o,i[2]){var s=i[2].filter(function(l){return typeof l=="string"});s.forEach(function(l){a[l]=o})}return a}),m1=t(function(a,i,o){var s=i[2];return a[o]=o,s.forEach(function(l){a[l]=o}),a});var n="far"in Vr||I.autoFetchSvg,r=Mu(dE,function(a,i){var o=i[0],s=i[1],l=i[2];return s==="far"&&!n&&(s="fas"),typeof o=="string"&&(a.names[o]={prefix:s,iconName:l}),typeof o=="number"&&(a.unicodes[o.toString(16)]={prefix:s,iconName:l}),a},{names:{},unicodes:{}});p1=r.names,g1=r.unicodes,eh=_l(I.styleDefault,{family:I.familyDefault})};Zb(function(e){eh=_l(e.styleDefault,{family:I.familyDefault})});v1();function th(e,t){return(d1[e]||{})[t]}function vE(e,t){return(h1[e]||{})[t]}function ar(e,t){return(m1[e]||{})[t]}function y1(e){return p1[e]||{prefix:null,iconName:null}}function yE(e){var t=g1[e],n=th("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function $n(){return eh}var nh=function(){return{prefix:null,iconName:null,rest:[]}};function _l(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?ae:n,a=xi[r][e],i=Pi[r][e]||Pi[r][a],o=e in Ct.styles?e:null;return i||o||null}var yg=($o={},_e($o,ae,Object.keys(Ni[ae])),_e($o,de,Object.keys(Ni[de])),$o);function Sl(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,a=r===void 0?!1:r,i=(t={},_e(t,ae,"".concat(I.cssPrefix,"-").concat(ae)),_e(t,de,"".concat(I.cssPrefix,"-").concat(de)),t),o=null,s=ae;(e.includes(i[ae])||e.some(function(u){return yg[ae].includes(u)}))&&(s=ae),(e.includes(i[de])||e.some(function(u){return yg[de].includes(u)}))&&(s=de);var l=e.reduce(function(u,h){var d=mE(I.cssPrefix,h);if(Vr[h]?(h=hE[s].includes(h)?Wb[s][h]:h,o=h,u.prefix=h):pE[s].indexOf(h)>-1?(o=h,u.prefix=_l(h,{family:s})):d?u.iconName=d:h!==I.replacementClass&&h!==i[ae]&&h!==i[de]&&u.rest.push(h),!a&&u.prefix&&u.iconName){var p=o==="fa"?y1(u.iconName):{},w=ar(u.prefix,u.iconName);p.prefix&&(o=null),u.iconName=p.iconName||w||u.iconName,u.prefix=p.prefix||u.prefix,u.prefix==="far"&&!Vr.far&&Vr.fas&&!I.autoFetchSvg&&(u.prefix="fas")}return u},nh());return(e.includes("fa-brands")||e.includes("fab"))&&(l.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(l.prefix="fad"),!l.prefix&&s===de&&(Vr.fass||I.autoFetchSvg)&&(l.prefix="fass",l.iconName=ar(l.prefix,l.iconName)||l.iconName),(l.prefix==="fa"||o==="fa")&&(l.prefix=$n()||"fas"),l}var wE=function(){function e(){kb(this,e),this.definitions={}}return Ab(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,a=new Array(r),i=0;i0&&h.forEach(function(d){typeof d=="string"&&(n[s][d]=u)}),n[s][l]=u}),n}}]),e}(),wg=[],qr={},na={},_E=Object.keys(na);function SE(e,t){var n=t.mixoutsTo;return wg=e,qr={},Object.keys(na).forEach(function(r){_E.indexOf(r)===-1&&delete na[r]}),wg.forEach(function(r){var a=r.mixout?r.mixout():{};if(Object.keys(a).forEach(function(o){typeof a[o]=="function"&&(n[o]=a[o]),Is(a[o])==="object"&&Object.keys(a[o]).forEach(function(s){n[o]||(n[o]={}),n[o][s]=a[o][s]})}),r.hooks){var i=r.hooks();Object.keys(i).forEach(function(o){qr[o]||(qr[o]=[]),qr[o].push(i[o])})}r.provides&&r.provides(na)}),n}function ff(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a1?t-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:{};return an?(gr("beforeI2svg",t),nn("pseudoElements2svg",t),nn("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;I.autoReplaceSvg===!1&&(I.autoReplaceSvg=!0),I.observeMutations=!0,lE(function(){CE({autoReplaceSvgRoot:n}),gr("watch",t)})}},TE={icon:function(t){if(t===null)return null;if(Is(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:ar(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=_l(t[0]);return{prefix:r,iconName:ar(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(I.cssPrefix,"-"))>-1||t.match(Gb))){var a=Sl(t.split(" "),{skipLookups:!0});return{prefix:a.prefix||$n(),iconName:ar(a.prefix,a.iconName)||a.iconName}}if(typeof t=="string"){var i=$n();return{prefix:i,iconName:ar(i,t)||t}}}},ot={noAuto:bE,config:I,dom:EE,parse:TE,library:w1,findIconDefinition:df,toHtml:Ui},CE=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?oe:n;(Object.keys(Ct.styles).length>0||I.autoFetchSvg)&&an&&I.autoReplaceSvg&&ot.dom.i2svg({node:r})};function bl(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return Ui(r)})}}),Object.defineProperty(e,"node",{get:function(){if(an){var r=oe.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function OE(e){var t=e.children,n=e.main,r=e.mask,a=e.attributes,i=e.styles,o=e.transform;if(Zd(o)&&n.found&&!r.found){var s=n.width,l=n.height,u={x:s/l/2,y:.5};a.style=wl(M(M({},i),{},{"transform-origin":"".concat(u.x+o.x/16,"em ").concat(u.y+o.y/16,"em")}))}return[{tag:"svg",attributes:a,children:t}]}function xE(e){var t=e.prefix,n=e.iconName,r=e.children,a=e.attributes,i=e.symbol,o=i===!0?"".concat(t,"-").concat(I.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:M(M({},a),{},{id:o}),children:r}]}]}function rh(e){var t=e.icons,n=t.main,r=t.mask,a=e.prefix,i=e.iconName,o=e.transform,s=e.symbol,l=e.title,u=e.maskId,h=e.titleId,d=e.extra,p=e.watchable,w=p===void 0?!1:p,m=r.found?r:n,_=m.width,E=m.height,v=a==="fak",y=[I.replacementClass,i?"".concat(I.cssPrefix,"-").concat(i):""].filter(function(x){return d.classes.indexOf(x)===-1}).filter(function(x){return x!==""||!!x}).concat(d.classes).join(" "),S={children:[],attributes:M(M({},d.attributes),{},{"data-prefix":a,"data-icon":i,class:y,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(_," ").concat(E)})},O=v&&!~d.classes.indexOf("fa-fw")?{width:"".concat(_/E*16*.0625,"em")}:{};w&&(S.attributes[pr]=""),l&&(S.children.push({tag:"title",attributes:{id:S.attributes["aria-labelledby"]||"title-".concat(h||ki())},children:[l]}),delete S.attributes.title);var D=M(M({},S),{},{prefix:a,iconName:i,main:n,mask:r,maskId:u,transform:o,symbol:s,styles:M(M({},O),d.styles)}),A=r.found&&n.found?nn("generateAbstractMask",D)||{children:[],attributes:{}}:nn("generateAbstractIcon",D)||{children:[],attributes:{}},b=A.children,C=A.attributes;return D.children=b,D.attributes=C,s?xE(D):OE(D)}function _g(e){var t=e.content,n=e.width,r=e.height,a=e.transform,i=e.title,o=e.extra,s=e.watchable,l=s===void 0?!1:s,u=M(M(M({},o.attributes),i?{title:i}:{}),{},{class:o.classes.join(" ")});l&&(u[pr]="");var h=M({},o.styles);Zd(a)&&(h.transform=aE({transform:a,startCentered:!0,width:n,height:r}),h["-webkit-transform"]=h.transform);var d=wl(h);d.length>0&&(u.style=d);var p=[];return p.push({tag:"span",attributes:u,children:[t]}),i&&p.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),p}function PE(e){var t=e.content,n=e.title,r=e.extra,a=M(M(M({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),i=wl(r.styles);i.length>0&&(a.style=i);var o=[];return o.push({tag:"span",attributes:a,children:[t]}),n&&o.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),o}var ju=Ct.styles;function hf(e){var t=e[0],n=e[1],r=e.slice(4),a=Kd(r,1),i=a[0],o=null;return Array.isArray(i)?o={tag:"g",attributes:{class:"".concat(I.cssPrefix,"-").concat(rr.GROUP)},children:[{tag:"path",attributes:{class:"".concat(I.cssPrefix,"-").concat(rr.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(I.cssPrefix,"-").concat(rr.PRIMARY),fill:"currentColor",d:i[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:i}},{found:!0,width:t,height:n,icon:o}}var NE={found:!1,width:512,height:512};function DE(e,t){!i1&&!I.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function pf(e,t){var n=t;return t==="fa"&&I.styleDefault!==null&&(t=$n()),new Promise(function(r,a){if(nn("missingIconAbstract"),n==="fa"){var i=y1(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&ju[t]&&ju[t][e]){var o=ju[t][e];return r(hf(o))}DE(e,t),r(M(M({},NE),{},{icon:I.showMissingIcons&&e?nn("missingIconAbstract")||{}:{}}))})}var Sg=function(){},gf=I.measurePerformance&&Oo&&Oo.mark&&Oo.measure?Oo:{mark:Sg,measure:Sg},Ka='FA "6.4.0"',kE=function(t){return gf.mark("".concat(Ka," ").concat(t," begins")),function(){return _1(t)}},_1=function(t){gf.mark("".concat(Ka," ").concat(t," ends")),gf.measure("".concat(Ka," ").concat(t),"".concat(Ka," ").concat(t," begins"),"".concat(Ka," ").concat(t," ends"))},ah={begin:kE,end:_1},as=function(){};function bg(e){var t=e.getAttribute?e.getAttribute(pr):null;return typeof t=="string"}function AE(e){var t=e.getAttribute?e.getAttribute(Xd):null,n=e.getAttribute?e.getAttribute(Jd):null;return t&&n}function RE(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(I.replacementClass)}function $E(){if(I.autoReplaceSvg===!0)return is.replace;var e=is[I.autoReplaceSvg];return e||is.replace}function LE(e){return oe.createElementNS("http://www.w3.org/2000/svg",e)}function ME(e){return oe.createElement(e)}function S1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?LE:ME:n;if(typeof e=="string")return oe.createTextNode(e);var a=r(e.tag);Object.keys(e.attributes||[]).forEach(function(o){a.setAttribute(o,e.attributes[o])});var i=e.children||[];return i.forEach(function(o){a.appendChild(S1(o,{ceFn:r}))}),a}function jE(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var is={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(a){n.parentNode.insertBefore(S1(a),n)}),n.getAttribute(pr)===null&&I.keepOriginalSource){var r=oe.createComment(jE(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~Bd(n).indexOf(I.replacementClass))return is.replace(t);var a=new RegExp("".concat(I.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var i=r[0].attributes.class.split(" ").reduce(function(s,l){return l===I.replacementClass||l.match(a)?s.toSvg.push(l):s.toNode.push(l),s},{toNode:[],toSvg:[]});r[0].attributes.class=i.toSvg.join(" "),i.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",i.toNode.join(" "))}var o=r.map(function(s){return Ui(s)}).join(` +`);n.setAttribute(pr,""),n.innerHTML=o}};function Eg(e){e()}function b1(e,t){var n=typeof t=="function"?t:as;if(e.length===0)n();else{var r=Eg;I.mutateApproach===zb&&(r=Rn.requestAnimationFrame||Eg),r(function(){var a=$E(),i=ah.begin("mutate");e.map(a),i(),n()})}}var ih=!1;function E1(){ih=!0}function mf(){ih=!1}var zs=null;function Tg(e){if(hg&&I.observeMutations){var t=e.treeCallback,n=t===void 0?as:t,r=e.nodeCallback,a=r===void 0?as:r,i=e.pseudoElementsCallback,o=i===void 0?as:i,s=e.observeMutationsRoot,l=s===void 0?oe:s;zs=new hg(function(u){if(!ih){var h=$n();va(u).forEach(function(d){if(d.type==="childList"&&d.addedNodes.length>0&&!bg(d.addedNodes[0])&&(I.searchPseudoElements&&o(d.target),n(d.target)),d.type==="attributes"&&d.target.parentNode&&I.searchPseudoElements&&o(d.target.parentNode),d.type==="attributes"&&bg(d.target)&&~Yb.indexOf(d.attributeName))if(d.attributeName==="class"&&AE(d.target)){var p=Sl(Bd(d.target)),w=p.prefix,m=p.iconName;d.target.setAttribute(Xd,w||h),m&&d.target.setAttribute(Jd,m)}else RE(d.target)&&a(d.target)})}}),an&&zs.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function FE(){zs&&zs.disconnect()}function IE(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,a){var i=a.split(":"),o=i[0],s=i.slice(1);return o&&s.length>0&&(r[o]=s.join(":").trim()),r},{})),n}function UE(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",a=Sl(Bd(e));return a.prefix||(a.prefix=$n()),t&&n&&(a.prefix=t,a.iconName=n),a.iconName&&a.prefix||(a.prefix&&r.length>0&&(a.iconName=vE(a.prefix,e.innerText)||th(a.prefix,uf(e.innerText))),!a.iconName&&I.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(a.iconName=e.firstChild.data)),a}function zE(e){var t=va(e.attributes).reduce(function(a,i){return a.name!=="class"&&a.name!=="style"&&(a[i.name]=i.value),a},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return I.autoA11y&&(n?t["aria-labelledby"]="".concat(I.replacementClass,"-title-").concat(r||ki()):(t["aria-hidden"]="true",t.focusable="false")),t}function HE(){return{iconName:null,title:null,titleId:null,prefix:null,transform:$t,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Cg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=UE(e),r=n.iconName,a=n.prefix,i=n.rest,o=zE(e),s=ff("parseNodeAttributes",{},e),l=t.styleParser?IE(e):[];return M({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:a,transform:$t,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:l,attributes:o}},s)}var WE=Ct.styles;function T1(e){var t=I.autoReplaceSvg==="nest"?Cg(e,{styleParser:!1}):Cg(e);return~t.extra.classes.indexOf(o1)?nn("generateLayersText",e,t):nn("generateSvgReplacementMutation",e,t)}var Ln=new Set;Qd.map(function(e){Ln.add("fa-".concat(e))});Object.keys(xi[ae]).map(Ln.add.bind(Ln));Object.keys(xi[de]).map(Ln.add.bind(Ln));Ln=Fi(Ln);function Og(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!an)return Promise.resolve();var n=oe.documentElement.classList,r=function(d){return n.add("".concat(pg,"-").concat(d))},a=function(d){return n.remove("".concat(pg,"-").concat(d))},i=I.autoFetchSvg?Ln:Qd.map(function(h){return"fa-".concat(h)}).concat(Object.keys(WE));i.includes("fa")||i.push("fa");var o=[".".concat(o1,":not([").concat(pr,"])")].concat(i.map(function(h){return".".concat(h,":not([").concat(pr,"])")})).join(", ");if(o.length===0)return Promise.resolve();var s=[];try{s=va(e.querySelectorAll(o))}catch{}if(s.length>0)r("pending"),a("complete");else return Promise.resolve();var l=ah.begin("onTree"),u=s.reduce(function(h,d){try{var p=T1(d);p&&h.push(p)}catch(w){i1||w.name==="MissingIcon"&&console.error(w)}return h},[]);return new Promise(function(h,d){Promise.all(u).then(function(p){b1(p,function(){r("active"),r("complete"),a("pending"),typeof t=="function"&&t(),l(),h()})}).catch(function(p){l(),d(p)})})}function GE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;T1(e).then(function(n){n&&b1([n],t)})}function VE(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:df(t||{}),a=n.mask;return a&&(a=(a||{}).icon?a:df(a||{})),e(r,M(M({},n),{},{mask:a}))}}var qE=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,a=r===void 0?$t:r,i=n.symbol,o=i===void 0?!1:i,s=n.mask,l=s===void 0?null:s,u=n.maskId,h=u===void 0?null:u,d=n.title,p=d===void 0?null:d,w=n.titleId,m=w===void 0?null:w,_=n.classes,E=_===void 0?[]:_,v=n.attributes,y=v===void 0?{}:v,S=n.styles,O=S===void 0?{}:S;if(t){var D=t.prefix,A=t.iconName,b=t.icon;return bl(M({type:"icon"},t),function(){return gr("beforeDOMElementCreation",{iconDefinition:t,params:n}),I.autoA11y&&(p?y["aria-labelledby"]="".concat(I.replacementClass,"-title-").concat(m||ki()):(y["aria-hidden"]="true",y.focusable="false")),rh({icons:{main:hf(b),mask:l?hf(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:D,iconName:A,transform:M(M({},$t),a),symbol:o,title:p,maskId:h,titleId:m,extra:{attributes:y,styles:O,classes:E}})})}},KE={mixout:function(){return{icon:VE(qE)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=Og,n.nodeCallback=GE,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,a=r===void 0?oe:r,i=n.callback,o=i===void 0?function(){}:i;return Og(a,o)},t.generateSvgReplacementMutation=function(n,r){var a=r.iconName,i=r.title,o=r.titleId,s=r.prefix,l=r.transform,u=r.symbol,h=r.mask,d=r.maskId,p=r.extra;return new Promise(function(w,m){Promise.all([pf(a,s),h.iconName?pf(h.iconName,h.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(_){var E=Kd(_,2),v=E[0],y=E[1];w([n,rh({icons:{main:v,mask:y},prefix:s,iconName:a,transform:l,symbol:u,maskId:d,title:i,titleId:o,extra:p,watchable:!0})])}).catch(m)})},t.generateAbstractIcon=function(n){var r=n.children,a=n.attributes,i=n.main,o=n.transform,s=n.styles,l=wl(s);l.length>0&&(a.style=l);var u;return Zd(o)&&(u=nn("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),r.push(u||i.icon),{children:r,attributes:a}}}},YE={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.classes,i=a===void 0?[]:a;return bl({type:"layer"},function(){gr("beforeDOMElementCreation",{assembler:n,params:r});var o=[];return n(function(s){Array.isArray(s)?s.map(function(l){o=o.concat(l.abstract)}):o=o.concat(s.abstract)}),[{tag:"span",attributes:{class:["".concat(I.cssPrefix,"-layers")].concat(Fi(i)).join(" ")},children:o}]})}}}},XE={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.title,i=a===void 0?null:a,o=r.classes,s=o===void 0?[]:o,l=r.attributes,u=l===void 0?{}:l,h=r.styles,d=h===void 0?{}:h;return bl({type:"counter",content:n},function(){return gr("beforeDOMElementCreation",{content:n,params:r}),PE({content:n.toString(),title:i,extra:{attributes:u,styles:d,classes:["".concat(I.cssPrefix,"-layers-counter")].concat(Fi(s))}})})}}}},JE={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.transform,i=a===void 0?$t:a,o=r.title,s=o===void 0?null:o,l=r.classes,u=l===void 0?[]:l,h=r.attributes,d=h===void 0?{}:h,p=r.styles,w=p===void 0?{}:p;return bl({type:"text",content:n},function(){return gr("beforeDOMElementCreation",{content:n,params:r}),_g({content:n,transform:M(M({},$t),i),title:s,extra:{attributes:d,styles:w,classes:["".concat(I.cssPrefix,"-layers-text")].concat(Fi(u))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var a=r.title,i=r.transform,o=r.extra,s=null,l=null;if(n1){var u=parseInt(getComputedStyle(n).fontSize,10),h=n.getBoundingClientRect();s=h.width/u,l=h.height/u}return I.autoA11y&&!a&&(o.attributes["aria-hidden"]="true"),Promise.resolve([n,_g({content:n.innerHTML,width:s,height:l,transform:i,title:a,extra:o,watchable:!0})])}}},QE=new RegExp('"',"ug"),xg=[1105920,1112319];function BE(e){var t=e.replace(QE,""),n=fE(t,0),r=n>=xg[0]&&n<=xg[1],a=t.length===2?t[0]===t[1]:!1;return{value:uf(a?t[0]:t),isSecondary:r||a}}function Pg(e,t){var n="".concat(Ub).concat(t.replace(":","-"));return new Promise(function(r,a){if(e.getAttribute(n)!==null)return r();var i=va(e.children),o=i.filter(function(b){return b.getAttribute(lf)===t})[0],s=Rn.getComputedStyle(e,t),l=s.getPropertyValue("font-family").match(Vb),u=s.getPropertyValue("font-weight"),h=s.getPropertyValue("content");if(o&&!l)return e.removeChild(o),r();if(l&&h!=="none"&&h!==""){var d=s.getPropertyValue("content"),p=~["Sharp"].indexOf(l[2])?de:ae,w=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?Pi[p][l[2].toLowerCase()]:qb[p][u],m=BE(d),_=m.value,E=m.isSecondary,v=l[0].startsWith("FontAwesome"),y=th(w,_),S=y;if(v){var O=yE(_);O.iconName&&O.prefix&&(y=O.iconName,w=O.prefix)}if(y&&!E&&(!o||o.getAttribute(Xd)!==w||o.getAttribute(Jd)!==S)){e.setAttribute(n,S),o&&e.removeChild(o);var D=HE(),A=D.extra;A.attributes[lf]=t,pf(y,w).then(function(b){var C=rh(M(M({},D),{},{icons:{main:b,mask:nh()},prefix:w,iconName:S,extra:A,watchable:!0})),x=oe.createElement("svg");t==="::before"?e.insertBefore(x,e.firstChild):e.appendChild(x),x.outerHTML=C.map(function(N){return Ui(N)}).join(` +`),e.removeAttribute(n),r()}).catch(a)}else r()}else r()})}function ZE(e){return Promise.all([Pg(e,"::before"),Pg(e,"::after")])}function eT(e){return e.parentNode!==document.head&&!~Hb.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(lf)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Ng(e){if(an)return new Promise(function(t,n){var r=va(e.querySelectorAll("*")).filter(eT).map(ZE),a=ah.begin("searchPseudoElements");E1(),Promise.all(r).then(function(){a(),mf(),t()}).catch(function(){a(),mf(),n()})})}var tT={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=Ng,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,a=r===void 0?oe:r;I.searchPseudoElements&&Ng(a)}}},Dg=!1,nT={mixout:function(){return{dom:{unwatch:function(){E1(),Dg=!0}}}},hooks:function(){return{bootstrap:function(){Tg(ff("mutationObserverCallbacks",{}))},noAuto:function(){FE()},watch:function(n){var r=n.observeMutationsRoot;Dg?mf():Tg(ff("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},kg=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,a){var i=a.toLowerCase().split("-"),o=i[0],s=i.slice(1).join("-");if(o&&s==="h")return r.flipX=!0,r;if(o&&s==="v")return r.flipY=!0,r;if(s=parseFloat(s),isNaN(s))return r;switch(o){case"grow":r.size=r.size+s;break;case"shrink":r.size=r.size-s;break;case"left":r.x=r.x-s;break;case"right":r.x=r.x+s;break;case"up":r.y=r.y-s;break;case"down":r.y=r.y+s;break;case"rotate":r.rotate=r.rotate+s;break}return r},n)},rT={mixout:function(){return{parse:{transform:function(n){return kg(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-transform");return a&&(n.transform=kg(a)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,a=n.transform,i=n.containerWidth,o=n.iconWidth,s={transform:"translate(".concat(i/2," 256)")},l="translate(".concat(a.x*32,", ").concat(a.y*32,") "),u="scale(".concat(a.size/16*(a.flipX?-1:1),", ").concat(a.size/16*(a.flipY?-1:1),") "),h="rotate(".concat(a.rotate," 0 0)"),d={transform:"".concat(l," ").concat(u," ").concat(h)},p={transform:"translate(".concat(o/2*-1," -256)")},w={outer:s,inner:d,path:p};return{tag:"g",attributes:M({},w.outer),children:[{tag:"g",attributes:M({},w.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:M(M({},r.icon.attributes),w.path)}]}]}}}},Fu={x:0,y:0,width:"100%",height:"100%"};function Ag(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function aT(e){return e.tag==="g"?e.children:[e]}var iT={hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-mask"),i=a?Sl(a.split(" ").map(function(o){return o.trim()})):nh();return i.prefix||(i.prefix=$n()),n.mask=i,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,a=n.attributes,i=n.main,o=n.mask,s=n.maskId,l=n.transform,u=i.width,h=i.icon,d=o.width,p=o.icon,w=rE({transform:l,containerWidth:d,iconWidth:u}),m={tag:"rect",attributes:M(M({},Fu),{},{fill:"white"})},_=h.children?{children:h.children.map(Ag)}:{},E={tag:"g",attributes:M({},w.inner),children:[Ag(M({tag:h.tag,attributes:M(M({},h.attributes),w.path)},_))]},v={tag:"g",attributes:M({},w.outer),children:[E]},y="mask-".concat(s||ki()),S="clip-".concat(s||ki()),O={tag:"mask",attributes:M(M({},Fu),{},{id:y,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[m,v]},D={tag:"defs",children:[{tag:"clipPath",attributes:{id:S},children:aT(p)},O]};return r.push(D,{tag:"rect",attributes:M({fill:"currentColor","clip-path":"url(#".concat(S,")"),mask:"url(#".concat(y,")")},Fu)}),{children:r,attributes:a}}}},oT={provides:function(t){var n=!1;Rn.matchMedia&&(n=Rn.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],a={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:M(M({},a),{},{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"})});var o=M(M({},i),{},{attributeName:"opacity"}),s={tag:"circle",attributes:M(M({},a),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||s.children.push({tag:"animate",attributes:M(M({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:M(M({},o),{},{values:"1;0;1;1;0;1;"})}),r.push(s),r.push({tag:"path",attributes:M(M({},a),{},{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:n?[]:[{tag:"animate",attributes:M(M({},o),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:M(M({},a),{},{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:M(M({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},sT={hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-symbol"),i=a===null?!1:a===""?!0:a;return n.symbol=i,n}}}},lT=[oE,KE,YE,XE,JE,tT,nT,rT,iT,oT,sT];SE(lT,{mixoutsTo:ot});ot.noAuto;ot.config;ot.library;ot.dom;var vf=ot.parse;ot.findIconDefinition;ot.toHtml;var uT=ot.icon;ot.layer;ot.text;ot.counter;var C1={exports:{}},cT="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",fT=cT,dT=fT;function O1(){}function x1(){}x1.resetWarningCache=O1;var hT=function(){function e(r,a,i,o,s,l){if(l!==dT){var u=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 u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:x1,resetWarningCache:O1};return n.PropTypes=n,n};C1.exports=hT();var pT=C1.exports;const K=nl(pT);function Rg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function wn(e){for(var t=1;t=0)&&(n[a]=e[a]);return n}function mT(e,t){if(e==null)return{};var n=gT(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yf(e){return vT(e)||yT(e)||wT(e)||_T()}function vT(e){if(Array.isArray(e))return wf(e)}function yT(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wT(e,t){if(e){if(typeof e=="string")return wf(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 wf(e,t)}}function wf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(l){return N1(e,l)}),a=Object.keys(t.attributes||{}).reduce(function(l,u){var h=t.attributes[u];switch(u){case"class":l.attrs.className=h,delete t.attributes.class;break;case"style":l.attrs.style=CT(h);break;default:u.indexOf("aria-")===0||u.indexOf("data-")===0?l.attrs[u.toLowerCase()]=h:l.attrs[P1(u)]=h}return l},{attrs:{}}),i=n.style,o=i===void 0?{}:i,s=mT(n,ET);return a.attrs.style=wn(wn({},a.attrs.style),o),e.apply(void 0,[t.tag,wn(wn({},a.attrs),s)].concat(yf(r)))}var D1=!1;try{D1=!0}catch{}function OT(){if(!D1&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function $g(e){if(e&&Hs(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(vf.icon)return vf.icon(e);if(e===null)return null;if(e&&Hs(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 Iu(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Kr({},e,t):{}}var Fe=Sn.forwardRef(function(e,t){var n=e.icon,r=e.mask,a=e.symbol,i=e.className,o=e.title,s=e.titleId,l=e.maskId,u=$g(n),h=Iu("classes",[].concat(yf(ST(e)),yf(i.split(" ")))),d=Iu("transform",typeof e.transform=="string"?vf.transform(e.transform):e.transform),p=Iu("mask",$g(r)),w=uT(u,wn(wn(wn(wn({},h),d),p),{},{symbol:a,title:o,titleId:s,maskId:l}));if(!w)return OT("Could not find icon",u),null;var m=w.abstract,_={ref:t};return Object.keys(e).forEach(function(E){Fe.defaultProps.hasOwnProperty(E)||(_[E]=e[E])}),xT(m[0],_)});Fe.displayName="FontAwesomeIcon";Fe.propTypes={beat:K.bool,border:K.bool,beatFade:K.bool,bounce:K.bool,className:K.string,fade:K.bool,flash:K.bool,mask:K.oneOfType([K.object,K.array,K.string]),maskId:K.string,fixedWidth:K.bool,inverse:K.bool,flip:K.oneOf([!0,!1,"horizontal","vertical","both"]),icon:K.oneOfType([K.object,K.array,K.string]),listItem:K.bool,pull:K.oneOf(["right","left"]),pulse:K.bool,rotation:K.oneOf([0,90,180,270]),shake:K.bool,size:K.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:K.bool,spinPulse:K.bool,spinReverse:K.bool,symbol:K.oneOfType([K.bool,K.string]),title:K.string,titleId:K.string,transform:K.oneOfType([K.string,K.object]),swapOpacity:K.bool};Fe.defaultProps={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};var xT=N1.bind(null,Sn.createElement),PT={prefix:"fas",iconName:"caret-right",icon:[256,512,[],"f0da","M246.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-128-128c-9.2-9.2-22.9-11.9-34.9-6.9s-19.8 16.6-19.8 29.6l0 256c0 12.9 7.8 24.6 19.8 29.6s25.7 2.2 34.9-6.9l128-128z"]},Lg={prefix:"fas",iconName:"square-check",icon:[448,512,[9745,9989,61510,"check-square"],"f14a","M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zM337 209L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},NT={prefix:"fas",iconName:"arrows-rotate",icon:[512,512,[128472,"refresh","sync"],"f021","M105.1 202.6c7.7-21.8 20.2-42.3 37.8-59.8c62.5-62.5 163.8-62.5 226.3 0L386.3 160H336c-17.7 0-32 14.3-32 32s14.3 32 32 32H463.5c0 0 0 0 0 0h.4c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32s-32 14.3-32 32v51.2L414.4 97.6c-87.5-87.5-229.3-87.5-316.8 0C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5zM39 289.3c-5 1.5-9.8 4.2-13.7 8.2c-4 4-6.7 8.8-8.1 14c-.3 1.2-.6 2.5-.8 3.8c-.3 1.7-.4 3.4-.4 5.1V448c0 17.7 14.3 32 32 32s32-14.3 32-32V396.9l17.6 17.5 0 0c87.5 87.4 229.3 87.4 316.7 0c24.4-24.4 42.1-53.1 52.9-83.7c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.5 62.5-163.8 62.5-226.3 0l-.1-.1L125.6 352H176c17.7 0 32-14.3 32-32s-14.3-32-32-32H48.4c-1.6 0-3.2 .1-4.8 .3s-3.1 .5-4.6 1z"]},Mg={prefix:"fas",iconName:"square",icon:[448,512,[9632,9723,9724,61590],"f0c8","M0 96C0 60.7 28.7 32 64 32H384c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96z"]},DT={prefix:"fas",iconName:"circle-question",icon:[512,512,[62108,"question-circle"],"f059","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM169.8 165.3c7.9-22.3 29.1-37.3 52.8-37.3h58.3c34.9 0 63.1 28.3 63.1 63.1c0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6c-13.3 0-24-10.7-24-24V250.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1c0-8.4-6.8-15.1-15.1-15.1H222.6c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},kT={prefix:"fas",iconName:"floppy-disk",icon:[448,512,[128190,128426,"save"],"f0c7","M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V173.3c0-17-6.7-33.3-18.7-45.3L352 50.7C340 38.7 323.7 32 306.7 32H64zm0 96c0-17.7 14.3-32 32-32H288c17.7 0 32 14.3 32 32v64c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V128zM224 288a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"]},AT={prefix:"fas",iconName:"caret-down",icon:[320,512,[],"f0d7","M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"]},RT={prefix:"fas",iconName:"arrow-right-arrow-left",icon:[448,512,[8644,"exchange"],"f0ec","M438.6 150.6c12.5-12.5 12.5-32.8 0-45.3l-96-96c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.7 96 32 96C14.3 96 0 110.3 0 128s14.3 32 32 32l306.7 0-41.4 41.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l96-96zm-333.3 352c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 416 416 416c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0 41.4-41.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-96 96c-12.5 12.5-12.5 32.8 0 45.3l96 96z"]},$T=RT,LT={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},MT={prefix:"fas",iconName:"x",icon:[384,512,[120],"58","M376.6 84.5c11.3-13.6 9.5-33.8-4.1-45.1s-33.8-9.5-45.1 4.1L192 206 56.6 43.5C45.3 29.9 25.1 28.1 11.5 39.4S-3.9 70.9 7.4 84.5L150.3 256 7.4 427.5c-11.3 13.6-9.5 33.8 4.1 45.1s33.8 9.5 45.1-4.1L192 306 327.4 468.5c11.3 13.6 31.5 15.4 45.1 4.1s15.4-31.5 4.1-45.1L233.7 256 376.6 84.5z"]};const jT="_headerDiagnosticsBtnContainer_1ogb6_1",FT="_taggleBtn_1ogb6_12",IT="_toggleBtnInnerOn_1ogb6_26",UT="_toggleBtnInnerOff_1ogb6_27",zT="_faIcon_1ogb6_48",Pr={headerDiagnosticsBtnContainer:jT,taggleBtn:FT,toggleBtnInnerOn:IT,toggleBtnInnerOff:UT,faIcon:zT};function HT(){const{panelState:e,setPanelState:t,setViewInLogPanel:n}=P.useContext(it);function r(){t(a=>{const i={...a},o=!i.diagnostics.show;i.diagnostics.show=o;const s=localStorage.getItem("appSetting"),l=JSON.parse(s);return l.diagnosticsPanelShow=o,localStorage.setItem("appSetting",JSON.stringify(l)),i}),n(a=>{const i={...a};return e.diagnostics.show&&(i.streamTable=!1,i.diagnosticsLogs=!0),e.diagnostics.show||(i.streamTable=!0,i.diagnosticsLogs=!1),i})}return T.jsxs("div",{id:"headerDiagnosticsBtn",className:`header_each_btn ${Pr.headerDiagnosticsBtnContainer}`,onClick:r,children:[T.jsx("span",{className:Pr.taggleBtn,children:T.jsx("span",{className:e.diagnostics.show?Pr.toggleBtnInnerOn:Pr.toggleBtnInnerOff,children:e.diagnostics.show?T.jsx(Fe,{icon:LT,className:Pr.faIcon}):T.jsx(Fe,{icon:MT,className:Pr.faIcon})})}),T.jsx("p",{children:"Diagnostics"})]})}const WT="_headerLeftMainContainer_1bzdp_1",GT="_headerLogoContainer_1bzdp_8",VT="_headerLogo_1bzdp_8",qT="_headerLogoText_1bzdp_21",Lo={headerLeftMainContainer:WT,headerLogoContainer:GT,headerLogo:VT,headerLogoText:qT},KT="/assets/idaes-logo-4b9fada6.png";function YT(){return T.jsxs("div",{className:Lo.headerLeftMainContainer,children:[T.jsxs("div",{id:"headerLogoContainer",className:`headerLogoContainer ${Lo.headerLogoContainer}`,children:[T.jsx("img",{src:KT,alt:"idaes logo for header component",id:"headerLogo",className:`${Lo.headerLogo}`}),T.jsx("p",{id:"headerLogoText",className:`${Lo.headerLogoText}`,children:"IDAES"})]}),T.jsx("div",{children:T.jsx(HT,{})})]})}const XT="_header_flowsheet_name_3hhh9_1",JT={header_flowsheet_name:XT};function QT(){const{fv_id:e}=P.useContext(it);return T.jsx("p",{id:"flowsheet_name_title",className:`${JT.header_flowsheet_name}`,children:e||"Name not found"})}function BT(){return T.jsxs("li",{id:"refresh_btn",className:"header_each_btn",children:[T.jsx(Fe,{icon:NT,className:"mr-sm"}),"Refresh"]})}function ZT(){return T.jsxs("li",{id:"save_btn",className:"header_each_btn",children:[T.jsx(Fe,{icon:kT,className:"mr-sm"}),"Save"]})}const eC="_link_5oxur_1",tC={link:eC};function nC(){return T.jsxs("li",{id:"help_btn",className:"header_each_btn",children:[T.jsx(Fe,{icon:DT,className:"mr-sm"}),T.jsx("a",{href:"https://idaes-pse.readthedocs.io/en/latest/tutorials/getting_started/index.html",target:"_blank",className:`${tC.link}`,children:"Help"})]})}function rC(){function e(){["mosaicLayout","layout","diagnosticsPanelParams"].forEach(n=>{localStorage.removeItem(n)}),window.location.reload()}return T.jsxs("li",{id:"save_btn",className:"header_each_btn",onClick:()=>{e()},children:[T.jsx(Fe,{icon:$T,className:"mr-sm"}),"Reset Layout"]})}const aC="_header_fn_btn_wrapper_ul_18i4g_1",iC={header_fn_btn_wrapper_ul:aC};function oC(){return T.jsxs("ul",{className:`${iC.header_fn_btn_wrapper_ul}`,children:[T.jsx(BT,{}),T.jsx(ZT,{}),T.jsx(rC,{}),T.jsx(nC,{})]})}const sC="_header_container_1gczp_1",lC={header_container:sC};function uC(){return P.useContext(it),T.jsxs("header",{id:"header",className:`row ${lC.header_container}`,children:[T.jsx(YT,{}),T.jsx(QT,{}),T.jsx(oC,{})]})}const _f={attrs:{g:{},text:{display:"block","font-size":"7","text-anchor":"left"},rect:{width:"2000",height:"2000",fill:"white",rx:0,ry:0,"fill-opacity":"1"},tspan:{fill:"white",dy:10}}},Sf={attrs:{text:{display:"none"},rect:{"fill-opacity":"0"}}},Ws=0,jg=1;class cC{constructor(t){U(this,"_app");U(this,"joint");U(this,"_originalLinkStroke");U(this,"_originalLinkStrokeWidth");U(this,"_highlightLinkStroke");U(this,"_highlightLinkStrokeWidth");U(this,"_graph");U(this,"_paper");U(this,"_paperScroller");U(this,"_selection");this._app=t;let n=joint.shapes.standard,r=800,a=800,i=1;this._originalLinkStroke="#979797",this._originalLinkStrokeWidth=2,this._highlightLinkStroke="#0B79BD",this._highlightLinkStrokeWidth=4,this._graph=new joint.dia.Graph([],{cellNamespace:{standard:n}}),this._paper=new joint.dia.Paper({model:this._graph,cellViewNamespace:{standard:n},width:r,height:a,gridSize:i,drawGrid:!1,interactive:!0}),this._paperScroller=new joint.ui.PaperScroller({padding:100,paper:this._paper,autoResizePaper:!0,scrollWhileDragging:!0,baseWidth:10,baseHeight:10,cursor:"grab"}),this._selection=new joint.ui.Selection({paper:this._paper}),this._selection.removeHandle("remove"),this._selection.removeHandle("rotate"),this._selection.removeHandle("resize"),self=this,document.getElementById("fv").append(self._paperScroller.render().el),self.preSetupRegisterEvents()}get graph(){return this._graph}set graph(t){this._graph.fromJSON(t)}get paper(){return self._paper}get paperScroller(){return self._paperScroller}get selection(){return self._selection}translate_for_angle(t){return{0:[0,5],90:[38,-35],180:[0,-72],270:[-38,-34]}[t]}preSetupRegisterEvents(){this._graph.on("change:position change:angle change:vertices",()=>{this._app.graphChanged()});let t=document.getElementById("fv");t||console.error("idaes canvas is not found");const n=document.querySelector("#stream-table-data");t.addEventListener("HighlightStream",r=>{const a=t.querySelector(`[model-id=${r.detail.streamId}]`);a&&a.dispatchEvent(new Event("HighlightStream"))}),t.addEventListener("RemoveHighlightStream",r=>{const a=t.querySelector(`[model-id=${r.detail.streamId}]`);a&&a.dispatchEvent(new Event("RemoveHighlightStream"))}),self._paper.on("blank:pointerdown",self._selection.startSelecting),self._paper.on("element:pointerup",function(r,a){console.log("work"),(a.shiftKey||a.metaKey)&&self._selection.collection.add(r.model)}),self._selection.on("selection-box:pointerdown",function(r,a){(a.shiftKey||a.metaKey)&&self._selection.collection.remove(r.model)}),self._paper.on("element:contextmenu",function(r,a){r.model.rotate(90);const i=r.model.angle(),o=self.translate_for_angle(i,0,0);o===void 0?console.error(`Angle of unit model must be either 0, 90, 180, or 270. Angle is ${i}`):r.model.attr("label/transform",`translate(${o[0]}, ${o[1]}) rotate(-${i})`)}),self._paper.on("link:mouseenter",function(r){let a=document.querySelector("#stream-table-data"),i=document.querySelector("#fv");if(!a||!i)return;let o=new joint.linkTools.Vertices({focusOpacity:.5,redundancyRemoval:!0,snapRadius:20,vertexAdding:!0}),s=new joint.linkTools.Segments,l=new joint.dia.ToolsView({tools:[o,s]});r.addTools(l),r.showTools();const u=new CustomEvent("HighlightStream",{detail:{streamId:r.model.id}});i.dispatchEvent(u),a.dispatchEvent(u)}),self._paper.on("link:mouseleave",function(r){r.hideTools();const a=new CustomEvent("RemoveHighlightStream",{detail:{streamId:r.model.id}});t&&t.dispatchEvent(a),n&&n.dispatchEvent(a)}),self._paper.on("link:contextmenu",function(r,a){r.model.label(Ws).attrs.text.display==="none"?r.model.label(Ws,_f):r.model.label(0,Sf)})}zoomToFit(t=30){this._paperScroller.zoomToFit({padding:t})}postSetupRegisterEvents(){this.zoomToFit(),this._graph.getLinks().forEach(t=>{let n=t.findView(this._paper);n.el.addEventListener("HighlightStream",()=>{n.model.attr({line:{stroke:this._highlightLinkStroke,"stroke-width":this._highlightLinkStrokeWidth}})}),n.el.addEventListener("RemoveHighlightStream",()=>{n.model.attr({line:{stroke:this._originalLinkStroke,"stroke-width":this._originalLinkStrokeWidth}})})})}reorderLabel(t){let n=null,r=null;if(t.cells.forEach((i,o)=>{i.id.includes("liq")&&(n=o),i.id.includes("vap")&&(r=o)}),!n||!r)return;const a=t.cells[n];t.cells[n]=t.cells[r],t.cells[r]=a,t.cells[n]}setup(t){const n="/assets/image/flowsheet_icons/";t.cells.reverse(),t.cells.forEach(r=>{if(r.type==="standard.Image"){let a=n+r.attrs.image.xlinkHref.match(/([^\/]+\.svg)$/)[0];r.attrs.image={...r.attrs.image,xlinkHref:a}}r.labels&&(r.z=1e3,r.labels[0])}),this.reorderLabel(t),this._graph.fromJSON(t),this.postSetupRegisterEvents()}}class fC{constructor(t){U(this,"_model");this._model=t}get model(){return this._model}set model(t){this._model=t}findCellIndex(t,n){for(let r=0;r{const o=i.getEndAnchor("source"),s=i.getEndAnchor("target"),l=new g.Point(o.x+t.source.x,o.y+t.source.y),u=new g.Point(s.x+t.destination.x,s.y+t.destination.y),h=i.getEndView("source").model.angle(),d=i.getEndView("target").model.angle(),p=h%180===0?1:-1,w=d%180===0?1:-1,m=l.rotate(o,p*h),_=u.rotate(s,w*d);return joint.routers.manhattan([m,...r,_],a,i)}}processRoutingConfig(){const t=this._model.routing_config;for(let n in t){const r=this.findCellIndex(n,"standard.Link");let a=t[n].cell_config.gap,i=this.routerGapFnFactory(a);this._model.cells[r].router=i}return this._model.cells.map(n=>{if(n.labels&&n.labels[1].position)return n.labels.reverse(),n}),this._model}}let dC=class{constructor(t,n,r){U(this,"_app");U(this,"UNFIXED","unfixed");U(this,"FIXED","fixed");U(this,"PARAMETER","parameter");U(this,"EXPRESSION","expression");U(this,"highlightFn");U(this,"removeHighlightFn");U(this,"gridCellMouseEnterFn");U(this,"gridCellMouseLeaveFn");U(this,"existing_var_types");U(this,"_gridOptions");U(this,"viewInLogPanel");this._app=t,this.viewInLogPanel=r,this.defineTableBrushingFns(),this.initTable(n),this.existing_var_types=new Set}initTable(t){this.clearTable(),this.emptyVarTypesPanel(),this.fillTable(t),this.setupEvents()}clearTable(){const t=document.querySelector("#stream-table-data");t&&(t.innerHTML="")}emptyVarTypesPanel(){this.existing_var_types=new Set;const t=document.querySelector("#existing-variable-types");t.innerHTML=""}fillVarTypesPanel(){const t=document.querySelector("#existing-variable-types"),n="streamtable-vartype-element";if(this.existing_var_types.has(this.FIXED)||this.existing_var_types.has(this.PARAMETER)||this.existing_var_types.has(this.EXPRESSION)){const r=document.createElement("p");r.innerHTML="Annotated Variable Types:",r.className=n,t.appendChild(r)}this.existing_var_types.forEach(r=>{switch(r){case this.UNFIXED:console.debug("Unfixed variables don't have a visual indicator");break;case this.FIXED:case this.PARAMETER:case this.EXPRESSION:const a=document.createElement("span");a.className=n;const i=document.createElement("span"),o=document.createElement("span");o.className="streamtable-vartype-text",i.className=`streamtable-vartype-${r}`,i.title=r,o.innerHTML=r,a.appendChild(i),a.appendChild(o),t.appendChild(a);break;default:console.warn("Couldn't identify Variable type")}})}fillTable(t){let n=t.model.stream_table;const r=document.querySelector("#hide-fields-list");r&&(r.innerHTML="");let a=n.columns,i=[];for(let w in a){let m=a[w];if(m!==""&&m!=="Units"&&!m.includes("_vartype"))if(m==="Variable")i.push({headerName:m,field:m,filter:"agTextColumnFilter",sortable:!0,resizable:!0,pinned:"left",cellRenderer:_=>''+_.value+""});else{i.push({headerName:m,field:m,filter:"agTextColumnFilter",sortable:!0,resizable:!0,cellRenderer:v=>''+v.value+""});let _=document.createElement("li"),E=document.createElement("div");E.className="checkbox",E.innerHTML=` + + `,_.appendChild(E),r.appendChild(_)}}let o=n.index,s=n.data,l=[],u="Variable";for(let w in o){let m={},_=s[w];for(let E in a)if(a[E]==="Units")_[E]&&_[E].html?m[u]=m[u]+''+_[E].html+"":m[u]=m[u]+'';else if(a[E]==="Variable")m[a[E]]=_[E];else{var[h,d]=_[E];let v="";switch(d){case this.UNFIXED:this.existing_var_types.add(d);break;case this.FIXED:case this.PARAMETER:case this.EXPRESSION:this.existing_var_types.add(d),v=``;break;default:console.warn(`Couldn't identify Variable type: ${d}`)}m[a[E]]=v+''+h+""}l.push(m)}this.fillVarTypesPanel(),this._gridOptions={columnDefs:i,rowData:l,suppressColumnVirtualisation:!0},this._gridOptions.getRowStyle=function(w){if(w.node.rowIndex%2===0)return{background:"#f3f3f3"}};let p=document.querySelector("#stream-table-data");new agGrid.Grid(p,this._gridOptions),this._gridOptions.columnApi.autoSizeAllColumns()}defineTableBrushingFns(){let t=document.querySelector("#stream-table-data"),n=document.querySelector("#fv");!t||!n||!this.viewInLogPanel.streamTable||(this.highlightFn=r=>{let a=t.querySelectorAll(`[col-id=${r.detail.streamId}]`);a.forEach((i,o)=>{i.getAttribute("role")=="columnheader"?i.classList.add("link-streamtable-hover-columnheader"):o==a.length-1?i.classList.add("link-streamtable-hover-lastrow"):i.classList.add("link-streamtable-hover")})},this.removeHighlightFn=r=>{console.log("remove hight light"),t.querySelectorAll(`[col-id=${r.detail.streamId}]`).forEach(i=>{i.classList.remove("link-streamtable-hover-columnheader"),i.classList.remove("link-streamtable-hover-lastrow"),i.classList.remove("link-streamtable-hover")})},this.gridCellMouseEnterFn=r=>{const a=r.target.getAttribute("col-id");if(a){const i=new CustomEvent("HighlightStream",{detail:{streamId:a}});t.dispatchEvent(i),n.dispatchEvent(i)}},this.gridCellMouseLeaveFn=r=>{const a=r.target.getAttribute("col-id"),i=new CustomEvent("RemoveHighlightStream",{detail:{streamId:a}});t.dispatchEvent(i),n.dispatchEvent(i)})}registerTableBrushing(){let t=document.querySelector("#stream-table-data");document.querySelector("#fv");let n=document.querySelectorAll("[col-id]");t.removeEventListener("HighlightStream",this.highlightFn),t.removeEventListener("RemoveHighlightStream",this.removeHighlightFn),n.forEach(r=>{r.removeEventListener("mouseenter",this.gridCellMouseEnterFn),r.removeEventListener("mouseleave",this.gridCellMouseLeaveFn)}),t.addEventListener("HighlightStream",this.highlightFn),t.addEventListener("RemoveHighlightStream",this.removeHighlightFn),n.forEach(r=>{r.addEventListener("mouseenter",this.gridCellMouseEnterFn),r.addEventListener("mouseleave",this.gridCellMouseLeaveFn)})}setupEvents(){let n=document.querySelector("#hide-fields-list").querySelectorAll("input[type=checkbox]"),r=this;n.forEach(function(a){a.addEventListener("change",function(i){var l;i.preventDefault();let o=i.target,s=(l=o.parentElement)==null?void 0:l.querySelector("span");o.checked?(s.style.display="block",r._gridOptions.columnApi.setColumnVisible(o.id,!0),r.registerTableBrushing()):(s.style.display="none",r._gridOptions.columnApi.setColumnVisible(o.id,!1))})}),this.registerTableBrushing()}};class hC{constructor(t,n,r,a,i,o,s){U(this,"_app");U(this,"_paper");U(this,"_stream_table");U(this,"flowsheetId");U(this,"getFSUrl");U(this,"putFSUrl");U(this,"isFvShow");U(this,"zoomRate");U(this,"toggleStreamNameBtn");U(this,"toggleLabelsBtn");U(this,"zoomInBtn");U(this,"zoomOutBtn");U(this,"zoomFitBtn");U(this,"zoomInHandler");U(this,"zoomOutHandler");U(this,"zoomFitHandler");this._app=t,this._paper=n,this._stream_table=r,this.flowsheetId=a,this.getFSUrl=i,this.putFSUrl=o,this.isFvShow=s,this.zoomRate=.2,this.zoomInHandler=void 0,this.zoomOutHandler=void 0,this.zoomFitHandler=void 0,this.registerEventExportFlowsheetToPng(),this.registerEventExportFlowsheetToSvg(),this.registerEventRefresh(this.getFSUrl,this.putFSUrl),this.registerEventSave(this.putFSUrl),this.zoomInBtn=document.querySelector("#zoom-in-btn"),this.zoomOutBtn=document.querySelector("#zoom-out-btn"),this.zoomFitBtn=document.querySelector("#zoom-to-fit"),s&&(this.toggleStreamNameBtn=document.querySelector("#stream-names-toggle"),this.toggleStreamNameBtn&&this.registerToggleStreamNamesEvent(this.toggleStreamNameBtn),this.toggleLabelsBtn=document.querySelector("#show-label-toggle"),this.toggleLabelsBtn&&this.registerEventToggleLabel(this.toggleLabelsBtn),this.zoomInBtn&&this.zoomOutBtn&&this.zoomFitBtn&&this.registerZoomEvent(this.zoomInBtn,this.zoomOutBtn,this.zoomFitBtn))}registerZoomEvent(t,n,r){this.zoomInHandler=()=>this.zoomInEvent(this._paper.paperScroller,this.zoomRate),this.zoomOutHandler=()=>this.zoomOutEvent(this._paper.paperScroller,this.zoomRate),this.zoomFitHandler=()=>this.zoomFitEvent(),t.addEventListener("click",this.zoomInHandler),n.addEventListener("click",this.zoomOutHandler),r.addEventListener("click",this.zoomFitHandler)}zoomInEvent(t,n){t.zoom(n,{max:100})}zoomOutEvent(t,n){t.zoom(-n,{min:.01})}zoomFitEvent(){this._paper.zoomToFit()}registerToggleStreamNamesEvent(t){t.addEventListener("click",()=>{t.getAttribute("data-toggle")==="true"?this._paper._graph.getLinks().forEach(function(r){r.label(jg,Sf)}):this._paper._graph.getLinks().forEach(function(r){r.label(jg,_f)})})}registerEventExportFlowsheetToPng(){const t=document.querySelector("#headerExportImageBtn");document.querySelector("#headerExportSvgBtn"),t.addEventListener("click",()=>{let n=this._paper.paper;const r=this.flowsheetId;n.hideTools(),n.toPNG(function(a){new joint.ui.Lightbox({image:a,downloadable:!0,fileName:r.concat(".png")}).open()},{scale:2,pixelRatio:2,preserveDimensions:!0,convertImagesToDataUris:!0,useComputedStyles:!0,stylesheet:".scalable * { vector-effect: non-scaling-stroke }"})})}registerEventExportFlowsheetToSvg(){document.querySelector("#headerExportSvgBtn").addEventListener("click",()=>{let n=this._paper.paper;const r=this.flowsheetId;n.hideTools(),n.toSVG(a=>{const i=new Blob([a],{type:"image/svg+xml;charset=utf-8"}),o=URL.createObjectURL(i);new joint.ui.Lightbox({image:o,downloadable:!0,fileName:r.concat(".svg")}).open()},{scale:2,pixelRatio:2,preserveDimensions:!0,convertImagesToDataUris:!0,useComputedStyles:!0,stylesheet:".scalable * { vector-effect: non-scaling-stroke }"})})}registerEventToggleLabel(t){t.addEventListener("click",()=>{t.getAttribute("data-toggle")=="true"?this._paper._graph.getLinks().forEach(function(r){r.label(Ws,_f)}):this._paper._graph.getLinks().forEach(function(r){r.label(Ws,Sf)})})}registerEventRefresh(t,n){document.querySelector("#refresh_btn").addEventListener("click",()=>{this._app.refreshModel(t,n,this._paper)})}registerEventSave(t){document.querySelector("#save_btn").addEventListener("click",()=>{this._app.saveModel(t,this._paper.graph)})}cleanUpEvent(){let t=document.getElementById("zoom-in-btn"),n=document.getElementById("zoom-out-btn"),r=document.getElementById("zoom-to-fit");if(t){let u=t.cloneNode(!0);t.parentNode.replaceChild(u,t)}if(n){let u=n.cloneNode(!0);n.parentNode.replaceChild(u,n)}if(r){let u=r.cloneNode(!0);r.parentNode.replaceChild(u,r)}let a=document.getElementById("flowsheet_component_header_dropdown_container"),i=document.getElementById("headerExportImageBtn"),o=document.getElementById("headerExportSvgBtn");if(i){let u=i.cloneNode(!0);a?a.replaceChild(u,i):console.log("error no parent nodes")}if(o){let u=o.cloneNode(!0);a?a.replaceChild(u,o):console.log("error download svg btn replacement failed, in toolbar, parent not found!")}let s=document.getElementById("save_btn");if(s){let u=s.cloneNode(!0);s.parentNode?s.parentNode.replaceChild(u,s):console.log("error save btn replacement error handle in toolbar, parent not found!")}let l=document.getElementById("refresh_btn");if(l){let u=l.cloneNode(!0);l.parentNode?l.parentNode.replaceChild(u,l):console.log("error refresh btn replacement error handle in toolbar, parent not found!")}}}const pC="_message_bar_container_8b2qe_1",gC="_messageBarTextContainer_8b2qe_9",mC="_messageBarShowUp_8b2qe_1",vC="_bg_successful_8b2qe_40",yC="_bg_error_8b2qe_44",os={message_bar_container:pC,messageBarTextContainer:gC,messageBarShowUp:mC,bg_successful:vC,bg_error:yC};function ir(e,t,n){let r="loading...";e=="refreshFS"&&t&&(r="Flowsheet refreshed."),e=="refreshFS"&&!t&&(r="Flowsheet refresh failed! Please reload the page!"),e=="userSave"&&t&&(r="Flowsheet saved."),e=="userSave"&&!t&&(r="Flowsheet save failed! Please restart the server!"),e=="diagnosticRefresh"&&t&&(r="Diagnostics refreshed."),e=="diagnosticRefresh"&&!t&&(r="Diagnostics refresh failed! Please restart the server!"),e=="diagnosticFNRunError"&&!t&&(n?r=n:r="Run diagnostics failed, please check your python terminal.");const a=` +
+

${r}

+
+ `,i=document.getElementById("messageBarContainer");i.innerHTML=a;const o=setTimeout(()=>{const s=document.getElementById("messageBarTextContainer");console.log(s),s?i.removeChild(s):console.log("Child node message bar is not found!"),clearTimeout(o)},3e3)}function k1(e,t){return function(){return e.apply(t,arguments)}}const{toString:wC}=Object.prototype,{getPrototypeOf:oh}=Object,El=(e=>t=>{const n=wC.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ft=e=>(e=e.toLowerCase(),t=>El(t)===e),Tl=e=>t=>typeof t===e,{isArray:ya}=Array,Ai=Tl("undefined");function _C(e){return e!==null&&!Ai(e)&&e.constructor!==null&&!Ai(e.constructor)&&mt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const A1=Ft("ArrayBuffer");function SC(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&A1(e.buffer),t}const bC=Tl("string"),mt=Tl("function"),R1=Tl("number"),Cl=e=>e!==null&&typeof e=="object",EC=e=>e===!0||e===!1,ss=e=>{if(El(e)!=="object")return!1;const t=oh(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},TC=Ft("Date"),CC=Ft("File"),OC=Ft("Blob"),xC=Ft("FileList"),PC=e=>Cl(e)&&mt(e.pipe),NC=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||mt(e.append)&&((t=El(e))==="formdata"||t==="object"&&mt(e.toString)&&e.toString()==="[object FormData]"))},DC=Ft("URLSearchParams"),kC=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zi(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),ya(e))for(r=0,a=e.length;r0;)if(a=n[r],t===a.toLowerCase())return a;return null}const L1=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),M1=e=>!Ai(e)&&e!==L1;function bf(){const{caseless:e}=M1(this)&&this||{},t={},n=(r,a)=>{const i=e&&$1(t,a)||a;ss(t[i])&&ss(r)?t[i]=bf(t[i],r):ss(r)?t[i]=bf({},r):ya(r)?t[i]=r.slice():t[i]=r};for(let r=0,a=arguments.length;r(zi(t,(a,i)=>{n&&mt(a)?e[i]=k1(a,n):e[i]=a},{allOwnKeys:r}),e),RC=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),$C=(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)},LC=(e,t,n,r)=>{let a,i,o;const s={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)o=a[i],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&oh(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},MC=(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},jC=e=>{if(!e)return null;if(ya(e))return e;let t=e.length;if(!R1(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},FC=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&oh(Uint8Array)),IC=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=r.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},UC=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},zC=Ft("HTMLFormElement"),HC=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),Fg=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),WC=Ft("RegExp"),j1=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};zi(n,(a,i)=>{let o;(o=t(a,i,e))!==!1&&(r[i]=o||a)}),Object.defineProperties(e,r)},GC=e=>{j1(e,(t,n)=>{if(mt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(mt(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+"'")})}})},VC=(e,t)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return ya(e)?r(e):r(String(e).split(t)),n},qC=()=>{},KC=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Uu="abcdefghijklmnopqrstuvwxyz",Ig="0123456789",F1={DIGIT:Ig,ALPHA:Uu,ALPHA_DIGIT:Uu+Uu.toUpperCase()+Ig},YC=(e=16,t=F1.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function XC(e){return!!(e&&mt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const JC=e=>{const t=new Array(10),n=(r,a)=>{if(Cl(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[a]=r;const i=ya(r)?[]:{};return zi(r,(o,s)=>{const l=n(o,a+1);!Ai(l)&&(i[s]=l)}),t[a]=void 0,i}}return r};return n(e,0)},QC=Ft("AsyncFunction"),BC=e=>e&&(Cl(e)||mt(e))&&mt(e.then)&&mt(e.catch),k={isArray:ya,isArrayBuffer:A1,isBuffer:_C,isFormData:NC,isArrayBufferView:SC,isString:bC,isNumber:R1,isBoolean:EC,isObject:Cl,isPlainObject:ss,isUndefined:Ai,isDate:TC,isFile:CC,isBlob:OC,isRegExp:WC,isFunction:mt,isStream:PC,isURLSearchParams:DC,isTypedArray:FC,isFileList:xC,forEach:zi,merge:bf,extend:AC,trim:kC,stripBOM:RC,inherits:$C,toFlatObject:LC,kindOf:El,kindOfTest:Ft,endsWith:MC,toArray:jC,forEachEntry:IC,matchAll:UC,isHTMLForm:zC,hasOwnProperty:Fg,hasOwnProp:Fg,reduceDescriptors:j1,freezeMethods:GC,toObjectSet:VC,toCamelCase:HC,noop:qC,toFiniteNumber:KC,findKey:$1,global:L1,isContextDefined:M1,ALPHABET:F1,generateString:YC,isSpecCompliantForm:XC,toJSONObject:JC,isAsyncFn:QC,isThenable:BC};function X(e,t,n,r,a){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),a&&(this.response=a)}k.inherits(X,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:k.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const I1=X.prototype,U1={};["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=>{U1[e]={value:e}});Object.defineProperties(X,U1);Object.defineProperty(I1,"isAxiosError",{value:!0});X.from=(e,t,n,r,a,i)=>{const o=Object.create(I1);return k.toFlatObject(e,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),X.call(o,e.message,t,n,r,a),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const ZC=null;function Ef(e){return k.isPlainObject(e)||k.isArray(e)}function z1(e){return k.endsWith(e,"[]")?e.slice(0,-2):e}function Ug(e,t,n){return e?e.concat(t).map(function(a,i){return a=z1(a),!n&&i?"["+a+"]":a}).join(n?".":""):t}function eO(e){return k.isArray(e)&&!e.some(Ef)}const tO=k.toFlatObject(k,{},null,function(t){return/^is[A-Z]/.test(t)});function Ol(e,t,n){if(!k.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=k.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,E){return!k.isUndefined(E[_])});const r=n.metaTokens,a=n.visitor||h,i=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&k.isSpecCompliantForm(t);if(!k.isFunction(a))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(k.isDate(m))return m.toISOString();if(!l&&k.isBlob(m))throw new X("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(m)||k.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function h(m,_,E){let v=m;if(m&&!E&&typeof m=="object"){if(k.endsWith(_,"{}"))_=r?_:_.slice(0,-2),m=JSON.stringify(m);else if(k.isArray(m)&&eO(m)||(k.isFileList(m)||k.endsWith(_,"[]"))&&(v=k.toArray(m)))return _=z1(_),v.forEach(function(S,O){!(k.isUndefined(S)||S===null)&&t.append(o===!0?Ug([_],O,i):o===null?_:_+"[]",u(S))}),!1}return Ef(m)?!0:(t.append(Ug(E,_,i),u(m)),!1)}const d=[],p=Object.assign(tO,{defaultVisitor:h,convertValue:u,isVisitable:Ef});function w(m,_){if(!k.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+_.join("."));d.push(m),k.forEach(m,function(v,y){(!(k.isUndefined(v)||v===null)&&a.call(t,v,k.isString(y)?y.trim():y,_,p))===!0&&w(v,_?_.concat(y):[y])}),d.pop()}}if(!k.isObject(e))throw new TypeError("data must be an object");return w(e),t}function zg(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function sh(e,t){this._pairs=[],e&&Ol(e,this,t)}const H1=sh.prototype;H1.append=function(t,n){this._pairs.push([t,n])};H1.toString=function(t){const n=t?function(r){return t.call(this,r,zg)}:zg;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function nO(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function W1(e,t,n){if(!t)return e;const r=n&&n.encode||nO,a=n&&n.serialize;let i;if(a?i=a(t,n):i=k.isURLSearchParams(t)?t.toString():new sh(t,n).toString(r),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class rO{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){k.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Hg=rO,G1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},aO=typeof URLSearchParams<"u"?URLSearchParams:sh,iO=typeof FormData<"u"?FormData:null,oO=typeof Blob<"u"?Blob:null,sO={isBrowser:!0,classes:{URLSearchParams:aO,FormData:iO,Blob:oO},protocols:["http","https","file","blob","url","data"]},V1=typeof window<"u"&&typeof document<"u",lO=(e=>V1&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),uO=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),cO=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:V1,hasStandardBrowserEnv:lO,hasStandardBrowserWebWorkerEnv:uO},Symbol.toStringTag,{value:"Module"})),Lt={...cO,...sO};function fO(e,t){return Ol(e,new Lt.classes.URLSearchParams,Object.assign({visitor:function(n,r,a,i){return Lt.isNode&&k.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function dO(e){return k.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function hO(e){const t={},n=Object.keys(e);let r;const a=n.length;let i;for(r=0;r=n.length;return o=!o&&k.isArray(a)?a.length:o,l?(k.hasOwnProp(a,o)?a[o]=[a[o],r]:a[o]=r,!s):((!a[o]||!k.isObject(a[o]))&&(a[o]=[]),t(n,r,a[o],i)&&k.isArray(a[o])&&(a[o]=hO(a[o])),!s)}if(k.isFormData(e)&&k.isFunction(e.entries)){const n={};return k.forEachEntry(e,(r,a)=>{t(dO(r),a,n,0)}),n}return null}function pO(e,t,n){if(k.isString(e))try{return(t||JSON.parse)(e),k.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const lh={transitional:G1,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,i=k.isObject(t);if(i&&k.isHTMLForm(t)&&(t=new FormData(t)),k.isFormData(t))return a&&a?JSON.stringify(q1(t)):t;if(k.isArrayBuffer(t)||k.isBuffer(t)||k.isStream(t)||k.isFile(t)||k.isBlob(t))return t;if(k.isArrayBufferView(t))return t.buffer;if(k.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return fO(t,this.formSerializer).toString();if((s=k.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Ol(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||a?(n.setContentType("application/json",!1),pO(t)):t}],transformResponse:[function(t){const n=this.transitional||lh.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(t&&k.isString(t)&&(r&&!this.responseType||a)){const o=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?X.from(s,X.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Lt.classes.FormData,Blob:Lt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};k.forEach(["delete","get","head","post","put","patch"],e=>{lh.headers[e]={}});const uh=lh,gO=k.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"]),mO=e=>{const t={};let n,r,a;return e&&e.split(` +`).forEach(function(o){a=o.indexOf(":"),n=o.substring(0,a).trim().toLowerCase(),r=o.substring(a+1).trim(),!(!n||t[n]&&gO[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Wg=Symbol("internals");function Ma(e){return e&&String(e).trim().toLowerCase()}function ls(e){return e===!1||e==null?e:k.isArray(e)?e.map(ls):String(e)}function vO(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 yO=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function zu(e,t,n,r,a){if(k.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!k.isString(t)){if(k.isString(r))return t.indexOf(r)!==-1;if(k.isRegExp(r))return r.test(t)}}function wO(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function _O(e,t){const n=k.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(a,i,o){return this[r].call(this,t,a,i,o)},configurable:!0})})}class xl{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function i(s,l,u){const h=Ma(l);if(!h)throw new Error("header name must be a non-empty string");const d=k.findKey(a,h);(!d||a[d]===void 0||u===!0||u===void 0&&a[d]!==!1)&&(a[d||l]=ls(s))}const o=(s,l)=>k.forEach(s,(u,h)=>i(u,h,l));return k.isPlainObject(t)||t instanceof this.constructor?o(t,n):k.isString(t)&&(t=t.trim())&&!yO(t)?o(mO(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=Ma(t),t){const r=k.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return vO(a);if(k.isFunction(n))return n.call(this,a,r);if(k.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ma(t),t){const r=k.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||zu(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function i(o){if(o=Ma(o),o){const s=k.findKey(r,o);s&&(!n||zu(r,r[s],s,n))&&(delete r[s],a=!0)}}return k.isArray(t)?t.forEach(i):i(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const i=n[r];(!t||zu(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const n=this,r={};return k.forEach(this,(a,i)=>{const o=k.findKey(r,i);if(o){n[o]=ls(a),delete n[i];return}const s=t?wO(i):String(i).trim();s!==i&&delete n[i],n[s]=ls(a),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return k.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&k.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(` +`)}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(a=>r.set(a)),r}static accessor(t){const r=(this[Wg]=this[Wg]={accessors:{}}).accessors,a=this.prototype;function i(o){const s=Ma(o);r[s]||(_O(a,o),r[s]=!0)}return k.isArray(t)?t.forEach(i):i(t),this}}xl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);k.reduceDescriptors(xl.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});k.freezeMethods(xl);const Xt=xl;function Hu(e,t){const n=this||uh,r=t||n,a=Xt.from(r.headers);let i=r.data;return k.forEach(e,function(s){i=s.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function K1(e){return!!(e&&e.__CANCEL__)}function Hi(e,t,n){X.call(this,e??"canceled",X.ERR_CANCELED,t,n),this.name="CanceledError"}k.inherits(Hi,X,{__CANCEL__:!0});function SO(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new X("Request failed with status code "+n.status,[X.ERR_BAD_REQUEST,X.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const bO=Lt.hasStandardBrowserEnv?{write(e,t,n,r,a,i){const o=[e+"="+encodeURIComponent(t)];k.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),k.isString(r)&&o.push("path="+r),k.isString(a)&&o.push("domain="+a),i===!0&&o.push("secure"),document.cookie=o.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 EO(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function TO(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Y1(e,t){return e&&!EO(t)?TO(e,t):t}const CO=Lt.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function a(i){let o=i;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=a(window.location.href),function(o){const s=k.isString(o)?a(o):o;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function OO(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function xO(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,i=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),h=r[i];o||(o=u),n[a]=l,r[a]=u;let d=i,p=0;for(;d!==a;)p+=n[d++],d=d%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),u-o{const i=a.loaded,o=a.lengthComputable?a.total:void 0,s=i-n,l=r(s),u=i<=o;n=i;const h={loaded:i,total:o,progress:o?i/o:void 0,bytes:s,rate:l||void 0,estimated:l&&o&&u?(o-i)/l:void 0,event:a};h[t?"download":"upload"]=!0,e(h)}}const PO=typeof XMLHttpRequest<"u",NO=PO&&function(e){return new Promise(function(n,r){let a=e.data;const i=Xt.from(e.headers).normalize();let{responseType:o,withXSRFToken:s}=e,l;function u(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let h;if(k.isFormData(a)){if(Lt.hasStandardBrowserEnv||Lt.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((h=i.getContentType())!==!1){const[_,...E]=h?h.split(";").map(v=>v.trim()).filter(Boolean):[];i.setContentType([_||"multipart/form-data",...E].join("; "))}}let d=new XMLHttpRequest;if(e.auth){const _=e.auth.username||"",E=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(_+":"+E))}const p=Y1(e.baseURL,e.url);d.open(e.method.toUpperCase(),W1(p,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function w(){if(!d)return;const _=Xt.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),v={data:!o||o==="text"||o==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:_,config:e,request:d};SO(function(S){n(S),u()},function(S){r(S),u()},v),d=null}if("onloadend"in d?d.onloadend=w:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(w)},d.onabort=function(){d&&(r(new X("Request aborted",X.ECONNABORTED,e,d)),d=null)},d.onerror=function(){r(new X("Network Error",X.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let E=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const v=e.transitional||G1;e.timeoutErrorMessage&&(E=e.timeoutErrorMessage),r(new X(E,v.clarifyTimeoutError?X.ETIMEDOUT:X.ECONNABORTED,e,d)),d=null},Lt.hasStandardBrowserEnv&&(s&&k.isFunction(s)&&(s=s(e)),s||s!==!1&&CO(p))){const _=e.xsrfHeaderName&&e.xsrfCookieName&&bO.read(e.xsrfCookieName);_&&i.set(e.xsrfHeaderName,_)}a===void 0&&i.setContentType(null),"setRequestHeader"in d&&k.forEach(i.toJSON(),function(E,v){d.setRequestHeader(v,E)}),k.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),o&&o!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",Gg(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",Gg(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=_=>{d&&(r(!_||_.type?new Hi(null,e,d):_),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const m=OO(p);if(m&&Lt.protocols.indexOf(m)===-1){r(new X("Unsupported protocol "+m+":",X.ERR_BAD_REQUEST,e));return}d.send(a||null)})},Tf={http:ZC,xhr:NO};k.forEach(Tf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Vg=e=>`- ${e}`,DO=e=>k.isFunction(e)||e===null||e===!1,X1={getAdapter:e=>{e=k.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let i=0;i`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?i.length>1?`since : +`+i.map(Vg).join(` +`):" "+Vg(i[0]):"as no adapter specified";throw new X("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:Tf};function Wu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Hi(null,e)}function qg(e){return Wu(e),e.headers=Xt.from(e.headers),e.data=Hu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),X1.getAdapter(e.adapter||uh.adapter)(e).then(function(r){return Wu(e),r.data=Hu.call(e,e.transformResponse,r),r.headers=Xt.from(r.headers),r},function(r){return K1(r)||(Wu(e),r&&r.response&&(r.response.data=Hu.call(e,e.transformResponse,r.response),r.response.headers=Xt.from(r.response.headers))),Promise.reject(r)})}const Kg=e=>e instanceof Xt?e.toJSON():e;function fa(e,t){t=t||{};const n={};function r(u,h,d){return k.isPlainObject(u)&&k.isPlainObject(h)?k.merge.call({caseless:d},u,h):k.isPlainObject(h)?k.merge({},h):k.isArray(h)?h.slice():h}function a(u,h,d){if(k.isUndefined(h)){if(!k.isUndefined(u))return r(void 0,u,d)}else return r(u,h,d)}function i(u,h){if(!k.isUndefined(h))return r(void 0,h)}function o(u,h){if(k.isUndefined(h)){if(!k.isUndefined(u))return r(void 0,u)}else return r(void 0,h)}function s(u,h,d){if(d in t)return r(u,h);if(d in e)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(u,h)=>a(Kg(u),Kg(h),!0)};return k.forEach(Object.keys(Object.assign({},e,t)),function(h){const d=l[h]||a,p=d(e[h],t[h],h);k.isUndefined(p)&&d!==s||(n[h]=p)}),n}const J1="1.6.5",ch={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ch[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Yg={};ch.transitional=function(t,n,r){function a(i,o){return"[Axios v"+J1+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,s)=>{if(t===!1)throw new X(a(o," has been removed"+(n?" in "+n:"")),X.ERR_DEPRECATED);return n&&!Yg[o]&&(Yg[o]=!0,console.warn(a(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,s):!0}};function kO(e,t,n){if(typeof e!="object")throw new X("options must be an object",X.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const i=r[a],o=t[i];if(o){const s=e[i],l=s===void 0||o(s,i,e);if(l!==!0)throw new X("option "+i+" must be "+l,X.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new X("Unknown option "+i,X.ERR_BAD_OPTION)}}const Cf={assertOptions:kO,validators:ch},un=Cf.validators;class Gs{constructor(t){this.defaults=t,this.interceptors={request:new Hg,response:new Hg}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=fa(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&Cf.assertOptions(r,{silentJSONParsing:un.transitional(un.boolean),forcedJSONParsing:un.transitional(un.boolean),clarifyTimeoutError:un.transitional(un.boolean)},!1),a!=null&&(k.isFunction(a)?n.paramsSerializer={serialize:a}:Cf.assertOptions(a,{encode:un.function,serialize:un.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&k.merge(i.common,i[n.method]);i&&k.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=Xt.concat(o,i);const s=[];let l=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(n)===!1||(l=l&&_.synchronous,s.unshift(_.fulfilled,_.rejected))});const u=[];this.interceptors.response.forEach(function(_){u.push(_.fulfilled,_.rejected)});let h,d=0,p;if(!l){const m=[qg.bind(this),void 0];for(m.unshift.apply(m,s),m.push.apply(m,u),p=m.length,h=Promise.resolve(n);d{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(s=>{r.subscribe(s),i=s}).then(a);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,s){r.reason||(r.reason=new Hi(i,o,s),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)}static source(){let t;return{token:new fh(function(a){t=a}),cancel:t}}}const AO=fh;function RO(e){return function(n){return e.apply(null,n)}}function $O(e){return k.isObject(e)&&e.isAxiosError===!0}const Of={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(Of).forEach(([e,t])=>{Of[t]=e});const LO=Of;function Q1(e){const t=new us(e),n=k1(us.prototype.request,t);return k.extend(n,us.prototype,t,{allOwnKeys:!0}),k.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return Q1(fa(e,a))},n}const me=Q1(uh);me.Axios=us;me.CanceledError=Hi;me.CancelToken=AO;me.isCancel=K1;me.VERSION=J1;me.toFormData=Ol;me.AxiosError=X;me.Cancel=me.CanceledError;me.all=function(t){return Promise.all(t)};me.spread=RO;me.isAxiosError=$O;me.mergeConfig=fa;me.AxiosHeaders=Xt;me.formToJSON=e=>q1(k.isHTMLForm(e)?new FormData(e):e);me.getAdapter=X1.getAdapter;me.HttpStatusCode=LO;me.default=me;const Zn=me;class MO{constructor(t,n,r,a,i,o){U(this,"flowsheetId");U(this,"isFvShow");U(this,"isStreamTableShow");U(this,"baseUrl");U(this,"getFSUrl");U(this,"putFSUrl");U(this,"model");U(this,"paper");U(this,"_is_graph_changed");U(this,"_save_time_interval_key");U(this,"_default_save_time_interval");U(this,"_save_time_interval");U(this,"stream_table");U(this,"toolbar");U(this,"cleanToolBarEvent");U(this,"viewInLogPanel");this.flowsheetId=t,this.isFvShow=r,this.isStreamTableShow=i,this.viewInLogPanel=o,this.baseUrl=`http://localhost:${n}`,this.getFSUrl=`/fs?id=${t}`,this.putFSUrl=`/fs?id=${t}`,this.model={},r&&(this.paper=new cC(this)),this._is_graph_changed=!1,this._save_time_interval_key="save_time_interval",this._default_save_time_interval=5e3,this._save_time_interval=this.getSaveTimeInterval(),this.setupGraphChangeChecker(this._save_time_interval,t),this.setGetFSUrl(),Zn.get(this.getFSUrl).then(s=>{this.model=s.data,r&&this.renderModel(this.model),i&&o.streamTable&&(this.stream_table=new dC(this,this.model,this.viewInLogPanel)),this.toolbar=new hC(this,this.paper,this.stream_table,this.flowsheetId,this.getFSUrl,this.putFSUrl,this.isFvShow),this.cleanToolBarEvent=this.toolbar.cleanUpEvent}).catch(s=>{console.log(s.message),console.log(s.response.status)}),this.fvExtraContentCleanUp()}setGetFSUrl(){let t=new URLSearchParams(window.location.search);if(!t.get("example"))return;let n=parseInt(t.get("example")),r=["example_1","example_2","example_3","example_4","example_5","example_6","example_7"];n<0||n>r.length||(this.getFSUrl=`/assets/testing_data/example_${n}.json`)}renderModel(t){const r=new fC(t).processRoutingConfig();this.paper.setup(r)}debug_removeFlowsheetPosition(t){let n=5;t.cells.forEach(r=>{n+=150,r.position&&(r.position={x:n,y:void 0})})}informUser(t,n){switch(t){case 0:console.log(n);break;case 1:console.warn(n);break;case 2:console.error(n);break;default:console.log(n)}}refreshModel(t,n,r){this.informUser(0,"Refresh: save current values from model");let a=r.graph,i=JSON.stringify(a.toJSON());Zn.put(n,i,{headers:{"Content-Type":"application/json"}}).then(()=>(this.informUser(0,"Refresh: load new model values from Python program"),Zn.get(t,{responseType:"json"}))).then(o=>{console.log(o.data);const s=o.data;let l;this.isStreamTableShow&&this.viewInLogPanel.streamTable&&(l=document.getElementById("hide-fields-list")),l&&(l.innerHTML="",this.renderModel(s),this.stream_table.initTable(s)),ir("refreshFS",!0)}).catch(o=>{ir("refreshFS",!1),o.response?this.informUser(2,"Fatal error: cannot save current model before refresh: "+o.response.data):this.informUser(2,"Fatal error: Could not retrieve new model from Python program: "+o.message)})}getSaveTimeInterval(){let t=`${this.baseUrl}/setting?setting_key=${this._save_time_interval_key}`,n=this._default_save_time_interval;return Zn.get(t,{headers:{"Content-Type":"application/json"}}).then(r=>{r.data.value!="None"?n=r.data.value:this.informUser(1,`Warning: save_time_interval was not set correctly. Default time value of + ${this._default_save_time_interval.toString()} + will be set.`)}).catch(r=>{this.informUser(2,"Fatal error: cannot get setting value: "+r)}),n}graphChanged(){this._is_graph_changed=!0}setupGraphChangeChecker(t,n){let r=this.putFSUrl;var a=setInterval(()=>{this._is_graph_changed&&(this.saveModel(r,this.paper.graph),this._is_graph_changed=!1)},t);return a}saveModel(t,n){let r=JSON.stringify(n.toJSON());Zn.put(t,r,{headers:{"Content-Type":"application/json"}}).then(a=>{console.log("saved"),this.informUser(0,"Saved new model values"),ir("userSave",!0)}).catch(a=>{ir("userSave",!1),this.informUser(2,"Fatal error: cannot save current model: "+a)})}fvExtraContentCleanUp(){let t=document.getElementById("fv");if(!(!t||t.childNodes.length<=1))for(t.childNodes[(t==null?void 0:t.childNodes.length)-1];t.firstChild!==t.lastChild;)t.removeChild(t.firstChild)}}var xf={},da={},B1={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",o=0;o-1&&e%1==0&&e-1&&e%1==0&&e<=cP}var ph=fP,dP=Wi,hP=ph,pP=Sr,gP="[object Arguments]",mP="[object Array]",vP="[object Boolean]",yP="[object Date]",wP="[object Error]",_P="[object Function]",SP="[object Map]",bP="[object Number]",EP="[object Object]",TP="[object RegExp]",CP="[object Set]",OP="[object String]",xP="[object WeakMap]",PP="[object ArrayBuffer]",NP="[object DataView]",DP="[object Float32Array]",kP="[object Float64Array]",AP="[object Int8Array]",RP="[object Int16Array]",$P="[object Int32Array]",LP="[object Uint8Array]",MP="[object Uint8ClampedArray]",jP="[object Uint16Array]",FP="[object Uint32Array]",re={};re[DP]=re[kP]=re[AP]=re[RP]=re[$P]=re[LP]=re[MP]=re[jP]=re[FP]=!0;re[gP]=re[mP]=re[PP]=re[vP]=re[NP]=re[yP]=re[wP]=re[_P]=re[SP]=re[bP]=re[EP]=re[TP]=re[CP]=re[OP]=re[xP]=!1;function IP(e){return pP(e)&&hP(e.length)&&!!re[dP(e)]}var UP=IP;function zP(e){return function(t){return e(t)}}var gh=zP,qs={exports:{}};qs.exports;(function(e,t){var n=Z1,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,o=i&&n.process,s=function(){try{var l=a&&a.require&&a.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(qs,qs.exports);var mh=qs.exports,HP=UP,WP=gh,tm=mh,nm=tm&&tm.isTypedArray,GP=nm?WP(nm):HP,vh=GP,VP=Kx,qP=Pl,KP=wt,YP=Nl,XP=hh,JP=vh,QP=Object.prototype,BP=QP.hasOwnProperty;function ZP(e,t){var n=KP(e),r=!n&&qP(e),a=!n&&!r&&YP(e),i=!n&&!r&&!a&&JP(e),o=n||r||a||i,s=o?VP(e.length,String):[],l=s.length;for(var u in e)(t||BP.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||XP(u,l)))&&s.push(u);return s}var iw=ZP,eN=Object.prototype;function tN(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||eN;return e===n}var Dl=tN;function nN(e,t){return function(n){return e(t(n))}}var ow=nN,rN=ow,aN=rN(Object.keys,Object),iN=aN,oN=Dl,sN=iN,lN=Object.prototype,uN=lN.hasOwnProperty;function cN(e){if(!oN(e))return sN(e);var t=[];for(var n in Object(e))uN.call(e,n)&&n!="constructor"&&t.push(n);return t}var sw=cN,fN=tw,dN=ph;function hN(e){return e!=null&&dN(e.length)&&!fN(e)}var kl=hN,pN=iw,gN=sw,mN=kl;function vN(e){return mN(e)?pN(e):gN(e)}var br=vN,yN=Vx,wN=br;function _N(e,t){return e&&yN(e,t,wN)}var SN=_N,bN=kl;function EN(e,t){return function(n,r){if(n==null)return n;if(!bN(n))return e(n,r);for(var a=n.length,i=t?a:-1,o=Object(n);(t?i--:++i-1}var KN=qN,YN=Al;function XN(e,t){var n=this.__data__,r=YN(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var JN=XN,QN=RN,BN=zN,ZN=GN,eD=KN,tD=JN;function _a(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ts))return!1;var u=i.get(e),h=i.get(t);if(u&&h)return u==t&&h==e;var d=-1,p=!0,w=n&zk?new jk:void 0;for(i.set(e,t),i.set(t,e);++d(t==null&&(t=e()),t)}function c$(e,t){return e.filter(n=>n!==t)}function f$(e,t){const n=new Set,r=i=>n.add(i);e.forEach(r),t.forEach(r);const a=[];return n.forEach(i=>a.push(i)),a}class d${enter(t){const n=this.entered.length,r=a=>this.isNodeInDocument(a)&&(!a.contains||a.contains(t));return this.entered=f$(this.entered.filter(r),[t]),n===0&&this.entered.length>0}leave(t){const n=this.entered.length;return this.entered=c$(this.entered.filter(this.isNodeInDocument),t),n>0&&this.entered.length===0}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class h${initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(t=>{Object.defineProperty(this.item,t,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${t}" until the drop event.`),null}})})}loadDataTransfer(t){if(t){const n={};Object.keys(this.config.exposeProperties).forEach(r=>{const a=this.config.exposeProperties[r];a!=null&&(n[r]={value:a(t,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,n)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(t,n){return n===t.getSourceId()}endDrag(){}constructor(t){this.config=t,this.item={},this.initializeExposedProperties()}}const Ow="__NATIVE_FILE__",xw="__NATIVE_URL__",Pw="__NATIVE_TEXT__",Nw="__NATIVE_HTML__",Om=Object.freeze(Object.defineProperty({__proto__:null,FILE:Ow,HTML:Nw,TEXT:Pw,URL:xw},Symbol.toStringTag,{value:"Module"}));function Ku(e,t,n){const r=t.reduce((a,i)=>a||e.getData(i),"");return r??n}const Rf={[Ow]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[Nw]:{exposeProperties:{html:(e,t)=>Ku(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[xw]:{exposeProperties:{urls:(e,t)=>Ku(e,t,"").split(` +`),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[Pw]:{exposeProperties:{text:(e,t)=>Ku(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function p$(e,t){const n=Rf[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new h$(n);return r.loadDataTransfer(t),r}function Yu(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(Rf).filter(n=>{const r=Rf[n];return r!=null&&r.matchesTypes?r.matchesTypes.some(a=>t.indexOf(a)>-1):!1})[0]||null}const g$=Cw(()=>/firefox/i.test(navigator.userAgent)),Dw=Cw(()=>!!window.safari);class xm{interpolate(t){const{xs:n,ys:r,c1s:a,c2s:i,c3s:o}=this;let s=n.length-1;if(t===n[s])return r[s];let l=0,u=o.length-1,h;for(;l<=u;){h=Math.floor(.5*(l+u));const w=n[h];if(wt)u=h-1;else return r[h]}s=Math.max(0,u);const d=t-n[s],p=d*d;return r[s]+a[s]*d+i[s]*p+o[s]*d*p}constructor(t,n){const{length:r}=t,a=[];for(let w=0;wt[w]{let A=new xm([0,.5,1],[l.y,l.y/h*m,l.y+m-h]).interpolate(p);return Dw()&&i&&(A+=(window.devicePixelRatio-1)*m),A},E=()=>new xm([0,.5,1],[l.x,l.x/u*w,l.x+w-u]).interpolate(d),{offsetX:v,offsetY:y}=a,S=v===0||v,O=y===0||y;return{x:S?v:E(),y:O?y:_()}}let _$=class{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var t;return!((t=this.globalContext)===null||t===void 0)&&t.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var t;return((t=this.optionsArgs)===null||t===void 0?void 0:t.rootElement)||this.window}constructor(t,n){this.ownerDocument=null,this.globalContext=t,this.optionsArgs=n}};function S$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pm(e){for(var t=1;t{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDragSource(t,n,r){this.sourceNodes.set(t,n),this.sourceNodeOptions.set(t,r);const a=o=>this.handleDragStart(o,t),i=o=>this.handleSelectStart(o);return n.setAttribute("draggable","true"),n.addEventListener("dragstart",a),n.addEventListener("selectstart",i),()=>{this.sourceNodes.delete(t),this.sourceNodeOptions.delete(t),n.removeEventListener("dragstart",a),n.removeEventListener("selectstart",i),n.setAttribute("draggable","false")}}connectDropTarget(t,n){const r=o=>this.handleDragEnter(o,t),a=o=>this.handleDragOver(o,t),i=o=>this.handleDrop(o,t);return n.addEventListener("dragenter",r),n.addEventListener("dragover",a),n.addEventListener("drop",i),()=>{n.removeEventListener("dragenter",r),n.removeEventListener("dragover",a),n.removeEventListener("drop",i)}}addEventListeners(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const t=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(t);return Pm({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const t=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(t);return Pm({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const t=this.monitor.getItemType();return Object.keys(Om).some(n=>Om[n]===t)}beginDragNativeItem(t,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=p$(t,n),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(t){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t;const n=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var r;return(r=this.rootElement)===null||r===void 0?void 0:r.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},n)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var t;(t=this.window)===null||t===void 0||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(t,n){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}handleDragEnter(t,n){this.dragEnterTargetIds.unshift(n)}handleDragOver(t,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}handleDrop(t,n){this.dropTargetIds.unshift(n)}constructor(t,n,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=a=>{const i=this.sourceNodes.get(a);return i&&kw(i)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=a=>!!(a&&this.document&&this.document.body&&this.document.body.contains(a)),this.endDragIfSourceWasRemovedFromDOM=()=>{const a=this.currentDragSourceNode;a==null||this.isNodeInDocument(a)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=a=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(a||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=a=>{if(a.defaultPrevented)return;const{dragStartSourceIds:i}=this;this.dragStartSourceIds=null;const o=jo(a);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(i||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:o});const{dataTransfer:s}=a,l=Yu(s);if(this.monitor.isDragging()){if(s&&typeof s.setDragImage=="function"){const h=this.monitor.getSourceId(),d=this.sourceNodes.get(h),p=this.sourcePreviewNodes.get(h)||d;if(p){const{anchorX:w,anchorY:m,offsetX:_,offsetY:E}=this.getCurrentSourcePreviewNodeOptions(),S=w$(d,p,o,{anchorX:w,anchorY:m},{offsetX:_,offsetY:E});s.setDragImage(p,S.x,S.y)}}try{s==null||s.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(a.target);const{captureDraggingState:u}=this.getCurrentSourcePreviewNodeOptions();u?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(l)this.beginDragNativeItem(l);else{if(s&&!s.types&&(a.target&&!a.target.hasAttribute||!a.target.hasAttribute("draggable")))return;a.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=a=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var i;(i=this.currentNativeSource)===null||i===void 0||i.loadDataTransfer(a.dataTransfer)}if(!this.enterLeaveCounter.enter(a.target)||this.monitor.isDragging())return;const{dataTransfer:s}=a,l=Yu(s);l&&this.beginDragNativeItem(l,s)},this.handleTopDragEnter=a=>{const{dragEnterTargetIds:i}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=a.altKey,i.length>0&&this.actions.hover(i,{clientOffset:jo(a)}),i.some(s=>this.monitor.canDropOnTarget(s))&&(a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=a=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var i;(i=this.currentNativeSource)===null||i===void 0||i.loadDataTransfer(a.dataTransfer)}},this.handleTopDragOver=a=>{const{dragOverTargetIds:i}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect="none");return}this.altKeyPressed=a.altKey,this.lastClientOffset=jo(a),this.scheduleHover(i),(i||[]).some(s=>this.monitor.canDropOnTarget(s))?(a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?a.preventDefault():(a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=a=>{this.isDraggingNativeItem()&&a.preventDefault(),this.enterLeaveCounter.leave(a.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=a=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var i;a.preventDefault(),(i=this.currentNativeSource)===null||i===void 0||i.loadDataTransfer(a.dataTransfer)}else Yu(a.dataTransfer)&&a.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=a=>{const{dropTargetIds:i}=this;this.dropTargetIds=[],this.actions.hover(i,{clientOffset:jo(a)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=a=>{const i=a.target;typeof i.dragDrop=="function"&&(i.tagName==="INPUT"||i.tagName==="SELECT"||i.tagName==="TEXTAREA"||i.isContentEditable||(a.preventDefault(),i.dragDrop()))},this.options=new _$(n,r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new d$(this.isNodeInDocument)}}const E$=function(t,n,r){return new b$(t,n,r)};function G(e,t,...n){if(T$()&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){let r;if(t===void 0)r=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let a=0;r=new Error(t.replace(/%s/g,function(){return n[a++]})),r.name="Invariant Violation"}throw r.framesToPop=1,r}}function T$(){return typeof process<"u"&&process.env.NODE_ENV==="production"}var Dn;(function(e){e.mouse="mouse",e.touch="touch",e.keyboard="keyboard"})(Dn||(Dn={}));class C${get delay(){var t;return(t=this.args.delay)!==null&&t!==void 0?t:0}get scrollAngleRanges(){return this.args.scrollAngleRanges}get getDropTargetElementsAtPoint(){return this.args.getDropTargetElementsAtPoint}get ignoreContextMenu(){var t;return(t=this.args.ignoreContextMenu)!==null&&t!==void 0?t:!1}get enableHoverOutsideTarget(){var t;return(t=this.args.enableHoverOutsideTarget)!==null&&t!==void 0?t:!1}get enableKeyboardEvents(){var t;return(t=this.args.enableKeyboardEvents)!==null&&t!==void 0?t:!1}get enableMouseEvents(){var t;return(t=this.args.enableMouseEvents)!==null&&t!==void 0?t:!1}get enableTouchEvents(){var t;return(t=this.args.enableTouchEvents)!==null&&t!==void 0?t:!0}get touchSlop(){return this.args.touchSlop||0}get delayTouchStart(){var t,n,r,a;return(a=(r=(t=this.args)===null||t===void 0?void 0:t.delayTouchStart)!==null&&r!==void 0?r:(n=this.args)===null||n===void 0?void 0:n.delay)!==null&&a!==void 0?a:0}get delayMouseStart(){var t,n,r,a;return(a=(r=(t=this.args)===null||t===void 0?void 0:t.delayMouseStart)!==null&&r!==void 0?r:(n=this.args)===null||n===void 0?void 0:n.delay)!==null&&a!==void 0?a:0}get window(){if(this.context&&this.context.window)return this.context.window;if(typeof window<"u")return window}get document(){var t;if(!((t=this.context)===null||t===void 0)&&t.document)return this.context.document;if(this.window)return this.window.document}get rootElement(){var t;return((t=this.args)===null||t===void 0?void 0:t.rootElement)||this.document}constructor(t,n){this.args=t,this.context=n}}function O$(e,t,n,r){return Math.sqrt(Math.pow(Math.abs(n-e),2)+Math.pow(Math.abs(r-t),2))}function x$(e,t,n,r,a){if(!a)return!1;const i=Math.atan2(r-t,n-e)*180/Math.PI+180;for(let o=0;o=s.start)&&(s.end==null||i<=s.end))return!0}return!1}const P$={Left:1,Right:2,Center:4},N$={Left:0,Center:1,Right:2};function Xu(e){return e.button===void 0||e.button===N$.Left}function D$(e){return e.buttons===void 0||(e.buttons&P$.Left)===0}function Aw(e){return!!e.targetTouches}const k$=1;function A$(e){const t=e.nodeType===k$?e:e.parentElement;if(!t)return;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function R$(e,t){if(e.targetTouches.length===1)return Ys(e.targetTouches[0]);if(t&&e.touches.length===1&&e.touches[0].target===t.target)return Ys(e.touches[0])}function Ys(e,t){return Aw(e)?R$(e,t):{x:e.clientX,y:e.clientY}}const Nm=(()=>{let e=!1;try{addEventListener("test",()=>{},Object.defineProperty({},"passive",{get(){return e=!0,!0}}))}catch{}return e})(),Fa={[Dn.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[Dn.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[Dn.keyboard]:{keydown:"keydown"}};class li{profile(){var t;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:((t=this.dragOverTargetIds)===null||t===void 0?void 0:t.length)||0}}get document(){return this.options.document}setup(){const t=this.options.rootElement;t&&(G(!li.isSetUp,"Cannot have two Touch backends at the same time."),li.isSetUp=!0,this.addEventListener(t,"start",this.getTopMoveStartHandler()),this.addEventListener(t,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(t,"move",this.handleTopMove),this.addEventListener(t,"move",this.handleTopMoveCapture,!0),this.addEventListener(t,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(t,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(t,"keydown",this.handleCancelOnEscape,!0))}teardown(){const t=this.options.rootElement;t&&(li.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(t,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(t,"start",this.handleTopMoveStart),this.removeEventListener(t,"move",this.handleTopMoveCapture,!0),this.removeEventListener(t,"move",this.handleTopMove),this.removeEventListener(t,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(t,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(t,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}addEventListener(t,n,r,a=!1){const i=Nm?{capture:a,passive:!1}:a;this.listenerTypes.forEach(function(o){const s=Fa[o][n];s&&t.addEventListener(s,r,i)})}removeEventListener(t,n,r,a=!1){const i=Nm?{capture:a,passive:!1}:a;this.listenerTypes.forEach(function(o){const s=Fa[o][n];s&&t.removeEventListener(s,r,i)})}connectDragSource(t,n){const r=this.handleMoveStart.bind(this,t);return this.sourceNodes.set(t,n),this.addEventListener(n,"start",r),()=>{this.sourceNodes.delete(t),this.removeEventListener(n,"start",r)}}connectDragPreview(t,n,r){return this.sourcePreviewNodeOptions.set(t,r),this.sourcePreviewNodes.set(t,n),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDropTarget(t,n){const r=this.options.rootElement;if(!this.document||!r)return()=>{};const a=i=>{if(!this.document||!r||!this.monitor.isDragging())return;let o;switch(i.type){case Fa.mouse.move:o={x:i.clientX,y:i.clientY};break;case Fa.touch.move:var s,l;o={x:((s=i.touches[0])===null||s===void 0?void 0:s.clientX)||0,y:((l=i.touches[0])===null||l===void 0?void 0:l.clientY)||0};break}const u=o!=null?this.document.elementFromPoint(o.x,o.y):void 0,h=u&&n.contains(u);if(u===n||h)return this.handleMove(i,t)};return this.addEventListener(this.document.body,"move",a),this.targetNodes.set(t,n),()=>{this.document&&(this.targetNodes.delete(t),this.removeEventListener(this.document.body,"move",a))}}getTopMoveStartHandler(){return!this.options.delayTouchStart&&!this.options.delayMouseStart?this.handleTopMoveStart:this.handleTopMoveStartDelay}installSourceNodeRemovalObserver(t){this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=t,this.draggedSourceNodeRemovalObserver=new MutationObserver(()=>{t&&!t.parentElement&&(this.resurrectSourceNode(),this.uninstallSourceNodeRemovalObserver())}),!(!t||!t.parentElement)&&this.draggedSourceNodeRemovalObserver.observe(t.parentElement,{childList:!0})}resurrectSourceNode(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}uninstallSourceNodeRemovalObserver(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}constructor(t,n,r){this.getSourceClientOffset=a=>{const i=this.sourceNodes.get(a);return i&&A$(i)},this.handleTopMoveStartCapture=a=>{Xu(a)&&(this.moveStartSourceIds=[])},this.handleMoveStart=a=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(a)},this.handleTopMoveStart=a=>{if(!Xu(a))return;const i=Ys(a);i&&(Aw(a)&&(this.lastTargetTouchFallback=a.targetTouches[0]),this._mouseClientOffset=i),this.waitingForDelay=!1},this.handleTopMoveStartDelay=a=>{if(!Xu(a))return;const i=a.type===Fa.touch.start?this.options.delayTouchStart:this.options.delayMouseStart;this.timeout=setTimeout(this.handleTopMoveStart.bind(this,a),i),this.waitingForDelay=!0},this.handleTopMoveCapture=()=>{this.dragOverTargetIds=[]},this.handleMove=(a,i)=>{this.dragOverTargetIds&&this.dragOverTargetIds.unshift(i)},this.handleTopMove=a=>{if(this.timeout&&clearTimeout(this.timeout),!this.document||this.waitingForDelay)return;const{moveStartSourceIds:i,dragOverTargetIds:o}=this,s=this.options.enableHoverOutsideTarget,l=Ys(a,this.lastTargetTouchFallback);if(!l)return;if(this._isScrolling||!this.monitor.isDragging()&&x$(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,l.x,l.y,this.options.scrollAngleRanges)){this._isScrolling=!0;return}if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty("x")&&i&&O$(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,l.x,l.y)>(this.options.touchSlop?this.options.touchSlop:0)&&(this.moveStartSourceIds=void 0,this.actions.beginDrag(i,{clientOffset:this._mouseClientOffset,getSourceClientOffset:this.getSourceClientOffset,publishSource:!1})),!this.monitor.isDragging())return;const u=this.sourceNodes.get(this.monitor.getSourceId());this.installSourceNodeRemovalObserver(u),this.actions.publishDragSource(),a.cancelable&&a.preventDefault();const h=(o||[]).map(m=>this.targetNodes.get(m)).filter(m=>!!m),d=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(l.x,l.y,h):this.document.elementsFromPoint(l.x,l.y),p=[];for(const m in d){if(!d.hasOwnProperty(m))continue;let _=d[m];for(_!=null&&p.push(_);_;)_=_.parentElement,_&&p.indexOf(_)===-1&&p.push(_)}const w=p.filter(m=>h.indexOf(m)>-1).map(m=>this._getDropTargetId(m)).filter(m=>!!m).filter((m,_,E)=>E.indexOf(m)===_);if(s)for(const m in this.targetNodes){const _=this.targetNodes.get(m);if(u&&_&&_.contains(u)&&w.indexOf(m)===-1){w.unshift(m);break}}w.reverse(),this.actions.hover(w,{clientOffset:l})},this._getDropTargetId=a=>{const i=this.targetNodes.keys();let o=i.next();for(;o.done===!1;){const s=o.value;if(a===this.targetNodes.get(s))return s;o=i.next()}},this.handleTopMoveEndCapture=a=>{if(this._isScrolling=!1,this.lastTargetTouchFallback=void 0,!!D$(a)){if(!this.monitor.isDragging()||this.monitor.didDrop()){this.moveStartSourceIds=void 0;return}a.cancelable&&a.preventDefault(),this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.drop(),this.actions.endDrag()}},this.handleCancelOnEscape=a=>{a.key==="Escape"&&this.monitor.isDragging()&&(this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.endDrag())},this.options=new C$(r,n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(Dn.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(Dn.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(Dn.keyboard)}}const $$=function(t,n={},r={}){return new li(t,n,r)};var Rw=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},W=(e,t,n)=>(Rw(e,t,"read from private field"),n?n.call(e):t.get(e)),ct=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Qn=(e,t,n,r)=>(Rw(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Bn,L$=class{constructor(){ct(this,Bn,void 0),this.register=e=>{W(this,Bn).push(e)},this.unregister=e=>{let t;for(;(t=W(this,Bn).indexOf(e))!==-1;)W(this,Bn).splice(t,1)},this.backendChanged=e=>{for(let t of W(this,Bn))t.backendChanged(e)},Qn(this,Bn,[])}};Bn=new WeakMap;var Je,Ya,Qe,zt,cn,$f,Lf,Mf,cs,fs,Xa,$w=class ds{constructor(t,n,r){if(ct(this,Je,void 0),ct(this,Ya,void 0),ct(this,Qe,void 0),ct(this,zt,void 0),ct(this,cn,void 0),ct(this,$f,(a,i,o)=>{if(!o.backend)throw new Error(`You must specify a 'backend' property in your Backend entry: ${JSON.stringify(o)}`);let s=o.backend(a,i,o.options),l=o.id,u=!o.id&&s&&s.constructor;if(u&&(l=s.constructor.name),l)u&&console.warn(`Deprecation notice: You are using a pipeline which doesn't include backends' 'id'. + This might be unsupported in the future, please specify 'id' explicitely for every backend.`);else throw new Error(`You must specify an 'id' property in your Backend entry: ${JSON.stringify(o)} + see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-5xx`);if(W(this,Qe)[l])throw new Error(`You must specify a unique 'id' property in your Backend entry: + ${JSON.stringify(o)} (conflicts with: ${JSON.stringify(W(this,Qe)[l])})`);return{id:l,instance:s,preview:o.preview??!1,transition:o.transition,skipDispatchOnTransition:o.skipDispatchOnTransition??!1}}),this.setup=()=>{if(!(typeof window>"u")){if(ds.isSetUp)throw new Error("Cannot have two MultiBackends at the same time.");ds.isSetUp=!0,W(this,Lf).call(this,window),W(this,Qe)[W(this,Je)].instance.setup()}},this.teardown=()=>{typeof window>"u"||(ds.isSetUp=!1,W(this,Mf).call(this,window),W(this,Qe)[W(this,Je)].instance.teardown())},this.connectDragSource=(a,i,o)=>W(this,Xa).call(this,"connectDragSource",a,i,o),this.connectDragPreview=(a,i,o)=>W(this,Xa).call(this,"connectDragPreview",a,i,o),this.connectDropTarget=(a,i,o)=>W(this,Xa).call(this,"connectDropTarget",a,i,o),this.profile=()=>W(this,Qe)[W(this,Je)].instance.profile(),this.previewEnabled=()=>W(this,Qe)[W(this,Je)].preview,this.previewsList=()=>W(this,Ya),this.backendsList=()=>W(this,zt),ct(this,Lf,a=>{W(this,zt).forEach(i=>{i.transition&&a.addEventListener(i.transition.event,W(this,cs))})}),ct(this,Mf,a=>{W(this,zt).forEach(i=>{i.transition&&a.removeEventListener(i.transition.event,W(this,cs))})}),ct(this,cs,a=>{var o;let i=W(this,Je);if(W(this,zt).some(s=>s.id!==W(this,Je)&&s.transition&&s.transition.check(a)?(Qn(this,Je,s.id),!0):!1),W(this,Je)!==i){W(this,Qe)[i].instance.teardown(),Object.keys(W(this,cn)).forEach(h=>{let d=W(this,cn)[h];d.unsubscribe(),d.unsubscribe=W(this,fs).call(this,d.func,...d.args)}),W(this,Ya).backendChanged(this);let s=W(this,Qe)[W(this,Je)];if(s.instance.setup(),s.skipDispatchOnTransition)return;let l=a.constructor,u=new l(a.type,a);(o=a.target)==null||o.dispatchEvent(u)}}),ct(this,fs,(a,i,o,s)=>W(this,Qe)[W(this,Je)].instance[a](i,o,s)),ct(this,Xa,(a,i,o,s)=>{let l=`${a}_${i}`,u=W(this,fs).call(this,a,i,o,s);return W(this,cn)[l]={func:a,args:[i,o,s],unsubscribe:u},()=>{W(this,cn)[l].unsubscribe(),delete W(this,cn)[l]}}),!r||!r.backends||r.backends.length<1)throw new Error(`You must specify at least one Backend, if you are coming from 2.x.x (or don't understand this error) + see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-2xx`);Qn(this,Ya,new L$),Qn(this,Qe,{}),Qn(this,zt,[]),r.backends.forEach(a=>{let i=W(this,$f).call(this,t,n,a);W(this,Qe)[i.id]=i,W(this,zt).push(i)}),Qn(this,Je,W(this,zt)[0].id),Qn(this,cn,{})}};Je=new WeakMap,Ya=new WeakMap,Qe=new WeakMap,zt=new WeakMap,cn=new WeakMap,$f=new WeakMap,Lf=new WeakMap,Mf=new WeakMap,cs=new WeakMap,fs=new WeakMap,Xa=new WeakMap,$w.isSetUp=!1;var M$=$w,Lw=(e,t,n)=>new M$(e,t,n),qi=(e,t)=>({event:e,check:t}),Mw=qi("touchstart",e=>{let t=e;return t.touches!==null&&t.touches!==void 0}),j$=qi("dragstart",e=>e.type.indexOf("drag")!==-1||e.type.indexOf("drop")!==-1),F$=qi("mousedown",e=>e.type.indexOf("touch")===-1&&e.type.indexOf("mouse")!==-1),jw=qi("pointerdown",e=>e.pointerType=="mouse"),I$={backends:[{id:"html5",backend:E$,transition:jw},{id:"touch",backend:$$,options:{enableMouseEvents:!0},preview:!0,transition:Mw}]};const U$=Object.freeze(Object.defineProperty({__proto__:null,HTML5toTouch:I$},Symbol.toStringTag,{value:"Module"})),z$=Bf(U$),Ki=P.createContext({dragDropManager:void 0});function ut(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Dm=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Ju=function(){return Math.random().toString(36).substring(7).split("").join(".")},km={INIT:"@@redux/INIT"+Ju(),REPLACE:"@@redux/REPLACE"+Ju(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ju()}};function H$(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Fw(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(ut(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(ut(1));return n(Fw)(e,t)}if(typeof e!="function")throw new Error(ut(2));var a=e,i=t,o=[],s=o,l=!1;function u(){s===o&&(s=o.slice())}function h(){if(l)throw new Error(ut(3));return i}function d(_){if(typeof _!="function")throw new Error(ut(4));if(l)throw new Error(ut(5));var E=!0;return u(),s.push(_),function(){if(E){if(l)throw new Error(ut(6));E=!1,u();var y=s.indexOf(_);s.splice(y,1),o=null}}}function p(_){if(!H$(_))throw new Error(ut(7));if(typeof _.type>"u")throw new Error(ut(8));if(l)throw new Error(ut(9));try{l=!0,i=a(i,_)}finally{l=!1}for(var E=o=s,v=0;vr&&r[a]?r[a]:n||null,e)}function G$(e,t){return e.filter(n=>n!==t)}function Iw(e){return typeof e=="object"}function V$(e,t){const n=new Map,r=i=>{n.set(i,n.has(i)?n.get(i)+1:1)};e.forEach(r),t.forEach(r);const a=[];return n.forEach((i,o)=>{i===1&&a.push(o)}),a}function q$(e,t){return e.filter(n=>t.indexOf(n)>-1)}const Rh="dnd-core/INIT_COORDS",Fl="dnd-core/BEGIN_DRAG",$h="dnd-core/PUBLISH_DRAG_SOURCE",Il="dnd-core/HOVER",Ul="dnd-core/DROP",zl="dnd-core/END_DRAG";function Am(e,t){return{type:Rh,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const K$={type:Rh,payload:{clientOffset:null,sourceClientOffset:null}};function Y$(e){return function(n=[],r={publishSource:!0}){const{publishSource:a=!0,clientOffset:i,getSourceClientOffset:o}=r,s=e.getMonitor(),l=e.getRegistry();e.dispatch(Am(i)),X$(n,s,l);const u=B$(n,s);if(u==null){e.dispatch(K$);return}let h=null;if(i){if(!o)throw new Error("getSourceClientOffset must be defined");J$(o),h=o(u)}e.dispatch(Am(i,h));const p=l.getSource(u).beginDrag(s,u);if(p==null)return;Q$(p),l.pinSource(u);const w=l.getSourceType(u);return{type:Fl,payload:{itemType:w,item:p,sourceId:u,clientOffset:i||null,sourceClientOffset:h||null,isSourcePublic:!!a}}}}function X$(e,t,n){G(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(r){G(n.getSource(r),"Expected sourceIds to be registered.")})}function J$(e){G(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function Q$(e){G(Iw(e),"Item must be an object.")}function B$(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}function Z$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eL(e){for(var t=1;t{const l=rL(o,s,a,r),u={type:Ul,payload:{dropResult:eL({},n,l)}};e.dispatch(u)})}}function nL(e){G(e.isDragging(),"Cannot call drop while not dragging."),G(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function rL(e,t,n,r){const a=n.getTarget(e);let i=a?a.drop(r,e):void 0;return aL(i),typeof i>"u"&&(i=t===0?{}:r.getDropResult()),i}function aL(e){G(typeof e>"u"||Iw(e),"Drop result must either be an object or undefined.")}function iL(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function oL(e){return function(){const n=e.getMonitor(),r=e.getRegistry();sL(n);const a=n.getSourceId();return a!=null&&(r.getSource(a,!0).endDrag(n,a),r.unpinSource()),{type:zl}}}function sL(e){G(e.isDragging(),"Cannot call endDrag while not dragging.")}function jf(e,t){return t===null?e===null:Array.isArray(e)?e.some(n=>n===t):e===t}function lL(e){return function(n,{clientOffset:r}={}){uL(n);const a=n.slice(0),i=e.getMonitor(),o=e.getRegistry(),s=i.getItemType();return fL(a,o,s),cL(a,i,o),dL(a,i,o),{type:Il,payload:{targetIds:a,clientOffset:r||null}}}}function uL(e){G(Array.isArray(e),"Expected targetIds to be an array.")}function cL(e,t,n){G(t.isDragging(),"Cannot call hover while not dragging."),G(!t.didDrop(),"Cannot call hover after drop.");for(let r=0;r=0;r--){const a=e[r],i=t.getTargetType(a);jf(i,n)||e.splice(r,1)}}function dL(e,t,n){e.forEach(function(r){n.getTarget(r).hover(t,r)})}function hL(e){return function(){if(e.getMonitor().isDragging())return{type:$h}}}function pL(e){return{beginDrag:Y$(e),publishDragSource:hL(e),hover:lL(e),drop:tL(e),endDrag:oL(e)}}class gL{receiveBackend(t){this.backend=t}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const t=this,{dispatch:n}=this.store;function r(i){return(...o)=>{const s=i.apply(t,o);typeof s<"u"&&n(s)}}const a=pL(this);return Object.keys(a).reduce((i,o)=>{const s=a[o];return i[o]=r(s),i},{})}dispatch(t){this.store.dispatch(t)}constructor(t,n){this.isSetUp=!1,this.handleRefCountChange=()=>{const r=this.store.getState().refCount>0;this.backend&&(r&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!r&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=t,this.monitor=n,t.subscribe(this.handleRefCountChange)}}function mL(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Uw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function vL(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return!t||!n||!r?null:Uw(mL(t,r),n)}function yL(e){const{clientOffset:t,initialClientOffset:n}=e;return!t||!n?null:Uw(t,n)}const ui=[],Lh=[];ui.__IS_NONE__=!0;Lh.__IS_ALL__=!0;function wL(e,t){return e===ui?!1:e===Lh||typeof t>"u"?!0:q$(t,e).length>0}class _L{subscribeToStateChange(t,n={}){const{handlerIds:r}=n;G(typeof t=="function","listener must be a function."),G(typeof r>"u"||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let a=this.store.getState().stateId;const i=()=>{const o=this.store.getState(),s=o.stateId;try{s===a||s===a+1&&!wL(o.dirtyHandlerIds,r)||t()}finally{a=s}};return this.store.subscribe(i)}subscribeToOffsetChange(t){G(typeof t=="function","listener must be a function.");let n=this.store.getState().dragOffset;const r=()=>{const a=this.store.getState().dragOffset;a!==n&&(n=a,t())};return this.store.subscribe(r)}canDragSource(t){if(!t)return!1;const n=this.registry.getSource(t);return G(n,`Expected to find a valid source. sourceId=${t}`),this.isDragging()?!1:n.canDrag(this,t)}canDropOnTarget(t){if(!t)return!1;const n=this.registry.getTarget(t);if(G(n,`Expected to find a valid target. targetId=${t}`),!this.isDragging()||this.didDrop())return!1;const r=this.registry.getTargetType(t),a=this.getItemType();return jf(r,a)&&n.canDrop(this,t)}isDragging(){return!!this.getItemType()}isDraggingSource(t){if(!t)return!1;const n=this.registry.getSource(t,!0);if(G(n,`Expected to find a valid source. sourceId=${t}`),!this.isDragging()||!this.isSourcePublic())return!1;const r=this.registry.getSourceType(t),a=this.getItemType();return r!==a?!1:n.isDragging(this,t)}isOverTarget(t,n={shallow:!1}){if(!t)return!1;const{shallow:r}=n;if(!this.isDragging())return!1;const a=this.registry.getTargetType(t),i=this.getItemType();if(i&&!jf(a,i))return!1;const o=this.getTargetIds();if(!o.length)return!1;const s=o.indexOf(t);return r?s===o.length-1:s>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return vL(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return yL(this.store.getState().dragOffset)}constructor(t,n){this.store=t,this.registry=n}}const Rm=typeof global<"u"?global:self,zw=Rm.MutationObserver||Rm.WebKitMutationObserver;function Hw(e){return function(){const n=setTimeout(a,0),r=setInterval(a,50);function a(){clearTimeout(n),clearInterval(r),e()}}}function SL(e){let t=1;const n=new zw(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}const bL=typeof zw=="function"?SL:Hw;class EL{enqueueTask(t){const{queue:n,requestFlush:r}=this;n.length||(r(),this.flushing=!0),n[n.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.indexthis.capacity){for(let r=0,a=t.length-this.index;r{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=bL(this.flush),this.requestErrorThrow=Hw(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class TL{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,n){this.onError=t,this.release=n,this.task=null}}class CL{create(t){const n=this.freeTasks,r=n.length?n.pop():new TL(this.onError,a=>n[n.length]=a);return r.task=t,r}constructor(t){this.onError=t,this.freeTasks=[]}}const Ww=new EL,OL=new CL(Ww.registerPendingError);function xL(e){Ww.enqueueTask(OL.create(e))}const Mh="dnd-core/ADD_SOURCE",jh="dnd-core/ADD_TARGET",Fh="dnd-core/REMOVE_SOURCE",Hl="dnd-core/REMOVE_TARGET";function PL(e){return{type:Mh,payload:{sourceId:e}}}function NL(e){return{type:jh,payload:{targetId:e}}}function DL(e){return{type:Fh,payload:{sourceId:e}}}function kL(e){return{type:Hl,payload:{targetId:e}}}function AL(e){G(typeof e.canDrag=="function","Expected canDrag to be a function."),G(typeof e.beginDrag=="function","Expected beginDrag to be a function."),G(typeof e.endDrag=="function","Expected endDrag to be a function.")}function RL(e){G(typeof e.canDrop=="function","Expected canDrop to be a function."),G(typeof e.hover=="function","Expected hover to be a function."),G(typeof e.drop=="function","Expected beginDrag to be a function.")}function Ff(e,t){if(t&&Array.isArray(e)){e.forEach(n=>Ff(n,!1));return}G(typeof e=="string"||typeof e=="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var ht;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(ht||(ht={}));let $L=0;function LL(){return $L++}function ML(e){const t=LL().toString();switch(e){case ht.SOURCE:return`S${t}`;case ht.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function $m(e){switch(e[0]){case"S":return ht.SOURCE;case"T":return ht.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function Lm(e,t){const n=e.entries();let r=!1;do{const{done:a,value:[,i]}=n.next();if(i===t)return!0;r=!!a}while(!r);return!1}class jL{addSource(t,n){Ff(t),AL(n);const r=this.addHandler(ht.SOURCE,t,n);return this.store.dispatch(PL(r)),r}addTarget(t,n){Ff(t,!0),RL(n);const r=this.addHandler(ht.TARGET,t,n);return this.store.dispatch(NL(r)),r}containsHandler(t){return Lm(this.dragSources,t)||Lm(this.dropTargets,t)}getSource(t,n=!1){return G(this.isSourceId(t),"Expected a valid source ID."),n&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return G(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return G(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return G(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return $m(t)===ht.SOURCE}isTargetId(t){return $m(t)===ht.TARGET}removeSource(t){G(this.getSource(t),"Expected an existing source."),this.store.dispatch(DL(t)),xL(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){G(this.getTarget(t),"Expected an existing target."),this.store.dispatch(kL(t)),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){const n=this.getSource(t);G(n,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=n}unpinSource(){G(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,n,r){const a=ML(t);return this.types.set(a,n),t===ht.SOURCE?this.dragSources.set(a,r):t===ht.TARGET&&this.dropTargets.set(a,r),a}constructor(t){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}}const FL=(e,t)=>e===t;function IL(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function UL(e,t,n=FL){if(e.length!==t.length)return!1;for(let r=0;r0||!UL(n,r)))return ui;const o=r[r.length-1],s=n[n.length-1];return o!==s&&(o&&a.push(o),s&&a.push(s)),a}function HL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WL(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nM(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}let jm=0;const hs=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var Gw=P.memo(function(t){var{children:n}=t,r=tM(t,["children"]);const[a,i]=rM(r);return P.useEffect(()=>{if(i){const o=Vw();return++jm,()=>{--jm===0&&(o[hs]=null)}}},[]),T.jsx(Ki.Provider,{value:a,children:n})});function rM(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=aM(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}function aM(e,t=Vw(),n,r){const a=t;return a[hs]||(a[hs]={dragDropManager:ZL(e,t,n,r)}),a[hs]}function Vw(){return typeof global<"u"?global:window}const iM=P.memo(function({connect:t,src:n}){return P.useEffect(()=>{if(typeof Image>"u")return;let r=!1;const a=new Image;return a.src=n,a.onload=()=>{t(a),r=!0},()=>{r&&t(null)}}),null});var oM=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,a,i;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(a=r;a--!==0;)if(!e(t[a],n[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(i=Object.keys(t),r=i.length,r!==Object.keys(n).length)return!1;for(a=r;a--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[a]))return!1;for(a=r;a--!==0;){var o=i[a];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n};const sM=nl(oM),mr=typeof window<"u"?P.useLayoutEffect:P.useEffect;function qw(e,t,n){const[r,a]=P.useState(()=>t(e)),i=P.useCallback(()=>{const o=t(e);sM(r,o)||(a(o),n&&n())},[r,e,n]);return mr(i),[r,i]}function lM(e,t,n){const[r,a]=qw(e,t,n);return mr(function(){const o=e.getHandlerId();if(o!=null)return e.subscribeToStateChange(a,{handlerIds:[o]})},[e,a]),r}function Kw(e,t,n){return lM(t,e||(()=>({})),()=>n.reconnect())}function Yw(e,t){const n=[...t||[]];return t==null&&typeof e!="function"&&n.push(e),P.useMemo(()=>typeof e=="function"?e():e,n)}function uM(e){return P.useMemo(()=>e.hooks.dragSource(),[e])}function cM(e){return P.useMemo(()=>e.hooks.dragPreview(),[e])}let Qu=!1,Bu=!1;class fM{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){G(!Qu,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Qu=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Qu=!1}}isDragging(){if(!this.sourceId)return!1;G(!Bu,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Bu=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Bu=!1}}subscribeToStateChange(t,n){return this.internalMonitor.subscribeToStateChange(t,n)}isDraggingSource(t){return this.internalMonitor.isDraggingSource(t)}isOverTarget(t,n){return this.internalMonitor.isOverTarget(t,n)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(t){return this.internalMonitor.subscribeToOffsetChange(t)}canDragSource(t){return this.internalMonitor.canDragSource(t)}canDropOnTarget(t){return this.internalMonitor.canDropOnTarget(t)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.sourceId=null,this.internalMonitor=t.getMonitor()}}let Zu=!1;class dM{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,n){return this.internalMonitor.subscribeToStateChange(t,n)}canDrop(){if(!this.targetId)return!1;G(!Zu,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return Zu=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Zu=!1}}isOver(t){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,t):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.targetId=null,this.internalMonitor=t.getMonitor()}}function hM(e,t,n){const r=n.getRegistry(),a=r.addTarget(e,t);return[a,()=>r.removeTarget(a)]}function pM(e,t,n){const r=n.getRegistry(),a=r.addSource(e,t);return[a,()=>r.removeSource(a)]}function If(e,t,n,r){let a=n?n.call(r,e,t):void 0;if(a!==void 0)return!!a;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const i=Object.keys(e),o=Object.keys(t);if(i.length!==o.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let l=0;l, or turn it into a drag source or a drop target itself.`)}function mM(e){return(t=null,n=null)=>{if(!P.isValidElement(t)){const i=t;return e(i,n),i}const r=t;return gM(r),vM(r,n?i=>e(i,n):e)}}function Xw(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const a=mM(r);t[n]=()=>a}}),t}function Fm(e,t){typeof e=="function"?e(t):e.current=t}function vM(e,t){const n=e.ref;return G(typeof n!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a or
. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?P.cloneElement(e,{ref:r=>{Fm(n,r),Fm(t,r)}}):P.cloneElement(e,{ref:t})}class yM{receiveHandlerId(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(t){this.dragSourceOptionsInternal=t}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(t){this.dragPreviewOptionsInternal=t}reconnect(){const t=this.reconnectDragSource();this.reconnectDragPreview(t)}reconnectDragSource(){const t=this.dragSource,n=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return n&&this.disconnectDragSource(),this.handlerId?t?(n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)),n):(this.lastConnectedDragSource=t,n):n}reconnectDragPreview(t=!1){const n=this.dragPreview,r=t||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(r&&this.disconnectDragPreview(),!!this.handlerId){if(!n){this.lastConnectedDragPreview=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=n,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,n,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!If(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!If(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(t){this.hooks=Xw({dragSource:(n,r)=>{this.clearDragSource(),this.dragSourceOptions=r||null,Uf(n)?this.dragSourceRef=n:this.dragSourceNode=n,this.reconnectDragSource()},dragPreview:(n,r)=>{this.clearDragPreview(),this.dragPreviewOptions=r||null,Uf(n)?this.dragPreviewRef=n:this.dragPreviewNode=n,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}}class wM{get connectTarget(){return this.dropTarget}reconnect(){const t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();const n=this.dropTarget;if(this.handlerId){if(!n){this.lastConnectedDropTarget=n;return}t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=n,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,n,this.dropTargetOptions))}}receiveHandlerId(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(t){this.dropTargetOptionsInternal=t}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!If(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(t){this.hooks=Xw({dropTarget:(n,r)=>{this.clearDropTarget(),this.dropTargetOptions=r,Uf(n)?this.dropTargetRef=n:this.dropTargetNode=n,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}}function Hn(){const{dragDropManager:e}=P.useContext(Ki);return G(e!=null,"Expected drag drop context"),e}function _M(e,t){const n=Hn(),r=P.useMemo(()=>new yM(n.getBackend()),[n]);return mr(()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource()),[r,e]),mr(()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,t]),r}function SM(){const e=Hn();return P.useMemo(()=>new fM(e),[e])}class bM{beginDrag(){const t=this.spec,n=this.monitor;let r=null;return typeof t.item=="object"?r=t.item:typeof t.item=="function"?r=t.item(n):r={},r??null}canDrag(){const t=this.spec,n=this.monitor;return typeof t.canDrag=="boolean"?t.canDrag:typeof t.canDrag=="function"?t.canDrag(n):!0}isDragging(t,n){const r=this.spec,a=this.monitor,{isDragging:i}=r;return i?i(a):n===t.getSourceId()}endDrag(){const t=this.spec,n=this.monitor,r=this.connector,{end:a}=t;a&&a(n.getItem(),n),r.reconnect()}constructor(t,n,r){this.spec=t,this.monitor=n,this.connector=r}}function EM(e,t,n){const r=P.useMemo(()=>new bM(e,t,n),[t,n]);return P.useEffect(()=>{r.spec=e},[e]),r}function TM(e){return P.useMemo(()=>{const t=e.type;return G(t!=null,"spec.type must be defined"),t},[e])}function CM(e,t,n){const r=Hn(),a=EM(e,t,n),i=TM(e);mr(function(){if(i!=null){const[s,l]=pM(i,a,r);return t.receiveHandlerId(s),n.receiveHandlerId(s),l}},[r,t,n,a,i])}function Jw(e,t){const n=Yw(e,t);G(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const r=SM(),a=_M(n.options,n.previewOptions);return CM(n,r,a),[Kw(n.collect,r,a),uM(a),cM(a)]}function Qw(e){const n=Hn().getMonitor(),[r,a]=qw(n,e);return P.useEffect(()=>n.subscribeToOffsetChange(a)),P.useEffect(()=>n.subscribeToStateChange(a)),r}function OM(e){return P.useMemo(()=>e.hooks.dropTarget(),[e])}function xM(e){const t=Hn(),n=P.useMemo(()=>new wM(t.getBackend()),[t]);return mr(()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget()),[e]),n}function PM(){const e=Hn();return P.useMemo(()=>new dM(e),[e])}function NM(e){const{accept:t}=e;return P.useMemo(()=>(G(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class DM{canDrop(){const t=this.spec,n=this.monitor;return t.canDrop?t.canDrop(n.getItem(),n):!0}hover(){const t=this.spec,n=this.monitor;t.hover&&t.hover(n.getItem(),n)}drop(){const t=this.spec,n=this.monitor;if(t.drop)return t.drop(n.getItem(),n)}constructor(t,n){this.spec=t,this.monitor=n}}function kM(e,t){const n=P.useMemo(()=>new DM(e,t),[t]);return P.useEffect(()=>{n.spec=e},[e]),n}function AM(e,t,n){const r=Hn(),a=kM(e,t),i=NM(e);mr(function(){const[s,l]=hM(i,a,r);return t.receiveHandlerId(s),n.receiveHandlerId(s),l},[r,t,a,n,i.map(o=>o.toString()).join("|")])}function Bw(e,t){const n=Yw(e,t),r=PM(),a=xM(n.options);return AM(n,r,a),[Kw(n.collect,r,a),OM(a)]}const RM=Object.freeze(Object.defineProperty({__proto__:null,DndContext:Ki,DndProvider:Gw,DragPreviewImage:iM,useDrag:Jw,useDragDropManager:Hn,useDragLayer:Qw,useDrop:Bw},Symbol.toStringTag,{value:"Module"})),Wl=Bf(RM);var zf=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),$M=e=>{let t=e.getInitialClientOffset(),n=e.getInitialSourceClientOffset();return t===null||n===null?{x:0,y:0}:zf(t,n)},LM=(e,t)=>{let n=e.getClientOffset();if(n===null)return null;if(!t.current||!t.current.getBoundingClientRect)return zf(n,$M(e));let r=t.current.getBoundingClientRect(),a={x:r.width/2,y:r.height/2};return zf(n,a)},MM=e=>{let t=`translate(${e.x.toFixed(1)}px, ${e.y.toFixed(1)}px)`;return{pointerEvents:"none",position:"fixed",top:0,left:0,transform:t,WebkitTransform:t}},Zw=()=>{let e=P.useRef(null),t=Qw(n=>({currentOffset:LM(n,e),isDragging:n.isDragging(),itemType:n.getItemType(),item:n.getItem(),monitor:n}));return!t.isDragging||t.currentOffset===null?{display:!1}:{display:!0,itemType:t.itemType,item:t.item,style:MM(t.currentOffset),monitor:t.monitor,ref:e}},Ih=P.createContext(void 0),jM=e=>{let t=Zw();if(!t.display)return null;let{display:n,...r}=t,a;return"children"in e?typeof e.children=="function"?a=e.children(r):a=e.children:a=e.generator(r),Sn.createElement(Ih.Provider,{value:r},a)},e_=P.createContext(null),FM=({portal:e,...t})=>{let[n,r]=P.useState(null);return Sn.createElement(e_.Provider,{value:e??n},Sn.createElement(Gw,{backend:Lw,...t}),e?null:Sn.createElement("div",{ref:r}))},t_=()=>{let[e,t]=P.useState(!1),n=P.useContext(Ki);return P.useEffect(()=>{var i;let r=(i=n==null?void 0:n.dragDropManager)==null?void 0:i.getBackend(),a={backendChanged:o=>{t(o.previewEnabled())}};return t(r.previewEnabled()),r.previewsList().register(a),()=>{r.previewsList().unregister(a)}},[n,n.dragDropManager]),e},n_=e=>{let t=t_(),n=P.useContext(e_);if(!t)return null;let r=Sn.createElement(jM,{...e});return n!==null?Q0.createPortal(r,n):r};n_.Context=Ih;var IM=(e,t,n,r)=>{let a=n.getBackend();n.receiveBackend(r);let i=t(e);return n.receiveBackend(a),i},r_=(e,t)=>{var s;let n=P.useContext(Ki),r=(s=n==null?void 0:n.dragDropManager)==null?void 0:s.getBackend();if(r===void 0)throw new Error("could not find backend, make sure you are using a ");let a=t(e),i={},o=r.backendsList();for(let l of o)i[l.id]=IM(e,t,n.dragDropManager,l.instance);return[a,i]},UM=e=>r_(e,Jw),zM=e=>r_(e,Bw),HM=()=>{let e=t_(),t=Zw();return e?t:{display:!1}};const WM=Object.freeze(Object.defineProperty({__proto__:null,DndProvider:FM,HTML5DragTransition:j$,MouseTransition:F$,MultiBackend:Lw,PointerTransition:jw,Preview:n_,PreviewContext:Ih,TouchTransition:Mw,createTransition:qi,useMultiDrag:UM,useMultiDrop:zM,usePreview:HM},Symbol.toStringTag,{value:"Module"})),GM=Bf(WM);var a_={},Gl={},Vl={};Object.defineProperty(Vl,"__esModule",{value:!0});Vl.default=qM;let Fo;const VM=new Uint8Array(16);function qM(){if(!Fo&&(Fo=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Fo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Fo(VM)}var Wn={},Er={},ql={};Object.defineProperty(ql,"__esModule",{value:!0});ql.default=void 0;var KM=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;ql.default=KM;Object.defineProperty(Er,"__esModule",{value:!0});Er.default=void 0;var YM=XM(ql);function XM(e){return e&&e.__esModule?e:{default:e}}function JM(e){return typeof e=="string"&&YM.default.test(e)}var QM=JM;Er.default=QM;Object.defineProperty(Wn,"__esModule",{value:!0});Wn.default=void 0;Wn.unsafeStringify=i_;var BM=ZM(Er);function ZM(e){return e&&e.__esModule?e:{default:e}}const Te=[];for(let e=0;e<256;++e)Te.push((e+256).toString(16).slice(1));function i_(e,t=0){return Te[e[t+0]]+Te[e[t+1]]+Te[e[t+2]]+Te[e[t+3]]+"-"+Te[e[t+4]]+Te[e[t+5]]+"-"+Te[e[t+6]]+Te[e[t+7]]+"-"+Te[e[t+8]]+Te[e[t+9]]+"-"+Te[e[t+10]]+Te[e[t+11]]+Te[e[t+12]]+Te[e[t+13]]+Te[e[t+14]]+Te[e[t+15]]}function e5(e,t=0){const n=i_(e,t);if(!(0,BM.default)(n))throw TypeError("Stringified UUID is invalid");return n}var t5=e5;Wn.default=t5;Object.defineProperty(Gl,"__esModule",{value:!0});Gl.default=void 0;var n5=a5(Vl),r5=Wn;function a5(e){return e&&e.__esModule?e:{default:e}}let Im,ec,tc=0,nc=0;function i5(e,t,n){let r=t&&n||0;const a=t||new Array(16);e=e||{};let i=e.node||Im,o=e.clockseq!==void 0?e.clockseq:ec;if(i==null||o==null){const p=e.random||(e.rng||n5.default)();i==null&&(i=Im=[p[0]|1,p[1],p[2],p[3],p[4],p[5]]),o==null&&(o=ec=(p[6]<<8|p[7])&16383)}let s=e.msecs!==void 0?e.msecs:Date.now(),l=e.nsecs!==void 0?e.nsecs:nc+1;const u=s-tc+(l-nc)/1e4;if(u<0&&e.clockseq===void 0&&(o=o+1&16383),(u<0||s>tc)&&e.nsecs===void 0&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");tc=s,nc=l,ec=o,s+=122192928e5;const h=((s&268435455)*1e4+l)%4294967296;a[r++]=h>>>24&255,a[r++]=h>>>16&255,a[r++]=h>>>8&255,a[r++]=h&255;const d=s/4294967296*1e4&268435455;a[r++]=d>>>8&255,a[r++]=d&255,a[r++]=d>>>24&15|16,a[r++]=d>>>16&255,a[r++]=o>>>8|128,a[r++]=o&255;for(let p=0;p<6;++p)a[r+p]=i[p];return t||(0,r5.unsafeStringify)(a)}var o5=i5;Gl.default=o5;var Kl={},jn={},Yi={};Object.defineProperty(Yi,"__esModule",{value:!0});Yi.default=void 0;var s5=l5(Er);function l5(e){return e&&e.__esModule?e:{default:e}}function u5(e){if(!(0,s5.default)(e))throw TypeError("Invalid UUID");let t;const n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=t&255,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=t&255,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=t&255,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=t&255,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=t&255,n}var c5=u5;Yi.default=c5;Object.defineProperty(jn,"__esModule",{value:!0});jn.URL=jn.DNS=void 0;jn.default=g5;var f5=Wn,d5=h5(Yi);function h5(e){return e&&e.__esModule?e:{default:e}}function p5(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n>5]>>>a%32&255,o=parseInt(r.charAt(i>>>4&15)+r.charAt(i&15),16);t.push(o)}return t}function l_(e){return(e+64>>>9<<4)+14+1}function y5(e,t){e[t>>5]|=128<>5]|=(e[r/8]&255)<>16)+(t>>16)+(n>>16)<<16|n&65535}function _5(e,t){return e<>>32-t}function Xl(e,t,n,r,a,i){return _n(_5(_n(_n(t,e),_n(r,i)),a),n)}function ke(e,t,n,r,a,i,o){return Xl(t&n|~t&r,e,t,a,i,o)}function Ae(e,t,n,r,a,i,o){return Xl(t&r|n&~r,e,t,a,i,o)}function Re(e,t,n,r,a,i,o){return Xl(t^n^r,e,t,a,i,o)}function $e(e,t,n,r,a,i,o){return Xl(n^(t|~r),e,t,a,i,o)}var S5=m5;Yl.default=S5;Object.defineProperty(Kl,"__esModule",{value:!0});Kl.default=void 0;var b5=u_(jn),E5=u_(Yl);function u_(e){return e&&e.__esModule?e:{default:e}}const T5=(0,b5.default)("v3",48,E5.default);var C5=T5;Kl.default=C5;var Jl={},Ql={};Object.defineProperty(Ql,"__esModule",{value:!0});Ql.default=void 0;const O5=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var x5={randomUUID:O5};Ql.default=x5;Object.defineProperty(Jl,"__esModule",{value:!0});Jl.default=void 0;var Um=c_(Ql),P5=c_(Vl),N5=Wn;function c_(e){return e&&e.__esModule?e:{default:e}}function D5(e,t,n){if(Um.default.randomUUID&&!t&&!e)return Um.default.randomUUID();e=e||{};const r=e.random||(e.rng||P5.default)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let a=0;a<16;++a)t[n+a]=r[a];return t}return(0,N5.unsafeStringify)(r)}var k5=D5;Jl.default=k5;var Bl={},Zl={};Object.defineProperty(Zl,"__esModule",{value:!0});Zl.default=void 0;function A5(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function rc(e,t){return e<>>32-t}function R5(e){const t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){const o=unescape(encodeURIComponent(e));e=[];for(let s=0;s>>0;p=d,d=h,h=rc(u,30)>>>0,u=l,l=_}n[0]=n[0]+l>>>0,n[1]=n[1]+u>>>0,n[2]=n[2]+h>>>0,n[3]=n[3]+d>>>0,n[4]=n[4]+p>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,n[0]&255,n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,n[1]&255,n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,n[2]&255,n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,n[3]&255,n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,n[4]&255]}var $5=R5;Zl.default=$5;Object.defineProperty(Bl,"__esModule",{value:!0});Bl.default=void 0;var L5=f_(jn),M5=f_(Zl);function f_(e){return e&&e.__esModule?e:{default:e}}const j5=(0,L5.default)("v5",80,M5.default);var F5=j5;Bl.default=F5;var eu={};Object.defineProperty(eu,"__esModule",{value:!0});eu.default=void 0;var I5="00000000-0000-0000-0000-000000000000";eu.default=I5;var tu={};Object.defineProperty(tu,"__esModule",{value:!0});tu.default=void 0;var U5=z5(Er);function z5(e){return e&&e.__esModule?e:{default:e}}function H5(e){if(!(0,U5.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}var W5=H5;tu.default=W5;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return o.default}});var t=h(Gl),n=h(Kl),r=h(Jl),a=h(Bl),i=h(eu),o=h(tu),s=h(Er),l=h(Wn),u=h(Yi);function h(d){return d&&d.__esModule?d:{default:d}}})(a_);var Pe={},G5=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Pe,"__esModule",{value:!0});Pe.MosaicWindowContext=Pe.MosaicContext=void 0;var d_=G5(P);Pe.MosaicContext=d_.default.createContext(void 0);Pe.MosaicWindowContext=d_.default.createContext(void 0);var nu={},zm=wa,V5=Pl,q5=wt,Hm=zm?zm.isConcatSpreadable:void 0;function K5(e){return q5(e)||V5(e)||!!(Hm&&e&&e[Hm])}var Y5=K5,X5=bh,J5=Y5;function h_(e,t,n,r,a){var i=-1,o=e.length;for(n||(n=J5),a||(a=[]);++i0&&n(s)?t>1?h_(s,t-1,n,r,a):X5(a,s):r||(a[a.length]=s)}return a}var Q5=h_,B5=Q5;function Z5(e){var t=e==null?0:e.length;return t?B5(e,1):[]}var e8=Z5,ru={};function t8(e,t,n){return e===e&&(n!==void 0&&(e=e<=n?e:n),t!==void 0&&(e=e>=t?e:t)),e}var n8=t8,r8=/\s/;function a8(e){for(var t=e.length;t--&&r8.test(e.charAt(t)););return t}var i8=a8,o8=i8,s8=/^\s+/;function l8(e){return e&&e.slice(0,o8(e)+1).replace(s8,"")}var u8=l8,c8=u8,Wm=It,f8=Ml,Gm=0/0,d8=/^[-+]0x[0-9a-f]+$/i,h8=/^0b[01]+$/i,p8=/^0o[0-7]+$/i,g8=parseInt;function m8(e){if(typeof e=="number")return e;if(f8(e))return Gm;if(Wm(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Wm(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=c8(e);var n=h8.test(e);return n||p8.test(e)?g8(e.slice(2),n?2:8):d8.test(e)?Gm:+e}var Uh=m8,v8=n8,ac=Uh;function y8(e,t,n){return n===void 0&&(n=t,t=void 0),n!==void 0&&(n=ac(n),n=n===n?n:0),t!==void 0&&(t=ac(t),t=t===t?t:0),v8(ac(e),t,n)}var w8=y8,_8=Dt,S8=function(){return _8.Date.now()},b8=S8,E8=It,ic=b8,Vm=Uh,T8="Expected a function",C8=Math.max,O8=Math.min;function x8(e,t,n){var r,a,i,o,s,l,u=0,h=!1,d=!1,p=!0;if(typeof e!="function")throw new TypeError(T8);t=Vm(t)||0,E8(n)&&(h=!!n.leading,d="maxWait"in n,i=d?C8(Vm(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p);function w(A){var b=r,C=a;return r=a=void 0,u=A,o=e.apply(C,b),o}function m(A){return u=A,s=setTimeout(v,t),h?w(A):o}function _(A){var b=A-l,C=A-u,x=t-b;return d?O8(x,i-C):x}function E(A){var b=A-l,C=A-u;return l===void 0||b>=t||b<0||d&&C>=i}function v(){var A=ic();if(E(A))return y(A);s=setTimeout(v,_(A))}function y(A){return s=void 0,p&&r?w(A):(r=a=void 0,o)}function S(){s!==void 0&&clearTimeout(s),u=0,r=l=a=s=void 0}function O(){return s===void 0?o:y(ic())}function D(){var A=ic(),b=E(A);if(r=arguments,a=this,l=A,b){if(s===void 0)return m(l);if(d)return clearTimeout(s),s=setTimeout(v,t),w(l)}return s===void 0&&(s=setTimeout(v,t)),o}return D.cancel=S,D.flush=O,D}var P8=x8,N8=P8,D8=It,k8="Expected a function";function A8(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(k8);return D8(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),N8(e,t,{leading:r,maxWait:t,trailing:a})}var R8=A8,zh={},au={};Object.defineProperty(au,"__esModule",{value:!0});au.assertNever=void 0;function $8(e){throw new Error("Unhandled case: "+JSON.stringify(e))}au.assertNever=$8;(function(e){var t=$&&$.__assign||function(){return t=Object.assign||function(r){for(var a,i=1,o=arguments.length;i1;){for(;E.length>0;)E.length>1?v.push({direction:"row",first:E.shift(),second:E.shift()}):v.unshift(E.shift());E=v,v=[]}return a(E[0],_)}e.createBalancedTreeFromLeaves=s;function l(m){if(m==="first")return"second";if(m==="second")return"first";throw new Error("Branch '".concat(m,"' not a valid branch"))}e.getOtherBranch=l;function u(m){return m==="row"?"column":"row"}e.getOtherDirection=u;function h(m,_){for(var E=m,v=[];o(E);)E.direction==="row"&&(_===i.TOP_LEFT||_===i.BOTTOM_LEFT)||E.direction==="column"&&(_===i.TOP_LEFT||_===i.TOP_RIGHT)?(v.push("first"),E=E.first):(v.push("second"),E=E.second);return v}e.getPathToCorner=h;function d(m){return m==null?[]:o(m)?d(m.first).concat(d(m.second)):[m]}e.getLeaves=d;function p(m,_){return _.length>0?(0,r.default)(m,_,null):m}e.getNodeAtPath=p;function w(m,_){if(m==null)throw new Error("Root is empty, cannot fetch path");var E=p(m,_);if(E==null)throw new Error("Path [".concat(_.join(", "),"] did not resolve to a node"));return E}e.getAndAssertNodeAtPathExists=w})(Xi);var T7=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qs=$&&$.__assign||function(){return Qs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n"u"&&!i.call(C,H))&&(z===C&&(z=d(C)),l(z)==="Map"?z.set(H,on):z[H]=on)}}),z},b}();t.Context=p;var w={$push:function(b,C,x){return _(C,x,"$push"),b.length?C.concat(b):C},$unshift:function(b,C,x){return _(C,x,"$unshift"),b.length?b.concat(C):C},$splice:function(b,C,x,N){return v(C,x),b.forEach(function(L){y(L),C===N&&L.length&&(C=d(N)),o.apply(C,L)}),C},$set:function(b,C,x){return O(x),b},$toggle:function(b,C){E(b,"$toggle");var x=b.length?d(C):C;return b.forEach(function(N){x[N]=!C[N]}),x},$unset:function(b,C,x,N){return E(b,"$unset"),b.forEach(function(L){Object.hasOwnProperty.call(C,L)&&(C===N&&(C=d(N)),delete C[L])}),C},$add:function(b,C,x,N){return A(C,"$add"),E(b,"$add"),l(C)==="Map"?b.forEach(function(L){var z=L[0],H=L[1];C===N&&C.get(z)!==H&&(C=d(N)),C.set(z,H)}):b.forEach(function(L){C===N&&!C.has(L)&&(C=d(N)),C.add(L)}),C},$remove:function(b,C,x,N){return A(C,"$remove"),E(b,"$remove"),b.forEach(function(L){C===N&&C.has(L)&&(C=d(N)),C.delete(L)}),C},$merge:function(b,C,x,N){return D(C,b),h(b).forEach(function(L){b[L]!==C[L]&&(C===N&&(C=d(N)),C[L]=b[L])}),C},$apply:function(b,C){return S(b),b(C)}},m=new p;t.isEquals=m.update.isEquals,t.extend=m.extend,t.default=m.update,t.default.default=e.exports=u(t.default,t);function _(b,C,x){a(Array.isArray(b),function(){return"update(): expected target of "+n(x)+" to be an array; got "+n(b)+"."}),E(C[x],x)}function E(b,C){a(Array.isArray(b),function(){return"update(): expected spec of "+n(C)+" to be an array; got "+n(b)+". Did you forget to wrap your parameter in an array?"})}function v(b,C){a(Array.isArray(b),function(){return"Expected $splice target to be an array; got "+n(b)}),y(C.$splice)}function y(b){a(Array.isArray(b),function(){return"update(): expected spec of $splice to be an array of arrays; got "+n(b)+". Did you forget to wrap your parameters in an array?"})}function S(b){a(typeof b=="function",function(){return"update(): expected spec of $apply to be a function; got "+n(b)+"."})}function O(b){a(Object.keys(b).length===1,function(){return"Cannot have more than one key in an object with $set"})}function D(b,C){a(C&&typeof C=="object",function(){return"update(): $merge expects a spec of type 'object'; got "+n(C)}),a(b&&typeof b=="object",function(){return"update(): $merge expects a target of type 'object'; got "+n(b)})}function A(b,C){var x=l(b);a(x==="Map"||x==="Set",function(){return"update(): "+n(C)+" expects a target of type Set or Map; got "+n(x)})}})(Hf,Hf.exports);var lF=Hf.exports;function uF(e,t,n){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(a);++r0?(0,jF.default)({},e.path,e.spec):e.spec}je.buildSpecFromUpdate=j_;function F_(e,t){var n=e;return t.forEach(function(r){n=(0,$F.default)(n,j_(r))}),n}je.updateTree=F_;function Wf(e,t){var n=(0,L_.default)(t),r=(0,M_.default)(t),a=n.concat((0,Bs.getOtherBranch)(r)),i=(0,Bs.getAndAssertNodeAtPathExists)(e,a);return{path:n,spec:{$set:i}}}je.createRemoveUpdate=Wf;function cv(e,t,n){return(0,MF.default)((0,uv.default)(e,n),(0,uv.default)(t,n))}function FF(e,t,n,r){var a=(0,Bs.getAndAssertNodeAtPathExists)(e,n),i=[],o=cv(t,n,n.length);if(o)a=F_(a,[Wf(a,(0,LF.default)(t,n.length))]);else{i.push(Wf(e,t));var s=cv(t,n,t.length-1);s&&n.splice(t.length-1,1)}var l=(0,Bs.getAndAssertNodeAtPathExists)(e,t),u,h;r===Ho.MosaicDropTargetPosition.LEFT||r===Ho.MosaicDropTargetPosition.TOP?(u=l,h=a):(u=a,h=l);var d="column";return(r===Ho.MosaicDropTargetPosition.LEFT||r===Ho.MosaicDropTargetPosition.RIGHT)&&(d="row"),i.push({path:n,spec:{$set:{first:u,second:h,direction:d}}}),i}je.createDragToUpdates=FF;function IF(e){var t=(0,L_.default)(e),n=(0,M_.default)(e),r;return n==="first"?r=0:r=100,{path:t,spec:{splitPercentage:{$set:r}}}}je.createHideUpdate=IF;function UF(e,t){for(var n,r={},a=e.length-1;a>=0;a--){var i=e[a],o=i==="first"?t:100-t;r=(n={splitPercentage:{$set:o}},n[i]=r,n)}return{spec:r,path:[]}}je.createExpandUpdate=UF;var I_=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zs=$&&$.__assign||function(){return Zs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0){if(++t>=dI)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var mI=gI,vI=fI,yI=mI,wI=yI(vI),_I=wI,SI=Dh,bI=iI,EI=_I;function TI(e,t){return EI(bI(e,t,SI),e+"")}var CI=TI,OI=eI,xI=CI,PI=xI(function(e,t){return OI(e,1,t)}),NI=PI,DI=sw,kI=Gi,AI=Pl,RI=wt,$I=kl,LI=Nl,MI=Dl,jI=vh,FI="[object Map]",II="[object Set]",UI=Object.prototype,zI=UI.hasOwnProperty;function HI(e){if(e==null)return!0;if($I(e)&&(RI(e)||typeof e=="string"||typeof e.splice=="function"||LI(e)||jI(e)||AI(e)))return!e.length;var t=kI(e);if(t==FI||t==II)return!e.size;if(MI(e))return!DI(e).length;for(var n in e)if(zI.call(e,n))return!1;return!0}var WI=HI,vr={},Zi={},Oa={};(function(e){var t=$&&$.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0}),e.createDefaultToolbarButton=e.DefaultToolbarButton=void 0;var n=t(st),r=t(P),a=Pe,i=Gn,o=function(l){var u=l.title,h=l.className,d=l.onClick,p=l.text,w=r.default.useContext(a.MosaicContext).blueprintNamespace;return r.default.createElement("button",{title:u,onClick:d,className:(0,n.default)("mosaic-default-control",i.OptionalBlueprint.getClasses(w,"BUTTON","MINIMAL"),h)},p&&r.default.createElement("span",{className:"control-text"},p))};e.DefaultToolbarButton=o;var s=function(l,u,h,d){return r.default.createElement(e.DefaultToolbarButton,{title:l,className:u,onClick:h,text:d})};e.createDefaultToolbarButton=s})(Oa);var GI=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),z_=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zi,"__esModule",{value:!0});Zi.ExpandButton=void 0;var VI=z_(st),uc=z_(P),hv=Pe,qI=Gn,KI=Oa,YI=function(e){GI(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this;return uc.default.createElement(hv.MosaicContext.Consumer,null,function(r){var a=r.mosaicActions;return uc.default.createElement(KI.DefaultToolbarButton,{title:"Expand",className:(0,VI.default)("expand-button",qI.OptionalBlueprint.getIconClass(n.context.blueprintNamespace,"MAXIMIZE")),onClick:n.createExpand(a)})})},t.prototype.createExpand=function(n){var r=this;return function(){n.expand(r.context.mosaicWindowActions.getPath()),r.props.onClick&&r.props.onClick()}},t.contextType=hv.MosaicWindowContext,t}(uc.default.PureComponent);Zi.ExpandButton=YI;var eo={},XI=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),H_=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(eo,"__esModule",{value:!0});eo.RemoveButton=void 0;var JI=H_(st),cc=H_(P),pv=Pe,QI=Gn,BI=Oa,ZI=function(e){XI(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this;return cc.default.createElement(pv.MosaicContext.Consumer,null,function(r){var a=r.mosaicActions,i=r.blueprintNamespace;return cc.default.createElement(BI.DefaultToolbarButton,{title:"Close Window",className:(0,JI.default)("close-button",QI.OptionalBlueprint.getIconClass(i,"CROSS")),onClick:n.createRemove(a)})})},t.prototype.createRemove=function(n){var r=this;return function(){n.remove(r.context.mosaicWindowActions.getPath()),r.props.onClick&&r.props.onClick()}},t.contextType=pv.MosaicWindowContext,t}(cc.default.PureComponent);eo.RemoveButton=ZI;var to={},eU=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Kh=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(to,"__esModule",{value:!0});to.ReplaceButton=void 0;var tU=Kh(st),nU=Kh(Wh),gv=Kh(P),rU=Pe,aU=Gn,iU=Oa,oU=function(e){eU(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.replace=function(){n.context.mosaicWindowActions.replaceWithNew().then(function(){n.props.onClick&&n.props.onClick()}).catch(nU.default)},n}return t.prototype.render=function(){return gv.default.createElement(iU.DefaultToolbarButton,{title:"Replace Window",className:(0,tU.default)("replace-button",aU.OptionalBlueprint.getIconClass(this.context.blueprintNamespace,"EXCHANGE")),onClick:this.replace})},t.contextType=rU.MosaicWindowContext,t}(gv.default.PureComponent);to.ReplaceButton=oU;var no={},sU=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yh=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(no,"__esModule",{value:!0});no.SplitButton=void 0;var lU=Yh(st),uU=Yh(Wh),mv=Yh(P),cU=Pe,fU=Gn,dU=Oa,hU=function(e){sU(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.split=function(){n.context.mosaicWindowActions.split().then(function(){n.props.onClick&&n.props.onClick()}).catch(uU.default)},n}return t.prototype.render=function(){return mv.default.createElement(dU.DefaultToolbarButton,{title:"Split Window",className:(0,lU.default)("split-button",fU.OptionalBlueprint.getIconClass(this.context.blueprintNamespace,"ADD_COLUMN_RIGHT")),onClick:this.split})},t.contextType=cU.MosaicWindowContext,t}(mv.default.PureComponent);no.SplitButton=hU;var pU=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vr,"__esModule",{value:!0});vr.DEFAULT_CONTROLS_WITHOUT_CREATION=vr.DEFAULT_CONTROLS_WITH_CREATION=void 0;var mn=pU(P),W_=Zi,G_=eo,gU=to,mU=no;vr.DEFAULT_CONTROLS_WITH_CREATION=mn.default.Children.toArray([mn.default.createElement(gU.ReplaceButton,null),mn.default.createElement(mU.SplitButton,null),mn.default.createElement(W_.ExpandButton,null),mn.default.createElement(G_.RemoveButton,null)]);vr.DEFAULT_CONTROLS_WITHOUT_CREATION=mn.default.Children.toArray([mn.default.createElement(W_.ExpandButton,null),mn.default.createElement(G_.RemoveButton,null)]);var ro={},vU=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),yU=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ro,"__esModule",{value:!0});ro.Separator=void 0;var vv=yU(P),wU=function(e){vU(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){return vv.default.createElement("div",{className:"separator"})},t}(vv.default.PureComponent);ro.Separator=wU;var V_=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),el=$&&$.__assign||function(){return el=Object.assign||function(e){for(var t,n=1,r=arguments.length;nn.rootElement.offsetHeight?"row":"column";return Promise.resolve(o.apply(void 0,r)).then(function(d){return l.replaceWith(s,{direction:h,second:d,first:(0,AU.getAndAssertNodeAtPathExists)(u,s)})})},n.swap=function(){for(var r=[],a=0;a0,m=w?this.props.connectDragSource:function(y){return y};if(h){var _=m(h(this.props,o));return ne.default.createElement("div",{className:(0,Ia.default)("mosaic-window-toolbar",{draggable:w})},_)}var E=m(ne.default.createElement("div",{title:i,className:"mosaic-window-title"},i)),v=!(0,CU.default)(s);return ne.default.createElement("div",{className:(0,Ia.default)("mosaic-window-toolbar",{draggable:w})},E,ne.default.createElement("div",{className:(0,Ia.default)("mosaic-window-controls",Ua.OptionalBlueprint.getClasses("BUTTON_GROUP"))},v&&ne.default.createElement("button",{onClick:function(){return r.setAdditionalControlsOpen(!d)},className:(0,Ia.default)(Ua.OptionalBlueprint.getClasses(this.context.blueprintNamespace,"BUTTON","MINIMAL"),Ua.OptionalBlueprint.getIconClass(this.context.blueprintNamespace,"MORE"),(n={},n[Ua.OptionalBlueprint.getClasses(this.context.blueprintNamespace,"ACTIVE")]=d,n))},ne.default.createElement("span",{className:"control-text"},l)),v&&ne.default.createElement(PU.Separator,null),p))},t.prototype.checkCreateNode=function(){if(this.props.createNode==null)throw new Error("Operation invalid unless `createNode` is defined")},t.defaultProps={additionalControlButtonText:"More",draggable:!0,renderPreview:function(n){var r=n.title;return ne.default.createElement("div",{className:"mosaic-preview"},ne.default.createElement("div",{className:"mosaic-window-toolbar"},ne.default.createElement("div",{className:"mosaic-window-title"},r)),ne.default.createElement("div",{className:"mosaic-window-body"},ne.default.createElement("h4",null,r),ne.default.createElement(Ua.OptionalBlueprint.Icon,{className:"default-preview-icon",size:"large",icon:"APPLICATION"})))},renderToolbar:null},t.contextType=Gf.MosaicContext,t}(ne.default.Component);ha.InternalMosaicWindow=q_;function RU(e){var t=(0,ne.useContext)(Gf.MosaicContext),n=t.mosaicActions,r=t.mosaicId,a=(0,yv.useDrag)({type:_v.MosaicDragType.WINDOW,item:function(p){e.onDragStart&&e.onDragStart();var w=(0,EU.default)(function(){return n.hide(e.path)});return{mosaicId:r,hideTimer:w}},end:function(p,w){var m=p.hideTimer;window.clearTimeout(m);var _=e.path,E=w.getDropResult()||{},v=E.position,y=E.path;v!=null&&y!=null&&!(0,OU.default)(y,_)?(n.updateTree((0,kU.createDragToUpdates)(n.getRoot(),_,y,v)),e.onDragEnd&&e.onDragEnd("drop")):(n.updateTree([{path:(0,TU.default)(_),spec:{splitPercentage:{$set:void 0}}}]),e.onDragEnd&&e.onDragEnd("reset"))}}),i=a[1],o=a[2],s=(0,yv.useDrop)({accept:_v.MosaicDragType.WINDOW,collect:function(p){var w;return{isOver:p.isOver(),draggedMosaicId:(w=p.getItem())===null||w===void 0?void 0:w.mosaicId}}}),l=s[0],u=l.isOver,h=l.draggedMosaicId,d=s[1];return ne.default.createElement(q_,el({},e,{connectDragPreview:o,connectDragSource:i,connectDropTarget:d,isOver:u,draggedMosaicId:h}))}var $U=function(e){V_(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){return ne.default.createElement(RU,el({},this.props))},t}(ne.default.PureComponent);ha.MosaicWindow=$U;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_CONTROLS_WITHOUT_CREATION=e.DEFAULT_CONTROLS_WITH_CREATION=e.RemoveButton=e.SplitButton=e.ReplaceButton=e.ExpandButton=e.Separator=e.MosaicZeroState=e.DefaultToolbarButton=e.createDefaultToolbarButton=e.MosaicWindow=e.isParent=e.getPathToCorner=e.getOtherDirection=e.getOtherBranch=e.getNodeAtPath=e.getLeaves=e.getAndAssertNodeAtPathExists=e.Corner=e.createBalancedTreeFromLeaves=e.updateTree=e.createRemoveUpdate=e.createHideUpdate=e.createExpandUpdate=e.createDragToUpdates=e.buildSpecFromUpdate=e.MosaicWindowContext=e.MosaicContext=e.MosaicDragType=e.MosaicWithoutDragDropContext=e.Mosaic=void 0;/** + * @license + * Copyright 2019 Kevin Verdieck, originally developed at Palantir Technologies, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */var t=da;Object.defineProperty(e,"Mosaic",{enumerable:!0,get:function(){return t.Mosaic}}),Object.defineProperty(e,"MosaicWithoutDragDropContext",{enumerable:!0,get:function(){return t.MosaicWithoutDragDropContext}});var n=Tr;Object.defineProperty(e,"MosaicDragType",{enumerable:!0,get:function(){return n.MosaicDragType}});var r=Pe;Object.defineProperty(e,"MosaicContext",{enumerable:!0,get:function(){return r.MosaicContext}}),Object.defineProperty(e,"MosaicWindowContext",{enumerable:!0,get:function(){return r.MosaicWindowContext}});var a=je;Object.defineProperty(e,"buildSpecFromUpdate",{enumerable:!0,get:function(){return a.buildSpecFromUpdate}}),Object.defineProperty(e,"createDragToUpdates",{enumerable:!0,get:function(){return a.createDragToUpdates}}),Object.defineProperty(e,"createExpandUpdate",{enumerable:!0,get:function(){return a.createExpandUpdate}}),Object.defineProperty(e,"createHideUpdate",{enumerable:!0,get:function(){return a.createHideUpdate}}),Object.defineProperty(e,"createRemoveUpdate",{enumerable:!0,get:function(){return a.createRemoveUpdate}}),Object.defineProperty(e,"updateTree",{enumerable:!0,get:function(){return a.updateTree}});var i=Xi;Object.defineProperty(e,"createBalancedTreeFromLeaves",{enumerable:!0,get:function(){return i.createBalancedTreeFromLeaves}}),Object.defineProperty(e,"Corner",{enumerable:!0,get:function(){return i.Corner}}),Object.defineProperty(e,"getAndAssertNodeAtPathExists",{enumerable:!0,get:function(){return i.getAndAssertNodeAtPathExists}}),Object.defineProperty(e,"getLeaves",{enumerable:!0,get:function(){return i.getLeaves}}),Object.defineProperty(e,"getNodeAtPath",{enumerable:!0,get:function(){return i.getNodeAtPath}}),Object.defineProperty(e,"getOtherBranch",{enumerable:!0,get:function(){return i.getOtherBranch}}),Object.defineProperty(e,"getOtherDirection",{enumerable:!0,get:function(){return i.getOtherDirection}}),Object.defineProperty(e,"getPathToCorner",{enumerable:!0,get:function(){return i.getPathToCorner}}),Object.defineProperty(e,"isParent",{enumerable:!0,get:function(){return i.isParent}});var o=ha;Object.defineProperty(e,"MosaicWindow",{enumerable:!0,get:function(){return o.MosaicWindow}});var s=Oa;Object.defineProperty(e,"createDefaultToolbarButton",{enumerable:!0,get:function(){return s.createDefaultToolbarButton}}),Object.defineProperty(e,"DefaultToolbarButton",{enumerable:!0,get:function(){return s.DefaultToolbarButton}});var l=Ji;Object.defineProperty(e,"MosaicZeroState",{enumerable:!0,get:function(){return l.MosaicZeroState}});var u=ro;Object.defineProperty(e,"Separator",{enumerable:!0,get:function(){return u.Separator}});var h=Zi;Object.defineProperty(e,"ExpandButton",{enumerable:!0,get:function(){return h.ExpandButton}});var d=to;Object.defineProperty(e,"ReplaceButton",{enumerable:!0,get:function(){return d.ReplaceButton}});var p=no;Object.defineProperty(e,"SplitButton",{enumerable:!0,get:function(){return p.SplitButton}});var w=eo;Object.defineProperty(e,"RemoveButton",{enumerable:!0,get:function(){return w.RemoveButton}});var m=vr;Object.defineProperty(e,"DEFAULT_CONTROLS_WITH_CREATION",{enumerable:!0,get:function(){return m.DEFAULT_CONTROLS_WITH_CREATION}}),Object.defineProperty(e,"DEFAULT_CONTROLS_WITHOUT_CREATION",{enumerable:!0,get:function(){return m.DEFAULT_CONTROLS_WITHOUT_CREATION}})})(xf);var Sv={CENTER:"center",LEFT:"left",RIGHT:"right"},ao={NONE:"none",PRIMARY:"primary",SUCCESS:"success",WARNING:"warning",DANGER:"danger"},ve="bp5";typeof BLUEPRINT_NAMESPACE<"u"?ve=BLUEPRINT_NAMESPACE:typeof REACT_APP_BLUEPRINT_NAMESPACE<"u"&&(ve=REACT_APP_BLUEPRINT_NAMESPACE);var LU="".concat(ve,"-active"),MU="".concat(ve,"-align-left"),jU="".concat(ve,"-align-right"),FU="".concat(ve,"-disabled"),IU="".concat(ve,"-fill"),Vf="".concat(ve,"-large"),UU="".concat(ve,"-loading"),zU="".concat(ve,"-minimal"),HU="".concat(ve,"-outlined"),qf="".concat(ve,"-small");Fn(ao.PRIMARY);Fn(ao.SUCCESS);Fn(ao.WARNING);Fn(ao.DANGER);var WU="".concat(ve,"-text-overflow-ellipsis"),Xh="".concat(ve,"-button"),GU="".concat(Xh,"-spinner"),VU="".concat(Xh,"-text"),su="".concat(ve,"-spinner"),qU="".concat(su,"-animation"),KU="".concat(su,"-head"),YU="".concat(ve,"-no-spin"),XU="".concat(su,"-track"),Jh="".concat(ve,"-icon"),JU="".concat(Jh,"-standard"),QU="".concat(Jh,"-large");function BU(e){switch(e){case Sv.LEFT:return MU;case Sv.RIGHT:return jU;default:return}}function ZU(e){if(e!=null)return e.indexOf("".concat(ve,"-icon-"))===0?e:"".concat(ve,"-icon-").concat(e)}function Fn(e){if(!(e==null||e===ao.NONE))return"".concat(ve,"-intent-").concat(e.toLowerCase())}var Kf=function(e,t){return Kf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},Kf(e,t)};function K_(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Kf(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Pt=function(){return Pt=Object.assign||function(t){for(var n,r=1,a=arguments.length;r Classes.SMALL/LARGE are ignored if size prop is set.";function bv(e){return typeof NODE_ENV<"u"&&NODE_ENV===e}function nz(e,t,n){if(e==null)return e;if(n0){for(var a=0,i=r.timeoutIds;a0){for(var a=0,i=r.requestIds;a0&&n>="0"&&n<="9"?"_"+n+r:""+n.toUpperCase()+r}function fz(e,t){return t===void 0&&(t={}),J_(e,Xf({delimiter:"",transform:cz},t))}var Jf=function(){return Jf=Object.assign||function(t){for(var n,r=1,a=arguments.length;r{if(i=gz(i),i in Ov)return;Ov[i]=!0;const o=i.endsWith(".css"),s=o?'[rel="stylesheet"]':"";if(!!r)for(let h=a.length-1;h>=0;h--){const d=a[h];if(d.href===i&&(!o||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":pz,o||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),o)return new Promise((h,d)=>{u.addEventListener("load",h),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i})};var Vt=function(){return Vt=Object.assign||function(t){for(var n,r=1,a=arguments.length;r0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]import("./allPathsLoader-398c3766.js"),[])];case 2:return[2,r.sent().allPathsLoader];case 3:return[4,xv(()=>import("./splitPathsBySizeLoader-03cadb62.js"),[])];case 4:return[2,r.sent().splitPathsBySizeLoader]}})})}var Ja=function(){function e(){this.defaultLoader="split-by-size",this.loadedIconPaths16=new Map,this.loadedIconPaths20=new Map}return e.setLoaderOptions=function(t){t.loader!==void 0&&(Ar.defaultLoader=t.loader)},e.load=function(t,n,r){return Yr(this,void 0,void 0,function(){var a=this;return Xr(this,function(i){switch(i.label){case 0:return Array.isArray(t)||(t=[t]),[4,Promise.all(t.map(function(o){return a.loadImpl(o,n,r)}))];case 1:return i.sent(),[2]}})})},e.loadAll=function(t){return Yr(this,void 0,void 0,function(){var n,r=this;return Xr(this,function(a){return n=Object.values(Be),wz("[Blueprint] loading all icons",function(){return Yr(r,void 0,void 0,function(){return Xr(this,function(i){switch(i.label){case 0:return[4,Promise.all([this.load(n,Le.STANDARD,t),this.load(n,Le.LARGE,t)])];case 1:return i.sent(),[2]}})})}),[2]})})},e.getPaths=function(t,n){if(this.isValidIconName(t)){var r=n=Le.LARGE,_=m?Le.LARGE:Le.STANDARD,E="0 0 ".concat(_," ").concat(_),v=bz("iconTitle"),y=Vt({fill:a,height:l,role:"img",viewBox:E,width:l},u);return d===null?P.createElement("svg",Vt({"aria-labelledby":p?v:void 0,"data-icon":o,ref:t},y,w,{className:Mn(r,u==null?void 0:u.className)}),p&&P.createElement("title",{id:v},p),n):P.createElement(d,Vt(Vt({"aria-hidden":p?void 0:!0},w),{className:Mn(Nv,"".concat(Nv,"-").concat(o),r),ref:t,title:i}),P.createElement("svg",Vt({"data-icon":o},y,{className:u==null?void 0:u.className}),p&&P.createElement("title",null,p),n))});Z_.displayName="Blueprint5.SVGIconContainer";var ze=P.forwardRef(function(e,t){var n,r,a=e.autoLoad,i=e.className,o=e.color,s=e.icon,l=e.intent,u=e.tagName,h=e.svgProps,d=e.title,p=e.htmlTitle,w=Qh(e,["autoLoad","className","color","icon","intent","tagName","svgProps","title","htmlTitle"]),m=(r=(n=e.iconSize)!==null&&n!==void 0?n:e.size)!==null&&r!==void 0?r:Le.STANDARD,_=P.useState(function(){return typeof s=="string"?Ja.getPaths(s,m):void 0}),E=_[0],v=_[1];if(P.useEffect(function(){var O=!1;if(typeof s=="string"){var D=Ja.getPaths(s,m);D!==void 0?v(D):a?Ja.load(s,m).then(function(){O||v(Ja.getPaths(s,m))}).catch(function(A){console.error("[Blueprint] Icon '".concat(s,"' (").concat(m,"px) could not be loaded."),A)}):console.error("[Blueprint] Icon '".concat(s,"' (").concat(m,"px) is not loaded yet and autoLoad={false}, did you call Icons.load('").concat(s,"', ").concat(m,")?"))}return function(){O=!0}},[a,s,m]),s==null||typeof s=="boolean")return null;if(typeof s!="string")return s;if(E==null){var y=m===Le.STANDARD?JU:m===Le.LARGE?QU:void 0;return P.createElement(u,Pt(Pt({"aria-hidden":d?void 0:!0},tl(w)),{className:Mn(Jh,y,ZU(s),Fn(l),i),"data-icon":s,ref:t,title:p}))}else{var S=E.map(function(O,D){return P.createElement("path",{d:O,key:D,fillRule:"evenodd"})});return P.createElement(Z_,Pt({children:S,className:Mn(Fn(l),i),color:o,htmlTitle:p,iconName:s,ref:t,size:m,svgProps:h,tagName:u,title:d},tl(w)))}});ze.defaultProps={autoLoad:!0,tagName:"span"};ze.displayName="".concat(io,".Icon");var or;(function(e){e[e.SMALL=20]="SMALL",e[e.STANDARD=50]="STANDARD",e[e.LARGE=100]="LARGE"})(or||(or={}));var fn=45,kv="M 50,50 m 0,-".concat(fn," a ").concat(fn,",").concat(fn," 0 1 1 0,").concat(fn*2," a ").concat(fn,",").concat(fn," 0 1 1 0,-").concat(fn*2),za=280,Ez=10,Tz=4,Cz=16,Oz=function(e){K_(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.componentDidUpdate=function(n){n.value!==this.props.value&&this.forceUpdate()},t.prototype.render=function(){var n,r=this.props,a=r.className,i=r.intent,o=r.value,s=r.tagName,l=s===void 0?"div":s,u=Qh(r,["className","intent","value","tagName"]),h=this.getSize(),d=Mn(su,Fn(i),(n={},n[YU]=o!=null,n),a),p=Math.min(Cz,Tz*or.LARGE/h),w=za-za*(o==null?.25:nz(o,0,1));return P.createElement(l,Pt({"aria-label":"loading","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":o===void 0?void 0:o*100,className:d,role:"progressbar"},u),P.createElement(l,{className:qU},P.createElement("svg",{width:h,height:h,strokeWidth:p.toFixed(2),viewBox:this.getViewBox(p)},P.createElement("path",{className:XU,d:kv}),P.createElement("path",{className:KU,d:kv,pathLength:za,strokeDasharray:"".concat(za," ").concat(za),strokeDashoffset:w}))))},t.prototype.validateProps=function(n){var r=n.className,a=r===void 0?"":r,i=n.size;i!=null&&(a.indexOf(qf)>=0||a.indexOf(Vf)>=0)&&console.warn(tz)},t.prototype.getSize=function(){var n=this.props,r=n.className,a=r===void 0?"":r,i=n.size;return i==null?a.indexOf(qf)>=0?or.SMALL:a.indexOf(Vf)>=0?or.LARGE:or.STANDARD:Math.max(Ez,i)},t.prototype.getViewBox=function(n){var r=fn+n/2,a=(50-r).toFixed(2),i=(r*2).toFixed(2);return"".concat(a," ").concat(a," ").concat(i," ").concat(i)},t.displayName="".concat(io,".Spinner"),t}(oz),Bh=P.forwardRef(function(e,t){var n,r=e.children,a=e.tagName,i=a===void 0?"div":a,o=e.title,s=e.className,l=e.ellipsize,u=Qh(e,["children","tagName","title","className","ellipsize"]),h=P.useRef(),d=P.useMemo(function(){return X_(h,t)},[t]),p=P.useState(""),w=p[0],m=p[1],_=P.useState(),E=_[0],v=_[1];return P.useLayoutEffect(function(){var y;((y=h.current)===null||y===void 0?void 0:y.textContent)!=null&&(v(l&&h.current.scrollWidth>h.current.clientWidth),m(h.current.textContent))},[h,r,l]),P.createElement(i,Pt(Pt({},u),{className:Mn((n={},n[WU]=l,n),s),ref:d,title:o??(E?w:void 0)}),r)});Bh.defaultProps={ellipsize:!1};Bh.displayName="".concat(io,".Text");var bt=P.forwardRef(function(e,t){var n=eS(e,t);return P.createElement("button",Pt({type:"button"},tl(e),n),tS(e))});bt.displayName="".concat(io,".Button");var xz=P.forwardRef(function(e,t){var n=e.href,r=e.tabIndex,a=r===void 0?0:r,i=eS(e,t);return P.createElement("a",Pt({role:"button"},tl(e),i,{"aria-disabled":i.disabled,href:i.disabled?void 0:n,tabIndex:i.disabled?-1:a}),tS(e))});xz.displayName="".concat(io,".AnchorButton");function eS(e,t){var n,r=e.active,a=r===void 0?!1:r,i=e.alignText,o=e.fill,s=e.large,l=e.loading,u=l===void 0?!1:l,h=e.minimal,d=e.onBlur,p=e.onKeyDown,w=e.onKeyUp,m=e.outlined,_=e.small,E=e.tabIndex,v=e.disabled||u,y=P.useState(),S=y[0],O=y[1],D=P.useState(!1),A=D[0],b=D[1],C=P.useRef(null),x=P.useCallback(function(H){A&&b(!1),d==null||d(H)},[A,d]),N=P.useCallback(function(H){Ev(H)&&(H.preventDefault(),H.key!==S&&b(!0)),O(H.key),p==null||p(H)},[S,p]),L=P.useCallback(function(H){var lt;Ev(H)&&(b(!1),(lt=C.current)===null||lt===void 0||lt.click()),O(void 0),w==null||w(H)},[w]),z=Mn(Xh,(n={},n[LU]=!v&&(a||A),n[FU]=v,n[IU]=o,n[Vf]=s,n[UU]=u,n[zU]=h,n[HU]=m,n[qf]=_,n),BU(i),Fn(e.intent),e.className);return{className:z,disabled:v,onBlur:x,onClick:v?void 0:e.onClick,onFocus:v?void 0:e.onFocus,onKeyDown:N,onKeyUp:L,ref:X_(C,t),tabIndex:v?-1:E}}function tS(e){var t=e.children,n=e.ellipsizeText,r=e.icon,a=e.loading,i=e.rightIcon,o=e.text,s=e.textClassName,l=!Yf(o)||!Yf(t);return P.createElement(P.Fragment,null,a&&P.createElement(Oz,{key:"loading",className:GU,size:or.SMALL}),P.createElement(ze,{key:"leftIcon",icon:r}),l&&P.createElement(Bh,{key:"text",className:Mn(VU,s),ellipsize:n,tagName:"span"},o,t),P.createElement(ze,{key:"rightIcon",icon:i}))}const Pz="_stream_table_header_main_container_eshmy_1",Nz="_stream_table_header_fn_row_eshmy_7",Dz="_stream_table_right_container_eshmy_15",kz="_stream_table_title_eshmy_23",Az="_hideFieldBtn_eshmy_31",Rz="_dropdownMenu_eshmy_52",$z="_streamtable_vartype_panel_eshmy_107",Ha={stream_table_header_main_container:Pz,stream_table_header_fn_row:Nz,stream_table_right_container:Dz,stream_table_title:kz,hideFieldBtn:Az,dropdownMenu:Rz,streamtable_vartype_panel:$z};function Av(){P.useContext(it);const[e,t]=P.useState(!1);function n(){document.getElementById("hide-fields-list"),t(r=>!r)}return T.jsxs("div",{className:`${Ha.stream_table_header_main_container}`,children:[T.jsx("div",{className:`${Ha.stream_table_header_fn_row}`,children:T.jsxs("div",{id:"hide-fields-dropdown",className:`nav-link dropdown-toggle idaes-nav-button ${Ha.hideFieldBtn}`,"data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",onClick:n,children:[T.jsx("span",{children:"Hide Fields"}),T.jsx("ul",{id:"hide-fields-list",className:`dropdown-menu checkbox-menu ${Ha.dropdownMenu}`,style:{display:e?"block":"none"}})]})}),T.jsx("div",{id:"existing-variable-types",className:`streamtable-vartype-panel ${Ha.streamtable_vartype_panel}`})]})}const Lz="_flowsheet_variable_ul_15yu2_1",Mz="_variables_display_each_unit_label_15yu2_16",Rv={flowsheet_variable_ul:Lz,variables_display_each_unit_label:Mz};function jz(){const{cells:e,model:t,showVariable:n,setShowVariable:r}=P.useContext(it);console.log(e),console.log(t);let a="loading...";return e?a=e.map((o,s)=>{if(o.attrs&&o.attrs.label&&o.attrs.label.text)return T.jsxs("li",{id:`unit_name_${o}`,className:Rv.variables_display_each_unit_label,"data-open":"false","data-which-label":o.attrs.label.text,onClick:l=>Fz(l,r),children:[Object.keys(n).includes(o.attrs.label.text)?T.jsx(Fe,{icon:AT}):T.jsx(Fe,{icon:PT}),T.jsx("span",{children:o.attrs.label.text})]},o.attrs.label.text+s)}):a="Please check flowsheet Joint JS model, looks like it not contain any Cells",Object.keys(n).length>0,T.jsx(T.Fragment,{children:T.jsx("section",{className:"pd-md",children:T.jsx("ul",{className:`${Rv.flowsheet_variable_ul}`,children:a})})})}function Fz(e,t){const r=e.currentTarget.getAttribute("data-which-label");r?(console.log("here"),t(a=>{const i={...a};return i[r]?delete i[r]:i[r]=r,i})):console.error("Click event not receive which variable")}const Iz="_fvContainer_1oimy_1",Uz="_fv_1oimy_1",$v={fvContainer:Iz,fv:Uz};function zz(){const{panelState:e,cells:t}=P.useContext(it),n=e.fv.show;return T.jsxs(T.Fragment,{children:[T.jsx("h1",{children:{}.VITE_TEST}),n&&T.jsx("section",{id:"fvContainer",className:`${$v.fvContainer}`,children:T.jsx("div",{id:"fv",className:`${$v.fv}`})})]})}const Hz="_diagnosticsIssues_container_qe2yw_1",Wz="_diagnosticIssues_each_issue_qe2yw_11",Gz="_activated_qe2yw_36",Vo={diagnosticsIssues_container:Hz,diagnosticIssues_each_issue:Wz,activated:Gz};function Vz(e){let t=e.diagnosticData,n="Loading...";if(t){let r=t.diagnostics_toolbox_report.structural_report.warning[0],a=t.diagnostics_toolbox_report.numerical_report.warning[0],i={structural:r.length,numerical:a.length};const o=Object.keys(i);let s="";!e.whichIssue&&o.length>0?s=o[0]:s=e.whichIssue,n=o.map((l,u)=>T.jsx("div",{className:`${Vo.diagnosticIssues_each_issue} ${l==s?Vo.activated:Vo.deactivated}`,onClick:()=>e.toggleIssue(l),children:T.jsxs("p",{children:[l," issues",T.jsx("sup",{children:i[l]})]})},u))}else console.log("Diagnostic data is not pass from parent!");return T.jsx("div",{className:Vo.diagnosticsIssues_container,children:n})}const qz="_diagnostics_display_main_container_5xc1d_1",Kz="_diagnostic_display_each_section_container_5xc1d_7",Yz="_diagnostic_display_each_config_container_5xc1d_11",Xz="_diagnostics_display_each_severity_main_container_5xc1d_17",Jz="_diagnostic_display_each_severity_title_5xc1d_21",Qz="_diagnostic_display_diagnostic_content_container_5xc1d_31",Bz="_diagnostics_warning_caution_main_container_5xc1d_35",Zz="_diagnostics_display_pre_tag_5xc1d_39",eH="_diagnostics_warning_caution_display_container_5xc1d_53",tH="_warning_5xc1d_57",nH="_caution_5xc1d_65",rH="_diagnostic_display_each_issue_container_5xc1d_73",aH="_diagnostic_display_section_title_5xc1d_79",iH="_diagnostics_display_each_next_step_content_5xc1d_83",oH="_next_step_function_btn_5xc1d_96",sH="_copied_next_step_5xc1d_106",lH="_error_message_5xc1d_127",Q={diagnostics_display_main_container:qz,diagnostic_display_each_section_container:Kz,diagnostic_display_each_config_container:Yz,diagnostics_display_each_severity_main_container:Xz,diagnostic_display_each_severity_title:Jz,diagnostic_display_diagnostic_content_container:Qz,diagnostics_warning_caution_main_container:Bz,diagnostics_display_pre_tag:Zz,diagnostics_warning_caution_display_container:eH,warning:tH,caution:nH,diagnostic_display_each_issue_container:rH,diagnostic_display_section_title:aH,diagnostics_display_each_next_step_content:iH,next_step_function_btn:oH,copied_next_step:sH,error_message:lH};function uH(e){const{diagnosticsNextStepsOutputState:t,setDiagnosticsNextStepsOutputState:n,diagnosticsRunFnNameListState:r,setDiagnosticsRunFnNameListState:a,setDiagnosticsRunnerDisplayState:i}=P.useContext(it),o=e.diagnosticData,s=e.whichIssue;let l="Loading jacobian condition...",u="Loading model statistics structural...",h="Loading warning...",d="Loading caution...",p="Loading suggested next step...",w=0,m=0,_=[];if(s&&o&&o.diagnostics_toolbox_report){const v=o.diagnostics_toolbox_report;l=T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:v.toolbox_jacobian_condation});const y=v.toolbox_model_statistics;y&&y.length>0?u=y.map((b,C)=>T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:b},`model_structural_statistics_content${C}_${b}`)):u=T.jsxs(T.Fragment,{children:[T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:" Model Statistics is not generate by diagnostics toolbox, please run: "}),T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:" dt = DiagnosticsToolbox(model)"}),T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:" dt.report_structural_issues()"}),T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:" dt.report_numerical_issues()"})]});const S=v[s=="structural"?"structural_report":"numerical_report"].warning[0];w=S.length,S&&S.length>0?h=S.map((b,C)=>(b=b.replace("WARNING","Warning"),T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:b},`eachWarning_${C}_${b}`))):h=T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:"No warning."});const O=v[s=="structural"?"structural_report":"numerical_report"].caution;m=O.length,O&&O.length>0?d=O.map((b,C)=>(b=b.replace("CAUTION","Caution"),T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:b},`eachCaution_${C}_${b}`))):d=T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:"No caution."});let D=!1;const A=v.next_steps[s=="structural"?"structural":"numerical"];A.length>0&&(D=!0,_=[...A]),D?p=A.map((b,C)=>T.jsxs("p",{className:`${Q.diagnostics_display_each_next_step_content}`,children:[T.jsx("span",{className:"function_name",children:b}),T.jsx("span",{className:`${Q.next_step_function_btn}`,onClick:()=>{E(b)},children:"Run"}),T.jsx("span",{className:`${Q.next_step_function_btn}`,onClick:cH,children:"Copy"})]},`diagnostics_suggested_next_step_${b}`)):(s=="structural"&&(p="Try to initialize / solve your model and then call report_numerical_issues()"),s=="numerical"&&(p="Try to initialize / solve your model and then call report_numerical_issues()"))}async function E(v){try{if(!v)return;i(v);let y=v.replace("(","").replace(")","");const S="http://localhost:49999/run_diagnostic",D=new URL(window.location.href).searchParams.get("id"),A={function_name:y,id:D},b=await Zn.put(S,A);console.log(b);const C=b.data;n(x=>{const N={...x};return N[v]||(N[v]=[]),N[v]&&N[v].push(C),N})}catch(y){ir("diagnosticFNRunError",!1,y.response.data.error),console.log(y);const S=document.getElementById("diagnosticsRunner_content_container");if(S){const O=` +
${y.response.data.error}
+                    
+ `;S.innerHTML+=O}}}return P.useEffect(()=>{for(let v=0;v<_.length;v++)if(!r.includes(_[v])){const y=_[v];a(S=>{const O=S.map(D=>D);return O.push(y),O})}},[_]),T.jsxs("div",{className:`${Q.diagnostics_display_main_container}`,children:[T.jsxs("div",{className:Q.diagnostic_display_each_section_container,children:[T.jsx("p",{className:Q.diagnostic_display_section_title,children:"Model Statistics"}),s=="structural"||!s?u:l]}),T.jsxs("div",{className:Q.diagnostic_display_each_section_container,children:[T.jsxs("div",{className:Q.diagnostics_warning_caution_main_container,children:[T.jsxs("div",{className:`${Q.diagnostic_display_each_severity_title} ${Q.warning}`,children:["WARNINGS",T.jsx("span",{children:w})]}),T.jsx("div",{className:Q.diagnostics_warning_caution_display_container,children:h})]}),T.jsxs("div",{className:Q.diagnostics_warning_caution_main_container,children:[T.jsxs("div",{className:`${Q.diagnostic_display_each_severity_title} ${Q.caution}`,children:["CAUTIONS",T.jsx("span",{children:m})]}),T.jsx("div",{className:Q.diagnostics_warning_caution_display_container,children:d})]})]}),T.jsxs("div",{className:Q.diagnostic_display_each_section_container,children:[p!="Loading suggested next step..."&&T.jsx("p",{className:Q.diagnostic_display_section_title,children:"Suggested next steps:"}),T.jsx("div",{className:Q.diagnostic_display_diagnostic_content_container,children:p})]})]})}function cH(e){let t=e.currentTarget,n=t.parentElement.querySelector(".function_name");if(!n){console.error("There is an issue with click copy next step function");return}const r=n.textContent||"";navigator.clipboard.writeText(r).then(()=>{let a;a?clearTimeout(a):(t.innerText="Copied",a=setTimeout(()=>{t.innerText="Copy"},900))}).catch(a=>{console.error("Failed to copy text: ",a)})}function fH(){let{server_port:e,diagnosticsRefreshState:t}=P.useContext(it);const[n,r]=P.useState(null),[a,i]=P.useState("structural"),o=s=>{i(s)};return P.useEffect(()=>{const u=`http://localhost:49999/diagnostics?id=${new URL(window.location.href).searchParams.get("id")}`;(async d=>{try{const w=(await Zn.get(d)).data;ir("diagnosticRefresh",!0),r(w)}catch(p){console.error("Fetch diagnostic data error",p),ir("diagnosticRefresh",!1)}})(u)},[t]),T.jsxs(T.Fragment,{children:[T.jsx(Vz,{diagnosticData:n,toggleIssue:o,whichIssue:a}),T.jsx(uH,{diagnosticData:n,whichIssue:a})]})}const dH="_diagnosticsRunner_content_container_151kk_1",Lv={diagnosticsRunner_content_container:dH};function hH(){const{diagnosticsNextStepsOutputState:e,diagnosticsRunnerDisplayState:t,diagnosticsHistoryState:n,setDiagnosticsHistory:r}=P.useContext(it);let a="",i=0;return!t||t=="default"?a="Please select a function to check diagnostics result!":!e[t]||e[t][0].diagnostics_runner_result.length==0?a="Please run diagnostics function first!":e[t]&&e[t]&&(i=e[t].length,a=e[t].map((o,s)=>T.jsx(Sn.Fragment,{children:T.jsx("pre",{id:`diagnostics_log_${s}`,className:Lv.diagnostics_runner_output_pre,children:o.diagnostics_runner_result})},`diagnosticsRunnerDisplayContentContainerContent${s}`))),P.useEffect(()=>{r(o=>i)},[i]),T.jsx("div",{className:Lv.diagnosticsRunner_content_container,id:"diagnosticsRunner_content_container",style:{overflowY:"scroll"},children:a})}const pH="_diagnostics_log_header_history_btn_container_1ynrk_1",gH="_diagnostics_log_header_history_btn_1ynrk_1",mH={diagnostics_log_header_history_btn_container:pH,diagnostics_log_header_history_btn:gH};function vH(){const{diagnosticsHistoryState:e,setDiagnosticsHistory:t,viewInLogPanel:n}=P.useContext(it),[r,a]=P.useState(0),[i,o]=P.useState({hasPrevHistory:!1,hasNextHistory:!1});function s(){r>0&&a(d=>{let p=d;return p-=1,p}),window.location.hash=`#diagnostics_log_${r-1}`}function l(){r{let p=d;return p+=1,p})),window.location.hash=`#diagnostics_log_${r}`}function u(){if(r-1<=0){o(d=>{const p={...d};return p.hasPrevHistory=!1,p});return}if(r-1>=0){o(d=>{const p={...d};return p.hasPrevHistory=!0,p});return}}function h(){if(r==e){o(d=>{const p={...d};return p.hasNextHistory=!1,p});return}if(r{const p={...d};return p.hasNextHistory=!0,p});return}}return P.useEffect(()=>{window.location.hash=`diagnostics_log_${r}`},[n]),P.useEffect(()=>{u(),h(),a(()=>e),window.location.hash=`diagnostics_log_${r-1}`},[e]),P.useEffect(()=>{u(),h(),window.location.hash=`diagnostics_log_${r-1}`},[r]),T.jsxs("div",{id:"diagnostics_log_panel",className:`${mH.diagnostics_log_header_history_btn_container}`,children:[T.jsx(bt,{minimal:!0,disabled:!i.hasPrevHistory,onClick:()=>s(),children:T.jsx(ze,{icon:Be.UNDO,size:20})}),T.jsx(bt,{minimal:!0,disabled:!i.hasNextHistory,onClick:()=>l(),children:T.jsx(ze,{icon:Be.REDO,size:20})})]})}function Mv(){return T.jsx(T.Fragment,{children:T.jsx("div",{id:"stream-table",className:"idaes-container",style:{display:"block"},children:T.jsx("div",{id:"stream-table-container",className:"pd-md tableContainer",children:T.jsx("div",{id:"stream-table-data",className:"ag-theme-alpine"})})})})}const yH=()=>{const{panelState:e,setPanelState:t,fvHeaderState:n,setFvHeaderState:r,diagnosticsRunFnNameListState:a,setDiagnosticsRunnerDisplayState:i,viewInLogPanel:o,setViewInLogPanel:s,setDiagnosticsRefreshState:l}=P.useContext(it),u=n.isShowSteamName,h=n.isShowLabels,[d,p]=P.useState(b());function w(x){Object.keys(o).includes(x)&&s(N=>{const L={...N};return Object.keys(L).forEach(z=>{z==x?L[z]=!0:L[z]=!1}),L})}function m(){return e.diagnostics.show===!0&&o.diagnosticsLogs?T.jsx(hH,{}):e.diagnostics.show===!0&&o.streamTable===!0?T.jsx(Mv,{}):e.diagnostics.show===!1?T.jsx(Mv,{}):T.jsx(T.Fragment,{children:"Bottom panel display error cause by diagnosticsRunnerOrStreamTableDisplay"})}const _={components:T.jsx(jz,{}),flowsheet:T.jsx(zz,{}),diagnostics:T.jsx(fH,{}),streamTableAndDiagnostics:m()},E={components:"Components",flowsheet:"Diagram",diagnostics:"Diagnostics",diagnosticsRunner:"Diagnostics Runner",streamTable:"Stream Table",streamTableAndDiagnostics:"Diagnostics Logs"},v=(x,N)=>(jv(x,y,S,u,h,a,i,o,l),T.jsx(T.Fragment,{children:T.jsx(xf.MosaicWindow,{path:N,createNode:()=>"new",title:E[x],renderToolbar:(L,z)=>T.jsxs("div",{className:"mosaic_customized_toolbar_header",children:[T.jsx("div",{className:"mosaic_customized_toolbar_title_container",children:E[x]==E.streamTableAndDiagnostics?T.jsxs(T.Fragment,{children:[T.jsx("p",{onClick:()=>w("streamTable"),className:` + ${o.streamTable?"mosaic_header_toolbar_title_activate":"mosaic_header_toolbar_title_deactivate"} + mosaic_header_toolbar_title diagnostics_runner_panel_title + `,children:"Stream Table"}),T.jsx("p",{onClick:()=>{e.diagnostics.show&&w("diagnosticsLogs")},className:` + ${o.diagnosticsLogs?"mosaic_header_toolbar_title_activate":"mosaic_header_toolbar_title_deactivate"} + + ${!e.diagnostics.show&&"mosaic_header_tool_bar_fully_deactivate"} + mosaic_header_toolbar_title diagnostics_runner_panel_title + `,children:E[x]})]}):T.jsx("p",{className:"mosaic_header_toolbar_title",children:E[x]})}),T.jsx("div",{className:"mosaic_customized_toolbar_btn_container",children:jv(x,y,S,u,h,a,i,o,l)})]}),children:_[x]})}));function y(){r(x=>({...x,isShowSteamName:!x.isShowSteamName}))}function S(){r(x=>({...x,isShowLabels:!x.isShowLabels}))}function O(x){e.diagnostics.show&&D(x),localStorage.setItem("mosaicLayout",JSON.stringify(x)),p(()=>x)}function D(x){let N,L=localStorage.getItem("diagnosticsPanelParams");L?N=JSON.parse(L):N=A(),Object.keys(x).forEach(z=>{x[z]=="diagnostics"&&(N.direction=x.direction,N.splitPercentage=x.splitPercentage,N.diagnosticsPanelLocationInItem=z,N.diagnosticsPanelLocationInObj=void 0,N.diagnosticsPanelStayWith=void 0),typeof x[z]=="object"&&Object.keys(x[z]).forEach(H=>{if(x[z][H]=="diagnostics"){N.direction=x[z].direction,N.splitPercentage=x[z].splitPercentage;const lt=H=="first"?"second":"first";N.diagnosticsPanelStayWith=x[z][lt],N.diagnosticsPanelLocationInItem=z,N.diagnosticsPanelLocationInObj=H}})}),localStorage.setItem("diagnosticsPanelParams",JSON.stringify(N))}function A(){let x=localStorage.getItem("diagnosticsPanelParams");if(x)return JSON.parse(x);{const N={direction:"row",diagnosticsPanelParamsLocationInItem:"first",diagnosticsPanelLocationInObj:"second",diagnosticsPanelStayWith:"flowsheet",splitPercentage:55};return localStorage.setItem("diagnosticsPanelParams",JSON.stringify(N)),N}}function b(){let x;return e.diagnostics.show&&(x={direction:"column",first:{direction:"row",first:"flowsheet",second:"diagnostics",splitPercentage:55},second:"streamTableAndDiagnostics",splitPercentage:60}),e.diagnostics.show||(x={direction:"column",first:"flowsheet",second:"streamTableAndDiagnostics",splitPercentage:60}),x}function C(){try{if(A(),e.diagnostics.show){let x=JSON.parse(JSON.stringify(d));if(!JSON.stringify(d).includes("diagnostics")){localStorage.getItem("diagnosticsPanelParams")||A();const N=localStorage.getItem("diagnosticsPanelParams");if(N){let L=JSON.parse(N);if(!L.diagnosticsPanelLocationInObj){const z=L.diagnosticsPanelLocationInItem=="first"?"second":"first",H={direction:x.direction?x.direction:"row",splitPercentage:x.splitPercentage?x.splitPercentage:55,first:x.first?x.first:"flowsheet",second:x.second?x.second:"streamTableAndDiagnostics"};x.direction=L.direction?L.direction:"column",x.splitPercentage=L.splitPercentage?L.splitPercentage:55,x[L.diagnosticsPanelLocationInItem]="diagnostics",x[z]=H}if(L.diagnosticsPanelLocationInObj){const z=L.diagnosticsPanelStayWith?L.diagnosticsPanelStayWith:"flowsheet";let H=Object.keys(x).find(Or=>{if(x[Or]==z)return Or});const lt=z=="flowsheet"?"streamTableAndDiagnostics":"flowsheet",on=H=="first"?"second":"first";H||(H="first");const Ut={direction:L.direction?L.direction:"column",splitPercentage:x.splitPercentage?x.splitPercentage:55};Ut[H]=z,H==L.diagnosticsPanelLocationInObj&&(H=="first"?L.diagnosticsPanelLocationInObj="second":L.diagnosticsPanelLocationInObj="first"),Ut[L.diagnosticsPanelLocationInObj]="diagnostics",x=JSON.parse(JSON.stringify(x)),x[H]=Ut,x[on]=lt}}}return x}if(!e.diagnostics.show){let x=JSON.stringify(d),N=JSON.parse(x);return Object.keys(N).forEach(L=>{if(N[L]=="diagnostics"){delete N[L];const z=L=="first"?"second":"first",H=JSON.parse(JSON.stringify(N[z]));N.first=H.first,N.second=H.second,N.direction=H.direction,N.splitPercentage=H.splitPercentage}}),Object.keys(N).forEach(L=>{typeof N[L]=="object"&&Object.keys(N[L]).forEach(z=>{N[L][z]=="diagnostics"&&(delete N[L][z],N[L].first?N[L]=N[L].first:N[L]=N[L].second)})}),N}}catch{console.log("error in get mosaic layout rest layout"),b()}}return P.useEffect(()=>{p(()=>{const x=localStorage.getItem("mosaicLayout");return x?JSON.parse(x):b()})},[e.diagnostics.show]),T.jsx(xf.Mosaic,{renderTile:v,onChange:O,initialValue:C()})};function jv(e,t,n,r,a,i,o,s,l){switch(e){case"components":return T.jsxs("div",{className:"mosaic_toolbar_btn_container",children:[T.jsx(bt,{minimal:!0,children:T.jsx(ze,{icon:Be.MINIMIZE,size:20})}),T.jsx(bt,{minimal:!0,children:T.jsx(ze,{icon:Be.MAXIMIZE,size:20})}),T.jsx(bt,{minimal:!0,children:T.jsx(ze,{icon:Be.CROSS,size:20})})]});case"flowsheet":return T.jsxs("div",{className:"mosaic_toolbar_btn_container",children:[T.jsx(bt,{id:"zoom-in-btn",minimal:!0,children:T.jsx(ze,{icon:Be.ZOOM_IN,size:20})}),T.jsx(bt,{id:"zoom-out-btn",minimal:!0,children:T.jsx(ze,{icon:Be.ZOOM_OUT,size:20})}),T.jsx(bt,{id:"zoom-to-fit",minimal:!0,children:T.jsx(ze,{icon:Be.ZOOM_TO_FIT,size:20})}),T.jsxs(bt,{className:"mosaic_flowsheet_header_view",minimal:!0,children:[T.jsx(ze,{icon:Be.EYE_OPEN,size:20}),T.jsxs("ul",{className:"mosaic_dropdown_view",children:[T.jsxs("li",{id:"stream-names-toggle",onClick:t,"data-toggle":`${r}`,children:[r?T.jsx(Fe,{icon:Lg,className:"mosaic_toolbar_diagram_view_icon_stroke_only"}):T.jsx(Fe,{icon:Mg,className:"mosaic_toolbar_diagram_view_icon_stroke_only"}),T.jsx("span",{children:"Stream Name"})]}),T.jsxs("li",{id:"show-label-toggle",onClick:n,"data-toggle":a?"false":"true",children:[a?T.jsx(Fe,{icon:Lg,className:"mosaic_toolbar_diagram_view_icon_stroke_only"}):T.jsx(Fe,{icon:Mg,className:"mosaic_toolbar_diagram_view_icon_stroke_only"}),T.jsx("span",{children:"Labels"})]})]})]}),T.jsxs(bt,{className:"mosaic_flowsheet_header_download",minimal:!0,children:[T.jsx(ze,{icon:Be.BRING_DATA,size:20}),T.jsxs("ul",{id:"flowsheet_component_header_dropdown_container",className:"mosaic_dropdown_download",children:[T.jsx("li",{id:"headerExportImageBtn",children:"Export PNG"}),T.jsx("li",{id:"headerExportSvgBtn",children:"Export SVG"})]})]})]});case"diagnostics":let u=function(){l(p=>!p)};return T.jsxs("div",{className:"mosaic_toolbar_btn_container",children:[T.jsx("p",{className:"mosaic_diagnostic_toolbar_content",children:"BLOCK: FLOWSHEET"}),T.jsxs("div",{className:"mosaic_toolbar_btn_icon_with_text clickable_btn",onClick:()=>u(),children:[T.jsx(ze,{icon:Be.REFRESH,size:20}),T.jsx("span",{className:"mosaic_toolbar_btn_icon_with_text_text",children:"Refresh"})]})]});case"streamTable":return T.jsx("div",{className:"mosaic_toolbar_btn_container",children:T.jsx(Av,{})});case"streamTableAndDiagnostics":return T.jsxs("div",{className:"mosaic_toolbar_btn_container",children:[!s.diagnosticsLogs&&T.jsx(Av,{}),s.diagnosticsLogs&&T.jsx(vH,{})]});case"diagnosticsRunner":let h=function(p){o(p.currentTarget.value)};const d=i.map((p,w)=>T.jsx("option",{value:`${p}`,children:p},`diagnosticsRunnerSelection${p}`));return T.jsx("div",{className:"mosaic_toolbar_btn_container",children:T.jsxs("select",{name:"diagnosticsRunnerSelection",id:"",className:"mosaic_diagnosticsRunner_select",onChange:h,children:[T.jsx("option",{value:"default",children:"Select a function"}),d]})});default:return T.jsx(T.Fragment,{})}}function wH(e){return e.messageType&&e.messageType,T.jsx(T.Fragment,{children:T.jsx("div",{className:os.message_bar_container,id:"messageBarContainer"})})}const _H="_flowsheetWrapper_11hj9_1",SH={flowsheetWrapper:_H};function bH(){let{server_port:e,fv_id:t,panelState:n,viewInLogPanel:r}=P.useContext(it);const a=n.fv.show,i=n.diagnostics.show,o=n.streamTable.show;return P.useEffect(()=>{let s;return s?s=void 0:(e=="5173"?e=8e3:e=e,s=new MO(t,e,a,!1,o,r)),()=>{s&&typeof s.cleanToolBarEvent=="function"&&s.cleanToolBarEvent()}},[a,o,i,r]),T.jsxs("div",{id:"flowsheet-wrapper",className:SH.flowsheetWrapper,children:[T.jsx(yH,{}),T.jsx(wH,{})]})}function EH(){return T.jsxs("main",{id:"main",className:"main",children:[T.jsx(uC,{}),T.jsx(bH,{})]})}localStorage.getItem("appSetting")||localStorage.setItem("appSetting","{}");dc.createRoot(document.getElementById("root")).render(T.jsx(Nb,{children:T.jsx(EH,{})}));export{Le as I,Yr as _,Xr as a,xv as b,fz as p}; diff --git a/idaes_ui/fv/static/assets/index-3f372414.js b/idaes_ui/fv/static/assets/index-3f372414.js new file mode 100644 index 00000000..9d50037f --- /dev/null +++ b/idaes_ui/fv/static/assets/index-3f372414.js @@ -0,0 +1,854 @@ +var nS=Object.defineProperty;var rS=(e,t,n)=>t in e?nS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var U=(e,t,n)=>(rS(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();var $=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Bf(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),n}var Fv={exports:{}},rl={},Iv={exports:{}},Y={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ri=Symbol.for("react.element"),aS=Symbol.for("react.portal"),iS=Symbol.for("react.fragment"),oS=Symbol.for("react.strict_mode"),sS=Symbol.for("react.profiler"),lS=Symbol.for("react.provider"),uS=Symbol.for("react.context"),cS=Symbol.for("react.forward_ref"),fS=Symbol.for("react.suspense"),dS=Symbol.for("react.memo"),hS=Symbol.for("react.lazy"),Zh=Symbol.iterator;function pS(e){return e===null||typeof e!="object"?null:(e=Zh&&e[Zh]||e["@@iterator"],typeof e=="function"?e:null)}var Uv={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},zv=Object.assign,Hv={};function pa(e,t,n){this.props=e,this.context=t,this.refs=Hv,this.updater=n||Uv}pa.prototype.isReactComponent={};pa.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};pa.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Wv(){}Wv.prototype=pa.prototype;function Zf(e,t,n){this.props=e,this.context=t,this.refs=Hv,this.updater=n||Uv}var ed=Zf.prototype=new Wv;ed.constructor=Zf;zv(ed,pa.prototype);ed.isPureReactComponent=!0;var ep=Array.isArray,Gv=Object.prototype.hasOwnProperty,td={current:null},Vv={key:!0,ref:!0,__self:!0,__source:!0};function qv(e,t,n){var r,a={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Gv.call(t,r)&&!Vv.hasOwnProperty(r)&&(a[r]=t[r]);var s=arguments.length-2;if(s===1)a.children=n;else if(1>>1,Se=F[he];if(0>>1;hea(lu,q))qna(so,lu)?(F[he]=so,F[qn]=q,he=qn):(F[he]=lu,F[Vn]=q,he=Vn);else if(qna(so,q))F[he]=so,F[qn]=q,he=qn;else break e}}return V}function a(F,V){var q=F.sortIndex-V.sortIndex;return q!==0?q:F.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],u=[],h=1,d=null,p=3,w=!1,m=!1,_=!1,E=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(F){for(var V=n(u);V!==null;){if(V.callback===null)r(u);else if(V.startTime<=F)r(u),V.sortIndex=V.expirationTime,t(l,V);else break;V=n(u)}}function O(F){if(_=!1,S(F),!m)if(n(l)!==null)m=!0,Ut(D);else{var V=n(u);V!==null&&Or(O,V.startTime-F)}}function D(F,V){m=!1,_&&(_=!1,v(C),C=-1),w=!0;var q=p;try{for(S(V),d=n(l);d!==null&&(!(d.expirationTime>V)||F&&!L());){var he=d.callback;if(typeof he=="function"){d.callback=null,p=d.priorityLevel;var Se=he(d.expirationTime<=V);V=e.unstable_now(),typeof Se=="function"?d.callback=Se:d===n(l)&&r(l),S(V)}else r(l);d=n(l)}if(d!==null)var oo=!0;else{var Vn=n(u);Vn!==null&&Or(O,Vn.startTime-V),oo=!1}return oo}finally{d=null,p=q,w=!1}}var A=!1,b=null,C=-1,x=5,N=-1;function L(){return!(e.unstable_now()-NF||125he?(F.sortIndex=q,t(u,F),n(l)===null&&F===n(u)&&(_?(v(C),C=-1):_=!0,Or(O,q-he))):(F.sortIndex=Se,t(l,F),m||w||(m=!0,Ut(D))),F},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(F){var V=p;return function(){var q=p;p=V;try{return F.apply(this,arguments)}finally{p=q}}}})(Jv);Xv.exports=Jv;var CS=Xv.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Qv=P,nt=CS;function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hc=Object.prototype.hasOwnProperty,OS=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,np={},rp={};function xS(e){return hc.call(rp,e)?!0:hc.call(np,e)?!1:OS.test(e)?rp[e]=!0:(np[e]=!0,!1)}function PS(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function NS(e,t,n,r){if(t===null||typeof t>"u"||PS(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ge(e,t,n,r,a,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){xe[e]=new Ge(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];xe[t]=new Ge(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){xe[e]=new Ge(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){xe[e]=new Ge(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){xe[e]=new Ge(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){xe[e]=new Ge(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){xe[e]=new Ge(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){xe[e]=new Ge(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){xe[e]=new Ge(e,5,!1,e.toLowerCase(),null,!1,!1)});var rd=/[\-:]([a-z])/g;function ad(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(rd,ad);xe[t]=new Ge(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(rd,ad);xe[t]=new Ge(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(rd,ad);xe[t]=new Ge(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){xe[e]=new Ge(e,1,!1,e.toLowerCase(),null,!1,!1)});xe.xlinkHref=new Ge("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){xe[e]=new Ge(e,1,!1,e.toLowerCase(),null,!0,!0)});function id(e,t,n,r){var a=xe.hasOwnProperty(t)?xe[t]:null;(a!==null?a.type!==0:r||!(2s||a[o]!==i[s]){var l=` +`+a[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{fu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Wa(e):""}function DS(e){switch(e.tag){case 5:return Wa(e.type);case 16:return Wa("Lazy");case 13:return Wa("Suspense");case 19:return Wa("SuspenseList");case 0:case 2:case 15:return e=du(e.type,!1),e;case 11:return e=du(e.type.render,!1),e;case 1:return e=du(e.type,!0),e;default:return""}}function vc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case $r:return"Fragment";case Rr:return"Portal";case pc:return"Profiler";case od:return"StrictMode";case gc:return"Suspense";case mc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ey:return(e.displayName||"Context")+".Consumer";case Zv:return(e._context.displayName||"Context")+".Provider";case sd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ld:return t=e.displayName||null,t!==null?t:vc(e.type)||"Memo";case dn:t=e._payload,e=e._init;try{return vc(e(t))}catch{}}return null}function kS(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return vc(t);case 8:return t===od?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function kn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ny(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function AS(e){var t=ny(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function co(e){e._valueTracker||(e._valueTracker=AS(e))}function ry(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ny(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function gs(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function yc(e,t){var n=t.checked;return ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ip(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=kn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ay(e,t){t=t.checked,t!=null&&id(e,"checked",t,!1)}function wc(e,t){ay(e,t);var n=kn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?_c(e,t.type,n):t.hasOwnProperty("defaultValue")&&_c(e,t.type,kn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function op(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function _c(e,t,n){(t!=="number"||gs(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ga=Array.isArray;function Jr(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=fo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function fi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Qa={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},RS=["Webkit","ms","Moz","O"];Object.keys(Qa).forEach(function(e){RS.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qa[t]=Qa[e]})});function ly(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Qa.hasOwnProperty(e)&&Qa[e]?(""+t).trim():t+"px"}function uy(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,a=ly(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}var $S=ce({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ec(e,t){if(t){if($S[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function Tc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Cc=null;function ud(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Oc=null,Qr=null,Br=null;function up(e){if(e=Mi(e)){if(typeof Oc!="function")throw Error(R(280));var t=e.stateNode;t&&(t=ll(t),Oc(e.stateNode,e.type,t))}}function cy(e){Qr?Br?Br.push(e):Br=[e]:Qr=e}function fy(){if(Qr){var e=Qr,t=Br;if(Br=Qr=null,up(e),t)for(e=0;e>>=0,e===0?32:31-(VS(e)/qS|0)|0}var ho=64,po=4194304;function Va(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ws(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,a=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~a;s!==0?r=Va(s):(i&=o,i!==0&&(r=Va(i)))}else o=n&~a,o!==0?r=Va(o):i!==0&&(r=Va(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&a)&&(a=r&-r,i=t&-t,a>=i||a===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function $i(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ot(t),e[t]=n}function JS(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Za),yp=String.fromCharCode(32),wp=!1;function ky(e,t){switch(e){case"keyup":return T2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ay(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Lr=!1;function O2(e,t){switch(e){case"compositionend":return Ay(t);case"keypress":return t.which!==32?null:(wp=!0,yp);case"textInput":return e=t.data,e===yp&&wp?null:e;default:return null}}function x2(e,t){if(Lr)return e==="compositionend"||!vd&&ky(e,t)?(e=Ny(),Xo=pd=vn=null,Lr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ep(n)}}function My(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?My(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jy(){for(var e=window,t=gs();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=gs(e.document)}return t}function yd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function M2(e){var t=jy(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&My(n.ownerDocument.documentElement,n)){if(r!==null&&yd(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=n.textContent.length,i=Math.min(r.start,a);r=r.end===void 0?i:Math.min(r.end,a),!e.extend&&i>r&&(a=r,r=i,i=a),a=Tp(n,i);var o=Tp(n,r);a&&o&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Mr=null,Ac=null,ti=null,Rc=!1;function Cp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Rc||Mr==null||Mr!==gs(r)||(r=Mr,"selectionStart"in r&&yd(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ti&&vi(ti,r)||(ti=r,r=bs(Ac,"onSelect"),0Ir||(e.current=Ic[Ir],Ic[Ir]=null,Ir--)}function ee(e,t){Ir++,Ic[Ir]=e.current,e.current=t}var An={},Ie=Un(An),Ke=Un(!1),ur=An;function aa(e,t){var n=e.type.contextTypes;if(!n)return An;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in n)a[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Ye(e){return e=e.childContextTypes,e!=null}function Ts(){ie(Ke),ie(Ie)}function Ap(e,t,n){if(Ie.current!==An)throw Error(R(168));ee(Ie,t),ee(Ke,n)}function qy(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var a in r)if(!(a in t))throw Error(R(108,kS(e)||"Unknown",a));return ce({},n,r)}function Cs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||An,ur=Ie.current,ee(Ie,e),ee(Ke,Ke.current),!0}function Rp(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=qy(e,t,ur),r.__reactInternalMemoizedMergedChildContext=e,ie(Ke),ie(Ie),ee(Ie,e)):ie(Ke),ee(Ke,n)}var Wt=null,ul=!1,Ou=!1;function Ky(e){Wt===null?Wt=[e]:Wt.push(e)}function Y2(e){ul=!0,Ky(e)}function zn(){if(!Ou&&Wt!==null){Ou=!0;var e=0,t=B;try{var n=Wt;for(B=1;e>=o,a-=o,qt=1<<32-Ot(t)+a|n<C?(x=b,b=null):x=b.sibling;var N=p(v,b,S[C],O);if(N===null){b===null&&(b=x);break}e&&b&&N.alternate===null&&t(v,b),y=i(N,y,C),A===null?D=N:A.sibling=N,A=N,b=x}if(C===S.length)return n(v,b),se&&Yn(v,C),D;if(b===null){for(;CC?(x=b,b=null):x=b.sibling;var L=p(v,b,N.value,O);if(L===null){b===null&&(b=x);break}e&&b&&L.alternate===null&&t(v,b),y=i(L,y,C),A===null?D=L:A.sibling=L,A=L,b=x}if(N.done)return n(v,b),se&&Yn(v,C),D;if(b===null){for(;!N.done;C++,N=S.next())N=d(v,N.value,O),N!==null&&(y=i(N,y,C),A===null?D=N:A.sibling=N,A=N);return se&&Yn(v,C),D}for(b=r(v,b);!N.done;C++,N=S.next())N=w(b,v,C,N.value,O),N!==null&&(e&&N.alternate!==null&&b.delete(N.key===null?C:N.key),y=i(N,y,C),A===null?D=N:A.sibling=N,A=N);return e&&b.forEach(function(z){return t(v,z)}),se&&Yn(v,C),D}function E(v,y,S,O){if(typeof S=="object"&&S!==null&&S.type===$r&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case uo:e:{for(var D=S.key,A=y;A!==null;){if(A.key===D){if(D=S.type,D===$r){if(A.tag===7){n(v,A.sibling),y=a(A,S.props.children),y.return=v,v=y;break e}}else if(A.elementType===D||typeof D=="object"&&D!==null&&D.$$typeof===dn&&Up(D)===A.type){n(v,A.sibling),y=a(A,S.props),y.ref=Ra(v,A,S),y.return=v,v=y;break e}n(v,A);break}else t(v,A);A=A.sibling}S.type===$r?(y=lr(S.props.children,v.mode,O,S.key),y.return=v,v=y):(O=rs(S.type,S.key,S.props,null,v.mode,O),O.ref=Ra(v,y,S),O.return=v,v=O)}return o(v);case Rr:e:{for(A=S.key;y!==null;){if(y.key===A)if(y.tag===4&&y.stateNode.containerInfo===S.containerInfo&&y.stateNode.implementation===S.implementation){n(v,y.sibling),y=a(y,S.children||[]),y.return=v,v=y;break e}else{n(v,y);break}else t(v,y);y=y.sibling}y=$u(S,v.mode,O),y.return=v,v=y}return o(v);case dn:return A=S._init,E(v,y,A(S._payload),O)}if(Ga(S))return m(v,y,S,O);if(Pa(S))return _(v,y,S,O);So(v,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,y!==null&&y.tag===6?(n(v,y.sibling),y=a(y,S),y.return=v,v=y):(n(v,y),y=Ru(S,v.mode,O),y.return=v,v=y),o(v)):n(v,y)}return E}var oa=t0(!0),n0=t0(!1),ji={},jt=Un(ji),Si=Un(ji),bi=Un(ji);function nr(e){if(e===ji)throw Error(R(174));return e}function xd(e,t){switch(ee(bi,t),ee(Si,e),ee(jt,ji),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:bc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=bc(t,e)}ie(jt),ee(jt,t)}function sa(){ie(jt),ie(Si),ie(bi)}function r0(e){nr(bi.current);var t=nr(jt.current),n=bc(t,e.type);t!==n&&(ee(Si,e),ee(jt,n))}function Pd(e){Si.current===e&&(ie(jt),ie(Si))}var le=Un(0);function ks(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var xu=[];function Nd(){for(var e=0;en?n:4,e(!0);var r=Pu.transition;Pu.transition={};try{e(!1),t()}finally{B=n,Pu.transition=r}}function w0(){return yt().memoizedState}function B2(e,t,n){var r=Pn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},_0(e))S0(t,n);else if(n=Qy(e,t,n,r),n!==null){var a=He();xt(n,e,r,a),b0(n,t,r)}}function Z2(e,t,n){var r=Pn(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(_0(e))S0(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,s=i(o,n);if(a.hasEagerState=!0,a.eagerState=s,Nt(s,o)){var l=t.interleaved;l===null?(a.next=a,Cd(t)):(a.next=l.next,l.next=a),t.interleaved=a;return}}catch{}finally{}n=Qy(e,t,a,r),n!==null&&(a=He(),xt(n,e,r,a),b0(n,t,r))}}function _0(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function S0(e,t){ni=As=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function b0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,fd(e,n)}}var Rs={readContext:vt,useCallback:Ne,useContext:Ne,useEffect:Ne,useImperativeHandle:Ne,useInsertionEffect:Ne,useLayoutEffect:Ne,useMemo:Ne,useReducer:Ne,useRef:Ne,useState:Ne,useDebugValue:Ne,useDeferredValue:Ne,useTransition:Ne,useMutableSource:Ne,useSyncExternalStore:Ne,useId:Ne,unstable_isNewReconciler:!1},eb={readContext:vt,useCallback:function(e,t){return At().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:Hp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Zo(4194308,4,p0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Zo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Zo(4,2,e,t)},useMemo:function(e,t){var n=At();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=At();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=B2.bind(null,ue,e),[r.memoizedState,e]},useRef:function(e){var t=At();return e={current:e},t.memoizedState=e},useState:zp,useDebugValue:$d,useDeferredValue:function(e){return At().memoizedState=e},useTransition:function(){var e=zp(!1),t=e[0];return e=Q2.bind(null,e[1]),At().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ue,a=At();if(se){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),Ee===null)throw Error(R(349));fr&30||o0(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,Hp(l0.bind(null,r,i,e),[e]),r.flags|=2048,Ci(9,s0.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=At(),t=Ee.identifierPrefix;if(se){var n=Kt,r=qt;n=(r&~(1<<32-Ot(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ei++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Rt]=t,e[_i]=r,k0(e,t,!1,!1),t.stateNode=e;e:{switch(o=Tc(n,r),n){case"dialog":te("cancel",e),te("close",e),a=r;break;case"iframe":case"object":case"embed":te("load",e),a=r;break;case"video":case"audio":for(a=0;aua&&(t.flags|=128,r=!0,$a(i,!1),t.lanes=4194304)}else{if(!r)if(e=ks(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),$a(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!se)return De(t),null}else 2*pe()-i.renderingStartTime>ua&&n!==1073741824&&(t.flags|=128,r=!0,$a(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=pe(),t.sibling=null,n=le.current,ee(le,r?n&1|2:n&1),t):(De(t),null);case 22:case 23:return Ud(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ze&1073741824&&(De(t),t.subtreeFlags&6&&(t.flags|=8192)):De(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function lb(e,t){switch(_d(t),t.tag){case 1:return Ye(t.type)&&Ts(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return sa(),ie(Ke),ie(Ie),Nd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Pd(t),null;case 13:if(ie(le),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));ia()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ie(le),null;case 4:return sa(),null;case 10:return Td(t.type._context),null;case 22:case 23:return Ud(),null;case 24:return null;default:return null}}var Eo=!1,Me=!1,ub=typeof WeakSet=="function"?WeakSet:Set,j=null;function Wr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){fe(e,t,r)}else n.current=null}function Qc(e,t,n){try{n()}catch(r){fe(e,t,r)}}var Qp=!1;function cb(e,t){if($c=_s,e=jy(),yd(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,s=-1,l=-1,u=0,h=0,d=e,p=null;t:for(;;){for(var w;d!==n||a!==0&&d.nodeType!==3||(s=o+a),d!==i||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(w=d.firstChild)!==null;)p=d,d=w;for(;;){if(d===e)break t;if(p===n&&++u===a&&(s=o),p===i&&++h===r&&(l=o),(w=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=w}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Lc={focusedElem:e,selectionRange:n},_s=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var _=m.memoizedProps,E=m.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?_:St(t.type,_),E);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(O){fe(t,t.return,O)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return m=Qp,Qp=!1,m}function ri(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,i!==void 0&&Qc(t,n,i)}a=a.next}while(a!==r)}}function dl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Bc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function $0(e){var t=e.alternate;t!==null&&(e.alternate=null,$0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Rt],delete t[_i],delete t[Fc],delete t[q2],delete t[K2])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function L0(e){return e.tag===5||e.tag===3||e.tag===4}function Bp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||L0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Zc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Es));else if(r!==4&&(e=e.child,e!==null))for(Zc(e,t,n),e=e.sibling;e!==null;)Zc(e,t,n),e=e.sibling}function ef(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ef(e,t,n),e=e.sibling;e!==null;)ef(e,t,n),e=e.sibling}var Ce=null,Et=!1;function sn(e,t,n){for(n=n.child;n!==null;)M0(e,t,n),n=n.sibling}function M0(e,t,n){if(Mt&&typeof Mt.onCommitFiberUnmount=="function")try{Mt.onCommitFiberUnmount(al,n)}catch{}switch(n.tag){case 5:Me||Wr(n,t);case 6:var r=Ce,a=Et;Ce=null,sn(e,t,n),Ce=r,Et=a,Ce!==null&&(Et?(e=Ce,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ce.removeChild(n.stateNode));break;case 18:Ce!==null&&(Et?(e=Ce,n=n.stateNode,e.nodeType===8?Cu(e.parentNode,n):e.nodeType===1&&Cu(e,n),gi(e)):Cu(Ce,n.stateNode));break;case 4:r=Ce,a=Et,Ce=n.stateNode.containerInfo,Et=!0,sn(e,t,n),Ce=r,Et=a;break;case 0:case 11:case 14:case 15:if(!Me&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var i=a,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Qc(n,t,o),a=a.next}while(a!==r)}sn(e,t,n);break;case 1:if(!Me&&(Wr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){fe(n,t,s)}sn(e,t,n);break;case 21:sn(e,t,n);break;case 22:n.mode&1?(Me=(r=Me)||n.memoizedState!==null,sn(e,t,n),Me=r):sn(e,t,n);break;default:sn(e,t,n)}}function Zp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ub),t.forEach(function(r){var a=wb.bind(null,e,r);n.has(r)||(n.add(r),r.then(a,a))})}}function _t(e,t){var n=t.deletions;if(n!==null)for(var r=0;ra&&(a=o),r&=~i}if(r=a,r=pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*db(r/1960))-r,10e?16:e,yn===null)var r=!1;else{if(e=yn,yn=null,Ms=0,J&6)throw Error(R(331));var a=J;for(J|=4,j=e.current;j!==null;){var i=j,o=i.child;if(j.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lpe()-Fd?sr(e,0):jd|=n),Xe(e,t)}function G0(e,t){t===0&&(e.mode&1?(t=po,po<<=1,!(po&130023424)&&(po=4194304)):t=1);var n=He();e=Bt(e,t),e!==null&&($i(e,t,n),Xe(e,n))}function yb(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),G0(e,n)}function wb(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),G0(e,n)}var V0;V0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ke.current)qe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return qe=!1,ob(e,t,n);qe=!!(e.flags&131072)}else qe=!1,se&&t.flags&1048576&&Yy(t,xs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;es(e,t),e=t.pendingProps;var a=aa(t,Ie.current);ea(t,n),a=kd(null,t,r,e,a,n);var i=Ad();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ye(r)?(i=!0,Cs(t)):i=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,Od(t),a.updater=cl,t.stateNode=a,a._reactInternals=t,Gc(t,r,e,n),t=Kc(null,t,r,!0,i,n)):(t.tag=0,se&&i&&wd(t),Ue(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(es(e,t),e=t.pendingProps,a=r._init,r=a(r._payload),t.type=r,a=t.tag=Sb(r),e=St(r,e),a){case 0:t=qc(null,t,r,e,n);break e;case 1:t=Yp(null,t,r,e,n);break e;case 11:t=qp(null,t,r,e,n);break e;case 14:t=Kp(null,t,r,St(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:St(r,a),qc(e,t,r,a,n);case 1:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:St(r,a),Yp(e,t,r,a,n);case 3:e:{if(P0(t),e===null)throw Error(R(387));r=t.pendingProps,i=t.memoizedState,a=i.element,By(e,t),Ds(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){a=la(Error(R(423)),t),t=Xp(e,t,r,n,a);break e}else if(r!==a){a=la(Error(R(424)),t),t=Xp(e,t,r,n,a);break e}else for(et=Cn(t.stateNode.containerInfo.firstChild),tt=t,se=!0,Tt=null,n=n0(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ia(),r===a){t=Zt(e,t,n);break e}Ue(e,t,r,n)}t=t.child}return t;case 5:return r0(t),e===null&&zc(t),r=t.type,a=t.pendingProps,i=e!==null?e.memoizedProps:null,o=a.children,Mc(r,a)?o=null:i!==null&&Mc(r,i)&&(t.flags|=32),x0(e,t),Ue(e,t,o,n),t.child;case 6:return e===null&&zc(t),null;case 13:return N0(e,t,n);case 4:return xd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=oa(t,null,r,n):Ue(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:St(r,a),qp(e,t,r,a,n);case 7:return Ue(e,t,t.pendingProps,n),t.child;case 8:return Ue(e,t,t.pendingProps.children,n),t.child;case 12:return Ue(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,i=t.memoizedProps,o=a.value,ee(Ps,r._currentValue),r._currentValue=o,i!==null)if(Nt(i.value,o)){if(i.children===a.children&&!Ke.current){t=Zt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Yt(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var h=u.pending;h===null?l.next=l:(l.next=h.next,h.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Hc(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(R(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Hc(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ue(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,ea(t,n),a=vt(a),r=r(a),t.flags|=1,Ue(e,t,r,n),t.child;case 14:return r=t.type,a=St(r,t.pendingProps),a=St(r.type,a),Kp(e,t,r,a,n);case 15:return C0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:St(r,a),es(e,t),t.tag=1,Ye(r)?(e=!0,Cs(t)):e=!1,ea(t,n),e0(t,r,a),Gc(t,r,a,n),Kc(null,t,r,!0,e,n);case 19:return D0(e,t,n);case 22:return O0(e,t,n)}throw Error(R(156,t.tag))};function q0(e,t){return yy(e,t)}function _b(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pt(e,t,n,r){return new _b(e,t,n,r)}function Hd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Sb(e){if(typeof e=="function")return Hd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===sd)return 11;if(e===ld)return 14}return 2}function Nn(e,t){var n=e.alternate;return n===null?(n=pt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function rs(e,t,n,r,a,i){var o=2;if(r=e,typeof e=="function")Hd(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case $r:return lr(n.children,a,i,t);case od:o=8,a|=8;break;case pc:return e=pt(12,n,t,a|2),e.elementType=pc,e.lanes=i,e;case gc:return e=pt(13,n,t,a),e.elementType=gc,e.lanes=i,e;case mc:return e=pt(19,n,t,a),e.elementType=mc,e.lanes=i,e;case ty:return pl(n,a,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Zv:o=10;break e;case ey:o=9;break e;case sd:o=11;break e;case ld:o=14;break e;case dn:o=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=pt(o,n,t,a),t.elementType=e,t.type=r,t.lanes=i,t}function lr(e,t,n,r){return e=pt(7,e,r,t),e.lanes=n,e}function pl(e,t,n,r){return e=pt(22,e,r,t),e.elementType=ty,e.lanes=n,e.stateNode={isHidden:!1},e}function Ru(e,t,n){return e=pt(6,e,null,t),e.lanes=n,e}function $u(e,t,n){return t=pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function bb(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=pu(0),this.expirationTimes=pu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pu(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Wd(e,t,n,r,a,i,o,s,l){return e=new bb(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=pt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Od(i),e}function Eb(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(J0)}catch(e){console.error(e)}}J0(),Yv.exports=rt;var Q0=Yv.exports,sg=Q0;dc.createRoot=sg.createRoot,dc.hydrateRoot=sg.hydrateRoot;function Pb(){{const e=window.location.port,n=new URLSearchParams(window.location.search).get("id");return{server_port:e,fv_id:n}}}const it=P.createContext({});function Nb({children:e}){const t=Db(),{server_port:n,fv_id:r}=Pb()??{server_port:"49999",fv_id:"sample_visualization"},[a,i]=P.useState({}),[o,s]=P.useState({fvWrapper:{panelName:"fvWrapper",show:!0,size:{maxSize:100,defaultSize:70}},fv:{panelName:"Flowsheet",show:!0,size:{minSize:100,defaultSize:70}},diagnostics:{panelName:"Diagnostics",show:t.diagnosticsPanelShow==null?!1:t.diagnosticsPanelShow,size:{minSize:100,defaultSize:70}},diagnosticsLogs:{panelName:"Stream Table",show:!1,size:{maxSize:100,defaultSize:30}},streamTable:{panelName:"Stream Table",show:!0,size:{maxSize:100,defaultSize:30}}}),[l,u]=P.useState({isShowSteamName:!0,isShowLabels:!1}),[h,d]=P.useState({}),[p,w]=P.useState([]),[m,_]=P.useState(""),[E,v]=P.useState(!0),[y,S]=P.useState(0),[O,D]=P.useState({expand:!1,expandState:{}}),[A,b]=P.useState({streamTable:!0,diagnosticsLogs:!1});return T.jsx(it.Provider,{value:{server_port:n,fv_id:r,panelState:o,setPanelState:s,showVariable:a,setShowVariable:i,fvHeaderState:l,setFvHeaderState:u,diagnosticsRunFnNameListState:p,setDiagnosticsRunFnNameListState:w,diagnosticsRefreshState:E,setDiagnosticsRefreshState:v,diagnosticsNextStepsOutputState:h,setDiagnosticsNextStepsOutputState:d,diagnosticsRunnerDisplayState:m,setDiagnosticsRunnerDisplayState:_,diagnosticsHistoryState:y,setDiagnosticsHistory:S,viewInLogPanel:A,setViewInLogPanel:b,variablesExpandState:O,setVariablesExpandState:D},children:e})}function Db(){const e=localStorage.getItem("appSetting");return JSON.parse(e)}function lg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function M(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1;a--){var i=n[a],o=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(r=i)}return oe.head.insertBefore(t,r),e}}var tE="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function ki(){for(var e=12,t="";e-- >0;)t+=tE[Math.random()*62|0];return t}function va(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Bd(e){return e.classList?va(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function u1(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function nE(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(u1(e[n]),'" ')},"").trim()}function wl(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function Zd(e){return e.size!==$t.size||e.x!==$t.x||e.y!==$t.y||e.rotate!==$t.rotate||e.flipX||e.flipY}function rE(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,a={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(t.x*32,", ").concat(t.y*32,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(i," ").concat(o," ").concat(s)},u={transform:"translate(".concat(r/2*-1," -256)")};return{outer:a,inner:l,path:u}}function aE(e){var t=e.transform,n=e.width,r=n===void 0?sf:n,a=e.height,i=a===void 0?sf:a,o=e.startCentered,s=o===void 0?!1:o,l="";return s&&n1?l+="translate(".concat(t.x/ln-r/2,"em, ").concat(t.y/ln-i/2,"em) "):s?l+="translate(calc(-50% + ".concat(t.x/ln,"em), calc(-50% + ").concat(t.y/ln,"em)) "):l+="translate(".concat(t.x/ln,"em, ").concat(t.y/ln,"em) "),l+="scale(".concat(t.size/ln*(t.flipX?-1:1),", ").concat(t.size/ln*(t.flipY?-1:1),") "),l+="rotate(".concat(t.rotate,"deg) "),l}var iE=`:root, :host { + --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid"; + --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular"; + --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light"; + --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin"; + --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone"; + --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp"; + --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp"; + --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp"; + --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands"; +} + +svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { + overflow: visible; + box-sizing: content-box; +} + +.svg-inline--fa { + display: var(--fa-display, inline-block); + height: 1em; + overflow: visible; + vertical-align: -0.125em; +} +.svg-inline--fa.fa-2xs { + vertical-align: 0.1em; +} +.svg-inline--fa.fa-xs { + vertical-align: 0em; +} +.svg-inline--fa.fa-sm { + vertical-align: -0.0714285705em; +} +.svg-inline--fa.fa-lg { + vertical-align: -0.2em; +} +.svg-inline--fa.fa-xl { + vertical-align: -0.25em; +} +.svg-inline--fa.fa-2xl { + vertical-align: -0.3125em; +} +.svg-inline--fa.fa-pull-left { + margin-right: var(--fa-pull-margin, 0.3em); + width: auto; +} +.svg-inline--fa.fa-pull-right { + margin-left: var(--fa-pull-margin, 0.3em); + width: auto; +} +.svg-inline--fa.fa-li { + width: var(--fa-li-width, 2em); + top: 0.25em; +} +.svg-inline--fa.fa-fw { + width: var(--fa-fw-width, 1.25em); +} + +.fa-layers svg.svg-inline--fa { + bottom: 0; + left: 0; + margin: auto; + position: absolute; + right: 0; + top: 0; +} + +.fa-layers-counter, .fa-layers-text { + display: inline-block; + position: absolute; + text-align: center; +} + +.fa-layers { + display: inline-block; + height: 1em; + position: relative; + text-align: center; + vertical-align: -0.125em; + width: 1em; +} +.fa-layers svg.svg-inline--fa { + -webkit-transform-origin: center center; + transform-origin: center center; +} + +.fa-layers-text { + left: 50%; + top: 50%; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); + -webkit-transform-origin: center center; + transform-origin: center center; +} + +.fa-layers-counter { + background-color: var(--fa-counter-background-color, #ff253a); + border-radius: var(--fa-counter-border-radius, 1em); + box-sizing: border-box; + color: var(--fa-inverse, #fff); + line-height: var(--fa-counter-line-height, 1); + max-width: var(--fa-counter-max-width, 5em); + min-width: var(--fa-counter-min-width, 1.5em); + overflow: hidden; + padding: var(--fa-counter-padding, 0.25em 0.5em); + right: var(--fa-right, 0); + text-overflow: ellipsis; + top: var(--fa-top, 0); + -webkit-transform: scale(var(--fa-counter-scale, 0.25)); + transform: scale(var(--fa-counter-scale, 0.25)); + -webkit-transform-origin: top right; + transform-origin: top right; +} + +.fa-layers-bottom-right { + bottom: var(--fa-bottom, 0); + right: var(--fa-right, 0); + top: auto; + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: bottom right; + transform-origin: bottom right; +} + +.fa-layers-bottom-left { + bottom: var(--fa-bottom, 0); + left: var(--fa-left, 0); + right: auto; + top: auto; + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: bottom left; + transform-origin: bottom left; +} + +.fa-layers-top-right { + top: var(--fa-top, 0); + right: var(--fa-right, 0); + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: top right; + transform-origin: top right; +} + +.fa-layers-top-left { + left: var(--fa-left, 0); + right: auto; + top: var(--fa-top, 0); + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: top left; + transform-origin: top left; +} + +.fa-1x { + font-size: 1em; +} + +.fa-2x { + font-size: 2em; +} + +.fa-3x { + font-size: 3em; +} + +.fa-4x { + font-size: 4em; +} + +.fa-5x { + font-size: 5em; +} + +.fa-6x { + font-size: 6em; +} + +.fa-7x { + font-size: 7em; +} + +.fa-8x { + font-size: 8em; +} + +.fa-9x { + font-size: 9em; +} + +.fa-10x { + font-size: 10em; +} + +.fa-2xs { + font-size: 0.625em; + line-height: 0.1em; + vertical-align: 0.225em; +} + +.fa-xs { + font-size: 0.75em; + line-height: 0.0833333337em; + vertical-align: 0.125em; +} + +.fa-sm { + font-size: 0.875em; + line-height: 0.0714285718em; + vertical-align: 0.0535714295em; +} + +.fa-lg { + font-size: 1.25em; + line-height: 0.05em; + vertical-align: -0.075em; +} + +.fa-xl { + font-size: 1.5em; + line-height: 0.0416666682em; + vertical-align: -0.125em; +} + +.fa-2xl { + font-size: 2em; + line-height: 0.03125em; + vertical-align: -0.1875em; +} + +.fa-fw { + text-align: center; + width: 1.25em; +} + +.fa-ul { + list-style-type: none; + margin-left: var(--fa-li-margin, 2.5em); + padding-left: 0; +} +.fa-ul > li { + position: relative; +} + +.fa-li { + left: calc(var(--fa-li-width, 2em) * -1); + position: absolute; + text-align: center; + width: var(--fa-li-width, 2em); + line-height: inherit; +} + +.fa-border { + border-color: var(--fa-border-color, #eee); + border-radius: var(--fa-border-radius, 0.1em); + border-style: var(--fa-border-style, solid); + border-width: var(--fa-border-width, 0.08em); + padding: var(--fa-border-padding, 0.2em 0.25em 0.15em); +} + +.fa-pull-left { + float: left; + margin-right: var(--fa-pull-margin, 0.3em); +} + +.fa-pull-right { + float: right; + margin-left: var(--fa-pull-margin, 0.3em); +} + +.fa-beat { + -webkit-animation-name: fa-beat; + animation-name: fa-beat; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-bounce { + -webkit-animation-name: fa-bounce; + animation-name: fa-bounce; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); +} + +.fa-fade { + -webkit-animation-name: fa-fade; + animation-name: fa-fade; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); +} + +.fa-beat-fade { + -webkit-animation-name: fa-beat-fade; + animation-name: fa-beat-fade; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); +} + +.fa-flip { + -webkit-animation-name: fa-flip; + animation-name: fa-flip; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-shake { + -webkit-animation-name: fa-shake; + animation-name: fa-shake; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, linear); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-spin { + -webkit-animation-name: fa-spin; + animation-name: fa-spin; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 2s); + animation-duration: var(--fa-animation-duration, 2s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, linear); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-spin-reverse { + --fa-animation-direction: reverse; +} + +.fa-pulse, +.fa-spin-pulse { + -webkit-animation-name: fa-spin; + animation-name: fa-spin; + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, steps(8)); + animation-timing-function: var(--fa-animation-timing, steps(8)); +} + +@media (prefers-reduced-motion: reduce) { + .fa-beat, +.fa-bounce, +.fa-fade, +.fa-beat-fade, +.fa-flip, +.fa-pulse, +.fa-shake, +.fa-spin, +.fa-spin-pulse { + -webkit-animation-delay: -1ms; + animation-delay: -1ms; + -webkit-animation-duration: 1ms; + animation-duration: 1ms; + -webkit-animation-iteration-count: 1; + animation-iteration-count: 1; + -webkit-transition-delay: 0s; + transition-delay: 0s; + -webkit-transition-duration: 0s; + transition-duration: 0s; + } +} +@-webkit-keyframes fa-beat { + 0%, 90% { + -webkit-transform: scale(1); + transform: scale(1); + } + 45% { + -webkit-transform: scale(var(--fa-beat-scale, 1.25)); + transform: scale(var(--fa-beat-scale, 1.25)); + } +} +@keyframes fa-beat { + 0%, 90% { + -webkit-transform: scale(1); + transform: scale(1); + } + 45% { + -webkit-transform: scale(var(--fa-beat-scale, 1.25)); + transform: scale(var(--fa-beat-scale, 1.25)); + } +} +@-webkit-keyframes fa-bounce { + 0% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 10% { + -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + } + 30% { + -webkit-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)); + 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)); + } + 50% { + -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + } + 57% { + -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + } + 64% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 100% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } +} +@keyframes fa-bounce { + 0% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 10% { + -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + } + 30% { + -webkit-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)); + 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)); + } + 50% { + -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + } + 57% { + -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + } + 64% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 100% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } +} +@-webkit-keyframes fa-fade { + 50% { + opacity: var(--fa-fade-opacity, 0.4); + } +} +@keyframes fa-fade { + 50% { + opacity: var(--fa-fade-opacity, 0.4); + } +} +@-webkit-keyframes fa-beat-fade { + 0%, 100% { + opacity: var(--fa-beat-fade-opacity, 0.4); + -webkit-transform: scale(1); + transform: scale(1); + } + 50% { + opacity: 1; + -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); + transform: scale(var(--fa-beat-fade-scale, 1.125)); + } +} +@keyframes fa-beat-fade { + 0%, 100% { + opacity: var(--fa-beat-fade-opacity, 0.4); + -webkit-transform: scale(1); + transform: scale(1); + } + 50% { + opacity: 1; + -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); + transform: scale(var(--fa-beat-fade-scale, 1.125)); + } +} +@-webkit-keyframes fa-flip { + 50% { + -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + } +} +@keyframes fa-flip { + 50% { + -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + } +} +@-webkit-keyframes fa-shake { + 0% { + -webkit-transform: rotate(-15deg); + transform: rotate(-15deg); + } + 4% { + -webkit-transform: rotate(15deg); + transform: rotate(15deg); + } + 8%, 24% { + -webkit-transform: rotate(-18deg); + transform: rotate(-18deg); + } + 12%, 28% { + -webkit-transform: rotate(18deg); + transform: rotate(18deg); + } + 16% { + -webkit-transform: rotate(-22deg); + transform: rotate(-22deg); + } + 20% { + -webkit-transform: rotate(22deg); + transform: rotate(22deg); + } + 32% { + -webkit-transform: rotate(-12deg); + transform: rotate(-12deg); + } + 36% { + -webkit-transform: rotate(12deg); + transform: rotate(12deg); + } + 40%, 100% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } +} +@keyframes fa-shake { + 0% { + -webkit-transform: rotate(-15deg); + transform: rotate(-15deg); + } + 4% { + -webkit-transform: rotate(15deg); + transform: rotate(15deg); + } + 8%, 24% { + -webkit-transform: rotate(-18deg); + transform: rotate(-18deg); + } + 12%, 28% { + -webkit-transform: rotate(18deg); + transform: rotate(18deg); + } + 16% { + -webkit-transform: rotate(-22deg); + transform: rotate(-22deg); + } + 20% { + -webkit-transform: rotate(22deg); + transform: rotate(22deg); + } + 32% { + -webkit-transform: rotate(-12deg); + transform: rotate(-12deg); + } + 36% { + -webkit-transform: rotate(12deg); + transform: rotate(12deg); + } + 40%, 100% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } +} +@-webkit-keyframes fa-spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +@keyframes fa-spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +.fa-rotate-90 { + -webkit-transform: rotate(90deg); + transform: rotate(90deg); +} + +.fa-rotate-180 { + -webkit-transform: rotate(180deg); + transform: rotate(180deg); +} + +.fa-rotate-270 { + -webkit-transform: rotate(270deg); + transform: rotate(270deg); +} + +.fa-flip-horizontal { + -webkit-transform: scale(-1, 1); + transform: scale(-1, 1); +} + +.fa-flip-vertical { + -webkit-transform: scale(1, -1); + transform: scale(1, -1); +} + +.fa-flip-both, +.fa-flip-horizontal.fa-flip-vertical { + -webkit-transform: scale(-1, -1); + transform: scale(-1, -1); +} + +.fa-rotate-by { + -webkit-transform: rotate(var(--fa-rotate-angle, none)); + transform: rotate(var(--fa-rotate-angle, none)); +} + +.fa-stack { + display: inline-block; + vertical-align: middle; + height: 2em; + position: relative; + width: 2.5em; +} + +.fa-stack-1x, +.fa-stack-2x { + bottom: 0; + left: 0; + margin: auto; + position: absolute; + right: 0; + top: 0; + z-index: var(--fa-stack-z-index, auto); +} + +.svg-inline--fa.fa-stack-1x { + height: 1em; + width: 1.25em; +} +.svg-inline--fa.fa-stack-2x { + height: 2em; + width: 2.5em; +} + +.fa-inverse { + color: var(--fa-inverse, #fff); +} + +.sr-only, +.fa-sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border-width: 0; +} + +.sr-only-focusable:not(:focus), +.fa-sr-only-focusable:not(:focus) { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border-width: 0; +} + +.svg-inline--fa .fa-primary { + fill: var(--fa-primary-color, currentColor); + opacity: var(--fa-primary-opacity, 1); +} + +.svg-inline--fa .fa-secondary { + fill: var(--fa-secondary-color, currentColor); + opacity: var(--fa-secondary-opacity, 0.4); +} + +.svg-inline--fa.fa-swap-opacity .fa-primary { + opacity: var(--fa-secondary-opacity, 0.4); +} + +.svg-inline--fa.fa-swap-opacity .fa-secondary { + opacity: var(--fa-primary-opacity, 1); +} + +.svg-inline--fa mask .fa-primary, +.svg-inline--fa mask .fa-secondary { + fill: black; +} + +.fad.fa-inverse, +.fa-duotone.fa-inverse { + color: var(--fa-inverse, #fff); +}`;function c1(){var e=r1,t=a1,n=I.cssPrefix,r=I.replacementClass,a=iE;if(n!==e||r!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");a=a.replace(i,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(s,".".concat(r))}return a}var gg=!1;function Lu(){I.autoAddCss&&!gg&&(eE(c1()),gg=!0)}var oE={mixout:function(){return{dom:{css:c1,insertCss:Lu}}},hooks:function(){return{beforeDOMElementCreation:function(){Lu()},beforeI2svg:function(){Lu()}}}},tn=Rn||{};tn[en]||(tn[en]={});tn[en].styles||(tn[en].styles={});tn[en].hooks||(tn[en].hooks={});tn[en].shims||(tn[en].shims=[]);var Ct=tn[en],f1=[],sE=function e(){oe.removeEventListener("DOMContentLoaded",e),Us=1,f1.map(function(t){return t()})},Us=!1;an&&(Us=(oe.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(oe.readyState),Us||oe.addEventListener("DOMContentLoaded",sE));function lE(e){an&&(Us?setTimeout(e,0):f1.push(e))}function Ui(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,a=e.children,i=a===void 0?[]:a;return typeof e=="string"?u1(e):"<".concat(t," ").concat(nE(r),">").concat(i.map(Ui).join(""),"")}function mg(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var uE=function(t,n){return function(r,a,i,o){return t.call(n,r,a,i,o)}},Mu=function(t,n,r,a){var i=Object.keys(t),o=i.length,s=a!==void 0?uE(n,a):n,l,u,h;for(r===void 0?(l=1,h=t[i[0]]):(l=0,h=r);l=55296&&a<=56319&&n=55296&&r<=56319&&n>t+1&&(a=e.charCodeAt(t+1),a>=56320&&a<=57343)?(r-55296)*1024+a-56320+65536:r}function vg(e){return Object.keys(e).reduce(function(t,n){var r=e[n],a=!!r.icon;return a?t[r.iconName]=r.icon:t[n]=r,t},{})}function cf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,a=r===void 0?!1:r,i=vg(t);typeof Ct.hooks.addPack=="function"&&!a?Ct.hooks.addPack(e,vg(t)):Ct.styles[e]=M(M({},Ct.styles[e]||{}),i),e==="fas"&&cf("fa",t)}var Ao,Ro,$o,Vr=Ct.styles,dE=Ct.shims,hE=(Ao={},_e(Ao,ae,Object.values(Ni[ae])),_e(Ao,de,Object.values(Ni[de])),Ao),eh=null,d1={},h1={},p1={},g1={},m1={},pE=(Ro={},_e(Ro,ae,Object.keys(xi[ae])),_e(Ro,de,Object.keys(xi[de])),Ro);function gE(e){return~Xb.indexOf(e)}function mE(e,t){var n=t.split("-"),r=n[0],a=n.slice(1).join("-");return r===e&&a!==""&&!gE(a)?a:null}var v1=function(){var t=function(i){return Mu(Vr,function(o,s,l){return o[l]=Mu(s,i,{}),o},{})};d1=t(function(a,i,o){if(i[3]&&(a[i[3]]=o),i[2]){var s=i[2].filter(function(l){return typeof l=="number"});s.forEach(function(l){a[l.toString(16)]=o})}return a}),h1=t(function(a,i,o){if(a[o]=o,i[2]){var s=i[2].filter(function(l){return typeof l=="string"});s.forEach(function(l){a[l]=o})}return a}),m1=t(function(a,i,o){var s=i[2];return a[o]=o,s.forEach(function(l){a[l]=o}),a});var n="far"in Vr||I.autoFetchSvg,r=Mu(dE,function(a,i){var o=i[0],s=i[1],l=i[2];return s==="far"&&!n&&(s="fas"),typeof o=="string"&&(a.names[o]={prefix:s,iconName:l}),typeof o=="number"&&(a.unicodes[o.toString(16)]={prefix:s,iconName:l}),a},{names:{},unicodes:{}});p1=r.names,g1=r.unicodes,eh=_l(I.styleDefault,{family:I.familyDefault})};Zb(function(e){eh=_l(e.styleDefault,{family:I.familyDefault})});v1();function th(e,t){return(d1[e]||{})[t]}function vE(e,t){return(h1[e]||{})[t]}function ar(e,t){return(m1[e]||{})[t]}function y1(e){return p1[e]||{prefix:null,iconName:null}}function yE(e){var t=g1[e],n=th("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function $n(){return eh}var nh=function(){return{prefix:null,iconName:null,rest:[]}};function _l(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?ae:n,a=xi[r][e],i=Pi[r][e]||Pi[r][a],o=e in Ct.styles?e:null;return i||o||null}var yg=($o={},_e($o,ae,Object.keys(Ni[ae])),_e($o,de,Object.keys(Ni[de])),$o);function Sl(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,a=r===void 0?!1:r,i=(t={},_e(t,ae,"".concat(I.cssPrefix,"-").concat(ae)),_e(t,de,"".concat(I.cssPrefix,"-").concat(de)),t),o=null,s=ae;(e.includes(i[ae])||e.some(function(u){return yg[ae].includes(u)}))&&(s=ae),(e.includes(i[de])||e.some(function(u){return yg[de].includes(u)}))&&(s=de);var l=e.reduce(function(u,h){var d=mE(I.cssPrefix,h);if(Vr[h]?(h=hE[s].includes(h)?Wb[s][h]:h,o=h,u.prefix=h):pE[s].indexOf(h)>-1?(o=h,u.prefix=_l(h,{family:s})):d?u.iconName=d:h!==I.replacementClass&&h!==i[ae]&&h!==i[de]&&u.rest.push(h),!a&&u.prefix&&u.iconName){var p=o==="fa"?y1(u.iconName):{},w=ar(u.prefix,u.iconName);p.prefix&&(o=null),u.iconName=p.iconName||w||u.iconName,u.prefix=p.prefix||u.prefix,u.prefix==="far"&&!Vr.far&&Vr.fas&&!I.autoFetchSvg&&(u.prefix="fas")}return u},nh());return(e.includes("fa-brands")||e.includes("fab"))&&(l.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(l.prefix="fad"),!l.prefix&&s===de&&(Vr.fass||I.autoFetchSvg)&&(l.prefix="fass",l.iconName=ar(l.prefix,l.iconName)||l.iconName),(l.prefix==="fa"||o==="fa")&&(l.prefix=$n()||"fas"),l}var wE=function(){function e(){kb(this,e),this.definitions={}}return Ab(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,a=new Array(r),i=0;i0&&h.forEach(function(d){typeof d=="string"&&(n[s][d]=u)}),n[s][l]=u}),n}}]),e}(),wg=[],qr={},na={},_E=Object.keys(na);function SE(e,t){var n=t.mixoutsTo;return wg=e,qr={},Object.keys(na).forEach(function(r){_E.indexOf(r)===-1&&delete na[r]}),wg.forEach(function(r){var a=r.mixout?r.mixout():{};if(Object.keys(a).forEach(function(o){typeof a[o]=="function"&&(n[o]=a[o]),Is(a[o])==="object"&&Object.keys(a[o]).forEach(function(s){n[o]||(n[o]={}),n[o][s]=a[o][s]})}),r.hooks){var i=r.hooks();Object.keys(i).forEach(function(o){qr[o]||(qr[o]=[]),qr[o].push(i[o])})}r.provides&&r.provides(na)}),n}function ff(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a1?t-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:{};return an?(gr("beforeI2svg",t),nn("pseudoElements2svg",t),nn("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;I.autoReplaceSvg===!1&&(I.autoReplaceSvg=!0),I.observeMutations=!0,lE(function(){CE({autoReplaceSvgRoot:n}),gr("watch",t)})}},TE={icon:function(t){if(t===null)return null;if(Is(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:ar(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=_l(t[0]);return{prefix:r,iconName:ar(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(I.cssPrefix,"-"))>-1||t.match(Gb))){var a=Sl(t.split(" "),{skipLookups:!0});return{prefix:a.prefix||$n(),iconName:ar(a.prefix,a.iconName)||a.iconName}}if(typeof t=="string"){var i=$n();return{prefix:i,iconName:ar(i,t)||t}}}},ot={noAuto:bE,config:I,dom:EE,parse:TE,library:w1,findIconDefinition:df,toHtml:Ui},CE=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?oe:n;(Object.keys(Ct.styles).length>0||I.autoFetchSvg)&&an&&I.autoReplaceSvg&&ot.dom.i2svg({node:r})};function bl(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return Ui(r)})}}),Object.defineProperty(e,"node",{get:function(){if(an){var r=oe.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function OE(e){var t=e.children,n=e.main,r=e.mask,a=e.attributes,i=e.styles,o=e.transform;if(Zd(o)&&n.found&&!r.found){var s=n.width,l=n.height,u={x:s/l/2,y:.5};a.style=wl(M(M({},i),{},{"transform-origin":"".concat(u.x+o.x/16,"em ").concat(u.y+o.y/16,"em")}))}return[{tag:"svg",attributes:a,children:t}]}function xE(e){var t=e.prefix,n=e.iconName,r=e.children,a=e.attributes,i=e.symbol,o=i===!0?"".concat(t,"-").concat(I.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:M(M({},a),{},{id:o}),children:r}]}]}function rh(e){var t=e.icons,n=t.main,r=t.mask,a=e.prefix,i=e.iconName,o=e.transform,s=e.symbol,l=e.title,u=e.maskId,h=e.titleId,d=e.extra,p=e.watchable,w=p===void 0?!1:p,m=r.found?r:n,_=m.width,E=m.height,v=a==="fak",y=[I.replacementClass,i?"".concat(I.cssPrefix,"-").concat(i):""].filter(function(x){return d.classes.indexOf(x)===-1}).filter(function(x){return x!==""||!!x}).concat(d.classes).join(" "),S={children:[],attributes:M(M({},d.attributes),{},{"data-prefix":a,"data-icon":i,class:y,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(_," ").concat(E)})},O=v&&!~d.classes.indexOf("fa-fw")?{width:"".concat(_/E*16*.0625,"em")}:{};w&&(S.attributes[pr]=""),l&&(S.children.push({tag:"title",attributes:{id:S.attributes["aria-labelledby"]||"title-".concat(h||ki())},children:[l]}),delete S.attributes.title);var D=M(M({},S),{},{prefix:a,iconName:i,main:n,mask:r,maskId:u,transform:o,symbol:s,styles:M(M({},O),d.styles)}),A=r.found&&n.found?nn("generateAbstractMask",D)||{children:[],attributes:{}}:nn("generateAbstractIcon",D)||{children:[],attributes:{}},b=A.children,C=A.attributes;return D.children=b,D.attributes=C,s?xE(D):OE(D)}function _g(e){var t=e.content,n=e.width,r=e.height,a=e.transform,i=e.title,o=e.extra,s=e.watchable,l=s===void 0?!1:s,u=M(M(M({},o.attributes),i?{title:i}:{}),{},{class:o.classes.join(" ")});l&&(u[pr]="");var h=M({},o.styles);Zd(a)&&(h.transform=aE({transform:a,startCentered:!0,width:n,height:r}),h["-webkit-transform"]=h.transform);var d=wl(h);d.length>0&&(u.style=d);var p=[];return p.push({tag:"span",attributes:u,children:[t]}),i&&p.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),p}function PE(e){var t=e.content,n=e.title,r=e.extra,a=M(M(M({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),i=wl(r.styles);i.length>0&&(a.style=i);var o=[];return o.push({tag:"span",attributes:a,children:[t]}),n&&o.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),o}var ju=Ct.styles;function hf(e){var t=e[0],n=e[1],r=e.slice(4),a=Kd(r,1),i=a[0],o=null;return Array.isArray(i)?o={tag:"g",attributes:{class:"".concat(I.cssPrefix,"-").concat(rr.GROUP)},children:[{tag:"path",attributes:{class:"".concat(I.cssPrefix,"-").concat(rr.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(I.cssPrefix,"-").concat(rr.PRIMARY),fill:"currentColor",d:i[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:i}},{found:!0,width:t,height:n,icon:o}}var NE={found:!1,width:512,height:512};function DE(e,t){!i1&&!I.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function pf(e,t){var n=t;return t==="fa"&&I.styleDefault!==null&&(t=$n()),new Promise(function(r,a){if(nn("missingIconAbstract"),n==="fa"){var i=y1(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&ju[t]&&ju[t][e]){var o=ju[t][e];return r(hf(o))}DE(e,t),r(M(M({},NE),{},{icon:I.showMissingIcons&&e?nn("missingIconAbstract")||{}:{}}))})}var Sg=function(){},gf=I.measurePerformance&&Oo&&Oo.mark&&Oo.measure?Oo:{mark:Sg,measure:Sg},Ka='FA "6.4.0"',kE=function(t){return gf.mark("".concat(Ka," ").concat(t," begins")),function(){return _1(t)}},_1=function(t){gf.mark("".concat(Ka," ").concat(t," ends")),gf.measure("".concat(Ka," ").concat(t),"".concat(Ka," ").concat(t," begins"),"".concat(Ka," ").concat(t," ends"))},ah={begin:kE,end:_1},as=function(){};function bg(e){var t=e.getAttribute?e.getAttribute(pr):null;return typeof t=="string"}function AE(e){var t=e.getAttribute?e.getAttribute(Xd):null,n=e.getAttribute?e.getAttribute(Jd):null;return t&&n}function RE(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(I.replacementClass)}function $E(){if(I.autoReplaceSvg===!0)return is.replace;var e=is[I.autoReplaceSvg];return e||is.replace}function LE(e){return oe.createElementNS("http://www.w3.org/2000/svg",e)}function ME(e){return oe.createElement(e)}function S1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?LE:ME:n;if(typeof e=="string")return oe.createTextNode(e);var a=r(e.tag);Object.keys(e.attributes||[]).forEach(function(o){a.setAttribute(o,e.attributes[o])});var i=e.children||[];return i.forEach(function(o){a.appendChild(S1(o,{ceFn:r}))}),a}function jE(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var is={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(a){n.parentNode.insertBefore(S1(a),n)}),n.getAttribute(pr)===null&&I.keepOriginalSource){var r=oe.createComment(jE(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~Bd(n).indexOf(I.replacementClass))return is.replace(t);var a=new RegExp("".concat(I.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var i=r[0].attributes.class.split(" ").reduce(function(s,l){return l===I.replacementClass||l.match(a)?s.toSvg.push(l):s.toNode.push(l),s},{toNode:[],toSvg:[]});r[0].attributes.class=i.toSvg.join(" "),i.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",i.toNode.join(" "))}var o=r.map(function(s){return Ui(s)}).join(` +`);n.setAttribute(pr,""),n.innerHTML=o}};function Eg(e){e()}function b1(e,t){var n=typeof t=="function"?t:as;if(e.length===0)n();else{var r=Eg;I.mutateApproach===zb&&(r=Rn.requestAnimationFrame||Eg),r(function(){var a=$E(),i=ah.begin("mutate");e.map(a),i(),n()})}}var ih=!1;function E1(){ih=!0}function mf(){ih=!1}var zs=null;function Tg(e){if(hg&&I.observeMutations){var t=e.treeCallback,n=t===void 0?as:t,r=e.nodeCallback,a=r===void 0?as:r,i=e.pseudoElementsCallback,o=i===void 0?as:i,s=e.observeMutationsRoot,l=s===void 0?oe:s;zs=new hg(function(u){if(!ih){var h=$n();va(u).forEach(function(d){if(d.type==="childList"&&d.addedNodes.length>0&&!bg(d.addedNodes[0])&&(I.searchPseudoElements&&o(d.target),n(d.target)),d.type==="attributes"&&d.target.parentNode&&I.searchPseudoElements&&o(d.target.parentNode),d.type==="attributes"&&bg(d.target)&&~Yb.indexOf(d.attributeName))if(d.attributeName==="class"&&AE(d.target)){var p=Sl(Bd(d.target)),w=p.prefix,m=p.iconName;d.target.setAttribute(Xd,w||h),m&&d.target.setAttribute(Jd,m)}else RE(d.target)&&a(d.target)})}}),an&&zs.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function FE(){zs&&zs.disconnect()}function IE(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,a){var i=a.split(":"),o=i[0],s=i.slice(1);return o&&s.length>0&&(r[o]=s.join(":").trim()),r},{})),n}function UE(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",a=Sl(Bd(e));return a.prefix||(a.prefix=$n()),t&&n&&(a.prefix=t,a.iconName=n),a.iconName&&a.prefix||(a.prefix&&r.length>0&&(a.iconName=vE(a.prefix,e.innerText)||th(a.prefix,uf(e.innerText))),!a.iconName&&I.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(a.iconName=e.firstChild.data)),a}function zE(e){var t=va(e.attributes).reduce(function(a,i){return a.name!=="class"&&a.name!=="style"&&(a[i.name]=i.value),a},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return I.autoA11y&&(n?t["aria-labelledby"]="".concat(I.replacementClass,"-title-").concat(r||ki()):(t["aria-hidden"]="true",t.focusable="false")),t}function HE(){return{iconName:null,title:null,titleId:null,prefix:null,transform:$t,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Cg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=UE(e),r=n.iconName,a=n.prefix,i=n.rest,o=zE(e),s=ff("parseNodeAttributes",{},e),l=t.styleParser?IE(e):[];return M({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:a,transform:$t,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:l,attributes:o}},s)}var WE=Ct.styles;function T1(e){var t=I.autoReplaceSvg==="nest"?Cg(e,{styleParser:!1}):Cg(e);return~t.extra.classes.indexOf(o1)?nn("generateLayersText",e,t):nn("generateSvgReplacementMutation",e,t)}var Ln=new Set;Qd.map(function(e){Ln.add("fa-".concat(e))});Object.keys(xi[ae]).map(Ln.add.bind(Ln));Object.keys(xi[de]).map(Ln.add.bind(Ln));Ln=Fi(Ln);function Og(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!an)return Promise.resolve();var n=oe.documentElement.classList,r=function(d){return n.add("".concat(pg,"-").concat(d))},a=function(d){return n.remove("".concat(pg,"-").concat(d))},i=I.autoFetchSvg?Ln:Qd.map(function(h){return"fa-".concat(h)}).concat(Object.keys(WE));i.includes("fa")||i.push("fa");var o=[".".concat(o1,":not([").concat(pr,"])")].concat(i.map(function(h){return".".concat(h,":not([").concat(pr,"])")})).join(", ");if(o.length===0)return Promise.resolve();var s=[];try{s=va(e.querySelectorAll(o))}catch{}if(s.length>0)r("pending"),a("complete");else return Promise.resolve();var l=ah.begin("onTree"),u=s.reduce(function(h,d){try{var p=T1(d);p&&h.push(p)}catch(w){i1||w.name==="MissingIcon"&&console.error(w)}return h},[]);return new Promise(function(h,d){Promise.all(u).then(function(p){b1(p,function(){r("active"),r("complete"),a("pending"),typeof t=="function"&&t(),l(),h()})}).catch(function(p){l(),d(p)})})}function GE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;T1(e).then(function(n){n&&b1([n],t)})}function VE(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:df(t||{}),a=n.mask;return a&&(a=(a||{}).icon?a:df(a||{})),e(r,M(M({},n),{},{mask:a}))}}var qE=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,a=r===void 0?$t:r,i=n.symbol,o=i===void 0?!1:i,s=n.mask,l=s===void 0?null:s,u=n.maskId,h=u===void 0?null:u,d=n.title,p=d===void 0?null:d,w=n.titleId,m=w===void 0?null:w,_=n.classes,E=_===void 0?[]:_,v=n.attributes,y=v===void 0?{}:v,S=n.styles,O=S===void 0?{}:S;if(t){var D=t.prefix,A=t.iconName,b=t.icon;return bl(M({type:"icon"},t),function(){return gr("beforeDOMElementCreation",{iconDefinition:t,params:n}),I.autoA11y&&(p?y["aria-labelledby"]="".concat(I.replacementClass,"-title-").concat(m||ki()):(y["aria-hidden"]="true",y.focusable="false")),rh({icons:{main:hf(b),mask:l?hf(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:D,iconName:A,transform:M(M({},$t),a),symbol:o,title:p,maskId:h,titleId:m,extra:{attributes:y,styles:O,classes:E}})})}},KE={mixout:function(){return{icon:VE(qE)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=Og,n.nodeCallback=GE,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,a=r===void 0?oe:r,i=n.callback,o=i===void 0?function(){}:i;return Og(a,o)},t.generateSvgReplacementMutation=function(n,r){var a=r.iconName,i=r.title,o=r.titleId,s=r.prefix,l=r.transform,u=r.symbol,h=r.mask,d=r.maskId,p=r.extra;return new Promise(function(w,m){Promise.all([pf(a,s),h.iconName?pf(h.iconName,h.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(_){var E=Kd(_,2),v=E[0],y=E[1];w([n,rh({icons:{main:v,mask:y},prefix:s,iconName:a,transform:l,symbol:u,maskId:d,title:i,titleId:o,extra:p,watchable:!0})])}).catch(m)})},t.generateAbstractIcon=function(n){var r=n.children,a=n.attributes,i=n.main,o=n.transform,s=n.styles,l=wl(s);l.length>0&&(a.style=l);var u;return Zd(o)&&(u=nn("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),r.push(u||i.icon),{children:r,attributes:a}}}},YE={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.classes,i=a===void 0?[]:a;return bl({type:"layer"},function(){gr("beforeDOMElementCreation",{assembler:n,params:r});var o=[];return n(function(s){Array.isArray(s)?s.map(function(l){o=o.concat(l.abstract)}):o=o.concat(s.abstract)}),[{tag:"span",attributes:{class:["".concat(I.cssPrefix,"-layers")].concat(Fi(i)).join(" ")},children:o}]})}}}},XE={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.title,i=a===void 0?null:a,o=r.classes,s=o===void 0?[]:o,l=r.attributes,u=l===void 0?{}:l,h=r.styles,d=h===void 0?{}:h;return bl({type:"counter",content:n},function(){return gr("beforeDOMElementCreation",{content:n,params:r}),PE({content:n.toString(),title:i,extra:{attributes:u,styles:d,classes:["".concat(I.cssPrefix,"-layers-counter")].concat(Fi(s))}})})}}}},JE={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.transform,i=a===void 0?$t:a,o=r.title,s=o===void 0?null:o,l=r.classes,u=l===void 0?[]:l,h=r.attributes,d=h===void 0?{}:h,p=r.styles,w=p===void 0?{}:p;return bl({type:"text",content:n},function(){return gr("beforeDOMElementCreation",{content:n,params:r}),_g({content:n,transform:M(M({},$t),i),title:s,extra:{attributes:d,styles:w,classes:["".concat(I.cssPrefix,"-layers-text")].concat(Fi(u))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var a=r.title,i=r.transform,o=r.extra,s=null,l=null;if(n1){var u=parseInt(getComputedStyle(n).fontSize,10),h=n.getBoundingClientRect();s=h.width/u,l=h.height/u}return I.autoA11y&&!a&&(o.attributes["aria-hidden"]="true"),Promise.resolve([n,_g({content:n.innerHTML,width:s,height:l,transform:i,title:a,extra:o,watchable:!0})])}}},QE=new RegExp('"',"ug"),xg=[1105920,1112319];function BE(e){var t=e.replace(QE,""),n=fE(t,0),r=n>=xg[0]&&n<=xg[1],a=t.length===2?t[0]===t[1]:!1;return{value:uf(a?t[0]:t),isSecondary:r||a}}function Pg(e,t){var n="".concat(Ub).concat(t.replace(":","-"));return new Promise(function(r,a){if(e.getAttribute(n)!==null)return r();var i=va(e.children),o=i.filter(function(b){return b.getAttribute(lf)===t})[0],s=Rn.getComputedStyle(e,t),l=s.getPropertyValue("font-family").match(Vb),u=s.getPropertyValue("font-weight"),h=s.getPropertyValue("content");if(o&&!l)return e.removeChild(o),r();if(l&&h!=="none"&&h!==""){var d=s.getPropertyValue("content"),p=~["Sharp"].indexOf(l[2])?de:ae,w=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?Pi[p][l[2].toLowerCase()]:qb[p][u],m=BE(d),_=m.value,E=m.isSecondary,v=l[0].startsWith("FontAwesome"),y=th(w,_),S=y;if(v){var O=yE(_);O.iconName&&O.prefix&&(y=O.iconName,w=O.prefix)}if(y&&!E&&(!o||o.getAttribute(Xd)!==w||o.getAttribute(Jd)!==S)){e.setAttribute(n,S),o&&e.removeChild(o);var D=HE(),A=D.extra;A.attributes[lf]=t,pf(y,w).then(function(b){var C=rh(M(M({},D),{},{icons:{main:b,mask:nh()},prefix:w,iconName:S,extra:A,watchable:!0})),x=oe.createElement("svg");t==="::before"?e.insertBefore(x,e.firstChild):e.appendChild(x),x.outerHTML=C.map(function(N){return Ui(N)}).join(` +`),e.removeAttribute(n),r()}).catch(a)}else r()}else r()})}function ZE(e){return Promise.all([Pg(e,"::before"),Pg(e,"::after")])}function eT(e){return e.parentNode!==document.head&&!~Hb.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(lf)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Ng(e){if(an)return new Promise(function(t,n){var r=va(e.querySelectorAll("*")).filter(eT).map(ZE),a=ah.begin("searchPseudoElements");E1(),Promise.all(r).then(function(){a(),mf(),t()}).catch(function(){a(),mf(),n()})})}var tT={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=Ng,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,a=r===void 0?oe:r;I.searchPseudoElements&&Ng(a)}}},Dg=!1,nT={mixout:function(){return{dom:{unwatch:function(){E1(),Dg=!0}}}},hooks:function(){return{bootstrap:function(){Tg(ff("mutationObserverCallbacks",{}))},noAuto:function(){FE()},watch:function(n){var r=n.observeMutationsRoot;Dg?mf():Tg(ff("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},kg=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,a){var i=a.toLowerCase().split("-"),o=i[0],s=i.slice(1).join("-");if(o&&s==="h")return r.flipX=!0,r;if(o&&s==="v")return r.flipY=!0,r;if(s=parseFloat(s),isNaN(s))return r;switch(o){case"grow":r.size=r.size+s;break;case"shrink":r.size=r.size-s;break;case"left":r.x=r.x-s;break;case"right":r.x=r.x+s;break;case"up":r.y=r.y-s;break;case"down":r.y=r.y+s;break;case"rotate":r.rotate=r.rotate+s;break}return r},n)},rT={mixout:function(){return{parse:{transform:function(n){return kg(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-transform");return a&&(n.transform=kg(a)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,a=n.transform,i=n.containerWidth,o=n.iconWidth,s={transform:"translate(".concat(i/2," 256)")},l="translate(".concat(a.x*32,", ").concat(a.y*32,") "),u="scale(".concat(a.size/16*(a.flipX?-1:1),", ").concat(a.size/16*(a.flipY?-1:1),") "),h="rotate(".concat(a.rotate," 0 0)"),d={transform:"".concat(l," ").concat(u," ").concat(h)},p={transform:"translate(".concat(o/2*-1," -256)")},w={outer:s,inner:d,path:p};return{tag:"g",attributes:M({},w.outer),children:[{tag:"g",attributes:M({},w.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:M(M({},r.icon.attributes),w.path)}]}]}}}},Fu={x:0,y:0,width:"100%",height:"100%"};function Ag(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function aT(e){return e.tag==="g"?e.children:[e]}var iT={hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-mask"),i=a?Sl(a.split(" ").map(function(o){return o.trim()})):nh();return i.prefix||(i.prefix=$n()),n.mask=i,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,a=n.attributes,i=n.main,o=n.mask,s=n.maskId,l=n.transform,u=i.width,h=i.icon,d=o.width,p=o.icon,w=rE({transform:l,containerWidth:d,iconWidth:u}),m={tag:"rect",attributes:M(M({},Fu),{},{fill:"white"})},_=h.children?{children:h.children.map(Ag)}:{},E={tag:"g",attributes:M({},w.inner),children:[Ag(M({tag:h.tag,attributes:M(M({},h.attributes),w.path)},_))]},v={tag:"g",attributes:M({},w.outer),children:[E]},y="mask-".concat(s||ki()),S="clip-".concat(s||ki()),O={tag:"mask",attributes:M(M({},Fu),{},{id:y,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[m,v]},D={tag:"defs",children:[{tag:"clipPath",attributes:{id:S},children:aT(p)},O]};return r.push(D,{tag:"rect",attributes:M({fill:"currentColor","clip-path":"url(#".concat(S,")"),mask:"url(#".concat(y,")")},Fu)}),{children:r,attributes:a}}}},oT={provides:function(t){var n=!1;Rn.matchMedia&&(n=Rn.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],a={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:M(M({},a),{},{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"})});var o=M(M({},i),{},{attributeName:"opacity"}),s={tag:"circle",attributes:M(M({},a),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||s.children.push({tag:"animate",attributes:M(M({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:M(M({},o),{},{values:"1;0;1;1;0;1;"})}),r.push(s),r.push({tag:"path",attributes:M(M({},a),{},{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:n?[]:[{tag:"animate",attributes:M(M({},o),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:M(M({},a),{},{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:M(M({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},sT={hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-symbol"),i=a===null?!1:a===""?!0:a;return n.symbol=i,n}}}},lT=[oE,KE,YE,XE,JE,tT,nT,rT,iT,oT,sT];SE(lT,{mixoutsTo:ot});ot.noAuto;ot.config;ot.library;ot.dom;var vf=ot.parse;ot.findIconDefinition;ot.toHtml;var uT=ot.icon;ot.layer;ot.text;ot.counter;var C1={exports:{}},cT="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",fT=cT,dT=fT;function O1(){}function x1(){}x1.resetWarningCache=O1;var hT=function(){function e(r,a,i,o,s,l){if(l!==dT){var u=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 u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:x1,resetWarningCache:O1};return n.PropTypes=n,n};C1.exports=hT();var pT=C1.exports;const K=nl(pT);function Rg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function wn(e){for(var t=1;t=0)&&(n[a]=e[a]);return n}function mT(e,t){if(e==null)return{};var n=gT(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yf(e){return vT(e)||yT(e)||wT(e)||_T()}function vT(e){if(Array.isArray(e))return wf(e)}function yT(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wT(e,t){if(e){if(typeof e=="string")return wf(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 wf(e,t)}}function wf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(l){return N1(e,l)}),a=Object.keys(t.attributes||{}).reduce(function(l,u){var h=t.attributes[u];switch(u){case"class":l.attrs.className=h,delete t.attributes.class;break;case"style":l.attrs.style=CT(h);break;default:u.indexOf("aria-")===0||u.indexOf("data-")===0?l.attrs[u.toLowerCase()]=h:l.attrs[P1(u)]=h}return l},{attrs:{}}),i=n.style,o=i===void 0?{}:i,s=mT(n,ET);return a.attrs.style=wn(wn({},a.attrs.style),o),e.apply(void 0,[t.tag,wn(wn({},a.attrs),s)].concat(yf(r)))}var D1=!1;try{D1=!0}catch{}function OT(){if(!D1&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function $g(e){if(e&&Hs(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(vf.icon)return vf.icon(e);if(e===null)return null;if(e&&Hs(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 Iu(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Kr({},e,t):{}}var Fe=Sn.forwardRef(function(e,t){var n=e.icon,r=e.mask,a=e.symbol,i=e.className,o=e.title,s=e.titleId,l=e.maskId,u=$g(n),h=Iu("classes",[].concat(yf(ST(e)),yf(i.split(" ")))),d=Iu("transform",typeof e.transform=="string"?vf.transform(e.transform):e.transform),p=Iu("mask",$g(r)),w=uT(u,wn(wn(wn(wn({},h),d),p),{},{symbol:a,title:o,titleId:s,maskId:l}));if(!w)return OT("Could not find icon",u),null;var m=w.abstract,_={ref:t};return Object.keys(e).forEach(function(E){Fe.defaultProps.hasOwnProperty(E)||(_[E]=e[E])}),xT(m[0],_)});Fe.displayName="FontAwesomeIcon";Fe.propTypes={beat:K.bool,border:K.bool,beatFade:K.bool,bounce:K.bool,className:K.string,fade:K.bool,flash:K.bool,mask:K.oneOfType([K.object,K.array,K.string]),maskId:K.string,fixedWidth:K.bool,inverse:K.bool,flip:K.oneOf([!0,!1,"horizontal","vertical","both"]),icon:K.oneOfType([K.object,K.array,K.string]),listItem:K.bool,pull:K.oneOf(["right","left"]),pulse:K.bool,rotation:K.oneOf([0,90,180,270]),shake:K.bool,size:K.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:K.bool,spinPulse:K.bool,spinReverse:K.bool,symbol:K.oneOfType([K.bool,K.string]),title:K.string,titleId:K.string,transform:K.oneOfType([K.string,K.object]),swapOpacity:K.bool};Fe.defaultProps={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};var xT=N1.bind(null,Sn.createElement),PT={prefix:"fas",iconName:"caret-right",icon:[256,512,[],"f0da","M246.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-128-128c-9.2-9.2-22.9-11.9-34.9-6.9s-19.8 16.6-19.8 29.6l0 256c0 12.9 7.8 24.6 19.8 29.6s25.7 2.2 34.9-6.9l128-128z"]},Lg={prefix:"fas",iconName:"square-check",icon:[448,512,[9745,9989,61510,"check-square"],"f14a","M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zM337 209L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},NT={prefix:"fas",iconName:"arrows-rotate",icon:[512,512,[128472,"refresh","sync"],"f021","M105.1 202.6c7.7-21.8 20.2-42.3 37.8-59.8c62.5-62.5 163.8-62.5 226.3 0L386.3 160H336c-17.7 0-32 14.3-32 32s14.3 32 32 32H463.5c0 0 0 0 0 0h.4c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32s-32 14.3-32 32v51.2L414.4 97.6c-87.5-87.5-229.3-87.5-316.8 0C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5zM39 289.3c-5 1.5-9.8 4.2-13.7 8.2c-4 4-6.7 8.8-8.1 14c-.3 1.2-.6 2.5-.8 3.8c-.3 1.7-.4 3.4-.4 5.1V448c0 17.7 14.3 32 32 32s32-14.3 32-32V396.9l17.6 17.5 0 0c87.5 87.4 229.3 87.4 316.7 0c24.4-24.4 42.1-53.1 52.9-83.7c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.5 62.5-163.8 62.5-226.3 0l-.1-.1L125.6 352H176c17.7 0 32-14.3 32-32s-14.3-32-32-32H48.4c-1.6 0-3.2 .1-4.8 .3s-3.1 .5-4.6 1z"]},Mg={prefix:"fas",iconName:"square",icon:[448,512,[9632,9723,9724,61590],"f0c8","M0 96C0 60.7 28.7 32 64 32H384c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96z"]},DT={prefix:"fas",iconName:"circle-question",icon:[512,512,[62108,"question-circle"],"f059","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM169.8 165.3c7.9-22.3 29.1-37.3 52.8-37.3h58.3c34.9 0 63.1 28.3 63.1 63.1c0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6c-13.3 0-24-10.7-24-24V250.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1c0-8.4-6.8-15.1-15.1-15.1H222.6c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},kT={prefix:"fas",iconName:"floppy-disk",icon:[448,512,[128190,128426,"save"],"f0c7","M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V173.3c0-17-6.7-33.3-18.7-45.3L352 50.7C340 38.7 323.7 32 306.7 32H64zm0 96c0-17.7 14.3-32 32-32H288c17.7 0 32 14.3 32 32v64c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V128zM224 288a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"]},AT={prefix:"fas",iconName:"caret-down",icon:[320,512,[],"f0d7","M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"]},RT={prefix:"fas",iconName:"arrow-right-arrow-left",icon:[448,512,[8644,"exchange"],"f0ec","M438.6 150.6c12.5-12.5 12.5-32.8 0-45.3l-96-96c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.7 96 32 96C14.3 96 0 110.3 0 128s14.3 32 32 32l306.7 0-41.4 41.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l96-96zm-333.3 352c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 416 416 416c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0 41.4-41.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-96 96c-12.5 12.5-12.5 32.8 0 45.3l96 96z"]},$T=RT,LT={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},MT={prefix:"fas",iconName:"x",icon:[384,512,[120],"58","M376.6 84.5c11.3-13.6 9.5-33.8-4.1-45.1s-33.8-9.5-45.1 4.1L192 206 56.6 43.5C45.3 29.9 25.1 28.1 11.5 39.4S-3.9 70.9 7.4 84.5L150.3 256 7.4 427.5c-11.3 13.6-9.5 33.8 4.1 45.1s33.8 9.5 45.1-4.1L192 306 327.4 468.5c11.3 13.6 31.5 15.4 45.1 4.1s15.4-31.5 4.1-45.1L233.7 256 376.6 84.5z"]};const jT="_headerDiagnosticsBtnContainer_1ogb6_1",FT="_taggleBtn_1ogb6_12",IT="_toggleBtnInnerOn_1ogb6_26",UT="_toggleBtnInnerOff_1ogb6_27",zT="_faIcon_1ogb6_48",Pr={headerDiagnosticsBtnContainer:jT,taggleBtn:FT,toggleBtnInnerOn:IT,toggleBtnInnerOff:UT,faIcon:zT};function HT(){const{panelState:e,setPanelState:t,setViewInLogPanel:n}=P.useContext(it);function r(){t(a=>{const i={...a},o=!i.diagnostics.show;i.diagnostics.show=o;const s=localStorage.getItem("appSetting"),l=JSON.parse(s);return l.diagnosticsPanelShow=o,localStorage.setItem("appSetting",JSON.stringify(l)),i}),n(a=>{const i={...a};return e.diagnostics.show&&(i.streamTable=!1,i.diagnosticsLogs=!0),e.diagnostics.show||(i.streamTable=!0,i.diagnosticsLogs=!1),i})}return T.jsxs("div",{id:"headerDiagnosticsBtn",className:`header_each_btn ${Pr.headerDiagnosticsBtnContainer}`,onClick:r,children:[T.jsx("span",{className:Pr.taggleBtn,children:T.jsx("span",{className:e.diagnostics.show?Pr.toggleBtnInnerOn:Pr.toggleBtnInnerOff,children:e.diagnostics.show?T.jsx(Fe,{icon:LT,className:Pr.faIcon}):T.jsx(Fe,{icon:MT,className:Pr.faIcon})})}),T.jsx("p",{children:"Diagnostics"})]})}const WT="_headerLeftMainContainer_1bzdp_1",GT="_headerLogoContainer_1bzdp_8",VT="_headerLogo_1bzdp_8",qT="_headerLogoText_1bzdp_21",Lo={headerLeftMainContainer:WT,headerLogoContainer:GT,headerLogo:VT,headerLogoText:qT},KT="/assets/idaes-logo-4b9fada6.png";function YT(){return T.jsxs("div",{className:Lo.headerLeftMainContainer,children:[T.jsxs("div",{id:"headerLogoContainer",className:`headerLogoContainer ${Lo.headerLogoContainer}`,children:[T.jsx("img",{src:KT,alt:"idaes logo for header component",id:"headerLogo",className:`${Lo.headerLogo}`}),T.jsx("p",{id:"headerLogoText",className:`${Lo.headerLogoText}`,children:"IDAES"})]}),T.jsx("div",{children:T.jsx(HT,{})})]})}const XT="_header_flowsheet_name_3hhh9_1",JT={header_flowsheet_name:XT};function QT(){const{fv_id:e}=P.useContext(it);return T.jsx("p",{id:"flowsheet_name_title",className:`${JT.header_flowsheet_name}`,children:e||"Name not found"})}function BT(){return T.jsxs("li",{id:"refresh_btn",className:"header_each_btn",children:[T.jsx(Fe,{icon:NT,className:"mr-sm"}),"Refresh"]})}function ZT(){return T.jsxs("li",{id:"save_btn",className:"header_each_btn",children:[T.jsx(Fe,{icon:kT,className:"mr-sm"}),"Save"]})}const eC="_link_5oxur_1",tC={link:eC};function nC(){return T.jsxs("li",{id:"help_btn",className:"header_each_btn",children:[T.jsx(Fe,{icon:DT,className:"mr-sm"}),T.jsx("a",{href:"https://idaes-pse.readthedocs.io/en/latest/tutorials/getting_started/index.html",target:"_blank",className:`${tC.link}`,children:"Help"})]})}function rC(){function e(){["mosaicLayout","layout","diagnosticsPanelParams"].forEach(n=>{localStorage.removeItem(n)}),window.location.reload()}return T.jsxs("li",{id:"save_btn",className:"header_each_btn",onClick:()=>{e()},children:[T.jsx(Fe,{icon:$T,className:"mr-sm"}),"Reset Layout"]})}const aC="_header_fn_btn_wrapper_ul_18i4g_1",iC={header_fn_btn_wrapper_ul:aC};function oC(){return T.jsxs("ul",{className:`${iC.header_fn_btn_wrapper_ul}`,children:[T.jsx(BT,{}),T.jsx(ZT,{}),T.jsx(rC,{}),T.jsx(nC,{})]})}const sC="_header_container_1gczp_1",lC={header_container:sC};function uC(){return P.useContext(it),T.jsxs("header",{id:"header",className:`row ${lC.header_container}`,children:[T.jsx(YT,{}),T.jsx(QT,{}),T.jsx(oC,{})]})}const _f={attrs:{g:{},text:{display:"block","font-size":"7","text-anchor":"left"},rect:{width:"2000",height:"2000",fill:"white",rx:0,ry:0,"fill-opacity":"1"},tspan:{fill:"white",dy:10}}},Sf={attrs:{text:{display:"none"},rect:{"fill-opacity":"0"}}},Ws=0,jg=1;class cC{constructor(t){U(this,"_app");U(this,"joint");U(this,"_originalLinkStroke");U(this,"_originalLinkStrokeWidth");U(this,"_highlightLinkStroke");U(this,"_highlightLinkStrokeWidth");U(this,"_graph");U(this,"_paper");U(this,"_paperScroller");U(this,"_selection");this._app=t;let n=joint.shapes.standard,r=800,a=800,i=1;this._originalLinkStroke="#979797",this._originalLinkStrokeWidth=2,this._highlightLinkStroke="#0B79BD",this._highlightLinkStrokeWidth=4,this._graph=new joint.dia.Graph([],{cellNamespace:{standard:n}}),this._paper=new joint.dia.Paper({model:this._graph,cellViewNamespace:{standard:n},width:r,height:a,gridSize:i,drawGrid:!1,interactive:!0}),this._paperScroller=new joint.ui.PaperScroller({padding:100,paper:this._paper,autoResizePaper:!0,scrollWhileDragging:!0,baseWidth:10,baseHeight:10,cursor:"grab"}),this._selection=new joint.ui.Selection({paper:this._paper}),this._selection.removeHandle("remove"),this._selection.removeHandle("rotate"),this._selection.removeHandle("resize"),self=this,document.getElementById("fv").append(self._paperScroller.render().el),self.preSetupRegisterEvents()}get graph(){return this._graph}set graph(t){this._graph.fromJSON(t)}get paper(){return self._paper}get paperScroller(){return self._paperScroller}get selection(){return self._selection}translate_for_angle(t){return{0:[0,5],90:[38,-35],180:[0,-72],270:[-38,-34]}[t]}preSetupRegisterEvents(){this._graph.on("change:position change:angle change:vertices",()=>{this._app.graphChanged()});let t=document.getElementById("fv");t||console.error("idaes canvas is not found");const n=document.querySelector("#stream-table-data");t.addEventListener("HighlightStream",r=>{const a=t.querySelector(`[model-id=${r.detail.streamId}]`);a&&a.dispatchEvent(new Event("HighlightStream"))}),t.addEventListener("RemoveHighlightStream",r=>{const a=t.querySelector(`[model-id=${r.detail.streamId}]`);a&&a.dispatchEvent(new Event("RemoveHighlightStream"))}),self._paper.on("blank:pointerdown",self._selection.startSelecting),self._paper.on("element:pointerup",function(r,a){console.log("work"),(a.shiftKey||a.metaKey)&&self._selection.collection.add(r.model)}),self._selection.on("selection-box:pointerdown",function(r,a){(a.shiftKey||a.metaKey)&&self._selection.collection.remove(r.model)}),self._paper.on("element:contextmenu",function(r,a){r.model.rotate(90);const i=r.model.angle(),o=self.translate_for_angle(i,0,0);o===void 0?console.error(`Angle of unit model must be either 0, 90, 180, or 270. Angle is ${i}`):r.model.attr("label/transform",`translate(${o[0]}, ${o[1]}) rotate(-${i})`)}),self._paper.on("link:mouseenter",function(r){let a=document.querySelector("#stream-table-data"),i=document.querySelector("#fv");if(!a||!i)return;let o=new joint.linkTools.Vertices({focusOpacity:.5,redundancyRemoval:!0,snapRadius:20,vertexAdding:!0}),s=new joint.linkTools.Segments,l=new joint.dia.ToolsView({tools:[o,s]});r.addTools(l),r.showTools();const u=new CustomEvent("HighlightStream",{detail:{streamId:r.model.id}});i.dispatchEvent(u),a.dispatchEvent(u)}),self._paper.on("link:mouseleave",function(r){r.hideTools();const a=new CustomEvent("RemoveHighlightStream",{detail:{streamId:r.model.id}});t&&t.dispatchEvent(a),n&&n.dispatchEvent(a)}),self._paper.on("link:contextmenu",function(r,a){r.model.label(Ws).attrs.text.display==="none"?r.model.label(Ws,_f):r.model.label(0,Sf)})}zoomToFit(t=30){this._paperScroller.zoomToFit({padding:t})}postSetupRegisterEvents(){this.zoomToFit(),this._graph.getLinks().forEach(t=>{let n=t.findView(this._paper);n.el.addEventListener("HighlightStream",()=>{n.model.attr({line:{stroke:this._highlightLinkStroke,"stroke-width":this._highlightLinkStrokeWidth}})}),n.el.addEventListener("RemoveHighlightStream",()=>{n.model.attr({line:{stroke:this._originalLinkStroke,"stroke-width":this._originalLinkStrokeWidth}})})})}reorderLabel(t){let n=null,r=null;if(t.cells.forEach((i,o)=>{i.id.includes("liq")&&(n=o),i.id.includes("vap")&&(r=o)}),!n||!r)return;const a=t.cells[n];t.cells[n]=t.cells[r],t.cells[r]=a,t.cells[n]}setup(t){const n="/assets/image/flowsheet_icons/";t.cells.reverse(),t.cells.forEach(r=>{if(r.type==="standard.Image"){let a=n+r.attrs.image.xlinkHref.match(/([^\/]+\.svg)$/)[0];r.attrs.image={...r.attrs.image,xlinkHref:a}}r.labels&&(r.z=1e3,r.labels[0])}),this.reorderLabel(t),this._graph.fromJSON(t),this.postSetupRegisterEvents()}}class fC{constructor(t){U(this,"_model");this._model=t}get model(){return this._model}set model(t){this._model=t}findCellIndex(t,n){for(let r=0;r{const o=i.getEndAnchor("source"),s=i.getEndAnchor("target"),l=new g.Point(o.x+t.source.x,o.y+t.source.y),u=new g.Point(s.x+t.destination.x,s.y+t.destination.y),h=i.getEndView("source").model.angle(),d=i.getEndView("target").model.angle(),p=h%180===0?1:-1,w=d%180===0?1:-1,m=l.rotate(o,p*h),_=u.rotate(s,w*d);return joint.routers.manhattan([m,...r,_],a,i)}}processRoutingConfig(){const t=this._model.routing_config;for(let n in t){const r=this.findCellIndex(n,"standard.Link");let a=t[n].cell_config.gap,i=this.routerGapFnFactory(a);this._model.cells[r].router=i}return this._model.cells.map(n=>{if(n.labels&&n.labels[1].position)return n.labels.reverse(),n}),this._model}}let dC=class{constructor(t,n,r){U(this,"_app");U(this,"UNFIXED","unfixed");U(this,"FIXED","fixed");U(this,"PARAMETER","parameter");U(this,"EXPRESSION","expression");U(this,"highlightFn");U(this,"removeHighlightFn");U(this,"gridCellMouseEnterFn");U(this,"gridCellMouseLeaveFn");U(this,"existing_var_types");U(this,"_gridOptions");U(this,"viewInLogPanel");this._app=t,this.viewInLogPanel=r,this.defineTableBrushingFns(),this.initTable(n),this.existing_var_types=new Set}initTable(t){this.clearTable(),this.emptyVarTypesPanel(),this.fillTable(t),this.setupEvents()}clearTable(){const t=document.querySelector("#stream-table-data");t&&(t.innerHTML="")}emptyVarTypesPanel(){this.existing_var_types=new Set;const t=document.querySelector("#existing-variable-types");t.innerHTML=""}fillVarTypesPanel(){const t=document.querySelector("#existing-variable-types"),n="streamtable-vartype-element";if(this.existing_var_types.has(this.FIXED)||this.existing_var_types.has(this.PARAMETER)||this.existing_var_types.has(this.EXPRESSION)){const r=document.createElement("p");r.innerHTML="Annotated Variable Types:",r.className=n,t.appendChild(r)}this.existing_var_types.forEach(r=>{switch(r){case this.UNFIXED:console.debug("Unfixed variables don't have a visual indicator");break;case this.FIXED:case this.PARAMETER:case this.EXPRESSION:const a=document.createElement("span");a.className=n;const i=document.createElement("span"),o=document.createElement("span");o.className="streamtable-vartype-text",i.className=`streamtable-vartype-${r}`,i.title=r,o.innerHTML=r,a.appendChild(i),a.appendChild(o),t.appendChild(a);break;default:console.warn("Couldn't identify Variable type")}})}fillTable(t){let n=t.model.stream_table;const r=document.querySelector("#hide-fields-list");r&&(r.innerHTML="");let a=n.columns,i=[];for(let w in a){let m=a[w];if(m!==""&&m!=="Units"&&!m.includes("_vartype"))if(m==="Variable")i.push({headerName:m,field:m,filter:"agTextColumnFilter",sortable:!0,resizable:!0,pinned:"left",cellRenderer:_=>''+_.value+""});else{i.push({headerName:m,field:m,filter:"agTextColumnFilter",sortable:!0,resizable:!0,cellRenderer:v=>''+v.value+""});let _=document.createElement("li"),E=document.createElement("div");E.className="checkbox",E.innerHTML=` + + `,_.appendChild(E),r.appendChild(_)}}let o=n.index,s=n.data,l=[],u="Variable";for(let w in o){let m={},_=s[w];for(let E in a)if(a[E]==="Units")_[E]&&_[E].html?m[u]=m[u]+''+_[E].html+"":m[u]=m[u]+'';else if(a[E]==="Variable")m[a[E]]=_[E];else{var[h,d]=_[E];let v="";switch(d){case this.UNFIXED:this.existing_var_types.add(d);break;case this.FIXED:case this.PARAMETER:case this.EXPRESSION:this.existing_var_types.add(d),v=``;break;default:console.warn(`Couldn't identify Variable type: ${d}`)}m[a[E]]=v+''+h+""}l.push(m)}this.fillVarTypesPanel(),this._gridOptions={columnDefs:i,rowData:l,suppressColumnVirtualisation:!0},this._gridOptions.getRowStyle=function(w){if(w.node.rowIndex%2===0)return{background:"#f3f3f3"}};let p=document.querySelector("#stream-table-data");new agGrid.Grid(p,this._gridOptions),this._gridOptions.columnApi.autoSizeAllColumns()}defineTableBrushingFns(){let t=document.querySelector("#stream-table-data"),n=document.querySelector("#fv");!t||!n||!this.viewInLogPanel.streamTable||(this.highlightFn=r=>{let a=t.querySelectorAll(`[col-id=${r.detail.streamId}]`);a.forEach((i,o)=>{i.getAttribute("role")=="columnheader"?i.classList.add("link-streamtable-hover-columnheader"):o==a.length-1?i.classList.add("link-streamtable-hover-lastrow"):i.classList.add("link-streamtable-hover")})},this.removeHighlightFn=r=>{console.log("remove hight light"),t.querySelectorAll(`[col-id=${r.detail.streamId}]`).forEach(i=>{i.classList.remove("link-streamtable-hover-columnheader"),i.classList.remove("link-streamtable-hover-lastrow"),i.classList.remove("link-streamtable-hover")})},this.gridCellMouseEnterFn=r=>{const a=r.target.getAttribute("col-id");if(a){const i=new CustomEvent("HighlightStream",{detail:{streamId:a}});t.dispatchEvent(i),n.dispatchEvent(i)}},this.gridCellMouseLeaveFn=r=>{const a=r.target.getAttribute("col-id"),i=new CustomEvent("RemoveHighlightStream",{detail:{streamId:a}});t.dispatchEvent(i),n.dispatchEvent(i)})}registerTableBrushing(){let t=document.querySelector("#stream-table-data");document.querySelector("#fv");let n=document.querySelectorAll("[col-id]");t.removeEventListener("HighlightStream",this.highlightFn),t.removeEventListener("RemoveHighlightStream",this.removeHighlightFn),n.forEach(r=>{r.removeEventListener("mouseenter",this.gridCellMouseEnterFn),r.removeEventListener("mouseleave",this.gridCellMouseLeaveFn)}),t.addEventListener("HighlightStream",this.highlightFn),t.addEventListener("RemoveHighlightStream",this.removeHighlightFn),n.forEach(r=>{r.addEventListener("mouseenter",this.gridCellMouseEnterFn),r.addEventListener("mouseleave",this.gridCellMouseLeaveFn)})}setupEvents(){let n=document.querySelector("#hide-fields-list").querySelectorAll("input[type=checkbox]"),r=this;n.forEach(function(a){a.addEventListener("change",function(i){var l;i.preventDefault();let o=i.target,s=(l=o.parentElement)==null?void 0:l.querySelector("span");o.checked?(s.style.display="block",r._gridOptions.columnApi.setColumnVisible(o.id,!0),r.registerTableBrushing()):(s.style.display="none",r._gridOptions.columnApi.setColumnVisible(o.id,!1))})}),this.registerTableBrushing()}};class hC{constructor(t,n,r,a,i,o,s){U(this,"_app");U(this,"_paper");U(this,"_stream_table");U(this,"flowsheetId");U(this,"getFSUrl");U(this,"putFSUrl");U(this,"isFvShow");U(this,"zoomRate");U(this,"toggleStreamNameBtn");U(this,"toggleLabelsBtn");U(this,"zoomInBtn");U(this,"zoomOutBtn");U(this,"zoomFitBtn");U(this,"zoomInHandler");U(this,"zoomOutHandler");U(this,"zoomFitHandler");this._app=t,this._paper=n,this._stream_table=r,this.flowsheetId=a,this.getFSUrl=i,this.putFSUrl=o,this.isFvShow=s,this.zoomRate=.2,this.zoomInHandler=void 0,this.zoomOutHandler=void 0,this.zoomFitHandler=void 0,this.registerEventExportFlowsheetToPng(),this.registerEventExportFlowsheetToSvg(),this.registerEventRefresh(this.getFSUrl,this.putFSUrl),this.registerEventSave(this.putFSUrl),this.zoomInBtn=document.querySelector("#zoom-in-btn"),this.zoomOutBtn=document.querySelector("#zoom-out-btn"),this.zoomFitBtn=document.querySelector("#zoom-to-fit"),s&&(this.toggleStreamNameBtn=document.querySelector("#stream-names-toggle"),this.toggleStreamNameBtn&&this.registerToggleStreamNamesEvent(this.toggleStreamNameBtn),this.toggleLabelsBtn=document.querySelector("#show-label-toggle"),this.toggleLabelsBtn&&this.registerEventToggleLabel(this.toggleLabelsBtn),this.zoomInBtn&&this.zoomOutBtn&&this.zoomFitBtn&&this.registerZoomEvent(this.zoomInBtn,this.zoomOutBtn,this.zoomFitBtn))}registerZoomEvent(t,n,r){this.zoomInHandler=()=>this.zoomInEvent(this._paper.paperScroller,this.zoomRate),this.zoomOutHandler=()=>this.zoomOutEvent(this._paper.paperScroller,this.zoomRate),this.zoomFitHandler=()=>this.zoomFitEvent(),t.addEventListener("click",this.zoomInHandler),n.addEventListener("click",this.zoomOutHandler),r.addEventListener("click",this.zoomFitHandler)}zoomInEvent(t,n){t.zoom(n,{max:100})}zoomOutEvent(t,n){t.zoom(-n,{min:.01})}zoomFitEvent(){this._paper.zoomToFit()}registerToggleStreamNamesEvent(t){t.addEventListener("click",()=>{t.getAttribute("data-toggle")==="true"?this._paper._graph.getLinks().forEach(function(r){r.label(jg,Sf)}):this._paper._graph.getLinks().forEach(function(r){r.label(jg,_f)})})}registerEventExportFlowsheetToPng(){const t=document.querySelector("#headerExportImageBtn");document.querySelector("#headerExportSvgBtn"),t.addEventListener("click",()=>{let n=this._paper.paper;const r=this.flowsheetId;n.hideTools(),n.toPNG(function(a){new joint.ui.Lightbox({image:a,downloadable:!0,fileName:r.concat(".png")}).open()},{scale:2,pixelRatio:2,preserveDimensions:!0,convertImagesToDataUris:!0,useComputedStyles:!0,stylesheet:".scalable * { vector-effect: non-scaling-stroke }"})})}registerEventExportFlowsheetToSvg(){document.querySelector("#headerExportSvgBtn").addEventListener("click",()=>{let n=this._paper.paper;const r=this.flowsheetId;n.hideTools(),n.toSVG(a=>{const i=new Blob([a],{type:"image/svg+xml;charset=utf-8"}),o=URL.createObjectURL(i);new joint.ui.Lightbox({image:o,downloadable:!0,fileName:r.concat(".svg")}).open()},{scale:2,pixelRatio:2,preserveDimensions:!0,convertImagesToDataUris:!0,useComputedStyles:!0,stylesheet:".scalable * { vector-effect: non-scaling-stroke }"})})}registerEventToggleLabel(t){t.addEventListener("click",()=>{t.getAttribute("data-toggle")=="true"?this._paper._graph.getLinks().forEach(function(r){r.label(Ws,_f)}):this._paper._graph.getLinks().forEach(function(r){r.label(Ws,Sf)})})}registerEventRefresh(t,n){document.querySelector("#refresh_btn").addEventListener("click",()=>{this._app.refreshModel(t,n,this._paper)})}registerEventSave(t){document.querySelector("#save_btn").addEventListener("click",()=>{this._app.saveModel(t,this._paper.graph)})}cleanUpEvent(){let t=document.getElementById("zoom-in-btn"),n=document.getElementById("zoom-out-btn"),r=document.getElementById("zoom-to-fit");if(t){let u=t.cloneNode(!0);t.parentNode.replaceChild(u,t)}if(n){let u=n.cloneNode(!0);n.parentNode.replaceChild(u,n)}if(r){let u=r.cloneNode(!0);r.parentNode.replaceChild(u,r)}let a=document.getElementById("flowsheet_component_header_dropdown_container"),i=document.getElementById("headerExportImageBtn"),o=document.getElementById("headerExportSvgBtn");if(i){let u=i.cloneNode(!0);a?a.replaceChild(u,i):console.log("error no parent nodes")}if(o){let u=o.cloneNode(!0);a?a.replaceChild(u,o):console.log("error download svg btn replacement failed, in toolbar, parent not found!")}let s=document.getElementById("save_btn");if(s){let u=s.cloneNode(!0);s.parentNode?s.parentNode.replaceChild(u,s):console.log("error save btn replacement error handle in toolbar, parent not found!")}let l=document.getElementById("refresh_btn");if(l){let u=l.cloneNode(!0);l.parentNode?l.parentNode.replaceChild(u,l):console.log("error refresh btn replacement error handle in toolbar, parent not found!")}}}const pC="_message_bar_container_8b2qe_1",gC="_messageBarTextContainer_8b2qe_9",mC="_messageBarShowUp_8b2qe_1",vC="_bg_successful_8b2qe_40",yC="_bg_error_8b2qe_44",os={message_bar_container:pC,messageBarTextContainer:gC,messageBarShowUp:mC,bg_successful:vC,bg_error:yC};function ir(e,t,n){let r="loading...";e=="refreshFS"&&t&&(r="Flowsheet refreshed."),e=="refreshFS"&&!t&&(r="Flowsheet refresh failed! Please reload the page!"),e=="userSave"&&t&&(r="Flowsheet saved."),e=="userSave"&&!t&&(r="Flowsheet save failed! Please restart the server!"),e=="diagnosticRefresh"&&t&&(r="Diagnostics refreshed."),e=="diagnosticRefresh"&&!t&&(r="Diagnostics refresh failed! Please restart the server!"),e=="diagnosticFNRunError"&&!t&&(n?r=n:r="Run diagnostics failed, please check your python terminal.");const a=` +
+

${r}

+
+ `,i=document.getElementById("messageBarContainer");i.innerHTML=a;const o=setTimeout(()=>{const s=document.getElementById("messageBarTextContainer");console.log(s),s?i.removeChild(s):console.log("Child node message bar is not found!"),clearTimeout(o)},3e3)}function k1(e,t){return function(){return e.apply(t,arguments)}}const{toString:wC}=Object.prototype,{getPrototypeOf:oh}=Object,El=(e=>t=>{const n=wC.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ft=e=>(e=e.toLowerCase(),t=>El(t)===e),Tl=e=>t=>typeof t===e,{isArray:ya}=Array,Ai=Tl("undefined");function _C(e){return e!==null&&!Ai(e)&&e.constructor!==null&&!Ai(e.constructor)&&mt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const A1=Ft("ArrayBuffer");function SC(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&A1(e.buffer),t}const bC=Tl("string"),mt=Tl("function"),R1=Tl("number"),Cl=e=>e!==null&&typeof e=="object",EC=e=>e===!0||e===!1,ss=e=>{if(El(e)!=="object")return!1;const t=oh(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},TC=Ft("Date"),CC=Ft("File"),OC=Ft("Blob"),xC=Ft("FileList"),PC=e=>Cl(e)&&mt(e.pipe),NC=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||mt(e.append)&&((t=El(e))==="formdata"||t==="object"&&mt(e.toString)&&e.toString()==="[object FormData]"))},DC=Ft("URLSearchParams"),kC=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zi(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),ya(e))for(r=0,a=e.length;r0;)if(a=n[r],t===a.toLowerCase())return a;return null}const L1=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),M1=e=>!Ai(e)&&e!==L1;function bf(){const{caseless:e}=M1(this)&&this||{},t={},n=(r,a)=>{const i=e&&$1(t,a)||a;ss(t[i])&&ss(r)?t[i]=bf(t[i],r):ss(r)?t[i]=bf({},r):ya(r)?t[i]=r.slice():t[i]=r};for(let r=0,a=arguments.length;r(zi(t,(a,i)=>{n&&mt(a)?e[i]=k1(a,n):e[i]=a},{allOwnKeys:r}),e),RC=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),$C=(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)},LC=(e,t,n,r)=>{let a,i,o;const s={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)o=a[i],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&oh(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},MC=(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},jC=e=>{if(!e)return null;if(ya(e))return e;let t=e.length;if(!R1(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},FC=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&oh(Uint8Array)),IC=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=r.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},UC=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},zC=Ft("HTMLFormElement"),HC=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),Fg=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),WC=Ft("RegExp"),j1=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};zi(n,(a,i)=>{let o;(o=t(a,i,e))!==!1&&(r[i]=o||a)}),Object.defineProperties(e,r)},GC=e=>{j1(e,(t,n)=>{if(mt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(mt(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+"'")})}})},VC=(e,t)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return ya(e)?r(e):r(String(e).split(t)),n},qC=()=>{},KC=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Uu="abcdefghijklmnopqrstuvwxyz",Ig="0123456789",F1={DIGIT:Ig,ALPHA:Uu,ALPHA_DIGIT:Uu+Uu.toUpperCase()+Ig},YC=(e=16,t=F1.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function XC(e){return!!(e&&mt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const JC=e=>{const t=new Array(10),n=(r,a)=>{if(Cl(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[a]=r;const i=ya(r)?[]:{};return zi(r,(o,s)=>{const l=n(o,a+1);!Ai(l)&&(i[s]=l)}),t[a]=void 0,i}}return r};return n(e,0)},QC=Ft("AsyncFunction"),BC=e=>e&&(Cl(e)||mt(e))&&mt(e.then)&&mt(e.catch),k={isArray:ya,isArrayBuffer:A1,isBuffer:_C,isFormData:NC,isArrayBufferView:SC,isString:bC,isNumber:R1,isBoolean:EC,isObject:Cl,isPlainObject:ss,isUndefined:Ai,isDate:TC,isFile:CC,isBlob:OC,isRegExp:WC,isFunction:mt,isStream:PC,isURLSearchParams:DC,isTypedArray:FC,isFileList:xC,forEach:zi,merge:bf,extend:AC,trim:kC,stripBOM:RC,inherits:$C,toFlatObject:LC,kindOf:El,kindOfTest:Ft,endsWith:MC,toArray:jC,forEachEntry:IC,matchAll:UC,isHTMLForm:zC,hasOwnProperty:Fg,hasOwnProp:Fg,reduceDescriptors:j1,freezeMethods:GC,toObjectSet:VC,toCamelCase:HC,noop:qC,toFiniteNumber:KC,findKey:$1,global:L1,isContextDefined:M1,ALPHABET:F1,generateString:YC,isSpecCompliantForm:XC,toJSONObject:JC,isAsyncFn:QC,isThenable:BC};function X(e,t,n,r,a){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),a&&(this.response=a)}k.inherits(X,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:k.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const I1=X.prototype,U1={};["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=>{U1[e]={value:e}});Object.defineProperties(X,U1);Object.defineProperty(I1,"isAxiosError",{value:!0});X.from=(e,t,n,r,a,i)=>{const o=Object.create(I1);return k.toFlatObject(e,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),X.call(o,e.message,t,n,r,a),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const ZC=null;function Ef(e){return k.isPlainObject(e)||k.isArray(e)}function z1(e){return k.endsWith(e,"[]")?e.slice(0,-2):e}function Ug(e,t,n){return e?e.concat(t).map(function(a,i){return a=z1(a),!n&&i?"["+a+"]":a}).join(n?".":""):t}function eO(e){return k.isArray(e)&&!e.some(Ef)}const tO=k.toFlatObject(k,{},null,function(t){return/^is[A-Z]/.test(t)});function Ol(e,t,n){if(!k.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=k.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,E){return!k.isUndefined(E[_])});const r=n.metaTokens,a=n.visitor||h,i=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&k.isSpecCompliantForm(t);if(!k.isFunction(a))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(k.isDate(m))return m.toISOString();if(!l&&k.isBlob(m))throw new X("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(m)||k.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function h(m,_,E){let v=m;if(m&&!E&&typeof m=="object"){if(k.endsWith(_,"{}"))_=r?_:_.slice(0,-2),m=JSON.stringify(m);else if(k.isArray(m)&&eO(m)||(k.isFileList(m)||k.endsWith(_,"[]"))&&(v=k.toArray(m)))return _=z1(_),v.forEach(function(S,O){!(k.isUndefined(S)||S===null)&&t.append(o===!0?Ug([_],O,i):o===null?_:_+"[]",u(S))}),!1}return Ef(m)?!0:(t.append(Ug(E,_,i),u(m)),!1)}const d=[],p=Object.assign(tO,{defaultVisitor:h,convertValue:u,isVisitable:Ef});function w(m,_){if(!k.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+_.join("."));d.push(m),k.forEach(m,function(v,y){(!(k.isUndefined(v)||v===null)&&a.call(t,v,k.isString(y)?y.trim():y,_,p))===!0&&w(v,_?_.concat(y):[y])}),d.pop()}}if(!k.isObject(e))throw new TypeError("data must be an object");return w(e),t}function zg(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function sh(e,t){this._pairs=[],e&&Ol(e,this,t)}const H1=sh.prototype;H1.append=function(t,n){this._pairs.push([t,n])};H1.toString=function(t){const n=t?function(r){return t.call(this,r,zg)}:zg;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function nO(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function W1(e,t,n){if(!t)return e;const r=n&&n.encode||nO,a=n&&n.serialize;let i;if(a?i=a(t,n):i=k.isURLSearchParams(t)?t.toString():new sh(t,n).toString(r),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class rO{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){k.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Hg=rO,G1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},aO=typeof URLSearchParams<"u"?URLSearchParams:sh,iO=typeof FormData<"u"?FormData:null,oO=typeof Blob<"u"?Blob:null,sO={isBrowser:!0,classes:{URLSearchParams:aO,FormData:iO,Blob:oO},protocols:["http","https","file","blob","url","data"]},V1=typeof window<"u"&&typeof document<"u",lO=(e=>V1&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),uO=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),cO=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:V1,hasStandardBrowserEnv:lO,hasStandardBrowserWebWorkerEnv:uO},Symbol.toStringTag,{value:"Module"})),Lt={...cO,...sO};function fO(e,t){return Ol(e,new Lt.classes.URLSearchParams,Object.assign({visitor:function(n,r,a,i){return Lt.isNode&&k.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function dO(e){return k.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function hO(e){const t={},n=Object.keys(e);let r;const a=n.length;let i;for(r=0;r=n.length;return o=!o&&k.isArray(a)?a.length:o,l?(k.hasOwnProp(a,o)?a[o]=[a[o],r]:a[o]=r,!s):((!a[o]||!k.isObject(a[o]))&&(a[o]=[]),t(n,r,a[o],i)&&k.isArray(a[o])&&(a[o]=hO(a[o])),!s)}if(k.isFormData(e)&&k.isFunction(e.entries)){const n={};return k.forEachEntry(e,(r,a)=>{t(dO(r),a,n,0)}),n}return null}function pO(e,t,n){if(k.isString(e))try{return(t||JSON.parse)(e),k.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const lh={transitional:G1,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,i=k.isObject(t);if(i&&k.isHTMLForm(t)&&(t=new FormData(t)),k.isFormData(t))return a&&a?JSON.stringify(q1(t)):t;if(k.isArrayBuffer(t)||k.isBuffer(t)||k.isStream(t)||k.isFile(t)||k.isBlob(t))return t;if(k.isArrayBufferView(t))return t.buffer;if(k.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return fO(t,this.formSerializer).toString();if((s=k.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Ol(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||a?(n.setContentType("application/json",!1),pO(t)):t}],transformResponse:[function(t){const n=this.transitional||lh.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(t&&k.isString(t)&&(r&&!this.responseType||a)){const o=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?X.from(s,X.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Lt.classes.FormData,Blob:Lt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};k.forEach(["delete","get","head","post","put","patch"],e=>{lh.headers[e]={}});const uh=lh,gO=k.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"]),mO=e=>{const t={};let n,r,a;return e&&e.split(` +`).forEach(function(o){a=o.indexOf(":"),n=o.substring(0,a).trim().toLowerCase(),r=o.substring(a+1).trim(),!(!n||t[n]&&gO[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Wg=Symbol("internals");function Ma(e){return e&&String(e).trim().toLowerCase()}function ls(e){return e===!1||e==null?e:k.isArray(e)?e.map(ls):String(e)}function vO(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 yO=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function zu(e,t,n,r,a){if(k.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!k.isString(t)){if(k.isString(r))return t.indexOf(r)!==-1;if(k.isRegExp(r))return r.test(t)}}function wO(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function _O(e,t){const n=k.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(a,i,o){return this[r].call(this,t,a,i,o)},configurable:!0})})}class xl{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function i(s,l,u){const h=Ma(l);if(!h)throw new Error("header name must be a non-empty string");const d=k.findKey(a,h);(!d||a[d]===void 0||u===!0||u===void 0&&a[d]!==!1)&&(a[d||l]=ls(s))}const o=(s,l)=>k.forEach(s,(u,h)=>i(u,h,l));return k.isPlainObject(t)||t instanceof this.constructor?o(t,n):k.isString(t)&&(t=t.trim())&&!yO(t)?o(mO(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=Ma(t),t){const r=k.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return vO(a);if(k.isFunction(n))return n.call(this,a,r);if(k.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ma(t),t){const r=k.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||zu(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function i(o){if(o=Ma(o),o){const s=k.findKey(r,o);s&&(!n||zu(r,r[s],s,n))&&(delete r[s],a=!0)}}return k.isArray(t)?t.forEach(i):i(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const i=n[r];(!t||zu(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const n=this,r={};return k.forEach(this,(a,i)=>{const o=k.findKey(r,i);if(o){n[o]=ls(a),delete n[i];return}const s=t?wO(i):String(i).trim();s!==i&&delete n[i],n[s]=ls(a),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return k.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&k.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(` +`)}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(a=>r.set(a)),r}static accessor(t){const r=(this[Wg]=this[Wg]={accessors:{}}).accessors,a=this.prototype;function i(o){const s=Ma(o);r[s]||(_O(a,o),r[s]=!0)}return k.isArray(t)?t.forEach(i):i(t),this}}xl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);k.reduceDescriptors(xl.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});k.freezeMethods(xl);const Xt=xl;function Hu(e,t){const n=this||uh,r=t||n,a=Xt.from(r.headers);let i=r.data;return k.forEach(e,function(s){i=s.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function K1(e){return!!(e&&e.__CANCEL__)}function Hi(e,t,n){X.call(this,e??"canceled",X.ERR_CANCELED,t,n),this.name="CanceledError"}k.inherits(Hi,X,{__CANCEL__:!0});function SO(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new X("Request failed with status code "+n.status,[X.ERR_BAD_REQUEST,X.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const bO=Lt.hasStandardBrowserEnv?{write(e,t,n,r,a,i){const o=[e+"="+encodeURIComponent(t)];k.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),k.isString(r)&&o.push("path="+r),k.isString(a)&&o.push("domain="+a),i===!0&&o.push("secure"),document.cookie=o.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 EO(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function TO(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Y1(e,t){return e&&!EO(t)?TO(e,t):t}const CO=Lt.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function a(i){let o=i;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=a(window.location.href),function(o){const s=k.isString(o)?a(o):o;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function OO(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function xO(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,i=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),h=r[i];o||(o=u),n[a]=l,r[a]=u;let d=i,p=0;for(;d!==a;)p+=n[d++],d=d%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),u-o{const i=a.loaded,o=a.lengthComputable?a.total:void 0,s=i-n,l=r(s),u=i<=o;n=i;const h={loaded:i,total:o,progress:o?i/o:void 0,bytes:s,rate:l||void 0,estimated:l&&o&&u?(o-i)/l:void 0,event:a};h[t?"download":"upload"]=!0,e(h)}}const PO=typeof XMLHttpRequest<"u",NO=PO&&function(e){return new Promise(function(n,r){let a=e.data;const i=Xt.from(e.headers).normalize();let{responseType:o,withXSRFToken:s}=e,l;function u(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let h;if(k.isFormData(a)){if(Lt.hasStandardBrowserEnv||Lt.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((h=i.getContentType())!==!1){const[_,...E]=h?h.split(";").map(v=>v.trim()).filter(Boolean):[];i.setContentType([_||"multipart/form-data",...E].join("; "))}}let d=new XMLHttpRequest;if(e.auth){const _=e.auth.username||"",E=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(_+":"+E))}const p=Y1(e.baseURL,e.url);d.open(e.method.toUpperCase(),W1(p,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function w(){if(!d)return;const _=Xt.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),v={data:!o||o==="text"||o==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:_,config:e,request:d};SO(function(S){n(S),u()},function(S){r(S),u()},v),d=null}if("onloadend"in d?d.onloadend=w:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(w)},d.onabort=function(){d&&(r(new X("Request aborted",X.ECONNABORTED,e,d)),d=null)},d.onerror=function(){r(new X("Network Error",X.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let E=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const v=e.transitional||G1;e.timeoutErrorMessage&&(E=e.timeoutErrorMessage),r(new X(E,v.clarifyTimeoutError?X.ETIMEDOUT:X.ECONNABORTED,e,d)),d=null},Lt.hasStandardBrowserEnv&&(s&&k.isFunction(s)&&(s=s(e)),s||s!==!1&&CO(p))){const _=e.xsrfHeaderName&&e.xsrfCookieName&&bO.read(e.xsrfCookieName);_&&i.set(e.xsrfHeaderName,_)}a===void 0&&i.setContentType(null),"setRequestHeader"in d&&k.forEach(i.toJSON(),function(E,v){d.setRequestHeader(v,E)}),k.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),o&&o!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",Gg(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",Gg(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=_=>{d&&(r(!_||_.type?new Hi(null,e,d):_),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const m=OO(p);if(m&&Lt.protocols.indexOf(m)===-1){r(new X("Unsupported protocol "+m+":",X.ERR_BAD_REQUEST,e));return}d.send(a||null)})},Tf={http:ZC,xhr:NO};k.forEach(Tf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Vg=e=>`- ${e}`,DO=e=>k.isFunction(e)||e===null||e===!1,X1={getAdapter:e=>{e=k.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let i=0;i`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?i.length>1?`since : +`+i.map(Vg).join(` +`):" "+Vg(i[0]):"as no adapter specified";throw new X("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:Tf};function Wu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Hi(null,e)}function qg(e){return Wu(e),e.headers=Xt.from(e.headers),e.data=Hu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),X1.getAdapter(e.adapter||uh.adapter)(e).then(function(r){return Wu(e),r.data=Hu.call(e,e.transformResponse,r),r.headers=Xt.from(r.headers),r},function(r){return K1(r)||(Wu(e),r&&r.response&&(r.response.data=Hu.call(e,e.transformResponse,r.response),r.response.headers=Xt.from(r.response.headers))),Promise.reject(r)})}const Kg=e=>e instanceof Xt?e.toJSON():e;function fa(e,t){t=t||{};const n={};function r(u,h,d){return k.isPlainObject(u)&&k.isPlainObject(h)?k.merge.call({caseless:d},u,h):k.isPlainObject(h)?k.merge({},h):k.isArray(h)?h.slice():h}function a(u,h,d){if(k.isUndefined(h)){if(!k.isUndefined(u))return r(void 0,u,d)}else return r(u,h,d)}function i(u,h){if(!k.isUndefined(h))return r(void 0,h)}function o(u,h){if(k.isUndefined(h)){if(!k.isUndefined(u))return r(void 0,u)}else return r(void 0,h)}function s(u,h,d){if(d in t)return r(u,h);if(d in e)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(u,h)=>a(Kg(u),Kg(h),!0)};return k.forEach(Object.keys(Object.assign({},e,t)),function(h){const d=l[h]||a,p=d(e[h],t[h],h);k.isUndefined(p)&&d!==s||(n[h]=p)}),n}const J1="1.6.5",ch={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ch[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Yg={};ch.transitional=function(t,n,r){function a(i,o){return"[Axios v"+J1+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,s)=>{if(t===!1)throw new X(a(o," has been removed"+(n?" in "+n:"")),X.ERR_DEPRECATED);return n&&!Yg[o]&&(Yg[o]=!0,console.warn(a(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,s):!0}};function kO(e,t,n){if(typeof e!="object")throw new X("options must be an object",X.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const i=r[a],o=t[i];if(o){const s=e[i],l=s===void 0||o(s,i,e);if(l!==!0)throw new X("option "+i+" must be "+l,X.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new X("Unknown option "+i,X.ERR_BAD_OPTION)}}const Cf={assertOptions:kO,validators:ch},un=Cf.validators;class Gs{constructor(t){this.defaults=t,this.interceptors={request:new Hg,response:new Hg}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=fa(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&Cf.assertOptions(r,{silentJSONParsing:un.transitional(un.boolean),forcedJSONParsing:un.transitional(un.boolean),clarifyTimeoutError:un.transitional(un.boolean)},!1),a!=null&&(k.isFunction(a)?n.paramsSerializer={serialize:a}:Cf.assertOptions(a,{encode:un.function,serialize:un.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&k.merge(i.common,i[n.method]);i&&k.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=Xt.concat(o,i);const s=[];let l=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(n)===!1||(l=l&&_.synchronous,s.unshift(_.fulfilled,_.rejected))});const u=[];this.interceptors.response.forEach(function(_){u.push(_.fulfilled,_.rejected)});let h,d=0,p;if(!l){const m=[qg.bind(this),void 0];for(m.unshift.apply(m,s),m.push.apply(m,u),p=m.length,h=Promise.resolve(n);d{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(s=>{r.subscribe(s),i=s}).then(a);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,s){r.reason||(r.reason=new Hi(i,o,s),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)}static source(){let t;return{token:new fh(function(a){t=a}),cancel:t}}}const AO=fh;function RO(e){return function(n){return e.apply(null,n)}}function $O(e){return k.isObject(e)&&e.isAxiosError===!0}const Of={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(Of).forEach(([e,t])=>{Of[t]=e});const LO=Of;function Q1(e){const t=new us(e),n=k1(us.prototype.request,t);return k.extend(n,us.prototype,t,{allOwnKeys:!0}),k.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return Q1(fa(e,a))},n}const me=Q1(uh);me.Axios=us;me.CanceledError=Hi;me.CancelToken=AO;me.isCancel=K1;me.VERSION=J1;me.toFormData=Ol;me.AxiosError=X;me.Cancel=me.CanceledError;me.all=function(t){return Promise.all(t)};me.spread=RO;me.isAxiosError=$O;me.mergeConfig=fa;me.AxiosHeaders=Xt;me.formToJSON=e=>q1(k.isHTMLForm(e)?new FormData(e):e);me.getAdapter=X1.getAdapter;me.HttpStatusCode=LO;me.default=me;const Zn=me;class MO{constructor(t,n,r,a,i,o){U(this,"flowsheetId");U(this,"isFvShow");U(this,"isStreamTableShow");U(this,"baseUrl");U(this,"getFSUrl");U(this,"putFSUrl");U(this,"model");U(this,"paper");U(this,"_is_graph_changed");U(this,"_save_time_interval_key");U(this,"_default_save_time_interval");U(this,"_save_time_interval");U(this,"stream_table");U(this,"toolbar");U(this,"cleanToolBarEvent");U(this,"viewInLogPanel");this.flowsheetId=t,this.isFvShow=r,this.isStreamTableShow=i,this.viewInLogPanel=o,this.baseUrl=`http://localhost:${n}`,this.getFSUrl=`/fs?id=${t}`,this.putFSUrl=`/fs?id=${t}`,this.model={},r&&(this.paper=new cC(this)),this._is_graph_changed=!1,this._save_time_interval_key="save_time_interval",this._default_save_time_interval=5e3,this._save_time_interval=this.getSaveTimeInterval(),this.setupGraphChangeChecker(this._save_time_interval,t),this.setGetFSUrl(),Zn.get(this.getFSUrl).then(s=>{this.model=s.data,r&&this.renderModel(this.model),i&&o.streamTable&&(this.stream_table=new dC(this,this.model,this.viewInLogPanel)),this.toolbar=new hC(this,this.paper,this.stream_table,this.flowsheetId,this.getFSUrl,this.putFSUrl,this.isFvShow),this.cleanToolBarEvent=this.toolbar.cleanUpEvent}).catch(s=>{console.log(s.message),console.log(s.response.status)}),this.fvExtraContentCleanUp()}setGetFSUrl(){let t=new URLSearchParams(window.location.search);if(!t.get("example"))return;let n=parseInt(t.get("example")),r=["example_1","example_2","example_3","example_4","example_5","example_6","example_7"];n<0||n>r.length||(this.getFSUrl=`/assets/testing_data/example_${n}.json`)}renderModel(t){const r=new fC(t).processRoutingConfig();this.paper.setup(r)}debug_removeFlowsheetPosition(t){let n=5;t.cells.forEach(r=>{n+=150,r.position&&(r.position={x:n,y:void 0})})}informUser(t,n){switch(t){case 0:console.log(n);break;case 1:console.warn(n);break;case 2:console.error(n);break;default:console.log(n)}}refreshModel(t,n,r){this.informUser(0,"Refresh: save current values from model");let a=r.graph,i=JSON.stringify(a.toJSON());Zn.put(n,i,{headers:{"Content-Type":"application/json"}}).then(()=>(this.informUser(0,"Refresh: load new model values from Python program"),Zn.get(t,{responseType:"json"}))).then(o=>{console.log(o.data);const s=o.data;let l;this.isStreamTableShow&&this.viewInLogPanel.streamTable&&(l=document.getElementById("hide-fields-list")),l&&(l.innerHTML="",this.renderModel(s),this.stream_table.initTable(s)),ir("refreshFS",!0)}).catch(o=>{ir("refreshFS",!1),o.response?this.informUser(2,"Fatal error: cannot save current model before refresh: "+o.response.data):this.informUser(2,"Fatal error: Could not retrieve new model from Python program: "+o.message)})}getSaveTimeInterval(){let t=`${this.baseUrl}/setting?setting_key=${this._save_time_interval_key}`,n=this._default_save_time_interval;return Zn.get(t,{headers:{"Content-Type":"application/json"}}).then(r=>{r.data.value!="None"?n=r.data.value:this.informUser(1,`Warning: save_time_interval was not set correctly. Default time value of + ${this._default_save_time_interval.toString()} + will be set.`)}).catch(r=>{this.informUser(2,"Fatal error: cannot get setting value: "+r)}),n}graphChanged(){this._is_graph_changed=!0}setupGraphChangeChecker(t,n){let r=this.putFSUrl;var a=setInterval(()=>{this._is_graph_changed&&(this.saveModel(r,this.paper.graph),this._is_graph_changed=!1)},t);return a}saveModel(t,n){let r=JSON.stringify(n.toJSON());Zn.put(t,r,{headers:{"Content-Type":"application/json"}}).then(a=>{console.log("saved"),this.informUser(0,"Saved new model values"),ir("userSave",!0)}).catch(a=>{ir("userSave",!1),this.informUser(2,"Fatal error: cannot save current model: "+a)})}fvExtraContentCleanUp(){let t=document.getElementById("fv");if(!(!t||t.childNodes.length<=1))for(t.childNodes[(t==null?void 0:t.childNodes.length)-1];t.firstChild!==t.lastChild;)t.removeChild(t.firstChild)}}var xf={},da={},B1={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",o=0;o-1&&e%1==0&&e-1&&e%1==0&&e<=cP}var ph=fP,dP=Wi,hP=ph,pP=Sr,gP="[object Arguments]",mP="[object Array]",vP="[object Boolean]",yP="[object Date]",wP="[object Error]",_P="[object Function]",SP="[object Map]",bP="[object Number]",EP="[object Object]",TP="[object RegExp]",CP="[object Set]",OP="[object String]",xP="[object WeakMap]",PP="[object ArrayBuffer]",NP="[object DataView]",DP="[object Float32Array]",kP="[object Float64Array]",AP="[object Int8Array]",RP="[object Int16Array]",$P="[object Int32Array]",LP="[object Uint8Array]",MP="[object Uint8ClampedArray]",jP="[object Uint16Array]",FP="[object Uint32Array]",re={};re[DP]=re[kP]=re[AP]=re[RP]=re[$P]=re[LP]=re[MP]=re[jP]=re[FP]=!0;re[gP]=re[mP]=re[PP]=re[vP]=re[NP]=re[yP]=re[wP]=re[_P]=re[SP]=re[bP]=re[EP]=re[TP]=re[CP]=re[OP]=re[xP]=!1;function IP(e){return pP(e)&&hP(e.length)&&!!re[dP(e)]}var UP=IP;function zP(e){return function(t){return e(t)}}var gh=zP,qs={exports:{}};qs.exports;(function(e,t){var n=Z1,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,o=i&&n.process,s=function(){try{var l=a&&a.require&&a.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(qs,qs.exports);var mh=qs.exports,HP=UP,WP=gh,tm=mh,nm=tm&&tm.isTypedArray,GP=nm?WP(nm):HP,vh=GP,VP=Kx,qP=Pl,KP=wt,YP=Nl,XP=hh,JP=vh,QP=Object.prototype,BP=QP.hasOwnProperty;function ZP(e,t){var n=KP(e),r=!n&&qP(e),a=!n&&!r&&YP(e),i=!n&&!r&&!a&&JP(e),o=n||r||a||i,s=o?VP(e.length,String):[],l=s.length;for(var u in e)(t||BP.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||XP(u,l)))&&s.push(u);return s}var iw=ZP,eN=Object.prototype;function tN(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||eN;return e===n}var Dl=tN;function nN(e,t){return function(n){return e(t(n))}}var ow=nN,rN=ow,aN=rN(Object.keys,Object),iN=aN,oN=Dl,sN=iN,lN=Object.prototype,uN=lN.hasOwnProperty;function cN(e){if(!oN(e))return sN(e);var t=[];for(var n in Object(e))uN.call(e,n)&&n!="constructor"&&t.push(n);return t}var sw=cN,fN=tw,dN=ph;function hN(e){return e!=null&&dN(e.length)&&!fN(e)}var kl=hN,pN=iw,gN=sw,mN=kl;function vN(e){return mN(e)?pN(e):gN(e)}var br=vN,yN=Vx,wN=br;function _N(e,t){return e&&yN(e,t,wN)}var SN=_N,bN=kl;function EN(e,t){return function(n,r){if(n==null)return n;if(!bN(n))return e(n,r);for(var a=n.length,i=t?a:-1,o=Object(n);(t?i--:++i-1}var KN=qN,YN=Al;function XN(e,t){var n=this.__data__,r=YN(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var JN=XN,QN=RN,BN=zN,ZN=GN,eD=KN,tD=JN;function _a(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ts))return!1;var u=i.get(e),h=i.get(t);if(u&&h)return u==t&&h==e;var d=-1,p=!0,w=n&zk?new jk:void 0;for(i.set(e,t),i.set(t,e);++d(t==null&&(t=e()),t)}function c$(e,t){return e.filter(n=>n!==t)}function f$(e,t){const n=new Set,r=i=>n.add(i);e.forEach(r),t.forEach(r);const a=[];return n.forEach(i=>a.push(i)),a}class d${enter(t){const n=this.entered.length,r=a=>this.isNodeInDocument(a)&&(!a.contains||a.contains(t));return this.entered=f$(this.entered.filter(r),[t]),n===0&&this.entered.length>0}leave(t){const n=this.entered.length;return this.entered=c$(this.entered.filter(this.isNodeInDocument),t),n>0&&this.entered.length===0}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class h${initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(t=>{Object.defineProperty(this.item,t,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${t}" until the drop event.`),null}})})}loadDataTransfer(t){if(t){const n={};Object.keys(this.config.exposeProperties).forEach(r=>{const a=this.config.exposeProperties[r];a!=null&&(n[r]={value:a(t,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,n)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(t,n){return n===t.getSourceId()}endDrag(){}constructor(t){this.config=t,this.item={},this.initializeExposedProperties()}}const Ow="__NATIVE_FILE__",xw="__NATIVE_URL__",Pw="__NATIVE_TEXT__",Nw="__NATIVE_HTML__",Om=Object.freeze(Object.defineProperty({__proto__:null,FILE:Ow,HTML:Nw,TEXT:Pw,URL:xw},Symbol.toStringTag,{value:"Module"}));function Ku(e,t,n){const r=t.reduce((a,i)=>a||e.getData(i),"");return r??n}const Rf={[Ow]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[Nw]:{exposeProperties:{html:(e,t)=>Ku(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[xw]:{exposeProperties:{urls:(e,t)=>Ku(e,t,"").split(` +`),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[Pw]:{exposeProperties:{text:(e,t)=>Ku(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function p$(e,t){const n=Rf[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new h$(n);return r.loadDataTransfer(t),r}function Yu(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(Rf).filter(n=>{const r=Rf[n];return r!=null&&r.matchesTypes?r.matchesTypes.some(a=>t.indexOf(a)>-1):!1})[0]||null}const g$=Cw(()=>/firefox/i.test(navigator.userAgent)),Dw=Cw(()=>!!window.safari);class xm{interpolate(t){const{xs:n,ys:r,c1s:a,c2s:i,c3s:o}=this;let s=n.length-1;if(t===n[s])return r[s];let l=0,u=o.length-1,h;for(;l<=u;){h=Math.floor(.5*(l+u));const w=n[h];if(wt)u=h-1;else return r[h]}s=Math.max(0,u);const d=t-n[s],p=d*d;return r[s]+a[s]*d+i[s]*p+o[s]*d*p}constructor(t,n){const{length:r}=t,a=[];for(let w=0;wt[w]{let A=new xm([0,.5,1],[l.y,l.y/h*m,l.y+m-h]).interpolate(p);return Dw()&&i&&(A+=(window.devicePixelRatio-1)*m),A},E=()=>new xm([0,.5,1],[l.x,l.x/u*w,l.x+w-u]).interpolate(d),{offsetX:v,offsetY:y}=a,S=v===0||v,O=y===0||y;return{x:S?v:E(),y:O?y:_()}}let _$=class{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var t;return!((t=this.globalContext)===null||t===void 0)&&t.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var t;return((t=this.optionsArgs)===null||t===void 0?void 0:t.rootElement)||this.window}constructor(t,n){this.ownerDocument=null,this.globalContext=t,this.optionsArgs=n}};function S$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pm(e){for(var t=1;t{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDragSource(t,n,r){this.sourceNodes.set(t,n),this.sourceNodeOptions.set(t,r);const a=o=>this.handleDragStart(o,t),i=o=>this.handleSelectStart(o);return n.setAttribute("draggable","true"),n.addEventListener("dragstart",a),n.addEventListener("selectstart",i),()=>{this.sourceNodes.delete(t),this.sourceNodeOptions.delete(t),n.removeEventListener("dragstart",a),n.removeEventListener("selectstart",i),n.setAttribute("draggable","false")}}connectDropTarget(t,n){const r=o=>this.handleDragEnter(o,t),a=o=>this.handleDragOver(o,t),i=o=>this.handleDrop(o,t);return n.addEventListener("dragenter",r),n.addEventListener("dragover",a),n.addEventListener("drop",i),()=>{n.removeEventListener("dragenter",r),n.removeEventListener("dragover",a),n.removeEventListener("drop",i)}}addEventListeners(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const t=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(t);return Pm({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const t=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(t);return Pm({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const t=this.monitor.getItemType();return Object.keys(Om).some(n=>Om[n]===t)}beginDragNativeItem(t,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=p$(t,n),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(t){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t;const n=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var r;return(r=this.rootElement)===null||r===void 0?void 0:r.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},n)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var t;(t=this.window)===null||t===void 0||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(t,n){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}handleDragEnter(t,n){this.dragEnterTargetIds.unshift(n)}handleDragOver(t,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}handleDrop(t,n){this.dropTargetIds.unshift(n)}constructor(t,n,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=a=>{const i=this.sourceNodes.get(a);return i&&kw(i)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=a=>!!(a&&this.document&&this.document.body&&this.document.body.contains(a)),this.endDragIfSourceWasRemovedFromDOM=()=>{const a=this.currentDragSourceNode;a==null||this.isNodeInDocument(a)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=a=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(a||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=a=>{if(a.defaultPrevented)return;const{dragStartSourceIds:i}=this;this.dragStartSourceIds=null;const o=jo(a);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(i||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:o});const{dataTransfer:s}=a,l=Yu(s);if(this.monitor.isDragging()){if(s&&typeof s.setDragImage=="function"){const h=this.monitor.getSourceId(),d=this.sourceNodes.get(h),p=this.sourcePreviewNodes.get(h)||d;if(p){const{anchorX:w,anchorY:m,offsetX:_,offsetY:E}=this.getCurrentSourcePreviewNodeOptions(),S=w$(d,p,o,{anchorX:w,anchorY:m},{offsetX:_,offsetY:E});s.setDragImage(p,S.x,S.y)}}try{s==null||s.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(a.target);const{captureDraggingState:u}=this.getCurrentSourcePreviewNodeOptions();u?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(l)this.beginDragNativeItem(l);else{if(s&&!s.types&&(a.target&&!a.target.hasAttribute||!a.target.hasAttribute("draggable")))return;a.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=a=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var i;(i=this.currentNativeSource)===null||i===void 0||i.loadDataTransfer(a.dataTransfer)}if(!this.enterLeaveCounter.enter(a.target)||this.monitor.isDragging())return;const{dataTransfer:s}=a,l=Yu(s);l&&this.beginDragNativeItem(l,s)},this.handleTopDragEnter=a=>{const{dragEnterTargetIds:i}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=a.altKey,i.length>0&&this.actions.hover(i,{clientOffset:jo(a)}),i.some(s=>this.monitor.canDropOnTarget(s))&&(a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=a=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var i;(i=this.currentNativeSource)===null||i===void 0||i.loadDataTransfer(a.dataTransfer)}},this.handleTopDragOver=a=>{const{dragOverTargetIds:i}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect="none");return}this.altKeyPressed=a.altKey,this.lastClientOffset=jo(a),this.scheduleHover(i),(i||[]).some(s=>this.monitor.canDropOnTarget(s))?(a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?a.preventDefault():(a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=a=>{this.isDraggingNativeItem()&&a.preventDefault(),this.enterLeaveCounter.leave(a.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=a=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var i;a.preventDefault(),(i=this.currentNativeSource)===null||i===void 0||i.loadDataTransfer(a.dataTransfer)}else Yu(a.dataTransfer)&&a.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=a=>{const{dropTargetIds:i}=this;this.dropTargetIds=[],this.actions.hover(i,{clientOffset:jo(a)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=a=>{const i=a.target;typeof i.dragDrop=="function"&&(i.tagName==="INPUT"||i.tagName==="SELECT"||i.tagName==="TEXTAREA"||i.isContentEditable||(a.preventDefault(),i.dragDrop()))},this.options=new _$(n,r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new d$(this.isNodeInDocument)}}const E$=function(t,n,r){return new b$(t,n,r)};function G(e,t,...n){if(T$()&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){let r;if(t===void 0)r=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let a=0;r=new Error(t.replace(/%s/g,function(){return n[a++]})),r.name="Invariant Violation"}throw r.framesToPop=1,r}}function T$(){return typeof process<"u"&&process.env.NODE_ENV==="production"}var Dn;(function(e){e.mouse="mouse",e.touch="touch",e.keyboard="keyboard"})(Dn||(Dn={}));class C${get delay(){var t;return(t=this.args.delay)!==null&&t!==void 0?t:0}get scrollAngleRanges(){return this.args.scrollAngleRanges}get getDropTargetElementsAtPoint(){return this.args.getDropTargetElementsAtPoint}get ignoreContextMenu(){var t;return(t=this.args.ignoreContextMenu)!==null&&t!==void 0?t:!1}get enableHoverOutsideTarget(){var t;return(t=this.args.enableHoverOutsideTarget)!==null&&t!==void 0?t:!1}get enableKeyboardEvents(){var t;return(t=this.args.enableKeyboardEvents)!==null&&t!==void 0?t:!1}get enableMouseEvents(){var t;return(t=this.args.enableMouseEvents)!==null&&t!==void 0?t:!1}get enableTouchEvents(){var t;return(t=this.args.enableTouchEvents)!==null&&t!==void 0?t:!0}get touchSlop(){return this.args.touchSlop||0}get delayTouchStart(){var t,n,r,a;return(a=(r=(t=this.args)===null||t===void 0?void 0:t.delayTouchStart)!==null&&r!==void 0?r:(n=this.args)===null||n===void 0?void 0:n.delay)!==null&&a!==void 0?a:0}get delayMouseStart(){var t,n,r,a;return(a=(r=(t=this.args)===null||t===void 0?void 0:t.delayMouseStart)!==null&&r!==void 0?r:(n=this.args)===null||n===void 0?void 0:n.delay)!==null&&a!==void 0?a:0}get window(){if(this.context&&this.context.window)return this.context.window;if(typeof window<"u")return window}get document(){var t;if(!((t=this.context)===null||t===void 0)&&t.document)return this.context.document;if(this.window)return this.window.document}get rootElement(){var t;return((t=this.args)===null||t===void 0?void 0:t.rootElement)||this.document}constructor(t,n){this.args=t,this.context=n}}function O$(e,t,n,r){return Math.sqrt(Math.pow(Math.abs(n-e),2)+Math.pow(Math.abs(r-t),2))}function x$(e,t,n,r,a){if(!a)return!1;const i=Math.atan2(r-t,n-e)*180/Math.PI+180;for(let o=0;o=s.start)&&(s.end==null||i<=s.end))return!0}return!1}const P$={Left:1,Right:2,Center:4},N$={Left:0,Center:1,Right:2};function Xu(e){return e.button===void 0||e.button===N$.Left}function D$(e){return e.buttons===void 0||(e.buttons&P$.Left)===0}function Aw(e){return!!e.targetTouches}const k$=1;function A$(e){const t=e.nodeType===k$?e:e.parentElement;if(!t)return;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function R$(e,t){if(e.targetTouches.length===1)return Ys(e.targetTouches[0]);if(t&&e.touches.length===1&&e.touches[0].target===t.target)return Ys(e.touches[0])}function Ys(e,t){return Aw(e)?R$(e,t):{x:e.clientX,y:e.clientY}}const Nm=(()=>{let e=!1;try{addEventListener("test",()=>{},Object.defineProperty({},"passive",{get(){return e=!0,!0}}))}catch{}return e})(),Fa={[Dn.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[Dn.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[Dn.keyboard]:{keydown:"keydown"}};class li{profile(){var t;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:((t=this.dragOverTargetIds)===null||t===void 0?void 0:t.length)||0}}get document(){return this.options.document}setup(){const t=this.options.rootElement;t&&(G(!li.isSetUp,"Cannot have two Touch backends at the same time."),li.isSetUp=!0,this.addEventListener(t,"start",this.getTopMoveStartHandler()),this.addEventListener(t,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(t,"move",this.handleTopMove),this.addEventListener(t,"move",this.handleTopMoveCapture,!0),this.addEventListener(t,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(t,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(t,"keydown",this.handleCancelOnEscape,!0))}teardown(){const t=this.options.rootElement;t&&(li.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(t,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(t,"start",this.handleTopMoveStart),this.removeEventListener(t,"move",this.handleTopMoveCapture,!0),this.removeEventListener(t,"move",this.handleTopMove),this.removeEventListener(t,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(t,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(t,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}addEventListener(t,n,r,a=!1){const i=Nm?{capture:a,passive:!1}:a;this.listenerTypes.forEach(function(o){const s=Fa[o][n];s&&t.addEventListener(s,r,i)})}removeEventListener(t,n,r,a=!1){const i=Nm?{capture:a,passive:!1}:a;this.listenerTypes.forEach(function(o){const s=Fa[o][n];s&&t.removeEventListener(s,r,i)})}connectDragSource(t,n){const r=this.handleMoveStart.bind(this,t);return this.sourceNodes.set(t,n),this.addEventListener(n,"start",r),()=>{this.sourceNodes.delete(t),this.removeEventListener(n,"start",r)}}connectDragPreview(t,n,r){return this.sourcePreviewNodeOptions.set(t,r),this.sourcePreviewNodes.set(t,n),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDropTarget(t,n){const r=this.options.rootElement;if(!this.document||!r)return()=>{};const a=i=>{if(!this.document||!r||!this.monitor.isDragging())return;let o;switch(i.type){case Fa.mouse.move:o={x:i.clientX,y:i.clientY};break;case Fa.touch.move:var s,l;o={x:((s=i.touches[0])===null||s===void 0?void 0:s.clientX)||0,y:((l=i.touches[0])===null||l===void 0?void 0:l.clientY)||0};break}const u=o!=null?this.document.elementFromPoint(o.x,o.y):void 0,h=u&&n.contains(u);if(u===n||h)return this.handleMove(i,t)};return this.addEventListener(this.document.body,"move",a),this.targetNodes.set(t,n),()=>{this.document&&(this.targetNodes.delete(t),this.removeEventListener(this.document.body,"move",a))}}getTopMoveStartHandler(){return!this.options.delayTouchStart&&!this.options.delayMouseStart?this.handleTopMoveStart:this.handleTopMoveStartDelay}installSourceNodeRemovalObserver(t){this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=t,this.draggedSourceNodeRemovalObserver=new MutationObserver(()=>{t&&!t.parentElement&&(this.resurrectSourceNode(),this.uninstallSourceNodeRemovalObserver())}),!(!t||!t.parentElement)&&this.draggedSourceNodeRemovalObserver.observe(t.parentElement,{childList:!0})}resurrectSourceNode(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}uninstallSourceNodeRemovalObserver(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}constructor(t,n,r){this.getSourceClientOffset=a=>{const i=this.sourceNodes.get(a);return i&&A$(i)},this.handleTopMoveStartCapture=a=>{Xu(a)&&(this.moveStartSourceIds=[])},this.handleMoveStart=a=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(a)},this.handleTopMoveStart=a=>{if(!Xu(a))return;const i=Ys(a);i&&(Aw(a)&&(this.lastTargetTouchFallback=a.targetTouches[0]),this._mouseClientOffset=i),this.waitingForDelay=!1},this.handleTopMoveStartDelay=a=>{if(!Xu(a))return;const i=a.type===Fa.touch.start?this.options.delayTouchStart:this.options.delayMouseStart;this.timeout=setTimeout(this.handleTopMoveStart.bind(this,a),i),this.waitingForDelay=!0},this.handleTopMoveCapture=()=>{this.dragOverTargetIds=[]},this.handleMove=(a,i)=>{this.dragOverTargetIds&&this.dragOverTargetIds.unshift(i)},this.handleTopMove=a=>{if(this.timeout&&clearTimeout(this.timeout),!this.document||this.waitingForDelay)return;const{moveStartSourceIds:i,dragOverTargetIds:o}=this,s=this.options.enableHoverOutsideTarget,l=Ys(a,this.lastTargetTouchFallback);if(!l)return;if(this._isScrolling||!this.monitor.isDragging()&&x$(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,l.x,l.y,this.options.scrollAngleRanges)){this._isScrolling=!0;return}if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty("x")&&i&&O$(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,l.x,l.y)>(this.options.touchSlop?this.options.touchSlop:0)&&(this.moveStartSourceIds=void 0,this.actions.beginDrag(i,{clientOffset:this._mouseClientOffset,getSourceClientOffset:this.getSourceClientOffset,publishSource:!1})),!this.monitor.isDragging())return;const u=this.sourceNodes.get(this.monitor.getSourceId());this.installSourceNodeRemovalObserver(u),this.actions.publishDragSource(),a.cancelable&&a.preventDefault();const h=(o||[]).map(m=>this.targetNodes.get(m)).filter(m=>!!m),d=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(l.x,l.y,h):this.document.elementsFromPoint(l.x,l.y),p=[];for(const m in d){if(!d.hasOwnProperty(m))continue;let _=d[m];for(_!=null&&p.push(_);_;)_=_.parentElement,_&&p.indexOf(_)===-1&&p.push(_)}const w=p.filter(m=>h.indexOf(m)>-1).map(m=>this._getDropTargetId(m)).filter(m=>!!m).filter((m,_,E)=>E.indexOf(m)===_);if(s)for(const m in this.targetNodes){const _=this.targetNodes.get(m);if(u&&_&&_.contains(u)&&w.indexOf(m)===-1){w.unshift(m);break}}w.reverse(),this.actions.hover(w,{clientOffset:l})},this._getDropTargetId=a=>{const i=this.targetNodes.keys();let o=i.next();for(;o.done===!1;){const s=o.value;if(a===this.targetNodes.get(s))return s;o=i.next()}},this.handleTopMoveEndCapture=a=>{if(this._isScrolling=!1,this.lastTargetTouchFallback=void 0,!!D$(a)){if(!this.monitor.isDragging()||this.monitor.didDrop()){this.moveStartSourceIds=void 0;return}a.cancelable&&a.preventDefault(),this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.drop(),this.actions.endDrag()}},this.handleCancelOnEscape=a=>{a.key==="Escape"&&this.monitor.isDragging()&&(this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.endDrag())},this.options=new C$(r,n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(Dn.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(Dn.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(Dn.keyboard)}}const $$=function(t,n={},r={}){return new li(t,n,r)};var Rw=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},W=(e,t,n)=>(Rw(e,t,"read from private field"),n?n.call(e):t.get(e)),ct=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Qn=(e,t,n,r)=>(Rw(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Bn,L$=class{constructor(){ct(this,Bn,void 0),this.register=e=>{W(this,Bn).push(e)},this.unregister=e=>{let t;for(;(t=W(this,Bn).indexOf(e))!==-1;)W(this,Bn).splice(t,1)},this.backendChanged=e=>{for(let t of W(this,Bn))t.backendChanged(e)},Qn(this,Bn,[])}};Bn=new WeakMap;var Je,Ya,Qe,zt,cn,$f,Lf,Mf,cs,fs,Xa,$w=class ds{constructor(t,n,r){if(ct(this,Je,void 0),ct(this,Ya,void 0),ct(this,Qe,void 0),ct(this,zt,void 0),ct(this,cn,void 0),ct(this,$f,(a,i,o)=>{if(!o.backend)throw new Error(`You must specify a 'backend' property in your Backend entry: ${JSON.stringify(o)}`);let s=o.backend(a,i,o.options),l=o.id,u=!o.id&&s&&s.constructor;if(u&&(l=s.constructor.name),l)u&&console.warn(`Deprecation notice: You are using a pipeline which doesn't include backends' 'id'. + This might be unsupported in the future, please specify 'id' explicitely for every backend.`);else throw new Error(`You must specify an 'id' property in your Backend entry: ${JSON.stringify(o)} + see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-5xx`);if(W(this,Qe)[l])throw new Error(`You must specify a unique 'id' property in your Backend entry: + ${JSON.stringify(o)} (conflicts with: ${JSON.stringify(W(this,Qe)[l])})`);return{id:l,instance:s,preview:o.preview??!1,transition:o.transition,skipDispatchOnTransition:o.skipDispatchOnTransition??!1}}),this.setup=()=>{if(!(typeof window>"u")){if(ds.isSetUp)throw new Error("Cannot have two MultiBackends at the same time.");ds.isSetUp=!0,W(this,Lf).call(this,window),W(this,Qe)[W(this,Je)].instance.setup()}},this.teardown=()=>{typeof window>"u"||(ds.isSetUp=!1,W(this,Mf).call(this,window),W(this,Qe)[W(this,Je)].instance.teardown())},this.connectDragSource=(a,i,o)=>W(this,Xa).call(this,"connectDragSource",a,i,o),this.connectDragPreview=(a,i,o)=>W(this,Xa).call(this,"connectDragPreview",a,i,o),this.connectDropTarget=(a,i,o)=>W(this,Xa).call(this,"connectDropTarget",a,i,o),this.profile=()=>W(this,Qe)[W(this,Je)].instance.profile(),this.previewEnabled=()=>W(this,Qe)[W(this,Je)].preview,this.previewsList=()=>W(this,Ya),this.backendsList=()=>W(this,zt),ct(this,Lf,a=>{W(this,zt).forEach(i=>{i.transition&&a.addEventListener(i.transition.event,W(this,cs))})}),ct(this,Mf,a=>{W(this,zt).forEach(i=>{i.transition&&a.removeEventListener(i.transition.event,W(this,cs))})}),ct(this,cs,a=>{var o;let i=W(this,Je);if(W(this,zt).some(s=>s.id!==W(this,Je)&&s.transition&&s.transition.check(a)?(Qn(this,Je,s.id),!0):!1),W(this,Je)!==i){W(this,Qe)[i].instance.teardown(),Object.keys(W(this,cn)).forEach(h=>{let d=W(this,cn)[h];d.unsubscribe(),d.unsubscribe=W(this,fs).call(this,d.func,...d.args)}),W(this,Ya).backendChanged(this);let s=W(this,Qe)[W(this,Je)];if(s.instance.setup(),s.skipDispatchOnTransition)return;let l=a.constructor,u=new l(a.type,a);(o=a.target)==null||o.dispatchEvent(u)}}),ct(this,fs,(a,i,o,s)=>W(this,Qe)[W(this,Je)].instance[a](i,o,s)),ct(this,Xa,(a,i,o,s)=>{let l=`${a}_${i}`,u=W(this,fs).call(this,a,i,o,s);return W(this,cn)[l]={func:a,args:[i,o,s],unsubscribe:u},()=>{W(this,cn)[l].unsubscribe(),delete W(this,cn)[l]}}),!r||!r.backends||r.backends.length<1)throw new Error(`You must specify at least one Backend, if you are coming from 2.x.x (or don't understand this error) + see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-2xx`);Qn(this,Ya,new L$),Qn(this,Qe,{}),Qn(this,zt,[]),r.backends.forEach(a=>{let i=W(this,$f).call(this,t,n,a);W(this,Qe)[i.id]=i,W(this,zt).push(i)}),Qn(this,Je,W(this,zt)[0].id),Qn(this,cn,{})}};Je=new WeakMap,Ya=new WeakMap,Qe=new WeakMap,zt=new WeakMap,cn=new WeakMap,$f=new WeakMap,Lf=new WeakMap,Mf=new WeakMap,cs=new WeakMap,fs=new WeakMap,Xa=new WeakMap,$w.isSetUp=!1;var M$=$w,Lw=(e,t,n)=>new M$(e,t,n),qi=(e,t)=>({event:e,check:t}),Mw=qi("touchstart",e=>{let t=e;return t.touches!==null&&t.touches!==void 0}),j$=qi("dragstart",e=>e.type.indexOf("drag")!==-1||e.type.indexOf("drop")!==-1),F$=qi("mousedown",e=>e.type.indexOf("touch")===-1&&e.type.indexOf("mouse")!==-1),jw=qi("pointerdown",e=>e.pointerType=="mouse"),I$={backends:[{id:"html5",backend:E$,transition:jw},{id:"touch",backend:$$,options:{enableMouseEvents:!0},preview:!0,transition:Mw}]};const U$=Object.freeze(Object.defineProperty({__proto__:null,HTML5toTouch:I$},Symbol.toStringTag,{value:"Module"})),z$=Bf(U$),Ki=P.createContext({dragDropManager:void 0});function ut(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Dm=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Ju=function(){return Math.random().toString(36).substring(7).split("").join(".")},km={INIT:"@@redux/INIT"+Ju(),REPLACE:"@@redux/REPLACE"+Ju(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ju()}};function H$(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Fw(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(ut(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(ut(1));return n(Fw)(e,t)}if(typeof e!="function")throw new Error(ut(2));var a=e,i=t,o=[],s=o,l=!1;function u(){s===o&&(s=o.slice())}function h(){if(l)throw new Error(ut(3));return i}function d(_){if(typeof _!="function")throw new Error(ut(4));if(l)throw new Error(ut(5));var E=!0;return u(),s.push(_),function(){if(E){if(l)throw new Error(ut(6));E=!1,u();var y=s.indexOf(_);s.splice(y,1),o=null}}}function p(_){if(!H$(_))throw new Error(ut(7));if(typeof _.type>"u")throw new Error(ut(8));if(l)throw new Error(ut(9));try{l=!0,i=a(i,_)}finally{l=!1}for(var E=o=s,v=0;vr&&r[a]?r[a]:n||null,e)}function G$(e,t){return e.filter(n=>n!==t)}function Iw(e){return typeof e=="object"}function V$(e,t){const n=new Map,r=i=>{n.set(i,n.has(i)?n.get(i)+1:1)};e.forEach(r),t.forEach(r);const a=[];return n.forEach((i,o)=>{i===1&&a.push(o)}),a}function q$(e,t){return e.filter(n=>t.indexOf(n)>-1)}const Rh="dnd-core/INIT_COORDS",Fl="dnd-core/BEGIN_DRAG",$h="dnd-core/PUBLISH_DRAG_SOURCE",Il="dnd-core/HOVER",Ul="dnd-core/DROP",zl="dnd-core/END_DRAG";function Am(e,t){return{type:Rh,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const K$={type:Rh,payload:{clientOffset:null,sourceClientOffset:null}};function Y$(e){return function(n=[],r={publishSource:!0}){const{publishSource:a=!0,clientOffset:i,getSourceClientOffset:o}=r,s=e.getMonitor(),l=e.getRegistry();e.dispatch(Am(i)),X$(n,s,l);const u=B$(n,s);if(u==null){e.dispatch(K$);return}let h=null;if(i){if(!o)throw new Error("getSourceClientOffset must be defined");J$(o),h=o(u)}e.dispatch(Am(i,h));const p=l.getSource(u).beginDrag(s,u);if(p==null)return;Q$(p),l.pinSource(u);const w=l.getSourceType(u);return{type:Fl,payload:{itemType:w,item:p,sourceId:u,clientOffset:i||null,sourceClientOffset:h||null,isSourcePublic:!!a}}}}function X$(e,t,n){G(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(r){G(n.getSource(r),"Expected sourceIds to be registered.")})}function J$(e){G(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function Q$(e){G(Iw(e),"Item must be an object.")}function B$(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}function Z$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eL(e){for(var t=1;t{const l=rL(o,s,a,r),u={type:Ul,payload:{dropResult:eL({},n,l)}};e.dispatch(u)})}}function nL(e){G(e.isDragging(),"Cannot call drop while not dragging."),G(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function rL(e,t,n,r){const a=n.getTarget(e);let i=a?a.drop(r,e):void 0;return aL(i),typeof i>"u"&&(i=t===0?{}:r.getDropResult()),i}function aL(e){G(typeof e>"u"||Iw(e),"Drop result must either be an object or undefined.")}function iL(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function oL(e){return function(){const n=e.getMonitor(),r=e.getRegistry();sL(n);const a=n.getSourceId();return a!=null&&(r.getSource(a,!0).endDrag(n,a),r.unpinSource()),{type:zl}}}function sL(e){G(e.isDragging(),"Cannot call endDrag while not dragging.")}function jf(e,t){return t===null?e===null:Array.isArray(e)?e.some(n=>n===t):e===t}function lL(e){return function(n,{clientOffset:r}={}){uL(n);const a=n.slice(0),i=e.getMonitor(),o=e.getRegistry(),s=i.getItemType();return fL(a,o,s),cL(a,i,o),dL(a,i,o),{type:Il,payload:{targetIds:a,clientOffset:r||null}}}}function uL(e){G(Array.isArray(e),"Expected targetIds to be an array.")}function cL(e,t,n){G(t.isDragging(),"Cannot call hover while not dragging."),G(!t.didDrop(),"Cannot call hover after drop.");for(let r=0;r=0;r--){const a=e[r],i=t.getTargetType(a);jf(i,n)||e.splice(r,1)}}function dL(e,t,n){e.forEach(function(r){n.getTarget(r).hover(t,r)})}function hL(e){return function(){if(e.getMonitor().isDragging())return{type:$h}}}function pL(e){return{beginDrag:Y$(e),publishDragSource:hL(e),hover:lL(e),drop:tL(e),endDrag:oL(e)}}class gL{receiveBackend(t){this.backend=t}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const t=this,{dispatch:n}=this.store;function r(i){return(...o)=>{const s=i.apply(t,o);typeof s<"u"&&n(s)}}const a=pL(this);return Object.keys(a).reduce((i,o)=>{const s=a[o];return i[o]=r(s),i},{})}dispatch(t){this.store.dispatch(t)}constructor(t,n){this.isSetUp=!1,this.handleRefCountChange=()=>{const r=this.store.getState().refCount>0;this.backend&&(r&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!r&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=t,this.monitor=n,t.subscribe(this.handleRefCountChange)}}function mL(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Uw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function vL(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return!t||!n||!r?null:Uw(mL(t,r),n)}function yL(e){const{clientOffset:t,initialClientOffset:n}=e;return!t||!n?null:Uw(t,n)}const ui=[],Lh=[];ui.__IS_NONE__=!0;Lh.__IS_ALL__=!0;function wL(e,t){return e===ui?!1:e===Lh||typeof t>"u"?!0:q$(t,e).length>0}class _L{subscribeToStateChange(t,n={}){const{handlerIds:r}=n;G(typeof t=="function","listener must be a function."),G(typeof r>"u"||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let a=this.store.getState().stateId;const i=()=>{const o=this.store.getState(),s=o.stateId;try{s===a||s===a+1&&!wL(o.dirtyHandlerIds,r)||t()}finally{a=s}};return this.store.subscribe(i)}subscribeToOffsetChange(t){G(typeof t=="function","listener must be a function.");let n=this.store.getState().dragOffset;const r=()=>{const a=this.store.getState().dragOffset;a!==n&&(n=a,t())};return this.store.subscribe(r)}canDragSource(t){if(!t)return!1;const n=this.registry.getSource(t);return G(n,`Expected to find a valid source. sourceId=${t}`),this.isDragging()?!1:n.canDrag(this,t)}canDropOnTarget(t){if(!t)return!1;const n=this.registry.getTarget(t);if(G(n,`Expected to find a valid target. targetId=${t}`),!this.isDragging()||this.didDrop())return!1;const r=this.registry.getTargetType(t),a=this.getItemType();return jf(r,a)&&n.canDrop(this,t)}isDragging(){return!!this.getItemType()}isDraggingSource(t){if(!t)return!1;const n=this.registry.getSource(t,!0);if(G(n,`Expected to find a valid source. sourceId=${t}`),!this.isDragging()||!this.isSourcePublic())return!1;const r=this.registry.getSourceType(t),a=this.getItemType();return r!==a?!1:n.isDragging(this,t)}isOverTarget(t,n={shallow:!1}){if(!t)return!1;const{shallow:r}=n;if(!this.isDragging())return!1;const a=this.registry.getTargetType(t),i=this.getItemType();if(i&&!jf(a,i))return!1;const o=this.getTargetIds();if(!o.length)return!1;const s=o.indexOf(t);return r?s===o.length-1:s>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return vL(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return yL(this.store.getState().dragOffset)}constructor(t,n){this.store=t,this.registry=n}}const Rm=typeof global<"u"?global:self,zw=Rm.MutationObserver||Rm.WebKitMutationObserver;function Hw(e){return function(){const n=setTimeout(a,0),r=setInterval(a,50);function a(){clearTimeout(n),clearInterval(r),e()}}}function SL(e){let t=1;const n=new zw(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}const bL=typeof zw=="function"?SL:Hw;class EL{enqueueTask(t){const{queue:n,requestFlush:r}=this;n.length||(r(),this.flushing=!0),n[n.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.indexthis.capacity){for(let r=0,a=t.length-this.index;r{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=bL(this.flush),this.requestErrorThrow=Hw(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class TL{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,n){this.onError=t,this.release=n,this.task=null}}class CL{create(t){const n=this.freeTasks,r=n.length?n.pop():new TL(this.onError,a=>n[n.length]=a);return r.task=t,r}constructor(t){this.onError=t,this.freeTasks=[]}}const Ww=new EL,OL=new CL(Ww.registerPendingError);function xL(e){Ww.enqueueTask(OL.create(e))}const Mh="dnd-core/ADD_SOURCE",jh="dnd-core/ADD_TARGET",Fh="dnd-core/REMOVE_SOURCE",Hl="dnd-core/REMOVE_TARGET";function PL(e){return{type:Mh,payload:{sourceId:e}}}function NL(e){return{type:jh,payload:{targetId:e}}}function DL(e){return{type:Fh,payload:{sourceId:e}}}function kL(e){return{type:Hl,payload:{targetId:e}}}function AL(e){G(typeof e.canDrag=="function","Expected canDrag to be a function."),G(typeof e.beginDrag=="function","Expected beginDrag to be a function."),G(typeof e.endDrag=="function","Expected endDrag to be a function.")}function RL(e){G(typeof e.canDrop=="function","Expected canDrop to be a function."),G(typeof e.hover=="function","Expected hover to be a function."),G(typeof e.drop=="function","Expected beginDrag to be a function.")}function Ff(e,t){if(t&&Array.isArray(e)){e.forEach(n=>Ff(n,!1));return}G(typeof e=="string"||typeof e=="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var ht;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(ht||(ht={}));let $L=0;function LL(){return $L++}function ML(e){const t=LL().toString();switch(e){case ht.SOURCE:return`S${t}`;case ht.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function $m(e){switch(e[0]){case"S":return ht.SOURCE;case"T":return ht.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function Lm(e,t){const n=e.entries();let r=!1;do{const{done:a,value:[,i]}=n.next();if(i===t)return!0;r=!!a}while(!r);return!1}class jL{addSource(t,n){Ff(t),AL(n);const r=this.addHandler(ht.SOURCE,t,n);return this.store.dispatch(PL(r)),r}addTarget(t,n){Ff(t,!0),RL(n);const r=this.addHandler(ht.TARGET,t,n);return this.store.dispatch(NL(r)),r}containsHandler(t){return Lm(this.dragSources,t)||Lm(this.dropTargets,t)}getSource(t,n=!1){return G(this.isSourceId(t),"Expected a valid source ID."),n&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return G(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return G(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return G(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return $m(t)===ht.SOURCE}isTargetId(t){return $m(t)===ht.TARGET}removeSource(t){G(this.getSource(t),"Expected an existing source."),this.store.dispatch(DL(t)),xL(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){G(this.getTarget(t),"Expected an existing target."),this.store.dispatch(kL(t)),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){const n=this.getSource(t);G(n,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=n}unpinSource(){G(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,n,r){const a=ML(t);return this.types.set(a,n),t===ht.SOURCE?this.dragSources.set(a,r):t===ht.TARGET&&this.dropTargets.set(a,r),a}constructor(t){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}}const FL=(e,t)=>e===t;function IL(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function UL(e,t,n=FL){if(e.length!==t.length)return!1;for(let r=0;r0||!UL(n,r)))return ui;const o=r[r.length-1],s=n[n.length-1];return o!==s&&(o&&a.push(o),s&&a.push(s)),a}function HL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WL(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nM(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}let jm=0;const hs=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var Gw=P.memo(function(t){var{children:n}=t,r=tM(t,["children"]);const[a,i]=rM(r);return P.useEffect(()=>{if(i){const o=Vw();return++jm,()=>{--jm===0&&(o[hs]=null)}}},[]),T.jsx(Ki.Provider,{value:a,children:n})});function rM(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=aM(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}function aM(e,t=Vw(),n,r){const a=t;return a[hs]||(a[hs]={dragDropManager:ZL(e,t,n,r)}),a[hs]}function Vw(){return typeof global<"u"?global:window}const iM=P.memo(function({connect:t,src:n}){return P.useEffect(()=>{if(typeof Image>"u")return;let r=!1;const a=new Image;return a.src=n,a.onload=()=>{t(a),r=!0},()=>{r&&t(null)}}),null});var oM=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,a,i;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(a=r;a--!==0;)if(!e(t[a],n[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(i=Object.keys(t),r=i.length,r!==Object.keys(n).length)return!1;for(a=r;a--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[a]))return!1;for(a=r;a--!==0;){var o=i[a];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n};const sM=nl(oM),mr=typeof window<"u"?P.useLayoutEffect:P.useEffect;function qw(e,t,n){const[r,a]=P.useState(()=>t(e)),i=P.useCallback(()=>{const o=t(e);sM(r,o)||(a(o),n&&n())},[r,e,n]);return mr(i),[r,i]}function lM(e,t,n){const[r,a]=qw(e,t,n);return mr(function(){const o=e.getHandlerId();if(o!=null)return e.subscribeToStateChange(a,{handlerIds:[o]})},[e,a]),r}function Kw(e,t,n){return lM(t,e||(()=>({})),()=>n.reconnect())}function Yw(e,t){const n=[...t||[]];return t==null&&typeof e!="function"&&n.push(e),P.useMemo(()=>typeof e=="function"?e():e,n)}function uM(e){return P.useMemo(()=>e.hooks.dragSource(),[e])}function cM(e){return P.useMemo(()=>e.hooks.dragPreview(),[e])}let Qu=!1,Bu=!1;class fM{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){G(!Qu,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Qu=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Qu=!1}}isDragging(){if(!this.sourceId)return!1;G(!Bu,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Bu=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Bu=!1}}subscribeToStateChange(t,n){return this.internalMonitor.subscribeToStateChange(t,n)}isDraggingSource(t){return this.internalMonitor.isDraggingSource(t)}isOverTarget(t,n){return this.internalMonitor.isOverTarget(t,n)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(t){return this.internalMonitor.subscribeToOffsetChange(t)}canDragSource(t){return this.internalMonitor.canDragSource(t)}canDropOnTarget(t){return this.internalMonitor.canDropOnTarget(t)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.sourceId=null,this.internalMonitor=t.getMonitor()}}let Zu=!1;class dM{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,n){return this.internalMonitor.subscribeToStateChange(t,n)}canDrop(){if(!this.targetId)return!1;G(!Zu,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return Zu=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Zu=!1}}isOver(t){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,t):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.targetId=null,this.internalMonitor=t.getMonitor()}}function hM(e,t,n){const r=n.getRegistry(),a=r.addTarget(e,t);return[a,()=>r.removeTarget(a)]}function pM(e,t,n){const r=n.getRegistry(),a=r.addSource(e,t);return[a,()=>r.removeSource(a)]}function If(e,t,n,r){let a=n?n.call(r,e,t):void 0;if(a!==void 0)return!!a;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const i=Object.keys(e),o=Object.keys(t);if(i.length!==o.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let l=0;l, or turn it into a drag source or a drop target itself.`)}function mM(e){return(t=null,n=null)=>{if(!P.isValidElement(t)){const i=t;return e(i,n),i}const r=t;return gM(r),vM(r,n?i=>e(i,n):e)}}function Xw(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const a=mM(r);t[n]=()=>a}}),t}function Fm(e,t){typeof e=="function"?e(t):e.current=t}function vM(e,t){const n=e.ref;return G(typeof n!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a or
. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?P.cloneElement(e,{ref:r=>{Fm(n,r),Fm(t,r)}}):P.cloneElement(e,{ref:t})}class yM{receiveHandlerId(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(t){this.dragSourceOptionsInternal=t}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(t){this.dragPreviewOptionsInternal=t}reconnect(){const t=this.reconnectDragSource();this.reconnectDragPreview(t)}reconnectDragSource(){const t=this.dragSource,n=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return n&&this.disconnectDragSource(),this.handlerId?t?(n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)),n):(this.lastConnectedDragSource=t,n):n}reconnectDragPreview(t=!1){const n=this.dragPreview,r=t||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(r&&this.disconnectDragPreview(),!!this.handlerId){if(!n){this.lastConnectedDragPreview=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=n,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,n,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!If(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!If(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(t){this.hooks=Xw({dragSource:(n,r)=>{this.clearDragSource(),this.dragSourceOptions=r||null,Uf(n)?this.dragSourceRef=n:this.dragSourceNode=n,this.reconnectDragSource()},dragPreview:(n,r)=>{this.clearDragPreview(),this.dragPreviewOptions=r||null,Uf(n)?this.dragPreviewRef=n:this.dragPreviewNode=n,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}}class wM{get connectTarget(){return this.dropTarget}reconnect(){const t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();const n=this.dropTarget;if(this.handlerId){if(!n){this.lastConnectedDropTarget=n;return}t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=n,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,n,this.dropTargetOptions))}}receiveHandlerId(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(t){this.dropTargetOptionsInternal=t}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!If(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(t){this.hooks=Xw({dropTarget:(n,r)=>{this.clearDropTarget(),this.dropTargetOptions=r,Uf(n)?this.dropTargetRef=n:this.dropTargetNode=n,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}}function Hn(){const{dragDropManager:e}=P.useContext(Ki);return G(e!=null,"Expected drag drop context"),e}function _M(e,t){const n=Hn(),r=P.useMemo(()=>new yM(n.getBackend()),[n]);return mr(()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource()),[r,e]),mr(()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,t]),r}function SM(){const e=Hn();return P.useMemo(()=>new fM(e),[e])}class bM{beginDrag(){const t=this.spec,n=this.monitor;let r=null;return typeof t.item=="object"?r=t.item:typeof t.item=="function"?r=t.item(n):r={},r??null}canDrag(){const t=this.spec,n=this.monitor;return typeof t.canDrag=="boolean"?t.canDrag:typeof t.canDrag=="function"?t.canDrag(n):!0}isDragging(t,n){const r=this.spec,a=this.monitor,{isDragging:i}=r;return i?i(a):n===t.getSourceId()}endDrag(){const t=this.spec,n=this.monitor,r=this.connector,{end:a}=t;a&&a(n.getItem(),n),r.reconnect()}constructor(t,n,r){this.spec=t,this.monitor=n,this.connector=r}}function EM(e,t,n){const r=P.useMemo(()=>new bM(e,t,n),[t,n]);return P.useEffect(()=>{r.spec=e},[e]),r}function TM(e){return P.useMemo(()=>{const t=e.type;return G(t!=null,"spec.type must be defined"),t},[e])}function CM(e,t,n){const r=Hn(),a=EM(e,t,n),i=TM(e);mr(function(){if(i!=null){const[s,l]=pM(i,a,r);return t.receiveHandlerId(s),n.receiveHandlerId(s),l}},[r,t,n,a,i])}function Jw(e,t){const n=Yw(e,t);G(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const r=SM(),a=_M(n.options,n.previewOptions);return CM(n,r,a),[Kw(n.collect,r,a),uM(a),cM(a)]}function Qw(e){const n=Hn().getMonitor(),[r,a]=qw(n,e);return P.useEffect(()=>n.subscribeToOffsetChange(a)),P.useEffect(()=>n.subscribeToStateChange(a)),r}function OM(e){return P.useMemo(()=>e.hooks.dropTarget(),[e])}function xM(e){const t=Hn(),n=P.useMemo(()=>new wM(t.getBackend()),[t]);return mr(()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget()),[e]),n}function PM(){const e=Hn();return P.useMemo(()=>new dM(e),[e])}function NM(e){const{accept:t}=e;return P.useMemo(()=>(G(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class DM{canDrop(){const t=this.spec,n=this.monitor;return t.canDrop?t.canDrop(n.getItem(),n):!0}hover(){const t=this.spec,n=this.monitor;t.hover&&t.hover(n.getItem(),n)}drop(){const t=this.spec,n=this.monitor;if(t.drop)return t.drop(n.getItem(),n)}constructor(t,n){this.spec=t,this.monitor=n}}function kM(e,t){const n=P.useMemo(()=>new DM(e,t),[t]);return P.useEffect(()=>{n.spec=e},[e]),n}function AM(e,t,n){const r=Hn(),a=kM(e,t),i=NM(e);mr(function(){const[s,l]=hM(i,a,r);return t.receiveHandlerId(s),n.receiveHandlerId(s),l},[r,t,a,n,i.map(o=>o.toString()).join("|")])}function Bw(e,t){const n=Yw(e,t),r=PM(),a=xM(n.options);return AM(n,r,a),[Kw(n.collect,r,a),OM(a)]}const RM=Object.freeze(Object.defineProperty({__proto__:null,DndContext:Ki,DndProvider:Gw,DragPreviewImage:iM,useDrag:Jw,useDragDropManager:Hn,useDragLayer:Qw,useDrop:Bw},Symbol.toStringTag,{value:"Module"})),Wl=Bf(RM);var zf=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),$M=e=>{let t=e.getInitialClientOffset(),n=e.getInitialSourceClientOffset();return t===null||n===null?{x:0,y:0}:zf(t,n)},LM=(e,t)=>{let n=e.getClientOffset();if(n===null)return null;if(!t.current||!t.current.getBoundingClientRect)return zf(n,$M(e));let r=t.current.getBoundingClientRect(),a={x:r.width/2,y:r.height/2};return zf(n,a)},MM=e=>{let t=`translate(${e.x.toFixed(1)}px, ${e.y.toFixed(1)}px)`;return{pointerEvents:"none",position:"fixed",top:0,left:0,transform:t,WebkitTransform:t}},Zw=()=>{let e=P.useRef(null),t=Qw(n=>({currentOffset:LM(n,e),isDragging:n.isDragging(),itemType:n.getItemType(),item:n.getItem(),monitor:n}));return!t.isDragging||t.currentOffset===null?{display:!1}:{display:!0,itemType:t.itemType,item:t.item,style:MM(t.currentOffset),monitor:t.monitor,ref:e}},Ih=P.createContext(void 0),jM=e=>{let t=Zw();if(!t.display)return null;let{display:n,...r}=t,a;return"children"in e?typeof e.children=="function"?a=e.children(r):a=e.children:a=e.generator(r),Sn.createElement(Ih.Provider,{value:r},a)},e_=P.createContext(null),FM=({portal:e,...t})=>{let[n,r]=P.useState(null);return Sn.createElement(e_.Provider,{value:e??n},Sn.createElement(Gw,{backend:Lw,...t}),e?null:Sn.createElement("div",{ref:r}))},t_=()=>{let[e,t]=P.useState(!1),n=P.useContext(Ki);return P.useEffect(()=>{var i;let r=(i=n==null?void 0:n.dragDropManager)==null?void 0:i.getBackend(),a={backendChanged:o=>{t(o.previewEnabled())}};return t(r.previewEnabled()),r.previewsList().register(a),()=>{r.previewsList().unregister(a)}},[n,n.dragDropManager]),e},n_=e=>{let t=t_(),n=P.useContext(e_);if(!t)return null;let r=Sn.createElement(jM,{...e});return n!==null?Q0.createPortal(r,n):r};n_.Context=Ih;var IM=(e,t,n,r)=>{let a=n.getBackend();n.receiveBackend(r);let i=t(e);return n.receiveBackend(a),i},r_=(e,t)=>{var s;let n=P.useContext(Ki),r=(s=n==null?void 0:n.dragDropManager)==null?void 0:s.getBackend();if(r===void 0)throw new Error("could not find backend, make sure you are using a ");let a=t(e),i={},o=r.backendsList();for(let l of o)i[l.id]=IM(e,t,n.dragDropManager,l.instance);return[a,i]},UM=e=>r_(e,Jw),zM=e=>r_(e,Bw),HM=()=>{let e=t_(),t=Zw();return e?t:{display:!1}};const WM=Object.freeze(Object.defineProperty({__proto__:null,DndProvider:FM,HTML5DragTransition:j$,MouseTransition:F$,MultiBackend:Lw,PointerTransition:jw,Preview:n_,PreviewContext:Ih,TouchTransition:Mw,createTransition:qi,useMultiDrag:UM,useMultiDrop:zM,usePreview:HM},Symbol.toStringTag,{value:"Module"})),GM=Bf(WM);var a_={},Gl={},Vl={};Object.defineProperty(Vl,"__esModule",{value:!0});Vl.default=qM;let Fo;const VM=new Uint8Array(16);function qM(){if(!Fo&&(Fo=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Fo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Fo(VM)}var Wn={},Er={},ql={};Object.defineProperty(ql,"__esModule",{value:!0});ql.default=void 0;var KM=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;ql.default=KM;Object.defineProperty(Er,"__esModule",{value:!0});Er.default=void 0;var YM=XM(ql);function XM(e){return e&&e.__esModule?e:{default:e}}function JM(e){return typeof e=="string"&&YM.default.test(e)}var QM=JM;Er.default=QM;Object.defineProperty(Wn,"__esModule",{value:!0});Wn.default=void 0;Wn.unsafeStringify=i_;var BM=ZM(Er);function ZM(e){return e&&e.__esModule?e:{default:e}}const Te=[];for(let e=0;e<256;++e)Te.push((e+256).toString(16).slice(1));function i_(e,t=0){return Te[e[t+0]]+Te[e[t+1]]+Te[e[t+2]]+Te[e[t+3]]+"-"+Te[e[t+4]]+Te[e[t+5]]+"-"+Te[e[t+6]]+Te[e[t+7]]+"-"+Te[e[t+8]]+Te[e[t+9]]+"-"+Te[e[t+10]]+Te[e[t+11]]+Te[e[t+12]]+Te[e[t+13]]+Te[e[t+14]]+Te[e[t+15]]}function e5(e,t=0){const n=i_(e,t);if(!(0,BM.default)(n))throw TypeError("Stringified UUID is invalid");return n}var t5=e5;Wn.default=t5;Object.defineProperty(Gl,"__esModule",{value:!0});Gl.default=void 0;var n5=a5(Vl),r5=Wn;function a5(e){return e&&e.__esModule?e:{default:e}}let Im,ec,tc=0,nc=0;function i5(e,t,n){let r=t&&n||0;const a=t||new Array(16);e=e||{};let i=e.node||Im,o=e.clockseq!==void 0?e.clockseq:ec;if(i==null||o==null){const p=e.random||(e.rng||n5.default)();i==null&&(i=Im=[p[0]|1,p[1],p[2],p[3],p[4],p[5]]),o==null&&(o=ec=(p[6]<<8|p[7])&16383)}let s=e.msecs!==void 0?e.msecs:Date.now(),l=e.nsecs!==void 0?e.nsecs:nc+1;const u=s-tc+(l-nc)/1e4;if(u<0&&e.clockseq===void 0&&(o=o+1&16383),(u<0||s>tc)&&e.nsecs===void 0&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");tc=s,nc=l,ec=o,s+=122192928e5;const h=((s&268435455)*1e4+l)%4294967296;a[r++]=h>>>24&255,a[r++]=h>>>16&255,a[r++]=h>>>8&255,a[r++]=h&255;const d=s/4294967296*1e4&268435455;a[r++]=d>>>8&255,a[r++]=d&255,a[r++]=d>>>24&15|16,a[r++]=d>>>16&255,a[r++]=o>>>8|128,a[r++]=o&255;for(let p=0;p<6;++p)a[r+p]=i[p];return t||(0,r5.unsafeStringify)(a)}var o5=i5;Gl.default=o5;var Kl={},jn={},Yi={};Object.defineProperty(Yi,"__esModule",{value:!0});Yi.default=void 0;var s5=l5(Er);function l5(e){return e&&e.__esModule?e:{default:e}}function u5(e){if(!(0,s5.default)(e))throw TypeError("Invalid UUID");let t;const n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=t&255,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=t&255,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=t&255,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=t&255,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=t&255,n}var c5=u5;Yi.default=c5;Object.defineProperty(jn,"__esModule",{value:!0});jn.URL=jn.DNS=void 0;jn.default=g5;var f5=Wn,d5=h5(Yi);function h5(e){return e&&e.__esModule?e:{default:e}}function p5(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n>5]>>>a%32&255,o=parseInt(r.charAt(i>>>4&15)+r.charAt(i&15),16);t.push(o)}return t}function l_(e){return(e+64>>>9<<4)+14+1}function y5(e,t){e[t>>5]|=128<>5]|=(e[r/8]&255)<>16)+(t>>16)+(n>>16)<<16|n&65535}function _5(e,t){return e<>>32-t}function Xl(e,t,n,r,a,i){return _n(_5(_n(_n(t,e),_n(r,i)),a),n)}function ke(e,t,n,r,a,i,o){return Xl(t&n|~t&r,e,t,a,i,o)}function Ae(e,t,n,r,a,i,o){return Xl(t&r|n&~r,e,t,a,i,o)}function Re(e,t,n,r,a,i,o){return Xl(t^n^r,e,t,a,i,o)}function $e(e,t,n,r,a,i,o){return Xl(n^(t|~r),e,t,a,i,o)}var S5=m5;Yl.default=S5;Object.defineProperty(Kl,"__esModule",{value:!0});Kl.default=void 0;var b5=u_(jn),E5=u_(Yl);function u_(e){return e&&e.__esModule?e:{default:e}}const T5=(0,b5.default)("v3",48,E5.default);var C5=T5;Kl.default=C5;var Jl={},Ql={};Object.defineProperty(Ql,"__esModule",{value:!0});Ql.default=void 0;const O5=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var x5={randomUUID:O5};Ql.default=x5;Object.defineProperty(Jl,"__esModule",{value:!0});Jl.default=void 0;var Um=c_(Ql),P5=c_(Vl),N5=Wn;function c_(e){return e&&e.__esModule?e:{default:e}}function D5(e,t,n){if(Um.default.randomUUID&&!t&&!e)return Um.default.randomUUID();e=e||{};const r=e.random||(e.rng||P5.default)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let a=0;a<16;++a)t[n+a]=r[a];return t}return(0,N5.unsafeStringify)(r)}var k5=D5;Jl.default=k5;var Bl={},Zl={};Object.defineProperty(Zl,"__esModule",{value:!0});Zl.default=void 0;function A5(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function rc(e,t){return e<>>32-t}function R5(e){const t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){const o=unescape(encodeURIComponent(e));e=[];for(let s=0;s>>0;p=d,d=h,h=rc(u,30)>>>0,u=l,l=_}n[0]=n[0]+l>>>0,n[1]=n[1]+u>>>0,n[2]=n[2]+h>>>0,n[3]=n[3]+d>>>0,n[4]=n[4]+p>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,n[0]&255,n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,n[1]&255,n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,n[2]&255,n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,n[3]&255,n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,n[4]&255]}var $5=R5;Zl.default=$5;Object.defineProperty(Bl,"__esModule",{value:!0});Bl.default=void 0;var L5=f_(jn),M5=f_(Zl);function f_(e){return e&&e.__esModule?e:{default:e}}const j5=(0,L5.default)("v5",80,M5.default);var F5=j5;Bl.default=F5;var eu={};Object.defineProperty(eu,"__esModule",{value:!0});eu.default=void 0;var I5="00000000-0000-0000-0000-000000000000";eu.default=I5;var tu={};Object.defineProperty(tu,"__esModule",{value:!0});tu.default=void 0;var U5=z5(Er);function z5(e){return e&&e.__esModule?e:{default:e}}function H5(e){if(!(0,U5.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}var W5=H5;tu.default=W5;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return o.default}});var t=h(Gl),n=h(Kl),r=h(Jl),a=h(Bl),i=h(eu),o=h(tu),s=h(Er),l=h(Wn),u=h(Yi);function h(d){return d&&d.__esModule?d:{default:d}}})(a_);var Pe={},G5=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Pe,"__esModule",{value:!0});Pe.MosaicWindowContext=Pe.MosaicContext=void 0;var d_=G5(P);Pe.MosaicContext=d_.default.createContext(void 0);Pe.MosaicWindowContext=d_.default.createContext(void 0);var nu={},zm=wa,V5=Pl,q5=wt,Hm=zm?zm.isConcatSpreadable:void 0;function K5(e){return q5(e)||V5(e)||!!(Hm&&e&&e[Hm])}var Y5=K5,X5=bh,J5=Y5;function h_(e,t,n,r,a){var i=-1,o=e.length;for(n||(n=J5),a||(a=[]);++i0&&n(s)?t>1?h_(s,t-1,n,r,a):X5(a,s):r||(a[a.length]=s)}return a}var Q5=h_,B5=Q5;function Z5(e){var t=e==null?0:e.length;return t?B5(e,1):[]}var e8=Z5,ru={};function t8(e,t,n){return e===e&&(n!==void 0&&(e=e<=n?e:n),t!==void 0&&(e=e>=t?e:t)),e}var n8=t8,r8=/\s/;function a8(e){for(var t=e.length;t--&&r8.test(e.charAt(t)););return t}var i8=a8,o8=i8,s8=/^\s+/;function l8(e){return e&&e.slice(0,o8(e)+1).replace(s8,"")}var u8=l8,c8=u8,Wm=It,f8=Ml,Gm=0/0,d8=/^[-+]0x[0-9a-f]+$/i,h8=/^0b[01]+$/i,p8=/^0o[0-7]+$/i,g8=parseInt;function m8(e){if(typeof e=="number")return e;if(f8(e))return Gm;if(Wm(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Wm(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=c8(e);var n=h8.test(e);return n||p8.test(e)?g8(e.slice(2),n?2:8):d8.test(e)?Gm:+e}var Uh=m8,v8=n8,ac=Uh;function y8(e,t,n){return n===void 0&&(n=t,t=void 0),n!==void 0&&(n=ac(n),n=n===n?n:0),t!==void 0&&(t=ac(t),t=t===t?t:0),v8(ac(e),t,n)}var w8=y8,_8=Dt,S8=function(){return _8.Date.now()},b8=S8,E8=It,ic=b8,Vm=Uh,T8="Expected a function",C8=Math.max,O8=Math.min;function x8(e,t,n){var r,a,i,o,s,l,u=0,h=!1,d=!1,p=!0;if(typeof e!="function")throw new TypeError(T8);t=Vm(t)||0,E8(n)&&(h=!!n.leading,d="maxWait"in n,i=d?C8(Vm(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p);function w(A){var b=r,C=a;return r=a=void 0,u=A,o=e.apply(C,b),o}function m(A){return u=A,s=setTimeout(v,t),h?w(A):o}function _(A){var b=A-l,C=A-u,x=t-b;return d?O8(x,i-C):x}function E(A){var b=A-l,C=A-u;return l===void 0||b>=t||b<0||d&&C>=i}function v(){var A=ic();if(E(A))return y(A);s=setTimeout(v,_(A))}function y(A){return s=void 0,p&&r?w(A):(r=a=void 0,o)}function S(){s!==void 0&&clearTimeout(s),u=0,r=l=a=s=void 0}function O(){return s===void 0?o:y(ic())}function D(){var A=ic(),b=E(A);if(r=arguments,a=this,l=A,b){if(s===void 0)return m(l);if(d)return clearTimeout(s),s=setTimeout(v,t),w(l)}return s===void 0&&(s=setTimeout(v,t)),o}return D.cancel=S,D.flush=O,D}var P8=x8,N8=P8,D8=It,k8="Expected a function";function A8(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(k8);return D8(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),N8(e,t,{leading:r,maxWait:t,trailing:a})}var R8=A8,zh={},au={};Object.defineProperty(au,"__esModule",{value:!0});au.assertNever=void 0;function $8(e){throw new Error("Unhandled case: "+JSON.stringify(e))}au.assertNever=$8;(function(e){var t=$&&$.__assign||function(){return t=Object.assign||function(r){for(var a,i=1,o=arguments.length;i1;){for(;E.length>0;)E.length>1?v.push({direction:"row",first:E.shift(),second:E.shift()}):v.unshift(E.shift());E=v,v=[]}return a(E[0],_)}e.createBalancedTreeFromLeaves=s;function l(m){if(m==="first")return"second";if(m==="second")return"first";throw new Error("Branch '".concat(m,"' not a valid branch"))}e.getOtherBranch=l;function u(m){return m==="row"?"column":"row"}e.getOtherDirection=u;function h(m,_){for(var E=m,v=[];o(E);)E.direction==="row"&&(_===i.TOP_LEFT||_===i.BOTTOM_LEFT)||E.direction==="column"&&(_===i.TOP_LEFT||_===i.TOP_RIGHT)?(v.push("first"),E=E.first):(v.push("second"),E=E.second);return v}e.getPathToCorner=h;function d(m){return m==null?[]:o(m)?d(m.first).concat(d(m.second)):[m]}e.getLeaves=d;function p(m,_){return _.length>0?(0,r.default)(m,_,null):m}e.getNodeAtPath=p;function w(m,_){if(m==null)throw new Error("Root is empty, cannot fetch path");var E=p(m,_);if(E==null)throw new Error("Path [".concat(_.join(", "),"] did not resolve to a node"));return E}e.getAndAssertNodeAtPathExists=w})(Xi);var T7=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qs=$&&$.__assign||function(){return Qs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n"u"&&!i.call(C,H))&&(z===C&&(z=d(C)),l(z)==="Map"?z.set(H,on):z[H]=on)}}),z},b}();t.Context=p;var w={$push:function(b,C,x){return _(C,x,"$push"),b.length?C.concat(b):C},$unshift:function(b,C,x){return _(C,x,"$unshift"),b.length?b.concat(C):C},$splice:function(b,C,x,N){return v(C,x),b.forEach(function(L){y(L),C===N&&L.length&&(C=d(N)),o.apply(C,L)}),C},$set:function(b,C,x){return O(x),b},$toggle:function(b,C){E(b,"$toggle");var x=b.length?d(C):C;return b.forEach(function(N){x[N]=!C[N]}),x},$unset:function(b,C,x,N){return E(b,"$unset"),b.forEach(function(L){Object.hasOwnProperty.call(C,L)&&(C===N&&(C=d(N)),delete C[L])}),C},$add:function(b,C,x,N){return A(C,"$add"),E(b,"$add"),l(C)==="Map"?b.forEach(function(L){var z=L[0],H=L[1];C===N&&C.get(z)!==H&&(C=d(N)),C.set(z,H)}):b.forEach(function(L){C===N&&!C.has(L)&&(C=d(N)),C.add(L)}),C},$remove:function(b,C,x,N){return A(C,"$remove"),E(b,"$remove"),b.forEach(function(L){C===N&&C.has(L)&&(C=d(N)),C.delete(L)}),C},$merge:function(b,C,x,N){return D(C,b),h(b).forEach(function(L){b[L]!==C[L]&&(C===N&&(C=d(N)),C[L]=b[L])}),C},$apply:function(b,C){return S(b),b(C)}},m=new p;t.isEquals=m.update.isEquals,t.extend=m.extend,t.default=m.update,t.default.default=e.exports=u(t.default,t);function _(b,C,x){a(Array.isArray(b),function(){return"update(): expected target of "+n(x)+" to be an array; got "+n(b)+"."}),E(C[x],x)}function E(b,C){a(Array.isArray(b),function(){return"update(): expected spec of "+n(C)+" to be an array; got "+n(b)+". Did you forget to wrap your parameter in an array?"})}function v(b,C){a(Array.isArray(b),function(){return"Expected $splice target to be an array; got "+n(b)}),y(C.$splice)}function y(b){a(Array.isArray(b),function(){return"update(): expected spec of $splice to be an array of arrays; got "+n(b)+". Did you forget to wrap your parameters in an array?"})}function S(b){a(typeof b=="function",function(){return"update(): expected spec of $apply to be a function; got "+n(b)+"."})}function O(b){a(Object.keys(b).length===1,function(){return"Cannot have more than one key in an object with $set"})}function D(b,C){a(C&&typeof C=="object",function(){return"update(): $merge expects a spec of type 'object'; got "+n(C)}),a(b&&typeof b=="object",function(){return"update(): $merge expects a target of type 'object'; got "+n(b)})}function A(b,C){var x=l(b);a(x==="Map"||x==="Set",function(){return"update(): "+n(C)+" expects a target of type Set or Map; got "+n(x)})}})(Hf,Hf.exports);var lF=Hf.exports;function uF(e,t,n){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(a);++r0?(0,jF.default)({},e.path,e.spec):e.spec}je.buildSpecFromUpdate=j_;function F_(e,t){var n=e;return t.forEach(function(r){n=(0,$F.default)(n,j_(r))}),n}je.updateTree=F_;function Wf(e,t){var n=(0,L_.default)(t),r=(0,M_.default)(t),a=n.concat((0,Bs.getOtherBranch)(r)),i=(0,Bs.getAndAssertNodeAtPathExists)(e,a);return{path:n,spec:{$set:i}}}je.createRemoveUpdate=Wf;function cv(e,t,n){return(0,MF.default)((0,uv.default)(e,n),(0,uv.default)(t,n))}function FF(e,t,n,r){var a=(0,Bs.getAndAssertNodeAtPathExists)(e,n),i=[],o=cv(t,n,n.length);if(o)a=F_(a,[Wf(a,(0,LF.default)(t,n.length))]);else{i.push(Wf(e,t));var s=cv(t,n,t.length-1);s&&n.splice(t.length-1,1)}var l=(0,Bs.getAndAssertNodeAtPathExists)(e,t),u,h;r===Ho.MosaicDropTargetPosition.LEFT||r===Ho.MosaicDropTargetPosition.TOP?(u=l,h=a):(u=a,h=l);var d="column";return(r===Ho.MosaicDropTargetPosition.LEFT||r===Ho.MosaicDropTargetPosition.RIGHT)&&(d="row"),i.push({path:n,spec:{$set:{first:u,second:h,direction:d}}}),i}je.createDragToUpdates=FF;function IF(e){var t=(0,L_.default)(e),n=(0,M_.default)(e),r;return n==="first"?r=0:r=100,{path:t,spec:{splitPercentage:{$set:r}}}}je.createHideUpdate=IF;function UF(e,t){for(var n,r={},a=e.length-1;a>=0;a--){var i=e[a],o=i==="first"?t:100-t;r=(n={splitPercentage:{$set:o}},n[i]=r,n)}return{spec:r,path:[]}}je.createExpandUpdate=UF;var I_=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zs=$&&$.__assign||function(){return Zs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0){if(++t>=dI)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var mI=gI,vI=fI,yI=mI,wI=yI(vI),_I=wI,SI=Dh,bI=iI,EI=_I;function TI(e,t){return EI(bI(e,t,SI),e+"")}var CI=TI,OI=eI,xI=CI,PI=xI(function(e,t){return OI(e,1,t)}),NI=PI,DI=sw,kI=Gi,AI=Pl,RI=wt,$I=kl,LI=Nl,MI=Dl,jI=vh,FI="[object Map]",II="[object Set]",UI=Object.prototype,zI=UI.hasOwnProperty;function HI(e){if(e==null)return!0;if($I(e)&&(RI(e)||typeof e=="string"||typeof e.splice=="function"||LI(e)||jI(e)||AI(e)))return!e.length;var t=kI(e);if(t==FI||t==II)return!e.size;if(MI(e))return!DI(e).length;for(var n in e)if(zI.call(e,n))return!1;return!0}var WI=HI,vr={},Zi={},Oa={};(function(e){var t=$&&$.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0}),e.createDefaultToolbarButton=e.DefaultToolbarButton=void 0;var n=t(st),r=t(P),a=Pe,i=Gn,o=function(l){var u=l.title,h=l.className,d=l.onClick,p=l.text,w=r.default.useContext(a.MosaicContext).blueprintNamespace;return r.default.createElement("button",{title:u,onClick:d,className:(0,n.default)("mosaic-default-control",i.OptionalBlueprint.getClasses(w,"BUTTON","MINIMAL"),h)},p&&r.default.createElement("span",{className:"control-text"},p))};e.DefaultToolbarButton=o;var s=function(l,u,h,d){return r.default.createElement(e.DefaultToolbarButton,{title:l,className:u,onClick:h,text:d})};e.createDefaultToolbarButton=s})(Oa);var GI=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),z_=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zi,"__esModule",{value:!0});Zi.ExpandButton=void 0;var VI=z_(st),uc=z_(P),hv=Pe,qI=Gn,KI=Oa,YI=function(e){GI(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this;return uc.default.createElement(hv.MosaicContext.Consumer,null,function(r){var a=r.mosaicActions;return uc.default.createElement(KI.DefaultToolbarButton,{title:"Expand",className:(0,VI.default)("expand-button",qI.OptionalBlueprint.getIconClass(n.context.blueprintNamespace,"MAXIMIZE")),onClick:n.createExpand(a)})})},t.prototype.createExpand=function(n){var r=this;return function(){n.expand(r.context.mosaicWindowActions.getPath()),r.props.onClick&&r.props.onClick()}},t.contextType=hv.MosaicWindowContext,t}(uc.default.PureComponent);Zi.ExpandButton=YI;var eo={},XI=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),H_=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(eo,"__esModule",{value:!0});eo.RemoveButton=void 0;var JI=H_(st),cc=H_(P),pv=Pe,QI=Gn,BI=Oa,ZI=function(e){XI(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this;return cc.default.createElement(pv.MosaicContext.Consumer,null,function(r){var a=r.mosaicActions,i=r.blueprintNamespace;return cc.default.createElement(BI.DefaultToolbarButton,{title:"Close Window",className:(0,JI.default)("close-button",QI.OptionalBlueprint.getIconClass(i,"CROSS")),onClick:n.createRemove(a)})})},t.prototype.createRemove=function(n){var r=this;return function(){n.remove(r.context.mosaicWindowActions.getPath()),r.props.onClick&&r.props.onClick()}},t.contextType=pv.MosaicWindowContext,t}(cc.default.PureComponent);eo.RemoveButton=ZI;var to={},eU=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Kh=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(to,"__esModule",{value:!0});to.ReplaceButton=void 0;var tU=Kh(st),nU=Kh(Wh),gv=Kh(P),rU=Pe,aU=Gn,iU=Oa,oU=function(e){eU(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.replace=function(){n.context.mosaicWindowActions.replaceWithNew().then(function(){n.props.onClick&&n.props.onClick()}).catch(nU.default)},n}return t.prototype.render=function(){return gv.default.createElement(iU.DefaultToolbarButton,{title:"Replace Window",className:(0,tU.default)("replace-button",aU.OptionalBlueprint.getIconClass(this.context.blueprintNamespace,"EXCHANGE")),onClick:this.replace})},t.contextType=rU.MosaicWindowContext,t}(gv.default.PureComponent);to.ReplaceButton=oU;var no={},sU=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yh=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(no,"__esModule",{value:!0});no.SplitButton=void 0;var lU=Yh(st),uU=Yh(Wh),mv=Yh(P),cU=Pe,fU=Gn,dU=Oa,hU=function(e){sU(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.split=function(){n.context.mosaicWindowActions.split().then(function(){n.props.onClick&&n.props.onClick()}).catch(uU.default)},n}return t.prototype.render=function(){return mv.default.createElement(dU.DefaultToolbarButton,{title:"Split Window",className:(0,lU.default)("split-button",fU.OptionalBlueprint.getIconClass(this.context.blueprintNamespace,"ADD_COLUMN_RIGHT")),onClick:this.split})},t.contextType=cU.MosaicWindowContext,t}(mv.default.PureComponent);no.SplitButton=hU;var pU=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vr,"__esModule",{value:!0});vr.DEFAULT_CONTROLS_WITHOUT_CREATION=vr.DEFAULT_CONTROLS_WITH_CREATION=void 0;var mn=pU(P),W_=Zi,G_=eo,gU=to,mU=no;vr.DEFAULT_CONTROLS_WITH_CREATION=mn.default.Children.toArray([mn.default.createElement(gU.ReplaceButton,null),mn.default.createElement(mU.SplitButton,null),mn.default.createElement(W_.ExpandButton,null),mn.default.createElement(G_.RemoveButton,null)]);vr.DEFAULT_CONTROLS_WITHOUT_CREATION=mn.default.Children.toArray([mn.default.createElement(W_.ExpandButton,null),mn.default.createElement(G_.RemoveButton,null)]);var ro={},vU=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),yU=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ro,"__esModule",{value:!0});ro.Separator=void 0;var vv=yU(P),wU=function(e){vU(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){return vv.default.createElement("div",{className:"separator"})},t}(vv.default.PureComponent);ro.Separator=wU;var V_=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),el=$&&$.__assign||function(){return el=Object.assign||function(e){for(var t,n=1,r=arguments.length;nn.rootElement.offsetHeight?"row":"column";return Promise.resolve(o.apply(void 0,r)).then(function(d){return l.replaceWith(s,{direction:h,second:d,first:(0,AU.getAndAssertNodeAtPathExists)(u,s)})})},n.swap=function(){for(var r=[],a=0;a0,m=w?this.props.connectDragSource:function(y){return y};if(h){var _=m(h(this.props,o));return ne.default.createElement("div",{className:(0,Ia.default)("mosaic-window-toolbar",{draggable:w})},_)}var E=m(ne.default.createElement("div",{title:i,className:"mosaic-window-title"},i)),v=!(0,CU.default)(s);return ne.default.createElement("div",{className:(0,Ia.default)("mosaic-window-toolbar",{draggable:w})},E,ne.default.createElement("div",{className:(0,Ia.default)("mosaic-window-controls",Ua.OptionalBlueprint.getClasses("BUTTON_GROUP"))},v&&ne.default.createElement("button",{onClick:function(){return r.setAdditionalControlsOpen(!d)},className:(0,Ia.default)(Ua.OptionalBlueprint.getClasses(this.context.blueprintNamespace,"BUTTON","MINIMAL"),Ua.OptionalBlueprint.getIconClass(this.context.blueprintNamespace,"MORE"),(n={},n[Ua.OptionalBlueprint.getClasses(this.context.blueprintNamespace,"ACTIVE")]=d,n))},ne.default.createElement("span",{className:"control-text"},l)),v&&ne.default.createElement(PU.Separator,null),p))},t.prototype.checkCreateNode=function(){if(this.props.createNode==null)throw new Error("Operation invalid unless `createNode` is defined")},t.defaultProps={additionalControlButtonText:"More",draggable:!0,renderPreview:function(n){var r=n.title;return ne.default.createElement("div",{className:"mosaic-preview"},ne.default.createElement("div",{className:"mosaic-window-toolbar"},ne.default.createElement("div",{className:"mosaic-window-title"},r)),ne.default.createElement("div",{className:"mosaic-window-body"},ne.default.createElement("h4",null,r),ne.default.createElement(Ua.OptionalBlueprint.Icon,{className:"default-preview-icon",size:"large",icon:"APPLICATION"})))},renderToolbar:null},t.contextType=Gf.MosaicContext,t}(ne.default.Component);ha.InternalMosaicWindow=q_;function RU(e){var t=(0,ne.useContext)(Gf.MosaicContext),n=t.mosaicActions,r=t.mosaicId,a=(0,yv.useDrag)({type:_v.MosaicDragType.WINDOW,item:function(p){e.onDragStart&&e.onDragStart();var w=(0,EU.default)(function(){return n.hide(e.path)});return{mosaicId:r,hideTimer:w}},end:function(p,w){var m=p.hideTimer;window.clearTimeout(m);var _=e.path,E=w.getDropResult()||{},v=E.position,y=E.path;v!=null&&y!=null&&!(0,OU.default)(y,_)?(n.updateTree((0,kU.createDragToUpdates)(n.getRoot(),_,y,v)),e.onDragEnd&&e.onDragEnd("drop")):(n.updateTree([{path:(0,TU.default)(_),spec:{splitPercentage:{$set:void 0}}}]),e.onDragEnd&&e.onDragEnd("reset"))}}),i=a[1],o=a[2],s=(0,yv.useDrop)({accept:_v.MosaicDragType.WINDOW,collect:function(p){var w;return{isOver:p.isOver(),draggedMosaicId:(w=p.getItem())===null||w===void 0?void 0:w.mosaicId}}}),l=s[0],u=l.isOver,h=l.draggedMosaicId,d=s[1];return ne.default.createElement(q_,el({},e,{connectDragPreview:o,connectDragSource:i,connectDropTarget:d,isOver:u,draggedMosaicId:h}))}var $U=function(e){V_(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){return ne.default.createElement(RU,el({},this.props))},t}(ne.default.PureComponent);ha.MosaicWindow=$U;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_CONTROLS_WITHOUT_CREATION=e.DEFAULT_CONTROLS_WITH_CREATION=e.RemoveButton=e.SplitButton=e.ReplaceButton=e.ExpandButton=e.Separator=e.MosaicZeroState=e.DefaultToolbarButton=e.createDefaultToolbarButton=e.MosaicWindow=e.isParent=e.getPathToCorner=e.getOtherDirection=e.getOtherBranch=e.getNodeAtPath=e.getLeaves=e.getAndAssertNodeAtPathExists=e.Corner=e.createBalancedTreeFromLeaves=e.updateTree=e.createRemoveUpdate=e.createHideUpdate=e.createExpandUpdate=e.createDragToUpdates=e.buildSpecFromUpdate=e.MosaicWindowContext=e.MosaicContext=e.MosaicDragType=e.MosaicWithoutDragDropContext=e.Mosaic=void 0;/** + * @license + * Copyright 2019 Kevin Verdieck, originally developed at Palantir Technologies, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */var t=da;Object.defineProperty(e,"Mosaic",{enumerable:!0,get:function(){return t.Mosaic}}),Object.defineProperty(e,"MosaicWithoutDragDropContext",{enumerable:!0,get:function(){return t.MosaicWithoutDragDropContext}});var n=Tr;Object.defineProperty(e,"MosaicDragType",{enumerable:!0,get:function(){return n.MosaicDragType}});var r=Pe;Object.defineProperty(e,"MosaicContext",{enumerable:!0,get:function(){return r.MosaicContext}}),Object.defineProperty(e,"MosaicWindowContext",{enumerable:!0,get:function(){return r.MosaicWindowContext}});var a=je;Object.defineProperty(e,"buildSpecFromUpdate",{enumerable:!0,get:function(){return a.buildSpecFromUpdate}}),Object.defineProperty(e,"createDragToUpdates",{enumerable:!0,get:function(){return a.createDragToUpdates}}),Object.defineProperty(e,"createExpandUpdate",{enumerable:!0,get:function(){return a.createExpandUpdate}}),Object.defineProperty(e,"createHideUpdate",{enumerable:!0,get:function(){return a.createHideUpdate}}),Object.defineProperty(e,"createRemoveUpdate",{enumerable:!0,get:function(){return a.createRemoveUpdate}}),Object.defineProperty(e,"updateTree",{enumerable:!0,get:function(){return a.updateTree}});var i=Xi;Object.defineProperty(e,"createBalancedTreeFromLeaves",{enumerable:!0,get:function(){return i.createBalancedTreeFromLeaves}}),Object.defineProperty(e,"Corner",{enumerable:!0,get:function(){return i.Corner}}),Object.defineProperty(e,"getAndAssertNodeAtPathExists",{enumerable:!0,get:function(){return i.getAndAssertNodeAtPathExists}}),Object.defineProperty(e,"getLeaves",{enumerable:!0,get:function(){return i.getLeaves}}),Object.defineProperty(e,"getNodeAtPath",{enumerable:!0,get:function(){return i.getNodeAtPath}}),Object.defineProperty(e,"getOtherBranch",{enumerable:!0,get:function(){return i.getOtherBranch}}),Object.defineProperty(e,"getOtherDirection",{enumerable:!0,get:function(){return i.getOtherDirection}}),Object.defineProperty(e,"getPathToCorner",{enumerable:!0,get:function(){return i.getPathToCorner}}),Object.defineProperty(e,"isParent",{enumerable:!0,get:function(){return i.isParent}});var o=ha;Object.defineProperty(e,"MosaicWindow",{enumerable:!0,get:function(){return o.MosaicWindow}});var s=Oa;Object.defineProperty(e,"createDefaultToolbarButton",{enumerable:!0,get:function(){return s.createDefaultToolbarButton}}),Object.defineProperty(e,"DefaultToolbarButton",{enumerable:!0,get:function(){return s.DefaultToolbarButton}});var l=Ji;Object.defineProperty(e,"MosaicZeroState",{enumerable:!0,get:function(){return l.MosaicZeroState}});var u=ro;Object.defineProperty(e,"Separator",{enumerable:!0,get:function(){return u.Separator}});var h=Zi;Object.defineProperty(e,"ExpandButton",{enumerable:!0,get:function(){return h.ExpandButton}});var d=to;Object.defineProperty(e,"ReplaceButton",{enumerable:!0,get:function(){return d.ReplaceButton}});var p=no;Object.defineProperty(e,"SplitButton",{enumerable:!0,get:function(){return p.SplitButton}});var w=eo;Object.defineProperty(e,"RemoveButton",{enumerable:!0,get:function(){return w.RemoveButton}});var m=vr;Object.defineProperty(e,"DEFAULT_CONTROLS_WITH_CREATION",{enumerable:!0,get:function(){return m.DEFAULT_CONTROLS_WITH_CREATION}}),Object.defineProperty(e,"DEFAULT_CONTROLS_WITHOUT_CREATION",{enumerable:!0,get:function(){return m.DEFAULT_CONTROLS_WITHOUT_CREATION}})})(xf);var Sv={CENTER:"center",LEFT:"left",RIGHT:"right"},ao={NONE:"none",PRIMARY:"primary",SUCCESS:"success",WARNING:"warning",DANGER:"danger"},ve="bp5";typeof BLUEPRINT_NAMESPACE<"u"?ve=BLUEPRINT_NAMESPACE:typeof REACT_APP_BLUEPRINT_NAMESPACE<"u"&&(ve=REACT_APP_BLUEPRINT_NAMESPACE);var LU="".concat(ve,"-active"),MU="".concat(ve,"-align-left"),jU="".concat(ve,"-align-right"),FU="".concat(ve,"-disabled"),IU="".concat(ve,"-fill"),Vf="".concat(ve,"-large"),UU="".concat(ve,"-loading"),zU="".concat(ve,"-minimal"),HU="".concat(ve,"-outlined"),qf="".concat(ve,"-small");Fn(ao.PRIMARY);Fn(ao.SUCCESS);Fn(ao.WARNING);Fn(ao.DANGER);var WU="".concat(ve,"-text-overflow-ellipsis"),Xh="".concat(ve,"-button"),GU="".concat(Xh,"-spinner"),VU="".concat(Xh,"-text"),su="".concat(ve,"-spinner"),qU="".concat(su,"-animation"),KU="".concat(su,"-head"),YU="".concat(ve,"-no-spin"),XU="".concat(su,"-track"),Jh="".concat(ve,"-icon"),JU="".concat(Jh,"-standard"),QU="".concat(Jh,"-large");function BU(e){switch(e){case Sv.LEFT:return MU;case Sv.RIGHT:return jU;default:return}}function ZU(e){if(e!=null)return e.indexOf("".concat(ve,"-icon-"))===0?e:"".concat(ve,"-icon-").concat(e)}function Fn(e){if(!(e==null||e===ao.NONE))return"".concat(ve,"-intent-").concat(e.toLowerCase())}var Kf=function(e,t){return Kf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},Kf(e,t)};function K_(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Kf(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Pt=function(){return Pt=Object.assign||function(t){for(var n,r=1,a=arguments.length;r Classes.SMALL/LARGE are ignored if size prop is set.";function bv(e){return typeof NODE_ENV<"u"&&NODE_ENV===e}function nz(e,t,n){if(e==null)return e;if(n0){for(var a=0,i=r.timeoutIds;a0){for(var a=0,i=r.requestIds;a0&&n>="0"&&n<="9"?"_"+n+r:""+n.toUpperCase()+r}function fz(e,t){return t===void 0&&(t={}),J_(e,Xf({delimiter:"",transform:cz},t))}var Jf=function(){return Jf=Object.assign||function(t){for(var n,r=1,a=arguments.length;r{if(i=gz(i),i in Ov)return;Ov[i]=!0;const o=i.endsWith(".css"),s=o?'[rel="stylesheet"]':"";if(!!r)for(let h=a.length-1;h>=0;h--){const d=a[h];if(d.href===i&&(!o||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":pz,o||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),o)return new Promise((h,d)=>{u.addEventListener("load",h),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i})};var Vt=function(){return Vt=Object.assign||function(t){for(var n,r=1,a=arguments.length;r0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]import("./allPathsLoader-d2e2760d.js"),[])];case 2:return[2,r.sent().allPathsLoader];case 3:return[4,xv(()=>import("./splitPathsBySizeLoader-2ead7e8a.js"),[])];case 4:return[2,r.sent().splitPathsBySizeLoader]}})})}var Ja=function(){function e(){this.defaultLoader="split-by-size",this.loadedIconPaths16=new Map,this.loadedIconPaths20=new Map}return e.setLoaderOptions=function(t){t.loader!==void 0&&(Ar.defaultLoader=t.loader)},e.load=function(t,n,r){return Yr(this,void 0,void 0,function(){var a=this;return Xr(this,function(i){switch(i.label){case 0:return Array.isArray(t)||(t=[t]),[4,Promise.all(t.map(function(o){return a.loadImpl(o,n,r)}))];case 1:return i.sent(),[2]}})})},e.loadAll=function(t){return Yr(this,void 0,void 0,function(){var n,r=this;return Xr(this,function(a){return n=Object.values(Be),wz("[Blueprint] loading all icons",function(){return Yr(r,void 0,void 0,function(){return Xr(this,function(i){switch(i.label){case 0:return[4,Promise.all([this.load(n,Le.STANDARD,t),this.load(n,Le.LARGE,t)])];case 1:return i.sent(),[2]}})})}),[2]})})},e.getPaths=function(t,n){if(this.isValidIconName(t)){var r=n=Le.LARGE,_=m?Le.LARGE:Le.STANDARD,E="0 0 ".concat(_," ").concat(_),v=bz("iconTitle"),y=Vt({fill:a,height:l,role:"img",viewBox:E,width:l},u);return d===null?P.createElement("svg",Vt({"aria-labelledby":p?v:void 0,"data-icon":o,ref:t},y,w,{className:Mn(r,u==null?void 0:u.className)}),p&&P.createElement("title",{id:v},p),n):P.createElement(d,Vt(Vt({"aria-hidden":p?void 0:!0},w),{className:Mn(Nv,"".concat(Nv,"-").concat(o),r),ref:t,title:i}),P.createElement("svg",Vt({"data-icon":o},y,{className:u==null?void 0:u.className}),p&&P.createElement("title",null,p),n))});Z_.displayName="Blueprint5.SVGIconContainer";var ze=P.forwardRef(function(e,t){var n,r,a=e.autoLoad,i=e.className,o=e.color,s=e.icon,l=e.intent,u=e.tagName,h=e.svgProps,d=e.title,p=e.htmlTitle,w=Qh(e,["autoLoad","className","color","icon","intent","tagName","svgProps","title","htmlTitle"]),m=(r=(n=e.iconSize)!==null&&n!==void 0?n:e.size)!==null&&r!==void 0?r:Le.STANDARD,_=P.useState(function(){return typeof s=="string"?Ja.getPaths(s,m):void 0}),E=_[0],v=_[1];if(P.useEffect(function(){var O=!1;if(typeof s=="string"){var D=Ja.getPaths(s,m);D!==void 0?v(D):a?Ja.load(s,m).then(function(){O||v(Ja.getPaths(s,m))}).catch(function(A){console.error("[Blueprint] Icon '".concat(s,"' (").concat(m,"px) could not be loaded."),A)}):console.error("[Blueprint] Icon '".concat(s,"' (").concat(m,"px) is not loaded yet and autoLoad={false}, did you call Icons.load('").concat(s,"', ").concat(m,")?"))}return function(){O=!0}},[a,s,m]),s==null||typeof s=="boolean")return null;if(typeof s!="string")return s;if(E==null){var y=m===Le.STANDARD?JU:m===Le.LARGE?QU:void 0;return P.createElement(u,Pt(Pt({"aria-hidden":d?void 0:!0},tl(w)),{className:Mn(Jh,y,ZU(s),Fn(l),i),"data-icon":s,ref:t,title:p}))}else{var S=E.map(function(O,D){return P.createElement("path",{d:O,key:D,fillRule:"evenodd"})});return P.createElement(Z_,Pt({children:S,className:Mn(Fn(l),i),color:o,htmlTitle:p,iconName:s,ref:t,size:m,svgProps:h,tagName:u,title:d},tl(w)))}});ze.defaultProps={autoLoad:!0,tagName:"span"};ze.displayName="".concat(io,".Icon");var or;(function(e){e[e.SMALL=20]="SMALL",e[e.STANDARD=50]="STANDARD",e[e.LARGE=100]="LARGE"})(or||(or={}));var fn=45,kv="M 50,50 m 0,-".concat(fn," a ").concat(fn,",").concat(fn," 0 1 1 0,").concat(fn*2," a ").concat(fn,",").concat(fn," 0 1 1 0,-").concat(fn*2),za=280,Ez=10,Tz=4,Cz=16,Oz=function(e){K_(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.componentDidUpdate=function(n){n.value!==this.props.value&&this.forceUpdate()},t.prototype.render=function(){var n,r=this.props,a=r.className,i=r.intent,o=r.value,s=r.tagName,l=s===void 0?"div":s,u=Qh(r,["className","intent","value","tagName"]),h=this.getSize(),d=Mn(su,Fn(i),(n={},n[YU]=o!=null,n),a),p=Math.min(Cz,Tz*or.LARGE/h),w=za-za*(o==null?.25:nz(o,0,1));return P.createElement(l,Pt({"aria-label":"loading","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":o===void 0?void 0:o*100,className:d,role:"progressbar"},u),P.createElement(l,{className:qU},P.createElement("svg",{width:h,height:h,strokeWidth:p.toFixed(2),viewBox:this.getViewBox(p)},P.createElement("path",{className:XU,d:kv}),P.createElement("path",{className:KU,d:kv,pathLength:za,strokeDasharray:"".concat(za," ").concat(za),strokeDashoffset:w}))))},t.prototype.validateProps=function(n){var r=n.className,a=r===void 0?"":r,i=n.size;i!=null&&(a.indexOf(qf)>=0||a.indexOf(Vf)>=0)&&console.warn(tz)},t.prototype.getSize=function(){var n=this.props,r=n.className,a=r===void 0?"":r,i=n.size;return i==null?a.indexOf(qf)>=0?or.SMALL:a.indexOf(Vf)>=0?or.LARGE:or.STANDARD:Math.max(Ez,i)},t.prototype.getViewBox=function(n){var r=fn+n/2,a=(50-r).toFixed(2),i=(r*2).toFixed(2);return"".concat(a," ").concat(a," ").concat(i," ").concat(i)},t.displayName="".concat(io,".Spinner"),t}(oz),Bh=P.forwardRef(function(e,t){var n,r=e.children,a=e.tagName,i=a===void 0?"div":a,o=e.title,s=e.className,l=e.ellipsize,u=Qh(e,["children","tagName","title","className","ellipsize"]),h=P.useRef(),d=P.useMemo(function(){return X_(h,t)},[t]),p=P.useState(""),w=p[0],m=p[1],_=P.useState(),E=_[0],v=_[1];return P.useLayoutEffect(function(){var y;((y=h.current)===null||y===void 0?void 0:y.textContent)!=null&&(v(l&&h.current.scrollWidth>h.current.clientWidth),m(h.current.textContent))},[h,r,l]),P.createElement(i,Pt(Pt({},u),{className:Mn((n={},n[WU]=l,n),s),ref:d,title:o??(E?w:void 0)}),r)});Bh.defaultProps={ellipsize:!1};Bh.displayName="".concat(io,".Text");var bt=P.forwardRef(function(e,t){var n=eS(e,t);return P.createElement("button",Pt({type:"button"},tl(e),n),tS(e))});bt.displayName="".concat(io,".Button");var xz=P.forwardRef(function(e,t){var n=e.href,r=e.tabIndex,a=r===void 0?0:r,i=eS(e,t);return P.createElement("a",Pt({role:"button"},tl(e),i,{"aria-disabled":i.disabled,href:i.disabled?void 0:n,tabIndex:i.disabled?-1:a}),tS(e))});xz.displayName="".concat(io,".AnchorButton");function eS(e,t){var n,r=e.active,a=r===void 0?!1:r,i=e.alignText,o=e.fill,s=e.large,l=e.loading,u=l===void 0?!1:l,h=e.minimal,d=e.onBlur,p=e.onKeyDown,w=e.onKeyUp,m=e.outlined,_=e.small,E=e.tabIndex,v=e.disabled||u,y=P.useState(),S=y[0],O=y[1],D=P.useState(!1),A=D[0],b=D[1],C=P.useRef(null),x=P.useCallback(function(H){A&&b(!1),d==null||d(H)},[A,d]),N=P.useCallback(function(H){Ev(H)&&(H.preventDefault(),H.key!==S&&b(!0)),O(H.key),p==null||p(H)},[S,p]),L=P.useCallback(function(H){var lt;Ev(H)&&(b(!1),(lt=C.current)===null||lt===void 0||lt.click()),O(void 0),w==null||w(H)},[w]),z=Mn(Xh,(n={},n[LU]=!v&&(a||A),n[FU]=v,n[IU]=o,n[Vf]=s,n[UU]=u,n[zU]=h,n[HU]=m,n[qf]=_,n),BU(i),Fn(e.intent),e.className);return{className:z,disabled:v,onBlur:x,onClick:v?void 0:e.onClick,onFocus:v?void 0:e.onFocus,onKeyDown:N,onKeyUp:L,ref:X_(C,t),tabIndex:v?-1:E}}function tS(e){var t=e.children,n=e.ellipsizeText,r=e.icon,a=e.loading,i=e.rightIcon,o=e.text,s=e.textClassName,l=!Yf(o)||!Yf(t);return P.createElement(P.Fragment,null,a&&P.createElement(Oz,{key:"loading",className:GU,size:or.SMALL}),P.createElement(ze,{key:"leftIcon",icon:r}),l&&P.createElement(Bh,{key:"text",className:Mn(VU,s),ellipsize:n,tagName:"span"},o,t),P.createElement(ze,{key:"rightIcon",icon:i}))}const Pz="_stream_table_header_main_container_eshmy_1",Nz="_stream_table_header_fn_row_eshmy_7",Dz="_stream_table_right_container_eshmy_15",kz="_stream_table_title_eshmy_23",Az="_hideFieldBtn_eshmy_31",Rz="_dropdownMenu_eshmy_52",$z="_streamtable_vartype_panel_eshmy_107",Ha={stream_table_header_main_container:Pz,stream_table_header_fn_row:Nz,stream_table_right_container:Dz,stream_table_title:kz,hideFieldBtn:Az,dropdownMenu:Rz,streamtable_vartype_panel:$z};function Av(){P.useContext(it);const[e,t]=P.useState(!1);function n(){document.getElementById("hide-fields-list"),t(r=>!r)}return T.jsxs("div",{className:`${Ha.stream_table_header_main_container}`,children:[T.jsx("div",{className:`${Ha.stream_table_header_fn_row}`,children:T.jsxs("div",{id:"hide-fields-dropdown",className:`nav-link dropdown-toggle idaes-nav-button ${Ha.hideFieldBtn}`,"data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",onClick:n,children:[T.jsx("span",{children:"Hide Fields"}),T.jsx("ul",{id:"hide-fields-list",className:`dropdown-menu checkbox-menu ${Ha.dropdownMenu}`,style:{display:e?"block":"none"}})]})}),T.jsx("div",{id:"existing-variable-types",className:`streamtable-vartype-panel ${Ha.streamtable_vartype_panel}`})]})}const Lz="_flowsheet_variable_ul_15yu2_1",Mz="_variables_display_each_unit_label_15yu2_16",Rv={flowsheet_variable_ul:Lz,variables_display_each_unit_label:Mz};function jz(){const{cells:e,model:t,showVariable:n,setShowVariable:r}=P.useContext(it);console.log(e),console.log(t);let a="loading...";return e?a=e.map((o,s)=>{if(o.attrs&&o.attrs.label&&o.attrs.label.text)return T.jsxs("li",{id:`unit_name_${o}`,className:Rv.variables_display_each_unit_label,"data-open":"false","data-which-label":o.attrs.label.text,onClick:l=>Fz(l,r),children:[Object.keys(n).includes(o.attrs.label.text)?T.jsx(Fe,{icon:AT}):T.jsx(Fe,{icon:PT}),T.jsx("span",{children:o.attrs.label.text})]},o.attrs.label.text+s)}):a="Please check flowsheet Joint JS model, looks like it not contain any Cells",Object.keys(n).length>0,T.jsx(T.Fragment,{children:T.jsx("section",{className:"pd-md",children:T.jsx("ul",{className:`${Rv.flowsheet_variable_ul}`,children:a})})})}function Fz(e,t){const r=e.currentTarget.getAttribute("data-which-label");r?(console.log("here"),t(a=>{const i={...a};return i[r]?delete i[r]:i[r]=r,i})):console.error("Click event not receive which variable")}const Iz="_fvContainer_1oimy_1",Uz="_fv_1oimy_1",$v={fvContainer:Iz,fv:Uz};function zz(){const{panelState:e,cells:t}=P.useContext(it),n=e.fv.show;return T.jsxs(T.Fragment,{children:[T.jsx("h1",{children:{}.VITE_TEST}),n&&T.jsx("section",{id:"fvContainer",className:`${$v.fvContainer}`,children:T.jsx("div",{id:"fv",className:`${$v.fv}`})})]})}const Hz="_diagnosticsIssues_container_qe2yw_1",Wz="_diagnosticIssues_each_issue_qe2yw_11",Gz="_activated_qe2yw_36",Vo={diagnosticsIssues_container:Hz,diagnosticIssues_each_issue:Wz,activated:Gz};function Vz(e){let t=e.diagnosticData,n="Loading...";if(t){let r=t.diagnostics_toolbox_report.structural_report.warning[0],a=t.diagnostics_toolbox_report.numerical_report.warning[0],i={structural:r.length,numerical:a.length};const o=Object.keys(i);let s="";!e.whichIssue&&o.length>0?s=o[0]:s=e.whichIssue,n=o.map((l,u)=>T.jsx("div",{className:`${Vo.diagnosticIssues_each_issue} ${l==s?Vo.activated:Vo.deactivated}`,onClick:()=>e.toggleIssue(l),children:T.jsxs("p",{children:[l," issues",T.jsx("sup",{children:i[l]})]})},u))}else console.log("Diagnostic data is not pass from parent!");return T.jsx("div",{className:Vo.diagnosticsIssues_container,children:n})}const qz="_diagnostics_display_main_container_5xc1d_1",Kz="_diagnostic_display_each_section_container_5xc1d_7",Yz="_diagnostic_display_each_config_container_5xc1d_11",Xz="_diagnostics_display_each_severity_main_container_5xc1d_17",Jz="_diagnostic_display_each_severity_title_5xc1d_21",Qz="_diagnostic_display_diagnostic_content_container_5xc1d_31",Bz="_diagnostics_warning_caution_main_container_5xc1d_35",Zz="_diagnostics_display_pre_tag_5xc1d_39",eH="_diagnostics_warning_caution_display_container_5xc1d_53",tH="_warning_5xc1d_57",nH="_caution_5xc1d_65",rH="_diagnostic_display_each_issue_container_5xc1d_73",aH="_diagnostic_display_section_title_5xc1d_79",iH="_diagnostics_display_each_next_step_content_5xc1d_83",oH="_next_step_function_btn_5xc1d_96",sH="_copied_next_step_5xc1d_106",lH="_error_message_5xc1d_127",Q={diagnostics_display_main_container:qz,diagnostic_display_each_section_container:Kz,diagnostic_display_each_config_container:Yz,diagnostics_display_each_severity_main_container:Xz,diagnostic_display_each_severity_title:Jz,diagnostic_display_diagnostic_content_container:Qz,diagnostics_warning_caution_main_container:Bz,diagnostics_display_pre_tag:Zz,diagnostics_warning_caution_display_container:eH,warning:tH,caution:nH,diagnostic_display_each_issue_container:rH,diagnostic_display_section_title:aH,diagnostics_display_each_next_step_content:iH,next_step_function_btn:oH,copied_next_step:sH,error_message:lH};function uH(e){const{diagnosticsNextStepsOutputState:t,setDiagnosticsNextStepsOutputState:n,diagnosticsRunFnNameListState:r,setDiagnosticsRunFnNameListState:a,setDiagnosticsRunnerDisplayState:i}=P.useContext(it),o=e.diagnosticData,s=e.whichIssue;let l="Loading jacobian condition...",u="Loading model statistics structural...",h="Loading warning...",d="Loading caution...",p="Loading suggested next step...",w=0,m=0,_=[];if(s&&o&&o.diagnostics_toolbox_report){const v=o.diagnostics_toolbox_report;l=T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:v.toolbox_jacobian_condation});const y=v.toolbox_model_statistics;y&&y.length>0?u=y.map((b,C)=>T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:b},`model_structural_statistics_content${C}_${b}`)):u=T.jsxs(T.Fragment,{children:[T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:" Model Statistics is not generate by diagnostics toolbox, please run: "}),T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:" dt = DiagnosticsToolbox(model)"}),T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:" dt.report_structural_issues()"}),T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:" dt.report_numerical_issues()"})]});const S=v[s=="structural"?"structural_report":"numerical_report"].warning[0];w=S.length,S&&S.length>0?h=S.map((b,C)=>(b=b.replace("WARNING","Warning"),T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:b},`eachWarning_${C}_${b}`))):h=T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:"No warning."});const O=v[s=="structural"?"structural_report":"numerical_report"].caution;m=O.length,O&&O.length>0?d=O.map((b,C)=>(b=b.replace("CAUTION","Caution"),T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:b},`eachCaution_${C}_${b}`))):d=T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:"No caution."});let D=!1;const A=v.next_steps[s=="structural"?"structural":"numerical"];A.length>0&&(D=!0,_=[...A]),D?p=A.map((b,C)=>T.jsxs("p",{className:`${Q.diagnostics_display_each_next_step_content}`,children:[T.jsx("span",{className:"function_name",children:b}),T.jsx("span",{className:`${Q.next_step_function_btn}`,onClick:()=>{E(b)},children:"Run"}),T.jsx("span",{className:`${Q.next_step_function_btn}`,onClick:cH,children:"Copy"})]},`diagnostics_suggested_next_step_${b}`)):(s=="structural"&&(p="Try to initialize / solve your model and then call report_numerical_issues()"),s=="numerical"&&(p="Try to initialize / solve your model and then call report_numerical_issues()"))}async function E(v){try{if(!v)return;i(v);let y=v.replace("(","").replace(")","");const S="http://localhost:49999/run_diagnostic",D=new URL(window.location.href).searchParams.get("id"),A={function_name:y,id:D},b=await Zn.put(S,A);console.log(b);const C=b.data;n(x=>{const N={...x};return N[v]||(N[v]=[]),N[v]&&N[v].push(C),N})}catch(y){ir("diagnosticFNRunError",!1,y.response.data.error),console.log(y);const S=document.getElementById("diagnosticsRunner_content_container");if(S){const O=` +
${y.response.data.error}
+                    
+ `;S.innerHTML+=O}}}return P.useEffect(()=>{for(let v=0;v<_.length;v++)if(!r.includes(_[v])){const y=_[v];a(S=>{const O=S.map(D=>D);return O.push(y),O})}},[_]),T.jsxs("div",{className:`${Q.diagnostics_display_main_container}`,children:[T.jsxs("div",{className:Q.diagnostic_display_each_section_container,children:[T.jsx("p",{className:Q.diagnostic_display_section_title,children:"Model Statistics"}),s=="structural"||!s?u:l]}),T.jsxs("div",{className:Q.diagnostic_display_each_section_container,children:[T.jsxs("div",{className:Q.diagnostics_warning_caution_main_container,children:[T.jsxs("div",{className:`${Q.diagnostic_display_each_severity_title} ${Q.warning}`,children:["WARNINGS",T.jsx("span",{children:w})]}),T.jsx("div",{className:Q.diagnostics_warning_caution_display_container,children:h})]}),T.jsxs("div",{className:Q.diagnostics_warning_caution_main_container,children:[T.jsxs("div",{className:`${Q.diagnostic_display_each_severity_title} ${Q.caution}`,children:["CAUTIONS",T.jsx("span",{children:m})]}),T.jsx("div",{className:Q.diagnostics_warning_caution_display_container,children:d})]})]}),T.jsxs("div",{className:Q.diagnostic_display_each_section_container,children:[p!="Loading suggested next step..."&&T.jsx("p",{className:Q.diagnostic_display_section_title,children:"Suggested next steps:"}),T.jsx("div",{className:Q.diagnostic_display_diagnostic_content_container,children:p})]})]})}function cH(e){let t=e.currentTarget,n=t.parentElement.querySelector(".function_name");if(!n){console.error("There is an issue with click copy next step function");return}const r=n.textContent||"";navigator.clipboard.writeText(r).then(()=>{let a;a?clearTimeout(a):(t.innerText="Copied",a=setTimeout(()=>{t.innerText="Copy"},900))}).catch(a=>{console.error("Failed to copy text: ",a)})}function fH(){let{server_port:e,diagnosticsRefreshState:t}=P.useContext(it);const[n,r]=P.useState(null),[a,i]=P.useState("structural"),o=s=>{i(s)};return P.useEffect(()=>{const u=`http://localhost:49999/diagnostics?id=${new URL(window.location.href).searchParams.get("id")}`;(async d=>{try{const w=(await Zn.get(d)).data;ir("diagnosticRefresh",!0),r(w)}catch(p){console.error("Fetch diagnostic data error",p),ir("diagnosticRefresh",!1)}})(u)},[t]),T.jsxs(T.Fragment,{children:[T.jsx(Vz,{diagnosticData:n,toggleIssue:o,whichIssue:a}),T.jsx(uH,{diagnosticData:n,whichIssue:a})]})}const dH="_diagnosticsRunner_content_container_151kk_1",Lv={diagnosticsRunner_content_container:dH};function hH(){const{diagnosticsNextStepsOutputState:e,diagnosticsRunnerDisplayState:t,diagnosticsHistoryState:n,setDiagnosticsHistory:r}=P.useContext(it);let a="",i=0;return!t||t=="default"?a="Please select a function to check diagnostics result!":!e[t]||e[t][0].diagnostics_runner_result.length==0?a="Please run diagnostics function first!":e[t]&&e[t]&&(i=e[t].length,a=e[t].map((o,s)=>T.jsx(Sn.Fragment,{children:T.jsx("pre",{id:`diagnostics_log_${s}`,className:Lv.diagnostics_runner_output_pre,children:o.diagnostics_runner_result})},`diagnosticsRunnerDisplayContentContainerContent${s}`))),P.useEffect(()=>{r(o=>i)},[i]),T.jsx("div",{className:Lv.diagnosticsRunner_content_container,id:"diagnosticsRunner_content_container",style:{overflowY:"scroll"},children:a})}const pH="_diagnostics_log_header_history_btn_container_1ynrk_1",gH="_diagnostics_log_header_history_btn_1ynrk_1",mH={diagnostics_log_header_history_btn_container:pH,diagnostics_log_header_history_btn:gH};function vH(){const{diagnosticsHistoryState:e,setDiagnosticsHistory:t,viewInLogPanel:n}=P.useContext(it),[r,a]=P.useState(0),[i,o]=P.useState({hasPrevHistory:!1,hasNextHistory:!1});function s(){r>0&&a(d=>{let p=d;return p-=1,p}),window.location.hash=`#diagnostics_log_${r-1}`}function l(){r{let p=d;return p+=1,p})),window.location.hash=`#diagnostics_log_${r}`}function u(){if(r-1<=0){o(d=>{const p={...d};return p.hasPrevHistory=!1,p});return}if(r-1>=0){o(d=>{const p={...d};return p.hasPrevHistory=!0,p});return}}function h(){if(r==e){o(d=>{const p={...d};return p.hasNextHistory=!1,p});return}if(r{const p={...d};return p.hasNextHistory=!0,p});return}}return P.useEffect(()=>{window.location.hash=`diagnostics_log_${r}`},[n]),P.useEffect(()=>{u(),h(),a(()=>e),window.location.hash=`diagnostics_log_${r-1}`},[e]),P.useEffect(()=>{u(),h(),window.location.hash=`diagnostics_log_${r-1}`},[r]),T.jsxs("div",{id:"diagnostics_log_panel",className:`${mH.diagnostics_log_header_history_btn_container}`,children:[T.jsx(bt,{minimal:!0,disabled:!i.hasPrevHistory,onClick:()=>s(),children:T.jsx(ze,{icon:Be.UNDO,size:20})}),T.jsx(bt,{minimal:!0,disabled:!i.hasNextHistory,onClick:()=>l(),children:T.jsx(ze,{icon:Be.REDO,size:20})})]})}function Mv(){return T.jsx(T.Fragment,{children:T.jsx("div",{id:"stream-table",className:"idaes-container",style:{display:"block"},children:T.jsx("div",{id:"stream-table-container",className:"pd-md tableContainer",children:T.jsx("div",{id:"stream-table-data",className:"ag-theme-alpine"})})})})}const yH=()=>{const{panelState:e,setPanelState:t,fvHeaderState:n,setFvHeaderState:r,diagnosticsRunFnNameListState:a,setDiagnosticsRunnerDisplayState:i,viewInLogPanel:o,setViewInLogPanel:s,setDiagnosticsRefreshState:l}=P.useContext(it),u=n.isShowSteamName,h=n.isShowLabels,[d,p]=P.useState(b());function w(x){Object.keys(o).includes(x)&&s(N=>{const L={...N};return Object.keys(L).forEach(z=>{z==x?L[z]=!0:L[z]=!1}),L})}function m(){return e.diagnostics.show===!0&&o.diagnosticsLogs?T.jsx(hH,{}):e.diagnostics.show===!0&&o.streamTable===!0?T.jsx(Mv,{}):e.diagnostics.show===!1?T.jsx(Mv,{}):T.jsx(T.Fragment,{children:"Bottom panel display error cause by diagnosticsRunnerOrStreamTableDisplay"})}const _={components:T.jsx(jz,{}),flowsheet:T.jsx(zz,{}),diagnostics:T.jsx(fH,{}),streamTableAndDiagnostics:m()},E={components:"Components",flowsheet:"Diagram",diagnostics:"Diagnostics",diagnosticsRunner:"Diagnostics Runner",streamTable:"Stream Table",streamTableAndDiagnostics:"Diagnostics Logs"},v=(x,N)=>(jv(x,y,S,u,h,a,i,o,l),T.jsx(T.Fragment,{children:T.jsx(xf.MosaicWindow,{path:N,createNode:()=>"new",title:E[x],renderToolbar:(L,z)=>T.jsxs("div",{className:"mosaic_customized_toolbar_header",children:[T.jsx("div",{className:"mosaic_customized_toolbar_title_container",children:E[x]==E.streamTableAndDiagnostics?T.jsxs(T.Fragment,{children:[T.jsx("p",{onClick:()=>w("streamTable"),className:` + ${o.streamTable?"mosaic_header_toolbar_title_activate":"mosaic_header_toolbar_title_deactivate"} + mosaic_header_toolbar_title diagnostics_runner_panel_title + `,children:"Stream Table"}),T.jsx("p",{onClick:()=>{e.diagnostics.show&&w("diagnosticsLogs")},className:` + ${o.diagnosticsLogs?"mosaic_header_toolbar_title_activate":"mosaic_header_toolbar_title_deactivate"} + + ${!e.diagnostics.show&&"mosaic_header_tool_bar_fully_deactivate"} + mosaic_header_toolbar_title diagnostics_runner_panel_title + `,children:E[x]})]}):T.jsx("p",{className:"mosaic_header_toolbar_title",children:E[x]})}),T.jsx("div",{className:"mosaic_customized_toolbar_btn_container",children:jv(x,y,S,u,h,a,i,o,l)})]}),children:_[x]})}));function y(){r(x=>({...x,isShowSteamName:!x.isShowSteamName}))}function S(){r(x=>({...x,isShowLabels:!x.isShowLabels}))}function O(x){e.diagnostics.show&&D(x),localStorage.setItem("mosaicLayout",JSON.stringify(x)),p(()=>x)}function D(x){let N,L=localStorage.getItem("diagnosticsPanelParams");L?N=JSON.parse(L):N=A(),Object.keys(x).forEach(z=>{x[z]=="diagnostics"&&(N.direction=x.direction,N.splitPercentage=x.splitPercentage,N.diagnosticsPanelLocationInItem=z,N.diagnosticsPanelLocationInObj=void 0,N.diagnosticsPanelStayWith=void 0),typeof x[z]=="object"&&Object.keys(x[z]).forEach(H=>{if(x[z][H]=="diagnostics"){N.direction=x[z].direction,N.splitPercentage=x[z].splitPercentage;const lt=H=="first"?"second":"first";N.diagnosticsPanelStayWith=x[z][lt],N.diagnosticsPanelLocationInItem=z,N.diagnosticsPanelLocationInObj=H}})}),localStorage.setItem("diagnosticsPanelParams",JSON.stringify(N))}function A(){let x=localStorage.getItem("diagnosticsPanelParams");if(x)return JSON.parse(x);{const N={direction:"row",diagnosticsPanelParamsLocationInItem:"first",diagnosticsPanelLocationInObj:"second",diagnosticsPanelStayWith:"flowsheet",splitPercentage:55};return localStorage.setItem("diagnosticsPanelParams",JSON.stringify(N)),N}}function b(){let x;return e.diagnostics.show&&(x={direction:"column",first:{direction:"row",first:"flowsheet",second:"diagnostics",splitPercentage:55},second:"streamTableAndDiagnostics",splitPercentage:60}),e.diagnostics.show||(x={direction:"column",first:"flowsheet",second:"streamTableAndDiagnostics",splitPercentage:60}),x}function C(){try{if(A(),e.diagnostics.show){let x=JSON.parse(JSON.stringify(d));if(!JSON.stringify(d).includes("diagnostics")){localStorage.getItem("diagnosticsPanelParams")||A();const N=localStorage.getItem("diagnosticsPanelParams");if(N){let L=JSON.parse(N);if(!L.diagnosticsPanelLocationInObj){const z=L.diagnosticsPanelLocationInItem=="first"?"second":"first",H={direction:x.direction?x.direction:"row",splitPercentage:x.splitPercentage?x.splitPercentage:55,first:x.first?x.first:"flowsheet",second:x.second?x.second:"streamTableAndDiagnostics"};x.direction=L.direction?L.direction:"column",x.splitPercentage=L.splitPercentage?L.splitPercentage:55,x[L.diagnosticsPanelLocationInItem]="diagnostics",x[z]=H}if(L.diagnosticsPanelLocationInObj){const z=L.diagnosticsPanelStayWith?L.diagnosticsPanelStayWith:"flowsheet";let H=Object.keys(x).find(Or=>{if(x[Or]==z)return Or});const lt=z=="flowsheet"?"streamTableAndDiagnostics":"flowsheet",on=H=="first"?"second":"first";H||(H="first");const Ut={direction:L.direction?L.direction:"column",splitPercentage:x.splitPercentage?x.splitPercentage:55};Ut[H]=z,H==L.diagnosticsPanelLocationInObj&&(H=="first"?L.diagnosticsPanelLocationInObj="second":L.diagnosticsPanelLocationInObj="first"),Ut[L.diagnosticsPanelLocationInObj]="diagnostics",x=JSON.parse(JSON.stringify(x)),x[H]=Ut,x[on]=lt}}}return x}if(!e.diagnostics.show){let x=JSON.stringify(d),N=JSON.parse(x);return Object.keys(N).forEach(L=>{if(N[L]=="diagnostics"){delete N[L];const z=L=="first"?"second":"first",H=JSON.parse(JSON.stringify(N[z]));N.first=H.first,N.second=H.second,N.direction=H.direction,N.splitPercentage=H.splitPercentage}}),Object.keys(N).forEach(L=>{typeof N[L]=="object"&&Object.keys(N[L]).forEach(z=>{N[L][z]=="diagnostics"&&(delete N[L][z],N[L].first?N[L]=N[L].first:N[L]=N[L].second)})}),N}}catch{console.log("error in get mosaic layout rest layout"),b()}}return P.useEffect(()=>{p(()=>{const x=localStorage.getItem("mosaicLayout");return x?JSON.parse(x):b()})},[e.diagnostics.show]),T.jsx(xf.Mosaic,{renderTile:v,onChange:O,initialValue:C()})};function jv(e,t,n,r,a,i,o,s,l){switch(e){case"components":return T.jsxs("div",{className:"mosaic_toolbar_btn_container",children:[T.jsx(bt,{minimal:!0,children:T.jsx(ze,{icon:Be.MINIMIZE,size:20})}),T.jsx(bt,{minimal:!0,children:T.jsx(ze,{icon:Be.MAXIMIZE,size:20})}),T.jsx(bt,{minimal:!0,children:T.jsx(ze,{icon:Be.CROSS,size:20})})]});case"flowsheet":return T.jsxs("div",{className:"mosaic_toolbar_btn_container",children:[T.jsx(bt,{id:"zoom-in-btn",minimal:!0,children:T.jsx(ze,{icon:Be.ZOOM_IN,size:20})}),T.jsx(bt,{id:"zoom-out-btn",minimal:!0,children:T.jsx(ze,{icon:Be.ZOOM_OUT,size:20})}),T.jsx(bt,{id:"zoom-to-fit",minimal:!0,children:T.jsx(ze,{icon:Be.ZOOM_TO_FIT,size:20})}),T.jsxs(bt,{className:"mosaic_flowsheet_header_view",minimal:!0,children:[T.jsx(ze,{icon:Be.EYE_OPEN,size:20}),T.jsxs("ul",{className:"mosaic_dropdown_view",children:[T.jsxs("li",{id:"stream-names-toggle",onClick:t,"data-toggle":`${r}`,children:[r?T.jsx(Fe,{icon:Lg,className:"mosaic_toolbar_diagram_view_icon_stroke_only"}):T.jsx(Fe,{icon:Mg,className:"mosaic_toolbar_diagram_view_icon_stroke_only"}),T.jsx("span",{children:"Stream Name"})]}),T.jsxs("li",{id:"show-label-toggle",onClick:n,"data-toggle":a?"false":"true",children:[a?T.jsx(Fe,{icon:Lg,className:"mosaic_toolbar_diagram_view_icon_stroke_only"}):T.jsx(Fe,{icon:Mg,className:"mosaic_toolbar_diagram_view_icon_stroke_only"}),T.jsx("span",{children:"Labels"})]})]})]}),T.jsxs(bt,{className:"mosaic_flowsheet_header_download",minimal:!0,children:[T.jsx(ze,{icon:Be.BRING_DATA,size:20}),T.jsxs("ul",{id:"flowsheet_component_header_dropdown_container",className:"mosaic_dropdown_download",children:[T.jsx("li",{id:"headerExportImageBtn",children:"Export PNG"}),T.jsx("li",{id:"headerExportSvgBtn",children:"Export SVG"})]})]})]});case"diagnostics":let u=function(){l(p=>!p)};return T.jsxs("div",{className:"mosaic_toolbar_btn_container",children:[T.jsx("p",{className:"mosaic_diagnostic_toolbar_content",children:"BLOCK: FLOWSHEET"}),T.jsxs("div",{className:"mosaic_toolbar_btn_icon_with_text clickable_btn",onClick:()=>u(),children:[T.jsx(ze,{icon:Be.REFRESH,size:20}),T.jsx("span",{className:"mosaic_toolbar_btn_icon_with_text_text",children:"Refresh"})]})]});case"streamTable":return T.jsx("div",{className:"mosaic_toolbar_btn_container",children:T.jsx(Av,{})});case"streamTableAndDiagnostics":return T.jsxs("div",{className:"mosaic_toolbar_btn_container",children:[!s.diagnosticsLogs&&T.jsx(Av,{}),s.diagnosticsLogs&&T.jsx(vH,{})]});case"diagnosticsRunner":let h=function(p){o(p.currentTarget.value)};const d=i.map((p,w)=>T.jsx("option",{value:`${p}`,children:p},`diagnosticsRunnerSelection${p}`));return T.jsx("div",{className:"mosaic_toolbar_btn_container",children:T.jsxs("select",{name:"diagnosticsRunnerSelection",id:"",className:"mosaic_diagnosticsRunner_select",onChange:h,children:[T.jsx("option",{value:"default",children:"Select a function"}),d]})});default:return T.jsx(T.Fragment,{})}}function wH(e){return e.messageType&&e.messageType,T.jsx(T.Fragment,{children:T.jsx("div",{className:os.message_bar_container,id:"messageBarContainer"})})}const _H="_flowsheetWrapper_11hj9_1",SH={flowsheetWrapper:_H};function bH(){let{server_port:e,fv_id:t,panelState:n,viewInLogPanel:r}=P.useContext(it);const a=n.fv.show,i=n.diagnostics.show,o=n.streamTable.show;return P.useEffect(()=>{let s;return s?s=void 0:(e=="5173"?e=8e3:e=e,s=new MO(t,e,a,!1,o,r)),()=>{s&&typeof s.cleanToolBarEvent=="function"&&s.cleanToolBarEvent()}},[a,o,i,r]),T.jsxs("div",{id:"flowsheet-wrapper",className:SH.flowsheetWrapper,children:[T.jsx(yH,{}),T.jsx(wH,{})]})}function EH(){return alert(),T.jsxs("main",{id:"main",className:"main",children:[T.jsx(uC,{}),T.jsx(bH,{})]})}localStorage.getItem("appSetting")||localStorage.setItem("appSetting","{}");dc.createRoot(document.getElementById("root")).render(T.jsx(Nb,{children:T.jsx(EH,{})}));export{Le as I,Yr as _,Xr as a,xv as b,fz as p}; diff --git a/idaes_ui/fv/static/assets/index-65821143.js b/idaes_ui/fv/static/assets/index-65821143.js new file mode 100644 index 00000000..81f0e4b9 --- /dev/null +++ b/idaes_ui/fv/static/assets/index-65821143.js @@ -0,0 +1,854 @@ +var nS=Object.defineProperty;var rS=(e,t,n)=>t in e?nS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var z=(e,t,n)=>(rS(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();var $=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Bf(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),n}var Fv={exports:{}},rl={},Iv={exports:{}},Y={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ri=Symbol.for("react.element"),aS=Symbol.for("react.portal"),iS=Symbol.for("react.fragment"),oS=Symbol.for("react.strict_mode"),sS=Symbol.for("react.profiler"),lS=Symbol.for("react.provider"),uS=Symbol.for("react.context"),cS=Symbol.for("react.forward_ref"),fS=Symbol.for("react.suspense"),dS=Symbol.for("react.memo"),hS=Symbol.for("react.lazy"),Zh=Symbol.iterator;function pS(e){return e===null||typeof e!="object"?null:(e=Zh&&e[Zh]||e["@@iterator"],typeof e=="function"?e:null)}var Uv={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},zv=Object.assign,Hv={};function pa(e,t,n){this.props=e,this.context=t,this.refs=Hv,this.updater=n||Uv}pa.prototype.isReactComponent={};pa.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};pa.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Wv(){}Wv.prototype=pa.prototype;function Zf(e,t,n){this.props=e,this.context=t,this.refs=Hv,this.updater=n||Uv}var ed=Zf.prototype=new Wv;ed.constructor=Zf;zv(ed,pa.prototype);ed.isPureReactComponent=!0;var ep=Array.isArray,Gv=Object.prototype.hasOwnProperty,td={current:null},Vv={key:!0,ref:!0,__self:!0,__source:!0};function qv(e,t,n){var r,a={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Gv.call(t,r)&&!Vv.hasOwnProperty(r)&&(a[r]=t[r]);var s=arguments.length-2;if(s===1)a.children=n;else if(1>>1,Se=F[he];if(0>>1;hea(lu,q))qna(so,lu)?(F[he]=so,F[qn]=q,he=qn):(F[he]=lu,F[Vn]=q,he=Vn);else if(qna(so,q))F[he]=so,F[qn]=q,he=qn;else break e}}return V}function a(F,V){var q=F.sortIndex-V.sortIndex;return q!==0?q:F.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],u=[],h=1,d=null,p=3,w=!1,m=!1,_=!1,b=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(F){for(var V=n(u);V!==null;){if(V.callback===null)r(u);else if(V.startTime<=F)r(u),V.sortIndex=V.expirationTime,t(l,V);else break;V=n(u)}}function x(F){if(_=!1,S(F),!m)if(n(l)!==null)m=!0,Ut(D);else{var V=n(u);V!==null&&Or(x,V.startTime-F)}}function D(F,V){m=!1,_&&(_=!1,v(C),C=-1),w=!0;var q=p;try{for(S(V),d=n(l);d!==null&&(!(d.expirationTime>V)||F&&!L());){var he=d.callback;if(typeof he=="function"){d.callback=null,p=d.priorityLevel;var Se=he(d.expirationTime<=V);V=e.unstable_now(),typeof Se=="function"?d.callback=Se:d===n(l)&&r(l),S(V)}else r(l);d=n(l)}if(d!==null)var oo=!0;else{var Vn=n(u);Vn!==null&&Or(x,Vn.startTime-V),oo=!1}return oo}finally{d=null,p=q,w=!1}}var k=!1,E=null,C=-1,O=5,N=-1;function L(){return!(e.unstable_now()-NF||125he?(F.sortIndex=q,t(u,F),n(l)===null&&F===n(u)&&(_?(v(C),C=-1):_=!0,Or(x,q-he))):(F.sortIndex=Se,t(l,F),m||w||(m=!0,Ut(D))),F},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(F){var V=p;return function(){var q=p;p=V;try{return F.apply(this,arguments)}finally{p=q}}}})(Jv);Xv.exports=Jv;var CS=Xv.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Qv=P,nt=CS;function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hc=Object.prototype.hasOwnProperty,OS=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,np={},rp={};function xS(e){return hc.call(rp,e)?!0:hc.call(np,e)?!1:OS.test(e)?rp[e]=!0:(np[e]=!0,!1)}function PS(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function NS(e,t,n,r){if(t===null||typeof t>"u"||PS(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ge(e,t,n,r,a,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){xe[e]=new Ge(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];xe[t]=new Ge(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){xe[e]=new Ge(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){xe[e]=new Ge(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){xe[e]=new Ge(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){xe[e]=new Ge(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){xe[e]=new Ge(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){xe[e]=new Ge(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){xe[e]=new Ge(e,5,!1,e.toLowerCase(),null,!1,!1)});var rd=/[\-:]([a-z])/g;function ad(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(rd,ad);xe[t]=new Ge(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(rd,ad);xe[t]=new Ge(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(rd,ad);xe[t]=new Ge(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){xe[e]=new Ge(e,1,!1,e.toLowerCase(),null,!1,!1)});xe.xlinkHref=new Ge("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){xe[e]=new Ge(e,1,!1,e.toLowerCase(),null,!0,!0)});function id(e,t,n,r){var a=xe.hasOwnProperty(t)?xe[t]:null;(a!==null?a.type!==0:r||!(2s||a[o]!==i[s]){var l=` +`+a[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{fu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Wa(e):""}function DS(e){switch(e.tag){case 5:return Wa(e.type);case 16:return Wa("Lazy");case 13:return Wa("Suspense");case 19:return Wa("SuspenseList");case 0:case 2:case 15:return e=du(e.type,!1),e;case 11:return e=du(e.type.render,!1),e;case 1:return e=du(e.type,!0),e;default:return""}}function vc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case $r:return"Fragment";case Rr:return"Portal";case pc:return"Profiler";case od:return"StrictMode";case gc:return"Suspense";case mc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ey:return(e.displayName||"Context")+".Consumer";case Zv:return(e._context.displayName||"Context")+".Provider";case sd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ld:return t=e.displayName||null,t!==null?t:vc(e.type)||"Memo";case dn:t=e._payload,e=e._init;try{return vc(e(t))}catch{}}return null}function kS(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return vc(t);case 8:return t===od?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function kn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ny(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function AS(e){var t=ny(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function co(e){e._valueTracker||(e._valueTracker=AS(e))}function ry(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ny(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function gs(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function yc(e,t){var n=t.checked;return ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ip(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=kn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ay(e,t){t=t.checked,t!=null&&id(e,"checked",t,!1)}function wc(e,t){ay(e,t);var n=kn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?_c(e,t.type,n):t.hasOwnProperty("defaultValue")&&_c(e,t.type,kn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function op(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function _c(e,t,n){(t!=="number"||gs(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ga=Array.isArray;function Jr(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=fo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function fi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Qa={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},RS=["Webkit","ms","Moz","O"];Object.keys(Qa).forEach(function(e){RS.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qa[t]=Qa[e]})});function ly(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Qa.hasOwnProperty(e)&&Qa[e]?(""+t).trim():t+"px"}function uy(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,a=ly(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}var $S=ce({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ec(e,t){if(t){if($S[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function Tc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Cc=null;function ud(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Oc=null,Qr=null,Br=null;function up(e){if(e=Mi(e)){if(typeof Oc!="function")throw Error(R(280));var t=e.stateNode;t&&(t=ll(t),Oc(e.stateNode,e.type,t))}}function cy(e){Qr?Br?Br.push(e):Br=[e]:Qr=e}function fy(){if(Qr){var e=Qr,t=Br;if(Br=Qr=null,up(e),t)for(e=0;e>>=0,e===0?32:31-(VS(e)/qS|0)|0}var ho=64,po=4194304;function Va(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ws(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,a=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~a;s!==0?r=Va(s):(i&=o,i!==0&&(r=Va(i)))}else o=n&~a,o!==0?r=Va(o):i!==0&&(r=Va(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&a)&&(a=r&-r,i=t&-t,a>=i||a===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function $i(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ot(t),e[t]=n}function JS(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Za),yp=String.fromCharCode(32),wp=!1;function ky(e,t){switch(e){case"keyup":return T2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ay(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Lr=!1;function O2(e,t){switch(e){case"compositionend":return Ay(t);case"keypress":return t.which!==32?null:(wp=!0,yp);case"textInput":return e=t.data,e===yp&&wp?null:e;default:return null}}function x2(e,t){if(Lr)return e==="compositionend"||!vd&&ky(e,t)?(e=Ny(),Xo=pd=vn=null,Lr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ep(n)}}function My(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?My(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jy(){for(var e=window,t=gs();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=gs(e.document)}return t}function yd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function M2(e){var t=jy(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&My(n.ownerDocument.documentElement,n)){if(r!==null&&yd(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=n.textContent.length,i=Math.min(r.start,a);r=r.end===void 0?i:Math.min(r.end,a),!e.extend&&i>r&&(a=r,r=i,i=a),a=Tp(n,i);var o=Tp(n,r);a&&o&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Mr=null,Ac=null,ti=null,Rc=!1;function Cp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Rc||Mr==null||Mr!==gs(r)||(r=Mr,"selectionStart"in r&&yd(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ti&&vi(ti,r)||(ti=r,r=bs(Ac,"onSelect"),0Ir||(e.current=Ic[Ir],Ic[Ir]=null,Ir--)}function ee(e,t){Ir++,Ic[Ir]=e.current,e.current=t}var An={},Ie=Un(An),Ke=Un(!1),ur=An;function aa(e,t){var n=e.type.contextTypes;if(!n)return An;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in n)a[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Ye(e){return e=e.childContextTypes,e!=null}function Ts(){ie(Ke),ie(Ie)}function Ap(e,t,n){if(Ie.current!==An)throw Error(R(168));ee(Ie,t),ee(Ke,n)}function qy(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var a in r)if(!(a in t))throw Error(R(108,kS(e)||"Unknown",a));return ce({},n,r)}function Cs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||An,ur=Ie.current,ee(Ie,e),ee(Ke,Ke.current),!0}function Rp(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=qy(e,t,ur),r.__reactInternalMemoizedMergedChildContext=e,ie(Ke),ie(Ie),ee(Ie,e)):ie(Ke),ee(Ke,n)}var Wt=null,ul=!1,Ou=!1;function Ky(e){Wt===null?Wt=[e]:Wt.push(e)}function Y2(e){ul=!0,Ky(e)}function zn(){if(!Ou&&Wt!==null){Ou=!0;var e=0,t=B;try{var n=Wt;for(B=1;e>=o,a-=o,qt=1<<32-Ot(t)+a|n<C?(O=E,E=null):O=E.sibling;var N=p(v,E,S[C],x);if(N===null){E===null&&(E=O);break}e&&E&&N.alternate===null&&t(v,E),y=i(N,y,C),k===null?D=N:k.sibling=N,k=N,E=O}if(C===S.length)return n(v,E),se&&Yn(v,C),D;if(E===null){for(;CC?(O=E,E=null):O=E.sibling;var L=p(v,E,N.value,x);if(L===null){E===null&&(E=O);break}e&&E&&L.alternate===null&&t(v,E),y=i(L,y,C),k===null?D=L:k.sibling=L,k=L,E=O}if(N.done)return n(v,E),se&&Yn(v,C),D;if(E===null){for(;!N.done;C++,N=S.next())N=d(v,N.value,x),N!==null&&(y=i(N,y,C),k===null?D=N:k.sibling=N,k=N);return se&&Yn(v,C),D}for(E=r(v,E);!N.done;C++,N=S.next())N=w(E,v,C,N.value,x),N!==null&&(e&&N.alternate!==null&&E.delete(N.key===null?C:N.key),y=i(N,y,C),k===null?D=N:k.sibling=N,k=N);return e&&E.forEach(function(U){return t(v,U)}),se&&Yn(v,C),D}function b(v,y,S,x){if(typeof S=="object"&&S!==null&&S.type===$r&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case uo:e:{for(var D=S.key,k=y;k!==null;){if(k.key===D){if(D=S.type,D===$r){if(k.tag===7){n(v,k.sibling),y=a(k,S.props.children),y.return=v,v=y;break e}}else if(k.elementType===D||typeof D=="object"&&D!==null&&D.$$typeof===dn&&Up(D)===k.type){n(v,k.sibling),y=a(k,S.props),y.ref=Ra(v,k,S),y.return=v,v=y;break e}n(v,k);break}else t(v,k);k=k.sibling}S.type===$r?(y=lr(S.props.children,v.mode,x,S.key),y.return=v,v=y):(x=rs(S.type,S.key,S.props,null,v.mode,x),x.ref=Ra(v,y,S),x.return=v,v=x)}return o(v);case Rr:e:{for(k=S.key;y!==null;){if(y.key===k)if(y.tag===4&&y.stateNode.containerInfo===S.containerInfo&&y.stateNode.implementation===S.implementation){n(v,y.sibling),y=a(y,S.children||[]),y.return=v,v=y;break e}else{n(v,y);break}else t(v,y);y=y.sibling}y=$u(S,v.mode,x),y.return=v,v=y}return o(v);case dn:return k=S._init,b(v,y,k(S._payload),x)}if(Ga(S))return m(v,y,S,x);if(Pa(S))return _(v,y,S,x);So(v,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,y!==null&&y.tag===6?(n(v,y.sibling),y=a(y,S),y.return=v,v=y):(n(v,y),y=Ru(S,v.mode,x),y.return=v,v=y),o(v)):n(v,y)}return b}var oa=t0(!0),n0=t0(!1),ji={},jt=Un(ji),Si=Un(ji),bi=Un(ji);function nr(e){if(e===ji)throw Error(R(174));return e}function xd(e,t){switch(ee(bi,t),ee(Si,e),ee(jt,ji),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:bc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=bc(t,e)}ie(jt),ee(jt,t)}function sa(){ie(jt),ie(Si),ie(bi)}function r0(e){nr(bi.current);var t=nr(jt.current),n=bc(t,e.type);t!==n&&(ee(Si,e),ee(jt,n))}function Pd(e){Si.current===e&&(ie(jt),ie(Si))}var le=Un(0);function ks(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var xu=[];function Nd(){for(var e=0;en?n:4,e(!0);var r=Pu.transition;Pu.transition={};try{e(!1),t()}finally{B=n,Pu.transition=r}}function w0(){return yt().memoizedState}function B2(e,t,n){var r=Pn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},_0(e))S0(t,n);else if(n=Qy(e,t,n,r),n!==null){var a=He();xt(n,e,r,a),b0(n,t,r)}}function Z2(e,t,n){var r=Pn(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(_0(e))S0(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,s=i(o,n);if(a.hasEagerState=!0,a.eagerState=s,Nt(s,o)){var l=t.interleaved;l===null?(a.next=a,Cd(t)):(a.next=l.next,l.next=a),t.interleaved=a;return}}catch{}finally{}n=Qy(e,t,a,r),n!==null&&(a=He(),xt(n,e,r,a),b0(n,t,r))}}function _0(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function S0(e,t){ni=As=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function b0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,fd(e,n)}}var Rs={readContext:vt,useCallback:Ne,useContext:Ne,useEffect:Ne,useImperativeHandle:Ne,useInsertionEffect:Ne,useLayoutEffect:Ne,useMemo:Ne,useReducer:Ne,useRef:Ne,useState:Ne,useDebugValue:Ne,useDeferredValue:Ne,useTransition:Ne,useMutableSource:Ne,useSyncExternalStore:Ne,useId:Ne,unstable_isNewReconciler:!1},eb={readContext:vt,useCallback:function(e,t){return At().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:Hp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Zo(4194308,4,p0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Zo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Zo(4,2,e,t)},useMemo:function(e,t){var n=At();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=At();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=B2.bind(null,ue,e),[r.memoizedState,e]},useRef:function(e){var t=At();return e={current:e},t.memoizedState=e},useState:zp,useDebugValue:$d,useDeferredValue:function(e){return At().memoizedState=e},useTransition:function(){var e=zp(!1),t=e[0];return e=Q2.bind(null,e[1]),At().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ue,a=At();if(se){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),Ee===null)throw Error(R(349));fr&30||o0(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,Hp(l0.bind(null,r,i,e),[e]),r.flags|=2048,Ci(9,s0.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=At(),t=Ee.identifierPrefix;if(se){var n=Kt,r=qt;n=(r&~(1<<32-Ot(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ei++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Rt]=t,e[_i]=r,k0(e,t,!1,!1),t.stateNode=e;e:{switch(o=Tc(n,r),n){case"dialog":te("cancel",e),te("close",e),a=r;break;case"iframe":case"object":case"embed":te("load",e),a=r;break;case"video":case"audio":for(a=0;aua&&(t.flags|=128,r=!0,$a(i,!1),t.lanes=4194304)}else{if(!r)if(e=ks(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),$a(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!se)return De(t),null}else 2*pe()-i.renderingStartTime>ua&&n!==1073741824&&(t.flags|=128,r=!0,$a(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=pe(),t.sibling=null,n=le.current,ee(le,r?n&1|2:n&1),t):(De(t),null);case 22:case 23:return Ud(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ze&1073741824&&(De(t),t.subtreeFlags&6&&(t.flags|=8192)):De(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function lb(e,t){switch(_d(t),t.tag){case 1:return Ye(t.type)&&Ts(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return sa(),ie(Ke),ie(Ie),Nd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Pd(t),null;case 13:if(ie(le),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));ia()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ie(le),null;case 4:return sa(),null;case 10:return Td(t.type._context),null;case 22:case 23:return Ud(),null;case 24:return null;default:return null}}var Eo=!1,Me=!1,ub=typeof WeakSet=="function"?WeakSet:Set,j=null;function Wr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){fe(e,t,r)}else n.current=null}function Qc(e,t,n){try{n()}catch(r){fe(e,t,r)}}var Qp=!1;function cb(e,t){if($c=_s,e=jy(),yd(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,s=-1,l=-1,u=0,h=0,d=e,p=null;t:for(;;){for(var w;d!==n||a!==0&&d.nodeType!==3||(s=o+a),d!==i||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(w=d.firstChild)!==null;)p=d,d=w;for(;;){if(d===e)break t;if(p===n&&++u===a&&(s=o),p===i&&++h===r&&(l=o),(w=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=w}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Lc={focusedElem:e,selectionRange:n},_s=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var _=m.memoizedProps,b=m.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?_:St(t.type,_),b);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(x){fe(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return m=Qp,Qp=!1,m}function ri(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,i!==void 0&&Qc(t,n,i)}a=a.next}while(a!==r)}}function dl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Bc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function $0(e){var t=e.alternate;t!==null&&(e.alternate=null,$0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Rt],delete t[_i],delete t[Fc],delete t[q2],delete t[K2])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function L0(e){return e.tag===5||e.tag===3||e.tag===4}function Bp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||L0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Zc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Es));else if(r!==4&&(e=e.child,e!==null))for(Zc(e,t,n),e=e.sibling;e!==null;)Zc(e,t,n),e=e.sibling}function ef(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ef(e,t,n),e=e.sibling;e!==null;)ef(e,t,n),e=e.sibling}var Ce=null,Et=!1;function sn(e,t,n){for(n=n.child;n!==null;)M0(e,t,n),n=n.sibling}function M0(e,t,n){if(Mt&&typeof Mt.onCommitFiberUnmount=="function")try{Mt.onCommitFiberUnmount(al,n)}catch{}switch(n.tag){case 5:Me||Wr(n,t);case 6:var r=Ce,a=Et;Ce=null,sn(e,t,n),Ce=r,Et=a,Ce!==null&&(Et?(e=Ce,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ce.removeChild(n.stateNode));break;case 18:Ce!==null&&(Et?(e=Ce,n=n.stateNode,e.nodeType===8?Cu(e.parentNode,n):e.nodeType===1&&Cu(e,n),gi(e)):Cu(Ce,n.stateNode));break;case 4:r=Ce,a=Et,Ce=n.stateNode.containerInfo,Et=!0,sn(e,t,n),Ce=r,Et=a;break;case 0:case 11:case 14:case 15:if(!Me&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var i=a,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Qc(n,t,o),a=a.next}while(a!==r)}sn(e,t,n);break;case 1:if(!Me&&(Wr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){fe(n,t,s)}sn(e,t,n);break;case 21:sn(e,t,n);break;case 22:n.mode&1?(Me=(r=Me)||n.memoizedState!==null,sn(e,t,n),Me=r):sn(e,t,n);break;default:sn(e,t,n)}}function Zp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ub),t.forEach(function(r){var a=wb.bind(null,e,r);n.has(r)||(n.add(r),r.then(a,a))})}}function _t(e,t){var n=t.deletions;if(n!==null)for(var r=0;ra&&(a=o),r&=~i}if(r=a,r=pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*db(r/1960))-r,10e?16:e,yn===null)var r=!1;else{if(e=yn,yn=null,Ms=0,J&6)throw Error(R(331));var a=J;for(J|=4,j=e.current;j!==null;){var i=j,o=i.child;if(j.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lpe()-Fd?sr(e,0):jd|=n),Xe(e,t)}function G0(e,t){t===0&&(e.mode&1?(t=po,po<<=1,!(po&130023424)&&(po=4194304)):t=1);var n=He();e=Bt(e,t),e!==null&&($i(e,t,n),Xe(e,n))}function yb(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),G0(e,n)}function wb(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),G0(e,n)}var V0;V0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ke.current)qe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return qe=!1,ob(e,t,n);qe=!!(e.flags&131072)}else qe=!1,se&&t.flags&1048576&&Yy(t,xs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;es(e,t),e=t.pendingProps;var a=aa(t,Ie.current);ea(t,n),a=kd(null,t,r,e,a,n);var i=Ad();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ye(r)?(i=!0,Cs(t)):i=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,Od(t),a.updater=cl,t.stateNode=a,a._reactInternals=t,Gc(t,r,e,n),t=Kc(null,t,r,!0,i,n)):(t.tag=0,se&&i&&wd(t),Ue(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(es(e,t),e=t.pendingProps,a=r._init,r=a(r._payload),t.type=r,a=t.tag=Sb(r),e=St(r,e),a){case 0:t=qc(null,t,r,e,n);break e;case 1:t=Yp(null,t,r,e,n);break e;case 11:t=qp(null,t,r,e,n);break e;case 14:t=Kp(null,t,r,St(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:St(r,a),qc(e,t,r,a,n);case 1:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:St(r,a),Yp(e,t,r,a,n);case 3:e:{if(P0(t),e===null)throw Error(R(387));r=t.pendingProps,i=t.memoizedState,a=i.element,By(e,t),Ds(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){a=la(Error(R(423)),t),t=Xp(e,t,r,n,a);break e}else if(r!==a){a=la(Error(R(424)),t),t=Xp(e,t,r,n,a);break e}else for(et=Cn(t.stateNode.containerInfo.firstChild),tt=t,se=!0,Tt=null,n=n0(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ia(),r===a){t=Zt(e,t,n);break e}Ue(e,t,r,n)}t=t.child}return t;case 5:return r0(t),e===null&&zc(t),r=t.type,a=t.pendingProps,i=e!==null?e.memoizedProps:null,o=a.children,Mc(r,a)?o=null:i!==null&&Mc(r,i)&&(t.flags|=32),x0(e,t),Ue(e,t,o,n),t.child;case 6:return e===null&&zc(t),null;case 13:return N0(e,t,n);case 4:return xd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=oa(t,null,r,n):Ue(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:St(r,a),qp(e,t,r,a,n);case 7:return Ue(e,t,t.pendingProps,n),t.child;case 8:return Ue(e,t,t.pendingProps.children,n),t.child;case 12:return Ue(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,i=t.memoizedProps,o=a.value,ee(Ps,r._currentValue),r._currentValue=o,i!==null)if(Nt(i.value,o)){if(i.children===a.children&&!Ke.current){t=Zt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Yt(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var h=u.pending;h===null?l.next=l:(l.next=h.next,h.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Hc(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(R(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Hc(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ue(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,ea(t,n),a=vt(a),r=r(a),t.flags|=1,Ue(e,t,r,n),t.child;case 14:return r=t.type,a=St(r,t.pendingProps),a=St(r.type,a),Kp(e,t,r,a,n);case 15:return C0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:St(r,a),es(e,t),t.tag=1,Ye(r)?(e=!0,Cs(t)):e=!1,ea(t,n),e0(t,r,a),Gc(t,r,a,n),Kc(null,t,r,!0,e,n);case 19:return D0(e,t,n);case 22:return O0(e,t,n)}throw Error(R(156,t.tag))};function q0(e,t){return yy(e,t)}function _b(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pt(e,t,n,r){return new _b(e,t,n,r)}function Hd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Sb(e){if(typeof e=="function")return Hd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===sd)return 11;if(e===ld)return 14}return 2}function Nn(e,t){var n=e.alternate;return n===null?(n=pt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function rs(e,t,n,r,a,i){var o=2;if(r=e,typeof e=="function")Hd(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case $r:return lr(n.children,a,i,t);case od:o=8,a|=8;break;case pc:return e=pt(12,n,t,a|2),e.elementType=pc,e.lanes=i,e;case gc:return e=pt(13,n,t,a),e.elementType=gc,e.lanes=i,e;case mc:return e=pt(19,n,t,a),e.elementType=mc,e.lanes=i,e;case ty:return pl(n,a,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Zv:o=10;break e;case ey:o=9;break e;case sd:o=11;break e;case ld:o=14;break e;case dn:o=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=pt(o,n,t,a),t.elementType=e,t.type=r,t.lanes=i,t}function lr(e,t,n,r){return e=pt(7,e,r,t),e.lanes=n,e}function pl(e,t,n,r){return e=pt(22,e,r,t),e.elementType=ty,e.lanes=n,e.stateNode={isHidden:!1},e}function Ru(e,t,n){return e=pt(6,e,null,t),e.lanes=n,e}function $u(e,t,n){return t=pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function bb(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=pu(0),this.expirationTimes=pu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pu(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Wd(e,t,n,r,a,i,o,s,l){return e=new bb(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=pt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Od(i),e}function Eb(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(J0)}catch(e){console.error(e)}}J0(),Yv.exports=rt;var Q0=Yv.exports,sg=Q0;dc.createRoot=sg.createRoot,dc.hydrateRoot=sg.hydrateRoot;function Pb(){{const e=window.location.port,n=new URLSearchParams(window.location.search).get("id");return{server_port:e,fv_id:n}}}const it=P.createContext({});function Nb({children:e}){const t=Db(),{server_port:n,fv_id:r}=Pb()??{server_port:"49999",fv_id:"sample_visualization"},[a,i]=P.useState({}),[o,s]=P.useState({fvWrapper:{panelName:"fvWrapper",show:!0,size:{maxSize:100,defaultSize:70}},fv:{panelName:"Flowsheet",show:!0,size:{minSize:100,defaultSize:70}},diagnostics:{panelName:"Diagnostics",show:t.diagnosticsPanelShow==null?!1:t.diagnosticsPanelShow,size:{minSize:100,defaultSize:70}},diagnosticsLogs:{panelName:"Stream Table",show:!1,size:{maxSize:100,defaultSize:30}},streamTable:{panelName:"Stream Table",show:!0,size:{maxSize:100,defaultSize:30}}}),[l,u]=P.useState({isShowSteamName:!0,isShowLabels:!1}),[h,d]=P.useState({}),[p,w]=P.useState([]),[m,_]=P.useState(""),[b,v]=P.useState(!0),[y,S]=P.useState(0),[x,D]=P.useState({expand:!1,expandState:{}}),[k,E]=P.useState({streamTable:!0,diagnosticsLogs:!1});return T.jsx(it.Provider,{value:{server_port:n,fv_id:r,panelState:o,setPanelState:s,showVariable:a,setShowVariable:i,fvHeaderState:l,setFvHeaderState:u,diagnosticsRunFnNameListState:p,setDiagnosticsRunFnNameListState:w,diagnosticsRefreshState:b,setDiagnosticsRefreshState:v,diagnosticsNextStepsOutputState:h,setDiagnosticsNextStepsOutputState:d,diagnosticsRunnerDisplayState:m,setDiagnosticsRunnerDisplayState:_,diagnosticsHistoryState:y,setDiagnosticsHistory:S,viewInLogPanel:k,setViewInLogPanel:E,variablesExpandState:x,setVariablesExpandState:D},children:e})}function Db(){const e=localStorage.getItem("appSetting");return JSON.parse(e)}function lg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function M(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1;a--){var i=n[a],o=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(r=i)}return oe.head.insertBefore(t,r),e}}var tE="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function ki(){for(var e=12,t="";e-- >0;)t+=tE[Math.random()*62|0];return t}function va(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Bd(e){return e.classList?va(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function u1(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function nE(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(u1(e[n]),'" ')},"").trim()}function wl(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function Zd(e){return e.size!==$t.size||e.x!==$t.x||e.y!==$t.y||e.rotate!==$t.rotate||e.flipX||e.flipY}function rE(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,a={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(t.x*32,", ").concat(t.y*32,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(i," ").concat(o," ").concat(s)},u={transform:"translate(".concat(r/2*-1," -256)")};return{outer:a,inner:l,path:u}}function aE(e){var t=e.transform,n=e.width,r=n===void 0?sf:n,a=e.height,i=a===void 0?sf:a,o=e.startCentered,s=o===void 0?!1:o,l="";return s&&n1?l+="translate(".concat(t.x/ln-r/2,"em, ").concat(t.y/ln-i/2,"em) "):s?l+="translate(calc(-50% + ".concat(t.x/ln,"em), calc(-50% + ").concat(t.y/ln,"em)) "):l+="translate(".concat(t.x/ln,"em, ").concat(t.y/ln,"em) "),l+="scale(".concat(t.size/ln*(t.flipX?-1:1),", ").concat(t.size/ln*(t.flipY?-1:1),") "),l+="rotate(".concat(t.rotate,"deg) "),l}var iE=`:root, :host { + --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid"; + --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular"; + --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light"; + --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin"; + --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone"; + --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp"; + --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp"; + --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp"; + --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands"; +} + +svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { + overflow: visible; + box-sizing: content-box; +} + +.svg-inline--fa { + display: var(--fa-display, inline-block); + height: 1em; + overflow: visible; + vertical-align: -0.125em; +} +.svg-inline--fa.fa-2xs { + vertical-align: 0.1em; +} +.svg-inline--fa.fa-xs { + vertical-align: 0em; +} +.svg-inline--fa.fa-sm { + vertical-align: -0.0714285705em; +} +.svg-inline--fa.fa-lg { + vertical-align: -0.2em; +} +.svg-inline--fa.fa-xl { + vertical-align: -0.25em; +} +.svg-inline--fa.fa-2xl { + vertical-align: -0.3125em; +} +.svg-inline--fa.fa-pull-left { + margin-right: var(--fa-pull-margin, 0.3em); + width: auto; +} +.svg-inline--fa.fa-pull-right { + margin-left: var(--fa-pull-margin, 0.3em); + width: auto; +} +.svg-inline--fa.fa-li { + width: var(--fa-li-width, 2em); + top: 0.25em; +} +.svg-inline--fa.fa-fw { + width: var(--fa-fw-width, 1.25em); +} + +.fa-layers svg.svg-inline--fa { + bottom: 0; + left: 0; + margin: auto; + position: absolute; + right: 0; + top: 0; +} + +.fa-layers-counter, .fa-layers-text { + display: inline-block; + position: absolute; + text-align: center; +} + +.fa-layers { + display: inline-block; + height: 1em; + position: relative; + text-align: center; + vertical-align: -0.125em; + width: 1em; +} +.fa-layers svg.svg-inline--fa { + -webkit-transform-origin: center center; + transform-origin: center center; +} + +.fa-layers-text { + left: 50%; + top: 50%; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); + -webkit-transform-origin: center center; + transform-origin: center center; +} + +.fa-layers-counter { + background-color: var(--fa-counter-background-color, #ff253a); + border-radius: var(--fa-counter-border-radius, 1em); + box-sizing: border-box; + color: var(--fa-inverse, #fff); + line-height: var(--fa-counter-line-height, 1); + max-width: var(--fa-counter-max-width, 5em); + min-width: var(--fa-counter-min-width, 1.5em); + overflow: hidden; + padding: var(--fa-counter-padding, 0.25em 0.5em); + right: var(--fa-right, 0); + text-overflow: ellipsis; + top: var(--fa-top, 0); + -webkit-transform: scale(var(--fa-counter-scale, 0.25)); + transform: scale(var(--fa-counter-scale, 0.25)); + -webkit-transform-origin: top right; + transform-origin: top right; +} + +.fa-layers-bottom-right { + bottom: var(--fa-bottom, 0); + right: var(--fa-right, 0); + top: auto; + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: bottom right; + transform-origin: bottom right; +} + +.fa-layers-bottom-left { + bottom: var(--fa-bottom, 0); + left: var(--fa-left, 0); + right: auto; + top: auto; + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: bottom left; + transform-origin: bottom left; +} + +.fa-layers-top-right { + top: var(--fa-top, 0); + right: var(--fa-right, 0); + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: top right; + transform-origin: top right; +} + +.fa-layers-top-left { + left: var(--fa-left, 0); + right: auto; + top: var(--fa-top, 0); + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: top left; + transform-origin: top left; +} + +.fa-1x { + font-size: 1em; +} + +.fa-2x { + font-size: 2em; +} + +.fa-3x { + font-size: 3em; +} + +.fa-4x { + font-size: 4em; +} + +.fa-5x { + font-size: 5em; +} + +.fa-6x { + font-size: 6em; +} + +.fa-7x { + font-size: 7em; +} + +.fa-8x { + font-size: 8em; +} + +.fa-9x { + font-size: 9em; +} + +.fa-10x { + font-size: 10em; +} + +.fa-2xs { + font-size: 0.625em; + line-height: 0.1em; + vertical-align: 0.225em; +} + +.fa-xs { + font-size: 0.75em; + line-height: 0.0833333337em; + vertical-align: 0.125em; +} + +.fa-sm { + font-size: 0.875em; + line-height: 0.0714285718em; + vertical-align: 0.0535714295em; +} + +.fa-lg { + font-size: 1.25em; + line-height: 0.05em; + vertical-align: -0.075em; +} + +.fa-xl { + font-size: 1.5em; + line-height: 0.0416666682em; + vertical-align: -0.125em; +} + +.fa-2xl { + font-size: 2em; + line-height: 0.03125em; + vertical-align: -0.1875em; +} + +.fa-fw { + text-align: center; + width: 1.25em; +} + +.fa-ul { + list-style-type: none; + margin-left: var(--fa-li-margin, 2.5em); + padding-left: 0; +} +.fa-ul > li { + position: relative; +} + +.fa-li { + left: calc(var(--fa-li-width, 2em) * -1); + position: absolute; + text-align: center; + width: var(--fa-li-width, 2em); + line-height: inherit; +} + +.fa-border { + border-color: var(--fa-border-color, #eee); + border-radius: var(--fa-border-radius, 0.1em); + border-style: var(--fa-border-style, solid); + border-width: var(--fa-border-width, 0.08em); + padding: var(--fa-border-padding, 0.2em 0.25em 0.15em); +} + +.fa-pull-left { + float: left; + margin-right: var(--fa-pull-margin, 0.3em); +} + +.fa-pull-right { + float: right; + margin-left: var(--fa-pull-margin, 0.3em); +} + +.fa-beat { + -webkit-animation-name: fa-beat; + animation-name: fa-beat; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-bounce { + -webkit-animation-name: fa-bounce; + animation-name: fa-bounce; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); +} + +.fa-fade { + -webkit-animation-name: fa-fade; + animation-name: fa-fade; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); +} + +.fa-beat-fade { + -webkit-animation-name: fa-beat-fade; + animation-name: fa-beat-fade; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); +} + +.fa-flip { + -webkit-animation-name: fa-flip; + animation-name: fa-flip; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-shake { + -webkit-animation-name: fa-shake; + animation-name: fa-shake; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, linear); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-spin { + -webkit-animation-name: fa-spin; + animation-name: fa-spin; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 2s); + animation-duration: var(--fa-animation-duration, 2s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, linear); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-spin-reverse { + --fa-animation-direction: reverse; +} + +.fa-pulse, +.fa-spin-pulse { + -webkit-animation-name: fa-spin; + animation-name: fa-spin; + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, steps(8)); + animation-timing-function: var(--fa-animation-timing, steps(8)); +} + +@media (prefers-reduced-motion: reduce) { + .fa-beat, +.fa-bounce, +.fa-fade, +.fa-beat-fade, +.fa-flip, +.fa-pulse, +.fa-shake, +.fa-spin, +.fa-spin-pulse { + -webkit-animation-delay: -1ms; + animation-delay: -1ms; + -webkit-animation-duration: 1ms; + animation-duration: 1ms; + -webkit-animation-iteration-count: 1; + animation-iteration-count: 1; + -webkit-transition-delay: 0s; + transition-delay: 0s; + -webkit-transition-duration: 0s; + transition-duration: 0s; + } +} +@-webkit-keyframes fa-beat { + 0%, 90% { + -webkit-transform: scale(1); + transform: scale(1); + } + 45% { + -webkit-transform: scale(var(--fa-beat-scale, 1.25)); + transform: scale(var(--fa-beat-scale, 1.25)); + } +} +@keyframes fa-beat { + 0%, 90% { + -webkit-transform: scale(1); + transform: scale(1); + } + 45% { + -webkit-transform: scale(var(--fa-beat-scale, 1.25)); + transform: scale(var(--fa-beat-scale, 1.25)); + } +} +@-webkit-keyframes fa-bounce { + 0% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 10% { + -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + } + 30% { + -webkit-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)); + 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)); + } + 50% { + -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + } + 57% { + -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + } + 64% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 100% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } +} +@keyframes fa-bounce { + 0% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 10% { + -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + } + 30% { + -webkit-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)); + 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)); + } + 50% { + -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + } + 57% { + -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + } + 64% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 100% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } +} +@-webkit-keyframes fa-fade { + 50% { + opacity: var(--fa-fade-opacity, 0.4); + } +} +@keyframes fa-fade { + 50% { + opacity: var(--fa-fade-opacity, 0.4); + } +} +@-webkit-keyframes fa-beat-fade { + 0%, 100% { + opacity: var(--fa-beat-fade-opacity, 0.4); + -webkit-transform: scale(1); + transform: scale(1); + } + 50% { + opacity: 1; + -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); + transform: scale(var(--fa-beat-fade-scale, 1.125)); + } +} +@keyframes fa-beat-fade { + 0%, 100% { + opacity: var(--fa-beat-fade-opacity, 0.4); + -webkit-transform: scale(1); + transform: scale(1); + } + 50% { + opacity: 1; + -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); + transform: scale(var(--fa-beat-fade-scale, 1.125)); + } +} +@-webkit-keyframes fa-flip { + 50% { + -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + } +} +@keyframes fa-flip { + 50% { + -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + } +} +@-webkit-keyframes fa-shake { + 0% { + -webkit-transform: rotate(-15deg); + transform: rotate(-15deg); + } + 4% { + -webkit-transform: rotate(15deg); + transform: rotate(15deg); + } + 8%, 24% { + -webkit-transform: rotate(-18deg); + transform: rotate(-18deg); + } + 12%, 28% { + -webkit-transform: rotate(18deg); + transform: rotate(18deg); + } + 16% { + -webkit-transform: rotate(-22deg); + transform: rotate(-22deg); + } + 20% { + -webkit-transform: rotate(22deg); + transform: rotate(22deg); + } + 32% { + -webkit-transform: rotate(-12deg); + transform: rotate(-12deg); + } + 36% { + -webkit-transform: rotate(12deg); + transform: rotate(12deg); + } + 40%, 100% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } +} +@keyframes fa-shake { + 0% { + -webkit-transform: rotate(-15deg); + transform: rotate(-15deg); + } + 4% { + -webkit-transform: rotate(15deg); + transform: rotate(15deg); + } + 8%, 24% { + -webkit-transform: rotate(-18deg); + transform: rotate(-18deg); + } + 12%, 28% { + -webkit-transform: rotate(18deg); + transform: rotate(18deg); + } + 16% { + -webkit-transform: rotate(-22deg); + transform: rotate(-22deg); + } + 20% { + -webkit-transform: rotate(22deg); + transform: rotate(22deg); + } + 32% { + -webkit-transform: rotate(-12deg); + transform: rotate(-12deg); + } + 36% { + -webkit-transform: rotate(12deg); + transform: rotate(12deg); + } + 40%, 100% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } +} +@-webkit-keyframes fa-spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +@keyframes fa-spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +.fa-rotate-90 { + -webkit-transform: rotate(90deg); + transform: rotate(90deg); +} + +.fa-rotate-180 { + -webkit-transform: rotate(180deg); + transform: rotate(180deg); +} + +.fa-rotate-270 { + -webkit-transform: rotate(270deg); + transform: rotate(270deg); +} + +.fa-flip-horizontal { + -webkit-transform: scale(-1, 1); + transform: scale(-1, 1); +} + +.fa-flip-vertical { + -webkit-transform: scale(1, -1); + transform: scale(1, -1); +} + +.fa-flip-both, +.fa-flip-horizontal.fa-flip-vertical { + -webkit-transform: scale(-1, -1); + transform: scale(-1, -1); +} + +.fa-rotate-by { + -webkit-transform: rotate(var(--fa-rotate-angle, none)); + transform: rotate(var(--fa-rotate-angle, none)); +} + +.fa-stack { + display: inline-block; + vertical-align: middle; + height: 2em; + position: relative; + width: 2.5em; +} + +.fa-stack-1x, +.fa-stack-2x { + bottom: 0; + left: 0; + margin: auto; + position: absolute; + right: 0; + top: 0; + z-index: var(--fa-stack-z-index, auto); +} + +.svg-inline--fa.fa-stack-1x { + height: 1em; + width: 1.25em; +} +.svg-inline--fa.fa-stack-2x { + height: 2em; + width: 2.5em; +} + +.fa-inverse { + color: var(--fa-inverse, #fff); +} + +.sr-only, +.fa-sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border-width: 0; +} + +.sr-only-focusable:not(:focus), +.fa-sr-only-focusable:not(:focus) { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border-width: 0; +} + +.svg-inline--fa .fa-primary { + fill: var(--fa-primary-color, currentColor); + opacity: var(--fa-primary-opacity, 1); +} + +.svg-inline--fa .fa-secondary { + fill: var(--fa-secondary-color, currentColor); + opacity: var(--fa-secondary-opacity, 0.4); +} + +.svg-inline--fa.fa-swap-opacity .fa-primary { + opacity: var(--fa-secondary-opacity, 0.4); +} + +.svg-inline--fa.fa-swap-opacity .fa-secondary { + opacity: var(--fa-primary-opacity, 1); +} + +.svg-inline--fa mask .fa-primary, +.svg-inline--fa mask .fa-secondary { + fill: black; +} + +.fad.fa-inverse, +.fa-duotone.fa-inverse { + color: var(--fa-inverse, #fff); +}`;function c1(){var e=r1,t=a1,n=I.cssPrefix,r=I.replacementClass,a=iE;if(n!==e||r!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");a=a.replace(i,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(s,".".concat(r))}return a}var gg=!1;function Lu(){I.autoAddCss&&!gg&&(eE(c1()),gg=!0)}var oE={mixout:function(){return{dom:{css:c1,insertCss:Lu}}},hooks:function(){return{beforeDOMElementCreation:function(){Lu()},beforeI2svg:function(){Lu()}}}},tn=Rn||{};tn[en]||(tn[en]={});tn[en].styles||(tn[en].styles={});tn[en].hooks||(tn[en].hooks={});tn[en].shims||(tn[en].shims=[]);var Ct=tn[en],f1=[],sE=function e(){oe.removeEventListener("DOMContentLoaded",e),Us=1,f1.map(function(t){return t()})},Us=!1;an&&(Us=(oe.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(oe.readyState),Us||oe.addEventListener("DOMContentLoaded",sE));function lE(e){an&&(Us?setTimeout(e,0):f1.push(e))}function Ui(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,a=e.children,i=a===void 0?[]:a;return typeof e=="string"?u1(e):"<".concat(t," ").concat(nE(r),">").concat(i.map(Ui).join(""),"")}function mg(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var uE=function(t,n){return function(r,a,i,o){return t.call(n,r,a,i,o)}},Mu=function(t,n,r,a){var i=Object.keys(t),o=i.length,s=a!==void 0?uE(n,a):n,l,u,h;for(r===void 0?(l=1,h=t[i[0]]):(l=0,h=r);l=55296&&a<=56319&&n=55296&&r<=56319&&n>t+1&&(a=e.charCodeAt(t+1),a>=56320&&a<=57343)?(r-55296)*1024+a-56320+65536:r}function vg(e){return Object.keys(e).reduce(function(t,n){var r=e[n],a=!!r.icon;return a?t[r.iconName]=r.icon:t[n]=r,t},{})}function cf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,a=r===void 0?!1:r,i=vg(t);typeof Ct.hooks.addPack=="function"&&!a?Ct.hooks.addPack(e,vg(t)):Ct.styles[e]=M(M({},Ct.styles[e]||{}),i),e==="fas"&&cf("fa",t)}var Ao,Ro,$o,Vr=Ct.styles,dE=Ct.shims,hE=(Ao={},_e(Ao,ae,Object.values(Ni[ae])),_e(Ao,de,Object.values(Ni[de])),Ao),eh=null,d1={},h1={},p1={},g1={},m1={},pE=(Ro={},_e(Ro,ae,Object.keys(xi[ae])),_e(Ro,de,Object.keys(xi[de])),Ro);function gE(e){return~Xb.indexOf(e)}function mE(e,t){var n=t.split("-"),r=n[0],a=n.slice(1).join("-");return r===e&&a!==""&&!gE(a)?a:null}var v1=function(){var t=function(i){return Mu(Vr,function(o,s,l){return o[l]=Mu(s,i,{}),o},{})};d1=t(function(a,i,o){if(i[3]&&(a[i[3]]=o),i[2]){var s=i[2].filter(function(l){return typeof l=="number"});s.forEach(function(l){a[l.toString(16)]=o})}return a}),h1=t(function(a,i,o){if(a[o]=o,i[2]){var s=i[2].filter(function(l){return typeof l=="string"});s.forEach(function(l){a[l]=o})}return a}),m1=t(function(a,i,o){var s=i[2];return a[o]=o,s.forEach(function(l){a[l]=o}),a});var n="far"in Vr||I.autoFetchSvg,r=Mu(dE,function(a,i){var o=i[0],s=i[1],l=i[2];return s==="far"&&!n&&(s="fas"),typeof o=="string"&&(a.names[o]={prefix:s,iconName:l}),typeof o=="number"&&(a.unicodes[o.toString(16)]={prefix:s,iconName:l}),a},{names:{},unicodes:{}});p1=r.names,g1=r.unicodes,eh=_l(I.styleDefault,{family:I.familyDefault})};Zb(function(e){eh=_l(e.styleDefault,{family:I.familyDefault})});v1();function th(e,t){return(d1[e]||{})[t]}function vE(e,t){return(h1[e]||{})[t]}function ar(e,t){return(m1[e]||{})[t]}function y1(e){return p1[e]||{prefix:null,iconName:null}}function yE(e){var t=g1[e],n=th("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function $n(){return eh}var nh=function(){return{prefix:null,iconName:null,rest:[]}};function _l(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?ae:n,a=xi[r][e],i=Pi[r][e]||Pi[r][a],o=e in Ct.styles?e:null;return i||o||null}var yg=($o={},_e($o,ae,Object.keys(Ni[ae])),_e($o,de,Object.keys(Ni[de])),$o);function Sl(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,a=r===void 0?!1:r,i=(t={},_e(t,ae,"".concat(I.cssPrefix,"-").concat(ae)),_e(t,de,"".concat(I.cssPrefix,"-").concat(de)),t),o=null,s=ae;(e.includes(i[ae])||e.some(function(u){return yg[ae].includes(u)}))&&(s=ae),(e.includes(i[de])||e.some(function(u){return yg[de].includes(u)}))&&(s=de);var l=e.reduce(function(u,h){var d=mE(I.cssPrefix,h);if(Vr[h]?(h=hE[s].includes(h)?Wb[s][h]:h,o=h,u.prefix=h):pE[s].indexOf(h)>-1?(o=h,u.prefix=_l(h,{family:s})):d?u.iconName=d:h!==I.replacementClass&&h!==i[ae]&&h!==i[de]&&u.rest.push(h),!a&&u.prefix&&u.iconName){var p=o==="fa"?y1(u.iconName):{},w=ar(u.prefix,u.iconName);p.prefix&&(o=null),u.iconName=p.iconName||w||u.iconName,u.prefix=p.prefix||u.prefix,u.prefix==="far"&&!Vr.far&&Vr.fas&&!I.autoFetchSvg&&(u.prefix="fas")}return u},nh());return(e.includes("fa-brands")||e.includes("fab"))&&(l.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(l.prefix="fad"),!l.prefix&&s===de&&(Vr.fass||I.autoFetchSvg)&&(l.prefix="fass",l.iconName=ar(l.prefix,l.iconName)||l.iconName),(l.prefix==="fa"||o==="fa")&&(l.prefix=$n()||"fas"),l}var wE=function(){function e(){kb(this,e),this.definitions={}}return Ab(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,a=new Array(r),i=0;i0&&h.forEach(function(d){typeof d=="string"&&(n[s][d]=u)}),n[s][l]=u}),n}}]),e}(),wg=[],qr={},na={},_E=Object.keys(na);function SE(e,t){var n=t.mixoutsTo;return wg=e,qr={},Object.keys(na).forEach(function(r){_E.indexOf(r)===-1&&delete na[r]}),wg.forEach(function(r){var a=r.mixout?r.mixout():{};if(Object.keys(a).forEach(function(o){typeof a[o]=="function"&&(n[o]=a[o]),Is(a[o])==="object"&&Object.keys(a[o]).forEach(function(s){n[o]||(n[o]={}),n[o][s]=a[o][s]})}),r.hooks){var i=r.hooks();Object.keys(i).forEach(function(o){qr[o]||(qr[o]=[]),qr[o].push(i[o])})}r.provides&&r.provides(na)}),n}function ff(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a1?t-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:{};return an?(gr("beforeI2svg",t),nn("pseudoElements2svg",t),nn("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;I.autoReplaceSvg===!1&&(I.autoReplaceSvg=!0),I.observeMutations=!0,lE(function(){CE({autoReplaceSvgRoot:n}),gr("watch",t)})}},TE={icon:function(t){if(t===null)return null;if(Is(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:ar(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=_l(t[0]);return{prefix:r,iconName:ar(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(I.cssPrefix,"-"))>-1||t.match(Gb))){var a=Sl(t.split(" "),{skipLookups:!0});return{prefix:a.prefix||$n(),iconName:ar(a.prefix,a.iconName)||a.iconName}}if(typeof t=="string"){var i=$n();return{prefix:i,iconName:ar(i,t)||t}}}},ot={noAuto:bE,config:I,dom:EE,parse:TE,library:w1,findIconDefinition:df,toHtml:Ui},CE=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?oe:n;(Object.keys(Ct.styles).length>0||I.autoFetchSvg)&&an&&I.autoReplaceSvg&&ot.dom.i2svg({node:r})};function bl(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return Ui(r)})}}),Object.defineProperty(e,"node",{get:function(){if(an){var r=oe.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function OE(e){var t=e.children,n=e.main,r=e.mask,a=e.attributes,i=e.styles,o=e.transform;if(Zd(o)&&n.found&&!r.found){var s=n.width,l=n.height,u={x:s/l/2,y:.5};a.style=wl(M(M({},i),{},{"transform-origin":"".concat(u.x+o.x/16,"em ").concat(u.y+o.y/16,"em")}))}return[{tag:"svg",attributes:a,children:t}]}function xE(e){var t=e.prefix,n=e.iconName,r=e.children,a=e.attributes,i=e.symbol,o=i===!0?"".concat(t,"-").concat(I.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:M(M({},a),{},{id:o}),children:r}]}]}function rh(e){var t=e.icons,n=t.main,r=t.mask,a=e.prefix,i=e.iconName,o=e.transform,s=e.symbol,l=e.title,u=e.maskId,h=e.titleId,d=e.extra,p=e.watchable,w=p===void 0?!1:p,m=r.found?r:n,_=m.width,b=m.height,v=a==="fak",y=[I.replacementClass,i?"".concat(I.cssPrefix,"-").concat(i):""].filter(function(O){return d.classes.indexOf(O)===-1}).filter(function(O){return O!==""||!!O}).concat(d.classes).join(" "),S={children:[],attributes:M(M({},d.attributes),{},{"data-prefix":a,"data-icon":i,class:y,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(_," ").concat(b)})},x=v&&!~d.classes.indexOf("fa-fw")?{width:"".concat(_/b*16*.0625,"em")}:{};w&&(S.attributes[pr]=""),l&&(S.children.push({tag:"title",attributes:{id:S.attributes["aria-labelledby"]||"title-".concat(h||ki())},children:[l]}),delete S.attributes.title);var D=M(M({},S),{},{prefix:a,iconName:i,main:n,mask:r,maskId:u,transform:o,symbol:s,styles:M(M({},x),d.styles)}),k=r.found&&n.found?nn("generateAbstractMask",D)||{children:[],attributes:{}}:nn("generateAbstractIcon",D)||{children:[],attributes:{}},E=k.children,C=k.attributes;return D.children=E,D.attributes=C,s?xE(D):OE(D)}function _g(e){var t=e.content,n=e.width,r=e.height,a=e.transform,i=e.title,o=e.extra,s=e.watchable,l=s===void 0?!1:s,u=M(M(M({},o.attributes),i?{title:i}:{}),{},{class:o.classes.join(" ")});l&&(u[pr]="");var h=M({},o.styles);Zd(a)&&(h.transform=aE({transform:a,startCentered:!0,width:n,height:r}),h["-webkit-transform"]=h.transform);var d=wl(h);d.length>0&&(u.style=d);var p=[];return p.push({tag:"span",attributes:u,children:[t]}),i&&p.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),p}function PE(e){var t=e.content,n=e.title,r=e.extra,a=M(M(M({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),i=wl(r.styles);i.length>0&&(a.style=i);var o=[];return o.push({tag:"span",attributes:a,children:[t]}),n&&o.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),o}var ju=Ct.styles;function hf(e){var t=e[0],n=e[1],r=e.slice(4),a=Kd(r,1),i=a[0],o=null;return Array.isArray(i)?o={tag:"g",attributes:{class:"".concat(I.cssPrefix,"-").concat(rr.GROUP)},children:[{tag:"path",attributes:{class:"".concat(I.cssPrefix,"-").concat(rr.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(I.cssPrefix,"-").concat(rr.PRIMARY),fill:"currentColor",d:i[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:i}},{found:!0,width:t,height:n,icon:o}}var NE={found:!1,width:512,height:512};function DE(e,t){!i1&&!I.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function pf(e,t){var n=t;return t==="fa"&&I.styleDefault!==null&&(t=$n()),new Promise(function(r,a){if(nn("missingIconAbstract"),n==="fa"){var i=y1(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&ju[t]&&ju[t][e]){var o=ju[t][e];return r(hf(o))}DE(e,t),r(M(M({},NE),{},{icon:I.showMissingIcons&&e?nn("missingIconAbstract")||{}:{}}))})}var Sg=function(){},gf=I.measurePerformance&&Oo&&Oo.mark&&Oo.measure?Oo:{mark:Sg,measure:Sg},Ka='FA "6.4.0"',kE=function(t){return gf.mark("".concat(Ka," ").concat(t," begins")),function(){return _1(t)}},_1=function(t){gf.mark("".concat(Ka," ").concat(t," ends")),gf.measure("".concat(Ka," ").concat(t),"".concat(Ka," ").concat(t," begins"),"".concat(Ka," ").concat(t," ends"))},ah={begin:kE,end:_1},as=function(){};function bg(e){var t=e.getAttribute?e.getAttribute(pr):null;return typeof t=="string"}function AE(e){var t=e.getAttribute?e.getAttribute(Xd):null,n=e.getAttribute?e.getAttribute(Jd):null;return t&&n}function RE(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(I.replacementClass)}function $E(){if(I.autoReplaceSvg===!0)return is.replace;var e=is[I.autoReplaceSvg];return e||is.replace}function LE(e){return oe.createElementNS("http://www.w3.org/2000/svg",e)}function ME(e){return oe.createElement(e)}function S1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?LE:ME:n;if(typeof e=="string")return oe.createTextNode(e);var a=r(e.tag);Object.keys(e.attributes||[]).forEach(function(o){a.setAttribute(o,e.attributes[o])});var i=e.children||[];return i.forEach(function(o){a.appendChild(S1(o,{ceFn:r}))}),a}function jE(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var is={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(a){n.parentNode.insertBefore(S1(a),n)}),n.getAttribute(pr)===null&&I.keepOriginalSource){var r=oe.createComment(jE(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~Bd(n).indexOf(I.replacementClass))return is.replace(t);var a=new RegExp("".concat(I.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var i=r[0].attributes.class.split(" ").reduce(function(s,l){return l===I.replacementClass||l.match(a)?s.toSvg.push(l):s.toNode.push(l),s},{toNode:[],toSvg:[]});r[0].attributes.class=i.toSvg.join(" "),i.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",i.toNode.join(" "))}var o=r.map(function(s){return Ui(s)}).join(` +`);n.setAttribute(pr,""),n.innerHTML=o}};function Eg(e){e()}function b1(e,t){var n=typeof t=="function"?t:as;if(e.length===0)n();else{var r=Eg;I.mutateApproach===zb&&(r=Rn.requestAnimationFrame||Eg),r(function(){var a=$E(),i=ah.begin("mutate");e.map(a),i(),n()})}}var ih=!1;function E1(){ih=!0}function mf(){ih=!1}var zs=null;function Tg(e){if(hg&&I.observeMutations){var t=e.treeCallback,n=t===void 0?as:t,r=e.nodeCallback,a=r===void 0?as:r,i=e.pseudoElementsCallback,o=i===void 0?as:i,s=e.observeMutationsRoot,l=s===void 0?oe:s;zs=new hg(function(u){if(!ih){var h=$n();va(u).forEach(function(d){if(d.type==="childList"&&d.addedNodes.length>0&&!bg(d.addedNodes[0])&&(I.searchPseudoElements&&o(d.target),n(d.target)),d.type==="attributes"&&d.target.parentNode&&I.searchPseudoElements&&o(d.target.parentNode),d.type==="attributes"&&bg(d.target)&&~Yb.indexOf(d.attributeName))if(d.attributeName==="class"&&AE(d.target)){var p=Sl(Bd(d.target)),w=p.prefix,m=p.iconName;d.target.setAttribute(Xd,w||h),m&&d.target.setAttribute(Jd,m)}else RE(d.target)&&a(d.target)})}}),an&&zs.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function FE(){zs&&zs.disconnect()}function IE(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,a){var i=a.split(":"),o=i[0],s=i.slice(1);return o&&s.length>0&&(r[o]=s.join(":").trim()),r},{})),n}function UE(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",a=Sl(Bd(e));return a.prefix||(a.prefix=$n()),t&&n&&(a.prefix=t,a.iconName=n),a.iconName&&a.prefix||(a.prefix&&r.length>0&&(a.iconName=vE(a.prefix,e.innerText)||th(a.prefix,uf(e.innerText))),!a.iconName&&I.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(a.iconName=e.firstChild.data)),a}function zE(e){var t=va(e.attributes).reduce(function(a,i){return a.name!=="class"&&a.name!=="style"&&(a[i.name]=i.value),a},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return I.autoA11y&&(n?t["aria-labelledby"]="".concat(I.replacementClass,"-title-").concat(r||ki()):(t["aria-hidden"]="true",t.focusable="false")),t}function HE(){return{iconName:null,title:null,titleId:null,prefix:null,transform:$t,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Cg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=UE(e),r=n.iconName,a=n.prefix,i=n.rest,o=zE(e),s=ff("parseNodeAttributes",{},e),l=t.styleParser?IE(e):[];return M({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:a,transform:$t,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:l,attributes:o}},s)}var WE=Ct.styles;function T1(e){var t=I.autoReplaceSvg==="nest"?Cg(e,{styleParser:!1}):Cg(e);return~t.extra.classes.indexOf(o1)?nn("generateLayersText",e,t):nn("generateSvgReplacementMutation",e,t)}var Ln=new Set;Qd.map(function(e){Ln.add("fa-".concat(e))});Object.keys(xi[ae]).map(Ln.add.bind(Ln));Object.keys(xi[de]).map(Ln.add.bind(Ln));Ln=Fi(Ln);function Og(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!an)return Promise.resolve();var n=oe.documentElement.classList,r=function(d){return n.add("".concat(pg,"-").concat(d))},a=function(d){return n.remove("".concat(pg,"-").concat(d))},i=I.autoFetchSvg?Ln:Qd.map(function(h){return"fa-".concat(h)}).concat(Object.keys(WE));i.includes("fa")||i.push("fa");var o=[".".concat(o1,":not([").concat(pr,"])")].concat(i.map(function(h){return".".concat(h,":not([").concat(pr,"])")})).join(", ");if(o.length===0)return Promise.resolve();var s=[];try{s=va(e.querySelectorAll(o))}catch{}if(s.length>0)r("pending"),a("complete");else return Promise.resolve();var l=ah.begin("onTree"),u=s.reduce(function(h,d){try{var p=T1(d);p&&h.push(p)}catch(w){i1||w.name==="MissingIcon"&&console.error(w)}return h},[]);return new Promise(function(h,d){Promise.all(u).then(function(p){b1(p,function(){r("active"),r("complete"),a("pending"),typeof t=="function"&&t(),l(),h()})}).catch(function(p){l(),d(p)})})}function GE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;T1(e).then(function(n){n&&b1([n],t)})}function VE(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:df(t||{}),a=n.mask;return a&&(a=(a||{}).icon?a:df(a||{})),e(r,M(M({},n),{},{mask:a}))}}var qE=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,a=r===void 0?$t:r,i=n.symbol,o=i===void 0?!1:i,s=n.mask,l=s===void 0?null:s,u=n.maskId,h=u===void 0?null:u,d=n.title,p=d===void 0?null:d,w=n.titleId,m=w===void 0?null:w,_=n.classes,b=_===void 0?[]:_,v=n.attributes,y=v===void 0?{}:v,S=n.styles,x=S===void 0?{}:S;if(t){var D=t.prefix,k=t.iconName,E=t.icon;return bl(M({type:"icon"},t),function(){return gr("beforeDOMElementCreation",{iconDefinition:t,params:n}),I.autoA11y&&(p?y["aria-labelledby"]="".concat(I.replacementClass,"-title-").concat(m||ki()):(y["aria-hidden"]="true",y.focusable="false")),rh({icons:{main:hf(E),mask:l?hf(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:D,iconName:k,transform:M(M({},$t),a),symbol:o,title:p,maskId:h,titleId:m,extra:{attributes:y,styles:x,classes:b}})})}},KE={mixout:function(){return{icon:VE(qE)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=Og,n.nodeCallback=GE,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,a=r===void 0?oe:r,i=n.callback,o=i===void 0?function(){}:i;return Og(a,o)},t.generateSvgReplacementMutation=function(n,r){var a=r.iconName,i=r.title,o=r.titleId,s=r.prefix,l=r.transform,u=r.symbol,h=r.mask,d=r.maskId,p=r.extra;return new Promise(function(w,m){Promise.all([pf(a,s),h.iconName?pf(h.iconName,h.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(_){var b=Kd(_,2),v=b[0],y=b[1];w([n,rh({icons:{main:v,mask:y},prefix:s,iconName:a,transform:l,symbol:u,maskId:d,title:i,titleId:o,extra:p,watchable:!0})])}).catch(m)})},t.generateAbstractIcon=function(n){var r=n.children,a=n.attributes,i=n.main,o=n.transform,s=n.styles,l=wl(s);l.length>0&&(a.style=l);var u;return Zd(o)&&(u=nn("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),r.push(u||i.icon),{children:r,attributes:a}}}},YE={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.classes,i=a===void 0?[]:a;return bl({type:"layer"},function(){gr("beforeDOMElementCreation",{assembler:n,params:r});var o=[];return n(function(s){Array.isArray(s)?s.map(function(l){o=o.concat(l.abstract)}):o=o.concat(s.abstract)}),[{tag:"span",attributes:{class:["".concat(I.cssPrefix,"-layers")].concat(Fi(i)).join(" ")},children:o}]})}}}},XE={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.title,i=a===void 0?null:a,o=r.classes,s=o===void 0?[]:o,l=r.attributes,u=l===void 0?{}:l,h=r.styles,d=h===void 0?{}:h;return bl({type:"counter",content:n},function(){return gr("beforeDOMElementCreation",{content:n,params:r}),PE({content:n.toString(),title:i,extra:{attributes:u,styles:d,classes:["".concat(I.cssPrefix,"-layers-counter")].concat(Fi(s))}})})}}}},JE={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.transform,i=a===void 0?$t:a,o=r.title,s=o===void 0?null:o,l=r.classes,u=l===void 0?[]:l,h=r.attributes,d=h===void 0?{}:h,p=r.styles,w=p===void 0?{}:p;return bl({type:"text",content:n},function(){return gr("beforeDOMElementCreation",{content:n,params:r}),_g({content:n,transform:M(M({},$t),i),title:s,extra:{attributes:d,styles:w,classes:["".concat(I.cssPrefix,"-layers-text")].concat(Fi(u))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var a=r.title,i=r.transform,o=r.extra,s=null,l=null;if(n1){var u=parseInt(getComputedStyle(n).fontSize,10),h=n.getBoundingClientRect();s=h.width/u,l=h.height/u}return I.autoA11y&&!a&&(o.attributes["aria-hidden"]="true"),Promise.resolve([n,_g({content:n.innerHTML,width:s,height:l,transform:i,title:a,extra:o,watchable:!0})])}}},QE=new RegExp('"',"ug"),xg=[1105920,1112319];function BE(e){var t=e.replace(QE,""),n=fE(t,0),r=n>=xg[0]&&n<=xg[1],a=t.length===2?t[0]===t[1]:!1;return{value:uf(a?t[0]:t),isSecondary:r||a}}function Pg(e,t){var n="".concat(Ub).concat(t.replace(":","-"));return new Promise(function(r,a){if(e.getAttribute(n)!==null)return r();var i=va(e.children),o=i.filter(function(E){return E.getAttribute(lf)===t})[0],s=Rn.getComputedStyle(e,t),l=s.getPropertyValue("font-family").match(Vb),u=s.getPropertyValue("font-weight"),h=s.getPropertyValue("content");if(o&&!l)return e.removeChild(o),r();if(l&&h!=="none"&&h!==""){var d=s.getPropertyValue("content"),p=~["Sharp"].indexOf(l[2])?de:ae,w=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?Pi[p][l[2].toLowerCase()]:qb[p][u],m=BE(d),_=m.value,b=m.isSecondary,v=l[0].startsWith("FontAwesome"),y=th(w,_),S=y;if(v){var x=yE(_);x.iconName&&x.prefix&&(y=x.iconName,w=x.prefix)}if(y&&!b&&(!o||o.getAttribute(Xd)!==w||o.getAttribute(Jd)!==S)){e.setAttribute(n,S),o&&e.removeChild(o);var D=HE(),k=D.extra;k.attributes[lf]=t,pf(y,w).then(function(E){var C=rh(M(M({},D),{},{icons:{main:E,mask:nh()},prefix:w,iconName:S,extra:k,watchable:!0})),O=oe.createElement("svg");t==="::before"?e.insertBefore(O,e.firstChild):e.appendChild(O),O.outerHTML=C.map(function(N){return Ui(N)}).join(` +`),e.removeAttribute(n),r()}).catch(a)}else r()}else r()})}function ZE(e){return Promise.all([Pg(e,"::before"),Pg(e,"::after")])}function eT(e){return e.parentNode!==document.head&&!~Hb.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(lf)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Ng(e){if(an)return new Promise(function(t,n){var r=va(e.querySelectorAll("*")).filter(eT).map(ZE),a=ah.begin("searchPseudoElements");E1(),Promise.all(r).then(function(){a(),mf(),t()}).catch(function(){a(),mf(),n()})})}var tT={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=Ng,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,a=r===void 0?oe:r;I.searchPseudoElements&&Ng(a)}}},Dg=!1,nT={mixout:function(){return{dom:{unwatch:function(){E1(),Dg=!0}}}},hooks:function(){return{bootstrap:function(){Tg(ff("mutationObserverCallbacks",{}))},noAuto:function(){FE()},watch:function(n){var r=n.observeMutationsRoot;Dg?mf():Tg(ff("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},kg=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,a){var i=a.toLowerCase().split("-"),o=i[0],s=i.slice(1).join("-");if(o&&s==="h")return r.flipX=!0,r;if(o&&s==="v")return r.flipY=!0,r;if(s=parseFloat(s),isNaN(s))return r;switch(o){case"grow":r.size=r.size+s;break;case"shrink":r.size=r.size-s;break;case"left":r.x=r.x-s;break;case"right":r.x=r.x+s;break;case"up":r.y=r.y-s;break;case"down":r.y=r.y+s;break;case"rotate":r.rotate=r.rotate+s;break}return r},n)},rT={mixout:function(){return{parse:{transform:function(n){return kg(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-transform");return a&&(n.transform=kg(a)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,a=n.transform,i=n.containerWidth,o=n.iconWidth,s={transform:"translate(".concat(i/2," 256)")},l="translate(".concat(a.x*32,", ").concat(a.y*32,") "),u="scale(".concat(a.size/16*(a.flipX?-1:1),", ").concat(a.size/16*(a.flipY?-1:1),") "),h="rotate(".concat(a.rotate," 0 0)"),d={transform:"".concat(l," ").concat(u," ").concat(h)},p={transform:"translate(".concat(o/2*-1," -256)")},w={outer:s,inner:d,path:p};return{tag:"g",attributes:M({},w.outer),children:[{tag:"g",attributes:M({},w.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:M(M({},r.icon.attributes),w.path)}]}]}}}},Fu={x:0,y:0,width:"100%",height:"100%"};function Ag(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function aT(e){return e.tag==="g"?e.children:[e]}var iT={hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-mask"),i=a?Sl(a.split(" ").map(function(o){return o.trim()})):nh();return i.prefix||(i.prefix=$n()),n.mask=i,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,a=n.attributes,i=n.main,o=n.mask,s=n.maskId,l=n.transform,u=i.width,h=i.icon,d=o.width,p=o.icon,w=rE({transform:l,containerWidth:d,iconWidth:u}),m={tag:"rect",attributes:M(M({},Fu),{},{fill:"white"})},_=h.children?{children:h.children.map(Ag)}:{},b={tag:"g",attributes:M({},w.inner),children:[Ag(M({tag:h.tag,attributes:M(M({},h.attributes),w.path)},_))]},v={tag:"g",attributes:M({},w.outer),children:[b]},y="mask-".concat(s||ki()),S="clip-".concat(s||ki()),x={tag:"mask",attributes:M(M({},Fu),{},{id:y,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[m,v]},D={tag:"defs",children:[{tag:"clipPath",attributes:{id:S},children:aT(p)},x]};return r.push(D,{tag:"rect",attributes:M({fill:"currentColor","clip-path":"url(#".concat(S,")"),mask:"url(#".concat(y,")")},Fu)}),{children:r,attributes:a}}}},oT={provides:function(t){var n=!1;Rn.matchMedia&&(n=Rn.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],a={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:M(M({},a),{},{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"})});var o=M(M({},i),{},{attributeName:"opacity"}),s={tag:"circle",attributes:M(M({},a),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||s.children.push({tag:"animate",attributes:M(M({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:M(M({},o),{},{values:"1;0;1;1;0;1;"})}),r.push(s),r.push({tag:"path",attributes:M(M({},a),{},{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:n?[]:[{tag:"animate",attributes:M(M({},o),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:M(M({},a),{},{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:M(M({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},sT={hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-symbol"),i=a===null?!1:a===""?!0:a;return n.symbol=i,n}}}},lT=[oE,KE,YE,XE,JE,tT,nT,rT,iT,oT,sT];SE(lT,{mixoutsTo:ot});ot.noAuto;ot.config;ot.library;ot.dom;var vf=ot.parse;ot.findIconDefinition;ot.toHtml;var uT=ot.icon;ot.layer;ot.text;ot.counter;var C1={exports:{}},cT="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",fT=cT,dT=fT;function O1(){}function x1(){}x1.resetWarningCache=O1;var hT=function(){function e(r,a,i,o,s,l){if(l!==dT){var u=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 u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:x1,resetWarningCache:O1};return n.PropTypes=n,n};C1.exports=hT();var pT=C1.exports;const K=nl(pT);function Rg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function wn(e){for(var t=1;t=0)&&(n[a]=e[a]);return n}function mT(e,t){if(e==null)return{};var n=gT(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yf(e){return vT(e)||yT(e)||wT(e)||_T()}function vT(e){if(Array.isArray(e))return wf(e)}function yT(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wT(e,t){if(e){if(typeof e=="string")return wf(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 wf(e,t)}}function wf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(l){return N1(e,l)}),a=Object.keys(t.attributes||{}).reduce(function(l,u){var h=t.attributes[u];switch(u){case"class":l.attrs.className=h,delete t.attributes.class;break;case"style":l.attrs.style=CT(h);break;default:u.indexOf("aria-")===0||u.indexOf("data-")===0?l.attrs[u.toLowerCase()]=h:l.attrs[P1(u)]=h}return l},{attrs:{}}),i=n.style,o=i===void 0?{}:i,s=mT(n,ET);return a.attrs.style=wn(wn({},a.attrs.style),o),e.apply(void 0,[t.tag,wn(wn({},a.attrs),s)].concat(yf(r)))}var D1=!1;try{D1=!0}catch{}function OT(){if(!D1&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function $g(e){if(e&&Hs(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(vf.icon)return vf.icon(e);if(e===null)return null;if(e&&Hs(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 Iu(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Kr({},e,t):{}}var Fe=Sn.forwardRef(function(e,t){var n=e.icon,r=e.mask,a=e.symbol,i=e.className,o=e.title,s=e.titleId,l=e.maskId,u=$g(n),h=Iu("classes",[].concat(yf(ST(e)),yf(i.split(" ")))),d=Iu("transform",typeof e.transform=="string"?vf.transform(e.transform):e.transform),p=Iu("mask",$g(r)),w=uT(u,wn(wn(wn(wn({},h),d),p),{},{symbol:a,title:o,titleId:s,maskId:l}));if(!w)return OT("Could not find icon",u),null;var m=w.abstract,_={ref:t};return Object.keys(e).forEach(function(b){Fe.defaultProps.hasOwnProperty(b)||(_[b]=e[b])}),xT(m[0],_)});Fe.displayName="FontAwesomeIcon";Fe.propTypes={beat:K.bool,border:K.bool,beatFade:K.bool,bounce:K.bool,className:K.string,fade:K.bool,flash:K.bool,mask:K.oneOfType([K.object,K.array,K.string]),maskId:K.string,fixedWidth:K.bool,inverse:K.bool,flip:K.oneOf([!0,!1,"horizontal","vertical","both"]),icon:K.oneOfType([K.object,K.array,K.string]),listItem:K.bool,pull:K.oneOf(["right","left"]),pulse:K.bool,rotation:K.oneOf([0,90,180,270]),shake:K.bool,size:K.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:K.bool,spinPulse:K.bool,spinReverse:K.bool,symbol:K.oneOfType([K.bool,K.string]),title:K.string,titleId:K.string,transform:K.oneOfType([K.string,K.object]),swapOpacity:K.bool};Fe.defaultProps={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};var xT=N1.bind(null,Sn.createElement),PT={prefix:"fas",iconName:"caret-right",icon:[256,512,[],"f0da","M246.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-128-128c-9.2-9.2-22.9-11.9-34.9-6.9s-19.8 16.6-19.8 29.6l0 256c0 12.9 7.8 24.6 19.8 29.6s25.7 2.2 34.9-6.9l128-128z"]},Lg={prefix:"fas",iconName:"square-check",icon:[448,512,[9745,9989,61510,"check-square"],"f14a","M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zM337 209L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},NT={prefix:"fas",iconName:"arrows-rotate",icon:[512,512,[128472,"refresh","sync"],"f021","M105.1 202.6c7.7-21.8 20.2-42.3 37.8-59.8c62.5-62.5 163.8-62.5 226.3 0L386.3 160H336c-17.7 0-32 14.3-32 32s14.3 32 32 32H463.5c0 0 0 0 0 0h.4c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32s-32 14.3-32 32v51.2L414.4 97.6c-87.5-87.5-229.3-87.5-316.8 0C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5zM39 289.3c-5 1.5-9.8 4.2-13.7 8.2c-4 4-6.7 8.8-8.1 14c-.3 1.2-.6 2.5-.8 3.8c-.3 1.7-.4 3.4-.4 5.1V448c0 17.7 14.3 32 32 32s32-14.3 32-32V396.9l17.6 17.5 0 0c87.5 87.4 229.3 87.4 316.7 0c24.4-24.4 42.1-53.1 52.9-83.7c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.5 62.5-163.8 62.5-226.3 0l-.1-.1L125.6 352H176c17.7 0 32-14.3 32-32s-14.3-32-32-32H48.4c-1.6 0-3.2 .1-4.8 .3s-3.1 .5-4.6 1z"]},Mg={prefix:"fas",iconName:"square",icon:[448,512,[9632,9723,9724,61590],"f0c8","M0 96C0 60.7 28.7 32 64 32H384c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96z"]},DT={prefix:"fas",iconName:"circle-question",icon:[512,512,[62108,"question-circle"],"f059","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM169.8 165.3c7.9-22.3 29.1-37.3 52.8-37.3h58.3c34.9 0 63.1 28.3 63.1 63.1c0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6c-13.3 0-24-10.7-24-24V250.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1c0-8.4-6.8-15.1-15.1-15.1H222.6c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},kT={prefix:"fas",iconName:"floppy-disk",icon:[448,512,[128190,128426,"save"],"f0c7","M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V173.3c0-17-6.7-33.3-18.7-45.3L352 50.7C340 38.7 323.7 32 306.7 32H64zm0 96c0-17.7 14.3-32 32-32H288c17.7 0 32 14.3 32 32v64c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V128zM224 288a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"]},AT={prefix:"fas",iconName:"caret-down",icon:[320,512,[],"f0d7","M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"]},RT={prefix:"fas",iconName:"arrow-right-arrow-left",icon:[448,512,[8644,"exchange"],"f0ec","M438.6 150.6c12.5-12.5 12.5-32.8 0-45.3l-96-96c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.7 96 32 96C14.3 96 0 110.3 0 128s14.3 32 32 32l306.7 0-41.4 41.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l96-96zm-333.3 352c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 416 416 416c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0 41.4-41.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-96 96c-12.5 12.5-12.5 32.8 0 45.3l96 96z"]},$T=RT,LT={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},MT={prefix:"fas",iconName:"x",icon:[384,512,[120],"58","M376.6 84.5c11.3-13.6 9.5-33.8-4.1-45.1s-33.8-9.5-45.1 4.1L192 206 56.6 43.5C45.3 29.9 25.1 28.1 11.5 39.4S-3.9 70.9 7.4 84.5L150.3 256 7.4 427.5c-11.3 13.6-9.5 33.8 4.1 45.1s33.8 9.5 45.1-4.1L192 306 327.4 468.5c11.3 13.6 31.5 15.4 45.1 4.1s15.4-31.5 4.1-45.1L233.7 256 376.6 84.5z"]};const jT="_headerDiagnosticsBtnContainer_1ogb6_1",FT="_taggleBtn_1ogb6_12",IT="_toggleBtnInnerOn_1ogb6_26",UT="_toggleBtnInnerOff_1ogb6_27",zT="_faIcon_1ogb6_48",Pr={headerDiagnosticsBtnContainer:jT,taggleBtn:FT,toggleBtnInnerOn:IT,toggleBtnInnerOff:UT,faIcon:zT};function HT(){const{panelState:e,setPanelState:t,setViewInLogPanel:n}=P.useContext(it);function r(){t(a=>{const i={...a},o=!i.diagnostics.show;i.diagnostics.show=o;const s=localStorage.getItem("appSetting"),l=JSON.parse(s);return l.diagnosticsPanelShow=o,localStorage.setItem("appSetting",JSON.stringify(l)),i}),n(a=>{const i={...a};return e.diagnostics.show&&(i.streamTable=!1,i.diagnosticsLogs=!0),e.diagnostics.show||(i.streamTable=!0,i.diagnosticsLogs=!1),i})}return T.jsxs("div",{id:"headerDiagnosticsBtn",className:`header_each_btn ${Pr.headerDiagnosticsBtnContainer}`,onClick:r,children:[T.jsx("span",{className:Pr.taggleBtn,children:T.jsx("span",{className:e.diagnostics.show?Pr.toggleBtnInnerOn:Pr.toggleBtnInnerOff,children:e.diagnostics.show?T.jsx(Fe,{icon:LT,className:Pr.faIcon}):T.jsx(Fe,{icon:MT,className:Pr.faIcon})})}),T.jsx("p",{children:"Diagnostics"})]})}const WT="_headerLeftMainContainer_1bzdp_1",GT="_headerLogoContainer_1bzdp_8",VT="_headerLogo_1bzdp_8",qT="_headerLogoText_1bzdp_21",Lo={headerLeftMainContainer:WT,headerLogoContainer:GT,headerLogo:VT,headerLogoText:qT},KT="/assets/idaes-logo-4b9fada6.png";function YT(){return T.jsxs("div",{className:Lo.headerLeftMainContainer,children:[T.jsxs("div",{id:"headerLogoContainer",className:`headerLogoContainer ${Lo.headerLogoContainer}`,children:[T.jsx("img",{src:KT,alt:"idaes logo for header component",id:"headerLogo",className:`${Lo.headerLogo}`}),T.jsx("p",{id:"headerLogoText",className:`${Lo.headerLogoText}`,children:"IDAES"})]}),T.jsx("div",{children:T.jsx(HT,{})})]})}const XT="_header_flowsheet_name_3hhh9_1",JT={header_flowsheet_name:XT};function QT(){const{fv_id:e}=P.useContext(it);return T.jsx("p",{id:"flowsheet_name_title",className:`${JT.header_flowsheet_name}`,children:e||"Name not found"})}function BT(){return T.jsxs("li",{id:"refresh_btn",className:"header_each_btn",children:[T.jsx(Fe,{icon:NT,className:"mr-sm"}),"Refresh"]})}function ZT(){return T.jsxs("li",{id:"save_btn",className:"header_each_btn",children:[T.jsx(Fe,{icon:kT,className:"mr-sm"}),"Save"]})}const eC="_link_5oxur_1",tC={link:eC};function nC(){return T.jsxs("li",{id:"help_btn",className:"header_each_btn",children:[T.jsx(Fe,{icon:DT,className:"mr-sm"}),T.jsx("a",{href:"https://idaes-pse.readthedocs.io/en/latest/tutorials/getting_started/index.html",target:"_blank",className:`${tC.link}`,children:"Help"})]})}function rC(){function e(){["mosaicLayout","layout","diagnosticsPanelParams"].forEach(n=>{localStorage.removeItem(n)}),window.location.reload()}return T.jsxs("li",{id:"save_btn",className:"header_each_btn",onClick:()=>{e()},children:[T.jsx(Fe,{icon:$T,className:"mr-sm"}),"Reset Layout"]})}const aC="_header_fn_btn_wrapper_ul_18i4g_1",iC={header_fn_btn_wrapper_ul:aC};function oC(){return T.jsxs("ul",{className:`${iC.header_fn_btn_wrapper_ul}`,children:[T.jsx(BT,{}),T.jsx(ZT,{}),T.jsx(rC,{}),T.jsx(nC,{})]})}const sC="_header_container_1gczp_1",lC={header_container:sC};function uC(){return P.useContext(it),T.jsxs("header",{id:"header",className:`row ${lC.header_container}`,children:[T.jsx(YT,{}),T.jsx(QT,{}),T.jsx(oC,{})]})}const _f={attrs:{g:{},text:{display:"block","font-size":"7","text-anchor":"left"},rect:{width:"2000",height:"2000",fill:"white",rx:0,ry:0,"fill-opacity":"1"},tspan:{fill:"white",dy:10}}},Sf={attrs:{text:{display:"none"},rect:{"fill-opacity":"0"}}},Ws=0,jg=1;class cC{constructor(t){z(this,"_app");z(this,"joint");z(this,"_originalLinkStroke");z(this,"_originalLinkStrokeWidth");z(this,"_highlightLinkStroke");z(this,"_highlightLinkStrokeWidth");z(this,"_graph");z(this,"_paper");z(this,"_paperScroller");z(this,"_selection");this._app=t;let n=joint.shapes.standard,r=800,a=800,i=1;this._originalLinkStroke="#979797",this._originalLinkStrokeWidth=2,this._highlightLinkStroke="#0B79BD",this._highlightLinkStrokeWidth=4,this._graph=new joint.dia.Graph([],{cellNamespace:{standard:n}}),this._paper=new joint.dia.Paper({model:this._graph,cellViewNamespace:{standard:n},width:r,height:a,gridSize:i,drawGrid:!1,interactive:!0}),this._paperScroller=new joint.ui.PaperScroller({padding:100,paper:this._paper,autoResizePaper:!0,scrollWhileDragging:!0,baseWidth:10,baseHeight:10,cursor:"grab"}),this._selection=new joint.ui.Selection({paper:this._paper}),this._selection.removeHandle("remove"),this._selection.removeHandle("rotate"),this._selection.removeHandle("resize"),self=this,document.getElementById("fv").append(self._paperScroller.render().el),self.preSetupRegisterEvents()}get graph(){return this._graph}set graph(t){this._graph.fromJSON(t)}get paper(){return self._paper}get paperScroller(){return self._paperScroller}get selection(){return self._selection}translate_for_angle(t){return{0:[0,5],90:[38,-35],180:[0,-72],270:[-38,-34]}[t]}preSetupRegisterEvents(){this._graph.on("change:position change:angle change:vertices",()=>{this._app.graphChanged()});let t=document.getElementById("fv");t||console.error("idaes canvas is not found");const n=document.querySelector("#stream-table-data");t.addEventListener("HighlightStream",r=>{const a=t.querySelector(`[model-id=${r.detail.streamId}]`);a&&a.dispatchEvent(new Event("HighlightStream"))}),t.addEventListener("RemoveHighlightStream",r=>{const a=t.querySelector(`[model-id=${r.detail.streamId}]`);a&&a.dispatchEvent(new Event("RemoveHighlightStream"))}),self._paper.on("blank:pointerdown",self._selection.startSelecting),self._paper.on("element:pointerup",function(r,a){console.log("work"),(a.shiftKey||a.metaKey)&&self._selection.collection.add(r.model)}),self._selection.on("selection-box:pointerdown",function(r,a){(a.shiftKey||a.metaKey)&&self._selection.collection.remove(r.model)}),self._paper.on("element:contextmenu",function(r,a){r.model.rotate(90);const i=r.model.angle(),o=self.translate_for_angle(i,0,0);o===void 0?console.error(`Angle of unit model must be either 0, 90, 180, or 270. Angle is ${i}`):r.model.attr("label/transform",`translate(${o[0]}, ${o[1]}) rotate(-${i})`)}),self._paper.on("link:mouseenter",function(r){let a=document.querySelector("#stream-table-data"),i=document.querySelector("#fv");if(!a||!i)return;let o=new joint.linkTools.Vertices({focusOpacity:.5,redundancyRemoval:!0,snapRadius:20,vertexAdding:!0}),s=new joint.linkTools.Segments,l=new joint.dia.ToolsView({tools:[o,s]});r.addTools(l),r.showTools();const u=new CustomEvent("HighlightStream",{detail:{streamId:r.model.id}});i.dispatchEvent(u),a.dispatchEvent(u)}),self._paper.on("link:mouseleave",function(r){r.hideTools();const a=new CustomEvent("RemoveHighlightStream",{detail:{streamId:r.model.id}});t&&t.dispatchEvent(a),n&&n.dispatchEvent(a)}),self._paper.on("link:contextmenu",function(r,a){r.model.label(Ws).attrs.text.display==="none"?r.model.label(Ws,_f):r.model.label(0,Sf)})}zoomToFit(t=30){this._paperScroller.zoomToFit({padding:t})}postSetupRegisterEvents(){this.zoomToFit(),this._graph.getLinks().forEach(t=>{let n=t.findView(this._paper);n.el.addEventListener("HighlightStream",()=>{n.model.attr({line:{stroke:this._highlightLinkStroke,"stroke-width":this._highlightLinkStrokeWidth}})}),n.el.addEventListener("RemoveHighlightStream",()=>{n.model.attr({line:{stroke:this._originalLinkStroke,"stroke-width":this._originalLinkStrokeWidth}})})})}reorderLabel(t){let n=null,r=null;if(t.cells.forEach((i,o)=>{i.id.includes("liq")&&(n=o),i.id.includes("vap")&&(r=o)}),!n||!r)return;const a=t.cells[n];t.cells[n]=t.cells[r],t.cells[r]=a,t.cells[n]}setup(t){const n="/assets/image/flowsheet_icons/";t.cells.reverse(),t.cells.forEach(r=>{if(r.type==="standard.Image"){let a=n+r.attrs.image.xlinkHref.match(/([^\/]+\.svg)$/)[0];r.attrs.image={...r.attrs.image,xlinkHref:a}}r.labels&&(r.z=1e3,r.labels[0])}),this.reorderLabel(t),this._graph.fromJSON(t),this.postSetupRegisterEvents()}}class fC{constructor(t){z(this,"_model");this._model=t}get model(){return this._model}set model(t){this._model=t}findCellIndex(t,n){for(let r=0;r{const o=i.getEndAnchor("source"),s=i.getEndAnchor("target"),l=new g.Point(o.x+t.source.x,o.y+t.source.y),u=new g.Point(s.x+t.destination.x,s.y+t.destination.y),h=i.getEndView("source").model.angle(),d=i.getEndView("target").model.angle(),p=h%180===0?1:-1,w=d%180===0?1:-1,m=l.rotate(o,p*h),_=u.rotate(s,w*d);return joint.routers.manhattan([m,...r,_],a,i)}}processRoutingConfig(){const t=this._model.routing_config;for(let n in t){const r=this.findCellIndex(n,"standard.Link");let a=t[n].cell_config.gap,i=this.routerGapFnFactory(a);this._model.cells[r].router=i}return this._model.cells.map(n=>{if(n.labels&&n.labels[1].position)return n.labels.reverse(),n}),this._model}}let dC=class{constructor(t,n,r){z(this,"_app");z(this,"UNFIXED","unfixed");z(this,"FIXED","fixed");z(this,"PARAMETER","parameter");z(this,"EXPRESSION","expression");z(this,"highlightFn");z(this,"removeHighlightFn");z(this,"gridCellMouseEnterFn");z(this,"gridCellMouseLeaveFn");z(this,"existing_var_types");z(this,"_gridOptions");z(this,"viewInLogPanel");this._app=t,this.viewInLogPanel=r,this.defineTableBrushingFns(),this.initTable(n),this.existing_var_types=new Set}initTable(t){this.clearTable(),this.emptyVarTypesPanel(),this.fillTable(t),this.setupEvents()}clearTable(){const t=document.querySelector("#stream-table-data");t&&(t.innerHTML="")}emptyVarTypesPanel(){this.existing_var_types=new Set;const t=document.querySelector("#existing-variable-types");t.innerHTML=""}fillVarTypesPanel(){const t=document.querySelector("#existing-variable-types"),n="streamtable-vartype-element";if(this.existing_var_types.has(this.FIXED)||this.existing_var_types.has(this.PARAMETER)||this.existing_var_types.has(this.EXPRESSION)){const r=document.createElement("p");r.innerHTML="Annotated Variable Types:",r.className=n,t.appendChild(r)}this.existing_var_types.forEach(r=>{switch(r){case this.UNFIXED:console.debug("Unfixed variables don't have a visual indicator");break;case this.FIXED:case this.PARAMETER:case this.EXPRESSION:const a=document.createElement("span");a.className=n;const i=document.createElement("span"),o=document.createElement("span");o.className="streamtable-vartype-text",i.className=`streamtable-vartype-${r}`,i.title=r,o.innerHTML=r,a.appendChild(i),a.appendChild(o),t.appendChild(a);break;default:console.warn("Couldn't identify Variable type")}})}fillTable(t){let n=t.model.stream_table;const r=document.querySelector("#hide-fields-list");r&&(r.innerHTML="");let a=n.columns,i=[];for(let w in a){let m=a[w];if(m!==""&&m!=="Units"&&!m.includes("_vartype"))if(m==="Variable")i.push({headerName:m,field:m,filter:"agTextColumnFilter",sortable:!0,resizable:!0,pinned:"left",cellRenderer:_=>''+_.value+""});else{i.push({headerName:m,field:m,filter:"agTextColumnFilter",sortable:!0,resizable:!0,cellRenderer:v=>''+v.value+""});let _=document.createElement("li"),b=document.createElement("div");b.className="checkbox",b.innerHTML=` + + `,_.appendChild(b),r.appendChild(_)}}let o=n.index,s=n.data,l=[],u="Variable";for(let w in o){let m={},_=s[w];for(let b in a)if(a[b]==="Units")_[b]&&_[b].html?m[u]=m[u]+''+_[b].html+"":m[u]=m[u]+'';else if(a[b]==="Variable")m[a[b]]=_[b];else{var[h,d]=_[b];let v="";switch(d){case this.UNFIXED:this.existing_var_types.add(d);break;case this.FIXED:case this.PARAMETER:case this.EXPRESSION:this.existing_var_types.add(d),v=``;break;default:console.warn(`Couldn't identify Variable type: ${d}`)}m[a[b]]=v+''+h+""}l.push(m)}this.fillVarTypesPanel(),this._gridOptions={columnDefs:i,rowData:l,suppressColumnVirtualisation:!0},this._gridOptions.getRowStyle=function(w){if(w.node.rowIndex%2===0)return{background:"#f3f3f3"}};let p=document.querySelector("#stream-table-data");new agGrid.Grid(p,this._gridOptions),this._gridOptions.columnApi.autoSizeAllColumns()}defineTableBrushingFns(){let t=document.querySelector("#stream-table-data"),n=document.querySelector("#fv");!t||!n||!this.viewInLogPanel.streamTable||(this.highlightFn=r=>{let a=t.querySelectorAll(`[col-id=${r.detail.streamId}]`);a.forEach((i,o)=>{i.getAttribute("role")=="columnheader"?i.classList.add("link-streamtable-hover-columnheader"):o==a.length-1?i.classList.add("link-streamtable-hover-lastrow"):i.classList.add("link-streamtable-hover")})},this.removeHighlightFn=r=>{console.log("remove hight light"),t.querySelectorAll(`[col-id=${r.detail.streamId}]`).forEach(i=>{i.classList.remove("link-streamtable-hover-columnheader"),i.classList.remove("link-streamtable-hover-lastrow"),i.classList.remove("link-streamtable-hover")})},this.gridCellMouseEnterFn=r=>{const a=r.target.getAttribute("col-id");if(a){const i=new CustomEvent("HighlightStream",{detail:{streamId:a}});t.dispatchEvent(i),n.dispatchEvent(i)}},this.gridCellMouseLeaveFn=r=>{const a=r.target.getAttribute("col-id"),i=new CustomEvent("RemoveHighlightStream",{detail:{streamId:a}});t.dispatchEvent(i),n.dispatchEvent(i)})}registerTableBrushing(){let t=document.querySelector("#stream-table-data");document.querySelector("#fv");let n=document.querySelectorAll("[col-id]");t.removeEventListener("HighlightStream",this.highlightFn),t.removeEventListener("RemoveHighlightStream",this.removeHighlightFn),n.forEach(r=>{r.removeEventListener("mouseenter",this.gridCellMouseEnterFn),r.removeEventListener("mouseleave",this.gridCellMouseLeaveFn)}),t.addEventListener("HighlightStream",this.highlightFn),t.addEventListener("RemoveHighlightStream",this.removeHighlightFn),n.forEach(r=>{r.addEventListener("mouseenter",this.gridCellMouseEnterFn),r.addEventListener("mouseleave",this.gridCellMouseLeaveFn)})}setupEvents(){let n=document.querySelector("#hide-fields-list").querySelectorAll("input[type=checkbox]"),r=this;n.forEach(function(a){a.addEventListener("change",function(i){var l;i.preventDefault();let o=i.target,s=(l=o.parentElement)==null?void 0:l.querySelector("span");o.checked?(s.style.display="block",r._gridOptions.columnApi.setColumnVisible(o.id,!0),r.registerTableBrushing()):(s.style.display="none",r._gridOptions.columnApi.setColumnVisible(o.id,!1))})}),this.registerTableBrushing()}};class hC{constructor(t,n,r,a,i,o,s){z(this,"_app");z(this,"_paper");z(this,"_stream_table");z(this,"flowsheetId");z(this,"getFSUrl");z(this,"putFSUrl");z(this,"isFvShow");z(this,"zoomRate");z(this,"toggleStreamNameBtn");z(this,"toggleLabelsBtn");z(this,"zoomInBtn");z(this,"zoomOutBtn");z(this,"zoomFitBtn");z(this,"zoomInHandler");z(this,"zoomOutHandler");z(this,"zoomFitHandler");this._app=t,this._paper=n,this._stream_table=r,this.flowsheetId=a,this.getFSUrl=i,this.putFSUrl=o,this.isFvShow=s,this.zoomRate=.2,this.zoomInHandler=void 0,this.zoomOutHandler=void 0,this.zoomFitHandler=void 0,this.registerEventExportFlowsheetToPng(),this.registerEventExportFlowsheetToSvg(),this.registerEventRefresh(this.getFSUrl,this.putFSUrl),this.registerEventSave(this.putFSUrl),this.zoomInBtn=document.querySelector("#zoom-in-btn"),this.zoomOutBtn=document.querySelector("#zoom-out-btn"),this.zoomFitBtn=document.querySelector("#zoom-to-fit"),s&&(this.toggleStreamNameBtn=document.querySelector("#stream-names-toggle"),this.toggleStreamNameBtn&&this.registerToggleStreamNamesEvent(this.toggleStreamNameBtn),this.toggleLabelsBtn=document.querySelector("#show-label-toggle"),this.toggleLabelsBtn&&this.registerEventToggleLabel(this.toggleLabelsBtn),this.zoomInBtn&&this.zoomOutBtn&&this.zoomFitBtn&&this.registerZoomEvent(this.zoomInBtn,this.zoomOutBtn,this.zoomFitBtn))}registerZoomEvent(t,n,r){this.zoomInHandler=()=>this.zoomInEvent(this._paper.paperScroller,this.zoomRate),this.zoomOutHandler=()=>this.zoomOutEvent(this._paper.paperScroller,this.zoomRate),this.zoomFitHandler=()=>this.zoomFitEvent(),t.addEventListener("click",this.zoomInHandler),n.addEventListener("click",this.zoomOutHandler),r.addEventListener("click",this.zoomFitHandler)}zoomInEvent(t,n){t.zoom(n,{max:100})}zoomOutEvent(t,n){t.zoom(-n,{min:.01})}zoomFitEvent(){this._paper.zoomToFit()}registerToggleStreamNamesEvent(t){t.addEventListener("click",()=>{t.getAttribute("data-toggle")==="true"?this._paper._graph.getLinks().forEach(function(r){r.label(jg,Sf)}):this._paper._graph.getLinks().forEach(function(r){r.label(jg,_f)})})}registerEventExportFlowsheetToPng(){const t=document.querySelector("#headerExportImageBtn");document.querySelector("#headerExportSvgBtn"),t.addEventListener("click",()=>{let n=this._paper.paper;const r=this.flowsheetId;n.hideTools(),n.toPNG(function(a){new joint.ui.Lightbox({image:a,downloadable:!0,fileName:r.concat(".png")}).open()},{scale:2,pixelRatio:2,preserveDimensions:!0,convertImagesToDataUris:!0,useComputedStyles:!0,stylesheet:".scalable * { vector-effect: non-scaling-stroke }"})})}registerEventExportFlowsheetToSvg(){document.querySelector("#headerExportSvgBtn").addEventListener("click",()=>{let n=this._paper.paper;const r=this.flowsheetId;n.hideTools(),n.toSVG(a=>{const i=new Blob([a],{type:"image/svg+xml;charset=utf-8"}),o=URL.createObjectURL(i);new joint.ui.Lightbox({image:o,downloadable:!0,fileName:r.concat(".svg")}).open()},{scale:2,pixelRatio:2,preserveDimensions:!0,convertImagesToDataUris:!0,useComputedStyles:!0,stylesheet:".scalable * { vector-effect: non-scaling-stroke }"})})}registerEventToggleLabel(t){t.addEventListener("click",()=>{t.getAttribute("data-toggle")=="true"?this._paper._graph.getLinks().forEach(function(r){r.label(Ws,_f)}):this._paper._graph.getLinks().forEach(function(r){r.label(Ws,Sf)})})}registerEventRefresh(t,n){document.querySelector("#refresh_btn").addEventListener("click",()=>{this._app.refreshModel(t,n,this._paper)})}registerEventSave(t){document.querySelector("#save_btn").addEventListener("click",()=>{this._app.saveModel(t,this._paper.graph)})}cleanUpEvent(){let t=document.getElementById("zoom-in-btn"),n=document.getElementById("zoom-out-btn"),r=document.getElementById("zoom-to-fit");if(t){let u=t.cloneNode(!0);t.parentNode.replaceChild(u,t)}if(n){let u=n.cloneNode(!0);n.parentNode.replaceChild(u,n)}if(r){let u=r.cloneNode(!0);r.parentNode.replaceChild(u,r)}let a=document.getElementById("flowsheet_component_header_dropdown_container"),i=document.getElementById("headerExportImageBtn"),o=document.getElementById("headerExportSvgBtn");if(i){let u=i.cloneNode(!0);a?a.replaceChild(u,i):console.log("error no parent nodes")}if(o){let u=o.cloneNode(!0);a?a.replaceChild(u,o):console.log("error download svg btn replacement failed, in toolbar, parent not found!")}let s=document.getElementById("save_btn");if(s){let u=s.cloneNode(!0);s.parentNode?s.parentNode.replaceChild(u,s):console.log("error save btn replacement error handle in toolbar, parent not found!")}let l=document.getElementById("refresh_btn");if(l){let u=l.cloneNode(!0);l.parentNode?l.parentNode.replaceChild(u,l):console.log("error refresh btn replacement error handle in toolbar, parent not found!")}}}const pC="_message_bar_container_8b2qe_1",gC="_messageBarTextContainer_8b2qe_9",mC="_messageBarShowUp_8b2qe_1",vC="_bg_successful_8b2qe_40",yC="_bg_error_8b2qe_44",os={message_bar_container:pC,messageBarTextContainer:gC,messageBarShowUp:mC,bg_successful:vC,bg_error:yC};function ir(e,t,n){let r="loading...";e=="refreshFS"&&t&&(r="Flowsheet refreshed."),e=="refreshFS"&&!t&&(r="Flowsheet refresh failed! Please reload the page!"),e=="userSave"&&t&&(r="Flowsheet saved."),e=="userSave"&&!t&&(r="Flowsheet save failed! Please restart the server!"),e=="diagnosticRefresh"&&t&&(r="Diagnostics refreshed."),e=="diagnosticRefresh"&&!t&&(r="Diagnostics refresh failed! Please restart the server!"),e=="diagnosticFNRunError"&&!t&&(n?r=n:r="Run diagnostics failed, please check your python terminal.");const a=` +
+

${r}

+
+ `,i=document.getElementById("messageBarContainer");i.innerHTML=a;const o=setTimeout(()=>{const s=document.getElementById("messageBarTextContainer");console.log(s),s?i.removeChild(s):console.log("Child node message bar is not found!"),clearTimeout(o)},3e3)}function k1(e,t){return function(){return e.apply(t,arguments)}}const{toString:wC}=Object.prototype,{getPrototypeOf:oh}=Object,El=(e=>t=>{const n=wC.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ft=e=>(e=e.toLowerCase(),t=>El(t)===e),Tl=e=>t=>typeof t===e,{isArray:ya}=Array,Ai=Tl("undefined");function _C(e){return e!==null&&!Ai(e)&&e.constructor!==null&&!Ai(e.constructor)&&mt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const A1=Ft("ArrayBuffer");function SC(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&A1(e.buffer),t}const bC=Tl("string"),mt=Tl("function"),R1=Tl("number"),Cl=e=>e!==null&&typeof e=="object",EC=e=>e===!0||e===!1,ss=e=>{if(El(e)!=="object")return!1;const t=oh(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},TC=Ft("Date"),CC=Ft("File"),OC=Ft("Blob"),xC=Ft("FileList"),PC=e=>Cl(e)&&mt(e.pipe),NC=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||mt(e.append)&&((t=El(e))==="formdata"||t==="object"&&mt(e.toString)&&e.toString()==="[object FormData]"))},DC=Ft("URLSearchParams"),kC=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zi(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),ya(e))for(r=0,a=e.length;r0;)if(a=n[r],t===a.toLowerCase())return a;return null}const L1=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),M1=e=>!Ai(e)&&e!==L1;function bf(){const{caseless:e}=M1(this)&&this||{},t={},n=(r,a)=>{const i=e&&$1(t,a)||a;ss(t[i])&&ss(r)?t[i]=bf(t[i],r):ss(r)?t[i]=bf({},r):ya(r)?t[i]=r.slice():t[i]=r};for(let r=0,a=arguments.length;r(zi(t,(a,i)=>{n&&mt(a)?e[i]=k1(a,n):e[i]=a},{allOwnKeys:r}),e),RC=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),$C=(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)},LC=(e,t,n,r)=>{let a,i,o;const s={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)o=a[i],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&oh(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},MC=(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},jC=e=>{if(!e)return null;if(ya(e))return e;let t=e.length;if(!R1(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},FC=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&oh(Uint8Array)),IC=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=r.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},UC=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},zC=Ft("HTMLFormElement"),HC=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),Fg=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),WC=Ft("RegExp"),j1=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};zi(n,(a,i)=>{let o;(o=t(a,i,e))!==!1&&(r[i]=o||a)}),Object.defineProperties(e,r)},GC=e=>{j1(e,(t,n)=>{if(mt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(mt(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+"'")})}})},VC=(e,t)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return ya(e)?r(e):r(String(e).split(t)),n},qC=()=>{},KC=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Uu="abcdefghijklmnopqrstuvwxyz",Ig="0123456789",F1={DIGIT:Ig,ALPHA:Uu,ALPHA_DIGIT:Uu+Uu.toUpperCase()+Ig},YC=(e=16,t=F1.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function XC(e){return!!(e&&mt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const JC=e=>{const t=new Array(10),n=(r,a)=>{if(Cl(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[a]=r;const i=ya(r)?[]:{};return zi(r,(o,s)=>{const l=n(o,a+1);!Ai(l)&&(i[s]=l)}),t[a]=void 0,i}}return r};return n(e,0)},QC=Ft("AsyncFunction"),BC=e=>e&&(Cl(e)||mt(e))&&mt(e.then)&&mt(e.catch),A={isArray:ya,isArrayBuffer:A1,isBuffer:_C,isFormData:NC,isArrayBufferView:SC,isString:bC,isNumber:R1,isBoolean:EC,isObject:Cl,isPlainObject:ss,isUndefined:Ai,isDate:TC,isFile:CC,isBlob:OC,isRegExp:WC,isFunction:mt,isStream:PC,isURLSearchParams:DC,isTypedArray:FC,isFileList:xC,forEach:zi,merge:bf,extend:AC,trim:kC,stripBOM:RC,inherits:$C,toFlatObject:LC,kindOf:El,kindOfTest:Ft,endsWith:MC,toArray:jC,forEachEntry:IC,matchAll:UC,isHTMLForm:zC,hasOwnProperty:Fg,hasOwnProp:Fg,reduceDescriptors:j1,freezeMethods:GC,toObjectSet:VC,toCamelCase:HC,noop:qC,toFiniteNumber:KC,findKey:$1,global:L1,isContextDefined:M1,ALPHABET:F1,generateString:YC,isSpecCompliantForm:XC,toJSONObject:JC,isAsyncFn:QC,isThenable:BC};function X(e,t,n,r,a){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),a&&(this.response=a)}A.inherits(X,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:A.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const I1=X.prototype,U1={};["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=>{U1[e]={value:e}});Object.defineProperties(X,U1);Object.defineProperty(I1,"isAxiosError",{value:!0});X.from=(e,t,n,r,a,i)=>{const o=Object.create(I1);return A.toFlatObject(e,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),X.call(o,e.message,t,n,r,a),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const ZC=null;function Ef(e){return A.isPlainObject(e)||A.isArray(e)}function z1(e){return A.endsWith(e,"[]")?e.slice(0,-2):e}function Ug(e,t,n){return e?e.concat(t).map(function(a,i){return a=z1(a),!n&&i?"["+a+"]":a}).join(n?".":""):t}function eO(e){return A.isArray(e)&&!e.some(Ef)}const tO=A.toFlatObject(A,{},null,function(t){return/^is[A-Z]/.test(t)});function Ol(e,t,n){if(!A.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=A.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,b){return!A.isUndefined(b[_])});const r=n.metaTokens,a=n.visitor||h,i=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&A.isSpecCompliantForm(t);if(!A.isFunction(a))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(A.isDate(m))return m.toISOString();if(!l&&A.isBlob(m))throw new X("Blob is not supported. Use a Buffer instead.");return A.isArrayBuffer(m)||A.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function h(m,_,b){let v=m;if(m&&!b&&typeof m=="object"){if(A.endsWith(_,"{}"))_=r?_:_.slice(0,-2),m=JSON.stringify(m);else if(A.isArray(m)&&eO(m)||(A.isFileList(m)||A.endsWith(_,"[]"))&&(v=A.toArray(m)))return _=z1(_),v.forEach(function(S,x){!(A.isUndefined(S)||S===null)&&t.append(o===!0?Ug([_],x,i):o===null?_:_+"[]",u(S))}),!1}return Ef(m)?!0:(t.append(Ug(b,_,i),u(m)),!1)}const d=[],p=Object.assign(tO,{defaultVisitor:h,convertValue:u,isVisitable:Ef});function w(m,_){if(!A.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+_.join("."));d.push(m),A.forEach(m,function(v,y){(!(A.isUndefined(v)||v===null)&&a.call(t,v,A.isString(y)?y.trim():y,_,p))===!0&&w(v,_?_.concat(y):[y])}),d.pop()}}if(!A.isObject(e))throw new TypeError("data must be an object");return w(e),t}function zg(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function sh(e,t){this._pairs=[],e&&Ol(e,this,t)}const H1=sh.prototype;H1.append=function(t,n){this._pairs.push([t,n])};H1.toString=function(t){const n=t?function(r){return t.call(this,r,zg)}:zg;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function nO(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function W1(e,t,n){if(!t)return e;const r=n&&n.encode||nO,a=n&&n.serialize;let i;if(a?i=a(t,n):i=A.isURLSearchParams(t)?t.toString():new sh(t,n).toString(r),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class rO{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){A.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Hg=rO,G1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},aO=typeof URLSearchParams<"u"?URLSearchParams:sh,iO=typeof FormData<"u"?FormData:null,oO=typeof Blob<"u"?Blob:null,sO={isBrowser:!0,classes:{URLSearchParams:aO,FormData:iO,Blob:oO},protocols:["http","https","file","blob","url","data"]},V1=typeof window<"u"&&typeof document<"u",lO=(e=>V1&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),uO=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),cO=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:V1,hasStandardBrowserEnv:lO,hasStandardBrowserWebWorkerEnv:uO},Symbol.toStringTag,{value:"Module"})),Lt={...cO,...sO};function fO(e,t){return Ol(e,new Lt.classes.URLSearchParams,Object.assign({visitor:function(n,r,a,i){return Lt.isNode&&A.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function dO(e){return A.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function hO(e){const t={},n=Object.keys(e);let r;const a=n.length;let i;for(r=0;r=n.length;return o=!o&&A.isArray(a)?a.length:o,l?(A.hasOwnProp(a,o)?a[o]=[a[o],r]:a[o]=r,!s):((!a[o]||!A.isObject(a[o]))&&(a[o]=[]),t(n,r,a[o],i)&&A.isArray(a[o])&&(a[o]=hO(a[o])),!s)}if(A.isFormData(e)&&A.isFunction(e.entries)){const n={};return A.forEachEntry(e,(r,a)=>{t(dO(r),a,n,0)}),n}return null}function pO(e,t,n){if(A.isString(e))try{return(t||JSON.parse)(e),A.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const lh={transitional:G1,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,i=A.isObject(t);if(i&&A.isHTMLForm(t)&&(t=new FormData(t)),A.isFormData(t))return a&&a?JSON.stringify(q1(t)):t;if(A.isArrayBuffer(t)||A.isBuffer(t)||A.isStream(t)||A.isFile(t)||A.isBlob(t))return t;if(A.isArrayBufferView(t))return t.buffer;if(A.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return fO(t,this.formSerializer).toString();if((s=A.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Ol(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||a?(n.setContentType("application/json",!1),pO(t)):t}],transformResponse:[function(t){const n=this.transitional||lh.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(t&&A.isString(t)&&(r&&!this.responseType||a)){const o=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?X.from(s,X.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Lt.classes.FormData,Blob:Lt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};A.forEach(["delete","get","head","post","put","patch"],e=>{lh.headers[e]={}});const uh=lh,gO=A.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"]),mO=e=>{const t={};let n,r,a;return e&&e.split(` +`).forEach(function(o){a=o.indexOf(":"),n=o.substring(0,a).trim().toLowerCase(),r=o.substring(a+1).trim(),!(!n||t[n]&&gO[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Wg=Symbol("internals");function Ma(e){return e&&String(e).trim().toLowerCase()}function ls(e){return e===!1||e==null?e:A.isArray(e)?e.map(ls):String(e)}function vO(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 yO=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function zu(e,t,n,r,a){if(A.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!A.isString(t)){if(A.isString(r))return t.indexOf(r)!==-1;if(A.isRegExp(r))return r.test(t)}}function wO(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function _O(e,t){const n=A.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(a,i,o){return this[r].call(this,t,a,i,o)},configurable:!0})})}class xl{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function i(s,l,u){const h=Ma(l);if(!h)throw new Error("header name must be a non-empty string");const d=A.findKey(a,h);(!d||a[d]===void 0||u===!0||u===void 0&&a[d]!==!1)&&(a[d||l]=ls(s))}const o=(s,l)=>A.forEach(s,(u,h)=>i(u,h,l));return A.isPlainObject(t)||t instanceof this.constructor?o(t,n):A.isString(t)&&(t=t.trim())&&!yO(t)?o(mO(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=Ma(t),t){const r=A.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return vO(a);if(A.isFunction(n))return n.call(this,a,r);if(A.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ma(t),t){const r=A.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||zu(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function i(o){if(o=Ma(o),o){const s=A.findKey(r,o);s&&(!n||zu(r,r[s],s,n))&&(delete r[s],a=!0)}}return A.isArray(t)?t.forEach(i):i(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const i=n[r];(!t||zu(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const n=this,r={};return A.forEach(this,(a,i)=>{const o=A.findKey(r,i);if(o){n[o]=ls(a),delete n[i];return}const s=t?wO(i):String(i).trim();s!==i&&delete n[i],n[s]=ls(a),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return A.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&A.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(` +`)}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(a=>r.set(a)),r}static accessor(t){const r=(this[Wg]=this[Wg]={accessors:{}}).accessors,a=this.prototype;function i(o){const s=Ma(o);r[s]||(_O(a,o),r[s]=!0)}return A.isArray(t)?t.forEach(i):i(t),this}}xl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);A.reduceDescriptors(xl.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});A.freezeMethods(xl);const Xt=xl;function Hu(e,t){const n=this||uh,r=t||n,a=Xt.from(r.headers);let i=r.data;return A.forEach(e,function(s){i=s.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function K1(e){return!!(e&&e.__CANCEL__)}function Hi(e,t,n){X.call(this,e??"canceled",X.ERR_CANCELED,t,n),this.name="CanceledError"}A.inherits(Hi,X,{__CANCEL__:!0});function SO(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new X("Request failed with status code "+n.status,[X.ERR_BAD_REQUEST,X.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const bO=Lt.hasStandardBrowserEnv?{write(e,t,n,r,a,i){const o=[e+"="+encodeURIComponent(t)];A.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),A.isString(r)&&o.push("path="+r),A.isString(a)&&o.push("domain="+a),i===!0&&o.push("secure"),document.cookie=o.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 EO(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function TO(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Y1(e,t){return e&&!EO(t)?TO(e,t):t}const CO=Lt.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function a(i){let o=i;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=a(window.location.href),function(o){const s=A.isString(o)?a(o):o;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function OO(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function xO(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,i=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),h=r[i];o||(o=u),n[a]=l,r[a]=u;let d=i,p=0;for(;d!==a;)p+=n[d++],d=d%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),u-o{const i=a.loaded,o=a.lengthComputable?a.total:void 0,s=i-n,l=r(s),u=i<=o;n=i;const h={loaded:i,total:o,progress:o?i/o:void 0,bytes:s,rate:l||void 0,estimated:l&&o&&u?(o-i)/l:void 0,event:a};h[t?"download":"upload"]=!0,e(h)}}const PO=typeof XMLHttpRequest<"u",NO=PO&&function(e){return new Promise(function(n,r){let a=e.data;const i=Xt.from(e.headers).normalize();let{responseType:o,withXSRFToken:s}=e,l;function u(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let h;if(A.isFormData(a)){if(Lt.hasStandardBrowserEnv||Lt.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((h=i.getContentType())!==!1){const[_,...b]=h?h.split(";").map(v=>v.trim()).filter(Boolean):[];i.setContentType([_||"multipart/form-data",...b].join("; "))}}let d=new XMLHttpRequest;if(e.auth){const _=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(_+":"+b))}const p=Y1(e.baseURL,e.url);d.open(e.method.toUpperCase(),W1(p,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function w(){if(!d)return;const _=Xt.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),v={data:!o||o==="text"||o==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:_,config:e,request:d};SO(function(S){n(S),u()},function(S){r(S),u()},v),d=null}if("onloadend"in d?d.onloadend=w:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(w)},d.onabort=function(){d&&(r(new X("Request aborted",X.ECONNABORTED,e,d)),d=null)},d.onerror=function(){r(new X("Network Error",X.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let b=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const v=e.transitional||G1;e.timeoutErrorMessage&&(b=e.timeoutErrorMessage),r(new X(b,v.clarifyTimeoutError?X.ETIMEDOUT:X.ECONNABORTED,e,d)),d=null},Lt.hasStandardBrowserEnv&&(s&&A.isFunction(s)&&(s=s(e)),s||s!==!1&&CO(p))){const _=e.xsrfHeaderName&&e.xsrfCookieName&&bO.read(e.xsrfCookieName);_&&i.set(e.xsrfHeaderName,_)}a===void 0&&i.setContentType(null),"setRequestHeader"in d&&A.forEach(i.toJSON(),function(b,v){d.setRequestHeader(v,b)}),A.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),o&&o!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",Gg(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",Gg(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=_=>{d&&(r(!_||_.type?new Hi(null,e,d):_),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const m=OO(p);if(m&&Lt.protocols.indexOf(m)===-1){r(new X("Unsupported protocol "+m+":",X.ERR_BAD_REQUEST,e));return}d.send(a||null)})},Tf={http:ZC,xhr:NO};A.forEach(Tf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Vg=e=>`- ${e}`,DO=e=>A.isFunction(e)||e===null||e===!1,X1={getAdapter:e=>{e=A.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let i=0;i`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?i.length>1?`since : +`+i.map(Vg).join(` +`):" "+Vg(i[0]):"as no adapter specified";throw new X("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:Tf};function Wu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Hi(null,e)}function qg(e){return Wu(e),e.headers=Xt.from(e.headers),e.data=Hu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),X1.getAdapter(e.adapter||uh.adapter)(e).then(function(r){return Wu(e),r.data=Hu.call(e,e.transformResponse,r),r.headers=Xt.from(r.headers),r},function(r){return K1(r)||(Wu(e),r&&r.response&&(r.response.data=Hu.call(e,e.transformResponse,r.response),r.response.headers=Xt.from(r.response.headers))),Promise.reject(r)})}const Kg=e=>e instanceof Xt?e.toJSON():e;function fa(e,t){t=t||{};const n={};function r(u,h,d){return A.isPlainObject(u)&&A.isPlainObject(h)?A.merge.call({caseless:d},u,h):A.isPlainObject(h)?A.merge({},h):A.isArray(h)?h.slice():h}function a(u,h,d){if(A.isUndefined(h)){if(!A.isUndefined(u))return r(void 0,u,d)}else return r(u,h,d)}function i(u,h){if(!A.isUndefined(h))return r(void 0,h)}function o(u,h){if(A.isUndefined(h)){if(!A.isUndefined(u))return r(void 0,u)}else return r(void 0,h)}function s(u,h,d){if(d in t)return r(u,h);if(d in e)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(u,h)=>a(Kg(u),Kg(h),!0)};return A.forEach(Object.keys(Object.assign({},e,t)),function(h){const d=l[h]||a,p=d(e[h],t[h],h);A.isUndefined(p)&&d!==s||(n[h]=p)}),n}const J1="1.6.5",ch={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ch[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Yg={};ch.transitional=function(t,n,r){function a(i,o){return"[Axios v"+J1+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,s)=>{if(t===!1)throw new X(a(o," has been removed"+(n?" in "+n:"")),X.ERR_DEPRECATED);return n&&!Yg[o]&&(Yg[o]=!0,console.warn(a(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,s):!0}};function kO(e,t,n){if(typeof e!="object")throw new X("options must be an object",X.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const i=r[a],o=t[i];if(o){const s=e[i],l=s===void 0||o(s,i,e);if(l!==!0)throw new X("option "+i+" must be "+l,X.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new X("Unknown option "+i,X.ERR_BAD_OPTION)}}const Cf={assertOptions:kO,validators:ch},un=Cf.validators;class Gs{constructor(t){this.defaults=t,this.interceptors={request:new Hg,response:new Hg}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=fa(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&Cf.assertOptions(r,{silentJSONParsing:un.transitional(un.boolean),forcedJSONParsing:un.transitional(un.boolean),clarifyTimeoutError:un.transitional(un.boolean)},!1),a!=null&&(A.isFunction(a)?n.paramsSerializer={serialize:a}:Cf.assertOptions(a,{encode:un.function,serialize:un.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&A.merge(i.common,i[n.method]);i&&A.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=Xt.concat(o,i);const s=[];let l=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(n)===!1||(l=l&&_.synchronous,s.unshift(_.fulfilled,_.rejected))});const u=[];this.interceptors.response.forEach(function(_){u.push(_.fulfilled,_.rejected)});let h,d=0,p;if(!l){const m=[qg.bind(this),void 0];for(m.unshift.apply(m,s),m.push.apply(m,u),p=m.length,h=Promise.resolve(n);d{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(s=>{r.subscribe(s),i=s}).then(a);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,s){r.reason||(r.reason=new Hi(i,o,s),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)}static source(){let t;return{token:new fh(function(a){t=a}),cancel:t}}}const AO=fh;function RO(e){return function(n){return e.apply(null,n)}}function $O(e){return A.isObject(e)&&e.isAxiosError===!0}const Of={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(Of).forEach(([e,t])=>{Of[t]=e});const LO=Of;function Q1(e){const t=new us(e),n=k1(us.prototype.request,t);return A.extend(n,us.prototype,t,{allOwnKeys:!0}),A.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return Q1(fa(e,a))},n}const me=Q1(uh);me.Axios=us;me.CanceledError=Hi;me.CancelToken=AO;me.isCancel=K1;me.VERSION=J1;me.toFormData=Ol;me.AxiosError=X;me.Cancel=me.CanceledError;me.all=function(t){return Promise.all(t)};me.spread=RO;me.isAxiosError=$O;me.mergeConfig=fa;me.AxiosHeaders=Xt;me.formToJSON=e=>q1(A.isHTMLForm(e)?new FormData(e):e);me.getAdapter=X1.getAdapter;me.HttpStatusCode=LO;me.default=me;const Zn=me;class MO{constructor(t,n,r,a,i,o){z(this,"flowsheetId");z(this,"isFvShow");z(this,"isStreamTableShow");z(this,"baseUrl");z(this,"getFSUrl");z(this,"putFSUrl");z(this,"model");z(this,"paper");z(this,"_is_graph_changed");z(this,"_save_time_interval_key");z(this,"_default_save_time_interval");z(this,"_save_time_interval");z(this,"stream_table");z(this,"toolbar");z(this,"cleanToolBarEvent");z(this,"viewInLogPanel");this.flowsheetId=t,this.isFvShow=r,this.isStreamTableShow=i,this.viewInLogPanel=o,this.baseUrl=`http://localhost:${n}`,this.getFSUrl=`/fs?id=${t}`,this.putFSUrl=`/fs?id=${t}`,this.model={},r&&(this.paper=new cC(this)),this._is_graph_changed=!1,this._save_time_interval_key="save_time_interval",this._default_save_time_interval=5e3,this._save_time_interval=this.getSaveTimeInterval(),this.setupGraphChangeChecker(this._save_time_interval,t),this.setGetFSUrl(),Zn.get(this.getFSUrl).then(s=>{this.model=s.data,r&&this.renderModel(this.model),i&&o.streamTable&&(this.stream_table=new dC(this,this.model,this.viewInLogPanel)),this.toolbar=new hC(this,this.paper,this.stream_table,this.flowsheetId,this.getFSUrl,this.putFSUrl,this.isFvShow),this.cleanToolBarEvent=this.toolbar.cleanUpEvent}).catch(s=>{console.log(s.message),console.log(s.response.status)}),this.fvExtraContentCleanUp()}setGetFSUrl(){let t=new URLSearchParams(window.location.search);if(!t.get("example"))return;let n=parseInt(t.get("example")),r=["example_1","example_2","example_3","example_4","example_5","example_6","example_7"];n<0||n>r.length||(this.getFSUrl=`/assets/testing_data/example_${n}.json`)}renderModel(t){const r=new fC(t).processRoutingConfig();this.paper.setup(r)}debug_removeFlowsheetPosition(t){let n=5;t.cells.forEach(r=>{n+=150,r.position&&(r.position={x:n,y:void 0})})}informUser(t,n){switch(t){case 0:console.log(n);break;case 1:console.warn(n);break;case 2:console.error(n);break;default:console.log(n)}}refreshModel(t,n,r){this.informUser(0,"Refresh: save current values from model");let a=r.graph,i=JSON.stringify(a.toJSON());Zn.put(n,i,{headers:{"Content-Type":"application/json"}}).then(()=>(this.informUser(0,"Refresh: load new model values from Python program"),Zn.get(t,{responseType:"json"}))).then(o=>{console.log(o.data);const s=o.data;let l;this.isStreamTableShow&&this.viewInLogPanel.streamTable&&(l=document.getElementById("hide-fields-list")),l&&(l.innerHTML="",this.renderModel(s),this.stream_table.initTable(s)),ir("refreshFS",!0)}).catch(o=>{ir("refreshFS",!1),o.response?this.informUser(2,"Fatal error: cannot save current model before refresh: "+o.response.data):this.informUser(2,"Fatal error: Could not retrieve new model from Python program: "+o.message)})}getSaveTimeInterval(){let t=`${this.baseUrl}/setting?setting_key=${this._save_time_interval_key}`,n=this._default_save_time_interval;return Zn.get(t,{headers:{"Content-Type":"application/json"}}).then(r=>{r.data.value!="None"?n=r.data.value:this.informUser(1,`Warning: save_time_interval was not set correctly. Default time value of + ${this._default_save_time_interval.toString()} + will be set.`)}).catch(r=>{this.informUser(2,"Fatal error: cannot get setting value: "+r)}),n}graphChanged(){this._is_graph_changed=!0}setupGraphChangeChecker(t,n){let r=this.putFSUrl;var a=setInterval(()=>{this._is_graph_changed&&(this.saveModel(r,this.paper.graph),this._is_graph_changed=!1)},t);return a}saveModel(t,n){let r=JSON.stringify(n.toJSON());Zn.put(t,r,{headers:{"Content-Type":"application/json"}}).then(a=>{console.log("saved"),this.informUser(0,"Saved new model values"),ir("userSave",!0)}).catch(a=>{ir("userSave",!1),this.informUser(2,"Fatal error: cannot save current model: "+a)})}fvExtraContentCleanUp(){let t=document.getElementById("fv");if(!(!t||t.childNodes.length<=1))for(t.childNodes[(t==null?void 0:t.childNodes.length)-1];t.firstChild!==t.lastChild;)t.removeChild(t.firstChild)}}var xf={},da={},B1={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",o=0;o-1&&e%1==0&&e-1&&e%1==0&&e<=cP}var ph=fP,dP=Wi,hP=ph,pP=Sr,gP="[object Arguments]",mP="[object Array]",vP="[object Boolean]",yP="[object Date]",wP="[object Error]",_P="[object Function]",SP="[object Map]",bP="[object Number]",EP="[object Object]",TP="[object RegExp]",CP="[object Set]",OP="[object String]",xP="[object WeakMap]",PP="[object ArrayBuffer]",NP="[object DataView]",DP="[object Float32Array]",kP="[object Float64Array]",AP="[object Int8Array]",RP="[object Int16Array]",$P="[object Int32Array]",LP="[object Uint8Array]",MP="[object Uint8ClampedArray]",jP="[object Uint16Array]",FP="[object Uint32Array]",re={};re[DP]=re[kP]=re[AP]=re[RP]=re[$P]=re[LP]=re[MP]=re[jP]=re[FP]=!0;re[gP]=re[mP]=re[PP]=re[vP]=re[NP]=re[yP]=re[wP]=re[_P]=re[SP]=re[bP]=re[EP]=re[TP]=re[CP]=re[OP]=re[xP]=!1;function IP(e){return pP(e)&&hP(e.length)&&!!re[dP(e)]}var UP=IP;function zP(e){return function(t){return e(t)}}var gh=zP,qs={exports:{}};qs.exports;(function(e,t){var n=Z1,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,o=i&&n.process,s=function(){try{var l=a&&a.require&&a.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(qs,qs.exports);var mh=qs.exports,HP=UP,WP=gh,tm=mh,nm=tm&&tm.isTypedArray,GP=nm?WP(nm):HP,vh=GP,VP=Kx,qP=Pl,KP=wt,YP=Nl,XP=hh,JP=vh,QP=Object.prototype,BP=QP.hasOwnProperty;function ZP(e,t){var n=KP(e),r=!n&&qP(e),a=!n&&!r&&YP(e),i=!n&&!r&&!a&&JP(e),o=n||r||a||i,s=o?VP(e.length,String):[],l=s.length;for(var u in e)(t||BP.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||XP(u,l)))&&s.push(u);return s}var iw=ZP,eN=Object.prototype;function tN(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||eN;return e===n}var Dl=tN;function nN(e,t){return function(n){return e(t(n))}}var ow=nN,rN=ow,aN=rN(Object.keys,Object),iN=aN,oN=Dl,sN=iN,lN=Object.prototype,uN=lN.hasOwnProperty;function cN(e){if(!oN(e))return sN(e);var t=[];for(var n in Object(e))uN.call(e,n)&&n!="constructor"&&t.push(n);return t}var sw=cN,fN=tw,dN=ph;function hN(e){return e!=null&&dN(e.length)&&!fN(e)}var kl=hN,pN=iw,gN=sw,mN=kl;function vN(e){return mN(e)?pN(e):gN(e)}var br=vN,yN=Vx,wN=br;function _N(e,t){return e&&yN(e,t,wN)}var SN=_N,bN=kl;function EN(e,t){return function(n,r){if(n==null)return n;if(!bN(n))return e(n,r);for(var a=n.length,i=t?a:-1,o=Object(n);(t?i--:++i-1}var KN=qN,YN=Al;function XN(e,t){var n=this.__data__,r=YN(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var JN=XN,QN=RN,BN=zN,ZN=GN,eD=KN,tD=JN;function _a(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ts))return!1;var u=i.get(e),h=i.get(t);if(u&&h)return u==t&&h==e;var d=-1,p=!0,w=n&zk?new jk:void 0;for(i.set(e,t),i.set(t,e);++d(t==null&&(t=e()),t)}function c$(e,t){return e.filter(n=>n!==t)}function f$(e,t){const n=new Set,r=i=>n.add(i);e.forEach(r),t.forEach(r);const a=[];return n.forEach(i=>a.push(i)),a}class d${enter(t){const n=this.entered.length,r=a=>this.isNodeInDocument(a)&&(!a.contains||a.contains(t));return this.entered=f$(this.entered.filter(r),[t]),n===0&&this.entered.length>0}leave(t){const n=this.entered.length;return this.entered=c$(this.entered.filter(this.isNodeInDocument),t),n>0&&this.entered.length===0}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class h${initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(t=>{Object.defineProperty(this.item,t,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${t}" until the drop event.`),null}})})}loadDataTransfer(t){if(t){const n={};Object.keys(this.config.exposeProperties).forEach(r=>{const a=this.config.exposeProperties[r];a!=null&&(n[r]={value:a(t,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,n)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(t,n){return n===t.getSourceId()}endDrag(){}constructor(t){this.config=t,this.item={},this.initializeExposedProperties()}}const Ow="__NATIVE_FILE__",xw="__NATIVE_URL__",Pw="__NATIVE_TEXT__",Nw="__NATIVE_HTML__",Om=Object.freeze(Object.defineProperty({__proto__:null,FILE:Ow,HTML:Nw,TEXT:Pw,URL:xw},Symbol.toStringTag,{value:"Module"}));function Ku(e,t,n){const r=t.reduce((a,i)=>a||e.getData(i),"");return r??n}const Rf={[Ow]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[Nw]:{exposeProperties:{html:(e,t)=>Ku(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[xw]:{exposeProperties:{urls:(e,t)=>Ku(e,t,"").split(` +`),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[Pw]:{exposeProperties:{text:(e,t)=>Ku(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function p$(e,t){const n=Rf[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new h$(n);return r.loadDataTransfer(t),r}function Yu(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(Rf).filter(n=>{const r=Rf[n];return r!=null&&r.matchesTypes?r.matchesTypes.some(a=>t.indexOf(a)>-1):!1})[0]||null}const g$=Cw(()=>/firefox/i.test(navigator.userAgent)),Dw=Cw(()=>!!window.safari);class xm{interpolate(t){const{xs:n,ys:r,c1s:a,c2s:i,c3s:o}=this;let s=n.length-1;if(t===n[s])return r[s];let l=0,u=o.length-1,h;for(;l<=u;){h=Math.floor(.5*(l+u));const w=n[h];if(wt)u=h-1;else return r[h]}s=Math.max(0,u);const d=t-n[s],p=d*d;return r[s]+a[s]*d+i[s]*p+o[s]*d*p}constructor(t,n){const{length:r}=t,a=[];for(let w=0;wt[w]{let k=new xm([0,.5,1],[l.y,l.y/h*m,l.y+m-h]).interpolate(p);return Dw()&&i&&(k+=(window.devicePixelRatio-1)*m),k},b=()=>new xm([0,.5,1],[l.x,l.x/u*w,l.x+w-u]).interpolate(d),{offsetX:v,offsetY:y}=a,S=v===0||v,x=y===0||y;return{x:S?v:b(),y:x?y:_()}}let _$=class{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var t;return!((t=this.globalContext)===null||t===void 0)&&t.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var t;return((t=this.optionsArgs)===null||t===void 0?void 0:t.rootElement)||this.window}constructor(t,n){this.ownerDocument=null,this.globalContext=t,this.optionsArgs=n}};function S$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pm(e){for(var t=1;t{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDragSource(t,n,r){this.sourceNodes.set(t,n),this.sourceNodeOptions.set(t,r);const a=o=>this.handleDragStart(o,t),i=o=>this.handleSelectStart(o);return n.setAttribute("draggable","true"),n.addEventListener("dragstart",a),n.addEventListener("selectstart",i),()=>{this.sourceNodes.delete(t),this.sourceNodeOptions.delete(t),n.removeEventListener("dragstart",a),n.removeEventListener("selectstart",i),n.setAttribute("draggable","false")}}connectDropTarget(t,n){const r=o=>this.handleDragEnter(o,t),a=o=>this.handleDragOver(o,t),i=o=>this.handleDrop(o,t);return n.addEventListener("dragenter",r),n.addEventListener("dragover",a),n.addEventListener("drop",i),()=>{n.removeEventListener("dragenter",r),n.removeEventListener("dragover",a),n.removeEventListener("drop",i)}}addEventListeners(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const t=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(t);return Pm({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const t=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(t);return Pm({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const t=this.monitor.getItemType();return Object.keys(Om).some(n=>Om[n]===t)}beginDragNativeItem(t,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=p$(t,n),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(t){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t;const n=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var r;return(r=this.rootElement)===null||r===void 0?void 0:r.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},n)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var t;(t=this.window)===null||t===void 0||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(t,n){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}handleDragEnter(t,n){this.dragEnterTargetIds.unshift(n)}handleDragOver(t,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}handleDrop(t,n){this.dropTargetIds.unshift(n)}constructor(t,n,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=a=>{const i=this.sourceNodes.get(a);return i&&kw(i)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=a=>!!(a&&this.document&&this.document.body&&this.document.body.contains(a)),this.endDragIfSourceWasRemovedFromDOM=()=>{const a=this.currentDragSourceNode;a==null||this.isNodeInDocument(a)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=a=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(a||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=a=>{if(a.defaultPrevented)return;const{dragStartSourceIds:i}=this;this.dragStartSourceIds=null;const o=jo(a);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(i||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:o});const{dataTransfer:s}=a,l=Yu(s);if(this.monitor.isDragging()){if(s&&typeof s.setDragImage=="function"){const h=this.monitor.getSourceId(),d=this.sourceNodes.get(h),p=this.sourcePreviewNodes.get(h)||d;if(p){const{anchorX:w,anchorY:m,offsetX:_,offsetY:b}=this.getCurrentSourcePreviewNodeOptions(),S=w$(d,p,o,{anchorX:w,anchorY:m},{offsetX:_,offsetY:b});s.setDragImage(p,S.x,S.y)}}try{s==null||s.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(a.target);const{captureDraggingState:u}=this.getCurrentSourcePreviewNodeOptions();u?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(l)this.beginDragNativeItem(l);else{if(s&&!s.types&&(a.target&&!a.target.hasAttribute||!a.target.hasAttribute("draggable")))return;a.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=a=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var i;(i=this.currentNativeSource)===null||i===void 0||i.loadDataTransfer(a.dataTransfer)}if(!this.enterLeaveCounter.enter(a.target)||this.monitor.isDragging())return;const{dataTransfer:s}=a,l=Yu(s);l&&this.beginDragNativeItem(l,s)},this.handleTopDragEnter=a=>{const{dragEnterTargetIds:i}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=a.altKey,i.length>0&&this.actions.hover(i,{clientOffset:jo(a)}),i.some(s=>this.monitor.canDropOnTarget(s))&&(a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=a=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var i;(i=this.currentNativeSource)===null||i===void 0||i.loadDataTransfer(a.dataTransfer)}},this.handleTopDragOver=a=>{const{dragOverTargetIds:i}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect="none");return}this.altKeyPressed=a.altKey,this.lastClientOffset=jo(a),this.scheduleHover(i),(i||[]).some(s=>this.monitor.canDropOnTarget(s))?(a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?a.preventDefault():(a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=a=>{this.isDraggingNativeItem()&&a.preventDefault(),this.enterLeaveCounter.leave(a.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=a=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var i;a.preventDefault(),(i=this.currentNativeSource)===null||i===void 0||i.loadDataTransfer(a.dataTransfer)}else Yu(a.dataTransfer)&&a.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=a=>{const{dropTargetIds:i}=this;this.dropTargetIds=[],this.actions.hover(i,{clientOffset:jo(a)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=a=>{const i=a.target;typeof i.dragDrop=="function"&&(i.tagName==="INPUT"||i.tagName==="SELECT"||i.tagName==="TEXTAREA"||i.isContentEditable||(a.preventDefault(),i.dragDrop()))},this.options=new _$(n,r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new d$(this.isNodeInDocument)}}const E$=function(t,n,r){return new b$(t,n,r)};function G(e,t,...n){if(T$()&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){let r;if(t===void 0)r=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let a=0;r=new Error(t.replace(/%s/g,function(){return n[a++]})),r.name="Invariant Violation"}throw r.framesToPop=1,r}}function T$(){return typeof process<"u"&&process.env.NODE_ENV==="production"}var Dn;(function(e){e.mouse="mouse",e.touch="touch",e.keyboard="keyboard"})(Dn||(Dn={}));class C${get delay(){var t;return(t=this.args.delay)!==null&&t!==void 0?t:0}get scrollAngleRanges(){return this.args.scrollAngleRanges}get getDropTargetElementsAtPoint(){return this.args.getDropTargetElementsAtPoint}get ignoreContextMenu(){var t;return(t=this.args.ignoreContextMenu)!==null&&t!==void 0?t:!1}get enableHoverOutsideTarget(){var t;return(t=this.args.enableHoverOutsideTarget)!==null&&t!==void 0?t:!1}get enableKeyboardEvents(){var t;return(t=this.args.enableKeyboardEvents)!==null&&t!==void 0?t:!1}get enableMouseEvents(){var t;return(t=this.args.enableMouseEvents)!==null&&t!==void 0?t:!1}get enableTouchEvents(){var t;return(t=this.args.enableTouchEvents)!==null&&t!==void 0?t:!0}get touchSlop(){return this.args.touchSlop||0}get delayTouchStart(){var t,n,r,a;return(a=(r=(t=this.args)===null||t===void 0?void 0:t.delayTouchStart)!==null&&r!==void 0?r:(n=this.args)===null||n===void 0?void 0:n.delay)!==null&&a!==void 0?a:0}get delayMouseStart(){var t,n,r,a;return(a=(r=(t=this.args)===null||t===void 0?void 0:t.delayMouseStart)!==null&&r!==void 0?r:(n=this.args)===null||n===void 0?void 0:n.delay)!==null&&a!==void 0?a:0}get window(){if(this.context&&this.context.window)return this.context.window;if(typeof window<"u")return window}get document(){var t;if(!((t=this.context)===null||t===void 0)&&t.document)return this.context.document;if(this.window)return this.window.document}get rootElement(){var t;return((t=this.args)===null||t===void 0?void 0:t.rootElement)||this.document}constructor(t,n){this.args=t,this.context=n}}function O$(e,t,n,r){return Math.sqrt(Math.pow(Math.abs(n-e),2)+Math.pow(Math.abs(r-t),2))}function x$(e,t,n,r,a){if(!a)return!1;const i=Math.atan2(r-t,n-e)*180/Math.PI+180;for(let o=0;o=s.start)&&(s.end==null||i<=s.end))return!0}return!1}const P$={Left:1,Right:2,Center:4},N$={Left:0,Center:1,Right:2};function Xu(e){return e.button===void 0||e.button===N$.Left}function D$(e){return e.buttons===void 0||(e.buttons&P$.Left)===0}function Aw(e){return!!e.targetTouches}const k$=1;function A$(e){const t=e.nodeType===k$?e:e.parentElement;if(!t)return;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function R$(e,t){if(e.targetTouches.length===1)return Ys(e.targetTouches[0]);if(t&&e.touches.length===1&&e.touches[0].target===t.target)return Ys(e.touches[0])}function Ys(e,t){return Aw(e)?R$(e,t):{x:e.clientX,y:e.clientY}}const Nm=(()=>{let e=!1;try{addEventListener("test",()=>{},Object.defineProperty({},"passive",{get(){return e=!0,!0}}))}catch{}return e})(),Fa={[Dn.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[Dn.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[Dn.keyboard]:{keydown:"keydown"}};class li{profile(){var t;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:((t=this.dragOverTargetIds)===null||t===void 0?void 0:t.length)||0}}get document(){return this.options.document}setup(){const t=this.options.rootElement;t&&(G(!li.isSetUp,"Cannot have two Touch backends at the same time."),li.isSetUp=!0,this.addEventListener(t,"start",this.getTopMoveStartHandler()),this.addEventListener(t,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(t,"move",this.handleTopMove),this.addEventListener(t,"move",this.handleTopMoveCapture,!0),this.addEventListener(t,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(t,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(t,"keydown",this.handleCancelOnEscape,!0))}teardown(){const t=this.options.rootElement;t&&(li.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(t,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(t,"start",this.handleTopMoveStart),this.removeEventListener(t,"move",this.handleTopMoveCapture,!0),this.removeEventListener(t,"move",this.handleTopMove),this.removeEventListener(t,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(t,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(t,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}addEventListener(t,n,r,a=!1){const i=Nm?{capture:a,passive:!1}:a;this.listenerTypes.forEach(function(o){const s=Fa[o][n];s&&t.addEventListener(s,r,i)})}removeEventListener(t,n,r,a=!1){const i=Nm?{capture:a,passive:!1}:a;this.listenerTypes.forEach(function(o){const s=Fa[o][n];s&&t.removeEventListener(s,r,i)})}connectDragSource(t,n){const r=this.handleMoveStart.bind(this,t);return this.sourceNodes.set(t,n),this.addEventListener(n,"start",r),()=>{this.sourceNodes.delete(t),this.removeEventListener(n,"start",r)}}connectDragPreview(t,n,r){return this.sourcePreviewNodeOptions.set(t,r),this.sourcePreviewNodes.set(t,n),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDropTarget(t,n){const r=this.options.rootElement;if(!this.document||!r)return()=>{};const a=i=>{if(!this.document||!r||!this.monitor.isDragging())return;let o;switch(i.type){case Fa.mouse.move:o={x:i.clientX,y:i.clientY};break;case Fa.touch.move:var s,l;o={x:((s=i.touches[0])===null||s===void 0?void 0:s.clientX)||0,y:((l=i.touches[0])===null||l===void 0?void 0:l.clientY)||0};break}const u=o!=null?this.document.elementFromPoint(o.x,o.y):void 0,h=u&&n.contains(u);if(u===n||h)return this.handleMove(i,t)};return this.addEventListener(this.document.body,"move",a),this.targetNodes.set(t,n),()=>{this.document&&(this.targetNodes.delete(t),this.removeEventListener(this.document.body,"move",a))}}getTopMoveStartHandler(){return!this.options.delayTouchStart&&!this.options.delayMouseStart?this.handleTopMoveStart:this.handleTopMoveStartDelay}installSourceNodeRemovalObserver(t){this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=t,this.draggedSourceNodeRemovalObserver=new MutationObserver(()=>{t&&!t.parentElement&&(this.resurrectSourceNode(),this.uninstallSourceNodeRemovalObserver())}),!(!t||!t.parentElement)&&this.draggedSourceNodeRemovalObserver.observe(t.parentElement,{childList:!0})}resurrectSourceNode(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}uninstallSourceNodeRemovalObserver(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}constructor(t,n,r){this.getSourceClientOffset=a=>{const i=this.sourceNodes.get(a);return i&&A$(i)},this.handleTopMoveStartCapture=a=>{Xu(a)&&(this.moveStartSourceIds=[])},this.handleMoveStart=a=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(a)},this.handleTopMoveStart=a=>{if(!Xu(a))return;const i=Ys(a);i&&(Aw(a)&&(this.lastTargetTouchFallback=a.targetTouches[0]),this._mouseClientOffset=i),this.waitingForDelay=!1},this.handleTopMoveStartDelay=a=>{if(!Xu(a))return;const i=a.type===Fa.touch.start?this.options.delayTouchStart:this.options.delayMouseStart;this.timeout=setTimeout(this.handleTopMoveStart.bind(this,a),i),this.waitingForDelay=!0},this.handleTopMoveCapture=()=>{this.dragOverTargetIds=[]},this.handleMove=(a,i)=>{this.dragOverTargetIds&&this.dragOverTargetIds.unshift(i)},this.handleTopMove=a=>{if(this.timeout&&clearTimeout(this.timeout),!this.document||this.waitingForDelay)return;const{moveStartSourceIds:i,dragOverTargetIds:o}=this,s=this.options.enableHoverOutsideTarget,l=Ys(a,this.lastTargetTouchFallback);if(!l)return;if(this._isScrolling||!this.monitor.isDragging()&&x$(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,l.x,l.y,this.options.scrollAngleRanges)){this._isScrolling=!0;return}if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty("x")&&i&&O$(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,l.x,l.y)>(this.options.touchSlop?this.options.touchSlop:0)&&(this.moveStartSourceIds=void 0,this.actions.beginDrag(i,{clientOffset:this._mouseClientOffset,getSourceClientOffset:this.getSourceClientOffset,publishSource:!1})),!this.monitor.isDragging())return;const u=this.sourceNodes.get(this.monitor.getSourceId());this.installSourceNodeRemovalObserver(u),this.actions.publishDragSource(),a.cancelable&&a.preventDefault();const h=(o||[]).map(m=>this.targetNodes.get(m)).filter(m=>!!m),d=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(l.x,l.y,h):this.document.elementsFromPoint(l.x,l.y),p=[];for(const m in d){if(!d.hasOwnProperty(m))continue;let _=d[m];for(_!=null&&p.push(_);_;)_=_.parentElement,_&&p.indexOf(_)===-1&&p.push(_)}const w=p.filter(m=>h.indexOf(m)>-1).map(m=>this._getDropTargetId(m)).filter(m=>!!m).filter((m,_,b)=>b.indexOf(m)===_);if(s)for(const m in this.targetNodes){const _=this.targetNodes.get(m);if(u&&_&&_.contains(u)&&w.indexOf(m)===-1){w.unshift(m);break}}w.reverse(),this.actions.hover(w,{clientOffset:l})},this._getDropTargetId=a=>{const i=this.targetNodes.keys();let o=i.next();for(;o.done===!1;){const s=o.value;if(a===this.targetNodes.get(s))return s;o=i.next()}},this.handleTopMoveEndCapture=a=>{if(this._isScrolling=!1,this.lastTargetTouchFallback=void 0,!!D$(a)){if(!this.monitor.isDragging()||this.monitor.didDrop()){this.moveStartSourceIds=void 0;return}a.cancelable&&a.preventDefault(),this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.drop(),this.actions.endDrag()}},this.handleCancelOnEscape=a=>{a.key==="Escape"&&this.monitor.isDragging()&&(this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.endDrag())},this.options=new C$(r,n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(Dn.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(Dn.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(Dn.keyboard)}}const $$=function(t,n={},r={}){return new li(t,n,r)};var Rw=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},W=(e,t,n)=>(Rw(e,t,"read from private field"),n?n.call(e):t.get(e)),ct=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Qn=(e,t,n,r)=>(Rw(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Bn,L$=class{constructor(){ct(this,Bn,void 0),this.register=e=>{W(this,Bn).push(e)},this.unregister=e=>{let t;for(;(t=W(this,Bn).indexOf(e))!==-1;)W(this,Bn).splice(t,1)},this.backendChanged=e=>{for(let t of W(this,Bn))t.backendChanged(e)},Qn(this,Bn,[])}};Bn=new WeakMap;var Je,Ya,Qe,zt,cn,$f,Lf,Mf,cs,fs,Xa,$w=class ds{constructor(t,n,r){if(ct(this,Je,void 0),ct(this,Ya,void 0),ct(this,Qe,void 0),ct(this,zt,void 0),ct(this,cn,void 0),ct(this,$f,(a,i,o)=>{if(!o.backend)throw new Error(`You must specify a 'backend' property in your Backend entry: ${JSON.stringify(o)}`);let s=o.backend(a,i,o.options),l=o.id,u=!o.id&&s&&s.constructor;if(u&&(l=s.constructor.name),l)u&&console.warn(`Deprecation notice: You are using a pipeline which doesn't include backends' 'id'. + This might be unsupported in the future, please specify 'id' explicitely for every backend.`);else throw new Error(`You must specify an 'id' property in your Backend entry: ${JSON.stringify(o)} + see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-5xx`);if(W(this,Qe)[l])throw new Error(`You must specify a unique 'id' property in your Backend entry: + ${JSON.stringify(o)} (conflicts with: ${JSON.stringify(W(this,Qe)[l])})`);return{id:l,instance:s,preview:o.preview??!1,transition:o.transition,skipDispatchOnTransition:o.skipDispatchOnTransition??!1}}),this.setup=()=>{if(!(typeof window>"u")){if(ds.isSetUp)throw new Error("Cannot have two MultiBackends at the same time.");ds.isSetUp=!0,W(this,Lf).call(this,window),W(this,Qe)[W(this,Je)].instance.setup()}},this.teardown=()=>{typeof window>"u"||(ds.isSetUp=!1,W(this,Mf).call(this,window),W(this,Qe)[W(this,Je)].instance.teardown())},this.connectDragSource=(a,i,o)=>W(this,Xa).call(this,"connectDragSource",a,i,o),this.connectDragPreview=(a,i,o)=>W(this,Xa).call(this,"connectDragPreview",a,i,o),this.connectDropTarget=(a,i,o)=>W(this,Xa).call(this,"connectDropTarget",a,i,o),this.profile=()=>W(this,Qe)[W(this,Je)].instance.profile(),this.previewEnabled=()=>W(this,Qe)[W(this,Je)].preview,this.previewsList=()=>W(this,Ya),this.backendsList=()=>W(this,zt),ct(this,Lf,a=>{W(this,zt).forEach(i=>{i.transition&&a.addEventListener(i.transition.event,W(this,cs))})}),ct(this,Mf,a=>{W(this,zt).forEach(i=>{i.transition&&a.removeEventListener(i.transition.event,W(this,cs))})}),ct(this,cs,a=>{var o;let i=W(this,Je);if(W(this,zt).some(s=>s.id!==W(this,Je)&&s.transition&&s.transition.check(a)?(Qn(this,Je,s.id),!0):!1),W(this,Je)!==i){W(this,Qe)[i].instance.teardown(),Object.keys(W(this,cn)).forEach(h=>{let d=W(this,cn)[h];d.unsubscribe(),d.unsubscribe=W(this,fs).call(this,d.func,...d.args)}),W(this,Ya).backendChanged(this);let s=W(this,Qe)[W(this,Je)];if(s.instance.setup(),s.skipDispatchOnTransition)return;let l=a.constructor,u=new l(a.type,a);(o=a.target)==null||o.dispatchEvent(u)}}),ct(this,fs,(a,i,o,s)=>W(this,Qe)[W(this,Je)].instance[a](i,o,s)),ct(this,Xa,(a,i,o,s)=>{let l=`${a}_${i}`,u=W(this,fs).call(this,a,i,o,s);return W(this,cn)[l]={func:a,args:[i,o,s],unsubscribe:u},()=>{W(this,cn)[l].unsubscribe(),delete W(this,cn)[l]}}),!r||!r.backends||r.backends.length<1)throw new Error(`You must specify at least one Backend, if you are coming from 2.x.x (or don't understand this error) + see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-2xx`);Qn(this,Ya,new L$),Qn(this,Qe,{}),Qn(this,zt,[]),r.backends.forEach(a=>{let i=W(this,$f).call(this,t,n,a);W(this,Qe)[i.id]=i,W(this,zt).push(i)}),Qn(this,Je,W(this,zt)[0].id),Qn(this,cn,{})}};Je=new WeakMap,Ya=new WeakMap,Qe=new WeakMap,zt=new WeakMap,cn=new WeakMap,$f=new WeakMap,Lf=new WeakMap,Mf=new WeakMap,cs=new WeakMap,fs=new WeakMap,Xa=new WeakMap,$w.isSetUp=!1;var M$=$w,Lw=(e,t,n)=>new M$(e,t,n),qi=(e,t)=>({event:e,check:t}),Mw=qi("touchstart",e=>{let t=e;return t.touches!==null&&t.touches!==void 0}),j$=qi("dragstart",e=>e.type.indexOf("drag")!==-1||e.type.indexOf("drop")!==-1),F$=qi("mousedown",e=>e.type.indexOf("touch")===-1&&e.type.indexOf("mouse")!==-1),jw=qi("pointerdown",e=>e.pointerType=="mouse"),I$={backends:[{id:"html5",backend:E$,transition:jw},{id:"touch",backend:$$,options:{enableMouseEvents:!0},preview:!0,transition:Mw}]};const U$=Object.freeze(Object.defineProperty({__proto__:null,HTML5toTouch:I$},Symbol.toStringTag,{value:"Module"})),z$=Bf(U$),Ki=P.createContext({dragDropManager:void 0});function ut(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Dm=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Ju=function(){return Math.random().toString(36).substring(7).split("").join(".")},km={INIT:"@@redux/INIT"+Ju(),REPLACE:"@@redux/REPLACE"+Ju(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ju()}};function H$(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Fw(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(ut(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(ut(1));return n(Fw)(e,t)}if(typeof e!="function")throw new Error(ut(2));var a=e,i=t,o=[],s=o,l=!1;function u(){s===o&&(s=o.slice())}function h(){if(l)throw new Error(ut(3));return i}function d(_){if(typeof _!="function")throw new Error(ut(4));if(l)throw new Error(ut(5));var b=!0;return u(),s.push(_),function(){if(b){if(l)throw new Error(ut(6));b=!1,u();var y=s.indexOf(_);s.splice(y,1),o=null}}}function p(_){if(!H$(_))throw new Error(ut(7));if(typeof _.type>"u")throw new Error(ut(8));if(l)throw new Error(ut(9));try{l=!0,i=a(i,_)}finally{l=!1}for(var b=o=s,v=0;vr&&r[a]?r[a]:n||null,e)}function G$(e,t){return e.filter(n=>n!==t)}function Iw(e){return typeof e=="object"}function V$(e,t){const n=new Map,r=i=>{n.set(i,n.has(i)?n.get(i)+1:1)};e.forEach(r),t.forEach(r);const a=[];return n.forEach((i,o)=>{i===1&&a.push(o)}),a}function q$(e,t){return e.filter(n=>t.indexOf(n)>-1)}const Rh="dnd-core/INIT_COORDS",Fl="dnd-core/BEGIN_DRAG",$h="dnd-core/PUBLISH_DRAG_SOURCE",Il="dnd-core/HOVER",Ul="dnd-core/DROP",zl="dnd-core/END_DRAG";function Am(e,t){return{type:Rh,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const K$={type:Rh,payload:{clientOffset:null,sourceClientOffset:null}};function Y$(e){return function(n=[],r={publishSource:!0}){const{publishSource:a=!0,clientOffset:i,getSourceClientOffset:o}=r,s=e.getMonitor(),l=e.getRegistry();e.dispatch(Am(i)),X$(n,s,l);const u=B$(n,s);if(u==null){e.dispatch(K$);return}let h=null;if(i){if(!o)throw new Error("getSourceClientOffset must be defined");J$(o),h=o(u)}e.dispatch(Am(i,h));const p=l.getSource(u).beginDrag(s,u);if(p==null)return;Q$(p),l.pinSource(u);const w=l.getSourceType(u);return{type:Fl,payload:{itemType:w,item:p,sourceId:u,clientOffset:i||null,sourceClientOffset:h||null,isSourcePublic:!!a}}}}function X$(e,t,n){G(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(r){G(n.getSource(r),"Expected sourceIds to be registered.")})}function J$(e){G(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function Q$(e){G(Iw(e),"Item must be an object.")}function B$(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}function Z$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eL(e){for(var t=1;t{const l=rL(o,s,a,r),u={type:Ul,payload:{dropResult:eL({},n,l)}};e.dispatch(u)})}}function nL(e){G(e.isDragging(),"Cannot call drop while not dragging."),G(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function rL(e,t,n,r){const a=n.getTarget(e);let i=a?a.drop(r,e):void 0;return aL(i),typeof i>"u"&&(i=t===0?{}:r.getDropResult()),i}function aL(e){G(typeof e>"u"||Iw(e),"Drop result must either be an object or undefined.")}function iL(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function oL(e){return function(){const n=e.getMonitor(),r=e.getRegistry();sL(n);const a=n.getSourceId();return a!=null&&(r.getSource(a,!0).endDrag(n,a),r.unpinSource()),{type:zl}}}function sL(e){G(e.isDragging(),"Cannot call endDrag while not dragging.")}function jf(e,t){return t===null?e===null:Array.isArray(e)?e.some(n=>n===t):e===t}function lL(e){return function(n,{clientOffset:r}={}){uL(n);const a=n.slice(0),i=e.getMonitor(),o=e.getRegistry(),s=i.getItemType();return fL(a,o,s),cL(a,i,o),dL(a,i,o),{type:Il,payload:{targetIds:a,clientOffset:r||null}}}}function uL(e){G(Array.isArray(e),"Expected targetIds to be an array.")}function cL(e,t,n){G(t.isDragging(),"Cannot call hover while not dragging."),G(!t.didDrop(),"Cannot call hover after drop.");for(let r=0;r=0;r--){const a=e[r],i=t.getTargetType(a);jf(i,n)||e.splice(r,1)}}function dL(e,t,n){e.forEach(function(r){n.getTarget(r).hover(t,r)})}function hL(e){return function(){if(e.getMonitor().isDragging())return{type:$h}}}function pL(e){return{beginDrag:Y$(e),publishDragSource:hL(e),hover:lL(e),drop:tL(e),endDrag:oL(e)}}class gL{receiveBackend(t){this.backend=t}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const t=this,{dispatch:n}=this.store;function r(i){return(...o)=>{const s=i.apply(t,o);typeof s<"u"&&n(s)}}const a=pL(this);return Object.keys(a).reduce((i,o)=>{const s=a[o];return i[o]=r(s),i},{})}dispatch(t){this.store.dispatch(t)}constructor(t,n){this.isSetUp=!1,this.handleRefCountChange=()=>{const r=this.store.getState().refCount>0;this.backend&&(r&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!r&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=t,this.monitor=n,t.subscribe(this.handleRefCountChange)}}function mL(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Uw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function vL(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return!t||!n||!r?null:Uw(mL(t,r),n)}function yL(e){const{clientOffset:t,initialClientOffset:n}=e;return!t||!n?null:Uw(t,n)}const ui=[],Lh=[];ui.__IS_NONE__=!0;Lh.__IS_ALL__=!0;function wL(e,t){return e===ui?!1:e===Lh||typeof t>"u"?!0:q$(t,e).length>0}class _L{subscribeToStateChange(t,n={}){const{handlerIds:r}=n;G(typeof t=="function","listener must be a function."),G(typeof r>"u"||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let a=this.store.getState().stateId;const i=()=>{const o=this.store.getState(),s=o.stateId;try{s===a||s===a+1&&!wL(o.dirtyHandlerIds,r)||t()}finally{a=s}};return this.store.subscribe(i)}subscribeToOffsetChange(t){G(typeof t=="function","listener must be a function.");let n=this.store.getState().dragOffset;const r=()=>{const a=this.store.getState().dragOffset;a!==n&&(n=a,t())};return this.store.subscribe(r)}canDragSource(t){if(!t)return!1;const n=this.registry.getSource(t);return G(n,`Expected to find a valid source. sourceId=${t}`),this.isDragging()?!1:n.canDrag(this,t)}canDropOnTarget(t){if(!t)return!1;const n=this.registry.getTarget(t);if(G(n,`Expected to find a valid target. targetId=${t}`),!this.isDragging()||this.didDrop())return!1;const r=this.registry.getTargetType(t),a=this.getItemType();return jf(r,a)&&n.canDrop(this,t)}isDragging(){return!!this.getItemType()}isDraggingSource(t){if(!t)return!1;const n=this.registry.getSource(t,!0);if(G(n,`Expected to find a valid source. sourceId=${t}`),!this.isDragging()||!this.isSourcePublic())return!1;const r=this.registry.getSourceType(t),a=this.getItemType();return r!==a?!1:n.isDragging(this,t)}isOverTarget(t,n={shallow:!1}){if(!t)return!1;const{shallow:r}=n;if(!this.isDragging())return!1;const a=this.registry.getTargetType(t),i=this.getItemType();if(i&&!jf(a,i))return!1;const o=this.getTargetIds();if(!o.length)return!1;const s=o.indexOf(t);return r?s===o.length-1:s>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return vL(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return yL(this.store.getState().dragOffset)}constructor(t,n){this.store=t,this.registry=n}}const Rm=typeof global<"u"?global:self,zw=Rm.MutationObserver||Rm.WebKitMutationObserver;function Hw(e){return function(){const n=setTimeout(a,0),r=setInterval(a,50);function a(){clearTimeout(n),clearInterval(r),e()}}}function SL(e){let t=1;const n=new zw(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}const bL=typeof zw=="function"?SL:Hw;class EL{enqueueTask(t){const{queue:n,requestFlush:r}=this;n.length||(r(),this.flushing=!0),n[n.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.indexthis.capacity){for(let r=0,a=t.length-this.index;r{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=bL(this.flush),this.requestErrorThrow=Hw(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class TL{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,n){this.onError=t,this.release=n,this.task=null}}class CL{create(t){const n=this.freeTasks,r=n.length?n.pop():new TL(this.onError,a=>n[n.length]=a);return r.task=t,r}constructor(t){this.onError=t,this.freeTasks=[]}}const Ww=new EL,OL=new CL(Ww.registerPendingError);function xL(e){Ww.enqueueTask(OL.create(e))}const Mh="dnd-core/ADD_SOURCE",jh="dnd-core/ADD_TARGET",Fh="dnd-core/REMOVE_SOURCE",Hl="dnd-core/REMOVE_TARGET";function PL(e){return{type:Mh,payload:{sourceId:e}}}function NL(e){return{type:jh,payload:{targetId:e}}}function DL(e){return{type:Fh,payload:{sourceId:e}}}function kL(e){return{type:Hl,payload:{targetId:e}}}function AL(e){G(typeof e.canDrag=="function","Expected canDrag to be a function."),G(typeof e.beginDrag=="function","Expected beginDrag to be a function."),G(typeof e.endDrag=="function","Expected endDrag to be a function.")}function RL(e){G(typeof e.canDrop=="function","Expected canDrop to be a function."),G(typeof e.hover=="function","Expected hover to be a function."),G(typeof e.drop=="function","Expected beginDrag to be a function.")}function Ff(e,t){if(t&&Array.isArray(e)){e.forEach(n=>Ff(n,!1));return}G(typeof e=="string"||typeof e=="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var ht;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(ht||(ht={}));let $L=0;function LL(){return $L++}function ML(e){const t=LL().toString();switch(e){case ht.SOURCE:return`S${t}`;case ht.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function $m(e){switch(e[0]){case"S":return ht.SOURCE;case"T":return ht.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function Lm(e,t){const n=e.entries();let r=!1;do{const{done:a,value:[,i]}=n.next();if(i===t)return!0;r=!!a}while(!r);return!1}class jL{addSource(t,n){Ff(t),AL(n);const r=this.addHandler(ht.SOURCE,t,n);return this.store.dispatch(PL(r)),r}addTarget(t,n){Ff(t,!0),RL(n);const r=this.addHandler(ht.TARGET,t,n);return this.store.dispatch(NL(r)),r}containsHandler(t){return Lm(this.dragSources,t)||Lm(this.dropTargets,t)}getSource(t,n=!1){return G(this.isSourceId(t),"Expected a valid source ID."),n&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return G(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return G(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return G(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return $m(t)===ht.SOURCE}isTargetId(t){return $m(t)===ht.TARGET}removeSource(t){G(this.getSource(t),"Expected an existing source."),this.store.dispatch(DL(t)),xL(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){G(this.getTarget(t),"Expected an existing target."),this.store.dispatch(kL(t)),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){const n=this.getSource(t);G(n,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=n}unpinSource(){G(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,n,r){const a=ML(t);return this.types.set(a,n),t===ht.SOURCE?this.dragSources.set(a,r):t===ht.TARGET&&this.dropTargets.set(a,r),a}constructor(t){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}}const FL=(e,t)=>e===t;function IL(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function UL(e,t,n=FL){if(e.length!==t.length)return!1;for(let r=0;r0||!UL(n,r)))return ui;const o=r[r.length-1],s=n[n.length-1];return o!==s&&(o&&a.push(o),s&&a.push(s)),a}function HL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WL(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nM(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}let jm=0;const hs=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var Gw=P.memo(function(t){var{children:n}=t,r=tM(t,["children"]);const[a,i]=rM(r);return P.useEffect(()=>{if(i){const o=Vw();return++jm,()=>{--jm===0&&(o[hs]=null)}}},[]),T.jsx(Ki.Provider,{value:a,children:n})});function rM(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=aM(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}function aM(e,t=Vw(),n,r){const a=t;return a[hs]||(a[hs]={dragDropManager:ZL(e,t,n,r)}),a[hs]}function Vw(){return typeof global<"u"?global:window}const iM=P.memo(function({connect:t,src:n}){return P.useEffect(()=>{if(typeof Image>"u")return;let r=!1;const a=new Image;return a.src=n,a.onload=()=>{t(a),r=!0},()=>{r&&t(null)}}),null});var oM=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,a,i;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(a=r;a--!==0;)if(!e(t[a],n[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(i=Object.keys(t),r=i.length,r!==Object.keys(n).length)return!1;for(a=r;a--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[a]))return!1;for(a=r;a--!==0;){var o=i[a];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n};const sM=nl(oM),mr=typeof window<"u"?P.useLayoutEffect:P.useEffect;function qw(e,t,n){const[r,a]=P.useState(()=>t(e)),i=P.useCallback(()=>{const o=t(e);sM(r,o)||(a(o),n&&n())},[r,e,n]);return mr(i),[r,i]}function lM(e,t,n){const[r,a]=qw(e,t,n);return mr(function(){const o=e.getHandlerId();if(o!=null)return e.subscribeToStateChange(a,{handlerIds:[o]})},[e,a]),r}function Kw(e,t,n){return lM(t,e||(()=>({})),()=>n.reconnect())}function Yw(e,t){const n=[...t||[]];return t==null&&typeof e!="function"&&n.push(e),P.useMemo(()=>typeof e=="function"?e():e,n)}function uM(e){return P.useMemo(()=>e.hooks.dragSource(),[e])}function cM(e){return P.useMemo(()=>e.hooks.dragPreview(),[e])}let Qu=!1,Bu=!1;class fM{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){G(!Qu,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Qu=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Qu=!1}}isDragging(){if(!this.sourceId)return!1;G(!Bu,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Bu=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Bu=!1}}subscribeToStateChange(t,n){return this.internalMonitor.subscribeToStateChange(t,n)}isDraggingSource(t){return this.internalMonitor.isDraggingSource(t)}isOverTarget(t,n){return this.internalMonitor.isOverTarget(t,n)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(t){return this.internalMonitor.subscribeToOffsetChange(t)}canDragSource(t){return this.internalMonitor.canDragSource(t)}canDropOnTarget(t){return this.internalMonitor.canDropOnTarget(t)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.sourceId=null,this.internalMonitor=t.getMonitor()}}let Zu=!1;class dM{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,n){return this.internalMonitor.subscribeToStateChange(t,n)}canDrop(){if(!this.targetId)return!1;G(!Zu,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return Zu=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Zu=!1}}isOver(t){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,t):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.targetId=null,this.internalMonitor=t.getMonitor()}}function hM(e,t,n){const r=n.getRegistry(),a=r.addTarget(e,t);return[a,()=>r.removeTarget(a)]}function pM(e,t,n){const r=n.getRegistry(),a=r.addSource(e,t);return[a,()=>r.removeSource(a)]}function If(e,t,n,r){let a=n?n.call(r,e,t):void 0;if(a!==void 0)return!!a;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const i=Object.keys(e),o=Object.keys(t);if(i.length!==o.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let l=0;l, or turn it into a drag source or a drop target itself.`)}function mM(e){return(t=null,n=null)=>{if(!P.isValidElement(t)){const i=t;return e(i,n),i}const r=t;return gM(r),vM(r,n?i=>e(i,n):e)}}function Xw(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const a=mM(r);t[n]=()=>a}}),t}function Fm(e,t){typeof e=="function"?e(t):e.current=t}function vM(e,t){const n=e.ref;return G(typeof n!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a or
. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?P.cloneElement(e,{ref:r=>{Fm(n,r),Fm(t,r)}}):P.cloneElement(e,{ref:t})}class yM{receiveHandlerId(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(t){this.dragSourceOptionsInternal=t}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(t){this.dragPreviewOptionsInternal=t}reconnect(){const t=this.reconnectDragSource();this.reconnectDragPreview(t)}reconnectDragSource(){const t=this.dragSource,n=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return n&&this.disconnectDragSource(),this.handlerId?t?(n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)),n):(this.lastConnectedDragSource=t,n):n}reconnectDragPreview(t=!1){const n=this.dragPreview,r=t||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(r&&this.disconnectDragPreview(),!!this.handlerId){if(!n){this.lastConnectedDragPreview=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=n,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,n,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!If(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!If(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(t){this.hooks=Xw({dragSource:(n,r)=>{this.clearDragSource(),this.dragSourceOptions=r||null,Uf(n)?this.dragSourceRef=n:this.dragSourceNode=n,this.reconnectDragSource()},dragPreview:(n,r)=>{this.clearDragPreview(),this.dragPreviewOptions=r||null,Uf(n)?this.dragPreviewRef=n:this.dragPreviewNode=n,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}}class wM{get connectTarget(){return this.dropTarget}reconnect(){const t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();const n=this.dropTarget;if(this.handlerId){if(!n){this.lastConnectedDropTarget=n;return}t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=n,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,n,this.dropTargetOptions))}}receiveHandlerId(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(t){this.dropTargetOptionsInternal=t}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!If(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(t){this.hooks=Xw({dropTarget:(n,r)=>{this.clearDropTarget(),this.dropTargetOptions=r,Uf(n)?this.dropTargetRef=n:this.dropTargetNode=n,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}}function Hn(){const{dragDropManager:e}=P.useContext(Ki);return G(e!=null,"Expected drag drop context"),e}function _M(e,t){const n=Hn(),r=P.useMemo(()=>new yM(n.getBackend()),[n]);return mr(()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource()),[r,e]),mr(()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,t]),r}function SM(){const e=Hn();return P.useMemo(()=>new fM(e),[e])}class bM{beginDrag(){const t=this.spec,n=this.monitor;let r=null;return typeof t.item=="object"?r=t.item:typeof t.item=="function"?r=t.item(n):r={},r??null}canDrag(){const t=this.spec,n=this.monitor;return typeof t.canDrag=="boolean"?t.canDrag:typeof t.canDrag=="function"?t.canDrag(n):!0}isDragging(t,n){const r=this.spec,a=this.monitor,{isDragging:i}=r;return i?i(a):n===t.getSourceId()}endDrag(){const t=this.spec,n=this.monitor,r=this.connector,{end:a}=t;a&&a(n.getItem(),n),r.reconnect()}constructor(t,n,r){this.spec=t,this.monitor=n,this.connector=r}}function EM(e,t,n){const r=P.useMemo(()=>new bM(e,t,n),[t,n]);return P.useEffect(()=>{r.spec=e},[e]),r}function TM(e){return P.useMemo(()=>{const t=e.type;return G(t!=null,"spec.type must be defined"),t},[e])}function CM(e,t,n){const r=Hn(),a=EM(e,t,n),i=TM(e);mr(function(){if(i!=null){const[s,l]=pM(i,a,r);return t.receiveHandlerId(s),n.receiveHandlerId(s),l}},[r,t,n,a,i])}function Jw(e,t){const n=Yw(e,t);G(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const r=SM(),a=_M(n.options,n.previewOptions);return CM(n,r,a),[Kw(n.collect,r,a),uM(a),cM(a)]}function Qw(e){const n=Hn().getMonitor(),[r,a]=qw(n,e);return P.useEffect(()=>n.subscribeToOffsetChange(a)),P.useEffect(()=>n.subscribeToStateChange(a)),r}function OM(e){return P.useMemo(()=>e.hooks.dropTarget(),[e])}function xM(e){const t=Hn(),n=P.useMemo(()=>new wM(t.getBackend()),[t]);return mr(()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget()),[e]),n}function PM(){const e=Hn();return P.useMemo(()=>new dM(e),[e])}function NM(e){const{accept:t}=e;return P.useMemo(()=>(G(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class DM{canDrop(){const t=this.spec,n=this.monitor;return t.canDrop?t.canDrop(n.getItem(),n):!0}hover(){const t=this.spec,n=this.monitor;t.hover&&t.hover(n.getItem(),n)}drop(){const t=this.spec,n=this.monitor;if(t.drop)return t.drop(n.getItem(),n)}constructor(t,n){this.spec=t,this.monitor=n}}function kM(e,t){const n=P.useMemo(()=>new DM(e,t),[t]);return P.useEffect(()=>{n.spec=e},[e]),n}function AM(e,t,n){const r=Hn(),a=kM(e,t),i=NM(e);mr(function(){const[s,l]=hM(i,a,r);return t.receiveHandlerId(s),n.receiveHandlerId(s),l},[r,t,a,n,i.map(o=>o.toString()).join("|")])}function Bw(e,t){const n=Yw(e,t),r=PM(),a=xM(n.options);return AM(n,r,a),[Kw(n.collect,r,a),OM(a)]}const RM=Object.freeze(Object.defineProperty({__proto__:null,DndContext:Ki,DndProvider:Gw,DragPreviewImage:iM,useDrag:Jw,useDragDropManager:Hn,useDragLayer:Qw,useDrop:Bw},Symbol.toStringTag,{value:"Module"})),Wl=Bf(RM);var zf=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),$M=e=>{let t=e.getInitialClientOffset(),n=e.getInitialSourceClientOffset();return t===null||n===null?{x:0,y:0}:zf(t,n)},LM=(e,t)=>{let n=e.getClientOffset();if(n===null)return null;if(!t.current||!t.current.getBoundingClientRect)return zf(n,$M(e));let r=t.current.getBoundingClientRect(),a={x:r.width/2,y:r.height/2};return zf(n,a)},MM=e=>{let t=`translate(${e.x.toFixed(1)}px, ${e.y.toFixed(1)}px)`;return{pointerEvents:"none",position:"fixed",top:0,left:0,transform:t,WebkitTransform:t}},Zw=()=>{let e=P.useRef(null),t=Qw(n=>({currentOffset:LM(n,e),isDragging:n.isDragging(),itemType:n.getItemType(),item:n.getItem(),monitor:n}));return!t.isDragging||t.currentOffset===null?{display:!1}:{display:!0,itemType:t.itemType,item:t.item,style:MM(t.currentOffset),monitor:t.monitor,ref:e}},Ih=P.createContext(void 0),jM=e=>{let t=Zw();if(!t.display)return null;let{display:n,...r}=t,a;return"children"in e?typeof e.children=="function"?a=e.children(r):a=e.children:a=e.generator(r),Sn.createElement(Ih.Provider,{value:r},a)},e_=P.createContext(null),FM=({portal:e,...t})=>{let[n,r]=P.useState(null);return Sn.createElement(e_.Provider,{value:e??n},Sn.createElement(Gw,{backend:Lw,...t}),e?null:Sn.createElement("div",{ref:r}))},t_=()=>{let[e,t]=P.useState(!1),n=P.useContext(Ki);return P.useEffect(()=>{var i;let r=(i=n==null?void 0:n.dragDropManager)==null?void 0:i.getBackend(),a={backendChanged:o=>{t(o.previewEnabled())}};return t(r.previewEnabled()),r.previewsList().register(a),()=>{r.previewsList().unregister(a)}},[n,n.dragDropManager]),e},n_=e=>{let t=t_(),n=P.useContext(e_);if(!t)return null;let r=Sn.createElement(jM,{...e});return n!==null?Q0.createPortal(r,n):r};n_.Context=Ih;var IM=(e,t,n,r)=>{let a=n.getBackend();n.receiveBackend(r);let i=t(e);return n.receiveBackend(a),i},r_=(e,t)=>{var s;let n=P.useContext(Ki),r=(s=n==null?void 0:n.dragDropManager)==null?void 0:s.getBackend();if(r===void 0)throw new Error("could not find backend, make sure you are using a ");let a=t(e),i={},o=r.backendsList();for(let l of o)i[l.id]=IM(e,t,n.dragDropManager,l.instance);return[a,i]},UM=e=>r_(e,Jw),zM=e=>r_(e,Bw),HM=()=>{let e=t_(),t=Zw();return e?t:{display:!1}};const WM=Object.freeze(Object.defineProperty({__proto__:null,DndProvider:FM,HTML5DragTransition:j$,MouseTransition:F$,MultiBackend:Lw,PointerTransition:jw,Preview:n_,PreviewContext:Ih,TouchTransition:Mw,createTransition:qi,useMultiDrag:UM,useMultiDrop:zM,usePreview:HM},Symbol.toStringTag,{value:"Module"})),GM=Bf(WM);var a_={},Gl={},Vl={};Object.defineProperty(Vl,"__esModule",{value:!0});Vl.default=qM;let Fo;const VM=new Uint8Array(16);function qM(){if(!Fo&&(Fo=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Fo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Fo(VM)}var Wn={},Er={},ql={};Object.defineProperty(ql,"__esModule",{value:!0});ql.default=void 0;var KM=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;ql.default=KM;Object.defineProperty(Er,"__esModule",{value:!0});Er.default=void 0;var YM=XM(ql);function XM(e){return e&&e.__esModule?e:{default:e}}function JM(e){return typeof e=="string"&&YM.default.test(e)}var QM=JM;Er.default=QM;Object.defineProperty(Wn,"__esModule",{value:!0});Wn.default=void 0;Wn.unsafeStringify=i_;var BM=ZM(Er);function ZM(e){return e&&e.__esModule?e:{default:e}}const Te=[];for(let e=0;e<256;++e)Te.push((e+256).toString(16).slice(1));function i_(e,t=0){return Te[e[t+0]]+Te[e[t+1]]+Te[e[t+2]]+Te[e[t+3]]+"-"+Te[e[t+4]]+Te[e[t+5]]+"-"+Te[e[t+6]]+Te[e[t+7]]+"-"+Te[e[t+8]]+Te[e[t+9]]+"-"+Te[e[t+10]]+Te[e[t+11]]+Te[e[t+12]]+Te[e[t+13]]+Te[e[t+14]]+Te[e[t+15]]}function e5(e,t=0){const n=i_(e,t);if(!(0,BM.default)(n))throw TypeError("Stringified UUID is invalid");return n}var t5=e5;Wn.default=t5;Object.defineProperty(Gl,"__esModule",{value:!0});Gl.default=void 0;var n5=a5(Vl),r5=Wn;function a5(e){return e&&e.__esModule?e:{default:e}}let Im,ec,tc=0,nc=0;function i5(e,t,n){let r=t&&n||0;const a=t||new Array(16);e=e||{};let i=e.node||Im,o=e.clockseq!==void 0?e.clockseq:ec;if(i==null||o==null){const p=e.random||(e.rng||n5.default)();i==null&&(i=Im=[p[0]|1,p[1],p[2],p[3],p[4],p[5]]),o==null&&(o=ec=(p[6]<<8|p[7])&16383)}let s=e.msecs!==void 0?e.msecs:Date.now(),l=e.nsecs!==void 0?e.nsecs:nc+1;const u=s-tc+(l-nc)/1e4;if(u<0&&e.clockseq===void 0&&(o=o+1&16383),(u<0||s>tc)&&e.nsecs===void 0&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");tc=s,nc=l,ec=o,s+=122192928e5;const h=((s&268435455)*1e4+l)%4294967296;a[r++]=h>>>24&255,a[r++]=h>>>16&255,a[r++]=h>>>8&255,a[r++]=h&255;const d=s/4294967296*1e4&268435455;a[r++]=d>>>8&255,a[r++]=d&255,a[r++]=d>>>24&15|16,a[r++]=d>>>16&255,a[r++]=o>>>8|128,a[r++]=o&255;for(let p=0;p<6;++p)a[r+p]=i[p];return t||(0,r5.unsafeStringify)(a)}var o5=i5;Gl.default=o5;var Kl={},jn={},Yi={};Object.defineProperty(Yi,"__esModule",{value:!0});Yi.default=void 0;var s5=l5(Er);function l5(e){return e&&e.__esModule?e:{default:e}}function u5(e){if(!(0,s5.default)(e))throw TypeError("Invalid UUID");let t;const n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=t&255,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=t&255,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=t&255,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=t&255,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=t&255,n}var c5=u5;Yi.default=c5;Object.defineProperty(jn,"__esModule",{value:!0});jn.URL=jn.DNS=void 0;jn.default=g5;var f5=Wn,d5=h5(Yi);function h5(e){return e&&e.__esModule?e:{default:e}}function p5(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n>5]>>>a%32&255,o=parseInt(r.charAt(i>>>4&15)+r.charAt(i&15),16);t.push(o)}return t}function l_(e){return(e+64>>>9<<4)+14+1}function y5(e,t){e[t>>5]|=128<>5]|=(e[r/8]&255)<>16)+(t>>16)+(n>>16)<<16|n&65535}function _5(e,t){return e<>>32-t}function Xl(e,t,n,r,a,i){return _n(_5(_n(_n(t,e),_n(r,i)),a),n)}function ke(e,t,n,r,a,i,o){return Xl(t&n|~t&r,e,t,a,i,o)}function Ae(e,t,n,r,a,i,o){return Xl(t&r|n&~r,e,t,a,i,o)}function Re(e,t,n,r,a,i,o){return Xl(t^n^r,e,t,a,i,o)}function $e(e,t,n,r,a,i,o){return Xl(n^(t|~r),e,t,a,i,o)}var S5=m5;Yl.default=S5;Object.defineProperty(Kl,"__esModule",{value:!0});Kl.default=void 0;var b5=u_(jn),E5=u_(Yl);function u_(e){return e&&e.__esModule?e:{default:e}}const T5=(0,b5.default)("v3",48,E5.default);var C5=T5;Kl.default=C5;var Jl={},Ql={};Object.defineProperty(Ql,"__esModule",{value:!0});Ql.default=void 0;const O5=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var x5={randomUUID:O5};Ql.default=x5;Object.defineProperty(Jl,"__esModule",{value:!0});Jl.default=void 0;var Um=c_(Ql),P5=c_(Vl),N5=Wn;function c_(e){return e&&e.__esModule?e:{default:e}}function D5(e,t,n){if(Um.default.randomUUID&&!t&&!e)return Um.default.randomUUID();e=e||{};const r=e.random||(e.rng||P5.default)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let a=0;a<16;++a)t[n+a]=r[a];return t}return(0,N5.unsafeStringify)(r)}var k5=D5;Jl.default=k5;var Bl={},Zl={};Object.defineProperty(Zl,"__esModule",{value:!0});Zl.default=void 0;function A5(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function rc(e,t){return e<>>32-t}function R5(e){const t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){const o=unescape(encodeURIComponent(e));e=[];for(let s=0;s>>0;p=d,d=h,h=rc(u,30)>>>0,u=l,l=_}n[0]=n[0]+l>>>0,n[1]=n[1]+u>>>0,n[2]=n[2]+h>>>0,n[3]=n[3]+d>>>0,n[4]=n[4]+p>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,n[0]&255,n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,n[1]&255,n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,n[2]&255,n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,n[3]&255,n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,n[4]&255]}var $5=R5;Zl.default=$5;Object.defineProperty(Bl,"__esModule",{value:!0});Bl.default=void 0;var L5=f_(jn),M5=f_(Zl);function f_(e){return e&&e.__esModule?e:{default:e}}const j5=(0,L5.default)("v5",80,M5.default);var F5=j5;Bl.default=F5;var eu={};Object.defineProperty(eu,"__esModule",{value:!0});eu.default=void 0;var I5="00000000-0000-0000-0000-000000000000";eu.default=I5;var tu={};Object.defineProperty(tu,"__esModule",{value:!0});tu.default=void 0;var U5=z5(Er);function z5(e){return e&&e.__esModule?e:{default:e}}function H5(e){if(!(0,U5.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}var W5=H5;tu.default=W5;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return o.default}});var t=h(Gl),n=h(Kl),r=h(Jl),a=h(Bl),i=h(eu),o=h(tu),s=h(Er),l=h(Wn),u=h(Yi);function h(d){return d&&d.__esModule?d:{default:d}}})(a_);var Pe={},G5=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Pe,"__esModule",{value:!0});Pe.MosaicWindowContext=Pe.MosaicContext=void 0;var d_=G5(P);Pe.MosaicContext=d_.default.createContext(void 0);Pe.MosaicWindowContext=d_.default.createContext(void 0);var nu={},zm=wa,V5=Pl,q5=wt,Hm=zm?zm.isConcatSpreadable:void 0;function K5(e){return q5(e)||V5(e)||!!(Hm&&e&&e[Hm])}var Y5=K5,X5=bh,J5=Y5;function h_(e,t,n,r,a){var i=-1,o=e.length;for(n||(n=J5),a||(a=[]);++i0&&n(s)?t>1?h_(s,t-1,n,r,a):X5(a,s):r||(a[a.length]=s)}return a}var Q5=h_,B5=Q5;function Z5(e){var t=e==null?0:e.length;return t?B5(e,1):[]}var e8=Z5,ru={};function t8(e,t,n){return e===e&&(n!==void 0&&(e=e<=n?e:n),t!==void 0&&(e=e>=t?e:t)),e}var n8=t8,r8=/\s/;function a8(e){for(var t=e.length;t--&&r8.test(e.charAt(t)););return t}var i8=a8,o8=i8,s8=/^\s+/;function l8(e){return e&&e.slice(0,o8(e)+1).replace(s8,"")}var u8=l8,c8=u8,Wm=It,f8=Ml,Gm=0/0,d8=/^[-+]0x[0-9a-f]+$/i,h8=/^0b[01]+$/i,p8=/^0o[0-7]+$/i,g8=parseInt;function m8(e){if(typeof e=="number")return e;if(f8(e))return Gm;if(Wm(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Wm(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=c8(e);var n=h8.test(e);return n||p8.test(e)?g8(e.slice(2),n?2:8):d8.test(e)?Gm:+e}var Uh=m8,v8=n8,ac=Uh;function y8(e,t,n){return n===void 0&&(n=t,t=void 0),n!==void 0&&(n=ac(n),n=n===n?n:0),t!==void 0&&(t=ac(t),t=t===t?t:0),v8(ac(e),t,n)}var w8=y8,_8=Dt,S8=function(){return _8.Date.now()},b8=S8,E8=It,ic=b8,Vm=Uh,T8="Expected a function",C8=Math.max,O8=Math.min;function x8(e,t,n){var r,a,i,o,s,l,u=0,h=!1,d=!1,p=!0;if(typeof e!="function")throw new TypeError(T8);t=Vm(t)||0,E8(n)&&(h=!!n.leading,d="maxWait"in n,i=d?C8(Vm(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p);function w(k){var E=r,C=a;return r=a=void 0,u=k,o=e.apply(C,E),o}function m(k){return u=k,s=setTimeout(v,t),h?w(k):o}function _(k){var E=k-l,C=k-u,O=t-E;return d?O8(O,i-C):O}function b(k){var E=k-l,C=k-u;return l===void 0||E>=t||E<0||d&&C>=i}function v(){var k=ic();if(b(k))return y(k);s=setTimeout(v,_(k))}function y(k){return s=void 0,p&&r?w(k):(r=a=void 0,o)}function S(){s!==void 0&&clearTimeout(s),u=0,r=l=a=s=void 0}function x(){return s===void 0?o:y(ic())}function D(){var k=ic(),E=b(k);if(r=arguments,a=this,l=k,E){if(s===void 0)return m(l);if(d)return clearTimeout(s),s=setTimeout(v,t),w(l)}return s===void 0&&(s=setTimeout(v,t)),o}return D.cancel=S,D.flush=x,D}var P8=x8,N8=P8,D8=It,k8="Expected a function";function A8(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(k8);return D8(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),N8(e,t,{leading:r,maxWait:t,trailing:a})}var R8=A8,zh={},au={};Object.defineProperty(au,"__esModule",{value:!0});au.assertNever=void 0;function $8(e){throw new Error("Unhandled case: "+JSON.stringify(e))}au.assertNever=$8;(function(e){var t=$&&$.__assign||function(){return t=Object.assign||function(r){for(var a,i=1,o=arguments.length;i1;){for(;b.length>0;)b.length>1?v.push({direction:"row",first:b.shift(),second:b.shift()}):v.unshift(b.shift());b=v,v=[]}return a(b[0],_)}e.createBalancedTreeFromLeaves=s;function l(m){if(m==="first")return"second";if(m==="second")return"first";throw new Error("Branch '".concat(m,"' not a valid branch"))}e.getOtherBranch=l;function u(m){return m==="row"?"column":"row"}e.getOtherDirection=u;function h(m,_){for(var b=m,v=[];o(b);)b.direction==="row"&&(_===i.TOP_LEFT||_===i.BOTTOM_LEFT)||b.direction==="column"&&(_===i.TOP_LEFT||_===i.TOP_RIGHT)?(v.push("first"),b=b.first):(v.push("second"),b=b.second);return v}e.getPathToCorner=h;function d(m){return m==null?[]:o(m)?d(m.first).concat(d(m.second)):[m]}e.getLeaves=d;function p(m,_){return _.length>0?(0,r.default)(m,_,null):m}e.getNodeAtPath=p;function w(m,_){if(m==null)throw new Error("Root is empty, cannot fetch path");var b=p(m,_);if(b==null)throw new Error("Path [".concat(_.join(", "),"] did not resolve to a node"));return b}e.getAndAssertNodeAtPathExists=w})(Xi);var T7=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qs=$&&$.__assign||function(){return Qs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n"u"&&!i.call(C,H))&&(U===C&&(U=d(C)),l(U)==="Map"?U.set(H,on):U[H]=on)}}),U},E}();t.Context=p;var w={$push:function(E,C,O){return _(C,O,"$push"),E.length?C.concat(E):C},$unshift:function(E,C,O){return _(C,O,"$unshift"),E.length?E.concat(C):C},$splice:function(E,C,O,N){return v(C,O),E.forEach(function(L){y(L),C===N&&L.length&&(C=d(N)),o.apply(C,L)}),C},$set:function(E,C,O){return x(O),E},$toggle:function(E,C){b(E,"$toggle");var O=E.length?d(C):C;return E.forEach(function(N){O[N]=!C[N]}),O},$unset:function(E,C,O,N){return b(E,"$unset"),E.forEach(function(L){Object.hasOwnProperty.call(C,L)&&(C===N&&(C=d(N)),delete C[L])}),C},$add:function(E,C,O,N){return k(C,"$add"),b(E,"$add"),l(C)==="Map"?E.forEach(function(L){var U=L[0],H=L[1];C===N&&C.get(U)!==H&&(C=d(N)),C.set(U,H)}):E.forEach(function(L){C===N&&!C.has(L)&&(C=d(N)),C.add(L)}),C},$remove:function(E,C,O,N){return k(C,"$remove"),b(E,"$remove"),E.forEach(function(L){C===N&&C.has(L)&&(C=d(N)),C.delete(L)}),C},$merge:function(E,C,O,N){return D(C,E),h(E).forEach(function(L){E[L]!==C[L]&&(C===N&&(C=d(N)),C[L]=E[L])}),C},$apply:function(E,C){return S(E),E(C)}},m=new p;t.isEquals=m.update.isEquals,t.extend=m.extend,t.default=m.update,t.default.default=e.exports=u(t.default,t);function _(E,C,O){a(Array.isArray(E),function(){return"update(): expected target of "+n(O)+" to be an array; got "+n(E)+"."}),b(C[O],O)}function b(E,C){a(Array.isArray(E),function(){return"update(): expected spec of "+n(C)+" to be an array; got "+n(E)+". Did you forget to wrap your parameter in an array?"})}function v(E,C){a(Array.isArray(E),function(){return"Expected $splice target to be an array; got "+n(E)}),y(C.$splice)}function y(E){a(Array.isArray(E),function(){return"update(): expected spec of $splice to be an array of arrays; got "+n(E)+". Did you forget to wrap your parameters in an array?"})}function S(E){a(typeof E=="function",function(){return"update(): expected spec of $apply to be a function; got "+n(E)+"."})}function x(E){a(Object.keys(E).length===1,function(){return"Cannot have more than one key in an object with $set"})}function D(E,C){a(C&&typeof C=="object",function(){return"update(): $merge expects a spec of type 'object'; got "+n(C)}),a(E&&typeof E=="object",function(){return"update(): $merge expects a target of type 'object'; got "+n(E)})}function k(E,C){var O=l(E);a(O==="Map"||O==="Set",function(){return"update(): "+n(C)+" expects a target of type Set or Map; got "+n(O)})}})(Hf,Hf.exports);var lF=Hf.exports;function uF(e,t,n){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(a);++r0?(0,jF.default)({},e.path,e.spec):e.spec}je.buildSpecFromUpdate=j_;function F_(e,t){var n=e;return t.forEach(function(r){n=(0,$F.default)(n,j_(r))}),n}je.updateTree=F_;function Wf(e,t){var n=(0,L_.default)(t),r=(0,M_.default)(t),a=n.concat((0,Bs.getOtherBranch)(r)),i=(0,Bs.getAndAssertNodeAtPathExists)(e,a);return{path:n,spec:{$set:i}}}je.createRemoveUpdate=Wf;function cv(e,t,n){return(0,MF.default)((0,uv.default)(e,n),(0,uv.default)(t,n))}function FF(e,t,n,r){var a=(0,Bs.getAndAssertNodeAtPathExists)(e,n),i=[],o=cv(t,n,n.length);if(o)a=F_(a,[Wf(a,(0,LF.default)(t,n.length))]);else{i.push(Wf(e,t));var s=cv(t,n,t.length-1);s&&n.splice(t.length-1,1)}var l=(0,Bs.getAndAssertNodeAtPathExists)(e,t),u,h;r===Ho.MosaicDropTargetPosition.LEFT||r===Ho.MosaicDropTargetPosition.TOP?(u=l,h=a):(u=a,h=l);var d="column";return(r===Ho.MosaicDropTargetPosition.LEFT||r===Ho.MosaicDropTargetPosition.RIGHT)&&(d="row"),i.push({path:n,spec:{$set:{first:u,second:h,direction:d}}}),i}je.createDragToUpdates=FF;function IF(e){var t=(0,L_.default)(e),n=(0,M_.default)(e),r;return n==="first"?r=0:r=100,{path:t,spec:{splitPercentage:{$set:r}}}}je.createHideUpdate=IF;function UF(e,t){for(var n,r={},a=e.length-1;a>=0;a--){var i=e[a],o=i==="first"?t:100-t;r=(n={splitPercentage:{$set:o}},n[i]=r,n)}return{spec:r,path:[]}}je.createExpandUpdate=UF;var I_=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zs=$&&$.__assign||function(){return Zs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0){if(++t>=dI)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var mI=gI,vI=fI,yI=mI,wI=yI(vI),_I=wI,SI=Dh,bI=iI,EI=_I;function TI(e,t){return EI(bI(e,t,SI),e+"")}var CI=TI,OI=eI,xI=CI,PI=xI(function(e,t){return OI(e,1,t)}),NI=PI,DI=sw,kI=Gi,AI=Pl,RI=wt,$I=kl,LI=Nl,MI=Dl,jI=vh,FI="[object Map]",II="[object Set]",UI=Object.prototype,zI=UI.hasOwnProperty;function HI(e){if(e==null)return!0;if($I(e)&&(RI(e)||typeof e=="string"||typeof e.splice=="function"||LI(e)||jI(e)||AI(e)))return!e.length;var t=kI(e);if(t==FI||t==II)return!e.size;if(MI(e))return!DI(e).length;for(var n in e)if(zI.call(e,n))return!1;return!0}var WI=HI,vr={},Zi={},Oa={};(function(e){var t=$&&$.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0}),e.createDefaultToolbarButton=e.DefaultToolbarButton=void 0;var n=t(st),r=t(P),a=Pe,i=Gn,o=function(l){var u=l.title,h=l.className,d=l.onClick,p=l.text,w=r.default.useContext(a.MosaicContext).blueprintNamespace;return r.default.createElement("button",{title:u,onClick:d,className:(0,n.default)("mosaic-default-control",i.OptionalBlueprint.getClasses(w,"BUTTON","MINIMAL"),h)},p&&r.default.createElement("span",{className:"control-text"},p))};e.DefaultToolbarButton=o;var s=function(l,u,h,d){return r.default.createElement(e.DefaultToolbarButton,{title:l,className:u,onClick:h,text:d})};e.createDefaultToolbarButton=s})(Oa);var GI=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),z_=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zi,"__esModule",{value:!0});Zi.ExpandButton=void 0;var VI=z_(st),uc=z_(P),hv=Pe,qI=Gn,KI=Oa,YI=function(e){GI(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this;return uc.default.createElement(hv.MosaicContext.Consumer,null,function(r){var a=r.mosaicActions;return uc.default.createElement(KI.DefaultToolbarButton,{title:"Expand",className:(0,VI.default)("expand-button",qI.OptionalBlueprint.getIconClass(n.context.blueprintNamespace,"MAXIMIZE")),onClick:n.createExpand(a)})})},t.prototype.createExpand=function(n){var r=this;return function(){n.expand(r.context.mosaicWindowActions.getPath()),r.props.onClick&&r.props.onClick()}},t.contextType=hv.MosaicWindowContext,t}(uc.default.PureComponent);Zi.ExpandButton=YI;var eo={},XI=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),H_=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(eo,"__esModule",{value:!0});eo.RemoveButton=void 0;var JI=H_(st),cc=H_(P),pv=Pe,QI=Gn,BI=Oa,ZI=function(e){XI(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this;return cc.default.createElement(pv.MosaicContext.Consumer,null,function(r){var a=r.mosaicActions,i=r.blueprintNamespace;return cc.default.createElement(BI.DefaultToolbarButton,{title:"Close Window",className:(0,JI.default)("close-button",QI.OptionalBlueprint.getIconClass(i,"CROSS")),onClick:n.createRemove(a)})})},t.prototype.createRemove=function(n){var r=this;return function(){n.remove(r.context.mosaicWindowActions.getPath()),r.props.onClick&&r.props.onClick()}},t.contextType=pv.MosaicWindowContext,t}(cc.default.PureComponent);eo.RemoveButton=ZI;var to={},eU=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Kh=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(to,"__esModule",{value:!0});to.ReplaceButton=void 0;var tU=Kh(st),nU=Kh(Wh),gv=Kh(P),rU=Pe,aU=Gn,iU=Oa,oU=function(e){eU(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.replace=function(){n.context.mosaicWindowActions.replaceWithNew().then(function(){n.props.onClick&&n.props.onClick()}).catch(nU.default)},n}return t.prototype.render=function(){return gv.default.createElement(iU.DefaultToolbarButton,{title:"Replace Window",className:(0,tU.default)("replace-button",aU.OptionalBlueprint.getIconClass(this.context.blueprintNamespace,"EXCHANGE")),onClick:this.replace})},t.contextType=rU.MosaicWindowContext,t}(gv.default.PureComponent);to.ReplaceButton=oU;var no={},sU=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yh=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(no,"__esModule",{value:!0});no.SplitButton=void 0;var lU=Yh(st),uU=Yh(Wh),mv=Yh(P),cU=Pe,fU=Gn,dU=Oa,hU=function(e){sU(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.split=function(){n.context.mosaicWindowActions.split().then(function(){n.props.onClick&&n.props.onClick()}).catch(uU.default)},n}return t.prototype.render=function(){return mv.default.createElement(dU.DefaultToolbarButton,{title:"Split Window",className:(0,lU.default)("split-button",fU.OptionalBlueprint.getIconClass(this.context.blueprintNamespace,"ADD_COLUMN_RIGHT")),onClick:this.split})},t.contextType=cU.MosaicWindowContext,t}(mv.default.PureComponent);no.SplitButton=hU;var pU=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vr,"__esModule",{value:!0});vr.DEFAULT_CONTROLS_WITHOUT_CREATION=vr.DEFAULT_CONTROLS_WITH_CREATION=void 0;var mn=pU(P),W_=Zi,G_=eo,gU=to,mU=no;vr.DEFAULT_CONTROLS_WITH_CREATION=mn.default.Children.toArray([mn.default.createElement(gU.ReplaceButton,null),mn.default.createElement(mU.SplitButton,null),mn.default.createElement(W_.ExpandButton,null),mn.default.createElement(G_.RemoveButton,null)]);vr.DEFAULT_CONTROLS_WITHOUT_CREATION=mn.default.Children.toArray([mn.default.createElement(W_.ExpandButton,null),mn.default.createElement(G_.RemoveButton,null)]);var ro={},vU=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),yU=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ro,"__esModule",{value:!0});ro.Separator=void 0;var vv=yU(P),wU=function(e){vU(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){return vv.default.createElement("div",{className:"separator"})},t}(vv.default.PureComponent);ro.Separator=wU;var V_=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),el=$&&$.__assign||function(){return el=Object.assign||function(e){for(var t,n=1,r=arguments.length;nn.rootElement.offsetHeight?"row":"column";return Promise.resolve(o.apply(void 0,r)).then(function(d){return l.replaceWith(s,{direction:h,second:d,first:(0,AU.getAndAssertNodeAtPathExists)(u,s)})})},n.swap=function(){for(var r=[],a=0;a0,m=w?this.props.connectDragSource:function(y){return y};if(h){var _=m(h(this.props,o));return ne.default.createElement("div",{className:(0,Ia.default)("mosaic-window-toolbar",{draggable:w})},_)}var b=m(ne.default.createElement("div",{title:i,className:"mosaic-window-title"},i)),v=!(0,CU.default)(s);return ne.default.createElement("div",{className:(0,Ia.default)("mosaic-window-toolbar",{draggable:w})},b,ne.default.createElement("div",{className:(0,Ia.default)("mosaic-window-controls",Ua.OptionalBlueprint.getClasses("BUTTON_GROUP"))},v&&ne.default.createElement("button",{onClick:function(){return r.setAdditionalControlsOpen(!d)},className:(0,Ia.default)(Ua.OptionalBlueprint.getClasses(this.context.blueprintNamespace,"BUTTON","MINIMAL"),Ua.OptionalBlueprint.getIconClass(this.context.blueprintNamespace,"MORE"),(n={},n[Ua.OptionalBlueprint.getClasses(this.context.blueprintNamespace,"ACTIVE")]=d,n))},ne.default.createElement("span",{className:"control-text"},l)),v&&ne.default.createElement(PU.Separator,null),p))},t.prototype.checkCreateNode=function(){if(this.props.createNode==null)throw new Error("Operation invalid unless `createNode` is defined")},t.defaultProps={additionalControlButtonText:"More",draggable:!0,renderPreview:function(n){var r=n.title;return ne.default.createElement("div",{className:"mosaic-preview"},ne.default.createElement("div",{className:"mosaic-window-toolbar"},ne.default.createElement("div",{className:"mosaic-window-title"},r)),ne.default.createElement("div",{className:"mosaic-window-body"},ne.default.createElement("h4",null,r),ne.default.createElement(Ua.OptionalBlueprint.Icon,{className:"default-preview-icon",size:"large",icon:"APPLICATION"})))},renderToolbar:null},t.contextType=Gf.MosaicContext,t}(ne.default.Component);ha.InternalMosaicWindow=q_;function RU(e){var t=(0,ne.useContext)(Gf.MosaicContext),n=t.mosaicActions,r=t.mosaicId,a=(0,yv.useDrag)({type:_v.MosaicDragType.WINDOW,item:function(p){e.onDragStart&&e.onDragStart();var w=(0,EU.default)(function(){return n.hide(e.path)});return{mosaicId:r,hideTimer:w}},end:function(p,w){var m=p.hideTimer;window.clearTimeout(m);var _=e.path,b=w.getDropResult()||{},v=b.position,y=b.path;v!=null&&y!=null&&!(0,OU.default)(y,_)?(n.updateTree((0,kU.createDragToUpdates)(n.getRoot(),_,y,v)),e.onDragEnd&&e.onDragEnd("drop")):(n.updateTree([{path:(0,TU.default)(_),spec:{splitPercentage:{$set:void 0}}}]),e.onDragEnd&&e.onDragEnd("reset"))}}),i=a[1],o=a[2],s=(0,yv.useDrop)({accept:_v.MosaicDragType.WINDOW,collect:function(p){var w;return{isOver:p.isOver(),draggedMosaicId:(w=p.getItem())===null||w===void 0?void 0:w.mosaicId}}}),l=s[0],u=l.isOver,h=l.draggedMosaicId,d=s[1];return ne.default.createElement(q_,el({},e,{connectDragPreview:o,connectDragSource:i,connectDropTarget:d,isOver:u,draggedMosaicId:h}))}var $U=function(e){V_(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){return ne.default.createElement(RU,el({},this.props))},t}(ne.default.PureComponent);ha.MosaicWindow=$U;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_CONTROLS_WITHOUT_CREATION=e.DEFAULT_CONTROLS_WITH_CREATION=e.RemoveButton=e.SplitButton=e.ReplaceButton=e.ExpandButton=e.Separator=e.MosaicZeroState=e.DefaultToolbarButton=e.createDefaultToolbarButton=e.MosaicWindow=e.isParent=e.getPathToCorner=e.getOtherDirection=e.getOtherBranch=e.getNodeAtPath=e.getLeaves=e.getAndAssertNodeAtPathExists=e.Corner=e.createBalancedTreeFromLeaves=e.updateTree=e.createRemoveUpdate=e.createHideUpdate=e.createExpandUpdate=e.createDragToUpdates=e.buildSpecFromUpdate=e.MosaicWindowContext=e.MosaicContext=e.MosaicDragType=e.MosaicWithoutDragDropContext=e.Mosaic=void 0;/** + * @license + * Copyright 2019 Kevin Verdieck, originally developed at Palantir Technologies, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */var t=da;Object.defineProperty(e,"Mosaic",{enumerable:!0,get:function(){return t.Mosaic}}),Object.defineProperty(e,"MosaicWithoutDragDropContext",{enumerable:!0,get:function(){return t.MosaicWithoutDragDropContext}});var n=Tr;Object.defineProperty(e,"MosaicDragType",{enumerable:!0,get:function(){return n.MosaicDragType}});var r=Pe;Object.defineProperty(e,"MosaicContext",{enumerable:!0,get:function(){return r.MosaicContext}}),Object.defineProperty(e,"MosaicWindowContext",{enumerable:!0,get:function(){return r.MosaicWindowContext}});var a=je;Object.defineProperty(e,"buildSpecFromUpdate",{enumerable:!0,get:function(){return a.buildSpecFromUpdate}}),Object.defineProperty(e,"createDragToUpdates",{enumerable:!0,get:function(){return a.createDragToUpdates}}),Object.defineProperty(e,"createExpandUpdate",{enumerable:!0,get:function(){return a.createExpandUpdate}}),Object.defineProperty(e,"createHideUpdate",{enumerable:!0,get:function(){return a.createHideUpdate}}),Object.defineProperty(e,"createRemoveUpdate",{enumerable:!0,get:function(){return a.createRemoveUpdate}}),Object.defineProperty(e,"updateTree",{enumerable:!0,get:function(){return a.updateTree}});var i=Xi;Object.defineProperty(e,"createBalancedTreeFromLeaves",{enumerable:!0,get:function(){return i.createBalancedTreeFromLeaves}}),Object.defineProperty(e,"Corner",{enumerable:!0,get:function(){return i.Corner}}),Object.defineProperty(e,"getAndAssertNodeAtPathExists",{enumerable:!0,get:function(){return i.getAndAssertNodeAtPathExists}}),Object.defineProperty(e,"getLeaves",{enumerable:!0,get:function(){return i.getLeaves}}),Object.defineProperty(e,"getNodeAtPath",{enumerable:!0,get:function(){return i.getNodeAtPath}}),Object.defineProperty(e,"getOtherBranch",{enumerable:!0,get:function(){return i.getOtherBranch}}),Object.defineProperty(e,"getOtherDirection",{enumerable:!0,get:function(){return i.getOtherDirection}}),Object.defineProperty(e,"getPathToCorner",{enumerable:!0,get:function(){return i.getPathToCorner}}),Object.defineProperty(e,"isParent",{enumerable:!0,get:function(){return i.isParent}});var o=ha;Object.defineProperty(e,"MosaicWindow",{enumerable:!0,get:function(){return o.MosaicWindow}});var s=Oa;Object.defineProperty(e,"createDefaultToolbarButton",{enumerable:!0,get:function(){return s.createDefaultToolbarButton}}),Object.defineProperty(e,"DefaultToolbarButton",{enumerable:!0,get:function(){return s.DefaultToolbarButton}});var l=Ji;Object.defineProperty(e,"MosaicZeroState",{enumerable:!0,get:function(){return l.MosaicZeroState}});var u=ro;Object.defineProperty(e,"Separator",{enumerable:!0,get:function(){return u.Separator}});var h=Zi;Object.defineProperty(e,"ExpandButton",{enumerable:!0,get:function(){return h.ExpandButton}});var d=to;Object.defineProperty(e,"ReplaceButton",{enumerable:!0,get:function(){return d.ReplaceButton}});var p=no;Object.defineProperty(e,"SplitButton",{enumerable:!0,get:function(){return p.SplitButton}});var w=eo;Object.defineProperty(e,"RemoveButton",{enumerable:!0,get:function(){return w.RemoveButton}});var m=vr;Object.defineProperty(e,"DEFAULT_CONTROLS_WITH_CREATION",{enumerable:!0,get:function(){return m.DEFAULT_CONTROLS_WITH_CREATION}}),Object.defineProperty(e,"DEFAULT_CONTROLS_WITHOUT_CREATION",{enumerable:!0,get:function(){return m.DEFAULT_CONTROLS_WITHOUT_CREATION}})})(xf);var Sv={CENTER:"center",LEFT:"left",RIGHT:"right"},ao={NONE:"none",PRIMARY:"primary",SUCCESS:"success",WARNING:"warning",DANGER:"danger"},ve="bp5";typeof BLUEPRINT_NAMESPACE<"u"?ve=BLUEPRINT_NAMESPACE:typeof REACT_APP_BLUEPRINT_NAMESPACE<"u"&&(ve=REACT_APP_BLUEPRINT_NAMESPACE);var LU="".concat(ve,"-active"),MU="".concat(ve,"-align-left"),jU="".concat(ve,"-align-right"),FU="".concat(ve,"-disabled"),IU="".concat(ve,"-fill"),Vf="".concat(ve,"-large"),UU="".concat(ve,"-loading"),zU="".concat(ve,"-minimal"),HU="".concat(ve,"-outlined"),qf="".concat(ve,"-small");Fn(ao.PRIMARY);Fn(ao.SUCCESS);Fn(ao.WARNING);Fn(ao.DANGER);var WU="".concat(ve,"-text-overflow-ellipsis"),Xh="".concat(ve,"-button"),GU="".concat(Xh,"-spinner"),VU="".concat(Xh,"-text"),su="".concat(ve,"-spinner"),qU="".concat(su,"-animation"),KU="".concat(su,"-head"),YU="".concat(ve,"-no-spin"),XU="".concat(su,"-track"),Jh="".concat(ve,"-icon"),JU="".concat(Jh,"-standard"),QU="".concat(Jh,"-large");function BU(e){switch(e){case Sv.LEFT:return MU;case Sv.RIGHT:return jU;default:return}}function ZU(e){if(e!=null)return e.indexOf("".concat(ve,"-icon-"))===0?e:"".concat(ve,"-icon-").concat(e)}function Fn(e){if(!(e==null||e===ao.NONE))return"".concat(ve,"-intent-").concat(e.toLowerCase())}var Kf=function(e,t){return Kf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},Kf(e,t)};function K_(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Kf(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Pt=function(){return Pt=Object.assign||function(t){for(var n,r=1,a=arguments.length;r Classes.SMALL/LARGE are ignored if size prop is set.";function bv(e){return typeof NODE_ENV<"u"&&NODE_ENV===e}function nz(e,t,n){if(e==null)return e;if(n0){for(var a=0,i=r.timeoutIds;a0){for(var a=0,i=r.requestIds;a0&&n>="0"&&n<="9"?"_"+n+r:""+n.toUpperCase()+r}function fz(e,t){return t===void 0&&(t={}),J_(e,Xf({delimiter:"",transform:cz},t))}var Jf=function(){return Jf=Object.assign||function(t){for(var n,r=1,a=arguments.length;r{if(i=gz(i),i in Ov)return;Ov[i]=!0;const o=i.endsWith(".css"),s=o?'[rel="stylesheet"]':"";if(!!r)for(let h=a.length-1;h>=0;h--){const d=a[h];if(d.href===i&&(!o||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":pz,o||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),o)return new Promise((h,d)=>{u.addEventListener("load",h),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i})};var Vt=function(){return Vt=Object.assign||function(t){for(var n,r=1,a=arguments.length;r0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]import("./allPathsLoader-5f2f8818.js"),[])];case 2:return[2,r.sent().allPathsLoader];case 3:return[4,xv(()=>import("./splitPathsBySizeLoader-38b148c8.js"),[])];case 4:return[2,r.sent().splitPathsBySizeLoader]}})})}var Ja=function(){function e(){this.defaultLoader="split-by-size",this.loadedIconPaths16=new Map,this.loadedIconPaths20=new Map}return e.setLoaderOptions=function(t){t.loader!==void 0&&(Ar.defaultLoader=t.loader)},e.load=function(t,n,r){return Yr(this,void 0,void 0,function(){var a=this;return Xr(this,function(i){switch(i.label){case 0:return Array.isArray(t)||(t=[t]),[4,Promise.all(t.map(function(o){return a.loadImpl(o,n,r)}))];case 1:return i.sent(),[2]}})})},e.loadAll=function(t){return Yr(this,void 0,void 0,function(){var n,r=this;return Xr(this,function(a){return n=Object.values(Be),wz("[Blueprint] loading all icons",function(){return Yr(r,void 0,void 0,function(){return Xr(this,function(i){switch(i.label){case 0:return[4,Promise.all([this.load(n,Le.STANDARD,t),this.load(n,Le.LARGE,t)])];case 1:return i.sent(),[2]}})})}),[2]})})},e.getPaths=function(t,n){if(this.isValidIconName(t)){var r=n=Le.LARGE,_=m?Le.LARGE:Le.STANDARD,b="0 0 ".concat(_," ").concat(_),v=bz("iconTitle"),y=Vt({fill:a,height:l,role:"img",viewBox:b,width:l},u);return d===null?P.createElement("svg",Vt({"aria-labelledby":p?v:void 0,"data-icon":o,ref:t},y,w,{className:Mn(r,u==null?void 0:u.className)}),p&&P.createElement("title",{id:v},p),n):P.createElement(d,Vt(Vt({"aria-hidden":p?void 0:!0},w),{className:Mn(Nv,"".concat(Nv,"-").concat(o),r),ref:t,title:i}),P.createElement("svg",Vt({"data-icon":o},y,{className:u==null?void 0:u.className}),p&&P.createElement("title",null,p),n))});Z_.displayName="Blueprint5.SVGIconContainer";var ze=P.forwardRef(function(e,t){var n,r,a=e.autoLoad,i=e.className,o=e.color,s=e.icon,l=e.intent,u=e.tagName,h=e.svgProps,d=e.title,p=e.htmlTitle,w=Qh(e,["autoLoad","className","color","icon","intent","tagName","svgProps","title","htmlTitle"]),m=(r=(n=e.iconSize)!==null&&n!==void 0?n:e.size)!==null&&r!==void 0?r:Le.STANDARD,_=P.useState(function(){return typeof s=="string"?Ja.getPaths(s,m):void 0}),b=_[0],v=_[1];if(P.useEffect(function(){var x=!1;if(typeof s=="string"){var D=Ja.getPaths(s,m);D!==void 0?v(D):a?Ja.load(s,m).then(function(){x||v(Ja.getPaths(s,m))}).catch(function(k){console.error("[Blueprint] Icon '".concat(s,"' (").concat(m,"px) could not be loaded."),k)}):console.error("[Blueprint] Icon '".concat(s,"' (").concat(m,"px) is not loaded yet and autoLoad={false}, did you call Icons.load('").concat(s,"', ").concat(m,")?"))}return function(){x=!0}},[a,s,m]),s==null||typeof s=="boolean")return null;if(typeof s!="string")return s;if(b==null){var y=m===Le.STANDARD?JU:m===Le.LARGE?QU:void 0;return P.createElement(u,Pt(Pt({"aria-hidden":d?void 0:!0},tl(w)),{className:Mn(Jh,y,ZU(s),Fn(l),i),"data-icon":s,ref:t,title:p}))}else{var S=b.map(function(x,D){return P.createElement("path",{d:x,key:D,fillRule:"evenodd"})});return P.createElement(Z_,Pt({children:S,className:Mn(Fn(l),i),color:o,htmlTitle:p,iconName:s,ref:t,size:m,svgProps:h,tagName:u,title:d},tl(w)))}});ze.defaultProps={autoLoad:!0,tagName:"span"};ze.displayName="".concat(io,".Icon");var or;(function(e){e[e.SMALL=20]="SMALL",e[e.STANDARD=50]="STANDARD",e[e.LARGE=100]="LARGE"})(or||(or={}));var fn=45,kv="M 50,50 m 0,-".concat(fn," a ").concat(fn,",").concat(fn," 0 1 1 0,").concat(fn*2," a ").concat(fn,",").concat(fn," 0 1 1 0,-").concat(fn*2),za=280,Ez=10,Tz=4,Cz=16,Oz=function(e){K_(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.componentDidUpdate=function(n){n.value!==this.props.value&&this.forceUpdate()},t.prototype.render=function(){var n,r=this.props,a=r.className,i=r.intent,o=r.value,s=r.tagName,l=s===void 0?"div":s,u=Qh(r,["className","intent","value","tagName"]),h=this.getSize(),d=Mn(su,Fn(i),(n={},n[YU]=o!=null,n),a),p=Math.min(Cz,Tz*or.LARGE/h),w=za-za*(o==null?.25:nz(o,0,1));return P.createElement(l,Pt({"aria-label":"loading","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":o===void 0?void 0:o*100,className:d,role:"progressbar"},u),P.createElement(l,{className:qU},P.createElement("svg",{width:h,height:h,strokeWidth:p.toFixed(2),viewBox:this.getViewBox(p)},P.createElement("path",{className:XU,d:kv}),P.createElement("path",{className:KU,d:kv,pathLength:za,strokeDasharray:"".concat(za," ").concat(za),strokeDashoffset:w}))))},t.prototype.validateProps=function(n){var r=n.className,a=r===void 0?"":r,i=n.size;i!=null&&(a.indexOf(qf)>=0||a.indexOf(Vf)>=0)&&console.warn(tz)},t.prototype.getSize=function(){var n=this.props,r=n.className,a=r===void 0?"":r,i=n.size;return i==null?a.indexOf(qf)>=0?or.SMALL:a.indexOf(Vf)>=0?or.LARGE:or.STANDARD:Math.max(Ez,i)},t.prototype.getViewBox=function(n){var r=fn+n/2,a=(50-r).toFixed(2),i=(r*2).toFixed(2);return"".concat(a," ").concat(a," ").concat(i," ").concat(i)},t.displayName="".concat(io,".Spinner"),t}(oz),Bh=P.forwardRef(function(e,t){var n,r=e.children,a=e.tagName,i=a===void 0?"div":a,o=e.title,s=e.className,l=e.ellipsize,u=Qh(e,["children","tagName","title","className","ellipsize"]),h=P.useRef(),d=P.useMemo(function(){return X_(h,t)},[t]),p=P.useState(""),w=p[0],m=p[1],_=P.useState(),b=_[0],v=_[1];return P.useLayoutEffect(function(){var y;((y=h.current)===null||y===void 0?void 0:y.textContent)!=null&&(v(l&&h.current.scrollWidth>h.current.clientWidth),m(h.current.textContent))},[h,r,l]),P.createElement(i,Pt(Pt({},u),{className:Mn((n={},n[WU]=l,n),s),ref:d,title:o??(b?w:void 0)}),r)});Bh.defaultProps={ellipsize:!1};Bh.displayName="".concat(io,".Text");var bt=P.forwardRef(function(e,t){var n=eS(e,t);return P.createElement("button",Pt({type:"button"},tl(e),n),tS(e))});bt.displayName="".concat(io,".Button");var xz=P.forwardRef(function(e,t){var n=e.href,r=e.tabIndex,a=r===void 0?0:r,i=eS(e,t);return P.createElement("a",Pt({role:"button"},tl(e),i,{"aria-disabled":i.disabled,href:i.disabled?void 0:n,tabIndex:i.disabled?-1:a}),tS(e))});xz.displayName="".concat(io,".AnchorButton");function eS(e,t){var n,r=e.active,a=r===void 0?!1:r,i=e.alignText,o=e.fill,s=e.large,l=e.loading,u=l===void 0?!1:l,h=e.minimal,d=e.onBlur,p=e.onKeyDown,w=e.onKeyUp,m=e.outlined,_=e.small,b=e.tabIndex,v=e.disabled||u,y=P.useState(),S=y[0],x=y[1],D=P.useState(!1),k=D[0],E=D[1],C=P.useRef(null),O=P.useCallback(function(H){k&&E(!1),d==null||d(H)},[k,d]),N=P.useCallback(function(H){Ev(H)&&(H.preventDefault(),H.key!==S&&E(!0)),x(H.key),p==null||p(H)},[S,p]),L=P.useCallback(function(H){var lt;Ev(H)&&(E(!1),(lt=C.current)===null||lt===void 0||lt.click()),x(void 0),w==null||w(H)},[w]),U=Mn(Xh,(n={},n[LU]=!v&&(a||k),n[FU]=v,n[IU]=o,n[Vf]=s,n[UU]=u,n[zU]=h,n[HU]=m,n[qf]=_,n),BU(i),Fn(e.intent),e.className);return{className:U,disabled:v,onBlur:O,onClick:v?void 0:e.onClick,onFocus:v?void 0:e.onFocus,onKeyDown:N,onKeyUp:L,ref:X_(C,t),tabIndex:v?-1:b}}function tS(e){var t=e.children,n=e.ellipsizeText,r=e.icon,a=e.loading,i=e.rightIcon,o=e.text,s=e.textClassName,l=!Yf(o)||!Yf(t);return P.createElement(P.Fragment,null,a&&P.createElement(Oz,{key:"loading",className:GU,size:or.SMALL}),P.createElement(ze,{key:"leftIcon",icon:r}),l&&P.createElement(Bh,{key:"text",className:Mn(VU,s),ellipsize:n,tagName:"span"},o,t),P.createElement(ze,{key:"rightIcon",icon:i}))}const Pz="_stream_table_header_main_container_eshmy_1",Nz="_stream_table_header_fn_row_eshmy_7",Dz="_stream_table_right_container_eshmy_15",kz="_stream_table_title_eshmy_23",Az="_hideFieldBtn_eshmy_31",Rz="_dropdownMenu_eshmy_52",$z="_streamtable_vartype_panel_eshmy_107",Ha={stream_table_header_main_container:Pz,stream_table_header_fn_row:Nz,stream_table_right_container:Dz,stream_table_title:kz,hideFieldBtn:Az,dropdownMenu:Rz,streamtable_vartype_panel:$z};function Av(){P.useContext(it);const[e,t]=P.useState(!1);function n(){document.getElementById("hide-fields-list"),t(r=>!r)}return T.jsxs("div",{className:`${Ha.stream_table_header_main_container}`,children:[T.jsx("div",{className:`${Ha.stream_table_header_fn_row}`,children:T.jsxs("div",{id:"hide-fields-dropdown",className:`nav-link dropdown-toggle idaes-nav-button ${Ha.hideFieldBtn}`,"data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",onClick:n,children:[T.jsx("span",{children:"Hide Fields"}),T.jsx("ul",{id:"hide-fields-list",className:`dropdown-menu checkbox-menu ${Ha.dropdownMenu}`,style:{display:e?"block":"none"}})]})}),T.jsx("div",{id:"existing-variable-types",className:`streamtable-vartype-panel ${Ha.streamtable_vartype_panel}`})]})}const Lz="_flowsheet_variable_ul_15yu2_1",Mz="_variables_display_each_unit_label_15yu2_16",Rv={flowsheet_variable_ul:Lz,variables_display_each_unit_label:Mz};function jz(){const{cells:e,model:t,showVariable:n,setShowVariable:r}=P.useContext(it);console.log(e),console.log(t);let a="loading...";return e?a=e.map((o,s)=>{if(o.attrs&&o.attrs.label&&o.attrs.label.text)return T.jsxs("li",{id:`unit_name_${o}`,className:Rv.variables_display_each_unit_label,"data-open":"false","data-which-label":o.attrs.label.text,onClick:l=>Fz(l,r),children:[Object.keys(n).includes(o.attrs.label.text)?T.jsx(Fe,{icon:AT}):T.jsx(Fe,{icon:PT}),T.jsx("span",{children:o.attrs.label.text})]},o.attrs.label.text+s)}):a="Please check flowsheet Joint JS model, looks like it not contain any Cells",Object.keys(n).length>0,T.jsx(T.Fragment,{children:T.jsx("section",{className:"pd-md",children:T.jsx("ul",{className:`${Rv.flowsheet_variable_ul}`,children:a})})})}function Fz(e,t){const r=e.currentTarget.getAttribute("data-which-label");r?(console.log("here"),t(a=>{const i={...a};return i[r]?delete i[r]:i[r]=r,i})):console.error("Click event not receive which variable")}const Iz="_fvContainer_1oimy_1",Uz="_fv_1oimy_1",$v={fvContainer:Iz,fv:Uz};function zz(){const{panelState:e,cells:t}=P.useContext(it),n=e.fv.show;return T.jsxs(T.Fragment,{children:[T.jsx("h1",{children:{}.VITE_TEST}),n&&T.jsx("section",{id:"fvContainer",className:`${$v.fvContainer}`,children:T.jsx("div",{id:"fv",className:`${$v.fv}`})})]})}const Hz="_diagnosticsIssues_container_qe2yw_1",Wz="_diagnosticIssues_each_issue_qe2yw_11",Gz="_activated_qe2yw_36",Vo={diagnosticsIssues_container:Hz,diagnosticIssues_each_issue:Wz,activated:Gz};function Vz(e){let t=e.diagnosticData,n="Loading...";if(t){let r=t.diagnostics_toolbox_report.structural_report.warning[0],a=t.diagnostics_toolbox_report.numerical_report.warning[0],i={structural:r.length,numerical:a.length};const o=Object.keys(i);let s="";!e.whichIssue&&o.length>0?s=o[0]:s=e.whichIssue,n=o.map((l,u)=>T.jsx("div",{className:`${Vo.diagnosticIssues_each_issue} ${l==s?Vo.activated:Vo.deactivated}`,onClick:()=>e.toggleIssue(l),children:T.jsxs("p",{children:[l," issues",T.jsx("sup",{children:i[l]})]})},u))}else console.log("Diagnostic data is not pass from parent!");return T.jsx("div",{className:Vo.diagnosticsIssues_container,children:n})}const qz="_diagnostics_display_main_container_5xc1d_1",Kz="_diagnostic_display_each_section_container_5xc1d_7",Yz="_diagnostic_display_each_config_container_5xc1d_11",Xz="_diagnostics_display_each_severity_main_container_5xc1d_17",Jz="_diagnostic_display_each_severity_title_5xc1d_21",Qz="_diagnostic_display_diagnostic_content_container_5xc1d_31",Bz="_diagnostics_warning_caution_main_container_5xc1d_35",Zz="_diagnostics_display_pre_tag_5xc1d_39",eH="_diagnostics_warning_caution_display_container_5xc1d_53",tH="_warning_5xc1d_57",nH="_caution_5xc1d_65",rH="_diagnostic_display_each_issue_container_5xc1d_73",aH="_diagnostic_display_section_title_5xc1d_79",iH="_diagnostics_display_each_next_step_content_5xc1d_83",oH="_next_step_function_btn_5xc1d_96",sH="_copied_next_step_5xc1d_106",lH="_error_message_5xc1d_127",Q={diagnostics_display_main_container:qz,diagnostic_display_each_section_container:Kz,diagnostic_display_each_config_container:Yz,diagnostics_display_each_severity_main_container:Xz,diagnostic_display_each_severity_title:Jz,diagnostic_display_diagnostic_content_container:Qz,diagnostics_warning_caution_main_container:Bz,diagnostics_display_pre_tag:Zz,diagnostics_warning_caution_display_container:eH,warning:tH,caution:nH,diagnostic_display_each_issue_container:rH,diagnostic_display_section_title:aH,diagnostics_display_each_next_step_content:iH,next_step_function_btn:oH,copied_next_step:sH,error_message:lH};function uH(e){const{server_port:t,fv_id:n,diagnosticsNextStepsOutputState:r,setDiagnosticsNextStepsOutputState:a,diagnosticsRunFnNameListState:i,setDiagnosticsRunFnNameListState:o,setDiagnosticsRunnerDisplayState:s}=P.useContext(it),l=e.diagnosticData,u=e.whichIssue;let h="Loading jacobian condition...",d="Loading model statistics structural...",p="Loading warning...",w="Loading caution...",m="Loading suggested next step...",_=0,b=0,v=[];if(u&&l&&l.diagnostics_toolbox_report){const S=l.diagnostics_toolbox_report;h=T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:S.toolbox_jacobian_condation});const x=S.toolbox_model_statistics;x&&x.length>0?d=x.map((O,N)=>T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:O},`model_structural_statistics_content${N}_${O}`)):d=T.jsxs(T.Fragment,{children:[T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:" Model Statistics is not generate by diagnostics toolbox, please run: "}),T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:" dt = DiagnosticsToolbox(model)"}),T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:" dt.report_structural_issues()"}),T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:" dt.report_numerical_issues()"})]});const D=S[u=="structural"?"structural_report":"numerical_report"].warning[0];_=D.length,D&&D.length>0?p=D.map((O,N)=>(O=O.replace("WARNING","Warning"),T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:O},`eachWarning_${N}_${O}`))):p=T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:"No warning."});const k=S[u=="structural"?"structural_report":"numerical_report"].caution;b=k.length,k&&k.length>0?w=k.map((O,N)=>(O=O.replace("CAUTION","Caution"),T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:O},`eachCaution_${N}_${O}`))):w=T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:"No caution."});let E=!1;const C=S.next_steps[u=="structural"?"structural":"numerical"];C.length>0&&(E=!0,v=[...C]),E?m=C.map((O,N)=>T.jsxs("p",{className:`${Q.diagnostics_display_each_next_step_content}`,children:[T.jsx("span",{className:"function_name",children:O}),T.jsx("span",{className:`${Q.next_step_function_btn}`,onClick:()=>{y(O)},children:"Run"}),T.jsx("span",{className:`${Q.next_step_function_btn}`,onClick:cH,children:"Copy"})]},`diagnostics_suggested_next_step_${O}`)):(u=="structural"&&(m="Try to initialize / solve your model and then call report_numerical_issues()"),u=="numerical"&&(m="Try to initialize / solve your model and then call report_numerical_issues()"))}async function y(S){try{if(!S)return;s(S);let x=S.replace("(","").replace(")","");const D=`http://localhost:${t}/run_diagnostic`,E=new URL(window.location.href).searchParams.get("id"),C={function_name:x,id:E},O=await Zn.put(D,C);console.log(O);const N=O.data;a(L=>{const U={...L};return U[S]||(U[S]=[]),U[S]&&U[S].push(N),U})}catch(x){ir("diagnosticFNRunError",!1,x.response.data.error),console.log(x);const D=document.getElementById("diagnosticsRunner_content_container");if(D){const k=` +
${x.response.data.error}
+                    
+ `;D.innerHTML+=k}}}return P.useEffect(()=>{for(let S=0;S{const k=D.map(E=>E);return k.push(x),k})}},[v]),T.jsxs("div",{className:`${Q.diagnostics_display_main_container}`,children:[T.jsxs("div",{className:Q.diagnostic_display_each_section_container,children:[T.jsx("p",{className:Q.diagnostic_display_section_title,children:"Model Statistics"}),u=="structural"||!u?d:h]}),T.jsxs("div",{className:Q.diagnostic_display_each_section_container,children:[T.jsxs("div",{className:Q.diagnostics_warning_caution_main_container,children:[T.jsxs("div",{className:`${Q.diagnostic_display_each_severity_title} ${Q.warning}`,children:["WARNINGS",T.jsx("span",{children:_})]}),T.jsx("div",{className:Q.diagnostics_warning_caution_display_container,children:p})]}),T.jsxs("div",{className:Q.diagnostics_warning_caution_main_container,children:[T.jsxs("div",{className:`${Q.diagnostic_display_each_severity_title} ${Q.caution}`,children:["CAUTIONS",T.jsx("span",{children:b})]}),T.jsx("div",{className:Q.diagnostics_warning_caution_display_container,children:w})]})]}),T.jsxs("div",{className:Q.diagnostic_display_each_section_container,children:[m!="Loading suggested next step..."&&T.jsx("p",{className:Q.diagnostic_display_section_title,children:"Suggested next steps:"}),T.jsx("div",{className:Q.diagnostic_display_diagnostic_content_container,children:m})]})]})}function cH(e){let t=e.currentTarget,n=t.parentElement.querySelector(".function_name");if(!n){console.error("There is an issue with click copy next step function");return}const r=n.textContent||"";navigator.clipboard.writeText(r).then(()=>{let a;a?clearTimeout(a):(t.innerText="Copied",a=setTimeout(()=>{t.innerText="Copy"},900))}).catch(a=>{console.error("Failed to copy text: ",a)})}function fH(){let{server_port:e,diagnosticsRefreshState:t}=P.useContext(it);const[n,r]=P.useState(null),[a,i]=P.useState("structural"),o=s=>{i(s)};return P.useEffect(()=>{const l=new URL(window.location.href).searchParams.get("id"),u=`http://localhost:${e}/diagnostics?id=${l}`;(async d=>{try{const w=(await Zn.get(d)).data;ir("diagnosticRefresh",!0),r(w)}catch(p){console.error("Fetch diagnostic data error",p),ir("diagnosticRefresh",!1)}})(u)},[t]),T.jsxs(T.Fragment,{children:[T.jsx(Vz,{diagnosticData:n,toggleIssue:o,whichIssue:a}),T.jsx(uH,{diagnosticData:n,whichIssue:a})]})}const dH="_diagnosticsRunner_content_container_151kk_1",Lv={diagnosticsRunner_content_container:dH};function hH(){const{diagnosticsNextStepsOutputState:e,diagnosticsRunnerDisplayState:t,diagnosticsHistoryState:n,setDiagnosticsHistory:r}=P.useContext(it);let a="",i=0;return!t||t=="default"?a="Please select a function to check diagnostics result!":!e[t]||e[t][0].diagnostics_runner_result.length==0?a="Please run diagnostics function first!":e[t]&&e[t]&&(i=e[t].length,a=e[t].map((o,s)=>T.jsx(Sn.Fragment,{children:T.jsx("pre",{id:`diagnostics_log_${s}`,className:Lv.diagnostics_runner_output_pre,children:o.diagnostics_runner_result})},`diagnosticsRunnerDisplayContentContainerContent${s}`))),P.useEffect(()=>{r(o=>i)},[i]),T.jsx("div",{className:Lv.diagnosticsRunner_content_container,id:"diagnosticsRunner_content_container",style:{overflowY:"scroll"},children:a})}const pH="_diagnostics_log_header_history_btn_container_1ynrk_1",gH="_diagnostics_log_header_history_btn_1ynrk_1",mH={diagnostics_log_header_history_btn_container:pH,diagnostics_log_header_history_btn:gH};function vH(){const{diagnosticsHistoryState:e,setDiagnosticsHistory:t,viewInLogPanel:n}=P.useContext(it),[r,a]=P.useState(0),[i,o]=P.useState({hasPrevHistory:!1,hasNextHistory:!1});function s(){r>0&&a(d=>{let p=d;return p-=1,p}),window.location.hash=`#diagnostics_log_${r-1}`}function l(){r{let p=d;return p+=1,p})),window.location.hash=`#diagnostics_log_${r}`}function u(){if(r-1<=0){o(d=>{const p={...d};return p.hasPrevHistory=!1,p});return}if(r-1>=0){o(d=>{const p={...d};return p.hasPrevHistory=!0,p});return}}function h(){if(r==e){o(d=>{const p={...d};return p.hasNextHistory=!1,p});return}if(r{const p={...d};return p.hasNextHistory=!0,p});return}}return P.useEffect(()=>{window.location.hash=`diagnostics_log_${r}`},[n]),P.useEffect(()=>{u(),h(),a(()=>e),window.location.hash=`diagnostics_log_${r-1}`},[e]),P.useEffect(()=>{u(),h(),window.location.hash=`diagnostics_log_${r-1}`},[r]),T.jsxs("div",{id:"diagnostics_log_panel",className:`${mH.diagnostics_log_header_history_btn_container}`,children:[T.jsx(bt,{minimal:!0,disabled:!i.hasPrevHistory,onClick:()=>s(),children:T.jsx(ze,{icon:Be.UNDO,size:20})}),T.jsx(bt,{minimal:!0,disabled:!i.hasNextHistory,onClick:()=>l(),children:T.jsx(ze,{icon:Be.REDO,size:20})})]})}function Mv(){return T.jsx(T.Fragment,{children:T.jsx("div",{id:"stream-table",className:"idaes-container",style:{display:"block"},children:T.jsx("div",{id:"stream-table-container",className:"pd-md tableContainer",children:T.jsx("div",{id:"stream-table-data",className:"ag-theme-alpine"})})})})}const yH=()=>{const{panelState:e,setPanelState:t,fvHeaderState:n,setFvHeaderState:r,diagnosticsRunFnNameListState:a,setDiagnosticsRunnerDisplayState:i,viewInLogPanel:o,setViewInLogPanel:s,setDiagnosticsRefreshState:l}=P.useContext(it),u=n.isShowSteamName,h=n.isShowLabels,[d,p]=P.useState(E());function w(O){Object.keys(o).includes(O)&&s(N=>{const L={...N};return Object.keys(L).forEach(U=>{U==O?L[U]=!0:L[U]=!1}),L})}function m(){return e.diagnostics.show===!0&&o.diagnosticsLogs?T.jsx(hH,{}):e.diagnostics.show===!0&&o.streamTable===!0?T.jsx(Mv,{}):e.diagnostics.show===!1?T.jsx(Mv,{}):T.jsx(T.Fragment,{children:"Bottom panel display error cause by diagnosticsRunnerOrStreamTableDisplay"})}const _={components:T.jsx(jz,{}),flowsheet:T.jsx(zz,{}),diagnostics:T.jsx(fH,{}),streamTableAndDiagnostics:m()},b={components:"Components",flowsheet:"Diagram",diagnostics:"Diagnostics",diagnosticsRunner:"Diagnostics Runner",streamTable:"Stream Table",streamTableAndDiagnostics:"Diagnostics Logs"},v=(O,N)=>(jv(O,y,S,u,h,a,i,o,l),T.jsx(T.Fragment,{children:T.jsx(xf.MosaicWindow,{path:N,createNode:()=>"new",title:b[O],renderToolbar:(L,U)=>T.jsxs("div",{className:"mosaic_customized_toolbar_header",children:[T.jsx("div",{className:"mosaic_customized_toolbar_title_container",children:b[O]==b.streamTableAndDiagnostics?T.jsxs(T.Fragment,{children:[T.jsx("p",{onClick:()=>w("streamTable"),className:` + ${o.streamTable?"mosaic_header_toolbar_title_activate":"mosaic_header_toolbar_title_deactivate"} + mosaic_header_toolbar_title diagnostics_runner_panel_title + `,children:"Stream Table"}),T.jsx("p",{onClick:()=>{e.diagnostics.show&&w("diagnosticsLogs")},className:` + ${o.diagnosticsLogs?"mosaic_header_toolbar_title_activate":"mosaic_header_toolbar_title_deactivate"} + + ${!e.diagnostics.show&&"mosaic_header_tool_bar_fully_deactivate"} + mosaic_header_toolbar_title diagnostics_runner_panel_title + `,children:b[O]})]}):T.jsx("p",{className:"mosaic_header_toolbar_title",children:b[O]})}),T.jsx("div",{className:"mosaic_customized_toolbar_btn_container",children:jv(O,y,S,u,h,a,i,o,l)})]}),children:_[O]})}));function y(){r(O=>({...O,isShowSteamName:!O.isShowSteamName}))}function S(){r(O=>({...O,isShowLabels:!O.isShowLabels}))}function x(O){e.diagnostics.show&&D(O),localStorage.setItem("mosaicLayout",JSON.stringify(O)),p(()=>O)}function D(O){let N,L=localStorage.getItem("diagnosticsPanelParams");L?N=JSON.parse(L):N=k(),Object.keys(O).forEach(U=>{O[U]=="diagnostics"&&(N.direction=O.direction,N.splitPercentage=O.splitPercentage,N.diagnosticsPanelLocationInItem=U,N.diagnosticsPanelLocationInObj=void 0,N.diagnosticsPanelStayWith=void 0),typeof O[U]=="object"&&Object.keys(O[U]).forEach(H=>{if(O[U][H]=="diagnostics"){N.direction=O[U].direction,N.splitPercentage=O[U].splitPercentage;const lt=H=="first"?"second":"first";N.diagnosticsPanelStayWith=O[U][lt],N.diagnosticsPanelLocationInItem=U,N.diagnosticsPanelLocationInObj=H}})}),localStorage.setItem("diagnosticsPanelParams",JSON.stringify(N))}function k(){let O=localStorage.getItem("diagnosticsPanelParams");if(O)return JSON.parse(O);{const N={direction:"row",diagnosticsPanelParamsLocationInItem:"first",diagnosticsPanelLocationInObj:"second",diagnosticsPanelStayWith:"flowsheet",splitPercentage:55};return localStorage.setItem("diagnosticsPanelParams",JSON.stringify(N)),N}}function E(){let O;return e.diagnostics.show&&(O={direction:"column",first:{direction:"row",first:"flowsheet",second:"diagnostics",splitPercentage:55},second:"streamTableAndDiagnostics",splitPercentage:60}),e.diagnostics.show||(O={direction:"column",first:"flowsheet",second:"streamTableAndDiagnostics",splitPercentage:60}),O}function C(){try{if(k(),e.diagnostics.show){let O=JSON.parse(JSON.stringify(d));if(!JSON.stringify(d).includes("diagnostics")){localStorage.getItem("diagnosticsPanelParams")||k();const N=localStorage.getItem("diagnosticsPanelParams");if(N){let L=JSON.parse(N);if(!L.diagnosticsPanelLocationInObj){const U=L.diagnosticsPanelLocationInItem=="first"?"second":"first",H={direction:O.direction?O.direction:"row",splitPercentage:O.splitPercentage?O.splitPercentage:55,first:O.first?O.first:"flowsheet",second:O.second?O.second:"streamTableAndDiagnostics"};O.direction=L.direction?L.direction:"column",O.splitPercentage=L.splitPercentage?L.splitPercentage:55,O[L.diagnosticsPanelLocationInItem]="diagnostics",O[U]=H}if(L.diagnosticsPanelLocationInObj){const U=L.diagnosticsPanelStayWith?L.diagnosticsPanelStayWith:"flowsheet";let H=Object.keys(O).find(Or=>{if(O[Or]==U)return Or});const lt=U=="flowsheet"?"streamTableAndDiagnostics":"flowsheet",on=H=="first"?"second":"first";H||(H="first");const Ut={direction:L.direction?L.direction:"column",splitPercentage:O.splitPercentage?O.splitPercentage:55};Ut[H]=U,H==L.diagnosticsPanelLocationInObj&&(H=="first"?L.diagnosticsPanelLocationInObj="second":L.diagnosticsPanelLocationInObj="first"),Ut[L.diagnosticsPanelLocationInObj]="diagnostics",O=JSON.parse(JSON.stringify(O)),O[H]=Ut,O[on]=lt}}}return O}if(!e.diagnostics.show){let O=JSON.stringify(d),N=JSON.parse(O);return Object.keys(N).forEach(L=>{if(N[L]=="diagnostics"){delete N[L];const U=L=="first"?"second":"first",H=JSON.parse(JSON.stringify(N[U]));N.first=H.first,N.second=H.second,N.direction=H.direction,N.splitPercentage=H.splitPercentage}}),Object.keys(N).forEach(L=>{typeof N[L]=="object"&&Object.keys(N[L]).forEach(U=>{N[L][U]=="diagnostics"&&(delete N[L][U],N[L].first?N[L]=N[L].first:N[L]=N[L].second)})}),N}}catch{console.log("error in get mosaic layout rest layout"),E()}}return P.useEffect(()=>{p(()=>{const O=localStorage.getItem("mosaicLayout");return O?JSON.parse(O):E()})},[e.diagnostics.show]),T.jsx(xf.Mosaic,{renderTile:v,onChange:x,initialValue:C()})};function jv(e,t,n,r,a,i,o,s,l){switch(e){case"components":return T.jsxs("div",{className:"mosaic_toolbar_btn_container",children:[T.jsx(bt,{minimal:!0,children:T.jsx(ze,{icon:Be.MINIMIZE,size:20})}),T.jsx(bt,{minimal:!0,children:T.jsx(ze,{icon:Be.MAXIMIZE,size:20})}),T.jsx(bt,{minimal:!0,children:T.jsx(ze,{icon:Be.CROSS,size:20})})]});case"flowsheet":return T.jsxs("div",{className:"mosaic_toolbar_btn_container",children:[T.jsx(bt,{id:"zoom-in-btn",minimal:!0,children:T.jsx(ze,{icon:Be.ZOOM_IN,size:20})}),T.jsx(bt,{id:"zoom-out-btn",minimal:!0,children:T.jsx(ze,{icon:Be.ZOOM_OUT,size:20})}),T.jsx(bt,{id:"zoom-to-fit",minimal:!0,children:T.jsx(ze,{icon:Be.ZOOM_TO_FIT,size:20})}),T.jsxs(bt,{className:"mosaic_flowsheet_header_view",minimal:!0,children:[T.jsx(ze,{icon:Be.EYE_OPEN,size:20}),T.jsxs("ul",{className:"mosaic_dropdown_view",children:[T.jsxs("li",{id:"stream-names-toggle",onClick:t,"data-toggle":`${r}`,children:[r?T.jsx(Fe,{icon:Lg,className:"mosaic_toolbar_diagram_view_icon_stroke_only"}):T.jsx(Fe,{icon:Mg,className:"mosaic_toolbar_diagram_view_icon_stroke_only"}),T.jsx("span",{children:"Stream Name"})]}),T.jsxs("li",{id:"show-label-toggle",onClick:n,"data-toggle":a?"false":"true",children:[a?T.jsx(Fe,{icon:Lg,className:"mosaic_toolbar_diagram_view_icon_stroke_only"}):T.jsx(Fe,{icon:Mg,className:"mosaic_toolbar_diagram_view_icon_stroke_only"}),T.jsx("span",{children:"Labels"})]})]})]}),T.jsxs(bt,{className:"mosaic_flowsheet_header_download",minimal:!0,children:[T.jsx(ze,{icon:Be.BRING_DATA,size:20}),T.jsxs("ul",{id:"flowsheet_component_header_dropdown_container",className:"mosaic_dropdown_download",children:[T.jsx("li",{id:"headerExportImageBtn",children:"Export PNG"}),T.jsx("li",{id:"headerExportSvgBtn",children:"Export SVG"})]})]})]});case"diagnostics":let u=function(){l(p=>!p)};return T.jsxs("div",{className:"mosaic_toolbar_btn_container",children:[T.jsx("p",{className:"mosaic_diagnostic_toolbar_content",children:"BLOCK: FLOWSHEET"}),T.jsxs("div",{className:"mosaic_toolbar_btn_icon_with_text clickable_btn",onClick:()=>u(),children:[T.jsx(ze,{icon:Be.REFRESH,size:20}),T.jsx("span",{className:"mosaic_toolbar_btn_icon_with_text_text",children:"Refresh"})]})]});case"streamTable":return T.jsx("div",{className:"mosaic_toolbar_btn_container",children:T.jsx(Av,{})});case"streamTableAndDiagnostics":return T.jsxs("div",{className:"mosaic_toolbar_btn_container",children:[!s.diagnosticsLogs&&T.jsx(Av,{}),s.diagnosticsLogs&&T.jsx(vH,{})]});case"diagnosticsRunner":let h=function(p){o(p.currentTarget.value)};const d=i.map((p,w)=>T.jsx("option",{value:`${p}`,children:p},`diagnosticsRunnerSelection${p}`));return T.jsx("div",{className:"mosaic_toolbar_btn_container",children:T.jsxs("select",{name:"diagnosticsRunnerSelection",id:"",className:"mosaic_diagnosticsRunner_select",onChange:h,children:[T.jsx("option",{value:"default",children:"Select a function"}),d]})});default:return T.jsx(T.Fragment,{})}}function wH(e){return e.messageType&&e.messageType,T.jsx(T.Fragment,{children:T.jsx("div",{className:os.message_bar_container,id:"messageBarContainer"})})}const _H="_flowsheetWrapper_11hj9_1",SH={flowsheetWrapper:_H};function bH(){let{server_port:e,fv_id:t,panelState:n,viewInLogPanel:r}=P.useContext(it);const a=n.fv.show,i=n.diagnostics.show,o=n.streamTable.show;return P.useEffect(()=>{let s;return s?s=void 0:(e=="5173"?e=8e3:e=e,s=new MO(t,e,a,!1,o,r)),()=>{s&&typeof s.cleanToolBarEvent=="function"&&s.cleanToolBarEvent()}},[a,o,i,r]),T.jsxs("div",{id:"flowsheet-wrapper",className:SH.flowsheetWrapper,children:[T.jsx(yH,{}),T.jsx(wH,{})]})}function EH(){return T.jsxs("main",{id:"main",className:"main",children:[T.jsx(uC,{}),T.jsx(bH,{})]})}localStorage.getItem("appSetting")||localStorage.setItem("appSetting","{}");dc.createRoot(document.getElementById("root")).render(T.jsx(Nb,{children:T.jsx(EH,{})}));export{Le as I,Yr as _,Xr as a,xv as b,fz as p}; diff --git a/idaes_ui/fv/static/assets/index-7034b54b.js b/idaes_ui/fv/static/assets/index-7034b54b.js new file mode 100644 index 00000000..9146df33 --- /dev/null +++ b/idaes_ui/fv/static/assets/index-7034b54b.js @@ -0,0 +1,854 @@ +var nS=Object.defineProperty;var rS=(e,t,n)=>t in e?nS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var z=(e,t,n)=>(rS(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();var $=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Bf(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),n}var Fv={exports:{}},rl={},Iv={exports:{}},Y={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ri=Symbol.for("react.element"),aS=Symbol.for("react.portal"),iS=Symbol.for("react.fragment"),oS=Symbol.for("react.strict_mode"),sS=Symbol.for("react.profiler"),lS=Symbol.for("react.provider"),uS=Symbol.for("react.context"),cS=Symbol.for("react.forward_ref"),fS=Symbol.for("react.suspense"),dS=Symbol.for("react.memo"),hS=Symbol.for("react.lazy"),Zh=Symbol.iterator;function pS(e){return e===null||typeof e!="object"?null:(e=Zh&&e[Zh]||e["@@iterator"],typeof e=="function"?e:null)}var Uv={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},zv=Object.assign,Hv={};function pa(e,t,n){this.props=e,this.context=t,this.refs=Hv,this.updater=n||Uv}pa.prototype.isReactComponent={};pa.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};pa.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Wv(){}Wv.prototype=pa.prototype;function Zf(e,t,n){this.props=e,this.context=t,this.refs=Hv,this.updater=n||Uv}var ed=Zf.prototype=new Wv;ed.constructor=Zf;zv(ed,pa.prototype);ed.isPureReactComponent=!0;var ep=Array.isArray,Gv=Object.prototype.hasOwnProperty,td={current:null},Vv={key:!0,ref:!0,__self:!0,__source:!0};function qv(e,t,n){var r,a={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Gv.call(t,r)&&!Vv.hasOwnProperty(r)&&(a[r]=t[r]);var s=arguments.length-2;if(s===1)a.children=n;else if(1>>1,Se=F[he];if(0>>1;hea(lu,q))qna(so,lu)?(F[he]=so,F[qn]=q,he=qn):(F[he]=lu,F[Vn]=q,he=Vn);else if(qna(so,q))F[he]=so,F[qn]=q,he=qn;else break e}}return V}function a(F,V){var q=F.sortIndex-V.sortIndex;return q!==0?q:F.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],u=[],h=1,d=null,p=3,w=!1,m=!1,_=!1,b=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(F){for(var V=n(u);V!==null;){if(V.callback===null)r(u);else if(V.startTime<=F)r(u),V.sortIndex=V.expirationTime,t(l,V);else break;V=n(u)}}function x(F){if(_=!1,S(F),!m)if(n(l)!==null)m=!0,Ut(D);else{var V=n(u);V!==null&&Or(x,V.startTime-F)}}function D(F,V){m=!1,_&&(_=!1,v(C),C=-1),w=!0;var q=p;try{for(S(V),d=n(l);d!==null&&(!(d.expirationTime>V)||F&&!L());){var he=d.callback;if(typeof he=="function"){d.callback=null,p=d.priorityLevel;var Se=he(d.expirationTime<=V);V=e.unstable_now(),typeof Se=="function"?d.callback=Se:d===n(l)&&r(l),S(V)}else r(l);d=n(l)}if(d!==null)var oo=!0;else{var Vn=n(u);Vn!==null&&Or(x,Vn.startTime-V),oo=!1}return oo}finally{d=null,p=q,w=!1}}var k=!1,E=null,C=-1,O=5,N=-1;function L(){return!(e.unstable_now()-NF||125he?(F.sortIndex=q,t(u,F),n(l)===null&&F===n(u)&&(_?(v(C),C=-1):_=!0,Or(x,q-he))):(F.sortIndex=Se,t(l,F),m||w||(m=!0,Ut(D))),F},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(F){var V=p;return function(){var q=p;p=V;try{return F.apply(this,arguments)}finally{p=q}}}})(Jv);Xv.exports=Jv;var CS=Xv.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Qv=P,nt=CS;function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hc=Object.prototype.hasOwnProperty,OS=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,np={},rp={};function xS(e){return hc.call(rp,e)?!0:hc.call(np,e)?!1:OS.test(e)?rp[e]=!0:(np[e]=!0,!1)}function PS(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function NS(e,t,n,r){if(t===null||typeof t>"u"||PS(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ge(e,t,n,r,a,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){xe[e]=new Ge(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];xe[t]=new Ge(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){xe[e]=new Ge(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){xe[e]=new Ge(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){xe[e]=new Ge(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){xe[e]=new Ge(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){xe[e]=new Ge(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){xe[e]=new Ge(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){xe[e]=new Ge(e,5,!1,e.toLowerCase(),null,!1,!1)});var rd=/[\-:]([a-z])/g;function ad(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(rd,ad);xe[t]=new Ge(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(rd,ad);xe[t]=new Ge(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(rd,ad);xe[t]=new Ge(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){xe[e]=new Ge(e,1,!1,e.toLowerCase(),null,!1,!1)});xe.xlinkHref=new Ge("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){xe[e]=new Ge(e,1,!1,e.toLowerCase(),null,!0,!0)});function id(e,t,n,r){var a=xe.hasOwnProperty(t)?xe[t]:null;(a!==null?a.type!==0:r||!(2s||a[o]!==i[s]){var l=` +`+a[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{fu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Wa(e):""}function DS(e){switch(e.tag){case 5:return Wa(e.type);case 16:return Wa("Lazy");case 13:return Wa("Suspense");case 19:return Wa("SuspenseList");case 0:case 2:case 15:return e=du(e.type,!1),e;case 11:return e=du(e.type.render,!1),e;case 1:return e=du(e.type,!0),e;default:return""}}function vc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case $r:return"Fragment";case Rr:return"Portal";case pc:return"Profiler";case od:return"StrictMode";case gc:return"Suspense";case mc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ey:return(e.displayName||"Context")+".Consumer";case Zv:return(e._context.displayName||"Context")+".Provider";case sd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ld:return t=e.displayName||null,t!==null?t:vc(e.type)||"Memo";case dn:t=e._payload,e=e._init;try{return vc(e(t))}catch{}}return null}function kS(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return vc(t);case 8:return t===od?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function kn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ny(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function AS(e){var t=ny(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function co(e){e._valueTracker||(e._valueTracker=AS(e))}function ry(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ny(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function gs(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function yc(e,t){var n=t.checked;return ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ip(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=kn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ay(e,t){t=t.checked,t!=null&&id(e,"checked",t,!1)}function wc(e,t){ay(e,t);var n=kn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?_c(e,t.type,n):t.hasOwnProperty("defaultValue")&&_c(e,t.type,kn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function op(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function _c(e,t,n){(t!=="number"||gs(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ga=Array.isArray;function Jr(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=fo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function fi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Qa={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},RS=["Webkit","ms","Moz","O"];Object.keys(Qa).forEach(function(e){RS.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qa[t]=Qa[e]})});function ly(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Qa.hasOwnProperty(e)&&Qa[e]?(""+t).trim():t+"px"}function uy(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,a=ly(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}var $S=ce({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ec(e,t){if(t){if($S[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function Tc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Cc=null;function ud(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Oc=null,Qr=null,Br=null;function up(e){if(e=Mi(e)){if(typeof Oc!="function")throw Error(R(280));var t=e.stateNode;t&&(t=ll(t),Oc(e.stateNode,e.type,t))}}function cy(e){Qr?Br?Br.push(e):Br=[e]:Qr=e}function fy(){if(Qr){var e=Qr,t=Br;if(Br=Qr=null,up(e),t)for(e=0;e>>=0,e===0?32:31-(VS(e)/qS|0)|0}var ho=64,po=4194304;function Va(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ws(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,a=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~a;s!==0?r=Va(s):(i&=o,i!==0&&(r=Va(i)))}else o=n&~a,o!==0?r=Va(o):i!==0&&(r=Va(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&a)&&(a=r&-r,i=t&-t,a>=i||a===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function $i(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ot(t),e[t]=n}function JS(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Za),yp=String.fromCharCode(32),wp=!1;function ky(e,t){switch(e){case"keyup":return T2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ay(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Lr=!1;function O2(e,t){switch(e){case"compositionend":return Ay(t);case"keypress":return t.which!==32?null:(wp=!0,yp);case"textInput":return e=t.data,e===yp&&wp?null:e;default:return null}}function x2(e,t){if(Lr)return e==="compositionend"||!vd&&ky(e,t)?(e=Ny(),Xo=pd=vn=null,Lr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ep(n)}}function My(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?My(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jy(){for(var e=window,t=gs();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=gs(e.document)}return t}function yd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function M2(e){var t=jy(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&My(n.ownerDocument.documentElement,n)){if(r!==null&&yd(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=n.textContent.length,i=Math.min(r.start,a);r=r.end===void 0?i:Math.min(r.end,a),!e.extend&&i>r&&(a=r,r=i,i=a),a=Tp(n,i);var o=Tp(n,r);a&&o&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Mr=null,Ac=null,ti=null,Rc=!1;function Cp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Rc||Mr==null||Mr!==gs(r)||(r=Mr,"selectionStart"in r&&yd(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ti&&vi(ti,r)||(ti=r,r=bs(Ac,"onSelect"),0Ir||(e.current=Ic[Ir],Ic[Ir]=null,Ir--)}function ee(e,t){Ir++,Ic[Ir]=e.current,e.current=t}var An={},Ie=Un(An),Ke=Un(!1),ur=An;function aa(e,t){var n=e.type.contextTypes;if(!n)return An;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in n)a[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Ye(e){return e=e.childContextTypes,e!=null}function Ts(){ie(Ke),ie(Ie)}function Ap(e,t,n){if(Ie.current!==An)throw Error(R(168));ee(Ie,t),ee(Ke,n)}function qy(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var a in r)if(!(a in t))throw Error(R(108,kS(e)||"Unknown",a));return ce({},n,r)}function Cs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||An,ur=Ie.current,ee(Ie,e),ee(Ke,Ke.current),!0}function Rp(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=qy(e,t,ur),r.__reactInternalMemoizedMergedChildContext=e,ie(Ke),ie(Ie),ee(Ie,e)):ie(Ke),ee(Ke,n)}var Wt=null,ul=!1,Ou=!1;function Ky(e){Wt===null?Wt=[e]:Wt.push(e)}function Y2(e){ul=!0,Ky(e)}function zn(){if(!Ou&&Wt!==null){Ou=!0;var e=0,t=B;try{var n=Wt;for(B=1;e>=o,a-=o,qt=1<<32-Ot(t)+a|n<C?(O=E,E=null):O=E.sibling;var N=p(v,E,S[C],x);if(N===null){E===null&&(E=O);break}e&&E&&N.alternate===null&&t(v,E),y=i(N,y,C),k===null?D=N:k.sibling=N,k=N,E=O}if(C===S.length)return n(v,E),se&&Yn(v,C),D;if(E===null){for(;CC?(O=E,E=null):O=E.sibling;var L=p(v,E,N.value,x);if(L===null){E===null&&(E=O);break}e&&E&&L.alternate===null&&t(v,E),y=i(L,y,C),k===null?D=L:k.sibling=L,k=L,E=O}if(N.done)return n(v,E),se&&Yn(v,C),D;if(E===null){for(;!N.done;C++,N=S.next())N=d(v,N.value,x),N!==null&&(y=i(N,y,C),k===null?D=N:k.sibling=N,k=N);return se&&Yn(v,C),D}for(E=r(v,E);!N.done;C++,N=S.next())N=w(E,v,C,N.value,x),N!==null&&(e&&N.alternate!==null&&E.delete(N.key===null?C:N.key),y=i(N,y,C),k===null?D=N:k.sibling=N,k=N);return e&&E.forEach(function(U){return t(v,U)}),se&&Yn(v,C),D}function b(v,y,S,x){if(typeof S=="object"&&S!==null&&S.type===$r&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case uo:e:{for(var D=S.key,k=y;k!==null;){if(k.key===D){if(D=S.type,D===$r){if(k.tag===7){n(v,k.sibling),y=a(k,S.props.children),y.return=v,v=y;break e}}else if(k.elementType===D||typeof D=="object"&&D!==null&&D.$$typeof===dn&&Up(D)===k.type){n(v,k.sibling),y=a(k,S.props),y.ref=Ra(v,k,S),y.return=v,v=y;break e}n(v,k);break}else t(v,k);k=k.sibling}S.type===$r?(y=lr(S.props.children,v.mode,x,S.key),y.return=v,v=y):(x=rs(S.type,S.key,S.props,null,v.mode,x),x.ref=Ra(v,y,S),x.return=v,v=x)}return o(v);case Rr:e:{for(k=S.key;y!==null;){if(y.key===k)if(y.tag===4&&y.stateNode.containerInfo===S.containerInfo&&y.stateNode.implementation===S.implementation){n(v,y.sibling),y=a(y,S.children||[]),y.return=v,v=y;break e}else{n(v,y);break}else t(v,y);y=y.sibling}y=$u(S,v.mode,x),y.return=v,v=y}return o(v);case dn:return k=S._init,b(v,y,k(S._payload),x)}if(Ga(S))return m(v,y,S,x);if(Pa(S))return _(v,y,S,x);So(v,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,y!==null&&y.tag===6?(n(v,y.sibling),y=a(y,S),y.return=v,v=y):(n(v,y),y=Ru(S,v.mode,x),y.return=v,v=y),o(v)):n(v,y)}return b}var oa=t0(!0),n0=t0(!1),ji={},jt=Un(ji),Si=Un(ji),bi=Un(ji);function nr(e){if(e===ji)throw Error(R(174));return e}function xd(e,t){switch(ee(bi,t),ee(Si,e),ee(jt,ji),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:bc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=bc(t,e)}ie(jt),ee(jt,t)}function sa(){ie(jt),ie(Si),ie(bi)}function r0(e){nr(bi.current);var t=nr(jt.current),n=bc(t,e.type);t!==n&&(ee(Si,e),ee(jt,n))}function Pd(e){Si.current===e&&(ie(jt),ie(Si))}var le=Un(0);function ks(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var xu=[];function Nd(){for(var e=0;en?n:4,e(!0);var r=Pu.transition;Pu.transition={};try{e(!1),t()}finally{B=n,Pu.transition=r}}function w0(){return yt().memoizedState}function B2(e,t,n){var r=Pn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},_0(e))S0(t,n);else if(n=Qy(e,t,n,r),n!==null){var a=He();xt(n,e,r,a),b0(n,t,r)}}function Z2(e,t,n){var r=Pn(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(_0(e))S0(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,s=i(o,n);if(a.hasEagerState=!0,a.eagerState=s,Nt(s,o)){var l=t.interleaved;l===null?(a.next=a,Cd(t)):(a.next=l.next,l.next=a),t.interleaved=a;return}}catch{}finally{}n=Qy(e,t,a,r),n!==null&&(a=He(),xt(n,e,r,a),b0(n,t,r))}}function _0(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function S0(e,t){ni=As=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function b0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,fd(e,n)}}var Rs={readContext:vt,useCallback:Ne,useContext:Ne,useEffect:Ne,useImperativeHandle:Ne,useInsertionEffect:Ne,useLayoutEffect:Ne,useMemo:Ne,useReducer:Ne,useRef:Ne,useState:Ne,useDebugValue:Ne,useDeferredValue:Ne,useTransition:Ne,useMutableSource:Ne,useSyncExternalStore:Ne,useId:Ne,unstable_isNewReconciler:!1},eb={readContext:vt,useCallback:function(e,t){return At().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:Hp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Zo(4194308,4,p0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Zo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Zo(4,2,e,t)},useMemo:function(e,t){var n=At();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=At();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=B2.bind(null,ue,e),[r.memoizedState,e]},useRef:function(e){var t=At();return e={current:e},t.memoizedState=e},useState:zp,useDebugValue:$d,useDeferredValue:function(e){return At().memoizedState=e},useTransition:function(){var e=zp(!1),t=e[0];return e=Q2.bind(null,e[1]),At().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ue,a=At();if(se){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),Ee===null)throw Error(R(349));fr&30||o0(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,Hp(l0.bind(null,r,i,e),[e]),r.flags|=2048,Ci(9,s0.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=At(),t=Ee.identifierPrefix;if(se){var n=Kt,r=qt;n=(r&~(1<<32-Ot(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ei++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Rt]=t,e[_i]=r,k0(e,t,!1,!1),t.stateNode=e;e:{switch(o=Tc(n,r),n){case"dialog":te("cancel",e),te("close",e),a=r;break;case"iframe":case"object":case"embed":te("load",e),a=r;break;case"video":case"audio":for(a=0;aua&&(t.flags|=128,r=!0,$a(i,!1),t.lanes=4194304)}else{if(!r)if(e=ks(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),$a(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!se)return De(t),null}else 2*pe()-i.renderingStartTime>ua&&n!==1073741824&&(t.flags|=128,r=!0,$a(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=pe(),t.sibling=null,n=le.current,ee(le,r?n&1|2:n&1),t):(De(t),null);case 22:case 23:return Ud(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ze&1073741824&&(De(t),t.subtreeFlags&6&&(t.flags|=8192)):De(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function lb(e,t){switch(_d(t),t.tag){case 1:return Ye(t.type)&&Ts(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return sa(),ie(Ke),ie(Ie),Nd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Pd(t),null;case 13:if(ie(le),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));ia()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ie(le),null;case 4:return sa(),null;case 10:return Td(t.type._context),null;case 22:case 23:return Ud(),null;case 24:return null;default:return null}}var Eo=!1,Me=!1,ub=typeof WeakSet=="function"?WeakSet:Set,j=null;function Wr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){fe(e,t,r)}else n.current=null}function Qc(e,t,n){try{n()}catch(r){fe(e,t,r)}}var Qp=!1;function cb(e,t){if($c=_s,e=jy(),yd(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,s=-1,l=-1,u=0,h=0,d=e,p=null;t:for(;;){for(var w;d!==n||a!==0&&d.nodeType!==3||(s=o+a),d!==i||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(w=d.firstChild)!==null;)p=d,d=w;for(;;){if(d===e)break t;if(p===n&&++u===a&&(s=o),p===i&&++h===r&&(l=o),(w=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=w}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Lc={focusedElem:e,selectionRange:n},_s=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var _=m.memoizedProps,b=m.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?_:St(t.type,_),b);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(x){fe(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return m=Qp,Qp=!1,m}function ri(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,i!==void 0&&Qc(t,n,i)}a=a.next}while(a!==r)}}function dl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Bc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function $0(e){var t=e.alternate;t!==null&&(e.alternate=null,$0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Rt],delete t[_i],delete t[Fc],delete t[q2],delete t[K2])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function L0(e){return e.tag===5||e.tag===3||e.tag===4}function Bp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||L0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Zc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Es));else if(r!==4&&(e=e.child,e!==null))for(Zc(e,t,n),e=e.sibling;e!==null;)Zc(e,t,n),e=e.sibling}function ef(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ef(e,t,n),e=e.sibling;e!==null;)ef(e,t,n),e=e.sibling}var Ce=null,Et=!1;function sn(e,t,n){for(n=n.child;n!==null;)M0(e,t,n),n=n.sibling}function M0(e,t,n){if(Mt&&typeof Mt.onCommitFiberUnmount=="function")try{Mt.onCommitFiberUnmount(al,n)}catch{}switch(n.tag){case 5:Me||Wr(n,t);case 6:var r=Ce,a=Et;Ce=null,sn(e,t,n),Ce=r,Et=a,Ce!==null&&(Et?(e=Ce,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ce.removeChild(n.stateNode));break;case 18:Ce!==null&&(Et?(e=Ce,n=n.stateNode,e.nodeType===8?Cu(e.parentNode,n):e.nodeType===1&&Cu(e,n),gi(e)):Cu(Ce,n.stateNode));break;case 4:r=Ce,a=Et,Ce=n.stateNode.containerInfo,Et=!0,sn(e,t,n),Ce=r,Et=a;break;case 0:case 11:case 14:case 15:if(!Me&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var i=a,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Qc(n,t,o),a=a.next}while(a!==r)}sn(e,t,n);break;case 1:if(!Me&&(Wr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){fe(n,t,s)}sn(e,t,n);break;case 21:sn(e,t,n);break;case 22:n.mode&1?(Me=(r=Me)||n.memoizedState!==null,sn(e,t,n),Me=r):sn(e,t,n);break;default:sn(e,t,n)}}function Zp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ub),t.forEach(function(r){var a=wb.bind(null,e,r);n.has(r)||(n.add(r),r.then(a,a))})}}function _t(e,t){var n=t.deletions;if(n!==null)for(var r=0;ra&&(a=o),r&=~i}if(r=a,r=pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*db(r/1960))-r,10e?16:e,yn===null)var r=!1;else{if(e=yn,yn=null,Ms=0,J&6)throw Error(R(331));var a=J;for(J|=4,j=e.current;j!==null;){var i=j,o=i.child;if(j.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lpe()-Fd?sr(e,0):jd|=n),Xe(e,t)}function G0(e,t){t===0&&(e.mode&1?(t=po,po<<=1,!(po&130023424)&&(po=4194304)):t=1);var n=He();e=Bt(e,t),e!==null&&($i(e,t,n),Xe(e,n))}function yb(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),G0(e,n)}function wb(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),G0(e,n)}var V0;V0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ke.current)qe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return qe=!1,ob(e,t,n);qe=!!(e.flags&131072)}else qe=!1,se&&t.flags&1048576&&Yy(t,xs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;es(e,t),e=t.pendingProps;var a=aa(t,Ie.current);ea(t,n),a=kd(null,t,r,e,a,n);var i=Ad();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ye(r)?(i=!0,Cs(t)):i=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,Od(t),a.updater=cl,t.stateNode=a,a._reactInternals=t,Gc(t,r,e,n),t=Kc(null,t,r,!0,i,n)):(t.tag=0,se&&i&&wd(t),Ue(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(es(e,t),e=t.pendingProps,a=r._init,r=a(r._payload),t.type=r,a=t.tag=Sb(r),e=St(r,e),a){case 0:t=qc(null,t,r,e,n);break e;case 1:t=Yp(null,t,r,e,n);break e;case 11:t=qp(null,t,r,e,n);break e;case 14:t=Kp(null,t,r,St(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:St(r,a),qc(e,t,r,a,n);case 1:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:St(r,a),Yp(e,t,r,a,n);case 3:e:{if(P0(t),e===null)throw Error(R(387));r=t.pendingProps,i=t.memoizedState,a=i.element,By(e,t),Ds(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){a=la(Error(R(423)),t),t=Xp(e,t,r,n,a);break e}else if(r!==a){a=la(Error(R(424)),t),t=Xp(e,t,r,n,a);break e}else for(et=Cn(t.stateNode.containerInfo.firstChild),tt=t,se=!0,Tt=null,n=n0(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ia(),r===a){t=Zt(e,t,n);break e}Ue(e,t,r,n)}t=t.child}return t;case 5:return r0(t),e===null&&zc(t),r=t.type,a=t.pendingProps,i=e!==null?e.memoizedProps:null,o=a.children,Mc(r,a)?o=null:i!==null&&Mc(r,i)&&(t.flags|=32),x0(e,t),Ue(e,t,o,n),t.child;case 6:return e===null&&zc(t),null;case 13:return N0(e,t,n);case 4:return xd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=oa(t,null,r,n):Ue(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:St(r,a),qp(e,t,r,a,n);case 7:return Ue(e,t,t.pendingProps,n),t.child;case 8:return Ue(e,t,t.pendingProps.children,n),t.child;case 12:return Ue(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,i=t.memoizedProps,o=a.value,ee(Ps,r._currentValue),r._currentValue=o,i!==null)if(Nt(i.value,o)){if(i.children===a.children&&!Ke.current){t=Zt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Yt(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var h=u.pending;h===null?l.next=l:(l.next=h.next,h.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Hc(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(R(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Hc(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ue(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,ea(t,n),a=vt(a),r=r(a),t.flags|=1,Ue(e,t,r,n),t.child;case 14:return r=t.type,a=St(r,t.pendingProps),a=St(r.type,a),Kp(e,t,r,a,n);case 15:return C0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:St(r,a),es(e,t),t.tag=1,Ye(r)?(e=!0,Cs(t)):e=!1,ea(t,n),e0(t,r,a),Gc(t,r,a,n),Kc(null,t,r,!0,e,n);case 19:return D0(e,t,n);case 22:return O0(e,t,n)}throw Error(R(156,t.tag))};function q0(e,t){return yy(e,t)}function _b(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pt(e,t,n,r){return new _b(e,t,n,r)}function Hd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Sb(e){if(typeof e=="function")return Hd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===sd)return 11;if(e===ld)return 14}return 2}function Nn(e,t){var n=e.alternate;return n===null?(n=pt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function rs(e,t,n,r,a,i){var o=2;if(r=e,typeof e=="function")Hd(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case $r:return lr(n.children,a,i,t);case od:o=8,a|=8;break;case pc:return e=pt(12,n,t,a|2),e.elementType=pc,e.lanes=i,e;case gc:return e=pt(13,n,t,a),e.elementType=gc,e.lanes=i,e;case mc:return e=pt(19,n,t,a),e.elementType=mc,e.lanes=i,e;case ty:return pl(n,a,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Zv:o=10;break e;case ey:o=9;break e;case sd:o=11;break e;case ld:o=14;break e;case dn:o=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=pt(o,n,t,a),t.elementType=e,t.type=r,t.lanes=i,t}function lr(e,t,n,r){return e=pt(7,e,r,t),e.lanes=n,e}function pl(e,t,n,r){return e=pt(22,e,r,t),e.elementType=ty,e.lanes=n,e.stateNode={isHidden:!1},e}function Ru(e,t,n){return e=pt(6,e,null,t),e.lanes=n,e}function $u(e,t,n){return t=pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function bb(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=pu(0),this.expirationTimes=pu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pu(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Wd(e,t,n,r,a,i,o,s,l){return e=new bb(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=pt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Od(i),e}function Eb(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(J0)}catch(e){console.error(e)}}J0(),Yv.exports=rt;var Q0=Yv.exports,sg=Q0;dc.createRoot=sg.createRoot,dc.hydrateRoot=sg.hydrateRoot;function Pb(){{const e=window.location.port,n=new URLSearchParams(window.location.search).get("id");return{server_port:e,fv_id:n}}}const it=P.createContext({});function Nb({children:e}){const t=Db(),{server_port:n,fv_id:r}=Pb()??{server_port:"49999",fv_id:"sample_visualization"},[a,i]=P.useState({}),[o,s]=P.useState({fvWrapper:{panelName:"fvWrapper",show:!0,size:{maxSize:100,defaultSize:70}},fv:{panelName:"Flowsheet",show:!0,size:{minSize:100,defaultSize:70}},diagnostics:{panelName:"Diagnostics",show:t.diagnosticsPanelShow==null?!1:t.diagnosticsPanelShow,size:{minSize:100,defaultSize:70}},diagnosticsLogs:{panelName:"Stream Table",show:!1,size:{maxSize:100,defaultSize:30}},streamTable:{panelName:"Stream Table",show:!0,size:{maxSize:100,defaultSize:30}}}),[l,u]=P.useState({isShowSteamName:!0,isShowLabels:!1}),[h,d]=P.useState({}),[p,w]=P.useState([]),[m,_]=P.useState(""),[b,v]=P.useState(!0),[y,S]=P.useState(0),[x,D]=P.useState({expand:!1,expandState:{}}),[k,E]=P.useState({streamTable:!0,diagnosticsLogs:!1});return T.jsx(it.Provider,{value:{server_port:n,fv_id:r,panelState:o,setPanelState:s,showVariable:a,setShowVariable:i,fvHeaderState:l,setFvHeaderState:u,diagnosticsRunFnNameListState:p,setDiagnosticsRunFnNameListState:w,diagnosticsRefreshState:b,setDiagnosticsRefreshState:v,diagnosticsNextStepsOutputState:h,setDiagnosticsNextStepsOutputState:d,diagnosticsRunnerDisplayState:m,setDiagnosticsRunnerDisplayState:_,diagnosticsHistoryState:y,setDiagnosticsHistory:S,viewInLogPanel:k,setViewInLogPanel:E,variablesExpandState:x,setVariablesExpandState:D},children:e})}function Db(){const e=localStorage.getItem("appSetting");return JSON.parse(e)}function lg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function M(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1;a--){var i=n[a],o=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(r=i)}return oe.head.insertBefore(t,r),e}}var tE="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function ki(){for(var e=12,t="";e-- >0;)t+=tE[Math.random()*62|0];return t}function va(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Bd(e){return e.classList?va(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function u1(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function nE(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(u1(e[n]),'" ')},"").trim()}function wl(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function Zd(e){return e.size!==$t.size||e.x!==$t.x||e.y!==$t.y||e.rotate!==$t.rotate||e.flipX||e.flipY}function rE(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,a={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(t.x*32,", ").concat(t.y*32,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(i," ").concat(o," ").concat(s)},u={transform:"translate(".concat(r/2*-1," -256)")};return{outer:a,inner:l,path:u}}function aE(e){var t=e.transform,n=e.width,r=n===void 0?sf:n,a=e.height,i=a===void 0?sf:a,o=e.startCentered,s=o===void 0?!1:o,l="";return s&&n1?l+="translate(".concat(t.x/ln-r/2,"em, ").concat(t.y/ln-i/2,"em) "):s?l+="translate(calc(-50% + ".concat(t.x/ln,"em), calc(-50% + ").concat(t.y/ln,"em)) "):l+="translate(".concat(t.x/ln,"em, ").concat(t.y/ln,"em) "),l+="scale(".concat(t.size/ln*(t.flipX?-1:1),", ").concat(t.size/ln*(t.flipY?-1:1),") "),l+="rotate(".concat(t.rotate,"deg) "),l}var iE=`:root, :host { + --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid"; + --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular"; + --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light"; + --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin"; + --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone"; + --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp"; + --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp"; + --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp"; + --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands"; +} + +svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { + overflow: visible; + box-sizing: content-box; +} + +.svg-inline--fa { + display: var(--fa-display, inline-block); + height: 1em; + overflow: visible; + vertical-align: -0.125em; +} +.svg-inline--fa.fa-2xs { + vertical-align: 0.1em; +} +.svg-inline--fa.fa-xs { + vertical-align: 0em; +} +.svg-inline--fa.fa-sm { + vertical-align: -0.0714285705em; +} +.svg-inline--fa.fa-lg { + vertical-align: -0.2em; +} +.svg-inline--fa.fa-xl { + vertical-align: -0.25em; +} +.svg-inline--fa.fa-2xl { + vertical-align: -0.3125em; +} +.svg-inline--fa.fa-pull-left { + margin-right: var(--fa-pull-margin, 0.3em); + width: auto; +} +.svg-inline--fa.fa-pull-right { + margin-left: var(--fa-pull-margin, 0.3em); + width: auto; +} +.svg-inline--fa.fa-li { + width: var(--fa-li-width, 2em); + top: 0.25em; +} +.svg-inline--fa.fa-fw { + width: var(--fa-fw-width, 1.25em); +} + +.fa-layers svg.svg-inline--fa { + bottom: 0; + left: 0; + margin: auto; + position: absolute; + right: 0; + top: 0; +} + +.fa-layers-counter, .fa-layers-text { + display: inline-block; + position: absolute; + text-align: center; +} + +.fa-layers { + display: inline-block; + height: 1em; + position: relative; + text-align: center; + vertical-align: -0.125em; + width: 1em; +} +.fa-layers svg.svg-inline--fa { + -webkit-transform-origin: center center; + transform-origin: center center; +} + +.fa-layers-text { + left: 50%; + top: 50%; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); + -webkit-transform-origin: center center; + transform-origin: center center; +} + +.fa-layers-counter { + background-color: var(--fa-counter-background-color, #ff253a); + border-radius: var(--fa-counter-border-radius, 1em); + box-sizing: border-box; + color: var(--fa-inverse, #fff); + line-height: var(--fa-counter-line-height, 1); + max-width: var(--fa-counter-max-width, 5em); + min-width: var(--fa-counter-min-width, 1.5em); + overflow: hidden; + padding: var(--fa-counter-padding, 0.25em 0.5em); + right: var(--fa-right, 0); + text-overflow: ellipsis; + top: var(--fa-top, 0); + -webkit-transform: scale(var(--fa-counter-scale, 0.25)); + transform: scale(var(--fa-counter-scale, 0.25)); + -webkit-transform-origin: top right; + transform-origin: top right; +} + +.fa-layers-bottom-right { + bottom: var(--fa-bottom, 0); + right: var(--fa-right, 0); + top: auto; + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: bottom right; + transform-origin: bottom right; +} + +.fa-layers-bottom-left { + bottom: var(--fa-bottom, 0); + left: var(--fa-left, 0); + right: auto; + top: auto; + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: bottom left; + transform-origin: bottom left; +} + +.fa-layers-top-right { + top: var(--fa-top, 0); + right: var(--fa-right, 0); + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: top right; + transform-origin: top right; +} + +.fa-layers-top-left { + left: var(--fa-left, 0); + right: auto; + top: var(--fa-top, 0); + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: top left; + transform-origin: top left; +} + +.fa-1x { + font-size: 1em; +} + +.fa-2x { + font-size: 2em; +} + +.fa-3x { + font-size: 3em; +} + +.fa-4x { + font-size: 4em; +} + +.fa-5x { + font-size: 5em; +} + +.fa-6x { + font-size: 6em; +} + +.fa-7x { + font-size: 7em; +} + +.fa-8x { + font-size: 8em; +} + +.fa-9x { + font-size: 9em; +} + +.fa-10x { + font-size: 10em; +} + +.fa-2xs { + font-size: 0.625em; + line-height: 0.1em; + vertical-align: 0.225em; +} + +.fa-xs { + font-size: 0.75em; + line-height: 0.0833333337em; + vertical-align: 0.125em; +} + +.fa-sm { + font-size: 0.875em; + line-height: 0.0714285718em; + vertical-align: 0.0535714295em; +} + +.fa-lg { + font-size: 1.25em; + line-height: 0.05em; + vertical-align: -0.075em; +} + +.fa-xl { + font-size: 1.5em; + line-height: 0.0416666682em; + vertical-align: -0.125em; +} + +.fa-2xl { + font-size: 2em; + line-height: 0.03125em; + vertical-align: -0.1875em; +} + +.fa-fw { + text-align: center; + width: 1.25em; +} + +.fa-ul { + list-style-type: none; + margin-left: var(--fa-li-margin, 2.5em); + padding-left: 0; +} +.fa-ul > li { + position: relative; +} + +.fa-li { + left: calc(var(--fa-li-width, 2em) * -1); + position: absolute; + text-align: center; + width: var(--fa-li-width, 2em); + line-height: inherit; +} + +.fa-border { + border-color: var(--fa-border-color, #eee); + border-radius: var(--fa-border-radius, 0.1em); + border-style: var(--fa-border-style, solid); + border-width: var(--fa-border-width, 0.08em); + padding: var(--fa-border-padding, 0.2em 0.25em 0.15em); +} + +.fa-pull-left { + float: left; + margin-right: var(--fa-pull-margin, 0.3em); +} + +.fa-pull-right { + float: right; + margin-left: var(--fa-pull-margin, 0.3em); +} + +.fa-beat { + -webkit-animation-name: fa-beat; + animation-name: fa-beat; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-bounce { + -webkit-animation-name: fa-bounce; + animation-name: fa-bounce; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); +} + +.fa-fade { + -webkit-animation-name: fa-fade; + animation-name: fa-fade; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); +} + +.fa-beat-fade { + -webkit-animation-name: fa-beat-fade; + animation-name: fa-beat-fade; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); +} + +.fa-flip { + -webkit-animation-name: fa-flip; + animation-name: fa-flip; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-shake { + -webkit-animation-name: fa-shake; + animation-name: fa-shake; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, linear); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-spin { + -webkit-animation-name: fa-spin; + animation-name: fa-spin; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 2s); + animation-duration: var(--fa-animation-duration, 2s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, linear); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-spin-reverse { + --fa-animation-direction: reverse; +} + +.fa-pulse, +.fa-spin-pulse { + -webkit-animation-name: fa-spin; + animation-name: fa-spin; + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, steps(8)); + animation-timing-function: var(--fa-animation-timing, steps(8)); +} + +@media (prefers-reduced-motion: reduce) { + .fa-beat, +.fa-bounce, +.fa-fade, +.fa-beat-fade, +.fa-flip, +.fa-pulse, +.fa-shake, +.fa-spin, +.fa-spin-pulse { + -webkit-animation-delay: -1ms; + animation-delay: -1ms; + -webkit-animation-duration: 1ms; + animation-duration: 1ms; + -webkit-animation-iteration-count: 1; + animation-iteration-count: 1; + -webkit-transition-delay: 0s; + transition-delay: 0s; + -webkit-transition-duration: 0s; + transition-duration: 0s; + } +} +@-webkit-keyframes fa-beat { + 0%, 90% { + -webkit-transform: scale(1); + transform: scale(1); + } + 45% { + -webkit-transform: scale(var(--fa-beat-scale, 1.25)); + transform: scale(var(--fa-beat-scale, 1.25)); + } +} +@keyframes fa-beat { + 0%, 90% { + -webkit-transform: scale(1); + transform: scale(1); + } + 45% { + -webkit-transform: scale(var(--fa-beat-scale, 1.25)); + transform: scale(var(--fa-beat-scale, 1.25)); + } +} +@-webkit-keyframes fa-bounce { + 0% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 10% { + -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + } + 30% { + -webkit-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)); + 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)); + } + 50% { + -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + } + 57% { + -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + } + 64% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 100% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } +} +@keyframes fa-bounce { + 0% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 10% { + -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + } + 30% { + -webkit-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)); + 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)); + } + 50% { + -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + } + 57% { + -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + } + 64% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 100% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } +} +@-webkit-keyframes fa-fade { + 50% { + opacity: var(--fa-fade-opacity, 0.4); + } +} +@keyframes fa-fade { + 50% { + opacity: var(--fa-fade-opacity, 0.4); + } +} +@-webkit-keyframes fa-beat-fade { + 0%, 100% { + opacity: var(--fa-beat-fade-opacity, 0.4); + -webkit-transform: scale(1); + transform: scale(1); + } + 50% { + opacity: 1; + -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); + transform: scale(var(--fa-beat-fade-scale, 1.125)); + } +} +@keyframes fa-beat-fade { + 0%, 100% { + opacity: var(--fa-beat-fade-opacity, 0.4); + -webkit-transform: scale(1); + transform: scale(1); + } + 50% { + opacity: 1; + -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); + transform: scale(var(--fa-beat-fade-scale, 1.125)); + } +} +@-webkit-keyframes fa-flip { + 50% { + -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + } +} +@keyframes fa-flip { + 50% { + -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + } +} +@-webkit-keyframes fa-shake { + 0% { + -webkit-transform: rotate(-15deg); + transform: rotate(-15deg); + } + 4% { + -webkit-transform: rotate(15deg); + transform: rotate(15deg); + } + 8%, 24% { + -webkit-transform: rotate(-18deg); + transform: rotate(-18deg); + } + 12%, 28% { + -webkit-transform: rotate(18deg); + transform: rotate(18deg); + } + 16% { + -webkit-transform: rotate(-22deg); + transform: rotate(-22deg); + } + 20% { + -webkit-transform: rotate(22deg); + transform: rotate(22deg); + } + 32% { + -webkit-transform: rotate(-12deg); + transform: rotate(-12deg); + } + 36% { + -webkit-transform: rotate(12deg); + transform: rotate(12deg); + } + 40%, 100% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } +} +@keyframes fa-shake { + 0% { + -webkit-transform: rotate(-15deg); + transform: rotate(-15deg); + } + 4% { + -webkit-transform: rotate(15deg); + transform: rotate(15deg); + } + 8%, 24% { + -webkit-transform: rotate(-18deg); + transform: rotate(-18deg); + } + 12%, 28% { + -webkit-transform: rotate(18deg); + transform: rotate(18deg); + } + 16% { + -webkit-transform: rotate(-22deg); + transform: rotate(-22deg); + } + 20% { + -webkit-transform: rotate(22deg); + transform: rotate(22deg); + } + 32% { + -webkit-transform: rotate(-12deg); + transform: rotate(-12deg); + } + 36% { + -webkit-transform: rotate(12deg); + transform: rotate(12deg); + } + 40%, 100% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } +} +@-webkit-keyframes fa-spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +@keyframes fa-spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +.fa-rotate-90 { + -webkit-transform: rotate(90deg); + transform: rotate(90deg); +} + +.fa-rotate-180 { + -webkit-transform: rotate(180deg); + transform: rotate(180deg); +} + +.fa-rotate-270 { + -webkit-transform: rotate(270deg); + transform: rotate(270deg); +} + +.fa-flip-horizontal { + -webkit-transform: scale(-1, 1); + transform: scale(-1, 1); +} + +.fa-flip-vertical { + -webkit-transform: scale(1, -1); + transform: scale(1, -1); +} + +.fa-flip-both, +.fa-flip-horizontal.fa-flip-vertical { + -webkit-transform: scale(-1, -1); + transform: scale(-1, -1); +} + +.fa-rotate-by { + -webkit-transform: rotate(var(--fa-rotate-angle, none)); + transform: rotate(var(--fa-rotate-angle, none)); +} + +.fa-stack { + display: inline-block; + vertical-align: middle; + height: 2em; + position: relative; + width: 2.5em; +} + +.fa-stack-1x, +.fa-stack-2x { + bottom: 0; + left: 0; + margin: auto; + position: absolute; + right: 0; + top: 0; + z-index: var(--fa-stack-z-index, auto); +} + +.svg-inline--fa.fa-stack-1x { + height: 1em; + width: 1.25em; +} +.svg-inline--fa.fa-stack-2x { + height: 2em; + width: 2.5em; +} + +.fa-inverse { + color: var(--fa-inverse, #fff); +} + +.sr-only, +.fa-sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border-width: 0; +} + +.sr-only-focusable:not(:focus), +.fa-sr-only-focusable:not(:focus) { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border-width: 0; +} + +.svg-inline--fa .fa-primary { + fill: var(--fa-primary-color, currentColor); + opacity: var(--fa-primary-opacity, 1); +} + +.svg-inline--fa .fa-secondary { + fill: var(--fa-secondary-color, currentColor); + opacity: var(--fa-secondary-opacity, 0.4); +} + +.svg-inline--fa.fa-swap-opacity .fa-primary { + opacity: var(--fa-secondary-opacity, 0.4); +} + +.svg-inline--fa.fa-swap-opacity .fa-secondary { + opacity: var(--fa-primary-opacity, 1); +} + +.svg-inline--fa mask .fa-primary, +.svg-inline--fa mask .fa-secondary { + fill: black; +} + +.fad.fa-inverse, +.fa-duotone.fa-inverse { + color: var(--fa-inverse, #fff); +}`;function c1(){var e=r1,t=a1,n=I.cssPrefix,r=I.replacementClass,a=iE;if(n!==e||r!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");a=a.replace(i,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(s,".".concat(r))}return a}var gg=!1;function Lu(){I.autoAddCss&&!gg&&(eE(c1()),gg=!0)}var oE={mixout:function(){return{dom:{css:c1,insertCss:Lu}}},hooks:function(){return{beforeDOMElementCreation:function(){Lu()},beforeI2svg:function(){Lu()}}}},tn=Rn||{};tn[en]||(tn[en]={});tn[en].styles||(tn[en].styles={});tn[en].hooks||(tn[en].hooks={});tn[en].shims||(tn[en].shims=[]);var Ct=tn[en],f1=[],sE=function e(){oe.removeEventListener("DOMContentLoaded",e),Us=1,f1.map(function(t){return t()})},Us=!1;an&&(Us=(oe.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(oe.readyState),Us||oe.addEventListener("DOMContentLoaded",sE));function lE(e){an&&(Us?setTimeout(e,0):f1.push(e))}function Ui(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,a=e.children,i=a===void 0?[]:a;return typeof e=="string"?u1(e):"<".concat(t," ").concat(nE(r),">").concat(i.map(Ui).join(""),"")}function mg(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var uE=function(t,n){return function(r,a,i,o){return t.call(n,r,a,i,o)}},Mu=function(t,n,r,a){var i=Object.keys(t),o=i.length,s=a!==void 0?uE(n,a):n,l,u,h;for(r===void 0?(l=1,h=t[i[0]]):(l=0,h=r);l=55296&&a<=56319&&n=55296&&r<=56319&&n>t+1&&(a=e.charCodeAt(t+1),a>=56320&&a<=57343)?(r-55296)*1024+a-56320+65536:r}function vg(e){return Object.keys(e).reduce(function(t,n){var r=e[n],a=!!r.icon;return a?t[r.iconName]=r.icon:t[n]=r,t},{})}function cf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,a=r===void 0?!1:r,i=vg(t);typeof Ct.hooks.addPack=="function"&&!a?Ct.hooks.addPack(e,vg(t)):Ct.styles[e]=M(M({},Ct.styles[e]||{}),i),e==="fas"&&cf("fa",t)}var Ao,Ro,$o,Vr=Ct.styles,dE=Ct.shims,hE=(Ao={},_e(Ao,ae,Object.values(Ni[ae])),_e(Ao,de,Object.values(Ni[de])),Ao),eh=null,d1={},h1={},p1={},g1={},m1={},pE=(Ro={},_e(Ro,ae,Object.keys(xi[ae])),_e(Ro,de,Object.keys(xi[de])),Ro);function gE(e){return~Xb.indexOf(e)}function mE(e,t){var n=t.split("-"),r=n[0],a=n.slice(1).join("-");return r===e&&a!==""&&!gE(a)?a:null}var v1=function(){var t=function(i){return Mu(Vr,function(o,s,l){return o[l]=Mu(s,i,{}),o},{})};d1=t(function(a,i,o){if(i[3]&&(a[i[3]]=o),i[2]){var s=i[2].filter(function(l){return typeof l=="number"});s.forEach(function(l){a[l.toString(16)]=o})}return a}),h1=t(function(a,i,o){if(a[o]=o,i[2]){var s=i[2].filter(function(l){return typeof l=="string"});s.forEach(function(l){a[l]=o})}return a}),m1=t(function(a,i,o){var s=i[2];return a[o]=o,s.forEach(function(l){a[l]=o}),a});var n="far"in Vr||I.autoFetchSvg,r=Mu(dE,function(a,i){var o=i[0],s=i[1],l=i[2];return s==="far"&&!n&&(s="fas"),typeof o=="string"&&(a.names[o]={prefix:s,iconName:l}),typeof o=="number"&&(a.unicodes[o.toString(16)]={prefix:s,iconName:l}),a},{names:{},unicodes:{}});p1=r.names,g1=r.unicodes,eh=_l(I.styleDefault,{family:I.familyDefault})};Zb(function(e){eh=_l(e.styleDefault,{family:I.familyDefault})});v1();function th(e,t){return(d1[e]||{})[t]}function vE(e,t){return(h1[e]||{})[t]}function ar(e,t){return(m1[e]||{})[t]}function y1(e){return p1[e]||{prefix:null,iconName:null}}function yE(e){var t=g1[e],n=th("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function $n(){return eh}var nh=function(){return{prefix:null,iconName:null,rest:[]}};function _l(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?ae:n,a=xi[r][e],i=Pi[r][e]||Pi[r][a],o=e in Ct.styles?e:null;return i||o||null}var yg=($o={},_e($o,ae,Object.keys(Ni[ae])),_e($o,de,Object.keys(Ni[de])),$o);function Sl(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,a=r===void 0?!1:r,i=(t={},_e(t,ae,"".concat(I.cssPrefix,"-").concat(ae)),_e(t,de,"".concat(I.cssPrefix,"-").concat(de)),t),o=null,s=ae;(e.includes(i[ae])||e.some(function(u){return yg[ae].includes(u)}))&&(s=ae),(e.includes(i[de])||e.some(function(u){return yg[de].includes(u)}))&&(s=de);var l=e.reduce(function(u,h){var d=mE(I.cssPrefix,h);if(Vr[h]?(h=hE[s].includes(h)?Wb[s][h]:h,o=h,u.prefix=h):pE[s].indexOf(h)>-1?(o=h,u.prefix=_l(h,{family:s})):d?u.iconName=d:h!==I.replacementClass&&h!==i[ae]&&h!==i[de]&&u.rest.push(h),!a&&u.prefix&&u.iconName){var p=o==="fa"?y1(u.iconName):{},w=ar(u.prefix,u.iconName);p.prefix&&(o=null),u.iconName=p.iconName||w||u.iconName,u.prefix=p.prefix||u.prefix,u.prefix==="far"&&!Vr.far&&Vr.fas&&!I.autoFetchSvg&&(u.prefix="fas")}return u},nh());return(e.includes("fa-brands")||e.includes("fab"))&&(l.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(l.prefix="fad"),!l.prefix&&s===de&&(Vr.fass||I.autoFetchSvg)&&(l.prefix="fass",l.iconName=ar(l.prefix,l.iconName)||l.iconName),(l.prefix==="fa"||o==="fa")&&(l.prefix=$n()||"fas"),l}var wE=function(){function e(){kb(this,e),this.definitions={}}return Ab(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,a=new Array(r),i=0;i0&&h.forEach(function(d){typeof d=="string"&&(n[s][d]=u)}),n[s][l]=u}),n}}]),e}(),wg=[],qr={},na={},_E=Object.keys(na);function SE(e,t){var n=t.mixoutsTo;return wg=e,qr={},Object.keys(na).forEach(function(r){_E.indexOf(r)===-1&&delete na[r]}),wg.forEach(function(r){var a=r.mixout?r.mixout():{};if(Object.keys(a).forEach(function(o){typeof a[o]=="function"&&(n[o]=a[o]),Is(a[o])==="object"&&Object.keys(a[o]).forEach(function(s){n[o]||(n[o]={}),n[o][s]=a[o][s]})}),r.hooks){var i=r.hooks();Object.keys(i).forEach(function(o){qr[o]||(qr[o]=[]),qr[o].push(i[o])})}r.provides&&r.provides(na)}),n}function ff(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a1?t-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:{};return an?(gr("beforeI2svg",t),nn("pseudoElements2svg",t),nn("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;I.autoReplaceSvg===!1&&(I.autoReplaceSvg=!0),I.observeMutations=!0,lE(function(){CE({autoReplaceSvgRoot:n}),gr("watch",t)})}},TE={icon:function(t){if(t===null)return null;if(Is(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:ar(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=_l(t[0]);return{prefix:r,iconName:ar(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(I.cssPrefix,"-"))>-1||t.match(Gb))){var a=Sl(t.split(" "),{skipLookups:!0});return{prefix:a.prefix||$n(),iconName:ar(a.prefix,a.iconName)||a.iconName}}if(typeof t=="string"){var i=$n();return{prefix:i,iconName:ar(i,t)||t}}}},ot={noAuto:bE,config:I,dom:EE,parse:TE,library:w1,findIconDefinition:df,toHtml:Ui},CE=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?oe:n;(Object.keys(Ct.styles).length>0||I.autoFetchSvg)&&an&&I.autoReplaceSvg&&ot.dom.i2svg({node:r})};function bl(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return Ui(r)})}}),Object.defineProperty(e,"node",{get:function(){if(an){var r=oe.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function OE(e){var t=e.children,n=e.main,r=e.mask,a=e.attributes,i=e.styles,o=e.transform;if(Zd(o)&&n.found&&!r.found){var s=n.width,l=n.height,u={x:s/l/2,y:.5};a.style=wl(M(M({},i),{},{"transform-origin":"".concat(u.x+o.x/16,"em ").concat(u.y+o.y/16,"em")}))}return[{tag:"svg",attributes:a,children:t}]}function xE(e){var t=e.prefix,n=e.iconName,r=e.children,a=e.attributes,i=e.symbol,o=i===!0?"".concat(t,"-").concat(I.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:M(M({},a),{},{id:o}),children:r}]}]}function rh(e){var t=e.icons,n=t.main,r=t.mask,a=e.prefix,i=e.iconName,o=e.transform,s=e.symbol,l=e.title,u=e.maskId,h=e.titleId,d=e.extra,p=e.watchable,w=p===void 0?!1:p,m=r.found?r:n,_=m.width,b=m.height,v=a==="fak",y=[I.replacementClass,i?"".concat(I.cssPrefix,"-").concat(i):""].filter(function(O){return d.classes.indexOf(O)===-1}).filter(function(O){return O!==""||!!O}).concat(d.classes).join(" "),S={children:[],attributes:M(M({},d.attributes),{},{"data-prefix":a,"data-icon":i,class:y,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(_," ").concat(b)})},x=v&&!~d.classes.indexOf("fa-fw")?{width:"".concat(_/b*16*.0625,"em")}:{};w&&(S.attributes[pr]=""),l&&(S.children.push({tag:"title",attributes:{id:S.attributes["aria-labelledby"]||"title-".concat(h||ki())},children:[l]}),delete S.attributes.title);var D=M(M({},S),{},{prefix:a,iconName:i,main:n,mask:r,maskId:u,transform:o,symbol:s,styles:M(M({},x),d.styles)}),k=r.found&&n.found?nn("generateAbstractMask",D)||{children:[],attributes:{}}:nn("generateAbstractIcon",D)||{children:[],attributes:{}},E=k.children,C=k.attributes;return D.children=E,D.attributes=C,s?xE(D):OE(D)}function _g(e){var t=e.content,n=e.width,r=e.height,a=e.transform,i=e.title,o=e.extra,s=e.watchable,l=s===void 0?!1:s,u=M(M(M({},o.attributes),i?{title:i}:{}),{},{class:o.classes.join(" ")});l&&(u[pr]="");var h=M({},o.styles);Zd(a)&&(h.transform=aE({transform:a,startCentered:!0,width:n,height:r}),h["-webkit-transform"]=h.transform);var d=wl(h);d.length>0&&(u.style=d);var p=[];return p.push({tag:"span",attributes:u,children:[t]}),i&&p.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),p}function PE(e){var t=e.content,n=e.title,r=e.extra,a=M(M(M({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),i=wl(r.styles);i.length>0&&(a.style=i);var o=[];return o.push({tag:"span",attributes:a,children:[t]}),n&&o.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),o}var ju=Ct.styles;function hf(e){var t=e[0],n=e[1],r=e.slice(4),a=Kd(r,1),i=a[0],o=null;return Array.isArray(i)?o={tag:"g",attributes:{class:"".concat(I.cssPrefix,"-").concat(rr.GROUP)},children:[{tag:"path",attributes:{class:"".concat(I.cssPrefix,"-").concat(rr.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(I.cssPrefix,"-").concat(rr.PRIMARY),fill:"currentColor",d:i[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:i}},{found:!0,width:t,height:n,icon:o}}var NE={found:!1,width:512,height:512};function DE(e,t){!i1&&!I.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function pf(e,t){var n=t;return t==="fa"&&I.styleDefault!==null&&(t=$n()),new Promise(function(r,a){if(nn("missingIconAbstract"),n==="fa"){var i=y1(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&ju[t]&&ju[t][e]){var o=ju[t][e];return r(hf(o))}DE(e,t),r(M(M({},NE),{},{icon:I.showMissingIcons&&e?nn("missingIconAbstract")||{}:{}}))})}var Sg=function(){},gf=I.measurePerformance&&Oo&&Oo.mark&&Oo.measure?Oo:{mark:Sg,measure:Sg},Ka='FA "6.4.0"',kE=function(t){return gf.mark("".concat(Ka," ").concat(t," begins")),function(){return _1(t)}},_1=function(t){gf.mark("".concat(Ka," ").concat(t," ends")),gf.measure("".concat(Ka," ").concat(t),"".concat(Ka," ").concat(t," begins"),"".concat(Ka," ").concat(t," ends"))},ah={begin:kE,end:_1},as=function(){};function bg(e){var t=e.getAttribute?e.getAttribute(pr):null;return typeof t=="string"}function AE(e){var t=e.getAttribute?e.getAttribute(Xd):null,n=e.getAttribute?e.getAttribute(Jd):null;return t&&n}function RE(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(I.replacementClass)}function $E(){if(I.autoReplaceSvg===!0)return is.replace;var e=is[I.autoReplaceSvg];return e||is.replace}function LE(e){return oe.createElementNS("http://www.w3.org/2000/svg",e)}function ME(e){return oe.createElement(e)}function S1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?LE:ME:n;if(typeof e=="string")return oe.createTextNode(e);var a=r(e.tag);Object.keys(e.attributes||[]).forEach(function(o){a.setAttribute(o,e.attributes[o])});var i=e.children||[];return i.forEach(function(o){a.appendChild(S1(o,{ceFn:r}))}),a}function jE(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var is={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(a){n.parentNode.insertBefore(S1(a),n)}),n.getAttribute(pr)===null&&I.keepOriginalSource){var r=oe.createComment(jE(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~Bd(n).indexOf(I.replacementClass))return is.replace(t);var a=new RegExp("".concat(I.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var i=r[0].attributes.class.split(" ").reduce(function(s,l){return l===I.replacementClass||l.match(a)?s.toSvg.push(l):s.toNode.push(l),s},{toNode:[],toSvg:[]});r[0].attributes.class=i.toSvg.join(" "),i.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",i.toNode.join(" "))}var o=r.map(function(s){return Ui(s)}).join(` +`);n.setAttribute(pr,""),n.innerHTML=o}};function Eg(e){e()}function b1(e,t){var n=typeof t=="function"?t:as;if(e.length===0)n();else{var r=Eg;I.mutateApproach===zb&&(r=Rn.requestAnimationFrame||Eg),r(function(){var a=$E(),i=ah.begin("mutate");e.map(a),i(),n()})}}var ih=!1;function E1(){ih=!0}function mf(){ih=!1}var zs=null;function Tg(e){if(hg&&I.observeMutations){var t=e.treeCallback,n=t===void 0?as:t,r=e.nodeCallback,a=r===void 0?as:r,i=e.pseudoElementsCallback,o=i===void 0?as:i,s=e.observeMutationsRoot,l=s===void 0?oe:s;zs=new hg(function(u){if(!ih){var h=$n();va(u).forEach(function(d){if(d.type==="childList"&&d.addedNodes.length>0&&!bg(d.addedNodes[0])&&(I.searchPseudoElements&&o(d.target),n(d.target)),d.type==="attributes"&&d.target.parentNode&&I.searchPseudoElements&&o(d.target.parentNode),d.type==="attributes"&&bg(d.target)&&~Yb.indexOf(d.attributeName))if(d.attributeName==="class"&&AE(d.target)){var p=Sl(Bd(d.target)),w=p.prefix,m=p.iconName;d.target.setAttribute(Xd,w||h),m&&d.target.setAttribute(Jd,m)}else RE(d.target)&&a(d.target)})}}),an&&zs.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function FE(){zs&&zs.disconnect()}function IE(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,a){var i=a.split(":"),o=i[0],s=i.slice(1);return o&&s.length>0&&(r[o]=s.join(":").trim()),r},{})),n}function UE(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",a=Sl(Bd(e));return a.prefix||(a.prefix=$n()),t&&n&&(a.prefix=t,a.iconName=n),a.iconName&&a.prefix||(a.prefix&&r.length>0&&(a.iconName=vE(a.prefix,e.innerText)||th(a.prefix,uf(e.innerText))),!a.iconName&&I.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(a.iconName=e.firstChild.data)),a}function zE(e){var t=va(e.attributes).reduce(function(a,i){return a.name!=="class"&&a.name!=="style"&&(a[i.name]=i.value),a},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return I.autoA11y&&(n?t["aria-labelledby"]="".concat(I.replacementClass,"-title-").concat(r||ki()):(t["aria-hidden"]="true",t.focusable="false")),t}function HE(){return{iconName:null,title:null,titleId:null,prefix:null,transform:$t,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Cg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=UE(e),r=n.iconName,a=n.prefix,i=n.rest,o=zE(e),s=ff("parseNodeAttributes",{},e),l=t.styleParser?IE(e):[];return M({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:a,transform:$t,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:l,attributes:o}},s)}var WE=Ct.styles;function T1(e){var t=I.autoReplaceSvg==="nest"?Cg(e,{styleParser:!1}):Cg(e);return~t.extra.classes.indexOf(o1)?nn("generateLayersText",e,t):nn("generateSvgReplacementMutation",e,t)}var Ln=new Set;Qd.map(function(e){Ln.add("fa-".concat(e))});Object.keys(xi[ae]).map(Ln.add.bind(Ln));Object.keys(xi[de]).map(Ln.add.bind(Ln));Ln=Fi(Ln);function Og(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!an)return Promise.resolve();var n=oe.documentElement.classList,r=function(d){return n.add("".concat(pg,"-").concat(d))},a=function(d){return n.remove("".concat(pg,"-").concat(d))},i=I.autoFetchSvg?Ln:Qd.map(function(h){return"fa-".concat(h)}).concat(Object.keys(WE));i.includes("fa")||i.push("fa");var o=[".".concat(o1,":not([").concat(pr,"])")].concat(i.map(function(h){return".".concat(h,":not([").concat(pr,"])")})).join(", ");if(o.length===0)return Promise.resolve();var s=[];try{s=va(e.querySelectorAll(o))}catch{}if(s.length>0)r("pending"),a("complete");else return Promise.resolve();var l=ah.begin("onTree"),u=s.reduce(function(h,d){try{var p=T1(d);p&&h.push(p)}catch(w){i1||w.name==="MissingIcon"&&console.error(w)}return h},[]);return new Promise(function(h,d){Promise.all(u).then(function(p){b1(p,function(){r("active"),r("complete"),a("pending"),typeof t=="function"&&t(),l(),h()})}).catch(function(p){l(),d(p)})})}function GE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;T1(e).then(function(n){n&&b1([n],t)})}function VE(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:df(t||{}),a=n.mask;return a&&(a=(a||{}).icon?a:df(a||{})),e(r,M(M({},n),{},{mask:a}))}}var qE=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,a=r===void 0?$t:r,i=n.symbol,o=i===void 0?!1:i,s=n.mask,l=s===void 0?null:s,u=n.maskId,h=u===void 0?null:u,d=n.title,p=d===void 0?null:d,w=n.titleId,m=w===void 0?null:w,_=n.classes,b=_===void 0?[]:_,v=n.attributes,y=v===void 0?{}:v,S=n.styles,x=S===void 0?{}:S;if(t){var D=t.prefix,k=t.iconName,E=t.icon;return bl(M({type:"icon"},t),function(){return gr("beforeDOMElementCreation",{iconDefinition:t,params:n}),I.autoA11y&&(p?y["aria-labelledby"]="".concat(I.replacementClass,"-title-").concat(m||ki()):(y["aria-hidden"]="true",y.focusable="false")),rh({icons:{main:hf(E),mask:l?hf(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:D,iconName:k,transform:M(M({},$t),a),symbol:o,title:p,maskId:h,titleId:m,extra:{attributes:y,styles:x,classes:b}})})}},KE={mixout:function(){return{icon:VE(qE)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=Og,n.nodeCallback=GE,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,a=r===void 0?oe:r,i=n.callback,o=i===void 0?function(){}:i;return Og(a,o)},t.generateSvgReplacementMutation=function(n,r){var a=r.iconName,i=r.title,o=r.titleId,s=r.prefix,l=r.transform,u=r.symbol,h=r.mask,d=r.maskId,p=r.extra;return new Promise(function(w,m){Promise.all([pf(a,s),h.iconName?pf(h.iconName,h.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(_){var b=Kd(_,2),v=b[0],y=b[1];w([n,rh({icons:{main:v,mask:y},prefix:s,iconName:a,transform:l,symbol:u,maskId:d,title:i,titleId:o,extra:p,watchable:!0})])}).catch(m)})},t.generateAbstractIcon=function(n){var r=n.children,a=n.attributes,i=n.main,o=n.transform,s=n.styles,l=wl(s);l.length>0&&(a.style=l);var u;return Zd(o)&&(u=nn("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),r.push(u||i.icon),{children:r,attributes:a}}}},YE={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.classes,i=a===void 0?[]:a;return bl({type:"layer"},function(){gr("beforeDOMElementCreation",{assembler:n,params:r});var o=[];return n(function(s){Array.isArray(s)?s.map(function(l){o=o.concat(l.abstract)}):o=o.concat(s.abstract)}),[{tag:"span",attributes:{class:["".concat(I.cssPrefix,"-layers")].concat(Fi(i)).join(" ")},children:o}]})}}}},XE={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.title,i=a===void 0?null:a,o=r.classes,s=o===void 0?[]:o,l=r.attributes,u=l===void 0?{}:l,h=r.styles,d=h===void 0?{}:h;return bl({type:"counter",content:n},function(){return gr("beforeDOMElementCreation",{content:n,params:r}),PE({content:n.toString(),title:i,extra:{attributes:u,styles:d,classes:["".concat(I.cssPrefix,"-layers-counter")].concat(Fi(s))}})})}}}},JE={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.transform,i=a===void 0?$t:a,o=r.title,s=o===void 0?null:o,l=r.classes,u=l===void 0?[]:l,h=r.attributes,d=h===void 0?{}:h,p=r.styles,w=p===void 0?{}:p;return bl({type:"text",content:n},function(){return gr("beforeDOMElementCreation",{content:n,params:r}),_g({content:n,transform:M(M({},$t),i),title:s,extra:{attributes:d,styles:w,classes:["".concat(I.cssPrefix,"-layers-text")].concat(Fi(u))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var a=r.title,i=r.transform,o=r.extra,s=null,l=null;if(n1){var u=parseInt(getComputedStyle(n).fontSize,10),h=n.getBoundingClientRect();s=h.width/u,l=h.height/u}return I.autoA11y&&!a&&(o.attributes["aria-hidden"]="true"),Promise.resolve([n,_g({content:n.innerHTML,width:s,height:l,transform:i,title:a,extra:o,watchable:!0})])}}},QE=new RegExp('"',"ug"),xg=[1105920,1112319];function BE(e){var t=e.replace(QE,""),n=fE(t,0),r=n>=xg[0]&&n<=xg[1],a=t.length===2?t[0]===t[1]:!1;return{value:uf(a?t[0]:t),isSecondary:r||a}}function Pg(e,t){var n="".concat(Ub).concat(t.replace(":","-"));return new Promise(function(r,a){if(e.getAttribute(n)!==null)return r();var i=va(e.children),o=i.filter(function(E){return E.getAttribute(lf)===t})[0],s=Rn.getComputedStyle(e,t),l=s.getPropertyValue("font-family").match(Vb),u=s.getPropertyValue("font-weight"),h=s.getPropertyValue("content");if(o&&!l)return e.removeChild(o),r();if(l&&h!=="none"&&h!==""){var d=s.getPropertyValue("content"),p=~["Sharp"].indexOf(l[2])?de:ae,w=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?Pi[p][l[2].toLowerCase()]:qb[p][u],m=BE(d),_=m.value,b=m.isSecondary,v=l[0].startsWith("FontAwesome"),y=th(w,_),S=y;if(v){var x=yE(_);x.iconName&&x.prefix&&(y=x.iconName,w=x.prefix)}if(y&&!b&&(!o||o.getAttribute(Xd)!==w||o.getAttribute(Jd)!==S)){e.setAttribute(n,S),o&&e.removeChild(o);var D=HE(),k=D.extra;k.attributes[lf]=t,pf(y,w).then(function(E){var C=rh(M(M({},D),{},{icons:{main:E,mask:nh()},prefix:w,iconName:S,extra:k,watchable:!0})),O=oe.createElement("svg");t==="::before"?e.insertBefore(O,e.firstChild):e.appendChild(O),O.outerHTML=C.map(function(N){return Ui(N)}).join(` +`),e.removeAttribute(n),r()}).catch(a)}else r()}else r()})}function ZE(e){return Promise.all([Pg(e,"::before"),Pg(e,"::after")])}function eT(e){return e.parentNode!==document.head&&!~Hb.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(lf)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Ng(e){if(an)return new Promise(function(t,n){var r=va(e.querySelectorAll("*")).filter(eT).map(ZE),a=ah.begin("searchPseudoElements");E1(),Promise.all(r).then(function(){a(),mf(),t()}).catch(function(){a(),mf(),n()})})}var tT={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=Ng,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,a=r===void 0?oe:r;I.searchPseudoElements&&Ng(a)}}},Dg=!1,nT={mixout:function(){return{dom:{unwatch:function(){E1(),Dg=!0}}}},hooks:function(){return{bootstrap:function(){Tg(ff("mutationObserverCallbacks",{}))},noAuto:function(){FE()},watch:function(n){var r=n.observeMutationsRoot;Dg?mf():Tg(ff("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},kg=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,a){var i=a.toLowerCase().split("-"),o=i[0],s=i.slice(1).join("-");if(o&&s==="h")return r.flipX=!0,r;if(o&&s==="v")return r.flipY=!0,r;if(s=parseFloat(s),isNaN(s))return r;switch(o){case"grow":r.size=r.size+s;break;case"shrink":r.size=r.size-s;break;case"left":r.x=r.x-s;break;case"right":r.x=r.x+s;break;case"up":r.y=r.y-s;break;case"down":r.y=r.y+s;break;case"rotate":r.rotate=r.rotate+s;break}return r},n)},rT={mixout:function(){return{parse:{transform:function(n){return kg(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-transform");return a&&(n.transform=kg(a)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,a=n.transform,i=n.containerWidth,o=n.iconWidth,s={transform:"translate(".concat(i/2," 256)")},l="translate(".concat(a.x*32,", ").concat(a.y*32,") "),u="scale(".concat(a.size/16*(a.flipX?-1:1),", ").concat(a.size/16*(a.flipY?-1:1),") "),h="rotate(".concat(a.rotate," 0 0)"),d={transform:"".concat(l," ").concat(u," ").concat(h)},p={transform:"translate(".concat(o/2*-1," -256)")},w={outer:s,inner:d,path:p};return{tag:"g",attributes:M({},w.outer),children:[{tag:"g",attributes:M({},w.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:M(M({},r.icon.attributes),w.path)}]}]}}}},Fu={x:0,y:0,width:"100%",height:"100%"};function Ag(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function aT(e){return e.tag==="g"?e.children:[e]}var iT={hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-mask"),i=a?Sl(a.split(" ").map(function(o){return o.trim()})):nh();return i.prefix||(i.prefix=$n()),n.mask=i,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,a=n.attributes,i=n.main,o=n.mask,s=n.maskId,l=n.transform,u=i.width,h=i.icon,d=o.width,p=o.icon,w=rE({transform:l,containerWidth:d,iconWidth:u}),m={tag:"rect",attributes:M(M({},Fu),{},{fill:"white"})},_=h.children?{children:h.children.map(Ag)}:{},b={tag:"g",attributes:M({},w.inner),children:[Ag(M({tag:h.tag,attributes:M(M({},h.attributes),w.path)},_))]},v={tag:"g",attributes:M({},w.outer),children:[b]},y="mask-".concat(s||ki()),S="clip-".concat(s||ki()),x={tag:"mask",attributes:M(M({},Fu),{},{id:y,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[m,v]},D={tag:"defs",children:[{tag:"clipPath",attributes:{id:S},children:aT(p)},x]};return r.push(D,{tag:"rect",attributes:M({fill:"currentColor","clip-path":"url(#".concat(S,")"),mask:"url(#".concat(y,")")},Fu)}),{children:r,attributes:a}}}},oT={provides:function(t){var n=!1;Rn.matchMedia&&(n=Rn.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],a={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:M(M({},a),{},{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"})});var o=M(M({},i),{},{attributeName:"opacity"}),s={tag:"circle",attributes:M(M({},a),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||s.children.push({tag:"animate",attributes:M(M({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:M(M({},o),{},{values:"1;0;1;1;0;1;"})}),r.push(s),r.push({tag:"path",attributes:M(M({},a),{},{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:n?[]:[{tag:"animate",attributes:M(M({},o),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:M(M({},a),{},{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:M(M({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},sT={hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-symbol"),i=a===null?!1:a===""?!0:a;return n.symbol=i,n}}}},lT=[oE,KE,YE,XE,JE,tT,nT,rT,iT,oT,sT];SE(lT,{mixoutsTo:ot});ot.noAuto;ot.config;ot.library;ot.dom;var vf=ot.parse;ot.findIconDefinition;ot.toHtml;var uT=ot.icon;ot.layer;ot.text;ot.counter;var C1={exports:{}},cT="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",fT=cT,dT=fT;function O1(){}function x1(){}x1.resetWarningCache=O1;var hT=function(){function e(r,a,i,o,s,l){if(l!==dT){var u=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 u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:x1,resetWarningCache:O1};return n.PropTypes=n,n};C1.exports=hT();var pT=C1.exports;const K=nl(pT);function Rg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function wn(e){for(var t=1;t=0)&&(n[a]=e[a]);return n}function mT(e,t){if(e==null)return{};var n=gT(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yf(e){return vT(e)||yT(e)||wT(e)||_T()}function vT(e){if(Array.isArray(e))return wf(e)}function yT(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wT(e,t){if(e){if(typeof e=="string")return wf(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 wf(e,t)}}function wf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(l){return N1(e,l)}),a=Object.keys(t.attributes||{}).reduce(function(l,u){var h=t.attributes[u];switch(u){case"class":l.attrs.className=h,delete t.attributes.class;break;case"style":l.attrs.style=CT(h);break;default:u.indexOf("aria-")===0||u.indexOf("data-")===0?l.attrs[u.toLowerCase()]=h:l.attrs[P1(u)]=h}return l},{attrs:{}}),i=n.style,o=i===void 0?{}:i,s=mT(n,ET);return a.attrs.style=wn(wn({},a.attrs.style),o),e.apply(void 0,[t.tag,wn(wn({},a.attrs),s)].concat(yf(r)))}var D1=!1;try{D1=!0}catch{}function OT(){if(!D1&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function $g(e){if(e&&Hs(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(vf.icon)return vf.icon(e);if(e===null)return null;if(e&&Hs(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 Iu(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Kr({},e,t):{}}var Fe=Sn.forwardRef(function(e,t){var n=e.icon,r=e.mask,a=e.symbol,i=e.className,o=e.title,s=e.titleId,l=e.maskId,u=$g(n),h=Iu("classes",[].concat(yf(ST(e)),yf(i.split(" ")))),d=Iu("transform",typeof e.transform=="string"?vf.transform(e.transform):e.transform),p=Iu("mask",$g(r)),w=uT(u,wn(wn(wn(wn({},h),d),p),{},{symbol:a,title:o,titleId:s,maskId:l}));if(!w)return OT("Could not find icon",u),null;var m=w.abstract,_={ref:t};return Object.keys(e).forEach(function(b){Fe.defaultProps.hasOwnProperty(b)||(_[b]=e[b])}),xT(m[0],_)});Fe.displayName="FontAwesomeIcon";Fe.propTypes={beat:K.bool,border:K.bool,beatFade:K.bool,bounce:K.bool,className:K.string,fade:K.bool,flash:K.bool,mask:K.oneOfType([K.object,K.array,K.string]),maskId:K.string,fixedWidth:K.bool,inverse:K.bool,flip:K.oneOf([!0,!1,"horizontal","vertical","both"]),icon:K.oneOfType([K.object,K.array,K.string]),listItem:K.bool,pull:K.oneOf(["right","left"]),pulse:K.bool,rotation:K.oneOf([0,90,180,270]),shake:K.bool,size:K.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:K.bool,spinPulse:K.bool,spinReverse:K.bool,symbol:K.oneOfType([K.bool,K.string]),title:K.string,titleId:K.string,transform:K.oneOfType([K.string,K.object]),swapOpacity:K.bool};Fe.defaultProps={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};var xT=N1.bind(null,Sn.createElement),PT={prefix:"fas",iconName:"caret-right",icon:[256,512,[],"f0da","M246.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-128-128c-9.2-9.2-22.9-11.9-34.9-6.9s-19.8 16.6-19.8 29.6l0 256c0 12.9 7.8 24.6 19.8 29.6s25.7 2.2 34.9-6.9l128-128z"]},Lg={prefix:"fas",iconName:"square-check",icon:[448,512,[9745,9989,61510,"check-square"],"f14a","M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zM337 209L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},NT={prefix:"fas",iconName:"arrows-rotate",icon:[512,512,[128472,"refresh","sync"],"f021","M105.1 202.6c7.7-21.8 20.2-42.3 37.8-59.8c62.5-62.5 163.8-62.5 226.3 0L386.3 160H336c-17.7 0-32 14.3-32 32s14.3 32 32 32H463.5c0 0 0 0 0 0h.4c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32s-32 14.3-32 32v51.2L414.4 97.6c-87.5-87.5-229.3-87.5-316.8 0C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5zM39 289.3c-5 1.5-9.8 4.2-13.7 8.2c-4 4-6.7 8.8-8.1 14c-.3 1.2-.6 2.5-.8 3.8c-.3 1.7-.4 3.4-.4 5.1V448c0 17.7 14.3 32 32 32s32-14.3 32-32V396.9l17.6 17.5 0 0c87.5 87.4 229.3 87.4 316.7 0c24.4-24.4 42.1-53.1 52.9-83.7c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.5 62.5-163.8 62.5-226.3 0l-.1-.1L125.6 352H176c17.7 0 32-14.3 32-32s-14.3-32-32-32H48.4c-1.6 0-3.2 .1-4.8 .3s-3.1 .5-4.6 1z"]},Mg={prefix:"fas",iconName:"square",icon:[448,512,[9632,9723,9724,61590],"f0c8","M0 96C0 60.7 28.7 32 64 32H384c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96z"]},DT={prefix:"fas",iconName:"circle-question",icon:[512,512,[62108,"question-circle"],"f059","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM169.8 165.3c7.9-22.3 29.1-37.3 52.8-37.3h58.3c34.9 0 63.1 28.3 63.1 63.1c0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6c-13.3 0-24-10.7-24-24V250.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1c0-8.4-6.8-15.1-15.1-15.1H222.6c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},kT={prefix:"fas",iconName:"floppy-disk",icon:[448,512,[128190,128426,"save"],"f0c7","M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V173.3c0-17-6.7-33.3-18.7-45.3L352 50.7C340 38.7 323.7 32 306.7 32H64zm0 96c0-17.7 14.3-32 32-32H288c17.7 0 32 14.3 32 32v64c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V128zM224 288a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"]},AT={prefix:"fas",iconName:"caret-down",icon:[320,512,[],"f0d7","M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"]},RT={prefix:"fas",iconName:"arrow-right-arrow-left",icon:[448,512,[8644,"exchange"],"f0ec","M438.6 150.6c12.5-12.5 12.5-32.8 0-45.3l-96-96c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.7 96 32 96C14.3 96 0 110.3 0 128s14.3 32 32 32l306.7 0-41.4 41.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l96-96zm-333.3 352c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 416 416 416c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0 41.4-41.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-96 96c-12.5 12.5-12.5 32.8 0 45.3l96 96z"]},$T=RT,LT={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},MT={prefix:"fas",iconName:"x",icon:[384,512,[120],"58","M376.6 84.5c11.3-13.6 9.5-33.8-4.1-45.1s-33.8-9.5-45.1 4.1L192 206 56.6 43.5C45.3 29.9 25.1 28.1 11.5 39.4S-3.9 70.9 7.4 84.5L150.3 256 7.4 427.5c-11.3 13.6-9.5 33.8 4.1 45.1s33.8 9.5 45.1-4.1L192 306 327.4 468.5c11.3 13.6 31.5 15.4 45.1 4.1s15.4-31.5 4.1-45.1L233.7 256 376.6 84.5z"]};const jT="_headerDiagnosticsBtnContainer_1ogb6_1",FT="_taggleBtn_1ogb6_12",IT="_toggleBtnInnerOn_1ogb6_26",UT="_toggleBtnInnerOff_1ogb6_27",zT="_faIcon_1ogb6_48",Pr={headerDiagnosticsBtnContainer:jT,taggleBtn:FT,toggleBtnInnerOn:IT,toggleBtnInnerOff:UT,faIcon:zT};function HT(){const{panelState:e,setPanelState:t,setViewInLogPanel:n}=P.useContext(it);function r(){t(a=>{const i={...a},o=!i.diagnostics.show;i.diagnostics.show=o;const s=localStorage.getItem("appSetting"),l=JSON.parse(s);return l.diagnosticsPanelShow=o,localStorage.setItem("appSetting",JSON.stringify(l)),i}),n(a=>{const i={...a};return e.diagnostics.show&&(i.streamTable=!1,i.diagnosticsLogs=!0),e.diagnostics.show||(i.streamTable=!0,i.diagnosticsLogs=!1),i})}return T.jsxs("div",{id:"headerDiagnosticsBtn",className:`header_each_btn ${Pr.headerDiagnosticsBtnContainer}`,onClick:r,children:[T.jsx("span",{className:Pr.taggleBtn,children:T.jsx("span",{className:e.diagnostics.show?Pr.toggleBtnInnerOn:Pr.toggleBtnInnerOff,children:e.diagnostics.show?T.jsx(Fe,{icon:LT,className:Pr.faIcon}):T.jsx(Fe,{icon:MT,className:Pr.faIcon})})}),T.jsx("p",{children:"Diagnostics"})]})}const WT="_headerLeftMainContainer_1bzdp_1",GT="_headerLogoContainer_1bzdp_8",VT="_headerLogo_1bzdp_8",qT="_headerLogoText_1bzdp_21",Lo={headerLeftMainContainer:WT,headerLogoContainer:GT,headerLogo:VT,headerLogoText:qT},KT="/assets/idaes-logo-4b9fada6.png";function YT(){return T.jsxs("div",{className:Lo.headerLeftMainContainer,children:[T.jsxs("div",{id:"headerLogoContainer",className:`headerLogoContainer ${Lo.headerLogoContainer}`,children:[T.jsx("img",{src:KT,alt:"idaes logo for header component",id:"headerLogo",className:`${Lo.headerLogo}`}),T.jsx("p",{id:"headerLogoText",className:`${Lo.headerLogoText}`,children:"IDAES"})]}),T.jsx("div",{children:T.jsx(HT,{})})]})}const XT="_header_flowsheet_name_3hhh9_1",JT={header_flowsheet_name:XT};function QT(){const{fv_id:e}=P.useContext(it);return T.jsx("p",{id:"flowsheet_name_title",className:`${JT.header_flowsheet_name}`,children:e||"Name not found"})}function BT(){return T.jsxs("li",{id:"refresh_btn",className:"header_each_btn",children:[T.jsx(Fe,{icon:NT,className:"mr-sm"}),"Refresh"]})}function ZT(){return T.jsxs("li",{id:"save_btn",className:"header_each_btn",children:[T.jsx(Fe,{icon:kT,className:"mr-sm"}),"Save"]})}const eC="_link_5oxur_1",tC={link:eC};function nC(){return T.jsxs("li",{id:"help_btn",className:"header_each_btn",children:[T.jsx(Fe,{icon:DT,className:"mr-sm"}),T.jsx("a",{href:"https://idaes-pse.readthedocs.io/en/latest/tutorials/getting_started/index.html",target:"_blank",className:`${tC.link}`,children:"Help"})]})}function rC(){function e(){["mosaicLayout","layout","diagnosticsPanelParams"].forEach(n=>{localStorage.removeItem(n)}),window.location.reload()}return T.jsxs("li",{id:"save_btn",className:"header_each_btn",onClick:()=>{e()},children:[T.jsx(Fe,{icon:$T,className:"mr-sm"}),"Reset Layout"]})}const aC="_header_fn_btn_wrapper_ul_18i4g_1",iC={header_fn_btn_wrapper_ul:aC};function oC(){return T.jsxs("ul",{className:`${iC.header_fn_btn_wrapper_ul}`,children:[T.jsx(BT,{}),T.jsx(ZT,{}),T.jsx(rC,{}),T.jsx(nC,{})]})}const sC="_header_container_1gczp_1",lC={header_container:sC};function uC(){return P.useContext(it),T.jsxs("header",{id:"header",className:`row ${lC.header_container}`,children:[T.jsx(YT,{}),T.jsx(QT,{}),T.jsx(oC,{})]})}const _f={attrs:{g:{},text:{display:"block","font-size":"7","text-anchor":"left"},rect:{width:"2000",height:"2000",fill:"white",rx:0,ry:0,"fill-opacity":"1"},tspan:{fill:"white",dy:10}}},Sf={attrs:{text:{display:"none"},rect:{"fill-opacity":"0"}}},Ws=0,jg=1;class cC{constructor(t){z(this,"_app");z(this,"joint");z(this,"_originalLinkStroke");z(this,"_originalLinkStrokeWidth");z(this,"_highlightLinkStroke");z(this,"_highlightLinkStrokeWidth");z(this,"_graph");z(this,"_paper");z(this,"_paperScroller");z(this,"_selection");this._app=t;let n=joint.shapes.standard,r=800,a=800,i=1;this._originalLinkStroke="#979797",this._originalLinkStrokeWidth=2,this._highlightLinkStroke="#0B79BD",this._highlightLinkStrokeWidth=4,this._graph=new joint.dia.Graph([],{cellNamespace:{standard:n}}),this._paper=new joint.dia.Paper({model:this._graph,cellViewNamespace:{standard:n},width:r,height:a,gridSize:i,drawGrid:!1,interactive:!0}),this._paperScroller=new joint.ui.PaperScroller({padding:100,paper:this._paper,autoResizePaper:!0,scrollWhileDragging:!0,baseWidth:10,baseHeight:10,cursor:"grab"}),this._selection=new joint.ui.Selection({paper:this._paper}),this._selection.removeHandle("remove"),this._selection.removeHandle("rotate"),this._selection.removeHandle("resize"),self=this,document.getElementById("fv").append(self._paperScroller.render().el),self.preSetupRegisterEvents()}get graph(){return this._graph}set graph(t){this._graph.fromJSON(t)}get paper(){return self._paper}get paperScroller(){return self._paperScroller}get selection(){return self._selection}translate_for_angle(t){return{0:[0,5],90:[38,-35],180:[0,-72],270:[-38,-34]}[t]}preSetupRegisterEvents(){this._graph.on("change:position change:angle change:vertices",()=>{this._app.graphChanged()});let t=document.getElementById("fv");t||console.error("idaes canvas is not found");const n=document.querySelector("#stream-table-data");t.addEventListener("HighlightStream",r=>{const a=t.querySelector(`[model-id=${r.detail.streamId}]`);a&&a.dispatchEvent(new Event("HighlightStream"))}),t.addEventListener("RemoveHighlightStream",r=>{const a=t.querySelector(`[model-id=${r.detail.streamId}]`);a&&a.dispatchEvent(new Event("RemoveHighlightStream"))}),self._paper.on("blank:pointerdown",self._selection.startSelecting),self._paper.on("element:pointerup",function(r,a){console.log("work"),(a.shiftKey||a.metaKey)&&self._selection.collection.add(r.model)}),self._selection.on("selection-box:pointerdown",function(r,a){(a.shiftKey||a.metaKey)&&self._selection.collection.remove(r.model)}),self._paper.on("element:contextmenu",function(r,a){r.model.rotate(90);const i=r.model.angle(),o=self.translate_for_angle(i,0,0);o===void 0?console.error(`Angle of unit model must be either 0, 90, 180, or 270. Angle is ${i}`):r.model.attr("label/transform",`translate(${o[0]}, ${o[1]}) rotate(-${i})`)}),self._paper.on("link:mouseenter",function(r){let a=document.querySelector("#stream-table-data"),i=document.querySelector("#fv");if(!a||!i)return;let o=new joint.linkTools.Vertices({focusOpacity:.5,redundancyRemoval:!0,snapRadius:20,vertexAdding:!0}),s=new joint.linkTools.Segments,l=new joint.dia.ToolsView({tools:[o,s]});r.addTools(l),r.showTools();const u=new CustomEvent("HighlightStream",{detail:{streamId:r.model.id}});i.dispatchEvent(u),a.dispatchEvent(u)}),self._paper.on("link:mouseleave",function(r){r.hideTools();const a=new CustomEvent("RemoveHighlightStream",{detail:{streamId:r.model.id}});t&&t.dispatchEvent(a),n&&n.dispatchEvent(a)}),self._paper.on("link:contextmenu",function(r,a){r.model.label(Ws).attrs.text.display==="none"?r.model.label(Ws,_f):r.model.label(0,Sf)})}zoomToFit(t=30){this._paperScroller.zoomToFit({padding:t})}postSetupRegisterEvents(){this.zoomToFit(),this._graph.getLinks().forEach(t=>{let n=t.findView(this._paper);n.el.addEventListener("HighlightStream",()=>{n.model.attr({line:{stroke:this._highlightLinkStroke,"stroke-width":this._highlightLinkStrokeWidth}})}),n.el.addEventListener("RemoveHighlightStream",()=>{n.model.attr({line:{stroke:this._originalLinkStroke,"stroke-width":this._originalLinkStrokeWidth}})})})}reorderLabel(t){let n=null,r=null;if(t.cells.forEach((i,o)=>{i.id.includes("liq")&&(n=o),i.id.includes("vap")&&(r=o)}),!n||!r)return;const a=t.cells[n];t.cells[n]=t.cells[r],t.cells[r]=a,t.cells[n]}setup(t){const n="/assets/image/flowsheet_icons/";t.cells.reverse(),t.cells.forEach(r=>{if(r.type==="standard.Image"){let a=n+r.attrs.image.xlinkHref.match(/([^\/]+\.svg)$/)[0];r.attrs.image={...r.attrs.image,xlinkHref:a}}r.labels&&(r.z=1e3,r.labels[0])}),this.reorderLabel(t),this._graph.fromJSON(t),this.postSetupRegisterEvents()}}class fC{constructor(t){z(this,"_model");this._model=t}get model(){return this._model}set model(t){this._model=t}findCellIndex(t,n){for(let r=0;r{const o=i.getEndAnchor("source"),s=i.getEndAnchor("target"),l=new g.Point(o.x+t.source.x,o.y+t.source.y),u=new g.Point(s.x+t.destination.x,s.y+t.destination.y),h=i.getEndView("source").model.angle(),d=i.getEndView("target").model.angle(),p=h%180===0?1:-1,w=d%180===0?1:-1,m=l.rotate(o,p*h),_=u.rotate(s,w*d);return joint.routers.manhattan([m,...r,_],a,i)}}processRoutingConfig(){const t=this._model.routing_config;for(let n in t){const r=this.findCellIndex(n,"standard.Link");let a=t[n].cell_config.gap,i=this.routerGapFnFactory(a);this._model.cells[r].router=i}return this._model.cells.map(n=>{if(n.labels&&n.labels[1].position)return n.labels.reverse(),n}),this._model}}let dC=class{constructor(t,n,r){z(this,"_app");z(this,"UNFIXED","unfixed");z(this,"FIXED","fixed");z(this,"PARAMETER","parameter");z(this,"EXPRESSION","expression");z(this,"highlightFn");z(this,"removeHighlightFn");z(this,"gridCellMouseEnterFn");z(this,"gridCellMouseLeaveFn");z(this,"existing_var_types");z(this,"_gridOptions");z(this,"viewInLogPanel");this._app=t,this.viewInLogPanel=r,this.defineTableBrushingFns(),this.initTable(n),this.existing_var_types=new Set}initTable(t){this.clearTable(),this.emptyVarTypesPanel(),this.fillTable(t),this.setupEvents()}clearTable(){const t=document.querySelector("#stream-table-data");t&&(t.innerHTML="")}emptyVarTypesPanel(){this.existing_var_types=new Set;const t=document.querySelector("#existing-variable-types");t.innerHTML=""}fillVarTypesPanel(){const t=document.querySelector("#existing-variable-types"),n="streamtable-vartype-element";if(this.existing_var_types.has(this.FIXED)||this.existing_var_types.has(this.PARAMETER)||this.existing_var_types.has(this.EXPRESSION)){const r=document.createElement("p");r.innerHTML="Annotated Variable Types:",r.className=n,t.appendChild(r)}this.existing_var_types.forEach(r=>{switch(r){case this.UNFIXED:console.debug("Unfixed variables don't have a visual indicator");break;case this.FIXED:case this.PARAMETER:case this.EXPRESSION:const a=document.createElement("span");a.className=n;const i=document.createElement("span"),o=document.createElement("span");o.className="streamtable-vartype-text",i.className=`streamtable-vartype-${r}`,i.title=r,o.innerHTML=r,a.appendChild(i),a.appendChild(o),t.appendChild(a);break;default:console.warn("Couldn't identify Variable type")}})}fillTable(t){let n=t.model.stream_table;const r=document.querySelector("#hide-fields-list");r&&(r.innerHTML="");let a=n.columns,i=[];for(let w in a){let m=a[w];if(m!==""&&m!=="Units"&&!m.includes("_vartype"))if(m==="Variable")i.push({headerName:m,field:m,filter:"agTextColumnFilter",sortable:!0,resizable:!0,pinned:"left",cellRenderer:_=>''+_.value+""});else{i.push({headerName:m,field:m,filter:"agTextColumnFilter",sortable:!0,resizable:!0,cellRenderer:v=>''+v.value+""});let _=document.createElement("li"),b=document.createElement("div");b.className="checkbox",b.innerHTML=` + + `,_.appendChild(b),r.appendChild(_)}}let o=n.index,s=n.data,l=[],u="Variable";for(let w in o){let m={},_=s[w];for(let b in a)if(a[b]==="Units")_[b]&&_[b].html?m[u]=m[u]+''+_[b].html+"":m[u]=m[u]+'';else if(a[b]==="Variable")m[a[b]]=_[b];else{var[h,d]=_[b];let v="";switch(d){case this.UNFIXED:this.existing_var_types.add(d);break;case this.FIXED:case this.PARAMETER:case this.EXPRESSION:this.existing_var_types.add(d),v=``;break;default:console.warn(`Couldn't identify Variable type: ${d}`)}m[a[b]]=v+''+h+""}l.push(m)}this.fillVarTypesPanel(),this._gridOptions={columnDefs:i,rowData:l,suppressColumnVirtualisation:!0},this._gridOptions.getRowStyle=function(w){if(w.node.rowIndex%2===0)return{background:"#f3f3f3"}};let p=document.querySelector("#stream-table-data");new agGrid.Grid(p,this._gridOptions),this._gridOptions.columnApi.autoSizeAllColumns()}defineTableBrushingFns(){let t=document.querySelector("#stream-table-data"),n=document.querySelector("#fv");!t||!n||!this.viewInLogPanel.streamTable||(this.highlightFn=r=>{let a=t.querySelectorAll(`[col-id=${r.detail.streamId}]`);a.forEach((i,o)=>{i.getAttribute("role")=="columnheader"?i.classList.add("link-streamtable-hover-columnheader"):o==a.length-1?i.classList.add("link-streamtable-hover-lastrow"):i.classList.add("link-streamtable-hover")})},this.removeHighlightFn=r=>{console.log("remove hight light"),t.querySelectorAll(`[col-id=${r.detail.streamId}]`).forEach(i=>{i.classList.remove("link-streamtable-hover-columnheader"),i.classList.remove("link-streamtable-hover-lastrow"),i.classList.remove("link-streamtable-hover")})},this.gridCellMouseEnterFn=r=>{const a=r.target.getAttribute("col-id");if(a){const i=new CustomEvent("HighlightStream",{detail:{streamId:a}});t.dispatchEvent(i),n.dispatchEvent(i)}},this.gridCellMouseLeaveFn=r=>{const a=r.target.getAttribute("col-id"),i=new CustomEvent("RemoveHighlightStream",{detail:{streamId:a}});t.dispatchEvent(i),n.dispatchEvent(i)})}registerTableBrushing(){let t=document.querySelector("#stream-table-data");document.querySelector("#fv");let n=document.querySelectorAll("[col-id]");t.removeEventListener("HighlightStream",this.highlightFn),t.removeEventListener("RemoveHighlightStream",this.removeHighlightFn),n.forEach(r=>{r.removeEventListener("mouseenter",this.gridCellMouseEnterFn),r.removeEventListener("mouseleave",this.gridCellMouseLeaveFn)}),t.addEventListener("HighlightStream",this.highlightFn),t.addEventListener("RemoveHighlightStream",this.removeHighlightFn),n.forEach(r=>{r.addEventListener("mouseenter",this.gridCellMouseEnterFn),r.addEventListener("mouseleave",this.gridCellMouseLeaveFn)})}setupEvents(){let n=document.querySelector("#hide-fields-list").querySelectorAll("input[type=checkbox]"),r=this;n.forEach(function(a){a.addEventListener("change",function(i){var l;i.preventDefault();let o=i.target,s=(l=o.parentElement)==null?void 0:l.querySelector("span");o.checked?(s.style.display="block",r._gridOptions.columnApi.setColumnVisible(o.id,!0),r.registerTableBrushing()):(s.style.display="none",r._gridOptions.columnApi.setColumnVisible(o.id,!1))})}),this.registerTableBrushing()}};class hC{constructor(t,n,r,a,i,o,s){z(this,"_app");z(this,"_paper");z(this,"_stream_table");z(this,"flowsheetId");z(this,"getFSUrl");z(this,"putFSUrl");z(this,"isFvShow");z(this,"zoomRate");z(this,"toggleStreamNameBtn");z(this,"toggleLabelsBtn");z(this,"zoomInBtn");z(this,"zoomOutBtn");z(this,"zoomFitBtn");z(this,"zoomInHandler");z(this,"zoomOutHandler");z(this,"zoomFitHandler");this._app=t,this._paper=n,this._stream_table=r,this.flowsheetId=a,this.getFSUrl=i,this.putFSUrl=o,this.isFvShow=s,this.zoomRate=.2,this.zoomInHandler=void 0,this.zoomOutHandler=void 0,this.zoomFitHandler=void 0,this.registerEventExportFlowsheetToPng(),this.registerEventExportFlowsheetToSvg(),this.registerEventRefresh(this.getFSUrl,this.putFSUrl),this.registerEventSave(this.putFSUrl),this.zoomInBtn=document.querySelector("#zoom-in-btn"),this.zoomOutBtn=document.querySelector("#zoom-out-btn"),this.zoomFitBtn=document.querySelector("#zoom-to-fit"),s&&(this.toggleStreamNameBtn=document.querySelector("#stream-names-toggle"),this.toggleStreamNameBtn&&this.registerToggleStreamNamesEvent(this.toggleStreamNameBtn),this.toggleLabelsBtn=document.querySelector("#show-label-toggle"),this.toggleLabelsBtn&&this.registerEventToggleLabel(this.toggleLabelsBtn),this.zoomInBtn&&this.zoomOutBtn&&this.zoomFitBtn&&this.registerZoomEvent(this.zoomInBtn,this.zoomOutBtn,this.zoomFitBtn))}registerZoomEvent(t,n,r){this.zoomInHandler=()=>this.zoomInEvent(this._paper.paperScroller,this.zoomRate),this.zoomOutHandler=()=>this.zoomOutEvent(this._paper.paperScroller,this.zoomRate),this.zoomFitHandler=()=>this.zoomFitEvent(),t.addEventListener("click",this.zoomInHandler),n.addEventListener("click",this.zoomOutHandler),r.addEventListener("click",this.zoomFitHandler)}zoomInEvent(t,n){t.zoom(n,{max:100})}zoomOutEvent(t,n){t.zoom(-n,{min:.01})}zoomFitEvent(){this._paper.zoomToFit()}registerToggleStreamNamesEvent(t){t.addEventListener("click",()=>{t.getAttribute("data-toggle")==="true"?this._paper._graph.getLinks().forEach(function(r){r.label(jg,Sf)}):this._paper._graph.getLinks().forEach(function(r){r.label(jg,_f)})})}registerEventExportFlowsheetToPng(){const t=document.querySelector("#headerExportImageBtn");document.querySelector("#headerExportSvgBtn"),t.addEventListener("click",()=>{let n=this._paper.paper;const r=this.flowsheetId;n.hideTools(),n.toPNG(function(a){new joint.ui.Lightbox({image:a,downloadable:!0,fileName:r.concat(".png")}).open()},{scale:2,pixelRatio:2,preserveDimensions:!0,convertImagesToDataUris:!0,useComputedStyles:!0,stylesheet:".scalable * { vector-effect: non-scaling-stroke }"})})}registerEventExportFlowsheetToSvg(){document.querySelector("#headerExportSvgBtn").addEventListener("click",()=>{let n=this._paper.paper;const r=this.flowsheetId;n.hideTools(),n.toSVG(a=>{const i=new Blob([a],{type:"image/svg+xml;charset=utf-8"}),o=URL.createObjectURL(i);new joint.ui.Lightbox({image:o,downloadable:!0,fileName:r.concat(".svg")}).open()},{scale:2,pixelRatio:2,preserveDimensions:!0,convertImagesToDataUris:!0,useComputedStyles:!0,stylesheet:".scalable * { vector-effect: non-scaling-stroke }"})})}registerEventToggleLabel(t){t.addEventListener("click",()=>{t.getAttribute("data-toggle")=="true"?this._paper._graph.getLinks().forEach(function(r){r.label(Ws,_f)}):this._paper._graph.getLinks().forEach(function(r){r.label(Ws,Sf)})})}registerEventRefresh(t,n){document.querySelector("#refresh_btn").addEventListener("click",()=>{this._app.refreshModel(t,n,this._paper)})}registerEventSave(t){document.querySelector("#save_btn").addEventListener("click",()=>{this._app.saveModel(t,this._paper.graph)})}cleanUpEvent(){let t=document.getElementById("zoom-in-btn"),n=document.getElementById("zoom-out-btn"),r=document.getElementById("zoom-to-fit");if(t){let u=t.cloneNode(!0);t.parentNode.replaceChild(u,t)}if(n){let u=n.cloneNode(!0);n.parentNode.replaceChild(u,n)}if(r){let u=r.cloneNode(!0);r.parentNode.replaceChild(u,r)}let a=document.getElementById("flowsheet_component_header_dropdown_container"),i=document.getElementById("headerExportImageBtn"),o=document.getElementById("headerExportSvgBtn");if(i){let u=i.cloneNode(!0);a?a.replaceChild(u,i):console.log("error no parent nodes")}if(o){let u=o.cloneNode(!0);a?a.replaceChild(u,o):console.log("error download svg btn replacement failed, in toolbar, parent not found!")}let s=document.getElementById("save_btn");if(s){let u=s.cloneNode(!0);s.parentNode?s.parentNode.replaceChild(u,s):console.log("error save btn replacement error handle in toolbar, parent not found!")}let l=document.getElementById("refresh_btn");if(l){let u=l.cloneNode(!0);l.parentNode?l.parentNode.replaceChild(u,l):console.log("error refresh btn replacement error handle in toolbar, parent not found!")}}}const pC="_message_bar_container_8b2qe_1",gC="_messageBarTextContainer_8b2qe_9",mC="_messageBarShowUp_8b2qe_1",vC="_bg_successful_8b2qe_40",yC="_bg_error_8b2qe_44",os={message_bar_container:pC,messageBarTextContainer:gC,messageBarShowUp:mC,bg_successful:vC,bg_error:yC};function ir(e,t,n){let r="loading...";e=="refreshFS"&&t&&(r="Flowsheet refreshed."),e=="refreshFS"&&!t&&(r="Flowsheet refresh failed! Please reload the page!"),e=="userSave"&&t&&(r="Flowsheet saved."),e=="userSave"&&!t&&(r="Flowsheet save failed! Please restart the server!"),e=="diagnosticRefresh"&&t&&(r="Diagnostics refreshed."),e=="diagnosticRefresh"&&!t&&(r="Diagnostics refresh failed! Please restart the server!"),e=="diagnosticFNRunError"&&!t&&(n?r=n:r="Run diagnostics failed, please check your python terminal.");const a=` +
+

${r}

+
+ `,i=document.getElementById("messageBarContainer");i.innerHTML=a;const o=setTimeout(()=>{const s=document.getElementById("messageBarTextContainer");console.log(s),s?i.removeChild(s):console.log("Child node message bar is not found!"),clearTimeout(o)},3e3)}function k1(e,t){return function(){return e.apply(t,arguments)}}const{toString:wC}=Object.prototype,{getPrototypeOf:oh}=Object,El=(e=>t=>{const n=wC.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ft=e=>(e=e.toLowerCase(),t=>El(t)===e),Tl=e=>t=>typeof t===e,{isArray:ya}=Array,Ai=Tl("undefined");function _C(e){return e!==null&&!Ai(e)&&e.constructor!==null&&!Ai(e.constructor)&&mt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const A1=Ft("ArrayBuffer");function SC(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&A1(e.buffer),t}const bC=Tl("string"),mt=Tl("function"),R1=Tl("number"),Cl=e=>e!==null&&typeof e=="object",EC=e=>e===!0||e===!1,ss=e=>{if(El(e)!=="object")return!1;const t=oh(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},TC=Ft("Date"),CC=Ft("File"),OC=Ft("Blob"),xC=Ft("FileList"),PC=e=>Cl(e)&&mt(e.pipe),NC=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||mt(e.append)&&((t=El(e))==="formdata"||t==="object"&&mt(e.toString)&&e.toString()==="[object FormData]"))},DC=Ft("URLSearchParams"),kC=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zi(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),ya(e))for(r=0,a=e.length;r0;)if(a=n[r],t===a.toLowerCase())return a;return null}const L1=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),M1=e=>!Ai(e)&&e!==L1;function bf(){const{caseless:e}=M1(this)&&this||{},t={},n=(r,a)=>{const i=e&&$1(t,a)||a;ss(t[i])&&ss(r)?t[i]=bf(t[i],r):ss(r)?t[i]=bf({},r):ya(r)?t[i]=r.slice():t[i]=r};for(let r=0,a=arguments.length;r(zi(t,(a,i)=>{n&&mt(a)?e[i]=k1(a,n):e[i]=a},{allOwnKeys:r}),e),RC=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),$C=(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)},LC=(e,t,n,r)=>{let a,i,o;const s={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)o=a[i],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&oh(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},MC=(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},jC=e=>{if(!e)return null;if(ya(e))return e;let t=e.length;if(!R1(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},FC=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&oh(Uint8Array)),IC=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=r.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},UC=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},zC=Ft("HTMLFormElement"),HC=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),Fg=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),WC=Ft("RegExp"),j1=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};zi(n,(a,i)=>{let o;(o=t(a,i,e))!==!1&&(r[i]=o||a)}),Object.defineProperties(e,r)},GC=e=>{j1(e,(t,n)=>{if(mt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(mt(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+"'")})}})},VC=(e,t)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return ya(e)?r(e):r(String(e).split(t)),n},qC=()=>{},KC=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Uu="abcdefghijklmnopqrstuvwxyz",Ig="0123456789",F1={DIGIT:Ig,ALPHA:Uu,ALPHA_DIGIT:Uu+Uu.toUpperCase()+Ig},YC=(e=16,t=F1.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function XC(e){return!!(e&&mt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const JC=e=>{const t=new Array(10),n=(r,a)=>{if(Cl(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[a]=r;const i=ya(r)?[]:{};return zi(r,(o,s)=>{const l=n(o,a+1);!Ai(l)&&(i[s]=l)}),t[a]=void 0,i}}return r};return n(e,0)},QC=Ft("AsyncFunction"),BC=e=>e&&(Cl(e)||mt(e))&&mt(e.then)&&mt(e.catch),A={isArray:ya,isArrayBuffer:A1,isBuffer:_C,isFormData:NC,isArrayBufferView:SC,isString:bC,isNumber:R1,isBoolean:EC,isObject:Cl,isPlainObject:ss,isUndefined:Ai,isDate:TC,isFile:CC,isBlob:OC,isRegExp:WC,isFunction:mt,isStream:PC,isURLSearchParams:DC,isTypedArray:FC,isFileList:xC,forEach:zi,merge:bf,extend:AC,trim:kC,stripBOM:RC,inherits:$C,toFlatObject:LC,kindOf:El,kindOfTest:Ft,endsWith:MC,toArray:jC,forEachEntry:IC,matchAll:UC,isHTMLForm:zC,hasOwnProperty:Fg,hasOwnProp:Fg,reduceDescriptors:j1,freezeMethods:GC,toObjectSet:VC,toCamelCase:HC,noop:qC,toFiniteNumber:KC,findKey:$1,global:L1,isContextDefined:M1,ALPHABET:F1,generateString:YC,isSpecCompliantForm:XC,toJSONObject:JC,isAsyncFn:QC,isThenable:BC};function X(e,t,n,r,a){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),a&&(this.response=a)}A.inherits(X,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:A.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const I1=X.prototype,U1={};["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=>{U1[e]={value:e}});Object.defineProperties(X,U1);Object.defineProperty(I1,"isAxiosError",{value:!0});X.from=(e,t,n,r,a,i)=>{const o=Object.create(I1);return A.toFlatObject(e,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),X.call(o,e.message,t,n,r,a),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const ZC=null;function Ef(e){return A.isPlainObject(e)||A.isArray(e)}function z1(e){return A.endsWith(e,"[]")?e.slice(0,-2):e}function Ug(e,t,n){return e?e.concat(t).map(function(a,i){return a=z1(a),!n&&i?"["+a+"]":a}).join(n?".":""):t}function eO(e){return A.isArray(e)&&!e.some(Ef)}const tO=A.toFlatObject(A,{},null,function(t){return/^is[A-Z]/.test(t)});function Ol(e,t,n){if(!A.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=A.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,b){return!A.isUndefined(b[_])});const r=n.metaTokens,a=n.visitor||h,i=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&A.isSpecCompliantForm(t);if(!A.isFunction(a))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(A.isDate(m))return m.toISOString();if(!l&&A.isBlob(m))throw new X("Blob is not supported. Use a Buffer instead.");return A.isArrayBuffer(m)||A.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function h(m,_,b){let v=m;if(m&&!b&&typeof m=="object"){if(A.endsWith(_,"{}"))_=r?_:_.slice(0,-2),m=JSON.stringify(m);else if(A.isArray(m)&&eO(m)||(A.isFileList(m)||A.endsWith(_,"[]"))&&(v=A.toArray(m)))return _=z1(_),v.forEach(function(S,x){!(A.isUndefined(S)||S===null)&&t.append(o===!0?Ug([_],x,i):o===null?_:_+"[]",u(S))}),!1}return Ef(m)?!0:(t.append(Ug(b,_,i),u(m)),!1)}const d=[],p=Object.assign(tO,{defaultVisitor:h,convertValue:u,isVisitable:Ef});function w(m,_){if(!A.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+_.join("."));d.push(m),A.forEach(m,function(v,y){(!(A.isUndefined(v)||v===null)&&a.call(t,v,A.isString(y)?y.trim():y,_,p))===!0&&w(v,_?_.concat(y):[y])}),d.pop()}}if(!A.isObject(e))throw new TypeError("data must be an object");return w(e),t}function zg(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function sh(e,t){this._pairs=[],e&&Ol(e,this,t)}const H1=sh.prototype;H1.append=function(t,n){this._pairs.push([t,n])};H1.toString=function(t){const n=t?function(r){return t.call(this,r,zg)}:zg;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function nO(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function W1(e,t,n){if(!t)return e;const r=n&&n.encode||nO,a=n&&n.serialize;let i;if(a?i=a(t,n):i=A.isURLSearchParams(t)?t.toString():new sh(t,n).toString(r),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class rO{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){A.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Hg=rO,G1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},aO=typeof URLSearchParams<"u"?URLSearchParams:sh,iO=typeof FormData<"u"?FormData:null,oO=typeof Blob<"u"?Blob:null,sO={isBrowser:!0,classes:{URLSearchParams:aO,FormData:iO,Blob:oO},protocols:["http","https","file","blob","url","data"]},V1=typeof window<"u"&&typeof document<"u",lO=(e=>V1&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),uO=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),cO=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:V1,hasStandardBrowserEnv:lO,hasStandardBrowserWebWorkerEnv:uO},Symbol.toStringTag,{value:"Module"})),Lt={...cO,...sO};function fO(e,t){return Ol(e,new Lt.classes.URLSearchParams,Object.assign({visitor:function(n,r,a,i){return Lt.isNode&&A.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function dO(e){return A.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function hO(e){const t={},n=Object.keys(e);let r;const a=n.length;let i;for(r=0;r=n.length;return o=!o&&A.isArray(a)?a.length:o,l?(A.hasOwnProp(a,o)?a[o]=[a[o],r]:a[o]=r,!s):((!a[o]||!A.isObject(a[o]))&&(a[o]=[]),t(n,r,a[o],i)&&A.isArray(a[o])&&(a[o]=hO(a[o])),!s)}if(A.isFormData(e)&&A.isFunction(e.entries)){const n={};return A.forEachEntry(e,(r,a)=>{t(dO(r),a,n,0)}),n}return null}function pO(e,t,n){if(A.isString(e))try{return(t||JSON.parse)(e),A.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const lh={transitional:G1,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,i=A.isObject(t);if(i&&A.isHTMLForm(t)&&(t=new FormData(t)),A.isFormData(t))return a&&a?JSON.stringify(q1(t)):t;if(A.isArrayBuffer(t)||A.isBuffer(t)||A.isStream(t)||A.isFile(t)||A.isBlob(t))return t;if(A.isArrayBufferView(t))return t.buffer;if(A.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return fO(t,this.formSerializer).toString();if((s=A.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Ol(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||a?(n.setContentType("application/json",!1),pO(t)):t}],transformResponse:[function(t){const n=this.transitional||lh.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(t&&A.isString(t)&&(r&&!this.responseType||a)){const o=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?X.from(s,X.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Lt.classes.FormData,Blob:Lt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};A.forEach(["delete","get","head","post","put","patch"],e=>{lh.headers[e]={}});const uh=lh,gO=A.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"]),mO=e=>{const t={};let n,r,a;return e&&e.split(` +`).forEach(function(o){a=o.indexOf(":"),n=o.substring(0,a).trim().toLowerCase(),r=o.substring(a+1).trim(),!(!n||t[n]&&gO[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Wg=Symbol("internals");function Ma(e){return e&&String(e).trim().toLowerCase()}function ls(e){return e===!1||e==null?e:A.isArray(e)?e.map(ls):String(e)}function vO(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 yO=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function zu(e,t,n,r,a){if(A.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!A.isString(t)){if(A.isString(r))return t.indexOf(r)!==-1;if(A.isRegExp(r))return r.test(t)}}function wO(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function _O(e,t){const n=A.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(a,i,o){return this[r].call(this,t,a,i,o)},configurable:!0})})}class xl{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function i(s,l,u){const h=Ma(l);if(!h)throw new Error("header name must be a non-empty string");const d=A.findKey(a,h);(!d||a[d]===void 0||u===!0||u===void 0&&a[d]!==!1)&&(a[d||l]=ls(s))}const o=(s,l)=>A.forEach(s,(u,h)=>i(u,h,l));return A.isPlainObject(t)||t instanceof this.constructor?o(t,n):A.isString(t)&&(t=t.trim())&&!yO(t)?o(mO(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=Ma(t),t){const r=A.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return vO(a);if(A.isFunction(n))return n.call(this,a,r);if(A.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ma(t),t){const r=A.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||zu(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function i(o){if(o=Ma(o),o){const s=A.findKey(r,o);s&&(!n||zu(r,r[s],s,n))&&(delete r[s],a=!0)}}return A.isArray(t)?t.forEach(i):i(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const i=n[r];(!t||zu(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const n=this,r={};return A.forEach(this,(a,i)=>{const o=A.findKey(r,i);if(o){n[o]=ls(a),delete n[i];return}const s=t?wO(i):String(i).trim();s!==i&&delete n[i],n[s]=ls(a),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return A.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&A.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(` +`)}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(a=>r.set(a)),r}static accessor(t){const r=(this[Wg]=this[Wg]={accessors:{}}).accessors,a=this.prototype;function i(o){const s=Ma(o);r[s]||(_O(a,o),r[s]=!0)}return A.isArray(t)?t.forEach(i):i(t),this}}xl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);A.reduceDescriptors(xl.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});A.freezeMethods(xl);const Xt=xl;function Hu(e,t){const n=this||uh,r=t||n,a=Xt.from(r.headers);let i=r.data;return A.forEach(e,function(s){i=s.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function K1(e){return!!(e&&e.__CANCEL__)}function Hi(e,t,n){X.call(this,e??"canceled",X.ERR_CANCELED,t,n),this.name="CanceledError"}A.inherits(Hi,X,{__CANCEL__:!0});function SO(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new X("Request failed with status code "+n.status,[X.ERR_BAD_REQUEST,X.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const bO=Lt.hasStandardBrowserEnv?{write(e,t,n,r,a,i){const o=[e+"="+encodeURIComponent(t)];A.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),A.isString(r)&&o.push("path="+r),A.isString(a)&&o.push("domain="+a),i===!0&&o.push("secure"),document.cookie=o.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 EO(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function TO(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Y1(e,t){return e&&!EO(t)?TO(e,t):t}const CO=Lt.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function a(i){let o=i;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=a(window.location.href),function(o){const s=A.isString(o)?a(o):o;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function OO(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function xO(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,i=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),h=r[i];o||(o=u),n[a]=l,r[a]=u;let d=i,p=0;for(;d!==a;)p+=n[d++],d=d%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),u-o{const i=a.loaded,o=a.lengthComputable?a.total:void 0,s=i-n,l=r(s),u=i<=o;n=i;const h={loaded:i,total:o,progress:o?i/o:void 0,bytes:s,rate:l||void 0,estimated:l&&o&&u?(o-i)/l:void 0,event:a};h[t?"download":"upload"]=!0,e(h)}}const PO=typeof XMLHttpRequest<"u",NO=PO&&function(e){return new Promise(function(n,r){let a=e.data;const i=Xt.from(e.headers).normalize();let{responseType:o,withXSRFToken:s}=e,l;function u(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let h;if(A.isFormData(a)){if(Lt.hasStandardBrowserEnv||Lt.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((h=i.getContentType())!==!1){const[_,...b]=h?h.split(";").map(v=>v.trim()).filter(Boolean):[];i.setContentType([_||"multipart/form-data",...b].join("; "))}}let d=new XMLHttpRequest;if(e.auth){const _=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(_+":"+b))}const p=Y1(e.baseURL,e.url);d.open(e.method.toUpperCase(),W1(p,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function w(){if(!d)return;const _=Xt.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),v={data:!o||o==="text"||o==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:_,config:e,request:d};SO(function(S){n(S),u()},function(S){r(S),u()},v),d=null}if("onloadend"in d?d.onloadend=w:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(w)},d.onabort=function(){d&&(r(new X("Request aborted",X.ECONNABORTED,e,d)),d=null)},d.onerror=function(){r(new X("Network Error",X.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let b=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const v=e.transitional||G1;e.timeoutErrorMessage&&(b=e.timeoutErrorMessage),r(new X(b,v.clarifyTimeoutError?X.ETIMEDOUT:X.ECONNABORTED,e,d)),d=null},Lt.hasStandardBrowserEnv&&(s&&A.isFunction(s)&&(s=s(e)),s||s!==!1&&CO(p))){const _=e.xsrfHeaderName&&e.xsrfCookieName&&bO.read(e.xsrfCookieName);_&&i.set(e.xsrfHeaderName,_)}a===void 0&&i.setContentType(null),"setRequestHeader"in d&&A.forEach(i.toJSON(),function(b,v){d.setRequestHeader(v,b)}),A.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),o&&o!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",Gg(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",Gg(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=_=>{d&&(r(!_||_.type?new Hi(null,e,d):_),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const m=OO(p);if(m&&Lt.protocols.indexOf(m)===-1){r(new X("Unsupported protocol "+m+":",X.ERR_BAD_REQUEST,e));return}d.send(a||null)})},Tf={http:ZC,xhr:NO};A.forEach(Tf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Vg=e=>`- ${e}`,DO=e=>A.isFunction(e)||e===null||e===!1,X1={getAdapter:e=>{e=A.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let i=0;i`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?i.length>1?`since : +`+i.map(Vg).join(` +`):" "+Vg(i[0]):"as no adapter specified";throw new X("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:Tf};function Wu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Hi(null,e)}function qg(e){return Wu(e),e.headers=Xt.from(e.headers),e.data=Hu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),X1.getAdapter(e.adapter||uh.adapter)(e).then(function(r){return Wu(e),r.data=Hu.call(e,e.transformResponse,r),r.headers=Xt.from(r.headers),r},function(r){return K1(r)||(Wu(e),r&&r.response&&(r.response.data=Hu.call(e,e.transformResponse,r.response),r.response.headers=Xt.from(r.response.headers))),Promise.reject(r)})}const Kg=e=>e instanceof Xt?e.toJSON():e;function fa(e,t){t=t||{};const n={};function r(u,h,d){return A.isPlainObject(u)&&A.isPlainObject(h)?A.merge.call({caseless:d},u,h):A.isPlainObject(h)?A.merge({},h):A.isArray(h)?h.slice():h}function a(u,h,d){if(A.isUndefined(h)){if(!A.isUndefined(u))return r(void 0,u,d)}else return r(u,h,d)}function i(u,h){if(!A.isUndefined(h))return r(void 0,h)}function o(u,h){if(A.isUndefined(h)){if(!A.isUndefined(u))return r(void 0,u)}else return r(void 0,h)}function s(u,h,d){if(d in t)return r(u,h);if(d in e)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(u,h)=>a(Kg(u),Kg(h),!0)};return A.forEach(Object.keys(Object.assign({},e,t)),function(h){const d=l[h]||a,p=d(e[h],t[h],h);A.isUndefined(p)&&d!==s||(n[h]=p)}),n}const J1="1.6.5",ch={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ch[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Yg={};ch.transitional=function(t,n,r){function a(i,o){return"[Axios v"+J1+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,s)=>{if(t===!1)throw new X(a(o," has been removed"+(n?" in "+n:"")),X.ERR_DEPRECATED);return n&&!Yg[o]&&(Yg[o]=!0,console.warn(a(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,s):!0}};function kO(e,t,n){if(typeof e!="object")throw new X("options must be an object",X.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const i=r[a],o=t[i];if(o){const s=e[i],l=s===void 0||o(s,i,e);if(l!==!0)throw new X("option "+i+" must be "+l,X.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new X("Unknown option "+i,X.ERR_BAD_OPTION)}}const Cf={assertOptions:kO,validators:ch},un=Cf.validators;class Gs{constructor(t){this.defaults=t,this.interceptors={request:new Hg,response:new Hg}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=fa(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&Cf.assertOptions(r,{silentJSONParsing:un.transitional(un.boolean),forcedJSONParsing:un.transitional(un.boolean),clarifyTimeoutError:un.transitional(un.boolean)},!1),a!=null&&(A.isFunction(a)?n.paramsSerializer={serialize:a}:Cf.assertOptions(a,{encode:un.function,serialize:un.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&A.merge(i.common,i[n.method]);i&&A.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=Xt.concat(o,i);const s=[];let l=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(n)===!1||(l=l&&_.synchronous,s.unshift(_.fulfilled,_.rejected))});const u=[];this.interceptors.response.forEach(function(_){u.push(_.fulfilled,_.rejected)});let h,d=0,p;if(!l){const m=[qg.bind(this),void 0];for(m.unshift.apply(m,s),m.push.apply(m,u),p=m.length,h=Promise.resolve(n);d{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(s=>{r.subscribe(s),i=s}).then(a);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,s){r.reason||(r.reason=new Hi(i,o,s),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)}static source(){let t;return{token:new fh(function(a){t=a}),cancel:t}}}const AO=fh;function RO(e){return function(n){return e.apply(null,n)}}function $O(e){return A.isObject(e)&&e.isAxiosError===!0}const Of={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(Of).forEach(([e,t])=>{Of[t]=e});const LO=Of;function Q1(e){const t=new us(e),n=k1(us.prototype.request,t);return A.extend(n,us.prototype,t,{allOwnKeys:!0}),A.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return Q1(fa(e,a))},n}const me=Q1(uh);me.Axios=us;me.CanceledError=Hi;me.CancelToken=AO;me.isCancel=K1;me.VERSION=J1;me.toFormData=Ol;me.AxiosError=X;me.Cancel=me.CanceledError;me.all=function(t){return Promise.all(t)};me.spread=RO;me.isAxiosError=$O;me.mergeConfig=fa;me.AxiosHeaders=Xt;me.formToJSON=e=>q1(A.isHTMLForm(e)?new FormData(e):e);me.getAdapter=X1.getAdapter;me.HttpStatusCode=LO;me.default=me;const Zn=me;class MO{constructor(t,n,r,a,i,o){z(this,"flowsheetId");z(this,"isFvShow");z(this,"isStreamTableShow");z(this,"baseUrl");z(this,"getFSUrl");z(this,"putFSUrl");z(this,"model");z(this,"paper");z(this,"_is_graph_changed");z(this,"_save_time_interval_key");z(this,"_default_save_time_interval");z(this,"_save_time_interval");z(this,"stream_table");z(this,"toolbar");z(this,"cleanToolBarEvent");z(this,"viewInLogPanel");this.flowsheetId=t,this.isFvShow=r,this.isStreamTableShow=i,this.viewInLogPanel=o,this.baseUrl=`http://localhost:${n}`,this.getFSUrl=`/fs?id=${t}`,this.putFSUrl=`/fs?id=${t}`,this.model={},r&&(this.paper=new cC(this)),this._is_graph_changed=!1,this._save_time_interval_key="save_time_interval",this._default_save_time_interval=5e3,this._save_time_interval=this.getSaveTimeInterval(),this.setupGraphChangeChecker(this._save_time_interval,t),this.setGetFSUrl(),Zn.get(this.getFSUrl).then(s=>{this.model=s.data,r&&this.renderModel(this.model),i&&o.streamTable&&(this.stream_table=new dC(this,this.model,this.viewInLogPanel)),this.toolbar=new hC(this,this.paper,this.stream_table,this.flowsheetId,this.getFSUrl,this.putFSUrl,this.isFvShow),this.cleanToolBarEvent=this.toolbar.cleanUpEvent}).catch(s=>{console.log(s.message),console.log(s.response.status)}),this.fvExtraContentCleanUp()}setGetFSUrl(){let t=new URLSearchParams(window.location.search);if(!t.get("example"))return;let n=parseInt(t.get("example")),r=["example_1","example_2","example_3","example_4","example_5","example_6","example_7"];n<0||n>r.length||(this.getFSUrl=`/assets/testing_data/example_${n}.json`)}renderModel(t){const r=new fC(t).processRoutingConfig();this.paper.setup(r)}debug_removeFlowsheetPosition(t){let n=5;t.cells.forEach(r=>{n+=150,r.position&&(r.position={x:n,y:void 0})})}informUser(t,n){switch(t){case 0:console.log(n);break;case 1:console.warn(n);break;case 2:console.error(n);break;default:console.log(n)}}refreshModel(t,n,r){this.informUser(0,"Refresh: save current values from model");let a=r.graph,i=JSON.stringify(a.toJSON());Zn.put(n,i,{headers:{"Content-Type":"application/json"}}).then(()=>(this.informUser(0,"Refresh: load new model values from Python program"),Zn.get(t,{responseType:"json"}))).then(o=>{console.log(o.data);const s=o.data;let l;this.isStreamTableShow&&this.viewInLogPanel.streamTable&&(l=document.getElementById("hide-fields-list")),l&&(l.innerHTML="",this.renderModel(s),this.stream_table.initTable(s)),ir("refreshFS",!0)}).catch(o=>{ir("refreshFS",!1),o.response?this.informUser(2,"Fatal error: cannot save current model before refresh: "+o.response.data):this.informUser(2,"Fatal error: Could not retrieve new model from Python program: "+o.message)})}getSaveTimeInterval(){let t=`${this.baseUrl}/setting?setting_key=${this._save_time_interval_key}`,n=this._default_save_time_interval;return Zn.get(t,{headers:{"Content-Type":"application/json"}}).then(r=>{r.data.value!="None"?n=r.data.value:this.informUser(1,`Warning: save_time_interval was not set correctly. Default time value of + ${this._default_save_time_interval.toString()} + will be set.`)}).catch(r=>{this.informUser(2,"Fatal error: cannot get setting value: "+r)}),n}graphChanged(){this._is_graph_changed=!0}setupGraphChangeChecker(t,n){let r=this.putFSUrl;var a=setInterval(()=>{this._is_graph_changed&&(this.saveModel(r,this.paper.graph),this._is_graph_changed=!1)},t);return a}saveModel(t,n){let r=JSON.stringify(n.toJSON());Zn.put(t,r,{headers:{"Content-Type":"application/json"}}).then(a=>{console.log("saved"),this.informUser(0,"Saved new model values"),ir("userSave",!0)}).catch(a=>{ir("userSave",!1),this.informUser(2,"Fatal error: cannot save current model: "+a)})}fvExtraContentCleanUp(){let t=document.getElementById("fv");if(!(!t||t.childNodes.length<=1))for(t.childNodes[(t==null?void 0:t.childNodes.length)-1];t.firstChild!==t.lastChild;)t.removeChild(t.firstChild)}}var xf={},da={},B1={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",o=0;o-1&&e%1==0&&e-1&&e%1==0&&e<=cP}var ph=fP,dP=Wi,hP=ph,pP=Sr,gP="[object Arguments]",mP="[object Array]",vP="[object Boolean]",yP="[object Date]",wP="[object Error]",_P="[object Function]",SP="[object Map]",bP="[object Number]",EP="[object Object]",TP="[object RegExp]",CP="[object Set]",OP="[object String]",xP="[object WeakMap]",PP="[object ArrayBuffer]",NP="[object DataView]",DP="[object Float32Array]",kP="[object Float64Array]",AP="[object Int8Array]",RP="[object Int16Array]",$P="[object Int32Array]",LP="[object Uint8Array]",MP="[object Uint8ClampedArray]",jP="[object Uint16Array]",FP="[object Uint32Array]",re={};re[DP]=re[kP]=re[AP]=re[RP]=re[$P]=re[LP]=re[MP]=re[jP]=re[FP]=!0;re[gP]=re[mP]=re[PP]=re[vP]=re[NP]=re[yP]=re[wP]=re[_P]=re[SP]=re[bP]=re[EP]=re[TP]=re[CP]=re[OP]=re[xP]=!1;function IP(e){return pP(e)&&hP(e.length)&&!!re[dP(e)]}var UP=IP;function zP(e){return function(t){return e(t)}}var gh=zP,qs={exports:{}};qs.exports;(function(e,t){var n=Z1,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,o=i&&n.process,s=function(){try{var l=a&&a.require&&a.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(qs,qs.exports);var mh=qs.exports,HP=UP,WP=gh,tm=mh,nm=tm&&tm.isTypedArray,GP=nm?WP(nm):HP,vh=GP,VP=Kx,qP=Pl,KP=wt,YP=Nl,XP=hh,JP=vh,QP=Object.prototype,BP=QP.hasOwnProperty;function ZP(e,t){var n=KP(e),r=!n&&qP(e),a=!n&&!r&&YP(e),i=!n&&!r&&!a&&JP(e),o=n||r||a||i,s=o?VP(e.length,String):[],l=s.length;for(var u in e)(t||BP.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||XP(u,l)))&&s.push(u);return s}var iw=ZP,eN=Object.prototype;function tN(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||eN;return e===n}var Dl=tN;function nN(e,t){return function(n){return e(t(n))}}var ow=nN,rN=ow,aN=rN(Object.keys,Object),iN=aN,oN=Dl,sN=iN,lN=Object.prototype,uN=lN.hasOwnProperty;function cN(e){if(!oN(e))return sN(e);var t=[];for(var n in Object(e))uN.call(e,n)&&n!="constructor"&&t.push(n);return t}var sw=cN,fN=tw,dN=ph;function hN(e){return e!=null&&dN(e.length)&&!fN(e)}var kl=hN,pN=iw,gN=sw,mN=kl;function vN(e){return mN(e)?pN(e):gN(e)}var br=vN,yN=Vx,wN=br;function _N(e,t){return e&&yN(e,t,wN)}var SN=_N,bN=kl;function EN(e,t){return function(n,r){if(n==null)return n;if(!bN(n))return e(n,r);for(var a=n.length,i=t?a:-1,o=Object(n);(t?i--:++i-1}var KN=qN,YN=Al;function XN(e,t){var n=this.__data__,r=YN(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var JN=XN,QN=RN,BN=zN,ZN=GN,eD=KN,tD=JN;function _a(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ts))return!1;var u=i.get(e),h=i.get(t);if(u&&h)return u==t&&h==e;var d=-1,p=!0,w=n&zk?new jk:void 0;for(i.set(e,t),i.set(t,e);++d(t==null&&(t=e()),t)}function c$(e,t){return e.filter(n=>n!==t)}function f$(e,t){const n=new Set,r=i=>n.add(i);e.forEach(r),t.forEach(r);const a=[];return n.forEach(i=>a.push(i)),a}class d${enter(t){const n=this.entered.length,r=a=>this.isNodeInDocument(a)&&(!a.contains||a.contains(t));return this.entered=f$(this.entered.filter(r),[t]),n===0&&this.entered.length>0}leave(t){const n=this.entered.length;return this.entered=c$(this.entered.filter(this.isNodeInDocument),t),n>0&&this.entered.length===0}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class h${initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(t=>{Object.defineProperty(this.item,t,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${t}" until the drop event.`),null}})})}loadDataTransfer(t){if(t){const n={};Object.keys(this.config.exposeProperties).forEach(r=>{const a=this.config.exposeProperties[r];a!=null&&(n[r]={value:a(t,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,n)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(t,n){return n===t.getSourceId()}endDrag(){}constructor(t){this.config=t,this.item={},this.initializeExposedProperties()}}const Ow="__NATIVE_FILE__",xw="__NATIVE_URL__",Pw="__NATIVE_TEXT__",Nw="__NATIVE_HTML__",Om=Object.freeze(Object.defineProperty({__proto__:null,FILE:Ow,HTML:Nw,TEXT:Pw,URL:xw},Symbol.toStringTag,{value:"Module"}));function Ku(e,t,n){const r=t.reduce((a,i)=>a||e.getData(i),"");return r??n}const Rf={[Ow]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[Nw]:{exposeProperties:{html:(e,t)=>Ku(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[xw]:{exposeProperties:{urls:(e,t)=>Ku(e,t,"").split(` +`),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[Pw]:{exposeProperties:{text:(e,t)=>Ku(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function p$(e,t){const n=Rf[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new h$(n);return r.loadDataTransfer(t),r}function Yu(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(Rf).filter(n=>{const r=Rf[n];return r!=null&&r.matchesTypes?r.matchesTypes.some(a=>t.indexOf(a)>-1):!1})[0]||null}const g$=Cw(()=>/firefox/i.test(navigator.userAgent)),Dw=Cw(()=>!!window.safari);class xm{interpolate(t){const{xs:n,ys:r,c1s:a,c2s:i,c3s:o}=this;let s=n.length-1;if(t===n[s])return r[s];let l=0,u=o.length-1,h;for(;l<=u;){h=Math.floor(.5*(l+u));const w=n[h];if(wt)u=h-1;else return r[h]}s=Math.max(0,u);const d=t-n[s],p=d*d;return r[s]+a[s]*d+i[s]*p+o[s]*d*p}constructor(t,n){const{length:r}=t,a=[];for(let w=0;wt[w]{let k=new xm([0,.5,1],[l.y,l.y/h*m,l.y+m-h]).interpolate(p);return Dw()&&i&&(k+=(window.devicePixelRatio-1)*m),k},b=()=>new xm([0,.5,1],[l.x,l.x/u*w,l.x+w-u]).interpolate(d),{offsetX:v,offsetY:y}=a,S=v===0||v,x=y===0||y;return{x:S?v:b(),y:x?y:_()}}let _$=class{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var t;return!((t=this.globalContext)===null||t===void 0)&&t.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var t;return((t=this.optionsArgs)===null||t===void 0?void 0:t.rootElement)||this.window}constructor(t,n){this.ownerDocument=null,this.globalContext=t,this.optionsArgs=n}};function S$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pm(e){for(var t=1;t{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDragSource(t,n,r){this.sourceNodes.set(t,n),this.sourceNodeOptions.set(t,r);const a=o=>this.handleDragStart(o,t),i=o=>this.handleSelectStart(o);return n.setAttribute("draggable","true"),n.addEventListener("dragstart",a),n.addEventListener("selectstart",i),()=>{this.sourceNodes.delete(t),this.sourceNodeOptions.delete(t),n.removeEventListener("dragstart",a),n.removeEventListener("selectstart",i),n.setAttribute("draggable","false")}}connectDropTarget(t,n){const r=o=>this.handleDragEnter(o,t),a=o=>this.handleDragOver(o,t),i=o=>this.handleDrop(o,t);return n.addEventListener("dragenter",r),n.addEventListener("dragover",a),n.addEventListener("drop",i),()=>{n.removeEventListener("dragenter",r),n.removeEventListener("dragover",a),n.removeEventListener("drop",i)}}addEventListeners(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const t=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(t);return Pm({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const t=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(t);return Pm({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const t=this.monitor.getItemType();return Object.keys(Om).some(n=>Om[n]===t)}beginDragNativeItem(t,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=p$(t,n),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(t){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t;const n=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var r;return(r=this.rootElement)===null||r===void 0?void 0:r.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},n)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var t;(t=this.window)===null||t===void 0||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(t,n){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}handleDragEnter(t,n){this.dragEnterTargetIds.unshift(n)}handleDragOver(t,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}handleDrop(t,n){this.dropTargetIds.unshift(n)}constructor(t,n,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=a=>{const i=this.sourceNodes.get(a);return i&&kw(i)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=a=>!!(a&&this.document&&this.document.body&&this.document.body.contains(a)),this.endDragIfSourceWasRemovedFromDOM=()=>{const a=this.currentDragSourceNode;a==null||this.isNodeInDocument(a)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=a=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(a||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=a=>{if(a.defaultPrevented)return;const{dragStartSourceIds:i}=this;this.dragStartSourceIds=null;const o=jo(a);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(i||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:o});const{dataTransfer:s}=a,l=Yu(s);if(this.monitor.isDragging()){if(s&&typeof s.setDragImage=="function"){const h=this.monitor.getSourceId(),d=this.sourceNodes.get(h),p=this.sourcePreviewNodes.get(h)||d;if(p){const{anchorX:w,anchorY:m,offsetX:_,offsetY:b}=this.getCurrentSourcePreviewNodeOptions(),S=w$(d,p,o,{anchorX:w,anchorY:m},{offsetX:_,offsetY:b});s.setDragImage(p,S.x,S.y)}}try{s==null||s.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(a.target);const{captureDraggingState:u}=this.getCurrentSourcePreviewNodeOptions();u?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(l)this.beginDragNativeItem(l);else{if(s&&!s.types&&(a.target&&!a.target.hasAttribute||!a.target.hasAttribute("draggable")))return;a.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=a=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var i;(i=this.currentNativeSource)===null||i===void 0||i.loadDataTransfer(a.dataTransfer)}if(!this.enterLeaveCounter.enter(a.target)||this.monitor.isDragging())return;const{dataTransfer:s}=a,l=Yu(s);l&&this.beginDragNativeItem(l,s)},this.handleTopDragEnter=a=>{const{dragEnterTargetIds:i}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=a.altKey,i.length>0&&this.actions.hover(i,{clientOffset:jo(a)}),i.some(s=>this.monitor.canDropOnTarget(s))&&(a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=a=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var i;(i=this.currentNativeSource)===null||i===void 0||i.loadDataTransfer(a.dataTransfer)}},this.handleTopDragOver=a=>{const{dragOverTargetIds:i}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect="none");return}this.altKeyPressed=a.altKey,this.lastClientOffset=jo(a),this.scheduleHover(i),(i||[]).some(s=>this.monitor.canDropOnTarget(s))?(a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?a.preventDefault():(a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=a=>{this.isDraggingNativeItem()&&a.preventDefault(),this.enterLeaveCounter.leave(a.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=a=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var i;a.preventDefault(),(i=this.currentNativeSource)===null||i===void 0||i.loadDataTransfer(a.dataTransfer)}else Yu(a.dataTransfer)&&a.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=a=>{const{dropTargetIds:i}=this;this.dropTargetIds=[],this.actions.hover(i,{clientOffset:jo(a)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=a=>{const i=a.target;typeof i.dragDrop=="function"&&(i.tagName==="INPUT"||i.tagName==="SELECT"||i.tagName==="TEXTAREA"||i.isContentEditable||(a.preventDefault(),i.dragDrop()))},this.options=new _$(n,r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new d$(this.isNodeInDocument)}}const E$=function(t,n,r){return new b$(t,n,r)};function G(e,t,...n){if(T$()&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){let r;if(t===void 0)r=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let a=0;r=new Error(t.replace(/%s/g,function(){return n[a++]})),r.name="Invariant Violation"}throw r.framesToPop=1,r}}function T$(){return typeof process<"u"&&process.env.NODE_ENV==="production"}var Dn;(function(e){e.mouse="mouse",e.touch="touch",e.keyboard="keyboard"})(Dn||(Dn={}));class C${get delay(){var t;return(t=this.args.delay)!==null&&t!==void 0?t:0}get scrollAngleRanges(){return this.args.scrollAngleRanges}get getDropTargetElementsAtPoint(){return this.args.getDropTargetElementsAtPoint}get ignoreContextMenu(){var t;return(t=this.args.ignoreContextMenu)!==null&&t!==void 0?t:!1}get enableHoverOutsideTarget(){var t;return(t=this.args.enableHoverOutsideTarget)!==null&&t!==void 0?t:!1}get enableKeyboardEvents(){var t;return(t=this.args.enableKeyboardEvents)!==null&&t!==void 0?t:!1}get enableMouseEvents(){var t;return(t=this.args.enableMouseEvents)!==null&&t!==void 0?t:!1}get enableTouchEvents(){var t;return(t=this.args.enableTouchEvents)!==null&&t!==void 0?t:!0}get touchSlop(){return this.args.touchSlop||0}get delayTouchStart(){var t,n,r,a;return(a=(r=(t=this.args)===null||t===void 0?void 0:t.delayTouchStart)!==null&&r!==void 0?r:(n=this.args)===null||n===void 0?void 0:n.delay)!==null&&a!==void 0?a:0}get delayMouseStart(){var t,n,r,a;return(a=(r=(t=this.args)===null||t===void 0?void 0:t.delayMouseStart)!==null&&r!==void 0?r:(n=this.args)===null||n===void 0?void 0:n.delay)!==null&&a!==void 0?a:0}get window(){if(this.context&&this.context.window)return this.context.window;if(typeof window<"u")return window}get document(){var t;if(!((t=this.context)===null||t===void 0)&&t.document)return this.context.document;if(this.window)return this.window.document}get rootElement(){var t;return((t=this.args)===null||t===void 0?void 0:t.rootElement)||this.document}constructor(t,n){this.args=t,this.context=n}}function O$(e,t,n,r){return Math.sqrt(Math.pow(Math.abs(n-e),2)+Math.pow(Math.abs(r-t),2))}function x$(e,t,n,r,a){if(!a)return!1;const i=Math.atan2(r-t,n-e)*180/Math.PI+180;for(let o=0;o=s.start)&&(s.end==null||i<=s.end))return!0}return!1}const P$={Left:1,Right:2,Center:4},N$={Left:0,Center:1,Right:2};function Xu(e){return e.button===void 0||e.button===N$.Left}function D$(e){return e.buttons===void 0||(e.buttons&P$.Left)===0}function Aw(e){return!!e.targetTouches}const k$=1;function A$(e){const t=e.nodeType===k$?e:e.parentElement;if(!t)return;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function R$(e,t){if(e.targetTouches.length===1)return Ys(e.targetTouches[0]);if(t&&e.touches.length===1&&e.touches[0].target===t.target)return Ys(e.touches[0])}function Ys(e,t){return Aw(e)?R$(e,t):{x:e.clientX,y:e.clientY}}const Nm=(()=>{let e=!1;try{addEventListener("test",()=>{},Object.defineProperty({},"passive",{get(){return e=!0,!0}}))}catch{}return e})(),Fa={[Dn.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[Dn.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[Dn.keyboard]:{keydown:"keydown"}};class li{profile(){var t;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:((t=this.dragOverTargetIds)===null||t===void 0?void 0:t.length)||0}}get document(){return this.options.document}setup(){const t=this.options.rootElement;t&&(G(!li.isSetUp,"Cannot have two Touch backends at the same time."),li.isSetUp=!0,this.addEventListener(t,"start",this.getTopMoveStartHandler()),this.addEventListener(t,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(t,"move",this.handleTopMove),this.addEventListener(t,"move",this.handleTopMoveCapture,!0),this.addEventListener(t,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(t,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(t,"keydown",this.handleCancelOnEscape,!0))}teardown(){const t=this.options.rootElement;t&&(li.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(t,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(t,"start",this.handleTopMoveStart),this.removeEventListener(t,"move",this.handleTopMoveCapture,!0),this.removeEventListener(t,"move",this.handleTopMove),this.removeEventListener(t,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(t,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(t,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}addEventListener(t,n,r,a=!1){const i=Nm?{capture:a,passive:!1}:a;this.listenerTypes.forEach(function(o){const s=Fa[o][n];s&&t.addEventListener(s,r,i)})}removeEventListener(t,n,r,a=!1){const i=Nm?{capture:a,passive:!1}:a;this.listenerTypes.forEach(function(o){const s=Fa[o][n];s&&t.removeEventListener(s,r,i)})}connectDragSource(t,n){const r=this.handleMoveStart.bind(this,t);return this.sourceNodes.set(t,n),this.addEventListener(n,"start",r),()=>{this.sourceNodes.delete(t),this.removeEventListener(n,"start",r)}}connectDragPreview(t,n,r){return this.sourcePreviewNodeOptions.set(t,r),this.sourcePreviewNodes.set(t,n),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDropTarget(t,n){const r=this.options.rootElement;if(!this.document||!r)return()=>{};const a=i=>{if(!this.document||!r||!this.monitor.isDragging())return;let o;switch(i.type){case Fa.mouse.move:o={x:i.clientX,y:i.clientY};break;case Fa.touch.move:var s,l;o={x:((s=i.touches[0])===null||s===void 0?void 0:s.clientX)||0,y:((l=i.touches[0])===null||l===void 0?void 0:l.clientY)||0};break}const u=o!=null?this.document.elementFromPoint(o.x,o.y):void 0,h=u&&n.contains(u);if(u===n||h)return this.handleMove(i,t)};return this.addEventListener(this.document.body,"move",a),this.targetNodes.set(t,n),()=>{this.document&&(this.targetNodes.delete(t),this.removeEventListener(this.document.body,"move",a))}}getTopMoveStartHandler(){return!this.options.delayTouchStart&&!this.options.delayMouseStart?this.handleTopMoveStart:this.handleTopMoveStartDelay}installSourceNodeRemovalObserver(t){this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=t,this.draggedSourceNodeRemovalObserver=new MutationObserver(()=>{t&&!t.parentElement&&(this.resurrectSourceNode(),this.uninstallSourceNodeRemovalObserver())}),!(!t||!t.parentElement)&&this.draggedSourceNodeRemovalObserver.observe(t.parentElement,{childList:!0})}resurrectSourceNode(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}uninstallSourceNodeRemovalObserver(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}constructor(t,n,r){this.getSourceClientOffset=a=>{const i=this.sourceNodes.get(a);return i&&A$(i)},this.handleTopMoveStartCapture=a=>{Xu(a)&&(this.moveStartSourceIds=[])},this.handleMoveStart=a=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(a)},this.handleTopMoveStart=a=>{if(!Xu(a))return;const i=Ys(a);i&&(Aw(a)&&(this.lastTargetTouchFallback=a.targetTouches[0]),this._mouseClientOffset=i),this.waitingForDelay=!1},this.handleTopMoveStartDelay=a=>{if(!Xu(a))return;const i=a.type===Fa.touch.start?this.options.delayTouchStart:this.options.delayMouseStart;this.timeout=setTimeout(this.handleTopMoveStart.bind(this,a),i),this.waitingForDelay=!0},this.handleTopMoveCapture=()=>{this.dragOverTargetIds=[]},this.handleMove=(a,i)=>{this.dragOverTargetIds&&this.dragOverTargetIds.unshift(i)},this.handleTopMove=a=>{if(this.timeout&&clearTimeout(this.timeout),!this.document||this.waitingForDelay)return;const{moveStartSourceIds:i,dragOverTargetIds:o}=this,s=this.options.enableHoverOutsideTarget,l=Ys(a,this.lastTargetTouchFallback);if(!l)return;if(this._isScrolling||!this.monitor.isDragging()&&x$(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,l.x,l.y,this.options.scrollAngleRanges)){this._isScrolling=!0;return}if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty("x")&&i&&O$(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,l.x,l.y)>(this.options.touchSlop?this.options.touchSlop:0)&&(this.moveStartSourceIds=void 0,this.actions.beginDrag(i,{clientOffset:this._mouseClientOffset,getSourceClientOffset:this.getSourceClientOffset,publishSource:!1})),!this.monitor.isDragging())return;const u=this.sourceNodes.get(this.monitor.getSourceId());this.installSourceNodeRemovalObserver(u),this.actions.publishDragSource(),a.cancelable&&a.preventDefault();const h=(o||[]).map(m=>this.targetNodes.get(m)).filter(m=>!!m),d=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(l.x,l.y,h):this.document.elementsFromPoint(l.x,l.y),p=[];for(const m in d){if(!d.hasOwnProperty(m))continue;let _=d[m];for(_!=null&&p.push(_);_;)_=_.parentElement,_&&p.indexOf(_)===-1&&p.push(_)}const w=p.filter(m=>h.indexOf(m)>-1).map(m=>this._getDropTargetId(m)).filter(m=>!!m).filter((m,_,b)=>b.indexOf(m)===_);if(s)for(const m in this.targetNodes){const _=this.targetNodes.get(m);if(u&&_&&_.contains(u)&&w.indexOf(m)===-1){w.unshift(m);break}}w.reverse(),this.actions.hover(w,{clientOffset:l})},this._getDropTargetId=a=>{const i=this.targetNodes.keys();let o=i.next();for(;o.done===!1;){const s=o.value;if(a===this.targetNodes.get(s))return s;o=i.next()}},this.handleTopMoveEndCapture=a=>{if(this._isScrolling=!1,this.lastTargetTouchFallback=void 0,!!D$(a)){if(!this.monitor.isDragging()||this.monitor.didDrop()){this.moveStartSourceIds=void 0;return}a.cancelable&&a.preventDefault(),this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.drop(),this.actions.endDrag()}},this.handleCancelOnEscape=a=>{a.key==="Escape"&&this.monitor.isDragging()&&(this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.endDrag())},this.options=new C$(r,n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(Dn.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(Dn.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(Dn.keyboard)}}const $$=function(t,n={},r={}){return new li(t,n,r)};var Rw=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},W=(e,t,n)=>(Rw(e,t,"read from private field"),n?n.call(e):t.get(e)),ct=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Qn=(e,t,n,r)=>(Rw(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Bn,L$=class{constructor(){ct(this,Bn,void 0),this.register=e=>{W(this,Bn).push(e)},this.unregister=e=>{let t;for(;(t=W(this,Bn).indexOf(e))!==-1;)W(this,Bn).splice(t,1)},this.backendChanged=e=>{for(let t of W(this,Bn))t.backendChanged(e)},Qn(this,Bn,[])}};Bn=new WeakMap;var Je,Ya,Qe,zt,cn,$f,Lf,Mf,cs,fs,Xa,$w=class ds{constructor(t,n,r){if(ct(this,Je,void 0),ct(this,Ya,void 0),ct(this,Qe,void 0),ct(this,zt,void 0),ct(this,cn,void 0),ct(this,$f,(a,i,o)=>{if(!o.backend)throw new Error(`You must specify a 'backend' property in your Backend entry: ${JSON.stringify(o)}`);let s=o.backend(a,i,o.options),l=o.id,u=!o.id&&s&&s.constructor;if(u&&(l=s.constructor.name),l)u&&console.warn(`Deprecation notice: You are using a pipeline which doesn't include backends' 'id'. + This might be unsupported in the future, please specify 'id' explicitely for every backend.`);else throw new Error(`You must specify an 'id' property in your Backend entry: ${JSON.stringify(o)} + see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-5xx`);if(W(this,Qe)[l])throw new Error(`You must specify a unique 'id' property in your Backend entry: + ${JSON.stringify(o)} (conflicts with: ${JSON.stringify(W(this,Qe)[l])})`);return{id:l,instance:s,preview:o.preview??!1,transition:o.transition,skipDispatchOnTransition:o.skipDispatchOnTransition??!1}}),this.setup=()=>{if(!(typeof window>"u")){if(ds.isSetUp)throw new Error("Cannot have two MultiBackends at the same time.");ds.isSetUp=!0,W(this,Lf).call(this,window),W(this,Qe)[W(this,Je)].instance.setup()}},this.teardown=()=>{typeof window>"u"||(ds.isSetUp=!1,W(this,Mf).call(this,window),W(this,Qe)[W(this,Je)].instance.teardown())},this.connectDragSource=(a,i,o)=>W(this,Xa).call(this,"connectDragSource",a,i,o),this.connectDragPreview=(a,i,o)=>W(this,Xa).call(this,"connectDragPreview",a,i,o),this.connectDropTarget=(a,i,o)=>W(this,Xa).call(this,"connectDropTarget",a,i,o),this.profile=()=>W(this,Qe)[W(this,Je)].instance.profile(),this.previewEnabled=()=>W(this,Qe)[W(this,Je)].preview,this.previewsList=()=>W(this,Ya),this.backendsList=()=>W(this,zt),ct(this,Lf,a=>{W(this,zt).forEach(i=>{i.transition&&a.addEventListener(i.transition.event,W(this,cs))})}),ct(this,Mf,a=>{W(this,zt).forEach(i=>{i.transition&&a.removeEventListener(i.transition.event,W(this,cs))})}),ct(this,cs,a=>{var o;let i=W(this,Je);if(W(this,zt).some(s=>s.id!==W(this,Je)&&s.transition&&s.transition.check(a)?(Qn(this,Je,s.id),!0):!1),W(this,Je)!==i){W(this,Qe)[i].instance.teardown(),Object.keys(W(this,cn)).forEach(h=>{let d=W(this,cn)[h];d.unsubscribe(),d.unsubscribe=W(this,fs).call(this,d.func,...d.args)}),W(this,Ya).backendChanged(this);let s=W(this,Qe)[W(this,Je)];if(s.instance.setup(),s.skipDispatchOnTransition)return;let l=a.constructor,u=new l(a.type,a);(o=a.target)==null||o.dispatchEvent(u)}}),ct(this,fs,(a,i,o,s)=>W(this,Qe)[W(this,Je)].instance[a](i,o,s)),ct(this,Xa,(a,i,o,s)=>{let l=`${a}_${i}`,u=W(this,fs).call(this,a,i,o,s);return W(this,cn)[l]={func:a,args:[i,o,s],unsubscribe:u},()=>{W(this,cn)[l].unsubscribe(),delete W(this,cn)[l]}}),!r||!r.backends||r.backends.length<1)throw new Error(`You must specify at least one Backend, if you are coming from 2.x.x (or don't understand this error) + see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-2xx`);Qn(this,Ya,new L$),Qn(this,Qe,{}),Qn(this,zt,[]),r.backends.forEach(a=>{let i=W(this,$f).call(this,t,n,a);W(this,Qe)[i.id]=i,W(this,zt).push(i)}),Qn(this,Je,W(this,zt)[0].id),Qn(this,cn,{})}};Je=new WeakMap,Ya=new WeakMap,Qe=new WeakMap,zt=new WeakMap,cn=new WeakMap,$f=new WeakMap,Lf=new WeakMap,Mf=new WeakMap,cs=new WeakMap,fs=new WeakMap,Xa=new WeakMap,$w.isSetUp=!1;var M$=$w,Lw=(e,t,n)=>new M$(e,t,n),qi=(e,t)=>({event:e,check:t}),Mw=qi("touchstart",e=>{let t=e;return t.touches!==null&&t.touches!==void 0}),j$=qi("dragstart",e=>e.type.indexOf("drag")!==-1||e.type.indexOf("drop")!==-1),F$=qi("mousedown",e=>e.type.indexOf("touch")===-1&&e.type.indexOf("mouse")!==-1),jw=qi("pointerdown",e=>e.pointerType=="mouse"),I$={backends:[{id:"html5",backend:E$,transition:jw},{id:"touch",backend:$$,options:{enableMouseEvents:!0},preview:!0,transition:Mw}]};const U$=Object.freeze(Object.defineProperty({__proto__:null,HTML5toTouch:I$},Symbol.toStringTag,{value:"Module"})),z$=Bf(U$),Ki=P.createContext({dragDropManager:void 0});function ut(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Dm=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Ju=function(){return Math.random().toString(36).substring(7).split("").join(".")},km={INIT:"@@redux/INIT"+Ju(),REPLACE:"@@redux/REPLACE"+Ju(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ju()}};function H$(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Fw(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(ut(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(ut(1));return n(Fw)(e,t)}if(typeof e!="function")throw new Error(ut(2));var a=e,i=t,o=[],s=o,l=!1;function u(){s===o&&(s=o.slice())}function h(){if(l)throw new Error(ut(3));return i}function d(_){if(typeof _!="function")throw new Error(ut(4));if(l)throw new Error(ut(5));var b=!0;return u(),s.push(_),function(){if(b){if(l)throw new Error(ut(6));b=!1,u();var y=s.indexOf(_);s.splice(y,1),o=null}}}function p(_){if(!H$(_))throw new Error(ut(7));if(typeof _.type>"u")throw new Error(ut(8));if(l)throw new Error(ut(9));try{l=!0,i=a(i,_)}finally{l=!1}for(var b=o=s,v=0;vr&&r[a]?r[a]:n||null,e)}function G$(e,t){return e.filter(n=>n!==t)}function Iw(e){return typeof e=="object"}function V$(e,t){const n=new Map,r=i=>{n.set(i,n.has(i)?n.get(i)+1:1)};e.forEach(r),t.forEach(r);const a=[];return n.forEach((i,o)=>{i===1&&a.push(o)}),a}function q$(e,t){return e.filter(n=>t.indexOf(n)>-1)}const Rh="dnd-core/INIT_COORDS",Fl="dnd-core/BEGIN_DRAG",$h="dnd-core/PUBLISH_DRAG_SOURCE",Il="dnd-core/HOVER",Ul="dnd-core/DROP",zl="dnd-core/END_DRAG";function Am(e,t){return{type:Rh,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const K$={type:Rh,payload:{clientOffset:null,sourceClientOffset:null}};function Y$(e){return function(n=[],r={publishSource:!0}){const{publishSource:a=!0,clientOffset:i,getSourceClientOffset:o}=r,s=e.getMonitor(),l=e.getRegistry();e.dispatch(Am(i)),X$(n,s,l);const u=B$(n,s);if(u==null){e.dispatch(K$);return}let h=null;if(i){if(!o)throw new Error("getSourceClientOffset must be defined");J$(o),h=o(u)}e.dispatch(Am(i,h));const p=l.getSource(u).beginDrag(s,u);if(p==null)return;Q$(p),l.pinSource(u);const w=l.getSourceType(u);return{type:Fl,payload:{itemType:w,item:p,sourceId:u,clientOffset:i||null,sourceClientOffset:h||null,isSourcePublic:!!a}}}}function X$(e,t,n){G(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(r){G(n.getSource(r),"Expected sourceIds to be registered.")})}function J$(e){G(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function Q$(e){G(Iw(e),"Item must be an object.")}function B$(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}function Z$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eL(e){for(var t=1;t{const l=rL(o,s,a,r),u={type:Ul,payload:{dropResult:eL({},n,l)}};e.dispatch(u)})}}function nL(e){G(e.isDragging(),"Cannot call drop while not dragging."),G(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function rL(e,t,n,r){const a=n.getTarget(e);let i=a?a.drop(r,e):void 0;return aL(i),typeof i>"u"&&(i=t===0?{}:r.getDropResult()),i}function aL(e){G(typeof e>"u"||Iw(e),"Drop result must either be an object or undefined.")}function iL(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function oL(e){return function(){const n=e.getMonitor(),r=e.getRegistry();sL(n);const a=n.getSourceId();return a!=null&&(r.getSource(a,!0).endDrag(n,a),r.unpinSource()),{type:zl}}}function sL(e){G(e.isDragging(),"Cannot call endDrag while not dragging.")}function jf(e,t){return t===null?e===null:Array.isArray(e)?e.some(n=>n===t):e===t}function lL(e){return function(n,{clientOffset:r}={}){uL(n);const a=n.slice(0),i=e.getMonitor(),o=e.getRegistry(),s=i.getItemType();return fL(a,o,s),cL(a,i,o),dL(a,i,o),{type:Il,payload:{targetIds:a,clientOffset:r||null}}}}function uL(e){G(Array.isArray(e),"Expected targetIds to be an array.")}function cL(e,t,n){G(t.isDragging(),"Cannot call hover while not dragging."),G(!t.didDrop(),"Cannot call hover after drop.");for(let r=0;r=0;r--){const a=e[r],i=t.getTargetType(a);jf(i,n)||e.splice(r,1)}}function dL(e,t,n){e.forEach(function(r){n.getTarget(r).hover(t,r)})}function hL(e){return function(){if(e.getMonitor().isDragging())return{type:$h}}}function pL(e){return{beginDrag:Y$(e),publishDragSource:hL(e),hover:lL(e),drop:tL(e),endDrag:oL(e)}}class gL{receiveBackend(t){this.backend=t}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const t=this,{dispatch:n}=this.store;function r(i){return(...o)=>{const s=i.apply(t,o);typeof s<"u"&&n(s)}}const a=pL(this);return Object.keys(a).reduce((i,o)=>{const s=a[o];return i[o]=r(s),i},{})}dispatch(t){this.store.dispatch(t)}constructor(t,n){this.isSetUp=!1,this.handleRefCountChange=()=>{const r=this.store.getState().refCount>0;this.backend&&(r&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!r&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=t,this.monitor=n,t.subscribe(this.handleRefCountChange)}}function mL(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Uw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function vL(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return!t||!n||!r?null:Uw(mL(t,r),n)}function yL(e){const{clientOffset:t,initialClientOffset:n}=e;return!t||!n?null:Uw(t,n)}const ui=[],Lh=[];ui.__IS_NONE__=!0;Lh.__IS_ALL__=!0;function wL(e,t){return e===ui?!1:e===Lh||typeof t>"u"?!0:q$(t,e).length>0}class _L{subscribeToStateChange(t,n={}){const{handlerIds:r}=n;G(typeof t=="function","listener must be a function."),G(typeof r>"u"||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let a=this.store.getState().stateId;const i=()=>{const o=this.store.getState(),s=o.stateId;try{s===a||s===a+1&&!wL(o.dirtyHandlerIds,r)||t()}finally{a=s}};return this.store.subscribe(i)}subscribeToOffsetChange(t){G(typeof t=="function","listener must be a function.");let n=this.store.getState().dragOffset;const r=()=>{const a=this.store.getState().dragOffset;a!==n&&(n=a,t())};return this.store.subscribe(r)}canDragSource(t){if(!t)return!1;const n=this.registry.getSource(t);return G(n,`Expected to find a valid source. sourceId=${t}`),this.isDragging()?!1:n.canDrag(this,t)}canDropOnTarget(t){if(!t)return!1;const n=this.registry.getTarget(t);if(G(n,`Expected to find a valid target. targetId=${t}`),!this.isDragging()||this.didDrop())return!1;const r=this.registry.getTargetType(t),a=this.getItemType();return jf(r,a)&&n.canDrop(this,t)}isDragging(){return!!this.getItemType()}isDraggingSource(t){if(!t)return!1;const n=this.registry.getSource(t,!0);if(G(n,`Expected to find a valid source. sourceId=${t}`),!this.isDragging()||!this.isSourcePublic())return!1;const r=this.registry.getSourceType(t),a=this.getItemType();return r!==a?!1:n.isDragging(this,t)}isOverTarget(t,n={shallow:!1}){if(!t)return!1;const{shallow:r}=n;if(!this.isDragging())return!1;const a=this.registry.getTargetType(t),i=this.getItemType();if(i&&!jf(a,i))return!1;const o=this.getTargetIds();if(!o.length)return!1;const s=o.indexOf(t);return r?s===o.length-1:s>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return vL(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return yL(this.store.getState().dragOffset)}constructor(t,n){this.store=t,this.registry=n}}const Rm=typeof global<"u"?global:self,zw=Rm.MutationObserver||Rm.WebKitMutationObserver;function Hw(e){return function(){const n=setTimeout(a,0),r=setInterval(a,50);function a(){clearTimeout(n),clearInterval(r),e()}}}function SL(e){let t=1;const n=new zw(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}const bL=typeof zw=="function"?SL:Hw;class EL{enqueueTask(t){const{queue:n,requestFlush:r}=this;n.length||(r(),this.flushing=!0),n[n.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.indexthis.capacity){for(let r=0,a=t.length-this.index;r{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=bL(this.flush),this.requestErrorThrow=Hw(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class TL{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,n){this.onError=t,this.release=n,this.task=null}}class CL{create(t){const n=this.freeTasks,r=n.length?n.pop():new TL(this.onError,a=>n[n.length]=a);return r.task=t,r}constructor(t){this.onError=t,this.freeTasks=[]}}const Ww=new EL,OL=new CL(Ww.registerPendingError);function xL(e){Ww.enqueueTask(OL.create(e))}const Mh="dnd-core/ADD_SOURCE",jh="dnd-core/ADD_TARGET",Fh="dnd-core/REMOVE_SOURCE",Hl="dnd-core/REMOVE_TARGET";function PL(e){return{type:Mh,payload:{sourceId:e}}}function NL(e){return{type:jh,payload:{targetId:e}}}function DL(e){return{type:Fh,payload:{sourceId:e}}}function kL(e){return{type:Hl,payload:{targetId:e}}}function AL(e){G(typeof e.canDrag=="function","Expected canDrag to be a function."),G(typeof e.beginDrag=="function","Expected beginDrag to be a function."),G(typeof e.endDrag=="function","Expected endDrag to be a function.")}function RL(e){G(typeof e.canDrop=="function","Expected canDrop to be a function."),G(typeof e.hover=="function","Expected hover to be a function."),G(typeof e.drop=="function","Expected beginDrag to be a function.")}function Ff(e,t){if(t&&Array.isArray(e)){e.forEach(n=>Ff(n,!1));return}G(typeof e=="string"||typeof e=="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var ht;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(ht||(ht={}));let $L=0;function LL(){return $L++}function ML(e){const t=LL().toString();switch(e){case ht.SOURCE:return`S${t}`;case ht.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function $m(e){switch(e[0]){case"S":return ht.SOURCE;case"T":return ht.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function Lm(e,t){const n=e.entries();let r=!1;do{const{done:a,value:[,i]}=n.next();if(i===t)return!0;r=!!a}while(!r);return!1}class jL{addSource(t,n){Ff(t),AL(n);const r=this.addHandler(ht.SOURCE,t,n);return this.store.dispatch(PL(r)),r}addTarget(t,n){Ff(t,!0),RL(n);const r=this.addHandler(ht.TARGET,t,n);return this.store.dispatch(NL(r)),r}containsHandler(t){return Lm(this.dragSources,t)||Lm(this.dropTargets,t)}getSource(t,n=!1){return G(this.isSourceId(t),"Expected a valid source ID."),n&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return G(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return G(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return G(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return $m(t)===ht.SOURCE}isTargetId(t){return $m(t)===ht.TARGET}removeSource(t){G(this.getSource(t),"Expected an existing source."),this.store.dispatch(DL(t)),xL(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){G(this.getTarget(t),"Expected an existing target."),this.store.dispatch(kL(t)),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){const n=this.getSource(t);G(n,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=n}unpinSource(){G(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,n,r){const a=ML(t);return this.types.set(a,n),t===ht.SOURCE?this.dragSources.set(a,r):t===ht.TARGET&&this.dropTargets.set(a,r),a}constructor(t){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}}const FL=(e,t)=>e===t;function IL(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function UL(e,t,n=FL){if(e.length!==t.length)return!1;for(let r=0;r0||!UL(n,r)))return ui;const o=r[r.length-1],s=n[n.length-1];return o!==s&&(o&&a.push(o),s&&a.push(s)),a}function HL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WL(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nM(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}let jm=0;const hs=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var Gw=P.memo(function(t){var{children:n}=t,r=tM(t,["children"]);const[a,i]=rM(r);return P.useEffect(()=>{if(i){const o=Vw();return++jm,()=>{--jm===0&&(o[hs]=null)}}},[]),T.jsx(Ki.Provider,{value:a,children:n})});function rM(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=aM(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}function aM(e,t=Vw(),n,r){const a=t;return a[hs]||(a[hs]={dragDropManager:ZL(e,t,n,r)}),a[hs]}function Vw(){return typeof global<"u"?global:window}const iM=P.memo(function({connect:t,src:n}){return P.useEffect(()=>{if(typeof Image>"u")return;let r=!1;const a=new Image;return a.src=n,a.onload=()=>{t(a),r=!0},()=>{r&&t(null)}}),null});var oM=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,a,i;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(a=r;a--!==0;)if(!e(t[a],n[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(i=Object.keys(t),r=i.length,r!==Object.keys(n).length)return!1;for(a=r;a--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[a]))return!1;for(a=r;a--!==0;){var o=i[a];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n};const sM=nl(oM),mr=typeof window<"u"?P.useLayoutEffect:P.useEffect;function qw(e,t,n){const[r,a]=P.useState(()=>t(e)),i=P.useCallback(()=>{const o=t(e);sM(r,o)||(a(o),n&&n())},[r,e,n]);return mr(i),[r,i]}function lM(e,t,n){const[r,a]=qw(e,t,n);return mr(function(){const o=e.getHandlerId();if(o!=null)return e.subscribeToStateChange(a,{handlerIds:[o]})},[e,a]),r}function Kw(e,t,n){return lM(t,e||(()=>({})),()=>n.reconnect())}function Yw(e,t){const n=[...t||[]];return t==null&&typeof e!="function"&&n.push(e),P.useMemo(()=>typeof e=="function"?e():e,n)}function uM(e){return P.useMemo(()=>e.hooks.dragSource(),[e])}function cM(e){return P.useMemo(()=>e.hooks.dragPreview(),[e])}let Qu=!1,Bu=!1;class fM{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){G(!Qu,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Qu=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Qu=!1}}isDragging(){if(!this.sourceId)return!1;G(!Bu,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Bu=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Bu=!1}}subscribeToStateChange(t,n){return this.internalMonitor.subscribeToStateChange(t,n)}isDraggingSource(t){return this.internalMonitor.isDraggingSource(t)}isOverTarget(t,n){return this.internalMonitor.isOverTarget(t,n)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(t){return this.internalMonitor.subscribeToOffsetChange(t)}canDragSource(t){return this.internalMonitor.canDragSource(t)}canDropOnTarget(t){return this.internalMonitor.canDropOnTarget(t)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.sourceId=null,this.internalMonitor=t.getMonitor()}}let Zu=!1;class dM{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,n){return this.internalMonitor.subscribeToStateChange(t,n)}canDrop(){if(!this.targetId)return!1;G(!Zu,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return Zu=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Zu=!1}}isOver(t){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,t):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.targetId=null,this.internalMonitor=t.getMonitor()}}function hM(e,t,n){const r=n.getRegistry(),a=r.addTarget(e,t);return[a,()=>r.removeTarget(a)]}function pM(e,t,n){const r=n.getRegistry(),a=r.addSource(e,t);return[a,()=>r.removeSource(a)]}function If(e,t,n,r){let a=n?n.call(r,e,t):void 0;if(a!==void 0)return!!a;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const i=Object.keys(e),o=Object.keys(t);if(i.length!==o.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let l=0;l, or turn it into a drag source or a drop target itself.`)}function mM(e){return(t=null,n=null)=>{if(!P.isValidElement(t)){const i=t;return e(i,n),i}const r=t;return gM(r),vM(r,n?i=>e(i,n):e)}}function Xw(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const a=mM(r);t[n]=()=>a}}),t}function Fm(e,t){typeof e=="function"?e(t):e.current=t}function vM(e,t){const n=e.ref;return G(typeof n!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a or
. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?P.cloneElement(e,{ref:r=>{Fm(n,r),Fm(t,r)}}):P.cloneElement(e,{ref:t})}class yM{receiveHandlerId(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(t){this.dragSourceOptionsInternal=t}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(t){this.dragPreviewOptionsInternal=t}reconnect(){const t=this.reconnectDragSource();this.reconnectDragPreview(t)}reconnectDragSource(){const t=this.dragSource,n=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return n&&this.disconnectDragSource(),this.handlerId?t?(n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)),n):(this.lastConnectedDragSource=t,n):n}reconnectDragPreview(t=!1){const n=this.dragPreview,r=t||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(r&&this.disconnectDragPreview(),!!this.handlerId){if(!n){this.lastConnectedDragPreview=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=n,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,n,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!If(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!If(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(t){this.hooks=Xw({dragSource:(n,r)=>{this.clearDragSource(),this.dragSourceOptions=r||null,Uf(n)?this.dragSourceRef=n:this.dragSourceNode=n,this.reconnectDragSource()},dragPreview:(n,r)=>{this.clearDragPreview(),this.dragPreviewOptions=r||null,Uf(n)?this.dragPreviewRef=n:this.dragPreviewNode=n,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}}class wM{get connectTarget(){return this.dropTarget}reconnect(){const t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();const n=this.dropTarget;if(this.handlerId){if(!n){this.lastConnectedDropTarget=n;return}t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=n,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,n,this.dropTargetOptions))}}receiveHandlerId(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(t){this.dropTargetOptionsInternal=t}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!If(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(t){this.hooks=Xw({dropTarget:(n,r)=>{this.clearDropTarget(),this.dropTargetOptions=r,Uf(n)?this.dropTargetRef=n:this.dropTargetNode=n,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}}function Hn(){const{dragDropManager:e}=P.useContext(Ki);return G(e!=null,"Expected drag drop context"),e}function _M(e,t){const n=Hn(),r=P.useMemo(()=>new yM(n.getBackend()),[n]);return mr(()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource()),[r,e]),mr(()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,t]),r}function SM(){const e=Hn();return P.useMemo(()=>new fM(e),[e])}class bM{beginDrag(){const t=this.spec,n=this.monitor;let r=null;return typeof t.item=="object"?r=t.item:typeof t.item=="function"?r=t.item(n):r={},r??null}canDrag(){const t=this.spec,n=this.monitor;return typeof t.canDrag=="boolean"?t.canDrag:typeof t.canDrag=="function"?t.canDrag(n):!0}isDragging(t,n){const r=this.spec,a=this.monitor,{isDragging:i}=r;return i?i(a):n===t.getSourceId()}endDrag(){const t=this.spec,n=this.monitor,r=this.connector,{end:a}=t;a&&a(n.getItem(),n),r.reconnect()}constructor(t,n,r){this.spec=t,this.monitor=n,this.connector=r}}function EM(e,t,n){const r=P.useMemo(()=>new bM(e,t,n),[t,n]);return P.useEffect(()=>{r.spec=e},[e]),r}function TM(e){return P.useMemo(()=>{const t=e.type;return G(t!=null,"spec.type must be defined"),t},[e])}function CM(e,t,n){const r=Hn(),a=EM(e,t,n),i=TM(e);mr(function(){if(i!=null){const[s,l]=pM(i,a,r);return t.receiveHandlerId(s),n.receiveHandlerId(s),l}},[r,t,n,a,i])}function Jw(e,t){const n=Yw(e,t);G(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const r=SM(),a=_M(n.options,n.previewOptions);return CM(n,r,a),[Kw(n.collect,r,a),uM(a),cM(a)]}function Qw(e){const n=Hn().getMonitor(),[r,a]=qw(n,e);return P.useEffect(()=>n.subscribeToOffsetChange(a)),P.useEffect(()=>n.subscribeToStateChange(a)),r}function OM(e){return P.useMemo(()=>e.hooks.dropTarget(),[e])}function xM(e){const t=Hn(),n=P.useMemo(()=>new wM(t.getBackend()),[t]);return mr(()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget()),[e]),n}function PM(){const e=Hn();return P.useMemo(()=>new dM(e),[e])}function NM(e){const{accept:t}=e;return P.useMemo(()=>(G(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class DM{canDrop(){const t=this.spec,n=this.monitor;return t.canDrop?t.canDrop(n.getItem(),n):!0}hover(){const t=this.spec,n=this.monitor;t.hover&&t.hover(n.getItem(),n)}drop(){const t=this.spec,n=this.monitor;if(t.drop)return t.drop(n.getItem(),n)}constructor(t,n){this.spec=t,this.monitor=n}}function kM(e,t){const n=P.useMemo(()=>new DM(e,t),[t]);return P.useEffect(()=>{n.spec=e},[e]),n}function AM(e,t,n){const r=Hn(),a=kM(e,t),i=NM(e);mr(function(){const[s,l]=hM(i,a,r);return t.receiveHandlerId(s),n.receiveHandlerId(s),l},[r,t,a,n,i.map(o=>o.toString()).join("|")])}function Bw(e,t){const n=Yw(e,t),r=PM(),a=xM(n.options);return AM(n,r,a),[Kw(n.collect,r,a),OM(a)]}const RM=Object.freeze(Object.defineProperty({__proto__:null,DndContext:Ki,DndProvider:Gw,DragPreviewImage:iM,useDrag:Jw,useDragDropManager:Hn,useDragLayer:Qw,useDrop:Bw},Symbol.toStringTag,{value:"Module"})),Wl=Bf(RM);var zf=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),$M=e=>{let t=e.getInitialClientOffset(),n=e.getInitialSourceClientOffset();return t===null||n===null?{x:0,y:0}:zf(t,n)},LM=(e,t)=>{let n=e.getClientOffset();if(n===null)return null;if(!t.current||!t.current.getBoundingClientRect)return zf(n,$M(e));let r=t.current.getBoundingClientRect(),a={x:r.width/2,y:r.height/2};return zf(n,a)},MM=e=>{let t=`translate(${e.x.toFixed(1)}px, ${e.y.toFixed(1)}px)`;return{pointerEvents:"none",position:"fixed",top:0,left:0,transform:t,WebkitTransform:t}},Zw=()=>{let e=P.useRef(null),t=Qw(n=>({currentOffset:LM(n,e),isDragging:n.isDragging(),itemType:n.getItemType(),item:n.getItem(),monitor:n}));return!t.isDragging||t.currentOffset===null?{display:!1}:{display:!0,itemType:t.itemType,item:t.item,style:MM(t.currentOffset),monitor:t.monitor,ref:e}},Ih=P.createContext(void 0),jM=e=>{let t=Zw();if(!t.display)return null;let{display:n,...r}=t,a;return"children"in e?typeof e.children=="function"?a=e.children(r):a=e.children:a=e.generator(r),Sn.createElement(Ih.Provider,{value:r},a)},e_=P.createContext(null),FM=({portal:e,...t})=>{let[n,r]=P.useState(null);return Sn.createElement(e_.Provider,{value:e??n},Sn.createElement(Gw,{backend:Lw,...t}),e?null:Sn.createElement("div",{ref:r}))},t_=()=>{let[e,t]=P.useState(!1),n=P.useContext(Ki);return P.useEffect(()=>{var i;let r=(i=n==null?void 0:n.dragDropManager)==null?void 0:i.getBackend(),a={backendChanged:o=>{t(o.previewEnabled())}};return t(r.previewEnabled()),r.previewsList().register(a),()=>{r.previewsList().unregister(a)}},[n,n.dragDropManager]),e},n_=e=>{let t=t_(),n=P.useContext(e_);if(!t)return null;let r=Sn.createElement(jM,{...e});return n!==null?Q0.createPortal(r,n):r};n_.Context=Ih;var IM=(e,t,n,r)=>{let a=n.getBackend();n.receiveBackend(r);let i=t(e);return n.receiveBackend(a),i},r_=(e,t)=>{var s;let n=P.useContext(Ki),r=(s=n==null?void 0:n.dragDropManager)==null?void 0:s.getBackend();if(r===void 0)throw new Error("could not find backend, make sure you are using a ");let a=t(e),i={},o=r.backendsList();for(let l of o)i[l.id]=IM(e,t,n.dragDropManager,l.instance);return[a,i]},UM=e=>r_(e,Jw),zM=e=>r_(e,Bw),HM=()=>{let e=t_(),t=Zw();return e?t:{display:!1}};const WM=Object.freeze(Object.defineProperty({__proto__:null,DndProvider:FM,HTML5DragTransition:j$,MouseTransition:F$,MultiBackend:Lw,PointerTransition:jw,Preview:n_,PreviewContext:Ih,TouchTransition:Mw,createTransition:qi,useMultiDrag:UM,useMultiDrop:zM,usePreview:HM},Symbol.toStringTag,{value:"Module"})),GM=Bf(WM);var a_={},Gl={},Vl={};Object.defineProperty(Vl,"__esModule",{value:!0});Vl.default=qM;let Fo;const VM=new Uint8Array(16);function qM(){if(!Fo&&(Fo=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Fo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Fo(VM)}var Wn={},Er={},ql={};Object.defineProperty(ql,"__esModule",{value:!0});ql.default=void 0;var KM=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;ql.default=KM;Object.defineProperty(Er,"__esModule",{value:!0});Er.default=void 0;var YM=XM(ql);function XM(e){return e&&e.__esModule?e:{default:e}}function JM(e){return typeof e=="string"&&YM.default.test(e)}var QM=JM;Er.default=QM;Object.defineProperty(Wn,"__esModule",{value:!0});Wn.default=void 0;Wn.unsafeStringify=i_;var BM=ZM(Er);function ZM(e){return e&&e.__esModule?e:{default:e}}const Te=[];for(let e=0;e<256;++e)Te.push((e+256).toString(16).slice(1));function i_(e,t=0){return Te[e[t+0]]+Te[e[t+1]]+Te[e[t+2]]+Te[e[t+3]]+"-"+Te[e[t+4]]+Te[e[t+5]]+"-"+Te[e[t+6]]+Te[e[t+7]]+"-"+Te[e[t+8]]+Te[e[t+9]]+"-"+Te[e[t+10]]+Te[e[t+11]]+Te[e[t+12]]+Te[e[t+13]]+Te[e[t+14]]+Te[e[t+15]]}function e5(e,t=0){const n=i_(e,t);if(!(0,BM.default)(n))throw TypeError("Stringified UUID is invalid");return n}var t5=e5;Wn.default=t5;Object.defineProperty(Gl,"__esModule",{value:!0});Gl.default=void 0;var n5=a5(Vl),r5=Wn;function a5(e){return e&&e.__esModule?e:{default:e}}let Im,ec,tc=0,nc=0;function i5(e,t,n){let r=t&&n||0;const a=t||new Array(16);e=e||{};let i=e.node||Im,o=e.clockseq!==void 0?e.clockseq:ec;if(i==null||o==null){const p=e.random||(e.rng||n5.default)();i==null&&(i=Im=[p[0]|1,p[1],p[2],p[3],p[4],p[5]]),o==null&&(o=ec=(p[6]<<8|p[7])&16383)}let s=e.msecs!==void 0?e.msecs:Date.now(),l=e.nsecs!==void 0?e.nsecs:nc+1;const u=s-tc+(l-nc)/1e4;if(u<0&&e.clockseq===void 0&&(o=o+1&16383),(u<0||s>tc)&&e.nsecs===void 0&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");tc=s,nc=l,ec=o,s+=122192928e5;const h=((s&268435455)*1e4+l)%4294967296;a[r++]=h>>>24&255,a[r++]=h>>>16&255,a[r++]=h>>>8&255,a[r++]=h&255;const d=s/4294967296*1e4&268435455;a[r++]=d>>>8&255,a[r++]=d&255,a[r++]=d>>>24&15|16,a[r++]=d>>>16&255,a[r++]=o>>>8|128,a[r++]=o&255;for(let p=0;p<6;++p)a[r+p]=i[p];return t||(0,r5.unsafeStringify)(a)}var o5=i5;Gl.default=o5;var Kl={},jn={},Yi={};Object.defineProperty(Yi,"__esModule",{value:!0});Yi.default=void 0;var s5=l5(Er);function l5(e){return e&&e.__esModule?e:{default:e}}function u5(e){if(!(0,s5.default)(e))throw TypeError("Invalid UUID");let t;const n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=t&255,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=t&255,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=t&255,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=t&255,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=t&255,n}var c5=u5;Yi.default=c5;Object.defineProperty(jn,"__esModule",{value:!0});jn.URL=jn.DNS=void 0;jn.default=g5;var f5=Wn,d5=h5(Yi);function h5(e){return e&&e.__esModule?e:{default:e}}function p5(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n>5]>>>a%32&255,o=parseInt(r.charAt(i>>>4&15)+r.charAt(i&15),16);t.push(o)}return t}function l_(e){return(e+64>>>9<<4)+14+1}function y5(e,t){e[t>>5]|=128<>5]|=(e[r/8]&255)<>16)+(t>>16)+(n>>16)<<16|n&65535}function _5(e,t){return e<>>32-t}function Xl(e,t,n,r,a,i){return _n(_5(_n(_n(t,e),_n(r,i)),a),n)}function ke(e,t,n,r,a,i,o){return Xl(t&n|~t&r,e,t,a,i,o)}function Ae(e,t,n,r,a,i,o){return Xl(t&r|n&~r,e,t,a,i,o)}function Re(e,t,n,r,a,i,o){return Xl(t^n^r,e,t,a,i,o)}function $e(e,t,n,r,a,i,o){return Xl(n^(t|~r),e,t,a,i,o)}var S5=m5;Yl.default=S5;Object.defineProperty(Kl,"__esModule",{value:!0});Kl.default=void 0;var b5=u_(jn),E5=u_(Yl);function u_(e){return e&&e.__esModule?e:{default:e}}const T5=(0,b5.default)("v3",48,E5.default);var C5=T5;Kl.default=C5;var Jl={},Ql={};Object.defineProperty(Ql,"__esModule",{value:!0});Ql.default=void 0;const O5=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var x5={randomUUID:O5};Ql.default=x5;Object.defineProperty(Jl,"__esModule",{value:!0});Jl.default=void 0;var Um=c_(Ql),P5=c_(Vl),N5=Wn;function c_(e){return e&&e.__esModule?e:{default:e}}function D5(e,t,n){if(Um.default.randomUUID&&!t&&!e)return Um.default.randomUUID();e=e||{};const r=e.random||(e.rng||P5.default)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let a=0;a<16;++a)t[n+a]=r[a];return t}return(0,N5.unsafeStringify)(r)}var k5=D5;Jl.default=k5;var Bl={},Zl={};Object.defineProperty(Zl,"__esModule",{value:!0});Zl.default=void 0;function A5(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function rc(e,t){return e<>>32-t}function R5(e){const t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){const o=unescape(encodeURIComponent(e));e=[];for(let s=0;s>>0;p=d,d=h,h=rc(u,30)>>>0,u=l,l=_}n[0]=n[0]+l>>>0,n[1]=n[1]+u>>>0,n[2]=n[2]+h>>>0,n[3]=n[3]+d>>>0,n[4]=n[4]+p>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,n[0]&255,n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,n[1]&255,n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,n[2]&255,n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,n[3]&255,n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,n[4]&255]}var $5=R5;Zl.default=$5;Object.defineProperty(Bl,"__esModule",{value:!0});Bl.default=void 0;var L5=f_(jn),M5=f_(Zl);function f_(e){return e&&e.__esModule?e:{default:e}}const j5=(0,L5.default)("v5",80,M5.default);var F5=j5;Bl.default=F5;var eu={};Object.defineProperty(eu,"__esModule",{value:!0});eu.default=void 0;var I5="00000000-0000-0000-0000-000000000000";eu.default=I5;var tu={};Object.defineProperty(tu,"__esModule",{value:!0});tu.default=void 0;var U5=z5(Er);function z5(e){return e&&e.__esModule?e:{default:e}}function H5(e){if(!(0,U5.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}var W5=H5;tu.default=W5;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return o.default}});var t=h(Gl),n=h(Kl),r=h(Jl),a=h(Bl),i=h(eu),o=h(tu),s=h(Er),l=h(Wn),u=h(Yi);function h(d){return d&&d.__esModule?d:{default:d}}})(a_);var Pe={},G5=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Pe,"__esModule",{value:!0});Pe.MosaicWindowContext=Pe.MosaicContext=void 0;var d_=G5(P);Pe.MosaicContext=d_.default.createContext(void 0);Pe.MosaicWindowContext=d_.default.createContext(void 0);var nu={},zm=wa,V5=Pl,q5=wt,Hm=zm?zm.isConcatSpreadable:void 0;function K5(e){return q5(e)||V5(e)||!!(Hm&&e&&e[Hm])}var Y5=K5,X5=bh,J5=Y5;function h_(e,t,n,r,a){var i=-1,o=e.length;for(n||(n=J5),a||(a=[]);++i0&&n(s)?t>1?h_(s,t-1,n,r,a):X5(a,s):r||(a[a.length]=s)}return a}var Q5=h_,B5=Q5;function Z5(e){var t=e==null?0:e.length;return t?B5(e,1):[]}var e8=Z5,ru={};function t8(e,t,n){return e===e&&(n!==void 0&&(e=e<=n?e:n),t!==void 0&&(e=e>=t?e:t)),e}var n8=t8,r8=/\s/;function a8(e){for(var t=e.length;t--&&r8.test(e.charAt(t)););return t}var i8=a8,o8=i8,s8=/^\s+/;function l8(e){return e&&e.slice(0,o8(e)+1).replace(s8,"")}var u8=l8,c8=u8,Wm=It,f8=Ml,Gm=0/0,d8=/^[-+]0x[0-9a-f]+$/i,h8=/^0b[01]+$/i,p8=/^0o[0-7]+$/i,g8=parseInt;function m8(e){if(typeof e=="number")return e;if(f8(e))return Gm;if(Wm(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Wm(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=c8(e);var n=h8.test(e);return n||p8.test(e)?g8(e.slice(2),n?2:8):d8.test(e)?Gm:+e}var Uh=m8,v8=n8,ac=Uh;function y8(e,t,n){return n===void 0&&(n=t,t=void 0),n!==void 0&&(n=ac(n),n=n===n?n:0),t!==void 0&&(t=ac(t),t=t===t?t:0),v8(ac(e),t,n)}var w8=y8,_8=Dt,S8=function(){return _8.Date.now()},b8=S8,E8=It,ic=b8,Vm=Uh,T8="Expected a function",C8=Math.max,O8=Math.min;function x8(e,t,n){var r,a,i,o,s,l,u=0,h=!1,d=!1,p=!0;if(typeof e!="function")throw new TypeError(T8);t=Vm(t)||0,E8(n)&&(h=!!n.leading,d="maxWait"in n,i=d?C8(Vm(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p);function w(k){var E=r,C=a;return r=a=void 0,u=k,o=e.apply(C,E),o}function m(k){return u=k,s=setTimeout(v,t),h?w(k):o}function _(k){var E=k-l,C=k-u,O=t-E;return d?O8(O,i-C):O}function b(k){var E=k-l,C=k-u;return l===void 0||E>=t||E<0||d&&C>=i}function v(){var k=ic();if(b(k))return y(k);s=setTimeout(v,_(k))}function y(k){return s=void 0,p&&r?w(k):(r=a=void 0,o)}function S(){s!==void 0&&clearTimeout(s),u=0,r=l=a=s=void 0}function x(){return s===void 0?o:y(ic())}function D(){var k=ic(),E=b(k);if(r=arguments,a=this,l=k,E){if(s===void 0)return m(l);if(d)return clearTimeout(s),s=setTimeout(v,t),w(l)}return s===void 0&&(s=setTimeout(v,t)),o}return D.cancel=S,D.flush=x,D}var P8=x8,N8=P8,D8=It,k8="Expected a function";function A8(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(k8);return D8(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),N8(e,t,{leading:r,maxWait:t,trailing:a})}var R8=A8,zh={},au={};Object.defineProperty(au,"__esModule",{value:!0});au.assertNever=void 0;function $8(e){throw new Error("Unhandled case: "+JSON.stringify(e))}au.assertNever=$8;(function(e){var t=$&&$.__assign||function(){return t=Object.assign||function(r){for(var a,i=1,o=arguments.length;i1;){for(;b.length>0;)b.length>1?v.push({direction:"row",first:b.shift(),second:b.shift()}):v.unshift(b.shift());b=v,v=[]}return a(b[0],_)}e.createBalancedTreeFromLeaves=s;function l(m){if(m==="first")return"second";if(m==="second")return"first";throw new Error("Branch '".concat(m,"' not a valid branch"))}e.getOtherBranch=l;function u(m){return m==="row"?"column":"row"}e.getOtherDirection=u;function h(m,_){for(var b=m,v=[];o(b);)b.direction==="row"&&(_===i.TOP_LEFT||_===i.BOTTOM_LEFT)||b.direction==="column"&&(_===i.TOP_LEFT||_===i.TOP_RIGHT)?(v.push("first"),b=b.first):(v.push("second"),b=b.second);return v}e.getPathToCorner=h;function d(m){return m==null?[]:o(m)?d(m.first).concat(d(m.second)):[m]}e.getLeaves=d;function p(m,_){return _.length>0?(0,r.default)(m,_,null):m}e.getNodeAtPath=p;function w(m,_){if(m==null)throw new Error("Root is empty, cannot fetch path");var b=p(m,_);if(b==null)throw new Error("Path [".concat(_.join(", "),"] did not resolve to a node"));return b}e.getAndAssertNodeAtPathExists=w})(Xi);var T7=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qs=$&&$.__assign||function(){return Qs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n"u"&&!i.call(C,H))&&(U===C&&(U=d(C)),l(U)==="Map"?U.set(H,on):U[H]=on)}}),U},E}();t.Context=p;var w={$push:function(E,C,O){return _(C,O,"$push"),E.length?C.concat(E):C},$unshift:function(E,C,O){return _(C,O,"$unshift"),E.length?E.concat(C):C},$splice:function(E,C,O,N){return v(C,O),E.forEach(function(L){y(L),C===N&&L.length&&(C=d(N)),o.apply(C,L)}),C},$set:function(E,C,O){return x(O),E},$toggle:function(E,C){b(E,"$toggle");var O=E.length?d(C):C;return E.forEach(function(N){O[N]=!C[N]}),O},$unset:function(E,C,O,N){return b(E,"$unset"),E.forEach(function(L){Object.hasOwnProperty.call(C,L)&&(C===N&&(C=d(N)),delete C[L])}),C},$add:function(E,C,O,N){return k(C,"$add"),b(E,"$add"),l(C)==="Map"?E.forEach(function(L){var U=L[0],H=L[1];C===N&&C.get(U)!==H&&(C=d(N)),C.set(U,H)}):E.forEach(function(L){C===N&&!C.has(L)&&(C=d(N)),C.add(L)}),C},$remove:function(E,C,O,N){return k(C,"$remove"),b(E,"$remove"),E.forEach(function(L){C===N&&C.has(L)&&(C=d(N)),C.delete(L)}),C},$merge:function(E,C,O,N){return D(C,E),h(E).forEach(function(L){E[L]!==C[L]&&(C===N&&(C=d(N)),C[L]=E[L])}),C},$apply:function(E,C){return S(E),E(C)}},m=new p;t.isEquals=m.update.isEquals,t.extend=m.extend,t.default=m.update,t.default.default=e.exports=u(t.default,t);function _(E,C,O){a(Array.isArray(E),function(){return"update(): expected target of "+n(O)+" to be an array; got "+n(E)+"."}),b(C[O],O)}function b(E,C){a(Array.isArray(E),function(){return"update(): expected spec of "+n(C)+" to be an array; got "+n(E)+". Did you forget to wrap your parameter in an array?"})}function v(E,C){a(Array.isArray(E),function(){return"Expected $splice target to be an array; got "+n(E)}),y(C.$splice)}function y(E){a(Array.isArray(E),function(){return"update(): expected spec of $splice to be an array of arrays; got "+n(E)+". Did you forget to wrap your parameters in an array?"})}function S(E){a(typeof E=="function",function(){return"update(): expected spec of $apply to be a function; got "+n(E)+"."})}function x(E){a(Object.keys(E).length===1,function(){return"Cannot have more than one key in an object with $set"})}function D(E,C){a(C&&typeof C=="object",function(){return"update(): $merge expects a spec of type 'object'; got "+n(C)}),a(E&&typeof E=="object",function(){return"update(): $merge expects a target of type 'object'; got "+n(E)})}function k(E,C){var O=l(E);a(O==="Map"||O==="Set",function(){return"update(): "+n(C)+" expects a target of type Set or Map; got "+n(O)})}})(Hf,Hf.exports);var lF=Hf.exports;function uF(e,t,n){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(a);++r0?(0,jF.default)({},e.path,e.spec):e.spec}je.buildSpecFromUpdate=j_;function F_(e,t){var n=e;return t.forEach(function(r){n=(0,$F.default)(n,j_(r))}),n}je.updateTree=F_;function Wf(e,t){var n=(0,L_.default)(t),r=(0,M_.default)(t),a=n.concat((0,Bs.getOtherBranch)(r)),i=(0,Bs.getAndAssertNodeAtPathExists)(e,a);return{path:n,spec:{$set:i}}}je.createRemoveUpdate=Wf;function cv(e,t,n){return(0,MF.default)((0,uv.default)(e,n),(0,uv.default)(t,n))}function FF(e,t,n,r){var a=(0,Bs.getAndAssertNodeAtPathExists)(e,n),i=[],o=cv(t,n,n.length);if(o)a=F_(a,[Wf(a,(0,LF.default)(t,n.length))]);else{i.push(Wf(e,t));var s=cv(t,n,t.length-1);s&&n.splice(t.length-1,1)}var l=(0,Bs.getAndAssertNodeAtPathExists)(e,t),u,h;r===Ho.MosaicDropTargetPosition.LEFT||r===Ho.MosaicDropTargetPosition.TOP?(u=l,h=a):(u=a,h=l);var d="column";return(r===Ho.MosaicDropTargetPosition.LEFT||r===Ho.MosaicDropTargetPosition.RIGHT)&&(d="row"),i.push({path:n,spec:{$set:{first:u,second:h,direction:d}}}),i}je.createDragToUpdates=FF;function IF(e){var t=(0,L_.default)(e),n=(0,M_.default)(e),r;return n==="first"?r=0:r=100,{path:t,spec:{splitPercentage:{$set:r}}}}je.createHideUpdate=IF;function UF(e,t){for(var n,r={},a=e.length-1;a>=0;a--){var i=e[a],o=i==="first"?t:100-t;r=(n={splitPercentage:{$set:o}},n[i]=r,n)}return{spec:r,path:[]}}je.createExpandUpdate=UF;var I_=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zs=$&&$.__assign||function(){return Zs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0){if(++t>=dI)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var mI=gI,vI=fI,yI=mI,wI=yI(vI),_I=wI,SI=Dh,bI=iI,EI=_I;function TI(e,t){return EI(bI(e,t,SI),e+"")}var CI=TI,OI=eI,xI=CI,PI=xI(function(e,t){return OI(e,1,t)}),NI=PI,DI=sw,kI=Gi,AI=Pl,RI=wt,$I=kl,LI=Nl,MI=Dl,jI=vh,FI="[object Map]",II="[object Set]",UI=Object.prototype,zI=UI.hasOwnProperty;function HI(e){if(e==null)return!0;if($I(e)&&(RI(e)||typeof e=="string"||typeof e.splice=="function"||LI(e)||jI(e)||AI(e)))return!e.length;var t=kI(e);if(t==FI||t==II)return!e.size;if(MI(e))return!DI(e).length;for(var n in e)if(zI.call(e,n))return!1;return!0}var WI=HI,vr={},Zi={},Oa={};(function(e){var t=$&&$.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0}),e.createDefaultToolbarButton=e.DefaultToolbarButton=void 0;var n=t(st),r=t(P),a=Pe,i=Gn,o=function(l){var u=l.title,h=l.className,d=l.onClick,p=l.text,w=r.default.useContext(a.MosaicContext).blueprintNamespace;return r.default.createElement("button",{title:u,onClick:d,className:(0,n.default)("mosaic-default-control",i.OptionalBlueprint.getClasses(w,"BUTTON","MINIMAL"),h)},p&&r.default.createElement("span",{className:"control-text"},p))};e.DefaultToolbarButton=o;var s=function(l,u,h,d){return r.default.createElement(e.DefaultToolbarButton,{title:l,className:u,onClick:h,text:d})};e.createDefaultToolbarButton=s})(Oa);var GI=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),z_=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zi,"__esModule",{value:!0});Zi.ExpandButton=void 0;var VI=z_(st),uc=z_(P),hv=Pe,qI=Gn,KI=Oa,YI=function(e){GI(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this;return uc.default.createElement(hv.MosaicContext.Consumer,null,function(r){var a=r.mosaicActions;return uc.default.createElement(KI.DefaultToolbarButton,{title:"Expand",className:(0,VI.default)("expand-button",qI.OptionalBlueprint.getIconClass(n.context.blueprintNamespace,"MAXIMIZE")),onClick:n.createExpand(a)})})},t.prototype.createExpand=function(n){var r=this;return function(){n.expand(r.context.mosaicWindowActions.getPath()),r.props.onClick&&r.props.onClick()}},t.contextType=hv.MosaicWindowContext,t}(uc.default.PureComponent);Zi.ExpandButton=YI;var eo={},XI=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),H_=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(eo,"__esModule",{value:!0});eo.RemoveButton=void 0;var JI=H_(st),cc=H_(P),pv=Pe,QI=Gn,BI=Oa,ZI=function(e){XI(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this;return cc.default.createElement(pv.MosaicContext.Consumer,null,function(r){var a=r.mosaicActions,i=r.blueprintNamespace;return cc.default.createElement(BI.DefaultToolbarButton,{title:"Close Window",className:(0,JI.default)("close-button",QI.OptionalBlueprint.getIconClass(i,"CROSS")),onClick:n.createRemove(a)})})},t.prototype.createRemove=function(n){var r=this;return function(){n.remove(r.context.mosaicWindowActions.getPath()),r.props.onClick&&r.props.onClick()}},t.contextType=pv.MosaicWindowContext,t}(cc.default.PureComponent);eo.RemoveButton=ZI;var to={},eU=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Kh=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(to,"__esModule",{value:!0});to.ReplaceButton=void 0;var tU=Kh(st),nU=Kh(Wh),gv=Kh(P),rU=Pe,aU=Gn,iU=Oa,oU=function(e){eU(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.replace=function(){n.context.mosaicWindowActions.replaceWithNew().then(function(){n.props.onClick&&n.props.onClick()}).catch(nU.default)},n}return t.prototype.render=function(){return gv.default.createElement(iU.DefaultToolbarButton,{title:"Replace Window",className:(0,tU.default)("replace-button",aU.OptionalBlueprint.getIconClass(this.context.blueprintNamespace,"EXCHANGE")),onClick:this.replace})},t.contextType=rU.MosaicWindowContext,t}(gv.default.PureComponent);to.ReplaceButton=oU;var no={},sU=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yh=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(no,"__esModule",{value:!0});no.SplitButton=void 0;var lU=Yh(st),uU=Yh(Wh),mv=Yh(P),cU=Pe,fU=Gn,dU=Oa,hU=function(e){sU(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.split=function(){n.context.mosaicWindowActions.split().then(function(){n.props.onClick&&n.props.onClick()}).catch(uU.default)},n}return t.prototype.render=function(){return mv.default.createElement(dU.DefaultToolbarButton,{title:"Split Window",className:(0,lU.default)("split-button",fU.OptionalBlueprint.getIconClass(this.context.blueprintNamespace,"ADD_COLUMN_RIGHT")),onClick:this.split})},t.contextType=cU.MosaicWindowContext,t}(mv.default.PureComponent);no.SplitButton=hU;var pU=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vr,"__esModule",{value:!0});vr.DEFAULT_CONTROLS_WITHOUT_CREATION=vr.DEFAULT_CONTROLS_WITH_CREATION=void 0;var mn=pU(P),W_=Zi,G_=eo,gU=to,mU=no;vr.DEFAULT_CONTROLS_WITH_CREATION=mn.default.Children.toArray([mn.default.createElement(gU.ReplaceButton,null),mn.default.createElement(mU.SplitButton,null),mn.default.createElement(W_.ExpandButton,null),mn.default.createElement(G_.RemoveButton,null)]);vr.DEFAULT_CONTROLS_WITHOUT_CREATION=mn.default.Children.toArray([mn.default.createElement(W_.ExpandButton,null),mn.default.createElement(G_.RemoveButton,null)]);var ro={},vU=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),yU=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ro,"__esModule",{value:!0});ro.Separator=void 0;var vv=yU(P),wU=function(e){vU(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){return vv.default.createElement("div",{className:"separator"})},t}(vv.default.PureComponent);ro.Separator=wU;var V_=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),el=$&&$.__assign||function(){return el=Object.assign||function(e){for(var t,n=1,r=arguments.length;nn.rootElement.offsetHeight?"row":"column";return Promise.resolve(o.apply(void 0,r)).then(function(d){return l.replaceWith(s,{direction:h,second:d,first:(0,AU.getAndAssertNodeAtPathExists)(u,s)})})},n.swap=function(){for(var r=[],a=0;a0,m=w?this.props.connectDragSource:function(y){return y};if(h){var _=m(h(this.props,o));return ne.default.createElement("div",{className:(0,Ia.default)("mosaic-window-toolbar",{draggable:w})},_)}var b=m(ne.default.createElement("div",{title:i,className:"mosaic-window-title"},i)),v=!(0,CU.default)(s);return ne.default.createElement("div",{className:(0,Ia.default)("mosaic-window-toolbar",{draggable:w})},b,ne.default.createElement("div",{className:(0,Ia.default)("mosaic-window-controls",Ua.OptionalBlueprint.getClasses("BUTTON_GROUP"))},v&&ne.default.createElement("button",{onClick:function(){return r.setAdditionalControlsOpen(!d)},className:(0,Ia.default)(Ua.OptionalBlueprint.getClasses(this.context.blueprintNamespace,"BUTTON","MINIMAL"),Ua.OptionalBlueprint.getIconClass(this.context.blueprintNamespace,"MORE"),(n={},n[Ua.OptionalBlueprint.getClasses(this.context.blueprintNamespace,"ACTIVE")]=d,n))},ne.default.createElement("span",{className:"control-text"},l)),v&&ne.default.createElement(PU.Separator,null),p))},t.prototype.checkCreateNode=function(){if(this.props.createNode==null)throw new Error("Operation invalid unless `createNode` is defined")},t.defaultProps={additionalControlButtonText:"More",draggable:!0,renderPreview:function(n){var r=n.title;return ne.default.createElement("div",{className:"mosaic-preview"},ne.default.createElement("div",{className:"mosaic-window-toolbar"},ne.default.createElement("div",{className:"mosaic-window-title"},r)),ne.default.createElement("div",{className:"mosaic-window-body"},ne.default.createElement("h4",null,r),ne.default.createElement(Ua.OptionalBlueprint.Icon,{className:"default-preview-icon",size:"large",icon:"APPLICATION"})))},renderToolbar:null},t.contextType=Gf.MosaicContext,t}(ne.default.Component);ha.InternalMosaicWindow=q_;function RU(e){var t=(0,ne.useContext)(Gf.MosaicContext),n=t.mosaicActions,r=t.mosaicId,a=(0,yv.useDrag)({type:_v.MosaicDragType.WINDOW,item:function(p){e.onDragStart&&e.onDragStart();var w=(0,EU.default)(function(){return n.hide(e.path)});return{mosaicId:r,hideTimer:w}},end:function(p,w){var m=p.hideTimer;window.clearTimeout(m);var _=e.path,b=w.getDropResult()||{},v=b.position,y=b.path;v!=null&&y!=null&&!(0,OU.default)(y,_)?(n.updateTree((0,kU.createDragToUpdates)(n.getRoot(),_,y,v)),e.onDragEnd&&e.onDragEnd("drop")):(n.updateTree([{path:(0,TU.default)(_),spec:{splitPercentage:{$set:void 0}}}]),e.onDragEnd&&e.onDragEnd("reset"))}}),i=a[1],o=a[2],s=(0,yv.useDrop)({accept:_v.MosaicDragType.WINDOW,collect:function(p){var w;return{isOver:p.isOver(),draggedMosaicId:(w=p.getItem())===null||w===void 0?void 0:w.mosaicId}}}),l=s[0],u=l.isOver,h=l.draggedMosaicId,d=s[1];return ne.default.createElement(q_,el({},e,{connectDragPreview:o,connectDragSource:i,connectDropTarget:d,isOver:u,draggedMosaicId:h}))}var $U=function(e){V_(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){return ne.default.createElement(RU,el({},this.props))},t}(ne.default.PureComponent);ha.MosaicWindow=$U;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_CONTROLS_WITHOUT_CREATION=e.DEFAULT_CONTROLS_WITH_CREATION=e.RemoveButton=e.SplitButton=e.ReplaceButton=e.ExpandButton=e.Separator=e.MosaicZeroState=e.DefaultToolbarButton=e.createDefaultToolbarButton=e.MosaicWindow=e.isParent=e.getPathToCorner=e.getOtherDirection=e.getOtherBranch=e.getNodeAtPath=e.getLeaves=e.getAndAssertNodeAtPathExists=e.Corner=e.createBalancedTreeFromLeaves=e.updateTree=e.createRemoveUpdate=e.createHideUpdate=e.createExpandUpdate=e.createDragToUpdates=e.buildSpecFromUpdate=e.MosaicWindowContext=e.MosaicContext=e.MosaicDragType=e.MosaicWithoutDragDropContext=e.Mosaic=void 0;/** + * @license + * Copyright 2019 Kevin Verdieck, originally developed at Palantir Technologies, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */var t=da;Object.defineProperty(e,"Mosaic",{enumerable:!0,get:function(){return t.Mosaic}}),Object.defineProperty(e,"MosaicWithoutDragDropContext",{enumerable:!0,get:function(){return t.MosaicWithoutDragDropContext}});var n=Tr;Object.defineProperty(e,"MosaicDragType",{enumerable:!0,get:function(){return n.MosaicDragType}});var r=Pe;Object.defineProperty(e,"MosaicContext",{enumerable:!0,get:function(){return r.MosaicContext}}),Object.defineProperty(e,"MosaicWindowContext",{enumerable:!0,get:function(){return r.MosaicWindowContext}});var a=je;Object.defineProperty(e,"buildSpecFromUpdate",{enumerable:!0,get:function(){return a.buildSpecFromUpdate}}),Object.defineProperty(e,"createDragToUpdates",{enumerable:!0,get:function(){return a.createDragToUpdates}}),Object.defineProperty(e,"createExpandUpdate",{enumerable:!0,get:function(){return a.createExpandUpdate}}),Object.defineProperty(e,"createHideUpdate",{enumerable:!0,get:function(){return a.createHideUpdate}}),Object.defineProperty(e,"createRemoveUpdate",{enumerable:!0,get:function(){return a.createRemoveUpdate}}),Object.defineProperty(e,"updateTree",{enumerable:!0,get:function(){return a.updateTree}});var i=Xi;Object.defineProperty(e,"createBalancedTreeFromLeaves",{enumerable:!0,get:function(){return i.createBalancedTreeFromLeaves}}),Object.defineProperty(e,"Corner",{enumerable:!0,get:function(){return i.Corner}}),Object.defineProperty(e,"getAndAssertNodeAtPathExists",{enumerable:!0,get:function(){return i.getAndAssertNodeAtPathExists}}),Object.defineProperty(e,"getLeaves",{enumerable:!0,get:function(){return i.getLeaves}}),Object.defineProperty(e,"getNodeAtPath",{enumerable:!0,get:function(){return i.getNodeAtPath}}),Object.defineProperty(e,"getOtherBranch",{enumerable:!0,get:function(){return i.getOtherBranch}}),Object.defineProperty(e,"getOtherDirection",{enumerable:!0,get:function(){return i.getOtherDirection}}),Object.defineProperty(e,"getPathToCorner",{enumerable:!0,get:function(){return i.getPathToCorner}}),Object.defineProperty(e,"isParent",{enumerable:!0,get:function(){return i.isParent}});var o=ha;Object.defineProperty(e,"MosaicWindow",{enumerable:!0,get:function(){return o.MosaicWindow}});var s=Oa;Object.defineProperty(e,"createDefaultToolbarButton",{enumerable:!0,get:function(){return s.createDefaultToolbarButton}}),Object.defineProperty(e,"DefaultToolbarButton",{enumerable:!0,get:function(){return s.DefaultToolbarButton}});var l=Ji;Object.defineProperty(e,"MosaicZeroState",{enumerable:!0,get:function(){return l.MosaicZeroState}});var u=ro;Object.defineProperty(e,"Separator",{enumerable:!0,get:function(){return u.Separator}});var h=Zi;Object.defineProperty(e,"ExpandButton",{enumerable:!0,get:function(){return h.ExpandButton}});var d=to;Object.defineProperty(e,"ReplaceButton",{enumerable:!0,get:function(){return d.ReplaceButton}});var p=no;Object.defineProperty(e,"SplitButton",{enumerable:!0,get:function(){return p.SplitButton}});var w=eo;Object.defineProperty(e,"RemoveButton",{enumerable:!0,get:function(){return w.RemoveButton}});var m=vr;Object.defineProperty(e,"DEFAULT_CONTROLS_WITH_CREATION",{enumerable:!0,get:function(){return m.DEFAULT_CONTROLS_WITH_CREATION}}),Object.defineProperty(e,"DEFAULT_CONTROLS_WITHOUT_CREATION",{enumerable:!0,get:function(){return m.DEFAULT_CONTROLS_WITHOUT_CREATION}})})(xf);var Sv={CENTER:"center",LEFT:"left",RIGHT:"right"},ao={NONE:"none",PRIMARY:"primary",SUCCESS:"success",WARNING:"warning",DANGER:"danger"},ve="bp5";typeof BLUEPRINT_NAMESPACE<"u"?ve=BLUEPRINT_NAMESPACE:typeof REACT_APP_BLUEPRINT_NAMESPACE<"u"&&(ve=REACT_APP_BLUEPRINT_NAMESPACE);var LU="".concat(ve,"-active"),MU="".concat(ve,"-align-left"),jU="".concat(ve,"-align-right"),FU="".concat(ve,"-disabled"),IU="".concat(ve,"-fill"),Vf="".concat(ve,"-large"),UU="".concat(ve,"-loading"),zU="".concat(ve,"-minimal"),HU="".concat(ve,"-outlined"),qf="".concat(ve,"-small");Fn(ao.PRIMARY);Fn(ao.SUCCESS);Fn(ao.WARNING);Fn(ao.DANGER);var WU="".concat(ve,"-text-overflow-ellipsis"),Xh="".concat(ve,"-button"),GU="".concat(Xh,"-spinner"),VU="".concat(Xh,"-text"),su="".concat(ve,"-spinner"),qU="".concat(su,"-animation"),KU="".concat(su,"-head"),YU="".concat(ve,"-no-spin"),XU="".concat(su,"-track"),Jh="".concat(ve,"-icon"),JU="".concat(Jh,"-standard"),QU="".concat(Jh,"-large");function BU(e){switch(e){case Sv.LEFT:return MU;case Sv.RIGHT:return jU;default:return}}function ZU(e){if(e!=null)return e.indexOf("".concat(ve,"-icon-"))===0?e:"".concat(ve,"-icon-").concat(e)}function Fn(e){if(!(e==null||e===ao.NONE))return"".concat(ve,"-intent-").concat(e.toLowerCase())}var Kf=function(e,t){return Kf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},Kf(e,t)};function K_(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Kf(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Pt=function(){return Pt=Object.assign||function(t){for(var n,r=1,a=arguments.length;r Classes.SMALL/LARGE are ignored if size prop is set.";function bv(e){return typeof NODE_ENV<"u"&&NODE_ENV===e}function nz(e,t,n){if(e==null)return e;if(n0){for(var a=0,i=r.timeoutIds;a0){for(var a=0,i=r.requestIds;a0&&n>="0"&&n<="9"?"_"+n+r:""+n.toUpperCase()+r}function fz(e,t){return t===void 0&&(t={}),J_(e,Xf({delimiter:"",transform:cz},t))}var Jf=function(){return Jf=Object.assign||function(t){for(var n,r=1,a=arguments.length;r{if(i=gz(i),i in Ov)return;Ov[i]=!0;const o=i.endsWith(".css"),s=o?'[rel="stylesheet"]':"";if(!!r)for(let h=a.length-1;h>=0;h--){const d=a[h];if(d.href===i&&(!o||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":pz,o||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),o)return new Promise((h,d)=>{u.addEventListener("load",h),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i})};var Vt=function(){return Vt=Object.assign||function(t){for(var n,r=1,a=arguments.length;r0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]import("./allPathsLoader-88810379.js"),[])];case 2:return[2,r.sent().allPathsLoader];case 3:return[4,xv(()=>import("./splitPathsBySizeLoader-25ffe49f.js"),[])];case 4:return[2,r.sent().splitPathsBySizeLoader]}})})}var Ja=function(){function e(){this.defaultLoader="split-by-size",this.loadedIconPaths16=new Map,this.loadedIconPaths20=new Map}return e.setLoaderOptions=function(t){t.loader!==void 0&&(Ar.defaultLoader=t.loader)},e.load=function(t,n,r){return Yr(this,void 0,void 0,function(){var a=this;return Xr(this,function(i){switch(i.label){case 0:return Array.isArray(t)||(t=[t]),[4,Promise.all(t.map(function(o){return a.loadImpl(o,n,r)}))];case 1:return i.sent(),[2]}})})},e.loadAll=function(t){return Yr(this,void 0,void 0,function(){var n,r=this;return Xr(this,function(a){return n=Object.values(Be),wz("[Blueprint] loading all icons",function(){return Yr(r,void 0,void 0,function(){return Xr(this,function(i){switch(i.label){case 0:return[4,Promise.all([this.load(n,Le.STANDARD,t),this.load(n,Le.LARGE,t)])];case 1:return i.sent(),[2]}})})}),[2]})})},e.getPaths=function(t,n){if(this.isValidIconName(t)){var r=n=Le.LARGE,_=m?Le.LARGE:Le.STANDARD,b="0 0 ".concat(_," ").concat(_),v=bz("iconTitle"),y=Vt({fill:a,height:l,role:"img",viewBox:b,width:l},u);return d===null?P.createElement("svg",Vt({"aria-labelledby":p?v:void 0,"data-icon":o,ref:t},y,w,{className:Mn(r,u==null?void 0:u.className)}),p&&P.createElement("title",{id:v},p),n):P.createElement(d,Vt(Vt({"aria-hidden":p?void 0:!0},w),{className:Mn(Nv,"".concat(Nv,"-").concat(o),r),ref:t,title:i}),P.createElement("svg",Vt({"data-icon":o},y,{className:u==null?void 0:u.className}),p&&P.createElement("title",null,p),n))});Z_.displayName="Blueprint5.SVGIconContainer";var ze=P.forwardRef(function(e,t){var n,r,a=e.autoLoad,i=e.className,o=e.color,s=e.icon,l=e.intent,u=e.tagName,h=e.svgProps,d=e.title,p=e.htmlTitle,w=Qh(e,["autoLoad","className","color","icon","intent","tagName","svgProps","title","htmlTitle"]),m=(r=(n=e.iconSize)!==null&&n!==void 0?n:e.size)!==null&&r!==void 0?r:Le.STANDARD,_=P.useState(function(){return typeof s=="string"?Ja.getPaths(s,m):void 0}),b=_[0],v=_[1];if(P.useEffect(function(){var x=!1;if(typeof s=="string"){var D=Ja.getPaths(s,m);D!==void 0?v(D):a?Ja.load(s,m).then(function(){x||v(Ja.getPaths(s,m))}).catch(function(k){console.error("[Blueprint] Icon '".concat(s,"' (").concat(m,"px) could not be loaded."),k)}):console.error("[Blueprint] Icon '".concat(s,"' (").concat(m,"px) is not loaded yet and autoLoad={false}, did you call Icons.load('").concat(s,"', ").concat(m,")?"))}return function(){x=!0}},[a,s,m]),s==null||typeof s=="boolean")return null;if(typeof s!="string")return s;if(b==null){var y=m===Le.STANDARD?JU:m===Le.LARGE?QU:void 0;return P.createElement(u,Pt(Pt({"aria-hidden":d?void 0:!0},tl(w)),{className:Mn(Jh,y,ZU(s),Fn(l),i),"data-icon":s,ref:t,title:p}))}else{var S=b.map(function(x,D){return P.createElement("path",{d:x,key:D,fillRule:"evenodd"})});return P.createElement(Z_,Pt({children:S,className:Mn(Fn(l),i),color:o,htmlTitle:p,iconName:s,ref:t,size:m,svgProps:h,tagName:u,title:d},tl(w)))}});ze.defaultProps={autoLoad:!0,tagName:"span"};ze.displayName="".concat(io,".Icon");var or;(function(e){e[e.SMALL=20]="SMALL",e[e.STANDARD=50]="STANDARD",e[e.LARGE=100]="LARGE"})(or||(or={}));var fn=45,kv="M 50,50 m 0,-".concat(fn," a ").concat(fn,",").concat(fn," 0 1 1 0,").concat(fn*2," a ").concat(fn,",").concat(fn," 0 1 1 0,-").concat(fn*2),za=280,Ez=10,Tz=4,Cz=16,Oz=function(e){K_(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.componentDidUpdate=function(n){n.value!==this.props.value&&this.forceUpdate()},t.prototype.render=function(){var n,r=this.props,a=r.className,i=r.intent,o=r.value,s=r.tagName,l=s===void 0?"div":s,u=Qh(r,["className","intent","value","tagName"]),h=this.getSize(),d=Mn(su,Fn(i),(n={},n[YU]=o!=null,n),a),p=Math.min(Cz,Tz*or.LARGE/h),w=za-za*(o==null?.25:nz(o,0,1));return P.createElement(l,Pt({"aria-label":"loading","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":o===void 0?void 0:o*100,className:d,role:"progressbar"},u),P.createElement(l,{className:qU},P.createElement("svg",{width:h,height:h,strokeWidth:p.toFixed(2),viewBox:this.getViewBox(p)},P.createElement("path",{className:XU,d:kv}),P.createElement("path",{className:KU,d:kv,pathLength:za,strokeDasharray:"".concat(za," ").concat(za),strokeDashoffset:w}))))},t.prototype.validateProps=function(n){var r=n.className,a=r===void 0?"":r,i=n.size;i!=null&&(a.indexOf(qf)>=0||a.indexOf(Vf)>=0)&&console.warn(tz)},t.prototype.getSize=function(){var n=this.props,r=n.className,a=r===void 0?"":r,i=n.size;return i==null?a.indexOf(qf)>=0?or.SMALL:a.indexOf(Vf)>=0?or.LARGE:or.STANDARD:Math.max(Ez,i)},t.prototype.getViewBox=function(n){var r=fn+n/2,a=(50-r).toFixed(2),i=(r*2).toFixed(2);return"".concat(a," ").concat(a," ").concat(i," ").concat(i)},t.displayName="".concat(io,".Spinner"),t}(oz),Bh=P.forwardRef(function(e,t){var n,r=e.children,a=e.tagName,i=a===void 0?"div":a,o=e.title,s=e.className,l=e.ellipsize,u=Qh(e,["children","tagName","title","className","ellipsize"]),h=P.useRef(),d=P.useMemo(function(){return X_(h,t)},[t]),p=P.useState(""),w=p[0],m=p[1],_=P.useState(),b=_[0],v=_[1];return P.useLayoutEffect(function(){var y;((y=h.current)===null||y===void 0?void 0:y.textContent)!=null&&(v(l&&h.current.scrollWidth>h.current.clientWidth),m(h.current.textContent))},[h,r,l]),P.createElement(i,Pt(Pt({},u),{className:Mn((n={},n[WU]=l,n),s),ref:d,title:o??(b?w:void 0)}),r)});Bh.defaultProps={ellipsize:!1};Bh.displayName="".concat(io,".Text");var bt=P.forwardRef(function(e,t){var n=eS(e,t);return P.createElement("button",Pt({type:"button"},tl(e),n),tS(e))});bt.displayName="".concat(io,".Button");var xz=P.forwardRef(function(e,t){var n=e.href,r=e.tabIndex,a=r===void 0?0:r,i=eS(e,t);return P.createElement("a",Pt({role:"button"},tl(e),i,{"aria-disabled":i.disabled,href:i.disabled?void 0:n,tabIndex:i.disabled?-1:a}),tS(e))});xz.displayName="".concat(io,".AnchorButton");function eS(e,t){var n,r=e.active,a=r===void 0?!1:r,i=e.alignText,o=e.fill,s=e.large,l=e.loading,u=l===void 0?!1:l,h=e.minimal,d=e.onBlur,p=e.onKeyDown,w=e.onKeyUp,m=e.outlined,_=e.small,b=e.tabIndex,v=e.disabled||u,y=P.useState(),S=y[0],x=y[1],D=P.useState(!1),k=D[0],E=D[1],C=P.useRef(null),O=P.useCallback(function(H){k&&E(!1),d==null||d(H)},[k,d]),N=P.useCallback(function(H){Ev(H)&&(H.preventDefault(),H.key!==S&&E(!0)),x(H.key),p==null||p(H)},[S,p]),L=P.useCallback(function(H){var lt;Ev(H)&&(E(!1),(lt=C.current)===null||lt===void 0||lt.click()),x(void 0),w==null||w(H)},[w]),U=Mn(Xh,(n={},n[LU]=!v&&(a||k),n[FU]=v,n[IU]=o,n[Vf]=s,n[UU]=u,n[zU]=h,n[HU]=m,n[qf]=_,n),BU(i),Fn(e.intent),e.className);return{className:U,disabled:v,onBlur:O,onClick:v?void 0:e.onClick,onFocus:v?void 0:e.onFocus,onKeyDown:N,onKeyUp:L,ref:X_(C,t),tabIndex:v?-1:b}}function tS(e){var t=e.children,n=e.ellipsizeText,r=e.icon,a=e.loading,i=e.rightIcon,o=e.text,s=e.textClassName,l=!Yf(o)||!Yf(t);return P.createElement(P.Fragment,null,a&&P.createElement(Oz,{key:"loading",className:GU,size:or.SMALL}),P.createElement(ze,{key:"leftIcon",icon:r}),l&&P.createElement(Bh,{key:"text",className:Mn(VU,s),ellipsize:n,tagName:"span"},o,t),P.createElement(ze,{key:"rightIcon",icon:i}))}const Pz="_stream_table_header_main_container_eshmy_1",Nz="_stream_table_header_fn_row_eshmy_7",Dz="_stream_table_right_container_eshmy_15",kz="_stream_table_title_eshmy_23",Az="_hideFieldBtn_eshmy_31",Rz="_dropdownMenu_eshmy_52",$z="_streamtable_vartype_panel_eshmy_107",Ha={stream_table_header_main_container:Pz,stream_table_header_fn_row:Nz,stream_table_right_container:Dz,stream_table_title:kz,hideFieldBtn:Az,dropdownMenu:Rz,streamtable_vartype_panel:$z};function Av(){P.useContext(it);const[e,t]=P.useState(!1);function n(){document.getElementById("hide-fields-list"),t(r=>!r)}return T.jsxs("div",{className:`${Ha.stream_table_header_main_container}`,children:[T.jsx("div",{className:`${Ha.stream_table_header_fn_row}`,children:T.jsxs("div",{id:"hide-fields-dropdown",className:`nav-link dropdown-toggle idaes-nav-button ${Ha.hideFieldBtn}`,"data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",onClick:n,children:[T.jsx("span",{children:"Hide Fields"}),T.jsx("ul",{id:"hide-fields-list",className:`dropdown-menu checkbox-menu ${Ha.dropdownMenu}`,style:{display:e?"block":"none"}})]})}),T.jsx("div",{id:"existing-variable-types",className:`streamtable-vartype-panel ${Ha.streamtable_vartype_panel}`})]})}const Lz="_flowsheet_variable_ul_15yu2_1",Mz="_variables_display_each_unit_label_15yu2_16",Rv={flowsheet_variable_ul:Lz,variables_display_each_unit_label:Mz};function jz(){const{cells:e,model:t,showVariable:n,setShowVariable:r}=P.useContext(it);console.log(e),console.log(t);let a="loading...";return e?a=e.map((o,s)=>{if(o.attrs&&o.attrs.label&&o.attrs.label.text)return T.jsxs("li",{id:`unit_name_${o}`,className:Rv.variables_display_each_unit_label,"data-open":"false","data-which-label":o.attrs.label.text,onClick:l=>Fz(l,r),children:[Object.keys(n).includes(o.attrs.label.text)?T.jsx(Fe,{icon:AT}):T.jsx(Fe,{icon:PT}),T.jsx("span",{children:o.attrs.label.text})]},o.attrs.label.text+s)}):a="Please check flowsheet Joint JS model, looks like it not contain any Cells",Object.keys(n).length>0,T.jsx(T.Fragment,{children:T.jsx("section",{className:"pd-md",children:T.jsx("ul",{className:`${Rv.flowsheet_variable_ul}`,children:a})})})}function Fz(e,t){const r=e.currentTarget.getAttribute("data-which-label");r?(console.log("here"),t(a=>{const i={...a};return i[r]?delete i[r]:i[r]=r,i})):console.error("Click event not receive which variable")}const Iz="_fvContainer_1oimy_1",Uz="_fv_1oimy_1",$v={fvContainer:Iz,fv:Uz};function zz(){const{panelState:e,cells:t}=P.useContext(it),n=e.fv.show;return T.jsxs(T.Fragment,{children:[T.jsx("h1",{children:{}.VITE_TEST}),n&&T.jsx("section",{id:"fvContainer",className:`${$v.fvContainer}`,children:T.jsx("div",{id:"fv",className:`${$v.fv}`})})]})}const Hz="_diagnosticsIssues_container_qe2yw_1",Wz="_diagnosticIssues_each_issue_qe2yw_11",Gz="_activated_qe2yw_36",Vo={diagnosticsIssues_container:Hz,diagnosticIssues_each_issue:Wz,activated:Gz};function Vz(e){let t=e.diagnosticData,n="Loading...";if(t){let r=t.diagnostics_toolbox_report.structural_report.warning[0],a=t.diagnostics_toolbox_report.numerical_report.warning[0],i={structural:r.length,numerical:a.length};const o=Object.keys(i);let s="";!e.whichIssue&&o.length>0?s=o[0]:s=e.whichIssue,n=o.map((l,u)=>T.jsx("div",{className:`${Vo.diagnosticIssues_each_issue} ${l==s?Vo.activated:Vo.deactivated}`,onClick:()=>e.toggleIssue(l),children:T.jsxs("p",{children:[l," issues",T.jsx("sup",{children:i[l]})]})},u))}else console.log("Diagnostic data is not pass from parent!");return T.jsx("div",{className:Vo.diagnosticsIssues_container,children:n})}const qz="_diagnostics_display_main_container_5xc1d_1",Kz="_diagnostic_display_each_section_container_5xc1d_7",Yz="_diagnostic_display_each_config_container_5xc1d_11",Xz="_diagnostics_display_each_severity_main_container_5xc1d_17",Jz="_diagnostic_display_each_severity_title_5xc1d_21",Qz="_diagnostic_display_diagnostic_content_container_5xc1d_31",Bz="_diagnostics_warning_caution_main_container_5xc1d_35",Zz="_diagnostics_display_pre_tag_5xc1d_39",eH="_diagnostics_warning_caution_display_container_5xc1d_53",tH="_warning_5xc1d_57",nH="_caution_5xc1d_65",rH="_diagnostic_display_each_issue_container_5xc1d_73",aH="_diagnostic_display_section_title_5xc1d_79",iH="_diagnostics_display_each_next_step_content_5xc1d_83",oH="_next_step_function_btn_5xc1d_96",sH="_copied_next_step_5xc1d_106",lH="_error_message_5xc1d_127",Q={diagnostics_display_main_container:qz,diagnostic_display_each_section_container:Kz,diagnostic_display_each_config_container:Yz,diagnostics_display_each_severity_main_container:Xz,diagnostic_display_each_severity_title:Jz,diagnostic_display_diagnostic_content_container:Qz,diagnostics_warning_caution_main_container:Bz,diagnostics_display_pre_tag:Zz,diagnostics_warning_caution_display_container:eH,warning:tH,caution:nH,diagnostic_display_each_issue_container:rH,diagnostic_display_section_title:aH,diagnostics_display_each_next_step_content:iH,next_step_function_btn:oH,copied_next_step:sH,error_message:lH};function uH(e){const{server_port:t,fv_id:n,diagnosticsNextStepsOutputState:r,setDiagnosticsNextStepsOutputState:a,diagnosticsRunFnNameListState:i,setDiagnosticsRunFnNameListState:o,setDiagnosticsRunnerDisplayState:s}=P.useContext(it),l=e.diagnosticData,u=e.whichIssue;let h="Loading jacobian condition...",d="Loading model statistics structural...",p="Loading warning...",w="Loading caution...",m="Loading suggested next step...",_=0,b=0,v=[];if(u&&l&&l.diagnostics_toolbox_report){const S=l.diagnostics_toolbox_report;h=T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:S.toolbox_jacobian_condation});const x=S.toolbox_model_statistics;x&&x.length>0?d=x.map((O,N)=>T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:O},`model_structural_statistics_content${N}_${O}`)):d=T.jsxs(T.Fragment,{children:[T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:" Model Statistics is not generate by diagnostics toolbox, please run: "}),T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:" dt = DiagnosticsToolbox(model)"}),T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:" dt.report_structural_issues()"}),T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:" dt.report_numerical_issues()"})]});const D=S[u=="structural"?"structural_report":"numerical_report"].warning[0];_=D.length,D&&D.length>0?p=D.map((O,N)=>(O=O.replace("WARNING","Warning"),T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:O},`eachWarning_${N}_${O}`))):p=T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:"No warning."});const k=S[u=="structural"?"structural_report":"numerical_report"].caution;b=k.length,k&&k.length>0?w=k.map((O,N)=>(O=O.replace("CAUTION","Caution"),T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:O},`eachCaution_${N}_${O}`))):w=T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:"No caution."});let E=!1;const C=S.next_steps[u=="structural"?"structural":"numerical"];C.length>0&&(E=!0,v=[...C]),E?m=C.map((O,N)=>T.jsxs("p",{className:`${Q.diagnostics_display_each_next_step_content}`,children:[T.jsx("span",{className:"function_name",children:O}),T.jsx("span",{className:`${Q.next_step_function_btn}`,onClick:()=>{y(O)},children:"Run"}),T.jsx("span",{className:`${Q.next_step_function_btn}`,onClick:cH,children:"Copy"})]},`diagnostics_suggested_next_step_${O}`)):(u=="structural"&&(m="Try to initialize / solve your model and then call report_numerical_issues()"),u=="numerical"&&(m="Try to initialize / solve your model and then call report_numerical_issues()"))}async function y(S){try{if(!S)return;s(S);let x=S.replace("(","").replace(")","");const D=`http://localhost:${t}/run_diagnostic`,E=new URL(window.location.href).searchParams.get("id"),C={function_name:x,id:E},O=await Zn.put(D,C);console.log(O);const N=O.data;a(L=>{const U={...L};return U[S]||(U[S]=[]),U[S]&&U[S].push(N),U})}catch(x){ir("diagnosticFNRunError",!1,x.response.data.error),console.log(x);const D=document.getElementById("diagnosticsRunner_content_container");if(D){const k=` +
${x.response.data.error}
+                    
+ `;D.innerHTML+=k}}}return P.useEffect(()=>{for(let S=0;S{const k=D.map(E=>E);return k.push(x),k})}},[v]),T.jsxs("div",{className:`${Q.diagnostics_display_main_container}`,children:[T.jsxs("div",{className:Q.diagnostic_display_each_section_container,children:[T.jsx("p",{className:Q.diagnostic_display_section_title,children:"Model Statistics"}),u=="structural"||!u?d:h]}),T.jsxs("div",{className:Q.diagnostic_display_each_section_container,children:[T.jsxs("div",{className:Q.diagnostics_warning_caution_main_container,children:[T.jsxs("div",{className:`${Q.diagnostic_display_each_severity_title} ${Q.warning}`,children:["WARNINGS",T.jsx("span",{children:_})]}),T.jsx("div",{className:Q.diagnostics_warning_caution_display_container,children:p})]}),T.jsxs("div",{className:Q.diagnostics_warning_caution_main_container,children:[T.jsxs("div",{className:`${Q.diagnostic_display_each_severity_title} ${Q.caution}`,children:["CAUTIONS",T.jsx("span",{children:b})]}),T.jsx("div",{className:Q.diagnostics_warning_caution_display_container,children:w})]})]}),T.jsxs("div",{className:Q.diagnostic_display_each_section_container,children:[m!="Loading suggested next step..."&&T.jsx("p",{className:Q.diagnostic_display_section_title,children:"Suggested next steps:"}),T.jsx("div",{className:Q.diagnostic_display_diagnostic_content_container,children:m})]})]})}function cH(e){let t=e.currentTarget,n=t.parentElement.querySelector(".function_name");if(!n){console.error("There is an issue with click copy next step function");return}const r=n.textContent||"";navigator.clipboard.writeText(r).then(()=>{let a;a?clearTimeout(a):(t.innerText="Copied",a=setTimeout(()=>{t.innerText="Copy"},900))}).catch(a=>{console.error("Failed to copy text: ",a)})}function fH(){let{server_port:e,diagnosticsRefreshState:t}=P.useContext(it);const[n,r]=P.useState(null),[a,i]=P.useState("structural"),o=s=>{i(s)};return P.useEffect(()=>{const u=`http://localhost:49999/diagnostics?id=${new URL(window.location.href).searchParams.get("id")}`;(async d=>{try{const w=(await Zn.get(d)).data;ir("diagnosticRefresh",!0),r(w)}catch(p){console.error("Fetch diagnostic data error",p),ir("diagnosticRefresh",!1)}})(u)},[t]),T.jsxs(T.Fragment,{children:[T.jsx(Vz,{diagnosticData:n,toggleIssue:o,whichIssue:a}),T.jsx(uH,{diagnosticData:n,whichIssue:a})]})}const dH="_diagnosticsRunner_content_container_151kk_1",Lv={diagnosticsRunner_content_container:dH};function hH(){const{diagnosticsNextStepsOutputState:e,diagnosticsRunnerDisplayState:t,diagnosticsHistoryState:n,setDiagnosticsHistory:r}=P.useContext(it);let a="",i=0;return!t||t=="default"?a="Please select a function to check diagnostics result!":!e[t]||e[t][0].diagnostics_runner_result.length==0?a="Please run diagnostics function first!":e[t]&&e[t]&&(i=e[t].length,a=e[t].map((o,s)=>T.jsx(Sn.Fragment,{children:T.jsx("pre",{id:`diagnostics_log_${s}`,className:Lv.diagnostics_runner_output_pre,children:o.diagnostics_runner_result})},`diagnosticsRunnerDisplayContentContainerContent${s}`))),P.useEffect(()=>{r(o=>i)},[i]),T.jsx("div",{className:Lv.diagnosticsRunner_content_container,id:"diagnosticsRunner_content_container",style:{overflowY:"scroll"},children:a})}const pH="_diagnostics_log_header_history_btn_container_1ynrk_1",gH="_diagnostics_log_header_history_btn_1ynrk_1",mH={diagnostics_log_header_history_btn_container:pH,diagnostics_log_header_history_btn:gH};function vH(){const{diagnosticsHistoryState:e,setDiagnosticsHistory:t,viewInLogPanel:n}=P.useContext(it),[r,a]=P.useState(0),[i,o]=P.useState({hasPrevHistory:!1,hasNextHistory:!1});function s(){r>0&&a(d=>{let p=d;return p-=1,p}),window.location.hash=`#diagnostics_log_${r-1}`}function l(){r{let p=d;return p+=1,p})),window.location.hash=`#diagnostics_log_${r}`}function u(){if(r-1<=0){o(d=>{const p={...d};return p.hasPrevHistory=!1,p});return}if(r-1>=0){o(d=>{const p={...d};return p.hasPrevHistory=!0,p});return}}function h(){if(r==e){o(d=>{const p={...d};return p.hasNextHistory=!1,p});return}if(r{const p={...d};return p.hasNextHistory=!0,p});return}}return P.useEffect(()=>{window.location.hash=`diagnostics_log_${r}`},[n]),P.useEffect(()=>{u(),h(),a(()=>e),window.location.hash=`diagnostics_log_${r-1}`},[e]),P.useEffect(()=>{u(),h(),window.location.hash=`diagnostics_log_${r-1}`},[r]),T.jsxs("div",{id:"diagnostics_log_panel",className:`${mH.diagnostics_log_header_history_btn_container}`,children:[T.jsx(bt,{minimal:!0,disabled:!i.hasPrevHistory,onClick:()=>s(),children:T.jsx(ze,{icon:Be.UNDO,size:20})}),T.jsx(bt,{minimal:!0,disabled:!i.hasNextHistory,onClick:()=>l(),children:T.jsx(ze,{icon:Be.REDO,size:20})})]})}function Mv(){return T.jsx(T.Fragment,{children:T.jsx("div",{id:"stream-table",className:"idaes-container",style:{display:"block"},children:T.jsx("div",{id:"stream-table-container",className:"pd-md tableContainer",children:T.jsx("div",{id:"stream-table-data",className:"ag-theme-alpine"})})})})}const yH=()=>{const{panelState:e,setPanelState:t,fvHeaderState:n,setFvHeaderState:r,diagnosticsRunFnNameListState:a,setDiagnosticsRunnerDisplayState:i,viewInLogPanel:o,setViewInLogPanel:s,setDiagnosticsRefreshState:l}=P.useContext(it),u=n.isShowSteamName,h=n.isShowLabels,[d,p]=P.useState(E());function w(O){Object.keys(o).includes(O)&&s(N=>{const L={...N};return Object.keys(L).forEach(U=>{U==O?L[U]=!0:L[U]=!1}),L})}function m(){return e.diagnostics.show===!0&&o.diagnosticsLogs?T.jsx(hH,{}):e.diagnostics.show===!0&&o.streamTable===!0?T.jsx(Mv,{}):e.diagnostics.show===!1?T.jsx(Mv,{}):T.jsx(T.Fragment,{children:"Bottom panel display error cause by diagnosticsRunnerOrStreamTableDisplay"})}const _={components:T.jsx(jz,{}),flowsheet:T.jsx(zz,{}),diagnostics:T.jsx(fH,{}),streamTableAndDiagnostics:m()},b={components:"Components",flowsheet:"Diagram",diagnostics:"Diagnostics",diagnosticsRunner:"Diagnostics Runner",streamTable:"Stream Table",streamTableAndDiagnostics:"Diagnostics Logs"},v=(O,N)=>(jv(O,y,S,u,h,a,i,o,l),T.jsx(T.Fragment,{children:T.jsx(xf.MosaicWindow,{path:N,createNode:()=>"new",title:b[O],renderToolbar:(L,U)=>T.jsxs("div",{className:"mosaic_customized_toolbar_header",children:[T.jsx("div",{className:"mosaic_customized_toolbar_title_container",children:b[O]==b.streamTableAndDiagnostics?T.jsxs(T.Fragment,{children:[T.jsx("p",{onClick:()=>w("streamTable"),className:` + ${o.streamTable?"mosaic_header_toolbar_title_activate":"mosaic_header_toolbar_title_deactivate"} + mosaic_header_toolbar_title diagnostics_runner_panel_title + `,children:"Stream Table"}),T.jsx("p",{onClick:()=>{e.diagnostics.show&&w("diagnosticsLogs")},className:` + ${o.diagnosticsLogs?"mosaic_header_toolbar_title_activate":"mosaic_header_toolbar_title_deactivate"} + + ${!e.diagnostics.show&&"mosaic_header_tool_bar_fully_deactivate"} + mosaic_header_toolbar_title diagnostics_runner_panel_title + `,children:b[O]})]}):T.jsx("p",{className:"mosaic_header_toolbar_title",children:b[O]})}),T.jsx("div",{className:"mosaic_customized_toolbar_btn_container",children:jv(O,y,S,u,h,a,i,o,l)})]}),children:_[O]})}));function y(){r(O=>({...O,isShowSteamName:!O.isShowSteamName}))}function S(){r(O=>({...O,isShowLabels:!O.isShowLabels}))}function x(O){e.diagnostics.show&&D(O),localStorage.setItem("mosaicLayout",JSON.stringify(O)),p(()=>O)}function D(O){let N,L=localStorage.getItem("diagnosticsPanelParams");L?N=JSON.parse(L):N=k(),Object.keys(O).forEach(U=>{O[U]=="diagnostics"&&(N.direction=O.direction,N.splitPercentage=O.splitPercentage,N.diagnosticsPanelLocationInItem=U,N.diagnosticsPanelLocationInObj=void 0,N.diagnosticsPanelStayWith=void 0),typeof O[U]=="object"&&Object.keys(O[U]).forEach(H=>{if(O[U][H]=="diagnostics"){N.direction=O[U].direction,N.splitPercentage=O[U].splitPercentage;const lt=H=="first"?"second":"first";N.diagnosticsPanelStayWith=O[U][lt],N.diagnosticsPanelLocationInItem=U,N.diagnosticsPanelLocationInObj=H}})}),localStorage.setItem("diagnosticsPanelParams",JSON.stringify(N))}function k(){let O=localStorage.getItem("diagnosticsPanelParams");if(O)return JSON.parse(O);{const N={direction:"row",diagnosticsPanelParamsLocationInItem:"first",diagnosticsPanelLocationInObj:"second",diagnosticsPanelStayWith:"flowsheet",splitPercentage:55};return localStorage.setItem("diagnosticsPanelParams",JSON.stringify(N)),N}}function E(){let O;return e.diagnostics.show&&(O={direction:"column",first:{direction:"row",first:"flowsheet",second:"diagnostics",splitPercentage:55},second:"streamTableAndDiagnostics",splitPercentage:60}),e.diagnostics.show||(O={direction:"column",first:"flowsheet",second:"streamTableAndDiagnostics",splitPercentage:60}),O}function C(){try{if(k(),e.diagnostics.show){let O=JSON.parse(JSON.stringify(d));if(!JSON.stringify(d).includes("diagnostics")){localStorage.getItem("diagnosticsPanelParams")||k();const N=localStorage.getItem("diagnosticsPanelParams");if(N){let L=JSON.parse(N);if(!L.diagnosticsPanelLocationInObj){const U=L.diagnosticsPanelLocationInItem=="first"?"second":"first",H={direction:O.direction?O.direction:"row",splitPercentage:O.splitPercentage?O.splitPercentage:55,first:O.first?O.first:"flowsheet",second:O.second?O.second:"streamTableAndDiagnostics"};O.direction=L.direction?L.direction:"column",O.splitPercentage=L.splitPercentage?L.splitPercentage:55,O[L.diagnosticsPanelLocationInItem]="diagnostics",O[U]=H}if(L.diagnosticsPanelLocationInObj){const U=L.diagnosticsPanelStayWith?L.diagnosticsPanelStayWith:"flowsheet";let H=Object.keys(O).find(Or=>{if(O[Or]==U)return Or});const lt=U=="flowsheet"?"streamTableAndDiagnostics":"flowsheet",on=H=="first"?"second":"first";H||(H="first");const Ut={direction:L.direction?L.direction:"column",splitPercentage:O.splitPercentage?O.splitPercentage:55};Ut[H]=U,H==L.diagnosticsPanelLocationInObj&&(H=="first"?L.diagnosticsPanelLocationInObj="second":L.diagnosticsPanelLocationInObj="first"),Ut[L.diagnosticsPanelLocationInObj]="diagnostics",O=JSON.parse(JSON.stringify(O)),O[H]=Ut,O[on]=lt}}}return O}if(!e.diagnostics.show){let O=JSON.stringify(d),N=JSON.parse(O);return Object.keys(N).forEach(L=>{if(N[L]=="diagnostics"){delete N[L];const U=L=="first"?"second":"first",H=JSON.parse(JSON.stringify(N[U]));N.first=H.first,N.second=H.second,N.direction=H.direction,N.splitPercentage=H.splitPercentage}}),Object.keys(N).forEach(L=>{typeof N[L]=="object"&&Object.keys(N[L]).forEach(U=>{N[L][U]=="diagnostics"&&(delete N[L][U],N[L].first?N[L]=N[L].first:N[L]=N[L].second)})}),N}}catch{console.log("error in get mosaic layout rest layout"),E()}}return P.useEffect(()=>{p(()=>{const O=localStorage.getItem("mosaicLayout");return O?JSON.parse(O):E()})},[e.diagnostics.show]),T.jsx(xf.Mosaic,{renderTile:v,onChange:x,initialValue:C()})};function jv(e,t,n,r,a,i,o,s,l){switch(e){case"components":return T.jsxs("div",{className:"mosaic_toolbar_btn_container",children:[T.jsx(bt,{minimal:!0,children:T.jsx(ze,{icon:Be.MINIMIZE,size:20})}),T.jsx(bt,{minimal:!0,children:T.jsx(ze,{icon:Be.MAXIMIZE,size:20})}),T.jsx(bt,{minimal:!0,children:T.jsx(ze,{icon:Be.CROSS,size:20})})]});case"flowsheet":return T.jsxs("div",{className:"mosaic_toolbar_btn_container",children:[T.jsx(bt,{id:"zoom-in-btn",minimal:!0,children:T.jsx(ze,{icon:Be.ZOOM_IN,size:20})}),T.jsx(bt,{id:"zoom-out-btn",minimal:!0,children:T.jsx(ze,{icon:Be.ZOOM_OUT,size:20})}),T.jsx(bt,{id:"zoom-to-fit",minimal:!0,children:T.jsx(ze,{icon:Be.ZOOM_TO_FIT,size:20})}),T.jsxs(bt,{className:"mosaic_flowsheet_header_view",minimal:!0,children:[T.jsx(ze,{icon:Be.EYE_OPEN,size:20}),T.jsxs("ul",{className:"mosaic_dropdown_view",children:[T.jsxs("li",{id:"stream-names-toggle",onClick:t,"data-toggle":`${r}`,children:[r?T.jsx(Fe,{icon:Lg,className:"mosaic_toolbar_diagram_view_icon_stroke_only"}):T.jsx(Fe,{icon:Mg,className:"mosaic_toolbar_diagram_view_icon_stroke_only"}),T.jsx("span",{children:"Stream Name"})]}),T.jsxs("li",{id:"show-label-toggle",onClick:n,"data-toggle":a?"false":"true",children:[a?T.jsx(Fe,{icon:Lg,className:"mosaic_toolbar_diagram_view_icon_stroke_only"}):T.jsx(Fe,{icon:Mg,className:"mosaic_toolbar_diagram_view_icon_stroke_only"}),T.jsx("span",{children:"Labels"})]})]})]}),T.jsxs(bt,{className:"mosaic_flowsheet_header_download",minimal:!0,children:[T.jsx(ze,{icon:Be.BRING_DATA,size:20}),T.jsxs("ul",{id:"flowsheet_component_header_dropdown_container",className:"mosaic_dropdown_download",children:[T.jsx("li",{id:"headerExportImageBtn",children:"Export PNG"}),T.jsx("li",{id:"headerExportSvgBtn",children:"Export SVG"})]})]})]});case"diagnostics":let u=function(){l(p=>!p)};return T.jsxs("div",{className:"mosaic_toolbar_btn_container",children:[T.jsx("p",{className:"mosaic_diagnostic_toolbar_content",children:"BLOCK: FLOWSHEET"}),T.jsxs("div",{className:"mosaic_toolbar_btn_icon_with_text clickable_btn",onClick:()=>u(),children:[T.jsx(ze,{icon:Be.REFRESH,size:20}),T.jsx("span",{className:"mosaic_toolbar_btn_icon_with_text_text",children:"Refresh"})]})]});case"streamTable":return T.jsx("div",{className:"mosaic_toolbar_btn_container",children:T.jsx(Av,{})});case"streamTableAndDiagnostics":return T.jsxs("div",{className:"mosaic_toolbar_btn_container",children:[!s.diagnosticsLogs&&T.jsx(Av,{}),s.diagnosticsLogs&&T.jsx(vH,{})]});case"diagnosticsRunner":let h=function(p){o(p.currentTarget.value)};const d=i.map((p,w)=>T.jsx("option",{value:`${p}`,children:p},`diagnosticsRunnerSelection${p}`));return T.jsx("div",{className:"mosaic_toolbar_btn_container",children:T.jsxs("select",{name:"diagnosticsRunnerSelection",id:"",className:"mosaic_diagnosticsRunner_select",onChange:h,children:[T.jsx("option",{value:"default",children:"Select a function"}),d]})});default:return T.jsx(T.Fragment,{})}}function wH(e){return e.messageType&&e.messageType,T.jsx(T.Fragment,{children:T.jsx("div",{className:os.message_bar_container,id:"messageBarContainer"})})}const _H="_flowsheetWrapper_11hj9_1",SH={flowsheetWrapper:_H};function bH(){let{server_port:e,fv_id:t,panelState:n,viewInLogPanel:r}=P.useContext(it);const a=n.fv.show,i=n.diagnostics.show,o=n.streamTable.show;return P.useEffect(()=>{let s;return s?s=void 0:(e=="5173"?e=8e3:e=e,s=new MO(t,e,a,!1,o,r)),()=>{s&&typeof s.cleanToolBarEvent=="function"&&s.cleanToolBarEvent()}},[a,o,i,r]),T.jsxs("div",{id:"flowsheet-wrapper",className:SH.flowsheetWrapper,children:[T.jsx(yH,{}),T.jsx(wH,{})]})}function EH(){return T.jsxs("main",{id:"main",className:"main",children:[T.jsx(uC,{}),T.jsx(bH,{})]})}localStorage.getItem("appSetting")||localStorage.setItem("appSetting","{}");dc.createRoot(document.getElementById("root")).render(T.jsx(Nb,{children:T.jsx(EH,{})}));export{Le as I,Yr as _,Xr as a,xv as b,fz as p}; diff --git a/idaes_ui/fv/static/assets/index-c6225f50.js b/idaes_ui/fv/static/assets/index-c6225f50.js new file mode 100644 index 00000000..f0b77cbe --- /dev/null +++ b/idaes_ui/fv/static/assets/index-c6225f50.js @@ -0,0 +1,854 @@ +var nS=Object.defineProperty;var rS=(e,t,n)=>t in e?nS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var z=(e,t,n)=>(rS(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();var $=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Bf(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),n}var Fv={exports:{}},rl={},Iv={exports:{}},Y={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ri=Symbol.for("react.element"),aS=Symbol.for("react.portal"),iS=Symbol.for("react.fragment"),oS=Symbol.for("react.strict_mode"),sS=Symbol.for("react.profiler"),lS=Symbol.for("react.provider"),uS=Symbol.for("react.context"),cS=Symbol.for("react.forward_ref"),fS=Symbol.for("react.suspense"),dS=Symbol.for("react.memo"),hS=Symbol.for("react.lazy"),Zh=Symbol.iterator;function pS(e){return e===null||typeof e!="object"?null:(e=Zh&&e[Zh]||e["@@iterator"],typeof e=="function"?e:null)}var Uv={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},zv=Object.assign,Hv={};function pa(e,t,n){this.props=e,this.context=t,this.refs=Hv,this.updater=n||Uv}pa.prototype.isReactComponent={};pa.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};pa.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Wv(){}Wv.prototype=pa.prototype;function Zf(e,t,n){this.props=e,this.context=t,this.refs=Hv,this.updater=n||Uv}var ed=Zf.prototype=new Wv;ed.constructor=Zf;zv(ed,pa.prototype);ed.isPureReactComponent=!0;var ep=Array.isArray,Gv=Object.prototype.hasOwnProperty,td={current:null},Vv={key:!0,ref:!0,__self:!0,__source:!0};function qv(e,t,n){var r,a={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Gv.call(t,r)&&!Vv.hasOwnProperty(r)&&(a[r]=t[r]);var s=arguments.length-2;if(s===1)a.children=n;else if(1>>1,Se=F[he];if(0>>1;hea(lu,q))qna(so,lu)?(F[he]=so,F[qn]=q,he=qn):(F[he]=lu,F[Vn]=q,he=Vn);else if(qna(so,q))F[he]=so,F[qn]=q,he=qn;else break e}}return V}function a(F,V){var q=F.sortIndex-V.sortIndex;return q!==0?q:F.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],u=[],h=1,d=null,p=3,w=!1,m=!1,_=!1,b=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(F){for(var V=n(u);V!==null;){if(V.callback===null)r(u);else if(V.startTime<=F)r(u),V.sortIndex=V.expirationTime,t(l,V);else break;V=n(u)}}function x(F){if(_=!1,S(F),!m)if(n(l)!==null)m=!0,Ut(D);else{var V=n(u);V!==null&&Or(x,V.startTime-F)}}function D(F,V){m=!1,_&&(_=!1,v(C),C=-1),w=!0;var q=p;try{for(S(V),d=n(l);d!==null&&(!(d.expirationTime>V)||F&&!L());){var he=d.callback;if(typeof he=="function"){d.callback=null,p=d.priorityLevel;var Se=he(d.expirationTime<=V);V=e.unstable_now(),typeof Se=="function"?d.callback=Se:d===n(l)&&r(l),S(V)}else r(l);d=n(l)}if(d!==null)var oo=!0;else{var Vn=n(u);Vn!==null&&Or(x,Vn.startTime-V),oo=!1}return oo}finally{d=null,p=q,w=!1}}var k=!1,E=null,C=-1,O=5,N=-1;function L(){return!(e.unstable_now()-NF||125he?(F.sortIndex=q,t(u,F),n(l)===null&&F===n(u)&&(_?(v(C),C=-1):_=!0,Or(x,q-he))):(F.sortIndex=Se,t(l,F),m||w||(m=!0,Ut(D))),F},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(F){var V=p;return function(){var q=p;p=V;try{return F.apply(this,arguments)}finally{p=q}}}})(Jv);Xv.exports=Jv;var CS=Xv.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Qv=P,nt=CS;function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hc=Object.prototype.hasOwnProperty,OS=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,np={},rp={};function xS(e){return hc.call(rp,e)?!0:hc.call(np,e)?!1:OS.test(e)?rp[e]=!0:(np[e]=!0,!1)}function PS(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function NS(e,t,n,r){if(t===null||typeof t>"u"||PS(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ge(e,t,n,r,a,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){xe[e]=new Ge(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];xe[t]=new Ge(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){xe[e]=new Ge(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){xe[e]=new Ge(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){xe[e]=new Ge(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){xe[e]=new Ge(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){xe[e]=new Ge(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){xe[e]=new Ge(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){xe[e]=new Ge(e,5,!1,e.toLowerCase(),null,!1,!1)});var rd=/[\-:]([a-z])/g;function ad(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(rd,ad);xe[t]=new Ge(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(rd,ad);xe[t]=new Ge(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(rd,ad);xe[t]=new Ge(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){xe[e]=new Ge(e,1,!1,e.toLowerCase(),null,!1,!1)});xe.xlinkHref=new Ge("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){xe[e]=new Ge(e,1,!1,e.toLowerCase(),null,!0,!0)});function id(e,t,n,r){var a=xe.hasOwnProperty(t)?xe[t]:null;(a!==null?a.type!==0:r||!(2s||a[o]!==i[s]){var l=` +`+a[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{fu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Wa(e):""}function DS(e){switch(e.tag){case 5:return Wa(e.type);case 16:return Wa("Lazy");case 13:return Wa("Suspense");case 19:return Wa("SuspenseList");case 0:case 2:case 15:return e=du(e.type,!1),e;case 11:return e=du(e.type.render,!1),e;case 1:return e=du(e.type,!0),e;default:return""}}function vc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case $r:return"Fragment";case Rr:return"Portal";case pc:return"Profiler";case od:return"StrictMode";case gc:return"Suspense";case mc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ey:return(e.displayName||"Context")+".Consumer";case Zv:return(e._context.displayName||"Context")+".Provider";case sd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ld:return t=e.displayName||null,t!==null?t:vc(e.type)||"Memo";case dn:t=e._payload,e=e._init;try{return vc(e(t))}catch{}}return null}function kS(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return vc(t);case 8:return t===od?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function kn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ny(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function AS(e){var t=ny(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function co(e){e._valueTracker||(e._valueTracker=AS(e))}function ry(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ny(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function gs(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function yc(e,t){var n=t.checked;return ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ip(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=kn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ay(e,t){t=t.checked,t!=null&&id(e,"checked",t,!1)}function wc(e,t){ay(e,t);var n=kn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?_c(e,t.type,n):t.hasOwnProperty("defaultValue")&&_c(e,t.type,kn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function op(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function _c(e,t,n){(t!=="number"||gs(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ga=Array.isArray;function Jr(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=fo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function fi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Qa={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},RS=["Webkit","ms","Moz","O"];Object.keys(Qa).forEach(function(e){RS.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qa[t]=Qa[e]})});function ly(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Qa.hasOwnProperty(e)&&Qa[e]?(""+t).trim():t+"px"}function uy(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,a=ly(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}var $S=ce({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ec(e,t){if(t){if($S[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function Tc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Cc=null;function ud(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Oc=null,Qr=null,Br=null;function up(e){if(e=Mi(e)){if(typeof Oc!="function")throw Error(R(280));var t=e.stateNode;t&&(t=ll(t),Oc(e.stateNode,e.type,t))}}function cy(e){Qr?Br?Br.push(e):Br=[e]:Qr=e}function fy(){if(Qr){var e=Qr,t=Br;if(Br=Qr=null,up(e),t)for(e=0;e>>=0,e===0?32:31-(VS(e)/qS|0)|0}var ho=64,po=4194304;function Va(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ws(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,a=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~a;s!==0?r=Va(s):(i&=o,i!==0&&(r=Va(i)))}else o=n&~a,o!==0?r=Va(o):i!==0&&(r=Va(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&a)&&(a=r&-r,i=t&-t,a>=i||a===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function $i(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ot(t),e[t]=n}function JS(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Za),yp=String.fromCharCode(32),wp=!1;function ky(e,t){switch(e){case"keyup":return T2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ay(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Lr=!1;function O2(e,t){switch(e){case"compositionend":return Ay(t);case"keypress":return t.which!==32?null:(wp=!0,yp);case"textInput":return e=t.data,e===yp&&wp?null:e;default:return null}}function x2(e,t){if(Lr)return e==="compositionend"||!vd&&ky(e,t)?(e=Ny(),Xo=pd=vn=null,Lr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ep(n)}}function My(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?My(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jy(){for(var e=window,t=gs();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=gs(e.document)}return t}function yd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function M2(e){var t=jy(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&My(n.ownerDocument.documentElement,n)){if(r!==null&&yd(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=n.textContent.length,i=Math.min(r.start,a);r=r.end===void 0?i:Math.min(r.end,a),!e.extend&&i>r&&(a=r,r=i,i=a),a=Tp(n,i);var o=Tp(n,r);a&&o&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Mr=null,Ac=null,ti=null,Rc=!1;function Cp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Rc||Mr==null||Mr!==gs(r)||(r=Mr,"selectionStart"in r&&yd(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ti&&vi(ti,r)||(ti=r,r=bs(Ac,"onSelect"),0Ir||(e.current=Ic[Ir],Ic[Ir]=null,Ir--)}function ee(e,t){Ir++,Ic[Ir]=e.current,e.current=t}var An={},Ie=Un(An),Ke=Un(!1),ur=An;function aa(e,t){var n=e.type.contextTypes;if(!n)return An;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in n)a[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Ye(e){return e=e.childContextTypes,e!=null}function Ts(){ie(Ke),ie(Ie)}function Ap(e,t,n){if(Ie.current!==An)throw Error(R(168));ee(Ie,t),ee(Ke,n)}function qy(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var a in r)if(!(a in t))throw Error(R(108,kS(e)||"Unknown",a));return ce({},n,r)}function Cs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||An,ur=Ie.current,ee(Ie,e),ee(Ke,Ke.current),!0}function Rp(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=qy(e,t,ur),r.__reactInternalMemoizedMergedChildContext=e,ie(Ke),ie(Ie),ee(Ie,e)):ie(Ke),ee(Ke,n)}var Wt=null,ul=!1,Ou=!1;function Ky(e){Wt===null?Wt=[e]:Wt.push(e)}function Y2(e){ul=!0,Ky(e)}function zn(){if(!Ou&&Wt!==null){Ou=!0;var e=0,t=B;try{var n=Wt;for(B=1;e>=o,a-=o,qt=1<<32-Ot(t)+a|n<C?(O=E,E=null):O=E.sibling;var N=p(v,E,S[C],x);if(N===null){E===null&&(E=O);break}e&&E&&N.alternate===null&&t(v,E),y=i(N,y,C),k===null?D=N:k.sibling=N,k=N,E=O}if(C===S.length)return n(v,E),se&&Yn(v,C),D;if(E===null){for(;CC?(O=E,E=null):O=E.sibling;var L=p(v,E,N.value,x);if(L===null){E===null&&(E=O);break}e&&E&&L.alternate===null&&t(v,E),y=i(L,y,C),k===null?D=L:k.sibling=L,k=L,E=O}if(N.done)return n(v,E),se&&Yn(v,C),D;if(E===null){for(;!N.done;C++,N=S.next())N=d(v,N.value,x),N!==null&&(y=i(N,y,C),k===null?D=N:k.sibling=N,k=N);return se&&Yn(v,C),D}for(E=r(v,E);!N.done;C++,N=S.next())N=w(E,v,C,N.value,x),N!==null&&(e&&N.alternate!==null&&E.delete(N.key===null?C:N.key),y=i(N,y,C),k===null?D=N:k.sibling=N,k=N);return e&&E.forEach(function(U){return t(v,U)}),se&&Yn(v,C),D}function b(v,y,S,x){if(typeof S=="object"&&S!==null&&S.type===$r&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case uo:e:{for(var D=S.key,k=y;k!==null;){if(k.key===D){if(D=S.type,D===$r){if(k.tag===7){n(v,k.sibling),y=a(k,S.props.children),y.return=v,v=y;break e}}else if(k.elementType===D||typeof D=="object"&&D!==null&&D.$$typeof===dn&&Up(D)===k.type){n(v,k.sibling),y=a(k,S.props),y.ref=Ra(v,k,S),y.return=v,v=y;break e}n(v,k);break}else t(v,k);k=k.sibling}S.type===$r?(y=lr(S.props.children,v.mode,x,S.key),y.return=v,v=y):(x=rs(S.type,S.key,S.props,null,v.mode,x),x.ref=Ra(v,y,S),x.return=v,v=x)}return o(v);case Rr:e:{for(k=S.key;y!==null;){if(y.key===k)if(y.tag===4&&y.stateNode.containerInfo===S.containerInfo&&y.stateNode.implementation===S.implementation){n(v,y.sibling),y=a(y,S.children||[]),y.return=v,v=y;break e}else{n(v,y);break}else t(v,y);y=y.sibling}y=$u(S,v.mode,x),y.return=v,v=y}return o(v);case dn:return k=S._init,b(v,y,k(S._payload),x)}if(Ga(S))return m(v,y,S,x);if(Pa(S))return _(v,y,S,x);So(v,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,y!==null&&y.tag===6?(n(v,y.sibling),y=a(y,S),y.return=v,v=y):(n(v,y),y=Ru(S,v.mode,x),y.return=v,v=y),o(v)):n(v,y)}return b}var oa=t0(!0),n0=t0(!1),ji={},jt=Un(ji),Si=Un(ji),bi=Un(ji);function nr(e){if(e===ji)throw Error(R(174));return e}function xd(e,t){switch(ee(bi,t),ee(Si,e),ee(jt,ji),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:bc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=bc(t,e)}ie(jt),ee(jt,t)}function sa(){ie(jt),ie(Si),ie(bi)}function r0(e){nr(bi.current);var t=nr(jt.current),n=bc(t,e.type);t!==n&&(ee(Si,e),ee(jt,n))}function Pd(e){Si.current===e&&(ie(jt),ie(Si))}var le=Un(0);function ks(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var xu=[];function Nd(){for(var e=0;en?n:4,e(!0);var r=Pu.transition;Pu.transition={};try{e(!1),t()}finally{B=n,Pu.transition=r}}function w0(){return yt().memoizedState}function B2(e,t,n){var r=Pn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},_0(e))S0(t,n);else if(n=Qy(e,t,n,r),n!==null){var a=He();xt(n,e,r,a),b0(n,t,r)}}function Z2(e,t,n){var r=Pn(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(_0(e))S0(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,s=i(o,n);if(a.hasEagerState=!0,a.eagerState=s,Nt(s,o)){var l=t.interleaved;l===null?(a.next=a,Cd(t)):(a.next=l.next,l.next=a),t.interleaved=a;return}}catch{}finally{}n=Qy(e,t,a,r),n!==null&&(a=He(),xt(n,e,r,a),b0(n,t,r))}}function _0(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function S0(e,t){ni=As=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function b0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,fd(e,n)}}var Rs={readContext:vt,useCallback:Ne,useContext:Ne,useEffect:Ne,useImperativeHandle:Ne,useInsertionEffect:Ne,useLayoutEffect:Ne,useMemo:Ne,useReducer:Ne,useRef:Ne,useState:Ne,useDebugValue:Ne,useDeferredValue:Ne,useTransition:Ne,useMutableSource:Ne,useSyncExternalStore:Ne,useId:Ne,unstable_isNewReconciler:!1},eb={readContext:vt,useCallback:function(e,t){return At().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:Hp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Zo(4194308,4,p0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Zo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Zo(4,2,e,t)},useMemo:function(e,t){var n=At();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=At();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=B2.bind(null,ue,e),[r.memoizedState,e]},useRef:function(e){var t=At();return e={current:e},t.memoizedState=e},useState:zp,useDebugValue:$d,useDeferredValue:function(e){return At().memoizedState=e},useTransition:function(){var e=zp(!1),t=e[0];return e=Q2.bind(null,e[1]),At().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ue,a=At();if(se){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),Ee===null)throw Error(R(349));fr&30||o0(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,Hp(l0.bind(null,r,i,e),[e]),r.flags|=2048,Ci(9,s0.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=At(),t=Ee.identifierPrefix;if(se){var n=Kt,r=qt;n=(r&~(1<<32-Ot(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ei++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Rt]=t,e[_i]=r,k0(e,t,!1,!1),t.stateNode=e;e:{switch(o=Tc(n,r),n){case"dialog":te("cancel",e),te("close",e),a=r;break;case"iframe":case"object":case"embed":te("load",e),a=r;break;case"video":case"audio":for(a=0;aua&&(t.flags|=128,r=!0,$a(i,!1),t.lanes=4194304)}else{if(!r)if(e=ks(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),$a(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!se)return De(t),null}else 2*pe()-i.renderingStartTime>ua&&n!==1073741824&&(t.flags|=128,r=!0,$a(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=pe(),t.sibling=null,n=le.current,ee(le,r?n&1|2:n&1),t):(De(t),null);case 22:case 23:return Ud(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ze&1073741824&&(De(t),t.subtreeFlags&6&&(t.flags|=8192)):De(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function lb(e,t){switch(_d(t),t.tag){case 1:return Ye(t.type)&&Ts(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return sa(),ie(Ke),ie(Ie),Nd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Pd(t),null;case 13:if(ie(le),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));ia()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ie(le),null;case 4:return sa(),null;case 10:return Td(t.type._context),null;case 22:case 23:return Ud(),null;case 24:return null;default:return null}}var Eo=!1,Me=!1,ub=typeof WeakSet=="function"?WeakSet:Set,j=null;function Wr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){fe(e,t,r)}else n.current=null}function Qc(e,t,n){try{n()}catch(r){fe(e,t,r)}}var Qp=!1;function cb(e,t){if($c=_s,e=jy(),yd(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,s=-1,l=-1,u=0,h=0,d=e,p=null;t:for(;;){for(var w;d!==n||a!==0&&d.nodeType!==3||(s=o+a),d!==i||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(w=d.firstChild)!==null;)p=d,d=w;for(;;){if(d===e)break t;if(p===n&&++u===a&&(s=o),p===i&&++h===r&&(l=o),(w=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=w}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Lc={focusedElem:e,selectionRange:n},_s=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var _=m.memoizedProps,b=m.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?_:St(t.type,_),b);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(x){fe(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return m=Qp,Qp=!1,m}function ri(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,i!==void 0&&Qc(t,n,i)}a=a.next}while(a!==r)}}function dl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Bc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function $0(e){var t=e.alternate;t!==null&&(e.alternate=null,$0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Rt],delete t[_i],delete t[Fc],delete t[q2],delete t[K2])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function L0(e){return e.tag===5||e.tag===3||e.tag===4}function Bp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||L0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Zc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Es));else if(r!==4&&(e=e.child,e!==null))for(Zc(e,t,n),e=e.sibling;e!==null;)Zc(e,t,n),e=e.sibling}function ef(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ef(e,t,n),e=e.sibling;e!==null;)ef(e,t,n),e=e.sibling}var Ce=null,Et=!1;function sn(e,t,n){for(n=n.child;n!==null;)M0(e,t,n),n=n.sibling}function M0(e,t,n){if(Mt&&typeof Mt.onCommitFiberUnmount=="function")try{Mt.onCommitFiberUnmount(al,n)}catch{}switch(n.tag){case 5:Me||Wr(n,t);case 6:var r=Ce,a=Et;Ce=null,sn(e,t,n),Ce=r,Et=a,Ce!==null&&(Et?(e=Ce,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ce.removeChild(n.stateNode));break;case 18:Ce!==null&&(Et?(e=Ce,n=n.stateNode,e.nodeType===8?Cu(e.parentNode,n):e.nodeType===1&&Cu(e,n),gi(e)):Cu(Ce,n.stateNode));break;case 4:r=Ce,a=Et,Ce=n.stateNode.containerInfo,Et=!0,sn(e,t,n),Ce=r,Et=a;break;case 0:case 11:case 14:case 15:if(!Me&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var i=a,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Qc(n,t,o),a=a.next}while(a!==r)}sn(e,t,n);break;case 1:if(!Me&&(Wr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){fe(n,t,s)}sn(e,t,n);break;case 21:sn(e,t,n);break;case 22:n.mode&1?(Me=(r=Me)||n.memoizedState!==null,sn(e,t,n),Me=r):sn(e,t,n);break;default:sn(e,t,n)}}function Zp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ub),t.forEach(function(r){var a=wb.bind(null,e,r);n.has(r)||(n.add(r),r.then(a,a))})}}function _t(e,t){var n=t.deletions;if(n!==null)for(var r=0;ra&&(a=o),r&=~i}if(r=a,r=pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*db(r/1960))-r,10e?16:e,yn===null)var r=!1;else{if(e=yn,yn=null,Ms=0,J&6)throw Error(R(331));var a=J;for(J|=4,j=e.current;j!==null;){var i=j,o=i.child;if(j.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lpe()-Fd?sr(e,0):jd|=n),Xe(e,t)}function G0(e,t){t===0&&(e.mode&1?(t=po,po<<=1,!(po&130023424)&&(po=4194304)):t=1);var n=He();e=Bt(e,t),e!==null&&($i(e,t,n),Xe(e,n))}function yb(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),G0(e,n)}function wb(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),G0(e,n)}var V0;V0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ke.current)qe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return qe=!1,ob(e,t,n);qe=!!(e.flags&131072)}else qe=!1,se&&t.flags&1048576&&Yy(t,xs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;es(e,t),e=t.pendingProps;var a=aa(t,Ie.current);ea(t,n),a=kd(null,t,r,e,a,n);var i=Ad();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ye(r)?(i=!0,Cs(t)):i=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,Od(t),a.updater=cl,t.stateNode=a,a._reactInternals=t,Gc(t,r,e,n),t=Kc(null,t,r,!0,i,n)):(t.tag=0,se&&i&&wd(t),Ue(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(es(e,t),e=t.pendingProps,a=r._init,r=a(r._payload),t.type=r,a=t.tag=Sb(r),e=St(r,e),a){case 0:t=qc(null,t,r,e,n);break e;case 1:t=Yp(null,t,r,e,n);break e;case 11:t=qp(null,t,r,e,n);break e;case 14:t=Kp(null,t,r,St(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:St(r,a),qc(e,t,r,a,n);case 1:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:St(r,a),Yp(e,t,r,a,n);case 3:e:{if(P0(t),e===null)throw Error(R(387));r=t.pendingProps,i=t.memoizedState,a=i.element,By(e,t),Ds(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){a=la(Error(R(423)),t),t=Xp(e,t,r,n,a);break e}else if(r!==a){a=la(Error(R(424)),t),t=Xp(e,t,r,n,a);break e}else for(et=Cn(t.stateNode.containerInfo.firstChild),tt=t,se=!0,Tt=null,n=n0(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ia(),r===a){t=Zt(e,t,n);break e}Ue(e,t,r,n)}t=t.child}return t;case 5:return r0(t),e===null&&zc(t),r=t.type,a=t.pendingProps,i=e!==null?e.memoizedProps:null,o=a.children,Mc(r,a)?o=null:i!==null&&Mc(r,i)&&(t.flags|=32),x0(e,t),Ue(e,t,o,n),t.child;case 6:return e===null&&zc(t),null;case 13:return N0(e,t,n);case 4:return xd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=oa(t,null,r,n):Ue(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:St(r,a),qp(e,t,r,a,n);case 7:return Ue(e,t,t.pendingProps,n),t.child;case 8:return Ue(e,t,t.pendingProps.children,n),t.child;case 12:return Ue(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,i=t.memoizedProps,o=a.value,ee(Ps,r._currentValue),r._currentValue=o,i!==null)if(Nt(i.value,o)){if(i.children===a.children&&!Ke.current){t=Zt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Yt(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var h=u.pending;h===null?l.next=l:(l.next=h.next,h.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Hc(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(R(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Hc(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ue(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,ea(t,n),a=vt(a),r=r(a),t.flags|=1,Ue(e,t,r,n),t.child;case 14:return r=t.type,a=St(r,t.pendingProps),a=St(r.type,a),Kp(e,t,r,a,n);case 15:return C0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:St(r,a),es(e,t),t.tag=1,Ye(r)?(e=!0,Cs(t)):e=!1,ea(t,n),e0(t,r,a),Gc(t,r,a,n),Kc(null,t,r,!0,e,n);case 19:return D0(e,t,n);case 22:return O0(e,t,n)}throw Error(R(156,t.tag))};function q0(e,t){return yy(e,t)}function _b(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pt(e,t,n,r){return new _b(e,t,n,r)}function Hd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Sb(e){if(typeof e=="function")return Hd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===sd)return 11;if(e===ld)return 14}return 2}function Nn(e,t){var n=e.alternate;return n===null?(n=pt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function rs(e,t,n,r,a,i){var o=2;if(r=e,typeof e=="function")Hd(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case $r:return lr(n.children,a,i,t);case od:o=8,a|=8;break;case pc:return e=pt(12,n,t,a|2),e.elementType=pc,e.lanes=i,e;case gc:return e=pt(13,n,t,a),e.elementType=gc,e.lanes=i,e;case mc:return e=pt(19,n,t,a),e.elementType=mc,e.lanes=i,e;case ty:return pl(n,a,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Zv:o=10;break e;case ey:o=9;break e;case sd:o=11;break e;case ld:o=14;break e;case dn:o=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=pt(o,n,t,a),t.elementType=e,t.type=r,t.lanes=i,t}function lr(e,t,n,r){return e=pt(7,e,r,t),e.lanes=n,e}function pl(e,t,n,r){return e=pt(22,e,r,t),e.elementType=ty,e.lanes=n,e.stateNode={isHidden:!1},e}function Ru(e,t,n){return e=pt(6,e,null,t),e.lanes=n,e}function $u(e,t,n){return t=pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function bb(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=pu(0),this.expirationTimes=pu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pu(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Wd(e,t,n,r,a,i,o,s,l){return e=new bb(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=pt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Od(i),e}function Eb(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(J0)}catch(e){console.error(e)}}J0(),Yv.exports=rt;var Q0=Yv.exports,sg=Q0;dc.createRoot=sg.createRoot,dc.hydrateRoot=sg.hydrateRoot;function Pb(){{const e=window.location.port,n=new URLSearchParams(window.location.search).get("id");return{server_port:e,fv_id:n}}}const it=P.createContext({});function Nb({children:e}){const t=Db(),{server_port:n,fv_id:r}=Pb()??{server_port:"49999",fv_id:"sample_visualization"},[a,i]=P.useState({}),[o,s]=P.useState({fvWrapper:{panelName:"fvWrapper",show:!0,size:{maxSize:100,defaultSize:70}},fv:{panelName:"Flowsheet",show:!0,size:{minSize:100,defaultSize:70}},diagnostics:{panelName:"Diagnostics",show:t.diagnosticsPanelShow==null?!1:t.diagnosticsPanelShow,size:{minSize:100,defaultSize:70}},diagnosticsLogs:{panelName:"Stream Table",show:!1,size:{maxSize:100,defaultSize:30}},streamTable:{panelName:"Stream Table",show:!0,size:{maxSize:100,defaultSize:30}}}),[l,u]=P.useState({isShowSteamName:!0,isShowLabels:!1}),[h,d]=P.useState({}),[p,w]=P.useState([]),[m,_]=P.useState(""),[b,v]=P.useState(!0),[y,S]=P.useState(0),[x,D]=P.useState({expand:!1,expandState:{}}),[k,E]=P.useState({streamTable:!0,diagnosticsLogs:!1});return T.jsx(it.Provider,{value:{server_port:n,fv_id:r,panelState:o,setPanelState:s,showVariable:a,setShowVariable:i,fvHeaderState:l,setFvHeaderState:u,diagnosticsRunFnNameListState:p,setDiagnosticsRunFnNameListState:w,diagnosticsRefreshState:b,setDiagnosticsRefreshState:v,diagnosticsNextStepsOutputState:h,setDiagnosticsNextStepsOutputState:d,diagnosticsRunnerDisplayState:m,setDiagnosticsRunnerDisplayState:_,diagnosticsHistoryState:y,setDiagnosticsHistory:S,viewInLogPanel:k,setViewInLogPanel:E,variablesExpandState:x,setVariablesExpandState:D},children:e})}function Db(){const e=localStorage.getItem("appSetting");return JSON.parse(e)}function lg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function M(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1;a--){var i=n[a],o=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(r=i)}return oe.head.insertBefore(t,r),e}}var tE="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function ki(){for(var e=12,t="";e-- >0;)t+=tE[Math.random()*62|0];return t}function va(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Bd(e){return e.classList?va(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function u1(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function nE(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(u1(e[n]),'" ')},"").trim()}function wl(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function Zd(e){return e.size!==$t.size||e.x!==$t.x||e.y!==$t.y||e.rotate!==$t.rotate||e.flipX||e.flipY}function rE(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,a={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(t.x*32,", ").concat(t.y*32,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(i," ").concat(o," ").concat(s)},u={transform:"translate(".concat(r/2*-1," -256)")};return{outer:a,inner:l,path:u}}function aE(e){var t=e.transform,n=e.width,r=n===void 0?sf:n,a=e.height,i=a===void 0?sf:a,o=e.startCentered,s=o===void 0?!1:o,l="";return s&&n1?l+="translate(".concat(t.x/ln-r/2,"em, ").concat(t.y/ln-i/2,"em) "):s?l+="translate(calc(-50% + ".concat(t.x/ln,"em), calc(-50% + ").concat(t.y/ln,"em)) "):l+="translate(".concat(t.x/ln,"em, ").concat(t.y/ln,"em) "),l+="scale(".concat(t.size/ln*(t.flipX?-1:1),", ").concat(t.size/ln*(t.flipY?-1:1),") "),l+="rotate(".concat(t.rotate,"deg) "),l}var iE=`:root, :host { + --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid"; + --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular"; + --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light"; + --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin"; + --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone"; + --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp"; + --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp"; + --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp"; + --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands"; +} + +svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { + overflow: visible; + box-sizing: content-box; +} + +.svg-inline--fa { + display: var(--fa-display, inline-block); + height: 1em; + overflow: visible; + vertical-align: -0.125em; +} +.svg-inline--fa.fa-2xs { + vertical-align: 0.1em; +} +.svg-inline--fa.fa-xs { + vertical-align: 0em; +} +.svg-inline--fa.fa-sm { + vertical-align: -0.0714285705em; +} +.svg-inline--fa.fa-lg { + vertical-align: -0.2em; +} +.svg-inline--fa.fa-xl { + vertical-align: -0.25em; +} +.svg-inline--fa.fa-2xl { + vertical-align: -0.3125em; +} +.svg-inline--fa.fa-pull-left { + margin-right: var(--fa-pull-margin, 0.3em); + width: auto; +} +.svg-inline--fa.fa-pull-right { + margin-left: var(--fa-pull-margin, 0.3em); + width: auto; +} +.svg-inline--fa.fa-li { + width: var(--fa-li-width, 2em); + top: 0.25em; +} +.svg-inline--fa.fa-fw { + width: var(--fa-fw-width, 1.25em); +} + +.fa-layers svg.svg-inline--fa { + bottom: 0; + left: 0; + margin: auto; + position: absolute; + right: 0; + top: 0; +} + +.fa-layers-counter, .fa-layers-text { + display: inline-block; + position: absolute; + text-align: center; +} + +.fa-layers { + display: inline-block; + height: 1em; + position: relative; + text-align: center; + vertical-align: -0.125em; + width: 1em; +} +.fa-layers svg.svg-inline--fa { + -webkit-transform-origin: center center; + transform-origin: center center; +} + +.fa-layers-text { + left: 50%; + top: 50%; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); + -webkit-transform-origin: center center; + transform-origin: center center; +} + +.fa-layers-counter { + background-color: var(--fa-counter-background-color, #ff253a); + border-radius: var(--fa-counter-border-radius, 1em); + box-sizing: border-box; + color: var(--fa-inverse, #fff); + line-height: var(--fa-counter-line-height, 1); + max-width: var(--fa-counter-max-width, 5em); + min-width: var(--fa-counter-min-width, 1.5em); + overflow: hidden; + padding: var(--fa-counter-padding, 0.25em 0.5em); + right: var(--fa-right, 0); + text-overflow: ellipsis; + top: var(--fa-top, 0); + -webkit-transform: scale(var(--fa-counter-scale, 0.25)); + transform: scale(var(--fa-counter-scale, 0.25)); + -webkit-transform-origin: top right; + transform-origin: top right; +} + +.fa-layers-bottom-right { + bottom: var(--fa-bottom, 0); + right: var(--fa-right, 0); + top: auto; + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: bottom right; + transform-origin: bottom right; +} + +.fa-layers-bottom-left { + bottom: var(--fa-bottom, 0); + left: var(--fa-left, 0); + right: auto; + top: auto; + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: bottom left; + transform-origin: bottom left; +} + +.fa-layers-top-right { + top: var(--fa-top, 0); + right: var(--fa-right, 0); + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: top right; + transform-origin: top right; +} + +.fa-layers-top-left { + left: var(--fa-left, 0); + right: auto; + top: var(--fa-top, 0); + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: top left; + transform-origin: top left; +} + +.fa-1x { + font-size: 1em; +} + +.fa-2x { + font-size: 2em; +} + +.fa-3x { + font-size: 3em; +} + +.fa-4x { + font-size: 4em; +} + +.fa-5x { + font-size: 5em; +} + +.fa-6x { + font-size: 6em; +} + +.fa-7x { + font-size: 7em; +} + +.fa-8x { + font-size: 8em; +} + +.fa-9x { + font-size: 9em; +} + +.fa-10x { + font-size: 10em; +} + +.fa-2xs { + font-size: 0.625em; + line-height: 0.1em; + vertical-align: 0.225em; +} + +.fa-xs { + font-size: 0.75em; + line-height: 0.0833333337em; + vertical-align: 0.125em; +} + +.fa-sm { + font-size: 0.875em; + line-height: 0.0714285718em; + vertical-align: 0.0535714295em; +} + +.fa-lg { + font-size: 1.25em; + line-height: 0.05em; + vertical-align: -0.075em; +} + +.fa-xl { + font-size: 1.5em; + line-height: 0.0416666682em; + vertical-align: -0.125em; +} + +.fa-2xl { + font-size: 2em; + line-height: 0.03125em; + vertical-align: -0.1875em; +} + +.fa-fw { + text-align: center; + width: 1.25em; +} + +.fa-ul { + list-style-type: none; + margin-left: var(--fa-li-margin, 2.5em); + padding-left: 0; +} +.fa-ul > li { + position: relative; +} + +.fa-li { + left: calc(var(--fa-li-width, 2em) * -1); + position: absolute; + text-align: center; + width: var(--fa-li-width, 2em); + line-height: inherit; +} + +.fa-border { + border-color: var(--fa-border-color, #eee); + border-radius: var(--fa-border-radius, 0.1em); + border-style: var(--fa-border-style, solid); + border-width: var(--fa-border-width, 0.08em); + padding: var(--fa-border-padding, 0.2em 0.25em 0.15em); +} + +.fa-pull-left { + float: left; + margin-right: var(--fa-pull-margin, 0.3em); +} + +.fa-pull-right { + float: right; + margin-left: var(--fa-pull-margin, 0.3em); +} + +.fa-beat { + -webkit-animation-name: fa-beat; + animation-name: fa-beat; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-bounce { + -webkit-animation-name: fa-bounce; + animation-name: fa-bounce; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); +} + +.fa-fade { + -webkit-animation-name: fa-fade; + animation-name: fa-fade; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); +} + +.fa-beat-fade { + -webkit-animation-name: fa-beat-fade; + animation-name: fa-beat-fade; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); +} + +.fa-flip { + -webkit-animation-name: fa-flip; + animation-name: fa-flip; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-shake { + -webkit-animation-name: fa-shake; + animation-name: fa-shake; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, linear); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-spin { + -webkit-animation-name: fa-spin; + animation-name: fa-spin; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 2s); + animation-duration: var(--fa-animation-duration, 2s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, linear); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-spin-reverse { + --fa-animation-direction: reverse; +} + +.fa-pulse, +.fa-spin-pulse { + -webkit-animation-name: fa-spin; + animation-name: fa-spin; + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, steps(8)); + animation-timing-function: var(--fa-animation-timing, steps(8)); +} + +@media (prefers-reduced-motion: reduce) { + .fa-beat, +.fa-bounce, +.fa-fade, +.fa-beat-fade, +.fa-flip, +.fa-pulse, +.fa-shake, +.fa-spin, +.fa-spin-pulse { + -webkit-animation-delay: -1ms; + animation-delay: -1ms; + -webkit-animation-duration: 1ms; + animation-duration: 1ms; + -webkit-animation-iteration-count: 1; + animation-iteration-count: 1; + -webkit-transition-delay: 0s; + transition-delay: 0s; + -webkit-transition-duration: 0s; + transition-duration: 0s; + } +} +@-webkit-keyframes fa-beat { + 0%, 90% { + -webkit-transform: scale(1); + transform: scale(1); + } + 45% { + -webkit-transform: scale(var(--fa-beat-scale, 1.25)); + transform: scale(var(--fa-beat-scale, 1.25)); + } +} +@keyframes fa-beat { + 0%, 90% { + -webkit-transform: scale(1); + transform: scale(1); + } + 45% { + -webkit-transform: scale(var(--fa-beat-scale, 1.25)); + transform: scale(var(--fa-beat-scale, 1.25)); + } +} +@-webkit-keyframes fa-bounce { + 0% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 10% { + -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + } + 30% { + -webkit-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)); + 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)); + } + 50% { + -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + } + 57% { + -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + } + 64% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 100% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } +} +@keyframes fa-bounce { + 0% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 10% { + -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + } + 30% { + -webkit-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)); + 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)); + } + 50% { + -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + } + 57% { + -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + } + 64% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 100% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } +} +@-webkit-keyframes fa-fade { + 50% { + opacity: var(--fa-fade-opacity, 0.4); + } +} +@keyframes fa-fade { + 50% { + opacity: var(--fa-fade-opacity, 0.4); + } +} +@-webkit-keyframes fa-beat-fade { + 0%, 100% { + opacity: var(--fa-beat-fade-opacity, 0.4); + -webkit-transform: scale(1); + transform: scale(1); + } + 50% { + opacity: 1; + -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); + transform: scale(var(--fa-beat-fade-scale, 1.125)); + } +} +@keyframes fa-beat-fade { + 0%, 100% { + opacity: var(--fa-beat-fade-opacity, 0.4); + -webkit-transform: scale(1); + transform: scale(1); + } + 50% { + opacity: 1; + -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); + transform: scale(var(--fa-beat-fade-scale, 1.125)); + } +} +@-webkit-keyframes fa-flip { + 50% { + -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + } +} +@keyframes fa-flip { + 50% { + -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + } +} +@-webkit-keyframes fa-shake { + 0% { + -webkit-transform: rotate(-15deg); + transform: rotate(-15deg); + } + 4% { + -webkit-transform: rotate(15deg); + transform: rotate(15deg); + } + 8%, 24% { + -webkit-transform: rotate(-18deg); + transform: rotate(-18deg); + } + 12%, 28% { + -webkit-transform: rotate(18deg); + transform: rotate(18deg); + } + 16% { + -webkit-transform: rotate(-22deg); + transform: rotate(-22deg); + } + 20% { + -webkit-transform: rotate(22deg); + transform: rotate(22deg); + } + 32% { + -webkit-transform: rotate(-12deg); + transform: rotate(-12deg); + } + 36% { + -webkit-transform: rotate(12deg); + transform: rotate(12deg); + } + 40%, 100% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } +} +@keyframes fa-shake { + 0% { + -webkit-transform: rotate(-15deg); + transform: rotate(-15deg); + } + 4% { + -webkit-transform: rotate(15deg); + transform: rotate(15deg); + } + 8%, 24% { + -webkit-transform: rotate(-18deg); + transform: rotate(-18deg); + } + 12%, 28% { + -webkit-transform: rotate(18deg); + transform: rotate(18deg); + } + 16% { + -webkit-transform: rotate(-22deg); + transform: rotate(-22deg); + } + 20% { + -webkit-transform: rotate(22deg); + transform: rotate(22deg); + } + 32% { + -webkit-transform: rotate(-12deg); + transform: rotate(-12deg); + } + 36% { + -webkit-transform: rotate(12deg); + transform: rotate(12deg); + } + 40%, 100% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } +} +@-webkit-keyframes fa-spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +@keyframes fa-spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +.fa-rotate-90 { + -webkit-transform: rotate(90deg); + transform: rotate(90deg); +} + +.fa-rotate-180 { + -webkit-transform: rotate(180deg); + transform: rotate(180deg); +} + +.fa-rotate-270 { + -webkit-transform: rotate(270deg); + transform: rotate(270deg); +} + +.fa-flip-horizontal { + -webkit-transform: scale(-1, 1); + transform: scale(-1, 1); +} + +.fa-flip-vertical { + -webkit-transform: scale(1, -1); + transform: scale(1, -1); +} + +.fa-flip-both, +.fa-flip-horizontal.fa-flip-vertical { + -webkit-transform: scale(-1, -1); + transform: scale(-1, -1); +} + +.fa-rotate-by { + -webkit-transform: rotate(var(--fa-rotate-angle, none)); + transform: rotate(var(--fa-rotate-angle, none)); +} + +.fa-stack { + display: inline-block; + vertical-align: middle; + height: 2em; + position: relative; + width: 2.5em; +} + +.fa-stack-1x, +.fa-stack-2x { + bottom: 0; + left: 0; + margin: auto; + position: absolute; + right: 0; + top: 0; + z-index: var(--fa-stack-z-index, auto); +} + +.svg-inline--fa.fa-stack-1x { + height: 1em; + width: 1.25em; +} +.svg-inline--fa.fa-stack-2x { + height: 2em; + width: 2.5em; +} + +.fa-inverse { + color: var(--fa-inverse, #fff); +} + +.sr-only, +.fa-sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border-width: 0; +} + +.sr-only-focusable:not(:focus), +.fa-sr-only-focusable:not(:focus) { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border-width: 0; +} + +.svg-inline--fa .fa-primary { + fill: var(--fa-primary-color, currentColor); + opacity: var(--fa-primary-opacity, 1); +} + +.svg-inline--fa .fa-secondary { + fill: var(--fa-secondary-color, currentColor); + opacity: var(--fa-secondary-opacity, 0.4); +} + +.svg-inline--fa.fa-swap-opacity .fa-primary { + opacity: var(--fa-secondary-opacity, 0.4); +} + +.svg-inline--fa.fa-swap-opacity .fa-secondary { + opacity: var(--fa-primary-opacity, 1); +} + +.svg-inline--fa mask .fa-primary, +.svg-inline--fa mask .fa-secondary { + fill: black; +} + +.fad.fa-inverse, +.fa-duotone.fa-inverse { + color: var(--fa-inverse, #fff); +}`;function c1(){var e=r1,t=a1,n=I.cssPrefix,r=I.replacementClass,a=iE;if(n!==e||r!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");a=a.replace(i,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(s,".".concat(r))}return a}var gg=!1;function Lu(){I.autoAddCss&&!gg&&(eE(c1()),gg=!0)}var oE={mixout:function(){return{dom:{css:c1,insertCss:Lu}}},hooks:function(){return{beforeDOMElementCreation:function(){Lu()},beforeI2svg:function(){Lu()}}}},tn=Rn||{};tn[en]||(tn[en]={});tn[en].styles||(tn[en].styles={});tn[en].hooks||(tn[en].hooks={});tn[en].shims||(tn[en].shims=[]);var Ct=tn[en],f1=[],sE=function e(){oe.removeEventListener("DOMContentLoaded",e),Us=1,f1.map(function(t){return t()})},Us=!1;an&&(Us=(oe.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(oe.readyState),Us||oe.addEventListener("DOMContentLoaded",sE));function lE(e){an&&(Us?setTimeout(e,0):f1.push(e))}function Ui(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,a=e.children,i=a===void 0?[]:a;return typeof e=="string"?u1(e):"<".concat(t," ").concat(nE(r),">").concat(i.map(Ui).join(""),"")}function mg(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var uE=function(t,n){return function(r,a,i,o){return t.call(n,r,a,i,o)}},Mu=function(t,n,r,a){var i=Object.keys(t),o=i.length,s=a!==void 0?uE(n,a):n,l,u,h;for(r===void 0?(l=1,h=t[i[0]]):(l=0,h=r);l=55296&&a<=56319&&n=55296&&r<=56319&&n>t+1&&(a=e.charCodeAt(t+1),a>=56320&&a<=57343)?(r-55296)*1024+a-56320+65536:r}function vg(e){return Object.keys(e).reduce(function(t,n){var r=e[n],a=!!r.icon;return a?t[r.iconName]=r.icon:t[n]=r,t},{})}function cf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,a=r===void 0?!1:r,i=vg(t);typeof Ct.hooks.addPack=="function"&&!a?Ct.hooks.addPack(e,vg(t)):Ct.styles[e]=M(M({},Ct.styles[e]||{}),i),e==="fas"&&cf("fa",t)}var Ao,Ro,$o,Vr=Ct.styles,dE=Ct.shims,hE=(Ao={},_e(Ao,ae,Object.values(Ni[ae])),_e(Ao,de,Object.values(Ni[de])),Ao),eh=null,d1={},h1={},p1={},g1={},m1={},pE=(Ro={},_e(Ro,ae,Object.keys(xi[ae])),_e(Ro,de,Object.keys(xi[de])),Ro);function gE(e){return~Xb.indexOf(e)}function mE(e,t){var n=t.split("-"),r=n[0],a=n.slice(1).join("-");return r===e&&a!==""&&!gE(a)?a:null}var v1=function(){var t=function(i){return Mu(Vr,function(o,s,l){return o[l]=Mu(s,i,{}),o},{})};d1=t(function(a,i,o){if(i[3]&&(a[i[3]]=o),i[2]){var s=i[2].filter(function(l){return typeof l=="number"});s.forEach(function(l){a[l.toString(16)]=o})}return a}),h1=t(function(a,i,o){if(a[o]=o,i[2]){var s=i[2].filter(function(l){return typeof l=="string"});s.forEach(function(l){a[l]=o})}return a}),m1=t(function(a,i,o){var s=i[2];return a[o]=o,s.forEach(function(l){a[l]=o}),a});var n="far"in Vr||I.autoFetchSvg,r=Mu(dE,function(a,i){var o=i[0],s=i[1],l=i[2];return s==="far"&&!n&&(s="fas"),typeof o=="string"&&(a.names[o]={prefix:s,iconName:l}),typeof o=="number"&&(a.unicodes[o.toString(16)]={prefix:s,iconName:l}),a},{names:{},unicodes:{}});p1=r.names,g1=r.unicodes,eh=_l(I.styleDefault,{family:I.familyDefault})};Zb(function(e){eh=_l(e.styleDefault,{family:I.familyDefault})});v1();function th(e,t){return(d1[e]||{})[t]}function vE(e,t){return(h1[e]||{})[t]}function ar(e,t){return(m1[e]||{})[t]}function y1(e){return p1[e]||{prefix:null,iconName:null}}function yE(e){var t=g1[e],n=th("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function $n(){return eh}var nh=function(){return{prefix:null,iconName:null,rest:[]}};function _l(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?ae:n,a=xi[r][e],i=Pi[r][e]||Pi[r][a],o=e in Ct.styles?e:null;return i||o||null}var yg=($o={},_e($o,ae,Object.keys(Ni[ae])),_e($o,de,Object.keys(Ni[de])),$o);function Sl(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,a=r===void 0?!1:r,i=(t={},_e(t,ae,"".concat(I.cssPrefix,"-").concat(ae)),_e(t,de,"".concat(I.cssPrefix,"-").concat(de)),t),o=null,s=ae;(e.includes(i[ae])||e.some(function(u){return yg[ae].includes(u)}))&&(s=ae),(e.includes(i[de])||e.some(function(u){return yg[de].includes(u)}))&&(s=de);var l=e.reduce(function(u,h){var d=mE(I.cssPrefix,h);if(Vr[h]?(h=hE[s].includes(h)?Wb[s][h]:h,o=h,u.prefix=h):pE[s].indexOf(h)>-1?(o=h,u.prefix=_l(h,{family:s})):d?u.iconName=d:h!==I.replacementClass&&h!==i[ae]&&h!==i[de]&&u.rest.push(h),!a&&u.prefix&&u.iconName){var p=o==="fa"?y1(u.iconName):{},w=ar(u.prefix,u.iconName);p.prefix&&(o=null),u.iconName=p.iconName||w||u.iconName,u.prefix=p.prefix||u.prefix,u.prefix==="far"&&!Vr.far&&Vr.fas&&!I.autoFetchSvg&&(u.prefix="fas")}return u},nh());return(e.includes("fa-brands")||e.includes("fab"))&&(l.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(l.prefix="fad"),!l.prefix&&s===de&&(Vr.fass||I.autoFetchSvg)&&(l.prefix="fass",l.iconName=ar(l.prefix,l.iconName)||l.iconName),(l.prefix==="fa"||o==="fa")&&(l.prefix=$n()||"fas"),l}var wE=function(){function e(){kb(this,e),this.definitions={}}return Ab(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,a=new Array(r),i=0;i0&&h.forEach(function(d){typeof d=="string"&&(n[s][d]=u)}),n[s][l]=u}),n}}]),e}(),wg=[],qr={},na={},_E=Object.keys(na);function SE(e,t){var n=t.mixoutsTo;return wg=e,qr={},Object.keys(na).forEach(function(r){_E.indexOf(r)===-1&&delete na[r]}),wg.forEach(function(r){var a=r.mixout?r.mixout():{};if(Object.keys(a).forEach(function(o){typeof a[o]=="function"&&(n[o]=a[o]),Is(a[o])==="object"&&Object.keys(a[o]).forEach(function(s){n[o]||(n[o]={}),n[o][s]=a[o][s]})}),r.hooks){var i=r.hooks();Object.keys(i).forEach(function(o){qr[o]||(qr[o]=[]),qr[o].push(i[o])})}r.provides&&r.provides(na)}),n}function ff(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a1?t-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:{};return an?(gr("beforeI2svg",t),nn("pseudoElements2svg",t),nn("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;I.autoReplaceSvg===!1&&(I.autoReplaceSvg=!0),I.observeMutations=!0,lE(function(){CE({autoReplaceSvgRoot:n}),gr("watch",t)})}},TE={icon:function(t){if(t===null)return null;if(Is(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:ar(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=_l(t[0]);return{prefix:r,iconName:ar(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(I.cssPrefix,"-"))>-1||t.match(Gb))){var a=Sl(t.split(" "),{skipLookups:!0});return{prefix:a.prefix||$n(),iconName:ar(a.prefix,a.iconName)||a.iconName}}if(typeof t=="string"){var i=$n();return{prefix:i,iconName:ar(i,t)||t}}}},ot={noAuto:bE,config:I,dom:EE,parse:TE,library:w1,findIconDefinition:df,toHtml:Ui},CE=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?oe:n;(Object.keys(Ct.styles).length>0||I.autoFetchSvg)&&an&&I.autoReplaceSvg&&ot.dom.i2svg({node:r})};function bl(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return Ui(r)})}}),Object.defineProperty(e,"node",{get:function(){if(an){var r=oe.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function OE(e){var t=e.children,n=e.main,r=e.mask,a=e.attributes,i=e.styles,o=e.transform;if(Zd(o)&&n.found&&!r.found){var s=n.width,l=n.height,u={x:s/l/2,y:.5};a.style=wl(M(M({},i),{},{"transform-origin":"".concat(u.x+o.x/16,"em ").concat(u.y+o.y/16,"em")}))}return[{tag:"svg",attributes:a,children:t}]}function xE(e){var t=e.prefix,n=e.iconName,r=e.children,a=e.attributes,i=e.symbol,o=i===!0?"".concat(t,"-").concat(I.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:M(M({},a),{},{id:o}),children:r}]}]}function rh(e){var t=e.icons,n=t.main,r=t.mask,a=e.prefix,i=e.iconName,o=e.transform,s=e.symbol,l=e.title,u=e.maskId,h=e.titleId,d=e.extra,p=e.watchable,w=p===void 0?!1:p,m=r.found?r:n,_=m.width,b=m.height,v=a==="fak",y=[I.replacementClass,i?"".concat(I.cssPrefix,"-").concat(i):""].filter(function(O){return d.classes.indexOf(O)===-1}).filter(function(O){return O!==""||!!O}).concat(d.classes).join(" "),S={children:[],attributes:M(M({},d.attributes),{},{"data-prefix":a,"data-icon":i,class:y,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(_," ").concat(b)})},x=v&&!~d.classes.indexOf("fa-fw")?{width:"".concat(_/b*16*.0625,"em")}:{};w&&(S.attributes[pr]=""),l&&(S.children.push({tag:"title",attributes:{id:S.attributes["aria-labelledby"]||"title-".concat(h||ki())},children:[l]}),delete S.attributes.title);var D=M(M({},S),{},{prefix:a,iconName:i,main:n,mask:r,maskId:u,transform:o,symbol:s,styles:M(M({},x),d.styles)}),k=r.found&&n.found?nn("generateAbstractMask",D)||{children:[],attributes:{}}:nn("generateAbstractIcon",D)||{children:[],attributes:{}},E=k.children,C=k.attributes;return D.children=E,D.attributes=C,s?xE(D):OE(D)}function _g(e){var t=e.content,n=e.width,r=e.height,a=e.transform,i=e.title,o=e.extra,s=e.watchable,l=s===void 0?!1:s,u=M(M(M({},o.attributes),i?{title:i}:{}),{},{class:o.classes.join(" ")});l&&(u[pr]="");var h=M({},o.styles);Zd(a)&&(h.transform=aE({transform:a,startCentered:!0,width:n,height:r}),h["-webkit-transform"]=h.transform);var d=wl(h);d.length>0&&(u.style=d);var p=[];return p.push({tag:"span",attributes:u,children:[t]}),i&&p.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),p}function PE(e){var t=e.content,n=e.title,r=e.extra,a=M(M(M({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),i=wl(r.styles);i.length>0&&(a.style=i);var o=[];return o.push({tag:"span",attributes:a,children:[t]}),n&&o.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),o}var ju=Ct.styles;function hf(e){var t=e[0],n=e[1],r=e.slice(4),a=Kd(r,1),i=a[0],o=null;return Array.isArray(i)?o={tag:"g",attributes:{class:"".concat(I.cssPrefix,"-").concat(rr.GROUP)},children:[{tag:"path",attributes:{class:"".concat(I.cssPrefix,"-").concat(rr.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(I.cssPrefix,"-").concat(rr.PRIMARY),fill:"currentColor",d:i[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:i}},{found:!0,width:t,height:n,icon:o}}var NE={found:!1,width:512,height:512};function DE(e,t){!i1&&!I.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function pf(e,t){var n=t;return t==="fa"&&I.styleDefault!==null&&(t=$n()),new Promise(function(r,a){if(nn("missingIconAbstract"),n==="fa"){var i=y1(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&ju[t]&&ju[t][e]){var o=ju[t][e];return r(hf(o))}DE(e,t),r(M(M({},NE),{},{icon:I.showMissingIcons&&e?nn("missingIconAbstract")||{}:{}}))})}var Sg=function(){},gf=I.measurePerformance&&Oo&&Oo.mark&&Oo.measure?Oo:{mark:Sg,measure:Sg},Ka='FA "6.4.0"',kE=function(t){return gf.mark("".concat(Ka," ").concat(t," begins")),function(){return _1(t)}},_1=function(t){gf.mark("".concat(Ka," ").concat(t," ends")),gf.measure("".concat(Ka," ").concat(t),"".concat(Ka," ").concat(t," begins"),"".concat(Ka," ").concat(t," ends"))},ah={begin:kE,end:_1},as=function(){};function bg(e){var t=e.getAttribute?e.getAttribute(pr):null;return typeof t=="string"}function AE(e){var t=e.getAttribute?e.getAttribute(Xd):null,n=e.getAttribute?e.getAttribute(Jd):null;return t&&n}function RE(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(I.replacementClass)}function $E(){if(I.autoReplaceSvg===!0)return is.replace;var e=is[I.autoReplaceSvg];return e||is.replace}function LE(e){return oe.createElementNS("http://www.w3.org/2000/svg",e)}function ME(e){return oe.createElement(e)}function S1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?LE:ME:n;if(typeof e=="string")return oe.createTextNode(e);var a=r(e.tag);Object.keys(e.attributes||[]).forEach(function(o){a.setAttribute(o,e.attributes[o])});var i=e.children||[];return i.forEach(function(o){a.appendChild(S1(o,{ceFn:r}))}),a}function jE(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var is={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(a){n.parentNode.insertBefore(S1(a),n)}),n.getAttribute(pr)===null&&I.keepOriginalSource){var r=oe.createComment(jE(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~Bd(n).indexOf(I.replacementClass))return is.replace(t);var a=new RegExp("".concat(I.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var i=r[0].attributes.class.split(" ").reduce(function(s,l){return l===I.replacementClass||l.match(a)?s.toSvg.push(l):s.toNode.push(l),s},{toNode:[],toSvg:[]});r[0].attributes.class=i.toSvg.join(" "),i.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",i.toNode.join(" "))}var o=r.map(function(s){return Ui(s)}).join(` +`);n.setAttribute(pr,""),n.innerHTML=o}};function Eg(e){e()}function b1(e,t){var n=typeof t=="function"?t:as;if(e.length===0)n();else{var r=Eg;I.mutateApproach===zb&&(r=Rn.requestAnimationFrame||Eg),r(function(){var a=$E(),i=ah.begin("mutate");e.map(a),i(),n()})}}var ih=!1;function E1(){ih=!0}function mf(){ih=!1}var zs=null;function Tg(e){if(hg&&I.observeMutations){var t=e.treeCallback,n=t===void 0?as:t,r=e.nodeCallback,a=r===void 0?as:r,i=e.pseudoElementsCallback,o=i===void 0?as:i,s=e.observeMutationsRoot,l=s===void 0?oe:s;zs=new hg(function(u){if(!ih){var h=$n();va(u).forEach(function(d){if(d.type==="childList"&&d.addedNodes.length>0&&!bg(d.addedNodes[0])&&(I.searchPseudoElements&&o(d.target),n(d.target)),d.type==="attributes"&&d.target.parentNode&&I.searchPseudoElements&&o(d.target.parentNode),d.type==="attributes"&&bg(d.target)&&~Yb.indexOf(d.attributeName))if(d.attributeName==="class"&&AE(d.target)){var p=Sl(Bd(d.target)),w=p.prefix,m=p.iconName;d.target.setAttribute(Xd,w||h),m&&d.target.setAttribute(Jd,m)}else RE(d.target)&&a(d.target)})}}),an&&zs.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function FE(){zs&&zs.disconnect()}function IE(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,a){var i=a.split(":"),o=i[0],s=i.slice(1);return o&&s.length>0&&(r[o]=s.join(":").trim()),r},{})),n}function UE(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",a=Sl(Bd(e));return a.prefix||(a.prefix=$n()),t&&n&&(a.prefix=t,a.iconName=n),a.iconName&&a.prefix||(a.prefix&&r.length>0&&(a.iconName=vE(a.prefix,e.innerText)||th(a.prefix,uf(e.innerText))),!a.iconName&&I.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(a.iconName=e.firstChild.data)),a}function zE(e){var t=va(e.attributes).reduce(function(a,i){return a.name!=="class"&&a.name!=="style"&&(a[i.name]=i.value),a},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return I.autoA11y&&(n?t["aria-labelledby"]="".concat(I.replacementClass,"-title-").concat(r||ki()):(t["aria-hidden"]="true",t.focusable="false")),t}function HE(){return{iconName:null,title:null,titleId:null,prefix:null,transform:$t,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Cg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=UE(e),r=n.iconName,a=n.prefix,i=n.rest,o=zE(e),s=ff("parseNodeAttributes",{},e),l=t.styleParser?IE(e):[];return M({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:a,transform:$t,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:l,attributes:o}},s)}var WE=Ct.styles;function T1(e){var t=I.autoReplaceSvg==="nest"?Cg(e,{styleParser:!1}):Cg(e);return~t.extra.classes.indexOf(o1)?nn("generateLayersText",e,t):nn("generateSvgReplacementMutation",e,t)}var Ln=new Set;Qd.map(function(e){Ln.add("fa-".concat(e))});Object.keys(xi[ae]).map(Ln.add.bind(Ln));Object.keys(xi[de]).map(Ln.add.bind(Ln));Ln=Fi(Ln);function Og(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!an)return Promise.resolve();var n=oe.documentElement.classList,r=function(d){return n.add("".concat(pg,"-").concat(d))},a=function(d){return n.remove("".concat(pg,"-").concat(d))},i=I.autoFetchSvg?Ln:Qd.map(function(h){return"fa-".concat(h)}).concat(Object.keys(WE));i.includes("fa")||i.push("fa");var o=[".".concat(o1,":not([").concat(pr,"])")].concat(i.map(function(h){return".".concat(h,":not([").concat(pr,"])")})).join(", ");if(o.length===0)return Promise.resolve();var s=[];try{s=va(e.querySelectorAll(o))}catch{}if(s.length>0)r("pending"),a("complete");else return Promise.resolve();var l=ah.begin("onTree"),u=s.reduce(function(h,d){try{var p=T1(d);p&&h.push(p)}catch(w){i1||w.name==="MissingIcon"&&console.error(w)}return h},[]);return new Promise(function(h,d){Promise.all(u).then(function(p){b1(p,function(){r("active"),r("complete"),a("pending"),typeof t=="function"&&t(),l(),h()})}).catch(function(p){l(),d(p)})})}function GE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;T1(e).then(function(n){n&&b1([n],t)})}function VE(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:df(t||{}),a=n.mask;return a&&(a=(a||{}).icon?a:df(a||{})),e(r,M(M({},n),{},{mask:a}))}}var qE=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,a=r===void 0?$t:r,i=n.symbol,o=i===void 0?!1:i,s=n.mask,l=s===void 0?null:s,u=n.maskId,h=u===void 0?null:u,d=n.title,p=d===void 0?null:d,w=n.titleId,m=w===void 0?null:w,_=n.classes,b=_===void 0?[]:_,v=n.attributes,y=v===void 0?{}:v,S=n.styles,x=S===void 0?{}:S;if(t){var D=t.prefix,k=t.iconName,E=t.icon;return bl(M({type:"icon"},t),function(){return gr("beforeDOMElementCreation",{iconDefinition:t,params:n}),I.autoA11y&&(p?y["aria-labelledby"]="".concat(I.replacementClass,"-title-").concat(m||ki()):(y["aria-hidden"]="true",y.focusable="false")),rh({icons:{main:hf(E),mask:l?hf(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:D,iconName:k,transform:M(M({},$t),a),symbol:o,title:p,maskId:h,titleId:m,extra:{attributes:y,styles:x,classes:b}})})}},KE={mixout:function(){return{icon:VE(qE)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=Og,n.nodeCallback=GE,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,a=r===void 0?oe:r,i=n.callback,o=i===void 0?function(){}:i;return Og(a,o)},t.generateSvgReplacementMutation=function(n,r){var a=r.iconName,i=r.title,o=r.titleId,s=r.prefix,l=r.transform,u=r.symbol,h=r.mask,d=r.maskId,p=r.extra;return new Promise(function(w,m){Promise.all([pf(a,s),h.iconName?pf(h.iconName,h.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(_){var b=Kd(_,2),v=b[0],y=b[1];w([n,rh({icons:{main:v,mask:y},prefix:s,iconName:a,transform:l,symbol:u,maskId:d,title:i,titleId:o,extra:p,watchable:!0})])}).catch(m)})},t.generateAbstractIcon=function(n){var r=n.children,a=n.attributes,i=n.main,o=n.transform,s=n.styles,l=wl(s);l.length>0&&(a.style=l);var u;return Zd(o)&&(u=nn("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),r.push(u||i.icon),{children:r,attributes:a}}}},YE={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.classes,i=a===void 0?[]:a;return bl({type:"layer"},function(){gr("beforeDOMElementCreation",{assembler:n,params:r});var o=[];return n(function(s){Array.isArray(s)?s.map(function(l){o=o.concat(l.abstract)}):o=o.concat(s.abstract)}),[{tag:"span",attributes:{class:["".concat(I.cssPrefix,"-layers")].concat(Fi(i)).join(" ")},children:o}]})}}}},XE={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.title,i=a===void 0?null:a,o=r.classes,s=o===void 0?[]:o,l=r.attributes,u=l===void 0?{}:l,h=r.styles,d=h===void 0?{}:h;return bl({type:"counter",content:n},function(){return gr("beforeDOMElementCreation",{content:n,params:r}),PE({content:n.toString(),title:i,extra:{attributes:u,styles:d,classes:["".concat(I.cssPrefix,"-layers-counter")].concat(Fi(s))}})})}}}},JE={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.transform,i=a===void 0?$t:a,o=r.title,s=o===void 0?null:o,l=r.classes,u=l===void 0?[]:l,h=r.attributes,d=h===void 0?{}:h,p=r.styles,w=p===void 0?{}:p;return bl({type:"text",content:n},function(){return gr("beforeDOMElementCreation",{content:n,params:r}),_g({content:n,transform:M(M({},$t),i),title:s,extra:{attributes:d,styles:w,classes:["".concat(I.cssPrefix,"-layers-text")].concat(Fi(u))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var a=r.title,i=r.transform,o=r.extra,s=null,l=null;if(n1){var u=parseInt(getComputedStyle(n).fontSize,10),h=n.getBoundingClientRect();s=h.width/u,l=h.height/u}return I.autoA11y&&!a&&(o.attributes["aria-hidden"]="true"),Promise.resolve([n,_g({content:n.innerHTML,width:s,height:l,transform:i,title:a,extra:o,watchable:!0})])}}},QE=new RegExp('"',"ug"),xg=[1105920,1112319];function BE(e){var t=e.replace(QE,""),n=fE(t,0),r=n>=xg[0]&&n<=xg[1],a=t.length===2?t[0]===t[1]:!1;return{value:uf(a?t[0]:t),isSecondary:r||a}}function Pg(e,t){var n="".concat(Ub).concat(t.replace(":","-"));return new Promise(function(r,a){if(e.getAttribute(n)!==null)return r();var i=va(e.children),o=i.filter(function(E){return E.getAttribute(lf)===t})[0],s=Rn.getComputedStyle(e,t),l=s.getPropertyValue("font-family").match(Vb),u=s.getPropertyValue("font-weight"),h=s.getPropertyValue("content");if(o&&!l)return e.removeChild(o),r();if(l&&h!=="none"&&h!==""){var d=s.getPropertyValue("content"),p=~["Sharp"].indexOf(l[2])?de:ae,w=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?Pi[p][l[2].toLowerCase()]:qb[p][u],m=BE(d),_=m.value,b=m.isSecondary,v=l[0].startsWith("FontAwesome"),y=th(w,_),S=y;if(v){var x=yE(_);x.iconName&&x.prefix&&(y=x.iconName,w=x.prefix)}if(y&&!b&&(!o||o.getAttribute(Xd)!==w||o.getAttribute(Jd)!==S)){e.setAttribute(n,S),o&&e.removeChild(o);var D=HE(),k=D.extra;k.attributes[lf]=t,pf(y,w).then(function(E){var C=rh(M(M({},D),{},{icons:{main:E,mask:nh()},prefix:w,iconName:S,extra:k,watchable:!0})),O=oe.createElement("svg");t==="::before"?e.insertBefore(O,e.firstChild):e.appendChild(O),O.outerHTML=C.map(function(N){return Ui(N)}).join(` +`),e.removeAttribute(n),r()}).catch(a)}else r()}else r()})}function ZE(e){return Promise.all([Pg(e,"::before"),Pg(e,"::after")])}function eT(e){return e.parentNode!==document.head&&!~Hb.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(lf)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Ng(e){if(an)return new Promise(function(t,n){var r=va(e.querySelectorAll("*")).filter(eT).map(ZE),a=ah.begin("searchPseudoElements");E1(),Promise.all(r).then(function(){a(),mf(),t()}).catch(function(){a(),mf(),n()})})}var tT={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=Ng,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,a=r===void 0?oe:r;I.searchPseudoElements&&Ng(a)}}},Dg=!1,nT={mixout:function(){return{dom:{unwatch:function(){E1(),Dg=!0}}}},hooks:function(){return{bootstrap:function(){Tg(ff("mutationObserverCallbacks",{}))},noAuto:function(){FE()},watch:function(n){var r=n.observeMutationsRoot;Dg?mf():Tg(ff("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},kg=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,a){var i=a.toLowerCase().split("-"),o=i[0],s=i.slice(1).join("-");if(o&&s==="h")return r.flipX=!0,r;if(o&&s==="v")return r.flipY=!0,r;if(s=parseFloat(s),isNaN(s))return r;switch(o){case"grow":r.size=r.size+s;break;case"shrink":r.size=r.size-s;break;case"left":r.x=r.x-s;break;case"right":r.x=r.x+s;break;case"up":r.y=r.y-s;break;case"down":r.y=r.y+s;break;case"rotate":r.rotate=r.rotate+s;break}return r},n)},rT={mixout:function(){return{parse:{transform:function(n){return kg(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-transform");return a&&(n.transform=kg(a)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,a=n.transform,i=n.containerWidth,o=n.iconWidth,s={transform:"translate(".concat(i/2," 256)")},l="translate(".concat(a.x*32,", ").concat(a.y*32,") "),u="scale(".concat(a.size/16*(a.flipX?-1:1),", ").concat(a.size/16*(a.flipY?-1:1),") "),h="rotate(".concat(a.rotate," 0 0)"),d={transform:"".concat(l," ").concat(u," ").concat(h)},p={transform:"translate(".concat(o/2*-1," -256)")},w={outer:s,inner:d,path:p};return{tag:"g",attributes:M({},w.outer),children:[{tag:"g",attributes:M({},w.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:M(M({},r.icon.attributes),w.path)}]}]}}}},Fu={x:0,y:0,width:"100%",height:"100%"};function Ag(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function aT(e){return e.tag==="g"?e.children:[e]}var iT={hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-mask"),i=a?Sl(a.split(" ").map(function(o){return o.trim()})):nh();return i.prefix||(i.prefix=$n()),n.mask=i,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,a=n.attributes,i=n.main,o=n.mask,s=n.maskId,l=n.transform,u=i.width,h=i.icon,d=o.width,p=o.icon,w=rE({transform:l,containerWidth:d,iconWidth:u}),m={tag:"rect",attributes:M(M({},Fu),{},{fill:"white"})},_=h.children?{children:h.children.map(Ag)}:{},b={tag:"g",attributes:M({},w.inner),children:[Ag(M({tag:h.tag,attributes:M(M({},h.attributes),w.path)},_))]},v={tag:"g",attributes:M({},w.outer),children:[b]},y="mask-".concat(s||ki()),S="clip-".concat(s||ki()),x={tag:"mask",attributes:M(M({},Fu),{},{id:y,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[m,v]},D={tag:"defs",children:[{tag:"clipPath",attributes:{id:S},children:aT(p)},x]};return r.push(D,{tag:"rect",attributes:M({fill:"currentColor","clip-path":"url(#".concat(S,")"),mask:"url(#".concat(y,")")},Fu)}),{children:r,attributes:a}}}},oT={provides:function(t){var n=!1;Rn.matchMedia&&(n=Rn.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],a={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:M(M({},a),{},{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"})});var o=M(M({},i),{},{attributeName:"opacity"}),s={tag:"circle",attributes:M(M({},a),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||s.children.push({tag:"animate",attributes:M(M({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:M(M({},o),{},{values:"1;0;1;1;0;1;"})}),r.push(s),r.push({tag:"path",attributes:M(M({},a),{},{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:n?[]:[{tag:"animate",attributes:M(M({},o),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:M(M({},a),{},{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:M(M({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},sT={hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-symbol"),i=a===null?!1:a===""?!0:a;return n.symbol=i,n}}}},lT=[oE,KE,YE,XE,JE,tT,nT,rT,iT,oT,sT];SE(lT,{mixoutsTo:ot});ot.noAuto;ot.config;ot.library;ot.dom;var vf=ot.parse;ot.findIconDefinition;ot.toHtml;var uT=ot.icon;ot.layer;ot.text;ot.counter;var C1={exports:{}},cT="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",fT=cT,dT=fT;function O1(){}function x1(){}x1.resetWarningCache=O1;var hT=function(){function e(r,a,i,o,s,l){if(l!==dT){var u=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 u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:x1,resetWarningCache:O1};return n.PropTypes=n,n};C1.exports=hT();var pT=C1.exports;const K=nl(pT);function Rg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function wn(e){for(var t=1;t=0)&&(n[a]=e[a]);return n}function mT(e,t){if(e==null)return{};var n=gT(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yf(e){return vT(e)||yT(e)||wT(e)||_T()}function vT(e){if(Array.isArray(e))return wf(e)}function yT(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wT(e,t){if(e){if(typeof e=="string")return wf(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 wf(e,t)}}function wf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(l){return N1(e,l)}),a=Object.keys(t.attributes||{}).reduce(function(l,u){var h=t.attributes[u];switch(u){case"class":l.attrs.className=h,delete t.attributes.class;break;case"style":l.attrs.style=CT(h);break;default:u.indexOf("aria-")===0||u.indexOf("data-")===0?l.attrs[u.toLowerCase()]=h:l.attrs[P1(u)]=h}return l},{attrs:{}}),i=n.style,o=i===void 0?{}:i,s=mT(n,ET);return a.attrs.style=wn(wn({},a.attrs.style),o),e.apply(void 0,[t.tag,wn(wn({},a.attrs),s)].concat(yf(r)))}var D1=!1;try{D1=!0}catch{}function OT(){if(!D1&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function $g(e){if(e&&Hs(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(vf.icon)return vf.icon(e);if(e===null)return null;if(e&&Hs(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 Iu(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Kr({},e,t):{}}var Fe=Sn.forwardRef(function(e,t){var n=e.icon,r=e.mask,a=e.symbol,i=e.className,o=e.title,s=e.titleId,l=e.maskId,u=$g(n),h=Iu("classes",[].concat(yf(ST(e)),yf(i.split(" ")))),d=Iu("transform",typeof e.transform=="string"?vf.transform(e.transform):e.transform),p=Iu("mask",$g(r)),w=uT(u,wn(wn(wn(wn({},h),d),p),{},{symbol:a,title:o,titleId:s,maskId:l}));if(!w)return OT("Could not find icon",u),null;var m=w.abstract,_={ref:t};return Object.keys(e).forEach(function(b){Fe.defaultProps.hasOwnProperty(b)||(_[b]=e[b])}),xT(m[0],_)});Fe.displayName="FontAwesomeIcon";Fe.propTypes={beat:K.bool,border:K.bool,beatFade:K.bool,bounce:K.bool,className:K.string,fade:K.bool,flash:K.bool,mask:K.oneOfType([K.object,K.array,K.string]),maskId:K.string,fixedWidth:K.bool,inverse:K.bool,flip:K.oneOf([!0,!1,"horizontal","vertical","both"]),icon:K.oneOfType([K.object,K.array,K.string]),listItem:K.bool,pull:K.oneOf(["right","left"]),pulse:K.bool,rotation:K.oneOf([0,90,180,270]),shake:K.bool,size:K.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:K.bool,spinPulse:K.bool,spinReverse:K.bool,symbol:K.oneOfType([K.bool,K.string]),title:K.string,titleId:K.string,transform:K.oneOfType([K.string,K.object]),swapOpacity:K.bool};Fe.defaultProps={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};var xT=N1.bind(null,Sn.createElement),PT={prefix:"fas",iconName:"caret-right",icon:[256,512,[],"f0da","M246.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-128-128c-9.2-9.2-22.9-11.9-34.9-6.9s-19.8 16.6-19.8 29.6l0 256c0 12.9 7.8 24.6 19.8 29.6s25.7 2.2 34.9-6.9l128-128z"]},Lg={prefix:"fas",iconName:"square-check",icon:[448,512,[9745,9989,61510,"check-square"],"f14a","M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zM337 209L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},NT={prefix:"fas",iconName:"arrows-rotate",icon:[512,512,[128472,"refresh","sync"],"f021","M105.1 202.6c7.7-21.8 20.2-42.3 37.8-59.8c62.5-62.5 163.8-62.5 226.3 0L386.3 160H336c-17.7 0-32 14.3-32 32s14.3 32 32 32H463.5c0 0 0 0 0 0h.4c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32s-32 14.3-32 32v51.2L414.4 97.6c-87.5-87.5-229.3-87.5-316.8 0C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5zM39 289.3c-5 1.5-9.8 4.2-13.7 8.2c-4 4-6.7 8.8-8.1 14c-.3 1.2-.6 2.5-.8 3.8c-.3 1.7-.4 3.4-.4 5.1V448c0 17.7 14.3 32 32 32s32-14.3 32-32V396.9l17.6 17.5 0 0c87.5 87.4 229.3 87.4 316.7 0c24.4-24.4 42.1-53.1 52.9-83.7c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.5 62.5-163.8 62.5-226.3 0l-.1-.1L125.6 352H176c17.7 0 32-14.3 32-32s-14.3-32-32-32H48.4c-1.6 0-3.2 .1-4.8 .3s-3.1 .5-4.6 1z"]},Mg={prefix:"fas",iconName:"square",icon:[448,512,[9632,9723,9724,61590],"f0c8","M0 96C0 60.7 28.7 32 64 32H384c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96z"]},DT={prefix:"fas",iconName:"circle-question",icon:[512,512,[62108,"question-circle"],"f059","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM169.8 165.3c7.9-22.3 29.1-37.3 52.8-37.3h58.3c34.9 0 63.1 28.3 63.1 63.1c0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6c-13.3 0-24-10.7-24-24V250.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1c0-8.4-6.8-15.1-15.1-15.1H222.6c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},kT={prefix:"fas",iconName:"floppy-disk",icon:[448,512,[128190,128426,"save"],"f0c7","M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V173.3c0-17-6.7-33.3-18.7-45.3L352 50.7C340 38.7 323.7 32 306.7 32H64zm0 96c0-17.7 14.3-32 32-32H288c17.7 0 32 14.3 32 32v64c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V128zM224 288a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"]},AT={prefix:"fas",iconName:"caret-down",icon:[320,512,[],"f0d7","M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"]},RT={prefix:"fas",iconName:"arrow-right-arrow-left",icon:[448,512,[8644,"exchange"],"f0ec","M438.6 150.6c12.5-12.5 12.5-32.8 0-45.3l-96-96c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.7 96 32 96C14.3 96 0 110.3 0 128s14.3 32 32 32l306.7 0-41.4 41.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l96-96zm-333.3 352c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 416 416 416c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0 41.4-41.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-96 96c-12.5 12.5-12.5 32.8 0 45.3l96 96z"]},$T=RT,LT={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},MT={prefix:"fas",iconName:"x",icon:[384,512,[120],"58","M376.6 84.5c11.3-13.6 9.5-33.8-4.1-45.1s-33.8-9.5-45.1 4.1L192 206 56.6 43.5C45.3 29.9 25.1 28.1 11.5 39.4S-3.9 70.9 7.4 84.5L150.3 256 7.4 427.5c-11.3 13.6-9.5 33.8 4.1 45.1s33.8 9.5 45.1-4.1L192 306 327.4 468.5c11.3 13.6 31.5 15.4 45.1 4.1s15.4-31.5 4.1-45.1L233.7 256 376.6 84.5z"]};const jT="_headerDiagnosticsBtnContainer_1ogb6_1",FT="_taggleBtn_1ogb6_12",IT="_toggleBtnInnerOn_1ogb6_26",UT="_toggleBtnInnerOff_1ogb6_27",zT="_faIcon_1ogb6_48",Pr={headerDiagnosticsBtnContainer:jT,taggleBtn:FT,toggleBtnInnerOn:IT,toggleBtnInnerOff:UT,faIcon:zT};function HT(){const{panelState:e,setPanelState:t,setViewInLogPanel:n}=P.useContext(it);function r(){t(a=>{const i={...a},o=!i.diagnostics.show;i.diagnostics.show=o;const s=localStorage.getItem("appSetting"),l=JSON.parse(s);return l.diagnosticsPanelShow=o,localStorage.setItem("appSetting",JSON.stringify(l)),i}),n(a=>{const i={...a};return e.diagnostics.show&&(i.streamTable=!1,i.diagnosticsLogs=!0),e.diagnostics.show||(i.streamTable=!0,i.diagnosticsLogs=!1),i})}return T.jsxs("div",{id:"headerDiagnosticsBtn",className:`header_each_btn ${Pr.headerDiagnosticsBtnContainer}`,onClick:r,children:[T.jsx("span",{className:Pr.taggleBtn,children:T.jsx("span",{className:e.diagnostics.show?Pr.toggleBtnInnerOn:Pr.toggleBtnInnerOff,children:e.diagnostics.show?T.jsx(Fe,{icon:LT,className:Pr.faIcon}):T.jsx(Fe,{icon:MT,className:Pr.faIcon})})}),T.jsx("p",{children:"Diagnostics"})]})}const WT="_headerLeftMainContainer_1bzdp_1",GT="_headerLogoContainer_1bzdp_8",VT="_headerLogo_1bzdp_8",qT="_headerLogoText_1bzdp_21",Lo={headerLeftMainContainer:WT,headerLogoContainer:GT,headerLogo:VT,headerLogoText:qT},KT="/assets/idaes-logo-4b9fada6.png";function YT(){return T.jsxs("div",{className:Lo.headerLeftMainContainer,children:[T.jsxs("div",{id:"headerLogoContainer",className:`headerLogoContainer ${Lo.headerLogoContainer}`,children:[T.jsx("img",{src:KT,alt:"idaes logo for header component",id:"headerLogo",className:`${Lo.headerLogo}`}),T.jsx("p",{id:"headerLogoText",className:`${Lo.headerLogoText}`,children:"IDAES"})]}),T.jsx("div",{children:T.jsx(HT,{})})]})}const XT="_header_flowsheet_name_3hhh9_1",JT={header_flowsheet_name:XT};function QT(){const{fv_id:e}=P.useContext(it);return T.jsx("p",{id:"flowsheet_name_title",className:`${JT.header_flowsheet_name}`,children:e||"Name not found"})}function BT(){return T.jsxs("li",{id:"refresh_btn",className:"header_each_btn",children:[T.jsx(Fe,{icon:NT,className:"mr-sm"}),"Refresh"]})}function ZT(){return T.jsxs("li",{id:"save_btn",className:"header_each_btn",children:[T.jsx(Fe,{icon:kT,className:"mr-sm"}),"Save"]})}const eC="_link_5oxur_1",tC={link:eC};function nC(){return T.jsxs("li",{id:"help_btn",className:"header_each_btn",children:[T.jsx(Fe,{icon:DT,className:"mr-sm"}),T.jsx("a",{href:"https://idaes-pse.readthedocs.io/en/latest/tutorials/getting_started/index.html",target:"_blank",className:`${tC.link}`,children:"Help"})]})}function rC(){function e(){["mosaicLayout","layout","diagnosticsPanelParams"].forEach(n=>{localStorage.removeItem(n)}),window.location.reload()}return T.jsxs("li",{id:"save_btn",className:"header_each_btn",onClick:()=>{e()},children:[T.jsx(Fe,{icon:$T,className:"mr-sm"}),"Reset Layout"]})}const aC="_header_fn_btn_wrapper_ul_18i4g_1",iC={header_fn_btn_wrapper_ul:aC};function oC(){return T.jsxs("ul",{className:`${iC.header_fn_btn_wrapper_ul}`,children:[T.jsx(BT,{}),T.jsx(ZT,{}),T.jsx(rC,{}),T.jsx(nC,{})]})}const sC="_header_container_1gczp_1",lC={header_container:sC};function uC(){return P.useContext(it),T.jsxs("header",{id:"header",className:`row ${lC.header_container}`,children:[T.jsx(YT,{}),T.jsx(QT,{}),T.jsx(oC,{})]})}const _f={attrs:{g:{},text:{display:"block","font-size":"7","text-anchor":"left"},rect:{width:"2000",height:"2000",fill:"white",rx:0,ry:0,"fill-opacity":"1"},tspan:{fill:"white",dy:10}}},Sf={attrs:{text:{display:"none"},rect:{"fill-opacity":"0"}}},Ws=0,jg=1;class cC{constructor(t){z(this,"_app");z(this,"joint");z(this,"_originalLinkStroke");z(this,"_originalLinkStrokeWidth");z(this,"_highlightLinkStroke");z(this,"_highlightLinkStrokeWidth");z(this,"_graph");z(this,"_paper");z(this,"_paperScroller");z(this,"_selection");this._app=t;let n=joint.shapes.standard,r=800,a=800,i=1;this._originalLinkStroke="#979797",this._originalLinkStrokeWidth=2,this._highlightLinkStroke="#0B79BD",this._highlightLinkStrokeWidth=4,this._graph=new joint.dia.Graph([],{cellNamespace:{standard:n}}),this._paper=new joint.dia.Paper({model:this._graph,cellViewNamespace:{standard:n},width:r,height:a,gridSize:i,drawGrid:!1,interactive:!0}),this._paperScroller=new joint.ui.PaperScroller({padding:100,paper:this._paper,autoResizePaper:!0,scrollWhileDragging:!0,baseWidth:10,baseHeight:10,cursor:"grab"}),this._selection=new joint.ui.Selection({paper:this._paper}),this._selection.removeHandle("remove"),this._selection.removeHandle("rotate"),this._selection.removeHandle("resize"),self=this,document.getElementById("fv").append(self._paperScroller.render().el),self.preSetupRegisterEvents()}get graph(){return this._graph}set graph(t){this._graph.fromJSON(t)}get paper(){return self._paper}get paperScroller(){return self._paperScroller}get selection(){return self._selection}translate_for_angle(t){return{0:[0,5],90:[38,-35],180:[0,-72],270:[-38,-34]}[t]}preSetupRegisterEvents(){this._graph.on("change:position change:angle change:vertices",()=>{this._app.graphChanged()});let t=document.getElementById("fv");t||console.error("idaes canvas is not found");const n=document.querySelector("#stream-table-data");t.addEventListener("HighlightStream",r=>{const a=t.querySelector(`[model-id=${r.detail.streamId}]`);a&&a.dispatchEvent(new Event("HighlightStream"))}),t.addEventListener("RemoveHighlightStream",r=>{const a=t.querySelector(`[model-id=${r.detail.streamId}]`);a&&a.dispatchEvent(new Event("RemoveHighlightStream"))}),self._paper.on("blank:pointerdown",self._selection.startSelecting),self._paper.on("element:pointerup",function(r,a){console.log("work"),(a.shiftKey||a.metaKey)&&self._selection.collection.add(r.model)}),self._selection.on("selection-box:pointerdown",function(r,a){(a.shiftKey||a.metaKey)&&self._selection.collection.remove(r.model)}),self._paper.on("element:contextmenu",function(r,a){r.model.rotate(90);const i=r.model.angle(),o=self.translate_for_angle(i,0,0);o===void 0?console.error(`Angle of unit model must be either 0, 90, 180, or 270. Angle is ${i}`):r.model.attr("label/transform",`translate(${o[0]}, ${o[1]}) rotate(-${i})`)}),self._paper.on("link:mouseenter",function(r){let a=document.querySelector("#stream-table-data"),i=document.querySelector("#fv");if(!a||!i)return;let o=new joint.linkTools.Vertices({focusOpacity:.5,redundancyRemoval:!0,snapRadius:20,vertexAdding:!0}),s=new joint.linkTools.Segments,l=new joint.dia.ToolsView({tools:[o,s]});r.addTools(l),r.showTools();const u=new CustomEvent("HighlightStream",{detail:{streamId:r.model.id}});i.dispatchEvent(u),a.dispatchEvent(u)}),self._paper.on("link:mouseleave",function(r){r.hideTools();const a=new CustomEvent("RemoveHighlightStream",{detail:{streamId:r.model.id}});t&&t.dispatchEvent(a),n&&n.dispatchEvent(a)}),self._paper.on("link:contextmenu",function(r,a){r.model.label(Ws).attrs.text.display==="none"?r.model.label(Ws,_f):r.model.label(0,Sf)})}zoomToFit(t=30){this._paperScroller.zoomToFit({padding:t})}postSetupRegisterEvents(){this.zoomToFit(),this._graph.getLinks().forEach(t=>{let n=t.findView(this._paper);n.el.addEventListener("HighlightStream",()=>{n.model.attr({line:{stroke:this._highlightLinkStroke,"stroke-width":this._highlightLinkStrokeWidth}})}),n.el.addEventListener("RemoveHighlightStream",()=>{n.model.attr({line:{stroke:this._originalLinkStroke,"stroke-width":this._originalLinkStrokeWidth}})})})}reorderLabel(t){let n=null,r=null;if(t.cells.forEach((i,o)=>{i.id.includes("liq")&&(n=o),i.id.includes("vap")&&(r=o)}),!n||!r)return;const a=t.cells[n];t.cells[n]=t.cells[r],t.cells[r]=a,t.cells[n]}setup(t){const n="/assets/image/flowsheet_icons/";t.cells.reverse(),t.cells.forEach(r=>{if(r.type==="standard.Image"){let a=n+r.attrs.image.xlinkHref.match(/([^\/]+\.svg)$/)[0];r.attrs.image={...r.attrs.image,xlinkHref:a}}r.labels&&(r.z=1e3,r.labels[0])}),this.reorderLabel(t),this._graph.fromJSON(t),this.postSetupRegisterEvents()}}class fC{constructor(t){z(this,"_model");this._model=t}get model(){return this._model}set model(t){this._model=t}findCellIndex(t,n){for(let r=0;r{const o=i.getEndAnchor("source"),s=i.getEndAnchor("target"),l=new g.Point(o.x+t.source.x,o.y+t.source.y),u=new g.Point(s.x+t.destination.x,s.y+t.destination.y),h=i.getEndView("source").model.angle(),d=i.getEndView("target").model.angle(),p=h%180===0?1:-1,w=d%180===0?1:-1,m=l.rotate(o,p*h),_=u.rotate(s,w*d);return joint.routers.manhattan([m,...r,_],a,i)}}processRoutingConfig(){const t=this._model.routing_config;for(let n in t){const r=this.findCellIndex(n,"standard.Link");let a=t[n].cell_config.gap,i=this.routerGapFnFactory(a);this._model.cells[r].router=i}return this._model.cells.map(n=>{if(n.labels&&n.labels[1].position)return n.labels.reverse(),n}),this._model}}let dC=class{constructor(t,n,r){z(this,"_app");z(this,"UNFIXED","unfixed");z(this,"FIXED","fixed");z(this,"PARAMETER","parameter");z(this,"EXPRESSION","expression");z(this,"highlightFn");z(this,"removeHighlightFn");z(this,"gridCellMouseEnterFn");z(this,"gridCellMouseLeaveFn");z(this,"existing_var_types");z(this,"_gridOptions");z(this,"viewInLogPanel");this._app=t,this.viewInLogPanel=r,this.defineTableBrushingFns(),this.initTable(n),this.existing_var_types=new Set}initTable(t){this.clearTable(),this.emptyVarTypesPanel(),this.fillTable(t),this.setupEvents()}clearTable(){const t=document.querySelector("#stream-table-data");t&&(t.innerHTML="")}emptyVarTypesPanel(){this.existing_var_types=new Set;const t=document.querySelector("#existing-variable-types");t.innerHTML=""}fillVarTypesPanel(){const t=document.querySelector("#existing-variable-types"),n="streamtable-vartype-element";if(this.existing_var_types.has(this.FIXED)||this.existing_var_types.has(this.PARAMETER)||this.existing_var_types.has(this.EXPRESSION)){const r=document.createElement("p");r.innerHTML="Annotated Variable Types:",r.className=n,t.appendChild(r)}this.existing_var_types.forEach(r=>{switch(r){case this.UNFIXED:console.debug("Unfixed variables don't have a visual indicator");break;case this.FIXED:case this.PARAMETER:case this.EXPRESSION:const a=document.createElement("span");a.className=n;const i=document.createElement("span"),o=document.createElement("span");o.className="streamtable-vartype-text",i.className=`streamtable-vartype-${r}`,i.title=r,o.innerHTML=r,a.appendChild(i),a.appendChild(o),t.appendChild(a);break;default:console.warn("Couldn't identify Variable type")}})}fillTable(t){let n=t.model.stream_table;const r=document.querySelector("#hide-fields-list");r&&(r.innerHTML="");let a=n.columns,i=[];for(let w in a){let m=a[w];if(m!==""&&m!=="Units"&&!m.includes("_vartype"))if(m==="Variable")i.push({headerName:m,field:m,filter:"agTextColumnFilter",sortable:!0,resizable:!0,pinned:"left",cellRenderer:_=>''+_.value+""});else{i.push({headerName:m,field:m,filter:"agTextColumnFilter",sortable:!0,resizable:!0,cellRenderer:v=>''+v.value+""});let _=document.createElement("li"),b=document.createElement("div");b.className="checkbox",b.innerHTML=` + + `,_.appendChild(b),r.appendChild(_)}}let o=n.index,s=n.data,l=[],u="Variable";for(let w in o){let m={},_=s[w];for(let b in a)if(a[b]==="Units")_[b]&&_[b].html?m[u]=m[u]+''+_[b].html+"":m[u]=m[u]+'';else if(a[b]==="Variable")m[a[b]]=_[b];else{var[h,d]=_[b];let v="";switch(d){case this.UNFIXED:this.existing_var_types.add(d);break;case this.FIXED:case this.PARAMETER:case this.EXPRESSION:this.existing_var_types.add(d),v=``;break;default:console.warn(`Couldn't identify Variable type: ${d}`)}m[a[b]]=v+''+h+""}l.push(m)}this.fillVarTypesPanel(),this._gridOptions={columnDefs:i,rowData:l,suppressColumnVirtualisation:!0},this._gridOptions.getRowStyle=function(w){if(w.node.rowIndex%2===0)return{background:"#f3f3f3"}};let p=document.querySelector("#stream-table-data");new agGrid.Grid(p,this._gridOptions),this._gridOptions.columnApi.autoSizeAllColumns()}defineTableBrushingFns(){let t=document.querySelector("#stream-table-data"),n=document.querySelector("#fv");!t||!n||!this.viewInLogPanel.streamTable||(this.highlightFn=r=>{let a=t.querySelectorAll(`[col-id=${r.detail.streamId}]`);a.forEach((i,o)=>{i.getAttribute("role")=="columnheader"?i.classList.add("link-streamtable-hover-columnheader"):o==a.length-1?i.classList.add("link-streamtable-hover-lastrow"):i.classList.add("link-streamtable-hover")})},this.removeHighlightFn=r=>{console.log("remove hight light"),t.querySelectorAll(`[col-id=${r.detail.streamId}]`).forEach(i=>{i.classList.remove("link-streamtable-hover-columnheader"),i.classList.remove("link-streamtable-hover-lastrow"),i.classList.remove("link-streamtable-hover")})},this.gridCellMouseEnterFn=r=>{const a=r.target.getAttribute("col-id");if(a){const i=new CustomEvent("HighlightStream",{detail:{streamId:a}});t.dispatchEvent(i),n.dispatchEvent(i)}},this.gridCellMouseLeaveFn=r=>{const a=r.target.getAttribute("col-id"),i=new CustomEvent("RemoveHighlightStream",{detail:{streamId:a}});t.dispatchEvent(i),n.dispatchEvent(i)})}registerTableBrushing(){let t=document.querySelector("#stream-table-data");document.querySelector("#fv");let n=document.querySelectorAll("[col-id]");t.removeEventListener("HighlightStream",this.highlightFn),t.removeEventListener("RemoveHighlightStream",this.removeHighlightFn),n.forEach(r=>{r.removeEventListener("mouseenter",this.gridCellMouseEnterFn),r.removeEventListener("mouseleave",this.gridCellMouseLeaveFn)}),t.addEventListener("HighlightStream",this.highlightFn),t.addEventListener("RemoveHighlightStream",this.removeHighlightFn),n.forEach(r=>{r.addEventListener("mouseenter",this.gridCellMouseEnterFn),r.addEventListener("mouseleave",this.gridCellMouseLeaveFn)})}setupEvents(){let n=document.querySelector("#hide-fields-list").querySelectorAll("input[type=checkbox]"),r=this;n.forEach(function(a){a.addEventListener("change",function(i){var l;i.preventDefault();let o=i.target,s=(l=o.parentElement)==null?void 0:l.querySelector("span");o.checked?(s.style.display="block",r._gridOptions.columnApi.setColumnVisible(o.id,!0),r.registerTableBrushing()):(s.style.display="none",r._gridOptions.columnApi.setColumnVisible(o.id,!1))})}),this.registerTableBrushing()}};class hC{constructor(t,n,r,a,i,o,s){z(this,"_app");z(this,"_paper");z(this,"_stream_table");z(this,"flowsheetId");z(this,"getFSUrl");z(this,"putFSUrl");z(this,"isFvShow");z(this,"zoomRate");z(this,"toggleStreamNameBtn");z(this,"toggleLabelsBtn");z(this,"zoomInBtn");z(this,"zoomOutBtn");z(this,"zoomFitBtn");z(this,"zoomInHandler");z(this,"zoomOutHandler");z(this,"zoomFitHandler");this._app=t,this._paper=n,this._stream_table=r,this.flowsheetId=a,this.getFSUrl=i,this.putFSUrl=o,this.isFvShow=s,this.zoomRate=.2,this.zoomInHandler=void 0,this.zoomOutHandler=void 0,this.zoomFitHandler=void 0,this.registerEventExportFlowsheetToPng(),this.registerEventExportFlowsheetToSvg(),this.registerEventRefresh(this.getFSUrl,this.putFSUrl),this.registerEventSave(this.putFSUrl),this.zoomInBtn=document.querySelector("#zoom-in-btn"),this.zoomOutBtn=document.querySelector("#zoom-out-btn"),this.zoomFitBtn=document.querySelector("#zoom-to-fit"),s&&(this.toggleStreamNameBtn=document.querySelector("#stream-names-toggle"),this.toggleStreamNameBtn&&this.registerToggleStreamNamesEvent(this.toggleStreamNameBtn),this.toggleLabelsBtn=document.querySelector("#show-label-toggle"),this.toggleLabelsBtn&&this.registerEventToggleLabel(this.toggleLabelsBtn),this.zoomInBtn&&this.zoomOutBtn&&this.zoomFitBtn&&this.registerZoomEvent(this.zoomInBtn,this.zoomOutBtn,this.zoomFitBtn))}registerZoomEvent(t,n,r){this.zoomInHandler=()=>this.zoomInEvent(this._paper.paperScroller,this.zoomRate),this.zoomOutHandler=()=>this.zoomOutEvent(this._paper.paperScroller,this.zoomRate),this.zoomFitHandler=()=>this.zoomFitEvent(),t.addEventListener("click",this.zoomInHandler),n.addEventListener("click",this.zoomOutHandler),r.addEventListener("click",this.zoomFitHandler)}zoomInEvent(t,n){t.zoom(n,{max:100})}zoomOutEvent(t,n){t.zoom(-n,{min:.01})}zoomFitEvent(){this._paper.zoomToFit()}registerToggleStreamNamesEvent(t){t.addEventListener("click",()=>{t.getAttribute("data-toggle")==="true"?this._paper._graph.getLinks().forEach(function(r){r.label(jg,Sf)}):this._paper._graph.getLinks().forEach(function(r){r.label(jg,_f)})})}registerEventExportFlowsheetToPng(){const t=document.querySelector("#headerExportImageBtn");document.querySelector("#headerExportSvgBtn"),t.addEventListener("click",()=>{let n=this._paper.paper;const r=this.flowsheetId;n.hideTools(),n.toPNG(function(a){new joint.ui.Lightbox({image:a,downloadable:!0,fileName:r.concat(".png")}).open()},{scale:2,pixelRatio:2,preserveDimensions:!0,convertImagesToDataUris:!0,useComputedStyles:!0,stylesheet:".scalable * { vector-effect: non-scaling-stroke }"})})}registerEventExportFlowsheetToSvg(){document.querySelector("#headerExportSvgBtn").addEventListener("click",()=>{let n=this._paper.paper;const r=this.flowsheetId;n.hideTools(),n.toSVG(a=>{const i=new Blob([a],{type:"image/svg+xml;charset=utf-8"}),o=URL.createObjectURL(i);new joint.ui.Lightbox({image:o,downloadable:!0,fileName:r.concat(".svg")}).open()},{scale:2,pixelRatio:2,preserveDimensions:!0,convertImagesToDataUris:!0,useComputedStyles:!0,stylesheet:".scalable * { vector-effect: non-scaling-stroke }"})})}registerEventToggleLabel(t){t.addEventListener("click",()=>{t.getAttribute("data-toggle")=="true"?this._paper._graph.getLinks().forEach(function(r){r.label(Ws,_f)}):this._paper._graph.getLinks().forEach(function(r){r.label(Ws,Sf)})})}registerEventRefresh(t,n){document.querySelector("#refresh_btn").addEventListener("click",()=>{this._app.refreshModel(t,n,this._paper)})}registerEventSave(t){document.querySelector("#save_btn").addEventListener("click",()=>{this._app.saveModel(t,this._paper.graph)})}cleanUpEvent(){let t=document.getElementById("zoom-in-btn"),n=document.getElementById("zoom-out-btn"),r=document.getElementById("zoom-to-fit");if(t){let u=t.cloneNode(!0);t.parentNode.replaceChild(u,t)}if(n){let u=n.cloneNode(!0);n.parentNode.replaceChild(u,n)}if(r){let u=r.cloneNode(!0);r.parentNode.replaceChild(u,r)}let a=document.getElementById("flowsheet_component_header_dropdown_container"),i=document.getElementById("headerExportImageBtn"),o=document.getElementById("headerExportSvgBtn");if(i){let u=i.cloneNode(!0);a?a.replaceChild(u,i):console.log("error no parent nodes")}if(o){let u=o.cloneNode(!0);a?a.replaceChild(u,o):console.log("error download svg btn replacement failed, in toolbar, parent not found!")}let s=document.getElementById("save_btn");if(s){let u=s.cloneNode(!0);s.parentNode?s.parentNode.replaceChild(u,s):console.log("error save btn replacement error handle in toolbar, parent not found!")}let l=document.getElementById("refresh_btn");if(l){let u=l.cloneNode(!0);l.parentNode?l.parentNode.replaceChild(u,l):console.log("error refresh btn replacement error handle in toolbar, parent not found!")}}}const pC="_message_bar_container_8b2qe_1",gC="_messageBarTextContainer_8b2qe_9",mC="_messageBarShowUp_8b2qe_1",vC="_bg_successful_8b2qe_40",yC="_bg_error_8b2qe_44",os={message_bar_container:pC,messageBarTextContainer:gC,messageBarShowUp:mC,bg_successful:vC,bg_error:yC};function ir(e,t,n){let r="loading...";e=="refreshFS"&&t&&(r="Flowsheet refreshed."),e=="refreshFS"&&!t&&(r="Flowsheet refresh failed! Please reload the page!"),e=="userSave"&&t&&(r="Flowsheet saved."),e=="userSave"&&!t&&(r="Flowsheet save failed! Please restart the server!"),e=="diagnosticRefresh"&&t&&(r="Diagnostics refreshed."),e=="diagnosticRefresh"&&!t&&(r="Diagnostics refresh failed! Please restart the server!"),e=="diagnosticFNRunError"&&!t&&(n?r=n:r="Run diagnostics failed, please check your python terminal.");const a=` +
+

${r}

+
+ `,i=document.getElementById("messageBarContainer");i.innerHTML=a;const o=setTimeout(()=>{const s=document.getElementById("messageBarTextContainer");console.log(s),s?i.removeChild(s):console.log("Child node message bar is not found!"),clearTimeout(o)},3e3)}function k1(e,t){return function(){return e.apply(t,arguments)}}const{toString:wC}=Object.prototype,{getPrototypeOf:oh}=Object,El=(e=>t=>{const n=wC.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ft=e=>(e=e.toLowerCase(),t=>El(t)===e),Tl=e=>t=>typeof t===e,{isArray:ya}=Array,Ai=Tl("undefined");function _C(e){return e!==null&&!Ai(e)&&e.constructor!==null&&!Ai(e.constructor)&&mt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const A1=Ft("ArrayBuffer");function SC(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&A1(e.buffer),t}const bC=Tl("string"),mt=Tl("function"),R1=Tl("number"),Cl=e=>e!==null&&typeof e=="object",EC=e=>e===!0||e===!1,ss=e=>{if(El(e)!=="object")return!1;const t=oh(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},TC=Ft("Date"),CC=Ft("File"),OC=Ft("Blob"),xC=Ft("FileList"),PC=e=>Cl(e)&&mt(e.pipe),NC=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||mt(e.append)&&((t=El(e))==="formdata"||t==="object"&&mt(e.toString)&&e.toString()==="[object FormData]"))},DC=Ft("URLSearchParams"),kC=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zi(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),ya(e))for(r=0,a=e.length;r0;)if(a=n[r],t===a.toLowerCase())return a;return null}const L1=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),M1=e=>!Ai(e)&&e!==L1;function bf(){const{caseless:e}=M1(this)&&this||{},t={},n=(r,a)=>{const i=e&&$1(t,a)||a;ss(t[i])&&ss(r)?t[i]=bf(t[i],r):ss(r)?t[i]=bf({},r):ya(r)?t[i]=r.slice():t[i]=r};for(let r=0,a=arguments.length;r(zi(t,(a,i)=>{n&&mt(a)?e[i]=k1(a,n):e[i]=a},{allOwnKeys:r}),e),RC=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),$C=(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)},LC=(e,t,n,r)=>{let a,i,o;const s={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)o=a[i],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&oh(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},MC=(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},jC=e=>{if(!e)return null;if(ya(e))return e;let t=e.length;if(!R1(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},FC=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&oh(Uint8Array)),IC=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=r.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},UC=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},zC=Ft("HTMLFormElement"),HC=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),Fg=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),WC=Ft("RegExp"),j1=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};zi(n,(a,i)=>{let o;(o=t(a,i,e))!==!1&&(r[i]=o||a)}),Object.defineProperties(e,r)},GC=e=>{j1(e,(t,n)=>{if(mt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(mt(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+"'")})}})},VC=(e,t)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return ya(e)?r(e):r(String(e).split(t)),n},qC=()=>{},KC=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Uu="abcdefghijklmnopqrstuvwxyz",Ig="0123456789",F1={DIGIT:Ig,ALPHA:Uu,ALPHA_DIGIT:Uu+Uu.toUpperCase()+Ig},YC=(e=16,t=F1.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function XC(e){return!!(e&&mt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const JC=e=>{const t=new Array(10),n=(r,a)=>{if(Cl(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[a]=r;const i=ya(r)?[]:{};return zi(r,(o,s)=>{const l=n(o,a+1);!Ai(l)&&(i[s]=l)}),t[a]=void 0,i}}return r};return n(e,0)},QC=Ft("AsyncFunction"),BC=e=>e&&(Cl(e)||mt(e))&&mt(e.then)&&mt(e.catch),A={isArray:ya,isArrayBuffer:A1,isBuffer:_C,isFormData:NC,isArrayBufferView:SC,isString:bC,isNumber:R1,isBoolean:EC,isObject:Cl,isPlainObject:ss,isUndefined:Ai,isDate:TC,isFile:CC,isBlob:OC,isRegExp:WC,isFunction:mt,isStream:PC,isURLSearchParams:DC,isTypedArray:FC,isFileList:xC,forEach:zi,merge:bf,extend:AC,trim:kC,stripBOM:RC,inherits:$C,toFlatObject:LC,kindOf:El,kindOfTest:Ft,endsWith:MC,toArray:jC,forEachEntry:IC,matchAll:UC,isHTMLForm:zC,hasOwnProperty:Fg,hasOwnProp:Fg,reduceDescriptors:j1,freezeMethods:GC,toObjectSet:VC,toCamelCase:HC,noop:qC,toFiniteNumber:KC,findKey:$1,global:L1,isContextDefined:M1,ALPHABET:F1,generateString:YC,isSpecCompliantForm:XC,toJSONObject:JC,isAsyncFn:QC,isThenable:BC};function X(e,t,n,r,a){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),a&&(this.response=a)}A.inherits(X,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:A.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const I1=X.prototype,U1={};["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=>{U1[e]={value:e}});Object.defineProperties(X,U1);Object.defineProperty(I1,"isAxiosError",{value:!0});X.from=(e,t,n,r,a,i)=>{const o=Object.create(I1);return A.toFlatObject(e,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),X.call(o,e.message,t,n,r,a),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const ZC=null;function Ef(e){return A.isPlainObject(e)||A.isArray(e)}function z1(e){return A.endsWith(e,"[]")?e.slice(0,-2):e}function Ug(e,t,n){return e?e.concat(t).map(function(a,i){return a=z1(a),!n&&i?"["+a+"]":a}).join(n?".":""):t}function eO(e){return A.isArray(e)&&!e.some(Ef)}const tO=A.toFlatObject(A,{},null,function(t){return/^is[A-Z]/.test(t)});function Ol(e,t,n){if(!A.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=A.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,b){return!A.isUndefined(b[_])});const r=n.metaTokens,a=n.visitor||h,i=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&A.isSpecCompliantForm(t);if(!A.isFunction(a))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(A.isDate(m))return m.toISOString();if(!l&&A.isBlob(m))throw new X("Blob is not supported. Use a Buffer instead.");return A.isArrayBuffer(m)||A.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function h(m,_,b){let v=m;if(m&&!b&&typeof m=="object"){if(A.endsWith(_,"{}"))_=r?_:_.slice(0,-2),m=JSON.stringify(m);else if(A.isArray(m)&&eO(m)||(A.isFileList(m)||A.endsWith(_,"[]"))&&(v=A.toArray(m)))return _=z1(_),v.forEach(function(S,x){!(A.isUndefined(S)||S===null)&&t.append(o===!0?Ug([_],x,i):o===null?_:_+"[]",u(S))}),!1}return Ef(m)?!0:(t.append(Ug(b,_,i),u(m)),!1)}const d=[],p=Object.assign(tO,{defaultVisitor:h,convertValue:u,isVisitable:Ef});function w(m,_){if(!A.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+_.join("."));d.push(m),A.forEach(m,function(v,y){(!(A.isUndefined(v)||v===null)&&a.call(t,v,A.isString(y)?y.trim():y,_,p))===!0&&w(v,_?_.concat(y):[y])}),d.pop()}}if(!A.isObject(e))throw new TypeError("data must be an object");return w(e),t}function zg(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function sh(e,t){this._pairs=[],e&&Ol(e,this,t)}const H1=sh.prototype;H1.append=function(t,n){this._pairs.push([t,n])};H1.toString=function(t){const n=t?function(r){return t.call(this,r,zg)}:zg;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function nO(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function W1(e,t,n){if(!t)return e;const r=n&&n.encode||nO,a=n&&n.serialize;let i;if(a?i=a(t,n):i=A.isURLSearchParams(t)?t.toString():new sh(t,n).toString(r),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class rO{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){A.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Hg=rO,G1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},aO=typeof URLSearchParams<"u"?URLSearchParams:sh,iO=typeof FormData<"u"?FormData:null,oO=typeof Blob<"u"?Blob:null,sO={isBrowser:!0,classes:{URLSearchParams:aO,FormData:iO,Blob:oO},protocols:["http","https","file","blob","url","data"]},V1=typeof window<"u"&&typeof document<"u",lO=(e=>V1&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),uO=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),cO=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:V1,hasStandardBrowserEnv:lO,hasStandardBrowserWebWorkerEnv:uO},Symbol.toStringTag,{value:"Module"})),Lt={...cO,...sO};function fO(e,t){return Ol(e,new Lt.classes.URLSearchParams,Object.assign({visitor:function(n,r,a,i){return Lt.isNode&&A.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function dO(e){return A.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function hO(e){const t={},n=Object.keys(e);let r;const a=n.length;let i;for(r=0;r=n.length;return o=!o&&A.isArray(a)?a.length:o,l?(A.hasOwnProp(a,o)?a[o]=[a[o],r]:a[o]=r,!s):((!a[o]||!A.isObject(a[o]))&&(a[o]=[]),t(n,r,a[o],i)&&A.isArray(a[o])&&(a[o]=hO(a[o])),!s)}if(A.isFormData(e)&&A.isFunction(e.entries)){const n={};return A.forEachEntry(e,(r,a)=>{t(dO(r),a,n,0)}),n}return null}function pO(e,t,n){if(A.isString(e))try{return(t||JSON.parse)(e),A.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const lh={transitional:G1,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,i=A.isObject(t);if(i&&A.isHTMLForm(t)&&(t=new FormData(t)),A.isFormData(t))return a&&a?JSON.stringify(q1(t)):t;if(A.isArrayBuffer(t)||A.isBuffer(t)||A.isStream(t)||A.isFile(t)||A.isBlob(t))return t;if(A.isArrayBufferView(t))return t.buffer;if(A.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return fO(t,this.formSerializer).toString();if((s=A.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Ol(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||a?(n.setContentType("application/json",!1),pO(t)):t}],transformResponse:[function(t){const n=this.transitional||lh.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(t&&A.isString(t)&&(r&&!this.responseType||a)){const o=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?X.from(s,X.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Lt.classes.FormData,Blob:Lt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};A.forEach(["delete","get","head","post","put","patch"],e=>{lh.headers[e]={}});const uh=lh,gO=A.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"]),mO=e=>{const t={};let n,r,a;return e&&e.split(` +`).forEach(function(o){a=o.indexOf(":"),n=o.substring(0,a).trim().toLowerCase(),r=o.substring(a+1).trim(),!(!n||t[n]&&gO[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Wg=Symbol("internals");function Ma(e){return e&&String(e).trim().toLowerCase()}function ls(e){return e===!1||e==null?e:A.isArray(e)?e.map(ls):String(e)}function vO(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 yO=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function zu(e,t,n,r,a){if(A.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!A.isString(t)){if(A.isString(r))return t.indexOf(r)!==-1;if(A.isRegExp(r))return r.test(t)}}function wO(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function _O(e,t){const n=A.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(a,i,o){return this[r].call(this,t,a,i,o)},configurable:!0})})}class xl{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function i(s,l,u){const h=Ma(l);if(!h)throw new Error("header name must be a non-empty string");const d=A.findKey(a,h);(!d||a[d]===void 0||u===!0||u===void 0&&a[d]!==!1)&&(a[d||l]=ls(s))}const o=(s,l)=>A.forEach(s,(u,h)=>i(u,h,l));return A.isPlainObject(t)||t instanceof this.constructor?o(t,n):A.isString(t)&&(t=t.trim())&&!yO(t)?o(mO(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=Ma(t),t){const r=A.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return vO(a);if(A.isFunction(n))return n.call(this,a,r);if(A.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ma(t),t){const r=A.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||zu(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function i(o){if(o=Ma(o),o){const s=A.findKey(r,o);s&&(!n||zu(r,r[s],s,n))&&(delete r[s],a=!0)}}return A.isArray(t)?t.forEach(i):i(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const i=n[r];(!t||zu(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const n=this,r={};return A.forEach(this,(a,i)=>{const o=A.findKey(r,i);if(o){n[o]=ls(a),delete n[i];return}const s=t?wO(i):String(i).trim();s!==i&&delete n[i],n[s]=ls(a),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return A.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&A.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(` +`)}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(a=>r.set(a)),r}static accessor(t){const r=(this[Wg]=this[Wg]={accessors:{}}).accessors,a=this.prototype;function i(o){const s=Ma(o);r[s]||(_O(a,o),r[s]=!0)}return A.isArray(t)?t.forEach(i):i(t),this}}xl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);A.reduceDescriptors(xl.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});A.freezeMethods(xl);const Xt=xl;function Hu(e,t){const n=this||uh,r=t||n,a=Xt.from(r.headers);let i=r.data;return A.forEach(e,function(s){i=s.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function K1(e){return!!(e&&e.__CANCEL__)}function Hi(e,t,n){X.call(this,e??"canceled",X.ERR_CANCELED,t,n),this.name="CanceledError"}A.inherits(Hi,X,{__CANCEL__:!0});function SO(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new X("Request failed with status code "+n.status,[X.ERR_BAD_REQUEST,X.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const bO=Lt.hasStandardBrowserEnv?{write(e,t,n,r,a,i){const o=[e+"="+encodeURIComponent(t)];A.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),A.isString(r)&&o.push("path="+r),A.isString(a)&&o.push("domain="+a),i===!0&&o.push("secure"),document.cookie=o.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 EO(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function TO(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Y1(e,t){return e&&!EO(t)?TO(e,t):t}const CO=Lt.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function a(i){let o=i;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=a(window.location.href),function(o){const s=A.isString(o)?a(o):o;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function OO(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function xO(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,i=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),h=r[i];o||(o=u),n[a]=l,r[a]=u;let d=i,p=0;for(;d!==a;)p+=n[d++],d=d%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),u-o{const i=a.loaded,o=a.lengthComputable?a.total:void 0,s=i-n,l=r(s),u=i<=o;n=i;const h={loaded:i,total:o,progress:o?i/o:void 0,bytes:s,rate:l||void 0,estimated:l&&o&&u?(o-i)/l:void 0,event:a};h[t?"download":"upload"]=!0,e(h)}}const PO=typeof XMLHttpRequest<"u",NO=PO&&function(e){return new Promise(function(n,r){let a=e.data;const i=Xt.from(e.headers).normalize();let{responseType:o,withXSRFToken:s}=e,l;function u(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let h;if(A.isFormData(a)){if(Lt.hasStandardBrowserEnv||Lt.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((h=i.getContentType())!==!1){const[_,...b]=h?h.split(";").map(v=>v.trim()).filter(Boolean):[];i.setContentType([_||"multipart/form-data",...b].join("; "))}}let d=new XMLHttpRequest;if(e.auth){const _=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(_+":"+b))}const p=Y1(e.baseURL,e.url);d.open(e.method.toUpperCase(),W1(p,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function w(){if(!d)return;const _=Xt.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),v={data:!o||o==="text"||o==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:_,config:e,request:d};SO(function(S){n(S),u()},function(S){r(S),u()},v),d=null}if("onloadend"in d?d.onloadend=w:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(w)},d.onabort=function(){d&&(r(new X("Request aborted",X.ECONNABORTED,e,d)),d=null)},d.onerror=function(){r(new X("Network Error",X.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let b=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const v=e.transitional||G1;e.timeoutErrorMessage&&(b=e.timeoutErrorMessage),r(new X(b,v.clarifyTimeoutError?X.ETIMEDOUT:X.ECONNABORTED,e,d)),d=null},Lt.hasStandardBrowserEnv&&(s&&A.isFunction(s)&&(s=s(e)),s||s!==!1&&CO(p))){const _=e.xsrfHeaderName&&e.xsrfCookieName&&bO.read(e.xsrfCookieName);_&&i.set(e.xsrfHeaderName,_)}a===void 0&&i.setContentType(null),"setRequestHeader"in d&&A.forEach(i.toJSON(),function(b,v){d.setRequestHeader(v,b)}),A.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),o&&o!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",Gg(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",Gg(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=_=>{d&&(r(!_||_.type?new Hi(null,e,d):_),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const m=OO(p);if(m&&Lt.protocols.indexOf(m)===-1){r(new X("Unsupported protocol "+m+":",X.ERR_BAD_REQUEST,e));return}d.send(a||null)})},Tf={http:ZC,xhr:NO};A.forEach(Tf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Vg=e=>`- ${e}`,DO=e=>A.isFunction(e)||e===null||e===!1,X1={getAdapter:e=>{e=A.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let i=0;i`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?i.length>1?`since : +`+i.map(Vg).join(` +`):" "+Vg(i[0]):"as no adapter specified";throw new X("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:Tf};function Wu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Hi(null,e)}function qg(e){return Wu(e),e.headers=Xt.from(e.headers),e.data=Hu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),X1.getAdapter(e.adapter||uh.adapter)(e).then(function(r){return Wu(e),r.data=Hu.call(e,e.transformResponse,r),r.headers=Xt.from(r.headers),r},function(r){return K1(r)||(Wu(e),r&&r.response&&(r.response.data=Hu.call(e,e.transformResponse,r.response),r.response.headers=Xt.from(r.response.headers))),Promise.reject(r)})}const Kg=e=>e instanceof Xt?e.toJSON():e;function fa(e,t){t=t||{};const n={};function r(u,h,d){return A.isPlainObject(u)&&A.isPlainObject(h)?A.merge.call({caseless:d},u,h):A.isPlainObject(h)?A.merge({},h):A.isArray(h)?h.slice():h}function a(u,h,d){if(A.isUndefined(h)){if(!A.isUndefined(u))return r(void 0,u,d)}else return r(u,h,d)}function i(u,h){if(!A.isUndefined(h))return r(void 0,h)}function o(u,h){if(A.isUndefined(h)){if(!A.isUndefined(u))return r(void 0,u)}else return r(void 0,h)}function s(u,h,d){if(d in t)return r(u,h);if(d in e)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(u,h)=>a(Kg(u),Kg(h),!0)};return A.forEach(Object.keys(Object.assign({},e,t)),function(h){const d=l[h]||a,p=d(e[h],t[h],h);A.isUndefined(p)&&d!==s||(n[h]=p)}),n}const J1="1.6.5",ch={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ch[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Yg={};ch.transitional=function(t,n,r){function a(i,o){return"[Axios v"+J1+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,s)=>{if(t===!1)throw new X(a(o," has been removed"+(n?" in "+n:"")),X.ERR_DEPRECATED);return n&&!Yg[o]&&(Yg[o]=!0,console.warn(a(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,s):!0}};function kO(e,t,n){if(typeof e!="object")throw new X("options must be an object",X.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const i=r[a],o=t[i];if(o){const s=e[i],l=s===void 0||o(s,i,e);if(l!==!0)throw new X("option "+i+" must be "+l,X.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new X("Unknown option "+i,X.ERR_BAD_OPTION)}}const Cf={assertOptions:kO,validators:ch},un=Cf.validators;class Gs{constructor(t){this.defaults=t,this.interceptors={request:new Hg,response:new Hg}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=fa(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&Cf.assertOptions(r,{silentJSONParsing:un.transitional(un.boolean),forcedJSONParsing:un.transitional(un.boolean),clarifyTimeoutError:un.transitional(un.boolean)},!1),a!=null&&(A.isFunction(a)?n.paramsSerializer={serialize:a}:Cf.assertOptions(a,{encode:un.function,serialize:un.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&A.merge(i.common,i[n.method]);i&&A.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=Xt.concat(o,i);const s=[];let l=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(n)===!1||(l=l&&_.synchronous,s.unshift(_.fulfilled,_.rejected))});const u=[];this.interceptors.response.forEach(function(_){u.push(_.fulfilled,_.rejected)});let h,d=0,p;if(!l){const m=[qg.bind(this),void 0];for(m.unshift.apply(m,s),m.push.apply(m,u),p=m.length,h=Promise.resolve(n);d{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(s=>{r.subscribe(s),i=s}).then(a);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,s){r.reason||(r.reason=new Hi(i,o,s),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)}static source(){let t;return{token:new fh(function(a){t=a}),cancel:t}}}const AO=fh;function RO(e){return function(n){return e.apply(null,n)}}function $O(e){return A.isObject(e)&&e.isAxiosError===!0}const Of={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(Of).forEach(([e,t])=>{Of[t]=e});const LO=Of;function Q1(e){const t=new us(e),n=k1(us.prototype.request,t);return A.extend(n,us.prototype,t,{allOwnKeys:!0}),A.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return Q1(fa(e,a))},n}const me=Q1(uh);me.Axios=us;me.CanceledError=Hi;me.CancelToken=AO;me.isCancel=K1;me.VERSION=J1;me.toFormData=Ol;me.AxiosError=X;me.Cancel=me.CanceledError;me.all=function(t){return Promise.all(t)};me.spread=RO;me.isAxiosError=$O;me.mergeConfig=fa;me.AxiosHeaders=Xt;me.formToJSON=e=>q1(A.isHTMLForm(e)?new FormData(e):e);me.getAdapter=X1.getAdapter;me.HttpStatusCode=LO;me.default=me;const Zn=me;class MO{constructor(t,n,r,a,i,o){z(this,"flowsheetId");z(this,"isFvShow");z(this,"isStreamTableShow");z(this,"baseUrl");z(this,"getFSUrl");z(this,"putFSUrl");z(this,"model");z(this,"paper");z(this,"_is_graph_changed");z(this,"_save_time_interval_key");z(this,"_default_save_time_interval");z(this,"_save_time_interval");z(this,"stream_table");z(this,"toolbar");z(this,"cleanToolBarEvent");z(this,"viewInLogPanel");this.flowsheetId=t,this.isFvShow=r,this.isStreamTableShow=i,this.viewInLogPanel=o,this.baseUrl=`http://localhost:${n}`,this.getFSUrl=`/fs?id=${t}`,this.putFSUrl=`/fs?id=${t}`,this.model={},r&&(this.paper=new cC(this)),this._is_graph_changed=!1,this._save_time_interval_key="save_time_interval",this._default_save_time_interval=5e3,this._save_time_interval=this.getSaveTimeInterval(),this.setupGraphChangeChecker(this._save_time_interval,t),this.setGetFSUrl(),Zn.get(this.getFSUrl).then(s=>{this.model=s.data,r&&this.renderModel(this.model),i&&o.streamTable&&(this.stream_table=new dC(this,this.model,this.viewInLogPanel)),this.toolbar=new hC(this,this.paper,this.stream_table,this.flowsheetId,this.getFSUrl,this.putFSUrl,this.isFvShow),this.cleanToolBarEvent=this.toolbar.cleanUpEvent}).catch(s=>{console.log(s.message),console.log(s.response.status)}),this.fvExtraContentCleanUp()}setGetFSUrl(){let t=new URLSearchParams(window.location.search);if(!t.get("example"))return;let n=parseInt(t.get("example")),r=["example_1","example_2","example_3","example_4","example_5","example_6","example_7"];n<0||n>r.length||(this.getFSUrl=`/assets/testing_data/example_${n}.json`)}renderModel(t){const r=new fC(t).processRoutingConfig();this.paper.setup(r)}debug_removeFlowsheetPosition(t){let n=5;t.cells.forEach(r=>{n+=150,r.position&&(r.position={x:n,y:void 0})})}informUser(t,n){switch(t){case 0:console.log(n);break;case 1:console.warn(n);break;case 2:console.error(n);break;default:console.log(n)}}refreshModel(t,n,r){this.informUser(0,"Refresh: save current values from model");let a=r.graph,i=JSON.stringify(a.toJSON());Zn.put(n,i,{headers:{"Content-Type":"application/json"}}).then(()=>(this.informUser(0,"Refresh: load new model values from Python program"),Zn.get(t,{responseType:"json"}))).then(o=>{console.log(o.data);const s=o.data;let l;this.isStreamTableShow&&this.viewInLogPanel.streamTable&&(l=document.getElementById("hide-fields-list")),l&&(l.innerHTML="",this.renderModel(s),this.stream_table.initTable(s)),ir("refreshFS",!0)}).catch(o=>{ir("refreshFS",!1),o.response?this.informUser(2,"Fatal error: cannot save current model before refresh: "+o.response.data):this.informUser(2,"Fatal error: Could not retrieve new model from Python program: "+o.message)})}getSaveTimeInterval(){let t=`${this.baseUrl}/setting?setting_key=${this._save_time_interval_key}`,n=this._default_save_time_interval;return Zn.get(t,{headers:{"Content-Type":"application/json"}}).then(r=>{r.data.value!="None"?n=r.data.value:this.informUser(1,`Warning: save_time_interval was not set correctly. Default time value of + ${this._default_save_time_interval.toString()} + will be set.`)}).catch(r=>{this.informUser(2,"Fatal error: cannot get setting value: "+r)}),n}graphChanged(){this._is_graph_changed=!0}setupGraphChangeChecker(t,n){let r=this.putFSUrl;var a=setInterval(()=>{this._is_graph_changed&&(this.saveModel(r,this.paper.graph),this._is_graph_changed=!1)},t);return a}saveModel(t,n){let r=JSON.stringify(n.toJSON());Zn.put(t,r,{headers:{"Content-Type":"application/json"}}).then(a=>{console.log("saved"),this.informUser(0,"Saved new model values"),ir("userSave",!0)}).catch(a=>{ir("userSave",!1),this.informUser(2,"Fatal error: cannot save current model: "+a)})}fvExtraContentCleanUp(){let t=document.getElementById("fv");if(!(!t||t.childNodes.length<=1))for(t.childNodes[(t==null?void 0:t.childNodes.length)-1];t.firstChild!==t.lastChild;)t.removeChild(t.firstChild)}}var xf={},da={},B1={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",o=0;o-1&&e%1==0&&e-1&&e%1==0&&e<=cP}var ph=fP,dP=Wi,hP=ph,pP=Sr,gP="[object Arguments]",mP="[object Array]",vP="[object Boolean]",yP="[object Date]",wP="[object Error]",_P="[object Function]",SP="[object Map]",bP="[object Number]",EP="[object Object]",TP="[object RegExp]",CP="[object Set]",OP="[object String]",xP="[object WeakMap]",PP="[object ArrayBuffer]",NP="[object DataView]",DP="[object Float32Array]",kP="[object Float64Array]",AP="[object Int8Array]",RP="[object Int16Array]",$P="[object Int32Array]",LP="[object Uint8Array]",MP="[object Uint8ClampedArray]",jP="[object Uint16Array]",FP="[object Uint32Array]",re={};re[DP]=re[kP]=re[AP]=re[RP]=re[$P]=re[LP]=re[MP]=re[jP]=re[FP]=!0;re[gP]=re[mP]=re[PP]=re[vP]=re[NP]=re[yP]=re[wP]=re[_P]=re[SP]=re[bP]=re[EP]=re[TP]=re[CP]=re[OP]=re[xP]=!1;function IP(e){return pP(e)&&hP(e.length)&&!!re[dP(e)]}var UP=IP;function zP(e){return function(t){return e(t)}}var gh=zP,qs={exports:{}};qs.exports;(function(e,t){var n=Z1,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,o=i&&n.process,s=function(){try{var l=a&&a.require&&a.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(qs,qs.exports);var mh=qs.exports,HP=UP,WP=gh,tm=mh,nm=tm&&tm.isTypedArray,GP=nm?WP(nm):HP,vh=GP,VP=Kx,qP=Pl,KP=wt,YP=Nl,XP=hh,JP=vh,QP=Object.prototype,BP=QP.hasOwnProperty;function ZP(e,t){var n=KP(e),r=!n&&qP(e),a=!n&&!r&&YP(e),i=!n&&!r&&!a&&JP(e),o=n||r||a||i,s=o?VP(e.length,String):[],l=s.length;for(var u in e)(t||BP.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||XP(u,l)))&&s.push(u);return s}var iw=ZP,eN=Object.prototype;function tN(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||eN;return e===n}var Dl=tN;function nN(e,t){return function(n){return e(t(n))}}var ow=nN,rN=ow,aN=rN(Object.keys,Object),iN=aN,oN=Dl,sN=iN,lN=Object.prototype,uN=lN.hasOwnProperty;function cN(e){if(!oN(e))return sN(e);var t=[];for(var n in Object(e))uN.call(e,n)&&n!="constructor"&&t.push(n);return t}var sw=cN,fN=tw,dN=ph;function hN(e){return e!=null&&dN(e.length)&&!fN(e)}var kl=hN,pN=iw,gN=sw,mN=kl;function vN(e){return mN(e)?pN(e):gN(e)}var br=vN,yN=Vx,wN=br;function _N(e,t){return e&&yN(e,t,wN)}var SN=_N,bN=kl;function EN(e,t){return function(n,r){if(n==null)return n;if(!bN(n))return e(n,r);for(var a=n.length,i=t?a:-1,o=Object(n);(t?i--:++i-1}var KN=qN,YN=Al;function XN(e,t){var n=this.__data__,r=YN(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var JN=XN,QN=RN,BN=zN,ZN=GN,eD=KN,tD=JN;function _a(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ts))return!1;var u=i.get(e),h=i.get(t);if(u&&h)return u==t&&h==e;var d=-1,p=!0,w=n&zk?new jk:void 0;for(i.set(e,t),i.set(t,e);++d(t==null&&(t=e()),t)}function c$(e,t){return e.filter(n=>n!==t)}function f$(e,t){const n=new Set,r=i=>n.add(i);e.forEach(r),t.forEach(r);const a=[];return n.forEach(i=>a.push(i)),a}class d${enter(t){const n=this.entered.length,r=a=>this.isNodeInDocument(a)&&(!a.contains||a.contains(t));return this.entered=f$(this.entered.filter(r),[t]),n===0&&this.entered.length>0}leave(t){const n=this.entered.length;return this.entered=c$(this.entered.filter(this.isNodeInDocument),t),n>0&&this.entered.length===0}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class h${initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(t=>{Object.defineProperty(this.item,t,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${t}" until the drop event.`),null}})})}loadDataTransfer(t){if(t){const n={};Object.keys(this.config.exposeProperties).forEach(r=>{const a=this.config.exposeProperties[r];a!=null&&(n[r]={value:a(t,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,n)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(t,n){return n===t.getSourceId()}endDrag(){}constructor(t){this.config=t,this.item={},this.initializeExposedProperties()}}const Ow="__NATIVE_FILE__",xw="__NATIVE_URL__",Pw="__NATIVE_TEXT__",Nw="__NATIVE_HTML__",Om=Object.freeze(Object.defineProperty({__proto__:null,FILE:Ow,HTML:Nw,TEXT:Pw,URL:xw},Symbol.toStringTag,{value:"Module"}));function Ku(e,t,n){const r=t.reduce((a,i)=>a||e.getData(i),"");return r??n}const Rf={[Ow]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[Nw]:{exposeProperties:{html:(e,t)=>Ku(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[xw]:{exposeProperties:{urls:(e,t)=>Ku(e,t,"").split(` +`),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[Pw]:{exposeProperties:{text:(e,t)=>Ku(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function p$(e,t){const n=Rf[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new h$(n);return r.loadDataTransfer(t),r}function Yu(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(Rf).filter(n=>{const r=Rf[n];return r!=null&&r.matchesTypes?r.matchesTypes.some(a=>t.indexOf(a)>-1):!1})[0]||null}const g$=Cw(()=>/firefox/i.test(navigator.userAgent)),Dw=Cw(()=>!!window.safari);class xm{interpolate(t){const{xs:n,ys:r,c1s:a,c2s:i,c3s:o}=this;let s=n.length-1;if(t===n[s])return r[s];let l=0,u=o.length-1,h;for(;l<=u;){h=Math.floor(.5*(l+u));const w=n[h];if(wt)u=h-1;else return r[h]}s=Math.max(0,u);const d=t-n[s],p=d*d;return r[s]+a[s]*d+i[s]*p+o[s]*d*p}constructor(t,n){const{length:r}=t,a=[];for(let w=0;wt[w]{let k=new xm([0,.5,1],[l.y,l.y/h*m,l.y+m-h]).interpolate(p);return Dw()&&i&&(k+=(window.devicePixelRatio-1)*m),k},b=()=>new xm([0,.5,1],[l.x,l.x/u*w,l.x+w-u]).interpolate(d),{offsetX:v,offsetY:y}=a,S=v===0||v,x=y===0||y;return{x:S?v:b(),y:x?y:_()}}let _$=class{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var t;return!((t=this.globalContext)===null||t===void 0)&&t.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var t;return((t=this.optionsArgs)===null||t===void 0?void 0:t.rootElement)||this.window}constructor(t,n){this.ownerDocument=null,this.globalContext=t,this.optionsArgs=n}};function S$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pm(e){for(var t=1;t{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDragSource(t,n,r){this.sourceNodes.set(t,n),this.sourceNodeOptions.set(t,r);const a=o=>this.handleDragStart(o,t),i=o=>this.handleSelectStart(o);return n.setAttribute("draggable","true"),n.addEventListener("dragstart",a),n.addEventListener("selectstart",i),()=>{this.sourceNodes.delete(t),this.sourceNodeOptions.delete(t),n.removeEventListener("dragstart",a),n.removeEventListener("selectstart",i),n.setAttribute("draggable","false")}}connectDropTarget(t,n){const r=o=>this.handleDragEnter(o,t),a=o=>this.handleDragOver(o,t),i=o=>this.handleDrop(o,t);return n.addEventListener("dragenter",r),n.addEventListener("dragover",a),n.addEventListener("drop",i),()=>{n.removeEventListener("dragenter",r),n.removeEventListener("dragover",a),n.removeEventListener("drop",i)}}addEventListeners(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const t=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(t);return Pm({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const t=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(t);return Pm({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const t=this.monitor.getItemType();return Object.keys(Om).some(n=>Om[n]===t)}beginDragNativeItem(t,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=p$(t,n),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(t){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t;const n=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var r;return(r=this.rootElement)===null||r===void 0?void 0:r.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},n)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var t;(t=this.window)===null||t===void 0||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(t,n){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}handleDragEnter(t,n){this.dragEnterTargetIds.unshift(n)}handleDragOver(t,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}handleDrop(t,n){this.dropTargetIds.unshift(n)}constructor(t,n,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=a=>{const i=this.sourceNodes.get(a);return i&&kw(i)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=a=>!!(a&&this.document&&this.document.body&&this.document.body.contains(a)),this.endDragIfSourceWasRemovedFromDOM=()=>{const a=this.currentDragSourceNode;a==null||this.isNodeInDocument(a)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=a=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(a||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=a=>{if(a.defaultPrevented)return;const{dragStartSourceIds:i}=this;this.dragStartSourceIds=null;const o=jo(a);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(i||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:o});const{dataTransfer:s}=a,l=Yu(s);if(this.monitor.isDragging()){if(s&&typeof s.setDragImage=="function"){const h=this.monitor.getSourceId(),d=this.sourceNodes.get(h),p=this.sourcePreviewNodes.get(h)||d;if(p){const{anchorX:w,anchorY:m,offsetX:_,offsetY:b}=this.getCurrentSourcePreviewNodeOptions(),S=w$(d,p,o,{anchorX:w,anchorY:m},{offsetX:_,offsetY:b});s.setDragImage(p,S.x,S.y)}}try{s==null||s.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(a.target);const{captureDraggingState:u}=this.getCurrentSourcePreviewNodeOptions();u?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(l)this.beginDragNativeItem(l);else{if(s&&!s.types&&(a.target&&!a.target.hasAttribute||!a.target.hasAttribute("draggable")))return;a.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=a=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var i;(i=this.currentNativeSource)===null||i===void 0||i.loadDataTransfer(a.dataTransfer)}if(!this.enterLeaveCounter.enter(a.target)||this.monitor.isDragging())return;const{dataTransfer:s}=a,l=Yu(s);l&&this.beginDragNativeItem(l,s)},this.handleTopDragEnter=a=>{const{dragEnterTargetIds:i}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=a.altKey,i.length>0&&this.actions.hover(i,{clientOffset:jo(a)}),i.some(s=>this.monitor.canDropOnTarget(s))&&(a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=a=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var i;(i=this.currentNativeSource)===null||i===void 0||i.loadDataTransfer(a.dataTransfer)}},this.handleTopDragOver=a=>{const{dragOverTargetIds:i}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect="none");return}this.altKeyPressed=a.altKey,this.lastClientOffset=jo(a),this.scheduleHover(i),(i||[]).some(s=>this.monitor.canDropOnTarget(s))?(a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?a.preventDefault():(a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=a=>{this.isDraggingNativeItem()&&a.preventDefault(),this.enterLeaveCounter.leave(a.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=a=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var i;a.preventDefault(),(i=this.currentNativeSource)===null||i===void 0||i.loadDataTransfer(a.dataTransfer)}else Yu(a.dataTransfer)&&a.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=a=>{const{dropTargetIds:i}=this;this.dropTargetIds=[],this.actions.hover(i,{clientOffset:jo(a)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=a=>{const i=a.target;typeof i.dragDrop=="function"&&(i.tagName==="INPUT"||i.tagName==="SELECT"||i.tagName==="TEXTAREA"||i.isContentEditable||(a.preventDefault(),i.dragDrop()))},this.options=new _$(n,r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new d$(this.isNodeInDocument)}}const E$=function(t,n,r){return new b$(t,n,r)};function G(e,t,...n){if(T$()&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){let r;if(t===void 0)r=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let a=0;r=new Error(t.replace(/%s/g,function(){return n[a++]})),r.name="Invariant Violation"}throw r.framesToPop=1,r}}function T$(){return typeof process<"u"&&process.env.NODE_ENV==="production"}var Dn;(function(e){e.mouse="mouse",e.touch="touch",e.keyboard="keyboard"})(Dn||(Dn={}));class C${get delay(){var t;return(t=this.args.delay)!==null&&t!==void 0?t:0}get scrollAngleRanges(){return this.args.scrollAngleRanges}get getDropTargetElementsAtPoint(){return this.args.getDropTargetElementsAtPoint}get ignoreContextMenu(){var t;return(t=this.args.ignoreContextMenu)!==null&&t!==void 0?t:!1}get enableHoverOutsideTarget(){var t;return(t=this.args.enableHoverOutsideTarget)!==null&&t!==void 0?t:!1}get enableKeyboardEvents(){var t;return(t=this.args.enableKeyboardEvents)!==null&&t!==void 0?t:!1}get enableMouseEvents(){var t;return(t=this.args.enableMouseEvents)!==null&&t!==void 0?t:!1}get enableTouchEvents(){var t;return(t=this.args.enableTouchEvents)!==null&&t!==void 0?t:!0}get touchSlop(){return this.args.touchSlop||0}get delayTouchStart(){var t,n,r,a;return(a=(r=(t=this.args)===null||t===void 0?void 0:t.delayTouchStart)!==null&&r!==void 0?r:(n=this.args)===null||n===void 0?void 0:n.delay)!==null&&a!==void 0?a:0}get delayMouseStart(){var t,n,r,a;return(a=(r=(t=this.args)===null||t===void 0?void 0:t.delayMouseStart)!==null&&r!==void 0?r:(n=this.args)===null||n===void 0?void 0:n.delay)!==null&&a!==void 0?a:0}get window(){if(this.context&&this.context.window)return this.context.window;if(typeof window<"u")return window}get document(){var t;if(!((t=this.context)===null||t===void 0)&&t.document)return this.context.document;if(this.window)return this.window.document}get rootElement(){var t;return((t=this.args)===null||t===void 0?void 0:t.rootElement)||this.document}constructor(t,n){this.args=t,this.context=n}}function O$(e,t,n,r){return Math.sqrt(Math.pow(Math.abs(n-e),2)+Math.pow(Math.abs(r-t),2))}function x$(e,t,n,r,a){if(!a)return!1;const i=Math.atan2(r-t,n-e)*180/Math.PI+180;for(let o=0;o=s.start)&&(s.end==null||i<=s.end))return!0}return!1}const P$={Left:1,Right:2,Center:4},N$={Left:0,Center:1,Right:2};function Xu(e){return e.button===void 0||e.button===N$.Left}function D$(e){return e.buttons===void 0||(e.buttons&P$.Left)===0}function Aw(e){return!!e.targetTouches}const k$=1;function A$(e){const t=e.nodeType===k$?e:e.parentElement;if(!t)return;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function R$(e,t){if(e.targetTouches.length===1)return Ys(e.targetTouches[0]);if(t&&e.touches.length===1&&e.touches[0].target===t.target)return Ys(e.touches[0])}function Ys(e,t){return Aw(e)?R$(e,t):{x:e.clientX,y:e.clientY}}const Nm=(()=>{let e=!1;try{addEventListener("test",()=>{},Object.defineProperty({},"passive",{get(){return e=!0,!0}}))}catch{}return e})(),Fa={[Dn.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[Dn.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[Dn.keyboard]:{keydown:"keydown"}};class li{profile(){var t;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:((t=this.dragOverTargetIds)===null||t===void 0?void 0:t.length)||0}}get document(){return this.options.document}setup(){const t=this.options.rootElement;t&&(G(!li.isSetUp,"Cannot have two Touch backends at the same time."),li.isSetUp=!0,this.addEventListener(t,"start",this.getTopMoveStartHandler()),this.addEventListener(t,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(t,"move",this.handleTopMove),this.addEventListener(t,"move",this.handleTopMoveCapture,!0),this.addEventListener(t,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(t,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(t,"keydown",this.handleCancelOnEscape,!0))}teardown(){const t=this.options.rootElement;t&&(li.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(t,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(t,"start",this.handleTopMoveStart),this.removeEventListener(t,"move",this.handleTopMoveCapture,!0),this.removeEventListener(t,"move",this.handleTopMove),this.removeEventListener(t,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(t,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(t,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}addEventListener(t,n,r,a=!1){const i=Nm?{capture:a,passive:!1}:a;this.listenerTypes.forEach(function(o){const s=Fa[o][n];s&&t.addEventListener(s,r,i)})}removeEventListener(t,n,r,a=!1){const i=Nm?{capture:a,passive:!1}:a;this.listenerTypes.forEach(function(o){const s=Fa[o][n];s&&t.removeEventListener(s,r,i)})}connectDragSource(t,n){const r=this.handleMoveStart.bind(this,t);return this.sourceNodes.set(t,n),this.addEventListener(n,"start",r),()=>{this.sourceNodes.delete(t),this.removeEventListener(n,"start",r)}}connectDragPreview(t,n,r){return this.sourcePreviewNodeOptions.set(t,r),this.sourcePreviewNodes.set(t,n),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDropTarget(t,n){const r=this.options.rootElement;if(!this.document||!r)return()=>{};const a=i=>{if(!this.document||!r||!this.monitor.isDragging())return;let o;switch(i.type){case Fa.mouse.move:o={x:i.clientX,y:i.clientY};break;case Fa.touch.move:var s,l;o={x:((s=i.touches[0])===null||s===void 0?void 0:s.clientX)||0,y:((l=i.touches[0])===null||l===void 0?void 0:l.clientY)||0};break}const u=o!=null?this.document.elementFromPoint(o.x,o.y):void 0,h=u&&n.contains(u);if(u===n||h)return this.handleMove(i,t)};return this.addEventListener(this.document.body,"move",a),this.targetNodes.set(t,n),()=>{this.document&&(this.targetNodes.delete(t),this.removeEventListener(this.document.body,"move",a))}}getTopMoveStartHandler(){return!this.options.delayTouchStart&&!this.options.delayMouseStart?this.handleTopMoveStart:this.handleTopMoveStartDelay}installSourceNodeRemovalObserver(t){this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=t,this.draggedSourceNodeRemovalObserver=new MutationObserver(()=>{t&&!t.parentElement&&(this.resurrectSourceNode(),this.uninstallSourceNodeRemovalObserver())}),!(!t||!t.parentElement)&&this.draggedSourceNodeRemovalObserver.observe(t.parentElement,{childList:!0})}resurrectSourceNode(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}uninstallSourceNodeRemovalObserver(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}constructor(t,n,r){this.getSourceClientOffset=a=>{const i=this.sourceNodes.get(a);return i&&A$(i)},this.handleTopMoveStartCapture=a=>{Xu(a)&&(this.moveStartSourceIds=[])},this.handleMoveStart=a=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(a)},this.handleTopMoveStart=a=>{if(!Xu(a))return;const i=Ys(a);i&&(Aw(a)&&(this.lastTargetTouchFallback=a.targetTouches[0]),this._mouseClientOffset=i),this.waitingForDelay=!1},this.handleTopMoveStartDelay=a=>{if(!Xu(a))return;const i=a.type===Fa.touch.start?this.options.delayTouchStart:this.options.delayMouseStart;this.timeout=setTimeout(this.handleTopMoveStart.bind(this,a),i),this.waitingForDelay=!0},this.handleTopMoveCapture=()=>{this.dragOverTargetIds=[]},this.handleMove=(a,i)=>{this.dragOverTargetIds&&this.dragOverTargetIds.unshift(i)},this.handleTopMove=a=>{if(this.timeout&&clearTimeout(this.timeout),!this.document||this.waitingForDelay)return;const{moveStartSourceIds:i,dragOverTargetIds:o}=this,s=this.options.enableHoverOutsideTarget,l=Ys(a,this.lastTargetTouchFallback);if(!l)return;if(this._isScrolling||!this.monitor.isDragging()&&x$(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,l.x,l.y,this.options.scrollAngleRanges)){this._isScrolling=!0;return}if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty("x")&&i&&O$(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,l.x,l.y)>(this.options.touchSlop?this.options.touchSlop:0)&&(this.moveStartSourceIds=void 0,this.actions.beginDrag(i,{clientOffset:this._mouseClientOffset,getSourceClientOffset:this.getSourceClientOffset,publishSource:!1})),!this.monitor.isDragging())return;const u=this.sourceNodes.get(this.monitor.getSourceId());this.installSourceNodeRemovalObserver(u),this.actions.publishDragSource(),a.cancelable&&a.preventDefault();const h=(o||[]).map(m=>this.targetNodes.get(m)).filter(m=>!!m),d=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(l.x,l.y,h):this.document.elementsFromPoint(l.x,l.y),p=[];for(const m in d){if(!d.hasOwnProperty(m))continue;let _=d[m];for(_!=null&&p.push(_);_;)_=_.parentElement,_&&p.indexOf(_)===-1&&p.push(_)}const w=p.filter(m=>h.indexOf(m)>-1).map(m=>this._getDropTargetId(m)).filter(m=>!!m).filter((m,_,b)=>b.indexOf(m)===_);if(s)for(const m in this.targetNodes){const _=this.targetNodes.get(m);if(u&&_&&_.contains(u)&&w.indexOf(m)===-1){w.unshift(m);break}}w.reverse(),this.actions.hover(w,{clientOffset:l})},this._getDropTargetId=a=>{const i=this.targetNodes.keys();let o=i.next();for(;o.done===!1;){const s=o.value;if(a===this.targetNodes.get(s))return s;o=i.next()}},this.handleTopMoveEndCapture=a=>{if(this._isScrolling=!1,this.lastTargetTouchFallback=void 0,!!D$(a)){if(!this.monitor.isDragging()||this.monitor.didDrop()){this.moveStartSourceIds=void 0;return}a.cancelable&&a.preventDefault(),this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.drop(),this.actions.endDrag()}},this.handleCancelOnEscape=a=>{a.key==="Escape"&&this.monitor.isDragging()&&(this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.endDrag())},this.options=new C$(r,n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(Dn.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(Dn.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(Dn.keyboard)}}const $$=function(t,n={},r={}){return new li(t,n,r)};var Rw=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},W=(e,t,n)=>(Rw(e,t,"read from private field"),n?n.call(e):t.get(e)),ct=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Qn=(e,t,n,r)=>(Rw(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Bn,L$=class{constructor(){ct(this,Bn,void 0),this.register=e=>{W(this,Bn).push(e)},this.unregister=e=>{let t;for(;(t=W(this,Bn).indexOf(e))!==-1;)W(this,Bn).splice(t,1)},this.backendChanged=e=>{for(let t of W(this,Bn))t.backendChanged(e)},Qn(this,Bn,[])}};Bn=new WeakMap;var Je,Ya,Qe,zt,cn,$f,Lf,Mf,cs,fs,Xa,$w=class ds{constructor(t,n,r){if(ct(this,Je,void 0),ct(this,Ya,void 0),ct(this,Qe,void 0),ct(this,zt,void 0),ct(this,cn,void 0),ct(this,$f,(a,i,o)=>{if(!o.backend)throw new Error(`You must specify a 'backend' property in your Backend entry: ${JSON.stringify(o)}`);let s=o.backend(a,i,o.options),l=o.id,u=!o.id&&s&&s.constructor;if(u&&(l=s.constructor.name),l)u&&console.warn(`Deprecation notice: You are using a pipeline which doesn't include backends' 'id'. + This might be unsupported in the future, please specify 'id' explicitely for every backend.`);else throw new Error(`You must specify an 'id' property in your Backend entry: ${JSON.stringify(o)} + see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-5xx`);if(W(this,Qe)[l])throw new Error(`You must specify a unique 'id' property in your Backend entry: + ${JSON.stringify(o)} (conflicts with: ${JSON.stringify(W(this,Qe)[l])})`);return{id:l,instance:s,preview:o.preview??!1,transition:o.transition,skipDispatchOnTransition:o.skipDispatchOnTransition??!1}}),this.setup=()=>{if(!(typeof window>"u")){if(ds.isSetUp)throw new Error("Cannot have two MultiBackends at the same time.");ds.isSetUp=!0,W(this,Lf).call(this,window),W(this,Qe)[W(this,Je)].instance.setup()}},this.teardown=()=>{typeof window>"u"||(ds.isSetUp=!1,W(this,Mf).call(this,window),W(this,Qe)[W(this,Je)].instance.teardown())},this.connectDragSource=(a,i,o)=>W(this,Xa).call(this,"connectDragSource",a,i,o),this.connectDragPreview=(a,i,o)=>W(this,Xa).call(this,"connectDragPreview",a,i,o),this.connectDropTarget=(a,i,o)=>W(this,Xa).call(this,"connectDropTarget",a,i,o),this.profile=()=>W(this,Qe)[W(this,Je)].instance.profile(),this.previewEnabled=()=>W(this,Qe)[W(this,Je)].preview,this.previewsList=()=>W(this,Ya),this.backendsList=()=>W(this,zt),ct(this,Lf,a=>{W(this,zt).forEach(i=>{i.transition&&a.addEventListener(i.transition.event,W(this,cs))})}),ct(this,Mf,a=>{W(this,zt).forEach(i=>{i.transition&&a.removeEventListener(i.transition.event,W(this,cs))})}),ct(this,cs,a=>{var o;let i=W(this,Je);if(W(this,zt).some(s=>s.id!==W(this,Je)&&s.transition&&s.transition.check(a)?(Qn(this,Je,s.id),!0):!1),W(this,Je)!==i){W(this,Qe)[i].instance.teardown(),Object.keys(W(this,cn)).forEach(h=>{let d=W(this,cn)[h];d.unsubscribe(),d.unsubscribe=W(this,fs).call(this,d.func,...d.args)}),W(this,Ya).backendChanged(this);let s=W(this,Qe)[W(this,Je)];if(s.instance.setup(),s.skipDispatchOnTransition)return;let l=a.constructor,u=new l(a.type,a);(o=a.target)==null||o.dispatchEvent(u)}}),ct(this,fs,(a,i,o,s)=>W(this,Qe)[W(this,Je)].instance[a](i,o,s)),ct(this,Xa,(a,i,o,s)=>{let l=`${a}_${i}`,u=W(this,fs).call(this,a,i,o,s);return W(this,cn)[l]={func:a,args:[i,o,s],unsubscribe:u},()=>{W(this,cn)[l].unsubscribe(),delete W(this,cn)[l]}}),!r||!r.backends||r.backends.length<1)throw new Error(`You must specify at least one Backend, if you are coming from 2.x.x (or don't understand this error) + see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-2xx`);Qn(this,Ya,new L$),Qn(this,Qe,{}),Qn(this,zt,[]),r.backends.forEach(a=>{let i=W(this,$f).call(this,t,n,a);W(this,Qe)[i.id]=i,W(this,zt).push(i)}),Qn(this,Je,W(this,zt)[0].id),Qn(this,cn,{})}};Je=new WeakMap,Ya=new WeakMap,Qe=new WeakMap,zt=new WeakMap,cn=new WeakMap,$f=new WeakMap,Lf=new WeakMap,Mf=new WeakMap,cs=new WeakMap,fs=new WeakMap,Xa=new WeakMap,$w.isSetUp=!1;var M$=$w,Lw=(e,t,n)=>new M$(e,t,n),qi=(e,t)=>({event:e,check:t}),Mw=qi("touchstart",e=>{let t=e;return t.touches!==null&&t.touches!==void 0}),j$=qi("dragstart",e=>e.type.indexOf("drag")!==-1||e.type.indexOf("drop")!==-1),F$=qi("mousedown",e=>e.type.indexOf("touch")===-1&&e.type.indexOf("mouse")!==-1),jw=qi("pointerdown",e=>e.pointerType=="mouse"),I$={backends:[{id:"html5",backend:E$,transition:jw},{id:"touch",backend:$$,options:{enableMouseEvents:!0},preview:!0,transition:Mw}]};const U$=Object.freeze(Object.defineProperty({__proto__:null,HTML5toTouch:I$},Symbol.toStringTag,{value:"Module"})),z$=Bf(U$),Ki=P.createContext({dragDropManager:void 0});function ut(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Dm=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Ju=function(){return Math.random().toString(36).substring(7).split("").join(".")},km={INIT:"@@redux/INIT"+Ju(),REPLACE:"@@redux/REPLACE"+Ju(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ju()}};function H$(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Fw(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(ut(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(ut(1));return n(Fw)(e,t)}if(typeof e!="function")throw new Error(ut(2));var a=e,i=t,o=[],s=o,l=!1;function u(){s===o&&(s=o.slice())}function h(){if(l)throw new Error(ut(3));return i}function d(_){if(typeof _!="function")throw new Error(ut(4));if(l)throw new Error(ut(5));var b=!0;return u(),s.push(_),function(){if(b){if(l)throw new Error(ut(6));b=!1,u();var y=s.indexOf(_);s.splice(y,1),o=null}}}function p(_){if(!H$(_))throw new Error(ut(7));if(typeof _.type>"u")throw new Error(ut(8));if(l)throw new Error(ut(9));try{l=!0,i=a(i,_)}finally{l=!1}for(var b=o=s,v=0;vr&&r[a]?r[a]:n||null,e)}function G$(e,t){return e.filter(n=>n!==t)}function Iw(e){return typeof e=="object"}function V$(e,t){const n=new Map,r=i=>{n.set(i,n.has(i)?n.get(i)+1:1)};e.forEach(r),t.forEach(r);const a=[];return n.forEach((i,o)=>{i===1&&a.push(o)}),a}function q$(e,t){return e.filter(n=>t.indexOf(n)>-1)}const Rh="dnd-core/INIT_COORDS",Fl="dnd-core/BEGIN_DRAG",$h="dnd-core/PUBLISH_DRAG_SOURCE",Il="dnd-core/HOVER",Ul="dnd-core/DROP",zl="dnd-core/END_DRAG";function Am(e,t){return{type:Rh,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const K$={type:Rh,payload:{clientOffset:null,sourceClientOffset:null}};function Y$(e){return function(n=[],r={publishSource:!0}){const{publishSource:a=!0,clientOffset:i,getSourceClientOffset:o}=r,s=e.getMonitor(),l=e.getRegistry();e.dispatch(Am(i)),X$(n,s,l);const u=B$(n,s);if(u==null){e.dispatch(K$);return}let h=null;if(i){if(!o)throw new Error("getSourceClientOffset must be defined");J$(o),h=o(u)}e.dispatch(Am(i,h));const p=l.getSource(u).beginDrag(s,u);if(p==null)return;Q$(p),l.pinSource(u);const w=l.getSourceType(u);return{type:Fl,payload:{itemType:w,item:p,sourceId:u,clientOffset:i||null,sourceClientOffset:h||null,isSourcePublic:!!a}}}}function X$(e,t,n){G(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(r){G(n.getSource(r),"Expected sourceIds to be registered.")})}function J$(e){G(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function Q$(e){G(Iw(e),"Item must be an object.")}function B$(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}function Z$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eL(e){for(var t=1;t{const l=rL(o,s,a,r),u={type:Ul,payload:{dropResult:eL({},n,l)}};e.dispatch(u)})}}function nL(e){G(e.isDragging(),"Cannot call drop while not dragging."),G(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function rL(e,t,n,r){const a=n.getTarget(e);let i=a?a.drop(r,e):void 0;return aL(i),typeof i>"u"&&(i=t===0?{}:r.getDropResult()),i}function aL(e){G(typeof e>"u"||Iw(e),"Drop result must either be an object or undefined.")}function iL(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function oL(e){return function(){const n=e.getMonitor(),r=e.getRegistry();sL(n);const a=n.getSourceId();return a!=null&&(r.getSource(a,!0).endDrag(n,a),r.unpinSource()),{type:zl}}}function sL(e){G(e.isDragging(),"Cannot call endDrag while not dragging.")}function jf(e,t){return t===null?e===null:Array.isArray(e)?e.some(n=>n===t):e===t}function lL(e){return function(n,{clientOffset:r}={}){uL(n);const a=n.slice(0),i=e.getMonitor(),o=e.getRegistry(),s=i.getItemType();return fL(a,o,s),cL(a,i,o),dL(a,i,o),{type:Il,payload:{targetIds:a,clientOffset:r||null}}}}function uL(e){G(Array.isArray(e),"Expected targetIds to be an array.")}function cL(e,t,n){G(t.isDragging(),"Cannot call hover while not dragging."),G(!t.didDrop(),"Cannot call hover after drop.");for(let r=0;r=0;r--){const a=e[r],i=t.getTargetType(a);jf(i,n)||e.splice(r,1)}}function dL(e,t,n){e.forEach(function(r){n.getTarget(r).hover(t,r)})}function hL(e){return function(){if(e.getMonitor().isDragging())return{type:$h}}}function pL(e){return{beginDrag:Y$(e),publishDragSource:hL(e),hover:lL(e),drop:tL(e),endDrag:oL(e)}}class gL{receiveBackend(t){this.backend=t}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const t=this,{dispatch:n}=this.store;function r(i){return(...o)=>{const s=i.apply(t,o);typeof s<"u"&&n(s)}}const a=pL(this);return Object.keys(a).reduce((i,o)=>{const s=a[o];return i[o]=r(s),i},{})}dispatch(t){this.store.dispatch(t)}constructor(t,n){this.isSetUp=!1,this.handleRefCountChange=()=>{const r=this.store.getState().refCount>0;this.backend&&(r&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!r&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=t,this.monitor=n,t.subscribe(this.handleRefCountChange)}}function mL(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Uw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function vL(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return!t||!n||!r?null:Uw(mL(t,r),n)}function yL(e){const{clientOffset:t,initialClientOffset:n}=e;return!t||!n?null:Uw(t,n)}const ui=[],Lh=[];ui.__IS_NONE__=!0;Lh.__IS_ALL__=!0;function wL(e,t){return e===ui?!1:e===Lh||typeof t>"u"?!0:q$(t,e).length>0}class _L{subscribeToStateChange(t,n={}){const{handlerIds:r}=n;G(typeof t=="function","listener must be a function."),G(typeof r>"u"||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let a=this.store.getState().stateId;const i=()=>{const o=this.store.getState(),s=o.stateId;try{s===a||s===a+1&&!wL(o.dirtyHandlerIds,r)||t()}finally{a=s}};return this.store.subscribe(i)}subscribeToOffsetChange(t){G(typeof t=="function","listener must be a function.");let n=this.store.getState().dragOffset;const r=()=>{const a=this.store.getState().dragOffset;a!==n&&(n=a,t())};return this.store.subscribe(r)}canDragSource(t){if(!t)return!1;const n=this.registry.getSource(t);return G(n,`Expected to find a valid source. sourceId=${t}`),this.isDragging()?!1:n.canDrag(this,t)}canDropOnTarget(t){if(!t)return!1;const n=this.registry.getTarget(t);if(G(n,`Expected to find a valid target. targetId=${t}`),!this.isDragging()||this.didDrop())return!1;const r=this.registry.getTargetType(t),a=this.getItemType();return jf(r,a)&&n.canDrop(this,t)}isDragging(){return!!this.getItemType()}isDraggingSource(t){if(!t)return!1;const n=this.registry.getSource(t,!0);if(G(n,`Expected to find a valid source. sourceId=${t}`),!this.isDragging()||!this.isSourcePublic())return!1;const r=this.registry.getSourceType(t),a=this.getItemType();return r!==a?!1:n.isDragging(this,t)}isOverTarget(t,n={shallow:!1}){if(!t)return!1;const{shallow:r}=n;if(!this.isDragging())return!1;const a=this.registry.getTargetType(t),i=this.getItemType();if(i&&!jf(a,i))return!1;const o=this.getTargetIds();if(!o.length)return!1;const s=o.indexOf(t);return r?s===o.length-1:s>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return vL(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return yL(this.store.getState().dragOffset)}constructor(t,n){this.store=t,this.registry=n}}const Rm=typeof global<"u"?global:self,zw=Rm.MutationObserver||Rm.WebKitMutationObserver;function Hw(e){return function(){const n=setTimeout(a,0),r=setInterval(a,50);function a(){clearTimeout(n),clearInterval(r),e()}}}function SL(e){let t=1;const n=new zw(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}const bL=typeof zw=="function"?SL:Hw;class EL{enqueueTask(t){const{queue:n,requestFlush:r}=this;n.length||(r(),this.flushing=!0),n[n.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.indexthis.capacity){for(let r=0,a=t.length-this.index;r{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=bL(this.flush),this.requestErrorThrow=Hw(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class TL{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,n){this.onError=t,this.release=n,this.task=null}}class CL{create(t){const n=this.freeTasks,r=n.length?n.pop():new TL(this.onError,a=>n[n.length]=a);return r.task=t,r}constructor(t){this.onError=t,this.freeTasks=[]}}const Ww=new EL,OL=new CL(Ww.registerPendingError);function xL(e){Ww.enqueueTask(OL.create(e))}const Mh="dnd-core/ADD_SOURCE",jh="dnd-core/ADD_TARGET",Fh="dnd-core/REMOVE_SOURCE",Hl="dnd-core/REMOVE_TARGET";function PL(e){return{type:Mh,payload:{sourceId:e}}}function NL(e){return{type:jh,payload:{targetId:e}}}function DL(e){return{type:Fh,payload:{sourceId:e}}}function kL(e){return{type:Hl,payload:{targetId:e}}}function AL(e){G(typeof e.canDrag=="function","Expected canDrag to be a function."),G(typeof e.beginDrag=="function","Expected beginDrag to be a function."),G(typeof e.endDrag=="function","Expected endDrag to be a function.")}function RL(e){G(typeof e.canDrop=="function","Expected canDrop to be a function."),G(typeof e.hover=="function","Expected hover to be a function."),G(typeof e.drop=="function","Expected beginDrag to be a function.")}function Ff(e,t){if(t&&Array.isArray(e)){e.forEach(n=>Ff(n,!1));return}G(typeof e=="string"||typeof e=="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var ht;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(ht||(ht={}));let $L=0;function LL(){return $L++}function ML(e){const t=LL().toString();switch(e){case ht.SOURCE:return`S${t}`;case ht.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function $m(e){switch(e[0]){case"S":return ht.SOURCE;case"T":return ht.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function Lm(e,t){const n=e.entries();let r=!1;do{const{done:a,value:[,i]}=n.next();if(i===t)return!0;r=!!a}while(!r);return!1}class jL{addSource(t,n){Ff(t),AL(n);const r=this.addHandler(ht.SOURCE,t,n);return this.store.dispatch(PL(r)),r}addTarget(t,n){Ff(t,!0),RL(n);const r=this.addHandler(ht.TARGET,t,n);return this.store.dispatch(NL(r)),r}containsHandler(t){return Lm(this.dragSources,t)||Lm(this.dropTargets,t)}getSource(t,n=!1){return G(this.isSourceId(t),"Expected a valid source ID."),n&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return G(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return G(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return G(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return $m(t)===ht.SOURCE}isTargetId(t){return $m(t)===ht.TARGET}removeSource(t){G(this.getSource(t),"Expected an existing source."),this.store.dispatch(DL(t)),xL(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){G(this.getTarget(t),"Expected an existing target."),this.store.dispatch(kL(t)),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){const n=this.getSource(t);G(n,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=n}unpinSource(){G(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,n,r){const a=ML(t);return this.types.set(a,n),t===ht.SOURCE?this.dragSources.set(a,r):t===ht.TARGET&&this.dropTargets.set(a,r),a}constructor(t){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}}const FL=(e,t)=>e===t;function IL(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function UL(e,t,n=FL){if(e.length!==t.length)return!1;for(let r=0;r0||!UL(n,r)))return ui;const o=r[r.length-1],s=n[n.length-1];return o!==s&&(o&&a.push(o),s&&a.push(s)),a}function HL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WL(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nM(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}let jm=0;const hs=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var Gw=P.memo(function(t){var{children:n}=t,r=tM(t,["children"]);const[a,i]=rM(r);return P.useEffect(()=>{if(i){const o=Vw();return++jm,()=>{--jm===0&&(o[hs]=null)}}},[]),T.jsx(Ki.Provider,{value:a,children:n})});function rM(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=aM(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}function aM(e,t=Vw(),n,r){const a=t;return a[hs]||(a[hs]={dragDropManager:ZL(e,t,n,r)}),a[hs]}function Vw(){return typeof global<"u"?global:window}const iM=P.memo(function({connect:t,src:n}){return P.useEffect(()=>{if(typeof Image>"u")return;let r=!1;const a=new Image;return a.src=n,a.onload=()=>{t(a),r=!0},()=>{r&&t(null)}}),null});var oM=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,a,i;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(a=r;a--!==0;)if(!e(t[a],n[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(i=Object.keys(t),r=i.length,r!==Object.keys(n).length)return!1;for(a=r;a--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[a]))return!1;for(a=r;a--!==0;){var o=i[a];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n};const sM=nl(oM),mr=typeof window<"u"?P.useLayoutEffect:P.useEffect;function qw(e,t,n){const[r,a]=P.useState(()=>t(e)),i=P.useCallback(()=>{const o=t(e);sM(r,o)||(a(o),n&&n())},[r,e,n]);return mr(i),[r,i]}function lM(e,t,n){const[r,a]=qw(e,t,n);return mr(function(){const o=e.getHandlerId();if(o!=null)return e.subscribeToStateChange(a,{handlerIds:[o]})},[e,a]),r}function Kw(e,t,n){return lM(t,e||(()=>({})),()=>n.reconnect())}function Yw(e,t){const n=[...t||[]];return t==null&&typeof e!="function"&&n.push(e),P.useMemo(()=>typeof e=="function"?e():e,n)}function uM(e){return P.useMemo(()=>e.hooks.dragSource(),[e])}function cM(e){return P.useMemo(()=>e.hooks.dragPreview(),[e])}let Qu=!1,Bu=!1;class fM{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){G(!Qu,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Qu=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Qu=!1}}isDragging(){if(!this.sourceId)return!1;G(!Bu,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Bu=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Bu=!1}}subscribeToStateChange(t,n){return this.internalMonitor.subscribeToStateChange(t,n)}isDraggingSource(t){return this.internalMonitor.isDraggingSource(t)}isOverTarget(t,n){return this.internalMonitor.isOverTarget(t,n)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(t){return this.internalMonitor.subscribeToOffsetChange(t)}canDragSource(t){return this.internalMonitor.canDragSource(t)}canDropOnTarget(t){return this.internalMonitor.canDropOnTarget(t)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.sourceId=null,this.internalMonitor=t.getMonitor()}}let Zu=!1;class dM{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,n){return this.internalMonitor.subscribeToStateChange(t,n)}canDrop(){if(!this.targetId)return!1;G(!Zu,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return Zu=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Zu=!1}}isOver(t){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,t):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.targetId=null,this.internalMonitor=t.getMonitor()}}function hM(e,t,n){const r=n.getRegistry(),a=r.addTarget(e,t);return[a,()=>r.removeTarget(a)]}function pM(e,t,n){const r=n.getRegistry(),a=r.addSource(e,t);return[a,()=>r.removeSource(a)]}function If(e,t,n,r){let a=n?n.call(r,e,t):void 0;if(a!==void 0)return!!a;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const i=Object.keys(e),o=Object.keys(t);if(i.length!==o.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let l=0;l, or turn it into a drag source or a drop target itself.`)}function mM(e){return(t=null,n=null)=>{if(!P.isValidElement(t)){const i=t;return e(i,n),i}const r=t;return gM(r),vM(r,n?i=>e(i,n):e)}}function Xw(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const a=mM(r);t[n]=()=>a}}),t}function Fm(e,t){typeof e=="function"?e(t):e.current=t}function vM(e,t){const n=e.ref;return G(typeof n!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a or
. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?P.cloneElement(e,{ref:r=>{Fm(n,r),Fm(t,r)}}):P.cloneElement(e,{ref:t})}class yM{receiveHandlerId(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(t){this.dragSourceOptionsInternal=t}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(t){this.dragPreviewOptionsInternal=t}reconnect(){const t=this.reconnectDragSource();this.reconnectDragPreview(t)}reconnectDragSource(){const t=this.dragSource,n=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return n&&this.disconnectDragSource(),this.handlerId?t?(n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)),n):(this.lastConnectedDragSource=t,n):n}reconnectDragPreview(t=!1){const n=this.dragPreview,r=t||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(r&&this.disconnectDragPreview(),!!this.handlerId){if(!n){this.lastConnectedDragPreview=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=n,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,n,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!If(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!If(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(t){this.hooks=Xw({dragSource:(n,r)=>{this.clearDragSource(),this.dragSourceOptions=r||null,Uf(n)?this.dragSourceRef=n:this.dragSourceNode=n,this.reconnectDragSource()},dragPreview:(n,r)=>{this.clearDragPreview(),this.dragPreviewOptions=r||null,Uf(n)?this.dragPreviewRef=n:this.dragPreviewNode=n,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}}class wM{get connectTarget(){return this.dropTarget}reconnect(){const t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();const n=this.dropTarget;if(this.handlerId){if(!n){this.lastConnectedDropTarget=n;return}t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=n,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,n,this.dropTargetOptions))}}receiveHandlerId(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(t){this.dropTargetOptionsInternal=t}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!If(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(t){this.hooks=Xw({dropTarget:(n,r)=>{this.clearDropTarget(),this.dropTargetOptions=r,Uf(n)?this.dropTargetRef=n:this.dropTargetNode=n,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}}function Hn(){const{dragDropManager:e}=P.useContext(Ki);return G(e!=null,"Expected drag drop context"),e}function _M(e,t){const n=Hn(),r=P.useMemo(()=>new yM(n.getBackend()),[n]);return mr(()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource()),[r,e]),mr(()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,t]),r}function SM(){const e=Hn();return P.useMemo(()=>new fM(e),[e])}class bM{beginDrag(){const t=this.spec,n=this.monitor;let r=null;return typeof t.item=="object"?r=t.item:typeof t.item=="function"?r=t.item(n):r={},r??null}canDrag(){const t=this.spec,n=this.monitor;return typeof t.canDrag=="boolean"?t.canDrag:typeof t.canDrag=="function"?t.canDrag(n):!0}isDragging(t,n){const r=this.spec,a=this.monitor,{isDragging:i}=r;return i?i(a):n===t.getSourceId()}endDrag(){const t=this.spec,n=this.monitor,r=this.connector,{end:a}=t;a&&a(n.getItem(),n),r.reconnect()}constructor(t,n,r){this.spec=t,this.monitor=n,this.connector=r}}function EM(e,t,n){const r=P.useMemo(()=>new bM(e,t,n),[t,n]);return P.useEffect(()=>{r.spec=e},[e]),r}function TM(e){return P.useMemo(()=>{const t=e.type;return G(t!=null,"spec.type must be defined"),t},[e])}function CM(e,t,n){const r=Hn(),a=EM(e,t,n),i=TM(e);mr(function(){if(i!=null){const[s,l]=pM(i,a,r);return t.receiveHandlerId(s),n.receiveHandlerId(s),l}},[r,t,n,a,i])}function Jw(e,t){const n=Yw(e,t);G(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const r=SM(),a=_M(n.options,n.previewOptions);return CM(n,r,a),[Kw(n.collect,r,a),uM(a),cM(a)]}function Qw(e){const n=Hn().getMonitor(),[r,a]=qw(n,e);return P.useEffect(()=>n.subscribeToOffsetChange(a)),P.useEffect(()=>n.subscribeToStateChange(a)),r}function OM(e){return P.useMemo(()=>e.hooks.dropTarget(),[e])}function xM(e){const t=Hn(),n=P.useMemo(()=>new wM(t.getBackend()),[t]);return mr(()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget()),[e]),n}function PM(){const e=Hn();return P.useMemo(()=>new dM(e),[e])}function NM(e){const{accept:t}=e;return P.useMemo(()=>(G(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class DM{canDrop(){const t=this.spec,n=this.monitor;return t.canDrop?t.canDrop(n.getItem(),n):!0}hover(){const t=this.spec,n=this.monitor;t.hover&&t.hover(n.getItem(),n)}drop(){const t=this.spec,n=this.monitor;if(t.drop)return t.drop(n.getItem(),n)}constructor(t,n){this.spec=t,this.monitor=n}}function kM(e,t){const n=P.useMemo(()=>new DM(e,t),[t]);return P.useEffect(()=>{n.spec=e},[e]),n}function AM(e,t,n){const r=Hn(),a=kM(e,t),i=NM(e);mr(function(){const[s,l]=hM(i,a,r);return t.receiveHandlerId(s),n.receiveHandlerId(s),l},[r,t,a,n,i.map(o=>o.toString()).join("|")])}function Bw(e,t){const n=Yw(e,t),r=PM(),a=xM(n.options);return AM(n,r,a),[Kw(n.collect,r,a),OM(a)]}const RM=Object.freeze(Object.defineProperty({__proto__:null,DndContext:Ki,DndProvider:Gw,DragPreviewImage:iM,useDrag:Jw,useDragDropManager:Hn,useDragLayer:Qw,useDrop:Bw},Symbol.toStringTag,{value:"Module"})),Wl=Bf(RM);var zf=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),$M=e=>{let t=e.getInitialClientOffset(),n=e.getInitialSourceClientOffset();return t===null||n===null?{x:0,y:0}:zf(t,n)},LM=(e,t)=>{let n=e.getClientOffset();if(n===null)return null;if(!t.current||!t.current.getBoundingClientRect)return zf(n,$M(e));let r=t.current.getBoundingClientRect(),a={x:r.width/2,y:r.height/2};return zf(n,a)},MM=e=>{let t=`translate(${e.x.toFixed(1)}px, ${e.y.toFixed(1)}px)`;return{pointerEvents:"none",position:"fixed",top:0,left:0,transform:t,WebkitTransform:t}},Zw=()=>{let e=P.useRef(null),t=Qw(n=>({currentOffset:LM(n,e),isDragging:n.isDragging(),itemType:n.getItemType(),item:n.getItem(),monitor:n}));return!t.isDragging||t.currentOffset===null?{display:!1}:{display:!0,itemType:t.itemType,item:t.item,style:MM(t.currentOffset),monitor:t.monitor,ref:e}},Ih=P.createContext(void 0),jM=e=>{let t=Zw();if(!t.display)return null;let{display:n,...r}=t,a;return"children"in e?typeof e.children=="function"?a=e.children(r):a=e.children:a=e.generator(r),Sn.createElement(Ih.Provider,{value:r},a)},e_=P.createContext(null),FM=({portal:e,...t})=>{let[n,r]=P.useState(null);return Sn.createElement(e_.Provider,{value:e??n},Sn.createElement(Gw,{backend:Lw,...t}),e?null:Sn.createElement("div",{ref:r}))},t_=()=>{let[e,t]=P.useState(!1),n=P.useContext(Ki);return P.useEffect(()=>{var i;let r=(i=n==null?void 0:n.dragDropManager)==null?void 0:i.getBackend(),a={backendChanged:o=>{t(o.previewEnabled())}};return t(r.previewEnabled()),r.previewsList().register(a),()=>{r.previewsList().unregister(a)}},[n,n.dragDropManager]),e},n_=e=>{let t=t_(),n=P.useContext(e_);if(!t)return null;let r=Sn.createElement(jM,{...e});return n!==null?Q0.createPortal(r,n):r};n_.Context=Ih;var IM=(e,t,n,r)=>{let a=n.getBackend();n.receiveBackend(r);let i=t(e);return n.receiveBackend(a),i},r_=(e,t)=>{var s;let n=P.useContext(Ki),r=(s=n==null?void 0:n.dragDropManager)==null?void 0:s.getBackend();if(r===void 0)throw new Error("could not find backend, make sure you are using a ");let a=t(e),i={},o=r.backendsList();for(let l of o)i[l.id]=IM(e,t,n.dragDropManager,l.instance);return[a,i]},UM=e=>r_(e,Jw),zM=e=>r_(e,Bw),HM=()=>{let e=t_(),t=Zw();return e?t:{display:!1}};const WM=Object.freeze(Object.defineProperty({__proto__:null,DndProvider:FM,HTML5DragTransition:j$,MouseTransition:F$,MultiBackend:Lw,PointerTransition:jw,Preview:n_,PreviewContext:Ih,TouchTransition:Mw,createTransition:qi,useMultiDrag:UM,useMultiDrop:zM,usePreview:HM},Symbol.toStringTag,{value:"Module"})),GM=Bf(WM);var a_={},Gl={},Vl={};Object.defineProperty(Vl,"__esModule",{value:!0});Vl.default=qM;let Fo;const VM=new Uint8Array(16);function qM(){if(!Fo&&(Fo=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Fo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Fo(VM)}var Wn={},Er={},ql={};Object.defineProperty(ql,"__esModule",{value:!0});ql.default=void 0;var KM=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;ql.default=KM;Object.defineProperty(Er,"__esModule",{value:!0});Er.default=void 0;var YM=XM(ql);function XM(e){return e&&e.__esModule?e:{default:e}}function JM(e){return typeof e=="string"&&YM.default.test(e)}var QM=JM;Er.default=QM;Object.defineProperty(Wn,"__esModule",{value:!0});Wn.default=void 0;Wn.unsafeStringify=i_;var BM=ZM(Er);function ZM(e){return e&&e.__esModule?e:{default:e}}const Te=[];for(let e=0;e<256;++e)Te.push((e+256).toString(16).slice(1));function i_(e,t=0){return Te[e[t+0]]+Te[e[t+1]]+Te[e[t+2]]+Te[e[t+3]]+"-"+Te[e[t+4]]+Te[e[t+5]]+"-"+Te[e[t+6]]+Te[e[t+7]]+"-"+Te[e[t+8]]+Te[e[t+9]]+"-"+Te[e[t+10]]+Te[e[t+11]]+Te[e[t+12]]+Te[e[t+13]]+Te[e[t+14]]+Te[e[t+15]]}function e5(e,t=0){const n=i_(e,t);if(!(0,BM.default)(n))throw TypeError("Stringified UUID is invalid");return n}var t5=e5;Wn.default=t5;Object.defineProperty(Gl,"__esModule",{value:!0});Gl.default=void 0;var n5=a5(Vl),r5=Wn;function a5(e){return e&&e.__esModule?e:{default:e}}let Im,ec,tc=0,nc=0;function i5(e,t,n){let r=t&&n||0;const a=t||new Array(16);e=e||{};let i=e.node||Im,o=e.clockseq!==void 0?e.clockseq:ec;if(i==null||o==null){const p=e.random||(e.rng||n5.default)();i==null&&(i=Im=[p[0]|1,p[1],p[2],p[3],p[4],p[5]]),o==null&&(o=ec=(p[6]<<8|p[7])&16383)}let s=e.msecs!==void 0?e.msecs:Date.now(),l=e.nsecs!==void 0?e.nsecs:nc+1;const u=s-tc+(l-nc)/1e4;if(u<0&&e.clockseq===void 0&&(o=o+1&16383),(u<0||s>tc)&&e.nsecs===void 0&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");tc=s,nc=l,ec=o,s+=122192928e5;const h=((s&268435455)*1e4+l)%4294967296;a[r++]=h>>>24&255,a[r++]=h>>>16&255,a[r++]=h>>>8&255,a[r++]=h&255;const d=s/4294967296*1e4&268435455;a[r++]=d>>>8&255,a[r++]=d&255,a[r++]=d>>>24&15|16,a[r++]=d>>>16&255,a[r++]=o>>>8|128,a[r++]=o&255;for(let p=0;p<6;++p)a[r+p]=i[p];return t||(0,r5.unsafeStringify)(a)}var o5=i5;Gl.default=o5;var Kl={},jn={},Yi={};Object.defineProperty(Yi,"__esModule",{value:!0});Yi.default=void 0;var s5=l5(Er);function l5(e){return e&&e.__esModule?e:{default:e}}function u5(e){if(!(0,s5.default)(e))throw TypeError("Invalid UUID");let t;const n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=t&255,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=t&255,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=t&255,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=t&255,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=t&255,n}var c5=u5;Yi.default=c5;Object.defineProperty(jn,"__esModule",{value:!0});jn.URL=jn.DNS=void 0;jn.default=g5;var f5=Wn,d5=h5(Yi);function h5(e){return e&&e.__esModule?e:{default:e}}function p5(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n>5]>>>a%32&255,o=parseInt(r.charAt(i>>>4&15)+r.charAt(i&15),16);t.push(o)}return t}function l_(e){return(e+64>>>9<<4)+14+1}function y5(e,t){e[t>>5]|=128<>5]|=(e[r/8]&255)<>16)+(t>>16)+(n>>16)<<16|n&65535}function _5(e,t){return e<>>32-t}function Xl(e,t,n,r,a,i){return _n(_5(_n(_n(t,e),_n(r,i)),a),n)}function ke(e,t,n,r,a,i,o){return Xl(t&n|~t&r,e,t,a,i,o)}function Ae(e,t,n,r,a,i,o){return Xl(t&r|n&~r,e,t,a,i,o)}function Re(e,t,n,r,a,i,o){return Xl(t^n^r,e,t,a,i,o)}function $e(e,t,n,r,a,i,o){return Xl(n^(t|~r),e,t,a,i,o)}var S5=m5;Yl.default=S5;Object.defineProperty(Kl,"__esModule",{value:!0});Kl.default=void 0;var b5=u_(jn),E5=u_(Yl);function u_(e){return e&&e.__esModule?e:{default:e}}const T5=(0,b5.default)("v3",48,E5.default);var C5=T5;Kl.default=C5;var Jl={},Ql={};Object.defineProperty(Ql,"__esModule",{value:!0});Ql.default=void 0;const O5=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var x5={randomUUID:O5};Ql.default=x5;Object.defineProperty(Jl,"__esModule",{value:!0});Jl.default=void 0;var Um=c_(Ql),P5=c_(Vl),N5=Wn;function c_(e){return e&&e.__esModule?e:{default:e}}function D5(e,t,n){if(Um.default.randomUUID&&!t&&!e)return Um.default.randomUUID();e=e||{};const r=e.random||(e.rng||P5.default)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let a=0;a<16;++a)t[n+a]=r[a];return t}return(0,N5.unsafeStringify)(r)}var k5=D5;Jl.default=k5;var Bl={},Zl={};Object.defineProperty(Zl,"__esModule",{value:!0});Zl.default=void 0;function A5(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function rc(e,t){return e<>>32-t}function R5(e){const t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){const o=unescape(encodeURIComponent(e));e=[];for(let s=0;s>>0;p=d,d=h,h=rc(u,30)>>>0,u=l,l=_}n[0]=n[0]+l>>>0,n[1]=n[1]+u>>>0,n[2]=n[2]+h>>>0,n[3]=n[3]+d>>>0,n[4]=n[4]+p>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,n[0]&255,n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,n[1]&255,n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,n[2]&255,n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,n[3]&255,n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,n[4]&255]}var $5=R5;Zl.default=$5;Object.defineProperty(Bl,"__esModule",{value:!0});Bl.default=void 0;var L5=f_(jn),M5=f_(Zl);function f_(e){return e&&e.__esModule?e:{default:e}}const j5=(0,L5.default)("v5",80,M5.default);var F5=j5;Bl.default=F5;var eu={};Object.defineProperty(eu,"__esModule",{value:!0});eu.default=void 0;var I5="00000000-0000-0000-0000-000000000000";eu.default=I5;var tu={};Object.defineProperty(tu,"__esModule",{value:!0});tu.default=void 0;var U5=z5(Er);function z5(e){return e&&e.__esModule?e:{default:e}}function H5(e){if(!(0,U5.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}var W5=H5;tu.default=W5;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return o.default}});var t=h(Gl),n=h(Kl),r=h(Jl),a=h(Bl),i=h(eu),o=h(tu),s=h(Er),l=h(Wn),u=h(Yi);function h(d){return d&&d.__esModule?d:{default:d}}})(a_);var Pe={},G5=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Pe,"__esModule",{value:!0});Pe.MosaicWindowContext=Pe.MosaicContext=void 0;var d_=G5(P);Pe.MosaicContext=d_.default.createContext(void 0);Pe.MosaicWindowContext=d_.default.createContext(void 0);var nu={},zm=wa,V5=Pl,q5=wt,Hm=zm?zm.isConcatSpreadable:void 0;function K5(e){return q5(e)||V5(e)||!!(Hm&&e&&e[Hm])}var Y5=K5,X5=bh,J5=Y5;function h_(e,t,n,r,a){var i=-1,o=e.length;for(n||(n=J5),a||(a=[]);++i0&&n(s)?t>1?h_(s,t-1,n,r,a):X5(a,s):r||(a[a.length]=s)}return a}var Q5=h_,B5=Q5;function Z5(e){var t=e==null?0:e.length;return t?B5(e,1):[]}var e8=Z5,ru={};function t8(e,t,n){return e===e&&(n!==void 0&&(e=e<=n?e:n),t!==void 0&&(e=e>=t?e:t)),e}var n8=t8,r8=/\s/;function a8(e){for(var t=e.length;t--&&r8.test(e.charAt(t)););return t}var i8=a8,o8=i8,s8=/^\s+/;function l8(e){return e&&e.slice(0,o8(e)+1).replace(s8,"")}var u8=l8,c8=u8,Wm=It,f8=Ml,Gm=0/0,d8=/^[-+]0x[0-9a-f]+$/i,h8=/^0b[01]+$/i,p8=/^0o[0-7]+$/i,g8=parseInt;function m8(e){if(typeof e=="number")return e;if(f8(e))return Gm;if(Wm(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Wm(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=c8(e);var n=h8.test(e);return n||p8.test(e)?g8(e.slice(2),n?2:8):d8.test(e)?Gm:+e}var Uh=m8,v8=n8,ac=Uh;function y8(e,t,n){return n===void 0&&(n=t,t=void 0),n!==void 0&&(n=ac(n),n=n===n?n:0),t!==void 0&&(t=ac(t),t=t===t?t:0),v8(ac(e),t,n)}var w8=y8,_8=Dt,S8=function(){return _8.Date.now()},b8=S8,E8=It,ic=b8,Vm=Uh,T8="Expected a function",C8=Math.max,O8=Math.min;function x8(e,t,n){var r,a,i,o,s,l,u=0,h=!1,d=!1,p=!0;if(typeof e!="function")throw new TypeError(T8);t=Vm(t)||0,E8(n)&&(h=!!n.leading,d="maxWait"in n,i=d?C8(Vm(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p);function w(k){var E=r,C=a;return r=a=void 0,u=k,o=e.apply(C,E),o}function m(k){return u=k,s=setTimeout(v,t),h?w(k):o}function _(k){var E=k-l,C=k-u,O=t-E;return d?O8(O,i-C):O}function b(k){var E=k-l,C=k-u;return l===void 0||E>=t||E<0||d&&C>=i}function v(){var k=ic();if(b(k))return y(k);s=setTimeout(v,_(k))}function y(k){return s=void 0,p&&r?w(k):(r=a=void 0,o)}function S(){s!==void 0&&clearTimeout(s),u=0,r=l=a=s=void 0}function x(){return s===void 0?o:y(ic())}function D(){var k=ic(),E=b(k);if(r=arguments,a=this,l=k,E){if(s===void 0)return m(l);if(d)return clearTimeout(s),s=setTimeout(v,t),w(l)}return s===void 0&&(s=setTimeout(v,t)),o}return D.cancel=S,D.flush=x,D}var P8=x8,N8=P8,D8=It,k8="Expected a function";function A8(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(k8);return D8(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),N8(e,t,{leading:r,maxWait:t,trailing:a})}var R8=A8,zh={},au={};Object.defineProperty(au,"__esModule",{value:!0});au.assertNever=void 0;function $8(e){throw new Error("Unhandled case: "+JSON.stringify(e))}au.assertNever=$8;(function(e){var t=$&&$.__assign||function(){return t=Object.assign||function(r){for(var a,i=1,o=arguments.length;i1;){for(;b.length>0;)b.length>1?v.push({direction:"row",first:b.shift(),second:b.shift()}):v.unshift(b.shift());b=v,v=[]}return a(b[0],_)}e.createBalancedTreeFromLeaves=s;function l(m){if(m==="first")return"second";if(m==="second")return"first";throw new Error("Branch '".concat(m,"' not a valid branch"))}e.getOtherBranch=l;function u(m){return m==="row"?"column":"row"}e.getOtherDirection=u;function h(m,_){for(var b=m,v=[];o(b);)b.direction==="row"&&(_===i.TOP_LEFT||_===i.BOTTOM_LEFT)||b.direction==="column"&&(_===i.TOP_LEFT||_===i.TOP_RIGHT)?(v.push("first"),b=b.first):(v.push("second"),b=b.second);return v}e.getPathToCorner=h;function d(m){return m==null?[]:o(m)?d(m.first).concat(d(m.second)):[m]}e.getLeaves=d;function p(m,_){return _.length>0?(0,r.default)(m,_,null):m}e.getNodeAtPath=p;function w(m,_){if(m==null)throw new Error("Root is empty, cannot fetch path");var b=p(m,_);if(b==null)throw new Error("Path [".concat(_.join(", "),"] did not resolve to a node"));return b}e.getAndAssertNodeAtPathExists=w})(Xi);var T7=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qs=$&&$.__assign||function(){return Qs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n"u"&&!i.call(C,H))&&(U===C&&(U=d(C)),l(U)==="Map"?U.set(H,on):U[H]=on)}}),U},E}();t.Context=p;var w={$push:function(E,C,O){return _(C,O,"$push"),E.length?C.concat(E):C},$unshift:function(E,C,O){return _(C,O,"$unshift"),E.length?E.concat(C):C},$splice:function(E,C,O,N){return v(C,O),E.forEach(function(L){y(L),C===N&&L.length&&(C=d(N)),o.apply(C,L)}),C},$set:function(E,C,O){return x(O),E},$toggle:function(E,C){b(E,"$toggle");var O=E.length?d(C):C;return E.forEach(function(N){O[N]=!C[N]}),O},$unset:function(E,C,O,N){return b(E,"$unset"),E.forEach(function(L){Object.hasOwnProperty.call(C,L)&&(C===N&&(C=d(N)),delete C[L])}),C},$add:function(E,C,O,N){return k(C,"$add"),b(E,"$add"),l(C)==="Map"?E.forEach(function(L){var U=L[0],H=L[1];C===N&&C.get(U)!==H&&(C=d(N)),C.set(U,H)}):E.forEach(function(L){C===N&&!C.has(L)&&(C=d(N)),C.add(L)}),C},$remove:function(E,C,O,N){return k(C,"$remove"),b(E,"$remove"),E.forEach(function(L){C===N&&C.has(L)&&(C=d(N)),C.delete(L)}),C},$merge:function(E,C,O,N){return D(C,E),h(E).forEach(function(L){E[L]!==C[L]&&(C===N&&(C=d(N)),C[L]=E[L])}),C},$apply:function(E,C){return S(E),E(C)}},m=new p;t.isEquals=m.update.isEquals,t.extend=m.extend,t.default=m.update,t.default.default=e.exports=u(t.default,t);function _(E,C,O){a(Array.isArray(E),function(){return"update(): expected target of "+n(O)+" to be an array; got "+n(E)+"."}),b(C[O],O)}function b(E,C){a(Array.isArray(E),function(){return"update(): expected spec of "+n(C)+" to be an array; got "+n(E)+". Did you forget to wrap your parameter in an array?"})}function v(E,C){a(Array.isArray(E),function(){return"Expected $splice target to be an array; got "+n(E)}),y(C.$splice)}function y(E){a(Array.isArray(E),function(){return"update(): expected spec of $splice to be an array of arrays; got "+n(E)+". Did you forget to wrap your parameters in an array?"})}function S(E){a(typeof E=="function",function(){return"update(): expected spec of $apply to be a function; got "+n(E)+"."})}function x(E){a(Object.keys(E).length===1,function(){return"Cannot have more than one key in an object with $set"})}function D(E,C){a(C&&typeof C=="object",function(){return"update(): $merge expects a spec of type 'object'; got "+n(C)}),a(E&&typeof E=="object",function(){return"update(): $merge expects a target of type 'object'; got "+n(E)})}function k(E,C){var O=l(E);a(O==="Map"||O==="Set",function(){return"update(): "+n(C)+" expects a target of type Set or Map; got "+n(O)})}})(Hf,Hf.exports);var lF=Hf.exports;function uF(e,t,n){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(a);++r0?(0,jF.default)({},e.path,e.spec):e.spec}je.buildSpecFromUpdate=j_;function F_(e,t){var n=e;return t.forEach(function(r){n=(0,$F.default)(n,j_(r))}),n}je.updateTree=F_;function Wf(e,t){var n=(0,L_.default)(t),r=(0,M_.default)(t),a=n.concat((0,Bs.getOtherBranch)(r)),i=(0,Bs.getAndAssertNodeAtPathExists)(e,a);return{path:n,spec:{$set:i}}}je.createRemoveUpdate=Wf;function cv(e,t,n){return(0,MF.default)((0,uv.default)(e,n),(0,uv.default)(t,n))}function FF(e,t,n,r){var a=(0,Bs.getAndAssertNodeAtPathExists)(e,n),i=[],o=cv(t,n,n.length);if(o)a=F_(a,[Wf(a,(0,LF.default)(t,n.length))]);else{i.push(Wf(e,t));var s=cv(t,n,t.length-1);s&&n.splice(t.length-1,1)}var l=(0,Bs.getAndAssertNodeAtPathExists)(e,t),u,h;r===Ho.MosaicDropTargetPosition.LEFT||r===Ho.MosaicDropTargetPosition.TOP?(u=l,h=a):(u=a,h=l);var d="column";return(r===Ho.MosaicDropTargetPosition.LEFT||r===Ho.MosaicDropTargetPosition.RIGHT)&&(d="row"),i.push({path:n,spec:{$set:{first:u,second:h,direction:d}}}),i}je.createDragToUpdates=FF;function IF(e){var t=(0,L_.default)(e),n=(0,M_.default)(e),r;return n==="first"?r=0:r=100,{path:t,spec:{splitPercentage:{$set:r}}}}je.createHideUpdate=IF;function UF(e,t){for(var n,r={},a=e.length-1;a>=0;a--){var i=e[a],o=i==="first"?t:100-t;r=(n={splitPercentage:{$set:o}},n[i]=r,n)}return{spec:r,path:[]}}je.createExpandUpdate=UF;var I_=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zs=$&&$.__assign||function(){return Zs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0){if(++t>=dI)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var mI=gI,vI=fI,yI=mI,wI=yI(vI),_I=wI,SI=Dh,bI=iI,EI=_I;function TI(e,t){return EI(bI(e,t,SI),e+"")}var CI=TI,OI=eI,xI=CI,PI=xI(function(e,t){return OI(e,1,t)}),NI=PI,DI=sw,kI=Gi,AI=Pl,RI=wt,$I=kl,LI=Nl,MI=Dl,jI=vh,FI="[object Map]",II="[object Set]",UI=Object.prototype,zI=UI.hasOwnProperty;function HI(e){if(e==null)return!0;if($I(e)&&(RI(e)||typeof e=="string"||typeof e.splice=="function"||LI(e)||jI(e)||AI(e)))return!e.length;var t=kI(e);if(t==FI||t==II)return!e.size;if(MI(e))return!DI(e).length;for(var n in e)if(zI.call(e,n))return!1;return!0}var WI=HI,vr={},Zi={},Oa={};(function(e){var t=$&&$.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0}),e.createDefaultToolbarButton=e.DefaultToolbarButton=void 0;var n=t(st),r=t(P),a=Pe,i=Gn,o=function(l){var u=l.title,h=l.className,d=l.onClick,p=l.text,w=r.default.useContext(a.MosaicContext).blueprintNamespace;return r.default.createElement("button",{title:u,onClick:d,className:(0,n.default)("mosaic-default-control",i.OptionalBlueprint.getClasses(w,"BUTTON","MINIMAL"),h)},p&&r.default.createElement("span",{className:"control-text"},p))};e.DefaultToolbarButton=o;var s=function(l,u,h,d){return r.default.createElement(e.DefaultToolbarButton,{title:l,className:u,onClick:h,text:d})};e.createDefaultToolbarButton=s})(Oa);var GI=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),z_=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zi,"__esModule",{value:!0});Zi.ExpandButton=void 0;var VI=z_(st),uc=z_(P),hv=Pe,qI=Gn,KI=Oa,YI=function(e){GI(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this;return uc.default.createElement(hv.MosaicContext.Consumer,null,function(r){var a=r.mosaicActions;return uc.default.createElement(KI.DefaultToolbarButton,{title:"Expand",className:(0,VI.default)("expand-button",qI.OptionalBlueprint.getIconClass(n.context.blueprintNamespace,"MAXIMIZE")),onClick:n.createExpand(a)})})},t.prototype.createExpand=function(n){var r=this;return function(){n.expand(r.context.mosaicWindowActions.getPath()),r.props.onClick&&r.props.onClick()}},t.contextType=hv.MosaicWindowContext,t}(uc.default.PureComponent);Zi.ExpandButton=YI;var eo={},XI=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),H_=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(eo,"__esModule",{value:!0});eo.RemoveButton=void 0;var JI=H_(st),cc=H_(P),pv=Pe,QI=Gn,BI=Oa,ZI=function(e){XI(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this;return cc.default.createElement(pv.MosaicContext.Consumer,null,function(r){var a=r.mosaicActions,i=r.blueprintNamespace;return cc.default.createElement(BI.DefaultToolbarButton,{title:"Close Window",className:(0,JI.default)("close-button",QI.OptionalBlueprint.getIconClass(i,"CROSS")),onClick:n.createRemove(a)})})},t.prototype.createRemove=function(n){var r=this;return function(){n.remove(r.context.mosaicWindowActions.getPath()),r.props.onClick&&r.props.onClick()}},t.contextType=pv.MosaicWindowContext,t}(cc.default.PureComponent);eo.RemoveButton=ZI;var to={},eU=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Kh=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(to,"__esModule",{value:!0});to.ReplaceButton=void 0;var tU=Kh(st),nU=Kh(Wh),gv=Kh(P),rU=Pe,aU=Gn,iU=Oa,oU=function(e){eU(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.replace=function(){n.context.mosaicWindowActions.replaceWithNew().then(function(){n.props.onClick&&n.props.onClick()}).catch(nU.default)},n}return t.prototype.render=function(){return gv.default.createElement(iU.DefaultToolbarButton,{title:"Replace Window",className:(0,tU.default)("replace-button",aU.OptionalBlueprint.getIconClass(this.context.blueprintNamespace,"EXCHANGE")),onClick:this.replace})},t.contextType=rU.MosaicWindowContext,t}(gv.default.PureComponent);to.ReplaceButton=oU;var no={},sU=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yh=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(no,"__esModule",{value:!0});no.SplitButton=void 0;var lU=Yh(st),uU=Yh(Wh),mv=Yh(P),cU=Pe,fU=Gn,dU=Oa,hU=function(e){sU(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.split=function(){n.context.mosaicWindowActions.split().then(function(){n.props.onClick&&n.props.onClick()}).catch(uU.default)},n}return t.prototype.render=function(){return mv.default.createElement(dU.DefaultToolbarButton,{title:"Split Window",className:(0,lU.default)("split-button",fU.OptionalBlueprint.getIconClass(this.context.blueprintNamespace,"ADD_COLUMN_RIGHT")),onClick:this.split})},t.contextType=cU.MosaicWindowContext,t}(mv.default.PureComponent);no.SplitButton=hU;var pU=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vr,"__esModule",{value:!0});vr.DEFAULT_CONTROLS_WITHOUT_CREATION=vr.DEFAULT_CONTROLS_WITH_CREATION=void 0;var mn=pU(P),W_=Zi,G_=eo,gU=to,mU=no;vr.DEFAULT_CONTROLS_WITH_CREATION=mn.default.Children.toArray([mn.default.createElement(gU.ReplaceButton,null),mn.default.createElement(mU.SplitButton,null),mn.default.createElement(W_.ExpandButton,null),mn.default.createElement(G_.RemoveButton,null)]);vr.DEFAULT_CONTROLS_WITHOUT_CREATION=mn.default.Children.toArray([mn.default.createElement(W_.ExpandButton,null),mn.default.createElement(G_.RemoveButton,null)]);var ro={},vU=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),yU=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ro,"__esModule",{value:!0});ro.Separator=void 0;var vv=yU(P),wU=function(e){vU(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){return vv.default.createElement("div",{className:"separator"})},t}(vv.default.PureComponent);ro.Separator=wU;var V_=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),el=$&&$.__assign||function(){return el=Object.assign||function(e){for(var t,n=1,r=arguments.length;nn.rootElement.offsetHeight?"row":"column";return Promise.resolve(o.apply(void 0,r)).then(function(d){return l.replaceWith(s,{direction:h,second:d,first:(0,AU.getAndAssertNodeAtPathExists)(u,s)})})},n.swap=function(){for(var r=[],a=0;a0,m=w?this.props.connectDragSource:function(y){return y};if(h){var _=m(h(this.props,o));return ne.default.createElement("div",{className:(0,Ia.default)("mosaic-window-toolbar",{draggable:w})},_)}var b=m(ne.default.createElement("div",{title:i,className:"mosaic-window-title"},i)),v=!(0,CU.default)(s);return ne.default.createElement("div",{className:(0,Ia.default)("mosaic-window-toolbar",{draggable:w})},b,ne.default.createElement("div",{className:(0,Ia.default)("mosaic-window-controls",Ua.OptionalBlueprint.getClasses("BUTTON_GROUP"))},v&&ne.default.createElement("button",{onClick:function(){return r.setAdditionalControlsOpen(!d)},className:(0,Ia.default)(Ua.OptionalBlueprint.getClasses(this.context.blueprintNamespace,"BUTTON","MINIMAL"),Ua.OptionalBlueprint.getIconClass(this.context.blueprintNamespace,"MORE"),(n={},n[Ua.OptionalBlueprint.getClasses(this.context.blueprintNamespace,"ACTIVE")]=d,n))},ne.default.createElement("span",{className:"control-text"},l)),v&&ne.default.createElement(PU.Separator,null),p))},t.prototype.checkCreateNode=function(){if(this.props.createNode==null)throw new Error("Operation invalid unless `createNode` is defined")},t.defaultProps={additionalControlButtonText:"More",draggable:!0,renderPreview:function(n){var r=n.title;return ne.default.createElement("div",{className:"mosaic-preview"},ne.default.createElement("div",{className:"mosaic-window-toolbar"},ne.default.createElement("div",{className:"mosaic-window-title"},r)),ne.default.createElement("div",{className:"mosaic-window-body"},ne.default.createElement("h4",null,r),ne.default.createElement(Ua.OptionalBlueprint.Icon,{className:"default-preview-icon",size:"large",icon:"APPLICATION"})))},renderToolbar:null},t.contextType=Gf.MosaicContext,t}(ne.default.Component);ha.InternalMosaicWindow=q_;function RU(e){var t=(0,ne.useContext)(Gf.MosaicContext),n=t.mosaicActions,r=t.mosaicId,a=(0,yv.useDrag)({type:_v.MosaicDragType.WINDOW,item:function(p){e.onDragStart&&e.onDragStart();var w=(0,EU.default)(function(){return n.hide(e.path)});return{mosaicId:r,hideTimer:w}},end:function(p,w){var m=p.hideTimer;window.clearTimeout(m);var _=e.path,b=w.getDropResult()||{},v=b.position,y=b.path;v!=null&&y!=null&&!(0,OU.default)(y,_)?(n.updateTree((0,kU.createDragToUpdates)(n.getRoot(),_,y,v)),e.onDragEnd&&e.onDragEnd("drop")):(n.updateTree([{path:(0,TU.default)(_),spec:{splitPercentage:{$set:void 0}}}]),e.onDragEnd&&e.onDragEnd("reset"))}}),i=a[1],o=a[2],s=(0,yv.useDrop)({accept:_v.MosaicDragType.WINDOW,collect:function(p){var w;return{isOver:p.isOver(),draggedMosaicId:(w=p.getItem())===null||w===void 0?void 0:w.mosaicId}}}),l=s[0],u=l.isOver,h=l.draggedMosaicId,d=s[1];return ne.default.createElement(q_,el({},e,{connectDragPreview:o,connectDragSource:i,connectDropTarget:d,isOver:u,draggedMosaicId:h}))}var $U=function(e){V_(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){return ne.default.createElement(RU,el({},this.props))},t}(ne.default.PureComponent);ha.MosaicWindow=$U;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_CONTROLS_WITHOUT_CREATION=e.DEFAULT_CONTROLS_WITH_CREATION=e.RemoveButton=e.SplitButton=e.ReplaceButton=e.ExpandButton=e.Separator=e.MosaicZeroState=e.DefaultToolbarButton=e.createDefaultToolbarButton=e.MosaicWindow=e.isParent=e.getPathToCorner=e.getOtherDirection=e.getOtherBranch=e.getNodeAtPath=e.getLeaves=e.getAndAssertNodeAtPathExists=e.Corner=e.createBalancedTreeFromLeaves=e.updateTree=e.createRemoveUpdate=e.createHideUpdate=e.createExpandUpdate=e.createDragToUpdates=e.buildSpecFromUpdate=e.MosaicWindowContext=e.MosaicContext=e.MosaicDragType=e.MosaicWithoutDragDropContext=e.Mosaic=void 0;/** + * @license + * Copyright 2019 Kevin Verdieck, originally developed at Palantir Technologies, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */var t=da;Object.defineProperty(e,"Mosaic",{enumerable:!0,get:function(){return t.Mosaic}}),Object.defineProperty(e,"MosaicWithoutDragDropContext",{enumerable:!0,get:function(){return t.MosaicWithoutDragDropContext}});var n=Tr;Object.defineProperty(e,"MosaicDragType",{enumerable:!0,get:function(){return n.MosaicDragType}});var r=Pe;Object.defineProperty(e,"MosaicContext",{enumerable:!0,get:function(){return r.MosaicContext}}),Object.defineProperty(e,"MosaicWindowContext",{enumerable:!0,get:function(){return r.MosaicWindowContext}});var a=je;Object.defineProperty(e,"buildSpecFromUpdate",{enumerable:!0,get:function(){return a.buildSpecFromUpdate}}),Object.defineProperty(e,"createDragToUpdates",{enumerable:!0,get:function(){return a.createDragToUpdates}}),Object.defineProperty(e,"createExpandUpdate",{enumerable:!0,get:function(){return a.createExpandUpdate}}),Object.defineProperty(e,"createHideUpdate",{enumerable:!0,get:function(){return a.createHideUpdate}}),Object.defineProperty(e,"createRemoveUpdate",{enumerable:!0,get:function(){return a.createRemoveUpdate}}),Object.defineProperty(e,"updateTree",{enumerable:!0,get:function(){return a.updateTree}});var i=Xi;Object.defineProperty(e,"createBalancedTreeFromLeaves",{enumerable:!0,get:function(){return i.createBalancedTreeFromLeaves}}),Object.defineProperty(e,"Corner",{enumerable:!0,get:function(){return i.Corner}}),Object.defineProperty(e,"getAndAssertNodeAtPathExists",{enumerable:!0,get:function(){return i.getAndAssertNodeAtPathExists}}),Object.defineProperty(e,"getLeaves",{enumerable:!0,get:function(){return i.getLeaves}}),Object.defineProperty(e,"getNodeAtPath",{enumerable:!0,get:function(){return i.getNodeAtPath}}),Object.defineProperty(e,"getOtherBranch",{enumerable:!0,get:function(){return i.getOtherBranch}}),Object.defineProperty(e,"getOtherDirection",{enumerable:!0,get:function(){return i.getOtherDirection}}),Object.defineProperty(e,"getPathToCorner",{enumerable:!0,get:function(){return i.getPathToCorner}}),Object.defineProperty(e,"isParent",{enumerable:!0,get:function(){return i.isParent}});var o=ha;Object.defineProperty(e,"MosaicWindow",{enumerable:!0,get:function(){return o.MosaicWindow}});var s=Oa;Object.defineProperty(e,"createDefaultToolbarButton",{enumerable:!0,get:function(){return s.createDefaultToolbarButton}}),Object.defineProperty(e,"DefaultToolbarButton",{enumerable:!0,get:function(){return s.DefaultToolbarButton}});var l=Ji;Object.defineProperty(e,"MosaicZeroState",{enumerable:!0,get:function(){return l.MosaicZeroState}});var u=ro;Object.defineProperty(e,"Separator",{enumerable:!0,get:function(){return u.Separator}});var h=Zi;Object.defineProperty(e,"ExpandButton",{enumerable:!0,get:function(){return h.ExpandButton}});var d=to;Object.defineProperty(e,"ReplaceButton",{enumerable:!0,get:function(){return d.ReplaceButton}});var p=no;Object.defineProperty(e,"SplitButton",{enumerable:!0,get:function(){return p.SplitButton}});var w=eo;Object.defineProperty(e,"RemoveButton",{enumerable:!0,get:function(){return w.RemoveButton}});var m=vr;Object.defineProperty(e,"DEFAULT_CONTROLS_WITH_CREATION",{enumerable:!0,get:function(){return m.DEFAULT_CONTROLS_WITH_CREATION}}),Object.defineProperty(e,"DEFAULT_CONTROLS_WITHOUT_CREATION",{enumerable:!0,get:function(){return m.DEFAULT_CONTROLS_WITHOUT_CREATION}})})(xf);var Sv={CENTER:"center",LEFT:"left",RIGHT:"right"},ao={NONE:"none",PRIMARY:"primary",SUCCESS:"success",WARNING:"warning",DANGER:"danger"},ve="bp5";typeof BLUEPRINT_NAMESPACE<"u"?ve=BLUEPRINT_NAMESPACE:typeof REACT_APP_BLUEPRINT_NAMESPACE<"u"&&(ve=REACT_APP_BLUEPRINT_NAMESPACE);var LU="".concat(ve,"-active"),MU="".concat(ve,"-align-left"),jU="".concat(ve,"-align-right"),FU="".concat(ve,"-disabled"),IU="".concat(ve,"-fill"),Vf="".concat(ve,"-large"),UU="".concat(ve,"-loading"),zU="".concat(ve,"-minimal"),HU="".concat(ve,"-outlined"),qf="".concat(ve,"-small");Fn(ao.PRIMARY);Fn(ao.SUCCESS);Fn(ao.WARNING);Fn(ao.DANGER);var WU="".concat(ve,"-text-overflow-ellipsis"),Xh="".concat(ve,"-button"),GU="".concat(Xh,"-spinner"),VU="".concat(Xh,"-text"),su="".concat(ve,"-spinner"),qU="".concat(su,"-animation"),KU="".concat(su,"-head"),YU="".concat(ve,"-no-spin"),XU="".concat(su,"-track"),Jh="".concat(ve,"-icon"),JU="".concat(Jh,"-standard"),QU="".concat(Jh,"-large");function BU(e){switch(e){case Sv.LEFT:return MU;case Sv.RIGHT:return jU;default:return}}function ZU(e){if(e!=null)return e.indexOf("".concat(ve,"-icon-"))===0?e:"".concat(ve,"-icon-").concat(e)}function Fn(e){if(!(e==null||e===ao.NONE))return"".concat(ve,"-intent-").concat(e.toLowerCase())}var Kf=function(e,t){return Kf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},Kf(e,t)};function K_(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Kf(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Pt=function(){return Pt=Object.assign||function(t){for(var n,r=1,a=arguments.length;r Classes.SMALL/LARGE are ignored if size prop is set.";function bv(e){return typeof NODE_ENV<"u"&&NODE_ENV===e}function nz(e,t,n){if(e==null)return e;if(n0){for(var a=0,i=r.timeoutIds;a0){for(var a=0,i=r.requestIds;a0&&n>="0"&&n<="9"?"_"+n+r:""+n.toUpperCase()+r}function fz(e,t){return t===void 0&&(t={}),J_(e,Xf({delimiter:"",transform:cz},t))}var Jf=function(){return Jf=Object.assign||function(t){for(var n,r=1,a=arguments.length;r{if(i=gz(i),i in Ov)return;Ov[i]=!0;const o=i.endsWith(".css"),s=o?'[rel="stylesheet"]':"";if(!!r)for(let h=a.length-1;h>=0;h--){const d=a[h];if(d.href===i&&(!o||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":pz,o||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),o)return new Promise((h,d)=>{u.addEventListener("load",h),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i})};var Vt=function(){return Vt=Object.assign||function(t){for(var n,r=1,a=arguments.length;r0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]import("./allPathsLoader-405ce845.js"),[])];case 2:return[2,r.sent().allPathsLoader];case 3:return[4,xv(()=>import("./splitPathsBySizeLoader-1e21a819.js"),[])];case 4:return[2,r.sent().splitPathsBySizeLoader]}})})}var Ja=function(){function e(){this.defaultLoader="split-by-size",this.loadedIconPaths16=new Map,this.loadedIconPaths20=new Map}return e.setLoaderOptions=function(t){t.loader!==void 0&&(Ar.defaultLoader=t.loader)},e.load=function(t,n,r){return Yr(this,void 0,void 0,function(){var a=this;return Xr(this,function(i){switch(i.label){case 0:return Array.isArray(t)||(t=[t]),[4,Promise.all(t.map(function(o){return a.loadImpl(o,n,r)}))];case 1:return i.sent(),[2]}})})},e.loadAll=function(t){return Yr(this,void 0,void 0,function(){var n,r=this;return Xr(this,function(a){return n=Object.values(Be),wz("[Blueprint] loading all icons",function(){return Yr(r,void 0,void 0,function(){return Xr(this,function(i){switch(i.label){case 0:return[4,Promise.all([this.load(n,Le.STANDARD,t),this.load(n,Le.LARGE,t)])];case 1:return i.sent(),[2]}})})}),[2]})})},e.getPaths=function(t,n){if(this.isValidIconName(t)){var r=n=Le.LARGE,_=m?Le.LARGE:Le.STANDARD,b="0 0 ".concat(_," ").concat(_),v=bz("iconTitle"),y=Vt({fill:a,height:l,role:"img",viewBox:b,width:l},u);return d===null?P.createElement("svg",Vt({"aria-labelledby":p?v:void 0,"data-icon":o,ref:t},y,w,{className:Mn(r,u==null?void 0:u.className)}),p&&P.createElement("title",{id:v},p),n):P.createElement(d,Vt(Vt({"aria-hidden":p?void 0:!0},w),{className:Mn(Nv,"".concat(Nv,"-").concat(o),r),ref:t,title:i}),P.createElement("svg",Vt({"data-icon":o},y,{className:u==null?void 0:u.className}),p&&P.createElement("title",null,p),n))});Z_.displayName="Blueprint5.SVGIconContainer";var ze=P.forwardRef(function(e,t){var n,r,a=e.autoLoad,i=e.className,o=e.color,s=e.icon,l=e.intent,u=e.tagName,h=e.svgProps,d=e.title,p=e.htmlTitle,w=Qh(e,["autoLoad","className","color","icon","intent","tagName","svgProps","title","htmlTitle"]),m=(r=(n=e.iconSize)!==null&&n!==void 0?n:e.size)!==null&&r!==void 0?r:Le.STANDARD,_=P.useState(function(){return typeof s=="string"?Ja.getPaths(s,m):void 0}),b=_[0],v=_[1];if(P.useEffect(function(){var x=!1;if(typeof s=="string"){var D=Ja.getPaths(s,m);D!==void 0?v(D):a?Ja.load(s,m).then(function(){x||v(Ja.getPaths(s,m))}).catch(function(k){console.error("[Blueprint] Icon '".concat(s,"' (").concat(m,"px) could not be loaded."),k)}):console.error("[Blueprint] Icon '".concat(s,"' (").concat(m,"px) is not loaded yet and autoLoad={false}, did you call Icons.load('").concat(s,"', ").concat(m,")?"))}return function(){x=!0}},[a,s,m]),s==null||typeof s=="boolean")return null;if(typeof s!="string")return s;if(b==null){var y=m===Le.STANDARD?JU:m===Le.LARGE?QU:void 0;return P.createElement(u,Pt(Pt({"aria-hidden":d?void 0:!0},tl(w)),{className:Mn(Jh,y,ZU(s),Fn(l),i),"data-icon":s,ref:t,title:p}))}else{var S=b.map(function(x,D){return P.createElement("path",{d:x,key:D,fillRule:"evenodd"})});return P.createElement(Z_,Pt({children:S,className:Mn(Fn(l),i),color:o,htmlTitle:p,iconName:s,ref:t,size:m,svgProps:h,tagName:u,title:d},tl(w)))}});ze.defaultProps={autoLoad:!0,tagName:"span"};ze.displayName="".concat(io,".Icon");var or;(function(e){e[e.SMALL=20]="SMALL",e[e.STANDARD=50]="STANDARD",e[e.LARGE=100]="LARGE"})(or||(or={}));var fn=45,kv="M 50,50 m 0,-".concat(fn," a ").concat(fn,",").concat(fn," 0 1 1 0,").concat(fn*2," a ").concat(fn,",").concat(fn," 0 1 1 0,-").concat(fn*2),za=280,Ez=10,Tz=4,Cz=16,Oz=function(e){K_(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.componentDidUpdate=function(n){n.value!==this.props.value&&this.forceUpdate()},t.prototype.render=function(){var n,r=this.props,a=r.className,i=r.intent,o=r.value,s=r.tagName,l=s===void 0?"div":s,u=Qh(r,["className","intent","value","tagName"]),h=this.getSize(),d=Mn(su,Fn(i),(n={},n[YU]=o!=null,n),a),p=Math.min(Cz,Tz*or.LARGE/h),w=za-za*(o==null?.25:nz(o,0,1));return P.createElement(l,Pt({"aria-label":"loading","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":o===void 0?void 0:o*100,className:d,role:"progressbar"},u),P.createElement(l,{className:qU},P.createElement("svg",{width:h,height:h,strokeWidth:p.toFixed(2),viewBox:this.getViewBox(p)},P.createElement("path",{className:XU,d:kv}),P.createElement("path",{className:KU,d:kv,pathLength:za,strokeDasharray:"".concat(za," ").concat(za),strokeDashoffset:w}))))},t.prototype.validateProps=function(n){var r=n.className,a=r===void 0?"":r,i=n.size;i!=null&&(a.indexOf(qf)>=0||a.indexOf(Vf)>=0)&&console.warn(tz)},t.prototype.getSize=function(){var n=this.props,r=n.className,a=r===void 0?"":r,i=n.size;return i==null?a.indexOf(qf)>=0?or.SMALL:a.indexOf(Vf)>=0?or.LARGE:or.STANDARD:Math.max(Ez,i)},t.prototype.getViewBox=function(n){var r=fn+n/2,a=(50-r).toFixed(2),i=(r*2).toFixed(2);return"".concat(a," ").concat(a," ").concat(i," ").concat(i)},t.displayName="".concat(io,".Spinner"),t}(oz),Bh=P.forwardRef(function(e,t){var n,r=e.children,a=e.tagName,i=a===void 0?"div":a,o=e.title,s=e.className,l=e.ellipsize,u=Qh(e,["children","tagName","title","className","ellipsize"]),h=P.useRef(),d=P.useMemo(function(){return X_(h,t)},[t]),p=P.useState(""),w=p[0],m=p[1],_=P.useState(),b=_[0],v=_[1];return P.useLayoutEffect(function(){var y;((y=h.current)===null||y===void 0?void 0:y.textContent)!=null&&(v(l&&h.current.scrollWidth>h.current.clientWidth),m(h.current.textContent))},[h,r,l]),P.createElement(i,Pt(Pt({},u),{className:Mn((n={},n[WU]=l,n),s),ref:d,title:o??(b?w:void 0)}),r)});Bh.defaultProps={ellipsize:!1};Bh.displayName="".concat(io,".Text");var bt=P.forwardRef(function(e,t){var n=eS(e,t);return P.createElement("button",Pt({type:"button"},tl(e),n),tS(e))});bt.displayName="".concat(io,".Button");var xz=P.forwardRef(function(e,t){var n=e.href,r=e.tabIndex,a=r===void 0?0:r,i=eS(e,t);return P.createElement("a",Pt({role:"button"},tl(e),i,{"aria-disabled":i.disabled,href:i.disabled?void 0:n,tabIndex:i.disabled?-1:a}),tS(e))});xz.displayName="".concat(io,".AnchorButton");function eS(e,t){var n,r=e.active,a=r===void 0?!1:r,i=e.alignText,o=e.fill,s=e.large,l=e.loading,u=l===void 0?!1:l,h=e.minimal,d=e.onBlur,p=e.onKeyDown,w=e.onKeyUp,m=e.outlined,_=e.small,b=e.tabIndex,v=e.disabled||u,y=P.useState(),S=y[0],x=y[1],D=P.useState(!1),k=D[0],E=D[1],C=P.useRef(null),O=P.useCallback(function(H){k&&E(!1),d==null||d(H)},[k,d]),N=P.useCallback(function(H){Ev(H)&&(H.preventDefault(),H.key!==S&&E(!0)),x(H.key),p==null||p(H)},[S,p]),L=P.useCallback(function(H){var lt;Ev(H)&&(E(!1),(lt=C.current)===null||lt===void 0||lt.click()),x(void 0),w==null||w(H)},[w]),U=Mn(Xh,(n={},n[LU]=!v&&(a||k),n[FU]=v,n[IU]=o,n[Vf]=s,n[UU]=u,n[zU]=h,n[HU]=m,n[qf]=_,n),BU(i),Fn(e.intent),e.className);return{className:U,disabled:v,onBlur:O,onClick:v?void 0:e.onClick,onFocus:v?void 0:e.onFocus,onKeyDown:N,onKeyUp:L,ref:X_(C,t),tabIndex:v?-1:b}}function tS(e){var t=e.children,n=e.ellipsizeText,r=e.icon,a=e.loading,i=e.rightIcon,o=e.text,s=e.textClassName,l=!Yf(o)||!Yf(t);return P.createElement(P.Fragment,null,a&&P.createElement(Oz,{key:"loading",className:GU,size:or.SMALL}),P.createElement(ze,{key:"leftIcon",icon:r}),l&&P.createElement(Bh,{key:"text",className:Mn(VU,s),ellipsize:n,tagName:"span"},o,t),P.createElement(ze,{key:"rightIcon",icon:i}))}const Pz="_stream_table_header_main_container_eshmy_1",Nz="_stream_table_header_fn_row_eshmy_7",Dz="_stream_table_right_container_eshmy_15",kz="_stream_table_title_eshmy_23",Az="_hideFieldBtn_eshmy_31",Rz="_dropdownMenu_eshmy_52",$z="_streamtable_vartype_panel_eshmy_107",Ha={stream_table_header_main_container:Pz,stream_table_header_fn_row:Nz,stream_table_right_container:Dz,stream_table_title:kz,hideFieldBtn:Az,dropdownMenu:Rz,streamtable_vartype_panel:$z};function Av(){P.useContext(it);const[e,t]=P.useState(!1);function n(){document.getElementById("hide-fields-list"),t(r=>!r)}return T.jsxs("div",{className:`${Ha.stream_table_header_main_container}`,children:[T.jsx("div",{className:`${Ha.stream_table_header_fn_row}`,children:T.jsxs("div",{id:"hide-fields-dropdown",className:`nav-link dropdown-toggle idaes-nav-button ${Ha.hideFieldBtn}`,"data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",onClick:n,children:[T.jsx("span",{children:"Hide Fields"}),T.jsx("ul",{id:"hide-fields-list",className:`dropdown-menu checkbox-menu ${Ha.dropdownMenu}`,style:{display:e?"block":"none"}})]})}),T.jsx("div",{id:"existing-variable-types",className:`streamtable-vartype-panel ${Ha.streamtable_vartype_panel}`})]})}const Lz="_flowsheet_variable_ul_15yu2_1",Mz="_variables_display_each_unit_label_15yu2_16",Rv={flowsheet_variable_ul:Lz,variables_display_each_unit_label:Mz};function jz(){const{cells:e,model:t,showVariable:n,setShowVariable:r}=P.useContext(it);console.log(e),console.log(t);let a="loading...";return e?a=e.map((o,s)=>{if(o.attrs&&o.attrs.label&&o.attrs.label.text)return T.jsxs("li",{id:`unit_name_${o}`,className:Rv.variables_display_each_unit_label,"data-open":"false","data-which-label":o.attrs.label.text,onClick:l=>Fz(l,r),children:[Object.keys(n).includes(o.attrs.label.text)?T.jsx(Fe,{icon:AT}):T.jsx(Fe,{icon:PT}),T.jsx("span",{children:o.attrs.label.text})]},o.attrs.label.text+s)}):a="Please check flowsheet Joint JS model, looks like it not contain any Cells",Object.keys(n).length>0,T.jsx(T.Fragment,{children:T.jsx("section",{className:"pd-md",children:T.jsx("ul",{className:`${Rv.flowsheet_variable_ul}`,children:a})})})}function Fz(e,t){const r=e.currentTarget.getAttribute("data-which-label");r?(console.log("here"),t(a=>{const i={...a};return i[r]?delete i[r]:i[r]=r,i})):console.error("Click event not receive which variable")}const Iz="_fvContainer_1oimy_1",Uz="_fv_1oimy_1",$v={fvContainer:Iz,fv:Uz};function zz(){const{panelState:e,cells:t}=P.useContext(it),n=e.fv.show;return T.jsxs(T.Fragment,{children:[T.jsx("h1",{children:{}.VITE_TEST}),n&&T.jsx("section",{id:"fvContainer",className:`${$v.fvContainer}`,children:T.jsx("div",{id:"fv",className:`${$v.fv}`})})]})}const Hz="_diagnosticsIssues_container_qe2yw_1",Wz="_diagnosticIssues_each_issue_qe2yw_11",Gz="_activated_qe2yw_36",Vo={diagnosticsIssues_container:Hz,diagnosticIssues_each_issue:Wz,activated:Gz};function Vz(e){let t=e.diagnosticData,n="Loading...";if(t){let r=t.diagnostics_toolbox_report.structural_report.warning[0],a=t.diagnostics_toolbox_report.numerical_report.warning[0],i={structural:r.length,numerical:a.length};const o=Object.keys(i);let s="";!e.whichIssue&&o.length>0?s=o[0]:s=e.whichIssue,n=o.map((l,u)=>T.jsx("div",{className:`${Vo.diagnosticIssues_each_issue} ${l==s?Vo.activated:Vo.deactivated}`,onClick:()=>e.toggleIssue(l),children:T.jsxs("p",{children:[l," issues",T.jsx("sup",{children:i[l]})]})},u))}else console.log("Diagnostic data is not pass from parent!");return T.jsx("div",{className:Vo.diagnosticsIssues_container,children:n})}const qz="_diagnostics_display_main_container_5xc1d_1",Kz="_diagnostic_display_each_section_container_5xc1d_7",Yz="_diagnostic_display_each_config_container_5xc1d_11",Xz="_diagnostics_display_each_severity_main_container_5xc1d_17",Jz="_diagnostic_display_each_severity_title_5xc1d_21",Qz="_diagnostic_display_diagnostic_content_container_5xc1d_31",Bz="_diagnostics_warning_caution_main_container_5xc1d_35",Zz="_diagnostics_display_pre_tag_5xc1d_39",eH="_diagnostics_warning_caution_display_container_5xc1d_53",tH="_warning_5xc1d_57",nH="_caution_5xc1d_65",rH="_diagnostic_display_each_issue_container_5xc1d_73",aH="_diagnostic_display_section_title_5xc1d_79",iH="_diagnostics_display_each_next_step_content_5xc1d_83",oH="_next_step_function_btn_5xc1d_96",sH="_copied_next_step_5xc1d_106",lH="_error_message_5xc1d_127",Q={diagnostics_display_main_container:qz,diagnostic_display_each_section_container:Kz,diagnostic_display_each_config_container:Yz,diagnostics_display_each_severity_main_container:Xz,diagnostic_display_each_severity_title:Jz,diagnostic_display_diagnostic_content_container:Qz,diagnostics_warning_caution_main_container:Bz,diagnostics_display_pre_tag:Zz,diagnostics_warning_caution_display_container:eH,warning:tH,caution:nH,diagnostic_display_each_issue_container:rH,diagnostic_display_section_title:aH,diagnostics_display_each_next_step_content:iH,next_step_function_btn:oH,copied_next_step:sH,error_message:lH};function uH(e){const{server_port:t,fv_id:n,diagnosticsNextStepsOutputState:r,setDiagnosticsNextStepsOutputState:a,diagnosticsRunFnNameListState:i,setDiagnosticsRunFnNameListState:o,setDiagnosticsRunnerDisplayState:s}=P.useContext(it),l=e.diagnosticData,u=e.whichIssue;let h="Loading jacobian condition...",d="Loading model statistics structural...",p="Loading warning...",w="Loading caution...",m="Loading suggested next step...",_=0,b=0,v=[];if(u&&l&&l.diagnostics_toolbox_report){const S=l.diagnostics_toolbox_report;h=T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:S.toolbox_jacobian_condation});const x=S.toolbox_model_statistics;x&&x.length>0?d=x.map((O,N)=>T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:O},`model_structural_statistics_content${N}_${O}`)):d=T.jsxs(T.Fragment,{children:[T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:" Model Statistics is not generate by diagnostics toolbox, please run: "}),T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:" dt = DiagnosticsToolbox(model)"}),T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:" dt.report_structural_issues()"}),T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:" dt.report_numerical_issues()"})]});const D=S[u=="structural"?"structural_report":"numerical_report"].warning[0];_=D.length,D&&D.length>0?p=D.map((O,N)=>(O=O.replace("WARNING","Warning"),T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:O},`eachWarning_${N}_${O}`))):p=T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:"No warning."});const k=S[u=="structural"?"structural_report":"numerical_report"].caution;b=k.length,k&&k.length>0?w=k.map((O,N)=>(O=O.replace("CAUTION","Caution"),T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:O},`eachCaution_${N}_${O}`))):w=T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:"No caution."});let E=!1;const C=S.next_steps[u=="structural"?"structural":"numerical"];C.length>0&&(E=!0,v=[...C]),E?m=C.map((O,N)=>T.jsxs("p",{className:`${Q.diagnostics_display_each_next_step_content}`,children:[T.jsx("span",{className:"function_name",children:O}),T.jsx("span",{className:`${Q.next_step_function_btn}`,onClick:()=>{y(O)},children:"Run"}),T.jsx("span",{className:`${Q.next_step_function_btn}`,onClick:cH,children:"Copy"})]},`diagnostics_suggested_next_step_${O}`)):(u=="structural"&&(m="Try to initialize / solve your model and then call report_numerical_issues()"),u=="numerical"&&(m="Try to initialize / solve your model and then call report_numerical_issues()"))}alert(t);async function y(S){try{if(!S)return;s(S);let x=S.replace("(","").replace(")","");const D=`http://localhost:${t}/run_diagnostic`,E=new URL(window.location.href).searchParams.get("id"),C={function_name:x,id:E},O=await Zn.put(D,C);console.log(O);const N=O.data;a(L=>{const U={...L};return U[S]||(U[S]=[]),U[S]&&U[S].push(N),U})}catch(x){ir("diagnosticFNRunError",!1,x.response.data.error),console.log(x);const D=document.getElementById("diagnosticsRunner_content_container");if(D){const k=` +
${x.response.data.error}
+                    
+ `;D.innerHTML+=k}}}return P.useEffect(()=>{for(let S=0;S{const k=D.map(E=>E);return k.push(x),k})}},[v]),T.jsxs("div",{className:`${Q.diagnostics_display_main_container}`,children:[T.jsxs("div",{className:Q.diagnostic_display_each_section_container,children:[T.jsx("p",{className:Q.diagnostic_display_section_title,children:"Model Statistics"}),u=="structural"||!u?d:h]}),T.jsxs("div",{className:Q.diagnostic_display_each_section_container,children:[T.jsxs("div",{className:Q.diagnostics_warning_caution_main_container,children:[T.jsxs("div",{className:`${Q.diagnostic_display_each_severity_title} ${Q.warning}`,children:["WARNINGS",T.jsx("span",{children:_})]}),T.jsx("div",{className:Q.diagnostics_warning_caution_display_container,children:p})]}),T.jsxs("div",{className:Q.diagnostics_warning_caution_main_container,children:[T.jsxs("div",{className:`${Q.diagnostic_display_each_severity_title} ${Q.caution}`,children:["CAUTIONS",T.jsx("span",{children:b})]}),T.jsx("div",{className:Q.diagnostics_warning_caution_display_container,children:w})]})]}),T.jsxs("div",{className:Q.diagnostic_display_each_section_container,children:[m!="Loading suggested next step..."&&T.jsx("p",{className:Q.diagnostic_display_section_title,children:"Suggested next steps:"}),T.jsx("div",{className:Q.diagnostic_display_diagnostic_content_container,children:m})]})]})}function cH(e){let t=e.currentTarget,n=t.parentElement.querySelector(".function_name");if(!n){console.error("There is an issue with click copy next step function");return}const r=n.textContent||"";navigator.clipboard.writeText(r).then(()=>{let a;a?clearTimeout(a):(t.innerText="Copied",a=setTimeout(()=>{t.innerText="Copy"},900))}).catch(a=>{console.error("Failed to copy text: ",a)})}function fH(){let{server_port:e,diagnosticsRefreshState:t}=P.useContext(it);const[n,r]=P.useState(null),[a,i]=P.useState("structural"),o=s=>{i(s)};return P.useEffect(()=>{const u=`http://localhost:49999/diagnostics?id=${new URL(window.location.href).searchParams.get("id")}`;(async d=>{try{const w=(await Zn.get(d)).data;ir("diagnosticRefresh",!0),r(w)}catch(p){console.error("Fetch diagnostic data error",p),ir("diagnosticRefresh",!1)}})(u)},[t]),T.jsxs(T.Fragment,{children:[T.jsx(Vz,{diagnosticData:n,toggleIssue:o,whichIssue:a}),T.jsx(uH,{diagnosticData:n,whichIssue:a})]})}const dH="_diagnosticsRunner_content_container_151kk_1",Lv={diagnosticsRunner_content_container:dH};function hH(){const{diagnosticsNextStepsOutputState:e,diagnosticsRunnerDisplayState:t,diagnosticsHistoryState:n,setDiagnosticsHistory:r}=P.useContext(it);let a="",i=0;return!t||t=="default"?a="Please select a function to check diagnostics result!":!e[t]||e[t][0].diagnostics_runner_result.length==0?a="Please run diagnostics function first!":e[t]&&e[t]&&(i=e[t].length,a=e[t].map((o,s)=>T.jsx(Sn.Fragment,{children:T.jsx("pre",{id:`diagnostics_log_${s}`,className:Lv.diagnostics_runner_output_pre,children:o.diagnostics_runner_result})},`diagnosticsRunnerDisplayContentContainerContent${s}`))),P.useEffect(()=>{r(o=>i)},[i]),T.jsx("div",{className:Lv.diagnosticsRunner_content_container,id:"diagnosticsRunner_content_container",style:{overflowY:"scroll"},children:a})}const pH="_diagnostics_log_header_history_btn_container_1ynrk_1",gH="_diagnostics_log_header_history_btn_1ynrk_1",mH={diagnostics_log_header_history_btn_container:pH,diagnostics_log_header_history_btn:gH};function vH(){const{diagnosticsHistoryState:e,setDiagnosticsHistory:t,viewInLogPanel:n}=P.useContext(it),[r,a]=P.useState(0),[i,o]=P.useState({hasPrevHistory:!1,hasNextHistory:!1});function s(){r>0&&a(d=>{let p=d;return p-=1,p}),window.location.hash=`#diagnostics_log_${r-1}`}function l(){r{let p=d;return p+=1,p})),window.location.hash=`#diagnostics_log_${r}`}function u(){if(r-1<=0){o(d=>{const p={...d};return p.hasPrevHistory=!1,p});return}if(r-1>=0){o(d=>{const p={...d};return p.hasPrevHistory=!0,p});return}}function h(){if(r==e){o(d=>{const p={...d};return p.hasNextHistory=!1,p});return}if(r{const p={...d};return p.hasNextHistory=!0,p});return}}return P.useEffect(()=>{window.location.hash=`diagnostics_log_${r}`},[n]),P.useEffect(()=>{u(),h(),a(()=>e),window.location.hash=`diagnostics_log_${r-1}`},[e]),P.useEffect(()=>{u(),h(),window.location.hash=`diagnostics_log_${r-1}`},[r]),T.jsxs("div",{id:"diagnostics_log_panel",className:`${mH.diagnostics_log_header_history_btn_container}`,children:[T.jsx(bt,{minimal:!0,disabled:!i.hasPrevHistory,onClick:()=>s(),children:T.jsx(ze,{icon:Be.UNDO,size:20})}),T.jsx(bt,{minimal:!0,disabled:!i.hasNextHistory,onClick:()=>l(),children:T.jsx(ze,{icon:Be.REDO,size:20})})]})}function Mv(){return T.jsx(T.Fragment,{children:T.jsx("div",{id:"stream-table",className:"idaes-container",style:{display:"block"},children:T.jsx("div",{id:"stream-table-container",className:"pd-md tableContainer",children:T.jsx("div",{id:"stream-table-data",className:"ag-theme-alpine"})})})})}const yH=()=>{const{panelState:e,setPanelState:t,fvHeaderState:n,setFvHeaderState:r,diagnosticsRunFnNameListState:a,setDiagnosticsRunnerDisplayState:i,viewInLogPanel:o,setViewInLogPanel:s,setDiagnosticsRefreshState:l}=P.useContext(it),u=n.isShowSteamName,h=n.isShowLabels,[d,p]=P.useState(E());function w(O){Object.keys(o).includes(O)&&s(N=>{const L={...N};return Object.keys(L).forEach(U=>{U==O?L[U]=!0:L[U]=!1}),L})}function m(){return e.diagnostics.show===!0&&o.diagnosticsLogs?T.jsx(hH,{}):e.diagnostics.show===!0&&o.streamTable===!0?T.jsx(Mv,{}):e.diagnostics.show===!1?T.jsx(Mv,{}):T.jsx(T.Fragment,{children:"Bottom panel display error cause by diagnosticsRunnerOrStreamTableDisplay"})}const _={components:T.jsx(jz,{}),flowsheet:T.jsx(zz,{}),diagnostics:T.jsx(fH,{}),streamTableAndDiagnostics:m()},b={components:"Components",flowsheet:"Diagram",diagnostics:"Diagnostics",diagnosticsRunner:"Diagnostics Runner",streamTable:"Stream Table",streamTableAndDiagnostics:"Diagnostics Logs"},v=(O,N)=>(jv(O,y,S,u,h,a,i,o,l),T.jsx(T.Fragment,{children:T.jsx(xf.MosaicWindow,{path:N,createNode:()=>"new",title:b[O],renderToolbar:(L,U)=>T.jsxs("div",{className:"mosaic_customized_toolbar_header",children:[T.jsx("div",{className:"mosaic_customized_toolbar_title_container",children:b[O]==b.streamTableAndDiagnostics?T.jsxs(T.Fragment,{children:[T.jsx("p",{onClick:()=>w("streamTable"),className:` + ${o.streamTable?"mosaic_header_toolbar_title_activate":"mosaic_header_toolbar_title_deactivate"} + mosaic_header_toolbar_title diagnostics_runner_panel_title + `,children:"Stream Table"}),T.jsx("p",{onClick:()=>{e.diagnostics.show&&w("diagnosticsLogs")},className:` + ${o.diagnosticsLogs?"mosaic_header_toolbar_title_activate":"mosaic_header_toolbar_title_deactivate"} + + ${!e.diagnostics.show&&"mosaic_header_tool_bar_fully_deactivate"} + mosaic_header_toolbar_title diagnostics_runner_panel_title + `,children:b[O]})]}):T.jsx("p",{className:"mosaic_header_toolbar_title",children:b[O]})}),T.jsx("div",{className:"mosaic_customized_toolbar_btn_container",children:jv(O,y,S,u,h,a,i,o,l)})]}),children:_[O]})}));function y(){r(O=>({...O,isShowSteamName:!O.isShowSteamName}))}function S(){r(O=>({...O,isShowLabels:!O.isShowLabels}))}function x(O){e.diagnostics.show&&D(O),localStorage.setItem("mosaicLayout",JSON.stringify(O)),p(()=>O)}function D(O){let N,L=localStorage.getItem("diagnosticsPanelParams");L?N=JSON.parse(L):N=k(),Object.keys(O).forEach(U=>{O[U]=="diagnostics"&&(N.direction=O.direction,N.splitPercentage=O.splitPercentage,N.diagnosticsPanelLocationInItem=U,N.diagnosticsPanelLocationInObj=void 0,N.diagnosticsPanelStayWith=void 0),typeof O[U]=="object"&&Object.keys(O[U]).forEach(H=>{if(O[U][H]=="diagnostics"){N.direction=O[U].direction,N.splitPercentage=O[U].splitPercentage;const lt=H=="first"?"second":"first";N.diagnosticsPanelStayWith=O[U][lt],N.diagnosticsPanelLocationInItem=U,N.diagnosticsPanelLocationInObj=H}})}),localStorage.setItem("diagnosticsPanelParams",JSON.stringify(N))}function k(){let O=localStorage.getItem("diagnosticsPanelParams");if(O)return JSON.parse(O);{const N={direction:"row",diagnosticsPanelParamsLocationInItem:"first",diagnosticsPanelLocationInObj:"second",diagnosticsPanelStayWith:"flowsheet",splitPercentage:55};return localStorage.setItem("diagnosticsPanelParams",JSON.stringify(N)),N}}function E(){let O;return e.diagnostics.show&&(O={direction:"column",first:{direction:"row",first:"flowsheet",second:"diagnostics",splitPercentage:55},second:"streamTableAndDiagnostics",splitPercentage:60}),e.diagnostics.show||(O={direction:"column",first:"flowsheet",second:"streamTableAndDiagnostics",splitPercentage:60}),O}function C(){try{if(k(),e.diagnostics.show){let O=JSON.parse(JSON.stringify(d));if(!JSON.stringify(d).includes("diagnostics")){localStorage.getItem("diagnosticsPanelParams")||k();const N=localStorage.getItem("diagnosticsPanelParams");if(N){let L=JSON.parse(N);if(!L.diagnosticsPanelLocationInObj){const U=L.diagnosticsPanelLocationInItem=="first"?"second":"first",H={direction:O.direction?O.direction:"row",splitPercentage:O.splitPercentage?O.splitPercentage:55,first:O.first?O.first:"flowsheet",second:O.second?O.second:"streamTableAndDiagnostics"};O.direction=L.direction?L.direction:"column",O.splitPercentage=L.splitPercentage?L.splitPercentage:55,O[L.diagnosticsPanelLocationInItem]="diagnostics",O[U]=H}if(L.diagnosticsPanelLocationInObj){const U=L.diagnosticsPanelStayWith?L.diagnosticsPanelStayWith:"flowsheet";let H=Object.keys(O).find(Or=>{if(O[Or]==U)return Or});const lt=U=="flowsheet"?"streamTableAndDiagnostics":"flowsheet",on=H=="first"?"second":"first";H||(H="first");const Ut={direction:L.direction?L.direction:"column",splitPercentage:O.splitPercentage?O.splitPercentage:55};Ut[H]=U,H==L.diagnosticsPanelLocationInObj&&(H=="first"?L.diagnosticsPanelLocationInObj="second":L.diagnosticsPanelLocationInObj="first"),Ut[L.diagnosticsPanelLocationInObj]="diagnostics",O=JSON.parse(JSON.stringify(O)),O[H]=Ut,O[on]=lt}}}return O}if(!e.diagnostics.show){let O=JSON.stringify(d),N=JSON.parse(O);return Object.keys(N).forEach(L=>{if(N[L]=="diagnostics"){delete N[L];const U=L=="first"?"second":"first",H=JSON.parse(JSON.stringify(N[U]));N.first=H.first,N.second=H.second,N.direction=H.direction,N.splitPercentage=H.splitPercentage}}),Object.keys(N).forEach(L=>{typeof N[L]=="object"&&Object.keys(N[L]).forEach(U=>{N[L][U]=="diagnostics"&&(delete N[L][U],N[L].first?N[L]=N[L].first:N[L]=N[L].second)})}),N}}catch{console.log("error in get mosaic layout rest layout"),E()}}return P.useEffect(()=>{p(()=>{const O=localStorage.getItem("mosaicLayout");return O?JSON.parse(O):E()})},[e.diagnostics.show]),T.jsx(xf.Mosaic,{renderTile:v,onChange:x,initialValue:C()})};function jv(e,t,n,r,a,i,o,s,l){switch(e){case"components":return T.jsxs("div",{className:"mosaic_toolbar_btn_container",children:[T.jsx(bt,{minimal:!0,children:T.jsx(ze,{icon:Be.MINIMIZE,size:20})}),T.jsx(bt,{minimal:!0,children:T.jsx(ze,{icon:Be.MAXIMIZE,size:20})}),T.jsx(bt,{minimal:!0,children:T.jsx(ze,{icon:Be.CROSS,size:20})})]});case"flowsheet":return T.jsxs("div",{className:"mosaic_toolbar_btn_container",children:[T.jsx(bt,{id:"zoom-in-btn",minimal:!0,children:T.jsx(ze,{icon:Be.ZOOM_IN,size:20})}),T.jsx(bt,{id:"zoom-out-btn",minimal:!0,children:T.jsx(ze,{icon:Be.ZOOM_OUT,size:20})}),T.jsx(bt,{id:"zoom-to-fit",minimal:!0,children:T.jsx(ze,{icon:Be.ZOOM_TO_FIT,size:20})}),T.jsxs(bt,{className:"mosaic_flowsheet_header_view",minimal:!0,children:[T.jsx(ze,{icon:Be.EYE_OPEN,size:20}),T.jsxs("ul",{className:"mosaic_dropdown_view",children:[T.jsxs("li",{id:"stream-names-toggle",onClick:t,"data-toggle":`${r}`,children:[r?T.jsx(Fe,{icon:Lg,className:"mosaic_toolbar_diagram_view_icon_stroke_only"}):T.jsx(Fe,{icon:Mg,className:"mosaic_toolbar_diagram_view_icon_stroke_only"}),T.jsx("span",{children:"Stream Name"})]}),T.jsxs("li",{id:"show-label-toggle",onClick:n,"data-toggle":a?"false":"true",children:[a?T.jsx(Fe,{icon:Lg,className:"mosaic_toolbar_diagram_view_icon_stroke_only"}):T.jsx(Fe,{icon:Mg,className:"mosaic_toolbar_diagram_view_icon_stroke_only"}),T.jsx("span",{children:"Labels"})]})]})]}),T.jsxs(bt,{className:"mosaic_flowsheet_header_download",minimal:!0,children:[T.jsx(ze,{icon:Be.BRING_DATA,size:20}),T.jsxs("ul",{id:"flowsheet_component_header_dropdown_container",className:"mosaic_dropdown_download",children:[T.jsx("li",{id:"headerExportImageBtn",children:"Export PNG"}),T.jsx("li",{id:"headerExportSvgBtn",children:"Export SVG"})]})]})]});case"diagnostics":let u=function(){l(p=>!p)};return T.jsxs("div",{className:"mosaic_toolbar_btn_container",children:[T.jsx("p",{className:"mosaic_diagnostic_toolbar_content",children:"BLOCK: FLOWSHEET"}),T.jsxs("div",{className:"mosaic_toolbar_btn_icon_with_text clickable_btn",onClick:()=>u(),children:[T.jsx(ze,{icon:Be.REFRESH,size:20}),T.jsx("span",{className:"mosaic_toolbar_btn_icon_with_text_text",children:"Refresh"})]})]});case"streamTable":return T.jsx("div",{className:"mosaic_toolbar_btn_container",children:T.jsx(Av,{})});case"streamTableAndDiagnostics":return T.jsxs("div",{className:"mosaic_toolbar_btn_container",children:[!s.diagnosticsLogs&&T.jsx(Av,{}),s.diagnosticsLogs&&T.jsx(vH,{})]});case"diagnosticsRunner":let h=function(p){o(p.currentTarget.value)};const d=i.map((p,w)=>T.jsx("option",{value:`${p}`,children:p},`diagnosticsRunnerSelection${p}`));return T.jsx("div",{className:"mosaic_toolbar_btn_container",children:T.jsxs("select",{name:"diagnosticsRunnerSelection",id:"",className:"mosaic_diagnosticsRunner_select",onChange:h,children:[T.jsx("option",{value:"default",children:"Select a function"}),d]})});default:return T.jsx(T.Fragment,{})}}function wH(e){return e.messageType&&e.messageType,T.jsx(T.Fragment,{children:T.jsx("div",{className:os.message_bar_container,id:"messageBarContainer"})})}const _H="_flowsheetWrapper_11hj9_1",SH={flowsheetWrapper:_H};function bH(){let{server_port:e,fv_id:t,panelState:n,viewInLogPanel:r}=P.useContext(it);const a=n.fv.show,i=n.diagnostics.show,o=n.streamTable.show;return P.useEffect(()=>{let s;return s?s=void 0:(e=="5173"?e=8e3:e=e,s=new MO(t,e,a,!1,o,r)),()=>{s&&typeof s.cleanToolBarEvent=="function"&&s.cleanToolBarEvent()}},[a,o,i,r]),T.jsxs("div",{id:"flowsheet-wrapper",className:SH.flowsheetWrapper,children:[T.jsx(yH,{}),T.jsx(wH,{})]})}function EH(){return T.jsxs("main",{id:"main",className:"main",children:[T.jsx(uC,{}),T.jsx(bH,{})]})}localStorage.getItem("appSetting")||localStorage.setItem("appSetting","{}");dc.createRoot(document.getElementById("root")).render(T.jsx(Nb,{children:T.jsx(EH,{})}));export{Le as I,Yr as _,Xr as a,xv as b,fz as p}; diff --git a/idaes_ui/fv/static/assets/index-e9678d26.js b/idaes_ui/fv/static/assets/index-e9678d26.js new file mode 100644 index 00000000..e6625348 --- /dev/null +++ b/idaes_ui/fv/static/assets/index-e9678d26.js @@ -0,0 +1,854 @@ +var nS=Object.defineProperty;var rS=(e,t,n)=>t in e?nS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var z=(e,t,n)=>(rS(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();var $=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Bf(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),n}var Fv={exports:{}},rl={},Iv={exports:{}},Y={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ri=Symbol.for("react.element"),aS=Symbol.for("react.portal"),iS=Symbol.for("react.fragment"),oS=Symbol.for("react.strict_mode"),sS=Symbol.for("react.profiler"),lS=Symbol.for("react.provider"),uS=Symbol.for("react.context"),cS=Symbol.for("react.forward_ref"),fS=Symbol.for("react.suspense"),dS=Symbol.for("react.memo"),hS=Symbol.for("react.lazy"),Zh=Symbol.iterator;function pS(e){return e===null||typeof e!="object"?null:(e=Zh&&e[Zh]||e["@@iterator"],typeof e=="function"?e:null)}var Uv={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},zv=Object.assign,Hv={};function pa(e,t,n){this.props=e,this.context=t,this.refs=Hv,this.updater=n||Uv}pa.prototype.isReactComponent={};pa.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};pa.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Wv(){}Wv.prototype=pa.prototype;function Zf(e,t,n){this.props=e,this.context=t,this.refs=Hv,this.updater=n||Uv}var ed=Zf.prototype=new Wv;ed.constructor=Zf;zv(ed,pa.prototype);ed.isPureReactComponent=!0;var ep=Array.isArray,Gv=Object.prototype.hasOwnProperty,td={current:null},Vv={key:!0,ref:!0,__self:!0,__source:!0};function qv(e,t,n){var r,a={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Gv.call(t,r)&&!Vv.hasOwnProperty(r)&&(a[r]=t[r]);var s=arguments.length-2;if(s===1)a.children=n;else if(1>>1,Se=F[he];if(0>>1;hea(lu,q))qna(so,lu)?(F[he]=so,F[qn]=q,he=qn):(F[he]=lu,F[Vn]=q,he=Vn);else if(qna(so,q))F[he]=so,F[qn]=q,he=qn;else break e}}return V}function a(F,V){var q=F.sortIndex-V.sortIndex;return q!==0?q:F.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],u=[],h=1,d=null,p=3,w=!1,m=!1,_=!1,b=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(F){for(var V=n(u);V!==null;){if(V.callback===null)r(u);else if(V.startTime<=F)r(u),V.sortIndex=V.expirationTime,t(l,V);else break;V=n(u)}}function x(F){if(_=!1,S(F),!m)if(n(l)!==null)m=!0,Ut(D);else{var V=n(u);V!==null&&Or(x,V.startTime-F)}}function D(F,V){m=!1,_&&(_=!1,v(C),C=-1),w=!0;var q=p;try{for(S(V),d=n(l);d!==null&&(!(d.expirationTime>V)||F&&!L());){var he=d.callback;if(typeof he=="function"){d.callback=null,p=d.priorityLevel;var Se=he(d.expirationTime<=V);V=e.unstable_now(),typeof Se=="function"?d.callback=Se:d===n(l)&&r(l),S(V)}else r(l);d=n(l)}if(d!==null)var oo=!0;else{var Vn=n(u);Vn!==null&&Or(x,Vn.startTime-V),oo=!1}return oo}finally{d=null,p=q,w=!1}}var k=!1,E=null,C=-1,O=5,N=-1;function L(){return!(e.unstable_now()-NF||125he?(F.sortIndex=q,t(u,F),n(l)===null&&F===n(u)&&(_?(v(C),C=-1):_=!0,Or(x,q-he))):(F.sortIndex=Se,t(l,F),m||w||(m=!0,Ut(D))),F},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(F){var V=p;return function(){var q=p;p=V;try{return F.apply(this,arguments)}finally{p=q}}}})(Jv);Xv.exports=Jv;var CS=Xv.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Qv=P,nt=CS;function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hc=Object.prototype.hasOwnProperty,OS=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,np={},rp={};function xS(e){return hc.call(rp,e)?!0:hc.call(np,e)?!1:OS.test(e)?rp[e]=!0:(np[e]=!0,!1)}function PS(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function NS(e,t,n,r){if(t===null||typeof t>"u"||PS(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ge(e,t,n,r,a,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){xe[e]=new Ge(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];xe[t]=new Ge(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){xe[e]=new Ge(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){xe[e]=new Ge(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){xe[e]=new Ge(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){xe[e]=new Ge(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){xe[e]=new Ge(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){xe[e]=new Ge(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){xe[e]=new Ge(e,5,!1,e.toLowerCase(),null,!1,!1)});var rd=/[\-:]([a-z])/g;function ad(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(rd,ad);xe[t]=new Ge(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(rd,ad);xe[t]=new Ge(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(rd,ad);xe[t]=new Ge(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){xe[e]=new Ge(e,1,!1,e.toLowerCase(),null,!1,!1)});xe.xlinkHref=new Ge("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){xe[e]=new Ge(e,1,!1,e.toLowerCase(),null,!0,!0)});function id(e,t,n,r){var a=xe.hasOwnProperty(t)?xe[t]:null;(a!==null?a.type!==0:r||!(2s||a[o]!==i[s]){var l=` +`+a[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{fu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Wa(e):""}function DS(e){switch(e.tag){case 5:return Wa(e.type);case 16:return Wa("Lazy");case 13:return Wa("Suspense");case 19:return Wa("SuspenseList");case 0:case 2:case 15:return e=du(e.type,!1),e;case 11:return e=du(e.type.render,!1),e;case 1:return e=du(e.type,!0),e;default:return""}}function vc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case $r:return"Fragment";case Rr:return"Portal";case pc:return"Profiler";case od:return"StrictMode";case gc:return"Suspense";case mc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ey:return(e.displayName||"Context")+".Consumer";case Zv:return(e._context.displayName||"Context")+".Provider";case sd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ld:return t=e.displayName||null,t!==null?t:vc(e.type)||"Memo";case dn:t=e._payload,e=e._init;try{return vc(e(t))}catch{}}return null}function kS(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return vc(t);case 8:return t===od?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function kn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ny(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function AS(e){var t=ny(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function co(e){e._valueTracker||(e._valueTracker=AS(e))}function ry(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ny(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function gs(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function yc(e,t){var n=t.checked;return ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ip(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=kn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ay(e,t){t=t.checked,t!=null&&id(e,"checked",t,!1)}function wc(e,t){ay(e,t);var n=kn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?_c(e,t.type,n):t.hasOwnProperty("defaultValue")&&_c(e,t.type,kn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function op(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function _c(e,t,n){(t!=="number"||gs(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ga=Array.isArray;function Jr(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=fo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function fi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Qa={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},RS=["Webkit","ms","Moz","O"];Object.keys(Qa).forEach(function(e){RS.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qa[t]=Qa[e]})});function ly(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Qa.hasOwnProperty(e)&&Qa[e]?(""+t).trim():t+"px"}function uy(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,a=ly(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}var $S=ce({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ec(e,t){if(t){if($S[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function Tc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Cc=null;function ud(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Oc=null,Qr=null,Br=null;function up(e){if(e=Mi(e)){if(typeof Oc!="function")throw Error(R(280));var t=e.stateNode;t&&(t=ll(t),Oc(e.stateNode,e.type,t))}}function cy(e){Qr?Br?Br.push(e):Br=[e]:Qr=e}function fy(){if(Qr){var e=Qr,t=Br;if(Br=Qr=null,up(e),t)for(e=0;e>>=0,e===0?32:31-(VS(e)/qS|0)|0}var ho=64,po=4194304;function Va(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ws(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,a=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~a;s!==0?r=Va(s):(i&=o,i!==0&&(r=Va(i)))}else o=n&~a,o!==0?r=Va(o):i!==0&&(r=Va(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&a)&&(a=r&-r,i=t&-t,a>=i||a===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function $i(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ot(t),e[t]=n}function JS(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Za),yp=String.fromCharCode(32),wp=!1;function ky(e,t){switch(e){case"keyup":return T2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ay(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Lr=!1;function O2(e,t){switch(e){case"compositionend":return Ay(t);case"keypress":return t.which!==32?null:(wp=!0,yp);case"textInput":return e=t.data,e===yp&&wp?null:e;default:return null}}function x2(e,t){if(Lr)return e==="compositionend"||!vd&&ky(e,t)?(e=Ny(),Xo=pd=vn=null,Lr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ep(n)}}function My(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?My(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jy(){for(var e=window,t=gs();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=gs(e.document)}return t}function yd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function M2(e){var t=jy(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&My(n.ownerDocument.documentElement,n)){if(r!==null&&yd(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=n.textContent.length,i=Math.min(r.start,a);r=r.end===void 0?i:Math.min(r.end,a),!e.extend&&i>r&&(a=r,r=i,i=a),a=Tp(n,i);var o=Tp(n,r);a&&o&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Mr=null,Ac=null,ti=null,Rc=!1;function Cp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Rc||Mr==null||Mr!==gs(r)||(r=Mr,"selectionStart"in r&&yd(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ti&&vi(ti,r)||(ti=r,r=bs(Ac,"onSelect"),0Ir||(e.current=Ic[Ir],Ic[Ir]=null,Ir--)}function ee(e,t){Ir++,Ic[Ir]=e.current,e.current=t}var An={},Ie=Un(An),Ke=Un(!1),ur=An;function aa(e,t){var n=e.type.contextTypes;if(!n)return An;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in n)a[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Ye(e){return e=e.childContextTypes,e!=null}function Ts(){ie(Ke),ie(Ie)}function Ap(e,t,n){if(Ie.current!==An)throw Error(R(168));ee(Ie,t),ee(Ke,n)}function qy(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var a in r)if(!(a in t))throw Error(R(108,kS(e)||"Unknown",a));return ce({},n,r)}function Cs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||An,ur=Ie.current,ee(Ie,e),ee(Ke,Ke.current),!0}function Rp(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=qy(e,t,ur),r.__reactInternalMemoizedMergedChildContext=e,ie(Ke),ie(Ie),ee(Ie,e)):ie(Ke),ee(Ke,n)}var Wt=null,ul=!1,Ou=!1;function Ky(e){Wt===null?Wt=[e]:Wt.push(e)}function Y2(e){ul=!0,Ky(e)}function zn(){if(!Ou&&Wt!==null){Ou=!0;var e=0,t=B;try{var n=Wt;for(B=1;e>=o,a-=o,qt=1<<32-Ot(t)+a|n<C?(O=E,E=null):O=E.sibling;var N=p(v,E,S[C],x);if(N===null){E===null&&(E=O);break}e&&E&&N.alternate===null&&t(v,E),y=i(N,y,C),k===null?D=N:k.sibling=N,k=N,E=O}if(C===S.length)return n(v,E),se&&Yn(v,C),D;if(E===null){for(;CC?(O=E,E=null):O=E.sibling;var L=p(v,E,N.value,x);if(L===null){E===null&&(E=O);break}e&&E&&L.alternate===null&&t(v,E),y=i(L,y,C),k===null?D=L:k.sibling=L,k=L,E=O}if(N.done)return n(v,E),se&&Yn(v,C),D;if(E===null){for(;!N.done;C++,N=S.next())N=d(v,N.value,x),N!==null&&(y=i(N,y,C),k===null?D=N:k.sibling=N,k=N);return se&&Yn(v,C),D}for(E=r(v,E);!N.done;C++,N=S.next())N=w(E,v,C,N.value,x),N!==null&&(e&&N.alternate!==null&&E.delete(N.key===null?C:N.key),y=i(N,y,C),k===null?D=N:k.sibling=N,k=N);return e&&E.forEach(function(U){return t(v,U)}),se&&Yn(v,C),D}function b(v,y,S,x){if(typeof S=="object"&&S!==null&&S.type===$r&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case uo:e:{for(var D=S.key,k=y;k!==null;){if(k.key===D){if(D=S.type,D===$r){if(k.tag===7){n(v,k.sibling),y=a(k,S.props.children),y.return=v,v=y;break e}}else if(k.elementType===D||typeof D=="object"&&D!==null&&D.$$typeof===dn&&Up(D)===k.type){n(v,k.sibling),y=a(k,S.props),y.ref=Ra(v,k,S),y.return=v,v=y;break e}n(v,k);break}else t(v,k);k=k.sibling}S.type===$r?(y=lr(S.props.children,v.mode,x,S.key),y.return=v,v=y):(x=rs(S.type,S.key,S.props,null,v.mode,x),x.ref=Ra(v,y,S),x.return=v,v=x)}return o(v);case Rr:e:{for(k=S.key;y!==null;){if(y.key===k)if(y.tag===4&&y.stateNode.containerInfo===S.containerInfo&&y.stateNode.implementation===S.implementation){n(v,y.sibling),y=a(y,S.children||[]),y.return=v,v=y;break e}else{n(v,y);break}else t(v,y);y=y.sibling}y=$u(S,v.mode,x),y.return=v,v=y}return o(v);case dn:return k=S._init,b(v,y,k(S._payload),x)}if(Ga(S))return m(v,y,S,x);if(Pa(S))return _(v,y,S,x);So(v,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,y!==null&&y.tag===6?(n(v,y.sibling),y=a(y,S),y.return=v,v=y):(n(v,y),y=Ru(S,v.mode,x),y.return=v,v=y),o(v)):n(v,y)}return b}var oa=t0(!0),n0=t0(!1),ji={},jt=Un(ji),Si=Un(ji),bi=Un(ji);function nr(e){if(e===ji)throw Error(R(174));return e}function xd(e,t){switch(ee(bi,t),ee(Si,e),ee(jt,ji),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:bc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=bc(t,e)}ie(jt),ee(jt,t)}function sa(){ie(jt),ie(Si),ie(bi)}function r0(e){nr(bi.current);var t=nr(jt.current),n=bc(t,e.type);t!==n&&(ee(Si,e),ee(jt,n))}function Pd(e){Si.current===e&&(ie(jt),ie(Si))}var le=Un(0);function ks(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var xu=[];function Nd(){for(var e=0;en?n:4,e(!0);var r=Pu.transition;Pu.transition={};try{e(!1),t()}finally{B=n,Pu.transition=r}}function w0(){return yt().memoizedState}function B2(e,t,n){var r=Pn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},_0(e))S0(t,n);else if(n=Qy(e,t,n,r),n!==null){var a=He();xt(n,e,r,a),b0(n,t,r)}}function Z2(e,t,n){var r=Pn(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(_0(e))S0(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,s=i(o,n);if(a.hasEagerState=!0,a.eagerState=s,Nt(s,o)){var l=t.interleaved;l===null?(a.next=a,Cd(t)):(a.next=l.next,l.next=a),t.interleaved=a;return}}catch{}finally{}n=Qy(e,t,a,r),n!==null&&(a=He(),xt(n,e,r,a),b0(n,t,r))}}function _0(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function S0(e,t){ni=As=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function b0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,fd(e,n)}}var Rs={readContext:vt,useCallback:Ne,useContext:Ne,useEffect:Ne,useImperativeHandle:Ne,useInsertionEffect:Ne,useLayoutEffect:Ne,useMemo:Ne,useReducer:Ne,useRef:Ne,useState:Ne,useDebugValue:Ne,useDeferredValue:Ne,useTransition:Ne,useMutableSource:Ne,useSyncExternalStore:Ne,useId:Ne,unstable_isNewReconciler:!1},eb={readContext:vt,useCallback:function(e,t){return At().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:Hp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Zo(4194308,4,p0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Zo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Zo(4,2,e,t)},useMemo:function(e,t){var n=At();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=At();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=B2.bind(null,ue,e),[r.memoizedState,e]},useRef:function(e){var t=At();return e={current:e},t.memoizedState=e},useState:zp,useDebugValue:$d,useDeferredValue:function(e){return At().memoizedState=e},useTransition:function(){var e=zp(!1),t=e[0];return e=Q2.bind(null,e[1]),At().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ue,a=At();if(se){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),Ee===null)throw Error(R(349));fr&30||o0(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,Hp(l0.bind(null,r,i,e),[e]),r.flags|=2048,Ci(9,s0.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=At(),t=Ee.identifierPrefix;if(se){var n=Kt,r=qt;n=(r&~(1<<32-Ot(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ei++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Rt]=t,e[_i]=r,k0(e,t,!1,!1),t.stateNode=e;e:{switch(o=Tc(n,r),n){case"dialog":te("cancel",e),te("close",e),a=r;break;case"iframe":case"object":case"embed":te("load",e),a=r;break;case"video":case"audio":for(a=0;aua&&(t.flags|=128,r=!0,$a(i,!1),t.lanes=4194304)}else{if(!r)if(e=ks(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),$a(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!se)return De(t),null}else 2*pe()-i.renderingStartTime>ua&&n!==1073741824&&(t.flags|=128,r=!0,$a(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=pe(),t.sibling=null,n=le.current,ee(le,r?n&1|2:n&1),t):(De(t),null);case 22:case 23:return Ud(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ze&1073741824&&(De(t),t.subtreeFlags&6&&(t.flags|=8192)):De(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function lb(e,t){switch(_d(t),t.tag){case 1:return Ye(t.type)&&Ts(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return sa(),ie(Ke),ie(Ie),Nd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Pd(t),null;case 13:if(ie(le),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));ia()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ie(le),null;case 4:return sa(),null;case 10:return Td(t.type._context),null;case 22:case 23:return Ud(),null;case 24:return null;default:return null}}var Eo=!1,Me=!1,ub=typeof WeakSet=="function"?WeakSet:Set,j=null;function Wr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){fe(e,t,r)}else n.current=null}function Qc(e,t,n){try{n()}catch(r){fe(e,t,r)}}var Qp=!1;function cb(e,t){if($c=_s,e=jy(),yd(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,s=-1,l=-1,u=0,h=0,d=e,p=null;t:for(;;){for(var w;d!==n||a!==0&&d.nodeType!==3||(s=o+a),d!==i||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(w=d.firstChild)!==null;)p=d,d=w;for(;;){if(d===e)break t;if(p===n&&++u===a&&(s=o),p===i&&++h===r&&(l=o),(w=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=w}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Lc={focusedElem:e,selectionRange:n},_s=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var _=m.memoizedProps,b=m.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?_:St(t.type,_),b);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(x){fe(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return m=Qp,Qp=!1,m}function ri(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,i!==void 0&&Qc(t,n,i)}a=a.next}while(a!==r)}}function dl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Bc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function $0(e){var t=e.alternate;t!==null&&(e.alternate=null,$0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Rt],delete t[_i],delete t[Fc],delete t[q2],delete t[K2])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function L0(e){return e.tag===5||e.tag===3||e.tag===4}function Bp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||L0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Zc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Es));else if(r!==4&&(e=e.child,e!==null))for(Zc(e,t,n),e=e.sibling;e!==null;)Zc(e,t,n),e=e.sibling}function ef(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ef(e,t,n),e=e.sibling;e!==null;)ef(e,t,n),e=e.sibling}var Ce=null,Et=!1;function sn(e,t,n){for(n=n.child;n!==null;)M0(e,t,n),n=n.sibling}function M0(e,t,n){if(Mt&&typeof Mt.onCommitFiberUnmount=="function")try{Mt.onCommitFiberUnmount(al,n)}catch{}switch(n.tag){case 5:Me||Wr(n,t);case 6:var r=Ce,a=Et;Ce=null,sn(e,t,n),Ce=r,Et=a,Ce!==null&&(Et?(e=Ce,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ce.removeChild(n.stateNode));break;case 18:Ce!==null&&(Et?(e=Ce,n=n.stateNode,e.nodeType===8?Cu(e.parentNode,n):e.nodeType===1&&Cu(e,n),gi(e)):Cu(Ce,n.stateNode));break;case 4:r=Ce,a=Et,Ce=n.stateNode.containerInfo,Et=!0,sn(e,t,n),Ce=r,Et=a;break;case 0:case 11:case 14:case 15:if(!Me&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var i=a,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Qc(n,t,o),a=a.next}while(a!==r)}sn(e,t,n);break;case 1:if(!Me&&(Wr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){fe(n,t,s)}sn(e,t,n);break;case 21:sn(e,t,n);break;case 22:n.mode&1?(Me=(r=Me)||n.memoizedState!==null,sn(e,t,n),Me=r):sn(e,t,n);break;default:sn(e,t,n)}}function Zp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ub),t.forEach(function(r){var a=wb.bind(null,e,r);n.has(r)||(n.add(r),r.then(a,a))})}}function _t(e,t){var n=t.deletions;if(n!==null)for(var r=0;ra&&(a=o),r&=~i}if(r=a,r=pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*db(r/1960))-r,10e?16:e,yn===null)var r=!1;else{if(e=yn,yn=null,Ms=0,J&6)throw Error(R(331));var a=J;for(J|=4,j=e.current;j!==null;){var i=j,o=i.child;if(j.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lpe()-Fd?sr(e,0):jd|=n),Xe(e,t)}function G0(e,t){t===0&&(e.mode&1?(t=po,po<<=1,!(po&130023424)&&(po=4194304)):t=1);var n=He();e=Bt(e,t),e!==null&&($i(e,t,n),Xe(e,n))}function yb(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),G0(e,n)}function wb(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),G0(e,n)}var V0;V0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ke.current)qe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return qe=!1,ob(e,t,n);qe=!!(e.flags&131072)}else qe=!1,se&&t.flags&1048576&&Yy(t,xs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;es(e,t),e=t.pendingProps;var a=aa(t,Ie.current);ea(t,n),a=kd(null,t,r,e,a,n);var i=Ad();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ye(r)?(i=!0,Cs(t)):i=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,Od(t),a.updater=cl,t.stateNode=a,a._reactInternals=t,Gc(t,r,e,n),t=Kc(null,t,r,!0,i,n)):(t.tag=0,se&&i&&wd(t),Ue(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(es(e,t),e=t.pendingProps,a=r._init,r=a(r._payload),t.type=r,a=t.tag=Sb(r),e=St(r,e),a){case 0:t=qc(null,t,r,e,n);break e;case 1:t=Yp(null,t,r,e,n);break e;case 11:t=qp(null,t,r,e,n);break e;case 14:t=Kp(null,t,r,St(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:St(r,a),qc(e,t,r,a,n);case 1:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:St(r,a),Yp(e,t,r,a,n);case 3:e:{if(P0(t),e===null)throw Error(R(387));r=t.pendingProps,i=t.memoizedState,a=i.element,By(e,t),Ds(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){a=la(Error(R(423)),t),t=Xp(e,t,r,n,a);break e}else if(r!==a){a=la(Error(R(424)),t),t=Xp(e,t,r,n,a);break e}else for(et=Cn(t.stateNode.containerInfo.firstChild),tt=t,se=!0,Tt=null,n=n0(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ia(),r===a){t=Zt(e,t,n);break e}Ue(e,t,r,n)}t=t.child}return t;case 5:return r0(t),e===null&&zc(t),r=t.type,a=t.pendingProps,i=e!==null?e.memoizedProps:null,o=a.children,Mc(r,a)?o=null:i!==null&&Mc(r,i)&&(t.flags|=32),x0(e,t),Ue(e,t,o,n),t.child;case 6:return e===null&&zc(t),null;case 13:return N0(e,t,n);case 4:return xd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=oa(t,null,r,n):Ue(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:St(r,a),qp(e,t,r,a,n);case 7:return Ue(e,t,t.pendingProps,n),t.child;case 8:return Ue(e,t,t.pendingProps.children,n),t.child;case 12:return Ue(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,i=t.memoizedProps,o=a.value,ee(Ps,r._currentValue),r._currentValue=o,i!==null)if(Nt(i.value,o)){if(i.children===a.children&&!Ke.current){t=Zt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Yt(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var h=u.pending;h===null?l.next=l:(l.next=h.next,h.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Hc(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(R(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Hc(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ue(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,ea(t,n),a=vt(a),r=r(a),t.flags|=1,Ue(e,t,r,n),t.child;case 14:return r=t.type,a=St(r,t.pendingProps),a=St(r.type,a),Kp(e,t,r,a,n);case 15:return C0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:St(r,a),es(e,t),t.tag=1,Ye(r)?(e=!0,Cs(t)):e=!1,ea(t,n),e0(t,r,a),Gc(t,r,a,n),Kc(null,t,r,!0,e,n);case 19:return D0(e,t,n);case 22:return O0(e,t,n)}throw Error(R(156,t.tag))};function q0(e,t){return yy(e,t)}function _b(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pt(e,t,n,r){return new _b(e,t,n,r)}function Hd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Sb(e){if(typeof e=="function")return Hd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===sd)return 11;if(e===ld)return 14}return 2}function Nn(e,t){var n=e.alternate;return n===null?(n=pt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function rs(e,t,n,r,a,i){var o=2;if(r=e,typeof e=="function")Hd(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case $r:return lr(n.children,a,i,t);case od:o=8,a|=8;break;case pc:return e=pt(12,n,t,a|2),e.elementType=pc,e.lanes=i,e;case gc:return e=pt(13,n,t,a),e.elementType=gc,e.lanes=i,e;case mc:return e=pt(19,n,t,a),e.elementType=mc,e.lanes=i,e;case ty:return pl(n,a,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Zv:o=10;break e;case ey:o=9;break e;case sd:o=11;break e;case ld:o=14;break e;case dn:o=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=pt(o,n,t,a),t.elementType=e,t.type=r,t.lanes=i,t}function lr(e,t,n,r){return e=pt(7,e,r,t),e.lanes=n,e}function pl(e,t,n,r){return e=pt(22,e,r,t),e.elementType=ty,e.lanes=n,e.stateNode={isHidden:!1},e}function Ru(e,t,n){return e=pt(6,e,null,t),e.lanes=n,e}function $u(e,t,n){return t=pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function bb(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=pu(0),this.expirationTimes=pu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pu(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Wd(e,t,n,r,a,i,o,s,l){return e=new bb(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=pt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Od(i),e}function Eb(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(J0)}catch(e){console.error(e)}}J0(),Yv.exports=rt;var Q0=Yv.exports,sg=Q0;dc.createRoot=sg.createRoot,dc.hydrateRoot=sg.hydrateRoot;function Pb(){{const e=window.location.port,n=new URLSearchParams(window.location.search).get("id");return{server_port:e,fv_id:n}}}const it=P.createContext({});function Nb({children:e}){const t=Db(),{server_port:n,fv_id:r}=Pb()??{server_port:"49999",fv_id:"sample_visualization"},[a,i]=P.useState({}),[o,s]=P.useState({fvWrapper:{panelName:"fvWrapper",show:!0,size:{maxSize:100,defaultSize:70}},fv:{panelName:"Flowsheet",show:!0,size:{minSize:100,defaultSize:70}},diagnostics:{panelName:"Diagnostics",show:t.diagnosticsPanelShow==null?!1:t.diagnosticsPanelShow,size:{minSize:100,defaultSize:70}},diagnosticsLogs:{panelName:"Stream Table",show:!1,size:{maxSize:100,defaultSize:30}},streamTable:{panelName:"Stream Table",show:!0,size:{maxSize:100,defaultSize:30}}}),[l,u]=P.useState({isShowSteamName:!0,isShowLabels:!1}),[h,d]=P.useState({}),[p,w]=P.useState([]),[m,_]=P.useState(""),[b,v]=P.useState(!0),[y,S]=P.useState(0),[x,D]=P.useState({expand:!1,expandState:{}}),[k,E]=P.useState({streamTable:!0,diagnosticsLogs:!1});return T.jsx(it.Provider,{value:{server_port:n,fv_id:r,panelState:o,setPanelState:s,showVariable:a,setShowVariable:i,fvHeaderState:l,setFvHeaderState:u,diagnosticsRunFnNameListState:p,setDiagnosticsRunFnNameListState:w,diagnosticsRefreshState:b,setDiagnosticsRefreshState:v,diagnosticsNextStepsOutputState:h,setDiagnosticsNextStepsOutputState:d,diagnosticsRunnerDisplayState:m,setDiagnosticsRunnerDisplayState:_,diagnosticsHistoryState:y,setDiagnosticsHistory:S,viewInLogPanel:k,setViewInLogPanel:E,variablesExpandState:x,setVariablesExpandState:D},children:e})}function Db(){const e=localStorage.getItem("appSetting");return JSON.parse(e)}function lg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function M(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1;a--){var i=n[a],o=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(r=i)}return oe.head.insertBefore(t,r),e}}var tE="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function ki(){for(var e=12,t="";e-- >0;)t+=tE[Math.random()*62|0];return t}function va(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Bd(e){return e.classList?va(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function u1(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function nE(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(u1(e[n]),'" ')},"").trim()}function wl(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function Zd(e){return e.size!==$t.size||e.x!==$t.x||e.y!==$t.y||e.rotate!==$t.rotate||e.flipX||e.flipY}function rE(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,a={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(t.x*32,", ").concat(t.y*32,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(i," ").concat(o," ").concat(s)},u={transform:"translate(".concat(r/2*-1," -256)")};return{outer:a,inner:l,path:u}}function aE(e){var t=e.transform,n=e.width,r=n===void 0?sf:n,a=e.height,i=a===void 0?sf:a,o=e.startCentered,s=o===void 0?!1:o,l="";return s&&n1?l+="translate(".concat(t.x/ln-r/2,"em, ").concat(t.y/ln-i/2,"em) "):s?l+="translate(calc(-50% + ".concat(t.x/ln,"em), calc(-50% + ").concat(t.y/ln,"em)) "):l+="translate(".concat(t.x/ln,"em, ").concat(t.y/ln,"em) "),l+="scale(".concat(t.size/ln*(t.flipX?-1:1),", ").concat(t.size/ln*(t.flipY?-1:1),") "),l+="rotate(".concat(t.rotate,"deg) "),l}var iE=`:root, :host { + --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid"; + --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular"; + --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light"; + --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin"; + --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone"; + --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp"; + --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp"; + --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp"; + --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands"; +} + +svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { + overflow: visible; + box-sizing: content-box; +} + +.svg-inline--fa { + display: var(--fa-display, inline-block); + height: 1em; + overflow: visible; + vertical-align: -0.125em; +} +.svg-inline--fa.fa-2xs { + vertical-align: 0.1em; +} +.svg-inline--fa.fa-xs { + vertical-align: 0em; +} +.svg-inline--fa.fa-sm { + vertical-align: -0.0714285705em; +} +.svg-inline--fa.fa-lg { + vertical-align: -0.2em; +} +.svg-inline--fa.fa-xl { + vertical-align: -0.25em; +} +.svg-inline--fa.fa-2xl { + vertical-align: -0.3125em; +} +.svg-inline--fa.fa-pull-left { + margin-right: var(--fa-pull-margin, 0.3em); + width: auto; +} +.svg-inline--fa.fa-pull-right { + margin-left: var(--fa-pull-margin, 0.3em); + width: auto; +} +.svg-inline--fa.fa-li { + width: var(--fa-li-width, 2em); + top: 0.25em; +} +.svg-inline--fa.fa-fw { + width: var(--fa-fw-width, 1.25em); +} + +.fa-layers svg.svg-inline--fa { + bottom: 0; + left: 0; + margin: auto; + position: absolute; + right: 0; + top: 0; +} + +.fa-layers-counter, .fa-layers-text { + display: inline-block; + position: absolute; + text-align: center; +} + +.fa-layers { + display: inline-block; + height: 1em; + position: relative; + text-align: center; + vertical-align: -0.125em; + width: 1em; +} +.fa-layers svg.svg-inline--fa { + -webkit-transform-origin: center center; + transform-origin: center center; +} + +.fa-layers-text { + left: 50%; + top: 50%; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); + -webkit-transform-origin: center center; + transform-origin: center center; +} + +.fa-layers-counter { + background-color: var(--fa-counter-background-color, #ff253a); + border-radius: var(--fa-counter-border-radius, 1em); + box-sizing: border-box; + color: var(--fa-inverse, #fff); + line-height: var(--fa-counter-line-height, 1); + max-width: var(--fa-counter-max-width, 5em); + min-width: var(--fa-counter-min-width, 1.5em); + overflow: hidden; + padding: var(--fa-counter-padding, 0.25em 0.5em); + right: var(--fa-right, 0); + text-overflow: ellipsis; + top: var(--fa-top, 0); + -webkit-transform: scale(var(--fa-counter-scale, 0.25)); + transform: scale(var(--fa-counter-scale, 0.25)); + -webkit-transform-origin: top right; + transform-origin: top right; +} + +.fa-layers-bottom-right { + bottom: var(--fa-bottom, 0); + right: var(--fa-right, 0); + top: auto; + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: bottom right; + transform-origin: bottom right; +} + +.fa-layers-bottom-left { + bottom: var(--fa-bottom, 0); + left: var(--fa-left, 0); + right: auto; + top: auto; + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: bottom left; + transform-origin: bottom left; +} + +.fa-layers-top-right { + top: var(--fa-top, 0); + right: var(--fa-right, 0); + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: top right; + transform-origin: top right; +} + +.fa-layers-top-left { + left: var(--fa-left, 0); + right: auto; + top: var(--fa-top, 0); + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: top left; + transform-origin: top left; +} + +.fa-1x { + font-size: 1em; +} + +.fa-2x { + font-size: 2em; +} + +.fa-3x { + font-size: 3em; +} + +.fa-4x { + font-size: 4em; +} + +.fa-5x { + font-size: 5em; +} + +.fa-6x { + font-size: 6em; +} + +.fa-7x { + font-size: 7em; +} + +.fa-8x { + font-size: 8em; +} + +.fa-9x { + font-size: 9em; +} + +.fa-10x { + font-size: 10em; +} + +.fa-2xs { + font-size: 0.625em; + line-height: 0.1em; + vertical-align: 0.225em; +} + +.fa-xs { + font-size: 0.75em; + line-height: 0.0833333337em; + vertical-align: 0.125em; +} + +.fa-sm { + font-size: 0.875em; + line-height: 0.0714285718em; + vertical-align: 0.0535714295em; +} + +.fa-lg { + font-size: 1.25em; + line-height: 0.05em; + vertical-align: -0.075em; +} + +.fa-xl { + font-size: 1.5em; + line-height: 0.0416666682em; + vertical-align: -0.125em; +} + +.fa-2xl { + font-size: 2em; + line-height: 0.03125em; + vertical-align: -0.1875em; +} + +.fa-fw { + text-align: center; + width: 1.25em; +} + +.fa-ul { + list-style-type: none; + margin-left: var(--fa-li-margin, 2.5em); + padding-left: 0; +} +.fa-ul > li { + position: relative; +} + +.fa-li { + left: calc(var(--fa-li-width, 2em) * -1); + position: absolute; + text-align: center; + width: var(--fa-li-width, 2em); + line-height: inherit; +} + +.fa-border { + border-color: var(--fa-border-color, #eee); + border-radius: var(--fa-border-radius, 0.1em); + border-style: var(--fa-border-style, solid); + border-width: var(--fa-border-width, 0.08em); + padding: var(--fa-border-padding, 0.2em 0.25em 0.15em); +} + +.fa-pull-left { + float: left; + margin-right: var(--fa-pull-margin, 0.3em); +} + +.fa-pull-right { + float: right; + margin-left: var(--fa-pull-margin, 0.3em); +} + +.fa-beat { + -webkit-animation-name: fa-beat; + animation-name: fa-beat; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-bounce { + -webkit-animation-name: fa-bounce; + animation-name: fa-bounce; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); +} + +.fa-fade { + -webkit-animation-name: fa-fade; + animation-name: fa-fade; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); +} + +.fa-beat-fade { + -webkit-animation-name: fa-beat-fade; + animation-name: fa-beat-fade; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); +} + +.fa-flip { + -webkit-animation-name: fa-flip; + animation-name: fa-flip; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-shake { + -webkit-animation-name: fa-shake; + animation-name: fa-shake; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, linear); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-spin { + -webkit-animation-name: fa-spin; + animation-name: fa-spin; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 2s); + animation-duration: var(--fa-animation-duration, 2s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, linear); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-spin-reverse { + --fa-animation-direction: reverse; +} + +.fa-pulse, +.fa-spin-pulse { + -webkit-animation-name: fa-spin; + animation-name: fa-spin; + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, steps(8)); + animation-timing-function: var(--fa-animation-timing, steps(8)); +} + +@media (prefers-reduced-motion: reduce) { + .fa-beat, +.fa-bounce, +.fa-fade, +.fa-beat-fade, +.fa-flip, +.fa-pulse, +.fa-shake, +.fa-spin, +.fa-spin-pulse { + -webkit-animation-delay: -1ms; + animation-delay: -1ms; + -webkit-animation-duration: 1ms; + animation-duration: 1ms; + -webkit-animation-iteration-count: 1; + animation-iteration-count: 1; + -webkit-transition-delay: 0s; + transition-delay: 0s; + -webkit-transition-duration: 0s; + transition-duration: 0s; + } +} +@-webkit-keyframes fa-beat { + 0%, 90% { + -webkit-transform: scale(1); + transform: scale(1); + } + 45% { + -webkit-transform: scale(var(--fa-beat-scale, 1.25)); + transform: scale(var(--fa-beat-scale, 1.25)); + } +} +@keyframes fa-beat { + 0%, 90% { + -webkit-transform: scale(1); + transform: scale(1); + } + 45% { + -webkit-transform: scale(var(--fa-beat-scale, 1.25)); + transform: scale(var(--fa-beat-scale, 1.25)); + } +} +@-webkit-keyframes fa-bounce { + 0% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 10% { + -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + } + 30% { + -webkit-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)); + 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)); + } + 50% { + -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + } + 57% { + -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + } + 64% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 100% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } +} +@keyframes fa-bounce { + 0% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 10% { + -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + } + 30% { + -webkit-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)); + 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)); + } + 50% { + -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + } + 57% { + -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + } + 64% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 100% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } +} +@-webkit-keyframes fa-fade { + 50% { + opacity: var(--fa-fade-opacity, 0.4); + } +} +@keyframes fa-fade { + 50% { + opacity: var(--fa-fade-opacity, 0.4); + } +} +@-webkit-keyframes fa-beat-fade { + 0%, 100% { + opacity: var(--fa-beat-fade-opacity, 0.4); + -webkit-transform: scale(1); + transform: scale(1); + } + 50% { + opacity: 1; + -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); + transform: scale(var(--fa-beat-fade-scale, 1.125)); + } +} +@keyframes fa-beat-fade { + 0%, 100% { + opacity: var(--fa-beat-fade-opacity, 0.4); + -webkit-transform: scale(1); + transform: scale(1); + } + 50% { + opacity: 1; + -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); + transform: scale(var(--fa-beat-fade-scale, 1.125)); + } +} +@-webkit-keyframes fa-flip { + 50% { + -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + } +} +@keyframes fa-flip { + 50% { + -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + } +} +@-webkit-keyframes fa-shake { + 0% { + -webkit-transform: rotate(-15deg); + transform: rotate(-15deg); + } + 4% { + -webkit-transform: rotate(15deg); + transform: rotate(15deg); + } + 8%, 24% { + -webkit-transform: rotate(-18deg); + transform: rotate(-18deg); + } + 12%, 28% { + -webkit-transform: rotate(18deg); + transform: rotate(18deg); + } + 16% { + -webkit-transform: rotate(-22deg); + transform: rotate(-22deg); + } + 20% { + -webkit-transform: rotate(22deg); + transform: rotate(22deg); + } + 32% { + -webkit-transform: rotate(-12deg); + transform: rotate(-12deg); + } + 36% { + -webkit-transform: rotate(12deg); + transform: rotate(12deg); + } + 40%, 100% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } +} +@keyframes fa-shake { + 0% { + -webkit-transform: rotate(-15deg); + transform: rotate(-15deg); + } + 4% { + -webkit-transform: rotate(15deg); + transform: rotate(15deg); + } + 8%, 24% { + -webkit-transform: rotate(-18deg); + transform: rotate(-18deg); + } + 12%, 28% { + -webkit-transform: rotate(18deg); + transform: rotate(18deg); + } + 16% { + -webkit-transform: rotate(-22deg); + transform: rotate(-22deg); + } + 20% { + -webkit-transform: rotate(22deg); + transform: rotate(22deg); + } + 32% { + -webkit-transform: rotate(-12deg); + transform: rotate(-12deg); + } + 36% { + -webkit-transform: rotate(12deg); + transform: rotate(12deg); + } + 40%, 100% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } +} +@-webkit-keyframes fa-spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +@keyframes fa-spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +.fa-rotate-90 { + -webkit-transform: rotate(90deg); + transform: rotate(90deg); +} + +.fa-rotate-180 { + -webkit-transform: rotate(180deg); + transform: rotate(180deg); +} + +.fa-rotate-270 { + -webkit-transform: rotate(270deg); + transform: rotate(270deg); +} + +.fa-flip-horizontal { + -webkit-transform: scale(-1, 1); + transform: scale(-1, 1); +} + +.fa-flip-vertical { + -webkit-transform: scale(1, -1); + transform: scale(1, -1); +} + +.fa-flip-both, +.fa-flip-horizontal.fa-flip-vertical { + -webkit-transform: scale(-1, -1); + transform: scale(-1, -1); +} + +.fa-rotate-by { + -webkit-transform: rotate(var(--fa-rotate-angle, none)); + transform: rotate(var(--fa-rotate-angle, none)); +} + +.fa-stack { + display: inline-block; + vertical-align: middle; + height: 2em; + position: relative; + width: 2.5em; +} + +.fa-stack-1x, +.fa-stack-2x { + bottom: 0; + left: 0; + margin: auto; + position: absolute; + right: 0; + top: 0; + z-index: var(--fa-stack-z-index, auto); +} + +.svg-inline--fa.fa-stack-1x { + height: 1em; + width: 1.25em; +} +.svg-inline--fa.fa-stack-2x { + height: 2em; + width: 2.5em; +} + +.fa-inverse { + color: var(--fa-inverse, #fff); +} + +.sr-only, +.fa-sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border-width: 0; +} + +.sr-only-focusable:not(:focus), +.fa-sr-only-focusable:not(:focus) { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border-width: 0; +} + +.svg-inline--fa .fa-primary { + fill: var(--fa-primary-color, currentColor); + opacity: var(--fa-primary-opacity, 1); +} + +.svg-inline--fa .fa-secondary { + fill: var(--fa-secondary-color, currentColor); + opacity: var(--fa-secondary-opacity, 0.4); +} + +.svg-inline--fa.fa-swap-opacity .fa-primary { + opacity: var(--fa-secondary-opacity, 0.4); +} + +.svg-inline--fa.fa-swap-opacity .fa-secondary { + opacity: var(--fa-primary-opacity, 1); +} + +.svg-inline--fa mask .fa-primary, +.svg-inline--fa mask .fa-secondary { + fill: black; +} + +.fad.fa-inverse, +.fa-duotone.fa-inverse { + color: var(--fa-inverse, #fff); +}`;function c1(){var e=r1,t=a1,n=I.cssPrefix,r=I.replacementClass,a=iE;if(n!==e||r!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");a=a.replace(i,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(s,".".concat(r))}return a}var gg=!1;function Lu(){I.autoAddCss&&!gg&&(eE(c1()),gg=!0)}var oE={mixout:function(){return{dom:{css:c1,insertCss:Lu}}},hooks:function(){return{beforeDOMElementCreation:function(){Lu()},beforeI2svg:function(){Lu()}}}},tn=Rn||{};tn[en]||(tn[en]={});tn[en].styles||(tn[en].styles={});tn[en].hooks||(tn[en].hooks={});tn[en].shims||(tn[en].shims=[]);var Ct=tn[en],f1=[],sE=function e(){oe.removeEventListener("DOMContentLoaded",e),Us=1,f1.map(function(t){return t()})},Us=!1;an&&(Us=(oe.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(oe.readyState),Us||oe.addEventListener("DOMContentLoaded",sE));function lE(e){an&&(Us?setTimeout(e,0):f1.push(e))}function Ui(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,a=e.children,i=a===void 0?[]:a;return typeof e=="string"?u1(e):"<".concat(t," ").concat(nE(r),">").concat(i.map(Ui).join(""),"")}function mg(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var uE=function(t,n){return function(r,a,i,o){return t.call(n,r,a,i,o)}},Mu=function(t,n,r,a){var i=Object.keys(t),o=i.length,s=a!==void 0?uE(n,a):n,l,u,h;for(r===void 0?(l=1,h=t[i[0]]):(l=0,h=r);l=55296&&a<=56319&&n=55296&&r<=56319&&n>t+1&&(a=e.charCodeAt(t+1),a>=56320&&a<=57343)?(r-55296)*1024+a-56320+65536:r}function vg(e){return Object.keys(e).reduce(function(t,n){var r=e[n],a=!!r.icon;return a?t[r.iconName]=r.icon:t[n]=r,t},{})}function cf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,a=r===void 0?!1:r,i=vg(t);typeof Ct.hooks.addPack=="function"&&!a?Ct.hooks.addPack(e,vg(t)):Ct.styles[e]=M(M({},Ct.styles[e]||{}),i),e==="fas"&&cf("fa",t)}var Ao,Ro,$o,Vr=Ct.styles,dE=Ct.shims,hE=(Ao={},_e(Ao,ae,Object.values(Ni[ae])),_e(Ao,de,Object.values(Ni[de])),Ao),eh=null,d1={},h1={},p1={},g1={},m1={},pE=(Ro={},_e(Ro,ae,Object.keys(xi[ae])),_e(Ro,de,Object.keys(xi[de])),Ro);function gE(e){return~Xb.indexOf(e)}function mE(e,t){var n=t.split("-"),r=n[0],a=n.slice(1).join("-");return r===e&&a!==""&&!gE(a)?a:null}var v1=function(){var t=function(i){return Mu(Vr,function(o,s,l){return o[l]=Mu(s,i,{}),o},{})};d1=t(function(a,i,o){if(i[3]&&(a[i[3]]=o),i[2]){var s=i[2].filter(function(l){return typeof l=="number"});s.forEach(function(l){a[l.toString(16)]=o})}return a}),h1=t(function(a,i,o){if(a[o]=o,i[2]){var s=i[2].filter(function(l){return typeof l=="string"});s.forEach(function(l){a[l]=o})}return a}),m1=t(function(a,i,o){var s=i[2];return a[o]=o,s.forEach(function(l){a[l]=o}),a});var n="far"in Vr||I.autoFetchSvg,r=Mu(dE,function(a,i){var o=i[0],s=i[1],l=i[2];return s==="far"&&!n&&(s="fas"),typeof o=="string"&&(a.names[o]={prefix:s,iconName:l}),typeof o=="number"&&(a.unicodes[o.toString(16)]={prefix:s,iconName:l}),a},{names:{},unicodes:{}});p1=r.names,g1=r.unicodes,eh=_l(I.styleDefault,{family:I.familyDefault})};Zb(function(e){eh=_l(e.styleDefault,{family:I.familyDefault})});v1();function th(e,t){return(d1[e]||{})[t]}function vE(e,t){return(h1[e]||{})[t]}function ar(e,t){return(m1[e]||{})[t]}function y1(e){return p1[e]||{prefix:null,iconName:null}}function yE(e){var t=g1[e],n=th("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function $n(){return eh}var nh=function(){return{prefix:null,iconName:null,rest:[]}};function _l(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?ae:n,a=xi[r][e],i=Pi[r][e]||Pi[r][a],o=e in Ct.styles?e:null;return i||o||null}var yg=($o={},_e($o,ae,Object.keys(Ni[ae])),_e($o,de,Object.keys(Ni[de])),$o);function Sl(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,a=r===void 0?!1:r,i=(t={},_e(t,ae,"".concat(I.cssPrefix,"-").concat(ae)),_e(t,de,"".concat(I.cssPrefix,"-").concat(de)),t),o=null,s=ae;(e.includes(i[ae])||e.some(function(u){return yg[ae].includes(u)}))&&(s=ae),(e.includes(i[de])||e.some(function(u){return yg[de].includes(u)}))&&(s=de);var l=e.reduce(function(u,h){var d=mE(I.cssPrefix,h);if(Vr[h]?(h=hE[s].includes(h)?Wb[s][h]:h,o=h,u.prefix=h):pE[s].indexOf(h)>-1?(o=h,u.prefix=_l(h,{family:s})):d?u.iconName=d:h!==I.replacementClass&&h!==i[ae]&&h!==i[de]&&u.rest.push(h),!a&&u.prefix&&u.iconName){var p=o==="fa"?y1(u.iconName):{},w=ar(u.prefix,u.iconName);p.prefix&&(o=null),u.iconName=p.iconName||w||u.iconName,u.prefix=p.prefix||u.prefix,u.prefix==="far"&&!Vr.far&&Vr.fas&&!I.autoFetchSvg&&(u.prefix="fas")}return u},nh());return(e.includes("fa-brands")||e.includes("fab"))&&(l.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(l.prefix="fad"),!l.prefix&&s===de&&(Vr.fass||I.autoFetchSvg)&&(l.prefix="fass",l.iconName=ar(l.prefix,l.iconName)||l.iconName),(l.prefix==="fa"||o==="fa")&&(l.prefix=$n()||"fas"),l}var wE=function(){function e(){kb(this,e),this.definitions={}}return Ab(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,a=new Array(r),i=0;i0&&h.forEach(function(d){typeof d=="string"&&(n[s][d]=u)}),n[s][l]=u}),n}}]),e}(),wg=[],qr={},na={},_E=Object.keys(na);function SE(e,t){var n=t.mixoutsTo;return wg=e,qr={},Object.keys(na).forEach(function(r){_E.indexOf(r)===-1&&delete na[r]}),wg.forEach(function(r){var a=r.mixout?r.mixout():{};if(Object.keys(a).forEach(function(o){typeof a[o]=="function"&&(n[o]=a[o]),Is(a[o])==="object"&&Object.keys(a[o]).forEach(function(s){n[o]||(n[o]={}),n[o][s]=a[o][s]})}),r.hooks){var i=r.hooks();Object.keys(i).forEach(function(o){qr[o]||(qr[o]=[]),qr[o].push(i[o])})}r.provides&&r.provides(na)}),n}function ff(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a1?t-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:{};return an?(gr("beforeI2svg",t),nn("pseudoElements2svg",t),nn("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;I.autoReplaceSvg===!1&&(I.autoReplaceSvg=!0),I.observeMutations=!0,lE(function(){CE({autoReplaceSvgRoot:n}),gr("watch",t)})}},TE={icon:function(t){if(t===null)return null;if(Is(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:ar(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=_l(t[0]);return{prefix:r,iconName:ar(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(I.cssPrefix,"-"))>-1||t.match(Gb))){var a=Sl(t.split(" "),{skipLookups:!0});return{prefix:a.prefix||$n(),iconName:ar(a.prefix,a.iconName)||a.iconName}}if(typeof t=="string"){var i=$n();return{prefix:i,iconName:ar(i,t)||t}}}},ot={noAuto:bE,config:I,dom:EE,parse:TE,library:w1,findIconDefinition:df,toHtml:Ui},CE=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?oe:n;(Object.keys(Ct.styles).length>0||I.autoFetchSvg)&&an&&I.autoReplaceSvg&&ot.dom.i2svg({node:r})};function bl(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return Ui(r)})}}),Object.defineProperty(e,"node",{get:function(){if(an){var r=oe.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function OE(e){var t=e.children,n=e.main,r=e.mask,a=e.attributes,i=e.styles,o=e.transform;if(Zd(o)&&n.found&&!r.found){var s=n.width,l=n.height,u={x:s/l/2,y:.5};a.style=wl(M(M({},i),{},{"transform-origin":"".concat(u.x+o.x/16,"em ").concat(u.y+o.y/16,"em")}))}return[{tag:"svg",attributes:a,children:t}]}function xE(e){var t=e.prefix,n=e.iconName,r=e.children,a=e.attributes,i=e.symbol,o=i===!0?"".concat(t,"-").concat(I.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:M(M({},a),{},{id:o}),children:r}]}]}function rh(e){var t=e.icons,n=t.main,r=t.mask,a=e.prefix,i=e.iconName,o=e.transform,s=e.symbol,l=e.title,u=e.maskId,h=e.titleId,d=e.extra,p=e.watchable,w=p===void 0?!1:p,m=r.found?r:n,_=m.width,b=m.height,v=a==="fak",y=[I.replacementClass,i?"".concat(I.cssPrefix,"-").concat(i):""].filter(function(O){return d.classes.indexOf(O)===-1}).filter(function(O){return O!==""||!!O}).concat(d.classes).join(" "),S={children:[],attributes:M(M({},d.attributes),{},{"data-prefix":a,"data-icon":i,class:y,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(_," ").concat(b)})},x=v&&!~d.classes.indexOf("fa-fw")?{width:"".concat(_/b*16*.0625,"em")}:{};w&&(S.attributes[pr]=""),l&&(S.children.push({tag:"title",attributes:{id:S.attributes["aria-labelledby"]||"title-".concat(h||ki())},children:[l]}),delete S.attributes.title);var D=M(M({},S),{},{prefix:a,iconName:i,main:n,mask:r,maskId:u,transform:o,symbol:s,styles:M(M({},x),d.styles)}),k=r.found&&n.found?nn("generateAbstractMask",D)||{children:[],attributes:{}}:nn("generateAbstractIcon",D)||{children:[],attributes:{}},E=k.children,C=k.attributes;return D.children=E,D.attributes=C,s?xE(D):OE(D)}function _g(e){var t=e.content,n=e.width,r=e.height,a=e.transform,i=e.title,o=e.extra,s=e.watchable,l=s===void 0?!1:s,u=M(M(M({},o.attributes),i?{title:i}:{}),{},{class:o.classes.join(" ")});l&&(u[pr]="");var h=M({},o.styles);Zd(a)&&(h.transform=aE({transform:a,startCentered:!0,width:n,height:r}),h["-webkit-transform"]=h.transform);var d=wl(h);d.length>0&&(u.style=d);var p=[];return p.push({tag:"span",attributes:u,children:[t]}),i&&p.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),p}function PE(e){var t=e.content,n=e.title,r=e.extra,a=M(M(M({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),i=wl(r.styles);i.length>0&&(a.style=i);var o=[];return o.push({tag:"span",attributes:a,children:[t]}),n&&o.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),o}var ju=Ct.styles;function hf(e){var t=e[0],n=e[1],r=e.slice(4),a=Kd(r,1),i=a[0],o=null;return Array.isArray(i)?o={tag:"g",attributes:{class:"".concat(I.cssPrefix,"-").concat(rr.GROUP)},children:[{tag:"path",attributes:{class:"".concat(I.cssPrefix,"-").concat(rr.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(I.cssPrefix,"-").concat(rr.PRIMARY),fill:"currentColor",d:i[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:i}},{found:!0,width:t,height:n,icon:o}}var NE={found:!1,width:512,height:512};function DE(e,t){!i1&&!I.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function pf(e,t){var n=t;return t==="fa"&&I.styleDefault!==null&&(t=$n()),new Promise(function(r,a){if(nn("missingIconAbstract"),n==="fa"){var i=y1(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&ju[t]&&ju[t][e]){var o=ju[t][e];return r(hf(o))}DE(e,t),r(M(M({},NE),{},{icon:I.showMissingIcons&&e?nn("missingIconAbstract")||{}:{}}))})}var Sg=function(){},gf=I.measurePerformance&&Oo&&Oo.mark&&Oo.measure?Oo:{mark:Sg,measure:Sg},Ka='FA "6.4.0"',kE=function(t){return gf.mark("".concat(Ka," ").concat(t," begins")),function(){return _1(t)}},_1=function(t){gf.mark("".concat(Ka," ").concat(t," ends")),gf.measure("".concat(Ka," ").concat(t),"".concat(Ka," ").concat(t," begins"),"".concat(Ka," ").concat(t," ends"))},ah={begin:kE,end:_1},as=function(){};function bg(e){var t=e.getAttribute?e.getAttribute(pr):null;return typeof t=="string"}function AE(e){var t=e.getAttribute?e.getAttribute(Xd):null,n=e.getAttribute?e.getAttribute(Jd):null;return t&&n}function RE(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(I.replacementClass)}function $E(){if(I.autoReplaceSvg===!0)return is.replace;var e=is[I.autoReplaceSvg];return e||is.replace}function LE(e){return oe.createElementNS("http://www.w3.org/2000/svg",e)}function ME(e){return oe.createElement(e)}function S1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?LE:ME:n;if(typeof e=="string")return oe.createTextNode(e);var a=r(e.tag);Object.keys(e.attributes||[]).forEach(function(o){a.setAttribute(o,e.attributes[o])});var i=e.children||[];return i.forEach(function(o){a.appendChild(S1(o,{ceFn:r}))}),a}function jE(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var is={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(a){n.parentNode.insertBefore(S1(a),n)}),n.getAttribute(pr)===null&&I.keepOriginalSource){var r=oe.createComment(jE(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~Bd(n).indexOf(I.replacementClass))return is.replace(t);var a=new RegExp("".concat(I.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var i=r[0].attributes.class.split(" ").reduce(function(s,l){return l===I.replacementClass||l.match(a)?s.toSvg.push(l):s.toNode.push(l),s},{toNode:[],toSvg:[]});r[0].attributes.class=i.toSvg.join(" "),i.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",i.toNode.join(" "))}var o=r.map(function(s){return Ui(s)}).join(` +`);n.setAttribute(pr,""),n.innerHTML=o}};function Eg(e){e()}function b1(e,t){var n=typeof t=="function"?t:as;if(e.length===0)n();else{var r=Eg;I.mutateApproach===zb&&(r=Rn.requestAnimationFrame||Eg),r(function(){var a=$E(),i=ah.begin("mutate");e.map(a),i(),n()})}}var ih=!1;function E1(){ih=!0}function mf(){ih=!1}var zs=null;function Tg(e){if(hg&&I.observeMutations){var t=e.treeCallback,n=t===void 0?as:t,r=e.nodeCallback,a=r===void 0?as:r,i=e.pseudoElementsCallback,o=i===void 0?as:i,s=e.observeMutationsRoot,l=s===void 0?oe:s;zs=new hg(function(u){if(!ih){var h=$n();va(u).forEach(function(d){if(d.type==="childList"&&d.addedNodes.length>0&&!bg(d.addedNodes[0])&&(I.searchPseudoElements&&o(d.target),n(d.target)),d.type==="attributes"&&d.target.parentNode&&I.searchPseudoElements&&o(d.target.parentNode),d.type==="attributes"&&bg(d.target)&&~Yb.indexOf(d.attributeName))if(d.attributeName==="class"&&AE(d.target)){var p=Sl(Bd(d.target)),w=p.prefix,m=p.iconName;d.target.setAttribute(Xd,w||h),m&&d.target.setAttribute(Jd,m)}else RE(d.target)&&a(d.target)})}}),an&&zs.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function FE(){zs&&zs.disconnect()}function IE(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,a){var i=a.split(":"),o=i[0],s=i.slice(1);return o&&s.length>0&&(r[o]=s.join(":").trim()),r},{})),n}function UE(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",a=Sl(Bd(e));return a.prefix||(a.prefix=$n()),t&&n&&(a.prefix=t,a.iconName=n),a.iconName&&a.prefix||(a.prefix&&r.length>0&&(a.iconName=vE(a.prefix,e.innerText)||th(a.prefix,uf(e.innerText))),!a.iconName&&I.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(a.iconName=e.firstChild.data)),a}function zE(e){var t=va(e.attributes).reduce(function(a,i){return a.name!=="class"&&a.name!=="style"&&(a[i.name]=i.value),a},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return I.autoA11y&&(n?t["aria-labelledby"]="".concat(I.replacementClass,"-title-").concat(r||ki()):(t["aria-hidden"]="true",t.focusable="false")),t}function HE(){return{iconName:null,title:null,titleId:null,prefix:null,transform:$t,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Cg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=UE(e),r=n.iconName,a=n.prefix,i=n.rest,o=zE(e),s=ff("parseNodeAttributes",{},e),l=t.styleParser?IE(e):[];return M({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:a,transform:$t,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:l,attributes:o}},s)}var WE=Ct.styles;function T1(e){var t=I.autoReplaceSvg==="nest"?Cg(e,{styleParser:!1}):Cg(e);return~t.extra.classes.indexOf(o1)?nn("generateLayersText",e,t):nn("generateSvgReplacementMutation",e,t)}var Ln=new Set;Qd.map(function(e){Ln.add("fa-".concat(e))});Object.keys(xi[ae]).map(Ln.add.bind(Ln));Object.keys(xi[de]).map(Ln.add.bind(Ln));Ln=Fi(Ln);function Og(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!an)return Promise.resolve();var n=oe.documentElement.classList,r=function(d){return n.add("".concat(pg,"-").concat(d))},a=function(d){return n.remove("".concat(pg,"-").concat(d))},i=I.autoFetchSvg?Ln:Qd.map(function(h){return"fa-".concat(h)}).concat(Object.keys(WE));i.includes("fa")||i.push("fa");var o=[".".concat(o1,":not([").concat(pr,"])")].concat(i.map(function(h){return".".concat(h,":not([").concat(pr,"])")})).join(", ");if(o.length===0)return Promise.resolve();var s=[];try{s=va(e.querySelectorAll(o))}catch{}if(s.length>0)r("pending"),a("complete");else return Promise.resolve();var l=ah.begin("onTree"),u=s.reduce(function(h,d){try{var p=T1(d);p&&h.push(p)}catch(w){i1||w.name==="MissingIcon"&&console.error(w)}return h},[]);return new Promise(function(h,d){Promise.all(u).then(function(p){b1(p,function(){r("active"),r("complete"),a("pending"),typeof t=="function"&&t(),l(),h()})}).catch(function(p){l(),d(p)})})}function GE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;T1(e).then(function(n){n&&b1([n],t)})}function VE(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:df(t||{}),a=n.mask;return a&&(a=(a||{}).icon?a:df(a||{})),e(r,M(M({},n),{},{mask:a}))}}var qE=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,a=r===void 0?$t:r,i=n.symbol,o=i===void 0?!1:i,s=n.mask,l=s===void 0?null:s,u=n.maskId,h=u===void 0?null:u,d=n.title,p=d===void 0?null:d,w=n.titleId,m=w===void 0?null:w,_=n.classes,b=_===void 0?[]:_,v=n.attributes,y=v===void 0?{}:v,S=n.styles,x=S===void 0?{}:S;if(t){var D=t.prefix,k=t.iconName,E=t.icon;return bl(M({type:"icon"},t),function(){return gr("beforeDOMElementCreation",{iconDefinition:t,params:n}),I.autoA11y&&(p?y["aria-labelledby"]="".concat(I.replacementClass,"-title-").concat(m||ki()):(y["aria-hidden"]="true",y.focusable="false")),rh({icons:{main:hf(E),mask:l?hf(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:D,iconName:k,transform:M(M({},$t),a),symbol:o,title:p,maskId:h,titleId:m,extra:{attributes:y,styles:x,classes:b}})})}},KE={mixout:function(){return{icon:VE(qE)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=Og,n.nodeCallback=GE,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,a=r===void 0?oe:r,i=n.callback,o=i===void 0?function(){}:i;return Og(a,o)},t.generateSvgReplacementMutation=function(n,r){var a=r.iconName,i=r.title,o=r.titleId,s=r.prefix,l=r.transform,u=r.symbol,h=r.mask,d=r.maskId,p=r.extra;return new Promise(function(w,m){Promise.all([pf(a,s),h.iconName?pf(h.iconName,h.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(_){var b=Kd(_,2),v=b[0],y=b[1];w([n,rh({icons:{main:v,mask:y},prefix:s,iconName:a,transform:l,symbol:u,maskId:d,title:i,titleId:o,extra:p,watchable:!0})])}).catch(m)})},t.generateAbstractIcon=function(n){var r=n.children,a=n.attributes,i=n.main,o=n.transform,s=n.styles,l=wl(s);l.length>0&&(a.style=l);var u;return Zd(o)&&(u=nn("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),r.push(u||i.icon),{children:r,attributes:a}}}},YE={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.classes,i=a===void 0?[]:a;return bl({type:"layer"},function(){gr("beforeDOMElementCreation",{assembler:n,params:r});var o=[];return n(function(s){Array.isArray(s)?s.map(function(l){o=o.concat(l.abstract)}):o=o.concat(s.abstract)}),[{tag:"span",attributes:{class:["".concat(I.cssPrefix,"-layers")].concat(Fi(i)).join(" ")},children:o}]})}}}},XE={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.title,i=a===void 0?null:a,o=r.classes,s=o===void 0?[]:o,l=r.attributes,u=l===void 0?{}:l,h=r.styles,d=h===void 0?{}:h;return bl({type:"counter",content:n},function(){return gr("beforeDOMElementCreation",{content:n,params:r}),PE({content:n.toString(),title:i,extra:{attributes:u,styles:d,classes:["".concat(I.cssPrefix,"-layers-counter")].concat(Fi(s))}})})}}}},JE={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.transform,i=a===void 0?$t:a,o=r.title,s=o===void 0?null:o,l=r.classes,u=l===void 0?[]:l,h=r.attributes,d=h===void 0?{}:h,p=r.styles,w=p===void 0?{}:p;return bl({type:"text",content:n},function(){return gr("beforeDOMElementCreation",{content:n,params:r}),_g({content:n,transform:M(M({},$t),i),title:s,extra:{attributes:d,styles:w,classes:["".concat(I.cssPrefix,"-layers-text")].concat(Fi(u))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var a=r.title,i=r.transform,o=r.extra,s=null,l=null;if(n1){var u=parseInt(getComputedStyle(n).fontSize,10),h=n.getBoundingClientRect();s=h.width/u,l=h.height/u}return I.autoA11y&&!a&&(o.attributes["aria-hidden"]="true"),Promise.resolve([n,_g({content:n.innerHTML,width:s,height:l,transform:i,title:a,extra:o,watchable:!0})])}}},QE=new RegExp('"',"ug"),xg=[1105920,1112319];function BE(e){var t=e.replace(QE,""),n=fE(t,0),r=n>=xg[0]&&n<=xg[1],a=t.length===2?t[0]===t[1]:!1;return{value:uf(a?t[0]:t),isSecondary:r||a}}function Pg(e,t){var n="".concat(Ub).concat(t.replace(":","-"));return new Promise(function(r,a){if(e.getAttribute(n)!==null)return r();var i=va(e.children),o=i.filter(function(E){return E.getAttribute(lf)===t})[0],s=Rn.getComputedStyle(e,t),l=s.getPropertyValue("font-family").match(Vb),u=s.getPropertyValue("font-weight"),h=s.getPropertyValue("content");if(o&&!l)return e.removeChild(o),r();if(l&&h!=="none"&&h!==""){var d=s.getPropertyValue("content"),p=~["Sharp"].indexOf(l[2])?de:ae,w=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?Pi[p][l[2].toLowerCase()]:qb[p][u],m=BE(d),_=m.value,b=m.isSecondary,v=l[0].startsWith("FontAwesome"),y=th(w,_),S=y;if(v){var x=yE(_);x.iconName&&x.prefix&&(y=x.iconName,w=x.prefix)}if(y&&!b&&(!o||o.getAttribute(Xd)!==w||o.getAttribute(Jd)!==S)){e.setAttribute(n,S),o&&e.removeChild(o);var D=HE(),k=D.extra;k.attributes[lf]=t,pf(y,w).then(function(E){var C=rh(M(M({},D),{},{icons:{main:E,mask:nh()},prefix:w,iconName:S,extra:k,watchable:!0})),O=oe.createElement("svg");t==="::before"?e.insertBefore(O,e.firstChild):e.appendChild(O),O.outerHTML=C.map(function(N){return Ui(N)}).join(` +`),e.removeAttribute(n),r()}).catch(a)}else r()}else r()})}function ZE(e){return Promise.all([Pg(e,"::before"),Pg(e,"::after")])}function eT(e){return e.parentNode!==document.head&&!~Hb.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(lf)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Ng(e){if(an)return new Promise(function(t,n){var r=va(e.querySelectorAll("*")).filter(eT).map(ZE),a=ah.begin("searchPseudoElements");E1(),Promise.all(r).then(function(){a(),mf(),t()}).catch(function(){a(),mf(),n()})})}var tT={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=Ng,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,a=r===void 0?oe:r;I.searchPseudoElements&&Ng(a)}}},Dg=!1,nT={mixout:function(){return{dom:{unwatch:function(){E1(),Dg=!0}}}},hooks:function(){return{bootstrap:function(){Tg(ff("mutationObserverCallbacks",{}))},noAuto:function(){FE()},watch:function(n){var r=n.observeMutationsRoot;Dg?mf():Tg(ff("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},kg=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,a){var i=a.toLowerCase().split("-"),o=i[0],s=i.slice(1).join("-");if(o&&s==="h")return r.flipX=!0,r;if(o&&s==="v")return r.flipY=!0,r;if(s=parseFloat(s),isNaN(s))return r;switch(o){case"grow":r.size=r.size+s;break;case"shrink":r.size=r.size-s;break;case"left":r.x=r.x-s;break;case"right":r.x=r.x+s;break;case"up":r.y=r.y-s;break;case"down":r.y=r.y+s;break;case"rotate":r.rotate=r.rotate+s;break}return r},n)},rT={mixout:function(){return{parse:{transform:function(n){return kg(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-transform");return a&&(n.transform=kg(a)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,a=n.transform,i=n.containerWidth,o=n.iconWidth,s={transform:"translate(".concat(i/2," 256)")},l="translate(".concat(a.x*32,", ").concat(a.y*32,") "),u="scale(".concat(a.size/16*(a.flipX?-1:1),", ").concat(a.size/16*(a.flipY?-1:1),") "),h="rotate(".concat(a.rotate," 0 0)"),d={transform:"".concat(l," ").concat(u," ").concat(h)},p={transform:"translate(".concat(o/2*-1," -256)")},w={outer:s,inner:d,path:p};return{tag:"g",attributes:M({},w.outer),children:[{tag:"g",attributes:M({},w.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:M(M({},r.icon.attributes),w.path)}]}]}}}},Fu={x:0,y:0,width:"100%",height:"100%"};function Ag(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function aT(e){return e.tag==="g"?e.children:[e]}var iT={hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-mask"),i=a?Sl(a.split(" ").map(function(o){return o.trim()})):nh();return i.prefix||(i.prefix=$n()),n.mask=i,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,a=n.attributes,i=n.main,o=n.mask,s=n.maskId,l=n.transform,u=i.width,h=i.icon,d=o.width,p=o.icon,w=rE({transform:l,containerWidth:d,iconWidth:u}),m={tag:"rect",attributes:M(M({},Fu),{},{fill:"white"})},_=h.children?{children:h.children.map(Ag)}:{},b={tag:"g",attributes:M({},w.inner),children:[Ag(M({tag:h.tag,attributes:M(M({},h.attributes),w.path)},_))]},v={tag:"g",attributes:M({},w.outer),children:[b]},y="mask-".concat(s||ki()),S="clip-".concat(s||ki()),x={tag:"mask",attributes:M(M({},Fu),{},{id:y,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[m,v]},D={tag:"defs",children:[{tag:"clipPath",attributes:{id:S},children:aT(p)},x]};return r.push(D,{tag:"rect",attributes:M({fill:"currentColor","clip-path":"url(#".concat(S,")"),mask:"url(#".concat(y,")")},Fu)}),{children:r,attributes:a}}}},oT={provides:function(t){var n=!1;Rn.matchMedia&&(n=Rn.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],a={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:M(M({},a),{},{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"})});var o=M(M({},i),{},{attributeName:"opacity"}),s={tag:"circle",attributes:M(M({},a),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||s.children.push({tag:"animate",attributes:M(M({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:M(M({},o),{},{values:"1;0;1;1;0;1;"})}),r.push(s),r.push({tag:"path",attributes:M(M({},a),{},{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:n?[]:[{tag:"animate",attributes:M(M({},o),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:M(M({},a),{},{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:M(M({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},sT={hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-symbol"),i=a===null?!1:a===""?!0:a;return n.symbol=i,n}}}},lT=[oE,KE,YE,XE,JE,tT,nT,rT,iT,oT,sT];SE(lT,{mixoutsTo:ot});ot.noAuto;ot.config;ot.library;ot.dom;var vf=ot.parse;ot.findIconDefinition;ot.toHtml;var uT=ot.icon;ot.layer;ot.text;ot.counter;var C1={exports:{}},cT="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",fT=cT,dT=fT;function O1(){}function x1(){}x1.resetWarningCache=O1;var hT=function(){function e(r,a,i,o,s,l){if(l!==dT){var u=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 u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:x1,resetWarningCache:O1};return n.PropTypes=n,n};C1.exports=hT();var pT=C1.exports;const K=nl(pT);function Rg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function wn(e){for(var t=1;t=0)&&(n[a]=e[a]);return n}function mT(e,t){if(e==null)return{};var n=gT(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yf(e){return vT(e)||yT(e)||wT(e)||_T()}function vT(e){if(Array.isArray(e))return wf(e)}function yT(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wT(e,t){if(e){if(typeof e=="string")return wf(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 wf(e,t)}}function wf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(l){return N1(e,l)}),a=Object.keys(t.attributes||{}).reduce(function(l,u){var h=t.attributes[u];switch(u){case"class":l.attrs.className=h,delete t.attributes.class;break;case"style":l.attrs.style=CT(h);break;default:u.indexOf("aria-")===0||u.indexOf("data-")===0?l.attrs[u.toLowerCase()]=h:l.attrs[P1(u)]=h}return l},{attrs:{}}),i=n.style,o=i===void 0?{}:i,s=mT(n,ET);return a.attrs.style=wn(wn({},a.attrs.style),o),e.apply(void 0,[t.tag,wn(wn({},a.attrs),s)].concat(yf(r)))}var D1=!1;try{D1=!0}catch{}function OT(){if(!D1&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function $g(e){if(e&&Hs(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(vf.icon)return vf.icon(e);if(e===null)return null;if(e&&Hs(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 Iu(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Kr({},e,t):{}}var Fe=Sn.forwardRef(function(e,t){var n=e.icon,r=e.mask,a=e.symbol,i=e.className,o=e.title,s=e.titleId,l=e.maskId,u=$g(n),h=Iu("classes",[].concat(yf(ST(e)),yf(i.split(" ")))),d=Iu("transform",typeof e.transform=="string"?vf.transform(e.transform):e.transform),p=Iu("mask",$g(r)),w=uT(u,wn(wn(wn(wn({},h),d),p),{},{symbol:a,title:o,titleId:s,maskId:l}));if(!w)return OT("Could not find icon",u),null;var m=w.abstract,_={ref:t};return Object.keys(e).forEach(function(b){Fe.defaultProps.hasOwnProperty(b)||(_[b]=e[b])}),xT(m[0],_)});Fe.displayName="FontAwesomeIcon";Fe.propTypes={beat:K.bool,border:K.bool,beatFade:K.bool,bounce:K.bool,className:K.string,fade:K.bool,flash:K.bool,mask:K.oneOfType([K.object,K.array,K.string]),maskId:K.string,fixedWidth:K.bool,inverse:K.bool,flip:K.oneOf([!0,!1,"horizontal","vertical","both"]),icon:K.oneOfType([K.object,K.array,K.string]),listItem:K.bool,pull:K.oneOf(["right","left"]),pulse:K.bool,rotation:K.oneOf([0,90,180,270]),shake:K.bool,size:K.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:K.bool,spinPulse:K.bool,spinReverse:K.bool,symbol:K.oneOfType([K.bool,K.string]),title:K.string,titleId:K.string,transform:K.oneOfType([K.string,K.object]),swapOpacity:K.bool};Fe.defaultProps={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};var xT=N1.bind(null,Sn.createElement),PT={prefix:"fas",iconName:"caret-right",icon:[256,512,[],"f0da","M246.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-128-128c-9.2-9.2-22.9-11.9-34.9-6.9s-19.8 16.6-19.8 29.6l0 256c0 12.9 7.8 24.6 19.8 29.6s25.7 2.2 34.9-6.9l128-128z"]},Lg={prefix:"fas",iconName:"square-check",icon:[448,512,[9745,9989,61510,"check-square"],"f14a","M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zM337 209L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},NT={prefix:"fas",iconName:"arrows-rotate",icon:[512,512,[128472,"refresh","sync"],"f021","M105.1 202.6c7.7-21.8 20.2-42.3 37.8-59.8c62.5-62.5 163.8-62.5 226.3 0L386.3 160H336c-17.7 0-32 14.3-32 32s14.3 32 32 32H463.5c0 0 0 0 0 0h.4c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32s-32 14.3-32 32v51.2L414.4 97.6c-87.5-87.5-229.3-87.5-316.8 0C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5zM39 289.3c-5 1.5-9.8 4.2-13.7 8.2c-4 4-6.7 8.8-8.1 14c-.3 1.2-.6 2.5-.8 3.8c-.3 1.7-.4 3.4-.4 5.1V448c0 17.7 14.3 32 32 32s32-14.3 32-32V396.9l17.6 17.5 0 0c87.5 87.4 229.3 87.4 316.7 0c24.4-24.4 42.1-53.1 52.9-83.7c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.5 62.5-163.8 62.5-226.3 0l-.1-.1L125.6 352H176c17.7 0 32-14.3 32-32s-14.3-32-32-32H48.4c-1.6 0-3.2 .1-4.8 .3s-3.1 .5-4.6 1z"]},Mg={prefix:"fas",iconName:"square",icon:[448,512,[9632,9723,9724,61590],"f0c8","M0 96C0 60.7 28.7 32 64 32H384c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96z"]},DT={prefix:"fas",iconName:"circle-question",icon:[512,512,[62108,"question-circle"],"f059","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM169.8 165.3c7.9-22.3 29.1-37.3 52.8-37.3h58.3c34.9 0 63.1 28.3 63.1 63.1c0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6c-13.3 0-24-10.7-24-24V250.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1c0-8.4-6.8-15.1-15.1-15.1H222.6c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},kT={prefix:"fas",iconName:"floppy-disk",icon:[448,512,[128190,128426,"save"],"f0c7","M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V173.3c0-17-6.7-33.3-18.7-45.3L352 50.7C340 38.7 323.7 32 306.7 32H64zm0 96c0-17.7 14.3-32 32-32H288c17.7 0 32 14.3 32 32v64c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V128zM224 288a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"]},AT={prefix:"fas",iconName:"caret-down",icon:[320,512,[],"f0d7","M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"]},RT={prefix:"fas",iconName:"arrow-right-arrow-left",icon:[448,512,[8644,"exchange"],"f0ec","M438.6 150.6c12.5-12.5 12.5-32.8 0-45.3l-96-96c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.7 96 32 96C14.3 96 0 110.3 0 128s14.3 32 32 32l306.7 0-41.4 41.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l96-96zm-333.3 352c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 416 416 416c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0 41.4-41.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-96 96c-12.5 12.5-12.5 32.8 0 45.3l96 96z"]},$T=RT,LT={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},MT={prefix:"fas",iconName:"x",icon:[384,512,[120],"58","M376.6 84.5c11.3-13.6 9.5-33.8-4.1-45.1s-33.8-9.5-45.1 4.1L192 206 56.6 43.5C45.3 29.9 25.1 28.1 11.5 39.4S-3.9 70.9 7.4 84.5L150.3 256 7.4 427.5c-11.3 13.6-9.5 33.8 4.1 45.1s33.8 9.5 45.1-4.1L192 306 327.4 468.5c11.3 13.6 31.5 15.4 45.1 4.1s15.4-31.5 4.1-45.1L233.7 256 376.6 84.5z"]};const jT="_headerDiagnosticsBtnContainer_1ogb6_1",FT="_taggleBtn_1ogb6_12",IT="_toggleBtnInnerOn_1ogb6_26",UT="_toggleBtnInnerOff_1ogb6_27",zT="_faIcon_1ogb6_48",Pr={headerDiagnosticsBtnContainer:jT,taggleBtn:FT,toggleBtnInnerOn:IT,toggleBtnInnerOff:UT,faIcon:zT};function HT(){const{panelState:e,setPanelState:t,setViewInLogPanel:n}=P.useContext(it);function r(){t(a=>{const i={...a},o=!i.diagnostics.show;i.diagnostics.show=o;const s=localStorage.getItem("appSetting"),l=JSON.parse(s);return l.diagnosticsPanelShow=o,localStorage.setItem("appSetting",JSON.stringify(l)),i}),n(a=>{const i={...a};return e.diagnostics.show&&(i.streamTable=!1,i.diagnosticsLogs=!0),e.diagnostics.show||(i.streamTable=!0,i.diagnosticsLogs=!1),i})}return T.jsxs("div",{id:"headerDiagnosticsBtn",className:`header_each_btn ${Pr.headerDiagnosticsBtnContainer}`,onClick:r,children:[T.jsx("span",{className:Pr.taggleBtn,children:T.jsx("span",{className:e.diagnostics.show?Pr.toggleBtnInnerOn:Pr.toggleBtnInnerOff,children:e.diagnostics.show?T.jsx(Fe,{icon:LT,className:Pr.faIcon}):T.jsx(Fe,{icon:MT,className:Pr.faIcon})})}),T.jsx("p",{children:"Diagnostics"})]})}const WT="_headerLeftMainContainer_1bzdp_1",GT="_headerLogoContainer_1bzdp_8",VT="_headerLogo_1bzdp_8",qT="_headerLogoText_1bzdp_21",Lo={headerLeftMainContainer:WT,headerLogoContainer:GT,headerLogo:VT,headerLogoText:qT},KT="/assets/idaes-logo-4b9fada6.png";function YT(){return T.jsxs("div",{className:Lo.headerLeftMainContainer,children:[T.jsxs("div",{id:"headerLogoContainer",className:`headerLogoContainer ${Lo.headerLogoContainer}`,children:[T.jsx("img",{src:KT,alt:"idaes logo for header component",id:"headerLogo",className:`${Lo.headerLogo}`}),T.jsx("p",{id:"headerLogoText",className:`${Lo.headerLogoText}`,children:"IDAES"})]}),T.jsx("div",{children:T.jsx(HT,{})})]})}const XT="_header_flowsheet_name_3hhh9_1",JT={header_flowsheet_name:XT};function QT(){const{fv_id:e}=P.useContext(it);return T.jsx("p",{id:"flowsheet_name_title",className:`${JT.header_flowsheet_name}`,children:e||"Name not found"})}function BT(){return T.jsxs("li",{id:"refresh_btn",className:"header_each_btn",children:[T.jsx(Fe,{icon:NT,className:"mr-sm"}),"Refresh"]})}function ZT(){return T.jsxs("li",{id:"save_btn",className:"header_each_btn",children:[T.jsx(Fe,{icon:kT,className:"mr-sm"}),"Save"]})}const eC="_link_5oxur_1",tC={link:eC};function nC(){return T.jsxs("li",{id:"help_btn",className:"header_each_btn",children:[T.jsx(Fe,{icon:DT,className:"mr-sm"}),T.jsx("a",{href:"https://idaes-pse.readthedocs.io/en/latest/tutorials/getting_started/index.html",target:"_blank",className:`${tC.link}`,children:"Help"})]})}function rC(){function e(){["mosaicLayout","layout","diagnosticsPanelParams"].forEach(n=>{localStorage.removeItem(n)}),window.location.reload()}return T.jsxs("li",{id:"save_btn",className:"header_each_btn",onClick:()=>{e()},children:[T.jsx(Fe,{icon:$T,className:"mr-sm"}),"Reset Layout"]})}const aC="_header_fn_btn_wrapper_ul_18i4g_1",iC={header_fn_btn_wrapper_ul:aC};function oC(){return T.jsxs("ul",{className:`${iC.header_fn_btn_wrapper_ul}`,children:[T.jsx(BT,{}),T.jsx(ZT,{}),T.jsx(rC,{}),T.jsx(nC,{})]})}const sC="_header_container_1gczp_1",lC={header_container:sC};function uC(){return P.useContext(it),T.jsxs("header",{id:"header",className:`row ${lC.header_container}`,children:[T.jsx(YT,{}),T.jsx(QT,{}),T.jsx(oC,{})]})}const _f={attrs:{g:{},text:{display:"block","font-size":"7","text-anchor":"left"},rect:{width:"2000",height:"2000",fill:"white",rx:0,ry:0,"fill-opacity":"1"},tspan:{fill:"white",dy:10}}},Sf={attrs:{text:{display:"none"},rect:{"fill-opacity":"0"}}},Ws=0,jg=1;class cC{constructor(t){z(this,"_app");z(this,"joint");z(this,"_originalLinkStroke");z(this,"_originalLinkStrokeWidth");z(this,"_highlightLinkStroke");z(this,"_highlightLinkStrokeWidth");z(this,"_graph");z(this,"_paper");z(this,"_paperScroller");z(this,"_selection");this._app=t;let n=joint.shapes.standard,r=800,a=800,i=1;this._originalLinkStroke="#979797",this._originalLinkStrokeWidth=2,this._highlightLinkStroke="#0B79BD",this._highlightLinkStrokeWidth=4,this._graph=new joint.dia.Graph([],{cellNamespace:{standard:n}}),this._paper=new joint.dia.Paper({model:this._graph,cellViewNamespace:{standard:n},width:r,height:a,gridSize:i,drawGrid:!1,interactive:!0}),this._paperScroller=new joint.ui.PaperScroller({padding:100,paper:this._paper,autoResizePaper:!0,scrollWhileDragging:!0,baseWidth:10,baseHeight:10,cursor:"grab"}),this._selection=new joint.ui.Selection({paper:this._paper}),this._selection.removeHandle("remove"),this._selection.removeHandle("rotate"),this._selection.removeHandle("resize"),self=this,document.getElementById("fv").append(self._paperScroller.render().el),self.preSetupRegisterEvents()}get graph(){return this._graph}set graph(t){this._graph.fromJSON(t)}get paper(){return self._paper}get paperScroller(){return self._paperScroller}get selection(){return self._selection}translate_for_angle(t){return{0:[0,5],90:[38,-35],180:[0,-72],270:[-38,-34]}[t]}preSetupRegisterEvents(){this._graph.on("change:position change:angle change:vertices",()=>{this._app.graphChanged()});let t=document.getElementById("fv");t||console.error("idaes canvas is not found");const n=document.querySelector("#stream-table-data");t.addEventListener("HighlightStream",r=>{const a=t.querySelector(`[model-id=${r.detail.streamId}]`);a&&a.dispatchEvent(new Event("HighlightStream"))}),t.addEventListener("RemoveHighlightStream",r=>{const a=t.querySelector(`[model-id=${r.detail.streamId}]`);a&&a.dispatchEvent(new Event("RemoveHighlightStream"))}),self._paper.on("blank:pointerdown",self._selection.startSelecting),self._paper.on("element:pointerup",function(r,a){console.log("work"),(a.shiftKey||a.metaKey)&&self._selection.collection.add(r.model)}),self._selection.on("selection-box:pointerdown",function(r,a){(a.shiftKey||a.metaKey)&&self._selection.collection.remove(r.model)}),self._paper.on("element:contextmenu",function(r,a){r.model.rotate(90);const i=r.model.angle(),o=self.translate_for_angle(i,0,0);o===void 0?console.error(`Angle of unit model must be either 0, 90, 180, or 270. Angle is ${i}`):r.model.attr("label/transform",`translate(${o[0]}, ${o[1]}) rotate(-${i})`)}),self._paper.on("link:mouseenter",function(r){let a=document.querySelector("#stream-table-data"),i=document.querySelector("#fv");if(!a||!i)return;let o=new joint.linkTools.Vertices({focusOpacity:.5,redundancyRemoval:!0,snapRadius:20,vertexAdding:!0}),s=new joint.linkTools.Segments,l=new joint.dia.ToolsView({tools:[o,s]});r.addTools(l),r.showTools();const u=new CustomEvent("HighlightStream",{detail:{streamId:r.model.id}});i.dispatchEvent(u),a.dispatchEvent(u)}),self._paper.on("link:mouseleave",function(r){r.hideTools();const a=new CustomEvent("RemoveHighlightStream",{detail:{streamId:r.model.id}});t&&t.dispatchEvent(a),n&&n.dispatchEvent(a)}),self._paper.on("link:contextmenu",function(r,a){r.model.label(Ws).attrs.text.display==="none"?r.model.label(Ws,_f):r.model.label(0,Sf)})}zoomToFit(t=30){this._paperScroller.zoomToFit({padding:t})}postSetupRegisterEvents(){this.zoomToFit(),this._graph.getLinks().forEach(t=>{let n=t.findView(this._paper);n.el.addEventListener("HighlightStream",()=>{n.model.attr({line:{stroke:this._highlightLinkStroke,"stroke-width":this._highlightLinkStrokeWidth}})}),n.el.addEventListener("RemoveHighlightStream",()=>{n.model.attr({line:{stroke:this._originalLinkStroke,"stroke-width":this._originalLinkStrokeWidth}})})})}reorderLabel(t){let n=null,r=null;if(t.cells.forEach((i,o)=>{i.id.includes("liq")&&(n=o),i.id.includes("vap")&&(r=o)}),!n||!r)return;const a=t.cells[n];t.cells[n]=t.cells[r],t.cells[r]=a,t.cells[n]}setup(t){const n="/assets/image/flowsheet_icons/";t.cells.reverse(),t.cells.forEach(r=>{if(r.type==="standard.Image"){let a=n+r.attrs.image.xlinkHref.match(/([^\/]+\.svg)$/)[0];r.attrs.image={...r.attrs.image,xlinkHref:a}}r.labels&&(r.z=1e3,r.labels[0])}),this.reorderLabel(t),this._graph.fromJSON(t),this.postSetupRegisterEvents()}}class fC{constructor(t){z(this,"_model");this._model=t}get model(){return this._model}set model(t){this._model=t}findCellIndex(t,n){for(let r=0;r{const o=i.getEndAnchor("source"),s=i.getEndAnchor("target"),l=new g.Point(o.x+t.source.x,o.y+t.source.y),u=new g.Point(s.x+t.destination.x,s.y+t.destination.y),h=i.getEndView("source").model.angle(),d=i.getEndView("target").model.angle(),p=h%180===0?1:-1,w=d%180===0?1:-1,m=l.rotate(o,p*h),_=u.rotate(s,w*d);return joint.routers.manhattan([m,...r,_],a,i)}}processRoutingConfig(){const t=this._model.routing_config;for(let n in t){const r=this.findCellIndex(n,"standard.Link");let a=t[n].cell_config.gap,i=this.routerGapFnFactory(a);this._model.cells[r].router=i}return this._model.cells.map(n=>{if(n.labels&&n.labels[1].position)return n.labels.reverse(),n}),this._model}}let dC=class{constructor(t,n,r){z(this,"_app");z(this,"UNFIXED","unfixed");z(this,"FIXED","fixed");z(this,"PARAMETER","parameter");z(this,"EXPRESSION","expression");z(this,"highlightFn");z(this,"removeHighlightFn");z(this,"gridCellMouseEnterFn");z(this,"gridCellMouseLeaveFn");z(this,"existing_var_types");z(this,"_gridOptions");z(this,"viewInLogPanel");this._app=t,this.viewInLogPanel=r,this.defineTableBrushingFns(),this.initTable(n),this.existing_var_types=new Set}initTable(t){this.clearTable(),this.emptyVarTypesPanel(),this.fillTable(t),this.setupEvents()}clearTable(){const t=document.querySelector("#stream-table-data");t&&(t.innerHTML="")}emptyVarTypesPanel(){this.existing_var_types=new Set;const t=document.querySelector("#existing-variable-types");t.innerHTML=""}fillVarTypesPanel(){const t=document.querySelector("#existing-variable-types"),n="streamtable-vartype-element";if(this.existing_var_types.has(this.FIXED)||this.existing_var_types.has(this.PARAMETER)||this.existing_var_types.has(this.EXPRESSION)){const r=document.createElement("p");r.innerHTML="Annotated Variable Types:",r.className=n,t.appendChild(r)}this.existing_var_types.forEach(r=>{switch(r){case this.UNFIXED:console.debug("Unfixed variables don't have a visual indicator");break;case this.FIXED:case this.PARAMETER:case this.EXPRESSION:const a=document.createElement("span");a.className=n;const i=document.createElement("span"),o=document.createElement("span");o.className="streamtable-vartype-text",i.className=`streamtable-vartype-${r}`,i.title=r,o.innerHTML=r,a.appendChild(i),a.appendChild(o),t.appendChild(a);break;default:console.warn("Couldn't identify Variable type")}})}fillTable(t){let n=t.model.stream_table;const r=document.querySelector("#hide-fields-list");r&&(r.innerHTML="");let a=n.columns,i=[];for(let w in a){let m=a[w];if(m!==""&&m!=="Units"&&!m.includes("_vartype"))if(m==="Variable")i.push({headerName:m,field:m,filter:"agTextColumnFilter",sortable:!0,resizable:!0,pinned:"left",cellRenderer:_=>''+_.value+""});else{i.push({headerName:m,field:m,filter:"agTextColumnFilter",sortable:!0,resizable:!0,cellRenderer:v=>''+v.value+""});let _=document.createElement("li"),b=document.createElement("div");b.className="checkbox",b.innerHTML=` + + `,_.appendChild(b),r.appendChild(_)}}let o=n.index,s=n.data,l=[],u="Variable";for(let w in o){let m={},_=s[w];for(let b in a)if(a[b]==="Units")_[b]&&_[b].html?m[u]=m[u]+''+_[b].html+"":m[u]=m[u]+'';else if(a[b]==="Variable")m[a[b]]=_[b];else{var[h,d]=_[b];let v="";switch(d){case this.UNFIXED:this.existing_var_types.add(d);break;case this.FIXED:case this.PARAMETER:case this.EXPRESSION:this.existing_var_types.add(d),v=``;break;default:console.warn(`Couldn't identify Variable type: ${d}`)}m[a[b]]=v+''+h+""}l.push(m)}this.fillVarTypesPanel(),this._gridOptions={columnDefs:i,rowData:l,suppressColumnVirtualisation:!0},this._gridOptions.getRowStyle=function(w){if(w.node.rowIndex%2===0)return{background:"#f3f3f3"}};let p=document.querySelector("#stream-table-data");new agGrid.Grid(p,this._gridOptions),this._gridOptions.columnApi.autoSizeAllColumns()}defineTableBrushingFns(){let t=document.querySelector("#stream-table-data"),n=document.querySelector("#fv");!t||!n||!this.viewInLogPanel.streamTable||(this.highlightFn=r=>{let a=t.querySelectorAll(`[col-id=${r.detail.streamId}]`);a.forEach((i,o)=>{i.getAttribute("role")=="columnheader"?i.classList.add("link-streamtable-hover-columnheader"):o==a.length-1?i.classList.add("link-streamtable-hover-lastrow"):i.classList.add("link-streamtable-hover")})},this.removeHighlightFn=r=>{console.log("remove hight light"),t.querySelectorAll(`[col-id=${r.detail.streamId}]`).forEach(i=>{i.classList.remove("link-streamtable-hover-columnheader"),i.classList.remove("link-streamtable-hover-lastrow"),i.classList.remove("link-streamtable-hover")})},this.gridCellMouseEnterFn=r=>{const a=r.target.getAttribute("col-id");if(a){const i=new CustomEvent("HighlightStream",{detail:{streamId:a}});t.dispatchEvent(i),n.dispatchEvent(i)}},this.gridCellMouseLeaveFn=r=>{const a=r.target.getAttribute("col-id"),i=new CustomEvent("RemoveHighlightStream",{detail:{streamId:a}});t.dispatchEvent(i),n.dispatchEvent(i)})}registerTableBrushing(){let t=document.querySelector("#stream-table-data");document.querySelector("#fv");let n=document.querySelectorAll("[col-id]");t.removeEventListener("HighlightStream",this.highlightFn),t.removeEventListener("RemoveHighlightStream",this.removeHighlightFn),n.forEach(r=>{r.removeEventListener("mouseenter",this.gridCellMouseEnterFn),r.removeEventListener("mouseleave",this.gridCellMouseLeaveFn)}),t.addEventListener("HighlightStream",this.highlightFn),t.addEventListener("RemoveHighlightStream",this.removeHighlightFn),n.forEach(r=>{r.addEventListener("mouseenter",this.gridCellMouseEnterFn),r.addEventListener("mouseleave",this.gridCellMouseLeaveFn)})}setupEvents(){let n=document.querySelector("#hide-fields-list").querySelectorAll("input[type=checkbox]"),r=this;n.forEach(function(a){a.addEventListener("change",function(i){var l;i.preventDefault();let o=i.target,s=(l=o.parentElement)==null?void 0:l.querySelector("span");o.checked?(s.style.display="block",r._gridOptions.columnApi.setColumnVisible(o.id,!0),r.registerTableBrushing()):(s.style.display="none",r._gridOptions.columnApi.setColumnVisible(o.id,!1))})}),this.registerTableBrushing()}};class hC{constructor(t,n,r,a,i,o,s){z(this,"_app");z(this,"_paper");z(this,"_stream_table");z(this,"flowsheetId");z(this,"getFSUrl");z(this,"putFSUrl");z(this,"isFvShow");z(this,"zoomRate");z(this,"toggleStreamNameBtn");z(this,"toggleLabelsBtn");z(this,"zoomInBtn");z(this,"zoomOutBtn");z(this,"zoomFitBtn");z(this,"zoomInHandler");z(this,"zoomOutHandler");z(this,"zoomFitHandler");this._app=t,this._paper=n,this._stream_table=r,this.flowsheetId=a,this.getFSUrl=i,this.putFSUrl=o,this.isFvShow=s,this.zoomRate=.2,this.zoomInHandler=void 0,this.zoomOutHandler=void 0,this.zoomFitHandler=void 0,this.registerEventExportFlowsheetToPng(),this.registerEventExportFlowsheetToSvg(),this.registerEventRefresh(this.getFSUrl,this.putFSUrl),this.registerEventSave(this.putFSUrl),this.zoomInBtn=document.querySelector("#zoom-in-btn"),this.zoomOutBtn=document.querySelector("#zoom-out-btn"),this.zoomFitBtn=document.querySelector("#zoom-to-fit"),s&&(this.toggleStreamNameBtn=document.querySelector("#stream-names-toggle"),this.toggleStreamNameBtn&&this.registerToggleStreamNamesEvent(this.toggleStreamNameBtn),this.toggleLabelsBtn=document.querySelector("#show-label-toggle"),this.toggleLabelsBtn&&this.registerEventToggleLabel(this.toggleLabelsBtn),this.zoomInBtn&&this.zoomOutBtn&&this.zoomFitBtn&&this.registerZoomEvent(this.zoomInBtn,this.zoomOutBtn,this.zoomFitBtn))}registerZoomEvent(t,n,r){this.zoomInHandler=()=>this.zoomInEvent(this._paper.paperScroller,this.zoomRate),this.zoomOutHandler=()=>this.zoomOutEvent(this._paper.paperScroller,this.zoomRate),this.zoomFitHandler=()=>this.zoomFitEvent(),t.addEventListener("click",this.zoomInHandler),n.addEventListener("click",this.zoomOutHandler),r.addEventListener("click",this.zoomFitHandler)}zoomInEvent(t,n){t.zoom(n,{max:100})}zoomOutEvent(t,n){t.zoom(-n,{min:.01})}zoomFitEvent(){this._paper.zoomToFit()}registerToggleStreamNamesEvent(t){t.addEventListener("click",()=>{t.getAttribute("data-toggle")==="true"?this._paper._graph.getLinks().forEach(function(r){r.label(jg,Sf)}):this._paper._graph.getLinks().forEach(function(r){r.label(jg,_f)})})}registerEventExportFlowsheetToPng(){const t=document.querySelector("#headerExportImageBtn");document.querySelector("#headerExportSvgBtn"),t.addEventListener("click",()=>{let n=this._paper.paper;const r=this.flowsheetId;n.hideTools(),n.toPNG(function(a){new joint.ui.Lightbox({image:a,downloadable:!0,fileName:r.concat(".png")}).open()},{scale:2,pixelRatio:2,preserveDimensions:!0,convertImagesToDataUris:!0,useComputedStyles:!0,stylesheet:".scalable * { vector-effect: non-scaling-stroke }"})})}registerEventExportFlowsheetToSvg(){document.querySelector("#headerExportSvgBtn").addEventListener("click",()=>{let n=this._paper.paper;const r=this.flowsheetId;n.hideTools(),n.toSVG(a=>{const i=new Blob([a],{type:"image/svg+xml;charset=utf-8"}),o=URL.createObjectURL(i);new joint.ui.Lightbox({image:o,downloadable:!0,fileName:r.concat(".svg")}).open()},{scale:2,pixelRatio:2,preserveDimensions:!0,convertImagesToDataUris:!0,useComputedStyles:!0,stylesheet:".scalable * { vector-effect: non-scaling-stroke }"})})}registerEventToggleLabel(t){t.addEventListener("click",()=>{t.getAttribute("data-toggle")=="true"?this._paper._graph.getLinks().forEach(function(r){r.label(Ws,_f)}):this._paper._graph.getLinks().forEach(function(r){r.label(Ws,Sf)})})}registerEventRefresh(t,n){document.querySelector("#refresh_btn").addEventListener("click",()=>{this._app.refreshModel(t,n,this._paper)})}registerEventSave(t){document.querySelector("#save_btn").addEventListener("click",()=>{this._app.saveModel(t,this._paper.graph)})}cleanUpEvent(){let t=document.getElementById("zoom-in-btn"),n=document.getElementById("zoom-out-btn"),r=document.getElementById("zoom-to-fit");if(t){let u=t.cloneNode(!0);t.parentNode.replaceChild(u,t)}if(n){let u=n.cloneNode(!0);n.parentNode.replaceChild(u,n)}if(r){let u=r.cloneNode(!0);r.parentNode.replaceChild(u,r)}let a=document.getElementById("flowsheet_component_header_dropdown_container"),i=document.getElementById("headerExportImageBtn"),o=document.getElementById("headerExportSvgBtn");if(i){let u=i.cloneNode(!0);a?a.replaceChild(u,i):console.log("error no parent nodes")}if(o){let u=o.cloneNode(!0);a?a.replaceChild(u,o):console.log("error download svg btn replacement failed, in toolbar, parent not found!")}let s=document.getElementById("save_btn");if(s){let u=s.cloneNode(!0);s.parentNode?s.parentNode.replaceChild(u,s):console.log("error save btn replacement error handle in toolbar, parent not found!")}let l=document.getElementById("refresh_btn");if(l){let u=l.cloneNode(!0);l.parentNode?l.parentNode.replaceChild(u,l):console.log("error refresh btn replacement error handle in toolbar, parent not found!")}}}const pC="_message_bar_container_8b2qe_1",gC="_messageBarTextContainer_8b2qe_9",mC="_messageBarShowUp_8b2qe_1",vC="_bg_successful_8b2qe_40",yC="_bg_error_8b2qe_44",os={message_bar_container:pC,messageBarTextContainer:gC,messageBarShowUp:mC,bg_successful:vC,bg_error:yC};function ir(e,t,n){let r="loading...";e=="refreshFS"&&t&&(r="Flowsheet refreshed."),e=="refreshFS"&&!t&&(r="Flowsheet refresh failed! Please reload the page!"),e=="userSave"&&t&&(r="Flowsheet saved."),e=="userSave"&&!t&&(r="Flowsheet save failed! Please restart the server!"),e=="diagnosticRefresh"&&t&&(r="Diagnostics refreshed."),e=="diagnosticRefresh"&&!t&&(r="Diagnostics refresh failed! Please restart the server!"),e=="diagnosticFNRunError"&&!t&&(n?r=n:r="Run diagnostics failed, please check your python terminal.");const a=` +
+

${r}

+
+ `,i=document.getElementById("messageBarContainer");i.innerHTML=a;const o=setTimeout(()=>{const s=document.getElementById("messageBarTextContainer");console.log(s),s?i.removeChild(s):console.log("Child node message bar is not found!"),clearTimeout(o)},3e3)}function k1(e,t){return function(){return e.apply(t,arguments)}}const{toString:wC}=Object.prototype,{getPrototypeOf:oh}=Object,El=(e=>t=>{const n=wC.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ft=e=>(e=e.toLowerCase(),t=>El(t)===e),Tl=e=>t=>typeof t===e,{isArray:ya}=Array,Ai=Tl("undefined");function _C(e){return e!==null&&!Ai(e)&&e.constructor!==null&&!Ai(e.constructor)&&mt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const A1=Ft("ArrayBuffer");function SC(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&A1(e.buffer),t}const bC=Tl("string"),mt=Tl("function"),R1=Tl("number"),Cl=e=>e!==null&&typeof e=="object",EC=e=>e===!0||e===!1,ss=e=>{if(El(e)!=="object")return!1;const t=oh(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},TC=Ft("Date"),CC=Ft("File"),OC=Ft("Blob"),xC=Ft("FileList"),PC=e=>Cl(e)&&mt(e.pipe),NC=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||mt(e.append)&&((t=El(e))==="formdata"||t==="object"&&mt(e.toString)&&e.toString()==="[object FormData]"))},DC=Ft("URLSearchParams"),kC=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zi(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),ya(e))for(r=0,a=e.length;r0;)if(a=n[r],t===a.toLowerCase())return a;return null}const L1=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),M1=e=>!Ai(e)&&e!==L1;function bf(){const{caseless:e}=M1(this)&&this||{},t={},n=(r,a)=>{const i=e&&$1(t,a)||a;ss(t[i])&&ss(r)?t[i]=bf(t[i],r):ss(r)?t[i]=bf({},r):ya(r)?t[i]=r.slice():t[i]=r};for(let r=0,a=arguments.length;r(zi(t,(a,i)=>{n&&mt(a)?e[i]=k1(a,n):e[i]=a},{allOwnKeys:r}),e),RC=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),$C=(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)},LC=(e,t,n,r)=>{let a,i,o;const s={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)o=a[i],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&oh(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},MC=(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},jC=e=>{if(!e)return null;if(ya(e))return e;let t=e.length;if(!R1(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},FC=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&oh(Uint8Array)),IC=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=r.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},UC=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},zC=Ft("HTMLFormElement"),HC=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),Fg=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),WC=Ft("RegExp"),j1=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};zi(n,(a,i)=>{let o;(o=t(a,i,e))!==!1&&(r[i]=o||a)}),Object.defineProperties(e,r)},GC=e=>{j1(e,(t,n)=>{if(mt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(mt(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+"'")})}})},VC=(e,t)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return ya(e)?r(e):r(String(e).split(t)),n},qC=()=>{},KC=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Uu="abcdefghijklmnopqrstuvwxyz",Ig="0123456789",F1={DIGIT:Ig,ALPHA:Uu,ALPHA_DIGIT:Uu+Uu.toUpperCase()+Ig},YC=(e=16,t=F1.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function XC(e){return!!(e&&mt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const JC=e=>{const t=new Array(10),n=(r,a)=>{if(Cl(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[a]=r;const i=ya(r)?[]:{};return zi(r,(o,s)=>{const l=n(o,a+1);!Ai(l)&&(i[s]=l)}),t[a]=void 0,i}}return r};return n(e,0)},QC=Ft("AsyncFunction"),BC=e=>e&&(Cl(e)||mt(e))&&mt(e.then)&&mt(e.catch),A={isArray:ya,isArrayBuffer:A1,isBuffer:_C,isFormData:NC,isArrayBufferView:SC,isString:bC,isNumber:R1,isBoolean:EC,isObject:Cl,isPlainObject:ss,isUndefined:Ai,isDate:TC,isFile:CC,isBlob:OC,isRegExp:WC,isFunction:mt,isStream:PC,isURLSearchParams:DC,isTypedArray:FC,isFileList:xC,forEach:zi,merge:bf,extend:AC,trim:kC,stripBOM:RC,inherits:$C,toFlatObject:LC,kindOf:El,kindOfTest:Ft,endsWith:MC,toArray:jC,forEachEntry:IC,matchAll:UC,isHTMLForm:zC,hasOwnProperty:Fg,hasOwnProp:Fg,reduceDescriptors:j1,freezeMethods:GC,toObjectSet:VC,toCamelCase:HC,noop:qC,toFiniteNumber:KC,findKey:$1,global:L1,isContextDefined:M1,ALPHABET:F1,generateString:YC,isSpecCompliantForm:XC,toJSONObject:JC,isAsyncFn:QC,isThenable:BC};function X(e,t,n,r,a){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),a&&(this.response=a)}A.inherits(X,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:A.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const I1=X.prototype,U1={};["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=>{U1[e]={value:e}});Object.defineProperties(X,U1);Object.defineProperty(I1,"isAxiosError",{value:!0});X.from=(e,t,n,r,a,i)=>{const o=Object.create(I1);return A.toFlatObject(e,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),X.call(o,e.message,t,n,r,a),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const ZC=null;function Ef(e){return A.isPlainObject(e)||A.isArray(e)}function z1(e){return A.endsWith(e,"[]")?e.slice(0,-2):e}function Ug(e,t,n){return e?e.concat(t).map(function(a,i){return a=z1(a),!n&&i?"["+a+"]":a}).join(n?".":""):t}function eO(e){return A.isArray(e)&&!e.some(Ef)}const tO=A.toFlatObject(A,{},null,function(t){return/^is[A-Z]/.test(t)});function Ol(e,t,n){if(!A.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=A.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,b){return!A.isUndefined(b[_])});const r=n.metaTokens,a=n.visitor||h,i=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&A.isSpecCompliantForm(t);if(!A.isFunction(a))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(A.isDate(m))return m.toISOString();if(!l&&A.isBlob(m))throw new X("Blob is not supported. Use a Buffer instead.");return A.isArrayBuffer(m)||A.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function h(m,_,b){let v=m;if(m&&!b&&typeof m=="object"){if(A.endsWith(_,"{}"))_=r?_:_.slice(0,-2),m=JSON.stringify(m);else if(A.isArray(m)&&eO(m)||(A.isFileList(m)||A.endsWith(_,"[]"))&&(v=A.toArray(m)))return _=z1(_),v.forEach(function(S,x){!(A.isUndefined(S)||S===null)&&t.append(o===!0?Ug([_],x,i):o===null?_:_+"[]",u(S))}),!1}return Ef(m)?!0:(t.append(Ug(b,_,i),u(m)),!1)}const d=[],p=Object.assign(tO,{defaultVisitor:h,convertValue:u,isVisitable:Ef});function w(m,_){if(!A.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+_.join("."));d.push(m),A.forEach(m,function(v,y){(!(A.isUndefined(v)||v===null)&&a.call(t,v,A.isString(y)?y.trim():y,_,p))===!0&&w(v,_?_.concat(y):[y])}),d.pop()}}if(!A.isObject(e))throw new TypeError("data must be an object");return w(e),t}function zg(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function sh(e,t){this._pairs=[],e&&Ol(e,this,t)}const H1=sh.prototype;H1.append=function(t,n){this._pairs.push([t,n])};H1.toString=function(t){const n=t?function(r){return t.call(this,r,zg)}:zg;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function nO(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function W1(e,t,n){if(!t)return e;const r=n&&n.encode||nO,a=n&&n.serialize;let i;if(a?i=a(t,n):i=A.isURLSearchParams(t)?t.toString():new sh(t,n).toString(r),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class rO{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){A.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Hg=rO,G1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},aO=typeof URLSearchParams<"u"?URLSearchParams:sh,iO=typeof FormData<"u"?FormData:null,oO=typeof Blob<"u"?Blob:null,sO={isBrowser:!0,classes:{URLSearchParams:aO,FormData:iO,Blob:oO},protocols:["http","https","file","blob","url","data"]},V1=typeof window<"u"&&typeof document<"u",lO=(e=>V1&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),uO=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),cO=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:V1,hasStandardBrowserEnv:lO,hasStandardBrowserWebWorkerEnv:uO},Symbol.toStringTag,{value:"Module"})),Lt={...cO,...sO};function fO(e,t){return Ol(e,new Lt.classes.URLSearchParams,Object.assign({visitor:function(n,r,a,i){return Lt.isNode&&A.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function dO(e){return A.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function hO(e){const t={},n=Object.keys(e);let r;const a=n.length;let i;for(r=0;r=n.length;return o=!o&&A.isArray(a)?a.length:o,l?(A.hasOwnProp(a,o)?a[o]=[a[o],r]:a[o]=r,!s):((!a[o]||!A.isObject(a[o]))&&(a[o]=[]),t(n,r,a[o],i)&&A.isArray(a[o])&&(a[o]=hO(a[o])),!s)}if(A.isFormData(e)&&A.isFunction(e.entries)){const n={};return A.forEachEntry(e,(r,a)=>{t(dO(r),a,n,0)}),n}return null}function pO(e,t,n){if(A.isString(e))try{return(t||JSON.parse)(e),A.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const lh={transitional:G1,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,i=A.isObject(t);if(i&&A.isHTMLForm(t)&&(t=new FormData(t)),A.isFormData(t))return a&&a?JSON.stringify(q1(t)):t;if(A.isArrayBuffer(t)||A.isBuffer(t)||A.isStream(t)||A.isFile(t)||A.isBlob(t))return t;if(A.isArrayBufferView(t))return t.buffer;if(A.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return fO(t,this.formSerializer).toString();if((s=A.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Ol(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||a?(n.setContentType("application/json",!1),pO(t)):t}],transformResponse:[function(t){const n=this.transitional||lh.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(t&&A.isString(t)&&(r&&!this.responseType||a)){const o=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?X.from(s,X.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Lt.classes.FormData,Blob:Lt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};A.forEach(["delete","get","head","post","put","patch"],e=>{lh.headers[e]={}});const uh=lh,gO=A.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"]),mO=e=>{const t={};let n,r,a;return e&&e.split(` +`).forEach(function(o){a=o.indexOf(":"),n=o.substring(0,a).trim().toLowerCase(),r=o.substring(a+1).trim(),!(!n||t[n]&&gO[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Wg=Symbol("internals");function Ma(e){return e&&String(e).trim().toLowerCase()}function ls(e){return e===!1||e==null?e:A.isArray(e)?e.map(ls):String(e)}function vO(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 yO=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function zu(e,t,n,r,a){if(A.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!A.isString(t)){if(A.isString(r))return t.indexOf(r)!==-1;if(A.isRegExp(r))return r.test(t)}}function wO(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function _O(e,t){const n=A.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(a,i,o){return this[r].call(this,t,a,i,o)},configurable:!0})})}class xl{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function i(s,l,u){const h=Ma(l);if(!h)throw new Error("header name must be a non-empty string");const d=A.findKey(a,h);(!d||a[d]===void 0||u===!0||u===void 0&&a[d]!==!1)&&(a[d||l]=ls(s))}const o=(s,l)=>A.forEach(s,(u,h)=>i(u,h,l));return A.isPlainObject(t)||t instanceof this.constructor?o(t,n):A.isString(t)&&(t=t.trim())&&!yO(t)?o(mO(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=Ma(t),t){const r=A.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return vO(a);if(A.isFunction(n))return n.call(this,a,r);if(A.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ma(t),t){const r=A.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||zu(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function i(o){if(o=Ma(o),o){const s=A.findKey(r,o);s&&(!n||zu(r,r[s],s,n))&&(delete r[s],a=!0)}}return A.isArray(t)?t.forEach(i):i(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const i=n[r];(!t||zu(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const n=this,r={};return A.forEach(this,(a,i)=>{const o=A.findKey(r,i);if(o){n[o]=ls(a),delete n[i];return}const s=t?wO(i):String(i).trim();s!==i&&delete n[i],n[s]=ls(a),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return A.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&A.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(` +`)}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(a=>r.set(a)),r}static accessor(t){const r=(this[Wg]=this[Wg]={accessors:{}}).accessors,a=this.prototype;function i(o){const s=Ma(o);r[s]||(_O(a,o),r[s]=!0)}return A.isArray(t)?t.forEach(i):i(t),this}}xl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);A.reduceDescriptors(xl.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});A.freezeMethods(xl);const Xt=xl;function Hu(e,t){const n=this||uh,r=t||n,a=Xt.from(r.headers);let i=r.data;return A.forEach(e,function(s){i=s.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function K1(e){return!!(e&&e.__CANCEL__)}function Hi(e,t,n){X.call(this,e??"canceled",X.ERR_CANCELED,t,n),this.name="CanceledError"}A.inherits(Hi,X,{__CANCEL__:!0});function SO(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new X("Request failed with status code "+n.status,[X.ERR_BAD_REQUEST,X.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const bO=Lt.hasStandardBrowserEnv?{write(e,t,n,r,a,i){const o=[e+"="+encodeURIComponent(t)];A.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),A.isString(r)&&o.push("path="+r),A.isString(a)&&o.push("domain="+a),i===!0&&o.push("secure"),document.cookie=o.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 EO(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function TO(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Y1(e,t){return e&&!EO(t)?TO(e,t):t}const CO=Lt.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function a(i){let o=i;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=a(window.location.href),function(o){const s=A.isString(o)?a(o):o;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function OO(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function xO(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,i=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),h=r[i];o||(o=u),n[a]=l,r[a]=u;let d=i,p=0;for(;d!==a;)p+=n[d++],d=d%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),u-o{const i=a.loaded,o=a.lengthComputable?a.total:void 0,s=i-n,l=r(s),u=i<=o;n=i;const h={loaded:i,total:o,progress:o?i/o:void 0,bytes:s,rate:l||void 0,estimated:l&&o&&u?(o-i)/l:void 0,event:a};h[t?"download":"upload"]=!0,e(h)}}const PO=typeof XMLHttpRequest<"u",NO=PO&&function(e){return new Promise(function(n,r){let a=e.data;const i=Xt.from(e.headers).normalize();let{responseType:o,withXSRFToken:s}=e,l;function u(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let h;if(A.isFormData(a)){if(Lt.hasStandardBrowserEnv||Lt.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((h=i.getContentType())!==!1){const[_,...b]=h?h.split(";").map(v=>v.trim()).filter(Boolean):[];i.setContentType([_||"multipart/form-data",...b].join("; "))}}let d=new XMLHttpRequest;if(e.auth){const _=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(_+":"+b))}const p=Y1(e.baseURL,e.url);d.open(e.method.toUpperCase(),W1(p,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function w(){if(!d)return;const _=Xt.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),v={data:!o||o==="text"||o==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:_,config:e,request:d};SO(function(S){n(S),u()},function(S){r(S),u()},v),d=null}if("onloadend"in d?d.onloadend=w:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(w)},d.onabort=function(){d&&(r(new X("Request aborted",X.ECONNABORTED,e,d)),d=null)},d.onerror=function(){r(new X("Network Error",X.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let b=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const v=e.transitional||G1;e.timeoutErrorMessage&&(b=e.timeoutErrorMessage),r(new X(b,v.clarifyTimeoutError?X.ETIMEDOUT:X.ECONNABORTED,e,d)),d=null},Lt.hasStandardBrowserEnv&&(s&&A.isFunction(s)&&(s=s(e)),s||s!==!1&&CO(p))){const _=e.xsrfHeaderName&&e.xsrfCookieName&&bO.read(e.xsrfCookieName);_&&i.set(e.xsrfHeaderName,_)}a===void 0&&i.setContentType(null),"setRequestHeader"in d&&A.forEach(i.toJSON(),function(b,v){d.setRequestHeader(v,b)}),A.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),o&&o!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",Gg(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",Gg(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=_=>{d&&(r(!_||_.type?new Hi(null,e,d):_),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const m=OO(p);if(m&&Lt.protocols.indexOf(m)===-1){r(new X("Unsupported protocol "+m+":",X.ERR_BAD_REQUEST,e));return}d.send(a||null)})},Tf={http:ZC,xhr:NO};A.forEach(Tf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Vg=e=>`- ${e}`,DO=e=>A.isFunction(e)||e===null||e===!1,X1={getAdapter:e=>{e=A.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let i=0;i`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?i.length>1?`since : +`+i.map(Vg).join(` +`):" "+Vg(i[0]):"as no adapter specified";throw new X("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:Tf};function Wu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Hi(null,e)}function qg(e){return Wu(e),e.headers=Xt.from(e.headers),e.data=Hu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),X1.getAdapter(e.adapter||uh.adapter)(e).then(function(r){return Wu(e),r.data=Hu.call(e,e.transformResponse,r),r.headers=Xt.from(r.headers),r},function(r){return K1(r)||(Wu(e),r&&r.response&&(r.response.data=Hu.call(e,e.transformResponse,r.response),r.response.headers=Xt.from(r.response.headers))),Promise.reject(r)})}const Kg=e=>e instanceof Xt?e.toJSON():e;function fa(e,t){t=t||{};const n={};function r(u,h,d){return A.isPlainObject(u)&&A.isPlainObject(h)?A.merge.call({caseless:d},u,h):A.isPlainObject(h)?A.merge({},h):A.isArray(h)?h.slice():h}function a(u,h,d){if(A.isUndefined(h)){if(!A.isUndefined(u))return r(void 0,u,d)}else return r(u,h,d)}function i(u,h){if(!A.isUndefined(h))return r(void 0,h)}function o(u,h){if(A.isUndefined(h)){if(!A.isUndefined(u))return r(void 0,u)}else return r(void 0,h)}function s(u,h,d){if(d in t)return r(u,h);if(d in e)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(u,h)=>a(Kg(u),Kg(h),!0)};return A.forEach(Object.keys(Object.assign({},e,t)),function(h){const d=l[h]||a,p=d(e[h],t[h],h);A.isUndefined(p)&&d!==s||(n[h]=p)}),n}const J1="1.6.5",ch={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ch[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Yg={};ch.transitional=function(t,n,r){function a(i,o){return"[Axios v"+J1+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,s)=>{if(t===!1)throw new X(a(o," has been removed"+(n?" in "+n:"")),X.ERR_DEPRECATED);return n&&!Yg[o]&&(Yg[o]=!0,console.warn(a(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,s):!0}};function kO(e,t,n){if(typeof e!="object")throw new X("options must be an object",X.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const i=r[a],o=t[i];if(o){const s=e[i],l=s===void 0||o(s,i,e);if(l!==!0)throw new X("option "+i+" must be "+l,X.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new X("Unknown option "+i,X.ERR_BAD_OPTION)}}const Cf={assertOptions:kO,validators:ch},un=Cf.validators;class Gs{constructor(t){this.defaults=t,this.interceptors={request:new Hg,response:new Hg}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=fa(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&Cf.assertOptions(r,{silentJSONParsing:un.transitional(un.boolean),forcedJSONParsing:un.transitional(un.boolean),clarifyTimeoutError:un.transitional(un.boolean)},!1),a!=null&&(A.isFunction(a)?n.paramsSerializer={serialize:a}:Cf.assertOptions(a,{encode:un.function,serialize:un.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&A.merge(i.common,i[n.method]);i&&A.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=Xt.concat(o,i);const s=[];let l=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(n)===!1||(l=l&&_.synchronous,s.unshift(_.fulfilled,_.rejected))});const u=[];this.interceptors.response.forEach(function(_){u.push(_.fulfilled,_.rejected)});let h,d=0,p;if(!l){const m=[qg.bind(this),void 0];for(m.unshift.apply(m,s),m.push.apply(m,u),p=m.length,h=Promise.resolve(n);d{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(s=>{r.subscribe(s),i=s}).then(a);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,s){r.reason||(r.reason=new Hi(i,o,s),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)}static source(){let t;return{token:new fh(function(a){t=a}),cancel:t}}}const AO=fh;function RO(e){return function(n){return e.apply(null,n)}}function $O(e){return A.isObject(e)&&e.isAxiosError===!0}const Of={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(Of).forEach(([e,t])=>{Of[t]=e});const LO=Of;function Q1(e){const t=new us(e),n=k1(us.prototype.request,t);return A.extend(n,us.prototype,t,{allOwnKeys:!0}),A.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return Q1(fa(e,a))},n}const me=Q1(uh);me.Axios=us;me.CanceledError=Hi;me.CancelToken=AO;me.isCancel=K1;me.VERSION=J1;me.toFormData=Ol;me.AxiosError=X;me.Cancel=me.CanceledError;me.all=function(t){return Promise.all(t)};me.spread=RO;me.isAxiosError=$O;me.mergeConfig=fa;me.AxiosHeaders=Xt;me.formToJSON=e=>q1(A.isHTMLForm(e)?new FormData(e):e);me.getAdapter=X1.getAdapter;me.HttpStatusCode=LO;me.default=me;const Zn=me;class MO{constructor(t,n,r,a,i,o){z(this,"flowsheetId");z(this,"isFvShow");z(this,"isStreamTableShow");z(this,"baseUrl");z(this,"getFSUrl");z(this,"putFSUrl");z(this,"model");z(this,"paper");z(this,"_is_graph_changed");z(this,"_save_time_interval_key");z(this,"_default_save_time_interval");z(this,"_save_time_interval");z(this,"stream_table");z(this,"toolbar");z(this,"cleanToolBarEvent");z(this,"viewInLogPanel");this.flowsheetId=t,this.isFvShow=r,this.isStreamTableShow=i,this.viewInLogPanel=o,this.baseUrl=`http://localhost:${n}`,this.getFSUrl=`/fs?id=${t}`,this.putFSUrl=`/fs?id=${t}`,this.model={},r&&(this.paper=new cC(this)),this._is_graph_changed=!1,this._save_time_interval_key="save_time_interval",this._default_save_time_interval=5e3,this._save_time_interval=this.getSaveTimeInterval(),this.setupGraphChangeChecker(this._save_time_interval,t),this.setGetFSUrl(),Zn.get(this.getFSUrl).then(s=>{this.model=s.data,r&&this.renderModel(this.model),i&&o.streamTable&&(this.stream_table=new dC(this,this.model,this.viewInLogPanel)),this.toolbar=new hC(this,this.paper,this.stream_table,this.flowsheetId,this.getFSUrl,this.putFSUrl,this.isFvShow),this.cleanToolBarEvent=this.toolbar.cleanUpEvent}).catch(s=>{console.log(s.message),console.log(s.response.status)}),this.fvExtraContentCleanUp()}setGetFSUrl(){let t=new URLSearchParams(window.location.search);if(!t.get("example"))return;let n=parseInt(t.get("example")),r=["example_1","example_2","example_3","example_4","example_5","example_6","example_7"];n<0||n>r.length||(this.getFSUrl=`/assets/testing_data/example_${n}.json`)}renderModel(t){const r=new fC(t).processRoutingConfig();this.paper.setup(r)}debug_removeFlowsheetPosition(t){let n=5;t.cells.forEach(r=>{n+=150,r.position&&(r.position={x:n,y:void 0})})}informUser(t,n){switch(t){case 0:console.log(n);break;case 1:console.warn(n);break;case 2:console.error(n);break;default:console.log(n)}}refreshModel(t,n,r){this.informUser(0,"Refresh: save current values from model");let a=r.graph,i=JSON.stringify(a.toJSON());Zn.put(n,i,{headers:{"Content-Type":"application/json"}}).then(()=>(this.informUser(0,"Refresh: load new model values from Python program"),Zn.get(t,{responseType:"json"}))).then(o=>{console.log(o.data);const s=o.data;let l;this.isStreamTableShow&&this.viewInLogPanel.streamTable&&(l=document.getElementById("hide-fields-list")),l&&(l.innerHTML="",this.renderModel(s),this.stream_table.initTable(s)),ir("refreshFS",!0)}).catch(o=>{ir("refreshFS",!1),o.response?this.informUser(2,"Fatal error: cannot save current model before refresh: "+o.response.data):this.informUser(2,"Fatal error: Could not retrieve new model from Python program: "+o.message)})}getSaveTimeInterval(){let t=`${this.baseUrl}/setting?setting_key=${this._save_time_interval_key}`,n=this._default_save_time_interval;return Zn.get(t,{headers:{"Content-Type":"application/json"}}).then(r=>{r.data.value!="None"?n=r.data.value:this.informUser(1,`Warning: save_time_interval was not set correctly. Default time value of + ${this._default_save_time_interval.toString()} + will be set.`)}).catch(r=>{this.informUser(2,"Fatal error: cannot get setting value: "+r)}),n}graphChanged(){this._is_graph_changed=!0}setupGraphChangeChecker(t,n){let r=this.putFSUrl;var a=setInterval(()=>{this._is_graph_changed&&(this.saveModel(r,this.paper.graph),this._is_graph_changed=!1)},t);return a}saveModel(t,n){let r=JSON.stringify(n.toJSON());Zn.put(t,r,{headers:{"Content-Type":"application/json"}}).then(a=>{console.log("saved"),this.informUser(0,"Saved new model values"),ir("userSave",!0)}).catch(a=>{ir("userSave",!1),this.informUser(2,"Fatal error: cannot save current model: "+a)})}fvExtraContentCleanUp(){let t=document.getElementById("fv");if(!(!t||t.childNodes.length<=1))for(t.childNodes[(t==null?void 0:t.childNodes.length)-1];t.firstChild!==t.lastChild;)t.removeChild(t.firstChild)}}var xf={},da={},B1={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",o=0;o-1&&e%1==0&&e-1&&e%1==0&&e<=cP}var ph=fP,dP=Wi,hP=ph,pP=Sr,gP="[object Arguments]",mP="[object Array]",vP="[object Boolean]",yP="[object Date]",wP="[object Error]",_P="[object Function]",SP="[object Map]",bP="[object Number]",EP="[object Object]",TP="[object RegExp]",CP="[object Set]",OP="[object String]",xP="[object WeakMap]",PP="[object ArrayBuffer]",NP="[object DataView]",DP="[object Float32Array]",kP="[object Float64Array]",AP="[object Int8Array]",RP="[object Int16Array]",$P="[object Int32Array]",LP="[object Uint8Array]",MP="[object Uint8ClampedArray]",jP="[object Uint16Array]",FP="[object Uint32Array]",re={};re[DP]=re[kP]=re[AP]=re[RP]=re[$P]=re[LP]=re[MP]=re[jP]=re[FP]=!0;re[gP]=re[mP]=re[PP]=re[vP]=re[NP]=re[yP]=re[wP]=re[_P]=re[SP]=re[bP]=re[EP]=re[TP]=re[CP]=re[OP]=re[xP]=!1;function IP(e){return pP(e)&&hP(e.length)&&!!re[dP(e)]}var UP=IP;function zP(e){return function(t){return e(t)}}var gh=zP,qs={exports:{}};qs.exports;(function(e,t){var n=Z1,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,o=i&&n.process,s=function(){try{var l=a&&a.require&&a.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(qs,qs.exports);var mh=qs.exports,HP=UP,WP=gh,tm=mh,nm=tm&&tm.isTypedArray,GP=nm?WP(nm):HP,vh=GP,VP=Kx,qP=Pl,KP=wt,YP=Nl,XP=hh,JP=vh,QP=Object.prototype,BP=QP.hasOwnProperty;function ZP(e,t){var n=KP(e),r=!n&&qP(e),a=!n&&!r&&YP(e),i=!n&&!r&&!a&&JP(e),o=n||r||a||i,s=o?VP(e.length,String):[],l=s.length;for(var u in e)(t||BP.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||XP(u,l)))&&s.push(u);return s}var iw=ZP,eN=Object.prototype;function tN(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||eN;return e===n}var Dl=tN;function nN(e,t){return function(n){return e(t(n))}}var ow=nN,rN=ow,aN=rN(Object.keys,Object),iN=aN,oN=Dl,sN=iN,lN=Object.prototype,uN=lN.hasOwnProperty;function cN(e){if(!oN(e))return sN(e);var t=[];for(var n in Object(e))uN.call(e,n)&&n!="constructor"&&t.push(n);return t}var sw=cN,fN=tw,dN=ph;function hN(e){return e!=null&&dN(e.length)&&!fN(e)}var kl=hN,pN=iw,gN=sw,mN=kl;function vN(e){return mN(e)?pN(e):gN(e)}var br=vN,yN=Vx,wN=br;function _N(e,t){return e&&yN(e,t,wN)}var SN=_N,bN=kl;function EN(e,t){return function(n,r){if(n==null)return n;if(!bN(n))return e(n,r);for(var a=n.length,i=t?a:-1,o=Object(n);(t?i--:++i-1}var KN=qN,YN=Al;function XN(e,t){var n=this.__data__,r=YN(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var JN=XN,QN=RN,BN=zN,ZN=GN,eD=KN,tD=JN;function _a(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ts))return!1;var u=i.get(e),h=i.get(t);if(u&&h)return u==t&&h==e;var d=-1,p=!0,w=n&zk?new jk:void 0;for(i.set(e,t),i.set(t,e);++d(t==null&&(t=e()),t)}function c$(e,t){return e.filter(n=>n!==t)}function f$(e,t){const n=new Set,r=i=>n.add(i);e.forEach(r),t.forEach(r);const a=[];return n.forEach(i=>a.push(i)),a}class d${enter(t){const n=this.entered.length,r=a=>this.isNodeInDocument(a)&&(!a.contains||a.contains(t));return this.entered=f$(this.entered.filter(r),[t]),n===0&&this.entered.length>0}leave(t){const n=this.entered.length;return this.entered=c$(this.entered.filter(this.isNodeInDocument),t),n>0&&this.entered.length===0}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class h${initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(t=>{Object.defineProperty(this.item,t,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${t}" until the drop event.`),null}})})}loadDataTransfer(t){if(t){const n={};Object.keys(this.config.exposeProperties).forEach(r=>{const a=this.config.exposeProperties[r];a!=null&&(n[r]={value:a(t,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,n)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(t,n){return n===t.getSourceId()}endDrag(){}constructor(t){this.config=t,this.item={},this.initializeExposedProperties()}}const Ow="__NATIVE_FILE__",xw="__NATIVE_URL__",Pw="__NATIVE_TEXT__",Nw="__NATIVE_HTML__",Om=Object.freeze(Object.defineProperty({__proto__:null,FILE:Ow,HTML:Nw,TEXT:Pw,URL:xw},Symbol.toStringTag,{value:"Module"}));function Ku(e,t,n){const r=t.reduce((a,i)=>a||e.getData(i),"");return r??n}const Rf={[Ow]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[Nw]:{exposeProperties:{html:(e,t)=>Ku(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[xw]:{exposeProperties:{urls:(e,t)=>Ku(e,t,"").split(` +`),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[Pw]:{exposeProperties:{text:(e,t)=>Ku(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function p$(e,t){const n=Rf[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new h$(n);return r.loadDataTransfer(t),r}function Yu(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(Rf).filter(n=>{const r=Rf[n];return r!=null&&r.matchesTypes?r.matchesTypes.some(a=>t.indexOf(a)>-1):!1})[0]||null}const g$=Cw(()=>/firefox/i.test(navigator.userAgent)),Dw=Cw(()=>!!window.safari);class xm{interpolate(t){const{xs:n,ys:r,c1s:a,c2s:i,c3s:o}=this;let s=n.length-1;if(t===n[s])return r[s];let l=0,u=o.length-1,h;for(;l<=u;){h=Math.floor(.5*(l+u));const w=n[h];if(wt)u=h-1;else return r[h]}s=Math.max(0,u);const d=t-n[s],p=d*d;return r[s]+a[s]*d+i[s]*p+o[s]*d*p}constructor(t,n){const{length:r}=t,a=[];for(let w=0;wt[w]{let k=new xm([0,.5,1],[l.y,l.y/h*m,l.y+m-h]).interpolate(p);return Dw()&&i&&(k+=(window.devicePixelRatio-1)*m),k},b=()=>new xm([0,.5,1],[l.x,l.x/u*w,l.x+w-u]).interpolate(d),{offsetX:v,offsetY:y}=a,S=v===0||v,x=y===0||y;return{x:S?v:b(),y:x?y:_()}}let _$=class{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var t;return!((t=this.globalContext)===null||t===void 0)&&t.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var t;return((t=this.optionsArgs)===null||t===void 0?void 0:t.rootElement)||this.window}constructor(t,n){this.ownerDocument=null,this.globalContext=t,this.optionsArgs=n}};function S$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pm(e){for(var t=1;t{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDragSource(t,n,r){this.sourceNodes.set(t,n),this.sourceNodeOptions.set(t,r);const a=o=>this.handleDragStart(o,t),i=o=>this.handleSelectStart(o);return n.setAttribute("draggable","true"),n.addEventListener("dragstart",a),n.addEventListener("selectstart",i),()=>{this.sourceNodes.delete(t),this.sourceNodeOptions.delete(t),n.removeEventListener("dragstart",a),n.removeEventListener("selectstart",i),n.setAttribute("draggable","false")}}connectDropTarget(t,n){const r=o=>this.handleDragEnter(o,t),a=o=>this.handleDragOver(o,t),i=o=>this.handleDrop(o,t);return n.addEventListener("dragenter",r),n.addEventListener("dragover",a),n.addEventListener("drop",i),()=>{n.removeEventListener("dragenter",r),n.removeEventListener("dragover",a),n.removeEventListener("drop",i)}}addEventListeners(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const t=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(t);return Pm({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const t=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(t);return Pm({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const t=this.monitor.getItemType();return Object.keys(Om).some(n=>Om[n]===t)}beginDragNativeItem(t,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=p$(t,n),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(t){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t;const n=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var r;return(r=this.rootElement)===null||r===void 0?void 0:r.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},n)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var t;(t=this.window)===null||t===void 0||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(t,n){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}handleDragEnter(t,n){this.dragEnterTargetIds.unshift(n)}handleDragOver(t,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}handleDrop(t,n){this.dropTargetIds.unshift(n)}constructor(t,n,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=a=>{const i=this.sourceNodes.get(a);return i&&kw(i)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=a=>!!(a&&this.document&&this.document.body&&this.document.body.contains(a)),this.endDragIfSourceWasRemovedFromDOM=()=>{const a=this.currentDragSourceNode;a==null||this.isNodeInDocument(a)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=a=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(a||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=a=>{if(a.defaultPrevented)return;const{dragStartSourceIds:i}=this;this.dragStartSourceIds=null;const o=jo(a);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(i||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:o});const{dataTransfer:s}=a,l=Yu(s);if(this.monitor.isDragging()){if(s&&typeof s.setDragImage=="function"){const h=this.monitor.getSourceId(),d=this.sourceNodes.get(h),p=this.sourcePreviewNodes.get(h)||d;if(p){const{anchorX:w,anchorY:m,offsetX:_,offsetY:b}=this.getCurrentSourcePreviewNodeOptions(),S=w$(d,p,o,{anchorX:w,anchorY:m},{offsetX:_,offsetY:b});s.setDragImage(p,S.x,S.y)}}try{s==null||s.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(a.target);const{captureDraggingState:u}=this.getCurrentSourcePreviewNodeOptions();u?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(l)this.beginDragNativeItem(l);else{if(s&&!s.types&&(a.target&&!a.target.hasAttribute||!a.target.hasAttribute("draggable")))return;a.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=a=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var i;(i=this.currentNativeSource)===null||i===void 0||i.loadDataTransfer(a.dataTransfer)}if(!this.enterLeaveCounter.enter(a.target)||this.monitor.isDragging())return;const{dataTransfer:s}=a,l=Yu(s);l&&this.beginDragNativeItem(l,s)},this.handleTopDragEnter=a=>{const{dragEnterTargetIds:i}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=a.altKey,i.length>0&&this.actions.hover(i,{clientOffset:jo(a)}),i.some(s=>this.monitor.canDropOnTarget(s))&&(a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=a=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var i;(i=this.currentNativeSource)===null||i===void 0||i.loadDataTransfer(a.dataTransfer)}},this.handleTopDragOver=a=>{const{dragOverTargetIds:i}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect="none");return}this.altKeyPressed=a.altKey,this.lastClientOffset=jo(a),this.scheduleHover(i),(i||[]).some(s=>this.monitor.canDropOnTarget(s))?(a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?a.preventDefault():(a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=a=>{this.isDraggingNativeItem()&&a.preventDefault(),this.enterLeaveCounter.leave(a.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=a=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var i;a.preventDefault(),(i=this.currentNativeSource)===null||i===void 0||i.loadDataTransfer(a.dataTransfer)}else Yu(a.dataTransfer)&&a.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=a=>{const{dropTargetIds:i}=this;this.dropTargetIds=[],this.actions.hover(i,{clientOffset:jo(a)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=a=>{const i=a.target;typeof i.dragDrop=="function"&&(i.tagName==="INPUT"||i.tagName==="SELECT"||i.tagName==="TEXTAREA"||i.isContentEditable||(a.preventDefault(),i.dragDrop()))},this.options=new _$(n,r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new d$(this.isNodeInDocument)}}const E$=function(t,n,r){return new b$(t,n,r)};function G(e,t,...n){if(T$()&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){let r;if(t===void 0)r=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let a=0;r=new Error(t.replace(/%s/g,function(){return n[a++]})),r.name="Invariant Violation"}throw r.framesToPop=1,r}}function T$(){return typeof process<"u"&&process.env.NODE_ENV==="production"}var Dn;(function(e){e.mouse="mouse",e.touch="touch",e.keyboard="keyboard"})(Dn||(Dn={}));class C${get delay(){var t;return(t=this.args.delay)!==null&&t!==void 0?t:0}get scrollAngleRanges(){return this.args.scrollAngleRanges}get getDropTargetElementsAtPoint(){return this.args.getDropTargetElementsAtPoint}get ignoreContextMenu(){var t;return(t=this.args.ignoreContextMenu)!==null&&t!==void 0?t:!1}get enableHoverOutsideTarget(){var t;return(t=this.args.enableHoverOutsideTarget)!==null&&t!==void 0?t:!1}get enableKeyboardEvents(){var t;return(t=this.args.enableKeyboardEvents)!==null&&t!==void 0?t:!1}get enableMouseEvents(){var t;return(t=this.args.enableMouseEvents)!==null&&t!==void 0?t:!1}get enableTouchEvents(){var t;return(t=this.args.enableTouchEvents)!==null&&t!==void 0?t:!0}get touchSlop(){return this.args.touchSlop||0}get delayTouchStart(){var t,n,r,a;return(a=(r=(t=this.args)===null||t===void 0?void 0:t.delayTouchStart)!==null&&r!==void 0?r:(n=this.args)===null||n===void 0?void 0:n.delay)!==null&&a!==void 0?a:0}get delayMouseStart(){var t,n,r,a;return(a=(r=(t=this.args)===null||t===void 0?void 0:t.delayMouseStart)!==null&&r!==void 0?r:(n=this.args)===null||n===void 0?void 0:n.delay)!==null&&a!==void 0?a:0}get window(){if(this.context&&this.context.window)return this.context.window;if(typeof window<"u")return window}get document(){var t;if(!((t=this.context)===null||t===void 0)&&t.document)return this.context.document;if(this.window)return this.window.document}get rootElement(){var t;return((t=this.args)===null||t===void 0?void 0:t.rootElement)||this.document}constructor(t,n){this.args=t,this.context=n}}function O$(e,t,n,r){return Math.sqrt(Math.pow(Math.abs(n-e),2)+Math.pow(Math.abs(r-t),2))}function x$(e,t,n,r,a){if(!a)return!1;const i=Math.atan2(r-t,n-e)*180/Math.PI+180;for(let o=0;o=s.start)&&(s.end==null||i<=s.end))return!0}return!1}const P$={Left:1,Right:2,Center:4},N$={Left:0,Center:1,Right:2};function Xu(e){return e.button===void 0||e.button===N$.Left}function D$(e){return e.buttons===void 0||(e.buttons&P$.Left)===0}function Aw(e){return!!e.targetTouches}const k$=1;function A$(e){const t=e.nodeType===k$?e:e.parentElement;if(!t)return;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function R$(e,t){if(e.targetTouches.length===1)return Ys(e.targetTouches[0]);if(t&&e.touches.length===1&&e.touches[0].target===t.target)return Ys(e.touches[0])}function Ys(e,t){return Aw(e)?R$(e,t):{x:e.clientX,y:e.clientY}}const Nm=(()=>{let e=!1;try{addEventListener("test",()=>{},Object.defineProperty({},"passive",{get(){return e=!0,!0}}))}catch{}return e})(),Fa={[Dn.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[Dn.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[Dn.keyboard]:{keydown:"keydown"}};class li{profile(){var t;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:((t=this.dragOverTargetIds)===null||t===void 0?void 0:t.length)||0}}get document(){return this.options.document}setup(){const t=this.options.rootElement;t&&(G(!li.isSetUp,"Cannot have two Touch backends at the same time."),li.isSetUp=!0,this.addEventListener(t,"start",this.getTopMoveStartHandler()),this.addEventListener(t,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(t,"move",this.handleTopMove),this.addEventListener(t,"move",this.handleTopMoveCapture,!0),this.addEventListener(t,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(t,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(t,"keydown",this.handleCancelOnEscape,!0))}teardown(){const t=this.options.rootElement;t&&(li.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(t,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(t,"start",this.handleTopMoveStart),this.removeEventListener(t,"move",this.handleTopMoveCapture,!0),this.removeEventListener(t,"move",this.handleTopMove),this.removeEventListener(t,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(t,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(t,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}addEventListener(t,n,r,a=!1){const i=Nm?{capture:a,passive:!1}:a;this.listenerTypes.forEach(function(o){const s=Fa[o][n];s&&t.addEventListener(s,r,i)})}removeEventListener(t,n,r,a=!1){const i=Nm?{capture:a,passive:!1}:a;this.listenerTypes.forEach(function(o){const s=Fa[o][n];s&&t.removeEventListener(s,r,i)})}connectDragSource(t,n){const r=this.handleMoveStart.bind(this,t);return this.sourceNodes.set(t,n),this.addEventListener(n,"start",r),()=>{this.sourceNodes.delete(t),this.removeEventListener(n,"start",r)}}connectDragPreview(t,n,r){return this.sourcePreviewNodeOptions.set(t,r),this.sourcePreviewNodes.set(t,n),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDropTarget(t,n){const r=this.options.rootElement;if(!this.document||!r)return()=>{};const a=i=>{if(!this.document||!r||!this.monitor.isDragging())return;let o;switch(i.type){case Fa.mouse.move:o={x:i.clientX,y:i.clientY};break;case Fa.touch.move:var s,l;o={x:((s=i.touches[0])===null||s===void 0?void 0:s.clientX)||0,y:((l=i.touches[0])===null||l===void 0?void 0:l.clientY)||0};break}const u=o!=null?this.document.elementFromPoint(o.x,o.y):void 0,h=u&&n.contains(u);if(u===n||h)return this.handleMove(i,t)};return this.addEventListener(this.document.body,"move",a),this.targetNodes.set(t,n),()=>{this.document&&(this.targetNodes.delete(t),this.removeEventListener(this.document.body,"move",a))}}getTopMoveStartHandler(){return!this.options.delayTouchStart&&!this.options.delayMouseStart?this.handleTopMoveStart:this.handleTopMoveStartDelay}installSourceNodeRemovalObserver(t){this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=t,this.draggedSourceNodeRemovalObserver=new MutationObserver(()=>{t&&!t.parentElement&&(this.resurrectSourceNode(),this.uninstallSourceNodeRemovalObserver())}),!(!t||!t.parentElement)&&this.draggedSourceNodeRemovalObserver.observe(t.parentElement,{childList:!0})}resurrectSourceNode(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}uninstallSourceNodeRemovalObserver(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}constructor(t,n,r){this.getSourceClientOffset=a=>{const i=this.sourceNodes.get(a);return i&&A$(i)},this.handleTopMoveStartCapture=a=>{Xu(a)&&(this.moveStartSourceIds=[])},this.handleMoveStart=a=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(a)},this.handleTopMoveStart=a=>{if(!Xu(a))return;const i=Ys(a);i&&(Aw(a)&&(this.lastTargetTouchFallback=a.targetTouches[0]),this._mouseClientOffset=i),this.waitingForDelay=!1},this.handleTopMoveStartDelay=a=>{if(!Xu(a))return;const i=a.type===Fa.touch.start?this.options.delayTouchStart:this.options.delayMouseStart;this.timeout=setTimeout(this.handleTopMoveStart.bind(this,a),i),this.waitingForDelay=!0},this.handleTopMoveCapture=()=>{this.dragOverTargetIds=[]},this.handleMove=(a,i)=>{this.dragOverTargetIds&&this.dragOverTargetIds.unshift(i)},this.handleTopMove=a=>{if(this.timeout&&clearTimeout(this.timeout),!this.document||this.waitingForDelay)return;const{moveStartSourceIds:i,dragOverTargetIds:o}=this,s=this.options.enableHoverOutsideTarget,l=Ys(a,this.lastTargetTouchFallback);if(!l)return;if(this._isScrolling||!this.monitor.isDragging()&&x$(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,l.x,l.y,this.options.scrollAngleRanges)){this._isScrolling=!0;return}if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty("x")&&i&&O$(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,l.x,l.y)>(this.options.touchSlop?this.options.touchSlop:0)&&(this.moveStartSourceIds=void 0,this.actions.beginDrag(i,{clientOffset:this._mouseClientOffset,getSourceClientOffset:this.getSourceClientOffset,publishSource:!1})),!this.monitor.isDragging())return;const u=this.sourceNodes.get(this.monitor.getSourceId());this.installSourceNodeRemovalObserver(u),this.actions.publishDragSource(),a.cancelable&&a.preventDefault();const h=(o||[]).map(m=>this.targetNodes.get(m)).filter(m=>!!m),d=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(l.x,l.y,h):this.document.elementsFromPoint(l.x,l.y),p=[];for(const m in d){if(!d.hasOwnProperty(m))continue;let _=d[m];for(_!=null&&p.push(_);_;)_=_.parentElement,_&&p.indexOf(_)===-1&&p.push(_)}const w=p.filter(m=>h.indexOf(m)>-1).map(m=>this._getDropTargetId(m)).filter(m=>!!m).filter((m,_,b)=>b.indexOf(m)===_);if(s)for(const m in this.targetNodes){const _=this.targetNodes.get(m);if(u&&_&&_.contains(u)&&w.indexOf(m)===-1){w.unshift(m);break}}w.reverse(),this.actions.hover(w,{clientOffset:l})},this._getDropTargetId=a=>{const i=this.targetNodes.keys();let o=i.next();for(;o.done===!1;){const s=o.value;if(a===this.targetNodes.get(s))return s;o=i.next()}},this.handleTopMoveEndCapture=a=>{if(this._isScrolling=!1,this.lastTargetTouchFallback=void 0,!!D$(a)){if(!this.monitor.isDragging()||this.monitor.didDrop()){this.moveStartSourceIds=void 0;return}a.cancelable&&a.preventDefault(),this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.drop(),this.actions.endDrag()}},this.handleCancelOnEscape=a=>{a.key==="Escape"&&this.monitor.isDragging()&&(this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.endDrag())},this.options=new C$(r,n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(Dn.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(Dn.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(Dn.keyboard)}}const $$=function(t,n={},r={}){return new li(t,n,r)};var Rw=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},W=(e,t,n)=>(Rw(e,t,"read from private field"),n?n.call(e):t.get(e)),ct=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Qn=(e,t,n,r)=>(Rw(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Bn,L$=class{constructor(){ct(this,Bn,void 0),this.register=e=>{W(this,Bn).push(e)},this.unregister=e=>{let t;for(;(t=W(this,Bn).indexOf(e))!==-1;)W(this,Bn).splice(t,1)},this.backendChanged=e=>{for(let t of W(this,Bn))t.backendChanged(e)},Qn(this,Bn,[])}};Bn=new WeakMap;var Je,Ya,Qe,zt,cn,$f,Lf,Mf,cs,fs,Xa,$w=class ds{constructor(t,n,r){if(ct(this,Je,void 0),ct(this,Ya,void 0),ct(this,Qe,void 0),ct(this,zt,void 0),ct(this,cn,void 0),ct(this,$f,(a,i,o)=>{if(!o.backend)throw new Error(`You must specify a 'backend' property in your Backend entry: ${JSON.stringify(o)}`);let s=o.backend(a,i,o.options),l=o.id,u=!o.id&&s&&s.constructor;if(u&&(l=s.constructor.name),l)u&&console.warn(`Deprecation notice: You are using a pipeline which doesn't include backends' 'id'. + This might be unsupported in the future, please specify 'id' explicitely for every backend.`);else throw new Error(`You must specify an 'id' property in your Backend entry: ${JSON.stringify(o)} + see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-5xx`);if(W(this,Qe)[l])throw new Error(`You must specify a unique 'id' property in your Backend entry: + ${JSON.stringify(o)} (conflicts with: ${JSON.stringify(W(this,Qe)[l])})`);return{id:l,instance:s,preview:o.preview??!1,transition:o.transition,skipDispatchOnTransition:o.skipDispatchOnTransition??!1}}),this.setup=()=>{if(!(typeof window>"u")){if(ds.isSetUp)throw new Error("Cannot have two MultiBackends at the same time.");ds.isSetUp=!0,W(this,Lf).call(this,window),W(this,Qe)[W(this,Je)].instance.setup()}},this.teardown=()=>{typeof window>"u"||(ds.isSetUp=!1,W(this,Mf).call(this,window),W(this,Qe)[W(this,Je)].instance.teardown())},this.connectDragSource=(a,i,o)=>W(this,Xa).call(this,"connectDragSource",a,i,o),this.connectDragPreview=(a,i,o)=>W(this,Xa).call(this,"connectDragPreview",a,i,o),this.connectDropTarget=(a,i,o)=>W(this,Xa).call(this,"connectDropTarget",a,i,o),this.profile=()=>W(this,Qe)[W(this,Je)].instance.profile(),this.previewEnabled=()=>W(this,Qe)[W(this,Je)].preview,this.previewsList=()=>W(this,Ya),this.backendsList=()=>W(this,zt),ct(this,Lf,a=>{W(this,zt).forEach(i=>{i.transition&&a.addEventListener(i.transition.event,W(this,cs))})}),ct(this,Mf,a=>{W(this,zt).forEach(i=>{i.transition&&a.removeEventListener(i.transition.event,W(this,cs))})}),ct(this,cs,a=>{var o;let i=W(this,Je);if(W(this,zt).some(s=>s.id!==W(this,Je)&&s.transition&&s.transition.check(a)?(Qn(this,Je,s.id),!0):!1),W(this,Je)!==i){W(this,Qe)[i].instance.teardown(),Object.keys(W(this,cn)).forEach(h=>{let d=W(this,cn)[h];d.unsubscribe(),d.unsubscribe=W(this,fs).call(this,d.func,...d.args)}),W(this,Ya).backendChanged(this);let s=W(this,Qe)[W(this,Je)];if(s.instance.setup(),s.skipDispatchOnTransition)return;let l=a.constructor,u=new l(a.type,a);(o=a.target)==null||o.dispatchEvent(u)}}),ct(this,fs,(a,i,o,s)=>W(this,Qe)[W(this,Je)].instance[a](i,o,s)),ct(this,Xa,(a,i,o,s)=>{let l=`${a}_${i}`,u=W(this,fs).call(this,a,i,o,s);return W(this,cn)[l]={func:a,args:[i,o,s],unsubscribe:u},()=>{W(this,cn)[l].unsubscribe(),delete W(this,cn)[l]}}),!r||!r.backends||r.backends.length<1)throw new Error(`You must specify at least one Backend, if you are coming from 2.x.x (or don't understand this error) + see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-2xx`);Qn(this,Ya,new L$),Qn(this,Qe,{}),Qn(this,zt,[]),r.backends.forEach(a=>{let i=W(this,$f).call(this,t,n,a);W(this,Qe)[i.id]=i,W(this,zt).push(i)}),Qn(this,Je,W(this,zt)[0].id),Qn(this,cn,{})}};Je=new WeakMap,Ya=new WeakMap,Qe=new WeakMap,zt=new WeakMap,cn=new WeakMap,$f=new WeakMap,Lf=new WeakMap,Mf=new WeakMap,cs=new WeakMap,fs=new WeakMap,Xa=new WeakMap,$w.isSetUp=!1;var M$=$w,Lw=(e,t,n)=>new M$(e,t,n),qi=(e,t)=>({event:e,check:t}),Mw=qi("touchstart",e=>{let t=e;return t.touches!==null&&t.touches!==void 0}),j$=qi("dragstart",e=>e.type.indexOf("drag")!==-1||e.type.indexOf("drop")!==-1),F$=qi("mousedown",e=>e.type.indexOf("touch")===-1&&e.type.indexOf("mouse")!==-1),jw=qi("pointerdown",e=>e.pointerType=="mouse"),I$={backends:[{id:"html5",backend:E$,transition:jw},{id:"touch",backend:$$,options:{enableMouseEvents:!0},preview:!0,transition:Mw}]};const U$=Object.freeze(Object.defineProperty({__proto__:null,HTML5toTouch:I$},Symbol.toStringTag,{value:"Module"})),z$=Bf(U$),Ki=P.createContext({dragDropManager:void 0});function ut(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Dm=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Ju=function(){return Math.random().toString(36).substring(7).split("").join(".")},km={INIT:"@@redux/INIT"+Ju(),REPLACE:"@@redux/REPLACE"+Ju(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ju()}};function H$(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Fw(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(ut(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(ut(1));return n(Fw)(e,t)}if(typeof e!="function")throw new Error(ut(2));var a=e,i=t,o=[],s=o,l=!1;function u(){s===o&&(s=o.slice())}function h(){if(l)throw new Error(ut(3));return i}function d(_){if(typeof _!="function")throw new Error(ut(4));if(l)throw new Error(ut(5));var b=!0;return u(),s.push(_),function(){if(b){if(l)throw new Error(ut(6));b=!1,u();var y=s.indexOf(_);s.splice(y,1),o=null}}}function p(_){if(!H$(_))throw new Error(ut(7));if(typeof _.type>"u")throw new Error(ut(8));if(l)throw new Error(ut(9));try{l=!0,i=a(i,_)}finally{l=!1}for(var b=o=s,v=0;vr&&r[a]?r[a]:n||null,e)}function G$(e,t){return e.filter(n=>n!==t)}function Iw(e){return typeof e=="object"}function V$(e,t){const n=new Map,r=i=>{n.set(i,n.has(i)?n.get(i)+1:1)};e.forEach(r),t.forEach(r);const a=[];return n.forEach((i,o)=>{i===1&&a.push(o)}),a}function q$(e,t){return e.filter(n=>t.indexOf(n)>-1)}const Rh="dnd-core/INIT_COORDS",Fl="dnd-core/BEGIN_DRAG",$h="dnd-core/PUBLISH_DRAG_SOURCE",Il="dnd-core/HOVER",Ul="dnd-core/DROP",zl="dnd-core/END_DRAG";function Am(e,t){return{type:Rh,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const K$={type:Rh,payload:{clientOffset:null,sourceClientOffset:null}};function Y$(e){return function(n=[],r={publishSource:!0}){const{publishSource:a=!0,clientOffset:i,getSourceClientOffset:o}=r,s=e.getMonitor(),l=e.getRegistry();e.dispatch(Am(i)),X$(n,s,l);const u=B$(n,s);if(u==null){e.dispatch(K$);return}let h=null;if(i){if(!o)throw new Error("getSourceClientOffset must be defined");J$(o),h=o(u)}e.dispatch(Am(i,h));const p=l.getSource(u).beginDrag(s,u);if(p==null)return;Q$(p),l.pinSource(u);const w=l.getSourceType(u);return{type:Fl,payload:{itemType:w,item:p,sourceId:u,clientOffset:i||null,sourceClientOffset:h||null,isSourcePublic:!!a}}}}function X$(e,t,n){G(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(r){G(n.getSource(r),"Expected sourceIds to be registered.")})}function J$(e){G(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function Q$(e){G(Iw(e),"Item must be an object.")}function B$(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}function Z$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eL(e){for(var t=1;t{const l=rL(o,s,a,r),u={type:Ul,payload:{dropResult:eL({},n,l)}};e.dispatch(u)})}}function nL(e){G(e.isDragging(),"Cannot call drop while not dragging."),G(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function rL(e,t,n,r){const a=n.getTarget(e);let i=a?a.drop(r,e):void 0;return aL(i),typeof i>"u"&&(i=t===0?{}:r.getDropResult()),i}function aL(e){G(typeof e>"u"||Iw(e),"Drop result must either be an object or undefined.")}function iL(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function oL(e){return function(){const n=e.getMonitor(),r=e.getRegistry();sL(n);const a=n.getSourceId();return a!=null&&(r.getSource(a,!0).endDrag(n,a),r.unpinSource()),{type:zl}}}function sL(e){G(e.isDragging(),"Cannot call endDrag while not dragging.")}function jf(e,t){return t===null?e===null:Array.isArray(e)?e.some(n=>n===t):e===t}function lL(e){return function(n,{clientOffset:r}={}){uL(n);const a=n.slice(0),i=e.getMonitor(),o=e.getRegistry(),s=i.getItemType();return fL(a,o,s),cL(a,i,o),dL(a,i,o),{type:Il,payload:{targetIds:a,clientOffset:r||null}}}}function uL(e){G(Array.isArray(e),"Expected targetIds to be an array.")}function cL(e,t,n){G(t.isDragging(),"Cannot call hover while not dragging."),G(!t.didDrop(),"Cannot call hover after drop.");for(let r=0;r=0;r--){const a=e[r],i=t.getTargetType(a);jf(i,n)||e.splice(r,1)}}function dL(e,t,n){e.forEach(function(r){n.getTarget(r).hover(t,r)})}function hL(e){return function(){if(e.getMonitor().isDragging())return{type:$h}}}function pL(e){return{beginDrag:Y$(e),publishDragSource:hL(e),hover:lL(e),drop:tL(e),endDrag:oL(e)}}class gL{receiveBackend(t){this.backend=t}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const t=this,{dispatch:n}=this.store;function r(i){return(...o)=>{const s=i.apply(t,o);typeof s<"u"&&n(s)}}const a=pL(this);return Object.keys(a).reduce((i,o)=>{const s=a[o];return i[o]=r(s),i},{})}dispatch(t){this.store.dispatch(t)}constructor(t,n){this.isSetUp=!1,this.handleRefCountChange=()=>{const r=this.store.getState().refCount>0;this.backend&&(r&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!r&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=t,this.monitor=n,t.subscribe(this.handleRefCountChange)}}function mL(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Uw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function vL(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return!t||!n||!r?null:Uw(mL(t,r),n)}function yL(e){const{clientOffset:t,initialClientOffset:n}=e;return!t||!n?null:Uw(t,n)}const ui=[],Lh=[];ui.__IS_NONE__=!0;Lh.__IS_ALL__=!0;function wL(e,t){return e===ui?!1:e===Lh||typeof t>"u"?!0:q$(t,e).length>0}class _L{subscribeToStateChange(t,n={}){const{handlerIds:r}=n;G(typeof t=="function","listener must be a function."),G(typeof r>"u"||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let a=this.store.getState().stateId;const i=()=>{const o=this.store.getState(),s=o.stateId;try{s===a||s===a+1&&!wL(o.dirtyHandlerIds,r)||t()}finally{a=s}};return this.store.subscribe(i)}subscribeToOffsetChange(t){G(typeof t=="function","listener must be a function.");let n=this.store.getState().dragOffset;const r=()=>{const a=this.store.getState().dragOffset;a!==n&&(n=a,t())};return this.store.subscribe(r)}canDragSource(t){if(!t)return!1;const n=this.registry.getSource(t);return G(n,`Expected to find a valid source. sourceId=${t}`),this.isDragging()?!1:n.canDrag(this,t)}canDropOnTarget(t){if(!t)return!1;const n=this.registry.getTarget(t);if(G(n,`Expected to find a valid target. targetId=${t}`),!this.isDragging()||this.didDrop())return!1;const r=this.registry.getTargetType(t),a=this.getItemType();return jf(r,a)&&n.canDrop(this,t)}isDragging(){return!!this.getItemType()}isDraggingSource(t){if(!t)return!1;const n=this.registry.getSource(t,!0);if(G(n,`Expected to find a valid source. sourceId=${t}`),!this.isDragging()||!this.isSourcePublic())return!1;const r=this.registry.getSourceType(t),a=this.getItemType();return r!==a?!1:n.isDragging(this,t)}isOverTarget(t,n={shallow:!1}){if(!t)return!1;const{shallow:r}=n;if(!this.isDragging())return!1;const a=this.registry.getTargetType(t),i=this.getItemType();if(i&&!jf(a,i))return!1;const o=this.getTargetIds();if(!o.length)return!1;const s=o.indexOf(t);return r?s===o.length-1:s>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return vL(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return yL(this.store.getState().dragOffset)}constructor(t,n){this.store=t,this.registry=n}}const Rm=typeof global<"u"?global:self,zw=Rm.MutationObserver||Rm.WebKitMutationObserver;function Hw(e){return function(){const n=setTimeout(a,0),r=setInterval(a,50);function a(){clearTimeout(n),clearInterval(r),e()}}}function SL(e){let t=1;const n=new zw(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}const bL=typeof zw=="function"?SL:Hw;class EL{enqueueTask(t){const{queue:n,requestFlush:r}=this;n.length||(r(),this.flushing=!0),n[n.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.indexthis.capacity){for(let r=0,a=t.length-this.index;r{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=bL(this.flush),this.requestErrorThrow=Hw(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class TL{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,n){this.onError=t,this.release=n,this.task=null}}class CL{create(t){const n=this.freeTasks,r=n.length?n.pop():new TL(this.onError,a=>n[n.length]=a);return r.task=t,r}constructor(t){this.onError=t,this.freeTasks=[]}}const Ww=new EL,OL=new CL(Ww.registerPendingError);function xL(e){Ww.enqueueTask(OL.create(e))}const Mh="dnd-core/ADD_SOURCE",jh="dnd-core/ADD_TARGET",Fh="dnd-core/REMOVE_SOURCE",Hl="dnd-core/REMOVE_TARGET";function PL(e){return{type:Mh,payload:{sourceId:e}}}function NL(e){return{type:jh,payload:{targetId:e}}}function DL(e){return{type:Fh,payload:{sourceId:e}}}function kL(e){return{type:Hl,payload:{targetId:e}}}function AL(e){G(typeof e.canDrag=="function","Expected canDrag to be a function."),G(typeof e.beginDrag=="function","Expected beginDrag to be a function."),G(typeof e.endDrag=="function","Expected endDrag to be a function.")}function RL(e){G(typeof e.canDrop=="function","Expected canDrop to be a function."),G(typeof e.hover=="function","Expected hover to be a function."),G(typeof e.drop=="function","Expected beginDrag to be a function.")}function Ff(e,t){if(t&&Array.isArray(e)){e.forEach(n=>Ff(n,!1));return}G(typeof e=="string"||typeof e=="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var ht;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(ht||(ht={}));let $L=0;function LL(){return $L++}function ML(e){const t=LL().toString();switch(e){case ht.SOURCE:return`S${t}`;case ht.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function $m(e){switch(e[0]){case"S":return ht.SOURCE;case"T":return ht.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function Lm(e,t){const n=e.entries();let r=!1;do{const{done:a,value:[,i]}=n.next();if(i===t)return!0;r=!!a}while(!r);return!1}class jL{addSource(t,n){Ff(t),AL(n);const r=this.addHandler(ht.SOURCE,t,n);return this.store.dispatch(PL(r)),r}addTarget(t,n){Ff(t,!0),RL(n);const r=this.addHandler(ht.TARGET,t,n);return this.store.dispatch(NL(r)),r}containsHandler(t){return Lm(this.dragSources,t)||Lm(this.dropTargets,t)}getSource(t,n=!1){return G(this.isSourceId(t),"Expected a valid source ID."),n&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return G(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return G(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return G(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return $m(t)===ht.SOURCE}isTargetId(t){return $m(t)===ht.TARGET}removeSource(t){G(this.getSource(t),"Expected an existing source."),this.store.dispatch(DL(t)),xL(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){G(this.getTarget(t),"Expected an existing target."),this.store.dispatch(kL(t)),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){const n=this.getSource(t);G(n,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=n}unpinSource(){G(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,n,r){const a=ML(t);return this.types.set(a,n),t===ht.SOURCE?this.dragSources.set(a,r):t===ht.TARGET&&this.dropTargets.set(a,r),a}constructor(t){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}}const FL=(e,t)=>e===t;function IL(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function UL(e,t,n=FL){if(e.length!==t.length)return!1;for(let r=0;r0||!UL(n,r)))return ui;const o=r[r.length-1],s=n[n.length-1];return o!==s&&(o&&a.push(o),s&&a.push(s)),a}function HL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WL(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nM(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}let jm=0;const hs=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var Gw=P.memo(function(t){var{children:n}=t,r=tM(t,["children"]);const[a,i]=rM(r);return P.useEffect(()=>{if(i){const o=Vw();return++jm,()=>{--jm===0&&(o[hs]=null)}}},[]),T.jsx(Ki.Provider,{value:a,children:n})});function rM(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=aM(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}function aM(e,t=Vw(),n,r){const a=t;return a[hs]||(a[hs]={dragDropManager:ZL(e,t,n,r)}),a[hs]}function Vw(){return typeof global<"u"?global:window}const iM=P.memo(function({connect:t,src:n}){return P.useEffect(()=>{if(typeof Image>"u")return;let r=!1;const a=new Image;return a.src=n,a.onload=()=>{t(a),r=!0},()=>{r&&t(null)}}),null});var oM=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,a,i;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(a=r;a--!==0;)if(!e(t[a],n[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(i=Object.keys(t),r=i.length,r!==Object.keys(n).length)return!1;for(a=r;a--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[a]))return!1;for(a=r;a--!==0;){var o=i[a];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n};const sM=nl(oM),mr=typeof window<"u"?P.useLayoutEffect:P.useEffect;function qw(e,t,n){const[r,a]=P.useState(()=>t(e)),i=P.useCallback(()=>{const o=t(e);sM(r,o)||(a(o),n&&n())},[r,e,n]);return mr(i),[r,i]}function lM(e,t,n){const[r,a]=qw(e,t,n);return mr(function(){const o=e.getHandlerId();if(o!=null)return e.subscribeToStateChange(a,{handlerIds:[o]})},[e,a]),r}function Kw(e,t,n){return lM(t,e||(()=>({})),()=>n.reconnect())}function Yw(e,t){const n=[...t||[]];return t==null&&typeof e!="function"&&n.push(e),P.useMemo(()=>typeof e=="function"?e():e,n)}function uM(e){return P.useMemo(()=>e.hooks.dragSource(),[e])}function cM(e){return P.useMemo(()=>e.hooks.dragPreview(),[e])}let Qu=!1,Bu=!1;class fM{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){G(!Qu,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Qu=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Qu=!1}}isDragging(){if(!this.sourceId)return!1;G(!Bu,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Bu=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Bu=!1}}subscribeToStateChange(t,n){return this.internalMonitor.subscribeToStateChange(t,n)}isDraggingSource(t){return this.internalMonitor.isDraggingSource(t)}isOverTarget(t,n){return this.internalMonitor.isOverTarget(t,n)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(t){return this.internalMonitor.subscribeToOffsetChange(t)}canDragSource(t){return this.internalMonitor.canDragSource(t)}canDropOnTarget(t){return this.internalMonitor.canDropOnTarget(t)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.sourceId=null,this.internalMonitor=t.getMonitor()}}let Zu=!1;class dM{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,n){return this.internalMonitor.subscribeToStateChange(t,n)}canDrop(){if(!this.targetId)return!1;G(!Zu,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return Zu=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Zu=!1}}isOver(t){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,t):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.targetId=null,this.internalMonitor=t.getMonitor()}}function hM(e,t,n){const r=n.getRegistry(),a=r.addTarget(e,t);return[a,()=>r.removeTarget(a)]}function pM(e,t,n){const r=n.getRegistry(),a=r.addSource(e,t);return[a,()=>r.removeSource(a)]}function If(e,t,n,r){let a=n?n.call(r,e,t):void 0;if(a!==void 0)return!!a;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const i=Object.keys(e),o=Object.keys(t);if(i.length!==o.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let l=0;l, or turn it into a drag source or a drop target itself.`)}function mM(e){return(t=null,n=null)=>{if(!P.isValidElement(t)){const i=t;return e(i,n),i}const r=t;return gM(r),vM(r,n?i=>e(i,n):e)}}function Xw(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const a=mM(r);t[n]=()=>a}}),t}function Fm(e,t){typeof e=="function"?e(t):e.current=t}function vM(e,t){const n=e.ref;return G(typeof n!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a or
. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?P.cloneElement(e,{ref:r=>{Fm(n,r),Fm(t,r)}}):P.cloneElement(e,{ref:t})}class yM{receiveHandlerId(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(t){this.dragSourceOptionsInternal=t}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(t){this.dragPreviewOptionsInternal=t}reconnect(){const t=this.reconnectDragSource();this.reconnectDragPreview(t)}reconnectDragSource(){const t=this.dragSource,n=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return n&&this.disconnectDragSource(),this.handlerId?t?(n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)),n):(this.lastConnectedDragSource=t,n):n}reconnectDragPreview(t=!1){const n=this.dragPreview,r=t||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(r&&this.disconnectDragPreview(),!!this.handlerId){if(!n){this.lastConnectedDragPreview=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=n,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,n,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!If(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!If(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(t){this.hooks=Xw({dragSource:(n,r)=>{this.clearDragSource(),this.dragSourceOptions=r||null,Uf(n)?this.dragSourceRef=n:this.dragSourceNode=n,this.reconnectDragSource()},dragPreview:(n,r)=>{this.clearDragPreview(),this.dragPreviewOptions=r||null,Uf(n)?this.dragPreviewRef=n:this.dragPreviewNode=n,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}}class wM{get connectTarget(){return this.dropTarget}reconnect(){const t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();const n=this.dropTarget;if(this.handlerId){if(!n){this.lastConnectedDropTarget=n;return}t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=n,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,n,this.dropTargetOptions))}}receiveHandlerId(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(t){this.dropTargetOptionsInternal=t}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!If(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(t){this.hooks=Xw({dropTarget:(n,r)=>{this.clearDropTarget(),this.dropTargetOptions=r,Uf(n)?this.dropTargetRef=n:this.dropTargetNode=n,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}}function Hn(){const{dragDropManager:e}=P.useContext(Ki);return G(e!=null,"Expected drag drop context"),e}function _M(e,t){const n=Hn(),r=P.useMemo(()=>new yM(n.getBackend()),[n]);return mr(()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource()),[r,e]),mr(()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,t]),r}function SM(){const e=Hn();return P.useMemo(()=>new fM(e),[e])}class bM{beginDrag(){const t=this.spec,n=this.monitor;let r=null;return typeof t.item=="object"?r=t.item:typeof t.item=="function"?r=t.item(n):r={},r??null}canDrag(){const t=this.spec,n=this.monitor;return typeof t.canDrag=="boolean"?t.canDrag:typeof t.canDrag=="function"?t.canDrag(n):!0}isDragging(t,n){const r=this.spec,a=this.monitor,{isDragging:i}=r;return i?i(a):n===t.getSourceId()}endDrag(){const t=this.spec,n=this.monitor,r=this.connector,{end:a}=t;a&&a(n.getItem(),n),r.reconnect()}constructor(t,n,r){this.spec=t,this.monitor=n,this.connector=r}}function EM(e,t,n){const r=P.useMemo(()=>new bM(e,t,n),[t,n]);return P.useEffect(()=>{r.spec=e},[e]),r}function TM(e){return P.useMemo(()=>{const t=e.type;return G(t!=null,"spec.type must be defined"),t},[e])}function CM(e,t,n){const r=Hn(),a=EM(e,t,n),i=TM(e);mr(function(){if(i!=null){const[s,l]=pM(i,a,r);return t.receiveHandlerId(s),n.receiveHandlerId(s),l}},[r,t,n,a,i])}function Jw(e,t){const n=Yw(e,t);G(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const r=SM(),a=_M(n.options,n.previewOptions);return CM(n,r,a),[Kw(n.collect,r,a),uM(a),cM(a)]}function Qw(e){const n=Hn().getMonitor(),[r,a]=qw(n,e);return P.useEffect(()=>n.subscribeToOffsetChange(a)),P.useEffect(()=>n.subscribeToStateChange(a)),r}function OM(e){return P.useMemo(()=>e.hooks.dropTarget(),[e])}function xM(e){const t=Hn(),n=P.useMemo(()=>new wM(t.getBackend()),[t]);return mr(()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget()),[e]),n}function PM(){const e=Hn();return P.useMemo(()=>new dM(e),[e])}function NM(e){const{accept:t}=e;return P.useMemo(()=>(G(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class DM{canDrop(){const t=this.spec,n=this.monitor;return t.canDrop?t.canDrop(n.getItem(),n):!0}hover(){const t=this.spec,n=this.monitor;t.hover&&t.hover(n.getItem(),n)}drop(){const t=this.spec,n=this.monitor;if(t.drop)return t.drop(n.getItem(),n)}constructor(t,n){this.spec=t,this.monitor=n}}function kM(e,t){const n=P.useMemo(()=>new DM(e,t),[t]);return P.useEffect(()=>{n.spec=e},[e]),n}function AM(e,t,n){const r=Hn(),a=kM(e,t),i=NM(e);mr(function(){const[s,l]=hM(i,a,r);return t.receiveHandlerId(s),n.receiveHandlerId(s),l},[r,t,a,n,i.map(o=>o.toString()).join("|")])}function Bw(e,t){const n=Yw(e,t),r=PM(),a=xM(n.options);return AM(n,r,a),[Kw(n.collect,r,a),OM(a)]}const RM=Object.freeze(Object.defineProperty({__proto__:null,DndContext:Ki,DndProvider:Gw,DragPreviewImage:iM,useDrag:Jw,useDragDropManager:Hn,useDragLayer:Qw,useDrop:Bw},Symbol.toStringTag,{value:"Module"})),Wl=Bf(RM);var zf=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),$M=e=>{let t=e.getInitialClientOffset(),n=e.getInitialSourceClientOffset();return t===null||n===null?{x:0,y:0}:zf(t,n)},LM=(e,t)=>{let n=e.getClientOffset();if(n===null)return null;if(!t.current||!t.current.getBoundingClientRect)return zf(n,$M(e));let r=t.current.getBoundingClientRect(),a={x:r.width/2,y:r.height/2};return zf(n,a)},MM=e=>{let t=`translate(${e.x.toFixed(1)}px, ${e.y.toFixed(1)}px)`;return{pointerEvents:"none",position:"fixed",top:0,left:0,transform:t,WebkitTransform:t}},Zw=()=>{let e=P.useRef(null),t=Qw(n=>({currentOffset:LM(n,e),isDragging:n.isDragging(),itemType:n.getItemType(),item:n.getItem(),monitor:n}));return!t.isDragging||t.currentOffset===null?{display:!1}:{display:!0,itemType:t.itemType,item:t.item,style:MM(t.currentOffset),monitor:t.monitor,ref:e}},Ih=P.createContext(void 0),jM=e=>{let t=Zw();if(!t.display)return null;let{display:n,...r}=t,a;return"children"in e?typeof e.children=="function"?a=e.children(r):a=e.children:a=e.generator(r),Sn.createElement(Ih.Provider,{value:r},a)},e_=P.createContext(null),FM=({portal:e,...t})=>{let[n,r]=P.useState(null);return Sn.createElement(e_.Provider,{value:e??n},Sn.createElement(Gw,{backend:Lw,...t}),e?null:Sn.createElement("div",{ref:r}))},t_=()=>{let[e,t]=P.useState(!1),n=P.useContext(Ki);return P.useEffect(()=>{var i;let r=(i=n==null?void 0:n.dragDropManager)==null?void 0:i.getBackend(),a={backendChanged:o=>{t(o.previewEnabled())}};return t(r.previewEnabled()),r.previewsList().register(a),()=>{r.previewsList().unregister(a)}},[n,n.dragDropManager]),e},n_=e=>{let t=t_(),n=P.useContext(e_);if(!t)return null;let r=Sn.createElement(jM,{...e});return n!==null?Q0.createPortal(r,n):r};n_.Context=Ih;var IM=(e,t,n,r)=>{let a=n.getBackend();n.receiveBackend(r);let i=t(e);return n.receiveBackend(a),i},r_=(e,t)=>{var s;let n=P.useContext(Ki),r=(s=n==null?void 0:n.dragDropManager)==null?void 0:s.getBackend();if(r===void 0)throw new Error("could not find backend, make sure you are using a ");let a=t(e),i={},o=r.backendsList();for(let l of o)i[l.id]=IM(e,t,n.dragDropManager,l.instance);return[a,i]},UM=e=>r_(e,Jw),zM=e=>r_(e,Bw),HM=()=>{let e=t_(),t=Zw();return e?t:{display:!1}};const WM=Object.freeze(Object.defineProperty({__proto__:null,DndProvider:FM,HTML5DragTransition:j$,MouseTransition:F$,MultiBackend:Lw,PointerTransition:jw,Preview:n_,PreviewContext:Ih,TouchTransition:Mw,createTransition:qi,useMultiDrag:UM,useMultiDrop:zM,usePreview:HM},Symbol.toStringTag,{value:"Module"})),GM=Bf(WM);var a_={},Gl={},Vl={};Object.defineProperty(Vl,"__esModule",{value:!0});Vl.default=qM;let Fo;const VM=new Uint8Array(16);function qM(){if(!Fo&&(Fo=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Fo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Fo(VM)}var Wn={},Er={},ql={};Object.defineProperty(ql,"__esModule",{value:!0});ql.default=void 0;var KM=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;ql.default=KM;Object.defineProperty(Er,"__esModule",{value:!0});Er.default=void 0;var YM=XM(ql);function XM(e){return e&&e.__esModule?e:{default:e}}function JM(e){return typeof e=="string"&&YM.default.test(e)}var QM=JM;Er.default=QM;Object.defineProperty(Wn,"__esModule",{value:!0});Wn.default=void 0;Wn.unsafeStringify=i_;var BM=ZM(Er);function ZM(e){return e&&e.__esModule?e:{default:e}}const Te=[];for(let e=0;e<256;++e)Te.push((e+256).toString(16).slice(1));function i_(e,t=0){return Te[e[t+0]]+Te[e[t+1]]+Te[e[t+2]]+Te[e[t+3]]+"-"+Te[e[t+4]]+Te[e[t+5]]+"-"+Te[e[t+6]]+Te[e[t+7]]+"-"+Te[e[t+8]]+Te[e[t+9]]+"-"+Te[e[t+10]]+Te[e[t+11]]+Te[e[t+12]]+Te[e[t+13]]+Te[e[t+14]]+Te[e[t+15]]}function e5(e,t=0){const n=i_(e,t);if(!(0,BM.default)(n))throw TypeError("Stringified UUID is invalid");return n}var t5=e5;Wn.default=t5;Object.defineProperty(Gl,"__esModule",{value:!0});Gl.default=void 0;var n5=a5(Vl),r5=Wn;function a5(e){return e&&e.__esModule?e:{default:e}}let Im,ec,tc=0,nc=0;function i5(e,t,n){let r=t&&n||0;const a=t||new Array(16);e=e||{};let i=e.node||Im,o=e.clockseq!==void 0?e.clockseq:ec;if(i==null||o==null){const p=e.random||(e.rng||n5.default)();i==null&&(i=Im=[p[0]|1,p[1],p[2],p[3],p[4],p[5]]),o==null&&(o=ec=(p[6]<<8|p[7])&16383)}let s=e.msecs!==void 0?e.msecs:Date.now(),l=e.nsecs!==void 0?e.nsecs:nc+1;const u=s-tc+(l-nc)/1e4;if(u<0&&e.clockseq===void 0&&(o=o+1&16383),(u<0||s>tc)&&e.nsecs===void 0&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");tc=s,nc=l,ec=o,s+=122192928e5;const h=((s&268435455)*1e4+l)%4294967296;a[r++]=h>>>24&255,a[r++]=h>>>16&255,a[r++]=h>>>8&255,a[r++]=h&255;const d=s/4294967296*1e4&268435455;a[r++]=d>>>8&255,a[r++]=d&255,a[r++]=d>>>24&15|16,a[r++]=d>>>16&255,a[r++]=o>>>8|128,a[r++]=o&255;for(let p=0;p<6;++p)a[r+p]=i[p];return t||(0,r5.unsafeStringify)(a)}var o5=i5;Gl.default=o5;var Kl={},jn={},Yi={};Object.defineProperty(Yi,"__esModule",{value:!0});Yi.default=void 0;var s5=l5(Er);function l5(e){return e&&e.__esModule?e:{default:e}}function u5(e){if(!(0,s5.default)(e))throw TypeError("Invalid UUID");let t;const n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=t&255,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=t&255,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=t&255,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=t&255,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=t&255,n}var c5=u5;Yi.default=c5;Object.defineProperty(jn,"__esModule",{value:!0});jn.URL=jn.DNS=void 0;jn.default=g5;var f5=Wn,d5=h5(Yi);function h5(e){return e&&e.__esModule?e:{default:e}}function p5(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n>5]>>>a%32&255,o=parseInt(r.charAt(i>>>4&15)+r.charAt(i&15),16);t.push(o)}return t}function l_(e){return(e+64>>>9<<4)+14+1}function y5(e,t){e[t>>5]|=128<>5]|=(e[r/8]&255)<>16)+(t>>16)+(n>>16)<<16|n&65535}function _5(e,t){return e<>>32-t}function Xl(e,t,n,r,a,i){return _n(_5(_n(_n(t,e),_n(r,i)),a),n)}function ke(e,t,n,r,a,i,o){return Xl(t&n|~t&r,e,t,a,i,o)}function Ae(e,t,n,r,a,i,o){return Xl(t&r|n&~r,e,t,a,i,o)}function Re(e,t,n,r,a,i,o){return Xl(t^n^r,e,t,a,i,o)}function $e(e,t,n,r,a,i,o){return Xl(n^(t|~r),e,t,a,i,o)}var S5=m5;Yl.default=S5;Object.defineProperty(Kl,"__esModule",{value:!0});Kl.default=void 0;var b5=u_(jn),E5=u_(Yl);function u_(e){return e&&e.__esModule?e:{default:e}}const T5=(0,b5.default)("v3",48,E5.default);var C5=T5;Kl.default=C5;var Jl={},Ql={};Object.defineProperty(Ql,"__esModule",{value:!0});Ql.default=void 0;const O5=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var x5={randomUUID:O5};Ql.default=x5;Object.defineProperty(Jl,"__esModule",{value:!0});Jl.default=void 0;var Um=c_(Ql),P5=c_(Vl),N5=Wn;function c_(e){return e&&e.__esModule?e:{default:e}}function D5(e,t,n){if(Um.default.randomUUID&&!t&&!e)return Um.default.randomUUID();e=e||{};const r=e.random||(e.rng||P5.default)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let a=0;a<16;++a)t[n+a]=r[a];return t}return(0,N5.unsafeStringify)(r)}var k5=D5;Jl.default=k5;var Bl={},Zl={};Object.defineProperty(Zl,"__esModule",{value:!0});Zl.default=void 0;function A5(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function rc(e,t){return e<>>32-t}function R5(e){const t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){const o=unescape(encodeURIComponent(e));e=[];for(let s=0;s>>0;p=d,d=h,h=rc(u,30)>>>0,u=l,l=_}n[0]=n[0]+l>>>0,n[1]=n[1]+u>>>0,n[2]=n[2]+h>>>0,n[3]=n[3]+d>>>0,n[4]=n[4]+p>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,n[0]&255,n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,n[1]&255,n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,n[2]&255,n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,n[3]&255,n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,n[4]&255]}var $5=R5;Zl.default=$5;Object.defineProperty(Bl,"__esModule",{value:!0});Bl.default=void 0;var L5=f_(jn),M5=f_(Zl);function f_(e){return e&&e.__esModule?e:{default:e}}const j5=(0,L5.default)("v5",80,M5.default);var F5=j5;Bl.default=F5;var eu={};Object.defineProperty(eu,"__esModule",{value:!0});eu.default=void 0;var I5="00000000-0000-0000-0000-000000000000";eu.default=I5;var tu={};Object.defineProperty(tu,"__esModule",{value:!0});tu.default=void 0;var U5=z5(Er);function z5(e){return e&&e.__esModule?e:{default:e}}function H5(e){if(!(0,U5.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}var W5=H5;tu.default=W5;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return o.default}});var t=h(Gl),n=h(Kl),r=h(Jl),a=h(Bl),i=h(eu),o=h(tu),s=h(Er),l=h(Wn),u=h(Yi);function h(d){return d&&d.__esModule?d:{default:d}}})(a_);var Pe={},G5=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Pe,"__esModule",{value:!0});Pe.MosaicWindowContext=Pe.MosaicContext=void 0;var d_=G5(P);Pe.MosaicContext=d_.default.createContext(void 0);Pe.MosaicWindowContext=d_.default.createContext(void 0);var nu={},zm=wa,V5=Pl,q5=wt,Hm=zm?zm.isConcatSpreadable:void 0;function K5(e){return q5(e)||V5(e)||!!(Hm&&e&&e[Hm])}var Y5=K5,X5=bh,J5=Y5;function h_(e,t,n,r,a){var i=-1,o=e.length;for(n||(n=J5),a||(a=[]);++i0&&n(s)?t>1?h_(s,t-1,n,r,a):X5(a,s):r||(a[a.length]=s)}return a}var Q5=h_,B5=Q5;function Z5(e){var t=e==null?0:e.length;return t?B5(e,1):[]}var e8=Z5,ru={};function t8(e,t,n){return e===e&&(n!==void 0&&(e=e<=n?e:n),t!==void 0&&(e=e>=t?e:t)),e}var n8=t8,r8=/\s/;function a8(e){for(var t=e.length;t--&&r8.test(e.charAt(t)););return t}var i8=a8,o8=i8,s8=/^\s+/;function l8(e){return e&&e.slice(0,o8(e)+1).replace(s8,"")}var u8=l8,c8=u8,Wm=It,f8=Ml,Gm=0/0,d8=/^[-+]0x[0-9a-f]+$/i,h8=/^0b[01]+$/i,p8=/^0o[0-7]+$/i,g8=parseInt;function m8(e){if(typeof e=="number")return e;if(f8(e))return Gm;if(Wm(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Wm(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=c8(e);var n=h8.test(e);return n||p8.test(e)?g8(e.slice(2),n?2:8):d8.test(e)?Gm:+e}var Uh=m8,v8=n8,ac=Uh;function y8(e,t,n){return n===void 0&&(n=t,t=void 0),n!==void 0&&(n=ac(n),n=n===n?n:0),t!==void 0&&(t=ac(t),t=t===t?t:0),v8(ac(e),t,n)}var w8=y8,_8=Dt,S8=function(){return _8.Date.now()},b8=S8,E8=It,ic=b8,Vm=Uh,T8="Expected a function",C8=Math.max,O8=Math.min;function x8(e,t,n){var r,a,i,o,s,l,u=0,h=!1,d=!1,p=!0;if(typeof e!="function")throw new TypeError(T8);t=Vm(t)||0,E8(n)&&(h=!!n.leading,d="maxWait"in n,i=d?C8(Vm(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p);function w(k){var E=r,C=a;return r=a=void 0,u=k,o=e.apply(C,E),o}function m(k){return u=k,s=setTimeout(v,t),h?w(k):o}function _(k){var E=k-l,C=k-u,O=t-E;return d?O8(O,i-C):O}function b(k){var E=k-l,C=k-u;return l===void 0||E>=t||E<0||d&&C>=i}function v(){var k=ic();if(b(k))return y(k);s=setTimeout(v,_(k))}function y(k){return s=void 0,p&&r?w(k):(r=a=void 0,o)}function S(){s!==void 0&&clearTimeout(s),u=0,r=l=a=s=void 0}function x(){return s===void 0?o:y(ic())}function D(){var k=ic(),E=b(k);if(r=arguments,a=this,l=k,E){if(s===void 0)return m(l);if(d)return clearTimeout(s),s=setTimeout(v,t),w(l)}return s===void 0&&(s=setTimeout(v,t)),o}return D.cancel=S,D.flush=x,D}var P8=x8,N8=P8,D8=It,k8="Expected a function";function A8(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(k8);return D8(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),N8(e,t,{leading:r,maxWait:t,trailing:a})}var R8=A8,zh={},au={};Object.defineProperty(au,"__esModule",{value:!0});au.assertNever=void 0;function $8(e){throw new Error("Unhandled case: "+JSON.stringify(e))}au.assertNever=$8;(function(e){var t=$&&$.__assign||function(){return t=Object.assign||function(r){for(var a,i=1,o=arguments.length;i1;){for(;b.length>0;)b.length>1?v.push({direction:"row",first:b.shift(),second:b.shift()}):v.unshift(b.shift());b=v,v=[]}return a(b[0],_)}e.createBalancedTreeFromLeaves=s;function l(m){if(m==="first")return"second";if(m==="second")return"first";throw new Error("Branch '".concat(m,"' not a valid branch"))}e.getOtherBranch=l;function u(m){return m==="row"?"column":"row"}e.getOtherDirection=u;function h(m,_){for(var b=m,v=[];o(b);)b.direction==="row"&&(_===i.TOP_LEFT||_===i.BOTTOM_LEFT)||b.direction==="column"&&(_===i.TOP_LEFT||_===i.TOP_RIGHT)?(v.push("first"),b=b.first):(v.push("second"),b=b.second);return v}e.getPathToCorner=h;function d(m){return m==null?[]:o(m)?d(m.first).concat(d(m.second)):[m]}e.getLeaves=d;function p(m,_){return _.length>0?(0,r.default)(m,_,null):m}e.getNodeAtPath=p;function w(m,_){if(m==null)throw new Error("Root is empty, cannot fetch path");var b=p(m,_);if(b==null)throw new Error("Path [".concat(_.join(", "),"] did not resolve to a node"));return b}e.getAndAssertNodeAtPathExists=w})(Xi);var T7=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qs=$&&$.__assign||function(){return Qs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n"u"&&!i.call(C,H))&&(U===C&&(U=d(C)),l(U)==="Map"?U.set(H,on):U[H]=on)}}),U},E}();t.Context=p;var w={$push:function(E,C,O){return _(C,O,"$push"),E.length?C.concat(E):C},$unshift:function(E,C,O){return _(C,O,"$unshift"),E.length?E.concat(C):C},$splice:function(E,C,O,N){return v(C,O),E.forEach(function(L){y(L),C===N&&L.length&&(C=d(N)),o.apply(C,L)}),C},$set:function(E,C,O){return x(O),E},$toggle:function(E,C){b(E,"$toggle");var O=E.length?d(C):C;return E.forEach(function(N){O[N]=!C[N]}),O},$unset:function(E,C,O,N){return b(E,"$unset"),E.forEach(function(L){Object.hasOwnProperty.call(C,L)&&(C===N&&(C=d(N)),delete C[L])}),C},$add:function(E,C,O,N){return k(C,"$add"),b(E,"$add"),l(C)==="Map"?E.forEach(function(L){var U=L[0],H=L[1];C===N&&C.get(U)!==H&&(C=d(N)),C.set(U,H)}):E.forEach(function(L){C===N&&!C.has(L)&&(C=d(N)),C.add(L)}),C},$remove:function(E,C,O,N){return k(C,"$remove"),b(E,"$remove"),E.forEach(function(L){C===N&&C.has(L)&&(C=d(N)),C.delete(L)}),C},$merge:function(E,C,O,N){return D(C,E),h(E).forEach(function(L){E[L]!==C[L]&&(C===N&&(C=d(N)),C[L]=E[L])}),C},$apply:function(E,C){return S(E),E(C)}},m=new p;t.isEquals=m.update.isEquals,t.extend=m.extend,t.default=m.update,t.default.default=e.exports=u(t.default,t);function _(E,C,O){a(Array.isArray(E),function(){return"update(): expected target of "+n(O)+" to be an array; got "+n(E)+"."}),b(C[O],O)}function b(E,C){a(Array.isArray(E),function(){return"update(): expected spec of "+n(C)+" to be an array; got "+n(E)+". Did you forget to wrap your parameter in an array?"})}function v(E,C){a(Array.isArray(E),function(){return"Expected $splice target to be an array; got "+n(E)}),y(C.$splice)}function y(E){a(Array.isArray(E),function(){return"update(): expected spec of $splice to be an array of arrays; got "+n(E)+". Did you forget to wrap your parameters in an array?"})}function S(E){a(typeof E=="function",function(){return"update(): expected spec of $apply to be a function; got "+n(E)+"."})}function x(E){a(Object.keys(E).length===1,function(){return"Cannot have more than one key in an object with $set"})}function D(E,C){a(C&&typeof C=="object",function(){return"update(): $merge expects a spec of type 'object'; got "+n(C)}),a(E&&typeof E=="object",function(){return"update(): $merge expects a target of type 'object'; got "+n(E)})}function k(E,C){var O=l(E);a(O==="Map"||O==="Set",function(){return"update(): "+n(C)+" expects a target of type Set or Map; got "+n(O)})}})(Hf,Hf.exports);var lF=Hf.exports;function uF(e,t,n){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(a);++r0?(0,jF.default)({},e.path,e.spec):e.spec}je.buildSpecFromUpdate=j_;function F_(e,t){var n=e;return t.forEach(function(r){n=(0,$F.default)(n,j_(r))}),n}je.updateTree=F_;function Wf(e,t){var n=(0,L_.default)(t),r=(0,M_.default)(t),a=n.concat((0,Bs.getOtherBranch)(r)),i=(0,Bs.getAndAssertNodeAtPathExists)(e,a);return{path:n,spec:{$set:i}}}je.createRemoveUpdate=Wf;function cv(e,t,n){return(0,MF.default)((0,uv.default)(e,n),(0,uv.default)(t,n))}function FF(e,t,n,r){var a=(0,Bs.getAndAssertNodeAtPathExists)(e,n),i=[],o=cv(t,n,n.length);if(o)a=F_(a,[Wf(a,(0,LF.default)(t,n.length))]);else{i.push(Wf(e,t));var s=cv(t,n,t.length-1);s&&n.splice(t.length-1,1)}var l=(0,Bs.getAndAssertNodeAtPathExists)(e,t),u,h;r===Ho.MosaicDropTargetPosition.LEFT||r===Ho.MosaicDropTargetPosition.TOP?(u=l,h=a):(u=a,h=l);var d="column";return(r===Ho.MosaicDropTargetPosition.LEFT||r===Ho.MosaicDropTargetPosition.RIGHT)&&(d="row"),i.push({path:n,spec:{$set:{first:u,second:h,direction:d}}}),i}je.createDragToUpdates=FF;function IF(e){var t=(0,L_.default)(e),n=(0,M_.default)(e),r;return n==="first"?r=0:r=100,{path:t,spec:{splitPercentage:{$set:r}}}}je.createHideUpdate=IF;function UF(e,t){for(var n,r={},a=e.length-1;a>=0;a--){var i=e[a],o=i==="first"?t:100-t;r=(n={splitPercentage:{$set:o}},n[i]=r,n)}return{spec:r,path:[]}}je.createExpandUpdate=UF;var I_=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zs=$&&$.__assign||function(){return Zs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0){if(++t>=dI)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var mI=gI,vI=fI,yI=mI,wI=yI(vI),_I=wI,SI=Dh,bI=iI,EI=_I;function TI(e,t){return EI(bI(e,t,SI),e+"")}var CI=TI,OI=eI,xI=CI,PI=xI(function(e,t){return OI(e,1,t)}),NI=PI,DI=sw,kI=Gi,AI=Pl,RI=wt,$I=kl,LI=Nl,MI=Dl,jI=vh,FI="[object Map]",II="[object Set]",UI=Object.prototype,zI=UI.hasOwnProperty;function HI(e){if(e==null)return!0;if($I(e)&&(RI(e)||typeof e=="string"||typeof e.splice=="function"||LI(e)||jI(e)||AI(e)))return!e.length;var t=kI(e);if(t==FI||t==II)return!e.size;if(MI(e))return!DI(e).length;for(var n in e)if(zI.call(e,n))return!1;return!0}var WI=HI,vr={},Zi={},Oa={};(function(e){var t=$&&$.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0}),e.createDefaultToolbarButton=e.DefaultToolbarButton=void 0;var n=t(st),r=t(P),a=Pe,i=Gn,o=function(l){var u=l.title,h=l.className,d=l.onClick,p=l.text,w=r.default.useContext(a.MosaicContext).blueprintNamespace;return r.default.createElement("button",{title:u,onClick:d,className:(0,n.default)("mosaic-default-control",i.OptionalBlueprint.getClasses(w,"BUTTON","MINIMAL"),h)},p&&r.default.createElement("span",{className:"control-text"},p))};e.DefaultToolbarButton=o;var s=function(l,u,h,d){return r.default.createElement(e.DefaultToolbarButton,{title:l,className:u,onClick:h,text:d})};e.createDefaultToolbarButton=s})(Oa);var GI=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),z_=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zi,"__esModule",{value:!0});Zi.ExpandButton=void 0;var VI=z_(st),uc=z_(P),hv=Pe,qI=Gn,KI=Oa,YI=function(e){GI(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this;return uc.default.createElement(hv.MosaicContext.Consumer,null,function(r){var a=r.mosaicActions;return uc.default.createElement(KI.DefaultToolbarButton,{title:"Expand",className:(0,VI.default)("expand-button",qI.OptionalBlueprint.getIconClass(n.context.blueprintNamespace,"MAXIMIZE")),onClick:n.createExpand(a)})})},t.prototype.createExpand=function(n){var r=this;return function(){n.expand(r.context.mosaicWindowActions.getPath()),r.props.onClick&&r.props.onClick()}},t.contextType=hv.MosaicWindowContext,t}(uc.default.PureComponent);Zi.ExpandButton=YI;var eo={},XI=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),H_=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(eo,"__esModule",{value:!0});eo.RemoveButton=void 0;var JI=H_(st),cc=H_(P),pv=Pe,QI=Gn,BI=Oa,ZI=function(e){XI(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this;return cc.default.createElement(pv.MosaicContext.Consumer,null,function(r){var a=r.mosaicActions,i=r.blueprintNamespace;return cc.default.createElement(BI.DefaultToolbarButton,{title:"Close Window",className:(0,JI.default)("close-button",QI.OptionalBlueprint.getIconClass(i,"CROSS")),onClick:n.createRemove(a)})})},t.prototype.createRemove=function(n){var r=this;return function(){n.remove(r.context.mosaicWindowActions.getPath()),r.props.onClick&&r.props.onClick()}},t.contextType=pv.MosaicWindowContext,t}(cc.default.PureComponent);eo.RemoveButton=ZI;var to={},eU=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Kh=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(to,"__esModule",{value:!0});to.ReplaceButton=void 0;var tU=Kh(st),nU=Kh(Wh),gv=Kh(P),rU=Pe,aU=Gn,iU=Oa,oU=function(e){eU(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.replace=function(){n.context.mosaicWindowActions.replaceWithNew().then(function(){n.props.onClick&&n.props.onClick()}).catch(nU.default)},n}return t.prototype.render=function(){return gv.default.createElement(iU.DefaultToolbarButton,{title:"Replace Window",className:(0,tU.default)("replace-button",aU.OptionalBlueprint.getIconClass(this.context.blueprintNamespace,"EXCHANGE")),onClick:this.replace})},t.contextType=rU.MosaicWindowContext,t}(gv.default.PureComponent);to.ReplaceButton=oU;var no={},sU=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yh=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(no,"__esModule",{value:!0});no.SplitButton=void 0;var lU=Yh(st),uU=Yh(Wh),mv=Yh(P),cU=Pe,fU=Gn,dU=Oa,hU=function(e){sU(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.split=function(){n.context.mosaicWindowActions.split().then(function(){n.props.onClick&&n.props.onClick()}).catch(uU.default)},n}return t.prototype.render=function(){return mv.default.createElement(dU.DefaultToolbarButton,{title:"Split Window",className:(0,lU.default)("split-button",fU.OptionalBlueprint.getIconClass(this.context.blueprintNamespace,"ADD_COLUMN_RIGHT")),onClick:this.split})},t.contextType=cU.MosaicWindowContext,t}(mv.default.PureComponent);no.SplitButton=hU;var pU=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vr,"__esModule",{value:!0});vr.DEFAULT_CONTROLS_WITHOUT_CREATION=vr.DEFAULT_CONTROLS_WITH_CREATION=void 0;var mn=pU(P),W_=Zi,G_=eo,gU=to,mU=no;vr.DEFAULT_CONTROLS_WITH_CREATION=mn.default.Children.toArray([mn.default.createElement(gU.ReplaceButton,null),mn.default.createElement(mU.SplitButton,null),mn.default.createElement(W_.ExpandButton,null),mn.default.createElement(G_.RemoveButton,null)]);vr.DEFAULT_CONTROLS_WITHOUT_CREATION=mn.default.Children.toArray([mn.default.createElement(W_.ExpandButton,null),mn.default.createElement(G_.RemoveButton,null)]);var ro={},vU=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),yU=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ro,"__esModule",{value:!0});ro.Separator=void 0;var vv=yU(P),wU=function(e){vU(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){return vv.default.createElement("div",{className:"separator"})},t}(vv.default.PureComponent);ro.Separator=wU;var V_=$&&$.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),el=$&&$.__assign||function(){return el=Object.assign||function(e){for(var t,n=1,r=arguments.length;nn.rootElement.offsetHeight?"row":"column";return Promise.resolve(o.apply(void 0,r)).then(function(d){return l.replaceWith(s,{direction:h,second:d,first:(0,AU.getAndAssertNodeAtPathExists)(u,s)})})},n.swap=function(){for(var r=[],a=0;a0,m=w?this.props.connectDragSource:function(y){return y};if(h){var _=m(h(this.props,o));return ne.default.createElement("div",{className:(0,Ia.default)("mosaic-window-toolbar",{draggable:w})},_)}var b=m(ne.default.createElement("div",{title:i,className:"mosaic-window-title"},i)),v=!(0,CU.default)(s);return ne.default.createElement("div",{className:(0,Ia.default)("mosaic-window-toolbar",{draggable:w})},b,ne.default.createElement("div",{className:(0,Ia.default)("mosaic-window-controls",Ua.OptionalBlueprint.getClasses("BUTTON_GROUP"))},v&&ne.default.createElement("button",{onClick:function(){return r.setAdditionalControlsOpen(!d)},className:(0,Ia.default)(Ua.OptionalBlueprint.getClasses(this.context.blueprintNamespace,"BUTTON","MINIMAL"),Ua.OptionalBlueprint.getIconClass(this.context.blueprintNamespace,"MORE"),(n={},n[Ua.OptionalBlueprint.getClasses(this.context.blueprintNamespace,"ACTIVE")]=d,n))},ne.default.createElement("span",{className:"control-text"},l)),v&&ne.default.createElement(PU.Separator,null),p))},t.prototype.checkCreateNode=function(){if(this.props.createNode==null)throw new Error("Operation invalid unless `createNode` is defined")},t.defaultProps={additionalControlButtonText:"More",draggable:!0,renderPreview:function(n){var r=n.title;return ne.default.createElement("div",{className:"mosaic-preview"},ne.default.createElement("div",{className:"mosaic-window-toolbar"},ne.default.createElement("div",{className:"mosaic-window-title"},r)),ne.default.createElement("div",{className:"mosaic-window-body"},ne.default.createElement("h4",null,r),ne.default.createElement(Ua.OptionalBlueprint.Icon,{className:"default-preview-icon",size:"large",icon:"APPLICATION"})))},renderToolbar:null},t.contextType=Gf.MosaicContext,t}(ne.default.Component);ha.InternalMosaicWindow=q_;function RU(e){var t=(0,ne.useContext)(Gf.MosaicContext),n=t.mosaicActions,r=t.mosaicId,a=(0,yv.useDrag)({type:_v.MosaicDragType.WINDOW,item:function(p){e.onDragStart&&e.onDragStart();var w=(0,EU.default)(function(){return n.hide(e.path)});return{mosaicId:r,hideTimer:w}},end:function(p,w){var m=p.hideTimer;window.clearTimeout(m);var _=e.path,b=w.getDropResult()||{},v=b.position,y=b.path;v!=null&&y!=null&&!(0,OU.default)(y,_)?(n.updateTree((0,kU.createDragToUpdates)(n.getRoot(),_,y,v)),e.onDragEnd&&e.onDragEnd("drop")):(n.updateTree([{path:(0,TU.default)(_),spec:{splitPercentage:{$set:void 0}}}]),e.onDragEnd&&e.onDragEnd("reset"))}}),i=a[1],o=a[2],s=(0,yv.useDrop)({accept:_v.MosaicDragType.WINDOW,collect:function(p){var w;return{isOver:p.isOver(),draggedMosaicId:(w=p.getItem())===null||w===void 0?void 0:w.mosaicId}}}),l=s[0],u=l.isOver,h=l.draggedMosaicId,d=s[1];return ne.default.createElement(q_,el({},e,{connectDragPreview:o,connectDragSource:i,connectDropTarget:d,isOver:u,draggedMosaicId:h}))}var $U=function(e){V_(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){return ne.default.createElement(RU,el({},this.props))},t}(ne.default.PureComponent);ha.MosaicWindow=$U;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_CONTROLS_WITHOUT_CREATION=e.DEFAULT_CONTROLS_WITH_CREATION=e.RemoveButton=e.SplitButton=e.ReplaceButton=e.ExpandButton=e.Separator=e.MosaicZeroState=e.DefaultToolbarButton=e.createDefaultToolbarButton=e.MosaicWindow=e.isParent=e.getPathToCorner=e.getOtherDirection=e.getOtherBranch=e.getNodeAtPath=e.getLeaves=e.getAndAssertNodeAtPathExists=e.Corner=e.createBalancedTreeFromLeaves=e.updateTree=e.createRemoveUpdate=e.createHideUpdate=e.createExpandUpdate=e.createDragToUpdates=e.buildSpecFromUpdate=e.MosaicWindowContext=e.MosaicContext=e.MosaicDragType=e.MosaicWithoutDragDropContext=e.Mosaic=void 0;/** + * @license + * Copyright 2019 Kevin Verdieck, originally developed at Palantir Technologies, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */var t=da;Object.defineProperty(e,"Mosaic",{enumerable:!0,get:function(){return t.Mosaic}}),Object.defineProperty(e,"MosaicWithoutDragDropContext",{enumerable:!0,get:function(){return t.MosaicWithoutDragDropContext}});var n=Tr;Object.defineProperty(e,"MosaicDragType",{enumerable:!0,get:function(){return n.MosaicDragType}});var r=Pe;Object.defineProperty(e,"MosaicContext",{enumerable:!0,get:function(){return r.MosaicContext}}),Object.defineProperty(e,"MosaicWindowContext",{enumerable:!0,get:function(){return r.MosaicWindowContext}});var a=je;Object.defineProperty(e,"buildSpecFromUpdate",{enumerable:!0,get:function(){return a.buildSpecFromUpdate}}),Object.defineProperty(e,"createDragToUpdates",{enumerable:!0,get:function(){return a.createDragToUpdates}}),Object.defineProperty(e,"createExpandUpdate",{enumerable:!0,get:function(){return a.createExpandUpdate}}),Object.defineProperty(e,"createHideUpdate",{enumerable:!0,get:function(){return a.createHideUpdate}}),Object.defineProperty(e,"createRemoveUpdate",{enumerable:!0,get:function(){return a.createRemoveUpdate}}),Object.defineProperty(e,"updateTree",{enumerable:!0,get:function(){return a.updateTree}});var i=Xi;Object.defineProperty(e,"createBalancedTreeFromLeaves",{enumerable:!0,get:function(){return i.createBalancedTreeFromLeaves}}),Object.defineProperty(e,"Corner",{enumerable:!0,get:function(){return i.Corner}}),Object.defineProperty(e,"getAndAssertNodeAtPathExists",{enumerable:!0,get:function(){return i.getAndAssertNodeAtPathExists}}),Object.defineProperty(e,"getLeaves",{enumerable:!0,get:function(){return i.getLeaves}}),Object.defineProperty(e,"getNodeAtPath",{enumerable:!0,get:function(){return i.getNodeAtPath}}),Object.defineProperty(e,"getOtherBranch",{enumerable:!0,get:function(){return i.getOtherBranch}}),Object.defineProperty(e,"getOtherDirection",{enumerable:!0,get:function(){return i.getOtherDirection}}),Object.defineProperty(e,"getPathToCorner",{enumerable:!0,get:function(){return i.getPathToCorner}}),Object.defineProperty(e,"isParent",{enumerable:!0,get:function(){return i.isParent}});var o=ha;Object.defineProperty(e,"MosaicWindow",{enumerable:!0,get:function(){return o.MosaicWindow}});var s=Oa;Object.defineProperty(e,"createDefaultToolbarButton",{enumerable:!0,get:function(){return s.createDefaultToolbarButton}}),Object.defineProperty(e,"DefaultToolbarButton",{enumerable:!0,get:function(){return s.DefaultToolbarButton}});var l=Ji;Object.defineProperty(e,"MosaicZeroState",{enumerable:!0,get:function(){return l.MosaicZeroState}});var u=ro;Object.defineProperty(e,"Separator",{enumerable:!0,get:function(){return u.Separator}});var h=Zi;Object.defineProperty(e,"ExpandButton",{enumerable:!0,get:function(){return h.ExpandButton}});var d=to;Object.defineProperty(e,"ReplaceButton",{enumerable:!0,get:function(){return d.ReplaceButton}});var p=no;Object.defineProperty(e,"SplitButton",{enumerable:!0,get:function(){return p.SplitButton}});var w=eo;Object.defineProperty(e,"RemoveButton",{enumerable:!0,get:function(){return w.RemoveButton}});var m=vr;Object.defineProperty(e,"DEFAULT_CONTROLS_WITH_CREATION",{enumerable:!0,get:function(){return m.DEFAULT_CONTROLS_WITH_CREATION}}),Object.defineProperty(e,"DEFAULT_CONTROLS_WITHOUT_CREATION",{enumerable:!0,get:function(){return m.DEFAULT_CONTROLS_WITHOUT_CREATION}})})(xf);var Sv={CENTER:"center",LEFT:"left",RIGHT:"right"},ao={NONE:"none",PRIMARY:"primary",SUCCESS:"success",WARNING:"warning",DANGER:"danger"},ve="bp5";typeof BLUEPRINT_NAMESPACE<"u"?ve=BLUEPRINT_NAMESPACE:typeof REACT_APP_BLUEPRINT_NAMESPACE<"u"&&(ve=REACT_APP_BLUEPRINT_NAMESPACE);var LU="".concat(ve,"-active"),MU="".concat(ve,"-align-left"),jU="".concat(ve,"-align-right"),FU="".concat(ve,"-disabled"),IU="".concat(ve,"-fill"),Vf="".concat(ve,"-large"),UU="".concat(ve,"-loading"),zU="".concat(ve,"-minimal"),HU="".concat(ve,"-outlined"),qf="".concat(ve,"-small");Fn(ao.PRIMARY);Fn(ao.SUCCESS);Fn(ao.WARNING);Fn(ao.DANGER);var WU="".concat(ve,"-text-overflow-ellipsis"),Xh="".concat(ve,"-button"),GU="".concat(Xh,"-spinner"),VU="".concat(Xh,"-text"),su="".concat(ve,"-spinner"),qU="".concat(su,"-animation"),KU="".concat(su,"-head"),YU="".concat(ve,"-no-spin"),XU="".concat(su,"-track"),Jh="".concat(ve,"-icon"),JU="".concat(Jh,"-standard"),QU="".concat(Jh,"-large");function BU(e){switch(e){case Sv.LEFT:return MU;case Sv.RIGHT:return jU;default:return}}function ZU(e){if(e!=null)return e.indexOf("".concat(ve,"-icon-"))===0?e:"".concat(ve,"-icon-").concat(e)}function Fn(e){if(!(e==null||e===ao.NONE))return"".concat(ve,"-intent-").concat(e.toLowerCase())}var Kf=function(e,t){return Kf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},Kf(e,t)};function K_(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Kf(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Pt=function(){return Pt=Object.assign||function(t){for(var n,r=1,a=arguments.length;r Classes.SMALL/LARGE are ignored if size prop is set.";function bv(e){return typeof NODE_ENV<"u"&&NODE_ENV===e}function nz(e,t,n){if(e==null)return e;if(n0){for(var a=0,i=r.timeoutIds;a0){for(var a=0,i=r.requestIds;a0&&n>="0"&&n<="9"?"_"+n+r:""+n.toUpperCase()+r}function fz(e,t){return t===void 0&&(t={}),J_(e,Xf({delimiter:"",transform:cz},t))}var Jf=function(){return Jf=Object.assign||function(t){for(var n,r=1,a=arguments.length;r{if(i=gz(i),i in Ov)return;Ov[i]=!0;const o=i.endsWith(".css"),s=o?'[rel="stylesheet"]':"";if(!!r)for(let h=a.length-1;h>=0;h--){const d=a[h];if(d.href===i&&(!o||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":pz,o||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),o)return new Promise((h,d)=>{u.addEventListener("load",h),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i})};var Vt=function(){return Vt=Object.assign||function(t){for(var n,r=1,a=arguments.length;r0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]import("./allPathsLoader-bea5d750.js"),[])];case 2:return[2,r.sent().allPathsLoader];case 3:return[4,xv(()=>import("./splitPathsBySizeLoader-bc96e91d.js"),[])];case 4:return[2,r.sent().splitPathsBySizeLoader]}})})}var Ja=function(){function e(){this.defaultLoader="split-by-size",this.loadedIconPaths16=new Map,this.loadedIconPaths20=new Map}return e.setLoaderOptions=function(t){t.loader!==void 0&&(Ar.defaultLoader=t.loader)},e.load=function(t,n,r){return Yr(this,void 0,void 0,function(){var a=this;return Xr(this,function(i){switch(i.label){case 0:return Array.isArray(t)||(t=[t]),[4,Promise.all(t.map(function(o){return a.loadImpl(o,n,r)}))];case 1:return i.sent(),[2]}})})},e.loadAll=function(t){return Yr(this,void 0,void 0,function(){var n,r=this;return Xr(this,function(a){return n=Object.values(Be),wz("[Blueprint] loading all icons",function(){return Yr(r,void 0,void 0,function(){return Xr(this,function(i){switch(i.label){case 0:return[4,Promise.all([this.load(n,Le.STANDARD,t),this.load(n,Le.LARGE,t)])];case 1:return i.sent(),[2]}})})}),[2]})})},e.getPaths=function(t,n){if(this.isValidIconName(t)){var r=n=Le.LARGE,_=m?Le.LARGE:Le.STANDARD,b="0 0 ".concat(_," ").concat(_),v=bz("iconTitle"),y=Vt({fill:a,height:l,role:"img",viewBox:b,width:l},u);return d===null?P.createElement("svg",Vt({"aria-labelledby":p?v:void 0,"data-icon":o,ref:t},y,w,{className:Mn(r,u==null?void 0:u.className)}),p&&P.createElement("title",{id:v},p),n):P.createElement(d,Vt(Vt({"aria-hidden":p?void 0:!0},w),{className:Mn(Nv,"".concat(Nv,"-").concat(o),r),ref:t,title:i}),P.createElement("svg",Vt({"data-icon":o},y,{className:u==null?void 0:u.className}),p&&P.createElement("title",null,p),n))});Z_.displayName="Blueprint5.SVGIconContainer";var ze=P.forwardRef(function(e,t){var n,r,a=e.autoLoad,i=e.className,o=e.color,s=e.icon,l=e.intent,u=e.tagName,h=e.svgProps,d=e.title,p=e.htmlTitle,w=Qh(e,["autoLoad","className","color","icon","intent","tagName","svgProps","title","htmlTitle"]),m=(r=(n=e.iconSize)!==null&&n!==void 0?n:e.size)!==null&&r!==void 0?r:Le.STANDARD,_=P.useState(function(){return typeof s=="string"?Ja.getPaths(s,m):void 0}),b=_[0],v=_[1];if(P.useEffect(function(){var x=!1;if(typeof s=="string"){var D=Ja.getPaths(s,m);D!==void 0?v(D):a?Ja.load(s,m).then(function(){x||v(Ja.getPaths(s,m))}).catch(function(k){console.error("[Blueprint] Icon '".concat(s,"' (").concat(m,"px) could not be loaded."),k)}):console.error("[Blueprint] Icon '".concat(s,"' (").concat(m,"px) is not loaded yet and autoLoad={false}, did you call Icons.load('").concat(s,"', ").concat(m,")?"))}return function(){x=!0}},[a,s,m]),s==null||typeof s=="boolean")return null;if(typeof s!="string")return s;if(b==null){var y=m===Le.STANDARD?JU:m===Le.LARGE?QU:void 0;return P.createElement(u,Pt(Pt({"aria-hidden":d?void 0:!0},tl(w)),{className:Mn(Jh,y,ZU(s),Fn(l),i),"data-icon":s,ref:t,title:p}))}else{var S=b.map(function(x,D){return P.createElement("path",{d:x,key:D,fillRule:"evenodd"})});return P.createElement(Z_,Pt({children:S,className:Mn(Fn(l),i),color:o,htmlTitle:p,iconName:s,ref:t,size:m,svgProps:h,tagName:u,title:d},tl(w)))}});ze.defaultProps={autoLoad:!0,tagName:"span"};ze.displayName="".concat(io,".Icon");var or;(function(e){e[e.SMALL=20]="SMALL",e[e.STANDARD=50]="STANDARD",e[e.LARGE=100]="LARGE"})(or||(or={}));var fn=45,kv="M 50,50 m 0,-".concat(fn," a ").concat(fn,",").concat(fn," 0 1 1 0,").concat(fn*2," a ").concat(fn,",").concat(fn," 0 1 1 0,-").concat(fn*2),za=280,Ez=10,Tz=4,Cz=16,Oz=function(e){K_(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.componentDidUpdate=function(n){n.value!==this.props.value&&this.forceUpdate()},t.prototype.render=function(){var n,r=this.props,a=r.className,i=r.intent,o=r.value,s=r.tagName,l=s===void 0?"div":s,u=Qh(r,["className","intent","value","tagName"]),h=this.getSize(),d=Mn(su,Fn(i),(n={},n[YU]=o!=null,n),a),p=Math.min(Cz,Tz*or.LARGE/h),w=za-za*(o==null?.25:nz(o,0,1));return P.createElement(l,Pt({"aria-label":"loading","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":o===void 0?void 0:o*100,className:d,role:"progressbar"},u),P.createElement(l,{className:qU},P.createElement("svg",{width:h,height:h,strokeWidth:p.toFixed(2),viewBox:this.getViewBox(p)},P.createElement("path",{className:XU,d:kv}),P.createElement("path",{className:KU,d:kv,pathLength:za,strokeDasharray:"".concat(za," ").concat(za),strokeDashoffset:w}))))},t.prototype.validateProps=function(n){var r=n.className,a=r===void 0?"":r,i=n.size;i!=null&&(a.indexOf(qf)>=0||a.indexOf(Vf)>=0)&&console.warn(tz)},t.prototype.getSize=function(){var n=this.props,r=n.className,a=r===void 0?"":r,i=n.size;return i==null?a.indexOf(qf)>=0?or.SMALL:a.indexOf(Vf)>=0?or.LARGE:or.STANDARD:Math.max(Ez,i)},t.prototype.getViewBox=function(n){var r=fn+n/2,a=(50-r).toFixed(2),i=(r*2).toFixed(2);return"".concat(a," ").concat(a," ").concat(i," ").concat(i)},t.displayName="".concat(io,".Spinner"),t}(oz),Bh=P.forwardRef(function(e,t){var n,r=e.children,a=e.tagName,i=a===void 0?"div":a,o=e.title,s=e.className,l=e.ellipsize,u=Qh(e,["children","tagName","title","className","ellipsize"]),h=P.useRef(),d=P.useMemo(function(){return X_(h,t)},[t]),p=P.useState(""),w=p[0],m=p[1],_=P.useState(),b=_[0],v=_[1];return P.useLayoutEffect(function(){var y;((y=h.current)===null||y===void 0?void 0:y.textContent)!=null&&(v(l&&h.current.scrollWidth>h.current.clientWidth),m(h.current.textContent))},[h,r,l]),P.createElement(i,Pt(Pt({},u),{className:Mn((n={},n[WU]=l,n),s),ref:d,title:o??(b?w:void 0)}),r)});Bh.defaultProps={ellipsize:!1};Bh.displayName="".concat(io,".Text");var bt=P.forwardRef(function(e,t){var n=eS(e,t);return P.createElement("button",Pt({type:"button"},tl(e),n),tS(e))});bt.displayName="".concat(io,".Button");var xz=P.forwardRef(function(e,t){var n=e.href,r=e.tabIndex,a=r===void 0?0:r,i=eS(e,t);return P.createElement("a",Pt({role:"button"},tl(e),i,{"aria-disabled":i.disabled,href:i.disabled?void 0:n,tabIndex:i.disabled?-1:a}),tS(e))});xz.displayName="".concat(io,".AnchorButton");function eS(e,t){var n,r=e.active,a=r===void 0?!1:r,i=e.alignText,o=e.fill,s=e.large,l=e.loading,u=l===void 0?!1:l,h=e.minimal,d=e.onBlur,p=e.onKeyDown,w=e.onKeyUp,m=e.outlined,_=e.small,b=e.tabIndex,v=e.disabled||u,y=P.useState(),S=y[0],x=y[1],D=P.useState(!1),k=D[0],E=D[1],C=P.useRef(null),O=P.useCallback(function(H){k&&E(!1),d==null||d(H)},[k,d]),N=P.useCallback(function(H){Ev(H)&&(H.preventDefault(),H.key!==S&&E(!0)),x(H.key),p==null||p(H)},[S,p]),L=P.useCallback(function(H){var lt;Ev(H)&&(E(!1),(lt=C.current)===null||lt===void 0||lt.click()),x(void 0),w==null||w(H)},[w]),U=Mn(Xh,(n={},n[LU]=!v&&(a||k),n[FU]=v,n[IU]=o,n[Vf]=s,n[UU]=u,n[zU]=h,n[HU]=m,n[qf]=_,n),BU(i),Fn(e.intent),e.className);return{className:U,disabled:v,onBlur:O,onClick:v?void 0:e.onClick,onFocus:v?void 0:e.onFocus,onKeyDown:N,onKeyUp:L,ref:X_(C,t),tabIndex:v?-1:b}}function tS(e){var t=e.children,n=e.ellipsizeText,r=e.icon,a=e.loading,i=e.rightIcon,o=e.text,s=e.textClassName,l=!Yf(o)||!Yf(t);return P.createElement(P.Fragment,null,a&&P.createElement(Oz,{key:"loading",className:GU,size:or.SMALL}),P.createElement(ze,{key:"leftIcon",icon:r}),l&&P.createElement(Bh,{key:"text",className:Mn(VU,s),ellipsize:n,tagName:"span"},o,t),P.createElement(ze,{key:"rightIcon",icon:i}))}const Pz="_stream_table_header_main_container_eshmy_1",Nz="_stream_table_header_fn_row_eshmy_7",Dz="_stream_table_right_container_eshmy_15",kz="_stream_table_title_eshmy_23",Az="_hideFieldBtn_eshmy_31",Rz="_dropdownMenu_eshmy_52",$z="_streamtable_vartype_panel_eshmy_107",Ha={stream_table_header_main_container:Pz,stream_table_header_fn_row:Nz,stream_table_right_container:Dz,stream_table_title:kz,hideFieldBtn:Az,dropdownMenu:Rz,streamtable_vartype_panel:$z};function Av(){P.useContext(it);const[e,t]=P.useState(!1);function n(){document.getElementById("hide-fields-list"),t(r=>!r)}return T.jsxs("div",{className:`${Ha.stream_table_header_main_container}`,children:[T.jsx("div",{className:`${Ha.stream_table_header_fn_row}`,children:T.jsxs("div",{id:"hide-fields-dropdown",className:`nav-link dropdown-toggle idaes-nav-button ${Ha.hideFieldBtn}`,"data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",onClick:n,children:[T.jsx("span",{children:"Hide Fields"}),T.jsx("ul",{id:"hide-fields-list",className:`dropdown-menu checkbox-menu ${Ha.dropdownMenu}`,style:{display:e?"block":"none"}})]})}),T.jsx("div",{id:"existing-variable-types",className:`streamtable-vartype-panel ${Ha.streamtable_vartype_panel}`})]})}const Lz="_flowsheet_variable_ul_15yu2_1",Mz="_variables_display_each_unit_label_15yu2_16",Rv={flowsheet_variable_ul:Lz,variables_display_each_unit_label:Mz};function jz(){const{cells:e,model:t,showVariable:n,setShowVariable:r}=P.useContext(it);console.log(e),console.log(t);let a="loading...";return e?a=e.map((o,s)=>{if(o.attrs&&o.attrs.label&&o.attrs.label.text)return T.jsxs("li",{id:`unit_name_${o}`,className:Rv.variables_display_each_unit_label,"data-open":"false","data-which-label":o.attrs.label.text,onClick:l=>Fz(l,r),children:[Object.keys(n).includes(o.attrs.label.text)?T.jsx(Fe,{icon:AT}):T.jsx(Fe,{icon:PT}),T.jsx("span",{children:o.attrs.label.text})]},o.attrs.label.text+s)}):a="Please check flowsheet Joint JS model, looks like it not contain any Cells",Object.keys(n).length>0,T.jsx(T.Fragment,{children:T.jsx("section",{className:"pd-md",children:T.jsx("ul",{className:`${Rv.flowsheet_variable_ul}`,children:a})})})}function Fz(e,t){const r=e.currentTarget.getAttribute("data-which-label");r?(console.log("here"),t(a=>{const i={...a};return i[r]?delete i[r]:i[r]=r,i})):console.error("Click event not receive which variable")}const Iz="_fvContainer_1oimy_1",Uz="_fv_1oimy_1",$v={fvContainer:Iz,fv:Uz};function zz(){const{panelState:e,cells:t}=P.useContext(it),n=e.fv.show;return T.jsxs(T.Fragment,{children:[T.jsx("h1",{children:{}.VITE_TEST}),n&&T.jsx("section",{id:"fvContainer",className:`${$v.fvContainer}`,children:T.jsx("div",{id:"fv",className:`${$v.fv}`})})]})}const Hz="_diagnosticsIssues_container_qe2yw_1",Wz="_diagnosticIssues_each_issue_qe2yw_11",Gz="_activated_qe2yw_36",Vo={diagnosticsIssues_container:Hz,diagnosticIssues_each_issue:Wz,activated:Gz};function Vz(e){let t=e.diagnosticData,n="Loading...";if(t){let r=t.diagnostics_toolbox_report.structural_report.warning[0],a=t.diagnostics_toolbox_report.numerical_report.warning[0],i={structural:r.length,numerical:a.length};const o=Object.keys(i);let s="";!e.whichIssue&&o.length>0?s=o[0]:s=e.whichIssue,n=o.map((l,u)=>T.jsx("div",{className:`${Vo.diagnosticIssues_each_issue} ${l==s?Vo.activated:Vo.deactivated}`,onClick:()=>e.toggleIssue(l),children:T.jsxs("p",{children:[l," issues",T.jsx("sup",{children:i[l]})]})},u))}else console.log("Diagnostic data is not pass from parent!");return T.jsx("div",{className:Vo.diagnosticsIssues_container,children:n})}const qz="_diagnostics_display_main_container_5xc1d_1",Kz="_diagnostic_display_each_section_container_5xc1d_7",Yz="_diagnostic_display_each_config_container_5xc1d_11",Xz="_diagnostics_display_each_severity_main_container_5xc1d_17",Jz="_diagnostic_display_each_severity_title_5xc1d_21",Qz="_diagnostic_display_diagnostic_content_container_5xc1d_31",Bz="_diagnostics_warning_caution_main_container_5xc1d_35",Zz="_diagnostics_display_pre_tag_5xc1d_39",eH="_diagnostics_warning_caution_display_container_5xc1d_53",tH="_warning_5xc1d_57",nH="_caution_5xc1d_65",rH="_diagnostic_display_each_issue_container_5xc1d_73",aH="_diagnostic_display_section_title_5xc1d_79",iH="_diagnostics_display_each_next_step_content_5xc1d_83",oH="_next_step_function_btn_5xc1d_96",sH="_copied_next_step_5xc1d_106",lH="_error_message_5xc1d_127",Q={diagnostics_display_main_container:qz,diagnostic_display_each_section_container:Kz,diagnostic_display_each_config_container:Yz,diagnostics_display_each_severity_main_container:Xz,diagnostic_display_each_severity_title:Jz,diagnostic_display_diagnostic_content_container:Qz,diagnostics_warning_caution_main_container:Bz,diagnostics_display_pre_tag:Zz,diagnostics_warning_caution_display_container:eH,warning:tH,caution:nH,diagnostic_display_each_issue_container:rH,diagnostic_display_section_title:aH,diagnostics_display_each_next_step_content:iH,next_step_function_btn:oH,copied_next_step:sH,error_message:lH};function uH(e){const{server_port:t,fv_id:n,diagnosticsNextStepsOutputState:r,setDiagnosticsNextStepsOutputState:a,diagnosticsRunFnNameListState:i,setDiagnosticsRunFnNameListState:o,setDiagnosticsRunnerDisplayState:s}=P.useContext(it),l=e.diagnosticData,u=e.whichIssue;let h="Loading jacobian condition...",d="Loading model statistics structural...",p="Loading warning...",w="Loading caution...",m="Loading suggested next step...",_=0,b=0,v=[];if(u&&l&&l.diagnostics_toolbox_report){const S=l.diagnostics_toolbox_report;h=T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:S.toolbox_jacobian_condation});const x=S.toolbox_model_statistics;x&&x.length>0?d=x.map((O,N)=>T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:O},`model_structural_statistics_content${N}_${O}`)):d=T.jsxs(T.Fragment,{children:[T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:" Model Statistics is not generate by diagnostics toolbox, please run: "}),T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:" dt = DiagnosticsToolbox(model)"}),T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:" dt.report_structural_issues()"}),T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:" dt.report_numerical_issues()"})]});const D=S[u=="structural"?"structural_report":"numerical_report"].warning[0];_=D.length,D&&D.length>0?p=D.map((O,N)=>(O=O.replace("WARNING","Warning"),T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:O},`eachWarning_${N}_${O}`))):p=T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:"No warning."});const k=S[u=="structural"?"structural_report":"numerical_report"].caution;b=k.length,k&&k.length>0?w=k.map((O,N)=>(O=O.replace("CAUTION","Caution"),T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:O},`eachCaution_${N}_${O}`))):w=T.jsx("pre",{className:Q.diagnostics_display_pre_tag,children:"No caution."});let E=!1;const C=S.next_steps[u=="structural"?"structural":"numerical"];C.length>0&&(E=!0,v=[...C]),E?m=C.map((O,N)=>T.jsxs("p",{className:`${Q.diagnostics_display_each_next_step_content}`,children:[T.jsx("span",{className:"function_name",children:O}),T.jsx("span",{className:`${Q.next_step_function_btn}`,onClick:()=>{y(O)},children:"Run"}),T.jsx("span",{className:`${Q.next_step_function_btn}`,onClick:cH,children:"Copy"})]},`diagnostics_suggested_next_step_${O}`)):(u=="structural"&&(m="Try to initialize / solve your model and then call report_numerical_issues()"),u=="numerical"&&(m="Try to initialize / solve your model and then call report_numerical_issues()"))}alert();async function y(S){try{if(!S)return;s(S);let x=S.replace("(","").replace(")","");const D=`http://localhost:${t}/run_diagnostic`,E=new URL(window.location.href).searchParams.get("id"),C={function_name:x,id:E},O=await Zn.put(D,C);console.log(O);const N=O.data;a(L=>{const U={...L};return U[S]||(U[S]=[]),U[S]&&U[S].push(N),U})}catch(x){ir("diagnosticFNRunError",!1,x.response.data.error),console.log(x);const D=document.getElementById("diagnosticsRunner_content_container");if(D){const k=` +
${x.response.data.error}
+                    
+ `;D.innerHTML+=k}}}return P.useEffect(()=>{for(let S=0;S{const k=D.map(E=>E);return k.push(x),k})}},[v]),T.jsxs("div",{className:`${Q.diagnostics_display_main_container}`,children:[T.jsxs("div",{className:Q.diagnostic_display_each_section_container,children:[T.jsx("p",{className:Q.diagnostic_display_section_title,children:"Model Statistics"}),u=="structural"||!u?d:h]}),T.jsxs("div",{className:Q.diagnostic_display_each_section_container,children:[T.jsxs("div",{className:Q.diagnostics_warning_caution_main_container,children:[T.jsxs("div",{className:`${Q.diagnostic_display_each_severity_title} ${Q.warning}`,children:["WARNINGS",T.jsx("span",{children:_})]}),T.jsx("div",{className:Q.diagnostics_warning_caution_display_container,children:p})]}),T.jsxs("div",{className:Q.diagnostics_warning_caution_main_container,children:[T.jsxs("div",{className:`${Q.diagnostic_display_each_severity_title} ${Q.caution}`,children:["CAUTIONS",T.jsx("span",{children:b})]}),T.jsx("div",{className:Q.diagnostics_warning_caution_display_container,children:w})]})]}),T.jsxs("div",{className:Q.diagnostic_display_each_section_container,children:[m!="Loading suggested next step..."&&T.jsx("p",{className:Q.diagnostic_display_section_title,children:"Suggested next steps:"}),T.jsx("div",{className:Q.diagnostic_display_diagnostic_content_container,children:m})]})]})}function cH(e){let t=e.currentTarget,n=t.parentElement.querySelector(".function_name");if(!n){console.error("There is an issue with click copy next step function");return}const r=n.textContent||"";navigator.clipboard.writeText(r).then(()=>{let a;a?clearTimeout(a):(t.innerText="Copied",a=setTimeout(()=>{t.innerText="Copy"},900))}).catch(a=>{console.error("Failed to copy text: ",a)})}function fH(){let{server_port:e,diagnosticsRefreshState:t}=P.useContext(it);const[n,r]=P.useState(null),[a,i]=P.useState("structural"),o=s=>{i(s)};return P.useEffect(()=>{const u=`http://localhost:49999/diagnostics?id=${new URL(window.location.href).searchParams.get("id")}`;(async d=>{try{const w=(await Zn.get(d)).data;ir("diagnosticRefresh",!0),r(w)}catch(p){console.error("Fetch diagnostic data error",p),ir("diagnosticRefresh",!1)}})(u)},[t]),T.jsxs(T.Fragment,{children:[T.jsx(Vz,{diagnosticData:n,toggleIssue:o,whichIssue:a}),T.jsx(uH,{diagnosticData:n,whichIssue:a})]})}const dH="_diagnosticsRunner_content_container_151kk_1",Lv={diagnosticsRunner_content_container:dH};function hH(){const{diagnosticsNextStepsOutputState:e,diagnosticsRunnerDisplayState:t,diagnosticsHistoryState:n,setDiagnosticsHistory:r}=P.useContext(it);let a="",i=0;return!t||t=="default"?a="Please select a function to check diagnostics result!":!e[t]||e[t][0].diagnostics_runner_result.length==0?a="Please run diagnostics function first!":e[t]&&e[t]&&(i=e[t].length,a=e[t].map((o,s)=>T.jsx(Sn.Fragment,{children:T.jsx("pre",{id:`diagnostics_log_${s}`,className:Lv.diagnostics_runner_output_pre,children:o.diagnostics_runner_result})},`diagnosticsRunnerDisplayContentContainerContent${s}`))),P.useEffect(()=>{r(o=>i)},[i]),T.jsx("div",{className:Lv.diagnosticsRunner_content_container,id:"diagnosticsRunner_content_container",style:{overflowY:"scroll"},children:a})}const pH="_diagnostics_log_header_history_btn_container_1ynrk_1",gH="_diagnostics_log_header_history_btn_1ynrk_1",mH={diagnostics_log_header_history_btn_container:pH,diagnostics_log_header_history_btn:gH};function vH(){const{diagnosticsHistoryState:e,setDiagnosticsHistory:t,viewInLogPanel:n}=P.useContext(it),[r,a]=P.useState(0),[i,o]=P.useState({hasPrevHistory:!1,hasNextHistory:!1});function s(){r>0&&a(d=>{let p=d;return p-=1,p}),window.location.hash=`#diagnostics_log_${r-1}`}function l(){r{let p=d;return p+=1,p})),window.location.hash=`#diagnostics_log_${r}`}function u(){if(r-1<=0){o(d=>{const p={...d};return p.hasPrevHistory=!1,p});return}if(r-1>=0){o(d=>{const p={...d};return p.hasPrevHistory=!0,p});return}}function h(){if(r==e){o(d=>{const p={...d};return p.hasNextHistory=!1,p});return}if(r{const p={...d};return p.hasNextHistory=!0,p});return}}return P.useEffect(()=>{window.location.hash=`diagnostics_log_${r}`},[n]),P.useEffect(()=>{u(),h(),a(()=>e),window.location.hash=`diagnostics_log_${r-1}`},[e]),P.useEffect(()=>{u(),h(),window.location.hash=`diagnostics_log_${r-1}`},[r]),T.jsxs("div",{id:"diagnostics_log_panel",className:`${mH.diagnostics_log_header_history_btn_container}`,children:[T.jsx(bt,{minimal:!0,disabled:!i.hasPrevHistory,onClick:()=>s(),children:T.jsx(ze,{icon:Be.UNDO,size:20})}),T.jsx(bt,{minimal:!0,disabled:!i.hasNextHistory,onClick:()=>l(),children:T.jsx(ze,{icon:Be.REDO,size:20})})]})}function Mv(){return T.jsx(T.Fragment,{children:T.jsx("div",{id:"stream-table",className:"idaes-container",style:{display:"block"},children:T.jsx("div",{id:"stream-table-container",className:"pd-md tableContainer",children:T.jsx("div",{id:"stream-table-data",className:"ag-theme-alpine"})})})})}const yH=()=>{const{panelState:e,setPanelState:t,fvHeaderState:n,setFvHeaderState:r,diagnosticsRunFnNameListState:a,setDiagnosticsRunnerDisplayState:i,viewInLogPanel:o,setViewInLogPanel:s,setDiagnosticsRefreshState:l}=P.useContext(it),u=n.isShowSteamName,h=n.isShowLabels,[d,p]=P.useState(E());function w(O){Object.keys(o).includes(O)&&s(N=>{const L={...N};return Object.keys(L).forEach(U=>{U==O?L[U]=!0:L[U]=!1}),L})}function m(){return e.diagnostics.show===!0&&o.diagnosticsLogs?T.jsx(hH,{}):e.diagnostics.show===!0&&o.streamTable===!0?T.jsx(Mv,{}):e.diagnostics.show===!1?T.jsx(Mv,{}):T.jsx(T.Fragment,{children:"Bottom panel display error cause by diagnosticsRunnerOrStreamTableDisplay"})}const _={components:T.jsx(jz,{}),flowsheet:T.jsx(zz,{}),diagnostics:T.jsx(fH,{}),streamTableAndDiagnostics:m()},b={components:"Components",flowsheet:"Diagram",diagnostics:"Diagnostics",diagnosticsRunner:"Diagnostics Runner",streamTable:"Stream Table",streamTableAndDiagnostics:"Diagnostics Logs"},v=(O,N)=>(jv(O,y,S,u,h,a,i,o,l),T.jsx(T.Fragment,{children:T.jsx(xf.MosaicWindow,{path:N,createNode:()=>"new",title:b[O],renderToolbar:(L,U)=>T.jsxs("div",{className:"mosaic_customized_toolbar_header",children:[T.jsx("div",{className:"mosaic_customized_toolbar_title_container",children:b[O]==b.streamTableAndDiagnostics?T.jsxs(T.Fragment,{children:[T.jsx("p",{onClick:()=>w("streamTable"),className:` + ${o.streamTable?"mosaic_header_toolbar_title_activate":"mosaic_header_toolbar_title_deactivate"} + mosaic_header_toolbar_title diagnostics_runner_panel_title + `,children:"Stream Table"}),T.jsx("p",{onClick:()=>{e.diagnostics.show&&w("diagnosticsLogs")},className:` + ${o.diagnosticsLogs?"mosaic_header_toolbar_title_activate":"mosaic_header_toolbar_title_deactivate"} + + ${!e.diagnostics.show&&"mosaic_header_tool_bar_fully_deactivate"} + mosaic_header_toolbar_title diagnostics_runner_panel_title + `,children:b[O]})]}):T.jsx("p",{className:"mosaic_header_toolbar_title",children:b[O]})}),T.jsx("div",{className:"mosaic_customized_toolbar_btn_container",children:jv(O,y,S,u,h,a,i,o,l)})]}),children:_[O]})}));function y(){r(O=>({...O,isShowSteamName:!O.isShowSteamName}))}function S(){r(O=>({...O,isShowLabels:!O.isShowLabels}))}function x(O){e.diagnostics.show&&D(O),localStorage.setItem("mosaicLayout",JSON.stringify(O)),p(()=>O)}function D(O){let N,L=localStorage.getItem("diagnosticsPanelParams");L?N=JSON.parse(L):N=k(),Object.keys(O).forEach(U=>{O[U]=="diagnostics"&&(N.direction=O.direction,N.splitPercentage=O.splitPercentage,N.diagnosticsPanelLocationInItem=U,N.diagnosticsPanelLocationInObj=void 0,N.diagnosticsPanelStayWith=void 0),typeof O[U]=="object"&&Object.keys(O[U]).forEach(H=>{if(O[U][H]=="diagnostics"){N.direction=O[U].direction,N.splitPercentage=O[U].splitPercentage;const lt=H=="first"?"second":"first";N.diagnosticsPanelStayWith=O[U][lt],N.diagnosticsPanelLocationInItem=U,N.diagnosticsPanelLocationInObj=H}})}),localStorage.setItem("diagnosticsPanelParams",JSON.stringify(N))}function k(){let O=localStorage.getItem("diagnosticsPanelParams");if(O)return JSON.parse(O);{const N={direction:"row",diagnosticsPanelParamsLocationInItem:"first",diagnosticsPanelLocationInObj:"second",diagnosticsPanelStayWith:"flowsheet",splitPercentage:55};return localStorage.setItem("diagnosticsPanelParams",JSON.stringify(N)),N}}function E(){let O;return e.diagnostics.show&&(O={direction:"column",first:{direction:"row",first:"flowsheet",second:"diagnostics",splitPercentage:55},second:"streamTableAndDiagnostics",splitPercentage:60}),e.diagnostics.show||(O={direction:"column",first:"flowsheet",second:"streamTableAndDiagnostics",splitPercentage:60}),O}function C(){try{if(k(),e.diagnostics.show){let O=JSON.parse(JSON.stringify(d));if(!JSON.stringify(d).includes("diagnostics")){localStorage.getItem("diagnosticsPanelParams")||k();const N=localStorage.getItem("diagnosticsPanelParams");if(N){let L=JSON.parse(N);if(!L.diagnosticsPanelLocationInObj){const U=L.diagnosticsPanelLocationInItem=="first"?"second":"first",H={direction:O.direction?O.direction:"row",splitPercentage:O.splitPercentage?O.splitPercentage:55,first:O.first?O.first:"flowsheet",second:O.second?O.second:"streamTableAndDiagnostics"};O.direction=L.direction?L.direction:"column",O.splitPercentage=L.splitPercentage?L.splitPercentage:55,O[L.diagnosticsPanelLocationInItem]="diagnostics",O[U]=H}if(L.diagnosticsPanelLocationInObj){const U=L.diagnosticsPanelStayWith?L.diagnosticsPanelStayWith:"flowsheet";let H=Object.keys(O).find(Or=>{if(O[Or]==U)return Or});const lt=U=="flowsheet"?"streamTableAndDiagnostics":"flowsheet",on=H=="first"?"second":"first";H||(H="first");const Ut={direction:L.direction?L.direction:"column",splitPercentage:O.splitPercentage?O.splitPercentage:55};Ut[H]=U,H==L.diagnosticsPanelLocationInObj&&(H=="first"?L.diagnosticsPanelLocationInObj="second":L.diagnosticsPanelLocationInObj="first"),Ut[L.diagnosticsPanelLocationInObj]="diagnostics",O=JSON.parse(JSON.stringify(O)),O[H]=Ut,O[on]=lt}}}return O}if(!e.diagnostics.show){let O=JSON.stringify(d),N=JSON.parse(O);return Object.keys(N).forEach(L=>{if(N[L]=="diagnostics"){delete N[L];const U=L=="first"?"second":"first",H=JSON.parse(JSON.stringify(N[U]));N.first=H.first,N.second=H.second,N.direction=H.direction,N.splitPercentage=H.splitPercentage}}),Object.keys(N).forEach(L=>{typeof N[L]=="object"&&Object.keys(N[L]).forEach(U=>{N[L][U]=="diagnostics"&&(delete N[L][U],N[L].first?N[L]=N[L].first:N[L]=N[L].second)})}),N}}catch{console.log("error in get mosaic layout rest layout"),E()}}return P.useEffect(()=>{p(()=>{const O=localStorage.getItem("mosaicLayout");return O?JSON.parse(O):E()})},[e.diagnostics.show]),T.jsx(xf.Mosaic,{renderTile:v,onChange:x,initialValue:C()})};function jv(e,t,n,r,a,i,o,s,l){switch(e){case"components":return T.jsxs("div",{className:"mosaic_toolbar_btn_container",children:[T.jsx(bt,{minimal:!0,children:T.jsx(ze,{icon:Be.MINIMIZE,size:20})}),T.jsx(bt,{minimal:!0,children:T.jsx(ze,{icon:Be.MAXIMIZE,size:20})}),T.jsx(bt,{minimal:!0,children:T.jsx(ze,{icon:Be.CROSS,size:20})})]});case"flowsheet":return T.jsxs("div",{className:"mosaic_toolbar_btn_container",children:[T.jsx(bt,{id:"zoom-in-btn",minimal:!0,children:T.jsx(ze,{icon:Be.ZOOM_IN,size:20})}),T.jsx(bt,{id:"zoom-out-btn",minimal:!0,children:T.jsx(ze,{icon:Be.ZOOM_OUT,size:20})}),T.jsx(bt,{id:"zoom-to-fit",minimal:!0,children:T.jsx(ze,{icon:Be.ZOOM_TO_FIT,size:20})}),T.jsxs(bt,{className:"mosaic_flowsheet_header_view",minimal:!0,children:[T.jsx(ze,{icon:Be.EYE_OPEN,size:20}),T.jsxs("ul",{className:"mosaic_dropdown_view",children:[T.jsxs("li",{id:"stream-names-toggle",onClick:t,"data-toggle":`${r}`,children:[r?T.jsx(Fe,{icon:Lg,className:"mosaic_toolbar_diagram_view_icon_stroke_only"}):T.jsx(Fe,{icon:Mg,className:"mosaic_toolbar_diagram_view_icon_stroke_only"}),T.jsx("span",{children:"Stream Name"})]}),T.jsxs("li",{id:"show-label-toggle",onClick:n,"data-toggle":a?"false":"true",children:[a?T.jsx(Fe,{icon:Lg,className:"mosaic_toolbar_diagram_view_icon_stroke_only"}):T.jsx(Fe,{icon:Mg,className:"mosaic_toolbar_diagram_view_icon_stroke_only"}),T.jsx("span",{children:"Labels"})]})]})]}),T.jsxs(bt,{className:"mosaic_flowsheet_header_download",minimal:!0,children:[T.jsx(ze,{icon:Be.BRING_DATA,size:20}),T.jsxs("ul",{id:"flowsheet_component_header_dropdown_container",className:"mosaic_dropdown_download",children:[T.jsx("li",{id:"headerExportImageBtn",children:"Export PNG"}),T.jsx("li",{id:"headerExportSvgBtn",children:"Export SVG"})]})]})]});case"diagnostics":let u=function(){l(p=>!p)};return T.jsxs("div",{className:"mosaic_toolbar_btn_container",children:[T.jsx("p",{className:"mosaic_diagnostic_toolbar_content",children:"BLOCK: FLOWSHEET"}),T.jsxs("div",{className:"mosaic_toolbar_btn_icon_with_text clickable_btn",onClick:()=>u(),children:[T.jsx(ze,{icon:Be.REFRESH,size:20}),T.jsx("span",{className:"mosaic_toolbar_btn_icon_with_text_text",children:"Refresh"})]})]});case"streamTable":return T.jsx("div",{className:"mosaic_toolbar_btn_container",children:T.jsx(Av,{})});case"streamTableAndDiagnostics":return T.jsxs("div",{className:"mosaic_toolbar_btn_container",children:[!s.diagnosticsLogs&&T.jsx(Av,{}),s.diagnosticsLogs&&T.jsx(vH,{})]});case"diagnosticsRunner":let h=function(p){o(p.currentTarget.value)};const d=i.map((p,w)=>T.jsx("option",{value:`${p}`,children:p},`diagnosticsRunnerSelection${p}`));return T.jsx("div",{className:"mosaic_toolbar_btn_container",children:T.jsxs("select",{name:"diagnosticsRunnerSelection",id:"",className:"mosaic_diagnosticsRunner_select",onChange:h,children:[T.jsx("option",{value:"default",children:"Select a function"}),d]})});default:return T.jsx(T.Fragment,{})}}function wH(e){return e.messageType&&e.messageType,T.jsx(T.Fragment,{children:T.jsx("div",{className:os.message_bar_container,id:"messageBarContainer"})})}const _H="_flowsheetWrapper_11hj9_1",SH={flowsheetWrapper:_H};function bH(){let{server_port:e,fv_id:t,panelState:n,viewInLogPanel:r}=P.useContext(it);const a=n.fv.show,i=n.diagnostics.show,o=n.streamTable.show;return P.useEffect(()=>{let s;return s?s=void 0:(e=="5173"?e=8e3:e=e,s=new MO(t,e,a,!1,o,r)),()=>{s&&typeof s.cleanToolBarEvent=="function"&&s.cleanToolBarEvent()}},[a,o,i,r]),T.jsxs("div",{id:"flowsheet-wrapper",className:SH.flowsheetWrapper,children:[T.jsx(yH,{}),T.jsx(wH,{})]})}function EH(){return T.jsxs("main",{id:"main",className:"main",children:[T.jsx(uC,{}),T.jsx(bH,{})]})}localStorage.getItem("appSetting")||localStorage.setItem("appSetting","{}");dc.createRoot(document.getElementById("root")).render(T.jsx(Nb,{children:T.jsx(EH,{})}));export{Le as I,Yr as _,Xr as a,xv as b,fz as p}; diff --git a/idaes_ui/fv/static/assets/splitPathsBySizeLoader-03cadb62.js b/idaes_ui/fv/static/assets/splitPathsBySizeLoader-03cadb62.js new file mode 100644 index 00000000..b9ae874c --- /dev/null +++ b/idaes_ui/fv/static/assets/splitPathsBySizeLoader-03cadb62.js @@ -0,0 +1 @@ +import{_ as o,a as _,b as i,p as c,I as u}from"./index-1868e2ad.js";var p=function(n,s){return o(void 0,void 0,void 0,function(){var a,r;return _(this,function(e){switch(e.label){case 0:return a=c(n),s!==u.STANDARD?[3,2]:[4,i(()=>import("./index-0aa86537.js").then(t=>t.I),[])];case 1:return r=e.sent(),[3,4];case 2:return[4,i(()=>import("./index-4387c2ca.js").then(t=>t.I),[])];case 3:r=e.sent(),e.label=4;case 4:return[2,r[a]]}})})};export{p as splitPathsBySizeLoader}; diff --git a/idaes_ui/fv/static/assets/splitPathsBySizeLoader-1e21a819.js b/idaes_ui/fv/static/assets/splitPathsBySizeLoader-1e21a819.js new file mode 100644 index 00000000..1705dc91 --- /dev/null +++ b/idaes_ui/fv/static/assets/splitPathsBySizeLoader-1e21a819.js @@ -0,0 +1 @@ +import{_ as o,a as _,b as i,p as c,I as u}from"./index-c6225f50.js";var p=function(n,s){return o(void 0,void 0,void 0,function(){var a,r;return _(this,function(e){switch(e.label){case 0:return a=c(n),s!==u.STANDARD?[3,2]:[4,i(()=>import("./index-0aa86537.js").then(t=>t.I),[])];case 1:return r=e.sent(),[3,4];case 2:return[4,i(()=>import("./index-4387c2ca.js").then(t=>t.I),[])];case 3:r=e.sent(),e.label=4;case 4:return[2,r[a]]}})})};export{p as splitPathsBySizeLoader}; diff --git a/idaes_ui/fv/static/assets/splitPathsBySizeLoader-25ffe49f.js b/idaes_ui/fv/static/assets/splitPathsBySizeLoader-25ffe49f.js new file mode 100644 index 00000000..8c9f2b9d --- /dev/null +++ b/idaes_ui/fv/static/assets/splitPathsBySizeLoader-25ffe49f.js @@ -0,0 +1 @@ +import{_ as o,a as _,b as i,p as c,I as u}from"./index-7034b54b.js";var p=function(n,s){return o(void 0,void 0,void 0,function(){var a,r;return _(this,function(e){switch(e.label){case 0:return a=c(n),s!==u.STANDARD?[3,2]:[4,i(()=>import("./index-0aa86537.js").then(t=>t.I),[])];case 1:return r=e.sent(),[3,4];case 2:return[4,i(()=>import("./index-4387c2ca.js").then(t=>t.I),[])];case 3:r=e.sent(),e.label=4;case 4:return[2,r[a]]}})})};export{p as splitPathsBySizeLoader}; diff --git a/idaes_ui/fv/static/assets/splitPathsBySizeLoader-2ead7e8a.js b/idaes_ui/fv/static/assets/splitPathsBySizeLoader-2ead7e8a.js new file mode 100644 index 00000000..4bac2e6c --- /dev/null +++ b/idaes_ui/fv/static/assets/splitPathsBySizeLoader-2ead7e8a.js @@ -0,0 +1 @@ +import{_ as o,a as _,b as i,p as c,I as u}from"./index-3f372414.js";var p=function(n,s){return o(void 0,void 0,void 0,function(){var a,r;return _(this,function(e){switch(e.label){case 0:return a=c(n),s!==u.STANDARD?[3,2]:[4,i(()=>import("./index-0aa86537.js").then(t=>t.I),[])];case 1:return r=e.sent(),[3,4];case 2:return[4,i(()=>import("./index-4387c2ca.js").then(t=>t.I),[])];case 3:r=e.sent(),e.label=4;case 4:return[2,r[a]]}})})};export{p as splitPathsBySizeLoader}; diff --git a/idaes_ui/fv/static/assets/splitPathsBySizeLoader-38b148c8.js b/idaes_ui/fv/static/assets/splitPathsBySizeLoader-38b148c8.js new file mode 100644 index 00000000..9da95682 --- /dev/null +++ b/idaes_ui/fv/static/assets/splitPathsBySizeLoader-38b148c8.js @@ -0,0 +1 @@ +import{_ as o,a as _,b as i,p as c,I as u}from"./index-65821143.js";var p=function(n,s){return o(void 0,void 0,void 0,function(){var a,r;return _(this,function(e){switch(e.label){case 0:return a=c(n),s!==u.STANDARD?[3,2]:[4,i(()=>import("./index-0aa86537.js").then(t=>t.I),[])];case 1:return r=e.sent(),[3,4];case 2:return[4,i(()=>import("./index-4387c2ca.js").then(t=>t.I),[])];case 3:r=e.sent(),e.label=4;case 4:return[2,r[a]]}})})};export{p as splitPathsBySizeLoader}; diff --git a/idaes_ui/fv/static/assets/splitPathsBySizeLoader-9e913c89.js b/idaes_ui/fv/static/assets/splitPathsBySizeLoader-9e913c89.js new file mode 100644 index 00000000..3b062981 --- /dev/null +++ b/idaes_ui/fv/static/assets/splitPathsBySizeLoader-9e913c89.js @@ -0,0 +1 @@ +import{_ as o,a as _,b as i,p as c,I as u}from"./index-056ff5da.js";var p=function(n,s){return o(void 0,void 0,void 0,function(){var a,r;return _(this,function(e){switch(e.label){case 0:return a=c(n),s!==u.STANDARD?[3,2]:[4,i(()=>import("./index-0aa86537.js").then(t=>t.I),[])];case 1:return r=e.sent(),[3,4];case 2:return[4,i(()=>import("./index-4387c2ca.js").then(t=>t.I),[])];case 3:r=e.sent(),e.label=4;case 4:return[2,r[a]]}})})};export{p as splitPathsBySizeLoader}; diff --git a/idaes_ui/fv/static/assets/splitPathsBySizeLoader-bc96e91d.js b/idaes_ui/fv/static/assets/splitPathsBySizeLoader-bc96e91d.js new file mode 100644 index 00000000..541dc33f --- /dev/null +++ b/idaes_ui/fv/static/assets/splitPathsBySizeLoader-bc96e91d.js @@ -0,0 +1 @@ +import{_ as o,a as _,b as i,p as c,I as u}from"./index-e9678d26.js";var p=function(n,s){return o(void 0,void 0,void 0,function(){var a,r;return _(this,function(e){switch(e.label){case 0:return a=c(n),s!==u.STANDARD?[3,2]:[4,i(()=>import("./index-0aa86537.js").then(t=>t.I),[])];case 1:return r=e.sent(),[3,4];case 2:return[4,i(()=>import("./index-4387c2ca.js").then(t=>t.I),[])];case 3:r=e.sent(),e.label=4;case 4:return[2,r[a]]}})})};export{p as splitPathsBySizeLoader}; diff --git a/idaes_ui/fv/static/index.html b/idaes_ui/fv/static/index.html index 312410ec..5d24b583 100644 --- a/idaes_ui/fv/static/index.html +++ b/idaes_ui/fv/static/index.html @@ -9,7 +9,7 @@ - +