"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[248],{5521:function(n,e,t){t.d(e,{Z:function(){return W}});var r=t(5893),o=t(1113),i=t(1496),c=t(2293),a=t(7357),u=t(2992),l=t(4799),s=t(7294),f=t(7169),d=t(4433),p=t(9029),g=t(7533),m=t(8462),y=t(7212),v=t(8619),b=[{text:"Anvil",image:"/pngs/anvil_icon_on.png",uri:"/manage-element"},{text:"Files",image:"/pngs/files_on.png",uri:"/file-manager"},{text:"Configure",image:"/pngs/configure_icon_on.png",uri:"/config"},{text:"Help",image:"/pngs/help_icon_on.png",uri:"https://alteeve.com/w/Support"}],h={width:"40em",height:"40em"},j=t(4390),x=t(582),w=t(4690),O=t(1770),S=t(7750),Z=t(1081);function P(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t1&&void 0!==arguments[1]?arguments[1]:"suiapi.";return t["".concat(e).concat(n)]}),[t]),i=(0,s.useCallback)((function(){return o("user")}),[o]);return(0,s.useEffect)((function(){if(n){var e=document.cookie.split(/\s*;\s*/);r(e.reduce((function(n,e){var t,r=k(e.split("=",2),2),o=r[0],i=r[1],c=decodeURIComponent(i);if(c.startsWith("j:"))try{t=JSON.parse(c.substring(2))}catch(a){t=i}else t=i;return n[o]=t,n}),{}))}}),[n]),{cookieJar:t,getCookie:o,getSessionUser:i}};function C(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function I(n){for(var e=1;e0)},ref:e})]})}},7869:function(n,e,t){var r=t(5893),o=t(7294),i=t(8187);function c(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t=0||(o[t]=n[t]);return o}(n,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(n,t)&&(o[t]=n[t])}return o}function l(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var t=null==n?null:"undefined"!==typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var r,o,i=[],c=!0,a=!1;try{for(t=t.call(n);!(c=(r=t.next()).done)&&(i.push(r.value),!e||i.length!==e);c=!0);}catch(u){a=!0,o=u}finally{try{c||null==t.return||t.return()}finally{if(a)throw o}}return i}}(n,e)||function(n,e){if(!n)return;if("string"===typeof n)return c(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);"Object"===t&&n.constructor&&(t=n.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return c(n,e)}(n,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.")}()}function s(n){var e=function(n,e){if("object"!==f(n)||null===n)return n;var t=n[Symbol.toPrimitive];if(void 0!==t){var r=t.call(n,e||"default");if("object"!==f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(n)}(n,"string");return"symbol"===f(e)?e:String(e)}var f=function(n){return n&&"undefined"!==typeof Symbol&&n.constructor===Symbol?"symbol":typeof n};var d={count:0,defaultMessageType:"info",messages:void 0,onSet:void 0,usePlaceholder:!0},p=(0,o.forwardRef)((function(n,e){var t=n.count,c=void 0===t?d.count:t,f=n.defaultMessageType,p=void 0===f?d.defaultMessageType:f,g=n.messages,m=n.onSet,y=n.usePlaceholder,v=void 0===y?d.usePlaceholder:y,b=(0,o.useState)({}),h=b[0],j=b[1],x=(0,o.useMemo)((function(){return function(n){for(var e=1;e0,t=e?c:n.length,o=[];if(n.every((function(n){var e=l(n,2),c=e[0],a=e[1],u=a.children,s=a.type,f=void 0===s?p:s;return o.push((0,r.jsx)(i.Z,{type:f,children:u},"message-".concat(c))),o.lengthn.length)&&(e=n.length);for(var t=0,r=new Array(e);t=0||(o[t]=n[t]);return o}(n,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(n,t)&&(o[t]=n[t])}return o}function a(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var t=null==n?null:"undefined"!==typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var r,o,i=[],c=!0,a=!1;try{for(t=t.call(n);!(c=(r=t.next()).done)&&(i.push(r.value),!e||i.length!==e);c=!0);}catch(u){a=!0,o=u}finally{try{c||null==t.return||t.return()}finally{if(a)throw o}}return i}}(n,e)||function(n,e){if(!n)return;if("string"===typeof n)return r(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);"Object"===t&&n.constructor&&(t=n.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return r(n,e)}(n,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.")}()}function u(n){var e=function(n,e){if("object"!==l(n)||null===n)return n;var t=n[Symbol.toPrimitive];if(void 0!==t){var r=t.call(n,e||"default");if("object"!==l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(n)}(n,"string");return"symbol"===l(e)?e:String(e)}t.d(e,{Um:function(){return d}});var l=function(n){return n&&"undefined"!==typeof Symbol&&n.constructor===Symbol?"symbol":typeof n};var s=function(){for(var n=arguments.length,e=new Array(n),t=0;t2&&void 0!==arguments[2]?arguments[2]:{},r=t.guard,o=void 0===r?function(){return!0}:r,a=t.set,l=void 0===a?s:a;return function(t){t[n];var r=i({},c(t,[n].map(u)));return o(t,n,e)&&l(t,r,n,e),r}},d=function(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.set,o=void 0===r?s:r;return function(t){var r={};return Object.keys(t).forEach((function(i){var c=i;n.test(i)?o(t,r,c,e):r[c]=t[c]})),r}};e.ZP=f},3675:function(n,e){var t={boolean:function(n){return Boolean(n)},number:function(n){return parseInt(String(n),10)||0},string:function(n){return String(n)}};e.Z=t}}]);