aiware-js 2.55.0 → 2.55.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/js-core.esm.js +1 -1
  2. package/js-core.esm.js.gz +0 -0
  3. package/js-core.esm11.js +1 -1
  4. package/js-core.esm11.js.gz +0 -0
  5. package/js-core.esm12.js +1 -1
  6. package/js-core.esm12.js.gz +0 -0
  7. package/js-core.esm13.js +2 -2
  8. package/js-core.esm13.js.gz +0 -0
  9. package/js-core.esm15.js +1 -1
  10. package/js-core.esm15.js.gz +0 -0
  11. package/js-core.esm18.js +1 -1
  12. package/js-core.esm18.js.gz +0 -0
  13. package/js-core.esm19.js +1 -1
  14. package/js-core.esm19.js.gz +0 -0
  15. package/js-core.esm2.js +2 -2
  16. package/js-core.esm2.js.gz +0 -0
  17. package/js-core.esm20.js +1 -1
  18. package/js-core.esm20.js.gz +0 -0
  19. package/js-core.esm21.js +1 -1
  20. package/js-core.esm21.js.gz +0 -0
  21. package/js-core.esm23.js +1 -1
  22. package/js-core.esm23.js.gz +0 -0
  23. package/js-core.esm28.js +1 -1
  24. package/js-core.esm28.js.gz +0 -0
  25. package/js-core.esm29.js +1 -1
  26. package/js-core.esm29.js.gz +0 -0
  27. package/js-core.esm3.js +1 -1
  28. package/js-core.esm3.js.gz +0 -0
  29. package/js-core.esm30.js +1 -1
  30. package/js-core.esm30.js.gz +0 -0
  31. package/js-core.esm32.js +1 -1
  32. package/js-core.esm32.js.gz +0 -0
  33. package/js-core.esm36.js +1 -1
  34. package/js-core.esm36.js.gz +0 -0
  35. package/js-core.esm38.js +1 -1
  36. package/js-core.esm38.js.gz +0 -0
  37. package/js-core.esm39.js +1 -1
  38. package/js-core.esm39.js.gz +0 -0
  39. package/js-core.esm41.js +1 -1
  40. package/js-core.esm41.js.gz +0 -0
  41. package/js-core.esm45.js +1 -1
  42. package/js-core.esm45.js.gz +0 -0
  43. package/js-core.esm46.js +1 -1
  44. package/js-core.esm46.js.gz +0 -0
  45. package/js-core.esm48.js +1 -1
  46. package/js-core.esm48.js.gz +0 -0
  47. package/js-core.esm49.js +1 -1
  48. package/js-core.esm49.js.gz +0 -0
  49. package/js-core.esm5.js +1 -1
  50. package/js-core.esm5.js.gz +0 -0
  51. package/js-core.esm50.js +1 -1
  52. package/js-core.esm50.js.gz +0 -0
  53. package/js-core.esm52.js +1 -1
  54. package/js-core.esm52.js.gz +0 -0
  55. package/js-core.esm6.js +1 -1
  56. package/js-core.esm6.js.gz +0 -0
  57. package/js-core.esm60.js +1 -1
  58. package/js-core.esm60.js.gz +0 -0
  59. package/js-core.esm63.js +1 -1
  60. package/js-core.esm63.js.gz +0 -0
  61. package/js-core.esm65.js +1 -1
  62. package/js-core.esm65.js.gz +0 -0
  63. package/js-core.esm66.js +1 -1
  64. package/js-core.esm66.js.gz +0 -0
  65. package/js-core.esm67.js +1 -1
  66. package/js-core.esm67.js.gz +0 -0
  67. package/js-core.esm69.js +1 -1
  68. package/js-core.esm69.js.gz +0 -0
  69. package/js-core.esm7.js +1 -1
  70. package/js-core.esm7.js.gz +0 -0
  71. package/js-core.esm70.js +1 -1
  72. package/js-core.esm70.js.gz +0 -0
  73. package/js-core.esm71.js +1 -1
  74. package/js-core.esm71.js.gz +0 -0
  75. package/js-core.esm73.js +1 -1
  76. package/js-core.esm73.js.gz +0 -0
  77. package/js-core.esm74.js +1 -1
  78. package/js-core.esm74.js.gz +0 -0
  79. package/js-core.esm75.js +1 -1
  80. package/js-core.esm75.js.gz +0 -0
  81. package/js-core.esm76.js +1 -1
  82. package/js-core.esm76.js.gz +0 -0
  83. package/js-core.esm78.js +1 -1
  84. package/js-core.esm78.js.gz +0 -0
  85. package/js-core.esm81.js +1 -1
  86. package/js-core.esm81.js.gz +0 -0
  87. package/js-core.esm84.js +1 -1
  88. package/js-core.esm84.js.gz +0 -0
  89. package/js-core.esm9.js +1 -1
  90. package/js-core.esm9.js.gz +0 -0
  91. package/js-core.esm91.js +1 -1
  92. package/js-core.esm91.js.gz +0 -0
  93. package/js-core.esm92.js +1 -1
  94. package/js-core.esm92.js.gz +0 -0
  95. package/js-core.esm93.js +1 -1
  96. package/js-core.esm93.js.gz +0 -0
  97. package/js-core.esm95.js +1 -1
  98. package/js-core.esm95.js.gz +0 -0
  99. package/js-core.esm96.js +1 -1
  100. package/js-core.esm96.js.gz +0 -0
  101. package/js-core.umd.js +4 -4
  102. package/js-core.umd.js.gz +0 -0
  103. package/locales/es.json +1 -1
  104. package/locales/fr.json +1 -1
  105. package/package.json +1 -1
