Wix Velo jobs scheduler
Online generator and validator for Velo jobs.config scheduling file. Build and validate Wix Velo job scheduler, cron expression generator
diff --git a/index.html b/index.html index 1e4d4c6..aba0cb3 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -
')?(.)\k/,((e,t,n)=>{return`"${n}"(${r=n,`\\u{${r.codePointAt(0).toString(16)}}`})`;var r})))(r)):r+=" while parsing empty string";const a=new Tt(r);throw a.fileName=n,o&&(a.codeFrame=Dt(e,o),a.rawCodeFrame=Dt(e,o,!1)),a}const jt=e=>{try{return[null,Pt(((e,{whitespace:t=!0,trailingCommas:n=!1}={})=>{if("string"!==typeof e)throw new TypeError(`Expected argument \`jsonString\` to be a \`string\`, got \`${typeof e}\``);const r=t?Nt:Ct;let o=!1,a=!1,i=0,s="",l="",c=-1;for(let t=0;td("p",{children:`Incorrect type of property "${t}" at "jobs[${e}]". Expected "${n}"`}),At=[x,w,N],Lt=[...At,C],Ht=[S,M],Ut=[...Ht,E],Rt=[...Ut,k],Wt=e=>"object"===typeof e&&!Array.isArray(e)&&null!==e,Xt=e=>[!0,e],Ft=(e,t)=>{for(const n in e)if(!t.includes(n))return[!0,n];return[!1]},Vt=(e,t)=>{for(const n of t)if(!(n in e))return[!0,n];return[!1]},$t=e=>{const t='", "';if(!Wt(e))return Xt(d(r.b,{children:[d("p",{children:'Incorrect type. Expected "object"'}),d("p",{children:"The jobs.config file must contains a JSON object"})]}));if(!(O in e))return Xt(d(r.b,{children:[d("p",{children:'Missing property "jobs"'}),d("p",{children:'The jobs object must contains one top-level key named "jobs"'})]}));const n=Object.keys(e);if(n.length>1){const e=n.filter((e=>e!==O)).join(t);return Xt(d(r.b,{children:[d("p",{children:`Unknown property "${e}"`}),d("p",{children:'The jobs object must contains one top-level key named "jobs"'})]}))}if(!Array.isArray(e.jobs))return Xt(d(r.b,{children:[d("p",{children:'Incorrect type. Expected "array"'}),d("p",{children:'The top-level key "jobs" must be an array'})]}));const{jobs:o}=e;let a=o.length;if(a>20)return Xt(d(r.b,{children:[d("p",{children:`Too many scheduled jobs. (${a})`}),d("p",{children:"You can configure up to 20 jobs"})]}));if(a<1)return Xt(d("p",{children:"No scheduled jobs"}));if(!o.every(Wt))return Xt(d(r.b,{children:[d("p",{children:'Incorrect type. Expected "object"'}),d("p",{children:'The "jobs" array must contain only objects, each of which represents a scheduled job'})]}));for(;0 t===e)))return Xt(d(r.b,{children:[d("p",{children:`Incorrect value of "dayOfWeek" at "jobs[${a}].executionConfig"`}),d("p",{children:`Error: unknown value "${e}". Allowed one of "${B.join(t)}"`})]}))}if(M in h){const{dateInMonth:e}=h;if(!Number.isInteger(e))return Xt(d(It,{index:a,name:M,expected:"number"}));if(e<1||e>31)return Xt(d(r.b,{children:[d("p",{children:`Invalid "dateInMonth" at "jobs[${a}].executionConfig"`}),d("p",{children:'The value of the "dateInMonth" property must be a number between 1 and 31'})]}))}if(k in h&&Ut.some((e=>e in h)))return Xt(d(r.b,{children:[d("p",{children:`Mutual exclusion property at "jobs[${a}].executionConfig"`}),d("p",{children:`Error: "cronExpression" omit all of "${Ut.join(t)}" properties`}),d("p",{children:d("em",{children:'When using a cron expression to specify when a job runs, the "executionConfig" object contains a single property, named "cronExpression", whose value is a valid cron expression'})})]}));if(Ht.every((e=>e in h)))return Xt(d(r.b,{children:[d("p",{children:`Mutual exclusion property at "jobs[${a}].executionConfig"`}),d("p",{children:'Error: "dateInMonth" omit the "dayOfWeek" property'})]}))}return[!1]};var Bt=n(8),zt=n.n(Bt);zt().setAppElement("#app");const Zt=zt(),qt=({close:e,label:t,children:n})=>d(Zt,{isOpen:!0,onRequestClose:e,contentLabel:t,overlayClassName:"U",className:"X",bodyOpenClassName:"V",htmlOpenClassName:"W",children:n}),Jt=({onInput:e,value:t})=>d("textarea",{onInput:e,className:"M",value:t,placeholder:"{}",spellcheck:!1,"data-gramm":"false"}),Yt=({className:e,onLoad:t})=>d("label",{className:P(["D",e]),"aria-label":"Upload your file","data-rh":"Upload your file","data-rh-at":"left",children:[d("input",{type:"file",className:"E",onChange:e=>{return(n=e.currentTarget.files,new Promise(((e,t)=>{if(n?.length){const r=new FileReader;r.onload=()=>{I(r.result)?e(r.result):t()},r.onerror=t,r.readAsText(n[0])}else t()}))).then(t);var n}}),d(ht,{})]}),Gt=()=>d("svg",{width:"24",height:"24",fill:"currentcolor",children:d("path",{d:"M10.94 12 6 7.06A.75.75 0 1 1 7.06 6L12 10.94 16.94 6A.75.75 0 0 1 18 7.06L13.06 12 18 16.94A.75.75 0 0 1 16.94 18L12 13.06 7.06 18A.75.75 0 0 1 6 16.94L10.94 12Z"})}),Kt=()=>d("svg",{width:"24",height:"24",fill:"currentcolor",children:d("path",{d:"M9.5 14.44 16.94 7A.75.75 0 0 1 18 8.06l-8.5 8.5-3.5-3.5A.75.75 0 0 1 7.06 12l2.44 2.44Z"})}),Qt=()=>{location.hash=y},en=()=>{const e=(0,o.k)(""),t=ae(),n=e=>{if(""===e.trim())return Qt();const[n,r]=jt(e);if(!n){const[e]=$t(r);if(!e)return t("items/replace",Q(r)),Qt()}t("validator/input",e),location.hash=b};return d(qt,{label:"Upload form",close:Qt,children:d("form",{onSubmit:t=>{j(t),n(e.current)},className:"P",children:[d(Oe,{onClick:Qt,className:"Q","aria-label":"close modal",children:d(Gt,{})}),d("h2",{children:"Upload your config"}),d("div",{className:"S",children:[d(Yt,{className:"T",onLoad:n}),d(Jt,{onInput:t=>{e.current=t.currentTarget.value}})]}),d("div",{className:"R",children:[d(be,{type:"submit",children:[d(Kt,{}),"Upload Config"]}),d(be,{onClick:Qt,children:[d(Gt,{}),"Cancel"]})]})]})})},tn=()=>{const{path:e}=re("path"),t=e===g&&d(en,{});return d("div",{className:"L",children:[d(ft,{}),d(Ot,{}),t]})},nn=({children:e,error:t=!1})=>d("div",{className:"pa",children:d("pre",{className:t?"ra qa":"sa qa",children:e})}),rn=()=>d("svg",{width:"18",height:"18",fill:"currentcolor",children:d("path",{d:"M12.204 4.299 14.5 6.637a1 1 0 0 1-.005 1.407L7.707 14.84H4v-3.705l6.78-6.84a1 1 0 0 1 1.424.004Zm-.418 5.043-2.31-2.31L5 11.546v2.295h2.293l4.493-4.5Zm.707-.708 1.295-1.296L11.49 5l-1.31 1.322 2.313 2.312Z"})}),on=({config:e})=>{const t=ae();return d(be,{onClick:()=>{t("items/replace",Q(e)),location.hash=y},children:[d(rn,{}),"Edit Config"]})},an=({value:e})=>{if(""===e.trim())return d(nn,{children:"No input"});if(e.length>1e4)return d(nn,{error:!0,children:"The file size is too large for the jobs.config."});const[t,n]=jt(e);if(null!==t)return d(nn,{error:!0,children:t});const[r,o]=$t(n);return d(nn,r?{error:!0,children:o}:{children:[d("p",{children:"Valid jobs.config"}),d(on,{config:n})]})},sn=()=>d("svg",{width:"24",height:"24",fill:"currentcolor",children:d("path",{d:"M9.854 14.854a.5.5 0 0 1-.708-.708l5-5a.5.5 0 0 1 .708.708l-5 5Zm2.337-4.948a.5.5 0 0 1-.983.18c-.195-1.058.144-2.145.938-2.94l2-2c1.346-1.345 3.39-1.318 4.708 0a3.34 3.34 0 0 1 0 4.708l-2 2c-.793.792-1.878 1.132-2.935.94a.5.5 0 0 1 .179-.985c.734.134 1.488-.102 2.048-.663l2-2a2.34 2.34 0 0 0 0-3.292c-.931-.932-2.342-.95-3.292 0l-2 2c-.562.561-.798 1.317-.663 2.052Zm-.405 4.182a.5.5 0 0 1 .984-.181c.194 1.058-.145 2.146-.939 2.94l-2 2c-1.345 1.345-3.389 1.318-4.707 0a3.34 3.34 0 0 1 0-4.707l2-2c.793-.793 1.878-1.132 2.935-.94a.5.5 0 0 1-.18.984c-.733-.133-1.487.102-2.048.663l-2 2a2.34 2.34 0 0 0 0 3.293c.932.932 2.343.95 3.293 0l2-2c.562-.562.797-1.317.662-2.052Z"})}),ln=({className:e})=>{const t=oe(),[n,r]=(0,o.l)(!1),a=n?"Copied!":"Copy link to validation results";return d(Oe,{onClick:async()=>{const{validatorValue:e}=t.get(),n=(e=>{const t=new URL(location.href);try{return t.searchParams.set("v",btoa(e)),t.href}catch{}})(e);n&&(history.pushState(null,"",n),await navigator.clipboard.writeText(n),r(!0),setTimeout(r,2e3,!1))},className:e,"aria-label":a,"data-rh":a,"data-rh-at":"left",children:d(sn,{})})},cn=()=>{const{validatorValue:e,dispatch:t}=re("validatorValue");return d("section",{className:"x",children:d("div",{className:"z",children:[d("h2",{className:"y",children:"Jobs Config Validator"}),d("form",{action:"#",onSubmit:j,className:"A",children:[d(Jt,{onInput:e=>t("validator/input",e.currentTarget.value),value:e}),d("aside",{className:"B",children:[d(ln,{className:"C"}),d(Yt,{className:"C",onLoad:e=>t("validator/input",e)})]})]}),d(an,{value:e})]})})};function un(e,t){window.dataLayer.push(arguments)}window.dataLayer??=[],(0,r.j)(d(i.Provider,{value:ne,children:d((()=>{const e=(()=>{const{path:e}=re("path");return e===b?cn:tn})();return d(r.b,{children:[d(pe,{}),d(e,{}),d(ke,{})]})}),{})}),document.getElementById("root")),un("js",new Date),un("config","G-2W35Q7B86C")},(e,t,n)=>{t.a=(e,t,n={})=>{const o=(n.highlightCode||n.forceColor)&&(0,r.shouldHighlight)(n),a=c(n.forceColor),i=(e=>({gutter:e.gray,marker:s(e.red,e.bold),message:s(e.red,e.bold)}))(a),l=(e,t)=>o?e(t):t,d=e.split(u),{start:h,end:p,markerLines:f}=((e,t,n)=>{const r=Object.assign({column:0,line:-1},e.start),o=Object.assign({},r,e.end),{linesAbove:a=2,linesBelow:i=3}=n||{},s=r.line,l=r.column,c=o.line,u=o.column;let d=Math.max(s-(a+1),0),h=Math.min(t.length,c+i);-1===s&&(d=0),-1===c&&(h=t.length);const p=c-s,f={};if(p)for(let e=0;e<=p;e++){const n=e+s;f[n]=!l||(0===e?[l,t[n-1].length-l+1]:e===p?[0,u]:[0,t[n-e].length])}else f[s]=l===u?!l||[l,0]:[l,u-l];return{start:d,end:h,markerLines:f}})(t,d,n),_=t.start&&"number"===typeof t.start.column,m=(p+"").length;let v=(o?(0,r.default)(e,n):e).split(u,p).slice(h,p).map(((e,t)=>{const r=h+1+t,o=` ${(" "+r).slice(-m)} |`,a=f[r],s=!f[r+1];if(a){let t="";if(Array.isArray(a)){const r=e.slice(0,Math.max(a[0]-1,0)).replace(/[^\t]/g," "),c=a[1]||1;t="\n "+l(i.gutter,o.replace(/\d/g," "))+" "+r+l(i.marker,"^").repeat(c),s&&n.message&&(t+=" "+l(i.message,n.message))}return""+l(i.marker,">")+l(i.gutter,o)+(e.length>0?" "+e:"")+t}return` ${l(i.gutter,o)}${e.length>0?" "+e:""}`})).join("\n");return n.message&&!_&&(v=`${" ".repeat(m+1)}${n.message}\n${v}`),o?a.reset(v):v};var r=n(16),o=((e,t)=>{if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=a(!0);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.hasOwn(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r})(n(3));function a(e){var t=new WeakMap,n=new WeakMap;return(a=e=>e?n:t)(e)}const i=o.default,s=(e,t)=>n=>e(t(n));let l;function c(e){return e?(null!=l||(l=(0,o.createColors)(!0)),l):i}const u=/\r\n|[\n\r\u2028\u2029]/},e=>{e.exports={shouldHighlight(){}}},(e,t,n)=>{t.__esModule=!0,t.bodyOpenClassName=t.portalClassName=void 0;var r=Object.assign,o=(()=>{function e(e,t){for(var n=0;n (n&&e(t.prototype,n),r&&e(t,r),t)})(),a=n(1),i=h(a),s=h(n(1)),l=(h(n(3)),h(n(9))),c=(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwn(e,n)&&(t[n]=e[n]);return t.default=e,t})(n(12)),u=n(4),d=(h(u),n(23));function h(e){return e&&e.__esModule?e:{default:e}}function p(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=t.portalClassName="ReactModalPortal",_=t.bodyOpenClassName="ReactModal__Body--open",m=u.canUseDOM&&void 0!==s.default.createPortal,v=e=>document.createElement(e),y=()=>m?s.default.createPortal:s.default.unstable_renderSubtreeIntoContainer;function g(e){return e()}var b=function(e){function t(){var e,n,o;((e,t)=>{if(!(this instanceof t))throw new TypeError("Cannot call a class as a function")})(0,t);for(var a=arguments.length,c=Array(a),u=0;u{!m&&s.default.unmountComponentAtNode(o.node);var e=g(o.props.parentSelector);e&&e.contains(o.node)&&e.removeChild(o.node)},o.portalRef=e=>{o.portal=e},o.renderPortal=e=>{var n=y()(o,i.default.createElement(l.default,r({defaultStyles:t.defaultStyles},e)),o.node);o.portalRef(n)},p(o,n)}return((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(e,t)})(t,e),o(t,[{key:"componentDidMount",value:function(){u.canUseDOM&&(m||(this.node=v("div")),this.node.className=this.props.portalClassName,g(this.props.parentSelector).appendChild(this.node),!m&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:g(e.parentSelector),nextParent:g(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(u.canUseDOM){var r=this.props,o=r.isOpen,a=r.portalClassName;e.portalClassName!==a&&(this.node.className=a);var i=n.prevParent,s=n.nextParent;s!==i&&(i.removeChild(this.node),s.appendChild(this.node)),(e.isOpen||o)&&!m&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(u.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return u.canUseDOM&&m?(!this.node&&m&&(this.node=v("div")),y()(i.default.createElement(l.default,r({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:e=>{c.setElement(e)}}]),t}(a.Component);b.defaultProps={isOpen:!1,portalClassName:f,bodyOpenClassName:_,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:()=>document.body,overlayElement:(e,t)=>i.default.createElement("div",e,t),contentElement:(e,t)=>i.default.createElement("div",e,t)},b.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,d.polyfill)(b),t.default=b},(e,t,n)=>{t.__esModule=!0,t.resetState=()=>{a=[]},t.log=()=>{},t.handleBlur=l,t.handleFocus=c,t.markForFocusLater=()=>{a.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];try{return void(0!==a.length&&a.pop().focus({preventScroll:e}))}catch(e){}},t.popWithoutFocus=()=>{a.length>0&&a.pop()},t.setupScopedFocus=e=>{i=e,window.addEventListener?(window.addEventListener("blur",l,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",l),document.attachEvent("onFocus",c))},t.teardownScopedFocus=()=>{i=null,window.addEventListener?(window.removeEventListener("blur",l),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",l),document.detachEvent("onFocus",c))};var r,o=(r=n(2))&&r.__esModule?r:{default:r},a=[],i=null,s=!1;function l(){s=!0}function c(){if(s){if(s=!1,!i)return;setTimeout((()=>{i.contains(document.activeElement)||((0,o.default)(i)[0]||i).focus()}),0)}}},e=>{e.exports=e=>e},e=>{e.exports={canUseDOM:!0}},(e,t)=>{t.__esModule=!0,t.resetState=()=>{var e=document.getElementsByTagName("html")[0];for(var t in n)o(e,n[t]);var a=document.body;for(var i in r)o(a,r[i]);n={},r={}},t.log=()=>{};var n={},r={};function o(e,t){e.classList.remove(t)}t.add=(e,t)=>{return o=e.classList,a="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach((e=>{((e,t)=>{e[t]||(e[t]=0),e[t]+=1})(a,e),o.add(e)}));var o,a},t.remove=(e,t)=>{return o=e.classList,a="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach((e=>{((e,t)=>{e[t]&&(e[t]-=1)})(a,e),0===a[e]&&o.remove(e)}));var o,a}},(e,t,n)=>{t.__esModule=!0,t.resetState=()=>{for(var e=[a,i],t=0;t {for(var e=[a,i],t=0;t {a||i||((a=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),a.style.position="absolute",a.style.opacity="0",a.setAttribute("tabindex","0"),a.addEventListener("focus",l),(i=a.cloneNode()).addEventListener("focus",l)),(s=t).length>0?(document.body.firstChild!==a&&document.body.insertBefore(a,document.body.firstChild),document.body.lastChild!==i&&document.body.appendChild(i)):(a.parentElement&&a.parentElement.removeChild(a),i.parentElement&&i.parentElement.removeChild(i))}))},e=>{e.exports={polyfill(){}}}],t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.m=e,(()=>{var e=[];n.O=(t,r,o,a)=>{if(!r){var i=1/0;for(u=0;u =a)&&Object.keys(n.O).every((e=>n.O[e](r[l])))?r.splice(l--,1):(s=!1,a0&&e[u-1][2]>a;u--)e[u]=e[u-1];e[u]=[r,o,a]}})(),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 e={0:0,1:0};n.O.j=t=>0===e[t]})();var r=n.O(void 0,[1],(()=>n(14)));r=n.O(r); \ No newline at end of file +var e=[(e,t,n)=>{n.d(t,{a:()=>C,b:()=>w,c:()=>B,d:()=>z,e:()=>b,f:()=>x,g:()=>$,h:()=>b,i:()=>o,j:()=>V,k:()=>P});var r,o,a,i,s,l,c,u,d,h,p,f={},_=[],m=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,v=Array.isArray;function y(e,t){for(var n in t)e[n]=t[n];return e}function g(e){var t=e.parentNode;t&&t.removeChild(e)}function b(e,t,n){var o,a,i,s={};for(i in t)"key"==i?o=t[i]:"ref"==i?a=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===s[i]&&(s[i]=e.defaultProps[i]);return O(e,s,o,a,null)}function O(e,t,n,r,i){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i??++a,__i:-1,__u:0};return null==i&&null!=o.vnode&&o.vnode(s),s}function x(){return{current:null}}function w(e){return e.children}function C(e,t){this.props=e,this.context=t}function N(e,t){if(null==t)return e.__?N(e.__,e.__i+1):null;for(var n;t t&&i.sort(c));S.__r=0}function M(e,t,n,r,o,a,i,s,l,c,u){var d,h,p,m,v,y=r&&r.__k||_,g=t.length;for(n.__d=l,T(n,t,y),l=n.__d,d=0;d 0?O(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,s=j(o,n,i,u),o.__i=s,a=null,-1!==s&&(u--,(a=n[s])&&(a.__u|=131072)),null==a||null===a.__v?(-1==s&&d--,"function"!=typeof o.type&&(o.__u|=65536)):s!==i&&(s===i+1?d++:s>i?u>l-i?d+=s-i:d--:s{P(e,t)})):t.push(e)),t}function j(e,t,n,r){var o=e.key,a=e.type,i=n-1,s=n+1,l=t[n];if(null===l||l&&o==l.key&&a===l.type&&0==(131072&l.__u))return n;if(r>(null!=l&&0==(131072&l.__u)?1:0))for(;i>=0||s =0){if((l=t[i])&&0==(131072&l.__u)&&o==l.key&&a===l.type)return i;i--}if(s {e&&(e.__=t)})),N=0;N {h.componentDidUpdate(f,_,m)}))}if(h.context=x,h.props=b,h.__P=e,h.__e=!1,k=o.__r,E=0,"prototype"in D&&D.prototype.render){for(h.state=h.__s,h.__d=!1,k&&k(t),d=h.render(h.props,h.state,h.context),S=0;S {try{e=t.__h,t.__h=[],e.some((e=>{e.call(t)}))}catch(e){o.__e(e,t.__v)}}))}function H(e,t,n,o,a,i,s,l,c){var u,d,h,p,_,m,y,b=n.props,O=t.props,x=t.type;if("svg"===x&&(a=!0),null!=i)for(u=0;u 2&&(l.children=arguments.length>3?r.call(arguments,2):n),O(e.type,l,o||e.key,a||e.ref,null)}function z(e,t){var n={__c:t="__cC"+p++,__:e,Consumer:(e,t)=>e.children(t),Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=()=>r,this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((e=>{e.__e=!0,E(e)}))},this.sub=e=>{n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=()=>{n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}r=_.slice,o={__e:(e,t,n,r)=>{for(var o,a,i;t=t.__;)if((o=t.__c)&&!o.__)try{if((a=o.constructor)&&null!=a.getDerivedStateFromError&&(o.setState(a.getDerivedStateFromError(e)),i=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),i=o.__d),i)return o.__E=o}catch(t){e=t}throw e}},a=0,C.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=y({},this.state),"function"==typeof e&&(e=e(y({},n),this.props)),e&&y(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),E(this))},C.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),E(this))},C.prototype.render=w,i=[],l=Promise.prototype.then.bind(Promise.resolve()),c=(e,t)=>e.__v.__b-t.__v.__b,S.__r=0,u=0,d=L(!1),h=L(!0),p=0},(e,t,n)=>{n.r(t),n.d(t,{Children:()=>p,Component:()=>r.a,Fragment:()=>r.b,PureComponent:()=>s,StrictMode:()=>Q,Suspense:()=>y,SuspenseList:()=>O,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>F,cloneElement:()=>q,createContext:()=>r.d,createElement:()=>r.e,createFactory:()=>$,createPortal:()=>N,createRef:()=>r.f,default:()=>se,findDOMNode:()=>Y,flushSync:()=>K,forwardRef:()=>d,hydrate:()=>P,isElement:()=>oe,isFragment:()=>z,isMemo:()=>Z,isValidElement:()=>B,lazy:()=>b,memo:()=>l,render:()=>D,startTransition:()=>ee,unmountComponentAtNode:()=>J,unstable_batchedUpdates:()=>G,useCallback:()=>o.a,useContext:()=>o.b,useDebugValue:()=>o.c,useDeferredValue:()=>te,useEffect:()=>o.d,useErrorBoundary:()=>o.e,useId:()=>o.f,useImperativeHandle:()=>o.g,useInsertionEffect:()=>re,useLayoutEffect:()=>o.h,useMemo:()=>o.i,useReducer:()=>o.j,useRef:()=>o.k,useState:()=>o.l,useSyncExternalStore:()=>ae,useTransition:()=>ne,version:()=>V});var r=n(0),o=n(5);function a(e,t){for(var n in t)e[n]=t[n];return e}function i(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function s(e,t){this.props=e,this.context=t}function l(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:i(this.props,e)}function o(t){return this.shouldComponentUpdate=n,(0,r.e)(e,t)}return o.displayName="Memo("+(e.displayName||e.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o}(s.prototype=new r.a).isPureReactComponent=!0,s.prototype.shouldComponentUpdate=function(e,t){return i(this.props,e)||i(this.state,t)};var c=r.i.__b;r.i.__b=e=>{e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),c&&c(e)};var u=Symbol.for("react.forward_ref")||3911;function d(e){function t(t){var n=a({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=u,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var h=(e,t)=>null==e?null:(0,r.k)((0,r.k)(e).map(t)),p={map:h,forEach:h,count:e=>e?(0,r.k)(e).length:0,only:e=>{var t=(0,r.k)(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:r.k},f=r.i.__e;r.i.__e=(e,t,n,r)=>{if(e.then)for(var o,a=t;a=a.__;)if((o=a.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);f(e,t,n,r)};var _=r.i.unmount;function m(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((e=>{"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=a({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((e=>m(e,t,n)))),e}function v(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((e=>v(e,t,n))),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function y(){this.__u=0,this.t=null,this.__b=null}function g(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function b(e){var t,n,o;function a(a){if(t||(t=e()).then((e=>{n=e.default||e}),(e=>{o=e})),o)throw o;if(!n)throw t;return(0,r.e)(n,a)}return a.displayName="Lazy",a.__f=!0,a}function O(){this.u=null,this.o=null}r.i.unmount=e=>{var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),_&&_(e)},(y.prototype=new r.a).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=g(r.__v),a=!1,i=()=>{a||(a=!0,n.__R=null,o?o(s):s())};n.__R=i;var s=()=>{if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=v(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(i,i)},y.prototype.componentWillUnmount=function(){this.t=[]},y.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=m(this.__b,n,o.__O=o.__P)}this.__b=null}var a=t.__a&&(0,r.e)(r.b,null,e.fallback);return a&&(a.__u&=-33),[(0,r.e)(r.b,null,t.__a?null:e.children),a]};var x=(e,t,n)=>{if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1] e.context,e.children}function C(e){var t=this,n=e.i;t.componentWillUnmount=()=>{(0,r.j)(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),(0,r.j)((0,r.e)(w,{context:t.context},e.__v),t.l)}function N(e,t){var n=(0,r.e)(C,{__v:e,i:t});return n.containerInfo=t,n}(O.prototype=new r.a).__a=function(e){var t=this,n=g(t.__v),r=t.o.get(e);return r[0]++,o=>{var a=()=>{t.props.revealOrder?(r.push(o),x(t,e,r)):o()};n?n(a):a()}},O.prototype.render=function(e){this.u=null,this.o=new Map;var t=(0,r.k)(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},O.prototype.componentDidUpdate=O.prototype.componentDidMount=function(){var e=this;this.o.forEach(((t,n)=>{x(e,n,t)}))};var k=Symbol.for("react.element")||60103,E=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,S=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,M=/[A-Z0-9]/g,T=e=>("symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e);function D(e,t,n){return null==t.__k&&(t.textContent=""),(0,r.j)(e,t),"function"==typeof n&&n(),e?e.__c:null}function P(e,t,n){return(0,r.g)(e,t),"function"==typeof n&&n(),e?e.__c:null}r.a.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(r.a.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var j=r.i.event;function A(){}function I(){return this.cancelBubble}function L(){return this.defaultPrevented}r.i.event=e=>(j&&(e=j(e)),e.persist=A,e.isPropagationStopped=I,e.isDefaultPrevented=L,e.nativeEvent=e);var U,R={enumerable:!1,configurable:!0,get:function(){return this.class}},H=r.i.vnode;r.i.vnode=e=>{"string"==typeof e.type&&(e=>{var t=e.props,n=e.type,o={};for(var a in t){var i=t[a];if(!("value"===a&&"defaultValue"in t&&null==i||"children"===a&&"noscript"===n||"class"===a||"className"===a)){var s=a.toLowerCase();"defaultValue"===a&&"value"in t&&null==t.value?a="value":"download"===a&&!0===i?i="":"translate"===s&&"no"===i?i=!1:"ondoubleclick"===s?a="ondblclick":"onchange"!==s||"input"!==n&&"textarea"!==n||T(t.type)?"onfocus"===s?a="onfocusin":"onblur"===s?a="onfocusout":S.test(a)?a=s:-1===n.indexOf("-")&&E.test(a)?a=a.replace(M,"-$&").toLowerCase():null===i&&(i=void 0):s=a="oninput","oninput"===s&&o[a=s]&&(a="oninputCapture"),o[a]=i}}"select"==n&&o.multiple&&Array.isArray(o.value)&&(o.value=(0,r.k)(t.children).forEach((e=>{e.props.selected=-1!=o.value.indexOf(e.props.value)}))),"select"==n&&null!=o.defaultValue&&(o.value=(0,r.k)(t.children).forEach((e=>{e.props.selected=o.multiple?-1!=o.defaultValue.indexOf(e.props.value):o.defaultValue==e.props.value}))),t.class&&!t.className?(o.class=t.class,Object.defineProperty(o,"className",R)):(t.className&&!t.class||t.class&&t.className)&&(o.class=o.className=t.className),e.props=o})(e),e.$$typeof=k,H&&H(e)};var W=r.i.__r;r.i.__r=e=>{W&&W(e),U=e.__c};var X=r.i.diffed;r.i.diffed=e=>{X&&X(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=t.value??""),U=null};var F={ReactCurrentDispatcher:{current:{readContext:e=>U.__n[e.__c].props.value}}},V="17.0.2";function $(e){return r.e.bind(null,e)}function B(e){return!!e&&e.$$typeof===k}function z(e){return B(e)&&e.type===r.b}function Z(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function q(e){return B(e)?r.c.apply(null,arguments):e}function J(e){return!!e.__k&&((0,r.j)(null,e),!0)}function Y(e){return e&&(e.base||1===e.nodeType&&e)||null}var G=(e,t)=>e(t),K=(e,t)=>e(t),Q=r.b;function ee(e){e()}function te(e){return e}function ne(){return[!1,ee]}var re=o.h,oe=B;function ae(e,t){var n=t(),r=(0,o.l)({h:{__:n,v:t}}),a=r[0].h,i=r[1];return(0,o.h)((()=>{a.__=n,a.v=t,ie(a)&&i({h:a})}),[e,n,t]),(0,o.d)((()=>(ie(a)&&i({h:a}),e((()=>{ie(a)&&i({h:a})})))),[e]),n}function ie(e){var t,n,r=e.v,o=e.__;try{var a=r();return!((t=o)===(n=a)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(e){return!0}}var se={useState:o.l,useId:o.f,useReducer:o.j,useEffect:o.d,useLayoutEffect:o.h,useInsertionEffect:re,useTransition:ne,useDeferredValue:te,useSyncExternalStore:ae,startTransition:ee,useRef:o.k,useImperativeHandle:o.g,useMemo:o.i,useCallback:o.a,useContext:o.b,useDebugValue:o.c,version:"17.0.2",Children:p,render:D,hydrate:P,unmountComponentAtNode:J,createPortal:N,createElement:r.e,createContext:r.d,createFactory:$,cloneElement:q,createRef:r.f,Fragment:r.b,isValidElement:B,isElement:B,isFragment:z,isMemo:Z,findDOMNode:Y,Component:r.a,PureComponent:s,memo:l,forwardRef:d,flushSync:K,unstable_batchedUpdates:G,StrictMode:Q,Suspense:y,SuspenseList:O,lazy:b,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:F}},(e,t)=>{t.__esModule=!0,t.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce(((t,n)=>t.concat(n.shadowRoot?e(n.shadowRoot):[n])),[]).filter(i)};var n="none",r="contents",o=/input|select|textarea|button|object|iframe/;function a(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var o=window.getComputedStyle(e),a=o.getPropertyValue("display");return t?a!==r&&((e,t)=>"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0)(e,o):a===n}catch(e){return!1}}function i(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&((e,t)=>{var n=e.nodeName.toLowerCase();return(o.test(n)&&!e.disabled||"a"===n&&e.href||t)&&(e=>{for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),a(t))return!1;t=t.parentNode}return!0})(e)})(e,!n)}e.exports=t.default},e=>{e.exports={}},(e,t,n)=>{t.__esModule=!0,t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var r,o=((r=n(20))&&r.__esModule?r:{default:r}).default,a=o.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=o.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=o.canUseDOM?window.NodeList:{},t.canUseDOM=o.canUseDOM,t.default=a},(e,t,n)=>{n.d(t,{a:()=>k,b:()=>E,c:()=>S,d:()=>O,e:()=>M,f:()=>T,g:()=>C,h:()=>x,i:()=>N,j:()=>b,k:()=>w,l:()=>g});var r,o,a,i,s=n(0),l=0,c=[],u=[],d=s.i,h=d.__b,p=d.__r,f=d.diffed,_=d.__c,m=d.unmount,v=d.__;function y(e,t){d.__h&&d.__h(o,e,l||t),l=0;var n=o.__H||(o.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:u}),n.__[e]}function g(e){return l=1,b(U,e)}function b(e,t,n){var a=y(r++,2);if(a.t=e,!a.__c&&(a.__=[n?n(t):U(void 0,t),e=>{var t=a.__N?a.__N[0]:a.__[0],n=a.t(t,e);t!==n&&(a.__N=[n,a.__[1]],a.__c.setState({}))}],a.__c=o,!o.u)){var i=function(e,t,n){if(!a.__c.__H)return!0;var r=a.__c.__H.__.filter((e=>!!e.__c));if(r.every((e=>!e.__N)))return!s||s.call(this,e,t,n);var o=!1;return r.forEach((e=>{if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}})),!(!o&&a.__c.props===e)&&(!s||s.call(this,e,t,n))};o.u=!0;var s=o.shouldComponentUpdate,l=o.componentWillUpdate;o.componentWillUpdate=function(e,t,n){if(this.__e){var r=s;s=void 0,i(e,t,n),s=r}l&&l.call(this,e,t,n)},o.shouldComponentUpdate=i}return a.__N||a.__}function O(e,t){var n=y(r++,3);!d.__s&&L(n.__H,t)&&(n.__=e,n.i=t,o.__H.__h.push(n))}function x(e,t){var n=y(r++,4);!d.__s&&L(n.__H,t)&&(n.__=e,n.i=t,o.__h.push(n))}function w(e){return l=5,N((()=>({current:e})),[])}function C(e,t,n){l=6,x((()=>"function"==typeof e?(e(t()),()=>e(null)):e?(e.current=t(),()=>e.current=null):void 0),null==n?n:n.concat(e))}function N(e,t){var n=y(r++,7);return L(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function k(e,t){return l=8,N((()=>e),t)}function E(e){var t=o.context[e.__c],n=y(r++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(o)),t.props.value):e.__}function S(e,t){d.useDebugValue&&d.useDebugValue(t?t(e):e)}function M(e){var t=y(r++,10),n=g();return t.__=e,o.componentDidCatch||(o.componentDidCatch=(e,r)=>{t.__&&t.__(e,r),n[1](e)}),[n[0],()=>{n[1](void 0)}]}function T(){var e=y(r++,11);if(!e.__){for(var t=o.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function D(){for(var e;e=c.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(A),e.__H.__h.forEach(I),e.__H.__h=[]}catch(t){e.__H.__h=[],d.__e(t,e.__v)}}d.__b=e=>{o=null,h&&h(e)},d.__=(e,t)=>{e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),v&&v(e,t)},d.__r=e=>{p&&p(e),r=0;var t=(o=e.__c).__H;t&&(a===o?(t.__h=[],o.__h=[],t.__.forEach((e=>{e.__N&&(e.__=e.__N),e.__V=u,e.__N=e.i=void 0}))):(t.__h.forEach(A),t.__h.forEach(I),t.__h=[],r=0)),a=o},d.diffed=e=>{f&&f(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==c.push(t)&&i===d.requestAnimationFrame||((i=d.requestAnimationFrame)||j)(D)),t.__H.__.forEach((e=>{e.i&&(e.__H=e.i),e.__V!==u&&(e.__=e.__V),e.i=void 0,e.__V=u}))),a=o=null},d.__c=(e,t)=>{t.some((e=>{try{e.__h.forEach(A),e.__h=e.__h.filter((e=>!e.__||I(e)))}catch(n){t.some((e=>{e.__h&&(e.__h=[])})),t=[],d.__e(n,e.__v)}})),_&&_(e,t)},d.unmount=e=>{m&&m(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((e=>{try{A(e)}catch(e){t=e}})),n.__H=void 0,t&&d.__e(t,n.__v))};var P=!0;function j(e){var t,n=()=>{clearTimeout(r),P&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);P&&(t=requestAnimationFrame(n))}function A(e){var t=o,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),o=t}function I(e){var t=o;e.__c=e.__(),o=t}function L(e,t){return!e||e.length!==t.length||t.some(((t,n)=>t!==e[n]))}function U(e,t){return"function"==typeof t?t(e):t}},(e,t)=>{function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r(e,t){return(r=Object.setPrototypeOf)(e,t)}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.__esModule=!0,t.default=void 0,t.default=function(e){var t,a,i=e.createElement,s=e.createRef;return a=t=function(e){var t,a;function l(){for(var t,r=arguments.length,a=Array(r),i=0;i {var r=e.events,o=r.click,a=r.focus,i=r.hover,s=n?"addEventListener":"removeEventListener",l=!0===e.events;(o||l)&&document[s]("click",t.toggleHint),(a||l)&&document[s]("focusin",t.toggleHint),(i||l)&&document[s]("mouseover",t.toggleHint),(o||i||l)&&document[s]("touchend",t.toggleHint)})),o(n(t),"toggleHint",(e=>{var n=(void 0===e?{}:e).target,r=void 0===n?null:n;r=t.getHint(r),clearTimeout(t._timeout),t._timeout=setTimeout((()=>{t.target=r,t.target&&(t.placement=null),t.getHintData()}),null===r?void 0===t.props.delay.hide?t.props.delay:t.props.delay.hide:void 0===t.props.delay.show?t.props.delay:t.props.delay.show)})),o(n(t),"getHint",(e=>{for(var n=t.props,r=n.attribute,o=n.persist,a=t.target;e&&e!==document;){if(o&&e===t._hint.current)return a;if(e.hasAttribute(r))return e;e=e.parentNode}return null})),o(n(t),"shallowEqual",((e,t)=>{var n=Object.keys(e);return n.length===Object.keys(t).length&&n.reduce(((n,r)=>n&&("function"===typeof e[r]&&"function"===typeof t[r]||e[r]===t[r])),!0)})),o(n(t),"getHintData",(()=>{if(t.target){var e,n,r=t.props,o=r.attribute,a=r.autoPosition,i=r.position,s=t.target.getAttribute(o)||"",l=t.placement||t.target.getAttribute(o+"-at")||i,c=t._container.current.getBoundingClientRect(),u=c.top,d=c.left,h=t._hint.current.getBoundingClientRect(),p=h.width,f=h.height,_=t.target.getBoundingClientRect(),m=_.top,v=_.left,y=_.width,g=_.height;if(a&&!t.placement){var b=["left","right"].includes(l),O=document.documentElement,x={left:(b?v-p:v+(y-p>>1))>0,right:(b?v+y+p:v+(y+p>>1)) >1):m+g+f) >1):m-f)>0};if(!l||!x[l])switch(l){case"left":x.left||(l="right"),x.top||(l="bottom"),x.bottom||(l="top");break;case"right":x.right||(l="left"),x.top||(l="bottom"),x.bottom||(l="top");break;case"bottom":x.bottom||(l="top"),x.left||(l="right"),x.right||(l="left");break;default:x.top||(l="bottom"),x.left||(l="right"),x.right||(l="left")}}switch(l){case"left":e=g-f>>1,n=-p;break;case"right":e=g-f>>1,n=y;break;case"bottom":e=g,n=y-p>>1;break;default:e=-f,n=y-p>>1}(f>0||p>0)&&(t.placement=l),t.setState({content:s,at:l,top:e+m-u|0,left:n+v-d|0,hidden:!1})}else t.setState({hidden:!0})})),t}(t=l).prototype=Object.create((a=e).prototype),t.prototype.constructor=t,r(t,a);var c=l.prototype;return c.componentDidMount=function(){this.toggleEvents(this.props,!0)},c.componentWillUnmount=function(){this.toggleEvents(this.props,!1),clearTimeout(this._timeout)},c.componentDidUpdate=function(){this.target&&!this.state.hidden&&this.getHintData()},c.shouldComponentUpdate=function(e,t){return!this.shallowEqual(t,this.state)||!this.shallowEqual(e,this.props)},c.render=function(){var e=this.props,t=e.className,n=e.onRenderContent,r=this.state,o=r.content;return i("div",{ref:this._container,style:this._containerStyle},i("div",{className:t+" "+t+"--"+r.at,ref:this._hint,role:"tooltip",style:{top:r.top,left:r.left,display:this.target?void 0:"none"}},this.target&&(n?n(this.target,o):i("div",{className:t+"__content"},o))))},l}(e.Component),o(t,"defaultProps",{attribute:"data-rh",autoPosition:!1,className:"react-hint",delay:0,events:!1,onRenderContent:null,persist:!1,position:"top"}),a},e.exports=t.default},function(e,t){var n=this&&this.__assign||function(){return(n=Object.assign).apply(this,arguments)};t.__esModule=!0,t.isValidCron=void 0;var r=e=>/^\d+$/.test(e)?Number(e):NaN,o=e=>"?"===e,a=(e,t,n)=>e>=t&&e<=n,i=(e,t,n)=>-1===e.search(/[^\d-,\/*]/)&&e.split(",").every((e=>{var o=e.split("/");if(e.trim().endsWith("/"))return!1;if(o.length>2)return!1;var i=o[1];return((e,t,n)=>{var o=e.split("-");switch(o.length){case 1:return(e=>"*"===e)(e)||a(r(e),t,n);case 2:var i=o.map((e=>r(e))),s=i[0],l=i[1];return s<=l&&a(s,t,n)&&a(l,t,n);default:return!1}})(o[0],t,n)&&(e=>void 0===e||-1===e.search(/[^\d]/)&&r(e)>0)(i)})),s={jan:"1",feb:"2",mar:"3",apr:"4",may:"5",jun:"6",jul:"7",aug:"8",sep:"9",oct:"10",nov:"11",dec:"12"},l={sun:"0",mon:"1",tue:"2",wed:"3",thu:"4",fri:"5",sat:"6"},c={alias:!1,seconds:!1,allowBlankDay:!1,allowSevenAsSunday:!1};t.isValidCron=(e,t)=>{t=n(n({},c),t);var r=(e=>e.trim().split(/\s+/))(e);if(r.length>(t.seconds?6:5)||r.length<5)return!1;var a=[];if(6===r.length){var u=r.shift();u&&a.push((e=>i(e,0,59))(u))}var d=r[1],h=r[2],p=r[3],f=r[4];return a.push(i(r[0],0,59)),a.push((e=>i(e,0,23))(d)),a.push(((e,t)=>t&&o(e)||i(e,1,31))(h,t.allowBlankDay)),a.push(((e,t)=>{if(-1!==e.search(/\/[a-zA-Z]/))return!1;if(t){var n=e.toLowerCase().replace(/[a-z]{3}/g,(e=>void 0===s[e]?e:s[e]));return i(n,1,12)}return i(e,1,12)})(p,t.alias)),a.push(((e,t,n,r)=>{if(n&&o(e))return!0;if(!n&&o(e))return!1;if(-1!==e.search(/\/[a-zA-Z]/))return!1;if(t){var a=e.toLowerCase().replace(/[a-z]{3}/g,(e=>void 0===l[e]?e:l[e]));return i(a,0,r?7:6)}return i(e,0,r?7:6)})(f,t.alias,t.allowBlankDay,t.allowSevenAsSunday)),a.push(((e,t,n)=>!(n&&o(e)&&o(t)))(h,f,t.allowBlankDay)),a.every(Boolean)}},(e,t,n)=>{t.__esModule=!0;var r,o=(r=n(17))&&r.__esModule?r:{default:r};t.default=o.default,e.exports=t.default},(e,t,n)=>{t.__esModule=!0;var r=Object.assign,o=(()=>{function e(e,t){for(var n=0;n (n&&e(t.prototype,n),r&&e(t,r),t)})(),a=n(1),i=(h(n(3)),d(n(18))),s=h(n(10)),l=d(n(12)),c=d(n(21)),u=(h(n(4)),h(n(13)));function d(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwn(e,n)&&(t[n]=e[n]);return t.default=e,t}function h(e){return e&&e.__esModule?e:{default:e}}n(22);var p={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},f=0,_=function(e){function t(e){((e,t)=>{if(!(this instanceof t))throw new TypeError("Cannot call a class as a function")})(0,t);var n=((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,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=e=>{n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=e=>{n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=()=>{var e=n.props,t=e.appElement,r=e.ariaHideApp,o=e.htmlOpenClassName,a=e.bodyOpenClassName,s=e.parentSelector,d=s&&s().ownerDocument||document;a&&c.remove(d.body,a),o&&c.remove(d.getElementsByTagName("html")[0],o),r&&f>0&&0===(f-=1)&&l.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(i.returnFocus(n.props.preventScroll),i.teardownScopedFocus()):i.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),u.default.deregister(n)},n.open=()=>{n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(i.setupScopedFocus(n.node),i.markForFocusLater()),n.setState({isOpen:!0},(()=>{n.openAnimationFrame=requestAnimationFrame((()=>{n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=()=>{n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=()=>n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0}),n.closeWithTimeout=()=>{var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(()=>{n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=()=>{n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=e=>{(e=>"Tab"===e.code||9===e.keyCode)(e)&&(0,s.default)(n.content,e),n.props.shouldCloseOnEsc&&(e=>"Escape"===e.code||27===e.keyCode)(e)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=e=>{null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=()=>{n.shouldClose=!1},n.handleOverlayOnMouseDown=e=>{n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=()=>{n.shouldClose=!1},n.handleContentOnMouseDown=()=>{n.shouldClose=!1},n.requestClose=e=>n.ownerHandlesClose()&&n.props.onRequestClose(e),n.ownerHandlesClose=()=>n.props.onRequestClose,n.shouldBeClosed=()=>!n.state.isOpen&&!n.state.beforeClose,n.contentHasFocus=()=>document.activeElement===n.content||n.content.contains(document.activeElement),n.buildClassName=(e,t)=>{var r="object"===("undefined"===typeof t?"undefined":typeof t)?t:{base:p[e],afterOpen:p[e]+"--after-open",beforeClose:p[e]+"--before-close"},o=r.base;return n.state.afterOpen&&(o=o+" "+r.afterOpen),n.state.beforeClose&&(o=o+" "+r.beforeClose),"string"===typeof t&&t?o+" "+t:o},n.attributesFromObject=(e,t)=>Object.keys(t).reduce(((n,r)=>(n[e+"-"+r]=t[r],n)),{}),n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return((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(e,t)})(t,e),o(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,o=e.bodyOpenClassName,a=e.parentSelector,i=a&&a().ownerDocument||document;o&&c.add(i.body,o),r&&c.add(i.getElementsByTagName("html")[0],r),n&&(f+=1,l.hide(t)),u.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,o=e.overlayClassName,a=e.defaultStyles,i=e.children,s=n?{}:a.content,l=o?{}:a.overlay;if(this.shouldBeClosed())return null;var c={ref:this.setOverlayRef,className:this.buildClassName("overlay",o),style:r({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},u=r({id:t,ref:this.setContentRef,style:r({},s,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",r({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(u,i);return this.props.overlayElement(c,d)}}]),t}(a.Component);_.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},t.default=_,e.exports=t.default},(e,t,n)=>{t.__esModule=!0,t.default=(e,t)=>{var n=(0,o.default)(e);if(n.length){var r=void 0,i=t.shiftKey,s=n[0],l=n[n.length-1],c=a();if(e===c){if(!i)return;r=l}if(l!==c||i||(r=s),s===c&&i&&(r=l),r)return t.preventDefault(),void r.focus();var u=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=u&&"Chrome"!=u[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var d=n.indexOf(c);if(d>-1&&(d+=i?-1:1),"undefined"===typeof(r=n[d]))return t.preventDefault(),void(r=i?l:s).focus();t.preventDefault(),r.focus()}}else t.preventDefault()};var r,o=(r=n(2))&&r.__esModule?r:{default:r};function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?a(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default},e=>{var t;globalThis,t=()=>(()=>{var e={794:(e,t,n)=>{t.__esModule=!0,t.CronParser=void 0;var r=n(586),o=function(){function e(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1),this.expression=e,this.dayOfWeekStartIndexZero=t,this.monthStartIndexZero=n}return e.prototype.parse=function(){var e=this.extractParts(this.expression);return this.normalize(e),this.validate(e),e},e.prototype.extractParts=function(e){if(!this.expression)throw Error("cron expression is empty");for(var t=e.trim().split(/[ ]+/),n=0;n e.trim())).filter((e=>""!==e)).map((e=>isNaN(Number(e))?e:Number(e))).filter((e=>null!==e&&""!==e));0===r.length&&r.push("*"),r.sort(((e,t)=>null!==e&&null!==t?e-t:0)),t[n]=r.map((e=>null!==e?""+e:"")).join(",")}if(t.length<5)throw Error("Expression has only ".concat(t.length," part").concat(1==t.length?"":"s",". At least 5 parts are required."));if(5==t.length)t.unshift(""),t.push("");else if(6==t.length)/\d{4}$/.test(t[5])||"?"==t[4]||"?"==t[2]?t.unshift(""):t.push("");else if(t.length>7)throw Error("Expression has ".concat(t.length," parts; too many!"));return t},e.prototype.normalize=function(e){var t=this;if(e[3]=e[3].replace("?","*"),e[5]=e[5].replace("?","*"),e[2]=e[2].replace("?","*"),0==e[0].indexOf("0/")&&(e[0]=e[0].replace("0/","*/")),0==e[1].indexOf("0/")&&(e[1]=e[1].replace("0/","*/")),0==e[2].indexOf("0/")&&(e[2]=e[2].replace("0/","*/")),0==e[3].indexOf("1/")&&(e[3]=e[3].replace("1/","*/")),0==e[4].indexOf("1/")&&(e[4]=e[4].replace("1/","*/")),0==e[6].indexOf("1/")&&(e[6]=e[6].replace("1/","*/")),e[5]=e[5].replace(/(^\d)|([^#/\s]\d)/g,(e=>{var n=e.replace(/\D/,""),r=n;return t.dayOfWeekStartIndexZero?"7"==n&&(r="0"):r=""+(parseInt(n)-1),e.replace(n,r)})),"L"==e[5]&&(e[5]="6"),"?"==e[3]&&(e[3]="*"),e[3].indexOf("W")>-1&&(e[3].indexOf(",")>-1||e[3].indexOf("-")>-1))throw Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var n={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var r in n)e[5]=e[5].replace(RegExp(r,"gi"),""+n[r]);e[4]=e[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,(e=>{var n=e.replace(/\D/,""),r=n;return t.monthStartIndexZero&&(r=""+(parseInt(n)+1)),e.replace(n,r)}));var o={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var a in o)e[4]=e[4].replace(RegExp(a,"gi"),""+o[a]);"0"==e[0]&&(e[0]=""),/\*|\-|\,|\//.test(e[2])||!/\*|\//.test(e[1])&&!/\*|\//.test(e[0])||(e[2]+="-".concat(e[2]));for(var i=0;i ""!==e)).join(",")||"*"),"*/1"==e[i]&&(e[i]="*"),e[i].indexOf("/")>-1&&!/^\*|\-|\,/.test(e[i])){var s=null;switch(i){case 4:s="12";break;case 5:s="6";break;case 6:s="9999";break;default:s=null}if(null!==s){var l=e[i].split("/");e[i]="".concat(l[0],"-").concat(s,"/").concat(l[1])}}},e.prototype.validate=function(e){this.assertNoInvalidCharacters("DOW",e[5]),this.assertNoInvalidCharacters("DOM",e[3]),this.validateRange(e)},e.prototype.validateRange=function(e){r.default.secondRange(e[0]),r.default.minuteRange(e[1]),r.default.hourRange(e[2]),r.default.dayOfMonthRange(e[3]),r.default.monthRange(e[4],this.monthStartIndexZero),r.default.dayOfWeekRange(e[5],this.dayOfWeekStartIndexZero)},e.prototype.assertNoInvalidCharacters=(e,t)=>{var n=t.match(/[A-KM-VX-Z]+/gi);if(n&&n.length)throw Error("".concat(e," part contains invalid values: '").concat(""+n,"'"))},e}();t.CronParser=o},728:(e,t,n)=>{t.__esModule=!0,t.ExpressionDescriptor=void 0;var r=n(910),o=n(794),a=function(){function e(t,n){this.expression=t,this.options=n,this.expressionParts=[,,,,,],!this.options.locale&&e.defaultLocale&&(this.options.locale=e.defaultLocale),e.locales[this.options.locale]||(this.options.locale=Object.keys(e.locales)[0]),this.i18n=e.locales[this.options.locale],void 0===n.use24HourTimeFormat&&(n.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return e.toString=(t,n)=>{var r=void 0===n?{}:n,o=r.throwExceptionOnParseError,a=r.verbose,i=r.dayOfWeekStartIndexZero,s=r.monthStartIndexZero,l=r.locale,c=r.tzOffset;return new e(t,{throwExceptionOnParseError:void 0===o||o,verbose:void 0!==a&&a,dayOfWeekStartIndexZero:void 0===i||i,monthStartIndexZero:void 0!==s&&s,use24HourTimeFormat:r.use24HourTimeFormat,locale:void 0===l?null:l,tzOffset:void 0===c?0:c}).getFullDescription()},e.initialize=(t,n)=>{void 0===n&&(n="en"),e.specialCharacters=["/","-",",","*"],e.defaultLocale=n,t.load(e.locales)},e.prototype.getFullDescription=function(){var e="";try{var t=new o.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);this.expressionParts=t.parse();var n=this.getTimeOfDayDescription(),r=this.getDayOfMonthDescription(),a=this.getMonthDescription(),i=this.getDayOfWeekDescription(),s=this.getYearDescription();e=(e=this.transformVerbosity(e+=n+r+i+a+s,!!this.options.verbose)).charAt(0).toLocaleUpperCase()+e.substr(1)}catch(t){if(this.options.throwExceptionOnParseError)throw"".concat(t);e=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD()}return e},e.prototype.getTimeOfDayDescription=function(){var t=this.expressionParts[0],n=this.expressionParts[1],o=this.expressionParts[2],a="";if(r.StringUtilities.containsAny(n,e.specialCharacters)||r.StringUtilities.containsAny(o,e.specialCharacters)||r.StringUtilities.containsAny(t,e.specialCharacters))if(t||!(n.indexOf("-")>-1)||n.indexOf(",")>-1||n.indexOf("/")>-1||r.StringUtilities.containsAny(o,e.specialCharacters))if(!t&&o.indexOf(",")>-1&&-1==o.indexOf("-")&&-1==o.indexOf("/")&&!r.StringUtilities.containsAny(n,e.specialCharacters)){var i=o.split(",");a+=this.i18n.at();for(var s=0;s e),(t=>r.StringUtilities.format(e.i18n.everyX0Seconds(t),t)),(t=>e.i18n.secondsX0ThroughX1PastTheMinute()),(t=>"0"==t?"":parseInt(t)<20?e.i18n.atX0SecondsPastTheMinute(t):e.i18n.atX0SecondsPastTheMinuteGt20()||e.i18n.atX0SecondsPastTheMinute(t)))},e.prototype.getMinutesDescription=function(){var e=this,t=this.expressionParts[0],n=this.expressionParts[2];return this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),(e=>e),(t=>r.StringUtilities.format(e.i18n.everyX0Minutes(t),t)),(t=>e.i18n.minutesX0ThroughX1PastTheHour()),(r=>{try{return"0"==r&&-1==n.indexOf("/")&&""==t?e.i18n.everyHour():parseInt(r)<20?e.i18n.atX0MinutesPastTheHour(r):e.i18n.atX0MinutesPastTheHourGt20()||e.i18n.atX0MinutesPastTheHour(r)}catch(t){return e.i18n.atX0MinutesPastTheHour(r)}}))},e.prototype.getHoursDescription=function(){var e=this,t=this.expressionParts[2],n=this.getSegmentDescription(t,this.i18n.everyHour(),(t=>e.formatTime(t,"0","")),(t=>r.StringUtilities.format(e.i18n.everyX0Hours(t),t)),(t=>e.i18n.betweenX0AndX1()),(t=>e.i18n.atX0()));if(n&&t.includes("-")&&"0"!=this.expressionParts[1]){var o=Array.from(n.matchAll(/:00/g));if(o.length>1){var a=o[o.length-1].index;n=n.substring(0,a)+":59"+n.substring(a+3)}}return n},e.prototype.getDayOfWeekDescription=function(){var e=this,t=this.i18n.daysOfTheWeek();return"*"==this.expressionParts[5]?"":this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),((n,r)=>{var o=n;n.indexOf("#")>-1?o=n.substring(0,n.indexOf("#")):n.indexOf("L")>-1&&(o=o.replace("L",""));var a=parseInt(o);if(e.options.tzOffset){var i=parseInt(e.expressionParts[2])+(e.options.tzOffset?e.options.tzOffset:0);i>=24?a++:i<0&&a--,a>6?a=0:a<0&&(a=6)}var s=e.i18n.daysOfTheWeekInCase?e.i18n.daysOfTheWeekInCase(r)[a]:t[a];if(n.indexOf("#")>-1){var l=null,c=n.substring(n.indexOf("#")+1),u=n.substring(0,n.indexOf("#"));switch(c){case"1":l=e.i18n.first(u);break;case"2":l=e.i18n.second(u);break;case"3":l=e.i18n.third(u);break;case"4":l=e.i18n.fourth(u);break;case"5":l=e.i18n.fifth(u)}s=l+" "+s}return s}),(t=>1==parseInt(t)?"":r.StringUtilities.format(e.i18n.commaEveryX0DaysOfTheWeek(t),t)),(t=>{var n=t.substring(0,t.indexOf("-"));return"*"!=e.expressionParts[3]?e.i18n.commaAndX0ThroughX1(n):e.i18n.commaX0ThroughX1(n)}),(t=>{var n=null;if(t.indexOf("#")>-1){var r=t.substring(t.indexOf("#")+1);n=e.i18n.commaOnThe(r).trim()+e.i18n.spaceX0OfTheMonth()}else n=t.indexOf("L")>-1?e.i18n.commaOnTheLastX0OfTheMonth(t.replace("L","")):"*"!=e.expressionParts[3]?e.i18n.commaAndOnX0():e.i18n.commaOnlyOnX0(t);return n}))},e.prototype.getMonthDescription=function(){var e=this,t=this.i18n.monthsOfTheYear();return this.getSegmentDescription(this.expressionParts[4],"",((n,r)=>r&&e.i18n.monthsOfTheYearInCase?e.i18n.monthsOfTheYearInCase(r)[parseInt(n)-1]:t[parseInt(n)-1]),(t=>1==parseInt(t)?"":r.StringUtilities.format(e.i18n.commaEveryX0Months(t),t)),(t=>e.i18n.commaMonthX0ThroughMonthX1()||e.i18n.commaX0ThroughX1()),(t=>e.i18n.commaOnlyInMonthX0?e.i18n.commaOnlyInMonthX0():e.i18n.commaOnlyInX0()))},e.prototype.getDayOfMonthDescription=function(){var e=this,t=null,n=this.expressionParts[3];switch(n){case"L":t=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":t=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var o=n.match(/(\d{1,2}W)|(W\d{1,2})/);if(o){var a=parseInt(o[0].replace("W","")),i=1==a?this.i18n.firstWeekday():r.StringUtilities.format(this.i18n.weekdayNearestDayX0(),""+a);t=r.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),i);break}var s=n.match(/L-(\d{1,2})/);if(s){var l=s[1];t=r.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(l),l);break}if("*"==n&&"*"!=this.expressionParts[5])return"";t=this.getSegmentDescription(n,this.i18n.commaEveryDay(),(t=>"L"==t?e.i18n.lastDay():e.i18n.dayX0?r.StringUtilities.format(e.i18n.dayX0(),t):t),(t=>"1"==t?e.i18n.commaEveryDay():e.i18n.commaEveryX0Days(t)),(t=>e.i18n.commaBetweenDayX0AndX1OfTheMonth(t)),(t=>e.i18n.commaOnDayX0OfTheMonth(t)))}return t},e.prototype.getYearDescription=function(){var e=this;return this.getSegmentDescription(this.expressionParts[6],"",(e=>/^\d+$/.test(e)?""+new Date(parseInt(e),1).getFullYear():e),(t=>r.StringUtilities.format(e.i18n.commaEveryX0Years(t),t)),(t=>e.i18n.commaYearX0ThroughYearX1()||e.i18n.commaX0ThroughX1()),(t=>e.i18n.commaOnlyInYearX0?e.i18n.commaOnlyInYearX0():e.i18n.commaOnlyInX0()))},e.prototype.getSegmentDescription=function(e,t,n,o,a,i){var s=null,l=e.indexOf("/")>-1,c=e.indexOf("-")>-1,u=e.indexOf(",")>-1;if(e)if("*"===e)s=t;else if(l||c||u)if(u){for(var d=e.split(","),h="",p=0;p 0&&d.length>2&&(h+=",",p 0&&d.length>1&&(p==d.length-1||2==d.length)&&(h+="".concat(this.i18n.spaceAnd()," ")),d[p].indexOf("/")>-1||d[p].indexOf("-")>-1){var f=d[p].indexOf("-")>-1&&-1==d[p].indexOf("/"),_=this.getSegmentDescription(d[p],t,n,o,f?this.i18n.commaX0ThroughX1:a,i);f&&(_=_.replace(", ","")),h+=_}else h+=l?this.getSegmentDescription(d[p],t,n,o,a,i):n(d[p]);s=l?h:r.StringUtilities.format(i(e),h)}else if(l){if(d=e.split("/"),s=r.StringUtilities.format(o(d[1]),d[1]),d[0].indexOf("-")>-1){var m=this.generateRangeSegmentDescription(d[0],a,n);0!=m.indexOf(", ")&&(s+=", "),s+=m}else if(-1==d[0].indexOf("*")){var v=r.StringUtilities.format(i(d[0]),n(d[0]));v=v.replace(", ",""),s+=r.StringUtilities.format(this.i18n.commaStartingX0(),v)}}else c&&(s=this.generateRangeSegmentDescription(e,a,n));else s=r.StringUtilities.format(i(e),n(e));else s="";return s},e.prototype.generateRangeSegmentDescription=(e,t,n)=>{var o=e.split("-"),a=n(o[0],1),i=n(o[1],2),s=t(e);return""+r.StringUtilities.format(s,a,i)},e.prototype.formatTime=function(e,t,n){var r=0,o=0;this.options.tzOffset&&(r=this.options.tzOffset>0?Math.floor(this.options.tzOffset):Math.ceil(this.options.tzOffset),0!=(o=parseFloat((this.options.tzOffset%1).toFixed(2)))&&(o*=60));var a=parseInt(e)+r,i=parseInt(t)+o;i>=60?(i-=60,a+=1):i<0&&(i+=60,a-=1),a>=24?a-=24:a<0&&(a=24+a);var s="",l=!1;this.options.use24HourTimeFormat||(s=(l=!(!this.i18n.setPeriodBeforeTime||!this.i18n.setPeriodBeforeTime()))?"".concat(this.getPeriod(a)," "):" ".concat(this.getPeriod(a)),a>12&&(a-=12),0===a&&(a=12));var c="";return n&&(c=":".concat(("00"+n).substring(n.length))),"".concat(l?s:"").concat(("00"+a).substring((""+a).length),":").concat(("00"+i).substring((""+i).length)).concat(c).concat(l?"":s)},e.prototype.transformVerbosity=function(e,t){return t||(e=(e=(e=(e=e.replace(RegExp(", ".concat(this.i18n.everyMinute()),"g"),"")).replace(RegExp(", ".concat(this.i18n.everyHour()),"g"),"")).replace(RegExp(this.i18n.commaEveryDay(),"g"),"")).replace(/\, ?$/,"")),e},e.prototype.getPeriod=function(e){return e>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},e.locales={},e}();t.ExpressionDescriptor=a},336:(e,t,n)=>{t.__esModule=!0,t.enLocaleLoader=void 0;var r=n(751),o=(()=>{function e(){}return e.prototype.load=e=>{e.en=new r.en},e})();t.enLocaleLoader=o},751:(e,t)=>{t.__esModule=!0,t.en=void 0;var n=(()=>{function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=()=>null,e.prototype.atX0MinutesPastTheHourGt20=()=>null,e.prototype.commaMonthX0ThroughMonthX1=()=>null,e.prototype.commaYearX0ThroughYearX1=()=>null,e.prototype.use24HourTimeFormatByDefault=()=>!1,e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=()=>"An error occured when generating the expression description. Check the cron expression syntax.",e.prototype.everyMinute=()=>"every minute",e.prototype.everyHour=()=>"every hour",e.prototype.atSpace=()=>"At ",e.prototype.everyMinuteBetweenX0AndX1=()=>"Every minute between %s and %s",e.prototype.at=()=>"At",e.prototype.spaceAnd=()=>" and",e.prototype.everySecond=()=>"every second",e.prototype.everyX0Seconds=()=>"every %s seconds",e.prototype.secondsX0ThroughX1PastTheMinute=()=>"seconds %s through %s past the minute",e.prototype.atX0SecondsPastTheMinute=()=>"at %s seconds past the minute",e.prototype.everyX0Minutes=()=>"every %s minutes",e.prototype.minutesX0ThroughX1PastTheHour=()=>"minutes %s through %s past the hour",e.prototype.atX0MinutesPastTheHour=()=>"at %s minutes past the hour",e.prototype.everyX0Hours=()=>"every %s hours",e.prototype.betweenX0AndX1=()=>"between %s and %s",e.prototype.atX0=()=>"at %s",e.prototype.commaEveryDay=()=>", every day",e.prototype.commaEveryX0DaysOfTheWeek=()=>", every %s days of the week",e.prototype.commaX0ThroughX1=()=>", %s through %s",e.prototype.commaAndX0ThroughX1=()=>", %s through %s",e.prototype.first=()=>"first",e.prototype.second=()=>"second",e.prototype.third=()=>"third",e.prototype.fourth=()=>"fourth",e.prototype.fifth=()=>"fifth",e.prototype.commaOnThe=()=>", on the ",e.prototype.spaceX0OfTheMonth=()=>" %s of the month",e.prototype.lastDay=()=>"the last day",e.prototype.commaOnTheLastX0OfTheMonth=()=>", on the last %s of the month",e.prototype.commaOnlyOnX0=()=>", only on %s",e.prototype.commaAndOnX0=()=>", and on %s",e.prototype.commaEveryX0Months=()=>", every %s months",e.prototype.commaOnlyInX0=()=>", only in %s",e.prototype.commaOnTheLastDayOfTheMonth=()=>", on the last day of the month",e.prototype.commaOnTheLastWeekdayOfTheMonth=()=>", on the last weekday of the month",e.prototype.commaDaysBeforeTheLastDayOfTheMonth=()=>", %s days before the last day of the month",e.prototype.firstWeekday=()=>"first weekday",e.prototype.weekdayNearestDayX0=()=>"weekday nearest day %s",e.prototype.commaOnTheX0OfTheMonth=()=>", on the %s of the month",e.prototype.commaEveryX0Days=()=>", every %s days",e.prototype.commaBetweenDayX0AndX1OfTheMonth=()=>", between day %s and %s of the month",e.prototype.commaOnDayX0OfTheMonth=()=>", on day %s of the month",e.prototype.commaEveryHour=()=>", every hour",e.prototype.commaEveryX0Years=()=>", every %s years",e.prototype.commaStartingX0=()=>", starting %s",e.prototype.daysOfTheWeek=()=>["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],e.prototype.monthsOfTheYear=()=>["January","February","March","April","May","June","July","August","September","October","November","December"],e})();t.en=n},586:(e,t)=>{function n(e,t){if(!e)throw Error(t)}t.__esModule=!0;var r=(()=>{function e(){}return e.secondRange=e=>{for(var t=e.split(","),r=0;r =0&&o<=59,"seconds part must be >= 0 and <= 59")}},e.minuteRange=e=>{for(var t=e.split(","),r=0;r =0&&o<=59,"minutes part must be >= 0 and <= 59")}},e.hourRange=e=>{for(var t=e.split(","),r=0;r =0&&o<=23,"hours part must be >= 0 and <= 23")}},e.dayOfMonthRange=e=>{for(var t=e.split(","),r=0;r =1&&o<=31,"DOM part must be >= 1 and <= 31")}},e.monthRange=(e,t)=>{for(var r=e.split(","),o=0;o =1&&a<=12,t?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},e.dayOfWeekRange=(e,t)=>{for(var r=e.split(","),o=0;o =0&&a<=6,t?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},e})();t.default=r},910:(e,t)=>{t.__esModule=!0,t.StringUtilities=void 0;var n=(()=>{function e(){}return e.format=function(e){for(var t=[],n=1;n t.some((t=>e.indexOf(t)>-1)),e})();t.StringUtilities=n}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}var r={};return(()=>{var e=r;e.__esModule=!0,e.toString=void 0;var t=n(728),o=n(336);t.ExpressionDescriptor.initialize(new o.enLocaleLoader),e.default=t.ExpressionDescriptor,e.toString=t.ExpressionDescriptor.toString})(),r})(),e.exports=t()},(e,t,n)=>{t.__esModule=!0,t.resetState=()=>{i&&(i.removeAttribute?i.removeAttribute("aria-hidden"):null!=i.length?i.forEach((e=>e.removeAttribute("aria-hidden"))):document.querySelectorAll(i).forEach((e=>e.removeAttribute("aria-hidden")))),i=null},t.log=()=>{},t.assertNodeList=s,t.setElement=e=>{var t=e;if("string"===typeof t&&a.canUseDOM){var n=document.querySelectorAll(t);s(n,t),t=n}return i=t||i},t.validateElement=l,t.hide=e=>{var t=!0,n=!1,r=void 0;try{for(var o,a=l(e)[Symbol.iterator]();!(t=(o=a.next()).done);t=!0)o.value.setAttribute("aria-hidden","true")}catch(e){n=!0,r=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw r}}},t.show=e=>{var t=!0,n=!1,r=void 0;try{for(var o,a=l(e)[Symbol.iterator]();!(t=(o=a.next()).done);t=!0)o.value.removeAttribute("aria-hidden")}catch(e){n=!0,r=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw r}}},t.documentNotReadyOrSSRTesting=()=>{i=null};var r,o=(r=n(19))&&r.__esModule?r:{default:r},a=n(4),i=null;function s(e,t){if(!e||!e.length)throw Error("react-modal: No elements were found for selector "+t+".")}function l(e){var t=e||i;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,o.default)(!1,"react-modal: App element is not defined. Please use `Modal.setAppElement(el)` or set `appElement={el}`. This is needed so screen readers don't see main content when modal is opened. It is not recommended, but you can opt-out by setting `ariaHideApp={false}`."),[])}},(e,t)=>{t.__esModule=!0,t.log=()=>{r.openInstances.forEach((e=>{}))},t.resetState=()=>{r=new n};var n=function e(){var t=this;((e,t)=>{if(!(this instanceof t))throw new TypeError("Cannot call a class as a function")})(0,e),this.register=e=>{-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=e=>{var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=e=>{t.subscribers.push(e)},this.emit=e=>{t.subscribers.forEach((n=>n(e,t.openInstances.slice())))},this.openInstances=[],this.subscribers=[]},r=new n;t.default=r},(e,t,n)=>{var r=n(0),o=n(5),a=n(1);let i=(0,r.d)(),s=o.h,l=(c=i,(...e)=>{let t=(0,o.b)(c),n=(0,o.l)({});return s((()=>t.on("@changed",((t,r)=>{let o=e.some((e=>e in r));o&&n[1]({})}))),[]),(0,o.i)((()=>{let n=t.get(),r={};return e.forEach((e=>{r[e]=n[e]})),r.dispatch=t.dispatch,r}),[n[0]])});var c,u=0;function d(e,t,n,o,a,i){var s,l,c={};for(l in t)"ref"==l?s=t[l]:c[l]=t[l];var d={type:e,props:c,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--u,__i:-1,__u:0,__source:a,__self:i};if("function"==typeof e&&(s=e.defaultProps))for(l in s)void 0===c[l]&&(c[l]=s[l]);return r.i.vnode&&r.i.vnode(d),d}const h=()=>d("svg",{viewBox:"0 0 16 16",width:"35",height:"35","aria-label":"Velo by Wix | Jobs Config",children:d("path",{fill:"#3536e5",d:"M1 8c0 3.9 3.1 7 7 7s7-3.1 7-7-3.1-7-7-7C5.8 1 3.9 2 2.6 3.6c1.5.3 2.6 1.1 3.7 3.1 1.3 2.3 1 4 1.8 4 1.1 0 1.3-3.4 1.6-4.2h1.7c-.1.5-.9 3.9-1.2 4.5-.6 1.1-1.4 1.3-2 1.3-1.6 0-2-1.3-2.3-2.3-.3-1-.6-1.8-1-2.5-1.4-2.6-3.2-2.4-3.3-2.4C1.2 6 1 7 1 8z"})}),p=()=>d("figure",{className:"o",children:[d("a",{href:"/jobs.config/",tabIndex:0,children:d(h,{})}),d("figcaption",{className:"n",children:"Jobs Config"})]});var f="Daily",_="Weekly",m="Monthly",v="Cron",y="#builder",g="#upload",b="#validator",O="jobs",x="functionLocation",w="functionName",C="description",N="executionConfig",k="cronExpression",E="time",S="dayOfWeek",M="dateInMonth";const T=()=>{const e=new URLSearchParams(location.search);if(e.has("v"))try{return atob(e.get("v")||"")}catch{}return""},D=()=>{const e=location.hash.trim().toLowerCase();switch(e){case b:case g:return e;default:return y}},P=e=>e.filter(Boolean).join(" "),j=e=>{e.preventDefault(),e.stopPropagation()},A=e=>"string"===typeof e,I=new Set(["arguments","async","await","break","case","catch","class","const","continue","debugger","default","delete","do","else","enum","eval","export","extends","false","finally","for","function","if","implements","import","in","instanceof","interface","let","new","null","package","private","protected","public","return","static","super","switch","this","throw","true","try","typeof","var","void","while","with","yield"]),L=/^[a-z_$][\da-z_$]*$/i,U=/^([01]\d|2[0-3]):([0-5]\d)$/,R=/[^\w\d.-]/,H=/\.jsw?$/,W=e=>L.test(e)&&!I.has(e),X=e=>A(e)&&U.test(e),F=(e,t)=>""===e||R.test(e)||e.startsWith(".")||e.endsWith(".")||t&&!H.test(e),V=(e,t,n)=>t<1||!F(e,t===n.length-1),$=e=>A(e)&&e.startsWith("/")&&e.split("/").every(V),B=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],z="00:00",Z="0 * * * *",q=B[0],J=e=>{const t=e.trim();return t.startsWith("/")?t:"/"+t},Y=e=>{const t=~~Number(e);return isNaN(t)||t<1?1:t>31?31:t},G=e=>k in e?v:M in e?m:S in e?_:f,K=e=>({id:crypto.randomUUID(),functionLocation:"/filename.js",functionName:"funcName",description:"",time:z,dayOfWeek:q,dateInMonth:1,cronExpression:Z,cronError:"",period:f,isNew:e}),Q=e=>e.jobs.map((e=>{const t=e.executionConfig;return{id:crypto.randomUUID(),functionLocation:e.functionLocation,functionName:e.functionName,description:A(e.description)?e.description:"",time:X(t.time)?t.time:z,dayOfWeek:A(t.dayOfWeek)?t.dayOfWeek:q,dateInMonth:Y(t.dateInMonth),cronExpression:A(t.cronExpression)?t.cronExpression:Z,period:G(t)}})),ee="items",te=()=>{const e=localStorage.getItem(ee);if(null!=e)try{const t=JSON.parse(e);if(Array.isArray(t))return t}catch{localStorage.removeItem(ee)}return[K()]},ne=(e=>{let t={},n={},r={dispatch(e,o){if("@dispatch"!==e&&r.dispatch("@dispatch",[e,o,t[e]]),t[e]){let a;t[e].forEach((i=>{let s=t[e].includes(i)&&i(n,o,r);s&&"function"!==typeof s.then&&(n={...n,...s},a={...a,...s})})),a&&r.dispatch("@changed",a)}},get:()=>n,on:(e,n)=>((t[e]||(t[e]=[])).push(n),()=>{t[e]=t[e].filter((e=>e!==n))})};return e.forEach((e=>{e&&e(r)})),r.dispatch("@init"),r})([e=>{e.on("@init",(()=>({path:D(),validatorValue:T()}))),e.on("router/change",((e,t)=>{if(e.path!==t)return{path:t}})),e.on("validator/input",((e,t)=>({validatorValue:t.length>1e4?t.slice(0,10010):t}))),addEventListener("hashchange",(()=>e.dispatch("router/change",D())))},e=>{e.on("@init",(()=>({items:te()}))),e.on("@changed",((e,{items:t})=>{if(Array.isArray(t))try{localStorage.setItem(ee,JSON.stringify(t))}catch{localStorage.removeItem(ee)}})),e.on("items/new",(({items:e})=>{if(e.length<20)return{items:[K(!0),...e]}})),e.on("items/remove",(({items:e},t)=>({items:e.filter((e=>e.id!==t))}))),e.on("items/clone",(({items:e},t)=>{if(e.length<20){const n=e.findIndex((e=>e.id===t));if(n>-1)return e.splice(n+1,0,{...e[n],id:crypto.randomUUID(),isNew:!0}),{items:e}}})),e.on("items/update",(({items:e},{id:t,name:n,value:r})=>{if(n)return{items:e.map((e=>e.id===t?{...e,[n]:r}:e))}})),e.on("items/replace",((e,t)=>({items:t}))),e.on("items/up",(({items:e},t)=>{const n=e.findIndex((e=>e.id===t));if(n>0)return e.splice(n-1,0,e.splice(n,1)[0]),{items:e}})),e.on("items/down",(({items:e},t)=>{const n=e.findIndex((e=>e.id===t)),r=e.length;if(r>1&&n ne,ae=()=>ne.dispatch,ie=({children:e,path:t})=>{const n=re("path").path===t,r=P(["s",n&&"t"]);return d("li",{className:"r",children:d("a",{href:t,className:r,onClick:e=>{e.preventDefault(),location.hash=t},"aria-current":n?"page":void 0,tabIndex:0,children:e})})},se=()=>d("ul",{className:"q",children:[d(ie,{path:y,children:"Builder"}),d(ie,{path:b,children:"Validator"})]}),le=()=>{const e=(()=>{const[e,t]=(0,o.l)();return(0,o.d)((()=>{fetch("https://api.github.com/repos/shoonia/jobs.config").then((e=>e.json())).then((e=>t(e.stargazers_count)))}),[]),e})();return d("div",{className:"D","data-rh":"Repository on GitHub","data-rh-at":"left",children:[d("a",{className:e?"G F":"H G F",href:"https://github.com/shoonia/jobs.config","aria-label":"Star on GitHub",tabIndex:0,children:d("span",{className:"E",children:"Star"})}),e&&d("a",{className:"I F",href:"https://github.com/shoonia/jobs.config/stargazers","aria-label":e+" stargazers on GitHub",target:"_blank",rel:"noopener noreferrer",tabIndex:0,children:e})]})},ce=()=>d("svg",{width:"20",height:"20",viewBox:"0 0 16 16",fill:"currentcolor",children:d("path",{d:"M8 1.5a6.5 6.5 0 100 13 6.5 6.5 0 000-13zM0 8a8 8 0 1116 0A8 8 0 010 8zm9 3a1 1 0 11-2 0 1 1 0 012 0zm-.25-6.25a.75.75 0 00-1.5 0v3.5a.75.75 0 001.5 0v-3.5z"})}),ue=()=>d("a",{className:"u",href:"https://github.com/shoonia/jobs.config/issues",target:"_blank",rel:"noreferrer","aria-label":"Report issue","data-rh":"Report issue","data-rh-at":"left",tabIndex:0,children:d(ce,{})}),de=()=>d("div",{className:"v",children:d("a",{href:"https://www.wix.com/stands-with-ukraine",className:"w s",children:[d("svg",{"aria-label":"the national flag of Ukraine",viewBox:"0 0 3 2",width:"1.4em",children:[d("path",{d:"M0 0h3v1H0z",fill:"#005bbb"}),d("path",{d:"M0 1h3v1H0z",fill:"#ffd500"})]}),"Support Ukraine"]})}),he=document.getElementById("header"),pe=()=>(0,a.createPortal)(d(r.b,{children:[d("div",{className:"l",children:[d("nav",{className:"o",children:[d(p,{}),d(se,{})]}),d("div",{className:"p o",children:[d(le,{}),d(ue,{})]})]}),d(de,{})]}),he);var fe=n(6),_e=n.n(fe);const me=({target:e})=>{const t=P(["b",!e.value&&"g"]),n=P(["f",!e.validity.valid&&"g"]);return d("div",{className:"j",style:`min-width:${e.offsetWidth}px`,children:d("code",{className:"k",children:[d("span",{className:t,children:"export function "}),d("span",{className:n,children:e.value}),"() {",d("br",{}),d("span",{className:"c",children:" // TODO:"}),d("br",{}),"}"]})})},ve=(e,t)=>t?e.endsWith(".js")?"ma":e.endsWith(".jsw")?"na":"la":"oa",ye=({target:e})=>{const t=(e=>e.replace(/^\//,"").split("/").map(((e,t,n)=>{const r=t===n.length-1;return{path:e,className:P(["ja",ve(e,r),F(e,r)&&"ka"])}})))(e.value).reduceRight(((e,t,n)=>d("ul",{className:n<1?"ha":"ia",children:d("li",{children:[d("div",{className:t.className,children:t.path}),e]})})),null);return d("div",{className:"fa",style:`min-width:${e.offsetWidth}px`,children:[d("div",{className:"ga",children:"Backend"}),t]})},ge=JSON.parse('[{"label":"Every 1 hour","value":"0 * * * *"},{"label":"Every 3 hours","value":"0 */3 * * *"},{"label":"Every Monday","value":"0 0 * * MON"},{"label":"Every Tuesday and Sunday","value":"0 0 * * TUE,SUN"},{"label":"Every Friday at 12:15","value":"15 12 * * FRI"},{"label":"Every month","value":"0 0 1 * *"},{"label":"Every 2 months","value":"0 0 1 */2 *"},{"label":"Every 3 months at 10:30","value":"30 10 1 */3 *"},{"label":"Every year","value":"0 0 1 1 *"},{"label":"Every May and November","value":"0 0 1 MAY,NOV *"},{"label":"Every 4th of July at 18:30","value":"30 18 4 JUL *"}]'),be=({type:e="button",onClick:t,children:n,className:r,...o})=>d("button",{type:e,onClick:t,className:P(["_ Z",r]),...o,children:n}),Oe=({children:e,className:t,...n})=>d("button",{type:"button",className:P(["aa Z",t]),...n,children:e}),xe=({target:e})=>{const{items:t,dispatch:n}=re("items"),r=e.dataset.id||"",{cronExpression:o}=t.find((e=>e.id===r))||{},a=e=>n("items/update",{id:r,name:k,value:e.currentTarget.value}),i=ge.map((e=>{const t=P(["W",o===e.value&&"X"]);return d("li",{className:"V",children:d(Oe,{value:e.value,title:e.value,className:t,onClick:a,children:e.label})},e.value)}));return d("ul",{className:"U",children:[i,d("li",{className:"V",children:d("a",{href:"https://github.com/shoonia/jobs.config/discussions/15",className:"Y",target:"_blank",rel:"noreferrer",tabIndex:0,children:"You can request an example"})})]})},we=_e()({createElement:r.h,Component:r.a,createRef:r.f}),Ce={show:500,hide:100},Ne=ge.map((e=>d("option",{value:e.value,children:e.label},e.value))),ke=()=>{const{items:e}=re("items"),t=(0,o.a)((e=>{switch(e.dataset.name){case x:return d(ye,{target:e});case w:return d(me,{target:e});case k:return d(xe,{target:e})}return null}),[e]);return d(r.b,{children:[d(we,{events:!0,delay:Ce}),d(we,{persist:!0,attribute:"data-fl",events:{focus:!0,click:!0,hover:!1},className:"h",onRenderContent:t}),d("datalist",{id:"cron-examples",children:Ne})]})},Ee="wa",Se="Aa",Me="Ga Fa",Te="Ka Ga Fa",De=(0,a.createContext)(K()),Pe=(0,a.memo)(De.Provider,((e,t)=>e.value===t.value)),je=()=>(0,a.useContext)(De),Ae=e=>{if("Enter"===e.key||" "===e.key){const t=e.currentTarget;t.firstChild instanceof HTMLElement&&t.firstChild.click()}},Ie=({name:e,value:t,period:n})=>d("label",{className:"Da",tabIndex:0,onKeyDown:Ae,children:[d("input",{type:"radio",name:e,checked:t===n,"data-name":"period",value:t,className:"za"}),d("span",{className:"ya",children:t})]}),Le=()=>{const{id:e,period:t}=je();return d("fieldset",{className:Ee,children:d("div",{className:"Ba",children:[d(Ie,{name:e,value:f,period:t}),d(Ie,{name:e,value:_,period:t}),d(Ie,{name:e,value:m,period:t}),d(Ie,{name:e,value:v,period:t})]})})},Ue="Oa",Re=()=>d("svg",{width:"24",height:"24",fill:"#8e21b1",children:d("path",{d:"M17 17a3 3 0 01-3 3H9a3 3 0 01-3-3V7H5V6h13v1h-1v10zM9 9h1v7H9V9zm2 0h1v7h-1V9zm2 0h1v7h-1V9zm-6 8a2 2 0 002 2h5a2 2 0 002-2V7H7v10zm6-11V5h-3v1H9V5a1 1 0 011-1h3a1 1 0 011 1v1h-1z"})}),He=()=>d("svg",{width:"24",height:"24",fill:"#116dff",children:d("path",{d:"M6 8V6a1 1 0 011-1h12a1 1 0 011 1v10a1 1 0 01-1 1h-2v2a1 1 0 01-1 1H4a1 1 0 01-1-1V9a1 1 0 011-1h2zm10 1H4v2h12V9zm0 10v-7H4v7h12zM7 8h9a1 1 0 011 1v7h2V6H7v2z"})}),We=({up:e})=>d("svg",{width:"24",height:"24",fill:"#116dff",children:d("path",{d:e?"M7.41 7.84L12 12.42l4.59-4.58L18 9.25l-6 6-6-6z":"M16.59 16.16 12 11.58l-4.59 4.58L6 14.75l6-6 6 6z"})}),Xe=()=>{const{id:e}=je(),{dispatch:t,items:n}=re("items"),r=n.length,o=n.findIndex((t=>t.id===e));return d("div",{className:"Na",children:[d("div",{children:[d(Oe,{"aria-label":"Move up",onClick:()=>t("items/up",e),className:Ue,"data-rh":"Move up","data-rh-at":"top",disabled:o<1,children:d(We,{up:!1})}),d(Oe,{"aria-label":"Move down",onClick:()=>t("items/down",e),className:Ue,"data-rh":"Move down","data-rh-at":"top",disabled:o>=r-1,children:d(We,{up:!0})})]}),d("div",{children:[d(Oe,{"aria-label":"remove",onClick:()=>t("items/remove",e),className:Ue,"data-rh":"Remove","data-rh-at":"top",children:d(Re,{})}),d(Oe,{"aria-label":"clone",onClick:()=>t("items/clone",e),className:Ue,"data-rh":"Clone","data-rh-at":"top",disabled:r>=20,children:d(He,{})})]})]})},Fe=({top:e,children:t})=>d("label",{className:"Ca",children:[d("span",{className:"Ea",children:e}),t]}),Ve=e=>{const t=(0,o.k)(null);return(0,o.d)((()=>{const n=t.current;if(n){const t=()=>{const t=n.value.trim();n.value!==t&&(n.value=t),n.setCustomValidity(e(t)?"":"error")};n.addEventListener("input",t),t()}}),[]),t},$e=()=>{const e=Ve($),t=Ve(W),{functionLocation:n,functionName:r,description:o}=je();return d("fieldset",{className:Ee,children:[d("div",{className:Se,children:[d(Fe,{top:"Function Location",children:d("input",{ref:e,type:"text","data-name":x,"data-fl":!0,"data-fl-at":"bottom",className:Me,value:n,placeholder:"Function Location",spellcheck:!1,required:!0})}),d("span",{className:"Ja",children:"/"}),d(Fe,{top:"Function Name",children:d("input",{ref:t,type:"text","data-name":w,"data-fl":!0,"data-fl-at":"bottom",className:Me,value:r,placeholder:"Function Name",spellcheck:!1,required:!0})})]}),d("div",{className:Se,children:d(Fe,{top:"Description",children:d("input",{type:"text",value:o,className:"Ia Fa","data-name":C,placeholder:"Description"})})})]})};var Be=n(7),ze=n(11);const Ze=/^every (\d+ )?(second|minute)s?\b/i,qe=e=>[!0,e],Je=e=>{try{const t=(0,ze.toString)(e,{use24HourTimeFormat:!0});return Ze.test(t)?qe(t+"\n\nError: You can schedule your job to run at intervals as short as one hour apart, but not shorter. If you define your job to run more frequently, the job will be ignored."):e.includes("?")?qe(t+".\n\nError: Velo Job Scheduler does not support the blank syntax with (?) symbol."):e.includes("#")?qe(t+".\n\nError: Velo Job Scheduler does not support the hash (#) symbol."):(0,Be.isValidCron)(e,{seconds:!1,allowBlankDay:!1,allowSevenAsSunday:!0,alias:!0})?[!1,t]:qe(t+".\n\nError: Velo Job Scheduler does not support this syntax.")}catch(e){return qe(e+"")}},Ye=()=>{const e=ae(),{id:t,cronExpression:n}=je(),[r,a]=Je(n);return(0,o.d)((()=>{e("items/update",{id:t,name:"cronError",value:r?a:""})}),[r]),d("div",{className:P(["Pa",r&&"Qa"]),children:a})},Ge=()=>{const{cronExpression:e,cronError:t=""}=je(),n=(0,o.k)(null);return(0,o.d)((()=>{n.current?.setCustomValidity(t)}),[t]),d(Fe,{top:"Cron Expression",children:d("input",{ref:n,type:"text",className:Te,value:e,"data-name":k,spellcheck:!1,list:"cron-examples",required:!0})})},Ke=()=>{const{time:e}=je();return d(Fe,{top:"The time of day the job runs",children:d("input",{type:"time",value:e,"data-name":"time",className:Te,required:!0})})},Qe=()=>d("svg",{width:"24",height:"24",fill:"currentcolor",children:d("path",{d:"M6 12.5c0-.828.666-1.5 1.5-1.5.828 0 1.5.666 1.5 1.5 0 .828-.666 1.5-1.5 1.5-.828 0-1.5-.666-1.5-1.5zm5 0c0-.828.666-1.5 1.5-1.5.828 0 1.5.666 1.5 1.5 0 .828-.666 1.5-1.5 1.5-.828 0-1.5-.666-1.5-1.5zm5 0c0-.828.666-1.5 1.5-1.5.828 0 1.5.666 1.5 1.5 0 .828-.666 1.5-1.5 1.5-.828 0-1.5-.666-1.5-1.5z"})}),et=()=>{const{id:e}=je();return d(Fe,{top:"Cron Examples",children:d(Oe,{className:"Ra","aria-haspopup":"true","aria-label":"Show examples","data-fl":!0,"data-fl-at":"right","data-name":k,"data-id":e,children:d(Qe,{})})})},tt=B.map((e=>d("option",{value:e,children:e},e))),nt=()=>{const{dayOfWeek:e}=je();return d(Fe,{top:"The day of the week the job runs",children:d("select",{className:"Ha Ga Fa","data-name":S,value:e,children:tt})})},rt=()=>{const{dateInMonth:e}=je();return d(Fe,{top:"The day of the month the job runs",children:d("input",{type:"number",min:1,max:31,step:1,value:e+"","data-name":M,className:Te,required:!0})})},ot=()=>{const{period:e}=je(),t=e===v,n=d(t?Ge:Ke,{}),r=t&&d(et,{}),o=t&&d(Ye,{}),a=e===_&&d(nt,{}),i=e===m&&d(rt,{});return d("fieldset",{className:Ee,children:[d("div",{className:Se,children:[n,d("span",{className:"Ja"}),r,a,i]}),o]})},at=({id:e,isNew:t})=>{const n=ae();return(0,o.d)((()=>{if(t){const t=setTimeout((()=>{n("items/update",{id:e,name:"isNew",value:void 0})}),500);return()=>clearTimeout(t)}}),[]),d("form",{action:"#",className:P(["va",t&&"xa"]),onInput:t=>{const r=t.target;n("items/update",{id:e,name:r.dataset.name,value:r.value})},onSubmit:j,children:[d($e,{}),d(Le,{}),d(ot,{}),d(Xe,{})]})},it=()=>{const{items:e}=re("items"),t=e.map((e=>d("li",{children:d(Pe,{value:e,children:d(at,{id:e.id,isNew:e.isNew})})},e.id)));return d("ul",{className:"ua",children:t})},st=({children:e})=>d("div",{className:"La",children:e}),lt=({children:e,label:t})=>d("span",{"data-rh":t,"data-rh-at":"top",className:"Ma",children:e}),ct=()=>d("svg",{width:"24",height:"24",fill:"currentcolor",children:d("path",{d:"M12 12V6h-1v6H5v1h6v6h1v-6h6v-1z"})}),ut=()=>d("svg",{width:"24",height:"24",fill:"currentcolor",children:d("path",{d:"M5 13v4a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1v-4h1v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-4h1Zm6-6.293L8.854 8.854a.5.5 0 1 1-.708-.708L11.5 4.793l3.354 3.353a.5.5 0 0 1-.708.708L12 6.707V16h-1V6.707Z"})}),dt=()=>{const{dispatch:e,items:t}=re("items");return d(st,{children:[d(lt,{label:"You can configure up to 20 jobs",children:d(be,{onClick:()=>{e("items/new")},disabled:t.length>=20,children:[d(ct,{})," New Job"]})}),d(lt,{label:"Upload your config",children:d(be,{onClick:()=>{location.hash=g},"aria-label":"Upload your config",children:d(ut,{})})})]})},ht=()=>d("div",{children:[d(dt,{}),d(it,{})]}),pt=[{regex:/^[\s[\]{}:,]+/},{regex:/^"(?:\\.|[^"\\])*"/,className:"e"},{regex:/^-?\d+(?:\.\d+)?(?:e[+-]?\d+)?/,className:"d"}],ft=({input:e})=>{const t=[];for(;e;)for(const n of pt){const r=n.regex.exec(e);if(Array.isArray(r)){const[o]=r,a=n.className?d("span",{className:n.className,children:o}):o;t.push(a),e=e.slice(o.length);break}}return d("code",{children:t})},_t="function"===typeof showSaveFilePicker,mt=()=>d("svg",{width:"24",height:"24",fill:"currentcolor",children:d("path",{d:"M5 13v4a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1v-4h1v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-4h1Zm6 .293V5h1v8.293l2.146-2.147a.5.5 0 0 1 .708.708L11.5 15.207l-3.354-3.353a.5.5 0 0 1 .708-.708L11 13.293Z"})}),vt=({label:e,data:t})=>_t?d(be,{onClick:()=>(async e=>{const t=await showSaveFilePicker({suggestedName:"jobs.config",startIn:"desktop"}),n=await t.createWritable();await n.write(e),await n.close()})(t),"aria-label":e,children:d(mt,{})}):d("a",{href:"data:application/json,"+encodeURIComponent(t),className:"_ Z",download:"jobs.config",type:"application/json","aria-label":e,tabIndex:0,children:d(mt,{})}),yt=()=>d("svg",{width:"24",height:"24",fill:"currentcolor",children:d("path",{d:"M19 5a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-2v2a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h2V6a1 1 0 0 1 1-1h10ZM8 9H6v10h10v-2H9a1 1 0 0 1-1-1V9Zm11-3H9v10h10V6Z"})}),gt=()=>{const{items:e}=re("items"),t=(0,o.k)(null),n=(e=>{let t;const n={jobs:e.map((e=>({functionLocation:J(e.functionLocation),functionName:e.functionName.trim(),description:""!==e.description?e.description:t,executionConfig:{time:e.period!==v?X(e.time)?e.time:z:t,dayOfWeek:e.period===_?e.dayOfWeek:t,dateInMonth:e.period===m?Y(e.dateInMonth):t,cronExpression:e.period===v?e.cronExpression.trim():t}})))};return JSON.stringify(n,null,2)})(e),r=(e=>"// Jobs Config Generator\n// https://wix.to/NDAQn6c\n\n"+e)(n);return d("div",{className:"N",children:[d(st,{children:[d(lt,{label:"Copy to clipboard",children:d(be,{onClick:async()=>{if(await navigator.clipboard.writeText(r),t.current){const e=getSelection(),n=document.createRange();n.selectNodeContents(t.current),e?.removeAllRanges(),e?.addRange(n)}},children:[d(yt,{}),"Copy Code"]})}),d(lt,{label:"Download a file",children:d(vt,{label:"Download a file",data:r})})]}),d("pre",{ref:t,className:"O",children:d(ft,{input:n})})]})},bt=Symbol(),Ot=Symbol(),xt=()=>"",wt=(e,t,n)=>e.slice(t,n).replace(/\S/g," "),Ct=(e,t)=>{let n=t-1,r=0;for(;"\\"===e[n];)n-=1,r+=1;return!!(r%2)};var Nt=n(15);const kt=(e,t,n)=>n<0?-1:e.lastIndexOf(t,n);function Et(e,t,{oneBased:n=!1}={}){if(t<0||t>=e.length&&e.length>0)throw new RangeError("Index out of bounds");const r=((e,t)=>{const n=kt(e,"\n",t-1),r=t-n-1;let o=0;for(let t=n;t>=0;t=kt(e,"\n",t-1))o++;return{line:o,column:r}})(e,t);return n?{line:r.line+1,column:r.column+1}:r}class St extends Error{name="JSONError";fileName;codeFrame;rawCodeFrame;#e;constructor(e){super(),this.#e=e,Error.captureStackTrace?.(this,St)}get message(){const{fileName:e,codeFrame:t}=this;return`${this.#e}${e?" in "+e:""}${t?`\n\n${t}\n`:""}`}set message(e){this.#e=e}}const Mt=(e,t,n=!0)=>(0,Nt.a)(e,{start:t},{highlightCode:n});function Tt(e,t,n){let r,o;"string"===typeof t&&(n=t,t=void 0);try{return JSON.parse(e,t)}catch(e){r=e.message}e?(o=((e,t)=>{const n=t.match(/in JSON at position (? \d+)(?: \(line (? \d+) column (? \d+)\))?$/);if(!n)return;let{index:r,line:o,column:a}=n.groups;if(o&&a)return{line:Number(o),column:Number(a)};if(r=Number(r),r===e.length){const{line:t,column:n}=Et(e,e.length-1,{oneBased:!0});return{line:t,column:n+1}}return Et(e,r,{oneBased:!0})})(e,r),r=(e=>e.replace(/(?<=^Unexpected token )(? ')?(.)\k/,((e,t,n)=>{return`"${n}"(${r=n,`\\u{${r.codePointAt(0).toString(16)}}`})`;var r})))(r)):r+=" while parsing empty string";const a=new St(r);throw a.fileName=n,o&&(a.codeFrame=Mt(e,o),a.rawCodeFrame=Mt(e,o,!1)),a}const Dt=e=>{try{return[null,Tt(((e,{whitespace:t=!0,trailingCommas:n=!1}={})=>{if("string"!==typeof e)throw new TypeError(`Expected argument \`jsonString\` to be a \`string\`, got \`${typeof e}\``);const r=t?wt:xt;let o=!1,a=!1,i=0,s="",l="",c=-1;for(let t=0;td("p",{children:`Incorrect type of property "${t}" at "jobs[${e}]". Expected "${n}"`}),jt=[x,w,N],At=[...jt,C],It=[S,M],Lt=[...It,E],Ut=[...Lt,k],Rt=e=>"object"===typeof e&&!Array.isArray(e)&&null!==e,Ht=e=>[!0,e],Wt=(e,t)=>{for(const n in e)if(!t.includes(n))return[!0,n];return[!1]},Xt=(e,t)=>{for(const n of t)if(!(n in e))return[!0,n];return[!1]},Ft=e=>{const t='", "';if(!Rt(e))return Ht(d(r.b,{children:[d("p",{children:'Incorrect type. Expected "object"'}),d("p",{children:"The jobs.config file must contains a JSON object"})]}));if(!(O in e))return Ht(d(r.b,{children:[d("p",{children:'Missing property "jobs"'}),d("p",{children:'The jobs object must contains one top-level key named "jobs"'})]}));const n=Object.keys(e);if(n.length>1){const e=n.filter((e=>e!==O)).join(t);return Ht(d(r.b,{children:[d("p",{children:`Unknown property "${e}"`}),d("p",{children:'The jobs object must contains one top-level key named "jobs"'})]}))}if(!Array.isArray(e.jobs))return Ht(d(r.b,{children:[d("p",{children:'Incorrect type. Expected "array"'}),d("p",{children:'The top-level key "jobs" must be an array'})]}));const{jobs:o}=e;let a=o.length;if(a>20)return Ht(d(r.b,{children:[d("p",{children:`Too many scheduled jobs. (${a})`}),d("p",{children:"You can configure up to 20 jobs"})]}));if(a<1)return Ht(d("p",{children:"No scheduled jobs"}));if(!o.every(Rt))return Ht(d(r.b,{children:[d("p",{children:'Incorrect type. Expected "object"'}),d("p",{children:'The "jobs" array must contain only objects, each of which represents a scheduled job'})]}));for(;0 t===e)))return Ht(d(r.b,{children:[d("p",{children:`Incorrect value of "dayOfWeek" at "jobs[${a}].executionConfig"`}),d("p",{children:`Error: unknown value "${e}". Allowed one of "${B.join(t)}"`})]}))}if(M in h){const{dateInMonth:e}=h;if(!Number.isInteger(e))return Ht(d(Pt,{index:a,name:M,expected:"number"}));if(e<1||e>31)return Ht(d(r.b,{children:[d("p",{children:`Invalid "dateInMonth" at "jobs[${a}].executionConfig"`}),d("p",{children:'The value of the "dateInMonth" property must be a number between 1 and 31'})]}))}if(k in h&&Lt.some((e=>e in h)))return Ht(d(r.b,{children:[d("p",{children:`Mutual exclusion property at "jobs[${a}].executionConfig"`}),d("p",{children:`Error: "cronExpression" omit all of "${Lt.join(t)}" properties`}),d("p",{children:d("em",{children:'When using a cron expression to specify when a job runs, the "executionConfig" object contains a single property, named "cronExpression", whose value is a valid cron expression'})})]}));if(It.every((e=>e in h)))return Ht(d(r.b,{children:[d("p",{children:`Mutual exclusion property at "jobs[${a}].executionConfig"`}),d("p",{children:'Error: "dateInMonth" omit the "dayOfWeek" property'})]}))}return[!1]};var Vt=n(8),$t=n.n(Vt);$t().setAppElement("#app");const Bt=$t(),zt=({close:e,label:t,children:n})=>d(Bt,{isOpen:!0,onRequestClose:e,contentLabel:t,overlayClassName:"ba",className:"ea",bodyOpenClassName:"ca",htmlOpenClassName:"da",children:n}),Zt=({onInput:e,value:t})=>d("textarea",{onInput:e,className:"M",value:t,placeholder:"{}",spellcheck:!1,"data-gramm":"false"}),qt=({className:e,onLoad:t})=>d("label",{className:P(["J",e]),"aria-label":"Upload your file","data-rh":"Upload your file","data-rh-at":"left",children:[d("input",{type:"file",className:"K",onChange:e=>{return(n=e.currentTarget.files,new Promise(((e,t)=>{if(n?.length){const r=new FileReader;r.onload=()=>{A(r.result)?e(r.result):t()},r.onerror=t,r.readAsText(n[0])}else t()}))).then(t);var n}}),d(ut,{})]}),Jt=()=>d("svg",{width:"24",height:"24",fill:"currentcolor",children:d("path",{d:"M10.94 12 6 7.06A.75.75 0 1 1 7.06 6L12 10.94 16.94 6A.75.75 0 0 1 18 7.06L13.06 12 18 16.94A.75.75 0 0 1 16.94 18L12 13.06 7.06 18A.75.75 0 0 1 6 16.94L10.94 12Z"})}),Yt=()=>d("svg",{width:"24",height:"24",fill:"currentcolor",children:d("path",{d:"M9.5 14.44 16.94 7A.75.75 0 0 1 18 8.06l-8.5 8.5-3.5-3.5A.75.75 0 0 1 7.06 12l2.44 2.44Z"})}),Gt=()=>{location.hash=y},Kt=()=>{const e=(0,o.k)(""),t=ae(),n=e=>{if(""===e.trim())return Gt();const[n,r]=Dt(e);if(!n){const[e]=Ft(r);if(!e)return t("items/replace",Q(r)),Gt()}t("validator/input",e),location.hash=b};return d(zt,{label:"Upload form",close:Gt,children:d("form",{onSubmit:t=>{j(t),n(e.current)},className:"P",children:[d(Oe,{onClick:Gt,className:"Q","aria-label":"close modal",children:d(Jt,{})}),d("h2",{children:"Upload your config"}),d("div",{className:"S",children:[d(qt,{className:"T",onLoad:n}),d(Zt,{onInput:t=>{e.current=t.currentTarget.value}})]}),d("div",{className:"R",children:[d(be,{type:"submit",children:[d(Yt,{}),"Upload Config"]}),d(be,{onClick:Gt,children:[d(Jt,{}),"Cancel"]})]})]})})},Qt=()=>{const{path:e}=re("path"),t=e===g&&d(Kt,{});return d("div",{className:"L",children:[d(ht,{}),d(gt,{}),t]})},en=({children:e,error:t=!1})=>d("div",{className:"pa",children:d("pre",{className:t?"ra qa":"sa qa",children:e})}),tn=()=>d("svg",{width:"18",height:"18",fill:"currentcolor",children:d("path",{d:"M12.204 4.299 14.5 6.637a1 1 0 0 1-.005 1.407L7.707 14.84H4v-3.705l6.78-6.84a1 1 0 0 1 1.424.004Zm-.418 5.043-2.31-2.31L5 11.546v2.295h2.293l4.493-4.5Zm.707-.708 1.295-1.296L11.49 5l-1.31 1.322 2.313 2.312Z"})}),nn=({config:e})=>{const t=ae();return d(be,{onClick:()=>{t("items/replace",Q(e)),location.hash=y},children:[d(tn,{}),"Edit Config"]})},rn=({value:e})=>{if(""===e.trim())return d(en,{children:"No input"});if(e.length>1e4)return d(en,{error:!0,children:"The file size is too large for the jobs.config."});const[t,n]=Dt(e);if(null!==t)return d(en,{error:!0,children:t});const[r,o]=Ft(n);return d(en,r?{error:!0,children:o}:{children:[d("p",{children:"Valid jobs.config"}),d(nn,{config:n})]})},on=()=>d("svg",{width:"24",height:"24",fill:"currentcolor",children:d("path",{d:"M9.854 14.854a.5.5 0 0 1-.708-.708l5-5a.5.5 0 0 1 .708.708l-5 5Zm2.337-4.948a.5.5 0 0 1-.983.18c-.195-1.058.144-2.145.938-2.94l2-2c1.346-1.345 3.39-1.318 4.708 0a3.34 3.34 0 0 1 0 4.708l-2 2c-.793.792-1.878 1.132-2.935.94a.5.5 0 0 1 .179-.985c.734.134 1.488-.102 2.048-.663l2-2a2.34 2.34 0 0 0 0-3.292c-.931-.932-2.342-.95-3.292 0l-2 2c-.562.561-.798 1.317-.663 2.052Zm-.405 4.182a.5.5 0 0 1 .984-.181c.194 1.058-.145 2.146-.939 2.94l-2 2c-1.345 1.345-3.389 1.318-4.707 0a3.34 3.34 0 0 1 0-4.707l2-2c.793-.793 1.878-1.132 2.935-.94a.5.5 0 0 1-.18.984c-.733-.133-1.487.102-2.048.663l-2 2a2.34 2.34 0 0 0 0 3.293c.932.932 2.343.95 3.293 0l2-2c.562-.562.797-1.317.662-2.052Z"})}),an=({className:e})=>{const t=oe(),[n,r]=(0,o.l)(!1),a=n?"Copied!":"Copy link to validation results";return d(Oe,{onClick:async()=>{const{validatorValue:e}=t.get(),n=(e=>{const t=new URL(location.href);try{return t.searchParams.set("v",btoa(e)),t.href}catch{}})(e);n&&(history.pushState(null,"",n),await navigator.clipboard.writeText(n),r(!0),setTimeout(r,2e3,!1))},className:e,"aria-label":a,"data-rh":a,"data-rh-at":"left",children:d(on,{})})},sn=()=>{const{validatorValue:e,dispatch:t}=re("validatorValue");return d("section",{className:"x",children:d("div",{className:"z",children:[d("h2",{className:"y",children:"Jobs Config Validator"}),d("form",{action:"#",onSubmit:j,className:"A",children:[d(Zt,{onInput:e=>t("validator/input",e.currentTarget.value),value:e}),d("aside",{className:"B",children:[d(an,{className:"C"}),d(qt,{className:"C",onLoad:e=>t("validator/input",e)})]})]}),d(rn,{value:e})]})})};function ln(e,t){window.dataLayer.push(arguments)}window.dataLayer??=[],(0,r.j)(d(i.Provider,{value:ne,children:d((()=>{const e=(()=>{const{path:e}=re("path");return e===b?sn:Qt})();return d(r.b,{children:[d(pe,{}),d(e,{}),d(ke,{})]})}),{})}),document.getElementById("root")),ln("js",new Date),ln("config","G-2W35Q7B86C")},(e,t,n)=>{t.a=(e,t,n={})=>{const o=(n.highlightCode||n.forceColor)&&(0,r.shouldHighlight)(n),a=c(n.forceColor),i=(e=>({gutter:e.gray,marker:s(e.red,e.bold),message:s(e.red,e.bold)}))(a),l=(e,t)=>o?e(t):t,d=e.split(u),{start:h,end:p,markerLines:f}=((e,t,n)=>{const r=Object.assign({column:0,line:-1},e.start),o=Object.assign({},r,e.end),{linesAbove:a=2,linesBelow:i=3}=n||{},s=r.line,l=r.column,c=o.line,u=o.column;let d=Math.max(s-(a+1),0),h=Math.min(t.length,c+i);-1===s&&(d=0),-1===c&&(h=t.length);const p=c-s,f={};if(p)for(let e=0;e<=p;e++){const n=e+s;f[n]=!l||(0===e?[l,t[n-1].length-l+1]:e===p?[0,u]:[0,t[n-e].length])}else f[s]=l===u?!l||[l,0]:[l,u-l];return{start:d,end:h,markerLines:f}})(t,d,n),_=t.start&&"number"===typeof t.start.column,m=(p+"").length;let v=(o?(0,r.default)(e,n):e).split(u,p).slice(h,p).map(((e,t)=>{const r=h+1+t,o=` ${(" "+r).slice(-m)} |`,a=f[r],s=!f[r+1];if(a){let t="";if(Array.isArray(a)){const r=e.slice(0,Math.max(a[0]-1,0)).replace(/[^\t]/g," "),c=a[1]||1;t="\n "+l(i.gutter,o.replace(/\d/g," "))+" "+r+l(i.marker,"^").repeat(c),s&&n.message&&(t+=" "+l(i.message,n.message))}return""+l(i.marker,">")+l(i.gutter,o)+(e.length>0?" "+e:"")+t}return` ${l(i.gutter,o)}${e.length>0?" "+e:""}`})).join("\n");return n.message&&!_&&(v=`${" ".repeat(m+1)}${n.message}\n${v}`),o?a.reset(v):v};var r=n(16),o=((e,t)=>{if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=a(!0);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.hasOwn(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r})(n(3));function a(e){var t=new WeakMap,n=new WeakMap;return(a=e=>e?n:t)(e)}const i=o.default,s=(e,t)=>n=>e(t(n));let l;function c(e){return e?(null!=l||(l=(0,o.createColors)(!0)),l):i}const u=/\r\n|[\n\r\u2028\u2029]/},e=>{e.exports={shouldHighlight(){}}},(e,t,n)=>{t.__esModule=!0,t.bodyOpenClassName=t.portalClassName=void 0;var r=Object.assign,o=(()=>{function e(e,t){for(var n=0;n (n&&e(t.prototype,n),r&&e(t,r),t)})(),a=n(1),i=h(a),s=h(n(1)),l=(h(n(3)),h(n(9))),c=(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwn(e,n)&&(t[n]=e[n]);return t.default=e,t})(n(12)),u=n(4),d=(h(u),n(23));function h(e){return e&&e.__esModule?e:{default:e}}function p(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=t.portalClassName="ReactModalPortal",_=t.bodyOpenClassName="ReactModal__Body--open",m=u.canUseDOM&&void 0!==s.default.createPortal,v=e=>document.createElement(e),y=()=>m?s.default.createPortal:s.default.unstable_renderSubtreeIntoContainer;function g(e){return e()}var b=function(e){function t(){var e,n,o;((e,t)=>{if(!(this instanceof t))throw new TypeError("Cannot call a class as a function")})(0,t);for(var a=arguments.length,c=Array(a),u=0;u{!m&&s.default.unmountComponentAtNode(o.node);var e=g(o.props.parentSelector);e&&e.contains(o.node)&&e.removeChild(o.node)},o.portalRef=e=>{o.portal=e},o.renderPortal=e=>{var n=y()(o,i.default.createElement(l.default,r({defaultStyles:t.defaultStyles},e)),o.node);o.portalRef(n)},p(o,n)}return((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(e,t)})(t,e),o(t,[{key:"componentDidMount",value:function(){u.canUseDOM&&(m||(this.node=v("div")),this.node.className=this.props.portalClassName,g(this.props.parentSelector).appendChild(this.node),!m&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:g(e.parentSelector),nextParent:g(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(u.canUseDOM){var r=this.props,o=r.isOpen,a=r.portalClassName;e.portalClassName!==a&&(this.node.className=a);var i=n.prevParent,s=n.nextParent;s!==i&&(i.removeChild(this.node),s.appendChild(this.node)),(e.isOpen||o)&&!m&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(u.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return u.canUseDOM&&m?(!this.node&&m&&(this.node=v("div")),y()(i.default.createElement(l.default,r({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:e=>{c.setElement(e)}}]),t}(a.Component);b.defaultProps={isOpen:!1,portalClassName:f,bodyOpenClassName:_,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:()=>document.body,overlayElement:(e,t)=>i.default.createElement("div",e,t),contentElement:(e,t)=>i.default.createElement("div",e,t)},b.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,d.polyfill)(b),t.default=b},(e,t,n)=>{t.__esModule=!0,t.resetState=()=>{a=[]},t.log=()=>{},t.handleBlur=l,t.handleFocus=c,t.markForFocusLater=()=>{a.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];try{return void(0!==a.length&&a.pop().focus({preventScroll:e}))}catch(e){}},t.popWithoutFocus=()=>{a.length>0&&a.pop()},t.setupScopedFocus=e=>{i=e,window.addEventListener?(window.addEventListener("blur",l,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",l),document.attachEvent("onFocus",c))},t.teardownScopedFocus=()=>{i=null,window.addEventListener?(window.removeEventListener("blur",l),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",l),document.detachEvent("onFocus",c))};var r,o=(r=n(2))&&r.__esModule?r:{default:r},a=[],i=null,s=!1;function l(){s=!0}function c(){if(s){if(s=!1,!i)return;setTimeout((()=>{i.contains(document.activeElement)||((0,o.default)(i)[0]||i).focus()}),0)}}},e=>{e.exports=e=>e},e=>{e.exports={canUseDOM:!0}},(e,t)=>{t.__esModule=!0,t.resetState=()=>{var e=document.getElementsByTagName("html")[0];for(var t in n)o(e,n[t]);var a=document.body;for(var i in r)o(a,r[i]);n={},r={}},t.log=()=>{};var n={},r={};function o(e,t){e.classList.remove(t)}t.add=(e,t)=>{return o=e.classList,a="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach((e=>{((e,t)=>{e[t]||(e[t]=0),e[t]+=1})(a,e),o.add(e)}));var o,a},t.remove=(e,t)=>{return o=e.classList,a="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach((e=>{((e,t)=>{e[t]&&(e[t]-=1)})(a,e),0===a[e]&&o.remove(e)}));var o,a}},(e,t,n)=>{t.__esModule=!0,t.resetState=()=>{for(var e=[a,i],t=0;t {for(var e=[a,i],t=0;t {a||i||((a=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),a.style.position="absolute",a.style.opacity="0",a.setAttribute("tabindex","0"),a.addEventListener("focus",l),(i=a.cloneNode()).addEventListener("focus",l)),(s=t).length>0?(document.body.firstChild!==a&&document.body.insertBefore(a,document.body.firstChild),document.body.lastChild!==i&&document.body.appendChild(i)):(a.parentElement&&a.parentElement.removeChild(a),i.parentElement&&i.parentElement.removeChild(i))}))},e=>{e.exports={polyfill(){}}}],t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.m=e,(()=>{var e=[];n.O=(t,r,o,a)=>{if(!r){var i=1/0;for(u=0;u =a)&&Object.keys(n.O).every((e=>n.O[e](r[l])))?r.splice(l--,1):(s=!1,a0&&e[u-1][2]>a;u--)e[u]=e[u-1];e[u]=[r,o,a]}})(),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 e={0:0,1:0};n.O.j=t=>0===e[t]})();var r=n.O(void 0,[1],(()=>n(14)));r=n.O(r); \ No newline at end of file