yangsuite-ui-utils 1.0.38 → 1.0.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bundle/index.js +1 -1
  2. package/package.json +1 -1
package/bundle/index.js CHANGED
@@ -1 +1 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("react"),require("react-redux"),require("react-dom"),require("react-router-dom"));else if("function"==typeof define&&define.amd)define(["react","react-redux","react-dom","react-router-dom"],t);else{var n="object"==typeof exports?t(require("react"),require("react-redux"),require("react-dom"),require("react-router-dom")):t(e.React,e.ReactRedux,e.ReactDOM,e.ReactRouterDOM);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,((e,t,n,r)=>(()=>{"use strict";var o={505:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(601),o=n.n(r),i=n(314),a=n.n(i)()(o());a.push([e.id,".HyFbBphGt6qepS38skcf{margin:0}.s7pTtbvxYxcDQ4npHrc_{display:flex;justify-content:space-between;margin-bottom:10px}.JoNohx2vfjfO4vk0RgQv{margin-right:10px;margin-bottom:5px}.HqRfAd0zFvRzxcjS8pby{display:flex;justify-content:space-between;font-weight:bold;margin-bottom:5px}.fhtv7l3qA4CV3G5DjgVU{display:flex;align-items:center;cursor:pointer}.G6jgSs9HIw_JtWRV8Ztl{display:flex;flex-direction:row;align-items:center}.j1iYPjAT8zZqRl5imPye{margin-left:15px;display:flex;flex-direction:row;align-items:center;width:170px;justify-content:center}.m4CwEXArD_28wIRpmVFH{margin-right:20px;box-shadow:0;width:100%}.HrddoAZ7EB_YxiuunZJv{margin-top:20px;margin-bottom:10px}.pjLPEOsDZgmsRZ3NeoVJ{margin-bottom:20px}",""]),a.locals={tree:"HyFbBphGt6qepS38skcf","legend-container":"s7pTtbvxYxcDQ4npHrc_","legend-entry":"JoNohx2vfjfO4vk0RgQv","nodes-header":"HqRfAd0zFvRzxcjS8pby","nodes-name-column":"fhtv7l3qA4CV3G5DjgVU","nodes-input-container":"G6jgSs9HIw_JtWRV8Ztl","nodes-input-column":"j1iYPjAT8zZqRl5imPye","node-card":"m4CwEXArD_28wIRpmVFH","start-node-container":"HrddoAZ7EB_YxiuunZJv","end-node-container":"pjLPEOsDZgmsRZ3NeoVJ"};const c=a},673:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(601),o=n.n(r),i=n(314),a=n.n(i)()(o());a.push([e.id,".NjfsEUQPYHj27jVzr0Ku{display:flex;align-items:center;margin-bottom:5px;min-height:1.75em;justify-content:space-between}.oBs0jnwvNC1BSi5mUncI{display:flex;align-items:center;cursor:pointer}.kD0r_dVKRUUNr8HN9eDv{display:flex;align-items:center}.mzA3IR81XyFCrnZxLUJA{display:flex;align-items:center;margin:0;padding:0;font-weight:bold}.kmKQCn8S8sNmeX2rSrkF{margin:0;padding:0 .2em;user-select:none}.hQs5LKz4IxNRqmcIek8q{cursor:pointer;width:14px;height:14px;margin-right:2px}.CJqlx2o37rpFq6R4yzeH{cursor:pointer;width:14px;height:14px;margin-right:2px}.UMl21WeEPz42u9oG_9hA{user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none}.gm_te5SQpjKBzXk3gAGU{margin-left:15px;display:flex;flex-direction:row;align-items:center;width:170px;justify-content:center}.pxnVo64k0KCjYisa3272{padding-left:5px}.I7_ffHus8j59pEvLuCr1{margin:0px 2px}",""]),a.locals={node:"NjfsEUQPYHj27jVzr0Ku","node-information":"oBs0jnwvNC1BSi5mUncI","node-inputs":"kD0r_dVKRUUNr8HN9eDv","node-icon":"mzA3IR81XyFCrnZxLUJA","node-name":"kmKQCn8S8sNmeX2rSrkF","node-caret-down-icon":"hQs5LKz4IxNRqmcIek8q","node-caret-right-icon":"CJqlx2o37rpFq6R4yzeH","no-select":"UMl21WeEPz42u9oG_9hA","node-input":"gm_te5SQpjKBzXk3gAGU","icon-container":"pxnVo64k0KCjYisa3272","node-badge":"I7_ffHus8j59pEvLuCr1"};const c=a},891:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(601),o=n.n(r),i=n(314),a=n.n(i)()(o());a.push([e.id,".nav_top_list{list-style-type:none;margin:0;padding:0;overflow:hidden;font-size:1.15rem;font-weight:var(--hbr-font-weight-normal, 400)}.nav_item:hover{border-left:5px solid var(--selected-border-color)}.nav_item_active{border-left:5px solid var(--selected-border-color)}.nav_item_inactive{border-left:5px solid rgba(0,0,0,0)}.nav_top_list{list-style-type:none;margin:0;padding:0;overflow:hidden;font-size:1.15rem;font-weight:var(--hbr-font-weight-normal, 400)}.nav_item:hover{border-left:5px solid var(--selected-border-color)}.nav_item_active{border-left:5px solid var(--selected-border-color)}.nav_item_inactive{border-left:5px solid rgba(0,0,0,0)}.app{min-height:100%;min-width:100%}body{margin:0;background-color:#fff;flex-direction:column;overflow:hidden;width:100%;height:100%;line-height:inherit}:root{--dark-bg: linear-gradient(90deg, rgb(55, 60, 66) 0.29%, rgb(15, 17, 20) 100%, rgb(15, 18, 20) 100%);--reverse-dark-bg: linear-gradient(0deg, rgb(15, 17, 20) 0.29%, rgb(55, 60, 66) 100%, rgb(55, 60, 66) 100%);--selected-border-color: #58b5fc}.loader{display:flex;justify-content:center;align-items:center;z-index:1000;flex:1}",""]);const c=a},314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var c=0;c<this.length;c++){var l=this[c][0];null!=l&&(a[l]=!0)}for(var s=0;s<e.length;s++){var u=[].concat(e[s]);r&&a[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},601:e=>{e.exports=function(e){return e[1]}},72:e=>{var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var i={},a=[],c=0;c<e.length;c++){var l=e[c],s=r.base?l[0]+r.base:l[0],u=i[s]||0,d="".concat(s," ").concat(u);i[s]=u+1;var f=n(d),p={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==f)t[f].references++,t[f].updater(p);else{var m=o(p,r);r.byIndex=c,t.splice(c,0,{identifier:d,updater:m,references:1})}a.push(d)}return a}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var i=r(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var c=n(i[a]);t[c].references--}for(var l=r(e,o),s=0;s<i.length;s++){var u=n(i[s]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}i=l}}},659:e=>{var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},56:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},12:t=>{t.exports=e},33:e=>{e.exports=n},417:e=>{e.exports=t},34:e=>{e.exports=r}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,exports:{}};return o[e](n,n.exports,a),n.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nc=void 0;var c={};return(()=>{a.r(c),a.d(c,{Header:()=>uo,Layout:()=>vo,Loader:()=>ho,NavBar:()=>kr,NavItem:()=>Q,Tree:()=>yi,closeNav:()=>vr,deletePersistedTreeState:()=>Lo,reducers:()=>gi,showNav:()=>Er,toggleNav:()=>wr,useCustomNavigate:()=>K});var e={};a.r(e),a.d(e,{hasBrowserEnv:()=>Qe,hasStandardBrowserEnv:()=>Ye,hasStandardBrowserWebWorkerEnv:()=>tt});var t=a(12),n=a.n(t),r=a(72),o=a.n(r),i=a(825),l=a.n(i),s=a(659),u=a.n(s),d=a(56),f=a.n(d),p=a(540),m=a.n(p),h=a(113),y=a.n(h),g=a(891),b={};b.styleTagTransform=y(),b.setAttributes=f(),b.insert=u().bind(null,"head"),b.domAPI=l(),b.insertStyleElement=m(),o()(g.A,b),g.A&&g.A.locals&&g.A.locals;var v=a(417),E=a(33),w=a.n(E),x=Object.create,k=Object.defineProperty,O=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,S=Object.getPrototypeOf,_=Object.prototype.hasOwnProperty,A=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),N=(e,t,n)=>(n=null!=e?x(S(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of j(t))!_.call(e,n)&&undefined!==n&&k(e,n,{get:()=>t[n],enumerable:!(r=O(t,n))||r.enumerable});return e})(!t&&e&&e.__esModule?n:k(n,"default",{value:e,enumerable:!0}),e)),P=A(((e,t)=>{t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"})),R=A(((e,t)=>{var n=P();function r(){}function o(){}o.resetWarningCache=r,t.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var c=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 c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var i={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:o,resetWarningCache:r};return i.PropTypes=i,i}})),C=A(((e,t)=>{t.exports=R()()})),L=N(C()),T=!!(typeof window<"u"&&window.document&&window.document.createElement),I=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),F=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),I(t,[{key:"componentWillUnmount",value:function(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}},{key:"render",value:function(){return T?(!this.props.node&&!this.defaultNode&&(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),w().createPortal(this.props.children,this.props.node||this.defaultNode)):null}}]),t}(n().Component);F.propTypes={children:L.default.node.isRequired,node:L.default.any};var D=F,M=N(C()),z=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),U=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),z(t,[{key:"componentDidMount",value:function(){this.renderPortal()}},{key:"componentDidUpdate",value:function(e){this.renderPortal()}},{key:"componentWillUnmount",value:function(){w().unmountComponentAtNode(this.defaultNode||this.props.node),this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null,this.portal=null}},{key:"renderPortal",value:function(e){!this.props.node&&!this.defaultNode&&(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode));var t=this.props.children;"function"==typeof this.props.children.type&&(t=n().cloneElement(this.props.children)),this.portal=w().unstable_renderSubtreeIntoContainer(this,t,this.props.node||this.defaultNode)}},{key:"render",value:function(){return null}}]),t}(n().Component),B=U;U.propTypes={children:M.default.node.isRequired,node:M.default.any};var W=w().createPortal?D:B,H="hbr__default-portal",q=function(){if("undefined"!=typeof window&&window.document&&window.document.createElement){let e=document.querySelector(`.${H}`)||Object.assign(document.createElement("div"),{className:H});return document.body.appendChild(e),e}return null}(),V=e=>class extends t.Component{constructor(){super(...arguments),this.element=null,this.state={reactProps:{}}}componentDidMount(){this.syncProps(this.props);let e={};if(this.element&&Object.getPrototypeOf(this.element)){let t=Object.getPrototypeOf(this.element);for(let[n,r]of Object.entries(this.props))n in t||"string"==typeof r&&(e[n]=r)}this.setState({reactProps:e})}componentDidUpdate(){this.syncProps(this.props)}syncProps(e){let t=this.element;t&&Object.keys(e).forEach((n=>{if("children"!==n&&"style"!==n){if("className"===n&&"string"==typeof e[n])return void(t[n]=e[n]+" hydrated");0===n.indexOf("on")&&n[2]===n[2].toUpperCase()?this.syncEvent(n.substring(2),e[n]):t[n]=e[n]}}))}syncEvent(e,t){let n=this.element;if(!n)return;let r=e[0].toLowerCase()+e.substring(1),o=n.__events||(n.__events={}),i=o[r];i&&n.removeEventListener(r,i),t&&n.addEventListener(r,o[r]=function(e){t.call(this,e)})}createPortal(){let e=this.props.target,t=null;return e&&"string"==typeof e&&"body"!==e?t=document.querySelector(e):e instanceof HTMLElement&&(t=e),t||(t=q),n().createElement(W,{node:t},this.props.children)}render(){let t="hbr-portal"===e?this.createPortal():this.props.children;return n().createElement(e,Object.assign(this.state.reactProps,{ref:e=>{this.element=e},style:this.props.style}),t)}},Z=e=>e.map((e=>V(e))),J=a(34);function K(){var e=(0,v.useSelector)((function(e){return e.nav.currentPlugin})),t=(0,J.useNavigate)();return function(n,r){console.log(r);var o=n.split("/")[0];r||o!==e?(console.log("server"),window.location.href="/".concat(n)):(console.log("client"),t("/".concat(n)))}}function $(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return X(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?X(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var G=$(Z(["hbr-icon"]),1)[0];function Q(e){var r=e.link,o=e.name,i=e.arrow,a=void 0!==i&&i,c=e.children,l=(e.owner,e.level),s=void 0===l?1:l,u=e.force_redirect,d=void 0!==u&&u,f=$((0,t.useState)(!0),2),p=f[0],m=f[1],h=K(),y={navItemIcon:{marginLeft:"auto",paddingRight:"10px"},navItem:{paddingLeft:"".concat(10*s,"px"),cursor:"pointer",display:"flex",paddingTop:"10px"}};return n().createElement("li",null,n().createElement("div",{className:"nav_item"+(p?" nav_item_inactive":" nav_item_active"),style:y.navItem,onClick:function(e){e.preventDefault(),void 0!==r?h(r,d):m(!p)}},o,a&&(p?n().createElement(G,{name:"caret-down",style:y.navItemIcon,width:"20px",height:"20px"}):n().createElement(G,{name:"caret-up",style:y.navItemIcon,width:"20px",height:"20px"}))),c&&!p&&n().createElement("ul",{className:"nav_top_list"},c))}function Y(e,t){return function(){return e.apply(t,arguments)}}const{toString:ee}=Object.prototype,{getPrototypeOf:te}=Object,ne=(re=Object.create(null),e=>{const t=ee.call(e);return re[t]||(re[t]=t.slice(8,-1).toLowerCase())});var re;const oe=e=>(e=e.toLowerCase(),t=>ne(t)===e),ie=e=>t=>typeof t===e,{isArray:ae}=Array,ce=ie("undefined"),le=oe("ArrayBuffer"),se=ie("string"),ue=ie("function"),de=ie("number"),fe=e=>null!==e&&"object"==typeof e,pe=e=>{if("object"!==ne(e))return!1;const t=te(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},me=oe("Date"),he=oe("File"),ye=oe("Blob"),ge=oe("FileList"),be=oe("URLSearchParams");function ve(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),ae(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function Ee(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const we="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,xe=e=>!ce(e)&&e!==we,ke=(Oe="undefined"!=typeof Uint8Array&&te(Uint8Array),e=>Oe&&e instanceof Oe);var Oe;const je=oe("HTMLFormElement"),Se=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),_e=oe("RegExp"),Ae=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ve(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},Ne="abcdefghijklmnopqrstuvwxyz",Pe="0123456789",Re={DIGIT:Pe,ALPHA:Ne,ALPHA_DIGIT:Ne+Ne.toUpperCase()+Pe},Ce=oe("AsyncFunction"),Le={isArray:ae,isArrayBuffer:le,isBuffer:function(e){return null!==e&&!ce(e)&&null!==e.constructor&&!ce(e.constructor)&&ue(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||ue(e.append)&&("formdata"===(t=ne(e))||"object"===t&&ue(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&le(e.buffer),t},isString:se,isNumber:de,isBoolean:e=>!0===e||!1===e,isObject:fe,isPlainObject:pe,isUndefined:ce,isDate:me,isFile:he,isBlob:ye,isRegExp:_e,isFunction:ue,isStream:e=>fe(e)&&ue(e.pipe),isURLSearchParams:be,isTypedArray:ke,isFileList:ge,forEach:ve,merge:function e(){const{caseless:t}=xe(this)&&this||{},n={},r=(r,o)=>{const i=t&&Ee(n,o)||o;pe(n[i])&&pe(r)?n[i]=e(n[i],r):pe(r)?n[i]=e({},r):ae(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&ve(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(ve(t,((t,r)=>{n&&ue(t)?e[r]=Y(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(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)},toFlatObject:(e,t,n,r)=>{let o,i,a;const c={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||c[a]||(t[a]=e[a],c[a]=!0);e=!1!==n&&te(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:ne,kindOfTest:oe,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(ae(e))return e;let t=e.length;if(!de(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:je,hasOwnProperty:Se,hasOwnProp:Se,reduceDescriptors:Ae,freezeMethods:e=>{Ae(e,((t,n)=>{if(ue(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];ue(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return ae(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:Ee,global:we,isContextDefined:xe,ALPHABET:Re,generateString:(e=16,t=Re.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&ue(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(fe(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=ae(e)?[]:{};return ve(e,((e,t)=>{const i=n(e,r+1);!ce(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:Ce,isThenable:e=>e&&(fe(e)||ue(e))&&ue(e.then)&&ue(e.catch)};function Te(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}Le.inherits(Te,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:Le.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Ie=Te.prototype,Fe={};["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=>{Fe[e]={value:e}})),Object.defineProperties(Te,Fe),Object.defineProperty(Ie,"isAxiosError",{value:!0}),Te.from=(e,t,n,r,o,i)=>{const a=Object.create(Ie);return Le.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Te.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const De=Te;function Me(e){return Le.isPlainObject(e)||Le.isArray(e)}function ze(e){return Le.endsWith(e,"[]")?e.slice(0,-2):e}function Ue(e,t,n){return e?e.concat(t).map((function(e,t){return e=ze(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Be=Le.toFlatObject(Le,{},null,(function(e){return/^is[A-Z]/.test(e)})),We=function(e,t,n){if(!Le.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Le.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Le.isUndefined(t[e])}))).metaTokens,o=n.visitor||s,i=n.dots,a=n.indexes,c=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Le.isSpecCompliantForm(t);if(!Le.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Le.isDate(e))return e.toISOString();if(!c&&Le.isBlob(e))throw new De("Blob is not supported. Use a Buffer instead.");return Le.isArrayBuffer(e)||Le.isTypedArray(e)?c&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function s(e,n,o){let c=e;if(e&&!o&&"object"==typeof e)if(Le.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Le.isArray(e)&&function(e){return Le.isArray(e)&&!e.some(Me)}(e)||(Le.isFileList(e)||Le.endsWith(n,"[]"))&&(c=Le.toArray(e)))return n=ze(n),c.forEach((function(e,r){!Le.isUndefined(e)&&null!==e&&t.append(!0===a?Ue([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!Me(e)||(t.append(Ue(o,n,i),l(e)),!1)}const u=[],d=Object.assign(Be,{defaultVisitor:s,convertValue:l,isVisitable:Me});if(!Le.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Le.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),Le.forEach(n,(function(n,i){!0===(!(Le.isUndefined(n)||null===n)&&o.call(t,n,Le.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t};function He(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function qe(e,t){this._pairs=[],e&&We(e,this,t)}const Ve=qe.prototype;Ve.append=function(e,t){this._pairs.push([e,t])},Ve.toString=function(e){const t=e?function(t){return e.call(this,t,He)}:He;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const Ze=qe;function Je(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ke(e,t,n){if(!t)return e;const r=n&&n.encode||Je,o=n&&n.serialize;let i;if(i=o?o(t,n):Le.isURLSearchParams(t)?t.toString():new Ze(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const $e=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Le.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Xe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ge={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ze,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Qe="undefined"!=typeof window&&"undefined"!=typeof document,Ye=(et="undefined"!=typeof navigator&&navigator.product,Qe&&["ReactNative","NativeScript","NS"].indexOf(et)<0);var et;const tt="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,nt={...e,...Ge},rt=function(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),c=o>=e.length;return i=!i&&Le.isArray(r)?r.length:i,c?(Le.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a):(r[i]&&Le.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&Le.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a)}if(Le.isFormData(e)&&Le.isFunction(e.entries)){const n={};return Le.forEachEntry(e,((e,r)=>{t(function(e){return Le.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null},ot={transitional:Xe,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Le.isObject(e);if(o&&Le.isHTMLForm(e)&&(e=new FormData(e)),Le.isFormData(e))return r?JSON.stringify(rt(e)):e;if(Le.isArrayBuffer(e)||Le.isBuffer(e)||Le.isStream(e)||Le.isFile(e)||Le.isBlob(e))return e;if(Le.isArrayBufferView(e))return e.buffer;if(Le.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return We(e,new nt.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return nt.isNode&&Le.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=Le.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return We(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Le.isString(e))try{return(0,JSON.parse)(e),Le.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ot.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&Le.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw De.from(e,De.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:nt.classes.FormData,Blob:nt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Le.forEach(["delete","get","head","post","put","patch"],(e=>{ot.headers[e]={}}));const it=ot,at=Le.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"]),ct=Symbol("internals");function lt(e){return e&&String(e).trim().toLowerCase()}function st(e){return!1===e||null==e?e:Le.isArray(e)?e.map(st):String(e)}function ut(e,t,n,r,o){return Le.isFunction(r)?r.call(this,t,n):(o&&(t=n),Le.isString(t)?Le.isString(r)?-1!==t.indexOf(r):Le.isRegExp(r)?r.test(t):void 0:void 0)}class dt{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=lt(t);if(!o)throw new Error("header name must be a non-empty string");const i=Le.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=st(e))}const i=(e,t)=>Le.forEach(e,((e,n)=>o(e,n,t)));return Le.isPlainObject(e)||e instanceof this.constructor?i(e,t):Le.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&at[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t):null!=e&&o(t,e,n),this}get(e,t){if(e=lt(e)){const n=Le.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(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}(e);if(Le.isFunction(t))return t.call(this,e,n);if(Le.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=lt(e)){const n=Le.findKey(this,e);return!(!n||void 0===this[n]||t&&!ut(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=lt(e)){const o=Le.findKey(n,e);!o||t&&!ut(0,n[o],o,t)||(delete n[o],r=!0)}}return Le.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!ut(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Le.forEach(this,((r,o)=>{const i=Le.findKey(n,o);if(i)return t[i]=st(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=st(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Le.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Le.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[ct]=this[ct]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=lt(e);t[r]||(function(e,t){const n=Le.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return Le.isArray(e)?e.forEach(r):r(e),this}}dt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Le.reduceDescriptors(dt.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Le.freezeMethods(dt);const ft=dt;function pt(e,t){const n=this||it,r=t||n,o=ft.from(r.headers);let i=r.data;return Le.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function mt(e){return!(!e||!e.__CANCEL__)}function ht(e,t,n){De.call(this,null==e?"canceled":e,De.ERR_CANCELED,t,n),this.name="CanceledError"}Le.inherits(ht,De,{__CANCEL__:!0});const yt=ht,gt=nt.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Le.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Le.isString(r)&&a.push("path="+r),Le.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.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:()=>null,remove(){}};function bt(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const vt=nt.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=Le.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function Et(e,t){let n=0;const r=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(c){const l=Date.now(),s=r[a];o||(o=l),n[i]=c,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const f=s&&l-s;return f?Math.round(1e3*d/f):void 0}}(50,250);return o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,c=i-n,l=r(c);n=i;const s={loaded:i,total:a,progress:a?i/a:void 0,bytes:c,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:o};s[t?"download":"upload"]=!0,e(s)}}const wt={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const o=ft.from(e.headers).normalize();let i,a,{responseType:c,withXSRFToken:l}=e;function s(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}if(Le.isFormData(r))if(nt.hasStandardBrowserEnv||nt.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if(!1!==(a=o.getContentType())){const[e,...t]=a?a.split(";").map((e=>e.trim())).filter(Boolean):[];o.setContentType([e||"multipart/form-data",...t].join("; "))}let u=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+n))}const d=bt(e.baseURL,e.url);function f(){if(!u)return;const r=ft.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new De("Request failed with status code "+n.status,[De.ERR_BAD_REQUEST,De.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),s()}),(function(e){n(e),s()}),{data:c&&"text"!==c&&"json"!==c?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:r,config:e,request:u}),u=null}if(u.open(e.method.toUpperCase(),Ke(d,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(f)},u.onabort=function(){u&&(n(new De("Request aborted",De.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new De("Network Error",De.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||Xe;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new De(t,r.clarifyTimeoutError?De.ETIMEDOUT:De.ECONNABORTED,e,u)),u=null},nt.hasStandardBrowserEnv&&(l&&Le.isFunction(l)&&(l=l(e)),l||!1!==l&&vt(d))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&gt.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in u&&Le.forEach(o.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),Le.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),c&&"json"!==c&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",Et(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",Et(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=t=>{u&&(n(!t||t.type?new yt(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));const p=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(d);p&&-1===nt.protocols.indexOf(p)?n(new De("Unsupported protocol "+p+":",De.ERR_BAD_REQUEST,e)):u.send(r||null)}))}};Le.forEach(wt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const xt=e=>`- ${e}`,kt=e=>Le.isFunction(e)||null===e||!1===e,Ot=e=>{e=Le.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!kt(n)&&(r=wt[(t=String(n)).toLowerCase()],void 0===r))throw new De(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(xt).join("\n"):" "+xt(e[0]):"as no adapter specified";throw new De("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function jt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new yt(null,e)}function St(e){return jt(e),e.headers=ft.from(e.headers),e.data=pt.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ot(e.adapter||it.adapter)(e).then((function(t){return jt(e),t.data=pt.call(e,e.transformResponse,t),t.headers=ft.from(t.headers),t}),(function(t){return mt(t)||(jt(e),t&&t.response&&(t.response.data=pt.call(e,e.transformResponse,t.response),t.response.headers=ft.from(t.response.headers))),Promise.reject(t)}))}const _t=e=>e instanceof ft?{...e}:e;function At(e,t){t=t||{};const n={};function r(e,t,n){return Le.isPlainObject(e)&&Le.isPlainObject(t)?Le.merge.call({caseless:n},e,t):Le.isPlainObject(t)?Le.merge({},t):Le.isArray(t)?t.slice():t}function o(e,t,n){return Le.isUndefined(t)?Le.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!Le.isUndefined(t))return r(void 0,t)}function a(e,t){return Le.isUndefined(t)?Le.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function c(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c,headers:(e,t)=>o(_t(e),_t(t),!0)};return Le.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);Le.isUndefined(a)&&i!==c||(n[r]=a)})),n}const Nt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Nt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Pt={};Nt.transitional=function(e,t,n){function r(e,t){return"[Axios v1.6.8] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new De(r(o," has been removed"+(t?" in "+t:"")),De.ERR_DEPRECATED);return t&&!Pt[o]&&(Pt[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};const Rt={assertOptions:function(e,t,n){if("object"!=typeof e)throw new De("options must be an object",De.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new De("option "+i+" must be "+n,De.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new De("Unknown option "+i,De.ERR_BAD_OPTION)}},validators:Nt},Ct=Rt.validators;class Lt{constructor(e){this.defaults=e,this.interceptors={request:new $e,response:new $e}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=At(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Rt.assertOptions(n,{silentJSONParsing:Ct.transitional(Ct.boolean),forcedJSONParsing:Ct.transitional(Ct.boolean),clarifyTimeoutError:Ct.transitional(Ct.boolean)},!1),null!=r&&(Le.isFunction(r)?t.paramsSerializer={serialize:r}:Rt.assertOptions(r,{encode:Ct.function,serialize:Ct.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Le.merge(o.common,o[t.method]);o&&Le.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=ft.concat(i,o);const a=[];let c=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(c=c&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let s;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!c){const e=[St.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,s=Promise.resolve(t);d<u;)s=s.then(e[d++],e[d++]);return s}u=a.length;let f=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{s=St.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,u=l.length;d<u;)s=s.then(l[d++],l[d++]);return s}getUri(e){return Ke(bt((e=At(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}Le.forEach(["delete","get","head","options"],(function(e){Lt.prototype[e]=function(t,n){return this.request(At(n||{},{method:e,url:t,data:(n||{}).data}))}})),Le.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(At(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Lt.prototype[e]=t(),Lt.prototype[e+"Form"]=t(!0)}));const Tt=Lt;class It{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new yt(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new It((function(t){e=t})),cancel:e}}}const Ft=It,Dt={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(Dt).forEach((([e,t])=>{Dt[t]=e}));const Mt=Dt,zt=function e(t){const n=new Tt(t),r=Y(Tt.prototype.request,n);return Le.extend(r,Tt.prototype,n,{allOwnKeys:!0}),Le.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(At(t,n))},r}(it);zt.Axios=Tt,zt.CanceledError=yt,zt.CancelToken=Ft,zt.isCancel=mt,zt.VERSION="1.6.8",zt.toFormData=We,zt.AxiosError=De,zt.Cancel=zt.CanceledError,zt.all=function(e){return Promise.all(e)},zt.spread=function(e){return function(t){return e.apply(null,t)}},zt.isAxiosError=function(e){return Le.isObject(e)&&!0===e.isAxiosError},zt.mergeConfig=At,zt.AxiosHeaders=ft,zt.formToJSON=e=>rt(Le.isHTMLForm(e)?new FormData(e):e),zt.getAdapter=Ot,zt.HttpStatusCode=Mt,zt.default=zt;const Ut=zt;var Bt=Symbol.for("immer-nothing"),Wt=Symbol.for("immer-draftable"),Ht=Symbol.for("immer-state");function qt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Vt=Object.getPrototypeOf;function Zt(e){return!!e&&!!e[Ht]}function Jt(e){return!!e&&($t(e)||Array.isArray(e)||!!e[Wt]||!!e.constructor?.[Wt]||en(e)||tn(e))}var Kt=Object.prototype.constructor.toString();function $t(e){if(!e||"object"!=typeof e)return!1;const t=Vt(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===Kt}function Xt(e,t){0===Gt(e)?Reflect.ownKeys(e).forEach((n=>{t(n,e[n],e)})):e.forEach(((n,r)=>t(r,n,e)))}function Gt(e){const t=e[Ht];return t?t.type_:Array.isArray(e)?1:en(e)?2:tn(e)?3:0}function Qt(e,t){return 2===Gt(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Yt(e,t,n){const r=Gt(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function en(e){return e instanceof Map}function tn(e){return e instanceof Set}function nn(e){return e.copy_||e.base_}function rn(e,t){if(en(e))return new Map(e);if(tn(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=$t(e);if(!0===t||"class_only"===t&&!n){const t=Object.getOwnPropertyDescriptors(e);delete t[Ht];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){const o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Vt(e),t)}{const t=Vt(e);if(null!==t&&n)return{...e};const r=Object.create(t);return Object.assign(r,e)}}function on(e,t=!1){return cn(e)||Zt(e)||!Jt(e)||(Gt(e)>1&&(e.set=e.add=e.clear=e.delete=an),Object.freeze(e),t&&Object.entries(e).forEach((([e,t])=>on(t,!0)))),e}function an(){qt(2)}function cn(e){return Object.isFrozen(e)}var ln,sn={};function un(e){const t=sn[e];return t||qt(0),t}function dn(){return ln}function fn(e,t){t&&(un("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function pn(e){mn(e),e.drafts_.forEach(yn),e.drafts_=null}function mn(e){e===ln&&(ln=e.parent_)}function hn(e){return ln={drafts_:[],parent_:ln,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function yn(e){const t=e[Ht];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function gn(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[Ht].modified_&&(pn(t),qt(4)),Jt(e)&&(e=bn(t,e),t.parent_||En(t,e)),t.patches_&&un("Patches").generateReplacementPatches_(n[Ht].base_,e,t.patches_,t.inversePatches_)):e=bn(t,n,[]),pn(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Bt?e:void 0}function bn(e,t,n){if(cn(t))return t;const r=t[Ht];if(!r)return Xt(t,((o,i)=>vn(e,r,t,o,i,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return En(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let o=t,i=!1;3===r.type_&&(o=new Set(t),t.clear(),i=!0),Xt(o,((o,a)=>vn(e,r,t,o,a,n,i))),En(e,t,!1),n&&e.patches_&&un("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function vn(e,t,n,r,o,i,a){if(Zt(o)){const a=bn(e,o,i&&t&&3!==t.type_&&!Qt(t.assigned_,r)?i.concat(r):void 0);if(Yt(n,r,a),!Zt(a))return;e.canAutoFreeze_=!1}else a&&n.add(o);if(Jt(o)&&!cn(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;bn(e,o),t&&t.scope_.parent_||"symbol"==typeof r||!Object.prototype.propertyIsEnumerable.call(n,r)||En(e,o)}}function En(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&on(t,n)}var wn={get(e,t){if(t===Ht)return e;const n=nn(e);if(!Qt(n,t))return function(e,t,n){const r=On(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}(e,n,t);const r=n[t];return e.finalized_||!Jt(r)?r:r===kn(e.base_,t)?(Sn(e),e.copy_[t]=_n(r,e)):r},has:(e,t)=>t in nn(e),ownKeys:e=>Reflect.ownKeys(nn(e)),set(e,t,n){const r=On(nn(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=kn(nn(e),t),o=r?.[Ht];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,r)&&(void 0!==n||Qt(e.base_,t)))return!0;Sn(e),jn(e)}return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==kn(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,Sn(e),jn(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=nn(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){qt(11)},getPrototypeOf:e=>Vt(e.base_),setPrototypeOf(){qt(12)}},xn={};function kn(e,t){const n=e[Ht];return(n?nn(n):e)[t]}function On(e,t){if(!(t in e))return;let n=Vt(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Vt(n)}}function jn(e){e.modified_||(e.modified_=!0,e.parent_&&jn(e.parent_))}function Sn(e){e.copy_||(e.copy_=rn(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function _n(e,t){const n=en(e)?un("MapSet").proxyMap_(e,t):tn(e)?un("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:dn(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=wn;n&&(o=[r],i=xn);const{revoke:a,proxy:c}=Proxy.revocable(o,i);return r.draft_=c,r.revoke_=a,c}(e,t);return(t?t.scope_:dn()).drafts_.push(n),n}function An(e){return Zt(e)||qt(10),Nn(e)}function Nn(e){if(!Jt(e)||cn(e))return e;const t=e[Ht];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=rn(e,t.scope_.immer_.useStrictShallowCopy_)}else n=rn(e,!0);return Xt(n,((e,t)=>{Yt(n,e,Nn(t))})),t&&(t.finalized_=!1),n}Xt(wn,((e,t)=>{xn[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),xn.deleteProperty=function(e,t){return xn.set.call(this,e,t,void 0)},xn.set=function(e,t,n){return wn.set.call(this,e[0],t,n,e[0])};var Pn=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"==typeof e&&"function"!=typeof t){const n=t;t=e;const r=this;return function(e=n,...o){return r.produce(e,(e=>t.call(this,e,...o)))}}let r;if("function"!=typeof t&&qt(6),void 0!==n&&"function"!=typeof n&&qt(7),Jt(e)){const o=hn(this),i=_n(e,void 0);let a=!0;try{r=t(i),a=!1}finally{a?pn(o):mn(o)}return fn(o,n),gn(r,o)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===Bt&&(r=void 0),this.autoFreeze_&&on(r,!0),n){const t=[],o=[];un("Patches").generateReplacementPatches_(e,r,t,o),n(t,o)}return r}qt(1)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...n)=>this.produceWithPatches(t,(t=>e(t,...n)));let n,r;return[this.produce(e,t,((e,t)=>{n=e,r=t})),n,r]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Jt(e)||qt(8),Zt(e)&&(e=An(e));const t=hn(this),n=_n(e,void 0);return n[Ht].isManual_=!0,mn(t),n}finishDraft(e,t){const n=e&&e[Ht];n&&n.isManual_||qt(9);const{scope_:r}=n;return fn(r,t),gn(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=un("Patches").applyPatches_;return Zt(e)?r(e,t):this.produce(e,(e=>r(e,t)))}},Rn=Pn.produce;Pn.produceWithPatches.bind(Pn),Pn.setAutoFreeze.bind(Pn),Pn.setUseStrictShallowCopy.bind(Pn),Pn.applyPatches.bind(Pn),Pn.createDraft.bind(Pn),Pn.finishDraft.bind(Pn);var Cn=e=>Array.isArray(e)?e:[e];Symbol(),Object.getPrototypeOf({});var Ln="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}},Tn=0,In=1;function Fn(){return{s:Tn,v:void 0,o:null,p:null}}function Dn(e,t={}){let n=Fn();const{resultEqualityCheck:r}=t;let o,i=0;function a(){let t=n;const{length:a}=arguments;for(let e=0,n=a;e<n;e++){const n=arguments[e];if("function"==typeof n||"object"==typeof n&&null!==n){let e=t.o;null===e&&(t.o=e=new WeakMap);const r=e.get(n);void 0===r?(t=Fn(),e.set(n,t)):t=r}else{let e=t.p;null===e&&(t.p=e=new Map);const r=e.get(n);void 0===r?(t=Fn(),e.set(n,t)):t=r}}const c=t;let l;if(t.s===In?l=t.v:(l=e.apply(null,arguments),i++),c.s=In,r){const e=o?.deref?.()??o;null!=e&&r(e,l)&&(l=e,0!==i&&i--),o="object"==typeof l&&null!==l||"function"==typeof l?new Ln(l):l}return c.v=l,l}return a.clearCache=()=>{n=Fn(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function Mn(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,o=0,i={},a=e.pop();"object"==typeof a&&(i=a,a=e.pop()),function(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}(a,`createSelector expects an output function after the inputs, but received: [${typeof a}]`);const c={...n,...i},{memoize:l,memoizeOptions:s=[],argsMemoize:u=Dn,argsMemoizeOptions:d=[],devModeChecks:f={}}=c,p=Cn(s),m=Cn(d),h=function(e){const t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every((e=>"function"==typeof e))){const n=e.map((e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e)).join(", ");throw new TypeError(`${t}[${n}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}(e),y=l((function(){return r++,a.apply(null,arguments)}),...p),g=u((function(){o++;const e=function(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}(h,arguments);return t=y.apply(null,e),t}),...m);return Object.assign(g,{resultFunc:a,memoizedResultFunc:y,dependencies:h,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:l,argsMemoize:u})};return Object.assign(r,{withTypes:()=>r}),r}var zn=Mn(Dn),Un=Object.assign(((e,t=zn)=>{!function(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e);return t(n.map((t=>e[t])),((...e)=>e.reduce(((e,t,r)=>(e[n[r]]=t,e)),{})))}),{withTypes:()=>Un});function Bn(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(or(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>function(e){return function(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}(e)&&"type"in e&&"string"==typeof e.type}(t)&&t.type===e,n}function Wn(e){return Jt(e)?Rn(e,(()=>{})):e}function Hn(e,t,n){if(e.has(t)){let r=e.get(t);return n.update&&(r=n.update(r,t,e),e.set(t,r)),r}if(!n.insert)throw new Error(or(10));const r=n.insert(t,e);return e.set(t,r),r}((...e)=>{const t=Mn(...e),n=Object.assign(((...e)=>{const n=t(...e),r=(e,...t)=>n(Zt(e)?An(e):e,...t);return Object.assign(r,n),r}),{withTypes:()=>n})})(Dn),"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__,"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__,Symbol.species;function qn(e){const t={},n=[];let r;const o={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(or(28));if(r in t)throw new Error(or(29));return t[r]=n,o},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),o),addDefaultCase:e=>(r=e,o)};return e(o),[t,n,r]}"undefined"!=typeof window&&window.requestAnimationFrame&&window.requestAnimationFrame;var Vn=(e=21)=>{let t="",n=e;for(;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},Zn=Symbol.for("rtk-slice-createasyncthunk");function Jn(e,t){return`${e}/${t}`}function Kn({creators:e}={}){const t=e?.asyncThunk?.[Zn];return function(e){const{name:n,reducerPath:r=n}=e;if(!n)throw new Error(or(11));const o=("function"==typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},i=Object.keys(o),a={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(e,t){const n="string"==typeof e?e:e.type;if(!n)throw new Error(or(12));if(n in a.sliceCaseReducersByType)throw new Error(or(13));return a.sliceCaseReducersByType[n]=t,c},addMatcher:(e,t)=>(a.sliceMatchers.push({matcher:e,reducer:t}),c),exposeAction:(e,t)=>(a.actionCreators[e]=t,c),exposeCaseReducer:(e,t)=>(a.sliceCaseReducersByName[e]=t,c)};function l(){const[t={},n=[],r]="function"==typeof e.extraReducers?qn(e.extraReducers):[e.extraReducers],o={...t,...a.sliceCaseReducersByType};return function(e,t){let i,[c,l,s]=qn((e=>{for(let t in o)e.addCase(t,o[t]);for(let t of a.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)}));if(function(e){return"function"==typeof e}(e))i=()=>Wn(e());else{const t=Wn(e);i=()=>t}function u(e=i(),t){let n=[c[t.type],...l.filter((({matcher:e})=>e(t))).map((({reducer:e})=>e))];return 0===n.filter((e=>!!e)).length&&(n=[s]),n.reduce(((e,n)=>{if(n){if(Zt(e)){const r=n(e,t);return void 0===r?e:r}if(Jt(e))return Rn(e,(e=>n(e,t)));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw new Error(or(9))}return r}}return e}),e)}return u.getInitialState=i,u}(e.initialState)}i.forEach((r=>{const i=o[r],a={reducerName:r,type:Jn(n,r),createNotation:"function"==typeof e.reducers};!function(e){return"asyncThunk"===e._reducerDefinitionType}(i)?function({type:e,reducerName:t,createNotation:n},r,o){let i,a;if("reducer"in r){if(n&&!function(e){return"reducerWithPrepare"===e._reducerDefinitionType}(r))throw new Error(or(17));i=r.reducer,a=r.prepare}else i=r;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?Bn(e,a):Bn(e))}(a,i,c):function({type:e,reducerName:t},n,r,o){if(!o)throw new Error(or(18));const{payloadCreator:i,fulfilled:a,pending:c,rejected:l,settled:s,options:u}=n,d=o(e,i,u);r.exposeAction(t,d),a&&r.addCase(d.fulfilled,a),c&&r.addCase(d.pending,c),l&&r.addCase(d.rejected,l),s&&r.addMatcher(d.settled,s),r.exposeCaseReducer(t,{fulfilled:a||Gn,pending:c||Gn,rejected:l||Gn,settled:s||Gn})}(a,i,c,t)}));const s=e=>e,u=new Map;let d;function f(e,t){return d||(d=l()),d(e,t)}function p(){return d||(d=l()),d.getInitialState()}function m(t,n=!1){function r(e){let r=e[t];return void 0===r&&n&&(r=p()),r}function o(t=s){const r=Hn(u,n,{insert:()=>new WeakMap});return Hn(r,t,{insert:()=>{const r={};for(const[o,i]of Object.entries(e.selectors??{}))r[o]=$n(i,t,p,n);return r}})}return{reducerPath:t,getSelectors:o,get selectors(){return o(r)},selectSlice:r}}const h={name:n,reducer:f,actions:a.actionCreators,caseReducers:a.sliceCaseReducersByName,getInitialState:p,...m(r),injectInto(e,{reducerPath:t,...n}={}){const o=t??r;return e.inject({reducerPath:o,reducer:f},n),{...h,...m(o,!0)}}};return h}}function $n(e,t,n,r){function o(o,...i){let a=t(o);return void 0===a&&r&&(a=n()),e(a,...i)}return o.unwrapped=e,o}var Xn=Kn();function Gn(){}var{assign:Qn}=Object,Yn="listenerMiddleware",er=e=>{let{type:t,actionCreator:n,matcher:r,predicate:o,effect:i}=e;if(t)o=Bn(t).match;else if(n)t=n.type,o=n.match;else if(r)o=r;else if(!o)throw new Error(or(21));return((e,t)=>{if("function"!=typeof e)throw new Error(or(32))})(i),{predicate:o,type:t,effect:i}},tr=Object.assign((e=>{const{type:t,predicate:n,effect:r}=er(e);return{id:Vn(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(or(22))}}}),{withTypes:()=>tr}),nr=Object.assign(Bn(`${Yn}/add`),{withTypes:()=>nr}),rr=(Bn(`${Yn}/removeAll`),Object.assign(Bn(`${Yn}/remove`),{withTypes:()=>rr}));function or(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}function ir(e){return ir="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ir(e)}function ar(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ar(Object(n),!0).forEach((function(t){lr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ar(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lr(e,t,n){var r;return r=function(e,t){if("object"!=ir(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=ir(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==ir(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Symbol.for("rtk-state-proxy-original");var sr=Xn({name:"nav",initialState:{visible:!1,menu:[],plugins:{},currentPlugin:"yangsuite",userInfo:null},reducers:{navClosed:function(e){e.visible=!1},navShowed:function(e){e.visible=!0},navToggled:function(e){e.visible=!e.visible},menuFetched:function(e,t){t.payload.menu&&(e.menu=t.payload.menu,e.plugins=t.payload.plugins)},currentPluginSet:function(e,t){e.currentPlugin=t.payload},userinfoFetched:function(e,t){null!==t.payload?e.userInfo=cr(cr({},t.payload),{},{loggedIn:!0}):e.userInfo={loggedIn:!1}},userLoggedIn:function(e,t){e.userInfo=cr(cr({},t.payload),{},{loggedIn:!0})},userLogout:function(e){e.userInfo={loggedIn:!1}},userLoginError:function(e,t){e.userInfo={loggedIn:!1,error:t.payload}}}}),ur=sr.actions,dr=ur.navClosed,fr=ur.navShowed,pr=ur.navToggled,mr=ur.menuFetched,hr=ur.currentPluginSet,yr=ur.userinfoFetched,gr=(ur.userLoggedIn,ur.userLogout);ur.userLoginError;const br=sr.reducer;var vr=function(){return function(e){e(dr())}},Er=function(){return function(e){e(fr())}},wr=function(){return function(e){e(pr())}},xr=function(e){return function(t){t(hr(e))}};function kr(){var e=(0,v.useSelector)((function(e){return e.nav.visible})),r=(0,v.useSelector)((function(e){return e.nav.menu})),o=(0,v.useDispatch)();(0,t.useEffect)((function(){var e=window.location.pathname.split("/")[1];""===e&&(e="yangsuite"),o(xr(e))}),[]);var i={navbarContainer:{position:"relative",display:e?"block":"none"},navbarMenu:{backgroundClip:"padding-box",color:"var(--hbr-color-header-text-in, #f7f7f7)",height:"100%",background:"var(--reverse-dark-bg)",width:"clamp(250px, 15vw, 20vw)"},navbarMenuItem:{}};return n().createElement("div",{style:i.navbarContainer},n().createElement("ul",{style:i.navbarMenu,className:"nav_top_list"},r.map((function(e,t){return 0===e.children.length?n().createElement(Q,{key:t,name:e.name,link:e.url,owner:e.owner}):n().createElement(Q,{key:t,name:e.name,arrow:!0},e.children.map((function(e,t){return n().createElement(Q,{key:t,name:e.name,link:e.url,owner:e.owner,level:2,force_redirect:e.force_redirect})})))}))))}var Or=(0,t.createContext)({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),jr=function(e,t,n){var r=n.get(e);return r?r(t):(console.error('Unsupported icon weight. Choose from "thin", "light", "regular", "bold", "fill", or "duotone".'),null)};function Sr(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var _r=(0,t.forwardRef)((function(e,r){var o=e.alt,i=e.color,a=e.size,c=e.weight,l=e.mirrored,s=e.children,u=e.renderPath,d=Sr(e,["alt","color","size","weight","mirrored","children","renderPath"]),f=(0,t.useContext)(Or),p=f.color,m=void 0===p?"currentColor":p,h=f.size,y=f.weight,g=void 0===y?"regular":y,b=f.mirrored,v=void 0!==b&&b,E=Sr(f,["color","size","weight","mirrored"]);return n().createElement("svg",Object.assign({ref:r,xmlns:"http://www.w3.org/2000/svg",width:null!=a?a:h,height:null!=a?a:h,fill:null!=i?i:m,viewBox:"0 0 256 256",transform:l||v?"scale(-1, 1)":void 0},E,d),!!o&&n().createElement("title",null,o),s,n().createElement("rect",{width:"256",height:"256",fill:"none"}),u(null!=c?c:g,null!=i?i:m))}));_r.displayName="IconBase";const Ar=_r;var Nr=new Map;Nr.set("bold",(function(e){return n().createElement(n().Fragment,null,n().createElement("line",{x1:"40",y1:"128",x2:"216",y2:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),n().createElement("line",{x1:"40",y1:"64",x2:"216",y2:"64",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),n().createElement("line",{x1:"40",y1:"192",x2:"216",y2:"192",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))})),Nr.set("duotone",(function(e){return n().createElement(n().Fragment,null,n().createElement("line",{x1:"40",y1:"128",x2:"216",y2:"128",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),n().createElement("line",{x1:"40",y1:"64",x2:"216",y2:"64",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),n().createElement("line",{x1:"40",y1:"192",x2:"216",y2:"192",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))})),Nr.set("fill",(function(){return n().createElement(n().Fragment,null,n().createElement("path",{d:"M216,120H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"}),n().createElement("path",{d:"M40,72H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Z"}),n().createElement("path",{d:"M216,184H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"}))})),Nr.set("light",(function(e){return n().createElement(n().Fragment,null,n().createElement("line",{x1:"40",y1:"128",x2:"216",y2:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),n().createElement("line",{x1:"40",y1:"64",x2:"216",y2:"64",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),n().createElement("line",{x1:"40",y1:"192",x2:"216",y2:"192",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))})),Nr.set("thin",(function(e){return n().createElement(n().Fragment,null,n().createElement("line",{x1:"40",y1:"128",x2:"216",y2:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),n().createElement("line",{x1:"40",y1:"64",x2:"216",y2:"64",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),n().createElement("line",{x1:"40",y1:"192",x2:"216",y2:"192",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))})),Nr.set("regular",(function(e){return n().createElement(n().Fragment,null,n().createElement("line",{x1:"40",y1:"128",x2:"216",y2:"128",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),n().createElement("line",{x1:"40",y1:"64",x2:"216",y2:"64",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),n().createElement("line",{x1:"40",y1:"192",x2:"216",y2:"192",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}));var Pr=function(e,t){return jr(e,t,Nr)},Rr=(0,t.forwardRef)((function(e,t){return n().createElement(Ar,Object.assign({ref:t},e,{renderPath:Pr}))}));Rr.displayName="List";const Cr=Rr;var Lr=new Map;Lr.set("bold",(function(e){return n().createElement(n().Fragment,null,n().createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),n().createElement("circle",{cx:"128",cy:"176",r:"16"}),n().createElement("path",{d:"M128,136a28,28,0,1,0-28-28",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))})),Lr.set("duotone",(function(e){return n().createElement(n().Fragment,null,n().createElement("circle",{cx:"128",cy:"128",r:"96",opacity:"0.2"}),n().createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),n().createElement("circle",{cx:"128",cy:"180",r:"12"}),n().createElement("path",{d:"M128,144v-8a28,28,0,1,0-28-28",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))})),Lr.set("fill",(function(){return n().createElement(n().Fragment,null,n().createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.2,104.2,0,0,0,128,24Zm0,168a12,12,0,1,1,12-12A12,12,0,0,1,128,192Zm8-48.9v.9a8,8,0,0,1-16,0v-8a8,8,0,0,1,8-8,20,20,0,1,0-20-20,8,8,0,0,1-16,0,36,36,0,1,1,44,35.1Z"}))})),Lr.set("light",(function(e){return n().createElement(n().Fragment,null,n().createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),n().createElement("circle",{cx:"128",cy:"180",r:"10"}),n().createElement("path",{d:"M128,144v-8a28,28,0,1,0-28-28",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))})),Lr.set("thin",(function(e){return n().createElement(n().Fragment,null,n().createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),n().createElement("circle",{cx:"128",cy:"180",r:"8"}),n().createElement("path",{d:"M128,144v-8a28,28,0,1,0-28-28",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))})),Lr.set("regular",(function(e){return n().createElement(n().Fragment,null,n().createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),n().createElement("circle",{cx:"128",cy:"180",r:"12"}),n().createElement("path",{d:"M128,144v-8a28,28,0,1,0-28-28",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}));var Tr=function(e,t){return jr(e,t,Lr)},Ir=(0,t.forwardRef)((function(e,t){return n().createElement(Ar,Object.assign({ref:t},e,{renderPath:Tr}))}));Ir.displayName="Question";const Fr=Ir;var Dr=new Map;Dr.set("bold",(function(e){return n().createElement(n().Fragment,null,n().createElement("path",{d:"M56.2,104a71.9,71.9,0,0,1,72.3-72c39.6.3,71.3,33.2,71.3,72.9V112c0,35.8,7.5,56.6,14.1,68a8,8,0,0,1-6.9,12H49a8,8,0,0,1-6.9-12c6.6-11.4,14.1-32.2,14.1-68Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),n().createElement("path",{d:"M96,192v8a32,32,0,0,0,64,0v-8",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))})),Dr.set("duotone",(function(e){return n().createElement(n().Fragment,null,n().createElement("path",{d:"M56.2,104a71.9,71.9,0,0,1,72.3-72c39.6.3,71.3,33.2,71.3,72.9V112c0,35.8,7.5,56.6,14.1,68a8,8,0,0,1-6.9,12H49a8,8,0,0,1-6.9-12c6.6-11.4,14.1-32.2,14.1-68Z",opacity:"0.2"}),n().createElement("path",{d:"M56.2,104a71.9,71.9,0,0,1,72.3-72c39.6.3,71.3,33.2,71.3,72.9V112c0,35.8,7.5,56.6,14.1,68a8,8,0,0,1-6.9,12H49a8,8,0,0,1-6.9-12c6.6-11.4,14.1-32.2,14.1-68Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),n().createElement("path",{d:"M96,192v8a32,32,0,0,0,64,0v-8",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))})),Dr.set("fill",(function(){return n().createElement(n().Fragment,null,n().createElement("path",{d:"M220.8,175.9c-5.9-10.2-13-29.6-13-63.9v-7.1c0-44.3-35.5-80.6-79.2-80.9H128a79.9,79.9,0,0,0-79.8,80v8c0,34.3-7.1,53.7-13,63.9A16,16,0,0,0,49,200H88a40,40,0,0,0,80,0h39a15.9,15.9,0,0,0,13.9-8A16.2,16.2,0,0,0,220.8,175.9ZM128,224a24.1,24.1,0,0,1-24-24h48A24.1,24.1,0,0,1,128,224Z"}))})),Dr.set("light",(function(e){return n().createElement(n().Fragment,null,n().createElement("path",{d:"M56.2,104a71.9,71.9,0,0,1,72.3-72c39.6.3,71.3,33.2,71.3,72.9V112c0,35.8,7.5,56.6,14.1,68a8,8,0,0,1-6.9,12H49a8,8,0,0,1-6.9-12c6.6-11.4,14.1-32.2,14.1-68Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),n().createElement("path",{d:"M96,192v8a32,32,0,0,0,64,0v-8",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))})),Dr.set("thin",(function(e){return n().createElement(n().Fragment,null,n().createElement("path",{d:"M56.2,104a71.9,71.9,0,0,1,72.3-72c39.6.3,71.3,33.2,71.3,72.9V112c0,35.8,7.5,56.6,14.1,68a8,8,0,0,1-6.9,12H49a8,8,0,0,1-6.9-12c6.6-11.4,14.1-32.2,14.1-68Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),n().createElement("path",{d:"M96,192v8a32,32,0,0,0,64,0v-8",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))})),Dr.set("regular",(function(e){return n().createElement(n().Fragment,null,n().createElement("path",{d:"M56.2,104a71.9,71.9,0,0,1,72.3-72c39.6.3,71.3,33.2,71.3,72.9V112c0,35.8,7.5,56.6,14.1,68a8,8,0,0,1-6.9,12H49a8,8,0,0,1-6.9-12c6.6-11.4,14.1-32.2,14.1-68Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),n().createElement("path",{d:"M96,192v8a32,32,0,0,0,64,0v-8",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}));var Mr=function(e,t){return jr(e,t,Dr)},zr=(0,t.forwardRef)((function(e,t){return n().createElement(Ar,Object.assign({ref:t},e,{renderPath:Mr}))}));zr.displayName="Bell";const Ur=zr;var Br=new Map;Br.set("bold",(function(e){return n().createElement(n().Fragment,null,n().createElement("circle",{cx:"128",cy:"96",r:"64",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),n().createElement("path",{d:"M31,216a112,112,0,0,1,194,0",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))})),Br.set("duotone",(function(e){return n().createElement(n().Fragment,null,n().createElement("circle",{cx:"128",cy:"96",r:"64",opacity:"0.2"}),n().createElement("circle",{cx:"128",cy:"96",r:"64",fill:"none",stroke:e,strokeMiterlimit:"10",strokeWidth:"16"}),n().createElement("path",{d:"M31,216a112,112,0,0,1,194,0",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))})),Br.set("fill",(function(){return n().createElement(n().Fragment,null,n().createElement("path",{d:"M231.9,212a120.7,120.7,0,0,0-67.1-54.2,72,72,0,1,0-73.6,0A120.7,120.7,0,0,0,24.1,212a7.7,7.7,0,0,0,0,8,7.8,7.8,0,0,0,6.9,4H225a7.8,7.8,0,0,0,6.9-4A7.7,7.7,0,0,0,231.9,212Z"}))})),Br.set("light",(function(e){return n().createElement(n().Fragment,null,n().createElement("circle",{cx:"128",cy:"96",r:"64",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),n().createElement("path",{d:"M31,216a112,112,0,0,1,194,0",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))})),Br.set("thin",(function(e){return n().createElement(n().Fragment,null,n().createElement("circle",{cx:"128",cy:"96",r:"64",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),n().createElement("path",{d:"M31,216a112,112,0,0,1,194,0",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))})),Br.set("regular",(function(e){return n().createElement(n().Fragment,null,n().createElement("circle",{cx:"128",cy:"96",r:"64",fill:"none",stroke:e,strokeMiterlimit:"10",strokeWidth:"16"}),n().createElement("path",{d:"M31,216a112,112,0,0,1,194,0",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}));var Wr=function(e,t){return jr(e,t,Br)},Hr=(0,t.forwardRef)((function(e,t){return n().createElement(Ar,Object.assign({ref:t},e,{renderPath:Wr}))}));Hr.displayName="User";const qr=Hr;var Vr=new Map;Vr.set("bold",(function(e){return n().createElement(n().Fragment,null,n().createElement("polyline",{points:"208 96 128 176 48 96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))})),Vr.set("duotone",(function(e){return n().createElement(n().Fragment,null,n().createElement("polygon",{points:"208 96 128 176 48 96 208 96",opacity:"0.2"}),n().createElement("polygon",{points:"208 96 128 176 48 96 208 96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))})),Vr.set("fill",(function(){return n().createElement(n().Fragment,null,n().createElement("path",{d:"M215.4,92.9A8,8,0,0,0,208,88H48a8,8,0,0,0-7.4,4.9,8.4,8.4,0,0,0,1.7,8.8l80,80a8.2,8.2,0,0,0,11.4,0l80-80A8.4,8.4,0,0,0,215.4,92.9Z"}))})),Vr.set("light",(function(e){return n().createElement(n().Fragment,null,n().createElement("polyline",{points:"208 96 128 176 48 96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))})),Vr.set("thin",(function(e){return n().createElement(n().Fragment,null,n().createElement("polyline",{points:"208 96 128 176 48 96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))})),Vr.set("regular",(function(e){return n().createElement(n().Fragment,null,n().createElement("polyline",{points:"208 96 128 176 48 96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}));var Zr=function(e,t){return jr(e,t,Vr)},Jr=(0,t.forwardRef)((function(e,t){return n().createElement(Ar,Object.assign({ref:t},e,{renderPath:Zr}))}));Jr.displayName="CaretDown";const Kr=Jr;var $r=new Map;$r.set("bold",(function(){return n().createElement(n().Fragment,null,n().createElement("circle",{cx:"60",cy:"60",r:"16"}),n().createElement("circle",{cx:"128",cy:"60",r:"16"}),n().createElement("circle",{cx:"196",cy:"60",r:"16"}),n().createElement("circle",{cx:"60",cy:"128",r:"16"}),n().createElement("circle",{cx:"128",cy:"128",r:"16"}),n().createElement("circle",{cx:"196",cy:"128",r:"16"}),n().createElement("circle",{cx:"60",cy:"196",r:"16"}),n().createElement("circle",{cx:"128",cy:"196",r:"16"}),n().createElement("circle",{cx:"196",cy:"196",r:"16"}))})),$r.set("duotone",(function(){return n().createElement(n().Fragment,null,n().createElement("circle",{cx:"60",cy:"60",r:"12"}),n().createElement("circle",{cx:"128",cy:"60",r:"12"}),n().createElement("circle",{cx:"196",cy:"60",r:"12"}),n().createElement("circle",{cx:"60",cy:"128",r:"12"}),n().createElement("circle",{cx:"128",cy:"128",r:"12"}),n().createElement("circle",{cx:"196",cy:"128",r:"12"}),n().createElement("circle",{cx:"60",cy:"196",r:"12"}),n().createElement("circle",{cx:"128",cy:"196",r:"12"}),n().createElement("circle",{cx:"196",cy:"196",r:"12"}))})),$r.set("fill",(function(){return n().createElement(n().Fragment,null,n().createElement("path",{d:"M60,48A12,12,0,1,0,72,60,12,12,0,0,0,60,48Zm68,0a12,12,0,1,0,12,12A12,12,0,0,0,128,48Zm68,24a12,12,0,1,0-12-12A12,12,0,0,0,196,72ZM60,184a12,12,0,1,0,12,12A12,12,0,0,0,60,184Zm68,0a12,12,0,1,0,12,12A12,12,0,0,0,128,184Zm68,0a12,12,0,1,0,12,12A12,12,0,0,0,196,184ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Zm68,0a12,12,0,1,0,12,12A12,12,0,0,0,128,116Zm68,0a12,12,0,1,0,12,12A12,12,0,0,0,196,116Z"}))})),$r.set("light",(function(){return n().createElement(n().Fragment,null,n().createElement("circle",{cx:"60",cy:"60",r:"10"}),n().createElement("circle",{cx:"128",cy:"60",r:"10"}),n().createElement("circle",{cx:"196",cy:"60",r:"10"}),n().createElement("circle",{cx:"60",cy:"128",r:"10"}),n().createElement("circle",{cx:"128",cy:"128",r:"10"}),n().createElement("circle",{cx:"196",cy:"128",r:"10"}),n().createElement("circle",{cx:"60",cy:"196",r:"10"}),n().createElement("circle",{cx:"128",cy:"196",r:"10"}),n().createElement("circle",{cx:"196",cy:"196",r:"10"}))})),$r.set("thin",(function(){return n().createElement(n().Fragment,null,n().createElement("circle",{cx:"60",cy:"60",r:"8"}),n().createElement("circle",{cx:"128",cy:"60",r:"8"}),n().createElement("circle",{cx:"196",cy:"60",r:"8"}),n().createElement("circle",{cx:"60",cy:"128",r:"8"}),n().createElement("circle",{cx:"128",cy:"128",r:"8"}),n().createElement("circle",{cx:"196",cy:"128",r:"8"}),n().createElement("circle",{cx:"60",cy:"196",r:"8"}),n().createElement("circle",{cx:"128",cy:"196",r:"8"}),n().createElement("circle",{cx:"196",cy:"196",r:"8"}))})),$r.set("regular",(function(){return n().createElement(n().Fragment,null,n().createElement("circle",{cx:"60",cy:"60",r:"12"}),n().createElement("circle",{cx:"128",cy:"60",r:"12"}),n().createElement("circle",{cx:"196",cy:"60",r:"12"}),n().createElement("circle",{cx:"60",cy:"128",r:"12"}),n().createElement("circle",{cx:"128",cy:"128",r:"12"}),n().createElement("circle",{cx:"196",cy:"128",r:"12"}),n().createElement("circle",{cx:"60",cy:"196",r:"12"}),n().createElement("circle",{cx:"128",cy:"196",r:"12"}),n().createElement("circle",{cx:"196",cy:"196",r:"12"}))}));var Xr=function(e,t){return jr(e,t,$r)},Gr=(0,t.forwardRef)((function(e,t){return n().createElement(Ar,Object.assign({ref:t},e,{renderPath:Xr}))}));Gr.displayName="DotsNine";const Qr=Gr;function Yr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var eo,to=(9,function(e){if(Array.isArray(e))return e}(eo=Z(["hbr-shell-header","hbr-icon","hbr-input","hbr-dropdown","hbr-menu","hbr-menu-item","hbr-tag","hbr-button","hbr-badge"]))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,s=!1;try{for(i=(n=n.call(e)).next,!9;!(l=(r=i.call(n)).done)&&(c.push(r.value),9!==c.length);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(eo)||function(e,t){if(e){if("string"==typeof e)return Yr(e,9);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yr(e,9):void 0}}(eo)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),no=to[0],ro=to[1],oo=to[2],io=to[3],ao=to[4],co=to[5],lo=(to[6],to[7]),so=to[8];const uo=function(){var e=(0,v.useDispatch)(),t=(0,v.useSelector)((function(e){return e.nav.userInfo})),r=K(),o=n().createElement(lo,{onClick:function(){e(wr())},noPadding:!0,sentiment:"header",slot:"menu"},n().createElement(Cr,{size:24,weight:"bold"})),i=n().createElement("a",{href:"/",slot:"logo-name",style:{marginLeft:"4px"}},n().createElement(ro,{name:"cisco"}),n().createElement("div",null,"YANG Suite")),a=n().createElement(oo,{slot:"search",placeholder:"Search",size:"medium",clearable:!0,className:"shell-header-input-search"},n().createElement(ro,{slot:"prefix",name:"magnifying-glass"})),c=n().createElement(lo,{noPadding:!0,sentiment:"header",slot:"trigger",onClick:function(e){e.preventDefault(),r("help/yangsuite/",!0)}},n().createElement(Fr,{size:24,weight:"bold"})),l=n().createElement(lo,{noPadding:!0,sentiment:"header",slot:"trigger",onClick:function(e){e.preventDefault(),r("yangsuite/logs/",!0)}},n().createElement(Ur,{size:24,weight:"bold"}),n().createElement(so,{inline:!0,dot:!0,slot:"suffix",sentiment:"danger",style:{"--bg-color":"var(--hbr-color-danger-vivid-bg)","--dot-size":"7px",top:0,right:0,paddingLeft:"2px"}})),s={heading:{fontSize:"10px",color:"var(--hbr-color-text-weak)",padding:"0 12px"},labelBold:{fontWeight:"600",textAlign:"left",lineHeight:"20px",padding:"0 10px",paddingRight:"12px",color:"#F7F7F7",marginTop:"-5px"},label:{fontWeight:"400",textAlign:"left",lineHeight:"12px",padding:"0 10px",paddingRight:"12px",color:"#F7F7F7"},labelBold2:{fontWeight:"600",textAlign:"left",lineHeight:"20px",padding:"0 10px",paddingRight:"12px",color:"var(--hbr-color-neutral-text, #F7F7F7)"},label2:{fontWeight:"400",textAlign:"left",lineHeight:"12px",padding:"0 10px",paddingRight:"12px",color:"var(--hbr-color-neutral-text, #F7F7F7)"},menuBody:{padding:"12px",flex:"1 1 auto"},menuItem:{backgroundColor:"var(--background)",position:"relative",display:"flex",alignItems:"center",fontFamily:"var(--hbr-font-body)",fontSize:"var(--hbr-font-size-sm)",fontWeight:"var(--hbr-font-weight-normal)",lineHeight:"var(--hbr-font-line-height-normal)",letterSpacing:"var(--hbr-font-letter-spacing-normal)",textAlign:"left",color:"var(--hbr-control-color, #23282e)",padding:"var(--hbr-spacing-xs) var(--hbr-spacing-lg) 0 var(--hbr-spacing-lg)",transition:"var(--hbr-transition-fast) fill",userSelect:"none",whiteSpace:"nowrap",width:"100%"},prefix:{flex:"0 0 auto",display:"flex",alignItems:"center"},suffix:{flex:"0 0 auto",display:"flex",alignItems:"center"},devider:{borderTop:"solid 1px var(--hbr-color-neutral-border-weak)",margin:"var(--hbr-spacing-xs) 0"}},u=n().createElement(io,{slot:"user-profile",hoist:!0,menu:!0,sentiment:"header",distance:"12"},n().createElement(lo,{noPadding:!0,sentiment:"header",slot:"trigger"},n().createElement(qr,{slot:"prefix",size:24,weight:"bold"}),n().createElement(Kr,{slot:"suffix",size:16,weight:"bold"}),n().createElement("div",{style:s.labelBold},t&&t.username)),n().createElement("hbr-menu",null,n().createElement("div",{style:s.menuItem},n().createElement(qr,{style:s.prefix,size:24,weight:"bold"}),n().createElement("div",{style:s.menuBody},n().createElement("div",{style:s.heading},"LOGGED IN AS"),n().createElement("div",{style:s.labelBold2},t&&t.username))),n().createElement("div",null,n().createElement(lo,{style:s.menuItem,variant:"outline",onClick:function(e){e.preventDefault(),r("accounts/profile/",!0)}},n().createElement(ro,{slot:"prefix",name:"gear-six"}),"User Profile"),n().createElement(lo,{style:s.menuItem,variant:"fill",onClick:function(t){t.preventDefault(),e(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t){e?t(gr()):Ut.get("/api/logout").then((function(e){return t(gr())})).catch((function(e){return console.log(e)}))}}(!0)),window.location.href="/accounts/logout/"}},n().createElement(ro,{slot:"prefix",name:"sign-out"}),"Log Out")))),d=n().createElement(io,{slot:"application-launcher",hoist:!0,menu:!0,sentiment:"header",distance:"12"},n().createElement(lo,{noPadding:!0,sentiment:"header",slot:"trigger"},n().createElement(Qr,{size:24,weight:"bold"})),n().createElement(ao,null,n().createElement(co,null,"Apps")));return n().createElement("div",null,n().createElement(no,{className:"sticky top-0 flex flex-wrap",style:{zIndex:"var(--hbr-z-index-shell)"}},o,i,a,n().createElement("div",{slot:"utilities"},c,l,n().createElement("hbr-menu-divider",{vertical:!0,sentiment:"header"})),u,d))};function fo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var po=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,s=!1;try{for(i=(n=n.call(e)).next,!1;!(l=(r=i.call(n)).done)&&(c.push(r.value),1!==c.length);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e)||function(e,t){if(e){if("string"==typeof e)return fo(e,1);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fo(e,1):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Z(["hbr-spinner"])),mo=po[0];function ho(e){var t=e.msg,r=void 0===t?"Fetching data":t;return n().createElement("div",{className:"loader"},n().createElement(mo,{size:"extra-large",className:"loading"},n().createElement("div",{slot:"label"},r)))}function yo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}a(12);var go=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return yo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yo(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Z(["hbr-input","hbr-button","hbr-form"]),3);go[0],go[1],go[2];var bo={root:{display:"flex",flexDirection:"column",height:"100vh",flexShrink:0,overflow:"hidden"},body:{display:"flex",flexDirection:"row",flex:1,overflowY:"hidden"},outlet:{flex:1,overflow:"auto",height:"100%"}};const vo=function(){var e=(0,v.useSelector)((function(e){return e.nav.menu})),r=(0,v.useSelector)((function(e){return e.nav.userInfo})),o=(0,v.useDispatch)();return(0,t.useEffect)((function(){r&&r.loggedIn&&0===e.length&&o((function(e){Ut.get("/api/menu").then((function(t){e(mr(t.data))})).catch((function(e){return console.log(e)}))}))}),[r]),(0,t.useEffect)((function(){null===r&&o((function(e){Ut.get("/api/login").then((function(t){e(yr(t.data))})).catch((function(t){return e(yr(null))}))}))}),[]),null===r?n().createElement(ho,null):(r&&!1===r.loggedIn&&(window.location.href="/accounts/logout/"),n().createElement(n().Fragment,null,0!==e.length?n().createElement("div",{style:bo.root},n().createElement(uo,null),n().createElement("div",{style:bo.body},n().createElement(kr,null),n().createElement("div",{style:bo.outlet},n().createElement(J.Outlet,null)))):n().createElement(ho,null)))};var Eo=function(e){var t=e.data,n=t.basetype,r=t.datatype,o="";return wo(e)||(n?o=n:!n&&r&&(o=r)),o},wo=function(e){return"module"===e.data.modtype};function xo(e){return xo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xo(e)}function ko(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Oo=function(e,t,n){An(e)[t]||(e[t]={}),An(e)[t][n]||(e[t][n]=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ko(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],o=function(e){var t=function(e,t){if("object"!=xo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=xo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xo(t)?t:t+""}(o),o in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ko(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},{nodes:[],nodeValues:{},startNode:null,endNode:null}))},jo=Xn({name:"tree",initialState:{},reducers:{setNodeValue:function(e,t){var n=t.payload,r=n.node,o=n.workflowId,i=n.instanceId,a=n.value,c=n.op,l=r.id,s=r.data,u=s.xpath,d=s.nodetype,f=s.datatype,p=s.namespace,m=void 0===p?"":p,h=s.operations,y=void 0===h?[]:h,g=s.prefix,b=void 0===g?"":g,v="edit-config";1===y.length&&"get"===y[0]&&(v="get"),Oo(e,o,i);var E=An(e)[o][i].nodeValues[l]||{},w=E.op,x=void 0===w?"":w,k=E.value,O=void 0===k?"":k,j={xpath:u,datatype:f||Eo(r),nodetype:d,operation:v,namespace:m,prefix:b,op:c||x,value:null!=a?a:O};e[o][i].nodeValues[l]=j},removeNodeValue:function(e,t){var n=t.payload,r=n.id,o=n.workflowId,i=n.instanceId;An(e)[o]&&An(e)[o][i]&&delete e[o][i].nodeValues[r]},setStartNode:function(e,t){var n=t.payload,r=n.id,o=n.xpath,i=n.workflowId,a=n.instanceId,c={id:r,xpath:o};i&&a&&(Oo(e,i,a),e[i][a].startNode=c,e[i][a].endNode=null)},setEndNode:function(e,t){var n=t.payload,r=n.id,o=n.xpath,i=n.workflowId,a=n.instanceId,c={id:r,xpath:o};i&&a&&(Oo(e,i,a),e[i][a].endNode=c)},clearStartNode:function(e,t){var n=t.payload,r=n.workflowId,o=n.instanceId;r&&o&&An(e)[r]&&An(e)[r][o]&&(e[r][o].startNode=null,e[r][o].endNode=null)},clearEndNode:function(e,t){var n=t.payload,r=n.workflowId,o=n.instanceId;r&&o&&An(e)[r]&&An(e)[r][o]&&(e[r][o].endNode=null)},deletePersistedTreeState:function(e,t){var n,r=t.payload,o=r.workflowId,i=r.instanceId,a=An(e);null!=a&&null!==(n=a[o])&&void 0!==n&&n[i]&&delete e[o][i]}}}),So=jo.actions,_o=So.setNodeValue,Ao=So.removeNodeValue,No=So.setStartNode,Po=So.setEndNode,Ro=So.clearStartNode,Co=So.clearEndNode,Lo=(So.initializeTree,So.deletePersistedTreeState);const To=jo.reducer;var Io=Object.freeze({action:"nav-threats",anydata:"nav-network-switcher",anyxml:"nav-filters",case:"arrow-right",choice:"nav-organization",container:"nav-resources",grouping:"nav-groups",identity:"info",input:"download-simple",key:"nav-identity",leaf:"leaf","leaf-list":"nav",list:"nav-list",module:"nav-samples",notification:"bell",output:"upload-simple",rpc:"envelope-simple",submodule:"nav-samples",typedef:"nav-intelligence"}),Fo=Object.freeze(["==","!=",">","<",">=","<=","range","any"]),Do=a(673),Mo={};Mo.styleTagTransform=y(),Mo.setAttributes=f(),Mo.insert=u().bind(null,"head"),Mo.domAPI=l(),Mo.insertStyleElement=m(),o()(Do.A,Mo);const zo=Do.A&&Do.A.locals?Do.A.locals:void 0;function Uo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Bo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bo(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Wo=Uo(Z(["hbr-icon","hbr-input","hbr-option","hbr-checkbox","hbr-button","hbr-badge","hbr-select"]),7),Ho=Wo[0],qo=Wo[1],Vo=Wo[2],Zo=Wo[3],Jo=Wo[4],Ko=Wo[5],$o=Wo[6];const Xo=function e(r){var o,i,a,c,l,s,u,d,f=r.node,p=r.level,m=r.workflowId,h=r.instanceId,y=(0,v.useDispatch)(),g=(0,v.useSelector)((function(e){return e.tree})),b=g[m]&&g[m][h]?g[m][h]:{},E=b.nodeValues,w=void 0===E?{}:E,x=b.startNode,k=void 0===x?null:x,O=b.endNode,j=void 0===O?null:O,S=Uo((0,t.useState)(!1),2),_=S[0],A=S[1],N=Uo((0,t.useState)(!1),2),P=N[0],R=N[1],C=function(){y(_o({value:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",op:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",node:f,workflowId:m,instanceId:h}))},L=function(){var e=f.data,t=f.id,r=e.name,o=(w[t]||{}).op,i=void 0===o?"":o;return n().createElement("div",{className:zo["node-input"]},n().createElement($o,{size:"small",placeholder:"Select operation for ".concat(r),value:i},Fo.map((function(e){return n().createElement(Vo,{key:e,value:e,onClick:function(){return C(null,e)}},e)}))))},T=function(){return n().createElement("div",{className:zo["node-input"]})};return n().createElement("div",{style:{marginLeft:"".concat(4*p,"px")}},n().createElement("div",{className:zo.node,onClick:function(){A(!_)}},n().createElement("div",{className:zo["node-information"],onMouseEnter:function(){return R(!0)},onMouseLeave:function(){return R(!1)}},function(){var e=f.children;if(e&&e.length>0)return n().createElement("div",{className:zo["node-icon"]},_?n().createElement(Ho,{className:zo["node-caret-down-icon"],name:"caret-down",label:"Collapse Tree Node"}):n().createElement(Ho,{className:zo["node-caret-right-icon"],name:"caret-right",label:"Expand Tree Node"}))}(),(s=(l=f.data).nodetype,l.modtype,u=l.key,d=Io[wo(f)?"module":s],"true"===u&&(d=Io.key),d?n().createElement("div",{className:"".concat(zo["node-icon"]," ").concat(zo["leaf-icon"])},n().createElement(Ho,{name:d,style:{"--path-color-0":"black"},label:"Node Type Icon"})):null),(c=f.text,n().createElement("div",{className:"".concat(zo["node-name"]," ").concat(zo["no-select"])},c)),(a=Eo(f))?n().createElement(Ko,{className:zo["node-badge"],pill:!0,size:"small"},a):null,(i=f.id,k&&j&&i>=k.id&&i<=j.id?n().createElement(Ko,{pill:!0,size:"small",sentiment:"success"},"selected"):null),function(){var e=f.id;if(w[e])return n().createElement(Jo,{size:"small",variant:"primary",sentiment:"danger",onClick:function(){return function(e){y(Ao({id:e,workflowId:m,instanceId:h}))}(e)},style:{marginLeft:"4px"}},"Clear Value")}(),function(){var e=f.id,t=f.data,r=t.xpath;return t&&r&&!k&&P?n().createElement(Jo,{size:"small",variant:"primary",style:{marginLeft:"4px"},onClick:function(){return y(No({id:e,xpath:r,workflowId:m,instanceId:h}))}},"Set Start XPath"):null}(),function(){var e=f.id,t=f.data,r=t.xpath;return t&&r&&k&&k.id<e&&!j&&P?n().createElement(Jo,{size:"small",variant:"primary",style:{marginLeft:"4px"},onClick:function(){return y(Po({id:e,xpath:r,workflowId:m,instanceId:h}))}},"Set End XPath"):null}()),n().createElement("div",{className:zo["node-inputs"]},function(){var e,t,r,o,i,a=f.data.state,c=void 0!==a&&a;if(!wo(f))return"container"===(i=f.data.nodetype)||"list"===i?function(){var e=f.data,t=e.presence,n=void 0!==t&&t,r=e.state;return n||void 0!==r&&r?L():null}():c||"empty"===Eo(f)?n().createElement(n().Fragment,null,(e=f.id,o=void 0!==(r=(t=w[e]||{}).value)&&r,t.op,n().createElement("div",{className:zo["node-input"]},n().createElement(Zo,{checked:o,onClick:function(e){var t=e.target;C(t.checked,null)}}))),L()):n().createElement(n().Fragment,null,function(){var e=f.text,t=f.id,r=(w[t]||{}).value,o=void 0===r?"":r;return n().createElement("div",{className:zo["node-input"]},n().createElement(qo,{width:"100%",size:"small",placeholder:"Set value for ".concat(e),value:o,"onHbr-input":function(e){var t=e.target;C(t.value,null)}}))}(),T())}())),n().createElement("div",{style:{marginLeft:"".concat(4*(p+1),"px")}},(o=f.children,_?o&&o.length>0&&o.map((function(t){return n().createElement(e,{key:t.id,node:t,level:p+1,workflowId:m,instanceId:h})})):null)))};var Go=a(505),Qo={};Qo.styleTagTransform=y(),Qo.setAttributes=f(),Qo.insert=u().bind(null,"head"),Qo.domAPI=l(),Qo.insertStyleElement=m(),o()(Go.A,Qo);const Yo=Go.A&&Go.A.locals?Go.A.locals:void 0;function ei(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ti(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ti(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ti(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ni=ei(Z(["hbr-icon","hbr-tag","hbr-accordion"]),3),ri=ni[0],oi=ni[1],ii=ni[2];const ai=function(){return n().createElement(ii,{summary:"Legend",size:"small",triggerposition:"right"},Object.entries(Io).map((function(e){var t=ei(e,2),r=t[0],o=t[1];return n().createElement(oi,{key:r,className:Yo["legend-entry"]},n().createElement(ri,{name:o,slot:"prefix"}),r)})))};function ci(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var li=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,s=!1;try{for(i=(n=n.call(e)).next,!1;!(l=(r=i.call(n)).done)&&(c.push(r.value),1!==c.length);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e)||function(e,t){if(e){if("string"==typeof e)return ci(e,1);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ci(e,1):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Z(["hbr-button"])),si=li[0],ui={box:{width:"100%",height:"auto",padding:"var(--hbr-spacing-sm) var(--hbr-spacing-md)",backgroundColor:"var(--hbr-color-neutral-bg-medium)",borderRadius:"2px"},whiteBox:{width:"100%",height:"auto",padding:"var(--hbr-spacing-sm) var(--hbr-spacing-md)",backgroundColor:"white",borderRadius:"2px"}};const di=function(e){var t=e.workflowId,r=void 0===t?null:t,o=e.instanceId,i=void 0===o?null:o,a=(0,v.useDispatch)(),c=(0,v.useSelector)((function(e){return e.tree})),l=c[r]&&c[r][i]?c[r][i]:{},s=l.startNode,u=void 0===s?null:s,d=l.endNode,f=void 0===d?null:d;return n().createElement(n().Fragment,null,n().createElement("div",{className:Yo["start-node-container"]},n().createElement("div",{className:Yo["node-card"],container:"true"},n().createElement("div",{slot:"header",role:"heading","aria-level":3},n().createElement("h3",null,"Start XPath")),u?n().createElement(n().Fragment,null,n().createElement("div",{style:ui.box},u.xpath),n().createElement("div",{slot:"footer",style:{textAlign:"right"}},n().createElement(si,{variant:"text",style:{marginRight:"var(--hbr-spacing-sm)"},onClick:function(){a(Ro({workflowId:r,instanceId:i}))}},"Clear"))):n().createElement("div",{style:ui.whiteBox},n().createElement("span",null,"No node selected, hover over a node to begin")))),n().createElement("div",{className:Yo["end-node-container"]},n().createElement("div",{className:Yo["node-card"],container:"true"},n().createElement("div",{slot:"header",role:"heading","aria-level":3},n().createElement("h3",null,"End XPath")),f?n().createElement(n().Fragment,null,n().createElement("div",{style:ui.box},f.xpath),n().createElement("div",{slot:"footer",style:{textAlign:"right"}},n().createElement(si,{variant:"text",style:{marginRight:"var(--hbr-spacing-sm)"},onClick:function(){a(Co({workflowId:r,instanceId:i}))}},"Clear"))):n().createElement("div",{style:ui.whiteBox},n().createElement("span",null,"No node selected, select starting XPath first")))))};function fi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var pi=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,s=!1;try{for(i=(n=n.call(e)).next,!2;!(l=(r=i.call(n)).done)&&(c.push(r.value),2!==c.length);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e)||function(e,t){if(e){if("string"==typeof e)return fi(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fi(e,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Z(["hbr-icon","hbr-banner"])),mi=pi[0],hi=pi[1];const yi=function(e){var t=e.workflowId,r=void 0===t?null:t,o=e.instanceId,i=void 0===o?null:o,a=e.nodes,c=void 0===a?[]:a,l=e.error,s=void 0===l?null:l;return n().createElement("div",{className:Yo.tree},n().createElement(ai,null),n().createElement(di,{workflowId:r,instanceId:i}),!s&&!c||s?n().createElement(hi,{variant:"fill",sentiment:"danger",open:!0},n().createElement(mi,{slot:"icon",name:"hbr-error-filled"}),s&&n().createElement("span",null,s),!s&&!c&&n().createElement("span",null,"Unable to render tree: malformed/missing data")):null,n().createElement("div",{className:Yo["nodes-header"]},n().createElement("div",{className:Yo["nodes-name-column"]},"Name"),n().createElement("div",{className:Yo["nodes-input-container"]},n().createElement("div",{className:Yo["nodes-input-column"]},"Value"),n().createElement("div",{className:Yo["nodes-input-column"]},"Operation"))),c&&c.map((function(e){return n().createElement(Xo,{key:e.id,node:e,level:0,onNodeSelectCallback:null,workflowId:r,instanceId:i})})))};var gi={nav:br,tree:To}})(),c})()));
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("react"),require("react-redux"),require("react-dom"),require("react-router-dom"));else if("function"==typeof define&&define.amd)define(["react","react-redux","react-dom","react-router-dom"],t);else{var n="object"==typeof exports?t(require("react"),require("react-redux"),require("react-dom"),require("react-router-dom")):t(e.React,e.ReactRedux,e.ReactDOM,e.ReactRouterDOM);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,((e,t,n,r)=>(()=>{"use strict";var o={579:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(601),o=n.n(r),i=n(314),a=n.n(i)()(o());a.push([e.id,".object-display{padding:20px;width:100%;background:#fff;box-shadow:0 4px 8px rgba(0,0,0,.1);border-radius:8px;overflow:auto}.object-display .title{font-size:20px;font-weight:bold;margin-bottom:16px;text-align:center}.object-display .details{display:flex;flex-direction:column}.object-display .details .row{display:flex;align-items:flex-start;padding:8px 0;border-bottom:1px solid #ddd}.object-display .details .row:last-child{border-bottom:none}.object-display .details .row .key{font-weight:bold;color:#333;width:180px;min-width:180px}.object-display .details .row .value{flex:1;color:#555;word-break:break-word}.object-display .details .row .value ul{margin:0;padding-left:20px}.object-display .details .row .value ul li{list-style-type:disc;margin-bottom:4px}.nested-object{padding-left:20px;border-left:2px solid #ddd}.nested-object .rowNedted{padding:4px 0;font-size:14px}.array{padding-left:20px;list-style-type:disc}.array li{margin:4px 0}.app-container{width:100%;display:flex;align-items:center;justify-content:center;background-color:#f8f9fa}",""]);const l=a},505:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(601),o=n.n(r),i=n(314),a=n.n(i)()(o());a.push([e.id,".HyFbBphGt6qepS38skcf{margin:0}.s7pTtbvxYxcDQ4npHrc_{display:flex;justify-content:space-between;margin-bottom:10px}.JoNohx2vfjfO4vk0RgQv{margin-right:10px;margin-bottom:5px}.HqRfAd0zFvRzxcjS8pby{display:flex;justify-content:space-between;font-weight:bold;margin-bottom:5px}.fhtv7l3qA4CV3G5DjgVU{display:flex;align-items:center;cursor:pointer}.G6jgSs9HIw_JtWRV8Ztl{display:flex;flex-direction:row;align-items:center}.j1iYPjAT8zZqRl5imPye{margin-left:15px;display:flex;flex-direction:row;align-items:center;width:170px;justify-content:center}.m4CwEXArD_28wIRpmVFH{margin-right:20px;box-shadow:0;width:100%}.HrddoAZ7EB_YxiuunZJv{margin-top:5px;margin-bottom:5px}.pjLPEOsDZgmsRZ3NeoVJ{margin-bottom:10px}",""]),a.locals={tree:"HyFbBphGt6qepS38skcf","legend-container":"s7pTtbvxYxcDQ4npHrc_","legend-entry":"JoNohx2vfjfO4vk0RgQv","nodes-header":"HqRfAd0zFvRzxcjS8pby","nodes-name-column":"fhtv7l3qA4CV3G5DjgVU","nodes-input-container":"G6jgSs9HIw_JtWRV8Ztl","nodes-input-column":"j1iYPjAT8zZqRl5imPye","node-card":"m4CwEXArD_28wIRpmVFH","start-node-container":"HrddoAZ7EB_YxiuunZJv","end-node-container":"pjLPEOsDZgmsRZ3NeoVJ"};const l=a},673:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(601),o=n.n(r),i=n(314),a=n.n(i)()(o());a.push([e.id,".NjfsEUQPYHj27jVzr0Ku{display:flex;align-items:center;margin-bottom:2px;min-height:1.75em;justify-content:space-between}.oBs0jnwvNC1BSi5mUncI{display:flex;align-items:center;cursor:pointer}.kD0r_dVKRUUNr8HN9eDv{display:flex;align-items:center}.mzA3IR81XyFCrnZxLUJA{display:flex;align-items:center;margin:0;padding:0;font-weight:bold}.kmKQCn8S8sNmeX2rSrkF{margin:0;padding:0 .2em;user-select:none}.hQs5LKz4IxNRqmcIek8q{cursor:pointer;width:14px;height:14px;margin-right:2px}.CJqlx2o37rpFq6R4yzeH{cursor:pointer;width:14px;height:14px;margin-right:2px}.UMl21WeEPz42u9oG_9hA{user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none}.gm_te5SQpjKBzXk3gAGU{margin-left:15px;display:flex;flex-direction:row;align-items:center;width:170px;justify-content:center}.pxnVo64k0KCjYisa3272{padding-left:5px}.I7_ffHus8j59pEvLuCr1{margin:0px 2px}",""]),a.locals={node:"NjfsEUQPYHj27jVzr0Ku","node-information":"oBs0jnwvNC1BSi5mUncI","node-inputs":"kD0r_dVKRUUNr8HN9eDv","node-icon":"mzA3IR81XyFCrnZxLUJA","node-name":"kmKQCn8S8sNmeX2rSrkF","node-caret-down-icon":"hQs5LKz4IxNRqmcIek8q","node-caret-right-icon":"CJqlx2o37rpFq6R4yzeH","no-select":"UMl21WeEPz42u9oG_9hA","node-input":"gm_te5SQpjKBzXk3gAGU","icon-container":"pxnVo64k0KCjYisa3272","node-badge":"I7_ffHus8j59pEvLuCr1"};const l=a},891:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(601),o=n.n(r),i=n(314),a=n.n(i)()(o());a.push([e.id,".nav_top_list{list-style-type:none;margin:0;padding:0;overflow:hidden;font-size:1.15rem;font-weight:var(--hbr-font-weight-normal, 400)}.nav_item:hover{border-left:5px solid var(--selected-border-color)}.nav_item_active{border-left:5px solid var(--selected-border-color)}.nav_item_inactive{border-left:5px solid rgba(0,0,0,0)}.nav_top_list{list-style-type:none;margin:0;padding:0;overflow:hidden;font-size:1.15rem;font-weight:var(--hbr-font-weight-normal, 400)}.nav_item:hover{border-left:5px solid var(--selected-border-color)}.nav_item_active{border-left:5px solid var(--selected-border-color)}.nav_item_inactive{border-left:5px solid rgba(0,0,0,0)}.app{min-height:100%;min-width:100%}body{margin:0;background-color:#fff;flex-direction:column;overflow:hidden;width:100%;height:100%;line-height:inherit}:root{--dark-bg: linear-gradient(90deg, rgb(55, 60, 66) 0.29%, rgb(15, 17, 20) 100%, rgb(15, 18, 20) 100%);--reverse-dark-bg: linear-gradient(0deg, rgb(15, 17, 20) 0.29%, rgb(55, 60, 66) 100%, rgb(55, 60, 66) 100%);--selected-border-color: #58b5fc}.loader{display:flex;justify-content:center;align-items:center;z-index:1000;flex:1}",""]);const l=a},314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var l=0;l<this.length;l++){var c=this[l][0];null!=c&&(a[c]=!0)}for(var s=0;s<e.length;s++){var u=[].concat(e[s]);r&&a[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},601:e=>{e.exports=function(e){return e[1]}},72:e=>{var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var i={},a=[],l=0;l<e.length;l++){var c=e[l],s=r.base?c[0]+r.base:c[0],u=i[s]||0,d="".concat(s," ").concat(u);i[s]=u+1;var f=n(d),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==f)t[f].references++,t[f].updater(p);else{var m=o(p,r);r.byIndex=l,t.splice(l,0,{identifier:d,updater:m,references:1})}a.push(d)}return a}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var i=r(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var l=n(i[a]);t[l].references--}for(var c=r(e,o),s=0;s<i.length;s++){var u=n(i[s]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}i=c}}},659:e=>{var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},56:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},12:t=>{t.exports=e},33:e=>{e.exports=n},417:e=>{e.exports=t},34:e=>{e.exports=r}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,exports:{}};return o[e](n,n.exports,a),n.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nc=void 0;var l={};return(()=>{a.r(l),a.d(l,{Header:()=>uo,Layout:()=>vo,Loader:()=>ho,NavBar:()=>kr,NavItem:()=>Q,Tree:()=>Xi,closeNav:()=>vr,deletePersistedTreeState:()=>To,reducers:()=>Gi,showNav:()=>Er,toggleNav:()=>wr,useCustomNavigate:()=>$});var e={};a.r(e),a.d(e,{hasBrowserEnv:()=>Qe,hasStandardBrowserEnv:()=>Ye,hasStandardBrowserWebWorkerEnv:()=>tt});var t=a(12),n=a.n(t),r=a(72),o=a.n(r),i=a(825),c=a.n(i),s=a(659),u=a.n(s),d=a(56),f=a.n(d),p=a(540),m=a.n(p),h=a(113),y=a.n(h),b=a(891),g={};g.styleTagTransform=y(),g.setAttributes=f(),g.insert=u().bind(null,"head"),g.domAPI=c(),g.insertStyleElement=m(),o()(b.A,g),b.A&&b.A.locals&&b.A.locals;var v=a(417),E=a(33),w=a.n(E),x=Object.create,k=Object.defineProperty,j=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,S=Object.getPrototypeOf,_=Object.prototype.hasOwnProperty,A=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),N=(e,t,n)=>(n=null!=e?x(S(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of O(t))!_.call(e,n)&&undefined!==n&&k(e,n,{get:()=>t[n],enumerable:!(r=j(t,n))||r.enumerable});return e})(!t&&e&&e.__esModule?n:k(n,"default",{value:e,enumerable:!0}),e)),P=A(((e,t)=>{t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"})),C=A(((e,t)=>{var n=P();function r(){}function o(){}o.resetWarningCache=r,t.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var l=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 l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var i={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:o,resetWarningCache:r};return i.PropTypes=i,i}})),R=A(((e,t)=>{t.exports=C()()})),L=N(R()),T=!!(typeof window<"u"&&window.document&&window.document.createElement),I=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),F=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),I(t,[{key:"componentWillUnmount",value:function(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}},{key:"render",value:function(){return T?(!this.props.node&&!this.defaultNode&&(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),w().createPortal(this.props.children,this.props.node||this.defaultNode)):null}}]),t}(n().Component);F.propTypes={children:L.default.node.isRequired,node:L.default.any};var M=F,D=N(R()),z=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),U=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),z(t,[{key:"componentDidMount",value:function(){this.renderPortal()}},{key:"componentDidUpdate",value:function(e){this.renderPortal()}},{key:"componentWillUnmount",value:function(){w().unmountComponentAtNode(this.defaultNode||this.props.node),this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null,this.portal=null}},{key:"renderPortal",value:function(e){!this.props.node&&!this.defaultNode&&(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode));var t=this.props.children;"function"==typeof this.props.children.type&&(t=n().cloneElement(this.props.children)),this.portal=w().unstable_renderSubtreeIntoContainer(this,t,this.props.node||this.defaultNode)}},{key:"render",value:function(){return null}}]),t}(n().Component),B=U;U.propTypes={children:D.default.node.isRequired,node:D.default.any};var W=w().createPortal?M:B,H="hbr__default-portal",q=function(){if("undefined"!=typeof window&&window.document&&window.document.createElement){let e=document.querySelector(`.${H}`)||Object.assign(document.createElement("div"),{className:H});return document.body.appendChild(e),e}return null}(),V=e=>class extends t.Component{constructor(){super(...arguments),this.element=null,this.state={reactProps:{}}}componentDidMount(){this.syncProps(this.props);let e={};if(this.element&&Object.getPrototypeOf(this.element)){let t=Object.getPrototypeOf(this.element);for(let[n,r]of Object.entries(this.props))n in t||"string"==typeof r&&(e[n]=r)}this.setState({reactProps:e})}componentDidUpdate(){this.syncProps(this.props)}syncProps(e){let t=this.element;t&&Object.keys(e).forEach((n=>{if("children"!==n&&"style"!==n){if("className"===n&&"string"==typeof e[n])return void(t[n]=e[n]+" hydrated");0===n.indexOf("on")&&n[2]===n[2].toUpperCase()?this.syncEvent(n.substring(2),e[n]):t[n]=e[n]}}))}syncEvent(e,t){let n=this.element;if(!n)return;let r=e[0].toLowerCase()+e.substring(1),o=n.__events||(n.__events={}),i=o[r];i&&n.removeEventListener(r,i),t&&n.addEventListener(r,o[r]=function(e){t.call(this,e)})}createPortal(){let e=this.props.target,t=null;return e&&"string"==typeof e&&"body"!==e?t=document.querySelector(e):e instanceof HTMLElement&&(t=e),t||(t=q),n().createElement(W,{node:t},this.props.children)}render(){let t="hbr-portal"===e?this.createPortal():this.props.children;return n().createElement(e,Object.assign(this.state.reactProps,{ref:e=>{this.element=e},style:this.props.style}),t)}},Z=e=>e.map((e=>V(e))),J=a(34);function $(){var e=(0,v.useSelector)((function(e){return e.nav.currentPlugin})),t=(0,J.useNavigate)();return function(n,r){console.log(r);var o=n.split("/")[0];r||o!==e?(console.log("server"),window.location.href="/".concat(n)):(console.log("client"),t("/".concat(n)))}}function K(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return X(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?X(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var G=K(Z(["hbr-icon"]),1)[0];function Q(e){var r=e.link,o=e.name,i=e.arrow,a=void 0!==i&&i,l=e.children,c=(e.owner,e.level),s=void 0===c?1:c,u=e.force_redirect,d=void 0!==u&&u,f=K((0,t.useState)(!0),2),p=f[0],m=f[1],h=$(),y={navItemIcon:{marginLeft:"auto",paddingRight:"10px"},navItem:{paddingLeft:"".concat(10*s,"px"),cursor:"pointer",display:"flex",paddingTop:"10px"}};return n().createElement("li",null,n().createElement("div",{className:"nav_item"+(p?" nav_item_inactive":" nav_item_active"),style:y.navItem,onClick:function(e){e.preventDefault(),void 0!==r?h(r,d):m(!p)}},o,a&&(p?n().createElement(G,{name:"caret-down",style:y.navItemIcon,width:"20px",height:"20px"}):n().createElement(G,{name:"caret-up",style:y.navItemIcon,width:"20px",height:"20px"}))),l&&!p&&n().createElement("ul",{className:"nav_top_list"},l))}function Y(e,t){return function(){return e.apply(t,arguments)}}const{toString:ee}=Object.prototype,{getPrototypeOf:te}=Object,ne=(re=Object.create(null),e=>{const t=ee.call(e);return re[t]||(re[t]=t.slice(8,-1).toLowerCase())});var re;const oe=e=>(e=e.toLowerCase(),t=>ne(t)===e),ie=e=>t=>typeof t===e,{isArray:ae}=Array,le=ie("undefined"),ce=oe("ArrayBuffer"),se=ie("string"),ue=ie("function"),de=ie("number"),fe=e=>null!==e&&"object"==typeof e,pe=e=>{if("object"!==ne(e))return!1;const t=te(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},me=oe("Date"),he=oe("File"),ye=oe("Blob"),be=oe("FileList"),ge=oe("URLSearchParams");function ve(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),ae(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function Ee(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const we="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,xe=e=>!le(e)&&e!==we,ke=(je="undefined"!=typeof Uint8Array&&te(Uint8Array),e=>je&&e instanceof je);var je;const Oe=oe("HTMLFormElement"),Se=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),_e=oe("RegExp"),Ae=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ve(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},Ne="abcdefghijklmnopqrstuvwxyz",Pe="0123456789",Ce={DIGIT:Pe,ALPHA:Ne,ALPHA_DIGIT:Ne+Ne.toUpperCase()+Pe},Re=oe("AsyncFunction"),Le={isArray:ae,isArrayBuffer:ce,isBuffer:function(e){return null!==e&&!le(e)&&null!==e.constructor&&!le(e.constructor)&&ue(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||ue(e.append)&&("formdata"===(t=ne(e))||"object"===t&&ue(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ce(e.buffer),t},isString:se,isNumber:de,isBoolean:e=>!0===e||!1===e,isObject:fe,isPlainObject:pe,isUndefined:le,isDate:me,isFile:he,isBlob:ye,isRegExp:_e,isFunction:ue,isStream:e=>fe(e)&&ue(e.pipe),isURLSearchParams:ge,isTypedArray:ke,isFileList:be,forEach:ve,merge:function e(){const{caseless:t}=xe(this)&&this||{},n={},r=(r,o)=>{const i=t&&Ee(n,o)||o;pe(n[i])&&pe(r)?n[i]=e(n[i],r):pe(r)?n[i]=e({},r):ae(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&ve(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(ve(t,((t,r)=>{n&&ue(t)?e[r]=Y(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(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)},toFlatObject:(e,t,n,r)=>{let o,i,a;const l={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||l[a]||(t[a]=e[a],l[a]=!0);e=!1!==n&&te(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:ne,kindOfTest:oe,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(ae(e))return e;let t=e.length;if(!de(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:Oe,hasOwnProperty:Se,hasOwnProp:Se,reduceDescriptors:Ae,freezeMethods:e=>{Ae(e,((t,n)=>{if(ue(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];ue(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return ae(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:Ee,global:we,isContextDefined:xe,ALPHABET:Ce,generateString:(e=16,t=Ce.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&ue(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(fe(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=ae(e)?[]:{};return ve(e,((e,t)=>{const i=n(e,r+1);!le(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:Re,isThenable:e=>e&&(fe(e)||ue(e))&&ue(e.then)&&ue(e.catch)};function Te(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}Le.inherits(Te,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:Le.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Ie=Te.prototype,Fe={};["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=>{Fe[e]={value:e}})),Object.defineProperties(Te,Fe),Object.defineProperty(Ie,"isAxiosError",{value:!0}),Te.from=(e,t,n,r,o,i)=>{const a=Object.create(Ie);return Le.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Te.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const Me=Te;function De(e){return Le.isPlainObject(e)||Le.isArray(e)}function ze(e){return Le.endsWith(e,"[]")?e.slice(0,-2):e}function Ue(e,t,n){return e?e.concat(t).map((function(e,t){return e=ze(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Be=Le.toFlatObject(Le,{},null,(function(e){return/^is[A-Z]/.test(e)})),We=function(e,t,n){if(!Le.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Le.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Le.isUndefined(t[e])}))).metaTokens,o=n.visitor||s,i=n.dots,a=n.indexes,l=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Le.isSpecCompliantForm(t);if(!Le.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(Le.isDate(e))return e.toISOString();if(!l&&Le.isBlob(e))throw new Me("Blob is not supported. Use a Buffer instead.");return Le.isArrayBuffer(e)||Le.isTypedArray(e)?l&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function s(e,n,o){let l=e;if(e&&!o&&"object"==typeof e)if(Le.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Le.isArray(e)&&function(e){return Le.isArray(e)&&!e.some(De)}(e)||(Le.isFileList(e)||Le.endsWith(n,"[]"))&&(l=Le.toArray(e)))return n=ze(n),l.forEach((function(e,r){!Le.isUndefined(e)&&null!==e&&t.append(!0===a?Ue([n],r,i):null===a?n:n+"[]",c(e))})),!1;return!!De(e)||(t.append(Ue(o,n,i),c(e)),!1)}const u=[],d=Object.assign(Be,{defaultVisitor:s,convertValue:c,isVisitable:De});if(!Le.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Le.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),Le.forEach(n,(function(n,i){!0===(!(Le.isUndefined(n)||null===n)&&o.call(t,n,Le.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t};function He(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function qe(e,t){this._pairs=[],e&&We(e,this,t)}const Ve=qe.prototype;Ve.append=function(e,t){this._pairs.push([e,t])},Ve.toString=function(e){const t=e?function(t){return e.call(this,t,He)}:He;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const Ze=qe;function Je(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function $e(e,t,n){if(!t)return e;const r=n&&n.encode||Je,o=n&&n.serialize;let i;if(i=o?o(t,n):Le.isURLSearchParams(t)?t.toString():new Ze(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const Ke=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Le.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Xe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ge={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ze,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Qe="undefined"!=typeof window&&"undefined"!=typeof document,Ye=(et="undefined"!=typeof navigator&&navigator.product,Qe&&["ReactNative","NativeScript","NS"].indexOf(et)<0);var et;const tt="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,nt={...e,...Ge},rt=function(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),l=o>=e.length;return i=!i&&Le.isArray(r)?r.length:i,l?(Le.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a):(r[i]&&Le.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&Le.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a)}if(Le.isFormData(e)&&Le.isFunction(e.entries)){const n={};return Le.forEachEntry(e,((e,r)=>{t(function(e){return Le.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null},ot={transitional:Xe,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Le.isObject(e);if(o&&Le.isHTMLForm(e)&&(e=new FormData(e)),Le.isFormData(e))return r?JSON.stringify(rt(e)):e;if(Le.isArrayBuffer(e)||Le.isBuffer(e)||Le.isStream(e)||Le.isFile(e)||Le.isBlob(e))return e;if(Le.isArrayBufferView(e))return e.buffer;if(Le.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return We(e,new nt.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return nt.isNode&&Le.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=Le.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return We(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Le.isString(e))try{return(0,JSON.parse)(e),Le.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ot.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&Le.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw Me.from(e,Me.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:nt.classes.FormData,Blob:nt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Le.forEach(["delete","get","head","post","put","patch"],(e=>{ot.headers[e]={}}));const it=ot,at=Le.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"]),lt=Symbol("internals");function ct(e){return e&&String(e).trim().toLowerCase()}function st(e){return!1===e||null==e?e:Le.isArray(e)?e.map(st):String(e)}function ut(e,t,n,r,o){return Le.isFunction(r)?r.call(this,t,n):(o&&(t=n),Le.isString(t)?Le.isString(r)?-1!==t.indexOf(r):Le.isRegExp(r)?r.test(t):void 0:void 0)}class dt{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=ct(t);if(!o)throw new Error("header name must be a non-empty string");const i=Le.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=st(e))}const i=(e,t)=>Le.forEach(e,((e,n)=>o(e,n,t)));return Le.isPlainObject(e)||e instanceof this.constructor?i(e,t):Le.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&at[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t):null!=e&&o(t,e,n),this}get(e,t){if(e=ct(e)){const n=Le.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(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}(e);if(Le.isFunction(t))return t.call(this,e,n);if(Le.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ct(e)){const n=Le.findKey(this,e);return!(!n||void 0===this[n]||t&&!ut(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=ct(e)){const o=Le.findKey(n,e);!o||t&&!ut(0,n[o],o,t)||(delete n[o],r=!0)}}return Le.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!ut(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Le.forEach(this,((r,o)=>{const i=Le.findKey(n,o);if(i)return t[i]=st(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=st(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Le.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Le.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[lt]=this[lt]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=ct(e);t[r]||(function(e,t){const n=Le.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return Le.isArray(e)?e.forEach(r):r(e),this}}dt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Le.reduceDescriptors(dt.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Le.freezeMethods(dt);const ft=dt;function pt(e,t){const n=this||it,r=t||n,o=ft.from(r.headers);let i=r.data;return Le.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function mt(e){return!(!e||!e.__CANCEL__)}function ht(e,t,n){Me.call(this,null==e?"canceled":e,Me.ERR_CANCELED,t,n),this.name="CanceledError"}Le.inherits(ht,Me,{__CANCEL__:!0});const yt=ht,bt=nt.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Le.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Le.isString(r)&&a.push("path="+r),Le.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.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:()=>null,remove(){}};function gt(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const vt=nt.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=Le.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function Et(e,t){let n=0;const r=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(l){const c=Date.now(),s=r[a];o||(o=c),n[i]=l,r[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;const f=s&&c-s;return f?Math.round(1e3*d/f):void 0}}(50,250);return o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,l=i-n,c=r(l);n=i;const s={loaded:i,total:a,progress:a?i/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&i<=a?(a-i)/c:void 0,event:o};s[t?"download":"upload"]=!0,e(s)}}const wt={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const o=ft.from(e.headers).normalize();let i,a,{responseType:l,withXSRFToken:c}=e;function s(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}if(Le.isFormData(r))if(nt.hasStandardBrowserEnv||nt.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if(!1!==(a=o.getContentType())){const[e,...t]=a?a.split(";").map((e=>e.trim())).filter(Boolean):[];o.setContentType([e||"multipart/form-data",...t].join("; "))}let u=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+n))}const d=gt(e.baseURL,e.url);function f(){if(!u)return;const r=ft.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Me("Request failed with status code "+n.status,[Me.ERR_BAD_REQUEST,Me.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),s()}),(function(e){n(e),s()}),{data:l&&"text"!==l&&"json"!==l?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:r,config:e,request:u}),u=null}if(u.open(e.method.toUpperCase(),$e(d,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(f)},u.onabort=function(){u&&(n(new Me("Request aborted",Me.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new Me("Network Error",Me.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||Xe;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new Me(t,r.clarifyTimeoutError?Me.ETIMEDOUT:Me.ECONNABORTED,e,u)),u=null},nt.hasStandardBrowserEnv&&(c&&Le.isFunction(c)&&(c=c(e)),c||!1!==c&&vt(d))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&bt.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in u&&Le.forEach(o.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),Le.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),l&&"json"!==l&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",Et(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",Et(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=t=>{u&&(n(!t||t.type?new yt(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));const p=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(d);p&&-1===nt.protocols.indexOf(p)?n(new Me("Unsupported protocol "+p+":",Me.ERR_BAD_REQUEST,e)):u.send(r||null)}))}};Le.forEach(wt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const xt=e=>`- ${e}`,kt=e=>Le.isFunction(e)||null===e||!1===e,jt=e=>{e=Le.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!kt(n)&&(r=wt[(t=String(n)).toLowerCase()],void 0===r))throw new Me(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(xt).join("\n"):" "+xt(e[0]):"as no adapter specified";throw new Me("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function Ot(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new yt(null,e)}function St(e){return Ot(e),e.headers=ft.from(e.headers),e.data=pt.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),jt(e.adapter||it.adapter)(e).then((function(t){return Ot(e),t.data=pt.call(e,e.transformResponse,t),t.headers=ft.from(t.headers),t}),(function(t){return mt(t)||(Ot(e),t&&t.response&&(t.response.data=pt.call(e,e.transformResponse,t.response),t.response.headers=ft.from(t.response.headers))),Promise.reject(t)}))}const _t=e=>e instanceof ft?{...e}:e;function At(e,t){t=t||{};const n={};function r(e,t,n){return Le.isPlainObject(e)&&Le.isPlainObject(t)?Le.merge.call({caseless:n},e,t):Le.isPlainObject(t)?Le.merge({},t):Le.isArray(t)?t.slice():t}function o(e,t,n){return Le.isUndefined(t)?Le.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!Le.isUndefined(t))return r(void 0,t)}function a(e,t){return Le.isUndefined(t)?Le.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function l(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(e,t)=>o(_t(e),_t(t),!0)};return Le.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=c[r]||o,a=i(e[r],t[r],r);Le.isUndefined(a)&&i!==l||(n[r]=a)})),n}const Nt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Nt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Pt={};Nt.transitional=function(e,t,n){function r(e,t){return"[Axios v1.6.8] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Me(r(o," has been removed"+(t?" in "+t:"")),Me.ERR_DEPRECATED);return t&&!Pt[o]&&(Pt[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};const Ct={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Me("options must be an object",Me.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new Me("option "+i+" must be "+n,Me.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Me("Unknown option "+i,Me.ERR_BAD_OPTION)}},validators:Nt},Rt=Ct.validators;class Lt{constructor(e){this.defaults=e,this.interceptors={request:new Ke,response:new Ke}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=At(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Ct.assertOptions(n,{silentJSONParsing:Rt.transitional(Rt.boolean),forcedJSONParsing:Rt.transitional(Rt.boolean),clarifyTimeoutError:Rt.transitional(Rt.boolean)},!1),null!=r&&(Le.isFunction(r)?t.paramsSerializer={serialize:r}:Ct.assertOptions(r,{encode:Rt.function,serialize:Rt.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Le.merge(o.common,o[t.method]);o&&Le.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=ft.concat(i,o);const a=[];let l=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(l=l&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const c=[];let s;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let u,d=0;if(!l){const e=[St.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,c),u=e.length,s=Promise.resolve(t);d<u;)s=s.then(e[d++],e[d++]);return s}u=a.length;let f=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{s=St.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,u=c.length;d<u;)s=s.then(c[d++],c[d++]);return s}getUri(e){return $e(gt((e=At(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}Le.forEach(["delete","get","head","options"],(function(e){Lt.prototype[e]=function(t,n){return this.request(At(n||{},{method:e,url:t,data:(n||{}).data}))}})),Le.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(At(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Lt.prototype[e]=t(),Lt.prototype[e+"Form"]=t(!0)}));const Tt=Lt;class It{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new yt(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new It((function(t){e=t})),cancel:e}}}const Ft=It,Mt={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(Mt).forEach((([e,t])=>{Mt[t]=e}));const Dt=Mt,zt=function e(t){const n=new Tt(t),r=Y(Tt.prototype.request,n);return Le.extend(r,Tt.prototype,n,{allOwnKeys:!0}),Le.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(At(t,n))},r}(it);zt.Axios=Tt,zt.CanceledError=yt,zt.CancelToken=Ft,zt.isCancel=mt,zt.VERSION="1.6.8",zt.toFormData=We,zt.AxiosError=Me,zt.Cancel=zt.CanceledError,zt.all=function(e){return Promise.all(e)},zt.spread=function(e){return function(t){return e.apply(null,t)}},zt.isAxiosError=function(e){return Le.isObject(e)&&!0===e.isAxiosError},zt.mergeConfig=At,zt.AxiosHeaders=ft,zt.formToJSON=e=>rt(Le.isHTMLForm(e)?new FormData(e):e),zt.getAdapter=jt,zt.HttpStatusCode=Dt,zt.default=zt;const Ut=zt;var Bt=Symbol.for("immer-nothing"),Wt=Symbol.for("immer-draftable"),Ht=Symbol.for("immer-state");function qt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Vt=Object.getPrototypeOf;function Zt(e){return!!e&&!!e[Ht]}function Jt(e){return!!e&&(Kt(e)||Array.isArray(e)||!!e[Wt]||!!e.constructor?.[Wt]||en(e)||tn(e))}var $t=Object.prototype.constructor.toString();function Kt(e){if(!e||"object"!=typeof e)return!1;const t=Vt(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===$t}function Xt(e,t){0===Gt(e)?Reflect.ownKeys(e).forEach((n=>{t(n,e[n],e)})):e.forEach(((n,r)=>t(r,n,e)))}function Gt(e){const t=e[Ht];return t?t.type_:Array.isArray(e)?1:en(e)?2:tn(e)?3:0}function Qt(e,t){return 2===Gt(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Yt(e,t,n){const r=Gt(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function en(e){return e instanceof Map}function tn(e){return e instanceof Set}function nn(e){return e.copy_||e.base_}function rn(e,t){if(en(e))return new Map(e);if(tn(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Kt(e);if(!0===t||"class_only"===t&&!n){const t=Object.getOwnPropertyDescriptors(e);delete t[Ht];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){const o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Vt(e),t)}{const t=Vt(e);if(null!==t&&n)return{...e};const r=Object.create(t);return Object.assign(r,e)}}function on(e,t=!1){return ln(e)||Zt(e)||!Jt(e)||(Gt(e)>1&&(e.set=e.add=e.clear=e.delete=an),Object.freeze(e),t&&Object.entries(e).forEach((([e,t])=>on(t,!0)))),e}function an(){qt(2)}function ln(e){return Object.isFrozen(e)}var cn,sn={};function un(e){const t=sn[e];return t||qt(0),t}function dn(){return cn}function fn(e,t){t&&(un("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function pn(e){mn(e),e.drafts_.forEach(yn),e.drafts_=null}function mn(e){e===cn&&(cn=e.parent_)}function hn(e){return cn={drafts_:[],parent_:cn,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function yn(e){const t=e[Ht];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function bn(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[Ht].modified_&&(pn(t),qt(4)),Jt(e)&&(e=gn(t,e),t.parent_||En(t,e)),t.patches_&&un("Patches").generateReplacementPatches_(n[Ht].base_,e,t.patches_,t.inversePatches_)):e=gn(t,n,[]),pn(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Bt?e:void 0}function gn(e,t,n){if(ln(t))return t;const r=t[Ht];if(!r)return Xt(t,((o,i)=>vn(e,r,t,o,i,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return En(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let o=t,i=!1;3===r.type_&&(o=new Set(t),t.clear(),i=!0),Xt(o,((o,a)=>vn(e,r,t,o,a,n,i))),En(e,t,!1),n&&e.patches_&&un("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function vn(e,t,n,r,o,i,a){if(Zt(o)){const a=gn(e,o,i&&t&&3!==t.type_&&!Qt(t.assigned_,r)?i.concat(r):void 0);if(Yt(n,r,a),!Zt(a))return;e.canAutoFreeze_=!1}else a&&n.add(o);if(Jt(o)&&!ln(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;gn(e,o),t&&t.scope_.parent_||"symbol"==typeof r||!Object.prototype.propertyIsEnumerable.call(n,r)||En(e,o)}}function En(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&on(t,n)}var wn={get(e,t){if(t===Ht)return e;const n=nn(e);if(!Qt(n,t))return function(e,t,n){const r=jn(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}(e,n,t);const r=n[t];return e.finalized_||!Jt(r)?r:r===kn(e.base_,t)?(Sn(e),e.copy_[t]=_n(r,e)):r},has:(e,t)=>t in nn(e),ownKeys:e=>Reflect.ownKeys(nn(e)),set(e,t,n){const r=jn(nn(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=kn(nn(e),t),o=r?.[Ht];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,r)&&(void 0!==n||Qt(e.base_,t)))return!0;Sn(e),On(e)}return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==kn(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,Sn(e),On(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=nn(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){qt(11)},getPrototypeOf:e=>Vt(e.base_),setPrototypeOf(){qt(12)}},xn={};function kn(e,t){const n=e[Ht];return(n?nn(n):e)[t]}function jn(e,t){if(!(t in e))return;let n=Vt(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Vt(n)}}function On(e){e.modified_||(e.modified_=!0,e.parent_&&On(e.parent_))}function Sn(e){e.copy_||(e.copy_=rn(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function _n(e,t){const n=en(e)?un("MapSet").proxyMap_(e,t):tn(e)?un("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:dn(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=wn;n&&(o=[r],i=xn);const{revoke:a,proxy:l}=Proxy.revocable(o,i);return r.draft_=l,r.revoke_=a,l}(e,t);return(t?t.scope_:dn()).drafts_.push(n),n}function An(e){return Zt(e)||qt(10),Nn(e)}function Nn(e){if(!Jt(e)||ln(e))return e;const t=e[Ht];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=rn(e,t.scope_.immer_.useStrictShallowCopy_)}else n=rn(e,!0);return Xt(n,((e,t)=>{Yt(n,e,Nn(t))})),t&&(t.finalized_=!1),n}Xt(wn,((e,t)=>{xn[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),xn.deleteProperty=function(e,t){return xn.set.call(this,e,t,void 0)},xn.set=function(e,t,n){return wn.set.call(this,e[0],t,n,e[0])};var Pn=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"==typeof e&&"function"!=typeof t){const n=t;t=e;const r=this;return function(e=n,...o){return r.produce(e,(e=>t.call(this,e,...o)))}}let r;if("function"!=typeof t&&qt(6),void 0!==n&&"function"!=typeof n&&qt(7),Jt(e)){const o=hn(this),i=_n(e,void 0);let a=!0;try{r=t(i),a=!1}finally{a?pn(o):mn(o)}return fn(o,n),bn(r,o)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===Bt&&(r=void 0),this.autoFreeze_&&on(r,!0),n){const t=[],o=[];un("Patches").generateReplacementPatches_(e,r,t,o),n(t,o)}return r}qt(1)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...n)=>this.produceWithPatches(t,(t=>e(t,...n)));let n,r;return[this.produce(e,t,((e,t)=>{n=e,r=t})),n,r]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Jt(e)||qt(8),Zt(e)&&(e=An(e));const t=hn(this),n=_n(e,void 0);return n[Ht].isManual_=!0,mn(t),n}finishDraft(e,t){const n=e&&e[Ht];n&&n.isManual_||qt(9);const{scope_:r}=n;return fn(r,t),bn(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=un("Patches").applyPatches_;return Zt(e)?r(e,t):this.produce(e,(e=>r(e,t)))}},Cn=Pn.produce;Pn.produceWithPatches.bind(Pn),Pn.setAutoFreeze.bind(Pn),Pn.setUseStrictShallowCopy.bind(Pn),Pn.applyPatches.bind(Pn),Pn.createDraft.bind(Pn),Pn.finishDraft.bind(Pn);var Rn=e=>Array.isArray(e)?e:[e];Symbol(),Object.getPrototypeOf({});var Ln="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}},Tn=0,In=1;function Fn(){return{s:Tn,v:void 0,o:null,p:null}}function Mn(e,t={}){let n=Fn();const{resultEqualityCheck:r}=t;let o,i=0;function a(){let t=n;const{length:a}=arguments;for(let e=0,n=a;e<n;e++){const n=arguments[e];if("function"==typeof n||"object"==typeof n&&null!==n){let e=t.o;null===e&&(t.o=e=new WeakMap);const r=e.get(n);void 0===r?(t=Fn(),e.set(n,t)):t=r}else{let e=t.p;null===e&&(t.p=e=new Map);const r=e.get(n);void 0===r?(t=Fn(),e.set(n,t)):t=r}}const l=t;let c;if(t.s===In?c=t.v:(c=e.apply(null,arguments),i++),l.s=In,r){const e=o?.deref?.()??o;null!=e&&r(e,c)&&(c=e,0!==i&&i--),o="object"==typeof c&&null!==c||"function"==typeof c?new Ln(c):c}return l.v=c,c}return a.clearCache=()=>{n=Fn(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function Dn(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,o=0,i={},a=e.pop();"object"==typeof a&&(i=a,a=e.pop()),function(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}(a,`createSelector expects an output function after the inputs, but received: [${typeof a}]`);const l={...n,...i},{memoize:c,memoizeOptions:s=[],argsMemoize:u=Mn,argsMemoizeOptions:d=[],devModeChecks:f={}}=l,p=Rn(s),m=Rn(d),h=function(e){const t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every((e=>"function"==typeof e))){const n=e.map((e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e)).join(", ");throw new TypeError(`${t}[${n}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}(e),y=c((function(){return r++,a.apply(null,arguments)}),...p),b=u((function(){o++;const e=function(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}(h,arguments);return t=y.apply(null,e),t}),...m);return Object.assign(b,{resultFunc:a,memoizedResultFunc:y,dependencies:h,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:c,argsMemoize:u})};return Object.assign(r,{withTypes:()=>r}),r}var zn=Dn(Mn),Un=Object.assign(((e,t=zn)=>{!function(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e);return t(n.map((t=>e[t])),((...e)=>e.reduce(((e,t,r)=>(e[n[r]]=t,e)),{})))}),{withTypes:()=>Un});function Bn(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(or(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>function(e){return function(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}(e)&&"type"in e&&"string"==typeof e.type}(t)&&t.type===e,n}function Wn(e){return Jt(e)?Cn(e,(()=>{})):e}function Hn(e,t,n){if(e.has(t)){let r=e.get(t);return n.update&&(r=n.update(r,t,e),e.set(t,r)),r}if(!n.insert)throw new Error(or(10));const r=n.insert(t,e);return e.set(t,r),r}((...e)=>{const t=Dn(...e),n=Object.assign(((...e)=>{const n=t(...e),r=(e,...t)=>n(Zt(e)?An(e):e,...t);return Object.assign(r,n),r}),{withTypes:()=>n})})(Mn),"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__,"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__,Symbol.species;function qn(e){const t={},n=[];let r;const o={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(or(28));if(r in t)throw new Error(or(29));return t[r]=n,o},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),o),addDefaultCase:e=>(r=e,o)};return e(o),[t,n,r]}"undefined"!=typeof window&&window.requestAnimationFrame&&window.requestAnimationFrame;var Vn=(e=21)=>{let t="",n=e;for(;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},Zn=Symbol.for("rtk-slice-createasyncthunk");function Jn(e,t){return`${e}/${t}`}function $n({creators:e}={}){const t=e?.asyncThunk?.[Zn];return function(e){const{name:n,reducerPath:r=n}=e;if(!n)throw new Error(or(11));const o=("function"==typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},i=Object.keys(o),a={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(e,t){const n="string"==typeof e?e:e.type;if(!n)throw new Error(or(12));if(n in a.sliceCaseReducersByType)throw new Error(or(13));return a.sliceCaseReducersByType[n]=t,l},addMatcher:(e,t)=>(a.sliceMatchers.push({matcher:e,reducer:t}),l),exposeAction:(e,t)=>(a.actionCreators[e]=t,l),exposeCaseReducer:(e,t)=>(a.sliceCaseReducersByName[e]=t,l)};function c(){const[t={},n=[],r]="function"==typeof e.extraReducers?qn(e.extraReducers):[e.extraReducers],o={...t,...a.sliceCaseReducersByType};return function(e,t){let i,[l,c,s]=qn((e=>{for(let t in o)e.addCase(t,o[t]);for(let t of a.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)}));if(function(e){return"function"==typeof e}(e))i=()=>Wn(e());else{const t=Wn(e);i=()=>t}function u(e=i(),t){let n=[l[t.type],...c.filter((({matcher:e})=>e(t))).map((({reducer:e})=>e))];return 0===n.filter((e=>!!e)).length&&(n=[s]),n.reduce(((e,n)=>{if(n){if(Zt(e)){const r=n(e,t);return void 0===r?e:r}if(Jt(e))return Cn(e,(e=>n(e,t)));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw new Error(or(9))}return r}}return e}),e)}return u.getInitialState=i,u}(e.initialState)}i.forEach((r=>{const i=o[r],a={reducerName:r,type:Jn(n,r),createNotation:"function"==typeof e.reducers};!function(e){return"asyncThunk"===e._reducerDefinitionType}(i)?function({type:e,reducerName:t,createNotation:n},r,o){let i,a;if("reducer"in r){if(n&&!function(e){return"reducerWithPrepare"===e._reducerDefinitionType}(r))throw new Error(or(17));i=r.reducer,a=r.prepare}else i=r;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?Bn(e,a):Bn(e))}(a,i,l):function({type:e,reducerName:t},n,r,o){if(!o)throw new Error(or(18));const{payloadCreator:i,fulfilled:a,pending:l,rejected:c,settled:s,options:u}=n,d=o(e,i,u);r.exposeAction(t,d),a&&r.addCase(d.fulfilled,a),l&&r.addCase(d.pending,l),c&&r.addCase(d.rejected,c),s&&r.addMatcher(d.settled,s),r.exposeCaseReducer(t,{fulfilled:a||Gn,pending:l||Gn,rejected:c||Gn,settled:s||Gn})}(a,i,l,t)}));const s=e=>e,u=new Map;let d;function f(e,t){return d||(d=c()),d(e,t)}function p(){return d||(d=c()),d.getInitialState()}function m(t,n=!1){function r(e){let r=e[t];return void 0===r&&n&&(r=p()),r}function o(t=s){const r=Hn(u,n,{insert:()=>new WeakMap});return Hn(r,t,{insert:()=>{const r={};for(const[o,i]of Object.entries(e.selectors??{}))r[o]=Kn(i,t,p,n);return r}})}return{reducerPath:t,getSelectors:o,get selectors(){return o(r)},selectSlice:r}}const h={name:n,reducer:f,actions:a.actionCreators,caseReducers:a.sliceCaseReducersByName,getInitialState:p,...m(r),injectInto(e,{reducerPath:t,...n}={}){const o=t??r;return e.inject({reducerPath:o,reducer:f},n),{...h,...m(o,!0)}}};return h}}function Kn(e,t,n,r){function o(o,...i){let a=t(o);return void 0===a&&r&&(a=n()),e(a,...i)}return o.unwrapped=e,o}var Xn=$n();function Gn(){}var{assign:Qn}=Object,Yn="listenerMiddleware",er=e=>{let{type:t,actionCreator:n,matcher:r,predicate:o,effect:i}=e;if(t)o=Bn(t).match;else if(n)t=n.type,o=n.match;else if(r)o=r;else if(!o)throw new Error(or(21));return((e,t)=>{if("function"!=typeof e)throw new Error(or(32))})(i),{predicate:o,type:t,effect:i}},tr=Object.assign((e=>{const{type:t,predicate:n,effect:r}=er(e);return{id:Vn(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(or(22))}}}),{withTypes:()=>tr}),nr=Object.assign(Bn(`${Yn}/add`),{withTypes:()=>nr}),rr=(Bn(`${Yn}/removeAll`),Object.assign(Bn(`${Yn}/remove`),{withTypes:()=>rr}));function or(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}function ir(e){return ir="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ir(e)}function ar(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ar(Object(n),!0).forEach((function(t){cr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ar(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cr(e,t,n){var r;return r=function(e,t){if("object"!=ir(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=ir(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==ir(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Symbol.for("rtk-state-proxy-original");var sr=Xn({name:"nav",initialState:{visible:!1,menu:[],plugins:{},currentPlugin:"yangsuite",userInfo:null},reducers:{navClosed:function(e){e.visible=!1},navShowed:function(e){e.visible=!0},navToggled:function(e){e.visible=!e.visible},menuFetched:function(e,t){t.payload.menu&&(e.menu=t.payload.menu,e.plugins=t.payload.plugins)},currentPluginSet:function(e,t){e.currentPlugin=t.payload},userinfoFetched:function(e,t){null!==t.payload?e.userInfo=lr(lr({},t.payload),{},{loggedIn:!0}):e.userInfo={loggedIn:!1}},userLoggedIn:function(e,t){e.userInfo=lr(lr({},t.payload),{},{loggedIn:!0})},userLogout:function(e){e.userInfo={loggedIn:!1}},userLoginError:function(e,t){e.userInfo={loggedIn:!1,error:t.payload}}}}),ur=sr.actions,dr=ur.navClosed,fr=ur.navShowed,pr=ur.navToggled,mr=ur.menuFetched,hr=ur.currentPluginSet,yr=ur.userinfoFetched,br=(ur.userLoggedIn,ur.userLogout);ur.userLoginError;const gr=sr.reducer;var vr=function(){return function(e){e(dr())}},Er=function(){return function(e){e(fr())}},wr=function(){return function(e){e(pr())}},xr=function(e){return function(t){t(hr(e))}};function kr(){var e=(0,v.useSelector)((function(e){return e.nav.visible})),r=(0,v.useSelector)((function(e){return e.nav.menu})),o=(0,v.useDispatch)();(0,t.useEffect)((function(){var e=window.location.pathname.split("/")[1];""===e&&(e="yangsuite"),o(xr(e))}),[]);var i={navbarContainer:{position:"relative",display:e?"block":"none"},navbarMenu:{backgroundClip:"padding-box",color:"var(--hbr-color-header-text-in, #f7f7f7)",height:"100%",background:"var(--reverse-dark-bg)",width:"clamp(250px, 15vw, 20vw)"},navbarMenuItem:{}};return n().createElement("div",{style:i.navbarContainer},n().createElement("ul",{style:i.navbarMenu,className:"nav_top_list"},r.map((function(e,t){return 0===e.children.length?n().createElement(Q,{key:t,name:e.name,link:e.url,owner:e.owner}):n().createElement(Q,{key:t,name:e.name,arrow:!0},e.children.map((function(e,t){return n().createElement(Q,{key:t,name:e.name,link:e.url,owner:e.owner,level:2,force_redirect:e.force_redirect})})))}))))}var jr=(0,t.createContext)({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),Or=function(e,t,n){var r=n.get(e);return r?r(t):(console.error('Unsupported icon weight. Choose from "thin", "light", "regular", "bold", "fill", or "duotone".'),null)};function Sr(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var _r=(0,t.forwardRef)((function(e,r){var o=e.alt,i=e.color,a=e.size,l=e.weight,c=e.mirrored,s=e.children,u=e.renderPath,d=Sr(e,["alt","color","size","weight","mirrored","children","renderPath"]),f=(0,t.useContext)(jr),p=f.color,m=void 0===p?"currentColor":p,h=f.size,y=f.weight,b=void 0===y?"regular":y,g=f.mirrored,v=void 0!==g&&g,E=Sr(f,["color","size","weight","mirrored"]);return n().createElement("svg",Object.assign({ref:r,xmlns:"http://www.w3.org/2000/svg",width:null!=a?a:h,height:null!=a?a:h,fill:null!=i?i:m,viewBox:"0 0 256 256",transform:c||v?"scale(-1, 1)":void 0},E,d),!!o&&n().createElement("title",null,o),s,n().createElement("rect",{width:"256",height:"256",fill:"none"}),u(null!=l?l:b,null!=i?i:m))}));_r.displayName="IconBase";const Ar=_r;var Nr=new Map;Nr.set("bold",(function(e){return n().createElement(n().Fragment,null,n().createElement("line",{x1:"40",y1:"128",x2:"216",y2:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),n().createElement("line",{x1:"40",y1:"64",x2:"216",y2:"64",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),n().createElement("line",{x1:"40",y1:"192",x2:"216",y2:"192",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))})),Nr.set("duotone",(function(e){return n().createElement(n().Fragment,null,n().createElement("line",{x1:"40",y1:"128",x2:"216",y2:"128",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),n().createElement("line",{x1:"40",y1:"64",x2:"216",y2:"64",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),n().createElement("line",{x1:"40",y1:"192",x2:"216",y2:"192",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))})),Nr.set("fill",(function(){return n().createElement(n().Fragment,null,n().createElement("path",{d:"M216,120H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"}),n().createElement("path",{d:"M40,72H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Z"}),n().createElement("path",{d:"M216,184H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"}))})),Nr.set("light",(function(e){return n().createElement(n().Fragment,null,n().createElement("line",{x1:"40",y1:"128",x2:"216",y2:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),n().createElement("line",{x1:"40",y1:"64",x2:"216",y2:"64",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),n().createElement("line",{x1:"40",y1:"192",x2:"216",y2:"192",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))})),Nr.set("thin",(function(e){return n().createElement(n().Fragment,null,n().createElement("line",{x1:"40",y1:"128",x2:"216",y2:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),n().createElement("line",{x1:"40",y1:"64",x2:"216",y2:"64",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),n().createElement("line",{x1:"40",y1:"192",x2:"216",y2:"192",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))})),Nr.set("regular",(function(e){return n().createElement(n().Fragment,null,n().createElement("line",{x1:"40",y1:"128",x2:"216",y2:"128",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),n().createElement("line",{x1:"40",y1:"64",x2:"216",y2:"64",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),n().createElement("line",{x1:"40",y1:"192",x2:"216",y2:"192",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}));var Pr=function(e,t){return Or(e,t,Nr)},Cr=(0,t.forwardRef)((function(e,t){return n().createElement(Ar,Object.assign({ref:t},e,{renderPath:Pr}))}));Cr.displayName="List";const Rr=Cr;var Lr=new Map;Lr.set("bold",(function(e){return n().createElement(n().Fragment,null,n().createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),n().createElement("circle",{cx:"128",cy:"176",r:"16"}),n().createElement("path",{d:"M128,136a28,28,0,1,0-28-28",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))})),Lr.set("duotone",(function(e){return n().createElement(n().Fragment,null,n().createElement("circle",{cx:"128",cy:"128",r:"96",opacity:"0.2"}),n().createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),n().createElement("circle",{cx:"128",cy:"180",r:"12"}),n().createElement("path",{d:"M128,144v-8a28,28,0,1,0-28-28",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))})),Lr.set("fill",(function(){return n().createElement(n().Fragment,null,n().createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.2,104.2,0,0,0,128,24Zm0,168a12,12,0,1,1,12-12A12,12,0,0,1,128,192Zm8-48.9v.9a8,8,0,0,1-16,0v-8a8,8,0,0,1,8-8,20,20,0,1,0-20-20,8,8,0,0,1-16,0,36,36,0,1,1,44,35.1Z"}))})),Lr.set("light",(function(e){return n().createElement(n().Fragment,null,n().createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),n().createElement("circle",{cx:"128",cy:"180",r:"10"}),n().createElement("path",{d:"M128,144v-8a28,28,0,1,0-28-28",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))})),Lr.set("thin",(function(e){return n().createElement(n().Fragment,null,n().createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),n().createElement("circle",{cx:"128",cy:"180",r:"8"}),n().createElement("path",{d:"M128,144v-8a28,28,0,1,0-28-28",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))})),Lr.set("regular",(function(e){return n().createElement(n().Fragment,null,n().createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),n().createElement("circle",{cx:"128",cy:"180",r:"12"}),n().createElement("path",{d:"M128,144v-8a28,28,0,1,0-28-28",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}));var Tr=function(e,t){return Or(e,t,Lr)},Ir=(0,t.forwardRef)((function(e,t){return n().createElement(Ar,Object.assign({ref:t},e,{renderPath:Tr}))}));Ir.displayName="Question";const Fr=Ir;var Mr=new Map;Mr.set("bold",(function(e){return n().createElement(n().Fragment,null,n().createElement("path",{d:"M56.2,104a71.9,71.9,0,0,1,72.3-72c39.6.3,71.3,33.2,71.3,72.9V112c0,35.8,7.5,56.6,14.1,68a8,8,0,0,1-6.9,12H49a8,8,0,0,1-6.9-12c6.6-11.4,14.1-32.2,14.1-68Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),n().createElement("path",{d:"M96,192v8a32,32,0,0,0,64,0v-8",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))})),Mr.set("duotone",(function(e){return n().createElement(n().Fragment,null,n().createElement("path",{d:"M56.2,104a71.9,71.9,0,0,1,72.3-72c39.6.3,71.3,33.2,71.3,72.9V112c0,35.8,7.5,56.6,14.1,68a8,8,0,0,1-6.9,12H49a8,8,0,0,1-6.9-12c6.6-11.4,14.1-32.2,14.1-68Z",opacity:"0.2"}),n().createElement("path",{d:"M56.2,104a71.9,71.9,0,0,1,72.3-72c39.6.3,71.3,33.2,71.3,72.9V112c0,35.8,7.5,56.6,14.1,68a8,8,0,0,1-6.9,12H49a8,8,0,0,1-6.9-12c6.6-11.4,14.1-32.2,14.1-68Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),n().createElement("path",{d:"M96,192v8a32,32,0,0,0,64,0v-8",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))})),Mr.set("fill",(function(){return n().createElement(n().Fragment,null,n().createElement("path",{d:"M220.8,175.9c-5.9-10.2-13-29.6-13-63.9v-7.1c0-44.3-35.5-80.6-79.2-80.9H128a79.9,79.9,0,0,0-79.8,80v8c0,34.3-7.1,53.7-13,63.9A16,16,0,0,0,49,200H88a40,40,0,0,0,80,0h39a15.9,15.9,0,0,0,13.9-8A16.2,16.2,0,0,0,220.8,175.9ZM128,224a24.1,24.1,0,0,1-24-24h48A24.1,24.1,0,0,1,128,224Z"}))})),Mr.set("light",(function(e){return n().createElement(n().Fragment,null,n().createElement("path",{d:"M56.2,104a71.9,71.9,0,0,1,72.3-72c39.6.3,71.3,33.2,71.3,72.9V112c0,35.8,7.5,56.6,14.1,68a8,8,0,0,1-6.9,12H49a8,8,0,0,1-6.9-12c6.6-11.4,14.1-32.2,14.1-68Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),n().createElement("path",{d:"M96,192v8a32,32,0,0,0,64,0v-8",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))})),Mr.set("thin",(function(e){return n().createElement(n().Fragment,null,n().createElement("path",{d:"M56.2,104a71.9,71.9,0,0,1,72.3-72c39.6.3,71.3,33.2,71.3,72.9V112c0,35.8,7.5,56.6,14.1,68a8,8,0,0,1-6.9,12H49a8,8,0,0,1-6.9-12c6.6-11.4,14.1-32.2,14.1-68Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),n().createElement("path",{d:"M96,192v8a32,32,0,0,0,64,0v-8",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))})),Mr.set("regular",(function(e){return n().createElement(n().Fragment,null,n().createElement("path",{d:"M56.2,104a71.9,71.9,0,0,1,72.3-72c39.6.3,71.3,33.2,71.3,72.9V112c0,35.8,7.5,56.6,14.1,68a8,8,0,0,1-6.9,12H49a8,8,0,0,1-6.9-12c6.6-11.4,14.1-32.2,14.1-68Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),n().createElement("path",{d:"M96,192v8a32,32,0,0,0,64,0v-8",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}));var Dr=function(e,t){return Or(e,t,Mr)},zr=(0,t.forwardRef)((function(e,t){return n().createElement(Ar,Object.assign({ref:t},e,{renderPath:Dr}))}));zr.displayName="Bell";const Ur=zr;var Br=new Map;Br.set("bold",(function(e){return n().createElement(n().Fragment,null,n().createElement("circle",{cx:"128",cy:"96",r:"64",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),n().createElement("path",{d:"M31,216a112,112,0,0,1,194,0",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))})),Br.set("duotone",(function(e){return n().createElement(n().Fragment,null,n().createElement("circle",{cx:"128",cy:"96",r:"64",opacity:"0.2"}),n().createElement("circle",{cx:"128",cy:"96",r:"64",fill:"none",stroke:e,strokeMiterlimit:"10",strokeWidth:"16"}),n().createElement("path",{d:"M31,216a112,112,0,0,1,194,0",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))})),Br.set("fill",(function(){return n().createElement(n().Fragment,null,n().createElement("path",{d:"M231.9,212a120.7,120.7,0,0,0-67.1-54.2,72,72,0,1,0-73.6,0A120.7,120.7,0,0,0,24.1,212a7.7,7.7,0,0,0,0,8,7.8,7.8,0,0,0,6.9,4H225a7.8,7.8,0,0,0,6.9-4A7.7,7.7,0,0,0,231.9,212Z"}))})),Br.set("light",(function(e){return n().createElement(n().Fragment,null,n().createElement("circle",{cx:"128",cy:"96",r:"64",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),n().createElement("path",{d:"M31,216a112,112,0,0,1,194,0",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))})),Br.set("thin",(function(e){return n().createElement(n().Fragment,null,n().createElement("circle",{cx:"128",cy:"96",r:"64",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),n().createElement("path",{d:"M31,216a112,112,0,0,1,194,0",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))})),Br.set("regular",(function(e){return n().createElement(n().Fragment,null,n().createElement("circle",{cx:"128",cy:"96",r:"64",fill:"none",stroke:e,strokeMiterlimit:"10",strokeWidth:"16"}),n().createElement("path",{d:"M31,216a112,112,0,0,1,194,0",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}));var Wr=function(e,t){return Or(e,t,Br)},Hr=(0,t.forwardRef)((function(e,t){return n().createElement(Ar,Object.assign({ref:t},e,{renderPath:Wr}))}));Hr.displayName="User";const qr=Hr;var Vr=new Map;Vr.set("bold",(function(e){return n().createElement(n().Fragment,null,n().createElement("polyline",{points:"208 96 128 176 48 96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))})),Vr.set("duotone",(function(e){return n().createElement(n().Fragment,null,n().createElement("polygon",{points:"208 96 128 176 48 96 208 96",opacity:"0.2"}),n().createElement("polygon",{points:"208 96 128 176 48 96 208 96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))})),Vr.set("fill",(function(){return n().createElement(n().Fragment,null,n().createElement("path",{d:"M215.4,92.9A8,8,0,0,0,208,88H48a8,8,0,0,0-7.4,4.9,8.4,8.4,0,0,0,1.7,8.8l80,80a8.2,8.2,0,0,0,11.4,0l80-80A8.4,8.4,0,0,0,215.4,92.9Z"}))})),Vr.set("light",(function(e){return n().createElement(n().Fragment,null,n().createElement("polyline",{points:"208 96 128 176 48 96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))})),Vr.set("thin",(function(e){return n().createElement(n().Fragment,null,n().createElement("polyline",{points:"208 96 128 176 48 96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))})),Vr.set("regular",(function(e){return n().createElement(n().Fragment,null,n().createElement("polyline",{points:"208 96 128 176 48 96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}));var Zr=function(e,t){return Or(e,t,Vr)},Jr=(0,t.forwardRef)((function(e,t){return n().createElement(Ar,Object.assign({ref:t},e,{renderPath:Zr}))}));Jr.displayName="CaretDown";const $r=Jr;var Kr=new Map;Kr.set("bold",(function(){return n().createElement(n().Fragment,null,n().createElement("circle",{cx:"60",cy:"60",r:"16"}),n().createElement("circle",{cx:"128",cy:"60",r:"16"}),n().createElement("circle",{cx:"196",cy:"60",r:"16"}),n().createElement("circle",{cx:"60",cy:"128",r:"16"}),n().createElement("circle",{cx:"128",cy:"128",r:"16"}),n().createElement("circle",{cx:"196",cy:"128",r:"16"}),n().createElement("circle",{cx:"60",cy:"196",r:"16"}),n().createElement("circle",{cx:"128",cy:"196",r:"16"}),n().createElement("circle",{cx:"196",cy:"196",r:"16"}))})),Kr.set("duotone",(function(){return n().createElement(n().Fragment,null,n().createElement("circle",{cx:"60",cy:"60",r:"12"}),n().createElement("circle",{cx:"128",cy:"60",r:"12"}),n().createElement("circle",{cx:"196",cy:"60",r:"12"}),n().createElement("circle",{cx:"60",cy:"128",r:"12"}),n().createElement("circle",{cx:"128",cy:"128",r:"12"}),n().createElement("circle",{cx:"196",cy:"128",r:"12"}),n().createElement("circle",{cx:"60",cy:"196",r:"12"}),n().createElement("circle",{cx:"128",cy:"196",r:"12"}),n().createElement("circle",{cx:"196",cy:"196",r:"12"}))})),Kr.set("fill",(function(){return n().createElement(n().Fragment,null,n().createElement("path",{d:"M60,48A12,12,0,1,0,72,60,12,12,0,0,0,60,48Zm68,0a12,12,0,1,0,12,12A12,12,0,0,0,128,48Zm68,24a12,12,0,1,0-12-12A12,12,0,0,0,196,72ZM60,184a12,12,0,1,0,12,12A12,12,0,0,0,60,184Zm68,0a12,12,0,1,0,12,12A12,12,0,0,0,128,184Zm68,0a12,12,0,1,0,12,12A12,12,0,0,0,196,184ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Zm68,0a12,12,0,1,0,12,12A12,12,0,0,0,128,116Zm68,0a12,12,0,1,0,12,12A12,12,0,0,0,196,116Z"}))})),Kr.set("light",(function(){return n().createElement(n().Fragment,null,n().createElement("circle",{cx:"60",cy:"60",r:"10"}),n().createElement("circle",{cx:"128",cy:"60",r:"10"}),n().createElement("circle",{cx:"196",cy:"60",r:"10"}),n().createElement("circle",{cx:"60",cy:"128",r:"10"}),n().createElement("circle",{cx:"128",cy:"128",r:"10"}),n().createElement("circle",{cx:"196",cy:"128",r:"10"}),n().createElement("circle",{cx:"60",cy:"196",r:"10"}),n().createElement("circle",{cx:"128",cy:"196",r:"10"}),n().createElement("circle",{cx:"196",cy:"196",r:"10"}))})),Kr.set("thin",(function(){return n().createElement(n().Fragment,null,n().createElement("circle",{cx:"60",cy:"60",r:"8"}),n().createElement("circle",{cx:"128",cy:"60",r:"8"}),n().createElement("circle",{cx:"196",cy:"60",r:"8"}),n().createElement("circle",{cx:"60",cy:"128",r:"8"}),n().createElement("circle",{cx:"128",cy:"128",r:"8"}),n().createElement("circle",{cx:"196",cy:"128",r:"8"}),n().createElement("circle",{cx:"60",cy:"196",r:"8"}),n().createElement("circle",{cx:"128",cy:"196",r:"8"}),n().createElement("circle",{cx:"196",cy:"196",r:"8"}))})),Kr.set("regular",(function(){return n().createElement(n().Fragment,null,n().createElement("circle",{cx:"60",cy:"60",r:"12"}),n().createElement("circle",{cx:"128",cy:"60",r:"12"}),n().createElement("circle",{cx:"196",cy:"60",r:"12"}),n().createElement("circle",{cx:"60",cy:"128",r:"12"}),n().createElement("circle",{cx:"128",cy:"128",r:"12"}),n().createElement("circle",{cx:"196",cy:"128",r:"12"}),n().createElement("circle",{cx:"60",cy:"196",r:"12"}),n().createElement("circle",{cx:"128",cy:"196",r:"12"}),n().createElement("circle",{cx:"196",cy:"196",r:"12"}))}));var Xr=function(e,t){return Or(e,t,Kr)},Gr=(0,t.forwardRef)((function(e,t){return n().createElement(Ar,Object.assign({ref:t},e,{renderPath:Xr}))}));Gr.displayName="DotsNine";const Qr=Gr;function Yr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var eo,to=(9,function(e){if(Array.isArray(e))return e}(eo=Z(["hbr-shell-header","hbr-icon","hbr-input","hbr-dropdown","hbr-menu","hbr-menu-item","hbr-tag","hbr-button","hbr-badge"]))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{for(i=(n=n.call(e)).next,!9;!(c=(r=i.call(n)).done)&&(l.push(r.value),9!==l.length);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(eo)||function(e,t){if(e){if("string"==typeof e)return Yr(e,9);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yr(e,9):void 0}}(eo)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),no=to[0],ro=to[1],oo=to[2],io=to[3],ao=to[4],lo=to[5],co=(to[6],to[7]),so=to[8];const uo=function(){var e=(0,v.useDispatch)(),t=(0,v.useSelector)((function(e){return e.nav.userInfo})),r=$(),o=n().createElement(co,{onClick:function(){e(wr())},noPadding:!0,sentiment:"header",slot:"menu"},n().createElement(Rr,{size:24,weight:"bold"})),i=n().createElement("a",{href:"/",slot:"logo-name",style:{marginLeft:"4px"}},n().createElement(ro,{name:"cisco"}),n().createElement("div",null,"YANG Suite")),a=n().createElement(oo,{slot:"search",placeholder:"Search",size:"medium",clearable:!0,className:"shell-header-input-search"},n().createElement(ro,{slot:"prefix",name:"magnifying-glass"})),l=n().createElement(co,{noPadding:!0,sentiment:"header",slot:"trigger",onClick:function(e){e.preventDefault(),r("help/yangsuite/",!0)}},n().createElement(Fr,{size:24,weight:"bold"})),c=n().createElement(co,{noPadding:!0,sentiment:"header",slot:"trigger",onClick:function(e){e.preventDefault(),r("yangsuite/logs/",!0)}},n().createElement(Ur,{size:24,weight:"bold"}),n().createElement(so,{inline:!0,dot:!0,slot:"suffix",sentiment:"danger",style:{"--bg-color":"var(--hbr-color-danger-vivid-bg)","--dot-size":"7px",top:0,right:0,paddingLeft:"2px"}})),s={heading:{fontSize:"10px",color:"var(--hbr-color-text-weak)",padding:"0 12px"},labelBold:{fontWeight:"600",textAlign:"left",lineHeight:"20px",padding:"0 10px",paddingRight:"12px",color:"#F7F7F7",marginTop:"-5px"},label:{fontWeight:"400",textAlign:"left",lineHeight:"12px",padding:"0 10px",paddingRight:"12px",color:"#F7F7F7"},labelBold2:{fontWeight:"600",textAlign:"left",lineHeight:"20px",padding:"0 10px",paddingRight:"12px",color:"var(--hbr-color-neutral-text, #F7F7F7)"},label2:{fontWeight:"400",textAlign:"left",lineHeight:"12px",padding:"0 10px",paddingRight:"12px",color:"var(--hbr-color-neutral-text, #F7F7F7)"},menuBody:{padding:"12px",flex:"1 1 auto"},menuItem:{backgroundColor:"var(--background)",position:"relative",display:"flex",alignItems:"center",fontFamily:"var(--hbr-font-body)",fontSize:"var(--hbr-font-size-sm)",fontWeight:"var(--hbr-font-weight-normal)",lineHeight:"var(--hbr-font-line-height-normal)",letterSpacing:"var(--hbr-font-letter-spacing-normal)",textAlign:"left",color:"var(--hbr-control-color, #23282e)",padding:"var(--hbr-spacing-xs) var(--hbr-spacing-lg) 0 var(--hbr-spacing-lg)",transition:"var(--hbr-transition-fast) fill",userSelect:"none",whiteSpace:"nowrap",width:"100%"},prefix:{flex:"0 0 auto",display:"flex",alignItems:"center"},suffix:{flex:"0 0 auto",display:"flex",alignItems:"center"},devider:{borderTop:"solid 1px var(--hbr-color-neutral-border-weak)",margin:"var(--hbr-spacing-xs) 0"}},u=n().createElement(io,{slot:"user-profile",hoist:!0,menu:!0,sentiment:"header",distance:"12"},n().createElement(co,{noPadding:!0,sentiment:"header",slot:"trigger"},n().createElement(qr,{slot:"prefix",size:24,weight:"bold"}),n().createElement($r,{slot:"suffix",size:16,weight:"bold"}),n().createElement("div",{style:s.labelBold},t&&t.username)),n().createElement("hbr-menu",null,n().createElement("div",{style:s.menuItem},n().createElement(qr,{style:s.prefix,size:24,weight:"bold"}),n().createElement("div",{style:s.menuBody},n().createElement("div",{style:s.heading},"LOGGED IN AS"),n().createElement("div",{style:s.labelBold2},t&&t.username))),n().createElement("div",null,n().createElement(co,{style:s.menuItem,variant:"outline",onClick:function(e){e.preventDefault(),r("accounts/profile/",!0)}},n().createElement(ro,{slot:"prefix",name:"gear-six"}),"User Profile"),n().createElement(co,{style:s.menuItem,variant:"fill",onClick:function(t){t.preventDefault(),e(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t){e?t(br()):Ut.get("/api/logout").then((function(e){return t(br())})).catch((function(e){return console.log(e)}))}}(!0)),window.location.href="/accounts/logout/"}},n().createElement(ro,{slot:"prefix",name:"sign-out"}),"Log Out")))),d=n().createElement(io,{slot:"application-launcher",hoist:!0,menu:!0,sentiment:"header",distance:"12"},n().createElement(co,{noPadding:!0,sentiment:"header",slot:"trigger"},n().createElement(Qr,{size:24,weight:"bold"})),n().createElement(ao,null,n().createElement(lo,null,"Apps")));return n().createElement("div",null,n().createElement(no,{className:"sticky top-0 flex flex-wrap",style:{zIndex:"var(--hbr-z-index-shell)"}},o,i,a,n().createElement("div",{slot:"utilities"},l,c,n().createElement("hbr-menu-divider",{vertical:!0,sentiment:"header"})),u,d))};function fo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var po=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{for(i=(n=n.call(e)).next,!1;!(c=(r=i.call(n)).done)&&(l.push(r.value),1!==l.length);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e)||function(e,t){if(e){if("string"==typeof e)return fo(e,1);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fo(e,1):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Z(["hbr-spinner"])),mo=po[0];function ho(e){var t=e.msg,r=void 0===t?"Fetching data":t;return n().createElement("div",{className:"loader"},n().createElement(mo,{size:"extra-large",className:"loading"},n().createElement("div",{slot:"label"},r)))}function yo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}a(12);var bo=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return yo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yo(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Z(["hbr-input","hbr-button","hbr-form"]),3);bo[0],bo[1],bo[2];var go={root:{display:"flex",flexDirection:"column",height:"100vh",flexShrink:0,overflow:"hidden"},body:{display:"flex",flexDirection:"row",flex:1,overflowY:"hidden"},outlet:{flex:1,overflow:"auto",height:"100%"}};const vo=function(){var e=(0,v.useSelector)((function(e){return e.nav.menu})),r=(0,v.useSelector)((function(e){return e.nav.userInfo})),o=(0,v.useDispatch)();return(0,t.useEffect)((function(){r&&r.loggedIn&&0===e.length&&o((function(e){Ut.get("/api/menu").then((function(t){e(mr(t.data))})).catch((function(e){return console.log(e)}))}))}),[r]),(0,t.useEffect)((function(){null===r&&o((function(e){Ut.get("/api/login").then((function(t){e(yr(t.data))})).catch((function(t){return e(yr(null))}))}))}),[]),null===r?n().createElement(ho,null):(r&&!1===r.loggedIn&&(window.location.href="/accounts/logout/"),n().createElement(n().Fragment,null,0!==e.length?n().createElement("div",{style:go.root},n().createElement(uo,null),n().createElement("div",{style:go.body},n().createElement(kr,null),n().createElement("div",{style:go.outlet},n().createElement(J.Outlet,null)))):n().createElement(ho,null)))};var Eo=function(e){var t=e.data,n=t.basetype,r=t.datatype,o="";return wo(e)||(n?o=n:!n&&r&&(o=r)),o},wo=function(e){return"module"===e.data.modtype},xo={binary:"string",bits:"string",boolean:"boolean",decimal64:"number",empty:"empty",enumeration:"string",identityref:"string","instance-identifier":"string",int8:"number",int16:"number",int32:"number",int64:"number",leafref:"string",string:"string",uint8:"number",uint16:"number",uint32:"number",uint64:"number",union:"string"};function ko(e){return ko="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ko(e)}function jo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Oo=function(e,t,n){An(e)[t]||(e[t]={}),An(e)[t][n]||(e[t][n]=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jo(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],o=function(e){var t=function(e,t){if("object"!=ko(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=ko(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ko(t)?t:t+""}(o),o in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},{nodes:[],nodeValues:{},startNode:null,endNode:null,parentModule:null}))},So=Xn({name:"tree",initialState:{},reducers:{setNodeValue:function(e,t){var n=t.payload,r=n.node,o=n.workflowId,i=n.instanceId,a=n.value,l=n.op,c=r.id,s=r.data,u=s.xpath,d=s.nodetype,f=s.datatype,p=s.namespace,m=void 0===p?"":p,h=s.operations,y=void 0===h?[]:h,b=s.prefix,g=void 0===b?"":b,v=s.xpath_pfx,E=void 0===v?"":v,w="edit-config";1===y.length&&"get"===y[0]&&(w="get"),Oo(e,o,i);var x=An(e)[o][i].nodeValues[c]||{},k=x.op,j=void 0===k?"":k,O=x.value,S=void 0===O?"":O,_={xpath_pfx:E,xpath:u,datatype:f||Eo(r),nodetype:d,operation:w,namespace:m,prefix:g,op:l||j,value:null!=a?a:S};e[o][i].nodeValues[c]=_},removeNodeValue:function(e,t){var n=t.payload,r=n.id,o=n.workflowId,i=n.instanceId;An(e)[o]&&An(e)[o][i]&&delete e[o][i].nodeValues[r]},setStartNode:function(e,t){var n=t.payload,r=n.id,o=n.xpath,i=n.workflowId,a=n.instanceId,l={id:r,xpath:o};i&&a&&(Oo(e,i,a),e[i][a].startNode=l,e[i][a].endNode=null)},setEndNode:function(e,t){var n=t.payload,r=n.id,o=n.xpath,i=n.workflowId,a=n.instanceId,l={id:r,xpath:o};i&&a&&(Oo(e,i,a),e[i][a].endNode=l)},clearStartNode:function(e,t){var n=t.payload,r=n.workflowId,o=n.instanceId;r&&o&&An(e)[r]&&An(e)[r][o]&&(e[r][o].startNode=null,e[r][o].endNode=null,e[r][o].parentModule=null)},clearEndNode:function(e,t){var n=t.payload,r=n.workflowId,o=n.instanceId;r&&o&&An(e)[r]&&An(e)[r][o]&&(e[r][o].endNode=null)},deletePersistedTreeState:function(e,t){var n,r=t.payload,o=r.workflowId,i=r.instanceId,a=An(e);null!=a&&null!==(n=a[o])&&void 0!==n&&n[i]&&delete e[o][i]},setParentModule:function(e,t){var n=t.payload,r=n.id,o=n.parentModule,i=n.workflowId,a=n.instanceId;i&&a&&(Oo(e,i,a),e[i][a].parentModule={id:r,moduleName:o})}}}),_o=So.actions,Ao=_o.setNodeValue,No=_o.removeNodeValue,Po=_o.setStartNode,Co=_o.setEndNode,Ro=_o.clearStartNode,Lo=_o.clearEndNode,To=(_o.initializeTree,_o.deletePersistedTreeState),Io=_o.setParentModule;const Fo=So.reducer;var Mo=a(12);function Do(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var zo=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{for(i=(n=n.call(e)).next,!1;!(c=(r=i.call(n)).done)&&(l.push(r.value),1!==l.length);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e)||function(e,t){if(e){if("string"==typeof e)return Do(e,1);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Do(e,1):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Z(["hbr-icon"])),Uo=zo[0],Bo="#1D69CC",Wo="#00b300",Ho="#CC2D37",qo="#000000",Vo=Object.freeze({action:{name:"nav-threats",color:qo},anydata:{name:"nav-network-switcher",color:Wo},anyxml:{name:"nav-filters",color:Wo},case:{name:"arrow-right",color:Bo},choice:{name:"nav-organization",color:Bo},container:{name:"nav-resources",color:Bo},grouping:{name:"nav-groups",color:Bo},identity:{name:"info",color:Bo},input:{name:"download-simple",color:Bo},key:{name:"nav-identity",color:Bo},leaf:{name:"leaf",color:Wo},"leaf-list":{name:"nav",color:Wo},list:{name:"nav-list",color:Bo},module:{name:"nav-samples",color:qo},notification:{name:"bell",color:qo},output:{name:"upload-simple",color:Bo},rpc:{name:"envelope-simple",color:qo},submodule:{name:"nav-samples",color:qo},typedef:{name:"nav-intelligence",color:Bo}}),Zo=Object.freeze({key:Mo.createElement(Uo,{name:"nav-identity",style:{fontSize:"14px",top:"0px",right:"0px",position:"absolute"}}),mandatory:Mo.createElement("hbr-icon",{name:"alerts-info-large",style:{fontSize:"12px",top:"0px",right:"10px",position:"absolute",color:"#8B0000"}}),when:Mo.createElement(Uo,{name:"paperclip",style:{fontSize:"12px",top:"-13px",right:"10px",position:"absolute",color:Ho}}),must:Mo.createElement(Uo,{name:"paperclip",style:{fontSize:"12px",top:"-10px",right:"10px",position:"absolute",color:"#1230AE"}}),leafref:Mo.createElement(Uo,{name:"arrow-square-out",style:{fontSize:"10px",top:"-13px",right:"-3px",position:"absolute"}}),presence:Mo.createElement(Uo,{name:"leaf",style:{fontSize:"12px",top:"-13px",right:"-5px",position:"absolute",color:"#1F5E06"}})}),Jo=Object.freeze(["==","!=",">","<",">=","<=","range","any"]),$o=Object.freeze({obsolete:Ho,deprecated:"#ffcc00"}),Ko=a(673),Xo={};Xo.styleTagTransform=y(),Xo.setAttributes=f(),Xo.insert=u().bind(null,"head"),Xo.domAPI=c(),Xo.insertStyleElement=m(),o()(Ko.A,Xo);const Go=Ko.A&&Ko.A.locals?Ko.A.locals:void 0;var Qo=a(579),Yo={};Yo.styleTagTransform=y(),Yo.setAttributes=f(),Yo.insert=u().bind(null,"head"),Yo.domAPI=c(),Yo.insertStyleElement=m(),o()(Qo.A,Yo),Qo.A&&Qo.A.locals&&Qo.A.locals;var ei=a(12),ti=["typespec"];function ni(e){return ni="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ni(e)}function ri(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return oi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oi(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ii=ri(Z(["hbr-icon","hbr-input","hbr-option","hbr-checkbox","hbr-button","hbr-badge","hbr-select","hbr-modal"]),8),ai=(ii[0],ii[1],ii[2],ii[3],ii[4]),li=(ii[5],ii[6],ii[7]);const ci=function(e){e.open;var t=e.handleClose,n=e.property,r=function e(t){return ei.createElement("div",{className:"nested-object"},Object.entries(t).map((function(t){var n=ri(t,2),r=n[0],i=n[1];return ei.createElement("div",{key:r,className:"rowNested"},ei.createElement("span",{className:"key"},r,":"),ei.createElement("span",{className:"value"},Array.isArray(i)?o(i):"object"!==ni(i)||Array.isArray(i)?i:e(i)))})))},o=function e(t){return ei.createElement("ul",{className:"array"},t.map((function(t,n){if(!Array.isArray(t))return"object"!==ni(t)||Array.isArray(t)?ei.createElement("li",{key:n},t):ei.createElement(ei.Fragment,null,r(t),ei.createElement("br",null));e(t)})))},i=function(e){var t=e.obj;return ei.createElement("div",{className:"object-display"},ei.createElement("div",{className:"details"},Object.entries(t).map((function(e){var t=ri(e,2),n=t[0],i=t[1];return ei.createElement("div",{key:n,className:"row"},ei.createElement("span",{className:"key"},n.toUpperCase(),":"),ei.createElement("div",{className:"value"},Array.isArray(i)?o(i):"object"!==ni(i)||Array.isArray(i)?i:r(i)))}))))},a=(n.typespec,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(n,ti));return ei.createElement(li,{label:"Properties",open:!0,"onHbr-after-hide":function(e){e.preventDefault(),t(!1)},"onHbr-after-show":function(e){e.preventDefault()},style:{"--width":"50%","--padding":"0 20px"}},ei.createElement("div",{className:"app-container"},ei.createElement(i,{obj:a})),ei.createElement("div",{slot:"footer",className:"hbr-css__layout-row-sm hbr-css__button-group-end"},ei.createElement(ai,{variant:"fill",onClick:t},"Close")))};var si=a(12);function ui(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var di=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{for(i=(n=n.call(e)).next,!2;!(c=(r=i.call(n)).done)&&(l.push(r.value),2!==l.length);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e)||function(e,t){if(e){if("string"==typeof e)return ui(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ui(e,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Z(["hbr-banner","hbr-icon"])),fi=di[0],pi=di[1];const mi=function(e){var t=e.banner,n=e.handleClose;return si.createElement("div",null,si.createElement(fi,{variant:"fill",sentiment:"warning",open:t.open,closable:!0,"onHbr-after-hide":function(e){e.preventDefault(),n()},"onHbr-after-show":function(e){e.preventDefault()}},si.createElement(pi,{slot:"icon",name:"alerts-warning-large"}),t.message))};function hi(e){return function(e){if(Array.isArray(e))return gi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||bi(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||bi(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bi(e,t){if(e){if("string"==typeof e)return gi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gi(e,t):void 0}}function gi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var vi=yi(Z(["hbr-icon","hbr-input","hbr-option","hbr-checkbox","hbr-button","hbr-badge","hbr-select","hbr-radio","hbr-radio-group","hbr-banner"]),10),Ei=vi[0],wi=vi[1],xi=vi[2],ki=vi[3],ji=vi[4],Oi=vi[5],Si=vi[6],_i=vi[7],Ai=vi[8];vi[9];const Ni=function e(r){var o,i,a,l,c,s,u,d,f,p,m,h,y,b,g,E,w,x,k,j=r.node,O=r.level,S=r.workflowId,_=r.instanceId,A=r.parentModule,N=(0,v.useDispatch)(),P=(0,v.useSelector)((function(e){return e.tree})),C=P[S]&&P[S][_]?P[S][_]:{},R=C.nodeValues,L=void 0===R?{}:R,T=C.startNode,I=void 0===T?null:T,F=C.endNode,M=void 0===F?null:F,D=yi((0,t.useState)(!1),2),z=D[0],U=D[1],B=yi((0,t.useState)(!1),2),W=B[0],H=B[1],q=yi((0,t.useState)(!1),2),V=q[0],Z=q[1],J=yi((0,t.useState)({open:!1,message:""}),2),$=J[0],K=J[1],X=function(){N(Ao({value:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",op:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",node:j,workflowId:S,instanceId:_}))},G=function(){var e=j.data,t=j.id,r=e.name,o=(L[t]||{}).op,i=void 0===o?"":o;return n().createElement("div",{className:Go["node-input"]},n().createElement(Si,{size:"small",placeholder:"Select operation for ".concat(r),value:i},Jo.map((function(e){return n().createElement(xi,{key:e,value:e,onClick:function(){return X(null,e)}},e)}))))},Q=function(){return n().createElement("div",{className:Go["node-input"]})};return n().createElement(n().Fragment,null,$.open&&n().createElement(mi,{banner:$,handleClose:function(){K({open:!1,message:""})}}),V&&n().createElement(ci,{open:V,handleClose:function(){Z(!1)},property:j.data}),n().createElement("div",{style:{marginLeft:"".concat(4*O,"px"),backgroundColor:"#f9f9f9"}},n().createElement("div",{className:Go.node,onClick:function(){U(!z)}},n().createElement("div",{className:Go["node-information"],onMouseEnter:function(){return H(!0)},onMouseLeave:function(){return H(!1)}},function(){var e=j.children;if(e&&e.length>0)return n().createElement("div",{className:Go["node-icon"]},z?n().createElement(Ei,{className:Go["node-caret-down-icon"],name:"caret-down",label:"Collapse Tree Node",style:{fontSize:"30px"}}):n().createElement(Ei,{className:Go["node-caret-right-icon"],name:"caret-right",label:"Expand Tree Node"}))}(),(d=(u=j.data).nodetype,u.modtype,f=u.datatype,m=void 0===(p=u.status)?"":p,h=u.key,y=u.mandatory,b=u.when,g=u.must,E=u.presence,w=null===(c=Vo[wo(j)?"module":d])||void 0===c?void 0:c.name,x=null===(s=Vo[wo(j)?"module":d])||void 0===s?void 0:s.color,k=[],"true"===h&&k.push(Zo.key),"true"===y&&k.push(Zo.mandatory),b&&k.push(Zo.when),g&&k.push(Zo.must),E&&k.push(Zo.presence),wo(j)||"leafref"!==f||k.push(Zo.leafref),m&&(x=$o[m.toLowerCase()]),w?n().createElement("div",{className:"".concat(Go["node-icon"]," ").concat(Go["leaf-icon"])},n().createElement(Ei,{name:w,style:{color:x,fontSize:"20px"},label:"Node Type Icon"}),n().createElement("div",{style:{position:"relative"}},k)):null),(l=j.text,j.data,n().createElement("div",{className:"".concat(Go["node-name"]," ").concat(Go["no-select"]),onContextMenu:(null==j?void 0:j.data)&&function(e){e.preventDefault(),Z(!0)}},l)),(a=Eo(j))?n().createElement(Oi,{className:Go["node-badge"],pill:!0,size:"small"},a):null,(i=j.id,I&&M&&i>=I.id&&i<=M.id?n().createElement(Oi,{pill:!0,size:"small",sentiment:"success"},"selected"):null),function(){var e=j.id;if(L[e])return n().createElement(ji,{size:"small",variant:"primary",sentiment:"danger",onClick:function(){return function(e){N(No({id:e,workflowId:S,instanceId:_}))}(e)},style:{marginLeft:"4px"}},"Clear Value")}(),function(){var e=j.id,t=j.data,r=t.xpath,o=t.key;return t&&r&&!I&&W?n().createElement(ji,{size:"small",variant:"primary",style:{marginLeft:"4px"},onClick:function(){"true"===o?K({open:!0,message:"Selecting a key as the starting XPath is not allowed. Choose a list instead."}):(N(Po({id:e,xpath:r,workflowId:S,instanceId:_})),(null==A?void 0:A.length)>0&&N(Io({id:e,parentModule:A[0],workflowId:S,instanceId:_})))}},"Set Start XPath"):null}(),function(){var e=j.id,t=j.data,r=t.xpath;return t&&r&&I&&I.id<e&&!M&&W?n().createElement(ji,{size:"small",variant:"primary",style:{marginLeft:"4px"},onClick:function(){return N(Co({id:e,xpath:r,workflowId:S,instanceId:_}))}},"Set End XPath"):null}()),n().createElement("div",{className:Go["node-inputs"]},function(){var e,t,r,o,i,a=j.data.state,l=void 0!==a&&a;if(!wo(j))return"container"===(i=j.data.nodetype)||"list"===i?function(){var e=j.data,t=e.presence,r=void 0!==t&&t,o=e.state;return void 0!==o&&o?G():r?n().createElement(n().Fragment,null,function(){var e=j.id,t=L[e]||{},r=t.value,o=void 0===r?null:r;return t.op,n().createElement("div",{className:"".concat(Go["node-input"])},n().createElement(Ai,{"onHbr-click":function(e){e.target,X("",null)}},n().createElement(_i,{checked:null!==o,style:{margin:"0"}})))}(),Q()):null}():"number"===xo[Eo(j)]?n().createElement(n().Fragment,null,function(){j.text;var e=j.id,t=(L[e]||{}).value,r=void 0===t?"":t,o=((null==j?void 0:j.data)||{}).min,i=void 0===o?"":o,a=((null==j?void 0:j.data)||{}).max,l=void 0===a?"":a;return n().createElement("div",{className:Go["node-input"]},n().createElement(wi,{type:"number",width:"100%",min:i,max:l,size:"small",placeholder:"".concat(Eo(j),": ").concat(i," - ").concat(l),value:r,style:{width:"100%"},"onHbr-input":function(e){var t=e.target;X(t.value,null)}}))}(),Q()):"enumeration"===Eo(j)||"boolean"===Eo(j)?n().createElement(n().Fragment,null,function(){var e,t=j.id,r=L[t]||{},o=r.value,i=void 0===o?"":o,a=(r.op,(null==j?void 0:j.data).options),l=void 0===a?[]:a;return n().createElement("div",{className:Go["node-input"]},n().createElement(Si,{placeholder:"set value for ".concat((null==j||null===(e=j.data)||void 0===e?void 0:e.name)||""),name:"basic",size:"small",style:{width:"100%"},"onHbr-change":function(e){var t,n=e.detail;X((null==n||null===(t=n.option)||void 0===t?void 0:t.value)||"",null)},popoverMinWidth:300,className:"hbr-css__form-section-sm",value:i},l.map((function(e){return n().createElement(xi,{key:t.option,value:e},e," ")}))))}(),Q()):l||"empty"===Eo(j)?n().createElement(n().Fragment,null,(e=j.id,o=void 0!==(r=(t=L[e]||{}).value)&&r,t.op,n().createElement("div",{className:Go["node-input"]},n().createElement(ki,{checked:o,onClick:function(e){var t=e.target;X(t.checked,null)}}))),G()):n().createElement(n().Fragment,null,function(){var e=j.text,t=j.id,r=(L[t]||{}).value,o=void 0===r?"":r;return n().createElement("div",{className:Go["node-input"]},n().createElement(wi,{size:"small",placeholder:"Set value for ".concat(e),value:o,style:{width:"100%"},"onHbr-input":function(e){var t=e.target;X(t.value,null)}}))}(),Q())}())),n().createElement("div",{style:{marginLeft:"".concat(4*(O+1),"px")}},(o=j.children,z?o&&o.length>0&&o.map((function(t){var r;return n().createElement(e,{key:t.id,node:t,level:O+1,parentModule:[].concat(hi(A),[(null===(r=j.data)||void 0===r?void 0:r.module)||""]),workflowId:S,instanceId:_})})):null))))};var Pi=a(505),Ci={};Ci.styleTagTransform=y(),Ci.setAttributes=f(),Ci.insert=u().bind(null,"head"),Ci.domAPI=c(),Ci.insertStyleElement=m(),o()(Pi.A,Ci);const Ri=Pi.A&&Pi.A.locals?Pi.A.locals:void 0;function Li(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ti(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ti(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ti(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ii=Li(Z(["hbr-icon","hbr-tag","hbr-accordion"]),3),Fi=Ii[0],Mi=Ii[1],Di=Ii[2],zi={width:"300px",zIndex:"10",position:"absolute",top:"10px",right:"20px",backgroundColor:"rgb(249, 249, 249)"};const Ui=function(){return n().createElement(Di,{summary:"Legend",size:"small",triggerposition:"right",style:zi},Object.entries(Vo).map((function(e){var t=Li(e,2),r=t[0],o=t[1];return n().createElement(Mi,{key:r,className:Ri["legend-entry"]},n().createElement(Fi,{name:o.name,slot:"prefix",style:{color:o.color}}),r)})),Object.entries(Zo).map((function(e){var t=Li(e,2),r=t[0],o=t[1];return n().createElement(Mi,{key:r,className:Ri["legend-entry"]},n().createElement("div",{className:"".concat(Go["node-icon"]," ").concat(Go["leaf-icon"])},n().createElement(Fi,{name:"device-web-apps",slot:"prefix",style:{color:"grey",opacity:"50%"}}),n().createElement("div",{style:{position:"relative",marginRight:"5px"}},o),r))})))};function Bi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Wi=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{for(i=(n=n.call(e)).next,!1;!(c=(r=i.call(n)).done)&&(l.push(r.value),1!==l.length);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e)||function(e,t){if(e){if("string"==typeof e)return Bi(e,1);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bi(e,1):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Z(["hbr-button"])),Hi=Wi[0],qi={box:{width:"100%",height:"auto",padding:"5px",backgroundColor:"var(--hbr-color-neutral-bg-medium)",borderRadius:"2px",display:"flex",justifyContent:"space-between"},whiteBox:{width:"100%",height:"auto",padding:"5px",backgroundColor:"white",borderRadius:"2px"}};const Vi=function(e){var t=e.workflowId,r=void 0===t?null:t,o=e.instanceId,i=void 0===o?null:o,a=(0,v.useDispatch)(),l=(0,v.useSelector)((function(e){return e.tree})),c=l[r]&&l[r][i]?l[r][i]:{},s=c.startNode,u=void 0===s?null:s,d=c.endNode,f=void 0===d?null:d;return n().createElement(n().Fragment,null,n().createElement("div",{className:Ri["start-node-container"]},n().createElement("div",{className:Ri["node-card"],container:"true"},n().createElement("div",{slot:"header",role:"heading","aria-level":3},n().createElement("h3",null,"Start XPath",n().createElement("span",{style:{color:"red"}},"*"))),u?n().createElement(n().Fragment,null,n().createElement("div",{style:qi.box},u.xpath,n().createElement(Hi,{variant:"text",style:{marginRight:"var(--hbr-spacing-sm)"},onClick:function(){a(Ro({workflowId:r,instanceId:i}))}},"Clear"))):n().createElement("div",{style:qi.whiteBox},n().createElement("span",null,"No node selected, hover over a node to begin")))),n().createElement("div",{className:Ri["end-node-container"]},n().createElement("div",{className:Ri["node-card"],container:"true"},n().createElement("div",{slot:"header",role:"heading","aria-level":3},n().createElement("h3",null,"End XPath")),f?n().createElement(n().Fragment,null,n().createElement("div",{style:qi.box},f.xpath,n().createElement(Hi,{variant:"text",style:{marginRight:"var(--hbr-spacing-sm)"},onClick:function(){a(Lo({workflowId:r,instanceId:i}))}},"Clear"))):n().createElement("div",{style:qi.whiteBox},n().createElement("span",null,"No node selected, select starting XPath first")))))};function Zi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ji=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{for(i=(n=n.call(e)).next,!2;!(c=(r=i.call(n)).done)&&(l.push(r.value),2!==l.length);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e)||function(e,t){if(e){if("string"==typeof e)return Zi(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zi(e,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Z(["hbr-icon","hbr-banner"])),$i=Ji[0],Ki=Ji[1];const Xi=function(e){var t=e.workflowId,r=void 0===t?null:t,o=e.instanceId,i=void 0===o?null:o,a=e.nodes,l=void 0===a?[]:a,c=e.error,s=void 0===c?null:c;return n().createElement("div",{className:Ri.tree},n().createElement(Ui,null),n().createElement(Vi,{workflowId:r,instanceId:i}),!s&&!l||s?n().createElement(Ki,{variant:"fill",sentiment:"danger",open:!0},n().createElement($i,{slot:"icon",name:"hbr-error-filled"}),s&&n().createElement("span",null,s),!s&&!l&&n().createElement("span",null,"Unable to render tree: malformed/missing data")):null,n().createElement("div",{className:Ri["nodes-header"]},n().createElement("div",{className:Ri["nodes-name-column"]},"Name"),n().createElement("div",{className:Ri["nodes-input-container"]},n().createElement("div",{className:Ri["nodes-input-column"]},"Value"),n().createElement("div",{className:Ri["nodes-input-column"]},"Operation"))),l&&l.map((function(e){return n().createElement(Ni,{key:e.id,node:e,level:0,parentModule:[],onNodeSelectCallback:null,workflowId:r,instanceId:i})})))};var Gi={nav:gr,tree:Fo}})(),l})()));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yangsuite-ui-utils",
3
- "version": "1.0.38",
3
+ "version": "1.0.39",
4
4
  "description": "",
5
5
  "main": "bundle/index.js",
6
6
  "scripts": {