yangsuite-ui-utils 1.0.40 → 1.0.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/index.js +2 -1
- package/bundle/index.js.LICENSE.txt +1 -0
- package/package.json +1 -1
package/bundle/index.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
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:()=>Qi,closeNav:()=>vr,deletePersistedTreeState:()=>Fo,reducers:()=>Yi,showNav:()=>Er,toggleNav:()=>wr,useCustomNavigate:()=>J});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))),$=a(34);function J(){var e=(0,v.useSelector)((function(e){return e.nav.currentPlugin})),t=(0,$.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=J(),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 $e(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Je(e,t,n){if(!t)return e;const r=n&&n.encode||$e,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(),Je(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 Je(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 $t(e){return!!e&&(Kt(e)||Array.isArray(e)||!!e[Wt]||!!e.constructor?.[Wt]||en(e)||tn(e))}var Jt=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)===Jt}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)||!$t(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)),$t(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($t(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_||!$t(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(!$t(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),$t(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){$t(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 $t(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 $n(e,t){return`${e}/${t}`}function Jn({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($t(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:$n(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=Jn();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)},$r=(0,t.forwardRef)((function(e,t){return n().createElement(Ar,Object.assign({ref:t},e,{renderPath:Zr}))}));$r.displayName="CaretDown";const Jr=$r;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=J(),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(Jr,{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($.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){if(e){if("string"==typeof e)return Oo(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)?Oo(e,t):void 0}}function Oo(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}function So(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 _o=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?So(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)):So(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},{nodes:[],nodeValues:{},startNode:null,endNode:null,parentModule:null}))},Ao=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=s.key,x=void 0!==w&&w,k=s.mandatory,j=void 0!==k&&k,O=s.schema_node_id,S=void 0===O?"":O,_=s.leafref_path,A=void 0===_?"":_,N="edit-config";1===y.length&&"get"===y[0]&&(N="get");var P="";if("leafref"==f){var C,R=(S||u).split("/").filter(Boolean),L=A.split("/").filter(Boolean),T=function(e){return function(e){if(Array.isArray(e))return Oo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||jo(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.")}()}(R),I=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=jo(e))){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(L);try{for(I.s();!(C=I.n()).done;){var F=C.value;if(".."===F){if(0===T.length){T=R;break}T.pop()}else T.push(F)}}catch(e){I.e(e)}finally{I.f()}P="/"+T.join("/")}_o(e,o,i);var M=An(e)[o][i].nodeValues[c]||{},D=M.op,z=void 0===D?"":D,U=M.value,B=void 0===U?"":U,W={key:Boolean(x),mandatory:Boolean(j),xpath_pfx:E,xpath:u,datatype:f||Eo(r),nodetype:d,operation:N,namespace:m,leafref_node:P,prefix:g,op:l||z,value:null!=a?a:B};e[o][i].nodeValues[c]=W},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&&(_o(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&&(_o(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&&(_o(e,i,a),e[i][a].parentModule={id:r,moduleName:o})}}}),No=Ao.actions,Po=No.setNodeValue,Co=No.removeNodeValue,Ro=No.setStartNode,Lo=No.setEndNode,To=No.clearStartNode,Io=No.clearEndNode,Fo=(No.initializeTree,No.deletePersistedTreeState),Mo=No.setParentModule;const Do=Ao.reducer;var zo=a(12);function Uo(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 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{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 Uo(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)?Uo(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"])),Wo=Bo[0],Ho="#1D69CC",qo="#00b300",Vo="#CC2D37",Zo="#000000",$o=Object.freeze({action:{name:"nav-threats",color:Zo},anydata:{name:"nav-network-switcher",color:qo},anyxml:{name:"nav-filters",color:qo},case:{name:"arrow-right",color:Ho},choice:{name:"nav-organization",color:Ho},container:{name:"nav-resources",color:Ho},grouping:{name:"nav-groups",color:Ho},identity:{name:"info",color:Ho},input:{name:"download-simple",color:Ho},key:{name:"nav-identity",color:Ho},leaf:{name:"leaf",color:qo},"leaf-list":{name:"nav",color:qo},list:{name:"nav-list",color:Ho},module:{name:"nav-samples",color:Zo},notification:{name:"bell",color:Zo},output:{name:"upload-simple",color:Ho},rpc:{name:"envelope-simple",color:Zo},submodule:{name:"nav-samples",color:Zo},typedef:{name:"nav-intelligence",color:Ho}}),Jo=Object.freeze({key:zo.createElement(Wo,{name:"nav-identity",style:{fontSize:"14px",top:"0px",right:"0px",position:"absolute"}}),mandatory:zo.createElement("hbr-icon",{name:"alerts-info-large",style:{fontSize:"12px",top:"0px",right:"10px",position:"absolute",color:"#8B0000"}}),when:zo.createElement(Wo,{name:"paperclip",style:{fontSize:"12px",top:"-13px",right:"10px",position:"absolute",color:Vo}}),must:zo.createElement(Wo,{name:"paperclip",style:{fontSize:"12px",top:"-10px",right:"10px",position:"absolute",color:"#1230AE"}}),leafref:zo.createElement(Wo,{name:"arrow-square-out",style:{fontSize:"10px",top:"-13px",right:"-3px",position:"absolute"}}),presence:zo.createElement(Wo,{name:"leaf",style:{fontSize:"12px",top:"-13px",right:"-5px",position:"absolute",color:"#1F5E06"}})}),Ko=Object.freeze(["==","!=",">","<",">=","<=","range","any"]),Xo=Object.freeze({obsolete:Vo,deprecated:"#ffcc00"}),Go=a(673),Qo={};Qo.styleTagTransform=y(),Qo.setAttributes=f(),Qo.insert=u().bind(null,"head"),Qo.domAPI=c(),Qo.insertStyleElement=m(),o()(Go.A,Qo);const Yo=Go.A&&Go.A.locals?Go.A.locals:void 0;var ei=a(579),ti={};ti.styleTagTransform=y(),ti.setAttributes=f(),ti.insert=u().bind(null,"head"),ti.domAPI=c(),ti.insertStyleElement=m(),o()(ei.A,ti),ei.A&&ei.A.locals&&ei.A.locals;var ni=a(12),ri=["typespec"];function oi(e){return oi="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},oi(e)}function ii(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 ai(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)?ai(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 ai(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=ii(Z(["hbr-icon","hbr-input","hbr-option","hbr-checkbox","hbr-button","hbr-badge","hbr-select","hbr-modal"]),8),ci=(li[0],li[1],li[2],li[3],li[4]),si=(li[5],li[6],li[7]);const ui=function(e){e.open;var t=e.handleClose,n=e.property,r=function e(t){return ni.createElement("div",{className:"nested-object"},Object.entries(t).map((function(t){var n=ii(t,2),r=n[0],i=n[1];return ni.createElement("div",{key:r,className:"rowNested"},ni.createElement("span",{className:"key"},r,":"),ni.createElement("span",{className:"value"},Array.isArray(i)?o(i):"object"!==oi(i)||Array.isArray(i)?i:e(i)))})))},o=function e(t){return ni.createElement("ul",{className:"array"},t.map((function(t,n){if(!Array.isArray(t))return"object"!==oi(t)||Array.isArray(t)?ni.createElement("li",{key:n},t):ni.createElement(ni.Fragment,null,r(t),ni.createElement("br",null));e(t)})))},i=function(e){var t=e.obj;return ni.createElement("div",{className:"object-display"},ni.createElement("div",{className:"details"},Object.entries(t).map((function(e){var t=ii(e,2),n=t[0],i=t[1];return ni.createElement("div",{key:n,className:"row"},ni.createElement("span",{className:"key"},n.toUpperCase(),":"),ni.createElement("div",{className:"value"},Array.isArray(i)?o(i):"object"!==oi(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,ri));return ni.createElement(si,{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"}},ni.createElement("div",{className:"app-container"},ni.createElement(i,{obj:a})),ni.createElement("div",{slot:"footer",className:"hbr-css__layout-row-sm hbr-css__button-group-end"},ni.createElement(ci,{variant:"fill",onClick:t},"Close")))};var di=a(12);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,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 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-banner","hbr-icon"])),mi=pi[0],hi=pi[1];const yi=function(e){var t=e.banner,n=e.handleClose;return di.createElement("div",null,di.createElement(mi,{variant:"fill",sentiment:"warning",open:t.open,closable:!0,"onHbr-after-hide":function(e){e.preventDefault(),n()},"onHbr-after-show":function(e){e.preventDefault()}},di.createElement(hi,{slot:"icon",name:"alerts-warning-large"}),t.message))};function bi(e){return function(e){if(Array.isArray(e))return Ei(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||vi(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 gi(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)||vi(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 vi(e,t){if(e){if("string"==typeof e)return Ei(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)?Ei(e,t):void 0}}function Ei(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=gi(Z(["hbr-icon","hbr-input","hbr-option","hbr-checkbox","hbr-button","hbr-badge","hbr-select","hbr-radio","hbr-radio-group","hbr-banner"]),10),xi=wi[0],ki=wi[1],ji=wi[2],Oi=wi[3],Si=wi[4],_i=wi[5],Ai=wi[6],Ni=wi[7],Pi=wi[8];wi[9];const Ci=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=gi((0,t.useState)(!1),2),z=D[0],U=D[1],B=gi((0,t.useState)(!1),2),W=B[0],H=B[1],q=gi((0,t.useState)(!1),2),V=q[0],Z=q[1],$=gi((0,t.useState)({open:!1,message:""}),2),J=$[0],K=$[1],X=function(){N(Po({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:Yo["node-input"]},n().createElement(Ai,{size:"small",placeholder:"Select operation for ".concat(r),value:i},Ko.map((function(e){return n().createElement(ji,{key:e,value:e,onClick:function(){return X(null,e)}},e)}))))},Q=function(){return n().createElement("div",{className:Yo["node-input"]})};return n().createElement(n().Fragment,null,J.open&&n().createElement(yi,{banner:J,handleClose:function(){K({open:!1,message:""})}}),V&&n().createElement(ui,{open:V,handleClose:function(){Z(!1)},property:j.data}),n().createElement("div",{style:{marginLeft:"".concat(4*O,"px"),backgroundColor:"#f9f9f9"}},n().createElement("div",{className:Yo.node,onClick:function(){U(!z)}},n().createElement("div",{className:Yo["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:Yo["node-icon"]},z?n().createElement(xi,{className:Yo["node-caret-down-icon"],name:"caret-down",label:"Collapse Tree Node",style:{fontSize:"30px"}}):n().createElement(xi,{className:Yo["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=$o[wo(j)?"module":d])||void 0===c?void 0:c.name,x=null===(s=$o[wo(j)?"module":d])||void 0===s?void 0:s.color,k=[],"true"===h&&k.push(Jo.key),"true"===y&&k.push(Jo.mandatory),b&&k.push(Jo.when),g&&k.push(Jo.must),E&&k.push(Jo.presence),wo(j)||"leafref"!==f||k.push(Jo.leafref),m&&(x=Xo[m.toLowerCase()]),w?n().createElement("div",{className:"".concat(Yo["node-icon"]," ").concat(Yo["leaf-icon"])},n().createElement(xi,{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(Yo["node-name"]," ").concat(Yo["no-select"]),onContextMenu:(null==j?void 0:j.data)&&function(e){e.preventDefault(),Z(!0)}},l)),(a=Eo(j))?n().createElement(_i,{className:Yo["node-badge"],pill:!0,size:"small"},a):null,(i=j.id,I&&M&&i>=I.id&&i<=M.id?n().createElement(_i,{pill:!0,size:"small",sentiment:"success"},"selected"):null),function(){var e=j.id;if(L[e])return n().createElement(Si,{size:"small",variant:"primary",sentiment:"danger",onClick:function(){return function(e){N(Co({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(Si,{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(Ro({id:e,xpath:r,workflowId:S,instanceId:_})),(null==A?void 0:A.length)>0&&N(Mo({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(Si,{size:"small",variant:"primary",style:{marginLeft:"4px"},onClick:function(){return N(Lo({id:e,xpath:r,workflowId:S,instanceId:_}))}},"Set End XPath"):null}()),n().createElement("div",{className:Yo["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(Yo["node-input"])},n().createElement(Pi,{"onHbr-click":function(e){e.target,X("",null)}},n().createElement(Ni,{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:Yo["node-input"]},n().createElement(ki,{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:Yo["node-input"]},n().createElement(Ai,{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(ji,{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:Yo["node-input"]},n().createElement(Oi,{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:Yo["node-input"]},n().createElement(ki,{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(bi(A),[(null===(r=j.data)||void 0===r?void 0:r.module)||""]),workflowId:S,instanceId:_})})):null))))};var Ri=a(505),Li={};Li.styleTagTransform=y(),Li.setAttributes=f(),Li.insert=u().bind(null,"head"),Li.domAPI=c(),Li.insertStyleElement=m(),o()(Ri.A,Li);const Ti=Ri.A&&Ri.A.locals?Ri.A.locals:void 0;function Ii(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 Fi(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)?Fi(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 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 Mi=Ii(Z(["hbr-icon","hbr-tag","hbr-accordion"]),3),Di=Mi[0],zi=Mi[1],Ui=Mi[2],Bi={width:"300px",zIndex:"10",position:"absolute",top:"10px",right:"20px",backgroundColor:"rgb(249, 249, 249)"};const Wi=function(){return n().createElement(Ui,{summary:"Legend",size:"small",triggerposition:"right",style:Bi},Object.entries($o).map((function(e){var t=Ii(e,2),r=t[0],o=t[1];return n().createElement(zi,{key:r,className:Ti["legend-entry"]},n().createElement(Di,{name:o.name,slot:"prefix",style:{color:o.color}}),r)})),Object.entries(Jo).map((function(e){var t=Ii(e,2),r=t[0],o=t[1];return n().createElement(zi,{key:r,className:Ti["legend-entry"]},n().createElement("div",{className:"".concat(Yo["node-icon"]," ").concat(Yo["leaf-icon"])},n().createElement(Di,{name:"device-web-apps",slot:"prefix",style:{color:"grey",opacity:"50%"}}),n().createElement("div",{style:{position:"relative",marginRight:"5px"}},o),r))})))};function Hi(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 qi=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 Hi(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)?Hi(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"])),Vi=qi[0],Zi={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 $i=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:Ti["start-node-container"]},n().createElement("div",{className:Ti["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:Zi.box},u.xpath,n().createElement(Vi,{variant:"text",style:{marginRight:"var(--hbr-spacing-sm)"},onClick:function(){a(To({workflowId:r,instanceId:i}))}},"Clear"))):n().createElement("div",{style:Zi.whiteBox},n().createElement("span",null,"No node selected, hover over a node to begin")))),n().createElement("div",{className:Ti["end-node-container"]},n().createElement("div",{className:Ti["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:Zi.box},f.xpath,n().createElement(Vi,{variant:"text",style:{marginRight:"var(--hbr-spacing-sm)"},onClick:function(){a(Io({workflowId:r,instanceId:i}))}},"Clear"))):n().createElement("div",{style:Zi.whiteBox},n().createElement("span",null,"No node selected, select starting XPath first")))))};function Ji(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 Ki=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 Ji(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)?Ji(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"])),Xi=Ki[0],Gi=Ki[1];const Qi=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:Ti.tree},n().createElement(Wi,null),n().createElement($i,{workflowId:r,instanceId:i}),!s&&!l||s?n().createElement(Gi,{variant:"fill",sentiment:"danger",open:!0},n().createElement(Xi,{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:Ti["nodes-header"]},n().createElement("div",{className:Ti["nodes-name-column"]},"Name"),n().createElement("div",{className:Ti["nodes-input-container"]},n().createElement("div",{className:Ti["nodes-input-column"]},"Value"),n().createElement("div",{className:Ti["nodes-input-column"]},"Operation"))),l&&l.map((function(e){return n().createElement(Ci,{key:e.id,node:e,level:0,parentModule:[],onNodeSelectCallback:null,workflowId:r,instanceId:i})})))};var Yi={nav:gr,tree:Do}})(),l})()));
|
|
1
|
+
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
+
!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={877:(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,"._uLdsQsuuvG8reqerykY{position:relative;flex-grow:1;display:flex;justify-content:flex-end;min-height:fit-content;align-items:stretch}.RWfYn8d5A52PEjfVQfbZ{padding:0px;width:100%;max-width:35rem;background-color:#f9f9f9}.vRLnNa0_CpoioUnlkZuw{color:#fff;background-color:var(--hbr-color-blue-35);padding:4px;border-radius:50%;cursor:pointer}.TizQmNFZkp19gylJ3AXk{cursor:pointer}.OaNUTp1QsTGe4sqF1Onb{inset:0;overflow:auto;background-color:#f9f9f9;max-height:300px}.VYBmuEMxMmzo8J2wHZQp{position:absolute;width:35rem;border:1px solid #ccc;border-radius:6px;max-height:200px;overflow-y:auto;background-color:#fff;list-style:none;padding:5px;z-index:10}.EO634eh3qZb1I1wIHs1w{margin:2px}.EO634eh3qZb1I1wIHs1w:hover{cursor:pointer;scale:1.05}.UxfuPUC2QovzIGOS5hMc{color:gray}.PyApJvQ_tq23HWHK0AHk{border:2px solid red;border-radius:20px;background-color:rgba(255,0,0,.1);transition:all .3s ease}",""]),a.locals={"accordion-div":"_uLdsQsuuvG8reqerykY",accordion:"RWfYn8d5A52PEjfVQfbZ","search-icon":"vRLnNa0_CpoioUnlkZuw",caret:"TizQmNFZkp19gylJ3AXk","accordion-content":"OaNUTp1QsTGe4sqF1Onb","dropdown-list":"VYBmuEMxMmzo8J2wHZQp","xpath-display":"EO634eh3qZb1I1wIHs1w","dropdown-empty":"UxfuPUC2QovzIGOS5hMc",highlight:"PyApJvQ_tq23HWHK0AHk"};const c=a},579:(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,".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 c=a},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;width:100%;max-width:34rem}.j1iYPjAT8zZqRl5imPye{margin-left:15px;display:flex;flex-direction:row;align-items:center;justify-content:center;width:100%;max-width:17rem}.m4CwEXArD_28wIRpmVFH{margin-right:20px;box-shadow:0;width:100%}.HrddoAZ7EB_YxiuunZJv{margin-top:5px;margin-bottom:5px}.pjLPEOsDZgmsRZ3NeoVJ{margin-bottom:10px}.W2NQW1vKIPOdPfkWbsy6{display:flex;justify-content:flex-end;margin-bottom:5px;gap:10px;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","clear-node-values":"W2NQW1vKIPOdPfkWbsy6"};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:2px;min-height:1.75em;justify-content:space-between}.oBs0jnwvNC1BSi5mUncI{display:flex;align-items:center;cursor:pointer}.NjfsEUQPYHj27jVzr0Ku:hover{background-color:#f0f0f0}.kD0r_dVKRUUNr8HN9eDv{display:flex;align-items:center;height:100%;width:100%;max-width:34rem}.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:100%;max-width:17rem;justify-content:center}.pxnVo64k0KCjYisa3272{padding-left:5px}.I7_ffHus8j59pEvLuCr1{margin:0px 2px}.NspwvsXCk33yWI9EfyO1{background-color:#7cadf7;border-radius:110px;margin-right:5px}.WwEJPyDiYKyVFRhcNOZM{background-color:#2774d9;border-radius:110px;margin-right:3px}",""]),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","add-icon":"NspwvsXCk33yWI9EfyO1","minus-icon":"WwEJPyDiYKyVFRhcNOZM"};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 h=o(p,r);r.byIndex=c,t.splice(c,0,{identifier:d,updater:h,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:()=>bo,Loader:()=>mo,NavBar:()=>kr,NavItem:()=>Q,Tree:()=>qa,addSiblingAndAssignIds:()=>Io,assignDfsPathHandler:()=>Ro,closeNav:()=>br,compareDfsPath:()=>Fo,deletePersistedTreeState:()=>Xo,dfsPathSort:()=>Do,reducers:()=>Va,showNav:()=>wr,toggleNav:()=>Er,useCustomNavigate:()=>G});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),h=a.n(p),m=a(113),y=a.n(m),v=a(891),g={};g.styleTagTransform=y(),g.setAttributes=f(),g.insert=u().bind(null,"head"),g.domAPI=l(),g.insertStyleElement=h(),o()(v.A,g),v.A&&v.A.locals&&v.A.locals;var b=a(417),w=a(33),E=a.n(w),x=Object.create,k=Object.defineProperty,O=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,j=Object.getPrototypeOf,_=Object.prototype.hasOwnProperty,N=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),A=(e,t,n)=>(n=null!=e?x(j(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of S(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=N(((e,t)=>{t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"})),L=N(((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}})),I=N(((e,t)=>{t.exports=L()()})),C=A(I()),T=!!(typeof window<"u"&&window.document&&window.document.createElement),R=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),R(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)),E().createPortal(this.props.children,this.props.node||this.defaultNode)):null}}]),t}(n().Component);F.propTypes={children:C.default.node.isRequired,node:C.default.any};var D=F,M=A(I()),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(){E().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=E().unstable_renderSubtreeIntoContainer(this,t,this.props.node||this.defaultNode)}},{key:"render",value:function(){return null}}]),t}(n().Component),W=U;U.propTypes={children:M.default.node.isRequired,node:M.default.any};var B=E().createPortal?D:W,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(B,{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 G(){var e=(0,b.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,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 $(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)?$(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 $(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 X=K(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=K((0,t.useState)(!0),2),p=f[0],h=f[1],m=G(),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?m(r,d):h(!p)}},o,a&&(p?n().createElement(X,{name:"caret-down",style:y.navItemIcon,width:"20px",height:"20px"}):n().createElement(X,{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)},he=oe("Date"),me=oe("File"),ye=oe("Blob"),ve=oe("FileList"),ge=oe("URLSearchParams");function be(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 we(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 Ee="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,xe=e=>!ce(e)&&e!==Ee,ke=(Oe="undefined"!=typeof Uint8Array&&te(Uint8Array),e=>Oe&&e instanceof Oe);var Oe;const Se=oe("HTMLFormElement"),je=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),_e=oe("RegExp"),Ne=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};be(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},Ae="abcdefghijklmnopqrstuvwxyz",Pe="0123456789",Le={DIGIT:Pe,ALPHA:Ae,ALPHA_DIGIT:Ae+Ae.toUpperCase()+Pe},Ie=oe("AsyncFunction"),Ce={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:he,isFile:me,isBlob:ye,isRegExp:_e,isFunction:ue,isStream:e=>fe(e)&&ue(e.pipe),isURLSearchParams:ge,isTypedArray:ke,isFileList:ve,forEach:be,merge:function e(){const{caseless:t}=xe(this)&&this||{},n={},r=(r,o)=>{const i=t&&we(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]&&be(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(be(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:Se,hasOwnProperty:je,hasOwnProp:je,reduceDescriptors:Ne,freezeMethods:e=>{Ne(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:we,global:Ee,isContextDefined:xe,ALPHABET:Le,generateString:(e=16,t=Le.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 be(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:Ie,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)}Ce.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:Ce.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Re=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(Re,"isAxiosError",{value:!0}),Te.from=(e,t,n,r,o,i)=>{const a=Object.create(Re);return Ce.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 Ce.isPlainObject(e)||Ce.isArray(e)}function ze(e){return Ce.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 We=Ce.toFlatObject(Ce,{},null,(function(e){return/^is[A-Z]/.test(e)})),Be=function(e,t,n){if(!Ce.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Ce.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Ce.isUndefined(t[e])}))).metaTokens,o=n.visitor||s,i=n.dots,a=n.indexes,c=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Ce.isSpecCompliantForm(t);if(!Ce.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Ce.isDate(e))return e.toISOString();if(!c&&Ce.isBlob(e))throw new De("Blob is not supported. Use a Buffer instead.");return Ce.isArrayBuffer(e)||Ce.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(Ce.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Ce.isArray(e)&&function(e){return Ce.isArray(e)&&!e.some(Me)}(e)||(Ce.isFileList(e)||Ce.endsWith(n,"[]"))&&(c=Ce.toArray(e)))return n=ze(n),c.forEach((function(e,r){!Ce.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(We,{defaultVisitor:s,convertValue:l,isVisitable:Me});if(!Ce.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Ce.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),Ce.forEach(n,(function(n,i){!0===(!(Ce.isUndefined(n)||null===n)&&o.call(t,n,Ce.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&&Be(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 Ge(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):Ce.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){Ce.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},$e={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Xe={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,...Xe},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&&Ce.isArray(r)?r.length:i,c?(Ce.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a):(r[i]&&Ce.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&Ce.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(Ce.isFormData(e)&&Ce.isFunction(e.entries)){const n={};return Ce.forEachEntry(e,((e,r)=>{t(function(e){return Ce.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null},ot={transitional:$e,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Ce.isObject(e);if(o&&Ce.isHTMLForm(e)&&(e=new FormData(e)),Ce.isFormData(e))return r?JSON.stringify(rt(e)):e;if(Ce.isArrayBuffer(e)||Ce.isBuffer(e)||Ce.isStream(e)||Ce.isFile(e)||Ce.isBlob(e))return e;if(Ce.isArrayBufferView(e))return e.buffer;if(Ce.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 Be(e,new nt.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return nt.isNode&&Ce.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=Ce.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Be(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Ce.isString(e))try{return(0,JSON.parse)(e),Ce.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&&Ce.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}}};Ce.forEach(["delete","get","head","post","put","patch"],(e=>{ot.headers[e]={}}));const it=ot,at=Ce.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:Ce.isArray(e)?e.map(st):String(e)}function ut(e,t,n,r,o){return Ce.isFunction(r)?r.call(this,t,n):(o&&(t=n),Ce.isString(t)?Ce.isString(r)?-1!==t.indexOf(r):Ce.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=Ce.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)=>Ce.forEach(e,((e,n)=>o(e,n,t)));return Ce.isPlainObject(e)||e instanceof this.constructor?i(e,t):Ce.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=Ce.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(Ce.isFunction(t))return t.call(this,e,n);if(Ce.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=lt(e)){const n=Ce.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=Ce.findKey(n,e);!o||t&&!ut(0,n[o],o,t)||(delete n[o],r=!0)}}return Ce.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 Ce.forEach(this,((r,o)=>{const i=Ce.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 Ce.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Ce.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=Ce.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 Ce.isArray(e)?e.forEach(r):r(e),this}}dt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ce.reduceDescriptors(dt.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Ce.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 Ce.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function ht(e){return!(!e||!e.__CANCEL__)}function mt(e,t,n){De.call(this,null==e?"canceled":e,De.ERR_CANCELED,t,n),this.name="CanceledError"}Ce.inherits(mt,De,{__CANCEL__:!0});const yt=mt,vt=nt.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Ce.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Ce.isString(r)&&a.push("path="+r),Ce.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 bt=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=Ce.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function wt(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 Et={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(Ce.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 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(),Ge(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||$e;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new De(t,r.clarifyTimeoutError?De.ETIMEDOUT:De.ECONNABORTED,e,u)),u=null},nt.hasStandardBrowserEnv&&(l&&Ce.isFunction(l)&&(l=l(e)),l||!1!==l&&bt(d))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&vt.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in u&&Ce.forEach(o.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),Ce.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),c&&"json"!==c&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",wt(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",wt(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)}))}};Ce.forEach(Et,((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=>Ce.isFunction(e)||null===e||!1===e,Ot=e=>{e=Ce.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=Et[(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 St(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new yt(null,e)}function jt(e){return St(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 St(e),t.data=pt.call(e,e.transformResponse,t),t.headers=ft.from(t.headers),t}),(function(t){return ht(t)||(St(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 Nt(e,t){t=t||{};const n={};function r(e,t,n){return Ce.isPlainObject(e)&&Ce.isPlainObject(t)?Ce.merge.call({caseless:n},e,t):Ce.isPlainObject(t)?Ce.merge({},t):Ce.isArray(t)?t.slice():t}function o(e,t,n){return Ce.isUndefined(t)?Ce.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!Ce.isUndefined(t))return r(void 0,t)}function a(e,t){return Ce.isUndefined(t)?Ce.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 Ce.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);Ce.isUndefined(a)&&i!==c||(n[r]=a)})),n}const At={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{At[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Pt={};At.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 Lt={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:At},It=Lt.validators;class Ct{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=Nt(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Lt.assertOptions(n,{silentJSONParsing:It.transitional(It.boolean),forcedJSONParsing:It.transitional(It.boolean),clarifyTimeoutError:It.transitional(It.boolean)},!1),null!=r&&(Ce.isFunction(r)?t.paramsSerializer={serialize:r}:Lt.assertOptions(r,{encode:It.function,serialize:It.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Ce.merge(o.common,o[t.method]);o&&Ce.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=[jt.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=jt.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 Ge(gt((e=Nt(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}Ce.forEach(["delete","get","head","options"],(function(e){Ct.prototype[e]=function(t,n){return this.request(Nt(n||{},{method:e,url:t,data:(n||{}).data}))}})),Ce.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Nt(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Ct.prototype[e]=t(),Ct.prototype[e+"Form"]=t(!0)}));const Tt=Ct;class Rt{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 Rt((function(t){e=t})),cancel:e}}}const Ft=Rt,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 Ce.extend(r,Tt.prototype,n,{allOwnKeys:!0}),Ce.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Nt(t,n))},r}(it);zt.Axios=Tt,zt.CanceledError=yt,zt.CancelToken=Ft,zt.isCancel=ht,zt.VERSION="1.6.8",zt.toFormData=Be,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 Ce.isObject(e)&&!0===e.isAxiosError},zt.mergeConfig=Nt,zt.AxiosHeaders=ft,zt.formToJSON=e=>rt(Ce.isHTMLForm(e)?new FormData(e):e),zt.getAdapter=Ot,zt.HttpStatusCode=Mt,zt.default=zt;const Ut=zt;var Wt=Symbol.for("immer-nothing"),Bt=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[Bt]||!!e.constructor?.[Bt]||en(e)||tn(e))}var Gt=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)===Gt}function $t(e,t){0===Xt(e)?Reflect.ownKeys(e).forEach((n=>{t(n,e[n],e)})):e.forEach(((n,r)=>t(r,n,e)))}function Xt(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===Xt(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Yt(e,t,n){const r=Xt(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 cn(e)||Zt(e)||!Jt(e)||(Xt(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){hn(e),e.drafts_.forEach(yn),e.drafts_=null}function hn(e){e===ln&&(ln=e.parent_)}function mn(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 vn(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_||wn(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!==Wt?e:void 0}function gn(e,t,n){if(cn(t))return t;const r=t[Ht];if(!r)return $t(t,((o,i)=>bn(e,r,t,o,i,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return wn(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),$t(o,((o,a)=>bn(e,r,t,o,a,n,i))),wn(e,t,!1),n&&e.patches_&&un("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function bn(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)&&!cn(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)||wn(e,o)}}function wn(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&on(t,n)}var En={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)?(jn(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;jn(e),Sn(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,jn(e),Sn(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 Sn(e){e.modified_||(e.modified_=!0,e.parent_&&Sn(e.parent_))}function jn(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=En;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 Nn(e){return Zt(e)||qt(10),An(e)}function An(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 $t(n,((e,t)=>{Yt(n,e,An(t))})),t&&(t.finalized_=!1),n}$t(En,((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 En.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=mn(this),i=_n(e,void 0);let a=!0;try{r=t(i),a=!1}finally{a?pn(o):hn(o)}return fn(o,n),vn(r,o)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===Wt&&(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=Nn(e));const t=mn(this),n=_n(e,void 0);return n[Ht].isManual_=!0,hn(t),n}finishDraft(e,t){const n=e&&e[Ht];n&&n.isManual_||qt(9);const{scope_:r}=n;return fn(r,t),vn(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)))}},Ln=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 In=e=>Array.isArray(e)?e:[e];Symbol(),Object.getPrototypeOf({});var Cn="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}},Tn=0,Rn=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===Rn?l=t.v:(l=e.apply(null,arguments),i++),c.s=Rn,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 Cn(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=In(s),h=In(d),m=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),v=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}(m,arguments);return t=y.apply(null,e),t}),...h);return Object.assign(v,{resultFunc:a,memoizedResultFunc:y,dependencies:m,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 Wn(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 Bn(e){return Jt(e)?Ln(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)?Nn(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 Gn({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=()=>Bn(e());else{const t=Bn(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 Ln(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?Wn(e,a):Wn(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||Xn,pending:c||Xn,rejected:l||Xn,settled:s||Xn})}(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 h(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 m={name:n,reducer:f,actions:a.actionCreators,caseReducers:a.sliceCaseReducersByName,getInitialState:p,...h(r),injectInto(e,{reducerPath:t,...n}={}){const o=t??r;return e.inject({reducerPath:o,reducer:f},n),{...m,...h(o,!0)}}};return m}}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 $n=Gn();function Xn(){}var{assign:Qn}=Object,Yn="listenerMiddleware",er=e=>{let{type:t,actionCreator:n,matcher:r,predicate:o,effect:i}=e;if(t)o=Wn(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(Wn(`${Yn}/add`),{withTypes:()=>nr}),rr=(Wn(`${Yn}/removeAll`),Object.assign(Wn(`${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=$n({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,hr=ur.menuFetched,mr=ur.currentPluginSet,yr=ur.userinfoFetched,vr=(ur.userLoggedIn,ur.userLogout);ur.userLoginError;const gr=sr.reducer;var br=function(){return function(e){e(dr())}},wr=function(){return function(e){e(fr())}},Er=function(){return function(e){e(pr())}},xr=function(e){return function(t){t(mr(e))}};function kr(){var e=(0,b.useSelector)((function(e){return e.nav.visible})),r=(0,b.useSelector)((function(e){return e.nav.menu})),o=(0,b.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}),Sr=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 jr(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=jr(e,["alt","color","size","weight","mirrored","children","renderPath"]),f=(0,t.useContext)(Or),p=f.color,h=void 0===p?"currentColor":p,m=f.size,y=f.weight,v=void 0===y?"regular":y,g=f.mirrored,b=void 0!==g&&g,w=jr(f,["color","size","weight","mirrored"]);return n().createElement("svg",Object.assign({ref:r,xmlns:"http://www.w3.org/2000/svg",width:null!=a?a:m,height:null!=a?a:m,fill:null!=i?i:h,viewBox:"0 0 256 256",transform:l||b?"scale(-1, 1)":void 0},w,d),!!o&&n().createElement("title",null,o),s,n().createElement("rect",{width:"256",height:"256",fill:"none"}),u(null!=c?c:v,null!=i?i:h))}));_r.displayName="IconBase";const Nr=_r;var Ar=new Map;Ar.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"}))})),Ar.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"}))})),Ar.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"}))})),Ar.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"}))})),Ar.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"}))})),Ar.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 Sr(e,t,Ar)},Lr=(0,t.forwardRef)((function(e,t){return n().createElement(Nr,Object.assign({ref:t},e,{renderPath:Pr}))}));Lr.displayName="List";const Ir=Lr;var Cr=new Map;Cr.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"}))})),Cr.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"}))})),Cr.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"}))})),Cr.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"}))})),Cr.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"}))})),Cr.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 Sr(e,t,Cr)},Rr=(0,t.forwardRef)((function(e,t){return n().createElement(Nr,Object.assign({ref:t},e,{renderPath:Tr}))}));Rr.displayName="Question";const Fr=Rr;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 Sr(e,t,Dr)},zr=(0,t.forwardRef)((function(e,t){return n().createElement(Nr,Object.assign({ref:t},e,{renderPath:Mr}))}));zr.displayName="Bell";const Ur=zr;var Wr=new Map;Wr.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"}))})),Wr.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"}))})),Wr.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"}))})),Wr.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"}))})),Wr.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"}))})),Wr.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 Br=function(e,t){return Sr(e,t,Wr)},Hr=(0,t.forwardRef)((function(e,t){return n().createElement(Nr,Object.assign({ref:t},e,{renderPath:Br}))}));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 Sr(e,t,Vr)},Jr=(0,t.forwardRef)((function(e,t){return n().createElement(Nr,Object.assign({ref:t},e,{renderPath:Zr}))}));Jr.displayName="CaretDown";const Gr=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 $r=function(e,t){return Sr(e,t,Kr)},Xr=(0,t.forwardRef)((function(e,t){return n().createElement(Nr,Object.assign({ref:t},e,{renderPath:$r}))}));Xr.displayName="DotsNine";const Qr=Xr;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,b.useDispatch)(),t=(0,b.useSelector)((function(e){return e.nav.userInfo})),r=G(),o=n().createElement(lo,{onClick:function(){e(Er())},noPadding:!0,sentiment:"header",slot:"menu"},n().createElement(Ir,{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(Gr,{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(vr()):Ut.get("/api/logout").then((function(e){return t(vr())})).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"])),ho=po[0];function mo(e){var t=e.msg,r=void 0===t?"Fetching data":t;return n().createElement("div",{className:"loader"},n().createElement(ho,{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 vo=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);vo[0],vo[1],vo[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 bo=function(){var e=(0,b.useSelector)((function(e){return e.nav.menu})),r=(0,b.useSelector)((function(e){return e.nav.userInfo})),o=(0,b.useDispatch)();return(0,t.useEffect)((function(){r&&r.loggedIn&&0===e.length&&o((function(e){Ut.get("/api/menu").then((function(t){e(hr(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(mo,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(mo,null)))};function wo(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 Eo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wo(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)):wo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}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="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Oo(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)?Oo(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function Oo(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 So=function(e){var t=e.data,n=t.basetype,r=t.datatype,o="";return jo(e)||(n?o=n:!n&&r&&(o=r)),o},jo=function(e){return"module"===e.data.modtype},_o={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 No(e,t,n,r){var o,i;if(e&&n&&r){var a=null===(o=e.data)||void 0===o||null===(o=o.xpath)||void 0===o?void 0:o.toLowerCase();if(null!=a&&a.includes(t)&&!r.has(a)&&(n.push({id:e.id,xpath:e.data.xpath}),r.add(a)),(null===(i=e.children)||void 0===i?void 0:i.length)>0){var c,l=ko(e.children);try{for(l.s();!(c=l.n()).done;)No(c.value,t,n,r)}catch(e){l.e(e)}finally{l.f()}}}}function Ao(e,t){if(!e||"string"!=typeof t)return[];var n=[],r=new Set,o=t.trim().toLowerCase();return e.forEach((function(e){No(e,o,n,r)})),n}function Po(e,t){if(!Array.isArray(e)||"string"!=typeof t)return[];var n,r=t.split("/").filter(Boolean),o=ko(e);try{for(o.s();!(n=o.n()).done;){for(var i=n.value,a=[{id:i.id,xpath:i.data.xpath}],c=i,l="",s=!0,u=0;u<r.length;u++){l+="/"+r[u];var d=!1;if(Array.isArray(c.children)){var f,p=ko(c.children);try{for(p.s();!(f=p.n()).done;){var h,m=f.value;if((null===(h=m.data)||void 0===h?void 0:h.xpath)===l){a.push({id:m.id,xpath:m.data.xpath}),c=m,d=!0;break}}}catch(e){p.e(e)}finally{p.f()}}if(!d){s=!1;break}}if(s)return a}}catch(e){o.e(e)}finally{o.f()}return[]}function Lo(e,t){e.children&&e.children.forEach((function(e){t.value++,e.id=t.nodeId+t.value,Lo(e,t)}))}function Io(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.reduce((function(e,t){var r=t.nodeId,o=t.newId,i=void 0===o?"":o;return e[r]||(e[r]={num:0}),e[r].num+=1,n||(e[r].idList||(e[r].idList=[]),e[r].idList.push(i||"")),e}),{});function o(e,t,i){if(e&&0!==Object.keys(r).length){if(r[e.id]){for(var a=r[e.id].num,c=t.children.indexOf(e)+1;c<t.children.length&&t.children[c].text===e.text;)c++;for(var l=0;l<a;l++){var s=t.children[c-1],u=t.children[c],d=s?s.dfsPath[s.dfsPath.length-1]:0,f=u?u.dfsPath[u.dfsPath.length-1]:d+1,p=d+.01;u&&p>=f&&(p=d+(f-d)/2);var h=t.dfsPath.concat(p),m=JSON.parse(JSON.stringify(e));if(n)m.id="".concat(Date.now().toString(36).slice(-4)+Math.random().toString(36).slice(2,4),"-");else{var y=r[e.id].idList[l].lastIndexOf("-");m.id=r[e.id].idList[l].slice(0,y+1)}m.cloned=!0,Lo(m,{nodeId:m.id,value:0}),To(m,h),m.id+="0",i.newId=m.id,t.children.splice(c,0,m),c++}delete r[e.id]}if(e.children){var v,g=ko(e.children);try{for(g.s();!(v=g.n()).done;)if(o(v.value,e,i),0===Object.keys(r).length)return}catch(e){g.e(e)}finally{g.f()}}}}for(var i=JSON.parse(JSON.stringify(e)),a={newId:""},c=0;c<i.length;c++)o(i[c],{children:i},a);return{newTree:i,newId:a}}function Co(e,t){function n(e,t,r){if(e&&!r.status&&e.children)for(var o=0;o<e.children.length;o++){var i=e.children[o];if(i.id===t&&!r.status)return r.status=!0,e.children.splice(o,1),void(o-=1);n(i,t,r)}}for(var r=JSON.parse(JSON.stringify(e)),o={status:!1},i=0;i<r.length&&(n(r[i],t,o),!o.status);i++);return r}function To(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[1];e.dfsPath=t;var n,r=1,o=ko(e.children||[]);try{for(o.s();!(n=o.n()).done;)To(n.value,t.concat(r++))}catch(e){o.e(e)}finally{o.f()}}var Ro=function(e){Date.now();for(var t=JSON.parse(JSON.stringify(e)),n=0;n<t.length;n++)To(t[n],[n+1]);return Date.now(),t};function Fo(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)if(e[r]!==t[r])return e[r]-t[r];return e.length-t.length}function Do(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e||"object"!==xo(e))return{};var t=JSON.parse(JSON.stringify(e));(t=Object.keys(t).map((function(e){return Eo(Eo({},t[e]),{},{id:e})}))).sort((function(e,t){return Fo(e.dfsPath||[],t.dfsPath||[])}));var n={};return t.forEach((function(e){n[e.id]=e})),n}function Mo(e){return Mo="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},Mo(e)}function zo(e,t){if(e){if("string"==typeof e)return Uo(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)?Uo(e,t):void 0}}function Uo(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}function Wo(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 Bo=function(e,t,n){Nn(e)[t]||(e[t]={}),Nn(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?Wo(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"!=Mo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Mo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Mo(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)):Wo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},{nodes:[],nodeValues:{},startNode:null,endNode:null,parentModule:null,expandedNodes:[],clonedNodes:[]}))},Ho=$n({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=r.parent,d=r.parents,f=r.dfsPath,p=void 0===f?[]:f,h=s.xpath,m=s.nodetype,y=s.datatype,v=s.namespace,g=void 0===v?"":v,b=s.operations,w=void 0===b?[]:b,E=s.prefix,x=void 0===E?"":E,k=s.xpath_pfx,O=void 0===k?"":k,S=s.key,j=void 0!==S&&S,_=s.mandatory,N=void 0!==_&&_,A=s.schema_node_id,P=void 0===A?"":A,L=s.leafref_path,I=void 0===L?"":L,C=s.name,T=void 0===C?"":C,R="edit-config";1===w.length&&"get"===w[0]&&(R="get");var F="";if("leafref"==y){var D,M=(P||h).split("/").filter(Boolean),z=I.split("/").filter(Boolean),U=function(e){return function(e){if(Array.isArray(e))return Uo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||zo(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.")}()}(M),W=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=zo(e))){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}(z);try{for(W.s();!(D=W.n()).done;){var B=D.value;if(".."===B){if(0===U.length){U=M;break}U.pop()}else U.push(B)}}catch(e){W.e(e)}finally{W.f()}F="/"+U.join("/")}Bo(e,o,i);var H=Nn(e)[o][i].nodeValues[l]||{},q=H.op,V=void 0===q?"":q,Z=H.value,J=void 0===Z?"":Z,G={id:l,key:Boolean(j),mandatory:Boolean(N),xpath_pfx:O,xpath:h,datatype:y||So(r),nodetype:m,operation:R,namespace:g,leafref_node:F,prefix:x,name:T,parent:u,parents:d,dfsPath:p,op:c||V,value:null!=a?a:J};e[o][i].nodeValues[l]=G},removeNodeValue:function(e,t){var n=t.payload,r=n.id,o=n.workflowId,i=n.instanceId;Nn(e)[o]&&Nn(e)[o][i]&&delete e[o][i].nodeValues[r]},removeClonedNodeValue:function(e,t){var n=t.payload,r=n.id,o=n.workflowId,i=n.instanceId;Nn(e)[o]&&Nn(e)[o][i]&&Object.keys(e[o][i].nodeValues).forEach((function(t){t.includes(r)&&delete e[o][i].nodeValues[t]}))},removeAllNodeValues:function(e,t){var n=t.payload,r=n.workflowId,o=n.instanceId;Nn(e)[r]&&Nn(e)[r][o]&&(e[r][o].nodeValues={})},setStartNode:function(e,t){var n=t.payload,r=n.id,o=n.dfsPath,i=n.xpath,a=n.workflowId,c=n.instanceId,l={id:r,dfsPath:o,xpath:i};a&&c&&(Bo(e,a,c),e[a][c].startNode=l,e[a][c].endNode=null)},setEndNode:function(e,t){var n=t.payload,r=n.id,o=n.dfsPath,i=n.xpath,a=n.workflowId,c=n.instanceId,l={id:r,dfsPath:o,xpath:i};a&&c&&(Bo(e,a,c),e[a][c].endNode=l)},clearStartNode:function(e,t){var n=t.payload,r=n.workflowId,o=n.instanceId;r&&o&&Nn(e)[r]&&Nn(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&&Nn(e)[r]&&Nn(e)[r][o]&&(e[r][o].endNode=null)},clearClonedNodes:function(e,t){var n=t.payload,r=n.workflowId,o=n.instanceId;console.log(r,o),r&&o&&Nn(e)[r]&&Nn(e)[r][o]&&(e[r][o].clonedNodes=null)},deletePersistedTreeState:function(e,t){var n,r=t.payload,o=r.workflowId,i=r.instanceId,a=Nn(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&&(Bo(e,i,a),e[i][a].parentModule={id:r,moduleName:o})},setExpandedNodes:function(e,t){var n=t.payload,r=n.expandedNodes,o=n.workflowId,i=n.instanceId;o&&i&&(Bo(e,o,i),e[o][i].expandedNodes=r)},setClonedNodes:function(e,t){var n=t.payload,r=n.clonedNodes,o=n.workflowId,i=n.instanceId;o&&i&&(Bo(e,o,i),e[o][i].clonedNodes=r)}}}),qo=Ho.actions,Vo=qo.setNodeValue,Zo=qo.removeNodeValue,Jo=qo.setStartNode,Go=qo.setEndNode,Ko=qo.clearStartNode,$o=qo.clearEndNode,Xo=(qo.initializeTree,qo.deletePersistedTreeState),Qo=qo.setParentModule,Yo=qo.removeClonedNodeValue,ei=qo.removeAllNodeValues,ti=qo.setExpandedNodes,ni=qo.setClonedNodes;qo.clearClonedNodes;const ri=Ho.reducer;var oi=a(12);function ii(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 ai=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 ii(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)?ii(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"])),ci=ai[0],li="#1D69CC",si="#00b300",ui="#CC2D37",di="#000000",fi=Object.freeze({action:{name:"nav-threats",color:di},anydata:{name:"nav-network-switcher",color:si},anyxml:{name:"nav-filters",color:si},case:{name:"arrow-right",color:li},choice:{name:"nav-organization",color:li},container:{name:"nav-resources",color:li},grouping:{name:"nav-groups",color:li},identity:{name:"info",color:li},input:{name:"download-simple",color:li},key:{name:"nav-identity",color:li},leaf:{name:"leaf",color:si},"leaf-list":{name:"nav",color:si},list:{name:"nav-list",color:li},module:{name:"nav-samples",color:di},notification:{name:"bell",color:di},output:{name:"upload-simple",color:li},rpc:{name:"envelope-simple",color:di},submodule:{name:"nav-samples",color:di},typedef:{name:"nav-intelligence",color:li}}),pi=Object.freeze({key:oi.createElement(ci,{name:"nav-identity",style:{fontSize:"14px",top:"0px",right:"0px",position:"absolute"}}),mandatory:oi.createElement("hbr-icon",{name:"alerts-info-large",style:{fontSize:"12px",top:"0px",right:"10px",position:"absolute",color:"#8B0000"}}),when:oi.createElement(ci,{name:"paperclip",style:{fontSize:"12px",top:"-13px",right:"10px",position:"absolute",color:ui}}),must:oi.createElement(ci,{name:"paperclip",style:{fontSize:"12px",top:"-10px",right:"10px",position:"absolute",color:"#1230AE"}}),leafref:oi.createElement(ci,{name:"arrow-square-out",style:{fontSize:"10px",top:"-13px",right:"-3px",position:"absolute"}}),presence:oi.createElement(ci,{name:"leaf",style:{fontSize:"12px",top:"-13px",right:"-5px",position:"absolute",color:"#1F5E06"}})}),hi=Object.freeze(["==","!=",">","<",">=","<=","range","any"]),mi=Object.freeze({obsolete:ui,deprecated:"#ffcc00"}),yi=a(673),vi={};vi.styleTagTransform=y(),vi.setAttributes=f(),vi.insert=u().bind(null,"head"),vi.domAPI=l(),vi.insertStyleElement=h(),o()(yi.A,vi);const gi=yi.A&&yi.A.locals?yi.A.locals:void 0;var bi=a(579),wi={};wi.styleTagTransform=y(),wi.setAttributes=f(),wi.insert=u().bind(null,"head"),wi.domAPI=l(),wi.insertStyleElement=h(),o()(bi.A,wi),bi.A&&bi.A.locals&&bi.A.locals;var Ei=a(12),xi=["typespec"];function ki(e){return ki="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},ki(e)}function Oi(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 Si(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)?Si(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 Si(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=Oi(Z(["hbr-icon","hbr-input","hbr-option","hbr-checkbox","hbr-button","hbr-badge","hbr-select","hbr-modal"]),8),_i=(ji[0],ji[1],ji[2],ji[3],ji[4]),Ni=(ji[5],ji[6],ji[7]);const Ai=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=Oi(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"!==ki(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"!==ki(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=Oi(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"!==ki(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,xi));return Ei.createElement(Ni,{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(_i,{variant:"fill",onClick:t},"Close")))};var Pi=a(12);function Li(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=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 Li(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)?Li(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"])),Ci=Ii[0],Ti=Ii[1];const Ri=function(e){var t=e.banner,n=e.handleClose;return Pi.createElement("div",null,Pi.createElement(Ci,{variant:"fill",sentiment:"warning",open:t.open,closable:!0,"onHbr-after-hide":function(e){e.preventDefault(),n()},"onHbr-after-show":function(e){e.preventDefault()}},Pi.createElement(Ti,{slot:"icon",name:"alerts-warning-large"}),t.message))};function Fi(e){return Fi="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},Fi(e)}function Di(){Di=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),c=new P(r||[]);return o(a,"_invoke",{value:j(e,n,c)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",y={};function v(){}function g(){}function b(){}var w={};s(w,a,(function(){return this}));var E=Object.getPrototypeOf,x=E&&E(E(L([])));x&&x!==n&&r.call(x,a)&&(w=x);var k=b.prototype=v.prototype=Object.create(w);function O(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(o,i,a,c){var l=d(e[o],e,i);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==Fi(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,c)}),(function(e){n("throw",e,a,c)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function j(t,n,r){var o=f;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var l=_(c,r);if(l){if(l===y)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var s=d(t,n,r);if("normal"===s.type){if(o=r.done?m:p,s.arg===y)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=m,r.method="throw",r.arg=s.arg)}}}function _(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,_(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function L(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Fi(t)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=s(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},O(S.prototype),s(S.prototype,c,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new S(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(k),s(k,l,"Generator"),s(k,a,(function(){return this})),s(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=L,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return c.type="throw",c.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(l&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;A(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:L(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function Mi(e,t,n,r,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,o)}function zi(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Mi(i,r,o,a,c,"next",e)}function c(e){Mi(i,r,o,a,c,"throw",e)}a(void 0)}))}}function Ui(e){return function(e){if(Array.isArray(e))return Vi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||qi(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 Wi(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 Bi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wi(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"!=Fi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Fi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Fi(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)):Wi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Hi(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)||qi(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 qi(e,t){if(e){if("string"==typeof e)return Vi(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)?Vi(e,t):void 0}}function Vi(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 Zi=Hi(Z(["hbr-icon","hbr-input","hbr-option","hbr-checkbox","hbr-button","hbr-badge","hbr-select","hbr-radio","hbr-radio-group","hbr-banner","hbr-tooltip"]),11),Ji=Zi[0],Gi=Zi[1],Ki=Zi[2],$i=Zi[3],Xi=Zi[4],Qi=Zi[5],Yi=Zi[6],ea=Zi[7],ta=Zi[8],na=(Zi[9],Zi[10],n().memo((function(e){var r,o=e.nodeProp,i=e.level,a=e.setTreeNode,c=e.parentNode,l=e.setParentNode,s=e.parent,u=e.parents,d=e.workflowId,f=e.instanceId,p=e.parentModule,h=e.expandedNodesState,m=e.toggleNode,y=e.scrollRef,v=e.clonedNodesState,g=(0,b.useDispatch)(),w=Hi((0,t.useState)(o),2),E=w[0],x=w[1],k=Hi((0,t.useState)(h.current.has(o.id)),2),O=k[0],S=k[1],j=(0,b.useSelector)((function(e){return e.tree})),_=(null==j||null===(r=j[d])||void 0===r?void 0:r[f])||{},N=_.nodeValues,A=void 0===N?{}:N,P=_.startNode,L=void 0===P?null:P,I=_.endNode,C=void 0===I?null:I,T=Hi((0,t.useState)(!1),2),R=T[0],F=T[1],D=Hi((0,t.useState)(!1),2),M=D[0],z=D[1],U=Hi((0,t.useState)({open:!1,message:""}),2),W=U[0],B=U[1],H=(0,t.useRef)(null);(0,t.useEffect)((function(){x(Bi(Bi({},o),{},{parent:s,parents:u}))}),[o]);var q=function(e){x(e)},V=(0,t.useCallback)((function(){S((function(e){return!e})),m(E.id)}),[E,m]),Z=function(e){e.preventDefault(),z(!0)},J=function(){g(Vo({value:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",op:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",node:E,workflowId:d,instanceId:f}))},G=(0,t.useMemo)((function(){var e=E.children;if(e&&e.length>0)return n().createElement("div",{className:gi["node-icon"]},O?n().createElement(Ji,{className:gi["node-caret-down-icon"],name:"caret-down",label:"Collapse Tree Node",style:{fontSize:"30px"}}):n().createElement(Ji,{className:gi["node-caret-right-icon"],name:"caret-right",label:"Expand Tree Node"}))}),[O,E]),K=function(){var e,t,r=E.data,o=null!=r?r:{},i=o.nodetype,a=o.datatype,c=o.status,l=void 0===c?"":c,s=o.key,u=o.mandatory,d=o.when,f=o.must,p=o.presence,h=null===(e=fi[jo(E)?"module":i])||void 0===e?void 0:e.name,m=null===(t=fi[jo(E)?"module":i])||void 0===t?void 0:t.color,y=[];return"true"===s&&y.push(pi.key),"true"===u&&y.push(pi.mandatory),d&&y.push(pi.when),f&&y.push(pi.must),p&&y.push(pi.presence),jo(E)||"leafref"!==a||y.push(pi.leafref),l&&(m=mi[l.toLowerCase()]),h?n().createElement("div",{className:"".concat(gi["node-icon"]," ").concat(gi["leaf-icon"])},n().createElement(Ji,{name:h,style:{color:m,fontSize:"20px"},label:"Node Type Icon"}),n().createElement("div",{style:{position:"relative"}},y)):null},$=function(){var e=E.text;return E.data,n().createElement("div",{className:"".concat(gi["node-name"]," ").concat(gi["no-select"]),onContextMenu:(null==E?void 0:E.data)&&Z,onClick:function(e){return e.stopPropagation()}},e)},X=(0,t.useMemo)((function(){var e=E.children;return O?e&&e.length>0&&e.map((function(e,t){return n().createElement(na,{key:t,nodeProp:e,level:i+1,setTreeNode:a,setParentNode:q,parentNode:E,parent:E.id,parents:[E.id].concat(Ui(u)),parentModule:p,workflowId:d,instanceId:f,expandedNodesState:h,toggleNode:m,scrollRef:y,clonedNodesState:v})})):null}),[O,E,i,a,c,l,p,d,f,h,m]),Q=function(){var e=So(E);return e?n().createElement(Qi,{className:gi["node-badge"],pill:!0,size:"small"},e):null},Y=function(){var e=E.data,t=E.id,r=e.name,o=(A[t]||{}).op,i=void 0===o?"":o;return n().createElement("div",{className:gi["node-input"]},n().createElement(Yi,{size:"small",placeholder:"Select operation for ".concat(r),value:i},hi.map((function(e,t){return n().createElement(Ki,{key:t,value:e,onClick:function(){return J(null,e)}},e)}))))},ee=function(){return n().createElement("div",{className:gi["node-input"]})},te=function(){var e,t,r,o,i,a=E.data,c=a.state,l=void 0!==c&&c,s=a.datatype;if(!jo(E))return"container"===(i=E.data.nodetype)||"list"===i?function(){var e=E.data,t=e.presence,r=void 0!==t&&t,o=e.state;return void 0!==o&&o?Y():r?n().createElement(n().Fragment,null,function(){var e=E.id,t=A[e]||{},r=t.value,o=void 0===r?null:r;return t.op,n().createElement("div",{className:"".concat(gi["node-input"])},n().createElement(ta,{"onHbr-click":function(e){e.target,J("",null)}},n().createElement(ea,{checked:null!==o,style:{margin:"0"}})))}(),ee()):null}():"leafref"===s?n().createElement(n().Fragment,null,function(){var e=E.data,t=void 0===e?{}:e,r=(E.text,E.id),o=t.leafref_path,i=void 0===o?"":o,a=(A[r]||{}).value,c=void 0===a?"":a;return n().createElement("div",{className:gi["node-input"]},n().createElement(Gi,{size:"small",placeholder:"".concat(i),value:c,style:{width:"100%"},"onHbr-input":function(e){var t=e.target;J(t.value,null)}}))}(),ee()):"number"===_o[So(E)]?n().createElement(n().Fragment,null,function(){E.text;var e=E.id,t=(A[e]||{}).value,r=void 0===t?"":t,o=((null==E?void 0:E.data)||{}).min,i=void 0===o?"":o,a=((null==E?void 0:E.data)||{}).max,c=void 0===a?"":a;return n().createElement("div",{className:gi["node-input"]},n().createElement(Gi,{type:"number",width:"100%",min:i,max:c,size:"small",placeholder:"".concat(So(E),": ").concat(i," - ").concat(c),value:r,style:{width:"100%"},"onHbr-input":function(e){var t=e.target;J(t.value,null)}}))}(),ee()):"enumeration"===So(E)||"boolean"===So(E)||"identityref"===So(E)?n().createElement(n().Fragment,null,function(){var e,t=E.id,r=A[t]||{},o=r.value,i=void 0===o?"":o,a=(r.op,(null==E?void 0:E.data).options),c=void 0===a?[]:a;return n().createElement("div",{className:gi["node-input"]},n().createElement(Yi,{placeholder:"set value for ".concat((null==E||null===(e=E.data)||void 0===e?void 0:e.name)||""),name:"basic",size:"small",style:{width:"100%"},"onHbr-change":function(e){var t,n=e.detail;J((null==n||null===(t=n.option)||void 0===t?void 0:t.value)||"",null)},popoverMinWidth:300,className:"hbr-css__form-section-sm",value:i},c.map((function(e,t){return n().createElement(Ki,{key:t,value:e,size:"small"},n().createElement("p",{style:{textWrapMode:"nowrap"}},e," "))}))))}(),ee()):l||"empty"===So(E)?n().createElement(n().Fragment,null,(e=E.id,o=void 0!==(r=(t=A[e]||{}).value)&&r,t.op,n().createElement("div",{className:gi["node-input"]},n().createElement($i,{checked:o,onClick:function(e){var t=e.target;J(t.checked,null)}}))),Y()):n().createElement(n().Fragment,null,function(){var e=E.text,t=E.id,r=(A[t]||{}).value,o=void 0===r?"":r;return n().createElement("div",{className:gi["node-input"]},n().createElement(Gi,{size:"small",placeholder:"Set value for ".concat(e),value:o,style:{width:"100%"},"onHbr-input":function(e){var t=e.target;J(t.value,null)}}))}(),ee())},ne=function(){var e=E.id,t=E.data,r=E.dfsPath,o=t.xpath,i=t.key;return t&&o&&!L&&R?n().createElement(Xi,{size:"small",variant:"primary",style:{marginLeft:"4px"},onClick:function(){"true"===i?B({open:!0,message:"Selecting a key as the starting XPath is not allowed. Choose a list instead."}):(g(Jo({id:e,dfsPath:r,xpath:o,workflowId:d,instanceId:f})),(null==p?void 0:p.length)>0&&g(Qo({id:e,parentModule:p,workflowId:d,instanceId:f})))}},"Set Start XPath"):null},re=function(){var e=E.id,t=E.data,r=E.dfsPath,o=t.xpath,i=(null==L?void 0:L.dfsPath)||[];return t&&o&&L&&!C&&Fo(r,i)>0&&!C&&R?n().createElement(Xi,{size:"small",variant:"primary",style:{marginLeft:"4px"},onClick:function(){return g(Go({id:e,dfsPath:r,xpath:o,workflowId:d,instanceId:f}))}},"Set End XPath"):null},oe=function(){var e=E.dfsPath,t=(null==L?void 0:L.dfsPath)||[],r=(null==C?void 0:C.dfsPath)||[];return L&&(L.id===E.id||C&&Fo(e,t)>=0&&Fo(e,r)<0)?n().createElement(Qi,{pill:!0,size:"small",sentiment:"success"},"selected"):null},ie=function(){var e=zi(Di().mark((function e(t){var n,r,o,i,a;return Di().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.stopPropagation(),H.current&&(H.current.style.cursor="progress"),e.next=4,new Promise((function(e){return setTimeout(e,50)}));case 4:n=t.target.nodeId,r=Io([c],[{nodeId:n}],!0),o=r.newTree,i=r.newId,a={nodeId:n,newId:i.newId},l(o[0]),v.current=[].concat(Ui(v.current),[a]),H.current&&(H.current.style.cursor="");case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ae=function(){var e=zi(Di().mark((function e(t){var n,r,o,i;return Di().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.stopPropagation(),H.current&&(H.current.style.cursor="progress"),e.next=4,new Promise((function(e){return setTimeout(e,50)}));case 4:n=t.target.nodeId,r=Co([c],n),l(r[0]),v.current=v.current.filter((function(e){return e.newId!==n})),h.current.delete(n),o=n.lastIndexOf("-"),i=n.slice(0,o),g(Yo({id:i,workflowId:d,instanceId:f})),L&&String(L.id).includes(i)&&(g(Ko({workflowId:d,instanceId:f})),g($o({workflowId:d,instanceId:f}))),C&&String(C.id).includes(i)&&g($o({workflowId:d,instanceId:f})),H.current&&(H.current.style.cursor="");case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ce=function(){var e=E.id;if(A[e])return n().createElement(Xi,{size:"small",variant:"primary",sentiment:"danger",onClick:function(){return function(e){g(Zo({id:e,workflowId:d,instanceId:f}))}(e)},style:{marginLeft:"4px"}},"Clear Value")},le=(0,t.useMemo)((function(){return n().createElement("div",{className:gi.node,onClick:V,"data-cy":E.id},n().createElement("div",{ref:H,className:gi["node-information"],onMouseEnter:function(){return F(!0)},onMouseLeave:function(){return F(!1)}},G,function(){var e=E.data,t=E.cloned,r=void 0!==t&&t,o=(e||{}).nodetype,i=void 0===o?"":o;if(("list"===i||"leaf-list"===i)&&!r)return R&&n().createElement("div",{className:"".concat(gi["node-icon"]," ").concat(gi["leaf-icon"]," ").concat(gi["minus-icon"]),style:{backgroundColor:"--hbr-color-info",borderRadius:"50%",color:"white"}},n().createElement(Ji,{size:"large",onClick:ie,nodeId:E.id,node:E,alt:"Add Node",name:"plus",label:"Expand Tree Node"}))}(),function(){var e=E.cloned;if(void 0!==e&&e)return R&&n().createElement("div",{className:"".concat(gi["node-icon"]," ").concat(gi["leaf-icon"]," ").concat(gi["minus-icon"]),style:{backgroundColor:"--hbr-color-info",borderRadius:"50%",color:"white"}},n().createElement(Ji,{onClick:ae,nodeId:E.id,node:E,name:"minus",label:"Expand Tree Node"}))}(),K(),$(),Q(),oe(),ce(),ne(),re()),n().createElement("div",{className:gi["node-inputs"]},te()))}),[V,G,K,$,Q,oe,ce,ne,re]);return n().createElement(n().Fragment,null,W.open&&n().createElement(Ri,{banner:W,handleClose:function(){B({open:!1,message:""})}}),M&&n().createElement(Ai,{open:M,handleClose:function(){z(!1)},property:E.data}),n().createElement("div",{style:{marginLeft:"".concat(4*i,"px"),backgroundColor:"#f9f9f9"},ref:function(e){return y.current[E.id]=e},"data-is-open":O},le,n().createElement("div",{style:{marginLeft:"".concat(4*(i+1),"px")}},X)))}),(function(e,t){return e.nodeProp===t.nodeProp&&e.nodeProp.children===t.nodeProp.children&&e.level===t.level&&e.setParentNode===t.setParentNode&&e.parentNode===t.parentNode&&e.setTreeNode===t.setTreeNode&&e.workflowId===t.workflowId&&e.instanceId===t.instanceId&&e.parentModule===t.parentModule&&e.toggleNode===t.toggleNode&&e.expandedNodesState.current.has(e.nodeProp.id)===t.expandedNodesState.current.has(t.nodeProp.id)&&e.clonedNodesState.includes(e.nodeProp.id)===t.clonedNodesState.includes(t.nodeProp.id)})));const ra=na;var oa=a(505),ia={};ia.styleTagTransform=y(),ia.setAttributes=f(),ia.insert=u().bind(null,"head"),ia.domAPI=l(),ia.insertStyleElement=h(),o()(oa.A,ia);const aa=oa.A&&oa.A.locals?oa.A.locals:void 0;function ca(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 la(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)?la(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 la(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 sa=ca(Z(["hbr-icon","hbr-tag","hbr-accordion"]),3),ua=sa[0],da=sa[1],fa=sa[2],pa={width:"300px",zIndex:"10",position:"absolute",top:"10px",right:"20px",backgroundColor:"rgb(249, 249, 249)"};const ha=function(){return n().createElement(fa,{summary:"Legend",size:"small",triggerposition:"right",style:pa},Object.entries(fi).map((function(e){var t=ca(e,2),r=t[0],o=t[1];return n().createElement(da,{key:r,className:aa["legend-entry"]},n().createElement(ua,{name:o.name,slot:"prefix",style:{color:o.color}}),r)})),Object.entries(pi).map((function(e){var t=ca(e,2),r=t[0],o=t[1];return n().createElement(da,{key:r,className:aa["legend-entry"]},n().createElement("div",{className:"".concat(gi["node-icon"]," ").concat(gi["leaf-icon"])},n().createElement(ua,{name:"device-web-apps",slot:"prefix",style:{color:"grey",opacity:"50%"}}),n().createElement("div",{style:{position:"relative",marginRight:"5px"}},o),r))})))};function ma(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 ya=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 ma(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)?ma(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"])),va=ya[0],ga={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 ba=function(e){var t=e.workflowId,r=void 0===t?null:t,o=e.instanceId,i=void 0===o?null:o,a=(0,b.useDispatch)(),c=(0,b.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:aa["start-node-container"]},n().createElement("div",{className:aa["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:ga.box},u.xpath,n().createElement(va,{variant:"text",style:{marginRight:"var(--hbr-spacing-sm)"},onClick:function(){a(Ko({workflowId:r,instanceId:i}))}},"Clear"))):n().createElement("div",{style:ga.whiteBox},n().createElement("span",null,"No node selected, hover over a node to begin")))),n().createElement("div",{className:aa["end-node-container"]},n().createElement("div",{className:aa["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:ga.box},f.xpath,n().createElement(va,{variant:"text",style:{marginRight:"var(--hbr-spacing-sm)"},onClick:function(){a($o({workflowId:r,instanceId:i}))}},"Clear"))):n().createElement("div",{style:ga.whiteBox},n().createElement("span",null,"No node selected, select starting XPath first")))))};var wa=a(877),Ea={};Ea.styleTagTransform=y(),Ea.setAttributes=f(),Ea.insert=u().bind(null,"head"),Ea.domAPI=l(),Ea.insertStyleElement=h(),o()(wa.A,Ea);const xa=wa.A&&wa.A.locals?wa.A.locals:void 0;function ka(e){return ka="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},ka(e)}function Oa(){Oa=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),c=new P(r||[]);return o(a,"_invoke",{value:j(e,n,c)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",y={};function v(){}function g(){}function b(){}var w={};s(w,a,(function(){return this}));var E=Object.getPrototypeOf,x=E&&E(E(L([])));x&&x!==n&&r.call(x,a)&&(w=x);var k=b.prototype=v.prototype=Object.create(w);function O(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(o,i,a,c){var l=d(e[o],e,i);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==ka(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,c)}),(function(e){n("throw",e,a,c)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function j(t,n,r){var o=f;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var l=_(c,r);if(l){if(l===y)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var s=d(t,n,r);if("normal"===s.type){if(o=r.done?m:p,s.arg===y)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=m,r.method="throw",r.arg=s.arg)}}}function _(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,_(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function L(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(ka(t)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=s(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},O(S.prototype),s(S.prototype,c,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new S(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(k),s(k,l,"Generator"),s(k,a,(function(){return this})),s(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=L,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return c.type="throw",c.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(l&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;A(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:L(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function Sa(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Aa(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function ja(e,t,n,r,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,o)}function _a(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ja(i,r,o,a,c,"next",e)}function c(e){ja(i,r,o,a,c,"throw",e)}a(void 0)}))}}function Na(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)||Aa(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 Aa(e,t){if(e){if("string"==typeof e)return Pa(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)?Pa(e,t):void 0}}function Pa(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 La=Na(Z(["hbr-icon","hbr-input","hbr-tag"]),3),Ia=La[0],Ca=La[1],Ta=La[2];function Ra(e){var r=e.treeNode,o=e.scrollRef,i=e.expandedNodesState,a=Na((0,t.useState)(""),2),c=a[0],l=a[1],s=Na((0,t.useState)(""),2),u=s[0],d=s[1],f=Na((0,t.useState)(!1),2),p=f[0],h=f[1],m=Na((0,t.useState)(""),2),y=m[0],v=m[1],g=function(e){e.preventDefault();var t=Ao(r,c);d(t),0===t.length&&v("No results found"),h(!0)},b=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3e3,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:100;return new Promise((function(o,i){var a=Date.now();!function c(){var l=e.current[t];return l?o(l):Date.now()-a>=n?i("Element ".concat(t," not rendered in time")):void setTimeout(c,r)}()}))};(0,t.useEffect)((function(){0===c.length?(d([]),v("Type to Search...")):v("Click on search icon or press enter to search")}),[c]);var w=function(){h((function(e){return!e}))};return n().createElement("div",{className:xa["accordion-div"]},n().createElement("div",{className:xa.accordion},n().createElement("div",{className:"input-group"},n().createElement("div",{slot:"label",style:{width:"100%"},className:xa["accordion-label"]},n().createElement("div",{onKeyDown:function(e){"Enter"===e.key&&g(e)}},n().createElement(Ca,{placeholder:"Search xPaths",size:"medium",style:{width:"100%"},clearable:!0,value:c,"onHbr-input":function(e){return l(e.target.value)},"data-testid":"basic"},n().createElement(Ia,{slot:"suffix",className:xa["search-icon"],onClick:g,name:"magnifying-glass",size:"20px"}),p?n().createElement(Ia,{slot:"suffix",className:xa.caret,onClick:w,name:"caret-up"}):n().createElement(Ia,{slot:"suffix",className:xa.caret,onClick:w,name:"caret-down"}))))),p&&n().createElement("ul",{className:xa["dropdown-list"]},u.length>0?u.map((function(e){var t=e.id,a=e.xpath;return n().createElement("div",{key:t},n().createElement(Ta,{key:t,className:xa["xpath-display"],onClick:_a(Oa().mark((function e(){var t,n,c,l,s,u,d,f,p,h;return Oa().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=Po(r,a),c=Sa(n),e.prev=2,c.s();case 4:if((l=c.n()).done){e.next=18;break}return u=l.value.id,i.current.has(u)&&"false"!==(null===(s=o.current[u])||void 0===s||null===(s=s.attributes["data-is-open"])||void 0===s?void 0:s.value)||null===(d=o.current[u])||void 0===d||d.querySelector("div").click(),e.prev=7,e.next=10,b(o,u);case 10:null===(f=o.current[u])||void 0===f||f.scrollIntoView({behavior:"smooth",block:"center"}),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(7),console.warn(e.t0);case 16:e.next=4;break;case 18:e.next=23;break;case 20:e.prev=20,e.t1=e.catch(2),c.e(e.t1);case 23:return e.prev=23,c.f(),e.finish(23);case 26:p=null===(t=n[n.length-1])||void 0===t?void 0:t.id,(h=o.current[p])&&(h.classList.add(xa.highlight),setTimeout((function(){h.classList.remove(xa.highlight)}),5e3));case 29:case"end":return e.stop()}}),e,null,[[2,20,23,26],[7,13]])})))},n().createElement(Ia,{name:"magnifying-glass",slot:"prefix",style:{color:"grey"}}),a))})):n().createElement("li",{className:xa["dropdown-empty"]},y))))}function Fa(e){return function(e){if(Array.isArray(e))return za(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ma(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 Da(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)||Ma(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 Ma(e,t){if(e){if("string"==typeof e)return za(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)?za(e,t):void 0}}function za(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 Ua=Da(Z(["hbr-icon","hbr-banner","hbr-button"]),3),Wa=Ua[0],Ba=Ua[1],Ha=Ua[2];const qa=function(e){var r,o=e.workflowId,i=void 0===o?null:o,a=e.instanceId,c=void 0===a?null:a,l=e.nodes,s=void 0===l?[]:l,u=e.error,d=void 0===u?null:u,f=(0,b.useDispatch)(),p=Da((0,t.useState)(s),2),h=p[0],m=p[1],y=(0,b.useSelector)((function(e){return e.tree})),v=(null==y||null===(r=y[i])||void 0===r?void 0:r[c])||{},g=v.expandedNodes,w=void 0===g?[]:g,E=v.clonedNodes,x=void 0===E?[]:E,k=(0,t.useRef)(new Set(w||[])),O=(0,t.useRef)(x||[]),S=(0,t.useRef)({}),j=Da((0,t.useState)(!0),2),_=j[0],N=j[1];(0,t.useEffect)((function(){return console.log("Tree component mounted"),function(){f(ti({expandedNodes:Array.from(k.current),workflowId:i,instanceId:c})),f(ni({clonedNodes:Fa(O.current),workflowId:i,instanceId:c}))}}),[f,k.current,O.current]),(0,t.useEffect)((function(){N(!0),m((function(e){var t=Ro(e);return O.current.length>0&&(t=Io(t,O.current).newTree),t})),N(!1)}),[]);var A=function(e){var t=new Set(k.current);t.has(e)?t.delete(e):t.add(e),k.current=t};return _?n().createElement(mo,{msg:"Building Yang Tree"}):n().createElement("div",{className:aa.tree},n().createElement(ha,null),n().createElement(ba,{workflowId:i,instanceId:c}),!d&&!s||d?n().createElement(Ba,{variant:"fill",sentiment:"danger",open:!0},n().createElement(Wa,{slot:"icon",name:"hbr-error-filled"}),d&&n().createElement("span",null,d),!d&&!s&&n().createElement("span",null,"Unable to render tree: malformed/missing data")):null,n().createElement("div",{className:aa["clear-node-values"]},n().createElement(Ra,{treeNode:h,scrollRef:S,expandedNodesState:k}),n().createElement("div",null,n().createElement(Ha,{variant:"text",onClick:function(){f(ei({workflowId:i,instanceId:c}))}},"Clear all node values"))),n().createElement("div",{className:aa["nodes-header"]},n().createElement("div",{className:aa["nodes-name-column"]},"Name"),n().createElement("div",{className:aa["nodes-input-container"]},n().createElement("div",{className:aa["nodes-input-column"]},"Value"),n().createElement("div",{className:aa["nodes-input-column"]},"Operation"))),h&&h.map((function(e){return n().createElement(ra,{key:e.id,nodeProp:e,level:0,setTreeNode:m,setParentNode:m,parents:["#"],parent:"#",parentModule:e.data.module,onNodeSelectCallback:null,workflowId:i,instanceId:c,expandedNodesState:k,clonedNodesState:O,toggleNode:A,scrollRef:S})})))};var Va={nav:gr,tree:ri}})(),c})()));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|