diff --git a/source/app/containers/HomePage.tsx b/source/app/containers/HomePage.tsx index 560d9e69..f2b8bfdb 100644 --- a/source/app/containers/HomePage.tsx +++ b/source/app/containers/HomePage.tsx @@ -187,7 +187,7 @@ export default function App() { outputPrinters.push(( - + - + {!serverProcess[idx] && - + } {serverProcess[idx] && - + } @@ -303,7 +303,7 @@ export default function App() {
- +
diff --git a/source/app/dist/renderer.prod.js b/source/app/dist/renderer.prod.js index 19d6dfc0..bb644aed 100644 --- a/source/app/dist/renderer.prod.js +++ b/source/app/dist/renderer.prod.js @@ -1,2 +1,2 @@ /*! For license information please see renderer.prod.js.LICENSE.txt */ -module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="./dist/",n(n.s="./app/index.tsx")}({"./app/app.global.css":function(e,t,n){},"./app/constants/routes.json":function(e){e.exports=JSON.parse('{"HOME":"/"}')},"./app/containers/Home.module.css":function(e,t,n){e.exports={container:"Home-module__container__3WYEp",tabContainer:"Home-module__tabContainer__1Xkjp",tabLink:"Home-module__tabLink__1KS1m",tabLinkSelected:"Home-module__tabLinkSelected__2FdRU",buttonStart:"Home-module__buttonStart__3pv-_",buttonStop:"Home-module__buttonStop__3VRnm",buttonAdd:"Home-module__buttonAdd__3kca8",buttonRemove:"Home-module__buttonRemove__1OTOq",textInput:"Home-module__textInput__1oEmd",textareaInput:"Home-module__textareaInput__2RXlR",textInputPlaceholder:"Home-module__textInputPlaceholder__3VHf-",textInputHasError:"Home-module__textInputHasError__2EWUN",textInputErrorMessage:"Home-module__textInputErrorMessage__33A1y",textInputLabel:"Home-module__textInputLabel__1NPmW"}},"./app/index.tsx":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/react-dom/index.js"),a=n("./node_modules/react-hot-loader/index.js"),s=n("./node_modules/prop-types/index.js"),l=n.n(s),u=o.a.createContext(null);var c=function(e){e()},f={notify:function(){}};function d(){var e=c,t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}var p=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=f,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=d())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=f)},e}();var h=function(e){var t=e.store,n=e.context,i=e.children,a=Object(r.useMemo)((function(){var e=new p(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),s=Object(r.useMemo)((function(){return t.getState()}),[t]);Object(r.useEffect)((function(){var e=a.subscription;return e.trySubscribe(),s!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[a,s]);var l=n||u;return o.a.createElement(l.Provider,{value:a},i)};function m(){return(m=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var y=n("./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"),b=n.n(y),v=n("./node_modules/react-is/index.js"),_="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect,w=[],x=[null,null];function S(e,t){var n=e[1];return[t.payload,n+1]}function E(e,t,n){_((function(){return e.apply(void 0,t)}),n)}function k(e,t,n,r,o,i,a){e.current=r,t.current=o,n.current=!1,i.current&&(i.current=null,a())}function T(e,t,n,r,o,i,a,s,l,u){if(e){var c=!1,f=null,d=function(){if(!c){var e,n,d=t.getState();try{e=r(d,o.current)}catch(e){n=e,f=e}n||(f=null),e===i.current?a.current||l():(i.current=e,s.current=e,a.current=!0,u({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=d,n.trySubscribe(),d();return function(){if(c=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}}var C=function(){return[null,0]};function O(e,t){void 0===t&&(t={});var n=t,i=n.getDisplayName,a=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,s=n.methodName,l=void 0===s?"connectAdvanced":s,c=n.renderCountProp,f=void 0===c?void 0:c,d=n.shouldHandleStateChanges,h=void 0===d||d,y=n.storeKey,_=void 0===y?"store":y,O=(n.withRef,n.forwardRef),P=void 0!==O&&O,j=n.context,N=void 0===j?u:j,R=g(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),M=N;return function(t){var n=t.displayName||t.name||"Component",i=a(n),s=m({},R,{getDisplayName:a,methodName:l,renderCountProp:f,shouldHandleStateChanges:h,storeKey:_,displayName:i,wrappedComponentName:n,WrappedComponent:t}),u=R.pure;var c=u?r.useMemo:function(e){return e()};function d(n){var i=Object(r.useMemo)((function(){var e=n.reactReduxForwardedRef,t=g(n,["reactReduxForwardedRef"]);return[n.context,e,t]}),[n]),a=i[0],l=i[1],u=i[2],f=Object(r.useMemo)((function(){return a&&a.Consumer&&Object(v.isContextConsumer)(o.a.createElement(a.Consumer,null))?a:M}),[a,M]),d=Object(r.useContext)(f),y=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(d)&&Boolean(d.store);var b=y?n.store:d.store,_=Object(r.useMemo)((function(){return function(t){return e(t.dispatch,s)}(b)}),[b]),O=Object(r.useMemo)((function(){if(!h)return x;var e=new p(b,y?null:d.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[b,y,d]),P=O[0],j=O[1],N=Object(r.useMemo)((function(){return y?d:m({},d,{subscription:P})}),[y,d,P]),R=Object(r.useReducer)(S,w,C),A=R[0][0],L=R[1];if(A&&A.error)throw A.error;var I=Object(r.useRef)(),D=Object(r.useRef)(u),F=Object(r.useRef)(),U=Object(r.useRef)(!1),z=c((function(){return F.current&&u===D.current?F.current:_(b.getState(),u)}),[b,A,u]);E(k,[D,I,U,u,z,F,j]),E(T,[h,b,P,_,D,I,U,F,j,L],[b,P,_]);var B=Object(r.useMemo)((function(){return o.a.createElement(t,m({},z,{ref:l}))}),[l,t,z]);return Object(r.useMemo)((function(){return h?o.a.createElement(f.Provider,{value:N},B):B}),[f,B,N])}var y=u?o.a.memo(d):d;if(y.WrappedComponent=t,y.displayName=i,P){var O=o.a.forwardRef((function(e,t){return o.a.createElement(y,m({},e,{reactReduxForwardedRef:t}))}));return O.displayName=i,O.WrappedComponent=t,b()(O,t)}return b()(y,t)}}function P(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function j(e,t){if(P(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function te(e,t){return e===t}function ne(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?O:n,o=t.mapStateToPropsFactories,i=void 0===o?Q:o,a=t.mapDispatchToPropsFactories,s=void 0===a?G:a,l=t.mergePropsFactories,u=void 0===l?Y:l,c=t.selectorFactory,f=void 0===c?Z:c;return function(e,t,n,o){void 0===o&&(o={});var a=o,l=a.pure,c=void 0===l||l,d=a.areStatesEqual,p=void 0===d?te:d,h=a.areOwnPropsEqual,y=void 0===h?j:h,b=a.areStatePropsEqual,v=void 0===b?j:b,_=a.areMergedPropsEqual,w=void 0===_?j:_,x=g(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),S=ee(e,i,"mapStateToProps"),E=ee(t,s,"mapDispatchToProps"),k=ee(n,u,"mergeProps");return r(f,m({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:S,initMapDispatchToProps:E,initMergeProps:k,pure:c,areStatesEqual:p,areOwnPropsEqual:y,areStatePropsEqual:v,areMergedPropsEqual:w},x))}}var re=ne();var oe;function ie(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function ae(e){return"/"===e.charAt(0)}function se(e,t){for(var n=t,r=n+1,o=e.length;r=0;c--){var f=o[c];"."===f?se(o,c):".."===f?(se(o,c),u++):u&&(se(o,c),u--)}if(!s)for(;u--;u)o.unshift("..");!s||""===o[0]||o[0]&&ae(o[0])||o.unshift("");var d=o.join("/");return n&&"/"!==d.substr(-1)&&(d+="/"),d};var ue=function(e,t){if(!e)throw new Error("Invariant failed")};function ce(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function fe(e,t,n,r){var o;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(o=m({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=le(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function de(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;rt?n.splice(t,n.length-t,r):n.push(r),c({action:"PUSH",location:r,index:t,entries:n})}}))},replace:function(e,t){var r=fe(e,t,f(),y.location);u.confirmTransitionTo(r,"REPLACE",n,(function(e){e&&(y.entries[y.index]=r,c({action:"REPLACE",location:r}))}))},go:g,goBack:function(){g(-1)},goForward:function(){g(1)},canGo:function(e){var t=y.index+e;return t>=0&&t0&&void 0!==arguments[0]?arguments[0]:r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.type,a=o.payload;if(i===Me){var s=a.location,l=a.action,u=a.isFirstRendering;return u?e:n(e,{location:t(Ge(s)),action:l})}return e}}};function Ke(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 Ye(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xe={fromJS:function(e){return e},getIn:function(e,t){if(!e)return e;var n=t.length;if(n){for(var r=e,o=0;o2&&void 0!==arguments[2]&&arguments[2];r.inTimeTravelling?r.inTimeTravelling=!1:a(e,t,n)};return r.unlisten=i.listen(s),e.noInitialPop||s(i.location,i.action,!0),r}var r,i,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&We(e,t)}(n,e),r=n,(i=[{key:"componentWillUnmount",value:function(){this.unlisten(),this.unsubscribe()}},{key:"render",value:function(){var e=this.props,t=e.history,n=e.children;return o.a.createElement(xe,{history:t},n)}}])&&Ue(r.prototype,i),a&&Ue(r,a),n}(r.PureComponent);n.propTypes={store:l.a.shape({getState:l.a.func.isRequired,subscribe:l.a.func.isRequired}).isRequired,history:l.a.shape({action:l.a.string.isRequired,listen:l.a.func.isRequired,location:l.a.object.isRequired,push:l.a.func.isRequired}).isRequired,basename:l.a.string,children:l.a.oneOfType([l.a.func,l.a.node]),onLocationChanged:l.a.func.isRequired,noInitialPop:l.a.bool};var i=function(e){var t=e.context||u;if(null==t)throw"Please upgrade to react-redux v6";return o.a.createElement(t.Consumer,null,(function(t){var r=t.store;return o.a.createElement(n,Fe({store:r},e))}))};return i.propTypes={context:l.a.object},re(null,(function(e){return{onLocationChanged:function(t,n,r){return e(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:Me,payload:{location:e,action:t,isFirstRendering:n}}}(t,n,r))}}}))(i)}(Xe),Ze=Qe(Xe),et=Ie(Xe),tt=(et.getLocation,et.getAction,et.getHash,et.getSearch,et.createMatchSelector,n("./node_modules/react-hot-loader/root.js")),nt=n("./app/constants/routes.json");function rt(e){const{children:t}=e;return o.a.createElement(o.a.Fragment,null,t)}var ot,it=n("./node_modules/@react-native-community/async-storage/lib/module/index.js"),at=n.n(it),st=n("./app/containers/Home.module.css"),lt=n.n(st);function ut(e,t,n,r){ot||(ot="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var o=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={children:void 0}),1===i)t.children=r;else if(i>1){for(var a=new Array(i),s=0;s{at.a.getItem("@Printer:savedValues").then(e=>{null!==e&&c(JSON.parse(e))}),at.a.getItem("@Printer:printerList").then(e=>{null!==e&&l(JSON.parse(e))}),s.forEach((function(e,t){e.autostart&&f(t)}))},[]);let b=[];return function(){b=[],s.forEach((function(e,t){b.push(ut("tr",{style:{height:40}},"printer"+t,ut("td",{width:"10%"},void 0,ut("a",{onClick:p.bind(this,t)},void 0,ut("img",{src:"assets/trash.svg",style:{width:18,height:18,marginLeft:4,marginRight:10,marginTop:3}}))),ut("td",{width:"20%"},void 0,ut("input",{onChange:e=>g(t,"listenport",e),value:e.listenport,autoCapitalize:"none",className:lt.a.textInput,style:{width:80}})),ut("td",{width:"35%"},void 0,ut("input",{onChange:e=>g(t,"ipaddress",e),value:e.ipaddress,autoCapitalize:"none",className:lt.a.textInput,style:{width:140}})),ut("td",{width:"20%"},void 0,ut("input",{onChange:e=>g(t,"port",e),value:e.port,autoCapitalize:"none",className:lt.a.textInput,style:{width:80}})),ut("td",{width:"5%",align:"center"},void 0,ut("input",{type:"checkbox",onChange:e=>g(t,"autostart",e),checked:!!e.autostart,className:lt.a.textInput,style:{opacity:0},id:"fld-check-"+t}),ut("label",{for:"fld-check-"+t})),ut("td",{width:"10%",style:{textAlign:"right"}},void 0,!n[t]&&ut("a",{onClick:f.bind(this,t)},void 0,ut("img",{src:"assets/play-circle.svg",style:{width:28,height:28,marginTop:4}})),n[t]&&ut("a",{onClick:d.bind(this,t)},void 0,ut("img",{src:"assets/stop-circle.svg",style:{width:28,height:28,marginTop:4}})))))}),this)}(),ut("div",{className:lt.a.container},void 0,ut("div",{style:{width:"100%",height:555,display:"flex",flexDirection:"column",overflow:"auto"}},void 0,ut("p",{className:lt.a.tabContainer},void 0,ut("a",{onClick:()=>t("printers"),className:"printers"==e?lt.a.tabLinkSelected:lt.a.tabLink,style:{marginLeft:12}},void 0,"Printers"),ut("a",{onClick:()=>t("ssl"),className:"ssl"==e?lt.a.tabLinkSelected:lt.a.tabLink,style:{marginLeft:22}},void 0,"SSL"),ut("a",{onClick:()=>t("logs"),className:"logs"==e?lt.a.tabLinkSelected:lt.a.tabLink,style:{marginLeft:22}},void 0,"Logs")),"ssl"==e&&ut("div",{style:{width:"100%",padding:12,paddingTop:0}},void 0,ut("label",{for:"fld-ssl-cert",className:lt.a.textInputLabel,style:{marginTop:20}},void 0,"Certificate"),ut("textarea",{id:"fld-ssl-cert",onChange:e=>y("cert",e),value:u.cert,autoCapitalize:"none",className:lt.a.textareaInput}),ut("label",{for:"fld-ssl-key",className:lt.a.textInputLabel,style:{marginTop:20}},void 0,"Private key"),ut("textarea",{id:"fld-ssl-key",onChange:e=>y("key",e),value:u.key,autoCapitalize:"none",className:lt.a.textareaInput})),"printers"==e&&ut("div",{style:{width:"100%"}},void 0,ut("div",{style:{flex:1,paddingTop:20,paddingLeft:12,paddingRight:12}},void 0,ut("table",{width:"100%"},void 0,ut("thead",{},void 0,ut("tr",{},void 0,vt,ut("th",{className:lt.a.textInputLabel},void 0,"Listen port"),ut("th",{className:lt.a.textInputLabel},void 0,"Printer IP"),ut("th",{className:lt.a.textInputLabel},void 0,"Printer port"),ut("th",{className:lt.a.textInputLabel},void 0,"Autostart"),_t)),ut("tbody",{id:"printerList"},void 0,b)),ut("div",{style:{marginTop:12,marginBottom:20}},void 0,ut("a",{onClick:function(){let e=[];for(let t=0;t1){for(var a=new Array(i),s=0;s1){for(var a=new Array(i),s=0;sEt(h,{store:e},void 0,Et(Je,{history:t},void 0,kt)));function Ct(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:It(e)?2:Dt(e)?3:0}function Rt(e,t){return 2===Nt(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Mt(e,t){return 2===Nt(e)?e.get(t):e[t]}function At(e,t,n){var r=Nt(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function Lt(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function It(e){return pn&&e instanceof Map}function Dt(e){return hn&&e instanceof Set}function Ft(e){return e.o||e.t}function Ut(e){if(Array.isArray(e))return e.slice();var t=_n(e);delete t[bn];for(var n=vn(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=Bt),Object.freeze(e),t&&jt(e,(function(e,t){return zt(t,!0)}),!0))}function Bt(){Ct(2)}function Wt(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function Ht(e){var t=wn[e];return t||Ct(19,e),t}function $t(e,t){wn[e]=t}function qt(){return fn}function Vt(e,t){t&&(Ht("Patches"),e.u=[],e.s=[],e.v=t)}function Gt(e){Qt(e),e.p.forEach(Yt),e.p=null}function Qt(e){e===fn&&(fn=e.l)}function Kt(e){return fn={p:[],l:fn,h:e,m:!0,_:0}}function Yt(e){var t=e[bn];0===t.i||1===t.i?t.j():t.g=!0}function Xt(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.O||Ht("ES5").S(t,e,r),r?(n[bn].P&&(Gt(t),Ct(4)),Pt(e)&&(e=Jt(t,e),t.l||en(t,e)),t.u&&Ht("Patches").M(n[bn],e,t.u,t.s)):e=Jt(t,n,[]),Gt(t),t.u&&t.v(t.u,t.s),e!==gn?e:void 0}function Jt(e,t,n){if(Wt(t))return t;var r=t[bn];if(!r)return jt(t,(function(o,i){return Zt(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return en(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=Ut(r.k):r.o;jt(3===r.i?new Set(o):o,(function(t,i){return Zt(e,r,o,t,i,n)})),en(e,o,!1),n&&e.u&&Ht("Patches").R(r,n,e.u,e.s)}return r.o}function Zt(e,t,n,r,o,i){if(Ot(o)){var a=Jt(e,o,i&&t&&3!==t.i&&!Rt(t.D,r)?i.concat(r):void 0);if(At(n,r,a),!Ot(a))return;e.m=!1}if(Pt(o)&&!Wt(o)){if(!e.h.N&&e._<1)return;Jt(e,o),t&&t.A.l||en(e,o)}}function en(e,t,n){void 0===n&&(n=!1),e.h.N&&e.m&&zt(t,n)}function tn(e,t){var n=e[bn];return(n?Ft(n):e)[t]}function nn(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function rn(e){e.P||(e.P=!0,e.l&&rn(e.l))}function on(e){e.o||(e.o=Ut(e.t))}function an(e,t,n){var r=It(t)?Ht("MapSet").T(t,n):Dt(t)?Ht("MapSet").F(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:qt(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=xn;n&&(o=[r],i=Sn);var a=Proxy.revocable(o,i),s=a.revoke,l=a.proxy;return r.k=l,r.j=s,l}(t,n):Ht("ES5").J(t,n);return(n?n.A:qt()).p.push(r),r}function sn(e){return Ot(e)||Ct(22,e),function e(t){if(!Pt(t))return t;var n,r=t[bn],o=Nt(t);if(r){if(!r.P&&(r.i<4||!Ht("ES5").K(r)))return r.t;r.I=!0,n=ln(t,o),r.I=!1}else n=ln(t,o);return jt(n,(function(t,o){r&&Mt(r.t,t)===o||At(n,t,e(o))})),3===o?new Set(n):n}(e)}function ln(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Ut(e)}function un(){function e(e,t){var n=o[e];return n?n.enumerable=t:o[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[bn];return xn.get(t,e)},set:function(t){var n=this[bn];xn.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var o=e[t][bn];if(!o.P)switch(o.i){case 5:r(o)&&rn(o);break;case 4:n(o)&&rn(o)}}}function n(e){for(var t=e.t,n=e.k,r=vn(n),o=r.length-1;o>=0;o--){var i=r[o];if(i!==bn){var a=t[i];if(void 0===a&&!Rt(t,i))return!0;var s=n[i],l=s&&s[bn];if(l?l.t!==a:!Lt(s,a))return!0}}var u=!!t[bn];return r.length!==vn(t).length+(u?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);return!(!n||n.get)}var o={};$t("ES5",{J:function(t,n){var r=Array.isArray(t),o=function(t,n){if(t){for(var r=Array(n.length),o=0;o1?i-1:0),s=1;s1?n-1:0),i=1;i=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}var o=Ht("Patches").$;return Ot(e)?o(e,t):this.produce(e,(function(e){return o(e,t.slice(n+1))}))},e}());En.produce,En.produceWithPatches.bind(En),En.setAutoFreeze.bind(En),En.setUseProxies.bind(En),En.applyPatches.bind(En),En.createDraft.bind(En),En.finishDraft.bind(En);function kn(e,t){return e===t}function Tn(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,o=0;o1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:kn,n=null,r=null;return function(){return Tn(t,n,arguments)||(r=e.apply(null,arguments)),n=arguments,r}}));function On(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}var Pn=On();Pn.withExtraArgument=On;var jn=Pn;function Nn(){return(Nn=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],r=t&&t.split("/")||[],o=e&&Vn(e),i=t&&Vn(t),a=o||i;if(e&&Vn(e)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var s=void 0;if(r.length){var l=r[r.length-1];s="."===l||".."===l||""===l}else s=!1;for(var u=0,c=r.length;c>=0;c--){var f=r[c];"."===f?Gn(r,c):".."===f?(Gn(r,c),u++):u&&(Gn(r,c),u--)}if(!a)for(;u--;u)r.unshift("..");!a||""===r[0]||r[0]&&Vn(r[0])||r.unshift("");var d=r.join("/");return s&&"/"!==d.substr(-1)&&(d+="/"),d},Kn="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};var Yn=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));var r=void 0===t?"undefined":Kn(t);if(r!==(void 0===n?"undefined":Kn(n)))return!1;if("object"===r){var o=t.valueOf(),i=n.valueOf();if(o!==t||i!==n)return e(o,i);var a=Object.keys(t),s=Object.keys(n);return a.length===s.length&&a.every((function(r){return e(t[r],n[r])}))}return!1},Xn=function(e){return"/"===e.charAt(0)?e:"/"+e},Jn=function(e){return"/"===e.charAt(0)?e.substr(1):e},Zn=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},er=function(e,t){return Zn(e,t)?e.substr(t.length):e},tr=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},nr=function(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o},rr=Object.assign||function(e){for(var t=1;t=0?t:0)+"#"+e)},yr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};qn()(sr,"Hash history needs a DOM");var t=window.history,n=fr(),r=e.getUserConfirmation,o=void 0===r?cr:r,i=e.hashType,a=void 0===i?"slash":i,s=e.basename?tr(Xn(e.basename)):"",l=pr[a],u=l.encodePath,c=l.decodePath,f=function(){var e=c(hr());return Hn()(!s||Zn(e,s),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+e+'" to begin with "'+s+'".'),s&&(e=er(e,s)),or(e)},d=ar(),p=function(e){dr(A,e),A.length=t.length,d.notifyListeners(A.location,A.action)},h=!1,m=null,g=function(){var e=hr(),t=u(e);if(e!==t)gr(t);else{var n=f(),r=A.location;if(!h&&ir(r,n))return;if(m===nr(n))return;m=null,y(n)}},y=function(e){if(h)h=!1,p();else{d.confirmTransitionTo(e,"POP",o,(function(t){t?p({action:"POP",location:e}):b(e)}))}},b=function(e){var t=A.location,n=x.lastIndexOf(nr(t));-1===n&&(n=0);var r=x.lastIndexOf(nr(e));-1===r&&(r=0);var o=n-r;o&&(h=!0,T(o))},v=hr(),_=u(v);v!==_&&gr(_);var w=f(),x=[nr(w)],S=function(e){return"#"+u(s+nr(e))},E=function(e,t){Hn()(void 0===t,"Hash history cannot push state; it is ignored");var n=or(e,void 0,void 0,A.location);d.confirmTransitionTo(n,"PUSH",o,(function(e){if(e){var t=nr(n),r=u(s+t);if(hr()!==r){m=t,mr(r);var o=x.lastIndexOf(nr(A.location)),i=x.slice(0,-1===o?0:o+1);i.push(t),x=i,p({action:"PUSH",location:n})}else Hn()(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),p()}}))},k=function(e,t){Hn()(void 0===t,"Hash history cannot replace state; it is ignored");var n=or(e,void 0,void 0,A.location);d.confirmTransitionTo(n,"REPLACE",o,(function(e){if(e){var t=nr(n),r=u(s+t);hr()!==r&&(m=t,gr(r));var o=x.indexOf(nr(A.location));-1!==o&&(x[o]=t),p({action:"REPLACE",location:n})}}))},T=function(e){Hn()(n,"Hash history go(n) causes a full page reload in this browser"),t.go(e)},C=function(){return T(-1)},O=function(){return T(1)},P=0,j=function(e){1===(P+=e)?lr(window,"hashchange",g):0===P&&ur(window,"hashchange",g)},N=!1,R=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=d.setPrompt(e);return N||(j(1),N=!0),function(){return N&&(N=!1,j(-1)),t()}},M=function(e){var t=d.appendListener(e);return j(1),function(){j(-1),t()}},A={length:t.length,action:"POP",location:w,createHref:S,push:E,replace:k,go:T,goBack:C,goForward:O,block:R,listen:M};return A};"function"==typeof Symbol&&Symbol.iterator,Object.assign;function br(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t1){for(var a=new Array(i),s=0;sObject(i.render)(Pr,document.getElementById("root")))},"./node_modules/@babel/runtime/helpers/classCallCheck.js":function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},"./node_modules/@babel/runtime/helpers/createClass.js":function(e,t){function n(e,t){for(var n=0;n=e.length?n():(i=o,"function"==typeof setImmediate?setImmediate(i):process.nextTick(i))}))};o()}},"./node_modules/debug/src/browser.js":function(e,t,n){t.log=function(...e){return"object"==typeof console&&console.log&&console.log(...e)},t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(o=r))}),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.exports=n("./node_modules/debug/src/common.js")(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},"./node_modules/debug/src/common.js":function(e,t,n){e.exports=function(e){function t(e){let t=0;for(let n=0;n{if("%%"===n)return n;s++;const i=r.formatters[o];if("function"==typeof i){const r=e[s];n=i.call(t,r),e.splice(s,1),s--}return n}),r.formatArgs.call(t,e);(t.log||r.log).apply(t,e)}return a.namespace=e,a.enabled=r.enabled(e),a.useColors=r.useColors(),a.color=t(e),a.destroy=o,a.extend=i,"function"==typeof r.init&&r.init(a),r.instances.push(a),a}function o(){const e=r.instances.indexOf(this);return-1!==e&&(r.instances.splice(e,1),!0)}function i(e,t){const n=r(this.namespace+(void 0===t?":":t)+e);return n.log=this.log,n}function a(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return r.debug=r,r.default=r,r.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},r.disable=function(){const e=[...r.names.map(a),...r.skips.map(a).map(e=>"-"+e)].join(",");return r.enable(""),e},r.enable=function(e){let t;r.save(e),r.names=[],r.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),o=n.length;for(t=0;t{r[t]=e[t]}),r.instances=[],r.names=[],r.skips=[],r.formatters={},r.selectColor=t,r.enable(r.load()),r}},"./node_modules/debug/src/index.js":function(e,t,n){"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=n("./node_modules/debug/src/browser.js"):e.exports=n("./node_modules/debug/src/node.js")},"./node_modules/debug/src/node.js":function(e,t,n){const r=n("tty"),o=n("util");t.init=function(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let r=0;r=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase());let r=process.env[t];return r=!!/^(yes|on|true|enabled)$/i.test(r)||!/^(no|off|false|disabled)$/i.test(r)&&("null"===r?null:Number(r)),e[n]=r,e},{}),e.exports=n("./node_modules/debug/src/common.js")(t);const{formatters:i}=e.exports;i.o=function(e){return this.inspectOpts.colors=this.useColors,o.inspect(e,this.inspectOpts).replace(/\s*\n\s*/g," ")},i.O=function(e){return this.inspectOpts.colors=this.useColors,o.inspect(e,this.inspectOpts)}},"./node_modules/deep-assign/index.js":function(e,t,n){"use strict";var r=n("./node_modules/is-obj/index.js"),o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Sources cannot be null or undefined");return Object(e)}function s(e,t,n){var i=t[n];if(null!=i){if(o.call(e,n)&&(void 0===e[n]||null===e[n]))throw new TypeError("Cannot convert undefined or null to object ("+n+")");o.call(e,n)&&r(i)?e[n]=l(Object(e[n]),t[n]):e[n]=i}}function l(e,t){if(e===t)return e;for(var n in t=Object(t))o.call(t,n)&&s(e,t,n);if(Object.getOwnPropertySymbols)for(var r=Object.getOwnPropertySymbols(t),a=0;a31&&e<127?String.fromCharCode(e):r(".","black+bold")}e.exports.coloredHeadSep=r(":","cyan")+" ",e.exports.coloredOptions={headSep:e.exports.coloredHeadSep,renderHuman:i},e.exports.pad=o,e.exports.byte2hex=function(e){return o("0",e.toString(16),2)},e.exports.byte2char=function(e){return e>31&&e<127?String.fromCharCode(e):"."},e.exports.renderHuman=i,e.exports.stripColor=function(e){for(;;){var t=e.indexOf("[");if(t<0)return e;var n=e.indexOf("m",t);if(n<0)return e;e=e.slice(0,t)+e.slice(n+1)}}},"./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js":function(e,t,n){"use strict";var r=n("./node_modules/react-is/index.js"),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var s=l(t),m=l(n),g=0;g=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,t){t=t||{};var s=typeof e;if("string"===s&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var a=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return 6048e5*a;case"days":case"day":case"d":return a*i;case"hours":case"hour":case"hrs":case"hr":case"h":return a*o;case"minutes":case"minute":case"mins":case"min":case"m":return a*r;case"seconds":case"second":case"secs":case"sec":case"s":return a*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}(e);if("number"===s&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=i)return a(e,t,i,"day");if(t>=o)return a(e,t,o,"hour");if(t>=r)return a(e,t,r,"minute");if(t>=n)return a(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=i)return Math.round(e/i)+"d";if(t>=o)return Math.round(e/o)+"h";if(t>=r)return Math.round(e/r)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},"./node_modules/netcat/client.js":function(e,t,n){e.exports=n("./node_modules/netcat/lib/Client.js")},"./node_modules/netcat/lib/Client.js":function(e,t,n){"use strict";const r=n("./node_modules/debug/src/index.js");var o=r("netcat:client");const i=n("./node_modules/netcat/lib/Netcat.js"),a=n("./node_modules/netcat/lib/portScan.js"),s=n("./node_modules/netcat/lib/tcpClient.js"),l=n("./node_modules/netcat/lib/udpClient.js");function u(){}e.exports=class extends i{constructor(e){super(e=e||{}),o=e.verbose?function(){var e=Array.prototype.slice.call(arguments);process.stderr.write(e.join(" ")+"\n")}:o,this.debug=o,this._verbose=e.verbose||!1,this._address=e.address||"127.0.0.1",this._interval=e.interval||!1,this._retry=e.retry||null}interval(e){if(o("setting interval to",e,"seconds"),!Number.isInteger(e))throw Error("Please provide a valid number");return this._interval=e,this}i(e){return this.interval(e)}init(){if("tcp"===this._protocol)throw Error("Useless call to init() in TCP mode, use connect() instead");if(!this._port)throw Error("Port is mandatory in UDP");return l.call(this,this._verbose?o:r("netcat:client:udp")),this}connect(e){if("tcp"!==this._protocol)throw Error("Useless call to connect() in UDP mode, use init() instead");return s.call(this,this._verbose?o:r("netcat:client:tcp"),e),this}retry(e){if("tcp"!==this._protocol)throw Error("Cannot use retry() in UDP");if(!Number.isInteger(e))throw Error("Retry should be a positive integer!");return this._retry=e,this}stream(){return o("Returning stream reference"),this.client}pipe(e){return this.client?(o("Piping incoming data from socket to the given outStream"),this._filter.pipe(e,{end:!this._retry})):o("Client is NOT defined, please call pipe after connect()!"),this}send(e,t){var n="tcp"===this._protocol?t||u:t||null;e&&!Buffer.isBuffer(e)&&(e=Buffer.from(e));var r=this;return this.client?(r._interval?setTimeout((function(){r.client._send(e,n)}),r._interval):r.client._send(e,n),this):this}end(e){if("udp"===this._protocol)throw Error("end() method is tcp only");var t=this;return this._interval?setTimeout((function(){t.client&&t.client.end(e)}),t._interval):t.client.end(e),this}close(e){if(o("client: closing socket."),"function"==typeof e&&this.once("close",e),"udp"===this._protocol){try{this.client&&this.client.close(e)}catch(e){o("client already closed")}return this}return this._retry=null,this.end()}scan(e,t){return a(this,e,t),this}}},"./node_modules/netcat/lib/Netcat.js":function(e,t,n){"use strict";var r=n("./node_modules/debug/src/index.js")("netcat:netcat");const o=n("events").EventEmitter,i=n("./node_modules/through2/through2.js");e.exports=class extends o{constructor(e){super(),e=e||{},this.debug=r,this._protocol=e.protocol||"tcp",this._waitTime=e.waitTime||null,this._destination=e.destination||"127.0.0.1",this._loopback=e.loopback||!1,this._encoding=e.encoding||null,this._unixSocket=e.unixSocket||null,this._port=e.port||null,this._output=e.output||null,this._exec=e.exec||null,this._filter=e.filter||i()}broadcast(e){if("udp"!==this._protocol)throw Error("Cannot use broadcast() in TCP, only UDP");return this._broadcast=!0,this._destination=e||"255.255.255.255",r("broadcast to",this._destination),this}b(){return this.broadcast()}destination(e){if("udp"!==this._protocol)throw Error("Cannot use destination() in TCP, only UDP");return this._destination=e||"127.0.0.1",this.debug("destination set to",this._destination),this}waitTime(e){return this.debug("setting waitTime",e,"ms"),this._waitTime=e,this}wait(e){return this.waitTime(e)}enc(e){return this.debug("set encoding to",e),this._encoding=e,this}protocol(e){return this._protocol=e,this.debug("Protocol is",this._protocol),this}loopback(){if("tcp"===this._protocol)throw Error("loopback() not available in TCP mode");return this.debug("loopback true"),this._loopback=!0,this}unixSocket(e){if("udp"===this._protocol)throw Error("unixSocket() not available in UDP mode");return this.debug("Setting the given unix socket file:",e),this._unixSocket=e,this}address(e){return this.debug("setting address",e),this._address=e,this}addr(e){return this.address(e)}port(e){if(!Number.isInteger(e))throw Error("Port should be a positive integer!");return this._port=e,this.debug("Port set to",this._port),this}p(e){return this.port(e)}bind(e){if("tcp"===this._protocol)throw Error("UDP-only Method");if(!Number.isInteger(e))throw Error("Port should be a positive integer!");return this.debug("UDP Listening port set to",e),this._bind=e,this}udp(){return this.protocol("udp")}tcp(){return this.protocol("tcp")}output(e){if(!1===e.writable||"function"!=typeof e._write||"object"!=typeof e._writableState)throw Error("Provide a writable stream to output()");return this.debug("Set hex dump output stream"),this._output=e,this}out(e){return this.output(e)}exec(e,t,n){if("udp"===this._protocol)throw Error("TCP-only Method");return this._exec=e,this._execArgs=t||[],this._execOptions=n||{},this}filter(e){if(this.debug("Setting a filter for incoming traffic"),"function"!=typeof e)throw Error("filter() accepts only function!");return this._filter=i(e),this}}},"./node_modules/netcat/lib/portScan.js":function(e,t,n){const r=n("./node_modules/async-each-series/index.js");e.exports=function(e,t,n){var o=[];if(Number.isInteger(t))o.push(t);else if("string"==typeof t){var i=t.split("-"),a=+i[0],s=+i[1];if(isNaN(a)||isNaN(s))throw Error("Scan: invalid ports range");for(;a<=s;)o.push(a++)}else{if(!Array.isArray(t))throw Error("Scan: provide a valid port.");o=t.map((function(e){if(isNaN(+e))throw Error("Scan: invalid port in the given array");return+e}))}!function(e,t,n){var o={};r(t,(function(t,n){e.port(t).connect().once("connect",(function(){o[t]="open",e.close()})).once("err",(function(t){o[t.port]="closed",e.close()})).once("close",(function(){n()}))}),(function(){n&&n(o)}))}(e,o,n)}},"./node_modules/netcat/lib/tcpClient.js":function(e,t,n){"use strict";const r=n("./node_modules/netcat/lib/util.js"),o=n("net"),i=n("stream"),a=r.waitTimer,s=n("./node_modules/hexer/index.js"),l=function(){};var u=s.Transform({prefix:"> "}),c=!1;e.exports=function(e,t){e("connect() called");var n=this;function f(t){e("got data",t),n.emit("data",t)}function d(){e("end"),n.emit("end")}function p(t){e("got error",t),n.emit("err",t)}function h(){e("got timeout"),n.client.destroy(),n.emit("timeout")}function m(){e("Connection closed"),n._retry&&(e("Retrying connection in",(n._retry/1e3).toFixed(2),"seconds"),setTimeout((function(){n.client.connect(n._unixSocket||{host:n._address,port:n._port})}),n._retry)),n.emit("close")}function g(){e("Connected to %s:%d",n._address,n._port),n.client.pipe(n._filter,{end:!n._retry}),r.spawnProcess.call(n,n._filter,n.client),n._output&&n.client.pipe(s.Transform({prefix:"< "})).pipe(n._output),n.emit("connect"),t.call(n)}t=t||l,this.client=o.connect(n._unixSocket||{host:this._address,port:this._port}),this.client._send=function(e,t){n.client.write(e,t)},this.client.write=function(t,r,o){if("string"!=typeof t&&!(t instanceof Buffer))throw new TypeError("Invalid data, chunk must be a string or buffer, not "+typeof t);return n._output&&(c||(e("Hex Dump started."),c=!0,u.pipe(n._output)),u.write(t)),e("Sending chunk:",t,"to",n._address),a.call(n),i.Duplex.prototype.write.apply(this,arguments)},n._encoding&&this.client.setEncoding(n._encoding),this._timeout&&this.client.setTimeout(this._timeout),process.nextTick((function(){n.listenerCount("data")&&n.client.on("data",f),n.client.on("end",d),n.client.on("error",p),n.client.on("timeout",h),n.client.on("close",m),n.client.on("connect",g)}))}},"./node_modules/netcat/lib/udpClient.js":function(e,t,n){"use strict";const r=n("dgram"),o=n("stream"),i=n("./node_modules/through2/through2.js"),a=n("./node_modules/netcat/lib/util.js").waitTimer;var s=o.prototype.pipe;const l=n("./node_modules/hexer/index.js");var u=l.Transform({prefix:"< "}),c=l.Transform({prefix:"> "});e.exports=function(e){var t=this;t.client=r.createSocket({type:"udp4",reuseAddr:!0}),t.client.readable=t.client.writable=!0,t.client.write=function(n,r){return"string"==typeof n&&(n=Buffer.from(n,"utf8")),t.client.send(n,0,n.length,t._port||t._bind,r||t._destination),e("Sending",n,"to",r||t._destination),t._output&&c.write(n),!0},t.client.end=function(){e("stream end event"),t.client.emit("end")},t.client._send=function(e,n){t.client.write(e,n),a.call(t)};var n=null;function o(r,o){var i=t._encoding?r.toString(t._encoding):r;e("Msg from %s:%d : %s",o.address,o.port,i),r={data:i,rinfo:o},t.client.paused?n=r:(n=null,t.client.emit("data",i),t.emit("data",r))}function l(){t.client.unref(),e("Client closed"),t._output&&(u.emit("end"),c.emit("end"),t._output.emit("end")),t.emit("close")}function f(n){e("Client error",n),t.emit("error",n)}function d(){e("Listening event"),t.emit("ready")}t.client.pause=function(){return t.client.paused=!0,this},t.client.resume=function(){if(t.client.paused=!1,n){var e=n;n=null,t.client.emit("data",e),t.emit("data",e)}return this},t.client.pipe=s,t._bind&&(e("Binding UDP to",t._bind,t._address),t.client.bind(t._bind,t._address)),t.client.pipe(i((function(n,r,o){e("Got incoming data ->",n),this.push(n),t._output&&u.write(n),o()}))).pipe(t._filter),t._output&&(e("Hex Dump started."),u.pipe(t._output),c.pipe(t._output)),process.nextTick((function(){t.client.on("listening",d),t.client.on("message",o),t.client.on("close",l),t.client.on("error",f)}))}},"./node_modules/netcat/lib/util.js":function(e,t,n){"use strict";const r=n("os"),o=n("./node_modules/debug/src/index.js"),i=n("child_process").spawn;e.exports={spawnProcess:function(e,t){var n=this,a=n.debug,s=o("netcat:exec");if(n._exec){a("Spawning",n._exec);var l=null;if(-1!==n._exec.indexOf("|")){var u="win32"===r.platform()?"cmd.exe":"sh",c="win32"===r.platform()?"/C":"-c";a("multiple commands detected, executing under shell:",u,c),l=i(u,[c,n._exec],n._execOptions)}else l=i(n._exec,n._execArgs,n._execOptions);l.on("exit",(function(e,t){a(n._exec,"exit with",e,t)})),l.stdin.resume(),e.pipe(l.stdin),l.stdout.pipe(t),l.stderr.pipe(t),l.stdout.on("data",(function(e){s("stdout:",e.toString())})),l.stderr.on("data",(function(e){s("stderr:",e.toString())}))}},waitTimer:function(e){(e=e||this)._waitTime&&(clearTimeout(e._timer),e._timer=setTimeout((function(){e.emit("waitTimeout"),e.debug("Closed by waitTimer"),e.close()}),e._waitTime))}}},"./node_modules/object-assign/index.js":function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,l=a(e),u=1;u