Viewing File: /usr/local/cpanel/whostmgr/docroot/templates/whm-marketplace/scripts.min.js

!function(g){"use strict";var ct,H=g.setTimeout,X=g.clearTimeout,w=g.XMLHttpRequest,lt=g.XDomainRequest,ut=g.ActiveXObject,F=g.EventSource,N=g.document,_t=g.Promise,J=g.fetch,G=g.Response,W=g.TextDecoder,dt=g.TextEncoder,et=g.AbortController;function ht(){this.bitsNeeded=0,this.codePoint=0}function T(){}function L(t){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=T,this.onload=T,this.onerror=T,this.onreadystatechange=T,this._contentType="",this._xhr=t,this._sendTimeout=0,this._abort=T}function pt(t){return t.replace(/[A-Z]/g,(function(r){return String.fromCharCode(r.charCodeAt(0)+32)}))}function ft(t){for(var r=Object.create(null),a=t.split("\r\n"),e=0;e<a.length;e+=1){var o=(n=a[e].split(": ")).shift(),n=n.join(": ");r[pt(o)]=n}this._map=r}function yt(){}function vt(t){this._headers=t}function gt(){}function K(){this._listeners=Object.create(null)}function wt(t){H((function(){throw t}),0)}function V(t){this.type=t,this.target=void 0}function bt(t,r){V.call(this,t),this.data=r.data,this.lastEventId=r.lastEventId}function nt(t,r){V.call(this,t),this.status=r.status,this.statusText=r.statusText,this.headers=r.headers}function Et(t,r){V.call(this,t),this.error=r.error}typeof window>"u"||void 0===N||"readyState"in N||null!=N.body||(N.readyState="loading",window.addEventListener("load",(function(t){N.readyState="complete"}),!1)),null==w&&null!=ut&&(w=function(){return new ut("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(t){function r(){}return r.prototype=t,new r}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==et&&(ct=J,J=function(t,r){var a=r.signal;return ct(t,{headers:r.headers,credentials:r.credentials,cache:r.cache}).then((function(e){var o=e.body.getReader();return a._reader=o,a._aborted&&a._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return o}}}}))},et=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}),ht.prototype.decode=function(t){function r(u,c,i){if(1===i)return 128>>c<=u&&u<<c<=2047;if(2===i)return 2048>>c<=u&&u<<c<=55295||57344>>c<=u&&u<<c<=65535;if(3===i)return 65536>>c<=u&&u<<c<=1114111;throw new Error}function a(u,c){if(6===u)return 15<c>>6?3:31<c?2:1;if(12===u)return 15<c?3:2;if(18===u)return 3;throw new Error}for(var e="",o=this.bitsNeeded,n=this.codePoint,d=0;d<t.length;d+=1){var s=t[d];0!==o&&(s<128||191<s||!r(n<<6|63&s,o-6,a(o,n)))&&(o=0,n=65533,e+=String.fromCharCode(n)),0===o?(n=0<=s&&s<=127?(o=0,s):192<=s&&s<=223?(o=6,31&s):224<=s&&s<=239?(o=12,15&s):240<=s&&s<=247?(o=18,7&s):(o=0,65533),0===o||r(n,o,a(o,n))||(o=0,n=65533)):(o-=6,n=n<<6|63&s),0===o&&(n<=65535?e+=String.fromCharCode(n):e=(e+=String.fromCharCode(55296+(n-65535-1>>10)))+String.fromCharCode(56320+(n-65535-1&1023)))}return this.bitsNeeded=o,this.codePoint=n,e},null!=W&&null!=dt&&function(){try{return"test"===(new W).decode((new dt).encode("test"),{stream:!0})}catch{}return!1}()||(W=ht),L.prototype.open=function(t,r){this._abort(!0);var a=this,e=this._xhr,o=1,n=0,d=(this._abort=function(i){0!==a._sendTimeout&&(X(a._sendTimeout),a._sendTimeout=0),1!==o&&2!==o&&3!==o||(o=4,e.onload=T,e.onerror=T,e.onabort=T,e.onprogress=T,e.onreadystatechange=T,e.abort(),0!==n&&(X(n),n=0),i||(a.readyState=4,a.onabort(null),a.onreadystatechange())),o=0},function(){if(1===o){var i=0,l="",f=void 0;if("contentType"in e)i=200,l="OK",f=e.contentType;else try{i=e.status,l=e.statusText,f=e.getResponseHeader("Content-Type")}catch{l="",f=void(i=0)}0!==i&&(o=2,a.readyState=2,a.status=i,a.statusText=l,a._contentType=f,a.onreadystatechange())}}),s=function(){if(d(),2===o||3===o){o=3;var i="";try{i=e.responseText}catch{}a.readyState=3,a.responseText=i,a.onprogress()}},u=function(i,l){if(null!=l&&null!=l.preventDefault||(l={preventDefault:T}),s(),1===o||2===o||3===o){if(o=4,0!==n&&(X(n),n=0),a.readyState=4,"load"===i)a.onload(l);else if("error"===i)a.onerror(l);else{if("abort"!==i)throw new TypeError;a.onabort(l)}a.onreadystatechange()}},c=function(){n=H((function(){c()}),500),3===e.readyState&&s()};"onload"in e&&(e.onload=function(i){u("load",i)}),"onerror"in e&&(e.onerror=function(i){u("error",i)}),"onabort"in e&&(e.onabort=function(i){u("abort",i)}),"onprogress"in e&&(e.onprogress=s),"onreadystatechange"in e&&(e.onreadystatechange=function(i){null!=e&&(4===e.readyState?"onload"in e&&"onerror"in e&&"onabort"in e||u(""===e.responseText?"error":"load",i):3===e.readyState?"onprogress"in e||s():2===e.readyState&&d())}),!("contentType"in e)&&"ontimeout"in w.prototype||(r+=(-1===r.indexOf("?")?"?":"&")+"padding=true"),e.open(t,r,!0),"readyState"in e&&(n=H((function(){c()}),0))},L.prototype.abort=function(){this._abort(!1)},L.prototype.getResponseHeader=function(t){return this._contentType},L.prototype.setRequestHeader=function(t,r){var a=this._xhr;"setRequestHeader"in a&&a.setRequestHeader(t,r)},L.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},L.prototype.send=function(){var t;if("ontimeout"in w.prototype&&("sendAsBinary"in w.prototype||"mozAnon"in w.prototype)||null==N||null==N.readyState||"complete"===N.readyState){var r=this._xhr;"withCredentials"in r&&(r.withCredentials=this.withCredentials);try{r.send(void 0)}catch(a){throw a}}else(t=this)._sendTimeout=H((function(){t._sendTimeout=0,t.send()}),4)},ft.prototype.get=function(t){return this._map[pt(t)]},null!=w&&null==w.HEADERS_RECEIVED&&(w.HEADERS_RECEIVED=2),yt.prototype.open=function(t,r,a,e,o,n,d){t.open("GET",o);var s,u=0;for(s in t.onprogress=function(){var c=t.responseText.slice(u);u+=c.length,a(c)},t.onerror=function(c){c.preventDefault(),e(new Error("NetworkError"))},t.onload=function(){e(null)},t.onabort=function(){e(null)},t.onreadystatechange=function(){var c,i,l,f;t.readyState===w.HEADERS_RECEIVED&&(c=t.status,i=t.statusText,l=t.getResponseHeader("Content-Type"),f=t.getAllResponseHeaders(),r(c,i,l,new ft(f)))},t.withCredentials=n,d)Object.prototype.hasOwnProperty.call(d,s)&&t.setRequestHeader(s,d[s]);return t.send(),t},vt.prototype.get=function(t){return this._headers.get(t)},gt.prototype.open=function(t,r,a,e,o,n,d){var s=null,u=new et,c=u.signal,i=new W;return J(o,{headers:d,credentials:n?"include":"same-origin",signal:c,cache:"no-store"}).then((function(l){return s=l.body.getReader(),r(l.status,l.statusText,l.headers.get("Content-Type"),new vt(l.headers)),new _t((function(f,M){!function U(){s.read().then((function(S){S.done?f(void 0):(S=i.decode(S.value,{stream:!0}),a(S),U())})).catch((function(S){M(S)}))}()}))})).catch((function(l){if("AbortError"!==l.name)return l})).then((function(l){e(l)})),{abort:function(){s?.cancel(),u.abort()}}},K.prototype.dispatchEvent=function(t){var r=(t.target=this)._listeners[t.type];if(null!=r)for(var a=r.length,e=0;e<a;e+=1){var o=r[e];try{"function"==typeof o.handleEvent?o.handleEvent(t):o.call(this,t)}catch(n){wt(n)}}},K.prototype.addEventListener=function(t,r){t=String(t);for(var a=this._listeners,e=a[t],o=(null==e&&(a[t]=e=[]),!1),n=0;n<e.length;n+=1)e[n]===r&&(o=!0);o||e.push(r)},K.prototype.removeEventListener=function(t,r){t=String(t);var a=this._listeners,e=a[t];if(null!=e){for(var o=[],n=0;n<e.length;n+=1)e[n]!==r&&o.push(e[n]);0===o.length?delete a[t]:a[t]=o}},bt.prototype=Object.create(V.prototype),nt.prototype=Object.create(V.prototype),Et.prototype=Object.create(V.prototype);var xt=/^text\/event\-stream(;.*)?$/i,it=function(t,r){return t=null==t?r:parseInt(t,10),st(t=t!=t?r:t)},st=function(t){return Math.min(Math.max(t,1e3),18e6)},k=function(t,r,a){try{"function"==typeof r&&r.call(t,a)}catch(e){wt(e)}};function _(t,r){function a(h,v,C,E){var p;0===m&&(200===h&&null!=C&&xt.test(C)?(m=1,f=Date.now(),l=u,n.readyState=1,p=new nt("open",{status:h,statusText:v,headers:E}),n.dispatchEvent(p),k(n,n.onopen,p)):(200!==h?v=v&&v.replace(/\s+/g," "):C?.replace(/\s+/g," "),tt(),p=new nt("error",{status:h,statusText:v,headers:E}),n.dispatchEvent(p),k(n,n.onerror,p)))}function e(h){if(1===m){for(var v=-1,C=0;C<h.length;C+=1)10!==(D=h.charCodeAt(C))&&13!==D||(v=C);var E=(-1!==v?$:"")+h.slice(0,v+1);$=(-1===v?$:"")+h.slice(v+1),""!==h&&(f=Date.now(),M+=h.length);for(var p=0;p<E.length;p+=1){var A,D=E.charCodeAt(p);if(-1===y&&10===D)y=0;else if(-1===y&&(y=0),13===D||10===D){if(0!==y&&(1===y&&(P=p+1),R=E.slice(Y,P-1),A=E.slice(P+(P<p&&32===E.charCodeAt(P)?1:0),p),"data"===R?q=q+"\n"+A:"id"===R?Z=A:"event"===R?x=A:"retry"===R?(u=it(A,u),l=u):"heartbeatTimeout"===R&&(c=it(A,c),0!==b&&(X(b),b=H((function(){z()}),c)))),0===y){if(""!==q){i=Z;var R=new bt(x=""===x?"message":x,{data:q.slice(1),lastEventId:Z});if(n.dispatchEvent(R),"open"===x?k(n,n.onopen,R):"message"===x?k(n,n.onmessage,R):"error"===x&&k(n,n.onerror,R),2===m)return}x=q=""}y=13===D?-1:0}else 0===y&&(Y=p,y=1),1===y?58===D&&(P=p+1,y=2):2===y&&(y=3)}}}function o(h){1!==m&&0!==m||(m=-1,0!==b&&(X(b),b=0),b=H((function(){z()}),l),l=st(Math.min(16*u,2*l)),n.readyState=0,h=new Et("error",{error:h}),n.dispatchEvent(h),k(n,n.onerror,h))}var n,d,s,u,c,i,l,f,M,U,S,Tt,O,b,m,q,Z,x,$,y,Y,P,tt,z;K.call(this),r=r||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,n=this,d=t,t=r,d=String(d),r=!!t.withCredentials,s=t.lastEventIdQueryParameterName||"lastEventId",u=st(1e3),c=it(t.heartbeatTimeout,45e3),i="",l=u,f=!1,M=0,U=t.headers||{},t=t.Transport,S=Ot&&null==t?void 0:new L(new(t??(null!=w&&"withCredentials"in w.prototype||null==lt?w:lt))),Tt=new(null!=t&&"string"!=typeof t?t:null==S?gt:yt),O=void 0,m=-1,$=x=Z=q="",y=0,P=Y=b=0,tt=function(){m=2,null!=O&&(O.abort(),O=void 0),0!==b&&(X(b),b=0),n.readyState=2},z=function(){if(b=0,-1!==m)f||null==O?(h=Math.max((f||Date.now())+c-Date.now(),1),f=!1,b=H((function(){z()}),h)):(o(new Error("No activity within "+c+" milliseconds. "+(0===m?"No response received.":M+" chars received.")+" Reconnecting.")),null!=O&&(O.abort(),O=void 0));else{f=!1,M=0,b=H((function(){z()}),c),m=0,Z=i,$=x=q="",P=Y=0,y=0;var h=d,v=("data:"!==d.slice(0,5)&&"blob:"!==d.slice(0,5)&&""!==i&&(h=-1===(v=d.indexOf("?"))?d:d.slice(0,v+1)+d.slice(v+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,(function(A,D){return D===s?"":A})),h+=(-1===d.indexOf("?")?"?":"&")+s+"="+encodeURIComponent(i)),n.withCredentials),C={Accept:"text/event-stream"},E=n.headers;if(null!=E)for(var p in E)Object.prototype.hasOwnProperty.call(E,p)&&(C[p]=E[p]);try{O=Tt.open(S,a,e,o,h,v,C)}catch(A){throw tt(),A}}},n.url=d,n.readyState=0,n.withCredentials=r,n.headers=U,n._close=tt,z()}var Ot=null!=J&&null!=G&&"body"in G.prototype;(_.prototype=Object.create(K.prototype)).CONNECTING=0,_.prototype.OPEN=1,_.prototype.CLOSED=2,_.prototype.close=function(){this._close()},_.CONNECTING=0,_.OPEN=1,_.CLOSED=2,_.prototype.withCredentials=void 0;var Ct=F;null==w||null!=F&&"withCredentials"in F.prototype||(Ct=_),G=function(t){t.EventSourcePolyfill=_,t.NativeEventSource=F,t.EventSource=Ct},"object"==typeof module&&"object"==typeof module.exports?G(exports):"function"==typeof define&&define.amd?define(["exports"],G):G(g)}(typeof globalThis>"u"?typeof window<"u"?window:typeof self<"u"?self:this:globalThis);
Back to Directory File Manager