D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
psa
/
admin
/
htdocs
/
modules
/
ntp-timesync
/
dist
/
Filename :
main.js
back
Copy
/*! For license information please see main.js.LICENSE.txt */ define(["plesk-ui-library"],(e=>(()=>{var t={456:(e,t,r)=>{"use strict";r.d(t,{kL:()=>l,wN:()=>f});var n=r(632);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){var n,o,i,s;n=e,o=t,i=r[t],(o="symbol"==typeof(s=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o))?s:String(s))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const s=(e,t={})=>{window.Ajax&&window.Ajax.activeRequestCount++;const r=document.getElementById("forgery_protection_token");return t=i(i({credentials:"same-origin"},t),{},{headers:i({"X-Forgery-Protection-Token":r?r.content:null,"X-Requested-With":"XMLHttpRequest"},t.headers)}),fetch(e,t).then((e=>e.json().then((t=>(t.response=e,t))))).finally((()=>{window.Ajax&&window.Ajax.activeRequestCount--}))},a={get:(e,t={})=>s(((e,t)=>((t=(0,n.stringify)(t))&&(e+=(-1===e.indexOf("?")?"?":"&")+t),e))(e,t),{method:"GET"}),post:(e,t={})=>s(e,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(t)})};var c=r(276);function u(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class l extends c.Component{getChildContext(){return{api:this.props.value}}render(){return this.props.children}}function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},p.apply(this,arguments)}u(l,"propTypes",{children:c.PropTypes.node,value:c.PropTypes.object}),u(l,"childContextTypes",{api:c.PropTypes.object}),u(l,"defaultProps",{children:null,value:a});const f=e=>{const t=(t,r)=>(0,c.createElement)(e,p({api:r.api},t));return t.contextTypes={api:c.PropTypes.object},t.displayName=`withApi(${e.displayName||e.name})`,t.WrappedComponent=e,t}},422:(e,t,r)=>{"use strict";r.d(t,{G:()=>i,W:()=>a});var n=r(276);function o(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class i extends n.Component{getChildContext(){return{config:this.props.value}}render(){return this.props.children}}function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}o(i,"propTypes",{children:n.PropTypes.node,value:n.PropTypes.object.isRequired}),o(i,"childContextTypes",{config:n.PropTypes.object}),o(i,"defaultProps",{children:null});const a=e=>{const t=(t,r)=>(0,n.createElement)(e,s({config:r.config},t));return t.contextTypes={config:n.PropTypes.object},t.displayName=`withConfig(${e.displayName||e.name})`,t.WrappedComponent=e,t}},968:(e,t,r)=>{"use strict";r.d(t,{cp:()=>p,_4:()=>d});var n=r(276);function o(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class i{constructor(){o(this,"toaster",null),o(this,"setToaster",(e=>{this.toaster=e}))}add(...e){return!!this.toaster&&this.toaster.add(...e)}update(...e){return!!this.toaster&&this.toaster.update(...e)}remove(...e){this.toaster&&this.toaster.remove(...e)}clear(){this.toaster&&this.toaster.clear()}}function s(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class a extends n.Component{getChildContext(){return{statusMessages:this.props.value}}render(){return this.props.children}}s(a,"propTypes",{children:n.PropTypes.node,value:n.PropTypes.object}),s(a,"childContextTypes",{statusMessages:n.PropTypes.object}),s(a,"defaultProps",{children:null,value:new i});var c=r(581);function u(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class l extends n.PureComponent{componentDidUpdate(e){e.location.pathname!==this.props.location.pathname&&this.props.statusMessages.clear()}render(){return(0,n.createElement)(a,{value:this.props.statusMessages},this.props.children,(0,n.createElement)(n.Toaster,{ref:this.props.statusMessages.setToaster}))}}u(l,"propTypes",{children:n.PropTypes.node.isRequired,location:n.PropTypes.shape({pathname:n.PropTypes.string.isRequired}).isRequired,statusMessages:n.PropTypes.shape({clear:n.PropTypes.func.isRequired,setToaster:n.PropTypes.func.isRequired})}),u(l,"defaultProps",{statusMessages:new i});const p=(0,c.c)(l);function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f.apply(this,arguments)}const d=e=>{const t=(t,r)=>(0,n.createElement)(e,f({statusMessages:r.statusMessages},t));return t.contextTypes={statusMessages:n.PropTypes.object},t.displayName=`withStatusMessages(${e.displayName||e.name})`,t.WrappedComponent=e,t}},740:(e,t,r)=>{"use strict";r.d(t,{c:()=>dt});var n={};r.r(n),r.d(n,{hasBrowserEnv:()=>oe,hasStandardBrowserEnv:()=>ie,hasStandardBrowserWebWorkerEnv:()=>ae});var o=r(276);function i(e,t){return function(){return e.apply(t,arguments)}}const{toString:s}=Object.prototype,{getPrototypeOf:a}=Object,c=(u=Object.create(null),e=>{const t=s.call(e);return u[t]||(u[t]=t.slice(8,-1).toLowerCase())});var u;const l=e=>(e=e.toLowerCase(),t=>c(t)===e),p=e=>t=>typeof t===e,{isArray:f}=Array,d=p("undefined"),h=l("ArrayBuffer"),y=p("string"),m=p("function"),b=p("number"),g=e=>null!==e&&"object"==typeof e,v=e=>{if("object"!==c(e))return!1;const t=a(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},O=l("Date"),w=l("File"),S=l("Blob"),P=l("FileList"),j=l("URLSearchParams");function E(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),f(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let s;for(n=0;n<i;n++)s=o[n],t.call(null,e[s],s,e)}}function T(e,t){t=t.toLowerCase();const r=Object.keys(e);let n,o=r.length;for(;o-- >0;)if(n=r[o],t===n.toLowerCase())return n;return null}const R="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,x=e=>!d(e)&&e!==R,C=(A="undefined"!=typeof Uint8Array&&a(Uint8Array),e=>A&&e instanceof A);var A;const k=l("HTMLFormElement"),N=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),_=l("RegExp"),D=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};E(r,((r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)})),Object.defineProperties(e,n)},U="abcdefghijklmnopqrstuvwxyz",L="0123456789",F={DIGIT:L,ALPHA:U,ALPHA_DIGIT:U+U.toUpperCase()+L},B=l("AsyncFunction"),q={isArray:f,isArrayBuffer:h,isBuffer:function(e){return null!==e&&!d(e)&&null!==e.constructor&&!d(e.constructor)&&m(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||m(e.append)&&("formdata"===(t=c(e))||"object"===t&&m(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&h(e.buffer),t},isString:y,isNumber:b,isBoolean:e=>!0===e||!1===e,isObject:g,isPlainObject:v,isUndefined:d,isDate:O,isFile:w,isBlob:S,isRegExp:_,isFunction:m,isStream:e=>g(e)&&m(e.pipe),isURLSearchParams:j,isTypedArray:C,isFileList:P,forEach:E,merge:function e(){const{caseless:t}=x(this)&&this||{},r={},n=(n,o)=>{const i=t&&T(r,o)||o;v(r[i])&&v(n)?r[i]=e(r[i],n):v(n)?r[i]=e({},n):f(n)?r[i]=n.slice():r[i]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&E(arguments[e],n);return r},extend:(e,t,r,{allOwnKeys:n}={})=>(E(t,((t,n)=>{r&&m(t)?e[n]=i(t,r):e[n]=t}),{allOwnKeys:n}),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,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,i,s;const c={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],n&&!n(s,e,t)||c[s]||(t[s]=e[s],c[s]=!0);e=!1!==r&&a(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:c,kindOfTest:l,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(f(e))return e;let t=e.length;if(!b(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:k,hasOwnProperty:N,hasOwnProp:N,reduceDescriptors:D,freezeMethods:e=>{D(e,((t,r)=>{if(m(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];m(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach((e=>{r[e]=!0}))};return f(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:T,global:R,isContextDefined:x,ALPHABET:F,generateString:(e=16,t=F.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&m(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(g(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const o=f(e)?[]:{};return E(e,((e,t)=>{const i=r(e,n+1);!d(i)&&(o[t]=i)})),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:B,isThenable:e=>e&&(g(e)||m(e))&&m(e.then)&&m(e.catch)};function M(e,t,r,n,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),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}q.inherits(M,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:q.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const I=M.prototype,$={};["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=>{$[e]={value:e}})),Object.defineProperties(M,$),Object.defineProperty(I,"isAxiosError",{value:!0}),M.from=(e,t,r,n,o,i)=>{const s=Object.create(I);return q.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),M.call(s,e.message,t,r,n,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const H=M;function z(e){return q.isPlainObject(e)||q.isArray(e)}function W(e){return q.endsWith(e,"[]")?e.slice(0,-2):e}function V(e,t,r){return e?e.concat(t).map((function(e,t){return e=W(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const J=q.toFlatObject(q,{},null,(function(e){return/^is[A-Z]/.test(e)})),K=function(e,t,r){if(!q.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=q.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!q.isUndefined(t[e])}))).metaTokens,o=r.visitor||u,i=r.dots,s=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&q.isSpecCompliantForm(t);if(!q.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(q.isDate(e))return e.toISOString();if(!a&&q.isBlob(e))throw new H("Blob is not supported. Use a Buffer instead.");return q.isArrayBuffer(e)||q.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,o){let a=e;if(e&&!o&&"object"==typeof e)if(q.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(q.isArray(e)&&function(e){return q.isArray(e)&&!e.some(z)}(e)||(q.isFileList(e)||q.endsWith(r,"[]"))&&(a=q.toArray(e)))return r=W(r),a.forEach((function(e,n){!q.isUndefined(e)&&null!==e&&t.append(!0===s?V([r],n,i):null===s?r:r+"[]",c(e))})),!1;return!!z(e)||(t.append(V(o,r,i),c(e)),!1)}const l=[],p=Object.assign(J,{defaultVisitor:u,convertValue:c,isVisitable:z});if(!q.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!q.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),q.forEach(r,(function(r,i){!0===(!(q.isUndefined(r)||null===r)&&o.call(t,r,q.isString(i)?i.trim():i,n,p))&&e(r,n?n.concat(i):[i])})),l.pop()}}(e),t};function Y(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Q(e,t){this._pairs=[],e&&K(e,this,t)}const G=Q.prototype;G.append=function(e,t){this._pairs.push([e,t])},G.toString=function(e){const t=e?function(t){return e.call(this,t,Y)}:Y;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const X=Q;function Z(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ee(e,t,r){if(!t)return e;const n=r&&r.encode||Z,o=r&&r.serialize;let i;if(i=o?o(t,r):q.isURLSearchParams(t)?t.toString():new X(t,r).toString(n),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const te=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){q.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},re={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ne={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:X,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},oe="undefined"!=typeof window&&"undefined"!=typeof document,ie=(se="undefined"!=typeof navigator&&navigator.product,oe&&["ReactNative","NativeScript","NS"].indexOf(se)<0);var se;const ae="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ce={...n,...ne},ue=function(e){function t(e,r,n,o){let i=e[o++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),a=o>=e.length;return i=!i&&q.isArray(n)?n.length:i,a?(q.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!s):(n[i]&&q.isObject(n[i])||(n[i]=[]),t(e,r,n[i],o)&&q.isArray(n[i])&&(n[i]=function(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}(n[i])),!s)}if(q.isFormData(e)&&q.isFunction(e.entries)){const r={};return q.forEachEntry(e,((e,n)=>{t(function(e){return q.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null},le={transitional:re,adapter:["xhr","http"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=q.isObject(e);if(o&&q.isHTMLForm(e)&&(e=new FormData(e)),q.isFormData(e))return n?JSON.stringify(ue(e)):e;if(q.isArrayBuffer(e)||q.isBuffer(e)||q.isStream(e)||q.isFile(e)||q.isBlob(e))return e;if(q.isArrayBufferView(e))return e.buffer;if(q.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return K(e,new ce.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return ce.isNode&&q.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=q.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return K(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e,t,r){if(q.isString(e))try{return(0,JSON.parse)(e),q.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||le.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(e&&q.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw H.from(e,H.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:ce.classes.FormData,Blob:ce.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};q.forEach(["delete","get","head","post","put","patch"],(e=>{le.headers[e]={}}));const pe=le,fe=q.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"]),de=Symbol("internals");function he(e){return e&&String(e).trim().toLowerCase()}function ye(e){return!1===e||null==e?e:q.isArray(e)?e.map(ye):String(e)}function me(e,t,r,n,o){return q.isFunction(n)?n.call(this,t,r):(o&&(t=r),q.isString(t)?q.isString(n)?-1!==t.indexOf(n):q.isRegExp(n)?n.test(t):void 0:void 0)}class be{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=he(t);if(!o)throw new Error("header name must be a non-empty string");const i=q.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=ye(e))}const i=(e,t)=>q.forEach(e,((e,r)=>o(e,r,t)));return q.isPlainObject(e)||e instanceof this.constructor?i(e,t):q.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?i((e=>{const t={};let r,n,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||t[r]&&fe[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t):null!=e&&o(t,e,r),this}get(e,t){if(e=he(e)){const r=q.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(q.isFunction(t))return t.call(this,e,r);if(q.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=he(e)){const r=q.findKey(this,e);return!(!r||void 0===this[r]||t&&!me(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=he(e)){const o=q.findKey(r,e);!o||t&&!me(0,r[o],o,t)||(delete r[o],n=!0)}}return q.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!me(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return q.forEach(this,((n,o)=>{const i=q.findKey(r,o);if(i)return t[i]=ye(n),void delete t[o];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(o):String(o).trim();s!==o&&delete t[o],t[s]=ye(n),r[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return q.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&q.isArray(r)?r.join(", "):r)})),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 r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[de]=this[de]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=he(e);t[n]||(function(e,t){const r=q.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})}))}(r,e),t[n]=!0)}return q.isArray(e)?e.forEach(n):n(e),this}}be.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),q.reduceDescriptors(be.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),q.freezeMethods(be);const ge=be;function ve(e,t){const r=this||pe,n=t||r,o=ge.from(n.headers);let i=n.data;return q.forEach(e,(function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Oe(e){return!(!e||!e.__CANCEL__)}function we(e,t,r){H.call(this,null==e?"canceled":e,H.ERR_CANCELED,t,r),this.name="CanceledError"}q.inherits(we,H,{__CANCEL__:!0});const Se=we,Pe=ce.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const s=[e+"="+encodeURIComponent(t)];q.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),q.isString(n)&&s.push("path="+n),q.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.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 je(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 Ee=ce.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function n(r){let n=r;return e&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{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 r=n(window.location.href),function(e){const t=q.isString(e)?n(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function(){return!0};function Te(e,t){let r=0;const n=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,i=0,s=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=n[s];o||(o=c),r[i]=a,n[i]=c;let l=s,p=0;for(;l!==i;)p+=r[l++],l%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),c-o<t)return;const f=u&&c-u;return f?Math.round(1e3*p/f):void 0}}(50,250);return o=>{const i=o.loaded,s=o.lengthComputable?o.total:void 0,a=i-r,c=n(a);r=i;const u={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&i<=s?(s-i)/c:void 0,event:o};u[t?"download":"upload"]=!0,e(u)}}const Re={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){let n=e.data;const o=ge.from(e.headers).normalize();let i,s,{responseType:a,withXSRFToken:c}=e;function u(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}if(q.isFormData(n))if(ce.hasStandardBrowserEnv||ce.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if(!1!==(s=o.getContentType())){const[e,...t]=s?s.split(";").map((e=>e.trim())).filter(Boolean):[];o.setContentType([e||"multipart/form-data",...t].join("; "))}let l=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",r=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+r))}const p=je(e.baseURL,e.url);function f(){if(!l)return;const n=ge.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());!function(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new H("Request failed with status code "+r.status,[H.ERR_BAD_REQUEST,H.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}((function(e){t(e),u()}),(function(e){r(e),u()}),{data:a&&"text"!==a&&"json"!==a?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:n,config:e,request:l}),l=null}if(l.open(e.method.toUpperCase(),ee(p,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,"onloadend"in l?l.onloadend=f:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(f)},l.onabort=function(){l&&(r(new H("Request aborted",H.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new H("Network Error",H.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const n=e.transitional||re;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new H(t,n.clarifyTimeoutError?H.ETIMEDOUT:H.ECONNABORTED,e,l)),l=null},ce.hasStandardBrowserEnv&&(c&&q.isFunction(c)&&(c=c(e)),c||!1!==c&&Ee(p))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&Pe.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===n&&o.setContentType(null),"setRequestHeader"in l&&q.forEach(o.toJSON(),(function(e,t){l.setRequestHeader(t,e)})),q.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),a&&"json"!==a&&(l.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",Te(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",Te(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=t=>{l&&(r(!t||t.type?new Se(null,e,l):t),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));const d=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(p);d&&-1===ce.protocols.indexOf(d)?r(new H("Unsupported protocol "+d+":",H.ERR_BAD_REQUEST,e)):l.send(n||null)}))}};q.forEach(Re,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const xe=e=>`- ${e}`,Ce=e=>q.isFunction(e)||null===e||!1===e,Ae=e=>{e=q.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){let t;if(r=e[i],n=r,!Ce(r)&&(n=Re[(t=String(r)).toLowerCase()],void 0===n))throw new H(`Unknown adapter '${t}'`);if(n)break;o[t||"#"+i]=n}if(!n){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 r=t?e.length>1?"since :\n"+e.map(xe).join("\n"):" "+xe(e[0]):"as no adapter specified";throw new H("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return n};function ke(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Se(null,e)}function Ne(e){return ke(e),e.headers=ge.from(e.headers),e.data=ve.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ae(e.adapter||pe.adapter)(e).then((function(t){return ke(e),t.data=ve.call(e,e.transformResponse,t),t.headers=ge.from(t.headers),t}),(function(t){return Oe(t)||(ke(e),t&&t.response&&(t.response.data=ve.call(e,e.transformResponse,t.response),t.response.headers=ge.from(t.response.headers))),Promise.reject(t)}))}const _e=e=>e instanceof ge?e.toJSON():e;function De(e,t){t=t||{};const r={};function n(e,t,r){return q.isPlainObject(e)&&q.isPlainObject(t)?q.merge.call({caseless:r},e,t):q.isPlainObject(t)?q.merge({},t):q.isArray(t)?t.slice():t}function o(e,t,r){return q.isUndefined(t)?q.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function i(e,t){if(!q.isUndefined(t))return n(void 0,t)}function s(e,t){return q.isUndefined(t)?q.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(r,o,i){return i in t?n(r,o):i in e?n(void 0,r):void 0}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t)=>o(_e(e),_e(t),!0)};return q.forEach(Object.keys(Object.assign({},e,t)),(function(n){const i=c[n]||o,s=i(e[n],t[n],n);q.isUndefined(s)&&i!==a||(r[n]=s)})),r}const Ue={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Ue[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const Le={};Ue.transitional=function(e,t,r){function n(e,t){return"[Axios v1.6.7] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new H(n(o," has been removed"+(t?" in "+t:"")),H.ERR_DEPRECATED);return t&&!Le[o]&&(Le[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}};const Fe={assertOptions:function(e,t,r){if("object"!=typeof e)throw new H("options must be an object",H.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],s=t[i];if(s){const t=e[i],r=void 0===t||s(t,i,e);if(!0!==r)throw new H("option "+i+" must be "+r,H.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new H("Unknown option "+i,H.ERR_BAD_OPTION)}},validators:Ue},Be=Fe.validators;class qe{constructor(e){this.defaults=e,this.interceptors={request:new te,response:new te}}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 r=t.stack?t.stack.replace(/^.+\n/,""):"";e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=De(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&Fe.assertOptions(r,{silentJSONParsing:Be.transitional(Be.boolean),forcedJSONParsing:Be.transitional(Be.boolean),clarifyTimeoutError:Be.transitional(Be.boolean)},!1),null!=n&&(q.isFunction(n)?t.paramsSerializer={serialize:n}:Fe.assertOptions(n,{encode:Be.function,serialize:Be.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&q.merge(o.common,o[t.method]);o&&q.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=ge.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,p=0;if(!a){const e=[Ne.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,c),l=e.length,u=Promise.resolve(t);p<l;)u=u.then(e[p++],e[p++]);return u}l=s.length;let f=t;for(p=0;p<l;){const e=s[p++],t=s[p++];try{f=e(f)}catch(e){t.call(this,e);break}}try{u=Ne.call(this,f)}catch(e){return Promise.reject(e)}for(p=0,l=c.length;p<l;)u=u.then(c[p++],c[p++]);return u}getUri(e){return ee(je((e=De(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}q.forEach(["delete","get","head","options"],(function(e){qe.prototype[e]=function(t,r){return this.request(De(r||{},{method:e,url:t,data:(r||{}).data}))}})),q.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(De(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}qe.prototype[e]=t(),qe.prototype[e+"Form"]=t(!0)}));const Me=qe;class Ie{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 r=this;this.promise.then((e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const n=new Promise((e=>{r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,o){r.reason||(r.reason=new Se(e,n,o),t(r.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 Ie((function(t){e=t})),cancel:e}}}const $e=Ie,He={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(He).forEach((([e,t])=>{He[t]=e}));const ze=He,We=function e(t){const r=new Me(t),n=i(Me.prototype.request,r);return q.extend(n,Me.prototype,r,{allOwnKeys:!0}),q.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(De(t,r))},n}(pe);We.Axios=Me,We.CanceledError=Se,We.CancelToken=$e,We.isCancel=Oe,We.VERSION="1.6.7",We.toFormData=K,We.AxiosError=H,We.Cancel=We.CanceledError,We.all=function(e){return Promise.all(e)},We.spread=function(e){return function(t){return e.apply(null,t)}},We.isAxiosError=function(e){return q.isObject(e)&&!0===e.isAxiosError},We.mergeConfig=De,We.AxiosHeaders=ge,We.formToJSON=e=>ue(q.isHTMLForm(e)?new FormData(e):e),We.getAdapter=Ae,We.HttpStatusCode=ze,We.default=We;const Ve=We,Je=()=>Ve.create({baseURL:`${window.location.origin}/modules/ntp-timesync/index.php/`});var Ke=r(581),Ye=r(456),Qe=r(422),Ge=r(968);const Xe=["children","config","successUrl","successMessage","cancelUrl","history","onSubmit","cancelButton","onSuccess","api","statusMessages","staticContext"];function Ze(){return Ze=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ze.apply(this,arguments)}function et(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function tt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?et(Object(r),!0).forEach((function(t){rt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):et(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function rt(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class nt extends o.Component{constructor(...e){super(...e),rt(this,"state",{state:null,errors:{}}),rt(this,"handleCancel",(()=>{const{cancelUrl:e,history:t,cancelButton:r}=this.props;r&&"function"==typeof r.onClick&&!1===r.onClick()||e&&t.push(e)})),rt(this,"handleSubmit",(e=>{const{config:t,action:r,onSubmit:n,api:o,statusMessages:i}=this.props;"function"==typeof n&&!1===n(e)||(this.setState({state:"submit"}),o.post(`${t.baseUrl}${r}`,e).then((({status:e,errors:t,data:r})=>{const n={state:null};Array.isArray(t)?t.forEach((e=>i.add({intent:"danger",message:e}))):n.errors=t,this.setState(n,(()=>{if("success"===e){const{successUrl:e,successMessage:t,history:n,onSuccess:o}=this.props;if("function"==typeof o&&!1===o(r))return;e&&n.push(e),t&&setTimeout((()=>{i.add({intent:"success",message:t})}))}}))})))}))}prepareCancelButton(){const{cancelUrl:e,cancelButton:t}=this.props;return t?tt(tt({},t),{},{onClick:this.handleCancel}):null!==e&&{onClick:this.handleCancel}}render(){const{state:e,errors:t}=this.state,r=this.props,{children:n,config:i,successUrl:s,successMessage:a,cancelUrl:c,history:u,onSubmit:l,cancelButton:p,onSuccess:f,api:d,statusMessages:h,staticContext:y}=r,m=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(r,Xe);return(0,o.createElement)(o.Form,Ze({state:e,errors:t},m,{onSubmit:this.handleSubmit,cancelButton:this.prepareCancelButton()}),n)}}rt(nt,"propTypes",{config:o.PropTypes.shape({baseUrl:o.PropTypes.string.isRequired}).isRequired,action:o.PropTypes.string.isRequired,successUrl:o.PropTypes.string,successMessage:o.PropTypes.string,cancelUrl:o.PropTypes.string,children:o.PropTypes.node,history:o.PropTypes.shape({push:o.PropTypes.func.isRequired}).isRequired,api:o.PropTypes.shape({post:o.PropTypes.func.isRequired}).isRequired,statusMessages:o.PropTypes.shape({add:o.PropTypes.func.isRequired}).isRequired,onSubmit:o.PropTypes.func,onSuccess:o.PropTypes.func,applyButton:o.PropTypes.oneOfType([o.PropTypes.bool,o.PropTypes.object]),cancelButton:o.PropTypes.oneOfType([o.PropTypes.bool,o.PropTypes.object]),staticContext:o.PropTypes.any}),rt(nt,"defaultProps",{successUrl:null,successMessage:null,cancelUrl:null,children:null,onSubmit:null,onSuccess:null,applyButton:!1,cancelButton:!1,staticContext:null}),(0,Ge._4)((0,Ke.c)((0,Ye.wN)((0,Qe.W)(nt))));const ot=["config","action","api","statusMessages","columns","defaultPageSize","defaultSortColumn","defaultSortDirection","listProps","paginationProps"];function it(){return it=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},it.apply(this,arguments)}function st(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class at extends o.Component{constructor(...e){super(...e),st(this,"state",{pageSize:this.props.defaultPageSize,pageNumber:1,totalPages:0,sortColumn:this.props.defaultSortColumn,sortDirection:this.props.defaultSortDirection,data:[]}),st(this,"fetchItems",(()=>{const{config:e,action:t,api:r,statusMessages:n}=this.props,{pageSize:o,pageNumber:i,sortColumn:s,sortDirection:a}=this.state,c={pageSize:o,pageNumber:i};s&&(c.sortColumn=s,c.sortDirection=a),r.get(`${e.baseUrl}${t}`,c).then((({status:e,data:t,totalItems:r,errors:i})=>{"error"===e?(i.forEach((e=>n.add({intent:"danger",message:e}))),this.setState({pageNumber:1,totalPages:0})):this.setState({data:t,totalPages:Math.ceil(r/o)})}))})),st(this,"handleSelectPage",(e=>{const{paginationProps:t}=this.props,{onSelect:r}=t;"function"==typeof r&&!1===r(e)||this.setState({pageNumber:e},(()=>{this.fetchItems()}))})),st(this,"handleSortChange",(e=>{const{listProps:t}=this.props,{onSortChange:r}=t;"function"==typeof r&&!1===r(e)||this.setState(e,(()=>this.fetchItems()))})),st(this,"renderPagination",(()=>{const{paginationProps:e}=this.props,{totalPages:t,pageNumber:r}=this.state;return t<2?null:(0,o.createElement)(o.Pagination,it({},e,{total:t,current:r,onSelect:this.handleSelectPage}))}))}componentDidMount(){this.fetchItems()}render(){const e=this.props,{config:t,action:r,api:n,statusMessages:i,columns:s,defaultPageSize:a,defaultSortColumn:c,defaultSortDirection:u,listProps:l,paginationProps:p}=e,f=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,ot),{data:d,sortColumn:h,sortDirection:y}=this.state;return(0,o.createElement)("div",f,(0,o.createElement)(o.List,it({},l,{columns:s,sortColumn:h,sortDirection:y,onSortChange:this.handleSortChange,data:d})),this.renderPagination())}}function ct(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ut(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ct(Object(r),!0).forEach((function(t){var n,o,i,s;n=e,o=t,i=r[t],(o="symbol"==typeof(s=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o))?s:String(s))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ct(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}st(at,"propTypes",{config:o.PropTypes.shape({baseUrl:o.PropTypes.string.isRequired}).isRequired,api:o.PropTypes.shape({get:o.PropTypes.func.isRequired}).isRequired,statusMessages:o.PropTypes.shape({add:o.PropTypes.func.isRequired}).isRequired,action:o.PropTypes.string.isRequired,columns:o.PropTypes.arrayOf(o.PropTypes.shape({key:o.PropTypes.string.isRequired,title:o.PropTypes.node,render:o.PropTypes.func,sortable:o.PropTypes.bool})).isRequired,defaultPageSize:o.PropTypes.number,defaultSortColumn:o.PropTypes.string,defaultSortDirection:o.PropTypes.oneOf(["ASC","DESC"]),listProps:o.PropTypes.shape(),paginationProps:o.PropTypes.shape()}),st(at,"defaultProps",{listProps:{},paginationProps:{},defaultPageSize:25,defaultSortColumn:null,defaultSortDirection:"ASC"}),(0,Ge._4)((0,Ye.wN)((0,Qe.W)(at)));const lt=({status:{service:e,syncStatus:t,serverList:r},services:n,defaultServers:i,handleReady:s})=>{const[a,c]=(0,o.useState)(null),[u,l]=(0,o.useState)(null),[p,f]=(0,o.useState)({}),d=(0,o.useTranslate)(),h=(e,t)=>{f((r=>(0,o.setIn)(r,e,t)))};return(0,o.useEffect)((()=>{h("service",e?e.name:"none")}),[e]),(0,o.useEffect)((()=>{h("servers",r)}),[r]),(0,o.createElement)(o.Form,{applyButton:{children:(0,o.createElement)(o.Translate,{content:"Config.Form.Button.Apply"})},cancelButton:!1,submitButton:!1,onSubmit:e=>{l(null),f(e),c("submit"),(({values:e,cbUnlock:t,cbError:r,cbSuccess:n})=>{const{service:o,servers:i}=e;((e,t)=>Je().post("/config/process-form/",{service:e,servers:t}).then((e=>e.data)))(o,i).then(n).catch((e=>r((e=>e.response&&e.response.data?e.response.data:e.message)(e)))).finally(t)})({values:e,cbUnlock:()=>{c(null)},cbError:e=>l(e),cbSuccess:s})},values:p,state:a,errors:u instanceof Object?u:null,onFieldChange:h},u&&(u instanceof String||u.general)?(0,o.createElement)(o.StatusMessage,{intent:"danger"},u.general?Object.values(u.general).join(", "):u):null,(0,o.createElement)(o.FormFieldSelect,{name:"service",label:(0,o.createElement)(o.Translate,{content:"Config.Form.Service.Label"}),description:(0,o.createElement)(o.Translate,{content:"Config.Form.Service.Description"})},n.map((e=>(0,o.createElement)("option",{value:e.name,key:e.name},`${e.displayName} ${e.isRecommended?`(${d("Config.Form.Service.IsRecommended")})`:""}`)))),(0,o.createElement)(o.FormField,{label:(0,o.createElement)(o.Translate,{content:"Config.Form.SyncStatus.Label"})},(0,o.createElement)(o.Status,{intent:t?"success":"inactive"},t?(0,o.createElement)(o.Translate,{content:"Config.Form.SyncStatus.Success"}):(0,o.createElement)(o.Translate,{content:"Config.Form.SyncStatus.Inactive"}))),(0,o.createElement)(o.FormFieldText,{name:"servers",label:(0,o.createElement)(o.Translate,{content:"Config.Form.Servers.Label"}),locale:{addMore:(0,o.createElement)(o.Translate,{content:"Config.Form.Button.AddMore"}),remove:(0,o.createElement)(o.Translate,{content:"Config.Form.Button.Remove"})},multi:!0}),i.length?(0,o.createElement)(o.FormField,null,(0,o.createElement)(o.Button,{ghost:!0,icon:"deploy",disabled:"submit"===a,onToggle:()=>{f(ut(ut({},p),{},{servers:i}))}},(0,o.createElement)(o.Translate,{content:"Config.Form.Button.Default"}))):null)};lt.propTypes={status:o.PropTypes.object.isRequired,services:o.PropTypes.array.isRequired,defaultServers:o.PropTypes.array.isRequired,handleReady:o.PropTypes.func.isRequired};const pt=lt,ft=async({setLoading:e,setStatus:t,setServices:r,setStatusMessage:n,setDefaultServers:i})=>{try{r(await Je().get("/data/supported-services/").then((e=>e.data))),i(await Je().get("/data/default-servers/").then((e=>e.data))),t(await Je().get("/data/status/").then((e=>e.data)))}catch(e){n({intent:"danger",content:(0,o.createElement)(o.Translate,{content:"NtpTimesync.Loading.Failed",params:{error:e.response?e.response.data:e.message}})})}e(!1)},dt=()=>{const[e,t]=(0,o.useState)(null),[r,n]=(0,o.useState)(null),[i,s]=(0,o.useState)(!1),[a,c]=(0,o.useState)(null),[u,l]=(0,o.useState)([]),p=(0,o.useMemo)((()=>a&&"danger"===a.intent),[a]);return(0,o.useEffect)((()=>{i||e||p||(s(!0),ft({setLoading:s,setStatus:t,setServices:n,setStatusMessage:c,setDefaultServers:l}))}),[i,e,p]),(0,o.createElement)("div",null,null!==a&&(0,o.createElement)(o.StatusMessage,{intent:a.intent},a.content),i&&!p&&(0,o.createElement)(o.ContentLoader,{text:(0,o.createElement)(o.Translate,{content:"NtpTimesync.Loading.InProcess"})}),!i&&e&&!p&&(0,o.createElement)(pt,{status:e,services:r,defaultServers:u,handleReady:async()=>{c(null),await ft({setLoading:s,setStatus:t,setServices:n,setStatusMessage:c,setDefaultServers:l}),c({intent:"success",content:(0,o.createElement)(o.Translate,{content:"NtpTimesync.Update.SuccessMessage"})})}}))}},860:e=>{"use strict";var t={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n=Object.defineProperty,o=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols,s=Object.getOwnPropertyDescriptor,a=Object.getPrototypeOf,c=a&&a(Object);e.exports=function e(u,l,p){if("string"!=typeof l){if(c){var f=a(l);f&&f!==c&&e(u,f,p)}var d=o(l);i&&(d=d.concat(i(l)));for(var h=0;h<d.length;++h){var y=d[h];if(!(t[y]||r[y]||p&&p[y])){var m=s(l,y);try{n(u,y,m)}catch(e){}}}return u}return u}},912:e=>{"use strict";e.exports=function(e,t,r,n,o,i,s,a){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,n,o,i,s,a],l=0;(c=new Error(t.replace(/%s/g,(function(){return u[l++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},443:e=>{"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;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={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,s,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var u in i=Object(arguments[c]))r.call(i,u)&&(a[u]=i[u]);if(t){s=t(i);for(var l=0;l<s.length;l++)n.call(i,s[l])&&(a[s[l]]=i[s[l]])}}return a}},360:(e,t,r)=>{var n=r(648);e.exports=function e(t,r,o){return n(r)||(o=r||o,r=[]),o=o||{},t instanceof RegExp?function(e,t){var r=e.source.match(/\((?!\?)/g);if(r)for(var n=0;n<r.length;n++)t.push({name:n,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return l(e,t)}(t,r):n(t)?function(t,r,n){for(var o=[],i=0;i<t.length;i++)o.push(e(t[i],r,n).source);return l(new RegExp("(?:"+o.join("|")+")",p(n)),r)}(t,r,o):function(e,t,r){return f(i(e,r),t,r)}(t,r,o)},e.exports.parse=i,e.exports.compile=function(e,t){return a(i(e,t),t)},e.exports.tokensToFunction=a,e.exports.tokensToRegExp=f;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var r,n=[],i=0,s=0,a="",l=t&&t.delimiter||"/";null!=(r=o.exec(e));){var p=r[0],f=r[1],d=r.index;if(a+=e.slice(s,d),s=d+p.length,f)a+=f[1];else{var h=e[s],y=r[2],m=r[3],b=r[4],g=r[5],v=r[6],O=r[7];a&&(n.push(a),a="");var w=null!=y&&null!=h&&h!==y,S="+"===v||"*"===v,P="?"===v||"*"===v,j=r[2]||l,E=b||g;n.push({name:m||i++,prefix:y||"",delimiter:j,optional:P,repeat:S,partial:w,asterisk:!!O,pattern:E?u(E):O?".*":"[^"+c(j)+"]+?"})}}return s<e.length&&(a+=e.substr(s)),a&&n.push(a),n}function s(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function a(e,t){for(var r=new Array(e.length),o=0;o<e.length;o++)"object"==typeof e[o]&&(r[o]=new RegExp("^(?:"+e[o].pattern+")$",p(t)));return function(t,o){for(var i="",a=t||{},c=(o||{}).pretty?s:encodeURIComponent,u=0;u<e.length;u++){var l=e[u];if("string"!=typeof l){var p,f=a[l.name];if(null==f){if(l.optional){l.partial&&(i+=l.prefix);continue}throw new TypeError('Expected "'+l.name+'" to be defined')}if(n(f)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var d=0;d<f.length;d++){if(p=c(f[d]),!r[u].test(p))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received `'+JSON.stringify(p)+"`");i+=(0===d?l.prefix:l.delimiter)+p}}else{if(p=l.asterisk?encodeURI(f).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):c(f),!r[u].test(p))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but received "'+p+'"');i+=l.prefix+p}}else i+=l}return i}}function c(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function u(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function l(e,t){return e.keys=t,e}function p(e){return e&&e.sensitive?"":"i"}function f(e,t,r){n(t)||(r=t||r,t=[]);for(var o=(r=r||{}).strict,i=!1!==r.end,s="",a=0;a<e.length;a++){var u=e[a];if("string"==typeof u)s+=c(u);else{var f=c(u.prefix),d="(?:"+u.pattern+")";t.push(u),u.repeat&&(d+="(?:"+f+d+")*"),s+=d=u.optional?u.partial?f+"("+d+")?":"(?:"+f+"("+d+"))?":f+"("+d+")"}}var h=c(r.delimiter||"/"),y=s.slice(-h.length)===h;return o||(s=(y?s.slice(0,-h.length):s)+"(?:"+h+"(?=$))?"),s+=i?"$":o&&y?"":"(?="+h+"|$)",l(new RegExp("^"+s,p(r)),t)}},648:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},336:(e,t,r)=>{"use strict";var n=r(200);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,s){if(s!==n){var a=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 a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array: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:i,resetWarningCache:o};return r.PropTypes=r,r}},900:(e,t,r)=>{e.exports=r(336)()},200:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},64:(e,t,r)=>{"use strict";var n=String.prototype.replace,o=/%20/g,i=r(500),s={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=i.assign({default:s.RFC3986,formatters:{RFC1738:function(e){return n.call(e,o,"+")},RFC3986:function(e){return String(e)}}},s)},632:(e,t,r)=>{"use strict";var n=r(292),o=r(744),i=r(64);e.exports={formats:i,parse:o,stringify:n}},744:(e,t,r)=>{"use strict";var n=r(500),o=Object.prototype.hasOwnProperty,i=Array.isArray,s={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},u=function(e,t,r,n){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(i),u=a?i.slice(0,a.index):i,l=[];if(u){if(!r.plainObjects&&o.call(Object.prototype,u)&&!r.allowPrototypes)return;l.push(u)}for(var p=0;r.depth>0&&null!==(a=s.exec(i))&&p<r.depth;){if(p+=1,!r.plainObjects&&o.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;l.push(a[1])}return a&&l.push("["+i.slice(a.index)+"]"),function(e,t,r,n){for(var o=n?t:c(t,r),i=e.length-1;i>=0;--i){var s,a=e[i];if("[]"===a&&r.parseArrays)s=[].concat(o);else{s=r.plainObjects?Object.create(null):{};var u="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,l=parseInt(u,10);r.parseArrays||""!==u?!isNaN(l)&&a!==u&&String(l)===u&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(s=[])[l]=o:s[u]=o:s={0:o}}o=s}return o}(l,t,r,n)}};e.exports=function(e,t){var r=function(e){if(!e)return s;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?s.charset:e.charset;return{allowDots:void 0===e.allowDots?s.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:s.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:s.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:s.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:s.comma,decoder:"function"==typeof e.decoder?e.decoder:s.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:s.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:s.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:s.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:s.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:s.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var l="string"==typeof e?function(e,t){var r,u={},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,p=t.parameterLimit===1/0?void 0:t.parameterLimit,f=l.split(t.delimiter,p),d=-1,h=t.charset;if(t.charsetSentinel)for(r=0;r<f.length;++r)0===f[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[r]?h="utf-8":"utf8=%26%2310003%3B"===f[r]&&(h="iso-8859-1"),d=r,r=f.length);for(r=0;r<f.length;++r)if(r!==d){var y,m,b=f[r],g=b.indexOf("]="),v=-1===g?b.indexOf("="):g+1;-1===v?(y=t.decoder(b,s.decoder,h,"key"),m=t.strictNullHandling?null:""):(y=t.decoder(b.slice(0,v),s.decoder,h,"key"),m=n.maybeMap(c(b.slice(v+1),t),(function(e){return t.decoder(e,s.decoder,h,"value")}))),m&&t.interpretNumericEntities&&"iso-8859-1"===h&&(m=a(m)),b.indexOf("[]=")>-1&&(m=i(m)?[m]:m),o.call(u,y)?u[y]=n.combine(u[y],m):u[y]=m}return u}(e,r):e,p=r.plainObjects?Object.create(null):{},f=Object.keys(l),d=0;d<f.length;++d){var h=f[d],y=u(h,l[h],r,"string"==typeof e);p=n.merge(p,y,r)}return n.compact(p)}},292:(e,t,r)=>{"use strict";var n=r(500),o=r(64),i=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,a(t)?t:[t])},l=Date.prototype.toISOString,p=o.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,format:p,formatter:o.formatters[p],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},d=function e(t,r,o,i,s,c,l,p,d,h,y,m,b){var g,v=t;if("function"==typeof l?v=l(r,v):v instanceof Date?v=h(v):"comma"===o&&a(v)&&(v=n.maybeMap(v,(function(e){return e instanceof Date?h(e):e})).join(",")),null===v){if(i)return c&&!m?c(r,f.encoder,b,"key"):r;v=""}if("string"==typeof(g=v)||"number"==typeof g||"boolean"==typeof g||"symbol"==typeof g||"bigint"==typeof g||n.isBuffer(v))return c?[y(m?r:c(r,f.encoder,b,"key"))+"="+y(c(v,f.encoder,b,"value"))]:[y(r)+"="+y(String(v))];var O,w=[];if(void 0===v)return w;if(a(l))O=l;else{var S=Object.keys(v);O=p?S.sort(p):S}for(var P=0;P<O.length;++P){var j=O[P],E=v[j];if(!s||null!==E){var T=a(v)?"function"==typeof o?o(r,j):r:r+(d?"."+j:"["+j+"]");u(w,e(E,T,o,i,s,c,l,p,d,h,y,m,b))}}return w};e.exports=function(e,t){var r,n=e,c=function(e){if(!e)return f;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||f.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=o.default;if(void 0!==e.format){if(!i.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=o.formatters[r],s=f.filter;return("function"==typeof e.filter||a(e.filter))&&(s=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===e.allowDots?f.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:s,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}}(t);"function"==typeof c.filter?n=(0,c.filter)("",n):a(c.filter)&&(r=c.filter);var l,p=[];if("object"!=typeof n||null===n)return"";l=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var h=s[l];r||(r=Object.keys(n)),c.sort&&r.sort(c.sort);for(var y=0;y<r.length;++y){var m=r[y];c.skipNulls&&null===n[m]||u(p,d(n[m],m,h,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.formatter,c.encodeValuesOnly,c.charset))}var b=p.join(c.delimiter),g=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?g+="utf8=%26%2310003%3B&":g+="utf8=%E2%9C%93&"),b.length>0?g+b:""}},500:e=>{"use strict";var t=Object.prototype.hasOwnProperty,r=Array.isArray,n=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),o=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};e.exports={arrayToObject:o,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],o=0;o<t.length;++o)for(var i=t[o],s=i.obj[i.prop],a=Object.keys(s),c=0;c<a.length;++c){var u=a[c],l=s[u];"object"==typeof l&&null!==l&&-1===n.indexOf(l)&&(t.push({obj:s,prop:u}),n.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(r(n)){for(var o=[],i=0;i<n.length;++i)void 0!==n[i]&&o.push(n[i]);t.obj[t.prop]=o}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r){if(0===e.length)return e;var o=e;if("symbol"==typeof e?o=Symbol.prototype.toString.call(e):"string"!=typeof e&&(o=String(e)),"iso-8859-1"===r)return escape(o).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var i="",s=0;s<o.length;++s){var a=o.charCodeAt(s);45===a||46===a||95===a||126===a||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?i+=o.charAt(s):a<128?i+=n[a]:a<2048?i+=n[192|a>>6]+n[128|63&a]:a<55296||a>=57344?i+=n[224|a>>12]+n[128|a>>6&63]+n[128|63&a]:(s+=1,a=65536+((1023&a)<<10|1023&o.charCodeAt(s)),i+=n[240|a>>18]+n[128|a>>12&63]+n[128|a>>6&63]+n[128|63&a])}return i},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(r(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(t(e[o]));return n}return t(e)},merge:function e(n,i,s){if(!i)return n;if("object"!=typeof i){if(r(n))n.push(i);else{if(!n||"object"!=typeof n)return[n,i];(s&&(s.plainObjects||s.allowPrototypes)||!t.call(Object.prototype,i))&&(n[i]=!0)}return n}if(!n||"object"!=typeof n)return[n].concat(i);var a=n;return r(n)&&!r(i)&&(a=o(n,s)),r(n)&&r(i)?(i.forEach((function(r,o){if(t.call(n,o)){var i=n[o];i&&"object"==typeof i&&r&&"object"==typeof r?n[o]=e(i,r,s):n.push(r)}else n[o]=r})),n):Object.keys(i).reduce((function(r,n){var o=i[n];return t.call(r,n)?r[n]=e(r[n],o,s):r[n]=o,r}),a)}}},581:(e,t,r)=>{"use strict";r.d(t,{c:()=>l});var n=r(668),o=r(900),i=r.n(o),s=r(860),a=r.n(s),c=r(772),u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};const l=function(e){var t=function(t){var r=t.wrappedComponentRef,o=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(t,["wrappedComponentRef"]);return n.createElement(c.c,{children:function(t){return n.createElement(e,u({},o,t,{ref:r}))}})};return t.displayName="withRouter("+(e.displayName||e.name)+")",t.WrappedComponent=e,t.propTypes={wrappedComponentRef:i().func},a()(t,e)}},772:(e,t,r)=>{"use strict";r.d(t,{c:()=>y});var n=r(880),o=r.n(n),i=r(912),s=r.n(i),a=r(668),c=r(900),u=r.n(c),l=r(992),p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function f(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}var d=function(e){return 0===a.Children.count(e)},h=function(e){function t(){var r,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=n=f(this,e.call.apply(e,[this].concat(i))),n.state={match:n.computeMatch(n.props,n.context.router)},f(n,r)}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),t.prototype.getChildContext=function(){return{router:p({},this.context.router,{route:{location:this.props.location||this.context.router.route.location,match:this.state.match}})}},t.prototype.computeMatch=function(e,t){var r=e.computedMatch,n=e.location,o=e.path,i=e.strict,a=e.exact,c=e.sensitive;if(r)return r;s()(t,"You should not use <Route> or withRouter() outside a <Router>");var u=t.route,p=(n||u.location).pathname;return(0,l.c)(p,{path:o,strict:i,exact:a,sensitive:c},u.match)},t.prototype.componentWillMount=function(){o()(!(this.props.component&&this.props.render),"You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored"),o()(!(this.props.component&&this.props.children&&!d(this.props.children)),"You should not use <Route component> and <Route children> in the same route; <Route children> will be ignored"),o()(!(this.props.render&&this.props.children&&!d(this.props.children)),"You should not use <Route render> and <Route children> in the same route; <Route children> will be ignored")},t.prototype.componentWillReceiveProps=function(e,t){o()(!(e.location&&!this.props.location),'<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),o()(!(!e.location&&this.props.location),'<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(e,t.router)})},t.prototype.render=function(){var e=this.state.match,t=this.props,r=t.children,n=t.component,o=t.render,i=this.context.router,s=i.history,c=i.route,u=i.staticContext,l={match:e,location:this.props.location||c.location,history:s,staticContext:u};return n?e?a.createElement(n,l):null:o?e?o(l):null:"function"==typeof r?r(l):r&&!d(r)?a.Children.only(r):null},t}(a.Component);h.propTypes={computedMatch:u().object,path:u().string,exact:u().bool,strict:u().bool,sensitive:u().bool,component:u().func,render:u().func,children:u().oneOfType([u().func,u().node]),location:u().object},h.contextTypes={router:u().shape({history:u().object.isRequired,route:u().object.isRequired,staticContext:u().object})},h.childContextTypes={router:u().object.isRequired};const y=h},992:(e,t,r)=>{"use strict";r.d(t,{c:()=>a});var n=r(360),o=r.n(n),i={},s=0;const a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments[2];"string"==typeof t&&(t={path:t});var n=t,a=n.path,c=n.exact,u=void 0!==c&&c,l=n.strict,p=void 0!==l&&l,f=n.sensitive;if(null==a)return r;var d=function(e,t){var r=""+t.end+t.strict+t.sensitive,n=i[r]||(i[r]={});if(n[e])return n[e];var a=[],c={re:o()(e,a,t),keys:a};return s<1e4&&(n[e]=c,s++),c}(a,{end:u,strict:p,sensitive:void 0!==f&&f}),h=d.re,y=d.keys,m=h.exec(e);if(!m)return null;var b=m[0],g=m.slice(1),v=e===b;return u&&!v?null:{path:a,url:"/"===a&&""===b?"/":b,isExact:v,params:y.reduce((function(e,t,r){return e[t.name]=g[r],e}),{})}}},144:(e,t,r)=>{"use strict";var n=r(443),o="function"==typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,s=o?Symbol.for("react.portal"):60106,a=o?Symbol.for("react.fragment"):60107,c=o?Symbol.for("react.strict_mode"):60108,u=o?Symbol.for("react.profiler"):60114,l=o?Symbol.for("react.provider"):60109,p=o?Symbol.for("react.context"):60110,f=o?Symbol.for("react.forward_ref"):60112,d=o?Symbol.for("react.suspense"):60113,h=o?Symbol.for("react.memo"):60115,y=o?Symbol.for("react.lazy"):60116,m="function"==typeof Symbol&&Symbol.iterator;function b(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v={};function O(e,t,r){this.props=e,this.context=t,this.refs=v,this.updater=r||g}function w(){}function S(e,t,r){this.props=e,this.context=t,this.refs=v,this.updater=r||g}O.prototype.isReactComponent={},O.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(b(85));this.updater.enqueueSetState(this,e,t,"setState")},O.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},w.prototype=O.prototype;var P=S.prototype=new w;P.constructor=S,n(P,O.prototype),P.isPureReactComponent=!0;var j={current:null},E=Object.prototype.hasOwnProperty,T={key:!0,ref:!0,__self:!0,__source:!0};function R(e,t,r){var n,o={},s=null,a=null;if(null!=t)for(n in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(s=""+t.key),t)E.call(t,n)&&!T.hasOwnProperty(n)&&(o[n]=t[n]);var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){for(var u=Array(c),l=0;l<c;l++)u[l]=arguments[l+2];o.children=u}if(e&&e.defaultProps)for(n in c=e.defaultProps)void 0===o[n]&&(o[n]=c[n]);return{$$typeof:i,type:e,key:s,ref:a,props:o,_owner:j.current}}function x(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var C=/\/+/g,A=[];function k(e,t,r,n){if(A.length){var o=A.pop();return o.result=e,o.keyPrefix=t,o.func=r,o.context=n,o.count=0,o}return{result:e,keyPrefix:t,func:r,context:n,count:0}}function N(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>A.length&&A.push(e)}function _(e,t,r,n){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var a=!1;if(null===e)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case i:case s:a=!0}}if(a)return r(n,e,""===t?"."+U(e,0):t),1;if(a=0,t=""===t?".":t+":",Array.isArray(e))for(var c=0;c<e.length;c++){var u=t+U(o=e[c],c);a+=_(o,u,r,n)}else if("function"==typeof(u=null===e||"object"!=typeof e?null:"function"==typeof(u=m&&e[m]||e["@@iterator"])?u:null))for(e=u.call(e),c=0;!(o=e.next()).done;)a+=_(o=o.value,u=t+U(o,c++),r,n);else if("object"===o)throw r=""+e,Error(b(31,"[object Object]"===r?"object with keys {"+Object.keys(e).join(", ")+"}":r,""));return a}function D(e,t,r){return null==e?0:_(e,"",t,r)}function U(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function L(e,t){e.func.call(e.context,t,e.count++)}function F(e,t,r){var n=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?B(e,n,r,(function(e){return e})):null!=e&&(x(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(C,"$&/")+"/")+r)),n.push(e))}function B(e,t,r,n,o){var i="";null!=r&&(i=(""+r).replace(C,"$&/")+"/"),D(e,F,t=k(t,i,n,o)),N(t)}var q={current:null};function M(){var e=q.current;if(null===e)throw Error(b(321));return e}var I={ReactCurrentDispatcher:q,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:j,IsSomeRendererActing:{current:!1},assign:n};t.Children={map:function(e,t,r){if(null==e)return e;var n=[];return B(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;D(e,L,t=k(null,null,t,r)),N(t)},count:function(e){return D(e,(function(){return null}),null)},toArray:function(e){var t=[];return B(e,t,null,(function(e){return e})),t},only:function(e){if(!x(e))throw Error(b(143));return e}},t.Component=O,t.Fragment=a,t.Profiler=u,t.PureComponent=S,t.StrictMode=c,t.Suspense=d,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I,t.cloneElement=function(e,t,r){if(null==e)throw Error(b(267,e));var o=n({},e.props),s=e.key,a=e.ref,c=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,c=j.current),void 0!==t.key&&(s=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(l in t)E.call(t,l)&&!T.hasOwnProperty(l)&&(o[l]=void 0===t[l]&&void 0!==u?u[l]:t[l])}var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){u=Array(l);for(var p=0;p<l;p++)u[p]=arguments[p+2];o.children=u}return{$$typeof:i,type:e.type,key:s,ref:a,props:o,_owner:c}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:p,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=R,t.createFactory=function(e){var t=R.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:f,render:e}},t.isValidElement=x,t.lazy=function(e){return{$$typeof:y,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return M().useCallback(e,t)},t.useContext=function(e,t){return M().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return M().useEffect(e,t)},t.useImperativeHandle=function(e,t,r){return M().useImperativeHandle(e,t,r)},t.useLayoutEffect=function(e,t){return M().useLayoutEffect(e,t)},t.useMemo=function(e,t){return M().useMemo(e,t)},t.useReducer=function(e,t,r){return M().useReducer(e,t,r)},t.useRef=function(e){return M().useRef(e)},t.useState=function(e){return M().useState(e)},t.version="16.13.1"},668:(e,t,r)=>{"use strict";e.exports=r(144)},880:e=>{"use strict";e.exports=function(){}},276:t=>{"use strict";t.exports=e}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";n.r(o),n.d(o,{default:()=>G});var e=n(276),t=n(880),r=n.n(t),i=n(668),s=n(900),a=n.n(s);function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}function u(e){return"/"===e.charAt(0)}function l(e,t){for(var r=t,n=r+1,o=e.length;n<o;r+=1,n+=1)e[r]=e[n];e.pop()}const p=function(e,t){void 0===t&&(t="");var r,n=e&&e.split("/")||[],o=t&&t.split("/")||[],i=e&&u(e),s=t&&u(t),a=i||s;if(e&&u(e)?o=n:n.length&&(o.pop(),o=o.concat(n)),!o.length)return"/";if(o.length){var c=o[o.length-1];r="."===c||".."===c||""===c}else r=!1;for(var p=0,f=o.length;f>=0;f--){var d=o[f];"."===d?l(o,f):".."===d?(l(o,f),p++):p&&(l(o,f),p--)}if(!a)for(;p--;p)o.unshift("..");!a||""===o[0]||o[0]&&u(o[0])||o.unshift("");var h=o.join("/");return r&&"/"!==h.substr(-1)&&(h+="/"),h};function f(e,t,r,n){var o;"string"==typeof e?(o=function(e){var t=e||"/",r="",n="",o=t.indexOf("#");-1!==o&&(n=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(r=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===r?"":r,hash:"#"===n?"":n}}(e),o.state=t):(void 0===(o=c({},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 r&&(o.key=r),n?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=p(o.pathname,n.pathname)):o.pathname=n.pathname:o.pathname||(o.pathname="/"),o}var d=!("undefined"==typeof window||!window.document||!window.document.createElement);function h(e,t){t(window.confirm(e))}var y="popstate",m="hashchange";function b(){try{return window.history.state||{}}catch(e){return{}}}function g(e){void 0===e&&(e={}),d||function(e,t){if(!e)throw new Error("Invariant failed")}(!1);var t,r,n=window.history,o=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,i=!(-1===window.navigator.userAgent.indexOf("Trident")),s=e,a=s.forceRefresh,u=void 0!==a&&a,l=s.getUserConfirmation,p=void 0===l?h:l,g=s.keyLength,v=void 0===g?6:g,O=e.basename?function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}("/"===(r=e.basename).charAt(0)?r:"/"+r):"";function w(e){var t=e||{},r=t.key,n=t.state,o=window.location,i=o.pathname+o.search+o.hash;return O&&(i=function(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}(i,O)),f(i,n,r)}function S(){return Math.random().toString(36).substr(2,v)}var P,j,E=(P=null,j=[],{setPrompt:function(e){return P=e,function(){P===e&&(P=null)}},confirmTransitionTo:function(e,t,r,n){if(null!=P){var o="function"==typeof P?P(e,t):P;"string"==typeof o?"function"==typeof r?r(o,n):n(!0):n(!1!==o)}else n(!0)},appendListener:function(e){var t=!0;function r(){t&&e.apply(void 0,arguments)}return j.push(r),function(){t=!1,j=j.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];j.forEach((function(e){return e.apply(void 0,t)}))}});function T(e){c(B,e),B.length=n.length,E.notifyListeners(B.location,B.action)}function R(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||A(w(e.state))}function x(){A(w(b()))}var C=!1;function A(e){C?(C=!1,T()):E.confirmTransitionTo(e,"POP",p,(function(t){t?T({action:"POP",location:e}):function(e){var t=B.location,r=N.indexOf(t.key);-1===r&&(r=0);var n=N.indexOf(e.key);-1===n&&(n=0);var o=r-n;o&&(C=!0,D(o))}(e)}))}var k=w(b()),N=[k.key];function _(e){return O+function(e){var t=e.pathname,r=e.search,n=e.hash,o=t||"/";return r&&"?"!==r&&(o+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(o+="#"===n.charAt(0)?n:"#"+n),o}(e)}function D(e){n.go(e)}var U=0;function L(e){1===(U+=e)&&1===e?(window.addEventListener(y,R),i&&window.addEventListener(m,x)):0===U&&(window.removeEventListener(y,R),i&&window.removeEventListener(m,x))}var F=!1,B={length:n.length,action:"POP",location:k,createHref:_,push:function(e,t){var r="PUSH",i=f(e,t,S(),B.location);E.confirmTransitionTo(i,r,p,(function(e){if(e){var t=_(i),s=i.key,a=i.state;if(o)if(n.pushState({key:s,state:a},null,t),u)window.location.href=t;else{var c=N.indexOf(B.location.key),l=N.slice(0,c+1);l.push(i.key),N=l,T({action:r,location:i})}else window.location.href=t}}))},replace:function(e,t){var r="REPLACE",i=f(e,t,S(),B.location);E.confirmTransitionTo(i,r,p,(function(e){if(e){var t=_(i),s=i.key,a=i.state;if(o)if(n.replaceState({key:s,state:a},null,t),u)window.location.replace(t);else{var c=N.indexOf(B.location.key);-1!==c&&(N[c]=i.key),T({action:r,location:i})}else window.location.replace(t)}}))},go:D,goBack:function(){D(-1)},goForward:function(){D(1)},block:function(e){void 0===e&&(e=!1);var t=E.setPrompt(e);return F||(L(1),F=!0),function(){return F&&(F=!1,L(-1)),t()}},listen:function(e){var t=E.appendListener(e);return L(1),function(){L(-1),t()}}};return B}var v=n(912),O=n.n(v),w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function S(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}var P=function(e){function t(){var r,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=n=S(this,e.call.apply(e,[this].concat(i))),n.state={match:n.computeMatch(n.props.history.location.pathname)},S(n,r)}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),t.prototype.getChildContext=function(){return{router:w({},this.context.router,{history:this.props.history,route:{location:this.props.history.location,match:this.state.match}})}},t.prototype.computeMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}},t.prototype.componentWillMount=function(){var e=this,t=this.props,r=t.children,n=t.history;O()(null==r||1===i.Children.count(r),"A <Router> may have only one child element"),this.unlisten=n.listen((function(){e.setState({match:e.computeMatch(n.location.pathname)})}))},t.prototype.componentWillReceiveProps=function(e){r()(this.props.history===e.history,"You cannot change <Router history>")},t.prototype.componentWillUnmount=function(){this.unlisten()},t.prototype.render=function(){var e=this.props.children;return e?i.Children.only(e):null},t}(i.Component);P.propTypes={history:a().object.isRequired,children:a().node},P.contextTypes={router:a().object},P.childContextTypes={router:a().object.isRequired};const j=P;function E(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}var T=function(e){function t(){var r,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=n=E(this,e.call.apply(e,[this].concat(i))),n.history=g(n.props),E(n,r)}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),t.prototype.componentWillMount=function(){r()(!this.props.history,"<BrowserRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")},t.prototype.render=function(){return i.createElement(j,{history:this.history,children:this.props.children})},t}(i.Component);T.propTypes={basename:a().string,forceRefresh:a().bool,getUserConfirmation:a().func,keyLength:a().number,children:a().node};const R=T;var x=n(992),C=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,e.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),t.prototype.componentWillMount=function(){O()(this.context.router,"You should not use <Switch> outside a <Router>")},t.prototype.componentWillReceiveProps=function(e){r()(!(e.location&&!this.props.location),'<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),r()(!(!e.location&&this.props.location),'<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},t.prototype.render=function(){var e=this.context.router.route,t=this.props.children,r=this.props.location||e.location,n=void 0,o=void 0;return i.Children.forEach(t,(function(t){if(null==n&&i.isValidElement(t)){var s=t.props,a=s.path,c=s.exact,u=s.strict,l=s.sensitive,p=s.from,f=a||p;o=t,n=(0,x.c)(r.pathname,{path:f,exact:c,strict:u,sensitive:l},e.match)}})),n?i.cloneElement(o,{location:r,computedMatch:n}):null},t}(i.Component);C.contextTypes={router:a().shape({route:a().object.isRequired}).isRequired},C.propTypes={children:a().node,location:a().object};const A=C,k=n(772).c;var N=n(422),_=n(456),D=n(968),U=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function L(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}var F=function(e){function t(){var r,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=n=L(this,e.call.apply(e,[this].concat(i))),n.handleClick=function(e){if(n.props.onClick&&n.props.onClick(e),!e.defaultPrevented&&0===e.button&&!n.props.target&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)){e.preventDefault();var t=n.context.router.history,r=n.props,o=r.replace,i=r.to;o?t.replace(i):t.push(i)}},L(n,r)}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),t.prototype.render=function(){var e=this.props,t=(e.replace,e.to),r=e.innerRef,n=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(e,["replace","to","innerRef"]);O()(this.context.router,"You should not use <Link> outside a <Router>"),O()(void 0!==t,'You must specify the "to" property');var o=this.context.router.history,s="string"==typeof t?f(t,null,null,o.location):t,a=o.createHref(s);return i.createElement("a",U({},n,{onClick:this.handleClick,href:a,ref:r}))},t}(i.Component);F.propTypes={onClick:a().func,target:a().string,replace:a().bool,to:a().oneOfType([a().string,a().object]).isRequired,innerRef:a().oneOfType([a().string,a().func])},F.defaultProps={replace:!1},F.contextTypes={router:a().shape({history:a().shape({push:a().func.isRequired,replace:a().func.isRequired,createHref:a().func.isRequired}).isRequired}).isRequired};const B=F;function q(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const M=({route:e,locale:t})=>{if(!e)return null;const r=`${e.componentPath.replace(/\//g,".")}.title`;return t.lmsg(r,{},e.title||null)};class I extends e.Component{componentDidMount(){const{locale:e}=this.context;((e="")=>{e=(e||"").replace(/<\w+(\s+("[^"]*"|'[^']*'|[^>])+)?(\/)?>|<\/\w+>/gi,"");const t=document.title.split(" - "),r=document.querySelector("title");r&&(r.innerHTML=e?`${e} - ${t[t.length-1]}`:`${t[t.length-1]}`);const n=document.querySelector(".heading-area");if(n)n.innerHTML=`<h2><span>${e}</span></h2>`;else{const t=document.querySelector(".page-content-header__title");t&&(t.textContent=e)}})(M({route:this.getCurrentRoute(),locale:e}))}findRouteByPath(e){const{routes:t}=this.props;return t.filter((t=>t.path===e))[0]}getCurrentRoute(){const{path:e}=this.props;return this.findRouteByPath(e)}renderPathbar(){let t=document.getElementById("pathbar-content-area");if(t||(t=document.querySelector(".pul-breadcrumbs__list")),!t)return null;const{locale:r}=this.context;let n=this.getCurrentRoute();const o=[];for(;n.parent&&(n=this.findRouteByPath(n.parent));)o.unshift({path:n.path,title:M({route:n,locale:r})});return o.length?(0,e.createPortal)(o.map((({path:t,title:r})=>(0,e.createElement)("li",{key:t},(0,e.createElement)(B,{to:t},r)))),t):null}render(){return(0,e.createElement)(e.Fragment,null,this.renderPathbar(),this.props.children)}}q(I,"propTypes",{path:e.PropTypes.string.isRequired,routes:e.PropTypes.array.isRequired,children:e.PropTypes.node.isRequired}),q(I,"contextTypes",{locale:e.PropTypes.object});const $=I,H=["locale","routes"],z=["path","component"];function W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},W.apply(this,arguments)}function V(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const J=t=>{let{locale:r,routes:n}=t,o=V(t,H);return(0,e.createElement)(N.G,{value:{baseUrl:o.baseUrl}},(0,e.createElement)(e.LocaleProvider,{messages:r},(0,e.createElement)(_.kL,null,(0,e.createElement)(R,{basename:o.baseUrl},(0,e.createElement)(D.cp,null,(0,e.createElement)(A,null,n.map((t=>{let{path:r,component:i}=t,s=V(t,z);return(0,e.createElement)(k,W({key:r,path:r,render:()=>(0,e.createElement)($,{path:r,routes:n},(0,e.createElement)(i,o))},s))}))))))))};J.propTypes={routes:e.PropTypes.array.isRequired,locale:e.PropTypes.object.isRequired,baseUrl:e.PropTypes.string.isRequired};const K=J,Y=[{exact:!0,path:"/",parent:"",componentPath:"NtpTimesync",component:n(740).c}];function Q(){return Q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Q.apply(this,arguments)}const G=t=>{(0,e.render)((0,e.createElement)(K,Q({routes:Y},t)),document.getElementById(t.moduleId))}})(),o})()));