package/js-core.esm81.js CHANGED
@@ -1,4 +1,4 @@
1
- import{j as jsxRuntime,cY as commonjsGlobal$1,X as createSlice,a2 as lodash,Y as combineReducers,a8 as createSelector,bc as rootApiSelector,F as graphEndpointSelector,G as sessionTokenSelector,bV as AIWareCacheProvider,aK as AIWareThemeProvider,Z as useSelector,r as react,ao as Box,fl as img$a,dH as selectIsFullscreenEnabled,B as all,dC as selectIsOLPEnabled,M as userSelector,aq as unmountPanel,ar as mountPanel,a1 as hidePanel,an as CircularProgress,C as takeLatest$1,dX as mountPanelForResponse,bj as store$4,E as select,H as call$l,I as put,a4 as preferredLanguageSelector,a5 as showMessage,a6 as MessageSeverity,a3 as baseGraphQLApiWithError,U as baseGraphQLApi,a7 as AIWareFormatMessage}from"./js-core.esm.js";import{c as createSvgIcon,m as makeStyles,k as FormattedMessage,p as DynamicModuleLoader,A as AIWareIntlProvider,F as FormControl,S as Select,h as Button,T as Typography,U as MenuItem,bE as Delete,bh as MoreVert,Y as Hide,_ as Menu,aT as Tabs,aU as tabsClasses,aV as Tab,D as Divider}from"./js-core.esm5.js";import{g as getDataCenterBrowseModule,s as selectors$1,a as actions$a,i as index}from"./js-core.esm50.js";import{g as getProcessingCenterContentTemplatesModule,D as Delete$1,s as selectContentTemplatesToSave}from"./js-core.esm76.js";import"./js-core.esm51.js";import{T as TextField,e as InputLabel,f as Skeleton,n as Stack,A as Avatar,d as Tooltip,I as IconButton,r as Stepper,u as Step,w as StepLabel,L as LoadingButton,q as debounce_1,b as FormControlLabel,C as Checkbox,M as Search,a8 as InfiniteLoader,a9 as FixedSizeList,c as CheckCircle}from"./js-core.esm6.js";import{d as default_1$1}from"./js-core.esm33.js";import{d as default_1}from"./js-core.esm61.js";import{v as v4}from"./js-core.esm56.js";import{A as Autocomplete}from"./js-core.esm29.js";import{R as RadioGroup,f as Radio}from"./js-core.esm2.js";import{A as AddCircleOutline}from"./js-core.esm82.js";import{C as ContentCopy}from"./js-core.esm55.js";import{u as useDispatch}from"./js-core.esm7.js";var match$2,version,set$1,get,store,STATE,FolderOpen=createSvgIcon(jsxRuntime.exports.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V8h16v10z"}),"FolderOpen"),papaparse_min={exports:{}},Papa=(!function(){var e;e=function s(){var c,i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==i?i:{},a=!i.document&&!!i.postMessage,o=i.IS_PAPA_WORKER||!1,l={},u=0,$={parse:function(e,t){var r,n=(t=t||{}).dynamicTyping||!1;if(G(n)&&(t.dynamicTypingFunction=n,n={}),t.dynamicTyping=n,t.transform=!!G(t.transform)&&t.transform,!t.worker||!$.WORKERS_SUPPORTED)return n=null,$.NODE_STREAM_INPUT,"string"==typeof e?(e=65279===(r=e).charCodeAt(0)?r.slice(1):r,n=new(t.download?p:h)(t)):!0===e.readable&&G(e.read)&&G(e.on)?n=new m(t):(i.File&&e instanceof File||e instanceof Object)&&(n=new g(t)),n.stream(e);(n=!!$.WORKERS_SUPPORTED&&(r=i.URL||i.webkitURL||null,n=s.toString(),r=$.BLOB_URL||($.BLOB_URL=r.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",n,")();"],{type:"text/javascript"}))),(n=new i.Worker(r)).onmessage=f,n.id=u++,l[n.id]=n)).userStep=t.step,n.userChunk=t.chunk,n.userComplete=t.complete,n.userError=t.error,t.step=G(t.step),t.chunk=G(t.chunk),t.complete=G(t.complete),t.error=G(t.error),delete t.worker,n.postMessage({input:e,config:t,workerId:n.id})},unparse:function(e,t){var s=!1,f=!0,y=",",S="\r\n",i='"',a=i+i,r=!1,n=null,o=!1;if("object"==typeof t){if("string"!=typeof t.delimiter||$.BAD_DELIMITERS.filter(function(e){return-1!==t.delimiter.indexOf(e)}).length||(y=t.delimiter),"boolean"!=typeof t.quotes&&"function"!=typeof t.quotes&&!Array.isArray(t.quotes)||(s=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(r=t.skipEmptyLines),"string"==typeof t.newline&&(S=t.newline),"string"==typeof t.quoteChar&&(i=t.quoteChar),"boolean"==typeof t.header&&(f=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");n=t.columns}void 0!==t.escapeChar&&(a=t.escapeChar+i),("boolean"==typeof t.escapeFormulae||t.escapeFormulae instanceof RegExp)&&(o=t.escapeFormulae instanceof RegExp?t.escapeFormulae:/^[=+\-@\t\r].*$/)}var l=new RegExp(z(i),"g");if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return c(null,e,r);if("object"==typeof e[0])return c(n||Object.keys(e[0]),e,r)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||n),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),c(e.fields||[],e.data||[],r);throw new Error("Unable to serialize unrecognized input");function c(e,t,r){var n="",s=("string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t)),Array.isArray(e)&&0<e.length),i=!Array.isArray(t[0]);if(s&&f){for(var a=0;a<e.length;a++)0<a&&(n+=y),n+=b(e[a],a);0<t.length&&(n+=S)}for(var o=0;o<t.length;o++){var l=(s?e:t[o]).length,c=!1,u=s?0===Object.keys(t[o]).length:0===t[o].length;if(r&&!s&&(c="greedy"===r?""===t[o].join("").trim():1===t[o].length&&0===t[o][0].length),"greedy"===r&&s){for(var d=[],p=0;p<l;p++){var g=i?e[p]:p;d.push(t[o][g])}c=""===d.join("").trim()}if(!c){for(var h=0;h<l;h++){0<h&&!u&&(n+=y);var m=s&&i?e[h]:h;n+=b(t[o][m],h)}o<t.length-1&&(!r||0<l&&!u)&&(n+=S)}}return n}function b(e,t){var r,n;return null==e?"":e.constructor===Date?JSON.stringify(e).slice(1,25):(r=!1,o&&"string"==typeof e&&o.test(e)&&(e="'"+e,r=!0),n=e.toString().replace(l,a),(r=r||!0===s||"function"==typeof s&&s(e,t)||Array.isArray(s)&&s[t]||function(e,t){for(var r=0;r<t.length;r++)if(-1<e.indexOf(t[r]))return!0;return!1}(n,$.BAD_DELIMITERS)||-1<n.indexOf(y)||" "===n.charAt(0)||" "===n.charAt(n.length-1))?i+n+i:n)}}};function d(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var t=T(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new r(t),(this._handle.streamer=this)._config=t}.call(this,e),this.parseChunk=function(e,t){this.isFirstChunk&&G(this._config.beforeFirstChunk)&&void 0!==(r=this._config.beforeFirstChunk(e))&&(e=r),this.isFirstChunk=!1,this._halted=!1;var r=this._partialLine+e,e=(this._partialLine="",this._handle.parse(r,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){var n=e.meta.cursor,r=(this._finished||(this._partialLine=r.substring(n-this._baseIndex),this._baseIndex=n),e&&e.data&&(this._rowCount+=e.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview);if(o)i.postMessage({results:e,workerId:$.WORKER_ID,finished:r});else if(G(this._config.chunk)&&!t){if(this._config.chunk(e,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=e=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(e.data),this._completeResults.errors=this._completeResults.errors.concat(e.errors),this._completeResults.meta=e.meta),this._completed||!r||!G(this._config.complete)||e&&e.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),r||e&&e.meta.paused||this._nextChunk(),e}this._halted=!0},this._sendError=function(e){G(this._config.error)?this._config.error(e):o&&this._config.error&&i.postMessage({workerId:$.WORKER_ID,error:e,finished:!1})}}function p(e){var n;(e=e||{}).chunkSize||(e.chunkSize=$.RemoteChunkSize),d.call(this,e),this._nextChunk=a?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(n=new XMLHttpRequest,this._config.withCredentials&&(n.withCredentials=this._config.withCredentials),a||(n.onload=b(this._chunkLoaded,this),n.onerror=b(this._chunkError,this)),n.open(this._config.downloadRequestBody?"POST":"GET",this._input,!a),this._config.downloadRequestHeaders){var e,t=this._config.downloadRequestHeaders;for(e in t)n.setRequestHeader(e,t[e])}var r;this._config.chunkSize&&(r=this._start+this._config.chunkSize-1,n.setRequestHeader("Range","bytes="+this._start+"-"+r));try{n.send(this._config.downloadRequestBody)}catch(t){this._chunkError(t.message)}a&&0===n.status&&this._chunkError()}},this._chunkLoaded=function(){var e;4===n.readyState&&(n.status<200||400<=n.status?this._chunkError():(this._start+=this._config.chunkSize||n.responseText.length,this._finished=!this._config.chunkSize||this._start>=(null===(e=n.getResponseHeader("Content-Range"))?-1:parseInt(e.substring(e.lastIndexOf("/")+1))),this.parseChunk(n.responseText)))},this._chunkError=function(e){e=n.statusText||e;this._sendError(new Error(e))}}function g(e){(e=e||{}).chunkSize||(e.chunkSize=$.LocalChunkSize),d.call(this,e);var r,n,s="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,s?((r=new FileReader).onload=b(this._chunkLoaded,this),r.onerror=b(this._chunkError,this)):r=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input,t=(this._config.chunkSize&&(t=Math.min(this._start+this._config.chunkSize,this._input.size),e=n.call(e,this._start,t)),r.readAsText(e,this._config.encoding));s||this._chunkLoaded({target:{result:t}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(r.error)}}function h(e){var r;d.call(this,e=e||{}),this.stream=function(e){return r=e,this._nextChunk()},this._nextChunk=function(){var e,t;if(!this._finished)return t=this._config.chunkSize,r=t?(e=r.substring(0,t),r.substring(t)):(e=r,""),this._finished=!r,this.parseChunk(e)}}function m(e){d.call(this,e=e||{});var t=[],r=!0,n=!1;this.pause=function(){d.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){d.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){n&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):r=!0},this._streamData=b(function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),r&&(r=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}},this),this._streamError=b(function(e){this._streamCleanUp(),this._sendError(e)},this),this._streamEnd=b(function(){this._streamCleanUp(),n=!0,this._streamData("")},this),this._streamCleanUp=b(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function r(y){var s,i,a,t,l=Math.pow(2,53),c=-l,u=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,d=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,r=this,n=0,p=0,o=!1,e=!1,g=[],h={data:[],errors:[],meta:{}};function S(e){return"greedy"===y.skipEmptyLines?""===e.join("").trim():1===e.length&&0===e[0].length}function m(){if(h&&a&&(b("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+$.DefaultDelimiter+"'"),a=!1),y.skipEmptyLines&&(h.data=h.data.filter(function(e){return!S(e)})),f()){if(h)if(Array.isArray(h.data[0])){for(var e=0;f()&&e<h.data.length;e++)h.data[e].forEach(t);h.data.splice(0,1)}else h.data.forEach(t);function t(e,t){G(y.transformHeader)&&(e=y.transformHeader(e,t)),g.push(e)}}function r(e,t){for(var r,n,s=y.header?{}:[],i=0;i<e.length;i++){var a=i,o=e[i];y.header&&(a=i>=g.length?"__parsed_extra":g[i]),y.transform&&(o=y.transform(o,a)),n=o,r=r=a,y.dynamicTypingFunction&&void 0===y.dynamicTyping[r]&&(y.dynamicTyping[r]=y.dynamicTypingFunction(r)),o=!0===(y.dynamicTyping[r]||y.dynamicTyping)?"true"===n||"TRUE"===n||"false"!==n&&"FALSE"!==n&&(function(e){if(u.test(e)){e=parseFloat(e);if(c<e&&e<l)return 1}}(n)?parseFloat(n):d.test(n)?new Date(n):""===n?null:n):n,"__parsed_extra"===a?(s[a]=s[a]||[],s[a].push(o)):s[a]=o}return y.header&&(i>g.length?b("FieldMismatch","TooManyFields","Too many fields: expected "+g.length+" fields but parsed "+i,p+t):i<g.length&&b("FieldMismatch","TooFewFields","Too few fields: expected "+g.length+" fields but parsed "+i,p+t)),s}var n;h&&(y.header||y.dynamicTyping||y.transform)&&(n=1,!h.data.length||Array.isArray(h.data[0])?(h.data=h.data.map(r),n=h.data.length):h.data=r(h.data,0),y.header&&h.meta&&(h.meta.fields=g),p+=n)}function f(){return y.header&&0===g.length}function b(e,t,r,n){e={type:e,code:t,message:r};void 0!==n&&(e.row=n),h.errors.push(e)}G(y.step)&&(t=y.step,y.step=function(e){h=e,f()?m():(m(),0!==h.data.length&&(n+=e.data.length,y.preview&&n>y.preview?i.abort():(h.data=h.data[0],t(h,r))))}),this.parse=function(e,t,r){var n=y.quoteChar||'"',n=(y.newline||(y.newline=function(e,t){e=e.substring(0,1048576);var t=new RegExp(z(t)+"([^]*?)"+z(t),"gm"),r=(e=e.replace(t,"")).split("\r"),t=e.split("\n"),e=1<t.length&&t[0].length<r[0].length;if(1===r.length||e)return"\n";for(var n=0,s=0;s<r.length;s++)"\n"===r[s][0]&&n++;return n>=r.length/2?"\r\n":"\r"}(e,n)),a=!1,y.delimiter?G(y.delimiter)&&(y.delimiter=y.delimiter(e),h.meta.delimiter=y.delimiter):((n=function(e,t,r,n,s){var i,a,o;s=y.delimitersToGuess||[",","\t","|",";",$.RECORD_SEP,$.UNIT_SEP];for(var l=0;l<s.length;l++){for(var c,u=s[l],d=0,p=0,g=0,h=void 0,m=new x({comments:n,delimiter:u,newline:t,preview:10}).parse(e),f=0;f<m.data.length;f++)r&&S(m.data[f])?g++:(p+=c=m.data[f].length,void 0!==h?0<c&&(d+=Math.abs(c-h),h=c):h=c);0<m.data.length&&(p/=m.data.length-g),(void 0===a||d<=a)&&(void 0===o||o<p)&&1.99<p&&(a=d,i=u,o=p)}return{successful:!!(y.delimiter=i),bestDelimiter:i}}(e,y.newline,y.skipEmptyLines,y.comments)).successful?y.delimiter=n.bestDelimiter:(a=!0,y.delimiter=$.DefaultDelimiter),h.meta.delimiter=y.delimiter),T(y));return y.preview&&y.header&&n.preview++,s=e,i=new x(n),h=i.parse(s,t,r),m(),o?{meta:{paused:!0}}:h||{meta:{paused:!1}}},this.paused=function(){return o},this.pause=function(){o=!0,i.abort(),s=G(y.chunk)?"":s.substring(i.getCharIndex())},this.resume=function(){r.streamer._halted?(o=!1,r.streamer.parseChunk(s,!0)):setTimeout(r.resume,3)},this.aborted=function(){return e},this.abort=function(){e=!0,i.abort(),h.meta.aborted=!0,G(y.complete)&&y.complete(h),s=""}}function z(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function x(_){var M,L=(_=_||{}).delimiter,N=_.newline,k=_.comments,F=_.step,U=_.preview,B=_.fastMode,q=M=void 0===_.quoteChar||null===_.quoteChar?'"':_.quoteChar;if(void 0!==_.escapeChar&&(q=_.escapeChar),("string"!=typeof L||-1<$.BAD_DELIMITERS.indexOf(L))&&(L=","),k===L)throw new Error("Comment character same as delimiter");!0===k?k="#":("string"!=typeof k||-1<$.BAD_DELIMITERS.indexOf(k))&&(k=!1),"\n"!==N&&"\r"!==N&&"\r\n"!==N&&(N="\n");var H=0,W=!1;this.parse=function(r,t,n){if("string"!=typeof r)throw new Error("Input must be a string");var s=r.length,e=L.length,i=N.length,a=k.length,o=G(F),l=[],c=[],u=[],d=H=0;if(!r)return D();if(_.header&&!t){var p,g,h=r.split(N)[0].split(L),m=[],f={},y=!1;for(p in h){var S=h[p],b=S=G(_.transformHeader)?_.transformHeader(S,p):S,$=f[S]||0;for(0<$&&(y=!0,b=S+"_"+$),f[S]=$+1;m.includes(b);)b=b+"_"+$;m.push(b)}y&&((g=r.split(N))[0]=m.join(L),r=g.join(N))}if(B||!1!==B&&-1===r.indexOf(M)){for(var x=r.split(N),T=0;T<x.length;T++){if(u=x[T],H+=u.length,T!==x.length-1)H+=N.length;else if(n)return D();if(!k||u.substring(0,a)!==k){if(o){if(l=[],v(u.split(L)),A(),W)return D()}else v(u.split(L));if(U&&U<=T)return l=l.slice(0,U),D(!0)}}return D()}for(var E=r.indexOf(L,H),R=r.indexOf(N,H),I=new RegExp(z(q)+z(M),"g"),j=r.indexOf(M,H);;)if(r[H]!==M)if(k&&0===u.length&&r.substring(H,H+a)===k){if(-1===R)return D();H=R+i,R=r.indexOf(N,H),E=r.indexOf(L,H)}else if(-1!==E&&(E<R||-1===R))u.push(r.substring(H,E)),H=E+e,E=r.indexOf(L,H);else{if(-1===R)break;if(u.push(r.substring(H,R)),w(R+i),o&&(A(),W))return D();if(U&&l.length>=U)return D(!0)}else for(j=H,H++;;){if(-1===(j=r.indexOf(M,j+1)))return n||c.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:l.length,index:H}),P();if(j===s-1)return P(r.substring(H,j).replace(I,M));if(M!==q||r[j+1]!==q){if(M===q||0===j||r[j-1]!==q){-1!==E&&E<j+1&&(E=r.indexOf(L,j+1));var C=O(-1===(R=-1!==R&&R<j+1?r.indexOf(N,j+1):R)?E:Math.min(E,R));if(r.substr(j+1+C,e)===L){u.push(r.substring(H,j).replace(I,M)),r[H=j+1+C+e]!==M&&(j=r.indexOf(M,H)),E=r.indexOf(L,H),R=r.indexOf(N,H);break}C=O(R);if(r.substring(j+1+C,j+1+C+i)===N){if(u.push(r.substring(H,j).replace(I,M)),w(j+1+C+i),E=r.indexOf(L,H),j=r.indexOf(M,H),o&&(A(),W))return D();if(U&&l.length>=U)return D(!0);break}c.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:l.length,index:H}),j++}}else j++}return P();function v(e){l.push(e),d=H}function O(e){var t=0;return t=-1!==e&&(e=r.substring(j+1,e))&&""===e.trim()?e.length:t}function P(e){return n||(void 0===e&&(e=r.substring(H)),u.push(e),H=s,v(u),o&&A()),D()}function w(e){H=e,v(u),u=[],R=r.indexOf(N,H)}function D(e){return{data:l,errors:c,meta:{delimiter:L,linebreak:N,aborted:W,truncated:!!e,cursor:d+(t||0)}}}function A(){F(D()),l=[],c=[]}},this.abort=function(){W=!0},this.getCharIndex=function(){return H}}function f(e){var t=e.data,r=l[t.workerId],n=!1;if(t.error)r.userError(t.error,t.file);else if(t.results&&t.results.data){var s={abort:function(){n=!0,y(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:S,resume:S};if(G(r.userStep)){for(var i=0;i<t.results.data.length&&(r.userStep({data:t.results.data[i],errors:t.results.errors,meta:t.results.meta},s),!n);i++);delete t.results}else G(r.userChunk)&&(r.userChunk(t.results,s,t.file),delete t.results)}t.finished&&!n&&y(t.workerId,t.results)}function y(e,t){var r=l[e];G(r.userComplete)&&r.userComplete(t),r.terminate(),delete l[e]}function S(){throw new Error("Not implemented.")}function T(e){if("object"!=typeof e||null===e)return e;var t,r=Array.isArray(e)?[]:{};for(t in e)r[t]=T(e[t]);return r}function b(e,t){return function(){e.apply(t,arguments)}}function G(e){return"function"==typeof e}return $.RECORD_SEP=String.fromCharCode(30),$.UNIT_SEP=String.fromCharCode(31),$.BYTE_ORDER_MARK="\ufeff",$.BAD_DELIMITERS=["\r","\n",'"',$.BYTE_ORDER_MARK],$.WORKERS_SUPPORTED=!a&&!!i.Worker,$.NODE_STREAM_INPUT=1,$.LocalChunkSize=10485760,$.RemoteChunkSize=5242880,$.DefaultDelimiter=",",$.Parser=x,$.ParserHandle=r,$.NetworkStreamer=p,$.FileStreamer=g,$.StringStreamer=h,$.ReadableStreamStreamer=m,i.jQuery&&((c=i.jQuery).fn.parse=function(a){var r=a.config||{},o=[];return this.each(function(e){if("INPUT"!==c(this).prop("tagName").toUpperCase()||"file"!==c(this).attr("type").toLowerCase()||!i.FileReader||!this.files||0===this.files.length)return!0;for(var t=0;t<this.files.length;t++)o.push({file:this.files[t],inputElem:this,instanceConfig:c.extend({},r)})}),e(),this;function e(){if(0!==o.length){var e,t,r,n=o[0];if(G(a.before)){var s=a.before(n.file,n.inputElem);if("object"==typeof s){if("abort"===s.action)return e=n.file,t=n.inputElem,r=s.reason,G(a.error)&&a.error({name:"AbortError"},e,t,r);if("skip"===s.action)return l();"object"==typeof s.config&&(n.instanceConfig=c.extend(n.instanceConfig,s.config))}else if("skip"===s)return l()}var i=n.instanceConfig.complete;n.instanceConfig.complete=function(e){G(i)&&i(e,n.file,n.inputElem),l()},$.parse(n.file,n.instanceConfig)}else G(a.complete)&&a.complete()}function l(){o.splice(0,1),e()}}),o&&(i.onmessage=function(e){var e=e.data;void 0===$.WORKER_ID&&e&&($.WORKER_ID=e.workerId),"string"==typeof e.input?i.postMessage({workerId:$.WORKER_ID,results:$.parse(e.input,e.config),finished:!0}):(i.File&&e.input instanceof File||e.input instanceof Object)&&(e=$.parse(e.input,e.config))&&i.postMessage({workerId:$.WORKER_ID,results:e,finished:!0})}),(p.prototype=Object.create(d.prototype)).constructor=p,(g.prototype=Object.create(d.prototype)).constructor=g,(h.prototype=Object.create(h.prototype)).constructor=h,(m.prototype=Object.create(d.prototype)).constructor=m,$},papaparse_min.exports=e()}(),papaparse_min.exports),commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},check=function(e){return e&&e.Math==Math&&e},global$n=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof commonjsGlobal&&commonjsGlobal)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor={},fails$m=function(e){try{return!!e()}catch(e){return!0}},fails$l=fails$m,descriptors=!fails$m(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),fails$k=fails$m,functionBindNative=!fails$m(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),NATIVE_BIND$3=functionBindNative,call$k=Function.prototype.call,functionCall=NATIVE_BIND$3?call$k.bind(call$k):function(){return call$k.apply(call$k,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$3=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$3&&!$propertyIsEnumerable.call({1:2},1),createPropertyDescriptor$5=(objectPropertyIsEnumerable.f=NASHORN_BUG?function(e){e=getOwnPropertyDescriptor$3(this,e);return!!e&&e.enumerable}:$propertyIsEnumerable,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}),NATIVE_BIND$2=functionBindNative,FunctionPrototype$2=Function.prototype,call$j=FunctionPrototype$2.call,uncurryThisWithBind=NATIVE_BIND$2&&FunctionPrototype$2.bind.bind(call$j,call$j),functionUncurryThis=NATIVE_BIND$2?uncurryThisWithBind:function(e){return function(){return call$j.apply(e,arguments)}},uncurryThis$q=functionUncurryThis,toString$a=uncurryThis$q({}.toString),stringSlice$8=uncurryThis$q("".slice),classofRaw$2=function(e){return stringSlice$8(toString$a(e),8,-1)},uncurryThis$p=functionUncurryThis,fails$j=fails$m,classof$8=classofRaw$2,$Object$4=Object,split$3=functionUncurryThis("".split),indexedObject=fails$j(function(){return!$Object$4("z").propertyIsEnumerable(0)})?function(e){return"String"==classof$8(e)?split$3(e,""):$Object$4(e)}:$Object$4,isNullOrUndefined$5=function(e){return null==e},isNullOrUndefined$4=isNullOrUndefined$5,$TypeError$e=TypeError,requireObjectCoercible$6=function(e){if(isNullOrUndefined$4(e))throw $TypeError$e("Can't call method on "+e);return e},IndexedObject$1=indexedObject,requireObjectCoercible$5=requireObjectCoercible$6,toIndexedObject$5=function(e){return IndexedObject$1(requireObjectCoercible$5(e))},documentAll$2="object"==typeof document&&document.all,IS_HTMLDDA=void 0===documentAll$2&&void 0!==documentAll$2,documentAll_1={all:documentAll$2,IS_HTMLDDA:IS_HTMLDDA},$documentAll$1=documentAll_1,documentAll$1=$documentAll$1.all,isCallable$o=$documentAll$1.IS_HTMLDDA?function(e){return"function"==typeof e||e===documentAll$1}:function(e){return"function"==typeof e},isCallable$n=isCallable$o,$documentAll=documentAll_1,documentAll=$documentAll.all,isObject$a=$documentAll.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:isCallable$n(e)||e===documentAll}:function(e){return"object"==typeof e?null!==e:isCallable$n(e)},global$m=global$n,isCallable$m=isCallable$o,aFunction=function(e){return isCallable$m(e)?e:void 0},getBuiltIn$7=function(e,t){return arguments.length<2?aFunction(global$m[e]):global$m[e]&&global$m[e][t]},uncurryThis$o=functionUncurryThis,objectIsPrototypeOf=functionUncurryThis({}.isPrototypeOf),engineUserAgent="undefined"!=typeof navigator&&String(navigator.userAgent)||"",global$l=global$n,userAgent$3=engineUserAgent,process$4=global$l.process,Deno$1=global$l.Deno,versions=process$4&&process$4.versions||Deno$1&&Deno$1.version,v8=versions&&versions.v8,engineV8Version=version=!(version=v8?0<(match$2=v8.split("."))[0]&&match$2[0]<4?1:+(match$2[0]+match$2[1]):version)&&userAgent$3&&(!(match$2=userAgent$3.match(/Edge\/(\d+)/))||74<=match$2[1])&&(match$2=userAgent$3.match(/Chrome\/(\d+)/))?+match$2[1]:version,V8_VERSION$1=engineV8Version,fails$i=fails$m,symbolConstructorDetection=!!Object.getOwnPropertySymbols&&!fails$i(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1&&V8_VERSION$1<41}),NATIVE_SYMBOL$2=symbolConstructorDetection,useSymbolAsUid=symbolConstructorDetection&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,getBuiltIn$6=getBuiltIn$7,isCallable$l=isCallable$o,isPrototypeOf$4=objectIsPrototypeOf,USE_SYMBOL_AS_UID$1=useSymbolAsUid,$Object$3=Object,isSymbol$2=useSymbolAsUid?function(e){return"symbol"==typeof e}:function(e){var t=getBuiltIn$6("Symbol");return isCallable$l(t)&&isPrototypeOf$4(t.prototype,$Object$3(e))},$String$4=String,tryToString$4=function(e){try{return $String$4(e)}catch(e){return"Object"}},isCallable$k=isCallable$o,tryToString$3=tryToString$4,$TypeError$d=TypeError,aCallable$8=function(e){if(isCallable$k(e))return e;throw $TypeError$d(tryToString$3(e)+" is not a function")},aCallable$7=aCallable$8,isNullOrUndefined$3=isNullOrUndefined$5,getMethod$4=function(e,t){e=e[t];return isNullOrUndefined$3(e)?void 0:aCallable$7(e)},call$i=functionCall,isCallable$j=isCallable$o,isObject$9=isObject$a,$TypeError$c=TypeError,ordinaryToPrimitive$1=function(e,t){var r,n;if("string"===t&&isCallable$j(r=e.toString)&&!isObject$9(n=call$i(r,e)))return n;if(isCallable$j(r=e.valueOf)&&!isObject$9(n=call$i(r,e)))return n;if("string"!==t&&isCallable$j(r=e.toString)&&!isObject$9(n=call$i(r,e)))return n;throw $TypeError$c("Can't convert object to primitive value")},shared$4={exports:{}},isPure=!1,global$k=global$n,defineProperty$6=Object.defineProperty,defineGlobalProperty$3=function(t,r){try{defineProperty$6(global$k,t,{value:r,configurable:!0,writable:!0})}catch(e){global$k[t]=r}return r},global$j=global$n,defineGlobalProperty$2=defineGlobalProperty$3,SHARED="__core-js_shared__",store$3=global$n[SHARED]||defineGlobalProperty$2(SHARED,{}),sharedStore=store$3,store$2=sharedStore,requireObjectCoercible$4=((shared$4.exports=function(e,t){return store$2[e]||(store$2[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.29.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE",source:"https://github.com/zloirock/core-js"}),requireObjectCoercible$6),$Object$2=Object,toObject$5=function(e){return $Object$2(requireObjectCoercible$4(e))},uncurryThis$n=functionUncurryThis,toObject$4=toObject$5,hasOwnProperty=functionUncurryThis({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function(e,t){return hasOwnProperty(toObject$4(e),t)},uncurryThis$m=functionUncurryThis,id=0,postfix=Math.random(),toString$9=uncurryThis$m(1..toString),uid$2=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$9(++id+postfix,36)},global$i=global$n,shared$3=shared$4.exports,hasOwn$d=hasOwnProperty_1,uid$1=uid$2,NATIVE_SYMBOL$1=symbolConstructorDetection,USE_SYMBOL_AS_UID=useSymbolAsUid,Symbol$2=global$i.Symbol,WellKnownSymbolsStore=shared$3("wks"),createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$2.for||Symbol$2:Symbol$2&&Symbol$2.withoutSetter||uid$1,wellKnownSymbol$k=function(e){return hasOwn$d(WellKnownSymbolsStore,e)||(WellKnownSymbolsStore[e]=NATIVE_SYMBOL$1&&hasOwn$d(Symbol$2,e)?Symbol$2[e]:createWellKnownSymbol("Symbol."+e)),WellKnownSymbolsStore[e]},call$h=functionCall,isObject$8=isObject$a,isSymbol$1=isSymbol$2,getMethod$3=getMethod$4,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$j=wellKnownSymbol$k,$TypeError$b=TypeError,TO_PRIMITIVE=wellKnownSymbol$k("toPrimitive"),toPrimitive$1=function(e,t){if(!isObject$8(e)||isSymbol$1(e))return e;var r=getMethod$3(e,TO_PRIMITIVE);if(r){if(r=call$h(r,e,t=void 0===t?"default":t),!isObject$8(r)||isSymbol$1(r))return r;throw $TypeError$b("Can't convert object to primitive value")}return ordinaryToPrimitive(e,t=void 0===t?"number":t)},toPrimitive=toPrimitive$1,isSymbol=isSymbol$2,toPropertyKey$3=function(e){e=toPrimitive(e,"string");return isSymbol(e)?e:e+""},global$h=global$n,isObject$7=isObject$a,document$3=global$n.document,EXISTS$1=isObject$7(document$3)&&isObject$7(document$3.createElement),documentCreateElement$2=function(e){return EXISTS$1?document$3.createElement(e):{}},DESCRIPTORS$e=descriptors,fails$h=fails$m,createElement$1=documentCreateElement$2,ie8DomDefine=!descriptors&&!fails$m(function(){return 7!=Object.defineProperty(createElement$1("div"),"a",{get:function(){return 7}}).a}),DESCRIPTORS$d=descriptors,call$g=functionCall,propertyIsEnumerableModule$1=objectPropertyIsEnumerable,createPropertyDescriptor$4=createPropertyDescriptor$5,toIndexedObject$4=toIndexedObject$5,toPropertyKey$2=toPropertyKey$3,hasOwn$c=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,objectDefineProperty=(objectGetOwnPropertyDescriptor.f=DESCRIPTORS$d?$getOwnPropertyDescriptor$1:function(e,t){if(e=toIndexedObject$4(e),t=toPropertyKey$2(t),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$1(e,t)}catch(e){}if(hasOwn$c(e,t))return createPropertyDescriptor$4(!call$g(propertyIsEnumerableModule$1.f,e,t),e[t])},{}),DESCRIPTORS$c=descriptors,fails$g=fails$m,v8PrototypeDefineBug=descriptors&&fails$m(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),isObject$6=isObject$a,$String$3=String,$TypeError$a=TypeError,anObject$g=function(e){if(isObject$6(e))return e;throw $TypeError$a($String$3(e)+" is not an object")},DESCRIPTORS$b=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$f=anObject$g,toPropertyKey$1=toPropertyKey$3,$TypeError$9=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable",DESCRIPTORS$a=(objectDefineProperty.f=DESCRIPTORS$b?V8_PROTOTYPE_DEFINE_BUG$1?function(e,t,r){var n;return anObject$f(e),t=toPropertyKey$1(t),anObject$f(r),"function"==typeof e&&"prototype"===t&&"value"in r&&WRITABLE in r&&!r[WRITABLE]&&(n=$getOwnPropertyDescriptor(e,t))&&n[WRITABLE]&&(e[t]=r.value,r={configurable:(CONFIGURABLE$1 in r?r:n)[CONFIGURABLE$1],enumerable:(ENUMERABLE in r?r:n)[ENUMERABLE],writable:!1}),$defineProperty(e,t,r)}:$defineProperty:function(e,t,r){if(anObject$f(e),t=toPropertyKey$1(t),anObject$f(r),IE8_DOM_DEFINE)try{return $defineProperty(e,t,r)}catch(e){}if("get"in r||"set"in r)throw $TypeError$9("Accessors not supported");return"value"in r&&(e[t]=r.value),e},descriptors),definePropertyModule$4=objectDefineProperty,createPropertyDescriptor$3=createPropertyDescriptor$5,createNonEnumerableProperty$5=DESCRIPTORS$a?function(e,t,r){return definePropertyModule$4.f(e,t,createPropertyDescriptor$3(1,r))}:function(e,t,r){return e[t]=r,e},makeBuiltIn$3={exports:{}},DESCRIPTORS$9=descriptors,hasOwn$b=hasOwnProperty_1,FunctionPrototype$1=Function.prototype,getDescriptor=DESCRIPTORS$9&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$b(FunctionPrototype$1,"name"),PROPER=EXISTS&&"something"===function(){}.name,CONFIGURABLE=EXISTS&&(!DESCRIPTORS$9||getDescriptor(FunctionPrototype$1,"name").configurable),functionName={EXISTS:EXISTS,PROPER:PROPER,CONFIGURABLE:CONFIGURABLE},uncurryThis$l=functionUncurryThis,isCallable$i=isCallable$o,store$1=sharedStore,functionToString=functionUncurryThis(Function.toString),inspectSource$3=(isCallable$i(store$1.inspectSource)||(store$1.inspectSource=function(e){return functionToString(e)}),store$1.inspectSource),global$g=global$n,isCallable$h=isCallable$o,WeakMap$1=global$n.WeakMap,weakMapBasicDetection=isCallable$h(WeakMap$1)&&/native code/.test(String(WeakMap$1)),shared$2=shared$4.exports,uid=uid$2,keys=shared$2("keys"),sharedKey$3=function(e){return keys[e]||(keys[e]=uid(e))},hiddenKeys$4={},NATIVE_WEAK_MAP=weakMapBasicDetection,global$f=global$n,isObject$5=isObject$a,createNonEnumerableProperty$4=createNonEnumerableProperty$5,hasOwn$a=hasOwnProperty_1,shared$1=sharedStore,sharedKey$2=sharedKey$3,hiddenKeys$3=hiddenKeys$4,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$4=global$f.TypeError,WeakMap=global$f.WeakMap,enforce=function(e){return has(e)?get(e):set$1(e,{})},getterFor=function(t){return function(e){if(isObject$5(e)&&(e=get(e)).type===t)return e;throw TypeError$4("Incompatible receiver, "+t+" required")}},has=NATIVE_WEAK_MAP||shared$1.state?((store=shared$1.state||(shared$1.state=new WeakMap)).get=store.get,store.has=store.has,store.set=store.set,set$1=function(e,t){if(store.has(e))throw TypeError$4(OBJECT_ALREADY_INITIALIZED);return t.facade=e,store.set(e,t),t},get=function(e){return store.get(e)||{}},function(e){return store.has(e)}):(STATE=sharedKey$2("state"),hiddenKeys$3[STATE]=!0,set$1=function(e,t){if(hasOwn$a(e,STATE))throw TypeError$4(OBJECT_ALREADY_INITIALIZED);return t.facade=e,createNonEnumerableProperty$4(e,STATE,t),t},get=function(e){return hasOwn$a(e,STATE)?e[STATE]:{}},function(e){return hasOwn$a(e,STATE)}),internalState={set:set$1,get:get,has:has,enforce:enforce,getterFor:getterFor},uncurryThis$k=functionUncurryThis,fails$f=fails$m,isCallable$g=isCallable$o,hasOwn$9=hasOwnProperty_1,DESCRIPTORS$8=descriptors,CONFIGURABLE_FUNCTION_NAME$1=functionName.CONFIGURABLE,inspectSource$2=inspectSource$3,InternalStateModule$5=internalState,enforceInternalState=InternalStateModule$5.enforce,getInternalState$3=InternalStateModule$5.get,$String$2=String,defineProperty$5=Object.defineProperty,stringSlice$7=uncurryThis$k("".slice),replace$7=uncurryThis$k("".replace),join$3=uncurryThis$k([].join),CONFIGURABLE_LENGTH=DESCRIPTORS$8&&!fails$f(function(){return 8!==defineProperty$5(function(){},"length",{value:8}).length}),TEMPLATE=String(String).split("String"),makeBuiltIn$2=makeBuiltIn$3.exports=function(e,t,r){"Symbol("===stringSlice$7($String$2(t),0,7)&&(t="["+replace$7($String$2(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!hasOwn$9(e,"name")||CONFIGURABLE_FUNCTION_NAME$1&&e.name!==t)&&(DESCRIPTORS$8?defineProperty$5(e,"name",{value:t,configurable:!0}):e.name=t),CONFIGURABLE_LENGTH&&r&&hasOwn$9(r,"arity")&&e.length!==r.arity&&defineProperty$5(e,"length",{value:r.arity});try{r&&hasOwn$9(r,"constructor")&&r.constructor?DESCRIPTORS$8&&defineProperty$5(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=enforceInternalState(e);return hasOwn$9(r,"source")||(r.source=join$3(TEMPLATE,"string"==typeof t?t:"")),e},isCallable$f=(Function.prototype.toString=makeBuiltIn$2(function(){return isCallable$g(this)&&getInternalState$3(this).source||inspectSource$2(this)},"toString"),isCallable$o),definePropertyModule$3=objectDefineProperty,makeBuiltIn$1=makeBuiltIn$3.exports,defineGlobalProperty$1=defineGlobalProperty$3,defineBuiltIn$a=function(e,t,r,n){var s=(n=n||{}).enumerable,i=void 0!==n.name?n.name:t;if(isCallable$f(r)&&makeBuiltIn$1(r,i,n),n.global)s?e[t]=r:defineGlobalProperty$1(t,r);else{try{n.unsafe?e[t]&&(s=!0):delete e[t]}catch(e){}s?e[t]=r:definePropertyModule$3.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},objectGetOwnPropertyNames={},ceil=Math.ceil,floor$4=Math.floor,mathTrunc=Math.trunc||function(e){e=+e;return(0<e?floor$4:ceil)(e)},trunc=mathTrunc,toIntegerOrInfinity$4=function(e){e=+e;return e!=e||0==e?0:trunc(e)},toIntegerOrInfinity$3=toIntegerOrInfinity$4,max$2=Math.max,min$2=Math.min,toAbsoluteIndex$2=function(e,t){e=toIntegerOrInfinity$3(e);return e<0?max$2(e+t,0):min$2(e,t)},toIntegerOrInfinity$2=toIntegerOrInfinity$4,min$1=Math.min,toLength$2=function(e){return 0<e?min$1(toIntegerOrInfinity$2(e),9007199254740991):0},toLength$1=toLength$2,lengthOfArrayLike$4=function(e){return toLength$1(e.length)},toIndexedObject$3=toIndexedObject$5,toAbsoluteIndex$1=toAbsoluteIndex$2,lengthOfArrayLike$3=lengthOfArrayLike$4,createMethod$2=function(o){return function(e,t,r){var n,s=toIndexedObject$3(e),i=lengthOfArrayLike$3(s),a=toAbsoluteIndex$1(r,i);if(o&&t!=t){for(;a<i;)if((n=s[a++])!=n)return!0}else for(;a<i;a++)if((o||a in s)&&s[a]===t)return o||a||0;return!o&&-1}},arrayIncludes={includes:createMethod$2(!0),indexOf:createMethod$2(!1)},uncurryThis$j=functionUncurryThis,hasOwn$8=hasOwnProperty_1,toIndexedObject$2=toIndexedObject$5,indexOf$1=arrayIncludes.indexOf,hiddenKeys$2=hiddenKeys$4,push$4=uncurryThis$j([].push),objectKeysInternal=function(e,t){var r,n=toIndexedObject$2(e),s=0,i=[];for(r in n)!hasOwn$8(hiddenKeys$2,r)&&hasOwn$8(n,r)&&push$4(i,r);for(;t.length>s;)!hasOwn$8(n,r=t[s++])||~indexOf$1(i,r)||push$4(i,r);return i},enumBugKeys$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1=objectKeysInternal,enumBugKeys$2=enumBugKeys$3,hiddenKeys$1=enumBugKeys$3.concat("length","prototype"),objectGetOwnPropertySymbols=(objectGetOwnPropertyNames.f=Object.getOwnPropertyNames||function(e){return internalObjectKeys$1(e,hiddenKeys$1)},{}),getBuiltIn$5=(objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols,getBuiltIn$7),uncurryThis$i=functionUncurryThis,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,anObject$e=anObject$g,concat$2=functionUncurryThis([].concat),ownKeys$1=getBuiltIn$5("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule.f(anObject$e(e)),r=getOwnPropertySymbolsModule$1.f;return r?concat$2(t,r(e)):t},hasOwn$7=hasOwnProperty_1,ownKeys=ownKeys$1,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,definePropertyModule$2=objectDefineProperty,copyConstructorProperties$2=function(e,t,r){for(var n=ownKeys(t),s=definePropertyModule$2.f,i=getOwnPropertyDescriptorModule.f,a=0;a<n.length;a++){var o=n[a];hasOwn$7(e,o)||r&&hasOwn$7(r,o)||s(e,o,i(t,o))}},fails$e=fails$m,isCallable$e=isCallable$o,replacement=/#|\.prototype\./,isForced$2=function(e,t){e=data[normalize(e)];return e==POLYFILL||e!=NATIVE&&(isCallable$e(t)?fails$e(t):!!t)},normalize=isForced$2.normalize=function(e){return String(e).replace(replacement,".").toLowerCase()},data=isForced$2.data={},NATIVE=isForced$2.NATIVE="N",POLYFILL=isForced$2.POLYFILL="P",isForced_1=isForced$2,global$e=global$n,getOwnPropertyDescriptor$2=objectGetOwnPropertyDescriptor.f,createNonEnumerableProperty$3=createNonEnumerableProperty$5,defineBuiltIn$9=defineBuiltIn$a,defineGlobalProperty=defineGlobalProperty$3,copyConstructorProperties$1=copyConstructorProperties$2,isForced$1=isForced_1,_export=function(e,t){var r,n,s,i=e.target,a=e.global,o=e.stat,l=a?global$e:o?global$e[i]||defineGlobalProperty(i,{}):(global$e[i]||{}).prototype;if(l)for(r in t){if(n=t[r],s=e.dontCallGetSet?(s=getOwnPropertyDescriptor$2(l,r))&&s.value:l[r],!isForced$1(a?r:i+(o?".":"#")+r,e.forced)&&void 0!==s){if(typeof n==typeof s)continue;copyConstructorProperties$1(n,s)}(e.sham||s&&s.sham)&&createNonEnumerableProperty$3(n,"sham",!0),defineBuiltIn$9(l,r,n,e)}},internalObjectKeys=objectKeysInternal,enumBugKeys$1=enumBugKeys$3,objectKeys$2=Object.keys||function(e){return internalObjectKeys(e,enumBugKeys$1)},DESCRIPTORS$7=descriptors,uncurryThis$h=functionUncurryThis,call$f=functionCall,fails$d=fails$m,objectKeys$1=objectKeys$2,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,propertyIsEnumerableModule=objectPropertyIsEnumerable,toObject$3=toObject$5,IndexedObject=indexedObject,$assign=Object.assign,defineProperty$4=Object.defineProperty,concat$1=uncurryThis$h([].concat),objectAssign=!$assign||fails$d(function(){var e,t,r,n;return!(!DESCRIPTORS$7||1===$assign({b:1},$assign(defineProperty$4({},"a",{enumerable:!0,get:function(){defineProperty$4(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)||(t={},n="abcdefghijklmnopqrst",(e={})[r=Symbol()]=7,n.split("").forEach(function(e){t[e]=e}),7!=$assign({},e)[r])||objectKeys$1($assign({},t)).join("")!=n})?function(e,t){for(var r=toObject$3(e),n=arguments.length,s=1,i=getOwnPropertySymbolsModule.f,a=propertyIsEnumerableModule.f;s<n;)for(var o,l=IndexedObject(arguments[s++]),c=i?concat$1(objectKeys$1(l),i(l)):objectKeys$1(l),u=c.length,d=0;d<u;)o=c[d++],DESCRIPTORS$7&&!call$f(a,l,o)||(r[o]=l[o]);return r}:$assign,$$e=_export,assign$1=objectAssign;_export({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign$1},{assign:assign$1});const SLICE_NAME="processingCenterIngestion",namespace$9="uiState",initialState$8={status:"idle"},slice=createSlice({name:SLICE_NAME+"/"+namespace$9,initialState:initialState$8,reducers:{init(e){e.status="pending"},initDone(e){e.status="idle"},initFailed(e){e.status="failure"}}}),actions$9=slice.actions;var uiState=slice.reducer;const namespace$8="ingestionJobsWizard",initialState$7={activeStep:1,steps:[{number:1,completed:!1},{number:2,completed:!1},{number:3,completed:!1},{number:4,completed:!1},{number:5,completed:!1},{number:6,completed:!1}],activeEngine:void 0,scheduledJobId:"",existingScheduledJob:null,saveStatus:"idle",existingJobStatus:"idle",existingJobErrorMessage:"",isEditMode:!1,updateJobErrors:[],deleteJobStatus:"idle"},ingestionJobsWizardSlice=createSlice({name:"ingestionJobsWizard",initialState:initialState$7,reducers:{nextStep:e=>{var t=e["activeStep"];t!==e.steps.length&&(e.steps[t-1].completed=!0,e.activeStep=t+1)},backStep:e=>{var t=e["activeStep"];1!==t&&(e.activeStep=t-1)},goToStep:(e,t)=>{e.activeStep=t.payload},setActiveEngine:(e,t)=>{e.activeEngine=t.payload},setScheduledJobId:(e,t)=>{e.scheduledJobId=t.payload},saveScheduledJobStart:e=>{e.saveStatus="pending"},saveScheduledJobSuccess:e=>{e.saveStatus="success"},saveScheduledJobFailure:e=>{e.saveStatus="failure"},setExistingJobStart:e=>{e.existingJobStatus="pending"},setExistingJobSuccess:e=>{e.existingJobStatus="success"},setExistingJobFailure:e=>{e.existingJobStatus="failure"},setDeleteJobStart:e=>{e.deleteJobStatus="pending"},setDeleteJobSuccess:e=>{e.deleteJobStatus="success"},setDeleteJobFailure:e=>{e.deleteJobStatus="failure"},setExistingJobErrorMessage:(e,t)=>{e.existingJobErrorMessage=t.payload},setExistingScheduledJob:(e,t)=>{e.existingScheduledJob=t.payload},setIsEditMode:(e,t)=>{e.isEditMode=t.payload},setUpdateJobErrors:(e,t)=>{t.payload.add?e.updateJobErrors=e.updateJobErrors.concat([t.payload.tabIndex]):e.updateJobErrors=e.updateJobErrors.filter(e=>e!==t.payload.tabIndex)}}}),actions$8=ingestionJobsWizardSlice.actions;var activeXDocument,IteratorPrototype$2,PrototypeOfArrayIteratorPrototype,arrayIterator,ingestionJobsWizard_slice=ingestionJobsWizardSlice.reducer,objectDefineProperties={},DESCRIPTORS$6=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule$1=objectDefineProperty,anObject$d=anObject$g,toIndexedObject$1=toIndexedObject$5,objectKeys=objectKeys$2,getBuiltIn$4=(objectDefineProperties.f=DESCRIPTORS$6&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function(e,t){anObject$d(e);for(var r,n=toIndexedObject$1(t),s=objectKeys(t),i=s.length,a=0;a<i;)definePropertyModule$1.f(e,r=s[a++],n[r]);return e},getBuiltIn$7),html$2=getBuiltIn$7("document","documentElement"),anObject$c=anObject$g,definePropertiesModule=objectDefineProperties,enumBugKeys=enumBugKeys$3,hiddenKeys=hiddenKeys$4,html$1=html$2,documentCreateElement$1=documentCreateElement$2,sharedKey$1=sharedKey$3,GT=">",LT="<",PROTOTYPE="prototype",SCRIPT="script",IE_PROTO$1=sharedKey$3("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(e){return LT+SCRIPT+GT+e+LT+"/"+SCRIPT+GT},NullProtoObjectViaActiveX=function(e){e.write(scriptTag("")),e.close();var t=e.parentWindow.Object;return e=null,t},NullProtoObjectViaIFrame=function(){var e=documentCreateElement$1("iframe"),t="java"+SCRIPT+":";return e.style.display="none",html$1.appendChild(e),e.src=String(t),(t=e.contentWindow.document).open(),t.write(scriptTag("document.F=Object")),t.close(),t.F},NullProtoObject=function(){try{activeXDocument=new ActiveXObject("htmlfile")}catch(e){}NullProtoObject="undefined"==typeof document||document.domain&&activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame();for(var e=enumBugKeys.length;e--;)delete NullProtoObject[PROTOTYPE][enumBugKeys[e]];return NullProtoObject()},objectCreate=(hiddenKeys[IE_PROTO$1]=!0,Object.create||function(e,t){var r;return null!==e?(EmptyConstructor[PROTOTYPE]=anObject$c(e),r=new EmptyConstructor,EmptyConstructor[PROTOTYPE]=null,r[IE_PROTO$1]=e):r=NullProtoObject(),void 0===t?r:definePropertiesModule.f(r,t)}),wellKnownSymbol$i=wellKnownSymbol$k,create$3=objectCreate,defineProperty$3=objectDefineProperty.f,UNSCOPABLES=wellKnownSymbol$i("unscopables"),ArrayPrototype$1=Array.prototype,addToUnscopables$2=(null==ArrayPrototype$1[UNSCOPABLES]&&defineProperty$3(ArrayPrototype$1,UNSCOPABLES,{configurable:!0,value:create$3(null)}),function(e){ArrayPrototype$1[UNSCOPABLES][e]=!0}),iterators={},fails$c=fails$m,correctPrototypeGetter=!fails$m(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),hasOwn$6=hasOwnProperty_1,isCallable$d=isCallable$o,toObject$2=toObject$5,sharedKey=sharedKey$3,CORRECT_PROTOTYPE_GETTER=correctPrototypeGetter,IE_PROTO=sharedKey$3("IE_PROTO"),$Object$1=Object,ObjectPrototype=$Object$1.prototype,objectGetPrototypeOf=CORRECT_PROTOTYPE_GETTER?$Object$1.getPrototypeOf:function(e){var t,e=toObject$2(e);return hasOwn$6(e,IE_PROTO)?e[IE_PROTO]:(t=e.constructor,isCallable$d(t)&&e instanceof t?t.prototype:e instanceof $Object$1?ObjectPrototype:null)},fails$b=fails$m,isCallable$c=isCallable$o,isObject$4=isObject$a,getPrototypeOf$1=objectGetPrototypeOf,defineBuiltIn$8=defineBuiltIn$a,wellKnownSymbol$h=wellKnownSymbol$k,ITERATOR$8=wellKnownSymbol$k("iterator"),BUGGY_SAFARI_ITERATORS$1=!1,NEW_ITERATOR_PROTOTYPE=([].keys&&("next"in(arrayIterator=[].keys())?(PrototypeOfArrayIteratorPrototype=getPrototypeOf$1(getPrototypeOf$1(arrayIterator)))!==Object.prototype&&(IteratorPrototype$2=PrototypeOfArrayIteratorPrototype):BUGGY_SAFARI_ITERATORS$1=!0),!isObject$4(IteratorPrototype$2)||fails$b(function(){var e={};return IteratorPrototype$2[ITERATOR$8].call(e)!==e})),iteratorsCore=(isCallable$c((IteratorPrototype$2=NEW_ITERATOR_PROTOTYPE?{}:IteratorPrototype$2)[ITERATOR$8])||defineBuiltIn$8(IteratorPrototype$2,ITERATOR$8,function(){return this}),{IteratorPrototype:IteratorPrototype$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1}),defineProperty$2=objectDefineProperty.f,hasOwn$5=hasOwnProperty_1,wellKnownSymbol$g=wellKnownSymbol$k,TO_STRING_TAG$3=wellKnownSymbol$k("toStringTag"),setToStringTag$5=function(e,t,r){(e=e&&!r?e.prototype:e)&&!hasOwn$5(e,TO_STRING_TAG$3)&&defineProperty$2(e,TO_STRING_TAG$3,{configurable:!0,value:t})},IteratorPrototype$1=iteratorsCore.IteratorPrototype,create$2=objectCreate,createPropertyDescriptor$2=createPropertyDescriptor$5,setToStringTag$4=setToStringTag$5,Iterators$4=iterators,returnThis$1=function(){return this},iteratorCreateConstructor=function(e,t,r,n){t+=" Iterator";return e.prototype=create$2(IteratorPrototype$1,{next:createPropertyDescriptor$2(+!n,r)}),setToStringTag$4(e,t,!1),Iterators$4[t]=returnThis$1,e},uncurryThis$g=functionUncurryThis,aCallable$6=aCallable$8,functionUncurryThisAccessor=function(e,t,r){try{return uncurryThis$g(aCallable$6(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}},isCallable$b=isCallable$o,$String$1=String,$TypeError$8=TypeError,aPossiblePrototype$1=function(e){if("object"==typeof e||isCallable$b(e))return e;throw $TypeError$8("Can't set "+$String$1(e)+" as a prototype")},uncurryThisAccessor=functionUncurryThisAccessor,anObject$b=anObject$g,aPossiblePrototype=aPossiblePrototype$1,objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,e={};try{(r=uncurryThisAccessor(Object.prototype,"__proto__","set"))(e,[]),n=e instanceof Array}catch(e){}return function(e,t){return anObject$b(e),aPossiblePrototype(t),n?r(e,t):e.__proto__=t,e}}():void 0),$$d=_export,call$e=functionCall,FunctionName=functionName,isCallable$a=isCallable$o,createIteratorConstructor$1=iteratorCreateConstructor,getPrototypeOf=objectGetPrototypeOf,setPrototypeOf$1=objectSetPrototypeOf,setToStringTag$3=setToStringTag$5,createNonEnumerableProperty$2=createNonEnumerableProperty$5,defineBuiltIn$7=defineBuiltIn$a,wellKnownSymbol$f=wellKnownSymbol$k,Iterators$3=iterators,IteratorsCore=iteratorsCore,PROPER_FUNCTION_NAME$1=FunctionName.PROPER,CONFIGURABLE_FUNCTION_NAME=FunctionName.CONFIGURABLE,IteratorPrototype=IteratorsCore.IteratorPrototype,BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$7=wellKnownSymbol$f("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},iteratorDefine=function(e,t,r,n,s,i,a){createIteratorConstructor$1(r,t,n);function o(e){if(e===s&&g)return g;if(!BUGGY_SAFARI_ITERATORS&&e in d)return d[e];switch(e){case KEYS:case VALUES:case ENTRIES:return function(){return new r(this,e)}}return function(){return new r(this)}}var l,c,n=t+" Iterator",u=!1,d=e.prototype,p=d[ITERATOR$7]||d["@@iterator"]||s&&d[s],g=!BUGGY_SAFARI_ITERATORS&&p||o(s),h="Array"==t&&d.entries||p;if(h&&(h=getPrototypeOf(h.call(new e)))!==Object.prototype&&h.next&&(getPrototypeOf(h)!==IteratorPrototype&&(setPrototypeOf$1?setPrototypeOf$1(h,IteratorPrototype):isCallable$a(h[ITERATOR$7])||defineBuiltIn$7(h,ITERATOR$7,returnThis)),setToStringTag$3(h,n,!0)),PROPER_FUNCTION_NAME$1&&s==VALUES&&p&&p.name!==VALUES&&(CONFIGURABLE_FUNCTION_NAME?createNonEnumerableProperty$2(d,"name",VALUES):(u=!0,g=function(){return call$e(p,this)})),s)if(l={values:o(VALUES),keys:i?g:o(KEYS),entries:o(ENTRIES)},a)for(c in l)!BUGGY_SAFARI_ITERATORS&&!u&&c in d||defineBuiltIn$7(d,c,l[c]);else $$d({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS||u},l);return d[ITERATOR$7]!==g&&defineBuiltIn$7(d,ITERATOR$7,g,{name:s}),Iterators$3[t]=g,l},createIterResultObject$2=function(e,t){return{value:e,done:t}},toIndexedObject=toIndexedObject$5,addToUnscopables$1=addToUnscopables$2,Iterators$2=iterators,InternalStateModule$4=internalState,defineProperty$1=objectDefineProperty.f,defineIterator$1=iteratorDefine,createIterResultObject$1=createIterResultObject$2,DESCRIPTORS$5=descriptors,ARRAY_ITERATOR="Array Iterator",setInternalState$4=InternalStateModule$4.set,getInternalState$2=InternalStateModule$4.getterFor(ARRAY_ITERATOR),es_array_iterator=defineIterator$1(Array,"Array",function(e,t){setInternalState$4(this,{type:ARRAY_ITERATOR,target:toIndexedObject(e),index:0,kind:t})},function(){var e=getInternalState$2(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,createIterResultObject$1(void 0,!0)):createIterResultObject$1("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)},"values"),values=Iterators$2.Arguments=Iterators$2.Array;if(addToUnscopables$1("keys"),addToUnscopables$1("values"),addToUnscopables$1("entries"),DESCRIPTORS$5&&"values"!==values.name)try{defineProperty$1(values,"name",{value:"values"})}catch(e){}var COLLECTION_NAME,domIterables={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},documentCreateElement=documentCreateElement$2,classList=documentCreateElement$2("span").classList,DOMTokenListPrototype$1=classList&&classList.constructor&&classList.constructor.prototype,domTokenListPrototype=DOMTokenListPrototype$1===Object.prototype?void 0:DOMTokenListPrototype$1,global$d=global$n,DOMIterables=domIterables,DOMTokenListPrototype=domTokenListPrototype,ArrayIteratorMethods=es_array_iterator,createNonEnumerableProperty$1=createNonEnumerableProperty$5,wellKnownSymbol$e=wellKnownSymbol$k,ITERATOR$6=wellKnownSymbol$e("iterator"),TO_STRING_TAG$2=wellKnownSymbol$e("toStringTag"),ArrayValues=ArrayIteratorMethods.values,handlePrototype=function(t,e){if(t){if(t[ITERATOR$6]!==ArrayValues)try{createNonEnumerableProperty$1(t,ITERATOR$6,ArrayValues)}catch(e){t[ITERATOR$6]=ArrayValues}if(t[TO_STRING_TAG$2]||createNonEnumerableProperty$1(t,TO_STRING_TAG$2,e),DOMIterables[e])for(var r in ArrayIteratorMethods)if(t[r]!==ArrayIteratorMethods[r])try{createNonEnumerableProperty$1(t,r,ArrayIteratorMethods[r])}catch(e){t[r]=ArrayIteratorMethods[r]}}};for(COLLECTION_NAME in DOMIterables)handlePrototype(global$d[COLLECTION_NAME]&&global$d[COLLECTION_NAME].prototype,COLLECTION_NAME);handlePrototype(DOMTokenListPrototype,"DOMTokenList");const namespace$7="sourceStep",initialState$6={isAffiliateSearch:!1,sourceSearchTerm:"",sourceTypeId:[],searchedSources:[],sourceSelected:null,isLoading:!1,error:null,hasMore:!1,offset:0,clusterSection:{clusterSelected:null,clusters:[],isLoading:!0,error:null,hasMore:!1,offset:0},mediaChunkLength:"15"},sourceStepSlice=createSlice({name:"sourceStep",initialState:initialState$6,reducers:{sourcesSearchStart:(e,{payload:t})=>{e.isAffiliateSearch=t,0===e.offset&&(e.isLoading=!0)},sourcesSearchSucceeded:(e,{payload:t})=>{e.searchedSources=[...e.searchedSources,...t],e.error=null,e.isLoading=!1},resetSourcesSearch:e=>{e.isAffiliateSearch=!1,e.searchedSources=[],e.isLoading=!1,e.offset=0,e.hasMore=!1,e.error=null},setSourceTypeId:(e,{payload:t})=>{e.sourceTypeId=t},setSourceSelected:(e,{payload:t})=>{e.sourceSelected=t},setOffset:(e,{payload:t})=>{e.offset=t},setHasMore:(e,{payload:t})=>{e.hasMore=t},setError:(e,{payload:t})=>{e.error=t},setLoading:(e,{payload:t})=>{e.isLoading=t},setSourceSearchTerm:(e,{payload:t})=>{e.sourceSearchTerm=t},setMediaChunkLength:(e,{payload:t})=>{e.mediaChunkLength=t},setSelectedCluster:(e,{payload:t})=>{e.clusterSection.clusterSelected=t},clustersSearchStart:e=>{0===e.clusterSection.offset&&(e.clusterSection.isLoading=!0)},clustersSearchSucceeded:(e,{payload:t})=>{e.clusterSection.clusters=[...e.clusterSection.clusters,...t],e.clusterSection.error=null,e.clusterSection.isLoading=!1},clustersSetOffset:(e,{payload:t})=>{e.clusterSection.offset=t},clustersSetHasMore:(e,{payload:t})=>{e.clusterSection.hasMore=t},clusterSetError:(e,{payload:t})=>{e.clusterSection.error=t,e.clusterSection.isLoading=!1},clusterSetLoading:(e,{payload:t})=>{e.clusterSection.isLoading=t}}}),actions$7=sourceStepSlice.actions;var selectSourceStep_slice=sourceStepSlice.reducer;function toInteger(e){return null===e||!0===e||!1===e?NaN:(e=Number(e),isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e))}function requiredArgs(e,t){if(t.length<e)throw new TypeError(e+" argument"+(1<e?"s":"")+" required, but only "+t.length+" present")}function _typeof$1(e){return(_typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function toDate(e){requiredArgs(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===_typeof$1(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function addDays(e,t){requiredArgs(2,arguments);var r=toDate(e),n=toInteger(t);return isNaN(n)?new Date(NaN):(n&&r.setDate(r.getDate()+n),r)}function addMilliseconds(e,t){requiredArgs(2,arguments);var r=toDate(e).getTime(),n=toInteger(t);return new Date(r+n)}var defaultOptions={};function getDefaultOptions(){return defaultOptions}function getTimezoneOffsetInMilliseconds(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function isDate(e){return requiredArgs(1,arguments),e instanceof Date||"object"===_typeof(e)&&"[object Date]"===Object.prototype.toString.call(e)}function isValid(e){var t;return requiredArgs(1,arguments),!(!isDate(e)&&"number"!=typeof e||(t=toDate(e),isNaN(Number(t))))}function subMilliseconds(e,t){return requiredArgs(2,arguments),addMilliseconds(e,-toInteger(t))}var MILLISECONDS_IN_DAY=864e5;function getUTCDayOfYear(e){requiredArgs(1,arguments);var t=toDate(e),r=t.getTime(),t=(t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0),t.getTime());return Math.floor((r-t)/MILLISECONDS_IN_DAY)+1}function startOfUTCISOWeek(e){requiredArgs(1,arguments);var t=toDate(e),r=t.getUTCDay(),r=(r<1?7:0)+r-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function getUTCISOWeekYear(e){requiredArgs(1,arguments);var t=toDate(e),r=t.getUTCFullYear(),n=new Date(0),n=(n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0),startOfUTCISOWeek(n)),s=new Date(0),s=(s.setUTCFullYear(r,0,4),s.setUTCHours(0,0,0,0),startOfUTCISOWeek(s));return t.getTime()>=n.getTime()?r+1:t.getTime()>=s.getTime()?r:r-1}function startOfUTCISOWeekYear(e){requiredArgs(1,arguments);var t=getUTCISOWeekYear(e),r=new Date(0);return r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0),startOfUTCISOWeek(r)}var MILLISECONDS_IN_WEEK$1=6048e5;function getUTCISOWeek(e){requiredArgs(1,arguments);var t=toDate(e),t=startOfUTCISOWeek(t).getTime()-startOfUTCISOWeekYear(t).getTime();return Math.round(t/MILLISECONDS_IN_WEEK$1)+1}function startOfUTCWeek(e,t){requiredArgs(1,arguments);var r,n,s=getDefaultOptions(),s=toInteger(null!=(r=null!=(r=null!=(r=null!=(r=null==t?void 0:t.weekStartsOn)?r:null==t||null==(r=t.locale)||null==(r=r.options)?void 0:r.weekStartsOn)?r:s.weekStartsOn)?r:null==(r=s.locale)||null==(s=r.options)?void 0:s.weekStartsOn)?r:0);if(0<=s&&s<=6)return n=((n=(r=toDate(e)).getUTCDay())<s?7:0)+n-s,r.setUTCDate(r.getUTCDate()-n),r.setUTCHours(0,0,0,0),r;throw new RangeError("weekStartsOn must be between 0 and 6 inclusively")}function getUTCWeekYear(e,t){requiredArgs(1,arguments);var r,n,s=toDate(e),i=s.getUTCFullYear(),a=getDefaultOptions(),a=toInteger(null!=(r=null!=(r=null!=(r=null!=(r=null==t?void 0:t.firstWeekContainsDate)?r:null==t||null==(r=t.locale)||null==(r=r.options)?void 0:r.firstWeekContainsDate)?r:a.firstWeekContainsDate)?r:null==(r=a.locale)||null==(a=r.options)?void 0:a.firstWeekContainsDate)?r:1);if(1<=a&&a<=7)return(r=new Date(0)).setUTCFullYear(i+1,0,a),r.setUTCHours(0,0,0,0),r=startOfUTCWeek(r,t),(n=new Date(0)).setUTCFullYear(i,0,a),n.setUTCHours(0,0,0,0),a=startOfUTCWeek(n,t),s.getTime()>=r.getTime()?i+1:s.getTime()>=a.getTime()?i:i-1;throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively")}function startOfUTCWeekYear(e,t){requiredArgs(1,arguments);var r=getDefaultOptions(),r=toInteger(null!=(n=null!=(n=null!=(n=null!=(n=null==t?void 0:t.firstWeekContainsDate)?n:null==t||null==(n=t.locale)||null==(n=n.options)?void 0:n.firstWeekContainsDate)?n:r.firstWeekContainsDate)?n:null==(n=r.locale)||null==(r=n.options)?void 0:r.firstWeekContainsDate)?n:1),n=getUTCWeekYear(e,t),s=new Date(0);return s.setUTCFullYear(n,0,r),s.setUTCHours(0,0,0,0),startOfUTCWeek(s,t)}var MILLISECONDS_IN_WEEK=6048e5;function getUTCWeek(e,t){requiredArgs(1,arguments);var r=toDate(e),r=startOfUTCWeek(r,t).getTime()-startOfUTCWeekYear(r,t).getTime();return Math.round(r/MILLISECONDS_IN_WEEK)+1}function addLeadingZeros(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}var formatters$2={y:function(e,t){e=e.getUTCFullYear(),e=0<e?e:1-e;return addLeadingZeros("yy"===t?e%100:e,t.length)},M:function(e,t){e=e.getUTCMonth();return"M"===t?String(e+1):addLeadingZeros(e+1,2)},d:function(e,t){return addLeadingZeros(e.getUTCDate(),t.length)},a:function(e,t){var r=1<=e.getUTCHours()/12?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:function(e,t){return addLeadingZeros(e.getUTCHours()%12||12,t.length)},H:function(e,t){return addLeadingZeros(e.getUTCHours(),t.length)},m:function(e,t){return addLeadingZeros(e.getUTCMinutes(),t.length)},s:function(e,t){return addLeadingZeros(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,e=e.getUTCMilliseconds();return addLeadingZeros(Math.floor(e*Math.pow(10,r-3)),t.length)}},formatters$3=formatters$2,dayPeriodEnum={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},formatters={G:function(e,t,r){var n=0<e.getUTCFullYear()?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){var n;return"yo"===t?(n=e.getUTCFullYear(),r.ordinalNumber(0<n?n:1-n,{unit:"year"})):formatters$3.y(e,t)},Y:function(e,t,r,n){e=getUTCWeekYear(e,n),n=0<e?e:1-e;return"YY"===t?addLeadingZeros(n%100,2):"Yo"===t?r.ordinalNumber(n,{unit:"year"}):addLeadingZeros(n,t.length)},R:function(e,t){return addLeadingZeros(getUTCISOWeekYear(e),t.length)},u:function(e,t){return addLeadingZeros(e.getUTCFullYear(),t.length)},Q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return addLeadingZeros(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return addLeadingZeros(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){var n=e.getUTCMonth();switch(t){case"M":case"MM":return formatters$3.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return addLeadingZeros(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){e=getUTCWeek(e,n);return"wo"===t?r.ordinalNumber(e,{unit:"week"}):addLeadingZeros(e,t.length)},I:function(e,t,r){e=getUTCISOWeek(e);return"Io"===t?r.ordinalNumber(e,{unit:"week"}):addLeadingZeros(e,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):formatters$3.d(e,t)},D:function(e,t,r){e=getUTCDayOfYear(e);return"Do"===t?r.ordinalNumber(e,{unit:"dayOfYear"}):addLeadingZeros(e,t.length)},E:function(e,t,r){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){var s=e.getUTCDay(),i=(s-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return addLeadingZeros(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(s,{width:"short",context:"formatting"});default:return r.day(s,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){var s=e.getUTCDay(),i=(s-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return addLeadingZeros(i,t.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(s,{width:"narrow",context:"standalone"});case"cccccc":return r.day(s,{width:"short",context:"standalone"});default:return r.day(s,{width:"wide",context:"standalone"})}},i:function(e,t,r){var n=e.getUTCDay(),s=0===n?7:n;switch(t){case"i":return String(s);case"ii":return addLeadingZeros(s,t.length);case"io":return r.ordinalNumber(s,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){var n=1<=e.getUTCHours()/12?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){var e=e.getUTCHours(),n=12===e?dayPeriodEnum.noon:0===e?dayPeriodEnum.midnight:1<=e/12?"pm":"am";switch(t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){var e=e.getUTCHours(),n=17<=e?dayPeriodEnum.evening:12<=e?dayPeriodEnum.afternoon:4<=e?dayPeriodEnum.morning:dayPeriodEnum.night;switch(t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){var n;return"ho"===t?(n=e.getUTCHours()%12,r.ordinalNumber(n=0===n?12:n,{unit:"hour"})):formatters$3.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):formatters$3.H(e,t)},K:function(e,t,r){e=e.getUTCHours()%12;return"Ko"===t?r.ordinalNumber(e,{unit:"hour"}):addLeadingZeros(e,t.length)},k:function(e,t,r){e=e.getUTCHours();return 0===e&&(e=24),"ko"===t?r.ordinalNumber(e,{unit:"hour"}):addLeadingZeros(e,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):formatters$3.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):formatters$3.s(e,t)},S:function(e,t){return formatters$3.S(e,t)},X:function(e,t,r,n){var s=(n._originalDate||e).getTimezoneOffset();if(0===s)return"Z";switch(t){case"X":return formatTimezoneWithOptionalMinutes(s);case"XXXX":case"XX":return formatTimezone(s);default:return formatTimezone(s,":")}},x:function(e,t,r,n){var s=(n._originalDate||e).getTimezoneOffset();switch(t){case"x":return formatTimezoneWithOptionalMinutes(s);case"xxxx":case"xx":return formatTimezone(s);default:return formatTimezone(s,":")}},O:function(e,t,r,n){var s=(n._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+formatTimezoneShort(s,":");default:return"GMT"+formatTimezone(s,":")}},z:function(e,t,r,n){var s=(n._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+formatTimezoneShort(s,":");default:return"GMT"+formatTimezone(s,":")}},t:function(e,t,r,n){n=n._originalDate||e;return addLeadingZeros(Math.floor(n.getTime()/1e3),t.length)},T:function(e,t,r,n){return addLeadingZeros((n._originalDate||e).getTime(),t.length)}};function formatTimezoneShort(e,t){var r=0<e?"-":"+",e=Math.abs(e),n=Math.floor(e/60),e=e%60;return 0==e?r+String(n):(t=t||"",r+String(n)+t+addLeadingZeros(e,2))}function formatTimezoneWithOptionalMinutes(e,t){return e%60==0?(0<e?"-":"+")+addLeadingZeros(Math.abs(e)/60,2):formatTimezone(e,t)}function formatTimezone(e,t){var t=t||"",r=0<e?"-":"+",e=Math.abs(e);return r+addLeadingZeros(Math.floor(e/60),2)+t+addLeadingZeros(e%60,2)}var formatters$1=formatters,dateLongFormatter=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},timeLongFormatter=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},dateTimeLongFormatter=function(e,t){var r,n=e.match(/(P+)(p+)?/)||[],s=n[1],n=n[2];if(!n)return dateLongFormatter(e,t);switch(s){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;default:r=t.dateTime({width:"full"})}return r.replace("{{date}}",dateLongFormatter(s,t)).replace("{{time}}",timeLongFormatter(n,t))},longFormatters={p:timeLongFormatter,P:dateTimeLongFormatter},longFormatters$1=longFormatters,protectedDayOfYearTokens=["D","DD"],protectedWeekYearTokens=["YY","YYYY"];function isProtectedDayOfYearToken(e){return-1!==protectedDayOfYearTokens.indexOf(e)}function isProtectedWeekYearToken(e){return-1!==protectedWeekYearTokens.indexOf(e)}function throwProtectedError(e,t,r){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var formatDistanceLocale={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},formatDistance=function(e,t,r){e=formatDistanceLocale[e],e="string"==typeof e?e:1===t?e.one:e.other.replace("{{count}}",t.toString());return null!=r&&r.addSuffix?r.comparison&&0<r.comparison?"in "+e:e+" ago":e},formatDistance$1=formatDistance;function buildFormatLongFn(t){return function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=e.width?String(e.width):t.defaultWidth;return t.formats[e]||t.formats[t.defaultWidth]}}var dateFormats={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},timeFormats={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateTimeFormats={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong={date:buildFormatLongFn({formats:dateFormats,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats,defaultWidth:"full"})},formatLong$1=formatLong,formatRelativeLocale={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},formatRelative=function(e,t,r,n){return formatRelativeLocale[e]},formatRelative$1=formatRelative;function buildLocalizeFn(s){return function(e,t){t="formatting"===(null!=t&&t.context?String(t.context):"standalone")&&s.formattingValues?(n=s.defaultFormattingWidth||s.defaultWidth,r=null!=t&&t.width?String(t.width):n,s.formattingValues[r]||s.formattingValues[n]):(r=s.defaultWidth,n=null!=t&&t.width?String(t.width):s.defaultWidth,s.values[n]||s.values[r]);var r,n=s.argumentCallback?s.argumentCallback(e):e;return t[n]}}var eraValues={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},quarterValues={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},monthValues={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},dayValues={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},dayPeriodValues={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},formattingDayPeriodValues={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ordinalNumber=function(e,t){var r=Number(e),e=r%100;if(20<e||e<10)switch(e%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},localize={ordinalNumber:ordinalNumber,era:buildLocalizeFn({values:eraValues,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:buildLocalizeFn({values:monthValues,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues,defaultWidth:"wide",formattingValues:formattingDayPeriodValues,defaultFormattingWidth:"wide"})},localize$1=localize;function buildMatchFn(i){return function(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=r.width,s=n&&i.matchPatterns[n]||i.matchPatterns[i.defaultMatchWidth],s=e.match(s);return s?(t=s[0],s=n&&i.parsePatterns[n]||i.parsePatterns[i.defaultParseWidth],n=Array.isArray(s)?findIndex(s,function(e){return e.test(t)}):findKey(s,function(e){return e.test(t)}),s=i.valueCallback?i.valueCallback(n):n,{value:s=r.valueCallback?r.valueCallback(s):s,rest:e.slice(t.length)}):null}}function findKey(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function findIndex(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function buildMatchPatternFn(s){return function(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=e.match(s.matchPattern);return n&&(n=n[0],t=e.match(s.parsePattern))?(t=s.valueCallback?s.valueCallback(t[0]):t[0],{value:t=r.valueCallback?r.valueCallback(t):t,rest:e.slice(n.length)}):null}}var matchOrdinalNumberPattern=/^(\d+)(th|st|nd|rd)?/i,parseOrdinalNumberPattern=/\d+/i,matchEraPatterns={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},parseEraPatterns={any:[/^b/i,/^(a|c)/i]},matchQuarterPatterns={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},parseQuarterPatterns={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},parseMonthPatterns={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},parseDayPatterns={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},matchDayPeriodPatterns={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},parseDayPeriodPatterns={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},match={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern,parsePattern:parseOrdinalNumberPattern,valueCallback:function(e){return parseInt(e,10)}}),era:buildMatchFn({matchPatterns:matchEraPatterns,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:buildMatchFn({matchPatterns:matchMonthPatterns,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns,defaultParseWidth:"any"})},match$1=match,locale={code:"en-US",formatDistance:formatDistance$1,formatLong:formatLong$1,formatRelative:formatRelative$1,localize:localize$1,match:match,options:{weekStartsOn:0,firstWeekContainsDate:1}},defaultLocale=locale,formattingTokensRegExp=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,longFormattingTokensRegExp=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,escapedStringRegExp=/^'([^]*?)'?$/,doubleQuoteRegExp=/''/g,unescapedLatinCharacterRegExp=/[a-zA-Z]/;function format(n,s,i){requiredArgs(2,arguments);var e=String(s),t=getDefaultOptions(),a=null!=(r=null!=(r=null==i?void 0:i.locale)?r:t.locale)?r:defaultLocale,r=toInteger(null!=(r=null!=(r=null!=(r=null!=(r=null==i?void 0:i.firstWeekContainsDate)?r:null==i||null==(r=i.locale)||null==(r=r.options)?void 0:r.firstWeekContainsDate)?r:t.firstWeekContainsDate)?r:null==(r=t.locale)||null==(r=r.options)?void 0:r.firstWeekContainsDate)?r:1);if(!(1<=r&&r<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");t=toInteger(null!=(c=null!=(c=null!=(c=null!=(c=null==i?void 0:i.weekStartsOn)?c:null==i||null==(c=i.locale)||null==(c=c.options)?void 0:c.weekStartsOn)?c:t.weekStartsOn)?c:null==(c=t.locale)||null==(t=c.options)?void 0:t.weekStartsOn)?c:0);if(!(0<=t&&t<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!a.localize)throw new RangeError("locale must contain localize property");if(!a.formatLong)throw new RangeError("locale must contain formatLong property");var o,l,c=toDate(n);if(isValid(c))return o=subMilliseconds(c,getTimezoneOffsetInMilliseconds(c)),l={firstWeekContainsDate:r,weekStartsOn:t,locale:a,_originalDate:c},e.match(longFormattingTokensRegExp).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,longFormatters$1[t])(e,a.formatLong):e}).join("").match(formattingTokensRegExp).map(function(e){if("''"===e)return"'";var t=e[0];if("'"===t)return cleanEscapedString(e);var r=formatters$1[t];if(r)return null!=i&&i.useAdditionalWeekYearTokens||!isProtectedWeekYearToken(e)||throwProtectedError(e,s,String(n)),null!=i&&i.useAdditionalDayOfYearTokens||!isProtectedDayOfYearToken(e)||throwProtectedError(e,s,String(n)),r(o,e,a.localize,l);if(t.match(unescapedLatinCharacterRegExp))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return e}).join("");throw new RangeError("Invalid time value")}function cleanEscapedString(e){var t=e.match(escapedStringRegExp);return t?t[1].replace(doubleQuoteRegExp,"'"):e}function isAfter(e,t){requiredArgs(2,arguments);var r=toDate(e),n=toDate(t);return r.getTime()>n.getTime()}var IRepeatIntervalUnit,IExistingJobErrorMessage,wellKnownSymbol$d=wellKnownSymbol$k,TO_STRING_TAG$1=wellKnownSymbol$k("toStringTag"),test={},toStringTagSupport=(test[TO_STRING_TAG$1]="z","[object z]"===String(test)),TO_STRING_TAG_SUPPORT=toStringTagSupport,isCallable$9=isCallable$o,classofRaw$1=classofRaw$2,wellKnownSymbol$c=wellKnownSymbol$k,TO_STRING_TAG=wellKnownSymbol$k("toStringTag"),$Object=Object,CORRECT_ARGUMENTS="Arguments"==classofRaw$1(function(){return arguments}()),tryGet=function(e,t){try{return e[t]}catch(e){}},classof$7=TO_STRING_TAG_SUPPORT?classofRaw$1:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=tryGet(e=$Object(e),TO_STRING_TAG))?t:CORRECT_ARGUMENTS?classofRaw$1(e):"Object"==(t=classofRaw$1(e))&&isCallable$9(e.callee)?"Arguments":t},classof$6=classof$7,$String=String,toString$8=function(e){if("Symbol"===classof$6(e))throw TypeError("Cannot convert a Symbol value to a string");return $String(e)},whitespaces$2="\t\n\v\f\r                 \u2028\u2029\ufeff",uncurryThis$f=functionUncurryThis,requireObjectCoercible$3=requireObjectCoercible$6,toString$7=toString$8,whitespaces$1=whitespaces$2,replace$6=functionUncurryThis("".replace),ltrim=RegExp("^["+whitespaces$1+"]+"),rtrim=RegExp("(^|[^"+whitespaces$1+"])["+whitespaces$1+"]+$"),createMethod$1=function(t){return function(e){e=toString$7(requireObjectCoercible$3(e));return 1&t&&(e=replace$6(e,ltrim,"")),e=2&t?replace$6(e,rtrim,"$1"):e}},stringTrim={start:createMethod$1(1),end:createMethod$1(2),trim:createMethod$1(3)},global$c=global$n,fails$a=fails$m,uncurryThis$e=functionUncurryThis,toString$6=toString$8,trim=stringTrim.trim,whitespaces=whitespaces$2,$parseInt$1=global$c.parseInt,Symbol$1=global$c.Symbol,ITERATOR$5=Symbol$1&&Symbol$1.iterator,hex=/^[+-]?0x/i,exec$4=uncurryThis$e(hex.exec),FORCED=8!==$parseInt$1(whitespaces+"08")||22!==$parseInt$1(whitespaces+"0x16")||ITERATOR$5&&!fails$a(function(){$parseInt$1(Object(ITERATOR$5))}),numberParseInt=FORCED?function(e,t){e=trim(toString$6(e));return $parseInt$1(e,t>>>0||(exec$4(hex,e)?16:10))}:$parseInt$1,$$c=_export,$parseInt=numberParseInt,anObject$a=(_export({global:!0,forced:parseInt!=numberParseInt},{parseInt:numberParseInt}),anObject$g),regexpFlags$1=function(){var e=anObject$a(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},fails$9=fails$m,global$b=global$n,$RegExp$2=global$n.RegExp,UNSUPPORTED_Y$1=fails$9(function(){var e=$RegExp$2("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),MISSED_STICKY=UNSUPPORTED_Y$1||fails$9(function(){return!$RegExp$2("a","y").sticky}),BROKEN_CARET=UNSUPPORTED_Y$1||fails$9(function(){var e=$RegExp$2("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),regexpStickyHelpers={BROKEN_CARET:BROKEN_CARET,MISSED_STICKY:MISSED_STICKY,UNSUPPORTED_Y:UNSUPPORTED_Y$1},fails$8=fails$m,global$a=global$n,$RegExp$1=global$n.RegExp,regexpUnsupportedDotAll=fails$8(function(){var e=$RegExp$1(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}),fails$7=fails$m,global$9=global$n,$RegExp=global$n.RegExp,regexpUnsupportedNcg=fails$7(function(){var e=$RegExp("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),call$d=functionCall,uncurryThis$d=functionUncurryThis,toString$5=toString$8,regexpFlags=regexpFlags$1,stickyHelpers=regexpStickyHelpers,shared=shared$4.exports,create$1=objectCreate,getInternalState$1=internalState.get,UNSUPPORTED_DOT_ALL=regexpUnsupportedDotAll,UNSUPPORTED_NCG=regexpUnsupportedNcg,nativeReplace=shared("native-string-replace",String.prototype.replace),nativeExec=RegExp.prototype.exec,patchedExec=nativeExec,charAt$6=uncurryThis$d("".charAt),indexOf=uncurryThis$d("".indexOf),replace$5=uncurryThis$d("".replace),stringSlice$6=uncurryThis$d("".slice),UPDATES_LAST_INDEX_WRONG=function(){var e=/a/,t=/b*/g;return call$d(nativeExec,e,"a"),call$d(nativeExec,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),UNSUPPORTED_Y=stickyHelpers.BROKEN_CARET,NPCG_INCLUDED=void 0!==/()??/.exec("")[1],PATCH=UPDATES_LAST_INDEX_WRONG||NPCG_INCLUDED||UNSUPPORTED_Y||UNSUPPORTED_DOT_ALL||UNSUPPORTED_NCG,regexpExec$2=patchedExec=PATCH?function(e){var t,r,n,s,i,a,o=this,l=getInternalState$1(o),e=toString$5(e),c=l.raw;if(c)return c.lastIndex=o.lastIndex,d=call$d(patchedExec,c,e),o.lastIndex=c.lastIndex,d;var u=l.groups,c=UNSUPPORTED_Y&&o.sticky,d=call$d(regexpFlags,o),l=o.source,p=0,g=e;if(c&&(d=replace$5(d,"y",""),-1===indexOf(d,"g")&&(d+="g"),g=stringSlice$6(e,o.lastIndex),0<o.lastIndex&&(!o.multiline||o.multiline&&"\n"!==charAt$6(e,o.lastIndex-1))&&(l="(?: "+l+")",g=" "+g,p++),t=new RegExp("^(?:"+l+")",d)),NPCG_INCLUDED&&(t=new RegExp("^"+l+"$(?!\\s)",d)),UPDATES_LAST_INDEX_WRONG&&(r=o.lastIndex),n=call$d(nativeExec,c?t:o,g),c?n?(n.input=stringSlice$6(n.input,p),n[0]=stringSlice$6(n[0],p),n.index=o.lastIndex,o.lastIndex+=n[0].length):o.lastIndex=0:UPDATES_LAST_INDEX_WRONG&&n&&(o.lastIndex=o.global?n.index+n[0].length:r),NPCG_INCLUDED&&n&&1<n.length&&call$d(nativeReplace,n[0],t,function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(n[s]=void 0)}),n&&u)for(n.groups=i=create$1(null),s=0;s<u.length;s++)i[(a=u[s])[0]]=n[a[1]];return n}:patchedExec,$$b=_export,exec$3=regexpExec$2,NATIVE_BIND$1=(_export({target:"RegExp",proto:!0,forced:/./.exec!==exec$3},{exec:exec$3}),functionBindNative),FunctionPrototype=Function.prototype,apply$2=FunctionPrototype.apply,call$c=FunctionPrototype.call,functionApply="object"==typeof Reflect&&Reflect.apply||(NATIVE_BIND$1?call$c.bind(apply$2):function(){return call$c.apply(apply$2,arguments)}),classofRaw=classofRaw$2,uncurryThis$c=functionUncurryThis,functionUncurryThisClause=function(e){if("Function"===classofRaw(e))return uncurryThis$c(e)},uncurryThis$b=functionUncurryThisClause,defineBuiltIn$6=defineBuiltIn$a,regexpExec$1=regexpExec$2,fails$6=fails$m,wellKnownSymbol$b=wellKnownSymbol$k,createNonEnumerableProperty=createNonEnumerableProperty$5,SPECIES$3=wellKnownSymbol$b("species"),RegExpPrototype$2=RegExp.prototype,fixRegexpWellKnownSymbolLogic=function(r,e,t,n){var a,s=wellKnownSymbol$b(r),o=!fails$6(function(){var e={};return e[s]=function(){return 7},7!=""[r](e)}),i=o&&!fails$6(function(){var e=!1,t=/a/;return"split"===r&&((t={constructor:{}}).constructor[SPECIES$3]=function(){return t},t.flags="",t[s]=/./[s]),t.exec=function(){return e=!0,null},t[s](""),!e});o&&i&&!t||(a=uncurryThis$b(/./[s]),i=e(s,""[r],function(e,t,r,n,s){var e=uncurryThis$b(e),i=t.exec;return i===regexpExec$1||i===RegExpPrototype$2.exec?o&&!s?{done:!0,value:a(t,r,n)}:{done:!0,value:e(r,t,n)}:{done:!1}}),defineBuiltIn$6(String.prototype,r,i[0]),defineBuiltIn$6(RegExpPrototype$2,s,i[1])),n&&createNonEnumerableProperty(RegExpPrototype$2[s],"sham",!0)},uncurryThis$a=functionUncurryThis,toIntegerOrInfinity$1=toIntegerOrInfinity$4,toString$4=toString$8,requireObjectCoercible$2=requireObjectCoercible$6,charAt$5=uncurryThis$a("".charAt),charCodeAt$1=uncurryThis$a("".charCodeAt),stringSlice$5=uncurryThis$a("".slice),createMethod=function(s){return function(e,t){var r,e=toString$4(requireObjectCoercible$2(e)),t=toIntegerOrInfinity$1(t),n=e.length;return t<0||n<=t?s?"":void 0:(r=charCodeAt$1(e,t))<55296||56319<r||t+1===n||(n=charCodeAt$1(e,t+1))<56320||57343<n?s?charAt$5(e,t):r:s?stringSlice$5(e,t,t+2):n-56320+(r-55296<<10)+65536}},stringMultibyte={codeAt:createMethod(!1),charAt:createMethod(!0)},charAt$4=stringMultibyte.charAt,advanceStringIndex$1=function(e,t,r){return t+(r?charAt$4(e,t).length:1)},uncurryThis$9=functionUncurryThis,toObject$1=toObject$5,floor$3=Math.floor,charAt$3=uncurryThis$9("".charAt),replace$4=uncurryThis$9("".replace),stringSlice$4=uncurryThis$9("".slice),SUBSTITUTION_SYMBOLS=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,SUBSTITUTION_SYMBOLS_NO_NAMED=/\$([$&'`]|\d{1,2})/g,getSubstitution$1=function(i,a,o,l,c,e){var u=o+i.length,d=l.length,t=SUBSTITUTION_SYMBOLS_NO_NAMED;return void 0!==c&&(c=toObject$1(c),t=SUBSTITUTION_SYMBOLS),replace$4(e,t,function(e,t){var r;switch(charAt$3(t,0)){case"$":return"$";case"&":return i;case"`":return stringSlice$4(a,0,o);case"'":return stringSlice$4(a,u);case"<":r=c[stringSlice$4(t,1,-1)];break;default:var n,s=+t;if(0==s)return e;if(d<s)return 0!==(n=floor$3(s/10))&&n<=d?void 0===l[n-1]?charAt$3(t,1):l[n-1]+charAt$3(t,1):e;r=l[s-1]}return void 0===r?"":r})},call$b=functionCall,anObject$9=anObject$g,isCallable$8=isCallable$o,classof$5=classofRaw$2,regexpExec=regexpExec$2,$TypeError$7=TypeError,regexpExecAbstract=function(e,t){var r=e.exec;if(isCallable$8(r))return null!==(r=call$b(r,e,t))&&anObject$9(r),r;if("RegExp"===classof$5(e))return call$b(regexpExec,e,t);throw $TypeError$7("RegExp#exec called on incompatible receiver")},apply$1=functionApply,call$a=functionCall,uncurryThis$8=functionUncurryThis,fixRegExpWellKnownSymbolLogic=fixRegexpWellKnownSymbolLogic,fails$5=fails$m,anObject$8=anObject$g,isCallable$7=isCallable$o,isNullOrUndefined$2=isNullOrUndefined$5,toIntegerOrInfinity=toIntegerOrInfinity$4,toLength=toLength$2,toString$3=toString$8,requireObjectCoercible$1=requireObjectCoercible$6,advanceStringIndex=advanceStringIndex$1,getMethod$2=getMethod$4,getSubstitution=getSubstitution$1,regExpExec=regexpExecAbstract,wellKnownSymbol$a=wellKnownSymbol$k,REPLACE=wellKnownSymbol$k("replace"),max$1=Math.max,min=Math.min,concat=uncurryThis$8([].concat),push$3=uncurryThis$8([].push),stringIndexOf$1=uncurryThis$8("".indexOf),stringSlice$3=uncurryThis$8("".slice),maybeToString=function(e){return void 0===e?e:String(e)},REPLACE_KEEPS_$0="$0"==="a".replace(/./,"$0"),REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE=!!/./[REPLACE]&&""===/./[REPLACE]("a","$0"),REPLACE_SUPPORTS_NAMED_GROUPS=!fails$5(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")});fixRegExpWellKnownSymbolLogic("replace",function(e,S,b){var $=REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE?"$":"$0";return[function(e,t){var r=requireObjectCoercible$1(this),n=isNullOrUndefined$2(e)?void 0:getMethod$2(e,REPLACE);return n?call$a(n,e,r,t):call$a(S,toString$3(r),e,t)},function(e,t){var r=anObject$8(this),n=toString$3(e);if("string"==typeof t&&-1===stringIndexOf$1(t,$)&&-1===stringIndexOf$1(t,"$<")){e=b(S,r,n,t);if(e.done)return e.value}for(var s,i=isCallable$7(t),a=(i||(t=toString$3(t)),r.global),o=(a&&(s=r.unicode,r.lastIndex=0),[]);null!==(d=regExpExec(r,n))&&(push$3(o,d),a);)""===toString$3(d[0])&&(r.lastIndex=advanceStringIndex(n,toLength(r.lastIndex),s));for(var l="",c=0,u=0;u<o.length;u++){for(var d,p=toString$3((d=o[u])[0]),g=max$1(min(toIntegerOrInfinity(d.index),n.length),0),h=[],m=1;m<d.length;m++)push$3(h,maybeToString(d[m]));var f=d.groups,y=i?(y=concat([p],h,g,n),void 0!==f&&push$3(y,f),toString$3(apply$1(t,void 0,y))):getSubstitution(p,n,g,h,f,t);c<=g&&(l+=stringSlice$3(n,c,g)+y,c=g+p.length)}return l+stringSlice$3(n,c)}]},!REPLACE_SUPPORTS_NAMED_GROUPS||!REPLACE_KEEPS_$0||REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);const selectIsWeeklyValid=e=>e.processingCenterIngestion.scheduleStep.weekly.isWeeklyValid,selectWeeklyTimeslots=e=>e.processingCenterIngestion.scheduleStep.weekly.weeklyTimeslots,selectScheduleState=e=>e.processingCenterIngestion.scheduleStep,selectTimezone=e=>e.processingCenterIngestion.scheduleStep.timezone,selectFrequencySchedularState=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular,selectScheduleType=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.scheduleType,selectStartDate=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.startDate,selectEndDate=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.endDate,selectContinuousStartDate=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.continuousStartDate,selectContinuousEndDate=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.continuousEndDate,selectFrequency=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.frequency,selectNoEndDate=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.noEndDate,selectHoursInterval=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.hoursInterval,selectDaysInterval=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.daysInterval,selectDailyTimeslotOne=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.dailyTimeslotOne,selectDailyTimeslotTwo=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.dailyTimeslotTwo,selectDaysTimeslot=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.daysTimeslot,selectFrequencyIsValid=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.frequencyIsValid,selectSchedulePayload=e=>e.processingCenterIngestion.scheduleStep.schedulePayload,SHARED_TEXT={ingestionJobsWizard:{editMode:{panelHeader:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.edit-mode.wizard-panel.title",defaultMessage:"Edit Schedule",description:"Panel header for the Processing Center Wizard Create Schedule Panel"}),headerMoreActionsButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.edit-mode.header.more.actions",defaultMessage:"More Actions",description:"button for more actions"}),headerDeleteScheduleButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.edit-mode.header.delete.schedule.button",defaultMessage:"Delete",description:"button to delete schedule"}),existingJobErrorMessageJob:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.existing-error-message-job",defaultMessage:"This scheduled job could not be found",description:"Error message for existing job not found"}),existingJobErrorMessageSource:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.existing-error-message-source",defaultMessage:"There was no source associated with this job",description:"Error message for existing job source not found"}),existingJobErrorMessageDag:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.existing-error-message-dag",defaultMessage:"There was no DAG template associated with this job",description:"Error message for existing job DAG template not found"}),existingJobErrorTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.existing-error-message-title",defaultMessage:"Scheduled Job Error",description:"title for job error message"})},panelHeader:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.title",defaultMessage:"Create Schedule",description:"Panel header for the Processing Center Wizard Create Schedule Panel"}),closePanel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.close",defaultMessage:"Close",description:"Panel close button for the Processing Center Wizard Create Schedule Panel"}),incompleteFieldsMessage:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.incomplete-warning-message",defaultMessage:"Please complete all required fields",description:"Incomplete fields message for the Processing Center Wizard Next Button"}),someFieldsInvalidMessage:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.invalid-fields-warning-message",defaultMessage:"Some fields are not valid",description:"Invalid fields message for the Processing Center Wizard Next Button"}),stepLabels:{selectSource:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.step-label.select-source",defaultMessage:"Select Source",description:"Stepper Title for the Processing Center Wizard Stepper Select Source"}),basicInfo:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.step-label.basic-info",defaultMessage:"Basic Info",description:"Stepper Title for the Processing Center Wizard Stepper Basic Info"}),schedule:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.step-label.schedule",defaultMessage:"Schedule",description:"Stepper Title for the Processing Center Wizard Stepper Schedule"}),processing:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.step-label.processing",defaultMessage:"Processing",description:"Stepper Title for the Processing Center Wizard Stepper Processing"}),contentTemplates:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.step-label.content-templates",defaultMessage:"Content Templates",description:"Stepper Title for the Processing Center Wizard Stepper Content Templates"}),location:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.step-label.location",defaultMessage:"Location",description:"Stepper Title for the Processing Center Wizard Stepper Location"})}},affiliatePanel:{panelHeaders:{addAffiliate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.panelHeader.add",defaultMessage:"Add an Affiliate",description:"Panel Title for Add an Affiliated Station"}),editAffiliateSchedule:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.panelHeader.edit",defaultMessage:"Edit Affiliate Schedule",description:"Panel Title for Edit an Affiliated Station Schedule"}),bulkAffiliateSchedule:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.panelHeader.bulk",defaultMessage:"Bulk Import Affiliates",description:"Panel Title for Bulk Add Affiliated Stations"})},tvAdapterText:{title:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.tv-adapter-text.title",defaultMessage:"Affiliated Stations",description:"Title for Affiliated Stations"}),subtitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.tv-adapter-text.subtitle",defaultMessage:"Assign affiliated stations that also broadcast programming from this ingestion source.",description:"Sub Title for Affiliated Stations"}),addAffiliateButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.tv-adapter-text.add-affiliate-btn",defaultMessage:"Add Affiliate",description:"Button text for Add Affiliate"}),bulkAffiliateButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.tv-adapter-text.bulk-add-affiliate-btn",defaultMessage:"Bulk Add Affiliates",description:"Button text for Bulk Add Affiliate"})},controls:{cancel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.controls.cancel",defaultMessage:"Cancel",description:"Cancel button label"}),saveAffiliate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.controls.save",defaultMessage:"Save Affiliate",description:"Save affiliate button label"}),editAffiliate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.controls.edit",defaultMessage:"Edit Affiliate",description:"edit affiliate button label"}),bulkImport:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.controls.bulk-import",defaultMessage:"Bulk Import",description:"Bulk Import button label"})},afilliateTable:{headerId:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-table-header-id",defaultMessage:"Id",description:"table header Id"}),headerName:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-table-header-name",defaultMessage:"Name",description:"table header name"}),headerStartDate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-table-header-startdate",defaultMessage:"Start Date",description:"table header start date"}),headerEndDate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-table-header-enddate",defaultMessage:"End Date",description:"table header end date"}),headerEditDelete:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-table-header-edit-delete",defaultMessage:"Edit / Delete",description:"table header edit or delete"}),scheduleTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-table-header-title-schedule",defaultMessage:"Schedule",description:"header for schedule"})},addAffiliateView:{},editAffiliateView:{},bulkAffiliateView:{}},timezonePicker:{editableCaption:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.schedule-step.timezone-picker.caption.editable",defaultMessage:"The schedule will run in this timezone",description:"Caption displayed when the user is able to edit the time zone"}),sourceBasedCaption:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.schedule-step.timezone-picker.caption.source-based",defaultMessage:"The timezone is set on the Source and can not be modified",description:"Caption displayed when the time zone is pinned to the source time zone"}),changeButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.schedule-step.timezone-picker.button.change",defaultMessage:"Change",description:"Text on the button used to change the time zone"}),saveButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.schedule-step.timezone-picker.button.save",defaultMessage:"Save",description:"Text on the button used to save time zone changes"})},processing:{title:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.processing.title",defaultMessage:"Processing",description:"Title for the processing section"}),subtitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.processing.subtitle",defaultMessage:"As data is ingested from this source, each data type will be processed with the selected engines you choose below.",description:"Sub Title for the location section"}),chooseTemplate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.processing.choose-template",defaultMessage:"Choose a Template",description:"Choose template label for the processing section"}),createNewTemplate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.processing.new-template-btn",defaultMessage:"Create a New Template",description:"Create new template button for the processing section"}),errorState:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.processing.error-state",defaultMessage:"Unable to load templates",description:"Error message for the processing section"}),emptyState:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.processing.empty-state",defaultMessage:"No templates found",description:"empty state label for the processing section"}),tooltips:{edit:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.processing.edit-template",defaultMessage:"Edit or make a copy of this template",description:"Tooltip shown on the button used to edit a template"}),notSupported:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.processing.edit-not-supported",defaultMessage:"This is a custom template that uses advanced logic not yet supported by the editor.",description:"Tooltip shown when the template doesn't support being edited"})},selectButton:{select:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.processing.select-template",defaultMessage:"Select",description:"Button used to select a template"}),cancelSelection:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.processing.unselect-template",defaultMessage:"Cancel Selection",description:"Button used to unselect a template"})}},location:{sectionTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.title",defaultMessage:"Location",description:"Title for the location section of location and permissions"}),chooseLocationDetails:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.choose-folder",defaultMessage:"Choose the Data Center folder location where this content will be stored",description:"Explanation of what the folder selector is for"}),folderSelectorLabel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.folder-label",defaultMessage:"Folder",description:"Label for the folder selector"}),chooseLocation:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.choose-location-button",defaultMessage:"Choose Location",description:"Choose folder"}),chooseHome:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.choose-home-button",defaultMessage:"Choose Home",description:"Choose root folder"}),changeLocationButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.change-location-button",defaultMessage:"Change",description:"Change the location that files will be stored in"}),homeFolderLabel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.home-folder-label",defaultMessage:"Home",description:"Text displayed when the user hasn't chosen a specific folder"}),folderInputLabel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.folder-input-label",defaultMessage:"Folder",description:"Label for folder selection"})},permissions:{sectionTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.permissions.title",defaultMessage:"Permissions",description:"Title for the permissions section of location and permissions"}),managePermissionsDetails:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.permissions.manage-permissions",defaultMessage:"Manage who can access the content that is imported with this Scheduled Job",description:"Explanation of what permission management is for"})},sourceSelectDefaultMessage:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-default-select",defaultMessage:"Choose a Source",description:"default select text"}),sourceSelectTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-title",defaultMessage:"Select a Source",description:"title text"}),sourceSelectSubTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-subtitle",defaultMessage:"Select the data source for this scheduled job",description:"subtitle text"}),loadingSources:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-loading-sources",defaultMessage:"Loading Sources",description:"Search Filter by Source Schedule, loader message Loading Sources"}),retryButtonText:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-retry-button",defaultMessage:"Retry",description:"text for button to allow retry of failed api call"}),sourcesErrorMessageText:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-error",defaultMessage:"There was an error loading the sources",description:"text for error with source fetching"}),sourcesNotFoundText:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-not-found",defaultMessage:"No sources match your search name or source type.",description:"text for no sources found"}),createSourceButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-create-source",defaultMessage:"Create New Source",description:"button for create new source"}),advancedSettingsButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-advanced-settings",defaultMessage:"Advanced Settings",description:"button for advanced settings for source"}),nextButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-next-button",defaultMessage:"Next",description:"button for next step"}),cancelButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-cancel-button",defaultMessage:"Cancel",description:"button for cancel"}),backButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-back-button",defaultMessage:"Back",description:"button for back"}),skipButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-skip-button",defaultMessage:"Skip",description:"button for skip"}),createScheduledJobButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-create-job-button",defaultMessage:"Create Scheduled Job",description:"button for create job"}),updateScheduledJobButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-update-job-button",defaultMessage:"Update Scheduled Job",description:"button for update job"}),frequencySchedular:{title:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-title",defaultMessage:"Schedule",description:"title"}),subtitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-subtitle",defaultMessage:"How often would you like to import new data from this source?",description:"subtitle"}),radioRecurring:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-radio-recurring",defaultMessage:"Recurring",description:"radio label recurring"}),radioContinuous:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-radio-continuous",defaultMessage:"Continuous",description:"radio label continuous"}),radioOnDemand:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-radio-ondemand",defaultMessage:"On Demand",description:"radio label for on demand"}),errorNoSupportedTypes:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-error-not-supported-schedule",defaultMessage:"This adapter does not have any supported schedule types.",description:"error message no supported schedule types"}),messageDaily:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-message-daily",defaultMessage:"This schedule will run daily at the selected time below.",description:"message for daily selected"}),messageTwiceDaily:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-message-twice-daily",defaultMessage:"This schedule will run twice daily at the selected times below.",description:"message for twice daily selected"}),messageHours:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-message-hours",defaultMessage:"Schedule this job to run at an hourly interval between 1 and 24 hours.",description:"message for hours selected"}),messageDays:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-message-days",defaultMessage:"Schedule this job to run at a daily interval that will start at the selected time below.",description:"message for days selected"}),messageMediaChunk:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-message-media-chunk",defaultMessage:"Ingested content will have a set duration of",description:"message for media chunk"}),messageScheduleFrequencyError:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-message-schedule-frequency-error",defaultMessage:"The Schedule Frequency of the existing job is not supported by this scheduler. Please click on the Frequency dropdown to create a new Schedule.",description:"message for unsupported schedule type"}),messageMediaChunkMinutes:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-message-media-chunk-minutes",defaultMessage:"minutes",description:"message for media chunk minutes"}),changeMediaChunkButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-button-media-chunk-minutes",defaultMessage:"CHANGE",description:"button for media chunk minutes"}),textBetweenDates:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-text-between-dates",defaultMessage:"to",description:"text between date selectors"}),startDate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-start-date",defaultMessage:"Start Date",description:"label for start date"}),endDate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-end-date",defaultMessage:"End Date",description:"label for end date"}),labelHours:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-hours",defaultMessage:"Hours",description:"label for Hours"}),labelDays:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-days",defaultMessage:"Days",description:"label for days"}),labelDaily:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-daily",defaultMessage:"Daily",description:"label for daily"}),labelTwiceDaily:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-twice-daily",defaultMessage:"Twice Daily",description:"label for twice daily"}),labelWeekly:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-weekly",defaultMessage:"Weekly",description:"label for weekly"}),labelNoEndDate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-no-end",defaultMessage:"No End Date",description:"label for no end date"}),inputLabelFrequency:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-input-label-frequency",defaultMessage:"Frequency",description:"label for frequency input"}),inputLabelInterval:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-input-label-interval",defaultMessage:"Interval",description:"label for interval selector"}),labelMinutes:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"oprocessing-panel-ingestion-schedule-step-freq-minutes",defaultMessage:"Minutes",description:"text for minutes"}),labelMediaChunkLength:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-input-label-media-chunk",defaultMessage:"Media Chunk Length",description:"label for media chunk selector"}),onDemandMessage:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-ondemand-message",defaultMessage:"Data import will begin once an external event is triggered",description:"message for on demand"}),learnMore:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-ondemand-learn-more",defaultMessage:"Learn More",description:"learn more link"})}},useStyles$9=makeStyles()(e=>({onDemandContainer:{background:"#FAFAFA",display:"flex",borderRadius:"4px",flexDirection:"row",justifyContent:"space-around",alignItems:"center",width:"464px",height:"60px",marginTop:"20px"},ingestionRow:{display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center",width:"650px",marginTop:"20px"},spaceAbove:{display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center",width:"660px",marginTop:"20px"},textBetweenDateContainer:{width:"auto",marginLeft:"15px",marginRight:"15px"},frequencyMessageContainer:{display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center",marginLeft:"15px",height:"55px",width:"auto"},daysHoursMessageContainer:{marginTop:" 15px",display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center",width:"auto"},daysHoursMessage:{fontSize:"14px",color:"#000"},chunkButton:{fontSize:"14px",marginTop:"2px"},messageContainer:{display:"flex",flexDirection:"row",alignItems:"center",width:"100%"},frequencyMessage:{width:"100%"},frequencyMessageError:{width:"100%",color:"rgba(255,0,0,0.6)"},intervalSelectContainer:{marginLeft:"10px",width:"75px"},frequencySelectContainer:{width:"167px"},noEndContainer:{marginLeft:"15px"},radioGroupContainer:{width:"100%"},timeslotTopMargin:{marginTop:"8px"},timeslotMenu:{marginTop:"20px",width:"260px !important"},timeslotStartMenu:{marginTop:"20px",display:"flex",position:"relative",background:"#F6F7FA",boxSizing:"border-box",gap:"10px",width:"124px !important",padding:"0px 12px",borderRadius:"5px",alignItems:"center",userSelect:"none",'&:hover input[type="time"]':{color:"#1871e8"},"&.is-invalid":{backgroundColor:"rgba(255,0,0,0.05)"},'&.is-invalid input[type="time"]':{color:"rgba(255,0,0,0.6)"}}})),useStyles$8=makeStyles()(e=>({container:{display:"flex",flexDirection:"column",gap:"20px"},dayBubblesContainer:{display:"flex",gap:"10px"},dayBubble:{height:"40px",width:"40px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"14px",fontWeight:"bold",cursor:"pointer",userSelect:"none",transition:"all 0.25s ease-in-out","&.disabled:active":{opacity:.5},"&.enabled:active":{opacity:.5},"&.disabled:hover":{backgroundColor:"rgba(24,113,232,0.2)"},"&.enabled:hover":{backgroundColor:"rgba(24,113,232,0.8)"},"&.enabled":{backgroundColor:"#1871E8",color:"#fff"},"&.disabled":{backgroundColor:"#F2F3F4",color:"#555F7C"}},timeslotsWidgetContainer:{display:"flex",gap:"15px",flexDirection:"column",width:"100%",overflowY:"scroll"},timeslotRow:{display:"flex",alignItems:"flex-start",gap:"10px"},timeslotDayLabel:{width:"15%",paddingTop:"5px"},timeslotList:{display:"flex",flexDirection:"column",gap:"15px"},timeslotMenu:{display:"flex",position:"relative",background:"#F6F7FA",boxSizing:"border-box",gap:"10px",padding:"0px 12px",borderRadius:"5px",alignItems:"center",userSelect:"none",'&:hover input[type="time"]':{color:"#1871e8"},"&.is-invalid":{backgroundColor:"rgba(255,0,0,0.05)"},'&.is-invalid input[type="time"]':{color:"rgba(255,0,0,0.6)"}},timeslotDelete:{position:"absolute",top:0,right:"-60px",opacity:0,transition:"all 0.25s ease-in-out","&:hover":{opacity:1}},inputTime:{background:"transparent",border:"none",fontFamily:"sans-serif",padding:"8px 0px",outline:"none!important",color:"#2A323C",fontSize:"15px"},rowActions:{display:"flex",alignItems:"center",gap:"15px",opacity:0,paddingLeft:"10px",transition:"all 0.25s ease-in-out","&:hover":{opacity:1}},rowDivider:{width:"1px",display:"flex",backgroundColor:"#979797",height:"30px"},rowCopyToAll:{display:"flex",alignItems:"center",gap:"10px"}})),WEEKLY_SCHEDULER_SHARED_TEXT={ui:{invalidTimeslot:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.tooltip.invalid-time-slot",defaultMessage:"This time window is not valid",description:"Processing Center Wizard Schedule Step, UI tooltip for invalid time slot"}),deleteTimeslot:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.tooltip.delete-time-slot",defaultMessage:"Delete time",description:"Processing Center Wizard Schedule Step, UI tooltip for delete time"}),addTimeWindow:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.tooltip.add-time-window",defaultMessage:"Add time window",description:"Processing Center Wizard Schedule Step, UI tooltip for add time window"}),copyTimeToAll:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.text.copy-time-to-all",defaultMessage:"Copy time to all",description:"Processing Center Wizard Schedule Step, UI text for copy time to all"}),copiedTimeToAll:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.text.copied-time-to-all",defaultMessage:"Copied times",description:"Processing Center Wizard Schedule Step, UI text for copied times to all"}),replaceAllDayTimes:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.tooltip.replace-all-day-times",defaultMessage:"This will replace all days selected time",description:"Processing Center Wizard Schedule Step, UI tooltip for replace all days times"}),changeTime:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.text.change-time",defaultMessage:"Change Time",description:"Processing Center Wizard Schedule Step, UI Text for change time"}),chooseLaterTime:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.tooltip.choose-later-time",defaultMessage:"Please select a later time",description:"Processing Center Wizard Schedule Step, UI Text for tooltip - choose later time"}),chooseEarlierTime:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.tooltip.choose-earlier-time",defaultMessage:"Please select an earlier time",description:"Processing Center Wizard Schedule Step, UI Text for tooltip - choose earlier time"})},days:{Su:{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.day.label.sunday",defaultMessage:"Sunday",description:"Processing Center Wizard Schedule Step, day label for Sunday"}),enable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.enable.sunday",defaultMessage:"Add Sunday time",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, enable Sunday"}),disable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.disable.sunday",defaultMessage:"Remove all Sunday times",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, disable Sunday"})},M:{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.day.label.monday",defaultMessage:"Monday",description:"Processing Center Wizard Schedule Step, day label for Monday"}),enable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.enable.monday",defaultMessage:"Add Monday time",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, enable monday"}),disable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.disable.monday",defaultMessage:"Remove all Monday times",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, disable monday"})},Tu:{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.day.label.tuesday",defaultMessage:"Tuesday",description:"Processing Center Wizard Schedule Step, day label for Tuesday"}),enable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.enable.tuesday",defaultMessage:"Add Tuesday time",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, enable tuesday"}),disable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.disable.tuesday",defaultMessage:"Remove all Tuesday times",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, disable tuesday"})},W:{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.day.label.wednesday",defaultMessage:"Wednesday",description:"Processing Center Wizard Schedule Step, day label for wednesday"}),enable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.enable.wednesday",defaultMessage:"Add Wednesday time",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, enable wednesday"}),disable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.disable.wednesday",defaultMessage:"Remove all Wednesday times",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, disable wednesday"})},Th:{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.day.label.thursday",defaultMessage:"Thursday",description:"Processing Center Wizard Schedule Step, day label for Thursday"}),enable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.enable.thursday",defaultMessage:"Add Thursday time",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, enable thursday"}),disable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.disable.thursday",defaultMessage:"Remove all Thursday times",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, disable thursday"})},F:{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.day.label.friday",defaultMessage:"Friday",description:"Processing Center Wizard Schedule Step, day label for Friday"}),enable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.enable.friday",defaultMessage:"Add Friday time",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, enable friday"}),disable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.disable.friday",defaultMessage:"Remove all Friday times",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, disable friday"})},Sa:{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.day.label.saturday",defaultMessage:"Saturday",description:"Processing Center Wizard Schedule Step, day label for Saturday"}),enable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.enable.saturday",defaultMessage:"Add Saturday time",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, enable saturday"}),disable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.disable.saturday",defaultMessage:"Remove all Saturday times",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, disable saturday"})}}},TimeDropdown=({disabled:e,time:t,onChange:r,min:n,max:s,showTooltip:i})=>{var a=useStyles$8()["classes"];return jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:jsxRuntime.exports.jsx(Tooltip,Object.assign({title:i&&!e?WEEKLY_SCHEDULER_SHARED_TEXT.ui.changeTime:""},{children:jsxRuntime.exports.jsx("input",{disabled:e,"data-testid":"pc-wizard-schedule-weekly-timeslot",value:t,name:s?"start":"end",min:n||void 0,max:s||void 0,className:a.inputTime,type:"time",onChange:e=>{var{value:e,name:t}=e.target;r(e,t)}})}))})},TimeStartEndField=({timeslot:e,showDelete:t,day:n,onDelete:r,onChangeTime:s,disabled:i,id:a=""})=>{var o=useStyles$8()["classes"];const{id:l,start:c,end:u,isValid:d}=e;var e=o.timeslotMenu+" "+(d?"":"is-invalid"),p=(e,t)=>{let r;r="start"===t?createTimeslot(e,u,l,validateTimeWindow(e,u),!1):createTimeslot(c,e,l,validateTimeWindow(c,e),!1),s(r,l,n)};return jsxRuntime.exports.jsx(Tooltip,Object.assign({title:d?"":WEEKLY_SCHEDULER_SHARED_TEXT.ui.invalidTimeslot},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:e,"data-testid":"timeslot-field-row-"+a},{children:[jsxRuntime.exports.jsx(TimeDropdown,{disabled:i,time:c,onChange:p,max:u,showTooltip:d}),jsxRuntime.exports.jsx("span",{children:"to"}),jsxRuntime.exports.jsx(TimeDropdown,{disabled:i,time:u,onChange:p,min:c,showTooltip:d}),t&&jsxRuntime.exports.jsx("div",Object.assign({className:o.timeslotDelete},{children:jsxRuntime.exports.jsx(Tooltip,Object.assign({enterDelay:0,title:WEEKLY_SCHEDULER_SHARED_TEXT.ui.deleteTimeslot},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({onClick:()=>{n&&r&&r(n,l)},"data-testid":"pc-wizard-schedule-weekly-timeslot-button-delete"},{children:jsxRuntime.exports.jsx(Delete$1,{})}))}))}))]}))}))},selectSearchTerm=e=>e.processingCenterIngestion.sourceStep.sourceSearchTerm||"",selectSourceTypeId=e=>e.processingCenterIngestion.sourceStep.sourceTypeId||"",selectSourceSelected=e=>e.processingCenterIngestion.sourceStep.sourceSelected||null,selectOffset=e=>e.processingCenterIngestion.sourceStep.offset,selectError=e=>e.processingCenterIngestion.sourceStep.error,selectIsLoading=e=>e.processingCenterIngestion.sourceStep.isLoading,selectHasMore=e=>e.processingCenterIngestion.sourceStep.hasMore,selectSearchedSources=e=>e.processingCenterIngestion.sourceStep.searchedSources||[],selectMediaChunkLength=e=>e.processingCenterIngestion.sourceStep.mediaChunkLength,selectClusterSelected=e=>e.processingCenterIngestion.sourceStep.clusterSection.clusterSelected,selectClustersError=e=>e.processingCenterIngestion.sourceStep.clusterSection.error,selectClustersIsLoading=e=>e.processingCenterIngestion.sourceStep.clusterSection.isLoading,selectClustersOffset=e=>e.processingCenterIngestion.sourceStep.clusterSection.offset,selectClusters=e=>e.processingCenterIngestion.sourceStep.clusterSection.clusters||[],selectIsAffiliateSearch=e=>e.processingCenterIngestion.sourceStep.isAffiliateSearch,Frequency=(!function(e){e.Months="Months",e.Weeks="Weeks",e.Days="Days",e.Hours="Hours",e.Minutes="Minutes",e.Seconds="Seconds"}(IRepeatIntervalUnit=IRepeatIntervalUnit||{}),!function(e){e.Job="Job",e.Source="Source",e.Dag="Dag"}(IExistingJobErrorMessage=IExistingJobErrorMessage||{}),{Hours:"Hours",Days:"Days",Daily:"Daily",TwiceDaily:"TwiceDaily",Weekly:"Weekly"}),podcastAdapterId="a725de38-f538-4c4a-b835-b0bd4ab1a255",FrequencySchedular=({activeEngine:e})=>{const t=useStyles$9()["classes"],r=useDispatch();var n=useSelector(selectMediaChunkLength),s=Number(useSelector(selectHoursInterval)),i=Number(useSelector(selectDaysInterval));const a=useSelector(selectDailyTimeslotOne),o=useSelector(selectDailyTimeslotTwo);var l=useSelector(selectDaysTimeslot),c=useSelector(selectScheduleType),u=useSelector(selectStartDate),d=useSelector(selectEndDate),p=useSelector(selectContinuousStartDate),g=useSelector(selectContinuousEndDate);const h=useSelector(selectFrequency);var m=useSelector(selectNoEndDate);const f=useSelector(selectTimezone),y=useSelector(selectFrequencySchedularState);RunMode.Recurring,RunMode.Continuous,RunMode.Once,RunMode.Now;e=null==e?void 0:e.id;react.exports.useEffect(()=>{r(actions$6.setFrequencyIsValid(validateFrequencyScheduler(y)))},[y]),react.exports.useEffect(()=>{var e;h===Frequency.Daily&&(e=generateDailyTimeslots(a),e=lodash.exports.cloneDeep(formatWeeklyPayload(e,f)),r(actions$6.setDailyScheduleParts(e)))},[a,f,h]),react.exports.useEffect(()=>{var e;h===Frequency.TwiceDaily&&(e=generateDailyTimeslots(a,o),e=lodash.exports.cloneDeep(formatWeeklyPayload(e,f)),r(actions$6.setTwiceDailyScheduleParts(e)))},[a,o,f,h]);return jsxRuntime.exports.jsxs("div",Object.assign({style:{height:"auto"}},{children:[jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h5"},{children:SHARED_TEXT.frequencySchedular.title()})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption"},{children:SHARED_TEXT.frequencySchedular.subtitle()})),jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(FormControl,{children:jsxRuntime.exports.jsxs(RadioGroup,Object.assign({className:t.radioGroupContainer,row:!0,name:"schedule-type-radio-buttons-group",value:c,onChange:e=>{e=e.target.value;r(actions$6.resetFrequencyState()),r(actions$6.setScheduleType(e))}},{children:[jsxRuntime.exports.jsx(FormControlLabel,{"data-testid":"ingestion-job-frequency-radio-recurring",value:RunMode.Recurring,control:jsxRuntime.exports.jsx(Radio,{}),label:SHARED_TEXT.frequencySchedular.radioRecurring()}),jsxRuntime.exports.jsx(FormControlLabel,{"data-testid":"ingestion-job-frequency-radio-continuous",value:RunMode.Continuous,control:jsxRuntime.exports.jsx(Radio,{}),label:SHARED_TEXT.frequencySchedular.radioContinuous()})]}))})})]}),!1,c===RunMode.Recurring&&jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:t.ingestionRow},{children:[jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(FormControl,{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"ingestion-job-frequency-start-date",id:"date",required:!0,label:SHARED_TEXT.frequencySchedular.startDate(),type:"date",value:u,onChange:e=>{e=e.target.value;r(actions$6.setStartDate(e))},InputLabelProps:{shrink:!0},error:validateStartAndEndTime(u,d,!m)})})}),jsxRuntime.exports.jsx("div",Object.assign({className:t.textBetweenDateContainer},{children:jsxRuntime.exports.jsx(Typography,{children:SHARED_TEXT.frequencySchedular.textBetweenDates()})})),jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(FormControl,{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"ingestion-job-frequency-end-date",id:"date",label:SHARED_TEXT.frequencySchedular.endDate(),type:"date",disabled:m,value:d,onChange:e=>{e=e.target.value;r(actions$6.setEndDate(e))},InputLabelProps:{shrink:!0},error:validateStartAndEndTime(u,d,!m)})})}),jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(FormControl,Object.assign({className:t.noEndContainer},{children:jsxRuntime.exports.jsx(FormControlLabel,{"data-testid":"ingestion-job-frequency-radio-no-end-date",control:jsxRuntime.exports.jsx(Checkbox,{checked:m,onChange:e=>{e=e.target.checked;r(actions$6.setNoEndDate(e))}}),label:SHARED_TEXT.frequencySchedular.labelNoEndDate()})}))})]})),jsxRuntime.exports.jsxs("div",Object.assign({className:t.ingestionRow},{children:[jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsxs(FormControl,Object.assign({className:t.frequencySelectContainer},{children:[jsxRuntime.exports.jsx(InputLabel,Object.assign({required:!0,shrink:!0,id:"frequency-label"},{children:SHARED_TEXT.frequencySchedular.inputLabelFrequency()})),jsxRuntime.exports.jsxs(Select,Object.assign({"data-testid":"ingestion-job-frequency-select-frequency",required:!0,labelId:"frequency-label",id:"frequency",value:h,label:SHARED_TEXT.frequencySchedular.inputLabelFrequency(),displayEmpty:!0,onChange:e=>{e=e.target.value;r(actions$6.setFrequency(e)),r(actions$6.resetFrequencyFields())}},{children:[jsxRuntime.exports.jsx(MenuItem,Object.assign({"data-testid":"ingestion-job-frequency-select-hours",value:Frequency.Hours},{children:SHARED_TEXT.frequencySchedular.labelHours()})),jsxRuntime.exports.jsx(MenuItem,Object.assign({"data-testid":"ingestion-job-frequency-select-days",value:Frequency.Days},{children:SHARED_TEXT.frequencySchedular.labelDays()})),jsxRuntime.exports.jsx(MenuItem,Object.assign({"data-testid":"ingestion-job-frequency-select-daily",value:Frequency.Daily},{children:SHARED_TEXT.frequencySchedular.labelDaily()})),jsxRuntime.exports.jsx(MenuItem,Object.assign({"data-testid":"ingestion-job-frequency-select-twice-daily",value:Frequency.TwiceDaily},{children:SHARED_TEXT.frequencySchedular.labelTwiceDaily()})),jsxRuntime.exports.jsx(MenuItem,Object.assign({"data-testid":"ingestion-job-frequency-select-weekly",value:Frequency.Weekly},{children:SHARED_TEXT.frequencySchedular.labelWeekly()}))]}))]}))}),h===Frequency.Hours&&jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(FormControl,Object.assign({className:t.intervalSelectContainer},{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"ingestion-job-frequency-select-interval-hours",label:SHARED_TEXT.frequencySchedular.inputLabelInterval(),type:"number",InputLabelProps:{shrink:!0},value:s,onChange:e=>{e=Number(e.target.value);24<e||e<1||r(actions$6.setHoursInterval(e))}})}))}),h===Frequency.Days&&jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(FormControl,Object.assign({className:t.intervalSelectContainer},{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"ingestion-job-frequency-select-interval-days",id:"outlined-number",label:"Interval",type:"number",InputLabelProps:{shrink:!0},value:i,onChange:e=>{e=Number(e.target.value);365<e||e<1||r(actions$6.setDaysInterval(e))}})}))}),jsxRuntime.exports.jsx("div",Object.assign({className:t.frequencyMessageContainer},{children:h===IRepeatIntervalUnit.Months||h===IRepeatIntervalUnit.Minutes||h===IRepeatIntervalUnit.Seconds?jsxRuntime.exports.jsx(Typography,Object.assign({"data-testid":"ingestion-job-frequency-message-daily",className:t.frequencyMessageError},{children:SHARED_TEXT.frequencySchedular.messageScheduleFrequencyError()})):h===Frequency.Daily?jsxRuntime.exports.jsx(Typography,Object.assign({"data-testid":"ingestion-job-frequency-message-daily",className:t.frequencyMessage},{children:SHARED_TEXT.frequencySchedular.messageDaily()})):h===Frequency.TwiceDaily?jsxRuntime.exports.jsx(Typography,Object.assign({"data-testid":"ingestion-job-frequency-message-twice-daily",className:t.frequencyMessage},{children:SHARED_TEXT.frequencySchedular.messageTwiceDaily()})):h===Frequency.Hours?jsxRuntime.exports.jsx(Typography,Object.assign({"data-testid":"ingestion-job-frequency-message-hours",className:t.frequencyMessage},{children:SHARED_TEXT.frequencySchedular.messageHours()})):h===Frequency.Days?jsxRuntime.exports.jsx(Typography,Object.assign({"data-testid":"ingestion-job-frequency-message-days",className:t.frequencyMessage},{children:SHARED_TEXT.frequencySchedular.messageDays()})):null}))]})),(h===Frequency.Daily||h===Frequency.TwiceDaily)&&jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx("div",Object.assign({className:t.timeslotMenu},{children:jsxRuntime.exports.jsx(TimeStartEndField,{"data-testid":"ingestion-job-frequency-select-timeslot1",timeslot:a,onChangeTime:e=>{r(actions$6.setDailyTimeslotOne(e))}})})),h===Frequency.TwiceDaily&&jsxRuntime.exports.jsx("div",Object.assign({className:t.timeslotMenu},{children:jsxRuntime.exports.jsx(TimeStartEndField,{"data-testid":"ingestion-job-frequency-select-timeslot2",timeslot:o,onChangeTime:e=>{r(actions$6.setDailyTimeslotTwo(e))}})}))]}),h===Frequency.Days&&jsxRuntime.exports.jsx("div",Object.assign({className:t.timeslotStartMenu},{children:jsxRuntime.exports.jsx(TimeDropdown,{"data-testid":"ingestion-job-frequency-days-start-time",time:l,onChange:e=>{r(actions$6.setDaysTimeslot(e))},max:"endTime",showTooltip:!1})})),(h===Frequency.Hours||h===Frequency.Days)&&podcastAdapterId!==e&&jsxRuntime.exports.jsxs("div",Object.assign({"data-testid":"ingestion-job-frequency-message-media-chunk",className:t.daysHoursMessageContainer},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({className:t.daysHoursMessage},{children:SHARED_TEXT.frequencySchedular.messageMediaChunk()})),jsxRuntime.exports.jsxs(Typography,Object.assign({className:t.daysHoursMessage,sx:{fontWeight:"bold"}},{children:[" ",n," "]})),jsxRuntime.exports.jsx(Typography,Object.assign({className:t.daysHoursMessage},{children:SHARED_TEXT.frequencySchedular.messageMediaChunkMinutes()})),jsxRuntime.exports.jsx(Button,Object.assign({"data-testid":"ingestion-job-frequency-open-advanced",onClick:()=>{r(mountPanel({panelId:"PROCESSING_CENTER_ADVANCED_SETTINGS",microFrontend:{name:"PROCESSING_CENTER_ADVANCED_SETTINGS",config:{}},panelConfig:{header:{title:"Advanced Settings"},divider:!1,type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,size:"small",parentPanelId:"PROCESSING_CENTER_INGESTION",dimmed:0,dimmedStatus:"dimParent"}}))},className:t.chunkButton},{children:SHARED_TEXT.frequencySchedular.changeMediaChunkButton()}))]}))]}),c===RunMode.Continuous&&jsxRuntime.exports.jsxs("div",Object.assign({className:t.ingestionRow},{children:[jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(FormControl,{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"ingestion-job-frequency-continuous-start",required:!0,id:"date",label:SHARED_TEXT.frequencySchedular.startDate(),type:"datetime-local",value:p,onChange:e=>{e=e.target.value;r(actions$6.setContinuousStartDate(e))},InputLabelProps:{shrink:!0},error:validateStartAndEndTime(p,g,!0)})})}),jsxRuntime.exports.jsx("div",Object.assign({className:t.textBetweenDateContainer},{children:jsxRuntime.exports.jsx(Typography,{children:SHARED_TEXT.frequencySchedular.textBetweenDates()})})),jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(FormControl,{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"ingestion-job-frequency-continuous-end",required:!0,id:"date",label:SHARED_TEXT.frequencySchedular.startDate(),type:"datetime-local",value:g,onChange:e=>{e=e.target.value;r(actions$6.setContinuousEndDate(e))},InputLabelProps:{shrink:!0},error:validateStartAndEndTime(p,g,!0)})})})]}))]}))},getUTCDate=(e,t)=>{t+=getTimezoneOffset(e);try{return new Date(t).toISOString()}catch(e){return(new Date).toISOString()}},getTimezoneOffset=e=>{try{var t=(new Date).toLocaleTimeString("en-US",{timeZone:e,timeZoneName:"longOffset"}).split(" ").pop();return null==t?void 0:t.replace("GMT","")}catch(e){return console.error("The timezone could not be found - schedule will set in UTC time"),"+00:00"}},generateDailyTimeslots=(e,t)=>{var r={};for(const n of DAYS.ids)r[n]=[e],t&&r[n].push(t);return r},validateStartAndEndTime=(e,t,r)=>!(!r||!isAfter(new Date(e),new Date(t))),validateFrequencyScheduler=e=>{if(e.scheduleType!==RunMode.Once){if(e.scheduleType===RunMode.Recurring&&!e.noEndDate){if(!e.startDate||!e.endDate)return!1;if(isAfter(new Date(e.startDate),new Date(e.endDate)))return!1}if(e.scheduleType===RunMode.Recurring&&e.frequency===Frequency.Daily&&!e.dailyTimeslotOne.isValid)return!1;if(e.scheduleType===RunMode.Recurring&&e.frequency===Frequency.TwiceDaily){if(!e.dailyTimeslotOne.isValid)return!1;if(!e.dailyTimeslotTwo.isValid)return!1}if(e.scheduleType===RunMode.Continuous){if(!e.continuousStartDate||!e.continuousEndDate)return!1;if(isAfter(new Date(e.continuousStartDate),new Date(e.continuousEndDate)))return!1}}return!0},setApiPayload=e=>{var t,r={runMode:e.frequencySchedular.scheduleType};return e.frequencySchedular.scheduleType===RunMode.Recurring&&(t=e.frequencySchedular.startDate+"T00:00",r.startDateTime=getUTCDate(e.timezone,t),e.frequencySchedular.noEndDate||(t=e.frequencySchedular.endDate+"T23:59",r.stopDateTime=getUTCDate(e.timezone,t)),e.frequencySchedular.frequency===Frequency.Days&&(t=e.frequencySchedular.daysTimeslot+getTimezoneOffset(e.timezone),r.recurringScheduleParts=[{repeatIntervalUnit:e.frequencySchedular.frequency,repeatInterval:e.frequencySchedular.daysInterval,startTime:t}]),e.frequencySchedular.frequency===Frequency.Hours&&(r.recurringScheduleParts=[{repeatIntervalUnit:e.frequencySchedular.frequency,repeatInterval:e.frequencySchedular.hoursInterval}]),e.frequencySchedular.frequency===Frequency.Daily&&(r.weeklyScheduleParts=e.frequencySchedular.dailyScheduleParts),e.frequencySchedular.frequency===Frequency.TwiceDaily&&(r.weeklyScheduleParts=e.frequencySchedular.twiceDailyScheduleParts),e.frequencySchedular.frequency===Frequency.Weekly)&&(r.weeklyScheduleParts=e.weekly.weeklyScheduleParts),e.frequencySchedular.scheduleType===RunMode.Continuous&&(r.startDateTime=getUTCDate(e.timezone,e.frequencySchedular.continuousStartDate),r.stopDateTime=getUTCDate(e.timezone,e.frequencySchedular.continuousEndDate)),r},getNumericalTime=e=>{var[e,t]=e.split(":");return{hour:parseInt(e,10),min:parseInt(t,10)}},validateTimeWindow=(e,t)=>{e=getNumericalTime(e),t=getNumericalTime(t);return!(e.hour>t.hour||e.hour===t.hour&&e.min>=t.min)},validateAllTimeslots=e=>{for(const t of Object.keys(e))for(const r of e[t])if(!r.isValid)return!1;return!0},DEFAULT_TIMESLOT_TIMES={start:"09:00",end:"17:00"},createTimeslot=(e,t,r,n,s)=>({start:e,end:t,id:r,isValid:n,isConflict:s}),DAYS={labels:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],ids:["Su","M","Tu","W","Th","F","Sa"]},getEnabledDays=e=>{var t=[];for(const r of Object.keys(e))e[r].length&&t.push(r);return t},initialTimeslots={Su:[],M:[createTimeslot(DEFAULT_TIMESLOT_TIMES.start,DEFAULT_TIMESLOT_TIMES.end,v4(),!0,!1)],Tu:[],W:[],Th:[],F:[],Sa:[]},formatWeeklyPayload=(e,t)=>{var r=[];for(const o of Object.keys(e)){var n=DAYS.labels[DAYS.ids.indexOf(o)];for(const l of e[o]){var{start:s,end:i,isValid:a}=l,s={scheduledDay:n,startTime:s+getTimezoneOffset(t),stopTime:i+getTimezoneOffset(t)};a&&r.push(s)}}return r},namespace$6="scheduleStep",RunMode={Continuous:"Continuous",Recurring:"Recurring",Once:"Once",Now:"Now"},initialState$5={timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,frequencySchedular:{scheduleType:RunMode.Recurring,startDate:format(new Date,"yyyy-MM-dd"),endDate:format(addDays(new Date,1),"yyyy-MM-dd"),continuousStartDate:(new Date).toISOString().slice(0,16),continuousEndDate:addDays(new Date,1).toISOString().slice(0,16),hoursInterval:1,daysInterval:1,frequency:"Weekly",daysTimeslot:"09:00",dailyTimeslotOne:{id:"timeslotOne",start:"09:00",end:"11:00",isConflict:!1,isValid:!0},dailyTimeslotTwo:{id:"timeslotTwo",start:"13:00",end:"15:00",isConflict:!1,isValid:!0},noEndDate:!0,dailyScheduleParts:[],twiceDailyScheduleParts:[],frequencyIsValid:!0},weekly:{isWeeklyValid:!0,weeklyTimeslots:{Su:[],M:[createTimeslot(DEFAULT_TIMESLOT_TIMES.start,DEFAULT_TIMESLOT_TIMES.end,v4(),!0,!1)],Tu:[],W:[],Th:[],F:[],Sa:[]},weeklyScheduleParts:[]},schedulePayload:{runMode:"",startDateTime:""}},scheduleStepSlice=createSlice({name:"scheduleStep",initialState:initialState$5,reducers:{setTimezone:(e,{payload:t})=>{e.timezone=t},setIsWeeklyValid:(e,{payload:t})=>{e.weekly.isWeeklyValid=t},setWeeklyTimeslots:(e,t)=>{t=t.payload;e.weekly.weeklyTimeslots=t},setWeeklyScheduleParts:(e,t)=>{t=t.payload;e.weekly.weeklyScheduleParts=t},clearWeeklyScheduleParts:e=>{e.weekly.weeklyScheduleParts=[]},setDailyScheduleParts:(e,t)=>{t=t.payload;e.frequencySchedular.dailyScheduleParts=t},setTwiceDailyScheduleParts:(e,t)=>{t=t.payload;e.frequencySchedular.twiceDailyScheduleParts=t},resetFrequencyState:e=>{e.frequencySchedular=initialState$5.frequencySchedular},resetFrequencyFields:e=>{e.frequencySchedular.dailyTimeslotOne=initialState$5.frequencySchedular.dailyTimeslotOne,e.frequencySchedular.dailyTimeslotTwo=initialState$5.frequencySchedular.dailyTimeslotTwo,e.frequencySchedular.hoursInterval=initialState$5.frequencySchedular.hoursInterval,e.frequencySchedular.daysInterval=initialState$5.frequencySchedular.daysInterval,e.frequencySchedular.daysTimeslot=initialState$5.frequencySchedular.daysTimeslot,e.frequencySchedular.dailyScheduleParts=initialState$5.frequencySchedular.dailyScheduleParts,e.frequencySchedular.twiceDailyScheduleParts=initialState$5.frequencySchedular.twiceDailyScheduleParts},setScheduleType:(e,{payload:t})=>{e.frequencySchedular.scheduleType=t},setStartDate:(e,{payload:t})=>{e.frequencySchedular.startDate=t},setEndDate:(e,{payload:t})=>{e.frequencySchedular.endDate=t},setContinuousStartDate:(e,{payload:t})=>{e.frequencySchedular.continuousStartDate=t},setContinuousEndDate:(e,{payload:t})=>{e.frequencySchedular.continuousEndDate=t},setFrequency:(e,{payload:t})=>{e.frequencySchedular.frequency=t},setNoEndDate:(e,{payload:t})=>{e.frequencySchedular.noEndDate=t},setHoursInterval:(e,{payload:t})=>{e.frequencySchedular.hoursInterval=t},setDaysInterval:(e,{payload:t})=>{e.frequencySchedular.daysInterval=t},setDailyTimeslotOne:(e,{payload:t})=>{e.frequencySchedular.dailyTimeslotOne=t},setDailyTimeslotTwo:(e,{payload:t})=>{e.frequencySchedular.dailyTimeslotTwo=t},setDaysTimeslot:(e,{payload:t})=>{e.frequencySchedular.daysTimeslot=t},setFrequencyIsValid:(e,{payload:t})=>{e.frequencySchedular.frequencyIsValid=t},setSchedulePayload:(e,{payload:t})=>{e.schedulePayload=t}}}),actions$6=scheduleStepSlice.actions;var scheduleStep_slice=scheduleStepSlice.reducer;const namespace$5="basicInfoStep",initialState$4={scheduleName:"",sourceDetails:{},error:null,isLoading:!1,isInvalidFields:!1,programs:[],basicInfoMeta:{affiliates:{}}},basicInfoSlice=createSlice({name:"basicInfoStep",initialState:initialState$4,reducers:{getProgramsStart:e=>{e.isLoading=!0},setScheduleName:(e,t)=>{t=t.payload;e.scheduleName=t},setSourceDetails:(e,t)=>{t=t.payload;e.sourceDetails=t},setPrograms:(e,t)=>{t=t.payload;e.programs=t,e.isLoading=!1},setError:(e,{payload:t})=>{e.error=t},setBasicInfoMeta:(e,{payload:t})=>{e.basicInfoMeta||(e.basicInfoMeta={affiliates:{}}),e.basicInfoMeta[null==t?void 0:t.key]=e.basicInfoMeta[null==t?void 0:t.key]||null,e.basicInfoMeta[null==t?void 0:t.key]=(null==t?void 0:t.meta)||null},setInvalidFields:(e,{payload:t})=>{e.isInvalidFields=t},addEditAffiliate:(e,{payload:t})=>{var r=t["source"];e.basicInfoMeta&&(e.basicInfoMeta.affiliates[r.id]=t)},setAffiliatesExistingJob:(e,{payload:t})=>{e.basicInfoMeta&&(e.basicInfoMeta.affiliates=t)},deleteAffiliate:(e,{payload:t})=>{var r;e.basicInfoMeta&&(delete(r=lodash.exports.cloneDeep(e.basicInfoMeta.affiliates))[t],e.basicInfoMeta.affiliates=r)},setImage:(e,{})=>{},deleteImageUrl:(e,{payload:t})=>{e.basicInfoMeta||(e.basicInfoMeta={affiliates:{}}),delete e.basicInfoMeta[null==t?void 0:t.key]}}}),actions$5=basicInfoSlice.actions;var basicInfoStep_slice=basicInfoSlice.reducer;const namespace$4="processingStep",initialState$3={dagTemplateId:void 0,loadingStatus:"idle",allDagTemplates:[],offset:0,hasMore:!0,selectedDagTemplate:void 0},processingSlice=createSlice({name:"processingStep",initialState:initialState$3,reducers:{fetchDagTemplatesStart:e=>{e.loadingStatus="pending"},fetchDagTemplatesSucceeded:(e,t)=>{e.loadingStatus="success",t.payload.forEach(t=>{e.allDagTemplates.find(e=>e.name.toLowerCase()===t.name.toLowerCase())||e.allDagTemplates.push(t)})},fetchDagTemplatesFailed:e=>{e.loadingStatus="failure"},setOffset:(e,{payload:t})=>{e.offset=t},setHasMore:(e,{payload:t})=>{e.hasMore=t},setDagTemplateId:(e,t)=>{t=t.payload;e.dagTemplateId=t},setSelectedDagTemplate:(e,t)=>{e.selectedDagTemplate=t.payload},clearDagTemplateId:e=>{e.dagTemplateId=void 0},clearSelectedDagTemplate:e=>{e.selectedDagTemplate=void 0},resetList:e=>{e.allDagTemplates=[],e.hasMore=!0,e.loadingStatus="idle",e.offset=0},createIngestOnlyDagTemplateStart:e=>{},updateDagTemplate:(e,t)=>{const r=t.payload;t=e.allDagTemplates.findIndex(e=>e.name.toLowerCase()===r.name.toLowerCase());-1===t?e.allDagTemplates.push(r):e.allDagTemplates.splice(t,1,r)}}}),actions$4=processingSlice.actions;var processingStep_slice=processingSlice.reducer;const namespace$3="contentTemplatesStep",initialState$2={existingTemplates:[]},contentTemplatesSlice=createSlice({name:"contentTemplatesStep",initialState:initialState$2,reducers:{setExistingTemplates:(e,t)=>{t=t.payload;e.existingTemplates=t}}}),actions$3=contentTemplatesSlice.actions;var contentTemplatesStep_slice=contentTemplatesSlice.reducer;const namespace$2="location",initialState$1={selectedFolderId:void 0,existingFolder:{name:"",id:""}},locationSlice=createSlice({name:"location",initialState:initialState$1,reducers:{setSelectedFolderId:(e,{payload:t})=>{e.selectedFolderId=t},setExistingFolder:(e,{payload:t})=>{e.existingFolder=t}}}),actions$2=locationSlice.actions;var location_slice=locationSlice.reducer;const namespace$1="permissions",initialState={permissionsPayload:void 0},permissionsSlice=createSlice({name:"permissions",initialState:initialState,reducers:{setPermissionsPayload:(e,{payload:t})=>{e.permissionsPayload=t}}}),actions$1=permissionsSlice.actions;var permissions_slice=permissionsSlice.reducer;const selectSelectedFolderId=e=>e[SLICE_NAME][namespace$2].selectedFolderId,selectExistingFolder=e=>e[SLICE_NAME][namespace$2].existingFolder;var locationSelectors=Object.freeze({__proto__:null,selectSelectedFolderId:selectSelectedFolderId,selectExistingFolder:selectExistingFolder});const selectPermissionsPayload=e=>e[SLICE_NAME][namespace$1].permissionsPayload;var permissionsSelectors=Object.freeze({__proto__:null,selectPermissionsPayload:selectPermissionsPayload});const selectors={location:locationSelectors,permissions:permissionsSelectors},namespace=SLICE_NAME,actions={[namespace$9]:actions$9,[namespace$8]:actions$8,[namespace$7]:actions$7,[namespace$6]:actions$6,[namespace$5]:actions$5,[namespace$4]:actions$4,[namespace$3]:actions$3,[namespace$2]:actions$2,[namespace$1]:actions$1},rootReducer=combineReducers({[namespace$9]:uiState,[namespace$8]:ingestionJobsWizard_slice,[namespace$7]:selectSourceStep_slice,[namespace$6]:scheduleStep_slice,[namespace$5]:basicInfoStep_slice,[namespace$4]:processingStep_slice,[namespace$3]:contentTemplatesStep_slice,[namespace$2]:location_slice,[namespace$1]:permissions_slice}),selectUIStateStatus=e=>e[namespace].uiState.status,selectApiConfigs=createSelector([rootApiSelector,graphEndpointSelector,sessionTokenSelector],(e,t,r)=>({apiRoot:e,graphQLEndpoint:t,token:r}));function __rest(e,t){var r={};for(s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(r[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,s=Object.getOwnPropertySymbols(e);n<s.length;n++)t.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(e,s[n])&&(r[s[n]]=e[s[n]]);return r}function __awaiter(e,a,o,l){return new(o=o||Promise)(function(r,t){function n(e){try{i(l.next(e))}catch(e){t(e)}}function s(e){try{i(l.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?r(e.value):((t=e.value)instanceof o?t:new o(function(e){e(t)})).then(n,s)}i((l=l.apply(e,a||[])).next())})}function getSourcesBySearchTerm(t,r=0,n,s,i,a){return __awaiter(this,void 0,void 0,function*(){var e="getSourcesSearch";return(yield baseGraphQLApiWithError(Object.assign({query:"\n query getSourcesSearch($sourceTypeIds: [ID!], $offset: Int, $name: String, $limit: Int, $includePublic: Boolean ){\n sources(\n sourceTypeIds: $sourceTypeIds,\n offset: $offset,\n limit: $limit,\n name: $name,\n includePublic: $includePublic,\n permission: owner,\n nameMatch: contains,\n orderBy:{\n direction: asc\n field: name\n }\n ) {\n count\n records {\n id\n name\n sourceTypeId\n thumbnailUrl\n createdDateTime\n modifiedDateTime\n permission,\n details,\n sourceType {\n name,\n sourceSchema {\n definition\n }\n }\n }\n }\n }\n ",operationName:e,variables:{sourceTypeIds:s,name:n,offset:r,limit:i,includePublic:a}},t))).sources})}function getClusters(t,r=0,n){return __awaiter(this,void 0,void 0,function*(){var e="getClusters";return(yield baseGraphQLApiWithError(Object.assign({query:"\n query getClusters($offset: Int, $limit: Int ){\n clusters(\n offset: $offset,\n limit: $limit,\n edgeVersion: 3\n orderBy:{\n direction: asc\n field: name\n }\n ) {\n count\n records {\n id\n name\n type\n controllerUrl\n allowedEngines\n edgeVersion\n paused\n default\n bypassAllowedEngines\n }\n }\n }\n ",operationName:e,variables:{offset:r,limit:n}},t))).clusters})}function*sourcesSearchTermSaga(){try{var e=yield select(selectApiConfigs),t=yield select(selectOffset),r=yield select(selectSourceTypeId),n=yield select(selectSearchTerm),s=yield select(selectIsAffiliateSearch),i=yield call$l(getSourcesBySearchTerm,e,t,n,r,30,s);yield put(actions$7.sourcesSearchSucceeded(i.records)),30===i.count?yield put(actions$7.setHasMore(!0)):yield put(actions$7.setHasMore(!1)),yield put(actions$7.setOffset(t+30))}catch(e){yield put(actions$7.setError(e))}}function*clusterSearchSaga(){try{var e,t,r=yield select(selectApiConfigs),n=yield select(selectClustersOffset),s=yield call$l(getClusters,r,n,30);yield put(actions$7.clustersSearchSucceeded(s.records)),30===s.count?(yield put(actions$7.clustersSetHasMore(!0)),yield put(actions$7.clustersSetOffset(n+30)),yield put(actions$7.clustersSearchStart())):(t=(e=yield select(selectClusters)).map(e=>e.default).indexOf(!0),(yield select(selectClusterSelected))||(yield put(actions$7.setSelectedCluster(e[t]||null))),yield put(actions$7.clustersSetOffset(n+30)),yield put(actions$7.clustersSetHasMore(!1)))}catch(e){yield put(actions$7.clusterSetError(e))}}function*getSourcesSearchTermWatcher(){yield takeLatest$1(actions$7.sourcesSearchStart.type,sourcesSearchTermSaga)}function*getClusterSearchWatcher(){yield takeLatest$1(actions$7.clustersSearchStart.type,clusterSearchSaga)}const selectAllDagTemplates=e=>e.processingCenterIngestion.processingStep.allDagTemplates||[],selectDagTemplateId=e=>e.processingCenterIngestion.processingStep.dagTemplateId||"",selectSelectedDagTemplate=e=>e.processingCenterIngestion.processingStep.selectedDagTemplate,selectDagTemplatesLoadingStatus=e=>e.processingCenterIngestion.processingStep.loadingStatus,selectDagTemplatesOffset=e=>e.processingCenterIngestion.processingStep.offset,selectDagTemplatesHasMore=e=>e.processingCenterIngestion.processingStep.hasMore;function getPrograms(t,r){var n;return __awaiter(this,void 0,void 0,function*(){var e="getPrograms",e=yield baseGraphQLApiWithError(Object.assign({query:`
1
+ import{j as jsxRuntime,cZ as commonjsGlobal$1,X as createSlice,a2 as lodash,Y as combineReducers,a8 as createSelector,bc as rootApiSelector,F as graphEndpointSelector,G as sessionTokenSelector,bW as AIWareCacheProvider,aK as AIWareThemeProvider,Z as useSelector,r as react,ao as Box,fl as img$a,dH as selectIsFullscreenEnabled,B as all,dD as selectIsOLPEnabled,M as userSelector,aq as unmountPanel,ar as mountPanel,a1 as hidePanel,an as CircularProgress,C as takeLatest$1,dX as mountPanelForResponse,bj as store$4,E as select,H as call$l,I as put,a4 as preferredLanguageSelector,a5 as showMessage,a6 as MessageSeverity,a3 as baseGraphQLApiWithError,U as baseGraphQLApi,a7 as AIWareFormatMessage}from"./js-core.esm.js";import{c as createSvgIcon,m as makeStyles,k as FormattedMessage,p as DynamicModuleLoader,A as AIWareIntlProvider,F as FormControl,S as Select,h as Button,T as Typography,U as MenuItem,bE as Delete,bh as MoreVert,Y as Hide,_ as Menu,aT as Tabs,aU as tabsClasses,aV as Tab,D as Divider}from"./js-core.esm5.js";import{g as getDataCenterBrowseModule,s as selectors$1,a as actions$a,i as index}from"./js-core.esm50.js";import{g as getProcessingCenterContentTemplatesModule,D as Delete$1,s as selectContentTemplatesToSave}from"./js-core.esm76.js";import"./js-core.esm51.js";import{T as TextField,e as InputLabel,f as Skeleton,n as Stack,A as Avatar,d as Tooltip,I as IconButton,r as Stepper,u as Step,w as StepLabel,L as LoadingButton,q as debounce_1,b as FormControlLabel,C as Checkbox,M as Search,a8 as InfiniteLoader,a9 as FixedSizeList,c as CheckCircle}from"./js-core.esm6.js";import{d as default_1$1}from"./js-core.esm33.js";import{d as default_1}from"./js-core.esm61.js";import{v as v4}from"./js-core.esm56.js";import{A as Autocomplete}from"./js-core.esm29.js";import{R as RadioGroup,f as Radio}from"./js-core.esm2.js";import{A as AddCircleOutline}from"./js-core.esm82.js";import{C as ContentCopy}from"./js-core.esm55.js";import{u as useDispatch}from"./js-core.esm7.js";var match$2,version,set$1,get,store,STATE,FolderOpen=createSvgIcon(jsxRuntime.exports.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V8h16v10z"}),"FolderOpen"),papaparse_min={exports:{}},Papa=(!function(){var e;e=function s(){var c,i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==i?i:{},a=!i.document&&!!i.postMessage,o=i.IS_PAPA_WORKER||!1,l={},u=0,$={parse:function(e,t){var r,n=(t=t||{}).dynamicTyping||!1;if(G(n)&&(t.dynamicTypingFunction=n,n={}),t.dynamicTyping=n,t.transform=!!G(t.transform)&&t.transform,!t.worker||!$.WORKERS_SUPPORTED)return n=null,$.NODE_STREAM_INPUT,"string"==typeof e?(e=65279===(r=e).charCodeAt(0)?r.slice(1):r,n=new(t.download?p:h)(t)):!0===e.readable&&G(e.read)&&G(e.on)?n=new m(t):(i.File&&e instanceof File||e instanceof Object)&&(n=new g(t)),n.stream(e);(n=!!$.WORKERS_SUPPORTED&&(r=i.URL||i.webkitURL||null,n=s.toString(),r=$.BLOB_URL||($.BLOB_URL=r.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",n,")();"],{type:"text/javascript"}))),(n=new i.Worker(r)).onmessage=f,n.id=u++,l[n.id]=n)).userStep=t.step,n.userChunk=t.chunk,n.userComplete=t.complete,n.userError=t.error,t.step=G(t.step),t.chunk=G(t.chunk),t.complete=G(t.complete),t.error=G(t.error),delete t.worker,n.postMessage({input:e,config:t,workerId:n.id})},unparse:function(e,t){var s=!1,f=!0,y=",",S="\r\n",i='"',a=i+i,r=!1,n=null,o=!1;if("object"==typeof t){if("string"!=typeof t.delimiter||$.BAD_DELIMITERS.filter(function(e){return-1!==t.delimiter.indexOf(e)}).length||(y=t.delimiter),"boolean"!=typeof t.quotes&&"function"!=typeof t.quotes&&!Array.isArray(t.quotes)||(s=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(r=t.skipEmptyLines),"string"==typeof t.newline&&(S=t.newline),"string"==typeof t.quoteChar&&(i=t.quoteChar),"boolean"==typeof t.header&&(f=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");n=t.columns}void 0!==t.escapeChar&&(a=t.escapeChar+i),("boolean"==typeof t.escapeFormulae||t.escapeFormulae instanceof RegExp)&&(o=t.escapeFormulae instanceof RegExp?t.escapeFormulae:/^[=+\-@\t\r].*$/)}var l=new RegExp(z(i),"g");if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return c(null,e,r);if("object"==typeof e[0])return c(n||Object.keys(e[0]),e,r)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||n),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),c(e.fields||[],e.data||[],r);throw new Error("Unable to serialize unrecognized input");function c(e,t,r){var n="",s=("string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t)),Array.isArray(e)&&0<e.length),i=!Array.isArray(t[0]);if(s&&f){for(var a=0;a<e.length;a++)0<a&&(n+=y),n+=b(e[a],a);0<t.length&&(n+=S)}for(var o=0;o<t.length;o++){var l=(s?e:t[o]).length,c=!1,u=s?0===Object.keys(t[o]).length:0===t[o].length;if(r&&!s&&(c="greedy"===r?""===t[o].join("").trim():1===t[o].length&&0===t[o][0].length),"greedy"===r&&s){for(var d=[],p=0;p<l;p++){var g=i?e[p]:p;d.push(t[o][g])}c=""===d.join("").trim()}if(!c){for(var h=0;h<l;h++){0<h&&!u&&(n+=y);var m=s&&i?e[h]:h;n+=b(t[o][m],h)}o<t.length-1&&(!r||0<l&&!u)&&(n+=S)}}return n}function b(e,t){var r,n;return null==e?"":e.constructor===Date?JSON.stringify(e).slice(1,25):(r=!1,o&&"string"==typeof e&&o.test(e)&&(e="'"+e,r=!0),n=e.toString().replace(l,a),(r=r||!0===s||"function"==typeof s&&s(e,t)||Array.isArray(s)&&s[t]||function(e,t){for(var r=0;r<t.length;r++)if(-1<e.indexOf(t[r]))return!0;return!1}(n,$.BAD_DELIMITERS)||-1<n.indexOf(y)||" "===n.charAt(0)||" "===n.charAt(n.length-1))?i+n+i:n)}}};function d(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var t=T(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new r(t),(this._handle.streamer=this)._config=t}.call(this,e),this.parseChunk=function(e,t){this.isFirstChunk&&G(this._config.beforeFirstChunk)&&void 0!==(r=this._config.beforeFirstChunk(e))&&(e=r),this.isFirstChunk=!1,this._halted=!1;var r=this._partialLine+e,e=(this._partialLine="",this._handle.parse(r,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){var n=e.meta.cursor,r=(this._finished||(this._partialLine=r.substring(n-this._baseIndex),this._baseIndex=n),e&&e.data&&(this._rowCount+=e.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview);if(o)i.postMessage({results:e,workerId:$.WORKER_ID,finished:r});else if(G(this._config.chunk)&&!t){if(this._config.chunk(e,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=e=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(e.data),this._completeResults.errors=this._completeResults.errors.concat(e.errors),this._completeResults.meta=e.meta),this._completed||!r||!G(this._config.complete)||e&&e.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),r||e&&e.meta.paused||this._nextChunk(),e}this._halted=!0},this._sendError=function(e){G(this._config.error)?this._config.error(e):o&&this._config.error&&i.postMessage({workerId:$.WORKER_ID,error:e,finished:!1})}}function p(e){var n;(e=e||{}).chunkSize||(e.chunkSize=$.RemoteChunkSize),d.call(this,e),this._nextChunk=a?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(n=new XMLHttpRequest,this._config.withCredentials&&(n.withCredentials=this._config.withCredentials),a||(n.onload=b(this._chunkLoaded,this),n.onerror=b(this._chunkError,this)),n.open(this._config.downloadRequestBody?"POST":"GET",this._input,!a),this._config.downloadRequestHeaders){var e,t=this._config.downloadRequestHeaders;for(e in t)n.setRequestHeader(e,t[e])}var r;this._config.chunkSize&&(r=this._start+this._config.chunkSize-1,n.setRequestHeader("Range","bytes="+this._start+"-"+r));try{n.send(this._config.downloadRequestBody)}catch(t){this._chunkError(t.message)}a&&0===n.status&&this._chunkError()}},this._chunkLoaded=function(){var e;4===n.readyState&&(n.status<200||400<=n.status?this._chunkError():(this._start+=this._config.chunkSize||n.responseText.length,this._finished=!this._config.chunkSize||this._start>=(null===(e=n.getResponseHeader("Content-Range"))?-1:parseInt(e.substring(e.lastIndexOf("/")+1))),this.parseChunk(n.responseText)))},this._chunkError=function(e){e=n.statusText||e;this._sendError(new Error(e))}}function g(e){(e=e||{}).chunkSize||(e.chunkSize=$.LocalChunkSize),d.call(this,e);var r,n,s="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,s?((r=new FileReader).onload=b(this._chunkLoaded,this),r.onerror=b(this._chunkError,this)):r=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input,t=(this._config.chunkSize&&(t=Math.min(this._start+this._config.chunkSize,this._input.size),e=n.call(e,this._start,t)),r.readAsText(e,this._config.encoding));s||this._chunkLoaded({target:{result:t}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(r.error)}}function h(e){var r;d.call(this,e=e||{}),this.stream=function(e){return r=e,this._nextChunk()},this._nextChunk=function(){var e,t;if(!this._finished)return t=this._config.chunkSize,r=t?(e=r.substring(0,t),r.substring(t)):(e=r,""),this._finished=!r,this.parseChunk(e)}}function m(e){d.call(this,e=e||{});var t=[],r=!0,n=!1;this.pause=function(){d.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){d.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){n&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):r=!0},this._streamData=b(function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),r&&(r=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}},this),this._streamError=b(function(e){this._streamCleanUp(),this._sendError(e)},this),this._streamEnd=b(function(){this._streamCleanUp(),n=!0,this._streamData("")},this),this._streamCleanUp=b(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function r(y){var s,i,a,t,l=Math.pow(2,53),c=-l,u=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,d=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,r=this,n=0,p=0,o=!1,e=!1,g=[],h={data:[],errors:[],meta:{}};function S(e){return"greedy"===y.skipEmptyLines?""===e.join("").trim():1===e.length&&0===e[0].length}function m(){if(h&&a&&(b("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+$.DefaultDelimiter+"'"),a=!1),y.skipEmptyLines&&(h.data=h.data.filter(function(e){return!S(e)})),f()){if(h)if(Array.isArray(h.data[0])){for(var e=0;f()&&e<h.data.length;e++)h.data[e].forEach(t);h.data.splice(0,1)}else h.data.forEach(t);function t(e,t){G(y.transformHeader)&&(e=y.transformHeader(e,t)),g.push(e)}}function r(e,t){for(var r,n,s=y.header?{}:[],i=0;i<e.length;i++){var a=i,o=e[i];y.header&&(a=i>=g.length?"__parsed_extra":g[i]),y.transform&&(o=y.transform(o,a)),n=o,r=r=a,y.dynamicTypingFunction&&void 0===y.dynamicTyping[r]&&(y.dynamicTyping[r]=y.dynamicTypingFunction(r)),o=!0===(y.dynamicTyping[r]||y.dynamicTyping)?"true"===n||"TRUE"===n||"false"!==n&&"FALSE"!==n&&(function(e){if(u.test(e)){e=parseFloat(e);if(c<e&&e<l)return 1}}(n)?parseFloat(n):d.test(n)?new Date(n):""===n?null:n):n,"__parsed_extra"===a?(s[a]=s[a]||[],s[a].push(o)):s[a]=o}return y.header&&(i>g.length?b("FieldMismatch","TooManyFields","Too many fields: expected "+g.length+" fields but parsed "+i,p+t):i<g.length&&b("FieldMismatch","TooFewFields","Too few fields: expected "+g.length+" fields but parsed "+i,p+t)),s}var n;h&&(y.header||y.dynamicTyping||y.transform)&&(n=1,!h.data.length||Array.isArray(h.data[0])?(h.data=h.data.map(r),n=h.data.length):h.data=r(h.data,0),y.header&&h.meta&&(h.meta.fields=g),p+=n)}function f(){return y.header&&0===g.length}function b(e,t,r,n){e={type:e,code:t,message:r};void 0!==n&&(e.row=n),h.errors.push(e)}G(y.step)&&(t=y.step,y.step=function(e){h=e,f()?m():(m(),0!==h.data.length&&(n+=e.data.length,y.preview&&n>y.preview?i.abort():(h.data=h.data[0],t(h,r))))}),this.parse=function(e,t,r){var n=y.quoteChar||'"',n=(y.newline||(y.newline=function(e,t){e=e.substring(0,1048576);var t=new RegExp(z(t)+"([^]*?)"+z(t),"gm"),r=(e=e.replace(t,"")).split("\r"),t=e.split("\n"),e=1<t.length&&t[0].length<r[0].length;if(1===r.length||e)return"\n";for(var n=0,s=0;s<r.length;s++)"\n"===r[s][0]&&n++;return n>=r.length/2?"\r\n":"\r"}(e,n)),a=!1,y.delimiter?G(y.delimiter)&&(y.delimiter=y.delimiter(e),h.meta.delimiter=y.delimiter):((n=function(e,t,r,n,s){var i,a,o;s=y.delimitersToGuess||[",","\t","|",";",$.RECORD_SEP,$.UNIT_SEP];for(var l=0;l<s.length;l++){for(var c,u=s[l],d=0,p=0,g=0,h=void 0,m=new x({comments:n,delimiter:u,newline:t,preview:10}).parse(e),f=0;f<m.data.length;f++)r&&S(m.data[f])?g++:(p+=c=m.data[f].length,void 0!==h?0<c&&(d+=Math.abs(c-h),h=c):h=c);0<m.data.length&&(p/=m.data.length-g),(void 0===a||d<=a)&&(void 0===o||o<p)&&1.99<p&&(a=d,i=u,o=p)}return{successful:!!(y.delimiter=i),bestDelimiter:i}}(e,y.newline,y.skipEmptyLines,y.comments)).successful?y.delimiter=n.bestDelimiter:(a=!0,y.delimiter=$.DefaultDelimiter),h.meta.delimiter=y.delimiter),T(y));return y.preview&&y.header&&n.preview++,s=e,i=new x(n),h=i.parse(s,t,r),m(),o?{meta:{paused:!0}}:h||{meta:{paused:!1}}},this.paused=function(){return o},this.pause=function(){o=!0,i.abort(),s=G(y.chunk)?"":s.substring(i.getCharIndex())},this.resume=function(){r.streamer._halted?(o=!1,r.streamer.parseChunk(s,!0)):setTimeout(r.resume,3)},this.aborted=function(){return e},this.abort=function(){e=!0,i.abort(),h.meta.aborted=!0,G(y.complete)&&y.complete(h),s=""}}function z(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function x(_){var M,L=(_=_||{}).delimiter,N=_.newline,k=_.comments,F=_.step,U=_.preview,B=_.fastMode,q=M=void 0===_.quoteChar||null===_.quoteChar?'"':_.quoteChar;if(void 0!==_.escapeChar&&(q=_.escapeChar),("string"!=typeof L||-1<$.BAD_DELIMITERS.indexOf(L))&&(L=","),k===L)throw new Error("Comment character same as delimiter");!0===k?k="#":("string"!=typeof k||-1<$.BAD_DELIMITERS.indexOf(k))&&(k=!1),"\n"!==N&&"\r"!==N&&"\r\n"!==N&&(N="\n");var H=0,W=!1;this.parse=function(r,t,n){if("string"!=typeof r)throw new Error("Input must be a string");var s=r.length,e=L.length,i=N.length,a=k.length,o=G(F),l=[],c=[],u=[],d=H=0;if(!r)return D();if(_.header&&!t){var p,g,h=r.split(N)[0].split(L),m=[],f={},y=!1;for(p in h){var S=h[p],b=S=G(_.transformHeader)?_.transformHeader(S,p):S,$=f[S]||0;for(0<$&&(y=!0,b=S+"_"+$),f[S]=$+1;m.includes(b);)b=b+"_"+$;m.push(b)}y&&((g=r.split(N))[0]=m.join(L),r=g.join(N))}if(B||!1!==B&&-1===r.indexOf(M)){for(var x=r.split(N),T=0;T<x.length;T++){if(u=x[T],H+=u.length,T!==x.length-1)H+=N.length;else if(n)return D();if(!k||u.substring(0,a)!==k){if(o){if(l=[],v(u.split(L)),A(),W)return D()}else v(u.split(L));if(U&&U<=T)return l=l.slice(0,U),D(!0)}}return D()}for(var E=r.indexOf(L,H),R=r.indexOf(N,H),I=new RegExp(z(q)+z(M),"g"),j=r.indexOf(M,H);;)if(r[H]!==M)if(k&&0===u.length&&r.substring(H,H+a)===k){if(-1===R)return D();H=R+i,R=r.indexOf(N,H),E=r.indexOf(L,H)}else if(-1!==E&&(E<R||-1===R))u.push(r.substring(H,E)),H=E+e,E=r.indexOf(L,H);else{if(-1===R)break;if(u.push(r.substring(H,R)),w(R+i),o&&(A(),W))return D();if(U&&l.length>=U)return D(!0)}else for(j=H,H++;;){if(-1===(j=r.indexOf(M,j+1)))return n||c.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:l.length,index:H}),P();if(j===s-1)return P(r.substring(H,j).replace(I,M));if(M!==q||r[j+1]!==q){if(M===q||0===j||r[j-1]!==q){-1!==E&&E<j+1&&(E=r.indexOf(L,j+1));var C=O(-1===(R=-1!==R&&R<j+1?r.indexOf(N,j+1):R)?E:Math.min(E,R));if(r.substr(j+1+C,e)===L){u.push(r.substring(H,j).replace(I,M)),r[H=j+1+C+e]!==M&&(j=r.indexOf(M,H)),E=r.indexOf(L,H),R=r.indexOf(N,H);break}C=O(R);if(r.substring(j+1+C,j+1+C+i)===N){if(u.push(r.substring(H,j).replace(I,M)),w(j+1+C+i),E=r.indexOf(L,H),j=r.indexOf(M,H),o&&(A(),W))return D();if(U&&l.length>=U)return D(!0);break}c.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:l.length,index:H}),j++}}else j++}return P();function v(e){l.push(e),d=H}function O(e){var t=0;return t=-1!==e&&(e=r.substring(j+1,e))&&""===e.trim()?e.length:t}function P(e){return n||(void 0===e&&(e=r.substring(H)),u.push(e),H=s,v(u),o&&A()),D()}function w(e){H=e,v(u),u=[],R=r.indexOf(N,H)}function D(e){return{data:l,errors:c,meta:{delimiter:L,linebreak:N,aborted:W,truncated:!!e,cursor:d+(t||0)}}}function A(){F(D()),l=[],c=[]}},this.abort=function(){W=!0},this.getCharIndex=function(){return H}}function f(e){var t=e.data,r=l[t.workerId],n=!1;if(t.error)r.userError(t.error,t.file);else if(t.results&&t.results.data){var s={abort:function(){n=!0,y(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:S,resume:S};if(G(r.userStep)){for(var i=0;i<t.results.data.length&&(r.userStep({data:t.results.data[i],errors:t.results.errors,meta:t.results.meta},s),!n);i++);delete t.results}else G(r.userChunk)&&(r.userChunk(t.results,s,t.file),delete t.results)}t.finished&&!n&&y(t.workerId,t.results)}function y(e,t){var r=l[e];G(r.userComplete)&&r.userComplete(t),r.terminate(),delete l[e]}function S(){throw new Error("Not implemented.")}function T(e){if("object"!=typeof e||null===e)return e;var t,r=Array.isArray(e)?[]:{};for(t in e)r[t]=T(e[t]);return r}function b(e,t){return function(){e.apply(t,arguments)}}function G(e){return"function"==typeof e}return $.RECORD_SEP=String.fromCharCode(30),$.UNIT_SEP=String.fromCharCode(31),$.BYTE_ORDER_MARK="\ufeff",$.BAD_DELIMITERS=["\r","\n",'"',$.BYTE_ORDER_MARK],$.WORKERS_SUPPORTED=!a&&!!i.Worker,$.NODE_STREAM_INPUT=1,$.LocalChunkSize=10485760,$.RemoteChunkSize=5242880,$.DefaultDelimiter=",",$.Parser=x,$.ParserHandle=r,$.NetworkStreamer=p,$.FileStreamer=g,$.StringStreamer=h,$.ReadableStreamStreamer=m,i.jQuery&&((c=i.jQuery).fn.parse=function(a){var r=a.config||{},o=[];return this.each(function(e){if("INPUT"!==c(this).prop("tagName").toUpperCase()||"file"!==c(this).attr("type").toLowerCase()||!i.FileReader||!this.files||0===this.files.length)return!0;for(var t=0;t<this.files.length;t++)o.push({file:this.files[t],inputElem:this,instanceConfig:c.extend({},r)})}),e(),this;function e(){if(0!==o.length){var e,t,r,n=o[0];if(G(a.before)){var s=a.before(n.file,n.inputElem);if("object"==typeof s){if("abort"===s.action)return e=n.file,t=n.inputElem,r=s.reason,G(a.error)&&a.error({name:"AbortError"},e,t,r);if("skip"===s.action)return l();"object"==typeof s.config&&(n.instanceConfig=c.extend(n.instanceConfig,s.config))}else if("skip"===s)return l()}var i=n.instanceConfig.complete;n.instanceConfig.complete=function(e){G(i)&&i(e,n.file,n.inputElem),l()},$.parse(n.file,n.instanceConfig)}else G(a.complete)&&a.complete()}function l(){o.splice(0,1),e()}}),o&&(i.onmessage=function(e){var e=e.data;void 0===$.WORKER_ID&&e&&($.WORKER_ID=e.workerId),"string"==typeof e.input?i.postMessage({workerId:$.WORKER_ID,results:$.parse(e.input,e.config),finished:!0}):(i.File&&e.input instanceof File||e.input instanceof Object)&&(e=$.parse(e.input,e.config))&&i.postMessage({workerId:$.WORKER_ID,results:e,finished:!0})}),(p.prototype=Object.create(d.prototype)).constructor=p,(g.prototype=Object.create(d.prototype)).constructor=g,(h.prototype=Object.create(h.prototype)).constructor=h,(m.prototype=Object.create(d.prototype)).constructor=m,$},papaparse_min.exports=e()}(),papaparse_min.exports),commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},check=function(e){return e&&e.Math==Math&&e},global$n=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof commonjsGlobal&&commonjsGlobal)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor={},fails$m=function(e){try{return!!e()}catch(e){return!0}},fails$l=fails$m,descriptors=!fails$m(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),fails$k=fails$m,functionBindNative=!fails$m(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),NATIVE_BIND$3=functionBindNative,call$k=Function.prototype.call,functionCall=NATIVE_BIND$3?call$k.bind(call$k):function(){return call$k.apply(call$k,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$3=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$3&&!$propertyIsEnumerable.call({1:2},1),createPropertyDescriptor$5=(objectPropertyIsEnumerable.f=NASHORN_BUG?function(e){e=getOwnPropertyDescriptor$3(this,e);return!!e&&e.enumerable}:$propertyIsEnumerable,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}),NATIVE_BIND$2=functionBindNative,FunctionPrototype$2=Function.prototype,call$j=FunctionPrototype$2.call,uncurryThisWithBind=NATIVE_BIND$2&&FunctionPrototype$2.bind.bind(call$j,call$j),functionUncurryThis=NATIVE_BIND$2?uncurryThisWithBind:function(e){return function(){return call$j.apply(e,arguments)}},uncurryThis$q=functionUncurryThis,toString$a=uncurryThis$q({}.toString),stringSlice$8=uncurryThis$q("".slice),classofRaw$2=function(e){return stringSlice$8(toString$a(e),8,-1)},uncurryThis$p=functionUncurryThis,fails$j=fails$m,classof$8=classofRaw$2,$Object$4=Object,split$3=functionUncurryThis("".split),indexedObject=fails$j(function(){return!$Object$4("z").propertyIsEnumerable(0)})?function(e){return"String"==classof$8(e)?split$3(e,""):$Object$4(e)}:$Object$4,isNullOrUndefined$5=function(e){return null==e},isNullOrUndefined$4=isNullOrUndefined$5,$TypeError$e=TypeError,requireObjectCoercible$6=function(e){if(isNullOrUndefined$4(e))throw $TypeError$e("Can't call method on "+e);return e},IndexedObject$1=indexedObject,requireObjectCoercible$5=requireObjectCoercible$6,toIndexedObject$5=function(e){return IndexedObject$1(requireObjectCoercible$5(e))},documentAll$2="object"==typeof document&&document.all,IS_HTMLDDA=void 0===documentAll$2&&void 0!==documentAll$2,documentAll_1={all:documentAll$2,IS_HTMLDDA:IS_HTMLDDA},$documentAll$1=documentAll_1,documentAll$1=$documentAll$1.all,isCallable$o=$documentAll$1.IS_HTMLDDA?function(e){return"function"==typeof e||e===documentAll$1}:function(e){return"function"==typeof e},isCallable$n=isCallable$o,$documentAll=documentAll_1,documentAll=$documentAll.all,isObject$a=$documentAll.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:isCallable$n(e)||e===documentAll}:function(e){return"object"==typeof e?null!==e:isCallable$n(e)},global$m=global$n,isCallable$m=isCallable$o,aFunction=function(e){return isCallable$m(e)?e:void 0},getBuiltIn$7=function(e,t){return arguments.length<2?aFunction(global$m[e]):global$m[e]&&global$m[e][t]},uncurryThis$o=functionUncurryThis,objectIsPrototypeOf=functionUncurryThis({}.isPrototypeOf),engineUserAgent="undefined"!=typeof navigator&&String(navigator.userAgent)||"",global$l=global$n,userAgent$3=engineUserAgent,process$4=global$l.process,Deno$1=global$l.Deno,versions=process$4&&process$4.versions||Deno$1&&Deno$1.version,v8=versions&&versions.v8,engineV8Version=version=!(version=v8?0<(match$2=v8.split("."))[0]&&match$2[0]<4?1:+(match$2[0]+match$2[1]):version)&&userAgent$3&&(!(match$2=userAgent$3.match(/Edge\/(\d+)/))||74<=match$2[1])&&(match$2=userAgent$3.match(/Chrome\/(\d+)/))?+match$2[1]:version,V8_VERSION$1=engineV8Version,fails$i=fails$m,symbolConstructorDetection=!!Object.getOwnPropertySymbols&&!fails$i(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1&&V8_VERSION$1<41}),NATIVE_SYMBOL$2=symbolConstructorDetection,useSymbolAsUid=symbolConstructorDetection&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,getBuiltIn$6=getBuiltIn$7,isCallable$l=isCallable$o,isPrototypeOf$4=objectIsPrototypeOf,USE_SYMBOL_AS_UID$1=useSymbolAsUid,$Object$3=Object,isSymbol$2=useSymbolAsUid?function(e){return"symbol"==typeof e}:function(e){var t=getBuiltIn$6("Symbol");return isCallable$l(t)&&isPrototypeOf$4(t.prototype,$Object$3(e))},$String$4=String,tryToString$4=function(e){try{return $String$4(e)}catch(e){return"Object"}},isCallable$k=isCallable$o,tryToString$3=tryToString$4,$TypeError$d=TypeError,aCallable$8=function(e){if(isCallable$k(e))return e;throw $TypeError$d(tryToString$3(e)+" is not a function")},aCallable$7=aCallable$8,isNullOrUndefined$3=isNullOrUndefined$5,getMethod$4=function(e,t){e=e[t];return isNullOrUndefined$3(e)?void 0:aCallable$7(e)},call$i=functionCall,isCallable$j=isCallable$o,isObject$9=isObject$a,$TypeError$c=TypeError,ordinaryToPrimitive$1=function(e,t){var r,n;if("string"===t&&isCallable$j(r=e.toString)&&!isObject$9(n=call$i(r,e)))return n;if(isCallable$j(r=e.valueOf)&&!isObject$9(n=call$i(r,e)))return n;if("string"!==t&&isCallable$j(r=e.toString)&&!isObject$9(n=call$i(r,e)))return n;throw $TypeError$c("Can't convert object to primitive value")},shared$4={exports:{}},isPure=!1,global$k=global$n,defineProperty$6=Object.defineProperty,defineGlobalProperty$3=function(t,r){try{defineProperty$6(global$k,t,{value:r,configurable:!0,writable:!0})}catch(e){global$k[t]=r}return r},global$j=global$n,defineGlobalProperty$2=defineGlobalProperty$3,SHARED="__core-js_shared__",store$3=global$n[SHARED]||defineGlobalProperty$2(SHARED,{}),sharedStore=store$3,store$2=sharedStore,requireObjectCoercible$4=((shared$4.exports=function(e,t){return store$2[e]||(store$2[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.29.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE",source:"https://github.com/zloirock/core-js"}),requireObjectCoercible$6),$Object$2=Object,toObject$5=function(e){return $Object$2(requireObjectCoercible$4(e))},uncurryThis$n=functionUncurryThis,toObject$4=toObject$5,hasOwnProperty=functionUncurryThis({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function(e,t){return hasOwnProperty(toObject$4(e),t)},uncurryThis$m=functionUncurryThis,id=0,postfix=Math.random(),toString$9=uncurryThis$m(1..toString),uid$2=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$9(++id+postfix,36)},global$i=global$n,shared$3=shared$4.exports,hasOwn$d=hasOwnProperty_1,uid$1=uid$2,NATIVE_SYMBOL$1=symbolConstructorDetection,USE_SYMBOL_AS_UID=useSymbolAsUid,Symbol$2=global$i.Symbol,WellKnownSymbolsStore=shared$3("wks"),createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$2.for||Symbol$2:Symbol$2&&Symbol$2.withoutSetter||uid$1,wellKnownSymbol$k=function(e){return hasOwn$d(WellKnownSymbolsStore,e)||(WellKnownSymbolsStore[e]=NATIVE_SYMBOL$1&&hasOwn$d(Symbol$2,e)?Symbol$2[e]:createWellKnownSymbol("Symbol."+e)),WellKnownSymbolsStore[e]},call$h=functionCall,isObject$8=isObject$a,isSymbol$1=isSymbol$2,getMethod$3=getMethod$4,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$j=wellKnownSymbol$k,$TypeError$b=TypeError,TO_PRIMITIVE=wellKnownSymbol$k("toPrimitive"),toPrimitive$1=function(e,t){if(!isObject$8(e)||isSymbol$1(e))return e;var r=getMethod$3(e,TO_PRIMITIVE);if(r){if(r=call$h(r,e,t=void 0===t?"default":t),!isObject$8(r)||isSymbol$1(r))return r;throw $TypeError$b("Can't convert object to primitive value")}return ordinaryToPrimitive(e,t=void 0===t?"number":t)},toPrimitive=toPrimitive$1,isSymbol=isSymbol$2,toPropertyKey$3=function(e){e=toPrimitive(e,"string");return isSymbol(e)?e:e+""},global$h=global$n,isObject$7=isObject$a,document$3=global$n.document,EXISTS$1=isObject$7(document$3)&&isObject$7(document$3.createElement),documentCreateElement$2=function(e){return EXISTS$1?document$3.createElement(e):{}},DESCRIPTORS$e=descriptors,fails$h=fails$m,createElement$1=documentCreateElement$2,ie8DomDefine=!descriptors&&!fails$m(function(){return 7!=Object.defineProperty(createElement$1("div"),"a",{get:function(){return 7}}).a}),DESCRIPTORS$d=descriptors,call$g=functionCall,propertyIsEnumerableModule$1=objectPropertyIsEnumerable,createPropertyDescriptor$4=createPropertyDescriptor$5,toIndexedObject$4=toIndexedObject$5,toPropertyKey$2=toPropertyKey$3,hasOwn$c=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,objectDefineProperty=(objectGetOwnPropertyDescriptor.f=DESCRIPTORS$d?$getOwnPropertyDescriptor$1:function(e,t){if(e=toIndexedObject$4(e),t=toPropertyKey$2(t),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$1(e,t)}catch(e){}if(hasOwn$c(e,t))return createPropertyDescriptor$4(!call$g(propertyIsEnumerableModule$1.f,e,t),e[t])},{}),DESCRIPTORS$c=descriptors,fails$g=fails$m,v8PrototypeDefineBug=descriptors&&fails$m(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),isObject$6=isObject$a,$String$3=String,$TypeError$a=TypeError,anObject$g=function(e){if(isObject$6(e))return e;throw $TypeError$a($String$3(e)+" is not an object")},DESCRIPTORS$b=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$f=anObject$g,toPropertyKey$1=toPropertyKey$3,$TypeError$9=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable",DESCRIPTORS$a=(objectDefineProperty.f=DESCRIPTORS$b?V8_PROTOTYPE_DEFINE_BUG$1?function(e,t,r){var n;return anObject$f(e),t=toPropertyKey$1(t),anObject$f(r),"function"==typeof e&&"prototype"===t&&"value"in r&&WRITABLE in r&&!r[WRITABLE]&&(n=$getOwnPropertyDescriptor(e,t))&&n[WRITABLE]&&(e[t]=r.value,r={configurable:(CONFIGURABLE$1 in r?r:n)[CONFIGURABLE$1],enumerable:(ENUMERABLE in r?r:n)[ENUMERABLE],writable:!1}),$defineProperty(e,t,r)}:$defineProperty:function(e,t,r){if(anObject$f(e),t=toPropertyKey$1(t),anObject$f(r),IE8_DOM_DEFINE)try{return $defineProperty(e,t,r)}catch(e){}if("get"in r||"set"in r)throw $TypeError$9("Accessors not supported");return"value"in r&&(e[t]=r.value),e},descriptors),definePropertyModule$4=objectDefineProperty,createPropertyDescriptor$3=createPropertyDescriptor$5,createNonEnumerableProperty$5=DESCRIPTORS$a?function(e,t,r){return definePropertyModule$4.f(e,t,createPropertyDescriptor$3(1,r))}:function(e,t,r){return e[t]=r,e},makeBuiltIn$3={exports:{}},DESCRIPTORS$9=descriptors,hasOwn$b=hasOwnProperty_1,FunctionPrototype$1=Function.prototype,getDescriptor=DESCRIPTORS$9&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$b(FunctionPrototype$1,"name"),PROPER=EXISTS&&"something"===function(){}.name,CONFIGURABLE=EXISTS&&(!DESCRIPTORS$9||getDescriptor(FunctionPrototype$1,"name").configurable),functionName={EXISTS:EXISTS,PROPER:PROPER,CONFIGURABLE:CONFIGURABLE},uncurryThis$l=functionUncurryThis,isCallable$i=isCallable$o,store$1=sharedStore,functionToString=functionUncurryThis(Function.toString),inspectSource$3=(isCallable$i(store$1.inspectSource)||(store$1.inspectSource=function(e){return functionToString(e)}),store$1.inspectSource),global$g=global$n,isCallable$h=isCallable$o,WeakMap$1=global$n.WeakMap,weakMapBasicDetection=isCallable$h(WeakMap$1)&&/native code/.test(String(WeakMap$1)),shared$2=shared$4.exports,uid=uid$2,keys=shared$2("keys"),sharedKey$3=function(e){return keys[e]||(keys[e]=uid(e))},hiddenKeys$4={},NATIVE_WEAK_MAP=weakMapBasicDetection,global$f=global$n,isObject$5=isObject$a,createNonEnumerableProperty$4=createNonEnumerableProperty$5,hasOwn$a=hasOwnProperty_1,shared$1=sharedStore,sharedKey$2=sharedKey$3,hiddenKeys$3=hiddenKeys$4,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$4=global$f.TypeError,WeakMap=global$f.WeakMap,enforce=function(e){return has(e)?get(e):set$1(e,{})},getterFor=function(t){return function(e){if(isObject$5(e)&&(e=get(e)).type===t)return e;throw TypeError$4("Incompatible receiver, "+t+" required")}},has=NATIVE_WEAK_MAP||shared$1.state?((store=shared$1.state||(shared$1.state=new WeakMap)).get=store.get,store.has=store.has,store.set=store.set,set$1=function(e,t){if(store.has(e))throw TypeError$4(OBJECT_ALREADY_INITIALIZED);return t.facade=e,store.set(e,t),t},get=function(e){return store.get(e)||{}},function(e){return store.has(e)}):(STATE=sharedKey$2("state"),hiddenKeys$3[STATE]=!0,set$1=function(e,t){if(hasOwn$a(e,STATE))throw TypeError$4(OBJECT_ALREADY_INITIALIZED);return t.facade=e,createNonEnumerableProperty$4(e,STATE,t),t},get=function(e){return hasOwn$a(e,STATE)?e[STATE]:{}},function(e){return hasOwn$a(e,STATE)}),internalState={set:set$1,get:get,has:has,enforce:enforce,getterFor:getterFor},uncurryThis$k=functionUncurryThis,fails$f=fails$m,isCallable$g=isCallable$o,hasOwn$9=hasOwnProperty_1,DESCRIPTORS$8=descriptors,CONFIGURABLE_FUNCTION_NAME$1=functionName.CONFIGURABLE,inspectSource$2=inspectSource$3,InternalStateModule$5=internalState,enforceInternalState=InternalStateModule$5.enforce,getInternalState$3=InternalStateModule$5.get,$String$2=String,defineProperty$5=Object.defineProperty,stringSlice$7=uncurryThis$k("".slice),replace$7=uncurryThis$k("".replace),join$3=uncurryThis$k([].join),CONFIGURABLE_LENGTH=DESCRIPTORS$8&&!fails$f(function(){return 8!==defineProperty$5(function(){},"length",{value:8}).length}),TEMPLATE=String(String).split("String"),makeBuiltIn$2=makeBuiltIn$3.exports=function(e,t,r){"Symbol("===stringSlice$7($String$2(t),0,7)&&(t="["+replace$7($String$2(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!hasOwn$9(e,"name")||CONFIGURABLE_FUNCTION_NAME$1&&e.name!==t)&&(DESCRIPTORS$8?defineProperty$5(e,"name",{value:t,configurable:!0}):e.name=t),CONFIGURABLE_LENGTH&&r&&hasOwn$9(r,"arity")&&e.length!==r.arity&&defineProperty$5(e,"length",{value:r.arity});try{r&&hasOwn$9(r,"constructor")&&r.constructor?DESCRIPTORS$8&&defineProperty$5(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=enforceInternalState(e);return hasOwn$9(r,"source")||(r.source=join$3(TEMPLATE,"string"==typeof t?t:"")),e},isCallable$f=(Function.prototype.toString=makeBuiltIn$2(function(){return isCallable$g(this)&&getInternalState$3(this).source||inspectSource$2(this)},"toString"),isCallable$o),definePropertyModule$3=objectDefineProperty,makeBuiltIn$1=makeBuiltIn$3.exports,defineGlobalProperty$1=defineGlobalProperty$3,defineBuiltIn$a=function(e,t,r,n){var s=(n=n||{}).enumerable,i=void 0!==n.name?n.name:t;if(isCallable$f(r)&&makeBuiltIn$1(r,i,n),n.global)s?e[t]=r:defineGlobalProperty$1(t,r);else{try{n.unsafe?e[t]&&(s=!0):delete e[t]}catch(e){}s?e[t]=r:definePropertyModule$3.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},objectGetOwnPropertyNames={},ceil=Math.ceil,floor$4=Math.floor,mathTrunc=Math.trunc||function(e){e=+e;return(0<e?floor$4:ceil)(e)},trunc=mathTrunc,toIntegerOrInfinity$4=function(e){e=+e;return e!=e||0==e?0:trunc(e)},toIntegerOrInfinity$3=toIntegerOrInfinity$4,max$2=Math.max,min$2=Math.min,toAbsoluteIndex$2=function(e,t){e=toIntegerOrInfinity$3(e);return e<0?max$2(e+t,0):min$2(e,t)},toIntegerOrInfinity$2=toIntegerOrInfinity$4,min$1=Math.min,toLength$2=function(e){return 0<e?min$1(toIntegerOrInfinity$2(e),9007199254740991):0},toLength$1=toLength$2,lengthOfArrayLike$4=function(e){return toLength$1(e.length)},toIndexedObject$3=toIndexedObject$5,toAbsoluteIndex$1=toAbsoluteIndex$2,lengthOfArrayLike$3=lengthOfArrayLike$4,createMethod$2=function(o){return function(e,t,r){var n,s=toIndexedObject$3(e),i=lengthOfArrayLike$3(s),a=toAbsoluteIndex$1(r,i);if(o&&t!=t){for(;a<i;)if((n=s[a++])!=n)return!0}else for(;a<i;a++)if((o||a in s)&&s[a]===t)return o||a||0;return!o&&-1}},arrayIncludes={includes:createMethod$2(!0),indexOf:createMethod$2(!1)},uncurryThis$j=functionUncurryThis,hasOwn$8=hasOwnProperty_1,toIndexedObject$2=toIndexedObject$5,indexOf$1=arrayIncludes.indexOf,hiddenKeys$2=hiddenKeys$4,push$4=uncurryThis$j([].push),objectKeysInternal=function(e,t){var r,n=toIndexedObject$2(e),s=0,i=[];for(r in n)!hasOwn$8(hiddenKeys$2,r)&&hasOwn$8(n,r)&&push$4(i,r);for(;t.length>s;)!hasOwn$8(n,r=t[s++])||~indexOf$1(i,r)||push$4(i,r);return i},enumBugKeys$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1=objectKeysInternal,enumBugKeys$2=enumBugKeys$3,hiddenKeys$1=enumBugKeys$3.concat("length","prototype"),objectGetOwnPropertySymbols=(objectGetOwnPropertyNames.f=Object.getOwnPropertyNames||function(e){return internalObjectKeys$1(e,hiddenKeys$1)},{}),getBuiltIn$5=(objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols,getBuiltIn$7),uncurryThis$i=functionUncurryThis,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,anObject$e=anObject$g,concat$2=functionUncurryThis([].concat),ownKeys$1=getBuiltIn$5("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule.f(anObject$e(e)),r=getOwnPropertySymbolsModule$1.f;return r?concat$2(t,r(e)):t},hasOwn$7=hasOwnProperty_1,ownKeys=ownKeys$1,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,definePropertyModule$2=objectDefineProperty,copyConstructorProperties$2=function(e,t,r){for(var n=ownKeys(t),s=definePropertyModule$2.f,i=getOwnPropertyDescriptorModule.f,a=0;a<n.length;a++){var o=n[a];hasOwn$7(e,o)||r&&hasOwn$7(r,o)||s(e,o,i(t,o))}},fails$e=fails$m,isCallable$e=isCallable$o,replacement=/#|\.prototype\./,isForced$2=function(e,t){e=data[normalize(e)];return e==POLYFILL||e!=NATIVE&&(isCallable$e(t)?fails$e(t):!!t)},normalize=isForced$2.normalize=function(e){return String(e).replace(replacement,".").toLowerCase()},data=isForced$2.data={},NATIVE=isForced$2.NATIVE="N",POLYFILL=isForced$2.POLYFILL="P",isForced_1=isForced$2,global$e=global$n,getOwnPropertyDescriptor$2=objectGetOwnPropertyDescriptor.f,createNonEnumerableProperty$3=createNonEnumerableProperty$5,defineBuiltIn$9=defineBuiltIn$a,defineGlobalProperty=defineGlobalProperty$3,copyConstructorProperties$1=copyConstructorProperties$2,isForced$1=isForced_1,_export=function(e,t){var r,n,s,i=e.target,a=e.global,o=e.stat,l=a?global$e:o?global$e[i]||defineGlobalProperty(i,{}):(global$e[i]||{}).prototype;if(l)for(r in t){if(n=t[r],s=e.dontCallGetSet?(s=getOwnPropertyDescriptor$2(l,r))&&s.value:l[r],!isForced$1(a?r:i+(o?".":"#")+r,e.forced)&&void 0!==s){if(typeof n==typeof s)continue;copyConstructorProperties$1(n,s)}(e.sham||s&&s.sham)&&createNonEnumerableProperty$3(n,"sham",!0),defineBuiltIn$9(l,r,n,e)}},internalObjectKeys=objectKeysInternal,enumBugKeys$1=enumBugKeys$3,objectKeys$2=Object.keys||function(e){return internalObjectKeys(e,enumBugKeys$1)},DESCRIPTORS$7=descriptors,uncurryThis$h=functionUncurryThis,call$f=functionCall,fails$d=fails$m,objectKeys$1=objectKeys$2,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,propertyIsEnumerableModule=objectPropertyIsEnumerable,toObject$3=toObject$5,IndexedObject=indexedObject,$assign=Object.assign,defineProperty$4=Object.defineProperty,concat$1=uncurryThis$h([].concat),objectAssign=!$assign||fails$d(function(){var e,t,r,n;return!(!DESCRIPTORS$7||1===$assign({b:1},$assign(defineProperty$4({},"a",{enumerable:!0,get:function(){defineProperty$4(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)||(t={},n="abcdefghijklmnopqrst",(e={})[r=Symbol()]=7,n.split("").forEach(function(e){t[e]=e}),7!=$assign({},e)[r])||objectKeys$1($assign({},t)).join("")!=n})?function(e,t){for(var r=toObject$3(e),n=arguments.length,s=1,i=getOwnPropertySymbolsModule.f,a=propertyIsEnumerableModule.f;s<n;)for(var o,l=IndexedObject(arguments[s++]),c=i?concat$1(objectKeys$1(l),i(l)):objectKeys$1(l),u=c.length,d=0;d<u;)o=c[d++],DESCRIPTORS$7&&!call$f(a,l,o)||(r[o]=l[o]);return r}:$assign,$$e=_export,assign$1=objectAssign;_export({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign$1},{assign:assign$1});const SLICE_NAME="processingCenterIngestion",namespace$9="uiState",initialState$8={status:"idle"},slice=createSlice({name:SLICE_NAME+"/"+namespace$9,initialState:initialState$8,reducers:{init(e){e.status="pending"},initDone(e){e.status="idle"},initFailed(e){e.status="failure"}}}),actions$9=slice.actions;var uiState=slice.reducer;const namespace$8="ingestionJobsWizard",initialState$7={activeStep:1,steps:[{number:1,completed:!1},{number:2,completed:!1},{number:3,completed:!1},{number:4,completed:!1},{number:5,completed:!1},{number:6,completed:!1}],activeEngine:void 0,scheduledJobId:"",existingScheduledJob:null,saveStatus:"idle",existingJobStatus:"idle",existingJobErrorMessage:"",isEditMode:!1,updateJobErrors:[],deleteJobStatus:"idle"},ingestionJobsWizardSlice=createSlice({name:"ingestionJobsWizard",initialState:initialState$7,reducers:{nextStep:e=>{var t=e["activeStep"];t!==e.steps.length&&(e.steps[t-1].completed=!0,e.activeStep=t+1)},backStep:e=>{var t=e["activeStep"];1!==t&&(e.activeStep=t-1)},goToStep:(e,t)=>{e.activeStep=t.payload},setActiveEngine:(e,t)=>{e.activeEngine=t.payload},setScheduledJobId:(e,t)=>{e.scheduledJobId=t.payload},saveScheduledJobStart:e=>{e.saveStatus="pending"},saveScheduledJobSuccess:e=>{e.saveStatus="success"},saveScheduledJobFailure:e=>{e.saveStatus="failure"},setExistingJobStart:e=>{e.existingJobStatus="pending"},setExistingJobSuccess:e=>{e.existingJobStatus="success"},setExistingJobFailure:e=>{e.existingJobStatus="failure"},setDeleteJobStart:e=>{e.deleteJobStatus="pending"},setDeleteJobSuccess:e=>{e.deleteJobStatus="success"},setDeleteJobFailure:e=>{e.deleteJobStatus="failure"},setExistingJobErrorMessage:(e,t)=>{e.existingJobErrorMessage=t.payload},setExistingScheduledJob:(e,t)=>{e.existingScheduledJob=t.payload},setIsEditMode:(e,t)=>{e.isEditMode=t.payload},setUpdateJobErrors:(e,t)=>{t.payload.add?e.updateJobErrors=e.updateJobErrors.concat([t.payload.tabIndex]):e.updateJobErrors=e.updateJobErrors.filter(e=>e!==t.payload.tabIndex)}}}),actions$8=ingestionJobsWizardSlice.actions;var activeXDocument,IteratorPrototype$2,PrototypeOfArrayIteratorPrototype,arrayIterator,ingestionJobsWizard_slice=ingestionJobsWizardSlice.reducer,objectDefineProperties={},DESCRIPTORS$6=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule$1=objectDefineProperty,anObject$d=anObject$g,toIndexedObject$1=toIndexedObject$5,objectKeys=objectKeys$2,getBuiltIn$4=(objectDefineProperties.f=DESCRIPTORS$6&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function(e,t){anObject$d(e);for(var r,n=toIndexedObject$1(t),s=objectKeys(t),i=s.length,a=0;a<i;)definePropertyModule$1.f(e,r=s[a++],n[r]);return e},getBuiltIn$7),html$2=getBuiltIn$7("document","documentElement"),anObject$c=anObject$g,definePropertiesModule=objectDefineProperties,enumBugKeys=enumBugKeys$3,hiddenKeys=hiddenKeys$4,html$1=html$2,documentCreateElement$1=documentCreateElement$2,sharedKey$1=sharedKey$3,GT=">",LT="<",PROTOTYPE="prototype",SCRIPT="script",IE_PROTO$1=sharedKey$3("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(e){return LT+SCRIPT+GT+e+LT+"/"+SCRIPT+GT},NullProtoObjectViaActiveX=function(e){e.write(scriptTag("")),e.close();var t=e.parentWindow.Object;return e=null,t},NullProtoObjectViaIFrame=function(){var e=documentCreateElement$1("iframe"),t="java"+SCRIPT+":";return e.style.display="none",html$1.appendChild(e),e.src=String(t),(t=e.contentWindow.document).open(),t.write(scriptTag("document.F=Object")),t.close(),t.F},NullProtoObject=function(){try{activeXDocument=new ActiveXObject("htmlfile")}catch(e){}NullProtoObject="undefined"==typeof document||document.domain&&activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame();for(var e=enumBugKeys.length;e--;)delete NullProtoObject[PROTOTYPE][enumBugKeys[e]];return NullProtoObject()},objectCreate=(hiddenKeys[IE_PROTO$1]=!0,Object.create||function(e,t){var r;return null!==e?(EmptyConstructor[PROTOTYPE]=anObject$c(e),r=new EmptyConstructor,EmptyConstructor[PROTOTYPE]=null,r[IE_PROTO$1]=e):r=NullProtoObject(),void 0===t?r:definePropertiesModule.f(r,t)}),wellKnownSymbol$i=wellKnownSymbol$k,create$3=objectCreate,defineProperty$3=objectDefineProperty.f,UNSCOPABLES=wellKnownSymbol$i("unscopables"),ArrayPrototype$1=Array.prototype,addToUnscopables$2=(null==ArrayPrototype$1[UNSCOPABLES]&&defineProperty$3(ArrayPrototype$1,UNSCOPABLES,{configurable:!0,value:create$3(null)}),function(e){ArrayPrototype$1[UNSCOPABLES][e]=!0}),iterators={},fails$c=fails$m,correctPrototypeGetter=!fails$m(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),hasOwn$6=hasOwnProperty_1,isCallable$d=isCallable$o,toObject$2=toObject$5,sharedKey=sharedKey$3,CORRECT_PROTOTYPE_GETTER=correctPrototypeGetter,IE_PROTO=sharedKey$3("IE_PROTO"),$Object$1=Object,ObjectPrototype=$Object$1.prototype,objectGetPrototypeOf=CORRECT_PROTOTYPE_GETTER?$Object$1.getPrototypeOf:function(e){var t,e=toObject$2(e);return hasOwn$6(e,IE_PROTO)?e[IE_PROTO]:(t=e.constructor,isCallable$d(t)&&e instanceof t?t.prototype:e instanceof $Object$1?ObjectPrototype:null)},fails$b=fails$m,isCallable$c=isCallable$o,isObject$4=isObject$a,getPrototypeOf$1=objectGetPrototypeOf,defineBuiltIn$8=defineBuiltIn$a,wellKnownSymbol$h=wellKnownSymbol$k,ITERATOR$8=wellKnownSymbol$k("iterator"),BUGGY_SAFARI_ITERATORS$1=!1,NEW_ITERATOR_PROTOTYPE=([].keys&&("next"in(arrayIterator=[].keys())?(PrototypeOfArrayIteratorPrototype=getPrototypeOf$1(getPrototypeOf$1(arrayIterator)))!==Object.prototype&&(IteratorPrototype$2=PrototypeOfArrayIteratorPrototype):BUGGY_SAFARI_ITERATORS$1=!0),!isObject$4(IteratorPrototype$2)||fails$b(function(){var e={};return IteratorPrototype$2[ITERATOR$8].call(e)!==e})),iteratorsCore=(isCallable$c((IteratorPrototype$2=NEW_ITERATOR_PROTOTYPE?{}:IteratorPrototype$2)[ITERATOR$8])||defineBuiltIn$8(IteratorPrototype$2,ITERATOR$8,function(){return this}),{IteratorPrototype:IteratorPrototype$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1}),defineProperty$2=objectDefineProperty.f,hasOwn$5=hasOwnProperty_1,wellKnownSymbol$g=wellKnownSymbol$k,TO_STRING_TAG$3=wellKnownSymbol$k("toStringTag"),setToStringTag$5=function(e,t,r){(e=e&&!r?e.prototype:e)&&!hasOwn$5(e,TO_STRING_TAG$3)&&defineProperty$2(e,TO_STRING_TAG$3,{configurable:!0,value:t})},IteratorPrototype$1=iteratorsCore.IteratorPrototype,create$2=objectCreate,createPropertyDescriptor$2=createPropertyDescriptor$5,setToStringTag$4=setToStringTag$5,Iterators$4=iterators,returnThis$1=function(){return this},iteratorCreateConstructor=function(e,t,r,n){t+=" Iterator";return e.prototype=create$2(IteratorPrototype$1,{next:createPropertyDescriptor$2(+!n,r)}),setToStringTag$4(e,t,!1),Iterators$4[t]=returnThis$1,e},uncurryThis$g=functionUncurryThis,aCallable$6=aCallable$8,functionUncurryThisAccessor=function(e,t,r){try{return uncurryThis$g(aCallable$6(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}},isCallable$b=isCallable$o,$String$1=String,$TypeError$8=TypeError,aPossiblePrototype$1=function(e){if("object"==typeof e||isCallable$b(e))return e;throw $TypeError$8("Can't set "+$String$1(e)+" as a prototype")},uncurryThisAccessor=functionUncurryThisAccessor,anObject$b=anObject$g,aPossiblePrototype=aPossiblePrototype$1,objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,e={};try{(r=uncurryThisAccessor(Object.prototype,"__proto__","set"))(e,[]),n=e instanceof Array}catch(e){}return function(e,t){return anObject$b(e),aPossiblePrototype(t),n?r(e,t):e.__proto__=t,e}}():void 0),$$d=_export,call$e=functionCall,FunctionName=functionName,isCallable$a=isCallable$o,createIteratorConstructor$1=iteratorCreateConstructor,getPrototypeOf=objectGetPrototypeOf,setPrototypeOf$1=objectSetPrototypeOf,setToStringTag$3=setToStringTag$5,createNonEnumerableProperty$2=createNonEnumerableProperty$5,defineBuiltIn$7=defineBuiltIn$a,wellKnownSymbol$f=wellKnownSymbol$k,Iterators$3=iterators,IteratorsCore=iteratorsCore,PROPER_FUNCTION_NAME$1=FunctionName.PROPER,CONFIGURABLE_FUNCTION_NAME=FunctionName.CONFIGURABLE,IteratorPrototype=IteratorsCore.IteratorPrototype,BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$7=wellKnownSymbol$f("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},iteratorDefine=function(e,t,r,n,s,i,a){createIteratorConstructor$1(r,t,n);function o(e){if(e===s&&g)return g;if(!BUGGY_SAFARI_ITERATORS&&e in d)return d[e];switch(e){case KEYS:case VALUES:case ENTRIES:return function(){return new r(this,e)}}return function(){return new r(this)}}var l,c,n=t+" Iterator",u=!1,d=e.prototype,p=d[ITERATOR$7]||d["@@iterator"]||s&&d[s],g=!BUGGY_SAFARI_ITERATORS&&p||o(s),h="Array"==t&&d.entries||p;if(h&&(h=getPrototypeOf(h.call(new e)))!==Object.prototype&&h.next&&(getPrototypeOf(h)!==IteratorPrototype&&(setPrototypeOf$1?setPrototypeOf$1(h,IteratorPrototype):isCallable$a(h[ITERATOR$7])||defineBuiltIn$7(h,ITERATOR$7,returnThis)),setToStringTag$3(h,n,!0)),PROPER_FUNCTION_NAME$1&&s==VALUES&&p&&p.name!==VALUES&&(CONFIGURABLE_FUNCTION_NAME?createNonEnumerableProperty$2(d,"name",VALUES):(u=!0,g=function(){return call$e(p,this)})),s)if(l={values:o(VALUES),keys:i?g:o(KEYS),entries:o(ENTRIES)},a)for(c in l)!BUGGY_SAFARI_ITERATORS&&!u&&c in d||defineBuiltIn$7(d,c,l[c]);else $$d({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS||u},l);return d[ITERATOR$7]!==g&&defineBuiltIn$7(d,ITERATOR$7,g,{name:s}),Iterators$3[t]=g,l},createIterResultObject$2=function(e,t){return{value:e,done:t}},toIndexedObject=toIndexedObject$5,addToUnscopables$1=addToUnscopables$2,Iterators$2=iterators,InternalStateModule$4=internalState,defineProperty$1=objectDefineProperty.f,defineIterator$1=iteratorDefine,createIterResultObject$1=createIterResultObject$2,DESCRIPTORS$5=descriptors,ARRAY_ITERATOR="Array Iterator",setInternalState$4=InternalStateModule$4.set,getInternalState$2=InternalStateModule$4.getterFor(ARRAY_ITERATOR),es_array_iterator=defineIterator$1(Array,"Array",function(e,t){setInternalState$4(this,{type:ARRAY_ITERATOR,target:toIndexedObject(e),index:0,kind:t})},function(){var e=getInternalState$2(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,createIterResultObject$1(void 0,!0)):createIterResultObject$1("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)},"values"),values=Iterators$2.Arguments=Iterators$2.Array;if(addToUnscopables$1("keys"),addToUnscopables$1("values"),addToUnscopables$1("entries"),DESCRIPTORS$5&&"values"!==values.name)try{defineProperty$1(values,"name",{value:"values"})}catch(e){}var COLLECTION_NAME,domIterables={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},documentCreateElement=documentCreateElement$2,classList=documentCreateElement$2("span").classList,DOMTokenListPrototype$1=classList&&classList.constructor&&classList.constructor.prototype,domTokenListPrototype=DOMTokenListPrototype$1===Object.prototype?void 0:DOMTokenListPrototype$1,global$d=global$n,DOMIterables=domIterables,DOMTokenListPrototype=domTokenListPrototype,ArrayIteratorMethods=es_array_iterator,createNonEnumerableProperty$1=createNonEnumerableProperty$5,wellKnownSymbol$e=wellKnownSymbol$k,ITERATOR$6=wellKnownSymbol$e("iterator"),TO_STRING_TAG$2=wellKnownSymbol$e("toStringTag"),ArrayValues=ArrayIteratorMethods.values,handlePrototype=function(t,e){if(t){if(t[ITERATOR$6]!==ArrayValues)try{createNonEnumerableProperty$1(t,ITERATOR$6,ArrayValues)}catch(e){t[ITERATOR$6]=ArrayValues}if(t[TO_STRING_TAG$2]||createNonEnumerableProperty$1(t,TO_STRING_TAG$2,e),DOMIterables[e])for(var r in ArrayIteratorMethods)if(t[r]!==ArrayIteratorMethods[r])try{createNonEnumerableProperty$1(t,r,ArrayIteratorMethods[r])}catch(e){t[r]=ArrayIteratorMethods[r]}}};for(COLLECTION_NAME in DOMIterables)handlePrototype(global$d[COLLECTION_NAME]&&global$d[COLLECTION_NAME].prototype,COLLECTION_NAME);handlePrototype(DOMTokenListPrototype,"DOMTokenList");const namespace$7="sourceStep",initialState$6={isAffiliateSearch:!1,sourceSearchTerm:"",sourceTypeId:[],searchedSources:[],sourceSelected:null,isLoading:!1,error:null,hasMore:!1,offset:0,clusterSection:{clusterSelected:null,clusters:[],isLoading:!0,error:null,hasMore:!1,offset:0},mediaChunkLength:"15"},sourceStepSlice=createSlice({name:"sourceStep",initialState:initialState$6,reducers:{sourcesSearchStart:(e,{payload:t})=>{e.isAffiliateSearch=t,0===e.offset&&(e.isLoading=!0)},sourcesSearchSucceeded:(e,{payload:t})=>{e.searchedSources=[...e.searchedSources,...t],e.error=null,e.isLoading=!1},resetSourcesSearch:e=>{e.isAffiliateSearch=!1,e.searchedSources=[],e.isLoading=!1,e.offset=0,e.hasMore=!1,e.error=null},setSourceTypeId:(e,{payload:t})=>{e.sourceTypeId=t},setSourceSelected:(e,{payload:t})=>{e.sourceSelected=t},setOffset:(e,{payload:t})=>{e.offset=t},setHasMore:(e,{payload:t})=>{e.hasMore=t},setError:(e,{payload:t})=>{e.error=t},setLoading:(e,{payload:t})=>{e.isLoading=t},setSourceSearchTerm:(e,{payload:t})=>{e.sourceSearchTerm=t},setMediaChunkLength:(e,{payload:t})=>{e.mediaChunkLength=t},setSelectedCluster:(e,{payload:t})=>{e.clusterSection.clusterSelected=t},clustersSearchStart:e=>{0===e.clusterSection.offset&&(e.clusterSection.isLoading=!0)},clustersSearchSucceeded:(e,{payload:t})=>{e.clusterSection.clusters=[...e.clusterSection.clusters,...t],e.clusterSection.error=null,e.clusterSection.isLoading=!1},clustersSetOffset:(e,{payload:t})=>{e.clusterSection.offset=t},clustersSetHasMore:(e,{payload:t})=>{e.clusterSection.hasMore=t},clusterSetError:(e,{payload:t})=>{e.clusterSection.error=t,e.clusterSection.isLoading=!1},clusterSetLoading:(e,{payload:t})=>{e.clusterSection.isLoading=t}}}),actions$7=sourceStepSlice.actions;var selectSourceStep_slice=sourceStepSlice.reducer;function toInteger(e){return null===e||!0===e||!1===e?NaN:(e=Number(e),isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e))}function requiredArgs(e,t){if(t.length<e)throw new TypeError(e+" argument"+(1<e?"s":"")+" required, but only "+t.length+" present")}function _typeof$1(e){return(_typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function toDate(e){requiredArgs(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===_typeof$1(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function addDays(e,t){requiredArgs(2,arguments);var r=toDate(e),n=toInteger(t);return isNaN(n)?new Date(NaN):(n&&r.setDate(r.getDate()+n),r)}function addMilliseconds(e,t){requiredArgs(2,arguments);var r=toDate(e).getTime(),n=toInteger(t);return new Date(r+n)}var defaultOptions={};function getDefaultOptions(){return defaultOptions}function getTimezoneOffsetInMilliseconds(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function isDate(e){return requiredArgs(1,arguments),e instanceof Date||"object"===_typeof(e)&&"[object Date]"===Object.prototype.toString.call(e)}function isValid(e){var t;return requiredArgs(1,arguments),!(!isDate(e)&&"number"!=typeof e||(t=toDate(e),isNaN(Number(t))))}function subMilliseconds(e,t){return requiredArgs(2,arguments),addMilliseconds(e,-toInteger(t))}var MILLISECONDS_IN_DAY=864e5;function getUTCDayOfYear(e){requiredArgs(1,arguments);var t=toDate(e),r=t.getTime(),t=(t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0),t.getTime());return Math.floor((r-t)/MILLISECONDS_IN_DAY)+1}function startOfUTCISOWeek(e){requiredArgs(1,arguments);var t=toDate(e),r=t.getUTCDay(),r=(r<1?7:0)+r-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function getUTCISOWeekYear(e){requiredArgs(1,arguments);var t=toDate(e),r=t.getUTCFullYear(),n=new Date(0),n=(n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0),startOfUTCISOWeek(n)),s=new Date(0),s=(s.setUTCFullYear(r,0,4),s.setUTCHours(0,0,0,0),startOfUTCISOWeek(s));return t.getTime()>=n.getTime()?r+1:t.getTime()>=s.getTime()?r:r-1}function startOfUTCISOWeekYear(e){requiredArgs(1,arguments);var t=getUTCISOWeekYear(e),r=new Date(0);return r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0),startOfUTCISOWeek(r)}var MILLISECONDS_IN_WEEK$1=6048e5;function getUTCISOWeek(e){requiredArgs(1,arguments);var t=toDate(e),t=startOfUTCISOWeek(t).getTime()-startOfUTCISOWeekYear(t).getTime();return Math.round(t/MILLISECONDS_IN_WEEK$1)+1}function startOfUTCWeek(e,t){requiredArgs(1,arguments);var r,n,s=getDefaultOptions(),s=toInteger(null!=(r=null!=(r=null!=(r=null!=(r=null==t?void 0:t.weekStartsOn)?r:null==t||null==(r=t.locale)||null==(r=r.options)?void 0:r.weekStartsOn)?r:s.weekStartsOn)?r:null==(r=s.locale)||null==(s=r.options)?void 0:s.weekStartsOn)?r:0);if(0<=s&&s<=6)return n=((n=(r=toDate(e)).getUTCDay())<s?7:0)+n-s,r.setUTCDate(r.getUTCDate()-n),r.setUTCHours(0,0,0,0),r;throw new RangeError("weekStartsOn must be between 0 and 6 inclusively")}function getUTCWeekYear(e,t){requiredArgs(1,arguments);var r,n,s=toDate(e),i=s.getUTCFullYear(),a=getDefaultOptions(),a=toInteger(null!=(r=null!=(r=null!=(r=null!=(r=null==t?void 0:t.firstWeekContainsDate)?r:null==t||null==(r=t.locale)||null==(r=r.options)?void 0:r.firstWeekContainsDate)?r:a.firstWeekContainsDate)?r:null==(r=a.locale)||null==(a=r.options)?void 0:a.firstWeekContainsDate)?r:1);if(1<=a&&a<=7)return(r=new Date(0)).setUTCFullYear(i+1,0,a),r.setUTCHours(0,0,0,0),r=startOfUTCWeek(r,t),(n=new Date(0)).setUTCFullYear(i,0,a),n.setUTCHours(0,0,0,0),a=startOfUTCWeek(n,t),s.getTime()>=r.getTime()?i+1:s.getTime()>=a.getTime()?i:i-1;throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively")}function startOfUTCWeekYear(e,t){requiredArgs(1,arguments);var r=getDefaultOptions(),r=toInteger(null!=(n=null!=(n=null!=(n=null!=(n=null==t?void 0:t.firstWeekContainsDate)?n:null==t||null==(n=t.locale)||null==(n=n.options)?void 0:n.firstWeekContainsDate)?n:r.firstWeekContainsDate)?n:null==(n=r.locale)||null==(r=n.options)?void 0:r.firstWeekContainsDate)?n:1),n=getUTCWeekYear(e,t),s=new Date(0);return s.setUTCFullYear(n,0,r),s.setUTCHours(0,0,0,0),startOfUTCWeek(s,t)}var MILLISECONDS_IN_WEEK=6048e5;function getUTCWeek(e,t){requiredArgs(1,arguments);var r=toDate(e),r=startOfUTCWeek(r,t).getTime()-startOfUTCWeekYear(r,t).getTime();return Math.round(r/MILLISECONDS_IN_WEEK)+1}function addLeadingZeros(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}var formatters$2={y:function(e,t){e=e.getUTCFullYear(),e=0<e?e:1-e;return addLeadingZeros("yy"===t?e%100:e,t.length)},M:function(e,t){e=e.getUTCMonth();return"M"===t?String(e+1):addLeadingZeros(e+1,2)},d:function(e,t){return addLeadingZeros(e.getUTCDate(),t.length)},a:function(e,t){var r=1<=e.getUTCHours()/12?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:function(e,t){return addLeadingZeros(e.getUTCHours()%12||12,t.length)},H:function(e,t){return addLeadingZeros(e.getUTCHours(),t.length)},m:function(e,t){return addLeadingZeros(e.getUTCMinutes(),t.length)},s:function(e,t){return addLeadingZeros(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,e=e.getUTCMilliseconds();return addLeadingZeros(Math.floor(e*Math.pow(10,r-3)),t.length)}},formatters$3=formatters$2,dayPeriodEnum={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},formatters={G:function(e,t,r){var n=0<e.getUTCFullYear()?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){var n;return"yo"===t?(n=e.getUTCFullYear(),r.ordinalNumber(0<n?n:1-n,{unit:"year"})):formatters$3.y(e,t)},Y:function(e,t,r,n){e=getUTCWeekYear(e,n),n=0<e?e:1-e;return"YY"===t?addLeadingZeros(n%100,2):"Yo"===t?r.ordinalNumber(n,{unit:"year"}):addLeadingZeros(n,t.length)},R:function(e,t){return addLeadingZeros(getUTCISOWeekYear(e),t.length)},u:function(e,t){return addLeadingZeros(e.getUTCFullYear(),t.length)},Q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return addLeadingZeros(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return addLeadingZeros(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){var n=e.getUTCMonth();switch(t){case"M":case"MM":return formatters$3.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return addLeadingZeros(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){e=getUTCWeek(e,n);return"wo"===t?r.ordinalNumber(e,{unit:"week"}):addLeadingZeros(e,t.length)},I:function(e,t,r){e=getUTCISOWeek(e);return"Io"===t?r.ordinalNumber(e,{unit:"week"}):addLeadingZeros(e,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):formatters$3.d(e,t)},D:function(e,t,r){e=getUTCDayOfYear(e);return"Do"===t?r.ordinalNumber(e,{unit:"dayOfYear"}):addLeadingZeros(e,t.length)},E:function(e,t,r){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){var s=e.getUTCDay(),i=(s-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return addLeadingZeros(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(s,{width:"short",context:"formatting"});default:return r.day(s,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){var s=e.getUTCDay(),i=(s-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return addLeadingZeros(i,t.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(s,{width:"narrow",context:"standalone"});case"cccccc":return r.day(s,{width:"short",context:"standalone"});default:return r.day(s,{width:"wide",context:"standalone"})}},i:function(e,t,r){var n=e.getUTCDay(),s=0===n?7:n;switch(t){case"i":return String(s);case"ii":return addLeadingZeros(s,t.length);case"io":return r.ordinalNumber(s,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){var n=1<=e.getUTCHours()/12?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){var e=e.getUTCHours(),n=12===e?dayPeriodEnum.noon:0===e?dayPeriodEnum.midnight:1<=e/12?"pm":"am";switch(t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){var e=e.getUTCHours(),n=17<=e?dayPeriodEnum.evening:12<=e?dayPeriodEnum.afternoon:4<=e?dayPeriodEnum.morning:dayPeriodEnum.night;switch(t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){var n;return"ho"===t?(n=e.getUTCHours()%12,r.ordinalNumber(n=0===n?12:n,{unit:"hour"})):formatters$3.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):formatters$3.H(e,t)},K:function(e,t,r){e=e.getUTCHours()%12;return"Ko"===t?r.ordinalNumber(e,{unit:"hour"}):addLeadingZeros(e,t.length)},k:function(e,t,r){e=e.getUTCHours();return 0===e&&(e=24),"ko"===t?r.ordinalNumber(e,{unit:"hour"}):addLeadingZeros(e,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):formatters$3.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):formatters$3.s(e,t)},S:function(e,t){return formatters$3.S(e,t)},X:function(e,t,r,n){var s=(n._originalDate||e).getTimezoneOffset();if(0===s)return"Z";switch(t){case"X":return formatTimezoneWithOptionalMinutes(s);case"XXXX":case"XX":return formatTimezone(s);default:return formatTimezone(s,":")}},x:function(e,t,r,n){var s=(n._originalDate||e).getTimezoneOffset();switch(t){case"x":return formatTimezoneWithOptionalMinutes(s);case"xxxx":case"xx":return formatTimezone(s);default:return formatTimezone(s,":")}},O:function(e,t,r,n){var s=(n._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+formatTimezoneShort(s,":");default:return"GMT"+formatTimezone(s,":")}},z:function(e,t,r,n){var s=(n._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+formatTimezoneShort(s,":");default:return"GMT"+formatTimezone(s,":")}},t:function(e,t,r,n){n=n._originalDate||e;return addLeadingZeros(Math.floor(n.getTime()/1e3),t.length)},T:function(e,t,r,n){return addLeadingZeros((n._originalDate||e).getTime(),t.length)}};function formatTimezoneShort(e,t){var r=0<e?"-":"+",e=Math.abs(e),n=Math.floor(e/60),e=e%60;return 0==e?r+String(n):(t=t||"",r+String(n)+t+addLeadingZeros(e,2))}function formatTimezoneWithOptionalMinutes(e,t){return e%60==0?(0<e?"-":"+")+addLeadingZeros(Math.abs(e)/60,2):formatTimezone(e,t)}function formatTimezone(e,t){var t=t||"",r=0<e?"-":"+",e=Math.abs(e);return r+addLeadingZeros(Math.floor(e/60),2)+t+addLeadingZeros(e%60,2)}var formatters$1=formatters,dateLongFormatter=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},timeLongFormatter=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},dateTimeLongFormatter=function(e,t){var r,n=e.match(/(P+)(p+)?/)||[],s=n[1],n=n[2];if(!n)return dateLongFormatter(e,t);switch(s){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;default:r=t.dateTime({width:"full"})}return r.replace("{{date}}",dateLongFormatter(s,t)).replace("{{time}}",timeLongFormatter(n,t))},longFormatters={p:timeLongFormatter,P:dateTimeLongFormatter},longFormatters$1=longFormatters,protectedDayOfYearTokens=["D","DD"],protectedWeekYearTokens=["YY","YYYY"];function isProtectedDayOfYearToken(e){return-1!==protectedDayOfYearTokens.indexOf(e)}function isProtectedWeekYearToken(e){return-1!==protectedWeekYearTokens.indexOf(e)}function throwProtectedError(e,t,r){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var formatDistanceLocale={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},formatDistance=function(e,t,r){e=formatDistanceLocale[e],e="string"==typeof e?e:1===t?e.one:e.other.replace("{{count}}",t.toString());return null!=r&&r.addSuffix?r.comparison&&0<r.comparison?"in "+e:e+" ago":e},formatDistance$1=formatDistance;function buildFormatLongFn(t){return function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=e.width?String(e.width):t.defaultWidth;return t.formats[e]||t.formats[t.defaultWidth]}}var dateFormats={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},timeFormats={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateTimeFormats={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong={date:buildFormatLongFn({formats:dateFormats,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats,defaultWidth:"full"})},formatLong$1=formatLong,formatRelativeLocale={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},formatRelative=function(e,t,r,n){return formatRelativeLocale[e]},formatRelative$1=formatRelative;function buildLocalizeFn(s){return function(e,t){t="formatting"===(null!=t&&t.context?String(t.context):"standalone")&&s.formattingValues?(n=s.defaultFormattingWidth||s.defaultWidth,r=null!=t&&t.width?String(t.width):n,s.formattingValues[r]||s.formattingValues[n]):(r=s.defaultWidth,n=null!=t&&t.width?String(t.width):s.defaultWidth,s.values[n]||s.values[r]);var r,n=s.argumentCallback?s.argumentCallback(e):e;return t[n]}}var eraValues={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},quarterValues={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},monthValues={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},dayValues={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},dayPeriodValues={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},formattingDayPeriodValues={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ordinalNumber=function(e,t){var r=Number(e),e=r%100;if(20<e||e<10)switch(e%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},localize={ordinalNumber:ordinalNumber,era:buildLocalizeFn({values:eraValues,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:buildLocalizeFn({values:monthValues,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues,defaultWidth:"wide",formattingValues:formattingDayPeriodValues,defaultFormattingWidth:"wide"})},localize$1=localize;function buildMatchFn(i){return function(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=r.width,s=n&&i.matchPatterns[n]||i.matchPatterns[i.defaultMatchWidth],s=e.match(s);return s?(t=s[0],s=n&&i.parsePatterns[n]||i.parsePatterns[i.defaultParseWidth],n=Array.isArray(s)?findIndex(s,function(e){return e.test(t)}):findKey(s,function(e){return e.test(t)}),s=i.valueCallback?i.valueCallback(n):n,{value:s=r.valueCallback?r.valueCallback(s):s,rest:e.slice(t.length)}):null}}function findKey(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function findIndex(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function buildMatchPatternFn(s){return function(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=e.match(s.matchPattern);return n&&(n=n[0],t=e.match(s.parsePattern))?(t=s.valueCallback?s.valueCallback(t[0]):t[0],{value:t=r.valueCallback?r.valueCallback(t):t,rest:e.slice(n.length)}):null}}var matchOrdinalNumberPattern=/^(\d+)(th|st|nd|rd)?/i,parseOrdinalNumberPattern=/\d+/i,matchEraPatterns={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},parseEraPatterns={any:[/^b/i,/^(a|c)/i]},matchQuarterPatterns={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},parseQuarterPatterns={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},parseMonthPatterns={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},parseDayPatterns={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},matchDayPeriodPatterns={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},parseDayPeriodPatterns={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},match={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern,parsePattern:parseOrdinalNumberPattern,valueCallback:function(e){return parseInt(e,10)}}),era:buildMatchFn({matchPatterns:matchEraPatterns,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:buildMatchFn({matchPatterns:matchMonthPatterns,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns,defaultParseWidth:"any"})},match$1=match,locale={code:"en-US",formatDistance:formatDistance$1,formatLong:formatLong$1,formatRelative:formatRelative$1,localize:localize$1,match:match,options:{weekStartsOn:0,firstWeekContainsDate:1}},defaultLocale=locale,formattingTokensRegExp=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,longFormattingTokensRegExp=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,escapedStringRegExp=/^'([^]*?)'?$/,doubleQuoteRegExp=/''/g,unescapedLatinCharacterRegExp=/[a-zA-Z]/;function format(n,s,i){requiredArgs(2,arguments);var e=String(s),t=getDefaultOptions(),a=null!=(r=null!=(r=null==i?void 0:i.locale)?r:t.locale)?r:defaultLocale,r=toInteger(null!=(r=null!=(r=null!=(r=null!=(r=null==i?void 0:i.firstWeekContainsDate)?r:null==i||null==(r=i.locale)||null==(r=r.options)?void 0:r.firstWeekContainsDate)?r:t.firstWeekContainsDate)?r:null==(r=t.locale)||null==(r=r.options)?void 0:r.firstWeekContainsDate)?r:1);if(!(1<=r&&r<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");t=toInteger(null!=(c=null!=(c=null!=(c=null!=(c=null==i?void 0:i.weekStartsOn)?c:null==i||null==(c=i.locale)||null==(c=c.options)?void 0:c.weekStartsOn)?c:t.weekStartsOn)?c:null==(c=t.locale)||null==(t=c.options)?void 0:t.weekStartsOn)?c:0);if(!(0<=t&&t<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!a.localize)throw new RangeError("locale must contain localize property");if(!a.formatLong)throw new RangeError("locale must contain formatLong property");var o,l,c=toDate(n);if(isValid(c))return o=subMilliseconds(c,getTimezoneOffsetInMilliseconds(c)),l={firstWeekContainsDate:r,weekStartsOn:t,locale:a,_originalDate:c},e.match(longFormattingTokensRegExp).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,longFormatters$1[t])(e,a.formatLong):e}).join("").match(formattingTokensRegExp).map(function(e){if("''"===e)return"'";var t=e[0];if("'"===t)return cleanEscapedString(e);var r=formatters$1[t];if(r)return null!=i&&i.useAdditionalWeekYearTokens||!isProtectedWeekYearToken(e)||throwProtectedError(e,s,String(n)),null!=i&&i.useAdditionalDayOfYearTokens||!isProtectedDayOfYearToken(e)||throwProtectedError(e,s,String(n)),r(o,e,a.localize,l);if(t.match(unescapedLatinCharacterRegExp))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return e}).join("");throw new RangeError("Invalid time value")}function cleanEscapedString(e){var t=e.match(escapedStringRegExp);return t?t[1].replace(doubleQuoteRegExp,"'"):e}function isAfter(e,t){requiredArgs(2,arguments);var r=toDate(e),n=toDate(t);return r.getTime()>n.getTime()}var IRepeatIntervalUnit,IExistingJobErrorMessage,wellKnownSymbol$d=wellKnownSymbol$k,TO_STRING_TAG$1=wellKnownSymbol$k("toStringTag"),test={},toStringTagSupport=(test[TO_STRING_TAG$1]="z","[object z]"===String(test)),TO_STRING_TAG_SUPPORT=toStringTagSupport,isCallable$9=isCallable$o,classofRaw$1=classofRaw$2,wellKnownSymbol$c=wellKnownSymbol$k,TO_STRING_TAG=wellKnownSymbol$k("toStringTag"),$Object=Object,CORRECT_ARGUMENTS="Arguments"==classofRaw$1(function(){return arguments}()),tryGet=function(e,t){try{return e[t]}catch(e){}},classof$7=TO_STRING_TAG_SUPPORT?classofRaw$1:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=tryGet(e=$Object(e),TO_STRING_TAG))?t:CORRECT_ARGUMENTS?classofRaw$1(e):"Object"==(t=classofRaw$1(e))&&isCallable$9(e.callee)?"Arguments":t},classof$6=classof$7,$String=String,toString$8=function(e){if("Symbol"===classof$6(e))throw TypeError("Cannot convert a Symbol value to a string");return $String(e)},whitespaces$2="\t\n\v\f\r                 \u2028\u2029\ufeff",uncurryThis$f=functionUncurryThis,requireObjectCoercible$3=requireObjectCoercible$6,toString$7=toString$8,whitespaces$1=whitespaces$2,replace$6=functionUncurryThis("".replace),ltrim=RegExp("^["+whitespaces$1+"]+"),rtrim=RegExp("(^|[^"+whitespaces$1+"])["+whitespaces$1+"]+$"),createMethod$1=function(t){return function(e){e=toString$7(requireObjectCoercible$3(e));return 1&t&&(e=replace$6(e,ltrim,"")),e=2&t?replace$6(e,rtrim,"$1"):e}},stringTrim={start:createMethod$1(1),end:createMethod$1(2),trim:createMethod$1(3)},global$c=global$n,fails$a=fails$m,uncurryThis$e=functionUncurryThis,toString$6=toString$8,trim=stringTrim.trim,whitespaces=whitespaces$2,$parseInt$1=global$c.parseInt,Symbol$1=global$c.Symbol,ITERATOR$5=Symbol$1&&Symbol$1.iterator,hex=/^[+-]?0x/i,exec$4=uncurryThis$e(hex.exec),FORCED=8!==$parseInt$1(whitespaces+"08")||22!==$parseInt$1(whitespaces+"0x16")||ITERATOR$5&&!fails$a(function(){$parseInt$1(Object(ITERATOR$5))}),numberParseInt=FORCED?function(e,t){e=trim(toString$6(e));return $parseInt$1(e,t>>>0||(exec$4(hex,e)?16:10))}:$parseInt$1,$$c=_export,$parseInt=numberParseInt,anObject$a=(_export({global:!0,forced:parseInt!=numberParseInt},{parseInt:numberParseInt}),anObject$g),regexpFlags$1=function(){var e=anObject$a(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},fails$9=fails$m,global$b=global$n,$RegExp$2=global$n.RegExp,UNSUPPORTED_Y$1=fails$9(function(){var e=$RegExp$2("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),MISSED_STICKY=UNSUPPORTED_Y$1||fails$9(function(){return!$RegExp$2("a","y").sticky}),BROKEN_CARET=UNSUPPORTED_Y$1||fails$9(function(){var e=$RegExp$2("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),regexpStickyHelpers={BROKEN_CARET:BROKEN_CARET,MISSED_STICKY:MISSED_STICKY,UNSUPPORTED_Y:UNSUPPORTED_Y$1},fails$8=fails$m,global$a=global$n,$RegExp$1=global$n.RegExp,regexpUnsupportedDotAll=fails$8(function(){var e=$RegExp$1(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}),fails$7=fails$m,global$9=global$n,$RegExp=global$n.RegExp,regexpUnsupportedNcg=fails$7(function(){var e=$RegExp("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),call$d=functionCall,uncurryThis$d=functionUncurryThis,toString$5=toString$8,regexpFlags=regexpFlags$1,stickyHelpers=regexpStickyHelpers,shared=shared$4.exports,create$1=objectCreate,getInternalState$1=internalState.get,UNSUPPORTED_DOT_ALL=regexpUnsupportedDotAll,UNSUPPORTED_NCG=regexpUnsupportedNcg,nativeReplace=shared("native-string-replace",String.prototype.replace),nativeExec=RegExp.prototype.exec,patchedExec=nativeExec,charAt$6=uncurryThis$d("".charAt),indexOf=uncurryThis$d("".indexOf),replace$5=uncurryThis$d("".replace),stringSlice$6=uncurryThis$d("".slice),UPDATES_LAST_INDEX_WRONG=function(){var e=/a/,t=/b*/g;return call$d(nativeExec,e,"a"),call$d(nativeExec,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),UNSUPPORTED_Y=stickyHelpers.BROKEN_CARET,NPCG_INCLUDED=void 0!==/()??/.exec("")[1],PATCH=UPDATES_LAST_INDEX_WRONG||NPCG_INCLUDED||UNSUPPORTED_Y||UNSUPPORTED_DOT_ALL||UNSUPPORTED_NCG,regexpExec$2=patchedExec=PATCH?function(e){var t,r,n,s,i,a,o=this,l=getInternalState$1(o),e=toString$5(e),c=l.raw;if(c)return c.lastIndex=o.lastIndex,d=call$d(patchedExec,c,e),o.lastIndex=c.lastIndex,d;var u=l.groups,c=UNSUPPORTED_Y&&o.sticky,d=call$d(regexpFlags,o),l=o.source,p=0,g=e;if(c&&(d=replace$5(d,"y",""),-1===indexOf(d,"g")&&(d+="g"),g=stringSlice$6(e,o.lastIndex),0<o.lastIndex&&(!o.multiline||o.multiline&&"\n"!==charAt$6(e,o.lastIndex-1))&&(l="(?: "+l+")",g=" "+g,p++),t=new RegExp("^(?:"+l+")",d)),NPCG_INCLUDED&&(t=new RegExp("^"+l+"$(?!\\s)",d)),UPDATES_LAST_INDEX_WRONG&&(r=o.lastIndex),n=call$d(nativeExec,c?t:o,g),c?n?(n.input=stringSlice$6(n.input,p),n[0]=stringSlice$6(n[0],p),n.index=o.lastIndex,o.lastIndex+=n[0].length):o.lastIndex=0:UPDATES_LAST_INDEX_WRONG&&n&&(o.lastIndex=o.global?n.index+n[0].length:r),NPCG_INCLUDED&&n&&1<n.length&&call$d(nativeReplace,n[0],t,function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(n[s]=void 0)}),n&&u)for(n.groups=i=create$1(null),s=0;s<u.length;s++)i[(a=u[s])[0]]=n[a[1]];return n}:patchedExec,$$b=_export,exec$3=regexpExec$2,NATIVE_BIND$1=(_export({target:"RegExp",proto:!0,forced:/./.exec!==exec$3},{exec:exec$3}),functionBindNative),FunctionPrototype=Function.prototype,apply$2=FunctionPrototype.apply,call$c=FunctionPrototype.call,functionApply="object"==typeof Reflect&&Reflect.apply||(NATIVE_BIND$1?call$c.bind(apply$2):function(){return call$c.apply(apply$2,arguments)}),classofRaw=classofRaw$2,uncurryThis$c=functionUncurryThis,functionUncurryThisClause=function(e){if("Function"===classofRaw(e))return uncurryThis$c(e)},uncurryThis$b=functionUncurryThisClause,defineBuiltIn$6=defineBuiltIn$a,regexpExec$1=regexpExec$2,fails$6=fails$m,wellKnownSymbol$b=wellKnownSymbol$k,createNonEnumerableProperty=createNonEnumerableProperty$5,SPECIES$3=wellKnownSymbol$b("species"),RegExpPrototype$2=RegExp.prototype,fixRegexpWellKnownSymbolLogic=function(r,e,t,n){var a,s=wellKnownSymbol$b(r),o=!fails$6(function(){var e={};return e[s]=function(){return 7},7!=""[r](e)}),i=o&&!fails$6(function(){var e=!1,t=/a/;return"split"===r&&((t={constructor:{}}).constructor[SPECIES$3]=function(){return t},t.flags="",t[s]=/./[s]),t.exec=function(){return e=!0,null},t[s](""),!e});o&&i&&!t||(a=uncurryThis$b(/./[s]),i=e(s,""[r],function(e,t,r,n,s){var e=uncurryThis$b(e),i=t.exec;return i===regexpExec$1||i===RegExpPrototype$2.exec?o&&!s?{done:!0,value:a(t,r,n)}:{done:!0,value:e(r,t,n)}:{done:!1}}),defineBuiltIn$6(String.prototype,r,i[0]),defineBuiltIn$6(RegExpPrototype$2,s,i[1])),n&&createNonEnumerableProperty(RegExpPrototype$2[s],"sham",!0)},uncurryThis$a=functionUncurryThis,toIntegerOrInfinity$1=toIntegerOrInfinity$4,toString$4=toString$8,requireObjectCoercible$2=requireObjectCoercible$6,charAt$5=uncurryThis$a("".charAt),charCodeAt$1=uncurryThis$a("".charCodeAt),stringSlice$5=uncurryThis$a("".slice),createMethod=function(s){return function(e,t){var r,e=toString$4(requireObjectCoercible$2(e)),t=toIntegerOrInfinity$1(t),n=e.length;return t<0||n<=t?s?"":void 0:(r=charCodeAt$1(e,t))<55296||56319<r||t+1===n||(n=charCodeAt$1(e,t+1))<56320||57343<n?s?charAt$5(e,t):r:s?stringSlice$5(e,t,t+2):n-56320+(r-55296<<10)+65536}},stringMultibyte={codeAt:createMethod(!1),charAt:createMethod(!0)},charAt$4=stringMultibyte.charAt,advanceStringIndex$1=function(e,t,r){return t+(r?charAt$4(e,t).length:1)},uncurryThis$9=functionUncurryThis,toObject$1=toObject$5,floor$3=Math.floor,charAt$3=uncurryThis$9("".charAt),replace$4=uncurryThis$9("".replace),stringSlice$4=uncurryThis$9("".slice),SUBSTITUTION_SYMBOLS=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,SUBSTITUTION_SYMBOLS_NO_NAMED=/\$([$&'`]|\d{1,2})/g,getSubstitution$1=function(i,a,o,l,c,e){var u=o+i.length,d=l.length,t=SUBSTITUTION_SYMBOLS_NO_NAMED;return void 0!==c&&(c=toObject$1(c),t=SUBSTITUTION_SYMBOLS),replace$4(e,t,function(e,t){var r;switch(charAt$3(t,0)){case"$":return"$";case"&":return i;case"`":return stringSlice$4(a,0,o);case"'":return stringSlice$4(a,u);case"<":r=c[stringSlice$4(t,1,-1)];break;default:var n,s=+t;if(0==s)return e;if(d<s)return 0!==(n=floor$3(s/10))&&n<=d?void 0===l[n-1]?charAt$3(t,1):l[n-1]+charAt$3(t,1):e;r=l[s-1]}return void 0===r?"":r})},call$b=functionCall,anObject$9=anObject$g,isCallable$8=isCallable$o,classof$5=classofRaw$2,regexpExec=regexpExec$2,$TypeError$7=TypeError,regexpExecAbstract=function(e,t){var r=e.exec;if(isCallable$8(r))return null!==(r=call$b(r,e,t))&&anObject$9(r),r;if("RegExp"===classof$5(e))return call$b(regexpExec,e,t);throw $TypeError$7("RegExp#exec called on incompatible receiver")},apply$1=functionApply,call$a=functionCall,uncurryThis$8=functionUncurryThis,fixRegExpWellKnownSymbolLogic=fixRegexpWellKnownSymbolLogic,fails$5=fails$m,anObject$8=anObject$g,isCallable$7=isCallable$o,isNullOrUndefined$2=isNullOrUndefined$5,toIntegerOrInfinity=toIntegerOrInfinity$4,toLength=toLength$2,toString$3=toString$8,requireObjectCoercible$1=requireObjectCoercible$6,advanceStringIndex=advanceStringIndex$1,getMethod$2=getMethod$4,getSubstitution=getSubstitution$1,regExpExec=regexpExecAbstract,wellKnownSymbol$a=wellKnownSymbol$k,REPLACE=wellKnownSymbol$k("replace"),max$1=Math.max,min=Math.min,concat=uncurryThis$8([].concat),push$3=uncurryThis$8([].push),stringIndexOf$1=uncurryThis$8("".indexOf),stringSlice$3=uncurryThis$8("".slice),maybeToString=function(e){return void 0===e?e:String(e)},REPLACE_KEEPS_$0="$0"==="a".replace(/./,"$0"),REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE=!!/./[REPLACE]&&""===/./[REPLACE]("a","$0"),REPLACE_SUPPORTS_NAMED_GROUPS=!fails$5(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")});fixRegExpWellKnownSymbolLogic("replace",function(e,S,b){var $=REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE?"$":"$0";return[function(e,t){var r=requireObjectCoercible$1(this),n=isNullOrUndefined$2(e)?void 0:getMethod$2(e,REPLACE);return n?call$a(n,e,r,t):call$a(S,toString$3(r),e,t)},function(e,t){var r=anObject$8(this),n=toString$3(e);if("string"==typeof t&&-1===stringIndexOf$1(t,$)&&-1===stringIndexOf$1(t,"$<")){e=b(S,r,n,t);if(e.done)return e.value}for(var s,i=isCallable$7(t),a=(i||(t=toString$3(t)),r.global),o=(a&&(s=r.unicode,r.lastIndex=0),[]);null!==(d=regExpExec(r,n))&&(push$3(o,d),a);)""===toString$3(d[0])&&(r.lastIndex=advanceStringIndex(n,toLength(r.lastIndex),s));for(var l="",c=0,u=0;u<o.length;u++){for(var d,p=toString$3((d=o[u])[0]),g=max$1(min(toIntegerOrInfinity(d.index),n.length),0),h=[],m=1;m<d.length;m++)push$3(h,maybeToString(d[m]));var f=d.groups,y=i?(y=concat([p],h,g,n),void 0!==f&&push$3(y,f),toString$3(apply$1(t,void 0,y))):getSubstitution(p,n,g,h,f,t);c<=g&&(l+=stringSlice$3(n,c,g)+y,c=g+p.length)}return l+stringSlice$3(n,c)}]},!REPLACE_SUPPORTS_NAMED_GROUPS||!REPLACE_KEEPS_$0||REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);const selectIsWeeklyValid=e=>e.processingCenterIngestion.scheduleStep.weekly.isWeeklyValid,selectWeeklyTimeslots=e=>e.processingCenterIngestion.scheduleStep.weekly.weeklyTimeslots,selectScheduleState=e=>e.processingCenterIngestion.scheduleStep,selectTimezone=e=>e.processingCenterIngestion.scheduleStep.timezone,selectFrequencySchedularState=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular,selectScheduleType=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.scheduleType,selectStartDate=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.startDate,selectEndDate=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.endDate,selectContinuousStartDate=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.continuousStartDate,selectContinuousEndDate=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.continuousEndDate,selectFrequency=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.frequency,selectNoEndDate=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.noEndDate,selectHoursInterval=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.hoursInterval,selectDaysInterval=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.daysInterval,selectDailyTimeslotOne=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.dailyTimeslotOne,selectDailyTimeslotTwo=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.dailyTimeslotTwo,selectDaysTimeslot=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.daysTimeslot,selectFrequencyIsValid=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.frequencyIsValid,selectSchedulePayload=e=>e.processingCenterIngestion.scheduleStep.schedulePayload,SHARED_TEXT={ingestionJobsWizard:{editMode:{panelHeader:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.edit-mode.wizard-panel.title",defaultMessage:"Edit Schedule",description:"Panel header for the Processing Center Wizard Create Schedule Panel"}),headerMoreActionsButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.edit-mode.header.more.actions",defaultMessage:"More Actions",description:"button for more actions"}),headerDeleteScheduleButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.edit-mode.header.delete.schedule.button",defaultMessage:"Delete",description:"button to delete schedule"}),existingJobErrorMessageJob:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.existing-error-message-job",defaultMessage:"This scheduled job could not be found",description:"Error message for existing job not found"}),existingJobErrorMessageSource:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.existing-error-message-source",defaultMessage:"There was no source associated with this job",description:"Error message for existing job source not found"}),existingJobErrorMessageDag:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.existing-error-message-dag",defaultMessage:"There was no DAG template associated with this job",description:"Error message for existing job DAG template not found"}),existingJobErrorTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.existing-error-message-title",defaultMessage:"Scheduled Job Error",description:"title for job error message"})},panelHeader:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.title",defaultMessage:"Create Schedule",description:"Panel header for the Processing Center Wizard Create Schedule Panel"}),closePanel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.close",defaultMessage:"Close",description:"Panel close button for the Processing Center Wizard Create Schedule Panel"}),incompleteFieldsMessage:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.incomplete-warning-message",defaultMessage:"Please complete all required fields",description:"Incomplete fields message for the Processing Center Wizard Next Button"}),someFieldsInvalidMessage:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.invalid-fields-warning-message",defaultMessage:"Some fields are not valid",description:"Invalid fields message for the Processing Center Wizard Next Button"}),stepLabels:{selectSource:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.step-label.select-source",defaultMessage:"Select Source",description:"Stepper Title for the Processing Center Wizard Stepper Select Source"}),basicInfo:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.step-label.basic-info",defaultMessage:"Basic Info",description:"Stepper Title for the Processing Center Wizard Stepper Basic Info"}),schedule:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.step-label.schedule",defaultMessage:"Schedule",description:"Stepper Title for the Processing Center Wizard Stepper Schedule"}),processing:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.step-label.processing",defaultMessage:"Processing",description:"Stepper Title for the Processing Center Wizard Stepper Processing"}),contentTemplates:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.step-label.content-templates",defaultMessage:"Content Templates",description:"Stepper Title for the Processing Center Wizard Stepper Content Templates"}),location:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.step-label.location",defaultMessage:"Location",description:"Stepper Title for the Processing Center Wizard Stepper Location"})}},affiliatePanel:{panelHeaders:{addAffiliate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.panelHeader.add",defaultMessage:"Add an Affiliate",description:"Panel Title for Add an Affiliated Station"}),editAffiliateSchedule:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.panelHeader.edit",defaultMessage:"Edit Affiliate Schedule",description:"Panel Title for Edit an Affiliated Station Schedule"}),bulkAffiliateSchedule:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.panelHeader.bulk",defaultMessage:"Bulk Import Affiliates",description:"Panel Title for Bulk Add Affiliated Stations"})},tvAdapterText:{title:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.tv-adapter-text.title",defaultMessage:"Affiliated Stations",description:"Title for Affiliated Stations"}),subtitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.tv-adapter-text.subtitle",defaultMessage:"Assign affiliated stations that also broadcast programming from this ingestion source.",description:"Sub Title for Affiliated Stations"}),addAffiliateButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.tv-adapter-text.add-affiliate-btn",defaultMessage:"Add Affiliate",description:"Button text for Add Affiliate"}),bulkAffiliateButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.tv-adapter-text.bulk-add-affiliate-btn",defaultMessage:"Bulk Add Affiliates",description:"Button text for Bulk Add Affiliate"})},controls:{cancel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.controls.cancel",defaultMessage:"Cancel",description:"Cancel button label"}),saveAffiliate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.controls.save",defaultMessage:"Save Affiliate",description:"Save affiliate button label"}),editAffiliate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.controls.edit",defaultMessage:"Edit Affiliate",description:"edit affiliate button label"}),bulkImport:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.controls.bulk-import",defaultMessage:"Bulk Import",description:"Bulk Import button label"})},afilliateTable:{headerId:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-table-header-id",defaultMessage:"Id",description:"table header Id"}),headerName:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-table-header-name",defaultMessage:"Name",description:"table header name"}),headerStartDate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-table-header-startdate",defaultMessage:"Start Date",description:"table header start date"}),headerEndDate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-table-header-enddate",defaultMessage:"End Date",description:"table header end date"}),headerEditDelete:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-table-header-edit-delete",defaultMessage:"Edit / Delete",description:"table header edit or delete"}),scheduleTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-table-header-title-schedule",defaultMessage:"Schedule",description:"header for schedule"})},addAffiliateView:{},editAffiliateView:{},bulkAffiliateView:{}},timezonePicker:{editableCaption:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.schedule-step.timezone-picker.caption.editable",defaultMessage:"The schedule will run in this timezone",description:"Caption displayed when the user is able to edit the time zone"}),sourceBasedCaption:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.schedule-step.timezone-picker.caption.source-based",defaultMessage:"The timezone is set on the Source and can not be modified",description:"Caption displayed when the time zone is pinned to the source time zone"}),changeButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.schedule-step.timezone-picker.button.change",defaultMessage:"Change",description:"Text on the button used to change the time zone"}),saveButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.schedule-step.timezone-picker.button.save",defaultMessage:"Save",description:"Text on the button used to save time zone changes"})},processing:{title:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.processing.title",defaultMessage:"Processing",description:"Title for the processing section"}),subtitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.processing.subtitle",defaultMessage:"As data is ingested from this source, each data type will be processed with the selected engines you choose below.",description:"Sub Title for the location section"}),chooseTemplate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.processing.choose-template",defaultMessage:"Choose a Template",description:"Choose template label for the processing section"}),createNewTemplate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.processing.new-template-btn",defaultMessage:"Create a New Template",description:"Create new template button for the processing section"}),errorState:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.processing.error-state",defaultMessage:"Unable to load templates",description:"Error message for the processing section"}),emptyState:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.processing.empty-state",defaultMessage:"No templates found",description:"empty state label for the processing section"}),tooltips:{edit:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.processing.edit-template",defaultMessage:"Edit or make a copy of this template",description:"Tooltip shown on the button used to edit a template"}),notSupported:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.processing.edit-not-supported",defaultMessage:"This is a custom template that uses advanced logic not yet supported by the editor.",description:"Tooltip shown when the template doesn't support being edited"})},selectButton:{select:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.processing.select-template",defaultMessage:"Select",description:"Button used to select a template"}),cancelSelection:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.processing.unselect-template",defaultMessage:"Cancel Selection",description:"Button used to unselect a template"})}},location:{sectionTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.title",defaultMessage:"Location",description:"Title for the location section of location and permissions"}),chooseLocationDetails:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.choose-folder",defaultMessage:"Choose the Data Center folder location where this content will be stored",description:"Explanation of what the folder selector is for"}),folderSelectorLabel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.folder-label",defaultMessage:"Folder",description:"Label for the folder selector"}),chooseLocation:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.choose-location-button",defaultMessage:"Choose Location",description:"Choose folder"}),chooseHome:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.choose-home-button",defaultMessage:"Choose Home",description:"Choose root folder"}),changeLocationButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.change-location-button",defaultMessage:"Change",description:"Change the location that files will be stored in"}),homeFolderLabel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.home-folder-label",defaultMessage:"Home",description:"Text displayed when the user hasn't chosen a specific folder"}),folderInputLabel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.folder-input-label",defaultMessage:"Folder",description:"Label for folder selection"})},permissions:{sectionTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.permissions.title",defaultMessage:"Permissions",description:"Title for the permissions section of location and permissions"}),managePermissionsDetails:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.permissions.manage-permissions",defaultMessage:"Manage who can access the content that is imported with this Scheduled Job",description:"Explanation of what permission management is for"})},sourceSelectDefaultMessage:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-default-select",defaultMessage:"Choose a Source",description:"default select text"}),sourceSelectTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-title",defaultMessage:"Select a Source",description:"title text"}),sourceSelectSubTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-subtitle",defaultMessage:"Select the data source for this scheduled job",description:"subtitle text"}),loadingSources:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-loading-sources",defaultMessage:"Loading Sources",description:"Search Filter by Source Schedule, loader message Loading Sources"}),retryButtonText:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-retry-button",defaultMessage:"Retry",description:"text for button to allow retry of failed api call"}),sourcesErrorMessageText:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-error",defaultMessage:"There was an error loading the sources",description:"text for error with source fetching"}),sourcesNotFoundText:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-not-found",defaultMessage:"No sources match your search name or source type.",description:"text for no sources found"}),createSourceButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-create-source",defaultMessage:"Create New Source",description:"button for create new source"}),advancedSettingsButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-advanced-settings",defaultMessage:"Advanced Settings",description:"button for advanced settings for source"}),nextButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-next-button",defaultMessage:"Next",description:"button for next step"}),cancelButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-cancel-button",defaultMessage:"Cancel",description:"button for cancel"}),backButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-back-button",defaultMessage:"Back",description:"button for back"}),skipButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-skip-button",defaultMessage:"Skip",description:"button for skip"}),createScheduledJobButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-create-job-button",defaultMessage:"Create Scheduled Job",description:"button for create job"}),updateScheduledJobButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-update-job-button",defaultMessage:"Update Scheduled Job",description:"button for update job"}),frequencySchedular:{title:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-title",defaultMessage:"Schedule",description:"title"}),subtitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-subtitle",defaultMessage:"How often would you like to import new data from this source?",description:"subtitle"}),radioRecurring:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-radio-recurring",defaultMessage:"Recurring",description:"radio label recurring"}),radioContinuous:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-radio-continuous",defaultMessage:"Continuous",description:"radio label continuous"}),radioOnDemand:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-radio-ondemand",defaultMessage:"On Demand",description:"radio label for on demand"}),errorNoSupportedTypes:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-error-not-supported-schedule",defaultMessage:"This adapter does not have any supported schedule types.",description:"error message no supported schedule types"}),messageDaily:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-message-daily",defaultMessage:"This schedule will run daily at the selected time below.",description:"message for daily selected"}),messageTwiceDaily:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-message-twice-daily",defaultMessage:"This schedule will run twice daily at the selected times below.",description:"message for twice daily selected"}),messageHours:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-message-hours",defaultMessage:"Schedule this job to run at an hourly interval between 1 and 24 hours.",description:"message for hours selected"}),messageDays:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-message-days",defaultMessage:"Schedule this job to run at a daily interval that will start at the selected time below.",description:"message for days selected"}),messageMediaChunk:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-message-media-chunk",defaultMessage:"Ingested content will have a set duration of",description:"message for media chunk"}),messageScheduleFrequencyError:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-message-schedule-frequency-error",defaultMessage:"The Schedule Frequency of the existing job is not supported by this scheduler. Please click on the Frequency dropdown to create a new Schedule.",description:"message for unsupported schedule type"}),messageMediaChunkMinutes:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-message-media-chunk-minutes",defaultMessage:"minutes",description:"message for media chunk minutes"}),changeMediaChunkButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-button-media-chunk-minutes",defaultMessage:"CHANGE",description:"button for media chunk minutes"}),textBetweenDates:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-text-between-dates",defaultMessage:"to",description:"text between date selectors"}),startDate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-start-date",defaultMessage:"Start Date",description:"label for start date"}),endDate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-end-date",defaultMessage:"End Date",description:"label for end date"}),labelHours:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-hours",defaultMessage:"Hours",description:"label for Hours"}),labelDays:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-days",defaultMessage:"Days",description:"label for days"}),labelDaily:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-daily",defaultMessage:"Daily",description:"label for daily"}),labelTwiceDaily:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-twice-daily",defaultMessage:"Twice Daily",description:"label for twice daily"}),labelWeekly:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-weekly",defaultMessage:"Weekly",description:"label for weekly"}),labelNoEndDate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-no-end",defaultMessage:"No End Date",description:"label for no end date"}),inputLabelFrequency:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-input-label-frequency",defaultMessage:"Frequency",description:"label for frequency input"}),inputLabelInterval:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-input-label-interval",defaultMessage:"Interval",description:"label for interval selector"}),labelMinutes:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"oprocessing-panel-ingestion-schedule-step-freq-minutes",defaultMessage:"Minutes",description:"text for minutes"}),labelMediaChunkLength:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-input-label-media-chunk",defaultMessage:"Media Chunk Length",description:"label for media chunk selector"}),onDemandMessage:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-ondemand-message",defaultMessage:"Data import will begin once an external event is triggered",description:"message for on demand"}),learnMore:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-ondemand-learn-more",defaultMessage:"Learn More",description:"learn more link"})}},useStyles$9=makeStyles()(e=>({onDemandContainer:{background:"#FAFAFA",display:"flex",borderRadius:"4px",flexDirection:"row",justifyContent:"space-around",alignItems:"center",width:"464px",height:"60px",marginTop:"20px"},ingestionRow:{display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center",width:"650px",marginTop:"20px"},spaceAbove:{display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center",width:"660px",marginTop:"20px"},textBetweenDateContainer:{width:"auto",marginLeft:"15px",marginRight:"15px"},frequencyMessageContainer:{display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center",marginLeft:"15px",height:"55px",width:"auto"},daysHoursMessageContainer:{marginTop:" 15px",display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center",width:"auto"},daysHoursMessage:{fontSize:"14px",color:"#000"},chunkButton:{fontSize:"14px",marginTop:"2px"},messageContainer:{display:"flex",flexDirection:"row",alignItems:"center",width:"100%"},frequencyMessage:{width:"100%"},frequencyMessageError:{width:"100%",color:"rgba(255,0,0,0.6)"},intervalSelectContainer:{marginLeft:"10px",width:"75px"},frequencySelectContainer:{width:"167px"},noEndContainer:{marginLeft:"15px"},radioGroupContainer:{width:"100%"},timeslotTopMargin:{marginTop:"8px"},timeslotMenu:{marginTop:"20px",width:"260px !important"},timeslotStartMenu:{marginTop:"20px",display:"flex",position:"relative",background:"#F6F7FA",boxSizing:"border-box",gap:"10px",width:"124px !important",padding:"0px 12px",borderRadius:"5px",alignItems:"center",userSelect:"none",'&:hover input[type="time"]':{color:"#1871e8"},"&.is-invalid":{backgroundColor:"rgba(255,0,0,0.05)"},'&.is-invalid input[type="time"]':{color:"rgba(255,0,0,0.6)"}}})),useStyles$8=makeStyles()(e=>({container:{display:"flex",flexDirection:"column",gap:"20px"},dayBubblesContainer:{display:"flex",gap:"10px"},dayBubble:{height:"40px",width:"40px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"14px",fontWeight:"bold",cursor:"pointer",userSelect:"none",transition:"all 0.25s ease-in-out","&.disabled:active":{opacity:.5},"&.enabled:active":{opacity:.5},"&.disabled:hover":{backgroundColor:"rgba(24,113,232,0.2)"},"&.enabled:hover":{backgroundColor:"rgba(24,113,232,0.8)"},"&.enabled":{backgroundColor:"#1871E8",color:"#fff"},"&.disabled":{backgroundColor:"#F2F3F4",color:"#555F7C"}},timeslotsWidgetContainer:{display:"flex",gap:"15px",flexDirection:"column",width:"100%",overflowY:"scroll"},timeslotRow:{display:"flex",alignItems:"flex-start",gap:"10px"},timeslotDayLabel:{width:"15%",paddingTop:"5px"},timeslotList:{display:"flex",flexDirection:"column",gap:"15px"},timeslotMenu:{display:"flex",position:"relative",background:"#F6F7FA",boxSizing:"border-box",gap:"10px",padding:"0px 12px",borderRadius:"5px",alignItems:"center",userSelect:"none",'&:hover input[type="time"]':{color:"#1871e8"},"&.is-invalid":{backgroundColor:"rgba(255,0,0,0.05)"},'&.is-invalid input[type="time"]':{color:"rgba(255,0,0,0.6)"}},timeslotDelete:{position:"absolute",top:0,right:"-60px",opacity:0,transition:"all 0.25s ease-in-out","&:hover":{opacity:1}},inputTime:{background:"transparent",border:"none",fontFamily:"sans-serif",padding:"8px 0px",outline:"none!important",color:"#2A323C",fontSize:"15px"},rowActions:{display:"flex",alignItems:"center",gap:"15px",opacity:0,paddingLeft:"10px",transition:"all 0.25s ease-in-out","&:hover":{opacity:1}},rowDivider:{width:"1px",display:"flex",backgroundColor:"#979797",height:"30px"},rowCopyToAll:{display:"flex",alignItems:"center",gap:"10px"}})),WEEKLY_SCHEDULER_SHARED_TEXT={ui:{invalidTimeslot:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.tooltip.invalid-time-slot",defaultMessage:"This time window is not valid",description:"Processing Center Wizard Schedule Step, UI tooltip for invalid time slot"}),deleteTimeslot:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.tooltip.delete-time-slot",defaultMessage:"Delete time",description:"Processing Center Wizard Schedule Step, UI tooltip for delete time"}),addTimeWindow:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.tooltip.add-time-window",defaultMessage:"Add time window",description:"Processing Center Wizard Schedule Step, UI tooltip for add time window"}),copyTimeToAll:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.text.copy-time-to-all",defaultMessage:"Copy time to all",description:"Processing Center Wizard Schedule Step, UI text for copy time to all"}),copiedTimeToAll:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.text.copied-time-to-all",defaultMessage:"Copied times",description:"Processing Center Wizard Schedule Step, UI text for copied times to all"}),replaceAllDayTimes:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.tooltip.replace-all-day-times",defaultMessage:"This will replace all days selected time",description:"Processing Center Wizard Schedule Step, UI tooltip for replace all days times"}),changeTime:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.text.change-time",defaultMessage:"Change Time",description:"Processing Center Wizard Schedule Step, UI Text for change time"}),chooseLaterTime:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.tooltip.choose-later-time",defaultMessage:"Please select a later time",description:"Processing Center Wizard Schedule Step, UI Text for tooltip - choose later time"}),chooseEarlierTime:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.tooltip.choose-earlier-time",defaultMessage:"Please select an earlier time",description:"Processing Center Wizard Schedule Step, UI Text for tooltip - choose earlier time"})},days:{Su:{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.day.label.sunday",defaultMessage:"Sunday",description:"Processing Center Wizard Schedule Step, day label for Sunday"}),enable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.enable.sunday",defaultMessage:"Add Sunday time",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, enable Sunday"}),disable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.disable.sunday",defaultMessage:"Remove all Sunday times",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, disable Sunday"})},M:{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.day.label.monday",defaultMessage:"Monday",description:"Processing Center Wizard Schedule Step, day label for Monday"}),enable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.enable.monday",defaultMessage:"Add Monday time",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, enable monday"}),disable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.disable.monday",defaultMessage:"Remove all Monday times",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, disable monday"})},Tu:{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.day.label.tuesday",defaultMessage:"Tuesday",description:"Processing Center Wizard Schedule Step, day label for Tuesday"}),enable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.enable.tuesday",defaultMessage:"Add Tuesday time",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, enable tuesday"}),disable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.disable.tuesday",defaultMessage:"Remove all Tuesday times",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, disable tuesday"})},W:{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.day.label.wednesday",defaultMessage:"Wednesday",description:"Processing Center Wizard Schedule Step, day label for wednesday"}),enable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.enable.wednesday",defaultMessage:"Add Wednesday time",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, enable wednesday"}),disable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.disable.wednesday",defaultMessage:"Remove all Wednesday times",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, disable wednesday"})},Th:{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.day.label.thursday",defaultMessage:"Thursday",description:"Processing Center Wizard Schedule Step, day label for Thursday"}),enable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.enable.thursday",defaultMessage:"Add Thursday time",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, enable thursday"}),disable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.disable.thursday",defaultMessage:"Remove all Thursday times",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, disable thursday"})},F:{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.day.label.friday",defaultMessage:"Friday",description:"Processing Center Wizard Schedule Step, day label for Friday"}),enable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.enable.friday",defaultMessage:"Add Friday time",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, enable friday"}),disable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.disable.friday",defaultMessage:"Remove all Friday times",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, disable friday"})},Sa:{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.day.label.saturday",defaultMessage:"Saturday",description:"Processing Center Wizard Schedule Step, day label for Saturday"}),enable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.enable.saturday",defaultMessage:"Add Saturday time",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, enable saturday"}),disable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.disable.saturday",defaultMessage:"Remove all Saturday times",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, disable saturday"})}}},TimeDropdown=({disabled:e,time:t,onChange:r,min:n,max:s,showTooltip:i})=>{var a=useStyles$8()["classes"];return jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:jsxRuntime.exports.jsx(Tooltip,Object.assign({title:i&&!e?WEEKLY_SCHEDULER_SHARED_TEXT.ui.changeTime:""},{children:jsxRuntime.exports.jsx("input",{disabled:e,"data-testid":"pc-wizard-schedule-weekly-timeslot",value:t,name:s?"start":"end",min:n||void 0,max:s||void 0,className:a.inputTime,type:"time",onChange:e=>{var{value:e,name:t}=e.target;r(e,t)}})}))})},TimeStartEndField=({timeslot:e,showDelete:t,day:n,onDelete:r,onChangeTime:s,disabled:i,id:a=""})=>{var o=useStyles$8()["classes"];const{id:l,start:c,end:u,isValid:d}=e;var e=o.timeslotMenu+" "+(d?"":"is-invalid"),p=(e,t)=>{let r;r="start"===t?createTimeslot(e,u,l,validateTimeWindow(e,u),!1):createTimeslot(c,e,l,validateTimeWindow(c,e),!1),s(r,l,n)};return jsxRuntime.exports.jsx(Tooltip,Object.assign({title:d?"":WEEKLY_SCHEDULER_SHARED_TEXT.ui.invalidTimeslot},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:e,"data-testid":"timeslot-field-row-"+a},{children:[jsxRuntime.exports.jsx(TimeDropdown,{disabled:i,time:c,onChange:p,max:u,showTooltip:d}),jsxRuntime.exports.jsx("span",{children:"to"}),jsxRuntime.exports.jsx(TimeDropdown,{disabled:i,time:u,onChange:p,min:c,showTooltip:d}),t&&jsxRuntime.exports.jsx("div",Object.assign({className:o.timeslotDelete},{children:jsxRuntime.exports.jsx(Tooltip,Object.assign({enterDelay:0,title:WEEKLY_SCHEDULER_SHARED_TEXT.ui.deleteTimeslot},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({onClick:()=>{n&&r&&r(n,l)},"data-testid":"pc-wizard-schedule-weekly-timeslot-button-delete"},{children:jsxRuntime.exports.jsx(Delete$1,{})}))}))}))]}))}))},selectSearchTerm=e=>e.processingCenterIngestion.sourceStep.sourceSearchTerm||"",selectSourceTypeId=e=>e.processingCenterIngestion.sourceStep.sourceTypeId||"",selectSourceSelected=e=>e.processingCenterIngestion.sourceStep.sourceSelected||null,selectOffset=e=>e.processingCenterIngestion.sourceStep.offset,selectError=e=>e.processingCenterIngestion.sourceStep.error,selectIsLoading=e=>e.processingCenterIngestion.sourceStep.isLoading,selectHasMore=e=>e.processingCenterIngestion.sourceStep.hasMore,selectSearchedSources=e=>e.processingCenterIngestion.sourceStep.searchedSources||[],selectMediaChunkLength=e=>e.processingCenterIngestion.sourceStep.mediaChunkLength,selectClusterSelected=e=>e.processingCenterIngestion.sourceStep.clusterSection.clusterSelected,selectClustersError=e=>e.processingCenterIngestion.sourceStep.clusterSection.error,selectClustersIsLoading=e=>e.processingCenterIngestion.sourceStep.clusterSection.isLoading,selectClustersOffset=e=>e.processingCenterIngestion.sourceStep.clusterSection.offset,selectClusters=e=>e.processingCenterIngestion.sourceStep.clusterSection.clusters||[],selectIsAffiliateSearch=e=>e.processingCenterIngestion.sourceStep.isAffiliateSearch,Frequency=(!function(e){e.Months="Months",e.Weeks="Weeks",e.Days="Days",e.Hours="Hours",e.Minutes="Minutes",e.Seconds="Seconds"}(IRepeatIntervalUnit=IRepeatIntervalUnit||{}),!function(e){e.Job="Job",e.Source="Source",e.Dag="Dag"}(IExistingJobErrorMessage=IExistingJobErrorMessage||{}),{Hours:"Hours",Days:"Days",Daily:"Daily",TwiceDaily:"TwiceDaily",Weekly:"Weekly"}),podcastAdapterId="a725de38-f538-4c4a-b835-b0bd4ab1a255",FrequencySchedular=({activeEngine:e})=>{const t=useStyles$9()["classes"],r=useDispatch();var n=useSelector(selectMediaChunkLength),s=Number(useSelector(selectHoursInterval)),i=Number(useSelector(selectDaysInterval));const a=useSelector(selectDailyTimeslotOne),o=useSelector(selectDailyTimeslotTwo);var l=useSelector(selectDaysTimeslot),c=useSelector(selectScheduleType),u=useSelector(selectStartDate),d=useSelector(selectEndDate),p=useSelector(selectContinuousStartDate),g=useSelector(selectContinuousEndDate);const h=useSelector(selectFrequency);var m=useSelector(selectNoEndDate);const f=useSelector(selectTimezone),y=useSelector(selectFrequencySchedularState);RunMode.Recurring,RunMode.Continuous,RunMode.Once,RunMode.Now;e=null==e?void 0:e.id;react.exports.useEffect(()=>{r(actions$6.setFrequencyIsValid(validateFrequencyScheduler(y)))},[y]),react.exports.useEffect(()=>{var e;h===Frequency.Daily&&(e=generateDailyTimeslots(a),e=lodash.exports.cloneDeep(formatWeeklyPayload(e,f)),r(actions$6.setDailyScheduleParts(e)))},[a,f,h]),react.exports.useEffect(()=>{var e;h===Frequency.TwiceDaily&&(e=generateDailyTimeslots(a,o),e=lodash.exports.cloneDeep(formatWeeklyPayload(e,f)),r(actions$6.setTwiceDailyScheduleParts(e)))},[a,o,f,h]);return jsxRuntime.exports.jsxs("div",Object.assign({style:{height:"auto"}},{children:[jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h5"},{children:SHARED_TEXT.frequencySchedular.title()})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption"},{children:SHARED_TEXT.frequencySchedular.subtitle()})),jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(FormControl,{children:jsxRuntime.exports.jsxs(RadioGroup,Object.assign({className:t.radioGroupContainer,row:!0,name:"schedule-type-radio-buttons-group",value:c,onChange:e=>{e=e.target.value;r(actions$6.resetFrequencyState()),r(actions$6.setScheduleType(e))}},{children:[jsxRuntime.exports.jsx(FormControlLabel,{"data-testid":"ingestion-job-frequency-radio-recurring",value:RunMode.Recurring,control:jsxRuntime.exports.jsx(Radio,{}),label:SHARED_TEXT.frequencySchedular.radioRecurring()}),jsxRuntime.exports.jsx(FormControlLabel,{"data-testid":"ingestion-job-frequency-radio-continuous",value:RunMode.Continuous,control:jsxRuntime.exports.jsx(Radio,{}),label:SHARED_TEXT.frequencySchedular.radioContinuous()})]}))})})]}),!1,c===RunMode.Recurring&&jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:t.ingestionRow},{children:[jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(FormControl,{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"ingestion-job-frequency-start-date",id:"date",required:!0,label:SHARED_TEXT.frequencySchedular.startDate(),type:"date",value:u,onChange:e=>{e=e.target.value;r(actions$6.setStartDate(e))},InputLabelProps:{shrink:!0},error:validateStartAndEndTime(u,d,!m)})})}),jsxRuntime.exports.jsx("div",Object.assign({className:t.textBetweenDateContainer},{children:jsxRuntime.exports.jsx(Typography,{children:SHARED_TEXT.frequencySchedular.textBetweenDates()})})),jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(FormControl,{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"ingestion-job-frequency-end-date",id:"date",label:SHARED_TEXT.frequencySchedular.endDate(),type:"date",disabled:m,value:d,onChange:e=>{e=e.target.value;r(actions$6.setEndDate(e))},InputLabelProps:{shrink:!0},error:validateStartAndEndTime(u,d,!m)})})}),jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(FormControl,Object.assign({className:t.noEndContainer},{children:jsxRuntime.exports.jsx(FormControlLabel,{"data-testid":"ingestion-job-frequency-radio-no-end-date",control:jsxRuntime.exports.jsx(Checkbox,{checked:m,onChange:e=>{e=e.target.checked;r(actions$6.setNoEndDate(e))}}),label:SHARED_TEXT.frequencySchedular.labelNoEndDate()})}))})]})),jsxRuntime.exports.jsxs("div",Object.assign({className:t.ingestionRow},{children:[jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsxs(FormControl,Object.assign({className:t.frequencySelectContainer},{children:[jsxRuntime.exports.jsx(InputLabel,Object.assign({required:!0,shrink:!0,id:"frequency-label"},{children:SHARED_TEXT.frequencySchedular.inputLabelFrequency()})),jsxRuntime.exports.jsxs(Select,Object.assign({"data-testid":"ingestion-job-frequency-select-frequency",required:!0,labelId:"frequency-label",id:"frequency",value:h,label:SHARED_TEXT.frequencySchedular.inputLabelFrequency(),displayEmpty:!0,onChange:e=>{e=e.target.value;r(actions$6.setFrequency(e)),r(actions$6.resetFrequencyFields())}},{children:[jsxRuntime.exports.jsx(MenuItem,Object.assign({"data-testid":"ingestion-job-frequency-select-hours",value:Frequency.Hours},{children:SHARED_TEXT.frequencySchedular.labelHours()})),jsxRuntime.exports.jsx(MenuItem,Object.assign({"data-testid":"ingestion-job-frequency-select-days",value:Frequency.Days},{children:SHARED_TEXT.frequencySchedular.labelDays()})),jsxRuntime.exports.jsx(MenuItem,Object.assign({"data-testid":"ingestion-job-frequency-select-daily",value:Frequency.Daily},{children:SHARED_TEXT.frequencySchedular.labelDaily()})),jsxRuntime.exports.jsx(MenuItem,Object.assign({"data-testid":"ingestion-job-frequency-select-twice-daily",value:Frequency.TwiceDaily},{children:SHARED_TEXT.frequencySchedular.labelTwiceDaily()})),jsxRuntime.exports.jsx(MenuItem,Object.assign({"data-testid":"ingestion-job-frequency-select-weekly",value:Frequency.Weekly},{children:SHARED_TEXT.frequencySchedular.labelWeekly()}))]}))]}))}),h===Frequency.Hours&&jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(FormControl,Object.assign({className:t.intervalSelectContainer},{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"ingestion-job-frequency-select-interval-hours",label:SHARED_TEXT.frequencySchedular.inputLabelInterval(),type:"number",InputLabelProps:{shrink:!0},value:s,onChange:e=>{e=Number(e.target.value);24<e||e<1||r(actions$6.setHoursInterval(e))}})}))}),h===Frequency.Days&&jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(FormControl,Object.assign({className:t.intervalSelectContainer},{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"ingestion-job-frequency-select-interval-days",id:"outlined-number",label:"Interval",type:"number",InputLabelProps:{shrink:!0},value:i,onChange:e=>{e=Number(e.target.value);365<e||e<1||r(actions$6.setDaysInterval(e))}})}))}),jsxRuntime.exports.jsx("div",Object.assign({className:t.frequencyMessageContainer},{children:h===IRepeatIntervalUnit.Months||h===IRepeatIntervalUnit.Minutes||h===IRepeatIntervalUnit.Seconds?jsxRuntime.exports.jsx(Typography,Object.assign({"data-testid":"ingestion-job-frequency-message-daily",className:t.frequencyMessageError},{children:SHARED_TEXT.frequencySchedular.messageScheduleFrequencyError()})):h===Frequency.Daily?jsxRuntime.exports.jsx(Typography,Object.assign({"data-testid":"ingestion-job-frequency-message-daily",className:t.frequencyMessage},{children:SHARED_TEXT.frequencySchedular.messageDaily()})):h===Frequency.TwiceDaily?jsxRuntime.exports.jsx(Typography,Object.assign({"data-testid":"ingestion-job-frequency-message-twice-daily",className:t.frequencyMessage},{children:SHARED_TEXT.frequencySchedular.messageTwiceDaily()})):h===Frequency.Hours?jsxRuntime.exports.jsx(Typography,Object.assign({"data-testid":"ingestion-job-frequency-message-hours",className:t.frequencyMessage},{children:SHARED_TEXT.frequencySchedular.messageHours()})):h===Frequency.Days?jsxRuntime.exports.jsx(Typography,Object.assign({"data-testid":"ingestion-job-frequency-message-days",className:t.frequencyMessage},{children:SHARED_TEXT.frequencySchedular.messageDays()})):null}))]})),(h===Frequency.Daily||h===Frequency.TwiceDaily)&&jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx("div",Object.assign({className:t.timeslotMenu},{children:jsxRuntime.exports.jsx(TimeStartEndField,{"data-testid":"ingestion-job-frequency-select-timeslot1",timeslot:a,onChangeTime:e=>{r(actions$6.setDailyTimeslotOne(e))}})})),h===Frequency.TwiceDaily&&jsxRuntime.exports.jsx("div",Object.assign({className:t.timeslotMenu},{children:jsxRuntime.exports.jsx(TimeStartEndField,{"data-testid":"ingestion-job-frequency-select-timeslot2",timeslot:o,onChangeTime:e=>{r(actions$6.setDailyTimeslotTwo(e))}})}))]}),h===Frequency.Days&&jsxRuntime.exports.jsx("div",Object.assign({className:t.timeslotStartMenu},{children:jsxRuntime.exports.jsx(TimeDropdown,{"data-testid":"ingestion-job-frequency-days-start-time",time:l,onChange:e=>{r(actions$6.setDaysTimeslot(e))},max:"endTime",showTooltip:!1})})),(h===Frequency.Hours||h===Frequency.Days)&&podcastAdapterId!==e&&jsxRuntime.exports.jsxs("div",Object.assign({"data-testid":"ingestion-job-frequency-message-media-chunk",className:t.daysHoursMessageContainer},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({className:t.daysHoursMessage},{children:SHARED_TEXT.frequencySchedular.messageMediaChunk()})),jsxRuntime.exports.jsxs(Typography,Object.assign({className:t.daysHoursMessage,sx:{fontWeight:"bold"}},{children:[" ",n," "]})),jsxRuntime.exports.jsx(Typography,Object.assign({className:t.daysHoursMessage},{children:SHARED_TEXT.frequencySchedular.messageMediaChunkMinutes()})),jsxRuntime.exports.jsx(Button,Object.assign({"data-testid":"ingestion-job-frequency-open-advanced",onClick:()=>{r(mountPanel({panelId:"PROCESSING_CENTER_ADVANCED_SETTINGS",microFrontend:{name:"PROCESSING_CENTER_ADVANCED_SETTINGS",config:{}},panelConfig:{header:{title:"Advanced Settings"},divider:!1,type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,size:"small",parentPanelId:"PROCESSING_CENTER_INGESTION",dimmed:0,dimmedStatus:"dimParent"}}))},className:t.chunkButton},{children:SHARED_TEXT.frequencySchedular.changeMediaChunkButton()}))]}))]}),c===RunMode.Continuous&&jsxRuntime.exports.jsxs("div",Object.assign({className:t.ingestionRow},{children:[jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(FormControl,{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"ingestion-job-frequency-continuous-start",required:!0,id:"date",label:SHARED_TEXT.frequencySchedular.startDate(),type:"datetime-local",value:p,onChange:e=>{e=e.target.value;r(actions$6.setContinuousStartDate(e))},InputLabelProps:{shrink:!0},error:validateStartAndEndTime(p,g,!0)})})}),jsxRuntime.exports.jsx("div",Object.assign({className:t.textBetweenDateContainer},{children:jsxRuntime.exports.jsx(Typography,{children:SHARED_TEXT.frequencySchedular.textBetweenDates()})})),jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(FormControl,{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"ingestion-job-frequency-continuous-end",required:!0,id:"date",label:SHARED_TEXT.frequencySchedular.startDate(),type:"datetime-local",value:g,onChange:e=>{e=e.target.value;r(actions$6.setContinuousEndDate(e))},InputLabelProps:{shrink:!0},error:validateStartAndEndTime(p,g,!0)})})})]}))]}))},getUTCDate=(e,t)=>{t+=getTimezoneOffset(e);try{return new Date(t).toISOString()}catch(e){return(new Date).toISOString()}},getTimezoneOffset=e=>{try{var t=(new Date).toLocaleTimeString("en-US",{timeZone:e,timeZoneName:"longOffset"}).split(" ").pop();return null==t?void 0:t.replace("GMT","")}catch(e){return console.error("The timezone could not be found - schedule will set in UTC time"),"+00:00"}},generateDailyTimeslots=(e,t)=>{var r={};for(const n of DAYS.ids)r[n]=[e],t&&r[n].push(t);return r},validateStartAndEndTime=(e,t,r)=>!(!r||!isAfter(new Date(e),new Date(t))),validateFrequencyScheduler=e=>{if(e.scheduleType!==RunMode.Once){if(e.scheduleType===RunMode.Recurring&&!e.noEndDate){if(!e.startDate||!e.endDate)return!1;if(isAfter(new Date(e.startDate),new Date(e.endDate)))return!1}if(e.scheduleType===RunMode.Recurring&&e.frequency===Frequency.Daily&&!e.dailyTimeslotOne.isValid)return!1;if(e.scheduleType===RunMode.Recurring&&e.frequency===Frequency.TwiceDaily){if(!e.dailyTimeslotOne.isValid)return!1;if(!e.dailyTimeslotTwo.isValid)return!1}if(e.scheduleType===RunMode.Continuous){if(!e.continuousStartDate||!e.continuousEndDate)return!1;if(isAfter(new Date(e.continuousStartDate),new Date(e.continuousEndDate)))return!1}}return!0},setApiPayload=e=>{var t,r={runMode:e.frequencySchedular.scheduleType};return e.frequencySchedular.scheduleType===RunMode.Recurring&&(t=e.frequencySchedular.startDate+"T00:00",r.startDateTime=getUTCDate(e.timezone,t),e.frequencySchedular.noEndDate||(t=e.frequencySchedular.endDate+"T23:59",r.stopDateTime=getUTCDate(e.timezone,t)),e.frequencySchedular.frequency===Frequency.Days&&(t=e.frequencySchedular.daysTimeslot+getTimezoneOffset(e.timezone),r.recurringScheduleParts=[{repeatIntervalUnit:e.frequencySchedular.frequency,repeatInterval:e.frequencySchedular.daysInterval,startTime:t}]),e.frequencySchedular.frequency===Frequency.Hours&&(r.recurringScheduleParts=[{repeatIntervalUnit:e.frequencySchedular.frequency,repeatInterval:e.frequencySchedular.hoursInterval}]),e.frequencySchedular.frequency===Frequency.Daily&&(r.weeklyScheduleParts=e.frequencySchedular.dailyScheduleParts),e.frequencySchedular.frequency===Frequency.TwiceDaily&&(r.weeklyScheduleParts=e.frequencySchedular.twiceDailyScheduleParts),e.frequencySchedular.frequency===Frequency.Weekly)&&(r.weeklyScheduleParts=e.weekly.weeklyScheduleParts),e.frequencySchedular.scheduleType===RunMode.Continuous&&(r.startDateTime=getUTCDate(e.timezone,e.frequencySchedular.continuousStartDate),r.stopDateTime=getUTCDate(e.timezone,e.frequencySchedular.continuousEndDate)),r},getNumericalTime=e=>{var[e,t]=e.split(":");return{hour:parseInt(e,10),min:parseInt(t,10)}},validateTimeWindow=(e,t)=>{e=getNumericalTime(e),t=getNumericalTime(t);return!(e.hour>t.hour||e.hour===t.hour&&e.min>=t.min)},validateAllTimeslots=e=>{for(const t of Object.keys(e))for(const r of e[t])if(!r.isValid)return!1;return!0},DEFAULT_TIMESLOT_TIMES={start:"09:00",end:"17:00"},createTimeslot=(e,t,r,n,s)=>({start:e,end:t,id:r,isValid:n,isConflict:s}),DAYS={labels:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],ids:["Su","M","Tu","W","Th","F","Sa"]},getEnabledDays=e=>{var t=[];for(const r of Object.keys(e))e[r].length&&t.push(r);return t},initialTimeslots={Su:[],M:[createTimeslot(DEFAULT_TIMESLOT_TIMES.start,DEFAULT_TIMESLOT_TIMES.end,v4(),!0,!1)],Tu:[],W:[],Th:[],F:[],Sa:[]},formatWeeklyPayload=(e,t)=>{var r=[];for(const o of Object.keys(e)){var n=DAYS.labels[DAYS.ids.indexOf(o)];for(const l of e[o]){var{start:s,end:i,isValid:a}=l,s={scheduledDay:n,startTime:s+getTimezoneOffset(t),stopTime:i+getTimezoneOffset(t)};a&&r.push(s)}}return r},namespace$6="scheduleStep",RunMode={Continuous:"Continuous",Recurring:"Recurring",Once:"Once",Now:"Now"},initialState$5={timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,frequencySchedular:{scheduleType:RunMode.Recurring,startDate:format(new Date,"yyyy-MM-dd"),endDate:format(addDays(new Date,1),"yyyy-MM-dd"),continuousStartDate:(new Date).toISOString().slice(0,16),continuousEndDate:addDays(new Date,1).toISOString().slice(0,16),hoursInterval:1,daysInterval:1,frequency:"Weekly",daysTimeslot:"09:00",dailyTimeslotOne:{id:"timeslotOne",start:"09:00",end:"11:00",isConflict:!1,isValid:!0},dailyTimeslotTwo:{id:"timeslotTwo",start:"13:00",end:"15:00",isConflict:!1,isValid:!0},noEndDate:!0,dailyScheduleParts:[],twiceDailyScheduleParts:[],frequencyIsValid:!0},weekly:{isWeeklyValid:!0,weeklyTimeslots:{Su:[],M:[createTimeslot(DEFAULT_TIMESLOT_TIMES.start,DEFAULT_TIMESLOT_TIMES.end,v4(),!0,!1)],Tu:[],W:[],Th:[],F:[],Sa:[]},weeklyScheduleParts:[]},schedulePayload:{runMode:"",startDateTime:""}},scheduleStepSlice=createSlice({name:"scheduleStep",initialState:initialState$5,reducers:{setTimezone:(e,{payload:t})=>{e.timezone=t},setIsWeeklyValid:(e,{payload:t})=>{e.weekly.isWeeklyValid=t},setWeeklyTimeslots:(e,t)=>{t=t.payload;e.weekly.weeklyTimeslots=t},setWeeklyScheduleParts:(e,t)=>{t=t.payload;e.weekly.weeklyScheduleParts=t},clearWeeklyScheduleParts:e=>{e.weekly.weeklyScheduleParts=[]},setDailyScheduleParts:(e,t)=>{t=t.payload;e.frequencySchedular.dailyScheduleParts=t},setTwiceDailyScheduleParts:(e,t)=>{t=t.payload;e.frequencySchedular.twiceDailyScheduleParts=t},resetFrequencyState:e=>{e.frequencySchedular=initialState$5.frequencySchedular},resetFrequencyFields:e=>{e.frequencySchedular.dailyTimeslotOne=initialState$5.frequencySchedular.dailyTimeslotOne,e.frequencySchedular.dailyTimeslotTwo=initialState$5.frequencySchedular.dailyTimeslotTwo,e.frequencySchedular.hoursInterval=initialState$5.frequencySchedular.hoursInterval,e.frequencySchedular.daysInterval=initialState$5.frequencySchedular.daysInterval,e.frequencySchedular.daysTimeslot=initialState$5.frequencySchedular.daysTimeslot,e.frequencySchedular.dailyScheduleParts=initialState$5.frequencySchedular.dailyScheduleParts,e.frequencySchedular.twiceDailyScheduleParts=initialState$5.frequencySchedular.twiceDailyScheduleParts},setScheduleType:(e,{payload:t})=>{e.frequencySchedular.scheduleType=t},setStartDate:(e,{payload:t})=>{e.frequencySchedular.startDate=t},setEndDate:(e,{payload:t})=>{e.frequencySchedular.endDate=t},setContinuousStartDate:(e,{payload:t})=>{e.frequencySchedular.continuousStartDate=t},setContinuousEndDate:(e,{payload:t})=>{e.frequencySchedular.continuousEndDate=t},setFrequency:(e,{payload:t})=>{e.frequencySchedular.frequency=t},setNoEndDate:(e,{payload:t})=>{e.frequencySchedular.noEndDate=t},setHoursInterval:(e,{payload:t})=>{e.frequencySchedular.hoursInterval=t},setDaysInterval:(e,{payload:t})=>{e.frequencySchedular.daysInterval=t},setDailyTimeslotOne:(e,{payload:t})=>{e.frequencySchedular.dailyTimeslotOne=t},setDailyTimeslotTwo:(e,{payload:t})=>{e.frequencySchedular.dailyTimeslotTwo=t},setDaysTimeslot:(e,{payload:t})=>{e.frequencySchedular.daysTimeslot=t},setFrequencyIsValid:(e,{payload:t})=>{e.frequencySchedular.frequencyIsValid=t},setSchedulePayload:(e,{payload:t})=>{e.schedulePayload=t}}}),actions$6=scheduleStepSlice.actions;var scheduleStep_slice=scheduleStepSlice.reducer;const namespace$5="basicInfoStep",initialState$4={scheduleName:"",sourceDetails:{},error:null,isLoading:!1,isInvalidFields:!1,programs:[],basicInfoMeta:{affiliates:{}}},basicInfoSlice=createSlice({name:"basicInfoStep",initialState:initialState$4,reducers:{getProgramsStart:e=>{e.isLoading=!0},setScheduleName:(e,t)=>{t=t.payload;e.scheduleName=t},setSourceDetails:(e,t)=>{t=t.payload;e.sourceDetails=t},setPrograms:(e,t)=>{t=t.payload;e.programs=t,e.isLoading=!1},setError:(e,{payload:t})=>{e.error=t},setBasicInfoMeta:(e,{payload:t})=>{e.basicInfoMeta||(e.basicInfoMeta={affiliates:{}}),e.basicInfoMeta[null==t?void 0:t.key]=e.basicInfoMeta[null==t?void 0:t.key]||null,e.basicInfoMeta[null==t?void 0:t.key]=(null==t?void 0:t.meta)||null},setInvalidFields:(e,{payload:t})=>{e.isInvalidFields=t},addEditAffiliate:(e,{payload:t})=>{var r=t["source"];e.basicInfoMeta&&(e.basicInfoMeta.affiliates[r.id]=t)},setAffiliatesExistingJob:(e,{payload:t})=>{e.basicInfoMeta&&(e.basicInfoMeta.affiliates=t)},deleteAffiliate:(e,{payload:t})=>{var r;e.basicInfoMeta&&(delete(r=lodash.exports.cloneDeep(e.basicInfoMeta.affiliates))[t],e.basicInfoMeta.affiliates=r)},setImage:(e,{})=>{},deleteImageUrl:(e,{payload:t})=>{e.basicInfoMeta||(e.basicInfoMeta={affiliates:{}}),delete e.basicInfoMeta[null==t?void 0:t.key]}}}),actions$5=basicInfoSlice.actions;var basicInfoStep_slice=basicInfoSlice.reducer;const namespace$4="processingStep",initialState$3={dagTemplateId:void 0,loadingStatus:"idle",allDagTemplates:[],offset:0,hasMore:!0,selectedDagTemplate:void 0},processingSlice=createSlice({name:"processingStep",initialState:initialState$3,reducers:{fetchDagTemplatesStart:e=>{e.loadingStatus="pending"},fetchDagTemplatesSucceeded:(e,t)=>{e.loadingStatus="success",t.payload.forEach(t=>{e.allDagTemplates.find(e=>e.name.toLowerCase()===t.name.toLowerCase())||e.allDagTemplates.push(t)})},fetchDagTemplatesFailed:e=>{e.loadingStatus="failure"},setOffset:(e,{payload:t})=>{e.offset=t},setHasMore:(e,{payload:t})=>{e.hasMore=t},setDagTemplateId:(e,t)=>{t=t.payload;e.dagTemplateId=t},setSelectedDagTemplate:(e,t)=>{e.selectedDagTemplate=t.payload},clearDagTemplateId:e=>{e.dagTemplateId=void 0},clearSelectedDagTemplate:e=>{e.selectedDagTemplate=void 0},resetList:e=>{e.allDagTemplates=[],e.hasMore=!0,e.loadingStatus="idle",e.offset=0},createIngestOnlyDagTemplateStart:e=>{},updateDagTemplate:(e,t)=>{const r=t.payload;t=e.allDagTemplates.findIndex(e=>e.name.toLowerCase()===r.name.toLowerCase());-1===t?e.allDagTemplates.push(r):e.allDagTemplates.splice(t,1,r)}}}),actions$4=processingSlice.actions;var processingStep_slice=processingSlice.reducer;const namespace$3="contentTemplatesStep",initialState$2={existingTemplates:[]},contentTemplatesSlice=createSlice({name:"contentTemplatesStep",initialState:initialState$2,reducers:{setExistingTemplates:(e,t)=>{t=t.payload;e.existingTemplates=t}}}),actions$3=contentTemplatesSlice.actions;var contentTemplatesStep_slice=contentTemplatesSlice.reducer;const namespace$2="location",initialState$1={selectedFolderId:void 0,existingFolder:{name:"",id:""}},locationSlice=createSlice({name:"location",initialState:initialState$1,reducers:{setSelectedFolderId:(e,{payload:t})=>{e.selectedFolderId=t},setExistingFolder:(e,{payload:t})=>{e.existingFolder=t}}}),actions$2=locationSlice.actions;var location_slice=locationSlice.reducer;const namespace$1="permissions",initialState={permissionsPayload:void 0},permissionsSlice=createSlice({name:"permissions",initialState:initialState,reducers:{setPermissionsPayload:(e,{payload:t})=>{e.permissionsPayload=t}}}),actions$1=permissionsSlice.actions;var permissions_slice=permissionsSlice.reducer;const selectSelectedFolderId=e=>e[SLICE_NAME][namespace$2].selectedFolderId,selectExistingFolder=e=>e[SLICE_NAME][namespace$2].existingFolder;var locationSelectors=Object.freeze({__proto__:null,selectSelectedFolderId:selectSelectedFolderId,selectExistingFolder:selectExistingFolder});const selectPermissionsPayload=e=>e[SLICE_NAME][namespace$1].permissionsPayload;var permissionsSelectors=Object.freeze({__proto__:null,selectPermissionsPayload:selectPermissionsPayload});const selectors={location:locationSelectors,permissions:permissionsSelectors},namespace=SLICE_NAME,actions={[namespace$9]:actions$9,[namespace$8]:actions$8,[namespace$7]:actions$7,[namespace$6]:actions$6,[namespace$5]:actions$5,[namespace$4]:actions$4,[namespace$3]:actions$3,[namespace$2]:actions$2,[namespace$1]:actions$1},rootReducer=combineReducers({[namespace$9]:uiState,[namespace$8]:ingestionJobsWizard_slice,[namespace$7]:selectSourceStep_slice,[namespace$6]:scheduleStep_slice,[namespace$5]:basicInfoStep_slice,[namespace$4]:processingStep_slice,[namespace$3]:contentTemplatesStep_slice,[namespace$2]:location_slice,[namespace$1]:permissions_slice}),selectUIStateStatus=e=>e[namespace].uiState.status,selectApiConfigs=createSelector([rootApiSelector,graphEndpointSelector,sessionTokenSelector],(e,t,r)=>({apiRoot:e,graphQLEndpoint:t,token:r}));function __rest(e,t){var r={};for(s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(r[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,s=Object.getOwnPropertySymbols(e);n<s.length;n++)t.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(e,s[n])&&(r[s[n]]=e[s[n]]);return r}function __awaiter(e,a,o,l){return new(o=o||Promise)(function(r,t){function n(e){try{i(l.next(e))}catch(e){t(e)}}function s(e){try{i(l.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?r(e.value):((t=e.value)instanceof o?t:new o(function(e){e(t)})).then(n,s)}i((l=l.apply(e,a||[])).next())})}function getSourcesBySearchTerm(t,r=0,n,s,i,a){return __awaiter(this,void 0,void 0,function*(){var e="getSourcesSearch";return(yield baseGraphQLApiWithError(Object.assign({query:"\n query getSourcesSearch($sourceTypeIds: [ID!], $offset: Int, $name: String, $limit: Int, $includePublic: Boolean ){\n sources(\n sourceTypeIds: $sourceTypeIds,\n offset: $offset,\n limit: $limit,\n name: $name,\n includePublic: $includePublic,\n permission: owner,\n nameMatch: contains,\n orderBy:{\n direction: asc\n field: name\n }\n ) {\n count\n records {\n id\n name\n sourceTypeId\n thumbnailUrl\n createdDateTime\n modifiedDateTime\n permission,\n details,\n sourceType {\n name,\n sourceSchema {\n definition\n }\n }\n }\n }\n }\n ",operationName:e,variables:{sourceTypeIds:s,name:n,offset:r,limit:i,includePublic:a}},t))).sources})}function getClusters(t,r=0,n){return __awaiter(this,void 0,void 0,function*(){var e="getClusters";return(yield baseGraphQLApiWithError(Object.assign({query:"\n query getClusters($offset: Int, $limit: Int ){\n clusters(\n offset: $offset,\n limit: $limit,\n edgeVersion: 3\n orderBy:{\n direction: asc\n field: name\n }\n ) {\n count\n records {\n id\n name\n type\n controllerUrl\n allowedEngines\n edgeVersion\n paused\n default\n bypassAllowedEngines\n }\n }\n }\n ",operationName:e,variables:{offset:r,limit:n}},t))).clusters})}function*sourcesSearchTermSaga(){try{var e=yield select(selectApiConfigs),t=yield select(selectOffset),r=yield select(selectSourceTypeId),n=yield select(selectSearchTerm),s=yield select(selectIsAffiliateSearch),i=yield call$l(getSourcesBySearchTerm,e,t,n,r,30,s);yield put(actions$7.sourcesSearchSucceeded(i.records)),30===i.count?yield put(actions$7.setHasMore(!0)):yield put(actions$7.setHasMore(!1)),yield put(actions$7.setOffset(t+30))}catch(e){yield put(actions$7.setError(e))}}function*clusterSearchSaga(){try{var e,t,r=yield select(selectApiConfigs),n=yield select(selectClustersOffset),s=yield call$l(getClusters,r,n,30);yield put(actions$7.clustersSearchSucceeded(s.records)),30===s.count?(yield put(actions$7.clustersSetHasMore(!0)),yield put(actions$7.clustersSetOffset(n+30)),yield put(actions$7.clustersSearchStart())):(t=(e=yield select(selectClusters)).map(e=>e.default).indexOf(!0),(yield select(selectClusterSelected))||(yield put(actions$7.setSelectedCluster(e[t]||null))),yield put(actions$7.clustersSetOffset(n+30)),yield put(actions$7.clustersSetHasMore(!1)))}catch(e){yield put(actions$7.clusterSetError(e))}}function*getSourcesSearchTermWatcher(){yield takeLatest$1(actions$7.sourcesSearchStart.type,sourcesSearchTermSaga)}function*getClusterSearchWatcher(){yield takeLatest$1(actions$7.clustersSearchStart.type,clusterSearchSaga)}const selectAllDagTemplates=e=>e.processingCenterIngestion.processingStep.allDagTemplates||[],selectDagTemplateId=e=>e.processingCenterIngestion.processingStep.dagTemplateId||"",selectSelectedDagTemplate=e=>e.processingCenterIngestion.processingStep.selectedDagTemplate,selectDagTemplatesLoadingStatus=e=>e.processingCenterIngestion.processingStep.loadingStatus,selectDagTemplatesOffset=e=>e.processingCenterIngestion.processingStep.offset,selectDagTemplatesHasMore=e=>e.processingCenterIngestion.processingStep.hasMore;function getPrograms(t,r){var n;return __awaiter(this,void 0,void 0,function*(){var e="getPrograms",e=yield baseGraphQLApiWithError(Object.assign({query:`
2
2
  query ${e} {
3
3
  sourceType(id: ${r}) {
4
4
  programFormats