(this["webpackJsonpipfs-webui"]=this["webpackJsonpipfs-webui"]||[]).push([[0],{1105:function(e,n,t){"use strict";var o;t.d(n,"a",(function(){return ge}));var r=Function.prototype.bind.call(Function.prototype.call,[].slice);function a(e,n){return r(e.querySelectorAll(n))}var i=t(0),s=t.n(i),c=t(5),u=t.n(c),l=t(144),d=t(188);t(1226);function f(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function p(e){var n=function(e,n){if("object"!==typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,n||"default");if("object"!==typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===typeof n?n:String(n)}function h(e,n){return Object.keys(n).reduce((function(t,o){var r,a=t,s=a[f(o)],c=a[o],u=Object(d.a)(a,[f(o),o].map(p)),h=n[o],v=function(e,n,t){var o=Object(i.useRef)(void 0!==e),r=Object(i.useState)(n),a=r[0],s=r[1],c=void 0!==e,u=o.current;return o.current=c,!c&&u&&a!==n&&s(n),[c?e:a,Object(i.useCallback)((function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r *"},W.Menu=U,W.Toggle=$;var J=t(55);function X(e){void 0===e&&(e=B());try{var n=e.activeElement;return n&&n.nodeName?n:null}catch(je){return e.body}}function Y(e,n){e.classList?e.classList.add(n):function(e,n){return e.classList?!!n&&e.classList.contains(n):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+n+" ")}(e,n)||("string"===typeof e.className?e.className=e.className+" "+n:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+n))}function Z(e,n){return e.replace(new RegExp("(^|\\s)"+n+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function G(e,n){e.classList?e.classList.remove(n):"string"===typeof e.className?e.className=Z(e.className,n):e.setAttribute("class",Z(e.className&&e.className.baseVal||"",n))}function Q(e,n){return function(e){var n=B(e);return n&&n.defaultView||window}(e).getComputedStyle(e,n)}var ee=/([A-Z])/g;var ne=/^ms-/;function te(e){return function(e){return e.replace(ee,"-$1").toLowerCase()}(e).replace(ne,"-ms-")}var oe=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;var re=function(e,n){var t="",o="";if("string"===typeof n)return e.style.getPropertyValue(te(n))||Q(e).getPropertyValue(te(n));Object.keys(n).forEach((function(r){var a=n[r];a||0===a?!function(e){return!(!e||!oe.test(e))}(r)?t+=te(r)+": "+a+";":o+=r+"("+a+") ":e.style.removeProperty(te(r))})),o&&(t+="transform: "+o+";"),e.style.cssText+=";"+t},ae=t(137);function ie(e){return"window"in e&&e.window===e?e:"nodeType"in(n=e)&&n.nodeType===document.DOCUMENT_NODE&&e.defaultView||!1;var n}function se(e){var n;return ie(e)||(n=e)&&"body"===n.tagName.toLowerCase()?function(e){var n=B(e),t=ie(n);return n.body.clientWidthe.clientHeight}var ce=["template","script","style"],ue=function(e,n,t){n=[].concat(n),[].forEach.call(e.children,(function(e){-1===n.indexOf(e)&&function(e){var n=e.nodeType,t=e.tagName;return 1===n&&-1===ce.indexOf(t.toLowerCase())}(e)&&t(e)}))};function le(e,n){n&&(e?n.setAttribute("aria-hidden","true"):n.removeAttribute("aria-hidden"))}var de,fe=function(){function e(e){var n=void 0===e?{}:e,t=n.hideSiblingNodes,o=void 0===t||t,r=n.handleContainerOverflow,a=void 0===r||r;this.hideSiblingNodes=o,this.handleContainerOverflow=a,this.modals=[],this.containers=[],this.data=[],this.scrollbarSize=Object(ae.a)()}var n=e.prototype;return n.isContainerOverflowing=function(e){var n=this.data[this.containerIndexFromModal(e)];return n&&n.overflowing},n.containerIndexFromModal=function(e){return function(e,n){var t=-1;return e.some((function(e,o){return!!n(e,o)&&(t=o,!0)})),t}(this.data,(function(n){return-1!==n.modals.indexOf(e)}))},n.setContainerStyle=function(e,n){var t={overflow:"hidden"};e.style={overflow:n.style.overflow,paddingRight:n.style.paddingRight},e.overflowing&&(t.paddingRight=parseInt(re(n,"paddingRight")||0,10)+this.scrollbarSize+"px"),re(n,t)},n.removeContainerStyle=function(e,n){var t=e.style;Object.keys(t).forEach((function(e){n.style[e]=t[e]}))},n.add=function(e,n,t){var o=this.modals.indexOf(e),r=this.containers.indexOf(n);if(-1!==o)return o;if(o=this.modals.length,this.modals.push(e),this.hideSiblingNodes&&function(e,n){var t=n.dialog,o=n.backdrop;ue(e,[t,o],(function(e){return le(!0,e)}))}(n,e),-1!==r)return this.data[r].modals.push(e),o;var a={modals:[e],classes:t?t.split(/\s+/):[],overflowing:se(n)};return this.handleContainerOverflow&&this.setContainerStyle(a,n),a.classes.forEach(Y.bind(null,n)),this.containers.push(n),this.data.push(a),o},n.remove=function(e){var n=this.modals.indexOf(e);if(-1!==n){var t=this.containerIndexFromModal(e),o=this.data[t],r=this.containers[t];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.classes.forEach(G.bind(null,r)),this.handleContainerOverflow&&this.removeContainerStyle(o,r),this.hideSiblingNodes&&function(e,n){var t=n.dialog,o=n.backdrop;ue(e,[t,o],(function(e){return le(!1,e)}))}(r,e),this.containers.splice(t,1),this.data.splice(t,1);else if(this.hideSiblingNodes){var a=o.modals[o.modals.length-1],i=a.backdrop;le(!1,a.dialog),le(!1,i)}}},n.isTopModal=function(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e},e}(),pe=function(e){if("undefined"!==typeof document)return null==e?B().body:("function"===typeof e&&(e=e()),e&&e.current&&(e=e.current),e&&e.nodeType?e:null)};function he(e,n){var t=Object(i.useState)((function(){return pe(e)})),o=t[0],r=t[1];if(!o){var a=pe(e);a&&r(a)}return Object(i.useEffect)((function(){n&&o&&n(o)}),[n,o]),Object(i.useEffect)((function(){var n=pe(e);n!==o&&r(n)}),[e,o]),o}var ve=function(e){function n(){for(var n,t=arguments.length,o=new Array(t),r=0;r1?t-1:0),r=1;r