@ingestro/importer-react 4.8.0 → 4.8.1

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 (2) hide show
  1. package/index.js +4 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -105,7 +105,7 @@ Valid keys: `+JSON.stringify(Object.keys(V),null," "));var z=W(se,F,ie,J,ue+"."
105
105
  z-index: 10000 !important;
106
106
  `,Q=()=>{if(!E)if(i){let Z=i();KCe(Z)?(G(!0),Z.then(()=>{G(!1),O(!1)}).catch(()=>{G(!1),O(!1)})):O(!1)}else O(!1),n()},V=GCe(()=>{if(f==="alert")return N?.alertPopup;if(f==="block")return N?.blockPopup;if(f==="readyToSubmit")return N?.reviewEntries?.submitModal},[N?.alertPopup,N?.blockPopup,N?.reviewEntries,f]),U=x("w-20",v({"&&":B.getDialogConfirmTheme().icon,"&& path":{fill:B.getDialogConfirmTheme().icon?.fill,stroke:B.getDialogConfirmTheme().icon?.stroke}}),v({"&&&":V?.icon,"&&& path":{fill:V?.icon?.fill,stroke:V?.icon?.stroke}})),le=()=>M?M(U):u&&f==="readyToSubmit"?za(uF,{className:x("w-40",v({"&&":aH(B.getDialogConfirmTheme().icon,["fill","stroke"]),"&& .nuvo__ready_submit_icon":{fill:B.getDialogConfirmTheme().icon?.fill,stroke:B.getDialogConfirmTheme().icon?.stroke}}),v({"&&&":aH(V?.icon,["fill","stroke"]),"&&& .nuvo__ready_submit_icon":{fill:V?.icon?.fill,stroke:V?.icon?.stroke}}))}):u&&S?za(lF,{className:U}):za(sF,{className:U});return za(Up,{gravity:"middle",className:x("w-full !p-0 sm:max-w-xl",_),isOpen:P,onCloseModal:()=>{O(!1),s?.()},wrapperClassName:x(v`
107
107
  z-index: 10000 !important;
108
- `),disabledClickOutside:c,isShowCloseIcon:d,overlayStyled:v({"&&":B.getDialogConfirmTheme().overlay,"&&&":V?.overlay}),bodyStyled:v({"&&":B.getDialogConfirmTheme().root,"&&&":V?.root}),closeIconStyled:B.getDialogConfirmTheme().closeIcon,closeButtonClassName:v({"&&& line":V?.closeIcon}),children:nH("div",{className:"w-full px-7 pb-8 pt-3",children:[za("div",{className:"flex justify-center pb-4",children:le()}),t&&za("p",{className:x("xss:pb-2 text-color-primary text-neutral-gray pb-1 text-center text-xl font-semibold",v({"&&":B.getDialogConfirmTheme().title,"&&&":V?.title}),L),dangerouslySetInnerHTML:{__html:t}}),e&&za("p",{className:x("xss:pb-7 text-color-secondary pb-2 text-center text-sm font-normal",v({"&&":B.getDialogConfirmTheme().description,"&&&":V?.description}),b),dangerouslySetInnerHTML:{__html:e}}),g||null,za("div",{className:x("xss:flex mt-2 flex-row justify-center sm:mt-0",w),children:za(ct,{isShow:m&&j,message:za(uo,{className:x("max-w-240 h-full w-full text-center text-xs",k),variant:T,children:h}),flip:!0,arrowClassName:"#545454",direction:"top",offset:{mainAxis:12},isShowArrow:!0,className:me,render:({setReferenceElement:Z})=>{let ie={"data-testid":re.global.confirmNegative,className:x("xss:mt-0 mt-3",{"w-full":!l},y,E?ae:"",E?"text-gray-260":""),type:"submit",loading:K,onClick:Q,ref:R==="negative"?Z:void 0,...R==="negative"?ne():{}},J={"data-testid":re.global.confirmPositive,...R==="positive"?ne():{},className:x(`xss:mt-0 xss:mr-4 mt-3 mr-0 ${p&&ae}`,C),type:"button",variant:"secondary",onClick:()=>{p||(O(!1),a&&a())}},ue=o||"Ok";return nH(XCe,{children:[za("span",{ref:R==="positive"?Z:void 0,className:x(I),children:l&&za(He,{...J,children:za("div",{className:x("leading-6",p&&"text-gray-260"),children:r||A("txt_cancel")})})}),f!=="warn"?za(He,{...ie,children:ue}):D?za(He,{...ie,children:ue}):null]})}})})]})})},iH=YCe;import{jsx as tSe,jsxs as rSe}from"react/jsx-runtime";var H5=ZCe({}),eSe=({children:t})=>{let[e,r]=sH(!1),[o,a]=sH(),n=JCe(i=>{a(i),r(!0)},[]);return QCe(()=>{e||a(void 0)},[e]),rSe(H5.Provider,{value:{isOpen:e,setOpenModal:r,showConfirmModal:n,type:o?.type,title:o?.title},children:[t,o&&tSe(iH,{title:o.title,description:o.description,textPositiveButton:o.textPositiveButton,textNegativeButton:o.textNegativeButton,onClickPositiveButton:o.onClickPositiveButton,onClickNegativeButton:o.onClickNegativeButton,onClickNegativeButtonPromise:o.onClickNegativeButtonPromise,isShowPositiveButton:o.isShowPositiveButton,isShowIcon:o.isShowIcon,disabledClickOutside:o.disabledClickOutside,isShowCloseIcon:o.isShowCloseIcon,type:o.type,disabledPositiveButton:o.disabledPositiveButton,disabledNegativeButton:o.disabledNegativeButton,isPopper:o.isPopper,textPopper:o.textPopper,content:o.content,descriptionClassName:o.descriptionClassName,footerClassName:o.footerClassName,negativeButtonClassName:o.negativeButtonClassName,positiveButtonClassName:o.positiveButtonClassName,positiveButtonWrapperClassName:o.positiveButtonWrapperClassName,roundedIcon:o.roundedIcon,baseModalClassName:o.baseModalClassName,customIcon:o.customIcon,titleClassName:o.titleClassName,onCloseModal:o.onCloseModal,popperPosition:o.popperPosition,messageVariant:o.messageVariant,messageClassName:o.messageClassName})]})},lH=eSe;import{useCallback as hSe,useMemo as bH,useRef as gSe,useState as wH}from"react";import{createContext as vSe}from"react";import{flatten as s4}from"lodash";var a4=class{constructor({similarity:e}){this.getValue=()=>this.similarity;this.similarity=e}},xi=a4;var Dx=class{constructor({sheetColumn:e,dataModel:r,similarity:o}){this.isMarkApplied=!1;this.getSimilarity=()=>this.similarity;this.getSheetColumn=()=>this.sheetColumn;this.getDataModel=()=>this.dataModel;this.markApplied=()=>{this.isMarkApplied=!0};this.unMarkApplied=()=>{this.isMarkApplied=!1};this.getMarkApplied=()=>this.isMarkApplied;this.isNull=()=>!1;this.sheetColumn=e,this.dataModel=r,this.similarity=o}},Ax=class extends Dx{constructor(){super({dataModel:new ta({description:"null",example:"null",key:"null",label:"null",type:"string",columnSize:1,optionMappingConfiguration:{layers:[],processingMode:"node",threshold:0}}),sheetColumn:new Vw({sheet:new ds({data:[[]],name:""}),columnKey:"",rows:[]}),similarity:new xi({similarity:0})});this.isNull=()=>!0}},uH=Dx;import{maxBy as oSe,orderBy as aSe}from"lodash";var n4=class{constructor({sheetColumnDataModelSimilarities:e}){this.getMostSimilarityBySheetColumn=e=>{let r=[];for(let o=0;o<this.sheetColumnDataModelSimilarities.length;o++)this.sheetColumnDataModelSimilarities[o].getSheetColumn()===e&&r.push(this.sheetColumnDataModelSimilarities[o]);return oSe(r,o=>o.getSimilarity().getValue())};this.getSortedSheetColumnDataModelSimilarity=e=>{let r=this.sheetColumnDataModelSimilarities.filter(o=>o.getSimilarity().getValue()>=e&&!o.getMarkApplied());return aSe(r,o=>o.getSimilarity().getValue(),"desc")};this.markDataModel=e=>{this.sheetColumnDataModelSimilarities.filter(r=>r.getDataModel()===e).forEach(r=>{r.markApplied()})};this.markSheetColumn=e=>{this.sheetColumnDataModelSimilarities.filter(r=>r.getSheetColumn()===e).forEach(r=>{r.markApplied()})};this.clearMark=()=>{this.sheetColumnDataModelSimilarities.forEach(e=>{e.unMarkApplied()})};this.getSimilaritySheetColumn=(e,r)=>this.sheetColumnDataModelSimilarities.find(o=>o.getSheetColumn()===e&&o.getDataModel()===r);this.sheetColumnDataModelSimilarities=e}},Nx=n4;var Fx=class{constructor({sheetColumnOption:e,dataModelOption:r,similarity:o}){this.getSimilarity=()=>this.similarity;this.getSheetColumnOption=()=>this.sheetColumnOption;this.getDataModelOption=()=>this.dataModelOption;this.isNull=()=>!1;this.hash=()=>{let e=this.getDataModelOption().dataModel.getKey(),r=this.getDataModelOption().option,o=this.getSheetColumnOption().sheetColumn.getColumnKey(),a=this.getSheetColumnOption().option;return`${e}-${r}-${o}-${a}`};this.sheetColumnOption=e,this.dataModelOption=r,this.similarity=o}},jv=class extends Fx{constructor(){super({sheetColumnOption:{option:"null",sheetColumn:new Vw({columnKey:"",rows:[],sheet:new ds({data:[[]],name:""})})},dataModelOption:{dataModel:new hi({description:"null",example:"null",key:"null",options:[],type:"single-select",label:"null",columnSize:1,isMultiSelection:!1,optionMappingConfiguration:{layers:[],processingMode:"node",threshold:0}}),option:""},similarity:new xi({similarity:0})});this.isNull=()=>!0}},cH=Fx;import{orderBy as nSe}from"lodash";var i4=class t{constructor({sheetColumnDataModelOptionSimilarities:e,mapSheetColumnDataModelOptions:r}){this.mapSheetColumnDataModelOptions=[];this.getSheetColumnDataModelOptionSimilarities=e=>{let r=this.sheetColumnDataModelOptionSimilarities.filter(o=>o.getSimilarity().getValue()>=e);return nSe(r,o=>o.getSimilarity().getValue(),"desc")};this.getSimilaritySheetColumnOptions=(e,r)=>this.getSheetColumnDataModelOptionSimilarities(r.getOptionMappingConfiguration().threshold).filter(o=>o.getSheetColumnOption().sheetColumn===e&&o.getDataModelOption().dataModel===r);this.getSimilaritiesDataModelOption=(e,r,o)=>this.sheetColumnDataModelOptionSimilarities.filter(a=>a.getSheetColumnOption().sheetColumn===e&&a.getDataModelOption().dataModel.getKey()===r.getKey()&&a.getDataModelOption().option===o);this.getSimilaritiesDataModelBySheetColumn=(e,r)=>this.sheetColumnDataModelOptionSimilarities.filter(o=>o.getSheetColumnOption().sheetColumn===e&&o.getDataModelOption().dataModel.getKey()===r.getKey());this.getRawSheetColumnDataModelOptionSimilarities=()=>this.sheetColumnDataModelOptionSimilarities;this.isAlreadyMapping=(e,r)=>!!this.mapSheetColumnDataModelOptions.some(o=>o.sheetColumn.equal(e)&&r===o.dataModel);this.sheetColumnDataModelOptionSimilarities=e,this.mapSheetColumnDataModelOptions=r}merge(e){let r=e.getRawSheetColumnDataModelOptionSimilarities(),o=e.mapSheetColumnDataModelOptions;for(let a=0;a<this.sheetColumnDataModelOptionSimilarities.length;++a)r.find(i=>{let s=i.getDataModelOption(),l=i.getSheetColumnOption(),u=this.sheetColumnDataModelOptionSimilarities[a].getSheetColumnOption(),c=this.sheetColumnDataModelOptionSimilarities[a].getDataModelOption();return l.option===u.option&&l.sheetColumn.getColumnKey()===u.sheetColumn.getColumnKey()&&s.option===c.option&&s.dataModel.getKey()===c.dataModel.getKey()})||r.push(this.sheetColumnDataModelOptionSimilarities[a]);for(let a=0;a<this.mapSheetColumnDataModelOptions.length;++a)o.push(this.mapSheetColumnDataModelOptions[a]);return new t({sheetColumnDataModelOptionSimilarities:r,mapSheetColumnDataModelOptions:o})}},oc=i4;var l4=class{constructor({calculateSimilarityResult:e,sheets:r,dataModels:o,options:a={}}){this.parseSheetOption=e=>["true","false"].includes(e)?JSON.parse(e):e;this.getSheetColumnDataModelSimilarityList=()=>{let e=this.calculateSimilarityResult.result.map(o=>o.suggestions.map(a=>{let n=this.dataModels.find(s=>{let l=s.getKey(),u=a.key;return this.options?.isAutoMapping===!0&&(l=$s(s.getKey()),u=$s(a.key)),!!(l===u||s.getAlternativeMatches().includes(a.key))}),i=[];for(let s=0;s<this.sheets.length;s++)this.sheets[s].getColumnsByKey(o.label,this.options?.isAutoMapping).forEach(u=>{i.push(u)});return i.map(s=>n&&s?new uH({dataModel:n,sheetColumn:s,similarity:new xi({similarity:a.value})}):new Ax)})),r=[];return s4(s4(s4(e))).forEach(o=>{let a=!1;r.forEach((n,i)=>{!n.isNull()&&n.getDataModel()===o.getDataModel()&&n.getSheetColumn()===o.getSheetColumn()&&(a=!0,o.getSimilarity()>n.getSimilarity()&&(r[i]=o))}),a||r.push(o)}),new Nx({sheetColumnDataModelSimilarities:r})};this.generateSheetColumnDataModelOptionSimilarity=({sheetOption:e,dataModel:r,similarities:o,sheetColumn:a,sheetColumnDataModelOptionSimilaritiesHashMap:n})=>{let i={option:this.parseSheetOption(e),sheetColumn:a},s=Object.keys(o);for(let l=0;l<s.length;++l){let u=s[l],c=o[u],d=[];if(r&&i.sheetColumn&&r.isDropdown()){let f=[];if(r.getType()==="boolean")f=[u];else{let p=r.getOptions();u===""&&c>0&&f.push("");for(let m=0;m<p.length;++m){let h=p[m];h.label===u&&f.push(h.value)}}for(let p=0;p<f.length;++p){let m=f[p];m?.length>0||m.length===0&&c>0?d.push(new cH({dataModelOption:{dataModel:r,option:m},similarity:new xi({similarity:c}),sheetColumnOption:i})):d.push(new jv)}}else d.push(new jv);for(let f=0;f<d.length;++f){let p=!1,m=d[f];if(!m.isNull()){let h=n[m.hash()];h&&(p=!0,m.getSimilarity().getValue()>h.getSimilarity().getValue()&&(n[m.hash()]=m))}p||(n[m.hash()]=m)}}};this.getSheetColumnDataModelOptionSimilarityList=e=>{let r={},o=this.calculateSimilarityResult,a=[];for(let s=0;s<o.result.length;++s){let l=o.result[s],u=l.optionMappings,c;if(e)c=e;else for(let f=0;f<this.sheets.length;f++){let p=this.sheets[f].getColumn(l.label,this.options?.isAutoMapping);if(p){c=p;break}}let d=Object.keys(u);for(let f=0;f<d.length;++f){let p=d[f],m=u[p],h=this.dataModels.find(b=>{let w=b.getKey(),y=p;return this.options?.isAutoMapping===!0&&(w=$s(w),y=$s(y)),w===y});h&&c&&a.push({sheetColumn:c,dataModel:h});let g=Object.keys(m);for(let b=0;b<g.length;++b){let w=g[b],y=m[w];this.generateSheetColumnDataModelOptionSimilarity({sheetOption:w,similarities:y,dataModel:h,sheetColumnDataModelOptionSimilaritiesHashMap:r,sheetColumn:c})}}}let n=[],i=Object.keys(r);for(let s=0;s<i.length;++s){let l=i[s];r[l].isNull()||n.push(r[l])}return new oc({sheetColumnDataModelOptionSimilarities:n,mapSheetColumnDataModelOptions:a})};this.calculateSimilarityResult=e,this.sheets=r,this.dataModels=o,this.options=a}static{this.mergeCalculateSimilarityResultOptions=(e,r)=>{let o={result:[...e.result]};for(let a=0;a<r.result.length;++a){let n=r.result[a],i;for(let s=0;s<o.result.length;++s)if(n.label===o.result[s].label){i=o.result[s];break}if(i){let s=Object.keys(i.optionMappings);for(let u=0;u<s.length;++u){let c=s[u];i.optionMappings[c]={...i.optionMappings[c],...n.optionMappings[c]??{}}}let l=Object.keys(n.optionMappings);for(let u=0;u<l.length;++u){let c=l[u];i.optionMappings[c]={...i.optionMappings[c]??{},...n.optionMappings[c]}}}}return o}}},yi=l4;var Bx=class{constructor(e,r){this.isUploadSheetData=e=>e.some(r=>r.getOptionMappingConfiguration().processingMode==="node");this.matchColumns=async(e,r,o)=>{let{processingMode:a,layers:n,threshold:i}=r;return a==="node"?this.backendMatchingRepository.matchColumns(e,{layers:n,threshold:i},o):this.browserMatchingRepository.matchColumns(e,{layers:n,threshold:i},o)};this.matchInitialOptions=async(e,r,o,a,n)=>{let i=e.getAllSheets(),s=e.getAllDataModels(),l=r.filter(m=>{let h=m.matchedDataModel?.dataModel;return!!h&&h.isDropdown()}),u=await Promise.all(l.map(async m=>{let h=m.matchedDataModel.dataModel,g={dataModel:h,sheetColumn:m.sheetColumn,sheets:i,dataModels:s,licenseKey:a,sessionId:n},b;return h.getOptionMappingConfiguration().processingMode==="node"?b=this.backendMatchingRepository:b=this.browserMatchingRepository,(await b.matchOption({...g,sheetColumn:g.sheetColumn})).calculateSimilarityResult})),d={result:[...[...o.result].map(m=>({...m,optionMappings:{}}))]};for(let m=0;m<u.length;++m)d=yi.mergeCalculateSimilarityResultOptions(d,u[m]);let p=new yi({calculateSimilarityResult:d,sheets:i,dataModels:s}).getSheetColumnDataModelOptionSimilarityList();return{calculateSimilarityResult:d,sheetColumnDataModelOptionSimilarityList:p}};this.matchOption=async({dataModel:e,sheetColumn:r,sheets:o,dataModels:a,licenseKey:n,processMode:i,sessionId:s})=>{let l={dataModel:e,sheetColumn:r,sheets:o,dataModels:a,licenseKey:n,sessionId:s};return i==="node"?this.backendMatchingRepository.matchOption(l):this.browserMatchingRepository.matchOption(l)};this.uploadData=async(e,r,o,a)=>o.some(n=>n.getOptionMappingConfiguration().processingMode==="node")?this.backendMatchingRepository.prepareData(e,r,a):Promise.resolve();this.clearData=(e,r)=>{this.isUploadSheetData(r)&&this.backendMatchingRepository.clearData(e)};this.complete=(e,r)=>{this.isUploadSheetData(r)&&this.backendMatchingRepository.complete(e)};this.browserMatchingRepository=e,this.backendMatchingRepository=r}};import{isNil as sSe}from"lodash";import{isNil as dH}from"lodash";var fH=/[,;|](?=['"`])/g,iSe=/[;]|[|]|,[ a-zA-Z]/g,Xs=t=>dH(t)?!1:`${t}`.match(fH)?!0:!!`${t}`.match(iSe),Zs=t=>{if(dH(t))return[];let e=`${t}`.split(fH);if(e.length===1){e=[];let r=`${t}`.split(/[;]|[|]|, /g);for(let o=0;o<r.length;o++){let a=r[o];/,[a-zA-Z]/.test(a)?e=e.concat(a.split(",")):e.push(a)}}return e.map(r=>r.replace(/[\s\-_&+'"`]/g," ").trim())};var Wv=class t{constructor({spreadSheetList:e,dataModels:r,licenseKey:o,applyExcludeFromAutoMatching:a=!0}){this.getColumns=()=>{let e=this.dataModels,r=[];for(let o=0;o<e.length;o++){if(this.applyExcludeFromAutoMatching&&e[o].isExcludedFromAutoMatching())continue;let a=t.mapDataModelToColumn(e[o]);a&&r.push(a)}return r};this.getInputHeaderRow=()=>{let e=[];return this.allSheets.forEach(r=>{r.getColumns().forEach(a=>{e.push(a.getColumnKey())})}),e};this.getAllSheets=()=>this.allSheets;this.getAllDataModels=()=>this.dataModels;this.getLicenseKey=()=>this.licenseKey;this.spreadSheetList=e,this.dataModels=r,this.allSheets=this.spreadSheetList.getSelectedSheets(),this.licenseKey=o,this.applyExcludeFromAutoMatching=a}static{this.getDropdownOptions=e=>e.isCategoryType()?e.getOptions().map(o=>({label:o.label,value:o.value,alternativeMatches:o.alternativeMatches})):null}static{this.getOptionMappingConfiguration=e=>{if(e.isDropdown())return e.getOptionMappingConfiguration()}}static{this.getType=e=>{switch(e.getType()){case"boolean":return"boolean";case"single-select":case"country_code_alpha_2":case"country_code_alpha_3":case"currency_code":return"category";case"int":case"float":return"number";default:return"string"}}}static{this.mapDataModelToColumn=e=>({key:e.getKey(),label:e.getLabel(),description:e.getDescription(),isMultiple:e.getIsMultiSelection(),dropdownOptions:this.getDropdownOptions(e),columnType:this.getType(e).toUpperCase(),alternativeMatches:e.getAlternativeMatches(),optionMappingConfiguration:this.getOptionMappingConfiguration(e)})}static{this.parseValue=e=>sSe(e)?"":`${e}`}static{this.getInputJsonBySheetColumn=(e,r)=>{let o=[],a=e.getUniqueRows(),n=a.length,i={},s=e.getColumnKey(),l=0;for(let d=0;d<n;d++){let f=t.parseValue(a[d]);Xs(f)&&r.getIsMultiSelection()?Zs(f).forEach(h=>{i[s]?i[s].push(h):i[s]=[h]}):(o[l]?o[l][s]=f:o[l]={[s]:f},l++)}let u=Object.keys(i),c=o.length;for(let d=0;d<u.length;d++){let f=u[d];i[f].forEach((m,h)=>{let g=c+h;o[g]?o[g][f]=m:o[g]={[f]:m}})}return[o]}}},zv=Wv;var u4=class{constructor(){this.matchColumns=async(e,r,o)=>{let a=e.getAllSheets(),n=e.getAllDataModels(),i=await this.matchColumnsTask(e,r,o),l=new yi({calculateSimilarityResult:i[0],sheets:a,dataModels:n}).getSheetColumnDataModelSimilarityList();return{calculateSimilarityResult:i[0],sheetColumnDataModelSimilarityList:l}};this.matchOption=async({dataModel:e,sheetColumn:r,sheets:o,dataModels:a,licenseKey:n,sessionId:i})=>{let s;try{s=await this.matchOptionTask({dataModel:e,sheetColumn:r,sheets:o,licenseKey:n,sessionId:i})}catch{return{calculateSimilarityResult:{result:[]},sheetColumnDataModelOptionSimilarityList:new oc({sheetColumnDataModelOptionSimilarities:[],mapSheetColumnDataModelOptions:[]})}}let l=s[0];this.matchBoolean([l],o,a);let c=new yi({calculateSimilarityResult:l,sheets:o,dataModels:a}).getSheetColumnDataModelOptionSimilarityList(r);return{calculateSimilarityResult:l,sheetColumnDataModelOptionSimilarityList:c}};this.matchBoolean=(e,r,o)=>{e.forEach((a,n)=>{a.result.forEach(i=>{let l=r[n].getColumn(i.label);l&&o.filter(c=>c.getType()==="boolean").forEach(c=>{let d=l.getUniqueRows();for(let f=0;f<d.length;f++){let p=d[f],m=null,h=`${p}`.toLowerCase().trim();if(Vu().includes(h)?m={true:1}:$u().includes(h)&&(m={false:1}),m){let g=i.optionMappings[c.getKey()]??{};i.optionMappings[c.getKey()]={...g,[`${p}`]:m}}}})})})}}},Hx=u4;import{flatten as lSe}from"lodash";var c4=class{constructor(e,r){this.fileName="";this.parseData=e=>{let r=[],o=0,a=lSe(e.map(n=>n.getColumns()));r[0]=[],a.forEach((n,i)=>{r[0][i]=n.getColumnKey(),n.getUniqueRows().length>o&&(o=n.getUniqueRows().length)});for(let n=0;n<o;++n){r[n+1]=[];for(let i=0;i<a.length;++i){let s=a[i].getUniqueRows()[n]??"";r[n+1][i]=s}}return r};this.initialize=()=>{this.fileName=""};this.upload=async(e,r,o)=>{this.initialize();let a=this.parseData(e),n=await this.uploadInputSheetAPI.createFile(r,o);return this.fileName=n.file_name,this.inputSheetClearer.add(this.fileName),this.uploadInputSheetAPI.uploadData(n.signed_url,a,o)};this.getFileName=()=>this.fileName;this.clearData=e=>{this.initialize(),this.inputSheetClearer.clear(e)};this.complete=e=>{let r=this.fileName;r&&(this.initialize(),this.inputSheetClearer.remove(r),this.uploadInputSheetAPI.clearFile(r,e).catch(()=>{}))};this.uploadInputSheetAPI=e,this.inputSheetClearer=r}},pH=c4;import uSe from"axios";var zo=class{constructor(e,r={}){this.httpClient=uSe.create(r),this.sendApiKey=e.sendApiKey,this.setupInterceptors()}setupInterceptors(){this.httpClient.interceptors.request.use(e=>e,e=>Promise.reject(e)),this.httpClient.interceptors.response.use(e=>e,e=>Promise.reject(e))}getHttpClient(){return this.httpClient}async get(e,r,o){return(await this.httpClient.request({method:"GET",url:e,params:r,...o})).data}async post(e,r,o={}){return(await this.httpClient.request({method:"POST",url:e,data:r,...o})).data}async put(e,r,o={}){return(await this.httpClient.request({method:"PUT",url:e,data:r,...o})).data}async patch(e,r,o={}){return(await this.httpClient.request({method:"PATCH",url:e,data:r,...o})).data}async delete(e,r={}){return(await this.httpClient.request({method:"DELETE",url:e,...r})).data}},ac=zo;var vt={csv:"text/csv",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xls:"application/vnd.ms-excel",xml:"text/xml",json:"application/json",tsv_text:"text/tab-separated-values",tsv:".tsv",pdf:"application/pdf",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.12",psv:"text/pipe-separated-values",ods:"application/vnd.oasis.opendocument.spreadsheet",numbers:"application/vnd.apple.numbers",numbers_sff:"application/x-iwork-numbers-sffnumbers"},mH=[vt.csv,vt.tsv,vt.tsv_text,vt.psv,vt.json];var d4=class t{constructor(){this.framework="react";this.versionNumber="4.8.0";this.uploadedFiles={};this.frameworkVersion="1.0.0";this.eventStack={};this.reviewEntriesLog={};this.parseSession=!1;this.startSession={};this.reloadSession={};this.verifySession={};this.getMeta=()=>({version:this.getVersionNumber(),framework:this.getFrameWork(),origin:this.getOrigin(),framework_version:this.getFrameworkVersion()});this.setParseSession=()=>{this.parseSession=!0};this.getParseSession=()=>this.parseSession;this.clearParseSession=()=>{this.parseSession=!1};this.setStartSession=e=>{this.startSession[e]=!0};this.getStartSession=e=>this.startSession[e];this.clearStartSession=e=>{this.startSession[e]=void 0};this.setReloadSession=e=>{this.reloadSession[e]=!0};this.getReloadSession=e=>this.reloadSession[e];this.clearReloadSession=e=>{this.reloadSession[e]=void 0};this.setVerifySession=e=>{this.verifySession[e]=!0};this.getVerifySession=e=>this.verifySession[e];this.clearVerifySession=e=>{this.verifySession[e]=void 0}}static{this.eventMapping={"/":"upload","/select-sheet":"sheet_selection","/select-header":"header_selection","/match-column":"match_columns","/review-entries":"review_entries","/join-column":"join_sheets"}}static getInstance(){return t.instance||(t.instance=new t),t.instance}setFrameWork(e){this.framework=e}getFrameWork(){return this.framework}setOrigin(e){this.origin=e}getOrigin(){return this.origin??""}setVersionNumber(e){this.versionNumber=e}getVersionNumber(){return this.versionNumber}setFrameworkVersion(e){this.frameworkVersion=e}getFrameworkVersion(){return this.frameworkVersion}pushEventStack(e,r){this.eventStack[e]||(this.eventStack[e]=[]);let o=this.eventStack[e][this.eventStack[e].length-1];r.action==="end"&&(o?.eventType===`${t.eventMapping[r.step]||r.step}_end`||o?.eventType!==`${t.eventMapping[r.step]||r.step}_start`)||this.eventStack[e].length>0&&r.action==="start"&&o?.eventType.includes("_start")&&o?.eventType!==`${t.eventMapping[r.step]||r.step}_start`||(this.eventStack[e].push({eventType:`${t.eventMapping[r.step]||r.step}_${r.action}`,timestamp:new Date().toISOString()}),this.eventStack[e].length>1&&this.eventStack[e][this.eventStack[e].length-1].eventType===this.eventStack[e][this.eventStack[e].length-2].eventType&&this.eventStack[e].splice(this.eventStack[e].length-2,1))}removeEventStack(e,r){this.eventStack[e]=this.eventStack[e].filter(o=>o.eventType!==r)}getEventStack(e){return this.eventStack[e]}clearEventStack(e){this.eventStack[e]=[]}setUploadedFiles(e,r){this.uploadedFiles[e]||this.clearUploadedFilesStack(e),r.forEach(o=>this.uploadedFiles[e].push({fileSize:o.fileSize,fileType:this.mapSupportedType(o.type)}))}getUploadFiles(e){return this.uploadedFiles?.[e]||[]}clearUploadedFilesStack(e){this.uploadedFiles[e]=[]}setReviewEntriesLog(e,r){this.reviewEntriesLog[e]=r}getReviewEntriesLog(e){return this.reviewEntriesLog?.[e]||{}}setTotalCleanings(e,r){this.reviewEntriesLog[e].total_cleanings=r}clearReviewEntriesLog(e){this.reviewEntriesLog[e]={total_rows:0,total_error_rows:0,total_error_cells:0,total_columns:0,total_cleanings:0}}mapSupportedType(e){for(let[r,o]of Object.entries(vt))if(e===o)return r;return e}},Ve=d4;var f4=class extends zo{constructor(){super(...arguments);this.createFile=async(r,o)=>this.post("/file/directory",{},{headers:{apikey:this.sendApiKey?_r:void 0,Authorization:r,originRequest:Ve.getInstance().getOrigin()},signal:o.signal});this.uploadData=async(r,o,a)=>this.put(r,o,{baseURL:"",signal:a.signal});this.clearFile=async(r,o)=>this.delete(`/file?file_name=${r}`,{headers:{apikey:this.sendApiKey?_r:void 0,Authorization:o,originRequest:Ve.getInstance().getOrigin()}})}},Vx=f4;var p4=class{constructor(e){this.fileNames=[];this.remove=e=>{this.fileNames=this.fileNames.filter(r=>r!==e)};this.add=e=>{this.fileNames.push(e)};this.clear=async e=>{let r=[...this.fileNames];for(let o=0;o<r.length;++o){let a=r[o];this.remove(a),await this.uploadInputSheetAPI.clearFile(a,e).catch(()=>{})}};this.uploadInputSheetAPI=e}},hH=p4;var m4=class extends Hx{constructor(r,o,a={}){super();this.prepareData=async(r,o,a)=>{await this.uploadInputSheetRepository.upload(r,o,a)};this.clearData=r=>{this.uploadInputSheetRepository.clearData(r)};this.complete=r=>{this.uploadInputSheetRepository.complete(r)};this.matchColumnsTask=(r,o,a)=>{let n=r.getColumns().map(l=>({key:l.key,label:l.label,alternativeMatches:l.alternativeMatches})),i=r.getLicenseKey(),s=r.getInputHeaderRow();return this.nodeEngine.matchColumns(s,n,i,o,a)};this.matchOptionTask=({dataModel:r,sheets:o,sheetColumn:a,licenseKey:n,sessionId:i})=>{let s=zv.mapDataModelToColumn(r),l=[];for(let c=0;c<o.length;c++){let d=o[c];for(let f=0;f<d.getColumns().length;f++){let p=d.getColumns()[f];l.push(p)}}let u=l.findIndex(c=>c===a);return this.nodeEngine.matchOption(this.uploadInputSheetRepository.getFileName(),[{column:{dropdownOptions:s.dropdownOptions,isMultiSelect:s.isMultiple,key:s.key,label:s.label,optionMappingConfiguration:s.optionMappingConfiguration},column_index:u}],n,i)};this.nodeEngine=r;let n=new Vx(o,a),i=new hH(n);this.uploadInputSheetRepository=new pH(n,i)}},gH=m4;import{flatten as pSe}from"lodash";import{createEndpoint as cSe,releaseProxy as dSe,wrap as fSe}from"comlink";var Ci=({workerFile:t,hostWorkerUrl:e})=>{let r=null,o=null;return{init:async()=>{if(!r||!o)try{e?r=r=new Worker(e):r=t(),r&&await new Promise((s,l)=>{if(!r)return l();r.addEventListener("error",u=>{u.preventDefault(),r?.terminate(),o?.[cSe](),o=null,l(new Error("has something wrong with worker"))}),o=fSe(r),o.check().then(s).catch(l)})}catch{}},clear:()=>{o&&(o?.[dSe](),r?.terminate(),o=null)},getRemote:()=>o}};var Si={IMPORT:"importWorkerBundle.js",HOOKS:"hooks.js",MATCHING:"matchingValues.js",ML:"ml.js",SEARCH_AND_REPLACE:"searchAndReplace.js",JAVASCRIPT:"javascript.js"};var cn=(...t)=>t.map((e,r)=>r===0?e.replace(/\/+$/,""):e.replace(/^\/+|\/+$/g,"")).join("/");var h4=({workersBaseUrl:t})=>{let e=t?cn(t,Si.ML):"",{init:r,getRemote:o,clear:a}=Ci({hostWorkerUrl:e,workerFile:()=>new Worker(new URL("workers/mapping/index.js",import.meta.url),{type:"module"})});return{init:r,clear:a,getOptionMappings:(...s)=>{let l=o();return l?l.getOptionMappings(...s):rA(...s)},getColumnMappings:(...s)=>{let l=o();return l?l.getColumnMappings(...s):oA(...s)}}};var $x=class{constructor({workersBaseUrl:e}){this.getColumnMappings=async(e,r,o)=>{let a=h4({workersBaseUrl:this.workersBaseUrl});return await a.init(),a.getColumnMappings(e,r,o).then(n=>(a.clear(),n)).catch(n=>(a.clear(),Promise.reject(n)))};this.getOptionMappings=async(e,r)=>{let o=h4({workersBaseUrl:this.workersBaseUrl});return await o.init(),o.getOptionMappings(e,r).then(a=>(o.clear(),a)).catch(a=>(o.clear(),Promise.reject(a)))};this.workersBaseUrl=e}};var Ux=class{constructor({workersBaseUrl:e}){this.matchColumns=async(e,r,o)=>{let a=await this.mappingEngine.getColumnMappings(e,r.map(n=>`${n}`),o);return this.parseColumnMappingResult(pSe(a))};this.matchOption=async(e,r)=>Promise.all(r.map(o=>this.matchOptionItem(e,o)));this.matchOptionItem=async(e,r)=>new Promise((o,a)=>{setTimeout(()=>{this.mappingEngine.getOptionMappings(e,r).then(n=>{let i={result:[{optionMappings:{[n.tdmColumnKey]:n.suggestions},label:n.inputColumn,suggestions:[{key:n.tdmColumnKey,value:1,isSameWord:!0}]}]};o(i)}).catch(n=>{a(n)})},100)});this.parseColumnMappingResult=e=>{let r=[];for(let o=0;o<e.length;o++){let a=e[o],n=[];for(let i=0;i<a.columnSuggestions.length;i++){let s=a.columnSuggestions[i];n.push({key:s.key,value:s.percentage})}r.push({label:a.inputColumnKey,suggestions:n,optionMappings:{}})}return[{result:r}]};this.mappingEngine=new $x({workersBaseUrl:e})}};import{flatten as mSe}from"lodash";var jx=class extends zo{constructor(){super(...arguments);this.matchColumns=async(r,o,a,n,i)=>{let s={apikey:this.sendApiKey?_r:void 0,authorization:a},l=await this.post("/execute/column",{tdmColumns:o,inputColumns:r,options:{columnMappingConfiguration:{layers:n.layers,threshold:n.threshold},product:"importer"},sessionId:i},{headers:s});return this.parseColumnMappingResult(l)};this.matchOption=async(r,o,a,n)=>{let i={apikey:this.sendApiKey?_r:void 0,authorization:a},s=await Promise.all(o.map(l=>this.post("/execute/option",{tdmColumn:{key:l.column.key,label:l.column.label,isMultiSelect:l.column.isMultiSelect,dropdownOptions:l.column.dropdownOptions},options:{product:"importer",fileName:r,columnIndex:l.column_index,headerRowIndex:0,optionMappingConfiguration:{layers:l.column.optionMappingConfiguration?.layers,threshold:l.column.optionMappingConfiguration?.threshold}},sessionId:n},{headers:i})));return this.parseOptionMappingResult(mSe(s))};this.parseColumnMappingResult=r=>{let o=[];for(let a=0;a<r.length;a++){let n=r[a],i=[],s=Object.keys(n.suggestions);for(let l=0;l<s.length;l++){let u=s[l],c=n.suggestions[u];i.push({key:u,value:c})}o.push({label:n.inputColumn,suggestions:i,optionMappings:{}})}return[{result:o}]}}parseOptionMappingResult(r){let o=[];for(let a=0;a<r.length;a++){let n=r[a];o.push({optionMappings:{[n.tdmColumnKey]:n.suggestions},label:n.inputColumn,suggestions:[{key:n.tdmColumnKey,value:1,isSameWord:!0}]})}return[{result:o}]}};var g4=class extends Hx{constructor(r){super();this.matchColumnsTask=(r,o)=>{let a=r.getColumns().map(i=>({...i,dropdownOptions:[]})),n=r.getInputHeaderRow();return this.browserEngine.matchColumns(a,n,o)};this.matchOptionTask=({dataModel:r,sheetColumn:o})=>{let a=zv.mapDataModelToColumn(r),n=zv.getInputJsonBySheetColumn(o,r);return this.browserEngine.matchOption(a,n)};this.browserEngine=r}},vH=g4;import{jsx as wSe}from"react/jsx-runtime";var v4=vSe({executing:!0,setExecuting:()=>{},matchColumnsRendered:!1,setMatchColumnsRendered:()=>{},abort:()=>{}}),bSe=({children:t})=>{let[e,r]=wH(!0),[o,a]=wH(!1),{baseUrl:n,isSelfHosted:i,baseMappingUrl:s,workersBaseUrl:l}=be(),u=gSe(new AbortController),c=bH(()=>new Ux({workersBaseUrl:l??""}),[l]),d=bH(()=>{let p=new vH(c),m=new jx({sendApiKey:!i},{baseURL:s}),h=new gH(m,{sendApiKey:!i},{baseURL:n});return new Bx(p,h)},[n,i,c,s]),f=hSe(()=>{u.current.abort(),u.current=new AbortController},[u]);return wSe(v4.Provider,{value:{matchingStrategy:d,executing:e,setExecuting:r,matchColumnsRendered:o,setMatchColumnsRendered:a,abortController:u,abort:f},children:t})},xH=bSe;import"simplebar/dist/simplebar.min.css";var b4=document.createElement("style");b4.type="text/css";b4.appendChild(document.createTextNode(`.nuvo-tailwind .\\!container{width:100%!important}.nuvo-tailwind .container{width:100%}@media (min-width:375px){.nuvo-tailwind .\\!container{max-width:375px!important}.nuvo-tailwind .container{max-width:375px}}@media (min-width:412px){.nuvo-tailwind .\\!container{max-width:412px!important}.nuvo-tailwind .container{max-width:412px}}@media (min-width:468px){.nuvo-tailwind .\\!container{max-width:468px!important}.nuvo-tailwind .container{max-width:468px}}@media (min-width:640px){.nuvo-tailwind .\\!container{max-width:640px!important}.nuvo-tailwind .container{max-width:640px}}@media (min-width:740px){.nuvo-tailwind .\\!container{max-width:740px!important}.nuvo-tailwind .container{max-width:740px}}@media (min-width:768px){.nuvo-tailwind .\\!container{max-width:768px!important}.nuvo-tailwind .container{max-width:768px}}@media (min-width:820px){.nuvo-tailwind .\\!container{max-width:820px!important}.nuvo-tailwind .container{max-width:820px}}@media (min-width:885px){.nuvo-tailwind .\\!container{max-width:885px!important}.nuvo-tailwind .container{max-width:885px}}@media (min-width:990px){.nuvo-tailwind .\\!container{max-width:990px!important}.nuvo-tailwind .container{max-width:990px}}@media (min-width:1024px){.nuvo-tailwind .\\!container{max-width:1024px!important}.nuvo-tailwind .container{max-width:1024px}}@media (min-width:1190px){.nuvo-tailwind .\\!container{max-width:1190px!important}.nuvo-tailwind .container{max-width:1190px}}@media (min-width:1280px){.nuvo-tailwind .\\!container{max-width:1280px!important}.nuvo-tailwind .container{max-width:1280px}}@media (min-width:1440px){.nuvo-tailwind .\\!container{max-width:1440px!important}.nuvo-tailwind .container{max-width:1440px}}@media (min-width:1441px){.nuvo-tailwind .\\!container{max-width:1441px!important}.nuvo-tailwind .container{max-width:1441px}}@media (min-width:1536px){.nuvo-tailwind .\\!container{max-width:1536px!important}.nuvo-tailwind .container{max-width:1536px}}@media (min-width:1920px){.nuvo-tailwind .\\!container{max-width:1920px!important}.nuvo-tailwind .container{max-width:1920px}}.nuvo-tailwind *,.nuvo-tailwind :after,.nuvo-tailwind :before{border:0 solid #e5e7eb;box-sizing:border-box}
108
+ `),disabledClickOutside:c,isShowCloseIcon:d,overlayStyled:v({"&&":B.getDialogConfirmTheme().overlay,"&&&":V?.overlay}),bodyStyled:v({"&&":B.getDialogConfirmTheme().root,"&&&":V?.root}),closeIconStyled:B.getDialogConfirmTheme().closeIcon,closeButtonClassName:v({"&&& line":V?.closeIcon}),children:nH("div",{className:"w-full px-7 pb-8 pt-3",children:[za("div",{className:"flex justify-center pb-4",children:le()}),t&&za("p",{className:x("xss:pb-2 text-color-primary text-neutral-gray pb-1 text-center text-xl font-semibold",v({"&&":B.getDialogConfirmTheme().title,"&&&":V?.title}),L),dangerouslySetInnerHTML:{__html:t}}),e&&za("p",{className:x("xss:pb-7 text-color-secondary pb-2 text-center text-sm font-normal",v({"&&":B.getDialogConfirmTheme().description,"&&&":V?.description}),b),dangerouslySetInnerHTML:{__html:e}}),g||null,za("div",{className:x("xss:flex mt-2 flex-row justify-center sm:mt-0",w),children:za(ct,{isShow:m&&j,message:za(uo,{className:x("max-w-240 h-full w-full text-center text-xs",k),variant:T,children:h}),flip:!0,arrowClassName:"#545454",direction:"top",offset:{mainAxis:12},isShowArrow:!0,className:me,render:({setReferenceElement:Z})=>{let ie={"data-testid":re.global.confirmNegative,className:x("xss:mt-0 mt-3",{"w-full":!l},y,E?ae:"",E?"text-gray-260":""),type:"submit",loading:K,onClick:Q,ref:R==="negative"?Z:void 0,...R==="negative"?ne():{}},J={"data-testid":re.global.confirmPositive,...R==="positive"?ne():{},className:x(`xss:mt-0 xss:mr-4 mt-3 mr-0 ${p&&ae}`,C),type:"button",variant:"secondary",onClick:()=>{p||(O(!1),a&&a())}},ue=o||"Ok";return nH(XCe,{children:[za("span",{ref:R==="positive"?Z:void 0,className:x(I),children:l&&za(He,{...J,children:za("div",{className:x("leading-6",p&&"text-gray-260"),children:r||A("txt_cancel")})})}),f!=="warn"?za(He,{...ie,children:ue}):D?za(He,{...ie,children:ue}):null]})}})})]})})},iH=YCe;import{jsx as tSe,jsxs as rSe}from"react/jsx-runtime";var H5=ZCe({}),eSe=({children:t})=>{let[e,r]=sH(!1),[o,a]=sH(),n=JCe(i=>{a(i),r(!0)},[]);return QCe(()=>{e||a(void 0)},[e]),rSe(H5.Provider,{value:{isOpen:e,setOpenModal:r,showConfirmModal:n,type:o?.type,title:o?.title},children:[t,o&&tSe(iH,{title:o.title,description:o.description,textPositiveButton:o.textPositiveButton,textNegativeButton:o.textNegativeButton,onClickPositiveButton:o.onClickPositiveButton,onClickNegativeButton:o.onClickNegativeButton,onClickNegativeButtonPromise:o.onClickNegativeButtonPromise,isShowPositiveButton:o.isShowPositiveButton,isShowIcon:o.isShowIcon,disabledClickOutside:o.disabledClickOutside,isShowCloseIcon:o.isShowCloseIcon,type:o.type,disabledPositiveButton:o.disabledPositiveButton,disabledNegativeButton:o.disabledNegativeButton,isPopper:o.isPopper,textPopper:o.textPopper,content:o.content,descriptionClassName:o.descriptionClassName,footerClassName:o.footerClassName,negativeButtonClassName:o.negativeButtonClassName,positiveButtonClassName:o.positiveButtonClassName,positiveButtonWrapperClassName:o.positiveButtonWrapperClassName,roundedIcon:o.roundedIcon,baseModalClassName:o.baseModalClassName,customIcon:o.customIcon,titleClassName:o.titleClassName,onCloseModal:o.onCloseModal,popperPosition:o.popperPosition,messageVariant:o.messageVariant,messageClassName:o.messageClassName})]})},lH=eSe;import{useCallback as hSe,useMemo as bH,useRef as gSe,useState as wH}from"react";import{createContext as vSe}from"react";import{flatten as s4}from"lodash";var a4=class{constructor({similarity:e}){this.getValue=()=>this.similarity;this.similarity=e}},xi=a4;var Dx=class{constructor({sheetColumn:e,dataModel:r,similarity:o}){this.isMarkApplied=!1;this.getSimilarity=()=>this.similarity;this.getSheetColumn=()=>this.sheetColumn;this.getDataModel=()=>this.dataModel;this.markApplied=()=>{this.isMarkApplied=!0};this.unMarkApplied=()=>{this.isMarkApplied=!1};this.getMarkApplied=()=>this.isMarkApplied;this.isNull=()=>!1;this.sheetColumn=e,this.dataModel=r,this.similarity=o}},Ax=class extends Dx{constructor(){super({dataModel:new ta({description:"null",example:"null",key:"null",label:"null",type:"string",columnSize:1,optionMappingConfiguration:{layers:[],processingMode:"node",threshold:0}}),sheetColumn:new Vw({sheet:new ds({data:[[]],name:""}),columnKey:"",rows:[]}),similarity:new xi({similarity:0})});this.isNull=()=>!0}},uH=Dx;import{maxBy as oSe,orderBy as aSe}from"lodash";var n4=class{constructor({sheetColumnDataModelSimilarities:e}){this.getMostSimilarityBySheetColumn=e=>{let r=[];for(let o=0;o<this.sheetColumnDataModelSimilarities.length;o++)this.sheetColumnDataModelSimilarities[o].getSheetColumn()===e&&r.push(this.sheetColumnDataModelSimilarities[o]);return oSe(r,o=>o.getSimilarity().getValue())};this.getSortedSheetColumnDataModelSimilarity=e=>{let r=this.sheetColumnDataModelSimilarities.filter(o=>o.getSimilarity().getValue()>=e&&!o.getMarkApplied());return aSe(r,o=>o.getSimilarity().getValue(),"desc")};this.markDataModel=e=>{this.sheetColumnDataModelSimilarities.filter(r=>r.getDataModel()===e).forEach(r=>{r.markApplied()})};this.markSheetColumn=e=>{this.sheetColumnDataModelSimilarities.filter(r=>r.getSheetColumn()===e).forEach(r=>{r.markApplied()})};this.clearMark=()=>{this.sheetColumnDataModelSimilarities.forEach(e=>{e.unMarkApplied()})};this.getSimilaritySheetColumn=(e,r)=>this.sheetColumnDataModelSimilarities.find(o=>o.getSheetColumn()===e&&o.getDataModel()===r);this.sheetColumnDataModelSimilarities=e}},Nx=n4;var Fx=class{constructor({sheetColumnOption:e,dataModelOption:r,similarity:o}){this.getSimilarity=()=>this.similarity;this.getSheetColumnOption=()=>this.sheetColumnOption;this.getDataModelOption=()=>this.dataModelOption;this.isNull=()=>!1;this.hash=()=>{let e=this.getDataModelOption().dataModel.getKey(),r=this.getDataModelOption().option,o=this.getSheetColumnOption().sheetColumn.getColumnKey(),a=this.getSheetColumnOption().option;return`${e}-${r}-${o}-${a}`};this.sheetColumnOption=e,this.dataModelOption=r,this.similarity=o}},jv=class extends Fx{constructor(){super({sheetColumnOption:{option:"null",sheetColumn:new Vw({columnKey:"",rows:[],sheet:new ds({data:[[]],name:""})})},dataModelOption:{dataModel:new hi({description:"null",example:"null",key:"null",options:[],type:"single-select",label:"null",columnSize:1,isMultiSelection:!1,optionMappingConfiguration:{layers:[],processingMode:"node",threshold:0}}),option:""},similarity:new xi({similarity:0})});this.isNull=()=>!0}},cH=Fx;import{orderBy as nSe}from"lodash";var i4=class t{constructor({sheetColumnDataModelOptionSimilarities:e,mapSheetColumnDataModelOptions:r}){this.mapSheetColumnDataModelOptions=[];this.getSheetColumnDataModelOptionSimilarities=e=>{let r=this.sheetColumnDataModelOptionSimilarities.filter(o=>o.getSimilarity().getValue()>=e);return nSe(r,o=>o.getSimilarity().getValue(),"desc")};this.getSimilaritySheetColumnOptions=(e,r)=>this.getSheetColumnDataModelOptionSimilarities(r.getOptionMappingConfiguration().threshold).filter(o=>o.getSheetColumnOption().sheetColumn===e&&o.getDataModelOption().dataModel===r);this.getSimilaritiesDataModelOption=(e,r,o)=>this.sheetColumnDataModelOptionSimilarities.filter(a=>a.getSheetColumnOption().sheetColumn===e&&a.getDataModelOption().dataModel.getKey()===r.getKey()&&a.getDataModelOption().option===o);this.getSimilaritiesDataModelBySheetColumn=(e,r)=>this.sheetColumnDataModelOptionSimilarities.filter(o=>o.getSheetColumnOption().sheetColumn===e&&o.getDataModelOption().dataModel.getKey()===r.getKey());this.getRawSheetColumnDataModelOptionSimilarities=()=>this.sheetColumnDataModelOptionSimilarities;this.isAlreadyMapping=(e,r)=>!!this.mapSheetColumnDataModelOptions.some(o=>o.sheetColumn.equal(e)&&r===o.dataModel);this.sheetColumnDataModelOptionSimilarities=e,this.mapSheetColumnDataModelOptions=r}merge(e){let r=e.getRawSheetColumnDataModelOptionSimilarities(),o=e.mapSheetColumnDataModelOptions;for(let a=0;a<this.sheetColumnDataModelOptionSimilarities.length;++a)r.find(i=>{let s=i.getDataModelOption(),l=i.getSheetColumnOption(),u=this.sheetColumnDataModelOptionSimilarities[a].getSheetColumnOption(),c=this.sheetColumnDataModelOptionSimilarities[a].getDataModelOption();return l.option===u.option&&l.sheetColumn.getColumnKey()===u.sheetColumn.getColumnKey()&&s.option===c.option&&s.dataModel.getKey()===c.dataModel.getKey()})||r.push(this.sheetColumnDataModelOptionSimilarities[a]);for(let a=0;a<this.mapSheetColumnDataModelOptions.length;++a)o.push(this.mapSheetColumnDataModelOptions[a]);return new t({sheetColumnDataModelOptionSimilarities:r,mapSheetColumnDataModelOptions:o})}},oc=i4;var l4=class{constructor({calculateSimilarityResult:e,sheets:r,dataModels:o,options:a={}}){this.parseSheetOption=e=>["true","false"].includes(e)?JSON.parse(e):e;this.getSheetColumnDataModelSimilarityList=()=>{let e=this.calculateSimilarityResult.result.map(o=>o.suggestions.map(a=>{let n=this.dataModels.find(s=>{let l=s.getKey(),u=a.key;return this.options?.isAutoMapping===!0&&(l=$s(s.getKey()),u=$s(a.key)),!!(l===u||s.getAlternativeMatches().includes(a.key))}),i=[];for(let s=0;s<this.sheets.length;s++)this.sheets[s].getColumnsByKey(o.label,this.options?.isAutoMapping).forEach(u=>{i.push(u)});return i.map(s=>n&&s?new uH({dataModel:n,sheetColumn:s,similarity:new xi({similarity:a.value})}):new Ax)})),r=[];return s4(s4(s4(e))).forEach(o=>{let a=!1;r.forEach((n,i)=>{!n.isNull()&&n.getDataModel()===o.getDataModel()&&n.getSheetColumn()===o.getSheetColumn()&&(a=!0,o.getSimilarity()>n.getSimilarity()&&(r[i]=o))}),a||r.push(o)}),new Nx({sheetColumnDataModelSimilarities:r})};this.generateSheetColumnDataModelOptionSimilarity=({sheetOption:e,dataModel:r,similarities:o,sheetColumn:a,sheetColumnDataModelOptionSimilaritiesHashMap:n})=>{let i={option:this.parseSheetOption(e),sheetColumn:a},s=Object.keys(o);for(let l=0;l<s.length;++l){let u=s[l],c=o[u],d=[];if(r&&i.sheetColumn&&r.isDropdown()){let f=[];if(r.getType()==="boolean")f=[u];else{let p=r.getOptions();u===""&&c>0&&f.push("");for(let m=0;m<p.length;++m){let h=p[m];h.label===u&&f.push(h.value)}}for(let p=0;p<f.length;++p){let m=f[p];m?.length>0||m.length===0&&c>0?d.push(new cH({dataModelOption:{dataModel:r,option:m},similarity:new xi({similarity:c}),sheetColumnOption:i})):d.push(new jv)}}else d.push(new jv);for(let f=0;f<d.length;++f){let p=!1,m=d[f];if(!m.isNull()){let h=n[m.hash()];h&&(p=!0,m.getSimilarity().getValue()>h.getSimilarity().getValue()&&(n[m.hash()]=m))}p||(n[m.hash()]=m)}}};this.getSheetColumnDataModelOptionSimilarityList=e=>{let r={},o=this.calculateSimilarityResult,a=[];for(let s=0;s<o.result.length;++s){let l=o.result[s],u=l.optionMappings,c;if(e)c=e;else for(let f=0;f<this.sheets.length;f++){let p=this.sheets[f].getColumn(l.label,this.options?.isAutoMapping);if(p){c=p;break}}let d=Object.keys(u);for(let f=0;f<d.length;++f){let p=d[f],m=u[p],h=this.dataModels.find(b=>{let w=b.getKey(),y=p;return this.options?.isAutoMapping===!0&&(w=$s(w),y=$s(y)),w===y});h&&c&&a.push({sheetColumn:c,dataModel:h});let g=Object.keys(m);for(let b=0;b<g.length;++b){let w=g[b],y=m[w];this.generateSheetColumnDataModelOptionSimilarity({sheetOption:w,similarities:y,dataModel:h,sheetColumnDataModelOptionSimilaritiesHashMap:r,sheetColumn:c})}}}let n=[],i=Object.keys(r);for(let s=0;s<i.length;++s){let l=i[s];r[l].isNull()||n.push(r[l])}return new oc({sheetColumnDataModelOptionSimilarities:n,mapSheetColumnDataModelOptions:a})};this.calculateSimilarityResult=e,this.sheets=r,this.dataModels=o,this.options=a}static{this.mergeCalculateSimilarityResultOptions=(e,r)=>{let o={result:[...e.result]};for(let a=0;a<r.result.length;++a){let n=r.result[a],i;for(let s=0;s<o.result.length;++s)if(n.label===o.result[s].label){i=o.result[s];break}if(i){let s=Object.keys(i.optionMappings);for(let u=0;u<s.length;++u){let c=s[u];i.optionMappings[c]={...i.optionMappings[c],...n.optionMappings[c]??{}}}let l=Object.keys(n.optionMappings);for(let u=0;u<l.length;++u){let c=l[u];i.optionMappings[c]={...i.optionMappings[c]??{},...n.optionMappings[c]}}}}return o}}},yi=l4;var Bx=class{constructor(e,r){this.isUploadSheetData=e=>e.some(r=>r.getOptionMappingConfiguration().processingMode==="node");this.matchColumns=async(e,r,o)=>{let{processingMode:a,layers:n,threshold:i}=r;return a==="node"?this.backendMatchingRepository.matchColumns(e,{layers:n,threshold:i},o):this.browserMatchingRepository.matchColumns(e,{layers:n,threshold:i},o)};this.matchInitialOptions=async(e,r,o,a,n)=>{let i=e.getAllSheets(),s=e.getAllDataModels(),l=r.filter(m=>{let h=m.matchedDataModel?.dataModel;return!!h&&h.isDropdown()}),u=await Promise.all(l.map(async m=>{let h=m.matchedDataModel.dataModel,g={dataModel:h,sheetColumn:m.sheetColumn,sheets:i,dataModels:s,licenseKey:a,sessionId:n},b;return h.getOptionMappingConfiguration().processingMode==="node"?b=this.backendMatchingRepository:b=this.browserMatchingRepository,(await b.matchOption({...g,sheetColumn:g.sheetColumn})).calculateSimilarityResult})),d={result:[...[...o.result].map(m=>({...m,optionMappings:{}}))]};for(let m=0;m<u.length;++m)d=yi.mergeCalculateSimilarityResultOptions(d,u[m]);let p=new yi({calculateSimilarityResult:d,sheets:i,dataModels:s}).getSheetColumnDataModelOptionSimilarityList();return{calculateSimilarityResult:d,sheetColumnDataModelOptionSimilarityList:p}};this.matchOption=async({dataModel:e,sheetColumn:r,sheets:o,dataModels:a,licenseKey:n,processMode:i,sessionId:s})=>{let l={dataModel:e,sheetColumn:r,sheets:o,dataModels:a,licenseKey:n,sessionId:s};return i==="node"?this.backendMatchingRepository.matchOption(l):this.browserMatchingRepository.matchOption(l)};this.uploadData=async(e,r,o,a)=>o.some(n=>n.getOptionMappingConfiguration().processingMode==="node")?this.backendMatchingRepository.prepareData(e,r,a):Promise.resolve();this.clearData=(e,r)=>{this.isUploadSheetData(r)&&this.backendMatchingRepository.clearData(e)};this.complete=(e,r)=>{this.isUploadSheetData(r)&&this.backendMatchingRepository.complete(e)};this.browserMatchingRepository=e,this.backendMatchingRepository=r}};import{isNil as sSe}from"lodash";import{isNil as dH}from"lodash";var fH=/[,;|](?=['"`])/g,iSe=/[;]|[|]|,[ a-zA-Z]/g,Xs=t=>dH(t)?!1:`${t}`.match(fH)?!0:!!`${t}`.match(iSe),Zs=t=>{if(dH(t))return[];let e=`${t}`.split(fH);if(e.length===1){e=[];let r=`${t}`.split(/[;]|[|]|, /g);for(let o=0;o<r.length;o++){let a=r[o];/,[a-zA-Z]/.test(a)?e=e.concat(a.split(",")):e.push(a)}}return e.map(r=>r.replace(/[\s\-_&+'"`]/g," ").trim())};var Wv=class t{constructor({spreadSheetList:e,dataModels:r,licenseKey:o,applyExcludeFromAutoMatching:a=!0}){this.getColumns=()=>{let e=this.dataModels,r=[];for(let o=0;o<e.length;o++){if(this.applyExcludeFromAutoMatching&&e[o].isExcludedFromAutoMatching())continue;let a=t.mapDataModelToColumn(e[o]);a&&r.push(a)}return r};this.getInputHeaderRow=()=>{let e=[];return this.allSheets.forEach(r=>{r.getColumns().forEach(a=>{e.push(a.getColumnKey())})}),e};this.getAllSheets=()=>this.allSheets;this.getAllDataModels=()=>this.dataModels;this.getLicenseKey=()=>this.licenseKey;this.spreadSheetList=e,this.dataModels=r,this.allSheets=this.spreadSheetList.getSelectedSheets(),this.licenseKey=o,this.applyExcludeFromAutoMatching=a}static{this.getDropdownOptions=e=>e.isCategoryType()?e.getOptions().map(o=>({label:o.label,value:o.value,alternativeMatches:o.alternativeMatches})):null}static{this.getOptionMappingConfiguration=e=>{if(e.isDropdown())return e.getOptionMappingConfiguration()}}static{this.getType=e=>{switch(e.getType()){case"boolean":return"boolean";case"single-select":case"country_code_alpha_2":case"country_code_alpha_3":case"currency_code":return"category";case"int":case"float":return"number";default:return"string"}}}static{this.mapDataModelToColumn=e=>({key:e.getKey(),label:e.getLabel(),description:e.getDescription(),isMultiple:e.getIsMultiSelection(),dropdownOptions:this.getDropdownOptions(e),columnType:this.getType(e).toUpperCase(),alternativeMatches:e.getAlternativeMatches(),optionMappingConfiguration:this.getOptionMappingConfiguration(e)})}static{this.parseValue=e=>sSe(e)?"":`${e}`}static{this.getInputJsonBySheetColumn=(e,r)=>{let o=[],a=e.getUniqueRows(),n=a.length,i={},s=e.getColumnKey(),l=0;for(let d=0;d<n;d++){let f=t.parseValue(a[d]);Xs(f)&&r.getIsMultiSelection()?Zs(f).forEach(h=>{i[s]?i[s].push(h):i[s]=[h]}):(o[l]?o[l][s]=f:o[l]={[s]:f},l++)}let u=Object.keys(i),c=o.length;for(let d=0;d<u.length;d++){let f=u[d];i[f].forEach((m,h)=>{let g=c+h;o[g]?o[g][f]=m:o[g]={[f]:m}})}return[o]}}},zv=Wv;var u4=class{constructor(){this.matchColumns=async(e,r,o)=>{let a=e.getAllSheets(),n=e.getAllDataModels(),i=await this.matchColumnsTask(e,r,o),l=new yi({calculateSimilarityResult:i[0],sheets:a,dataModels:n}).getSheetColumnDataModelSimilarityList();return{calculateSimilarityResult:i[0],sheetColumnDataModelSimilarityList:l}};this.matchOption=async({dataModel:e,sheetColumn:r,sheets:o,dataModels:a,licenseKey:n,sessionId:i})=>{let s;try{s=await this.matchOptionTask({dataModel:e,sheetColumn:r,sheets:o,licenseKey:n,sessionId:i})}catch{return{calculateSimilarityResult:{result:[]},sheetColumnDataModelOptionSimilarityList:new oc({sheetColumnDataModelOptionSimilarities:[],mapSheetColumnDataModelOptions:[]})}}let l=s[0];this.matchBoolean([l],o,a);let c=new yi({calculateSimilarityResult:l,sheets:o,dataModels:a}).getSheetColumnDataModelOptionSimilarityList(r);return{calculateSimilarityResult:l,sheetColumnDataModelOptionSimilarityList:c}};this.matchBoolean=(e,r,o)=>{e.forEach((a,n)=>{a.result.forEach(i=>{let l=r[n].getColumn(i.label);l&&o.filter(c=>c.getType()==="boolean").forEach(c=>{let d=l.getUniqueRows();for(let f=0;f<d.length;f++){let p=d[f],m=null,h=`${p}`.toLowerCase().trim();if(Vu().includes(h)?m={true:1}:$u().includes(h)&&(m={false:1}),m){let g=i.optionMappings[c.getKey()]??{};i.optionMappings[c.getKey()]={...g,[`${p}`]:m}}}})})})}}},Hx=u4;import{flatten as lSe}from"lodash";var c4=class{constructor(e,r){this.fileName="";this.parseData=e=>{let r=[],o=0,a=lSe(e.map(n=>n.getColumns()));r[0]=[],a.forEach((n,i)=>{r[0][i]=n.getColumnKey(),n.getUniqueRows().length>o&&(o=n.getUniqueRows().length)});for(let n=0;n<o;++n){r[n+1]=[];for(let i=0;i<a.length;++i){let s=a[i].getUniqueRows()[n]??"";r[n+1][i]=s}}return r};this.initialize=()=>{this.fileName=""};this.upload=async(e,r,o)=>{this.initialize();let a=this.parseData(e),n=await this.uploadInputSheetAPI.createFile(r,o);return this.fileName=n.file_name,this.inputSheetClearer.add(this.fileName),this.uploadInputSheetAPI.uploadData(n.signed_url,a,o)};this.getFileName=()=>this.fileName;this.clearData=e=>{this.initialize(),this.inputSheetClearer.clear(e)};this.complete=e=>{let r=this.fileName;r&&(this.initialize(),this.inputSheetClearer.remove(r),this.uploadInputSheetAPI.clearFile(r,e).catch(()=>{}))};this.uploadInputSheetAPI=e,this.inputSheetClearer=r}},pH=c4;import uSe from"axios";var zo=class{constructor(e,r={}){this.httpClient=uSe.create(r),this.sendApiKey=e.sendApiKey,this.setupInterceptors()}setupInterceptors(){this.httpClient.interceptors.request.use(e=>e,e=>Promise.reject(e)),this.httpClient.interceptors.response.use(e=>e,e=>Promise.reject(e))}getHttpClient(){return this.httpClient}async get(e,r,o){return(await this.httpClient.request({method:"GET",url:e,params:r,...o})).data}async post(e,r,o={}){return(await this.httpClient.request({method:"POST",url:e,data:r,...o})).data}async put(e,r,o={}){return(await this.httpClient.request({method:"PUT",url:e,data:r,...o})).data}async patch(e,r,o={}){return(await this.httpClient.request({method:"PATCH",url:e,data:r,...o})).data}async delete(e,r={}){return(await this.httpClient.request({method:"DELETE",url:e,...r})).data}},ac=zo;var vt={csv:"text/csv",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xls:"application/vnd.ms-excel",xml:"text/xml",json:"application/json",tsv_text:"text/tab-separated-values",tsv:".tsv",pdf:"application/pdf",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.12",psv:"text/pipe-separated-values",ods:"application/vnd.oasis.opendocument.spreadsheet",numbers:"application/vnd.apple.numbers",numbers_sff:"application/x-iwork-numbers-sffnumbers"},mH=[vt.csv,vt.tsv,vt.tsv_text,vt.psv,vt.json];var d4=class t{constructor(){this.framework="react";this.versionNumber="4.8.1";this.uploadedFiles={};this.frameworkVersion="1.0.0";this.eventStack={};this.reviewEntriesLog={};this.parseSession=!1;this.startSession={};this.reloadSession={};this.verifySession={};this.getMeta=()=>({version:this.getVersionNumber(),framework:this.getFrameWork(),origin:this.getOrigin(),framework_version:this.getFrameworkVersion()});this.setParseSession=()=>{this.parseSession=!0};this.getParseSession=()=>this.parseSession;this.clearParseSession=()=>{this.parseSession=!1};this.setStartSession=e=>{this.startSession[e]=!0};this.getStartSession=e=>this.startSession[e];this.clearStartSession=e=>{this.startSession[e]=void 0};this.setReloadSession=e=>{this.reloadSession[e]=!0};this.getReloadSession=e=>this.reloadSession[e];this.clearReloadSession=e=>{this.reloadSession[e]=void 0};this.setVerifySession=e=>{this.verifySession[e]=!0};this.getVerifySession=e=>this.verifySession[e];this.clearVerifySession=e=>{this.verifySession[e]=void 0}}static{this.eventMapping={"/":"upload","/select-sheet":"sheet_selection","/select-header":"header_selection","/match-column":"match_columns","/review-entries":"review_entries","/join-column":"join_sheets"}}static getInstance(){return t.instance||(t.instance=new t),t.instance}setFrameWork(e){this.framework=e}getFrameWork(){return this.framework}setOrigin(e){this.origin=e}getOrigin(){return this.origin??""}setVersionNumber(e){this.versionNumber=e}getVersionNumber(){return this.versionNumber}setFrameworkVersion(e){this.frameworkVersion=e}getFrameworkVersion(){return this.frameworkVersion}pushEventStack(e,r){this.eventStack[e]||(this.eventStack[e]=[]);let o=this.eventStack[e][this.eventStack[e].length-1];r.action==="end"&&(o?.eventType===`${t.eventMapping[r.step]||r.step}_end`||o?.eventType!==`${t.eventMapping[r.step]||r.step}_start`)||this.eventStack[e].length>0&&r.action==="start"&&o?.eventType.includes("_start")&&o?.eventType!==`${t.eventMapping[r.step]||r.step}_start`||(this.eventStack[e].push({eventType:`${t.eventMapping[r.step]||r.step}_${r.action}`,timestamp:new Date().toISOString()}),this.eventStack[e].length>1&&this.eventStack[e][this.eventStack[e].length-1].eventType===this.eventStack[e][this.eventStack[e].length-2].eventType&&this.eventStack[e].splice(this.eventStack[e].length-2,1))}removeEventStack(e,r){this.eventStack[e]=this.eventStack[e].filter(o=>o.eventType!==r)}getEventStack(e){return this.eventStack[e]}clearEventStack(e){this.eventStack[e]=[]}setUploadedFiles(e,r){this.uploadedFiles[e]||this.clearUploadedFilesStack(e),r.forEach(o=>this.uploadedFiles[e].push({fileSize:o.fileSize,fileType:this.mapSupportedType(o.type)}))}getUploadFiles(e){return this.uploadedFiles?.[e]||[]}clearUploadedFilesStack(e){this.uploadedFiles[e]=[]}setReviewEntriesLog(e,r){this.reviewEntriesLog[e]=r}getReviewEntriesLog(e){return this.reviewEntriesLog?.[e]||{}}setTotalCleanings(e,r){this.reviewEntriesLog[e].total_cleanings=r}clearReviewEntriesLog(e){this.reviewEntriesLog[e]={total_rows:0,total_error_rows:0,total_error_cells:0,total_columns:0,total_cleanings:0}}mapSupportedType(e){for(let[r,o]of Object.entries(vt))if(e===o)return r;return e}},Ve=d4;var f4=class extends zo{constructor(){super(...arguments);this.createFile=async(r,o)=>this.post("/file/directory",{},{headers:{apikey:this.sendApiKey?_r:void 0,Authorization:r,originRequest:Ve.getInstance().getOrigin()},signal:o.signal});this.uploadData=async(r,o,a)=>this.put(r,o,{baseURL:"",signal:a.signal});this.clearFile=async(r,o)=>this.delete(`/file?file_name=${r}`,{headers:{apikey:this.sendApiKey?_r:void 0,Authorization:o,originRequest:Ve.getInstance().getOrigin()}})}},Vx=f4;var p4=class{constructor(e){this.fileNames=[];this.remove=e=>{this.fileNames=this.fileNames.filter(r=>r!==e)};this.add=e=>{this.fileNames.push(e)};this.clear=async e=>{let r=[...this.fileNames];for(let o=0;o<r.length;++o){let a=r[o];this.remove(a),await this.uploadInputSheetAPI.clearFile(a,e).catch(()=>{})}};this.uploadInputSheetAPI=e}},hH=p4;var m4=class extends Hx{constructor(r,o,a={}){super();this.prepareData=async(r,o,a)=>{await this.uploadInputSheetRepository.upload(r,o,a)};this.clearData=r=>{this.uploadInputSheetRepository.clearData(r)};this.complete=r=>{this.uploadInputSheetRepository.complete(r)};this.matchColumnsTask=(r,o,a)=>{let n=r.getColumns().map(l=>({key:l.key,label:l.label,alternativeMatches:l.alternativeMatches})),i=r.getLicenseKey(),s=r.getInputHeaderRow();return this.nodeEngine.matchColumns(s,n,i,o,a)};this.matchOptionTask=({dataModel:r,sheets:o,sheetColumn:a,licenseKey:n,sessionId:i})=>{let s=zv.mapDataModelToColumn(r),l=[];for(let c=0;c<o.length;c++){let d=o[c];for(let f=0;f<d.getColumns().length;f++){let p=d.getColumns()[f];l.push(p)}}let u=l.findIndex(c=>c===a);return this.nodeEngine.matchOption(this.uploadInputSheetRepository.getFileName(),[{column:{dropdownOptions:s.dropdownOptions,isMultiSelect:s.isMultiple,key:s.key,label:s.label,optionMappingConfiguration:s.optionMappingConfiguration},column_index:u}],n,i)};this.nodeEngine=r;let n=new Vx(o,a),i=new hH(n);this.uploadInputSheetRepository=new pH(n,i)}},gH=m4;import{flatten as pSe}from"lodash";import{createEndpoint as cSe,releaseProxy as dSe,wrap as fSe}from"comlink";var Ci=({workerFile:t,hostWorkerUrl:e})=>{let r=null,o=null;return{init:async()=>{if(!r||!o)try{e?r=r=new Worker(e):r=t(),r&&await new Promise((s,l)=>{if(!r)return l();r.addEventListener("error",u=>{u.preventDefault(),r?.terminate(),o?.[cSe](),o=null,l(new Error("has something wrong with worker"))}),o=fSe(r),o.check().then(s).catch(l)})}catch{}},clear:()=>{o&&(o?.[dSe](),r?.terminate(),o=null)},getRemote:()=>o}};var Si={IMPORT:"importWorkerBundle.js",HOOKS:"hooks.js",MATCHING:"matchingValues.js",ML:"ml.js",SEARCH_AND_REPLACE:"searchAndReplace.js",JAVASCRIPT:"javascript.js"};var cn=(...t)=>t.map((e,r)=>r===0?e.replace(/\/+$/,""):e.replace(/^\/+|\/+$/g,"")).join("/");var h4=({workersBaseUrl:t})=>{let e=t?cn(t,Si.ML):"",{init:r,getRemote:o,clear:a}=Ci({hostWorkerUrl:e,workerFile:()=>new Worker(new URL("workers/mapping/index.js",import.meta.url),{type:"module"})});return{init:r,clear:a,getOptionMappings:(...s)=>{let l=o();return l?l.getOptionMappings(...s):rA(...s)},getColumnMappings:(...s)=>{let l=o();return l?l.getColumnMappings(...s):oA(...s)}}};var $x=class{constructor({workersBaseUrl:e}){this.getColumnMappings=async(e,r,o)=>{let a=h4({workersBaseUrl:this.workersBaseUrl});return await a.init(),a.getColumnMappings(e,r,o).then(n=>(a.clear(),n)).catch(n=>(a.clear(),Promise.reject(n)))};this.getOptionMappings=async(e,r)=>{let o=h4({workersBaseUrl:this.workersBaseUrl});return await o.init(),o.getOptionMappings(e,r).then(a=>(o.clear(),a)).catch(a=>(o.clear(),Promise.reject(a)))};this.workersBaseUrl=e}};var Ux=class{constructor({workersBaseUrl:e}){this.matchColumns=async(e,r,o)=>{let a=await this.mappingEngine.getColumnMappings(e,r.map(n=>`${n}`),o);return this.parseColumnMappingResult(pSe(a))};this.matchOption=async(e,r)=>Promise.all(r.map(o=>this.matchOptionItem(e,o)));this.matchOptionItem=async(e,r)=>new Promise((o,a)=>{setTimeout(()=>{this.mappingEngine.getOptionMappings(e,r).then(n=>{let i={result:[{optionMappings:{[n.tdmColumnKey]:n.suggestions},label:n.inputColumn,suggestions:[{key:n.tdmColumnKey,value:1,isSameWord:!0}]}]};o(i)}).catch(n=>{a(n)})},100)});this.parseColumnMappingResult=e=>{let r=[];for(let o=0;o<e.length;o++){let a=e[o],n=[];for(let i=0;i<a.columnSuggestions.length;i++){let s=a.columnSuggestions[i];n.push({key:s.key,value:s.percentage})}r.push({label:a.inputColumnKey,suggestions:n,optionMappings:{}})}return[{result:r}]};this.mappingEngine=new $x({workersBaseUrl:e})}};import{flatten as mSe}from"lodash";var jx=class extends zo{constructor(){super(...arguments);this.matchColumns=async(r,o,a,n,i)=>{let s={apikey:this.sendApiKey?_r:void 0,authorization:a},l=await this.post("/execute/column",{tdmColumns:o,inputColumns:r,options:{columnMappingConfiguration:{layers:n.layers,threshold:n.threshold},product:"importer"},sessionId:i},{headers:s});return this.parseColumnMappingResult(l)};this.matchOption=async(r,o,a,n)=>{let i={apikey:this.sendApiKey?_r:void 0,authorization:a},s=await Promise.all(o.map(l=>this.post("/execute/option",{tdmColumn:{key:l.column.key,label:l.column.label,isMultiSelect:l.column.isMultiSelect,dropdownOptions:l.column.dropdownOptions},options:{product:"importer",fileName:r,columnIndex:l.column_index,headerRowIndex:0,optionMappingConfiguration:{layers:l.column.optionMappingConfiguration?.layers,threshold:l.column.optionMappingConfiguration?.threshold}},sessionId:n},{headers:i})));return this.parseOptionMappingResult(mSe(s))};this.parseColumnMappingResult=r=>{let o=[];for(let a=0;a<r.length;a++){let n=r[a],i=[],s=Object.keys(n.suggestions);for(let l=0;l<s.length;l++){let u=s[l],c=n.suggestions[u];i.push({key:u,value:c})}o.push({label:n.inputColumn,suggestions:i,optionMappings:{}})}return[{result:o}]}}parseOptionMappingResult(r){let o=[];for(let a=0;a<r.length;a++){let n=r[a];o.push({optionMappings:{[n.tdmColumnKey]:n.suggestions},label:n.inputColumn,suggestions:[{key:n.tdmColumnKey,value:1,isSameWord:!0}]})}return[{result:o}]}};var g4=class extends Hx{constructor(r){super();this.matchColumnsTask=(r,o)=>{let a=r.getColumns().map(i=>({...i,dropdownOptions:[]})),n=r.getInputHeaderRow();return this.browserEngine.matchColumns(a,n,o)};this.matchOptionTask=({dataModel:r,sheetColumn:o})=>{let a=zv.mapDataModelToColumn(r),n=zv.getInputJsonBySheetColumn(o,r);return this.browserEngine.matchOption(a,n)};this.browserEngine=r}},vH=g4;import{jsx as wSe}from"react/jsx-runtime";var v4=vSe({executing:!0,setExecuting:()=>{},matchColumnsRendered:!1,setMatchColumnsRendered:()=>{},abort:()=>{}}),bSe=({children:t})=>{let[e,r]=wH(!0),[o,a]=wH(!1),{baseUrl:n,isSelfHosted:i,baseMappingUrl:s,workersBaseUrl:l}=be(),u=gSe(new AbortController),c=bH(()=>new Ux({workersBaseUrl:l??""}),[l]),d=bH(()=>{let p=new vH(c),m=new jx({sendApiKey:!i},{baseURL:s}),h=new gH(m,{sendApiKey:!i},{baseURL:n});return new Bx(p,h)},[n,i,c,s]),f=hSe(()=>{u.current.abort(),u.current=new AbortController},[u]);return wSe(v4.Provider,{value:{matchingStrategy:d,executing:e,setExecuting:r,matchColumnsRendered:o,setMatchColumnsRendered:a,abortController:u,abort:f},children:t})},xH=bSe;import"simplebar/dist/simplebar.min.css";var b4=document.createElement("style");b4.type="text/css";b4.appendChild(document.createTextNode(`.nuvo-tailwind .\\!container{width:100%!important}.nuvo-tailwind .container{width:100%}@media (min-width:375px){.nuvo-tailwind .\\!container{max-width:375px!important}.nuvo-tailwind .container{max-width:375px}}@media (min-width:412px){.nuvo-tailwind .\\!container{max-width:412px!important}.nuvo-tailwind .container{max-width:412px}}@media (min-width:468px){.nuvo-tailwind .\\!container{max-width:468px!important}.nuvo-tailwind .container{max-width:468px}}@media (min-width:640px){.nuvo-tailwind .\\!container{max-width:640px!important}.nuvo-tailwind .container{max-width:640px}}@media (min-width:740px){.nuvo-tailwind .\\!container{max-width:740px!important}.nuvo-tailwind .container{max-width:740px}}@media (min-width:768px){.nuvo-tailwind .\\!container{max-width:768px!important}.nuvo-tailwind .container{max-width:768px}}@media (min-width:820px){.nuvo-tailwind .\\!container{max-width:820px!important}.nuvo-tailwind .container{max-width:820px}}@media (min-width:885px){.nuvo-tailwind .\\!container{max-width:885px!important}.nuvo-tailwind .container{max-width:885px}}@media (min-width:990px){.nuvo-tailwind .\\!container{max-width:990px!important}.nuvo-tailwind .container{max-width:990px}}@media (min-width:1024px){.nuvo-tailwind .\\!container{max-width:1024px!important}.nuvo-tailwind .container{max-width:1024px}}@media (min-width:1190px){.nuvo-tailwind .\\!container{max-width:1190px!important}.nuvo-tailwind .container{max-width:1190px}}@media (min-width:1280px){.nuvo-tailwind .\\!container{max-width:1280px!important}.nuvo-tailwind .container{max-width:1280px}}@media (min-width:1440px){.nuvo-tailwind .\\!container{max-width:1440px!important}.nuvo-tailwind .container{max-width:1440px}}@media (min-width:1441px){.nuvo-tailwind .\\!container{max-width:1441px!important}.nuvo-tailwind .container{max-width:1441px}}@media (min-width:1536px){.nuvo-tailwind .\\!container{max-width:1536px!important}.nuvo-tailwind .container{max-width:1536px}}@media (min-width:1920px){.nuvo-tailwind .\\!container{max-width:1920px!important}.nuvo-tailwind .container{max-width:1920px}}.nuvo-tailwind *,.nuvo-tailwind :after,.nuvo-tailwind :before{border:0 solid #e5e7eb;box-sizing:border-box}
109
109
  /*! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com*/.nuvo-tailwind :after,.nuvo-tailwind :before{--tw-content:""}.nuvo-tailwind :host,.nuvo-tailwind html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:Inter var,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}.nuvo-tailwind body{line-height:inherit;margin:0}.nuvo-tailwind hr{border-top-width:1px;color:inherit;height:0}.nuvo-tailwind abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.nuvo-tailwind h1,.nuvo-tailwind h2,.nuvo-tailwind h3,.nuvo-tailwind h4,.nuvo-tailwind h5,.nuvo-tailwind h6{font-size:inherit;font-weight:inherit}.nuvo-tailwind a{color:inherit;text-decoration:inherit}.nuvo-tailwind b,.nuvo-tailwind strong{font-weight:bolder}.nuvo-tailwind code,.nuvo-tailwind kbd,.nuvo-tailwind pre,.nuvo-tailwind samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}.nuvo-tailwind small{font-size:80%}.nuvo-tailwind sub,.nuvo-tailwind sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.nuvo-tailwind sub{bottom:-.25em}.nuvo-tailwind sup{top:-.5em}.nuvo-tailwind table{border-collapse:collapse;border-color:inherit;text-indent:0}.nuvo-tailwind button,.nuvo-tailwind input,.nuvo-tailwind optgroup,.nuvo-tailwind select,.nuvo-tailwind textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}.nuvo-tailwind button,.nuvo-tailwind select{text-transform:none}.nuvo-tailwind [type=button],.nuvo-tailwind [type=reset],.nuvo-tailwind [type=submit],.nuvo-tailwind button{-webkit-appearance:button;background-color:transparent;background-image:none}.nuvo-tailwind :-moz-focusring{outline:auto}.nuvo-tailwind :-moz-ui-invalid{box-shadow:none}.nuvo-tailwind progress{vertical-align:baseline}.nuvo-tailwind ::-webkit-inner-spin-button,.nuvo-tailwind ::-webkit-outer-spin-button{height:auto}.nuvo-tailwind [type=search]{-webkit-appearance:textfield;outline-offset:-2px}.nuvo-tailwind ::-webkit-search-decoration{-webkit-appearance:none}.nuvo-tailwind ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.nuvo-tailwind summary{display:list-item}.nuvo-tailwind blockquote,.nuvo-tailwind dd,.nuvo-tailwind dl,.nuvo-tailwind figure,.nuvo-tailwind h1,.nuvo-tailwind h2,.nuvo-tailwind h3,.nuvo-tailwind h4,.nuvo-tailwind h5,.nuvo-tailwind h6,.nuvo-tailwind hr,.nuvo-tailwind p,.nuvo-tailwind pre{margin:0}.nuvo-tailwind fieldset{margin:0;padding:0}.nuvo-tailwind legend{padding:0}.nuvo-tailwind menu,.nuvo-tailwind ol,.nuvo-tailwind ul{list-style:none;margin:0;padding:0}.nuvo-tailwind dialog{padding:0}.nuvo-tailwind textarea{resize:vertical}.nuvo-tailwind input::-moz-placeholder,.nuvo-tailwind textarea::-moz-placeholder{color:#9ca3af;opacity:1}.nuvo-tailwind input::placeholder,.nuvo-tailwind textarea::placeholder{color:#9ca3af;opacity:1}.nuvo-tailwind [role=button],.nuvo-tailwind button{cursor:pointer}.nuvo-tailwind :disabled{cursor:default}.nuvo-tailwind audio,.nuvo-tailwind canvas,.nuvo-tailwind embed,.nuvo-tailwind iframe,.nuvo-tailwind img,.nuvo-tailwind object,.nuvo-tailwind svg,.nuvo-tailwind video{display:block;vertical-align:middle}.nuvo-tailwind img,.nuvo-tailwind video{height:auto;max-width:100%}.nuvo-tailwind [hidden]{display:none}.nuvo-tailwind [multiple],.nuvo-tailwind [type=date],.nuvo-tailwind [type=datetime-local],.nuvo-tailwind [type=email],.nuvo-tailwind [type=month],.nuvo-tailwind [type=number],.nuvo-tailwind [type=password],.nuvo-tailwind [type=search],.nuvo-tailwind [type=tel],.nuvo-tailwind [type=text],.nuvo-tailwind [type=time],.nuvo-tailwind [type=url],.nuvo-tailwind [type=week],.nuvo-tailwind input:where(:not([type])),.nuvo-tailwind select,.nuvo-tailwind textarea{--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}.nuvo-tailwind [multiple]:focus,.nuvo-tailwind [type=date]:focus,.nuvo-tailwind [type=datetime-local]:focus,.nuvo-tailwind [type=email]:focus,.nuvo-tailwind [type=month]:focus,.nuvo-tailwind [type=number]:focus,.nuvo-tailwind [type=password]:focus,.nuvo-tailwind [type=search]:focus,.nuvo-tailwind [type=tel]:focus,.nuvo-tailwind [type=text]:focus,.nuvo-tailwind [type=time]:focus,.nuvo-tailwind [type=url]:focus,.nuvo-tailwind [type=week]:focus,.nuvo-tailwind input:where(:not([type])):focus,.nuvo-tailwind select:focus,.nuvo-tailwind textarea:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}.nuvo-tailwind input::-moz-placeholder,.nuvo-tailwind textarea::-moz-placeholder{color:#6b7280;opacity:1}.nuvo-tailwind input::placeholder,.nuvo-tailwind textarea::placeholder{color:#6b7280;opacity:1}.nuvo-tailwind ::-webkit-datetime-edit-fields-wrapper{padding:0}.nuvo-tailwind ::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}.nuvo-tailwind ::-webkit-datetime-edit{display:inline-flex}.nuvo-tailwind ::-webkit-datetime-edit,.nuvo-tailwind ::-webkit-datetime-edit-day-field,.nuvo-tailwind ::-webkit-datetime-edit-hour-field,.nuvo-tailwind ::-webkit-datetime-edit-meridiem-field,.nuvo-tailwind ::-webkit-datetime-edit-millisecond-field,.nuvo-tailwind ::-webkit-datetime-edit-minute-field,.nuvo-tailwind ::-webkit-datetime-edit-month-field,.nuvo-tailwind ::-webkit-datetime-edit-second-field,.nuvo-tailwind ::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}.nuvo-tailwind select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}.nuvo-tailwind [multiple],.nuvo-tailwind [size]:where(select:not([size="1"])){background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}.nuvo-tailwind [type=checkbox],.nuvo-tailwind [type=radio]{--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:1rem}.nuvo-tailwind [type=checkbox]{border-radius:0}.nuvo-tailwind [type=radio]{border-radius:100%}.nuvo-tailwind [type=checkbox]:focus,.nuvo-tailwind [type=radio]:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}.nuvo-tailwind [type=checkbox]:checked,.nuvo-tailwind [type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}.nuvo-tailwind [type=checkbox]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E")}@media (forced-colors:active) {.nuvo-tailwind [type=checkbox]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}.nuvo-tailwind [type=radio]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E")}@media (forced-colors:active) {.nuvo-tailwind [type=radio]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}.nuvo-tailwind [type=checkbox]:checked:focus,.nuvo-tailwind [type=checkbox]:checked:hover,.nuvo-tailwind [type=radio]:checked:focus,.nuvo-tailwind [type=radio]:checked:hover{background-color:currentColor;border-color:transparent}.nuvo-tailwind [type=checkbox]:indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}@media (forced-colors:active) {.nuvo-tailwind [type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}.nuvo-tailwind [type=checkbox]:indeterminate:focus,.nuvo-tailwind [type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}.nuvo-tailwind [type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}.nuvo-tailwind [type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}.nuvo-tailwind *,.nuvo-tailwind :after,.nuvo-tailwind :before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.nuvo-tailwind ::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.nuvo-tailwind .pointer-events-none{pointer-events:none}.nuvo-tailwind .\\!pointer-events-auto{pointer-events:auto!important}.nuvo-tailwind .pointer-events-auto{pointer-events:auto}.nuvo-tailwind .visible{visibility:visible}.nuvo-tailwind .invisible{visibility:hidden}.nuvo-tailwind .static{position:static}.nuvo-tailwind .fixed{position:fixed}.nuvo-tailwind .absolute{position:absolute}.nuvo-tailwind .relative{position:relative}.nuvo-tailwind .sticky{position:sticky}.nuvo-tailwind .inset-0{inset:0}.nuvo-tailwind .inset-2{inset:.5rem}.nuvo-tailwind .-left-0{left:0}.nuvo-tailwind .-left-0\\.5{left:-.125rem}.nuvo-tailwind .-left-1{left:-.25rem}.nuvo-tailwind .-left-full{left:-100%}.nuvo-tailwind .-top-px{top:-1px}.nuvo-tailwind .bottom-0{bottom:0}.nuvo-tailwind .bottom-1{bottom:.25rem}.nuvo-tailwind .bottom-1\\.5{bottom:.375rem}.nuvo-tailwind .bottom-14{bottom:3.5rem}.nuvo-tailwind .bottom-20{bottom:5rem}.nuvo-tailwind .bottom-4{bottom:1rem}.nuvo-tailwind .bottom-px{bottom:1px}.nuvo-tailwind .left-0{left:0}.nuvo-tailwind .left-1\\/2{left:50%}.nuvo-tailwind .left-3{left:.75rem}.nuvo-tailwind .left-6{left:1.5rem}.nuvo-tailwind .right-0{right:0}.nuvo-tailwind .right-2{right:.5rem}.nuvo-tailwind .right-3{right:.75rem}.nuvo-tailwind .right-8{right:2rem}.nuvo-tailwind .top-0{top:0}.nuvo-tailwind .top-1\\/2{top:50%}.nuvo-tailwind .top-3{top:.75rem}.nuvo-tailwind .top-7{top:1.75rem}.nuvo-tailwind .top-8{top:2rem}.nuvo-tailwind .top-px{top:1px}.nuvo-tailwind .\\!z-180{z-index:180!important}.nuvo-tailwind .z-10{z-index:10}.nuvo-tailwind .z-101{z-index:101}.nuvo-tailwind .z-103{z-index:103}.nuvo-tailwind .z-170{z-index:170}.nuvo-tailwind .z-180{z-index:180}.nuvo-tailwind .z-20{z-index:20}.nuvo-tailwind .z-30{z-index:30}.nuvo-tailwind .z-40{z-index:40}.nuvo-tailwind .z-50{z-index:50}.nuvo-tailwind .order-1{order:1}.nuvo-tailwind .order-2{order:2}.nuvo-tailwind .order-3{order:3}.nuvo-tailwind .m-0{margin:0}.nuvo-tailwind .\\!my-auto{margin-bottom:auto!important;margin-top:auto!important}.nuvo-tailwind .-mx-3{margin-left:-.75rem;margin-right:-.75rem}.nuvo-tailwind .mx-0{margin-left:0;margin-right:0}.nuvo-tailwind .mx-1{margin-left:.25rem;margin-right:.25rem}.nuvo-tailwind .mx-2{margin-left:.5rem;margin-right:.5rem}.nuvo-tailwind .mx-4{margin-left:1rem;margin-right:1rem}.nuvo-tailwind .mx-6{margin-left:1.5rem;margin-right:1.5rem}.nuvo-tailwind .mx-6\\.5{margin-left:26px;margin-right:26px}.nuvo-tailwind .mx-auto{margin-left:auto;margin-right:auto}.nuvo-tailwind .mx-px{margin-left:1px;margin-right:1px}.nuvo-tailwind .my-1{margin-bottom:.25rem;margin-top:.25rem}.nuvo-tailwind .my-2{margin-bottom:.5rem;margin-top:.5rem}.nuvo-tailwind .my-3{margin-bottom:.75rem;margin-top:.75rem}.nuvo-tailwind .my-4{margin-bottom:1rem;margin-top:1rem}.nuvo-tailwind .my-6{margin-bottom:1.5rem;margin-top:1.5rem}.nuvo-tailwind .my-8{margin-bottom:2rem;margin-top:2rem}.nuvo-tailwind .\\!-mt-0{margin-top:0!important}.nuvo-tailwind .\\!mb-0{margin-bottom:0!important}.nuvo-tailwind .\\!mb-3{margin-bottom:.75rem!important}.nuvo-tailwind .\\!ml-0{margin-left:0!important}.nuvo-tailwind .\\!ml-1{margin-left:.25rem!important}.nuvo-tailwind .\\!mr-0{margin-right:0!important}.nuvo-tailwind .\\!mr-2{margin-right:.5rem!important}.nuvo-tailwind .\\!mt-0{margin-top:0!important}.nuvo-tailwind .\\!mt-6{margin-top:1.5rem!important}.nuvo-tailwind .-mb-1{margin-bottom:-.25rem}.nuvo-tailwind .-ml-1{margin-left:-.25rem}.nuvo-tailwind .-ml-px{margin-left:-1px}.nuvo-tailwind .-mr-0{margin-right:0}.nuvo-tailwind .-mr-0\\.5{margin-right:-2px}.nuvo-tailwind .-mt-3{margin-top:-.75rem}.nuvo-tailwind .-mt-4{margin-top:-1rem}.nuvo-tailwind .-mt-7{margin-top:-1.75rem}.nuvo-tailwind .-mt-px{margin-top:-1px}.nuvo-tailwind .mb-0{margin-bottom:0}.nuvo-tailwind .mb-1{margin-bottom:.25rem}.nuvo-tailwind .mb-10{margin-bottom:2.5rem}.nuvo-tailwind .mb-2{margin-bottom:.5rem}.nuvo-tailwind .mb-3{margin-bottom:.75rem}.nuvo-tailwind .mb-4{margin-bottom:1rem}.nuvo-tailwind .mb-6{margin-bottom:1.5rem}.nuvo-tailwind .mb-7{margin-bottom:1.75rem}.nuvo-tailwind .mb-8{margin-bottom:2rem}.nuvo-tailwind .mb-px{margin-bottom:1px}.nuvo-tailwind .ml-0{margin-left:0}.nuvo-tailwind .ml-0\\.5{margin-left:2px}.nuvo-tailwind .ml-1{margin-left:.25rem}.nuvo-tailwind .ml-1\\.5{margin-left:6px}.nuvo-tailwind .ml-2{margin-left:.5rem}.nuvo-tailwind .ml-3{margin-left:.75rem}.nuvo-tailwind .ml-4{margin-left:1rem}.nuvo-tailwind .ml-5{margin-left:1.25rem}.nuvo-tailwind .ml-6{margin-left:1.5rem}.nuvo-tailwind .ml-auto{margin-left:auto}.nuvo-tailwind .ml-px{margin-left:1px}.nuvo-tailwind .mr-0{margin-right:0}.nuvo-tailwind .mr-0\\.5{margin-right:2px}.nuvo-tailwind .mr-1{margin-right:.25rem}.nuvo-tailwind .mr-1\\.5{margin-right:6px}.nuvo-tailwind .mr-2{margin-right:.5rem}.nuvo-tailwind .mr-3{margin-right:.75rem}.nuvo-tailwind .mr-4{margin-right:1rem}.nuvo-tailwind .mr-5{margin-right:1.25rem}.nuvo-tailwind .mr-6{margin-right:1.5rem}.nuvo-tailwind .mr-auto{margin-right:auto}.nuvo-tailwind .mt-0{margin-top:0}.nuvo-tailwind .mt-0\\.5{margin-top:2px}.nuvo-tailwind .mt-1{margin-top:.25rem}.nuvo-tailwind .mt-2{margin-top:.5rem}.nuvo-tailwind .mt-3{margin-top:.75rem}.nuvo-tailwind .mt-4{margin-top:1rem}.nuvo-tailwind .mt-5{margin-top:1.25rem}.nuvo-tailwind .mt-6{margin-top:1.5rem}.nuvo-tailwind .mt-8{margin-top:2rem}.nuvo-tailwind .mt-px{margin-top:1px}.nuvo-tailwind .\\!box-border{box-sizing:border-box!important}.nuvo-tailwind .box-border{box-sizing:border-box}.nuvo-tailwind .line-clamp-1{-webkit-line-clamp:1}.nuvo-tailwind .line-clamp-1,.nuvo-tailwind .line-clamp-2{-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.nuvo-tailwind .line-clamp-2{-webkit-line-clamp:2}.nuvo-tailwind .line-clamp-4{-webkit-box-orient:vertical;-webkit-line-clamp:4;display:-webkit-box;overflow:hidden}.nuvo-tailwind .block{display:block}.nuvo-tailwind .\\!inline-block{display:inline-block!important}.nuvo-tailwind .inline-block{display:inline-block}.nuvo-tailwind .inline{display:inline}.nuvo-tailwind .flex{display:flex}.nuvo-tailwind .inline-flex{display:inline-flex}.nuvo-tailwind .table{display:table}.nuvo-tailwind .grid{display:grid}.nuvo-tailwind .contents{display:contents}.nuvo-tailwind .hidden{display:none}.nuvo-tailwind .\\!h-1{height:.25rem!important}.nuvo-tailwind .\\!h-4{height:1rem!important}.nuvo-tailwind .\\!h-8{height:2rem!important}.nuvo-tailwind .h-0{height:0}.nuvo-tailwind .h-10{height:2.5rem}.nuvo-tailwind .h-11{height:2.75rem}.nuvo-tailwind .h-12{height:3rem}.nuvo-tailwind .h-16{height:4rem}.nuvo-tailwind .h-2{height:.5rem}.nuvo-tailwind .h-2\\.5{height:11px}.nuvo-tailwind .h-250{height:250px}.nuvo-tailwind .h-26{height:26px}.nuvo-tailwind .h-3{height:.75rem}.nuvo-tailwind .h-38{height:38px}.nuvo-tailwind .h-4{height:1rem}.nuvo-tailwind .h-4\\.5{height:18px}.nuvo-tailwind .h-40{height:10rem}.nuvo-tailwind .h-5{height:1.25rem}.nuvo-tailwind .h-5\\.5{height:22px}.nuvo-tailwind .h-6{height:1.5rem}.nuvo-tailwind .h-60{height:15rem}.nuvo-tailwind .h-7{height:1.75rem}.nuvo-tailwind .h-79{height:79px}.nuvo-tailwind .h-8{height:2rem}.nuvo-tailwind .h-8\\.5{height:34px}.nuvo-tailwind .h-9{height:2.25rem}.nuvo-tailwind .h-\\[17px\\]{height:17px}.nuvo-tailwind .h-auto{height:auto}.nuvo-tailwind .h-fit{height:-moz-fit-content;height:fit-content}.nuvo-tailwind .h-full{height:100%}.nuvo-tailwind .h-px{height:1px}.nuvo-tailwind .h-screen{height:100vh}.nuvo-tailwind .max-h-210{max-height:210px}.nuvo-tailwind .max-h-3\\/4{max-height:75%}.nuvo-tailwind .max-h-60{max-height:60px}.nuvo-tailwind .max-h-80{max-height:20rem}.nuvo-tailwind .max-h-full{max-height:100%}.nuvo-tailwind .\\!min-h-auto{min-height:auto!important}.nuvo-tailwind .min-h-0{min-height:0}.nuvo-tailwind .min-h-10{min-height:40px}.nuvo-tailwind .min-h-2{min-height:8px}.nuvo-tailwind .min-h-40{min-height:40px}.nuvo-tailwind .min-h-400{min-height:400px}.nuvo-tailwind .min-h-42{min-height:42px}.nuvo-tailwind .min-h-500{min-height:500px}.nuvo-tailwind .min-h-57{min-height:57px}.nuvo-tailwind .min-h-77{min-height:77px}.nuvo-tailwind .min-h-\\[14px\\]{min-height:14px}.nuvo-tailwind .min-h-full{min-height:100%}.nuvo-tailwind .\\!w-1{width:.25rem!important}.nuvo-tailwind .\\!w-4{width:1rem!important}.nuvo-tailwind .\\!w-8{width:2rem!important}.nuvo-tailwind .\\!w-full{width:100%!important}.nuvo-tailwind .w-1{width:.25rem}.nuvo-tailwind .w-1\\/2{width:50%}.nuvo-tailwind .w-10{width:2.5rem}.nuvo-tailwind .w-12{width:3rem}.nuvo-tailwind .w-16{width:4rem}.nuvo-tailwind .w-2{width:.5rem}.nuvo-tailwind .w-2\\/4{width:50%}.nuvo-tailwind .w-20{width:5rem}.nuvo-tailwind .w-24{width:6rem}.nuvo-tailwind .w-3{width:.75rem}.nuvo-tailwind .w-3\\.5{width:.875rem}.nuvo-tailwind .w-3\\/5{width:60%}.nuvo-tailwind .w-340{width:340px}.nuvo-tailwind .w-4{width:1rem}.nuvo-tailwind .w-4\\.5{width:18px}.nuvo-tailwind .w-4\\/5{width:80%}.nuvo-tailwind .w-40{width:10rem}.nuvo-tailwind .w-400{width:400px}.nuvo-tailwind .w-44{width:11rem}.nuvo-tailwind .w-5{width:1.25rem}.nuvo-tailwind .w-50{width:182px}.nuvo-tailwind .w-52{width:13rem}.nuvo-tailwind .w-57{width:232px}.nuvo-tailwind .w-6{width:1.5rem}.nuvo-tailwind .w-72{width:18rem}.nuvo-tailwind .w-73{width:304px}.nuvo-tailwind .w-8{width:2rem}.nuvo-tailwind .w-81{width:335px}.nuvo-tailwind .w-9{width:2.25rem}.nuvo-tailwind .w-90{width:360px}.nuvo-tailwind .w-auto{width:auto}.nuvo-tailwind .w-fit{width:-moz-fit-content;width:fit-content}.nuvo-tailwind .w-full{width:100%}.nuvo-tailwind .w-max{width:-moz-max-content;width:max-content}.nuvo-tailwind .min-w-0{min-width:0}.nuvo-tailwind .min-w-2{min-width:8px}.nuvo-tailwind .min-w-240{min-width:240px}.nuvo-tailwind .min-w-50{min-width:182px}.nuvo-tailwind .min-w-52{min-width:200px}.nuvo-tailwind .min-w-\\[14px\\]{min-width:14px}.nuvo-tailwind .\\!max-w-lg{max-width:32rem!important}.nuvo-tailwind .\\!max-w-none{max-width:none!important}.nuvo-tailwind .max-w-240{max-width:240px}.nuvo-tailwind .max-w-251{max-width:251px}.nuvo-tailwind .max-w-268{max-width:268px}.nuvo-tailwind .max-w-272{max-width:272px}.nuvo-tailwind .max-w-2xs{max-width:336px}.nuvo-tailwind .max-w-355{max-width:355px}.nuvo-tailwind .max-w-372{max-width:372px}.nuvo-tailwind .max-w-420{max-width:420px}.nuvo-tailwind .max-w-6xl{max-width:72rem}.nuvo-tailwind .max-w-full{max-width:100%}.nuvo-tailwind .max-w-md{max-width:28rem}.nuvo-tailwind .max-w-screen-3xl{max-width:1735px}.nuvo-tailwind .flex-1{flex:1 1 0%}.nuvo-tailwind .flex-auto{flex:1 1 auto}.nuvo-tailwind .flex-shrink{flex-shrink:1}.nuvo-tailwind .flex-shrink-0,.nuvo-tailwind .shrink-0{flex-shrink:0}.nuvo-tailwind .flex-grow{flex-grow:1}.nuvo-tailwind .-translate-x-1\\/2{--tw-translate-x:-50%}.nuvo-tailwind .-translate-x-1\\/2,.nuvo-tailwind .-translate-y-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.nuvo-tailwind .-translate-y-1\\/2{--tw-translate-y:-50%}.nuvo-tailwind .-rotate-90{--tw-rotate:-90deg}.nuvo-tailwind .-rotate-90,.nuvo-tailwind .rotate-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.nuvo-tailwind .rotate-0{--tw-rotate:0deg}.nuvo-tailwind .rotate-180{--tw-rotate:180deg}.nuvo-tailwind .rotate-180,.nuvo-tailwind .rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.nuvo-tailwind .rotate-90{--tw-rotate:90deg}.nuvo-tailwind .scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.nuvo-tailwind .scale-95,.nuvo-tailwind .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.nuvo-tailwind .animate-fade{animation:fade .5s ease}@keyframes pulse{50%{opacity:.5}}.nuvo-tailwind .animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.nuvo-tailwind .\\!cursor-pointer{cursor:pointer!important}.nuvo-tailwind .cursor-default{cursor:default}.nuvo-tailwind .cursor-move{cursor:move}.nuvo-tailwind .cursor-not-allowed{cursor:not-allowed}.nuvo-tailwind .cursor-pointer{cursor:pointer}.nuvo-tailwind .resize{resize:both}.nuvo-tailwind .list-disc{list-style-type:disc}.nuvo-tailwind .grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.nuvo-tailwind .flex-row{flex-direction:row}.nuvo-tailwind .flex-col{flex-direction:column}.nuvo-tailwind .flex-wrap{flex-wrap:wrap}.nuvo-tailwind .flex-nowrap{flex-wrap:nowrap}.nuvo-tailwind .items-start{align-items:flex-start}.nuvo-tailwind .items-end{align-items:flex-end}.nuvo-tailwind .items-center{align-items:center}.nuvo-tailwind .items-baseline{align-items:baseline}.nuvo-tailwind .\\!items-stretch{align-items:stretch!important}.nuvo-tailwind .items-stretch{align-items:stretch}.nuvo-tailwind .justify-start{justify-content:flex-start}.nuvo-tailwind .justify-end{justify-content:flex-end}.nuvo-tailwind .justify-center{justify-content:center}.nuvo-tailwind .justify-between{justify-content:space-between}.nuvo-tailwind .gap-1{gap:.25rem}.nuvo-tailwind .gap-2{gap:.5rem}.nuvo-tailwind .gap-3{gap:.75rem}.nuvo-tailwind .gap-4{gap:1rem}.nuvo-tailwind .gap-x-8{-moz-column-gap:2rem;column-gap:2rem}.nuvo-tailwind .gap-y-3{row-gap:.75rem}.nuvo-tailwind .space-x-0>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(0px*(1 - var(--tw-space-x-reverse)));margin-right:calc(0px*var(--tw-space-x-reverse))}.nuvo-tailwind .space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.25rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.25rem*var(--tw-space-x-reverse))}.nuvo-tailwind .space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.nuvo-tailwind .space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1rem*var(--tw-space-x-reverse))}.nuvo-tailwind .space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.25rem*var(--tw-space-y-reverse));margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)))}.nuvo-tailwind .space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.75rem*var(--tw-space-y-reverse));margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)))}.nuvo-tailwind .space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.nuvo-tailwind .space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse));margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))}.nuvo-tailwind .divide-y-1>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}.nuvo-tailwind .overflow-auto{overflow:auto}.nuvo-tailwind .overflow-hidden{overflow:hidden}.nuvo-tailwind .overflow-visible{overflow:visible}.nuvo-tailwind .overflow-x-auto{overflow-x:auto}.nuvo-tailwind .overflow-y-auto{overflow-y:auto}.nuvo-tailwind .overflow-x-hidden{overflow-x:hidden}.nuvo-tailwind .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nuvo-tailwind .text-ellipsis{text-overflow:ellipsis}.nuvo-tailwind .whitespace-nowrap{white-space:nowrap}.nuvo-tailwind .whitespace-pre-line{white-space:pre-line}.nuvo-tailwind .break-words{overflow-wrap:break-word}.nuvo-tailwind .break-all{word-break:break-all}.nuvo-tailwind .\\!rounded-medium{border-radius:4px!important}.nuvo-tailwind .rounded{border-radius:3px}.nuvo-tailwind .rounded-2lg{border-radius:10px}.nuvo-tailwind .rounded-2xl{border-radius:1rem}.nuvo-tailwind .rounded-full{border-radius:9999px}.nuvo-tailwind .rounded-lg{border-radius:.5rem}.nuvo-tailwind .rounded-md{border-radius:.375rem}.nuvo-tailwind .rounded-medium{border-radius:4px}.nuvo-tailwind .rounded-b-lg{border-bottom-left-radius:.5rem;border-bottom-right-radius:.5rem}.nuvo-tailwind .rounded-b-medium{border-bottom-left-radius:4px;border-bottom-right-radius:4px}.nuvo-tailwind .rounded-t-medium{border-top-left-radius:4px;border-top-right-radius:4px}.nuvo-tailwind .\\!border-0{border-width:0!important}.nuvo-tailwind .\\!border-2{border-width:2px!important}.nuvo-tailwind .border{border-width:1px}.nuvo-tailwind .border-0{border-width:0}.nuvo-tailwind .border-1{border-width:1px}.nuvo-tailwind .border-2{border-width:2px}.nuvo-tailwind .border-b{border-bottom-width:1px}.nuvo-tailwind .border-b-0{border-bottom-width:0}.nuvo-tailwind .border-b-1{border-bottom-width:1px}.nuvo-tailwind .border-l-0{border-left-width:0}.nuvo-tailwind .border-l-4{border-left-width:4px}.nuvo-tailwind .border-r-0{border-right-width:0}.nuvo-tailwind .border-r-1{border-right-width:1px}.nuvo-tailwind .border-t-0{border-top-width:0}.nuvo-tailwind .border-t-1{border-top-width:1px}.nuvo-tailwind .border-dashed{border-style:dashed}.nuvo-tailwind .border-none{border-style:none}.nuvo-tailwind .border-blue-dark-50{--tw-border-opacity:1;border-color:rgb(239 243 249/var(--tw-border-opacity))}.nuvo-tailwind .border-blue-dark-800{--tw-border-opacity:1;border-color:rgb(40 64 103/var(--tw-border-opacity))}.nuvo-tailwind .border-blue-dark-900{--tw-border-opacity:1;border-color:rgb(22 35 56/var(--tw-border-opacity))}.nuvo-tailwind .border-blue-light-100{--tw-border-opacity:1;border-color:rgb(224 234 253/var(--tw-border-opacity))}.nuvo-tailwind .border-blue-light-50{--tw-border-opacity:1;border-color:rgb(245 248 254/var(--tw-border-opacity))}.nuvo-tailwind .border-danger{--tw-border-opacity:1;border-color:rgb(208 2 27/var(--tw-border-opacity))}.nuvo-tailwind .border-gray-100{--tw-border-opacity:1;border-color:rgb(244 245 246/var(--tw-border-opacity))}.nuvo-tailwind .border-gray-120{--tw-border-opacity:1;border-color:rgb(242 242 242/var(--tw-border-opacity))}.nuvo-tailwind .border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.nuvo-tailwind .border-gray-210{--tw-border-opacity:1;border-color:rgb(225 225 225/var(--tw-border-opacity))}.nuvo-tailwind .border-gray-250{--tw-border-opacity:1;border-color:rgb(221 221 221/var(--tw-border-opacity))}.nuvo-tailwind .border-gray-260{--tw-border-opacity:1;border-color:rgb(197 197 197/var(--tw-border-opacity))}.nuvo-tailwind .border-gray-300{--tw-border-opacity:1;border-color:rgb(179 188 192/var(--tw-border-opacity))}.nuvo-tailwind .border-gray-450{--tw-border-opacity:1;border-color:rgb(201 207 210/var(--tw-border-opacity))}.nuvo-tailwind .border-gray-50{--tw-border-opacity:1;border-color:rgb(251 251 251/var(--tw-border-opacity))}.nuvo-tailwind .border-gray-560{--tw-border-opacity:1;border-color:rgb(141 141 141/var(--tw-border-opacity))}.nuvo-tailwind .border-gray-660{--tw-border-opacity:1;border-color:rgb(56 56 56/var(--tw-border-opacity))}.nuvo-tailwind .border-gray-700{--tw-border-opacity:1;border-color:rgb(84 84 84/var(--tw-border-opacity))}.nuvo-tailwind .border-ingestro-border-default{--tw-border-opacity:1;border-color:rgb(208 219 237/var(--tw-border-opacity))}.nuvo-tailwind .border-ingestro-neutral-100{--tw-border-opacity:1;border-color:rgb(242 242 242/var(--tw-border-opacity))}.nuvo-tailwind .border-ingestro-neutral-200{--tw-border-opacity:1;border-color:rgb(225 225 225/var(--tw-border-opacity))}.nuvo-tailwind .border-primary{--tw-border-opacity:1;border-color:rgb(13 39 55/var(--tw-border-opacity))}.nuvo-tailwind .border-red-510{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity))}.nuvo-tailwind .border-salmon-500{--tw-border-opacity:1;border-color:rgb(237 112 112/var(--tw-border-opacity))}.nuvo-tailwind .border-transparent{border-color:transparent}.nuvo-tailwind .border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.nuvo-tailwind .border-yellow-500{--tw-border-opacity:1;border-color:rgb(255 193 22/var(--tw-border-opacity))}.nuvo-tailwind .border-yellow-800{--tw-border-opacity:1;border-color:rgb(133 77 14/var(--tw-border-opacity))}.nuvo-tailwind .\\!bg-gray-120{--tw-bg-opacity:1!important;background-color:rgb(242 242 242/var(--tw-bg-opacity))!important}.nuvo-tailwind .\\!bg-salmon-100{--tw-bg-opacity:1!important;background-color:rgb(252 234 234/var(--tw-bg-opacity))!important}.nuvo-tailwind .\\!bg-salmon-200{--tw-bg-opacity:1!important;background-color:rgb(250 212 212/var(--tw-bg-opacity))!important}.nuvo-tailwind .\\!bg-transparent{background-color:transparent!important}.nuvo-tailwind .bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.nuvo-tailwind .bg-blue-dark-100{--tw-bg-opacity:1;background-color:rgb(208 219 237/var(--tw-bg-opacity))}.nuvo-tailwind .bg-blue-dark-400{--tw-bg-opacity:1;background-color:rgb(115 148 200/var(--tw-bg-opacity))}.nuvo-tailwind .bg-blue-dark-50{--tw-bg-opacity:1;background-color:rgb(239 243 249/var(--tw-bg-opacity))}.nuvo-tailwind .bg-blue-dark-500{--tw-bg-opacity:1;background-color:rgb(84 124 188/var(--tw-bg-opacity))}.nuvo-tailwind .bg-blue-dark-800{--tw-bg-opacity:1;background-color:rgb(40 64 103/var(--tw-bg-opacity))}.nuvo-tailwind .bg-blue-light-100{--tw-bg-opacity:1;background-color:rgb(224 234 253/var(--tw-bg-opacity))}.nuvo-tailwind .bg-blue-light-50{--tw-bg-opacity:1;background-color:rgb(245 248 254/var(--tw-bg-opacity))}.nuvo-tailwind .bg-blue-light-500{--tw-bg-opacity:1;background-color:rgb(92 142 242/var(--tw-bg-opacity))}.nuvo-tailwind .bg-blue-light-900{--tw-bg-opacity:1;background-color:rgb(8 37 97/var(--tw-bg-opacity))}.nuvo-tailwind .bg-danger-light{--tw-bg-opacity:1;background-color:rgb(250 229 232/var(--tw-bg-opacity))}.nuvo-tailwind .bg-gray-100{--tw-bg-opacity:1;background-color:rgb(244 245 246/var(--tw-bg-opacity))}.nuvo-tailwind .bg-gray-120{--tw-bg-opacity:1;background-color:rgb(242 242 242/var(--tw-bg-opacity))}.nuvo-tailwind .bg-gray-150{--tw-bg-opacity:1;background-color:rgb(241 241 245/var(--tw-bg-opacity))}.nuvo-tailwind .bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.nuvo-tailwind .bg-gray-300{--tw-bg-opacity:1;background-color:rgb(179 188 192/var(--tw-bg-opacity))}.nuvo-tailwind .bg-gray-450{--tw-bg-opacity:1;background-color:rgb(201 207 210/var(--tw-bg-opacity))}.nuvo-tailwind .bg-gray-50{--tw-bg-opacity:1;background-color:rgb(251 251 251/var(--tw-bg-opacity))}.nuvo-tailwind .bg-gray-560{--tw-bg-opacity:1;background-color:rgb(141 141 141/var(--tw-bg-opacity))}.nuvo-tailwind .bg-gray-660{--tw-bg-opacity:1;background-color:rgb(56 56 56/var(--tw-bg-opacity))}.nuvo-tailwind .bg-gray-700{--tw-bg-opacity:1;background-color:rgb(84 84 84/var(--tw-bg-opacity))}.nuvo-tailwind .bg-info-gray{--tw-bg-opacity:1;background-color:rgb(103 117 124/var(--tw-bg-opacity))}.nuvo-tailwind .bg-ingestro-bg-hover{--tw-bg-opacity:1;background-color:rgb(245 247 250/var(--tw-bg-opacity))}.nuvo-tailwind .bg-ingestro-neutral-100{--tw-bg-opacity:1;background-color:rgb(242 242 242/var(--tw-bg-opacity))}.nuvo-tailwind .bg-ingestro-primary-900{--tw-bg-opacity:1;background-color:rgb(22 35 56/var(--tw-bg-opacity))}.nuvo-tailwind .bg-primary{--tw-bg-opacity:1;background-color:rgb(13 39 55/var(--tw-bg-opacity))}.nuvo-tailwind .bg-priority-bg{--tw-bg-opacity:1;background-color:rgb(249 249 249/var(--tw-bg-opacity))}.nuvo-tailwind .bg-red-510{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.nuvo-tailwind .bg-red-60{--tw-bg-opacity:1;background-color:rgb(252 242 243/var(--tw-bg-opacity))}.nuvo-tailwind .bg-salmon-100{--tw-bg-opacity:1;background-color:rgb(252 234 234/var(--tw-bg-opacity))}.nuvo-tailwind .bg-salmon-500{--tw-bg-opacity:1;background-color:rgb(237 112 112/var(--tw-bg-opacity))}.nuvo-tailwind .bg-transparent{background-color:transparent}.nuvo-tailwind .bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.nuvo-tailwind .bg-yellow-200{--tw-bg-opacity:1;background-color:rgb(255 232 168/var(--tw-bg-opacity))}.nuvo-tailwind .bg-yellow-500{--tw-bg-opacity:1;background-color:rgb(255 193 22/var(--tw-bg-opacity))}.nuvo-tailwind .bg-opacity-40{--tw-bg-opacity:0.4}.nuvo-tailwind .bg-opacity-50{--tw-bg-opacity:0.5}.nuvo-tailwind .bg-opacity-60{--tw-bg-opacity:0.6}.nuvo-tailwind .bg-opacity-75{--tw-bg-opacity:0.75}.nuvo-tailwind .bg-contain{background-size:contain}.nuvo-tailwind .bg-center{background-position:50%}.nuvo-tailwind .bg-no-repeat{background-repeat:no-repeat}.nuvo-tailwind .object-contain{-o-object-fit:contain;object-fit:contain}.nuvo-tailwind .\\!p-0{padding:0!important}.nuvo-tailwind .p-1{padding:.25rem}.nuvo-tailwind .p-10{padding:2.5rem}.nuvo-tailwind .p-2{padding:.5rem}.nuvo-tailwind .p-2\\.5{padding:9.5px}.nuvo-tailwind .p-3{padding:.75rem}.nuvo-tailwind .p-4{padding:1rem}.nuvo-tailwind .p-6{padding:1.5rem}.nuvo-tailwind .p-8{padding:2rem}.nuvo-tailwind .\\!px-0{padding-left:0!important;padding-right:0!important}.nuvo-tailwind .\\!px-2{padding-left:.5rem!important;padding-right:.5rem!important}.nuvo-tailwind .\\!px-3{padding-left:.75rem!important;padding-right:.75rem!important}.nuvo-tailwind .\\!px-4{padding-left:1rem!important;padding-right:1rem!important}.nuvo-tailwind .\\!px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}.nuvo-tailwind .\\!px-8{padding-left:2rem!important;padding-right:2rem!important}.nuvo-tailwind .px-0{padding-left:0;padding-right:0}.nuvo-tailwind .px-1{padding-left:.25rem;padding-right:.25rem}.nuvo-tailwind .px-1\\.5{padding-left:.375rem;padding-right:.375rem}.nuvo-tailwind .px-2{padding-left:.5rem;padding-right:.5rem}.nuvo-tailwind .px-2\\.5{padding-left:9.5px;padding-right:9.5px}.nuvo-tailwind .px-3{padding-left:.75rem;padding-right:.75rem}.nuvo-tailwind .px-4{padding-left:1rem;padding-right:1rem}.nuvo-tailwind .px-6{padding-left:1.5rem;padding-right:1.5rem}.nuvo-tailwind .px-7{padding-left:1.75rem;padding-right:1.75rem}.nuvo-tailwind .px-8{padding-left:2rem;padding-right:2rem}.nuvo-tailwind .py-0{padding-bottom:0;padding-top:0}.nuvo-tailwind .py-0\\.5{padding-bottom:.125rem;padding-top:.125rem}.nuvo-tailwind .py-1{padding-bottom:.25rem;padding-top:.25rem}.nuvo-tailwind .py-1\\.5{padding-bottom:.375rem;padding-top:.375rem}.nuvo-tailwind .py-10px{padding-bottom:10px;padding-top:10px}.nuvo-tailwind .py-12{padding-bottom:3rem;padding-top:3rem}.nuvo-tailwind .py-2{padding-bottom:.5rem;padding-top:.5rem}.nuvo-tailwind .py-2\\.3{padding-bottom:6px;padding-top:6px}.nuvo-tailwind .py-2\\.5{padding-bottom:9.5px;padding-top:9.5px}.nuvo-tailwind .py-24{padding-bottom:6rem;padding-top:6rem}.nuvo-tailwind .py-3{padding-bottom:.75rem;padding-top:.75rem}.nuvo-tailwind .py-4{padding-bottom:1rem;padding-top:1rem}.nuvo-tailwind .py-5{padding-bottom:1.25rem;padding-top:1.25rem}.nuvo-tailwind .py-6{padding-bottom:1.5rem;padding-top:1.5rem}.nuvo-tailwind .py-7{padding-bottom:1.75rem;padding-top:1.75rem}.nuvo-tailwind .py-sm{padding-bottom:6px;padding-top:6px}.nuvo-tailwind .\\!pb-0{padding-bottom:0!important}.nuvo-tailwind .\\!pb-2{padding-bottom:.5rem!important}.nuvo-tailwind .\\!pb-3{padding-bottom:.75rem!important}.nuvo-tailwind .pb-0{padding-bottom:0}.nuvo-tailwind .pb-0\\.5{padding-bottom:.125rem}.nuvo-tailwind .pb-1{padding-bottom:.25rem}.nuvo-tailwind .pb-2{padding-bottom:.5rem}.nuvo-tailwind .pb-24{padding-bottom:6rem}.nuvo-tailwind .pb-3{padding-bottom:.75rem}.nuvo-tailwind .pb-32{padding-bottom:8rem}.nuvo-tailwind .pb-4{padding-bottom:1rem}.nuvo-tailwind .pb-4\\.5{padding-bottom:18px}.nuvo-tailwind .pb-6{padding-bottom:1.5rem}.nuvo-tailwind .pb-8{padding-bottom:2rem}.nuvo-tailwind .pl-0{padding-left:0}.nuvo-tailwind .pl-0\\.5{padding-left:.125rem}.nuvo-tailwind .pl-1{padding-left:.25rem}.nuvo-tailwind .pl-2{padding-left:.5rem}.nuvo-tailwind .pl-3{padding-left:.75rem}.nuvo-tailwind .pl-3\\.5{padding-left:.875rem}.nuvo-tailwind .pl-4{padding-left:1rem}.nuvo-tailwind .pl-4\\.5{padding-left:18px}.nuvo-tailwind .pl-8{padding-left:2rem}.nuvo-tailwind .pr-1{padding-right:.25rem}.nuvo-tailwind .pr-10{padding-right:2.5rem}.nuvo-tailwind .pr-12{padding-right:3rem}.nuvo-tailwind .pr-2{padding-right:.5rem}.nuvo-tailwind .pr-2\\.5{padding-right:9.5px}.nuvo-tailwind .pr-3{padding-right:.75rem}.nuvo-tailwind .pr-4{padding-right:1rem}.nuvo-tailwind .pr-5{padding-right:1.25rem}.nuvo-tailwind .pr-6{padding-right:1.5rem}.nuvo-tailwind .pr-7{padding-right:1.75rem}.nuvo-tailwind .pr-8{padding-right:2rem}.nuvo-tailwind .pt-0{padding-top:0}.nuvo-tailwind .pt-1{padding-top:.25rem}.nuvo-tailwind .pt-10{padding-top:2.5rem}.nuvo-tailwind .pt-2{padding-top:.5rem}.nuvo-tailwind .pt-22\\.5{padding-top:90px}.nuvo-tailwind .pt-3{padding-top:.75rem}.nuvo-tailwind .pt-4{padding-top:1rem}.nuvo-tailwind .pt-4\\.5{padding-top:18px}.nuvo-tailwind .pt-6{padding-top:1.5rem}.nuvo-tailwind .pt-8{padding-top:2rem}.nuvo-tailwind .text-left{text-align:left}.nuvo-tailwind .text-center{text-align:center}.nuvo-tailwind .text-right{text-align:right}.nuvo-tailwind .text-start{text-align:start}.nuvo-tailwind .align-top{vertical-align:top}.nuvo-tailwind .align-middle{vertical-align:middle}.nuvo-tailwind .align-bottom{vertical-align:bottom}.nuvo-tailwind .\\!text-lg{font-size:18px!important;letter-spacing:0!important;line-height:1.43!important}.nuvo-tailwind .\\!text-xs{font-size:.75rem!important;line-height:1rem!important}.nuvo-tailwind .text-2xl{font-size:23px;letter-spacing:-.46px;line-height:1.25}.nuvo-tailwind .text-4\\.5xl{font-size:39px;letter-spacing:-.78px;line-height:1.25}.nuvo-tailwind .text-\\[22px\\]{font-size:22px}.nuvo-tailwind .text-base{font-size:16px;letter-spacing:0;line-height:1.43}.nuvo-tailwind .text-lg{font-size:18px;letter-spacing:0;line-height:1.43}.nuvo-tailwind .text-sbase{font-size:15px;letter-spacing:0;line-height:1.43}.nuvo-tailwind .text-sm{font-size:.875rem;line-height:1.25rem}.nuvo-tailwind .text-small{font-size:12px;letter-spacing:0;line-height:1.43}.nuvo-tailwind .text-xl{font-size:20px;letter-spacing:0;line-height:1.43}.nuvo-tailwind .text-xs{font-size:.75rem;line-height:1rem}.nuvo-tailwind .text-xsmall{font-size:14px;letter-spacing:0;line-height:17px}.nuvo-tailwind .text-xss{font-size:10px;letter-spacing:.2px;line-height:1.43}.nuvo-tailwind .text-xssmall{font-size:13px;letter-spacing:0;line-height:1.43}.nuvo-tailwind .\\!font-normal{font-weight:400!important}.nuvo-tailwind .font-bold{font-weight:700}.nuvo-tailwind .font-light{font-weight:300}.nuvo-tailwind .font-medium{font-weight:500}.nuvo-tailwind .font-normal{font-weight:400}.nuvo-tailwind .font-semibold{font-weight:600}.nuvo-tailwind .uppercase{text-transform:uppercase}.nuvo-tailwind .lowercase{text-transform:lowercase}.nuvo-tailwind .capitalize{text-transform:capitalize}.nuvo-tailwind .italic{font-style:italic}.nuvo-tailwind .ordinal{--tw-ordinal:ordinal;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.nuvo-tailwind .\\!leading-3{line-height:.75rem!important}.nuvo-tailwind .\\!leading-3\\.5{line-height:14px!important}.nuvo-tailwind .\\!leading-5{line-height:1.25rem!important}.nuvo-tailwind .\\!leading-5\\.5{line-height:17px!important}.nuvo-tailwind .leading-3{line-height:.75rem}.nuvo-tailwind .leading-3\\.5{line-height:14px}.nuvo-tailwind .leading-4{line-height:1rem}.nuvo-tailwind .leading-4\\.5{line-height:15px}.nuvo-tailwind .leading-5{line-height:1.25rem}.nuvo-tailwind .leading-5\\.5{line-height:17px}.nuvo-tailwind .leading-6{line-height:1.5rem}.nuvo-tailwind .leading-8{line-height:2rem}.nuvo-tailwind .leading-none{line-height:1}.nuvo-tailwind .tracking-wide{letter-spacing:.025em}.nuvo-tailwind .\\!text-gray-260{--tw-text-opacity:1!important;color:rgb(197 197 197/var(--tw-text-opacity))!important}.nuvo-tailwind .\\!text-gray-50{--tw-text-opacity:1!important;color:rgb(251 251 251/var(--tw-text-opacity))!important}.nuvo-tailwind .\\!text-gray-510{--tw-text-opacity:1!important;color:rgb(136 149 156/var(--tw-text-opacity))!important}.nuvo-tailwind .\\!text-gray-560{--tw-text-opacity:1!important;color:rgb(141 141 141/var(--tw-text-opacity))!important}.nuvo-tailwind .\\!text-neutral-600{--tw-text-opacity:1!important;color:rgb(113 113 113/var(--tw-text-opacity))!important}.nuvo-tailwind .\\!text-neutral-gray{--tw-text-opacity:1!important;color:rgb(45 45 45/var(--tw-text-opacity))!important}.nuvo-tailwind .\\!text-salmon-500{--tw-text-opacity:1!important;color:rgb(237 112 112/var(--tw-text-opacity))!important}.nuvo-tailwind .text-blue-dark-900{--tw-text-opacity:1;color:rgb(22 35 56/var(--tw-text-opacity))}.nuvo-tailwind .text-blue-light-500{--tw-text-opacity:1;color:rgb(92 142 242/var(--tw-text-opacity))}.nuvo-tailwind .text-blue-light-600{--tw-text-opacity:1;color:rgb(53 115 239/var(--tw-text-opacity))}.nuvo-tailwind .text-danger{--tw-text-opacity:1;color:rgb(208 2 27/var(--tw-text-opacity))}.nuvo-tailwind .text-gray-200{--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity))}.nuvo-tailwind .text-gray-260{--tw-text-opacity:1;color:rgb(197 197 197/var(--tw-text-opacity))}.nuvo-tailwind .text-gray-310{--tw-text-opacity:1;color:rgb(44 50 53/var(--tw-text-opacity))}.nuvo-tailwind .text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.nuvo-tailwind .text-gray-410{--tw-text-opacity:1;color:rgb(169 169 169/var(--tw-text-opacity))}.nuvo-tailwind .text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.nuvo-tailwind .text-gray-510{--tw-text-opacity:1;color:rgb(136 149 156/var(--tw-text-opacity))}.nuvo-tailwind .text-gray-560{--tw-text-opacity:1;color:rgb(141 141 141/var(--tw-text-opacity))}.nuvo-tailwind .text-gray-660{--tw-text-opacity:1;color:rgb(56 56 56/var(--tw-text-opacity))}.nuvo-tailwind .text-gray-700{--tw-text-opacity:1;color:rgb(84 84 84/var(--tw-text-opacity))}.nuvo-tailwind .text-gray-800{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.nuvo-tailwind .text-gray-970{--tw-text-opacity:1;color:rgb(113 113 113/var(--tw-text-opacity))}.nuvo-tailwind .text-green-400{--tw-text-opacity:1;color:rgb(52 211 153/var(--tw-text-opacity))}.nuvo-tailwind .text-green-510{--tw-text-opacity:1;color:rgb(16 185 129/var(--tw-text-opacity))}.nuvo-tailwind .text-ingestro-neutral-600{--tw-text-opacity:1;color:rgb(113 113 113/var(--tw-text-opacity))}.nuvo-tailwind .text-ingestro-neutral-900{--tw-text-opacity:1;color:rgb(45 45 45/var(--tw-text-opacity))}.nuvo-tailwind .text-ingestro-primary-500{--tw-text-opacity:1;color:rgb(92 142 242/var(--tw-text-opacity))}.nuvo-tailwind .text-ingestro-primary-900{--tw-text-opacity:1;color:rgb(22 35 56/var(--tw-text-opacity))}.nuvo-tailwind .text-neutral-600{--tw-text-opacity:1;color:rgb(113 113 113/var(--tw-text-opacity))}.nuvo-tailwind .text-neutral-gray{--tw-text-opacity:1;color:rgb(45 45 45/var(--tw-text-opacity))}.nuvo-tailwind .text-primary{--tw-text-opacity:1;color:rgb(13 39 55/var(--tw-text-opacity))}.nuvo-tailwind .text-red-500,.nuvo-tailwind .text-red-510{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.nuvo-tailwind .text-salmon-50{--tw-text-opacity:1;color:rgb(254 248 248/var(--tw-text-opacity))}.nuvo-tailwind .text-salmon-500{--tw-text-opacity:1;color:rgb(237 112 112/var(--tw-text-opacity))}.nuvo-tailwind .text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.nuvo-tailwind .text-yellow-800{--tw-text-opacity:1;color:rgb(133 77 14/var(--tw-text-opacity))}.nuvo-tailwind .underline{text-decoration-line:underline}.nuvo-tailwind .placeholder-gray-410::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(169 169 169/var(--tw-placeholder-opacity))}.nuvo-tailwind .placeholder-gray-410::placeholder{--tw-placeholder-opacity:1;color:rgb(169 169 169/var(--tw-placeholder-opacity))}.nuvo-tailwind .placeholder-gray-560::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(141 141 141/var(--tw-placeholder-opacity))}.nuvo-tailwind .placeholder-gray-560::placeholder{--tw-placeholder-opacity:1;color:rgb(141 141 141/var(--tw-placeholder-opacity))}.nuvo-tailwind .\\!opacity-100{opacity:1!important}.nuvo-tailwind .opacity-0{opacity:0}.nuvo-tailwind .opacity-100{opacity:1}.nuvo-tailwind .opacity-20{opacity:.2}.nuvo-tailwind .opacity-40{opacity:.4}.nuvo-tailwind .opacity-50{opacity:.5}.nuvo-tailwind .shadow-card{--tw-shadow:0px 10px 20px rgba(33,75,134,.09);--tw-shadow-colored:0px 10px 20px var(--tw-shadow-color)}.nuvo-tailwind .shadow-card,.nuvo-tailwind .shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.nuvo-tailwind .shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.nuvo-tailwind .shadow-none{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000}.nuvo-tailwind .shadow-none,.nuvo-tailwind .shadow-xl{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.nuvo-tailwind .shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color)}.nuvo-tailwind .outline-none{outline:2px solid transparent;outline-offset:2px}.nuvo-tailwind .outline{outline-style:solid}.nuvo-tailwind .ring-transparent{--tw-ring-color:transparent}.nuvo-tailwind .blur{--tw-blur:blur(8px)}.nuvo-tailwind .blur,.nuvo-tailwind .drop-shadow{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.nuvo-tailwind .drop-shadow{--tw-drop-shadow:drop-shadow(0 1px 2px rgba(0,0,0,.1)) drop-shadow(0 1px 1px rgba(0,0,0,.06))}.nuvo-tailwind .grayscale{--tw-grayscale:grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.nuvo-tailwind .\\!filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.nuvo-tailwind .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.nuvo-tailwind .backdrop-filter{backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.nuvo-tailwind .transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.nuvo-tailwind .transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.nuvo-tailwind .transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.nuvo-tailwind .transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.nuvo-tailwind .transition-width{transition-duration:.15s;transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1)}.nuvo-tailwind .duration-300{transition-duration:.3s}.nuvo-tailwind .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.nuvo-tailwind .ease-linear{transition-timing-function:linear}.nuvo-tailwind .ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.nuvo-tailwind .will-change-auto{will-change:auto}.nuvo-tailwind .will-change-transform{will-change:transform}.nuvo-tailwind .last\\:rounded-b-medium:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px}.nuvo-tailwind .hover\\:border-blue-light-300:hover{--tw-border-opacity:1;border-color:rgb(163 191 248/var(--tw-border-opacity))}.nuvo-tailwind .hover\\:border-ingestro-border-hover:hover{--tw-border-opacity:1;border-color:rgb(168 188 224/var(--tw-border-opacity))}.nuvo-tailwind .hover\\:border-salmon-700:hover{--tw-border-opacity:1;border-color:rgb(186 23 23/var(--tw-border-opacity))}.nuvo-tailwind .hover\\:border-yellow-700:hover{--tw-border-opacity:1;border-color:rgb(161 98 7/var(--tw-border-opacity))}.nuvo-tailwind .hover\\:bg-blue-dark-50:hover{--tw-bg-opacity:1;background-color:rgb(239 243 249/var(--tw-bg-opacity))}.nuvo-tailwind .hover\\:bg-blue-light-100:hover{--tw-bg-opacity:1;background-color:rgb(224 234 253/var(--tw-bg-opacity))}.nuvo-tailwind .hover\\:bg-blue-light-200:hover{--tw-bg-opacity:1;background-color:rgb(194 213 250/var(--tw-bg-opacity))}.nuvo-tailwind .hover\\:bg-blue-light-50:hover{--tw-bg-opacity:1;background-color:rgb(245 248 254/var(--tw-bg-opacity))}.nuvo-tailwind .hover\\:bg-blue-light-700:hover{--tw-bg-opacity:1;background-color:rgb(17 82 213/var(--tw-bg-opacity))}.nuvo-tailwind .hover\\:bg-blue-light-800:hover{--tw-bg-opacity:1;background-color:rgb(12 60 155/var(--tw-bg-opacity))}.nuvo-tailwind .hover\\:bg-gray-110:hover{--tw-bg-opacity:1;background-color:rgb(245 245 245/var(--tw-bg-opacity))}.nuvo-tailwind .hover\\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgb(251 251 251/var(--tw-bg-opacity))}.nuvo-tailwind .hover\\:bg-gray-55:hover{--tw-bg-opacity:1;background-color:rgb(249 249 249/var(--tw-bg-opacity))}.nuvo-tailwind .hover\\:bg-ingestro-bg-hover:hover{--tw-bg-opacity:1;background-color:rgb(245 247 250/var(--tw-bg-opacity))}.nuvo-tailwind .hover\\:bg-ingestro-neutral-50:hover{--tw-bg-opacity:1;background-color:rgb(251 251 251/var(--tw-bg-opacity))}.nuvo-tailwind .hover\\:text-\\[\\#1b1b1b\\]:hover{--tw-text-opacity:1;color:rgb(27 27 27/var(--tw-text-opacity))}.nuvo-tailwind .hover\\:text-blue-dark-900:hover{--tw-text-opacity:1;color:rgb(22 35 56/var(--tw-text-opacity))}.nuvo-tailwind .hover\\:text-blue-light-500:hover{--tw-text-opacity:1;color:rgb(92 142 242/var(--tw-text-opacity))}.nuvo-tailwind .hover\\:text-blue-light-700:hover{--tw-text-opacity:1;color:rgb(17 82 213/var(--tw-text-opacity))}.nuvo-tailwind .hover\\:text-gray-500:hover{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.nuvo-tailwind .hover\\:text-gray-560:hover{--tw-text-opacity:1;color:rgb(141 141 141/var(--tw-text-opacity))}.nuvo-tailwind .hover\\:text-gray-970:hover{--tw-text-opacity:1;color:rgb(113 113 113/var(--tw-text-opacity))}.nuvo-tailwind .hover\\:opacity-100:hover{opacity:1}.nuvo-tailwind .hover\\:opacity-90:hover{opacity:.9}.nuvo-tailwind .focus\\:border-blue-dark-900:focus{--tw-border-opacity:1;border-color:rgb(22 35 56/var(--tw-border-opacity))}.nuvo-tailwind .focus\\:border-danger:focus{--tw-border-opacity:1;border-color:rgb(208 2 27/var(--tw-border-opacity))}.nuvo-tailwind .focus\\:border-ingestro-border-focus:focus{--tw-border-opacity:1;border-color:rgb(92 142 242/var(--tw-border-opacity))}.nuvo-tailwind .focus\\:border-primary:focus{--tw-border-opacity:1;border-color:rgb(13 39 55/var(--tw-border-opacity))}.nuvo-tailwind .focus\\:border-yellow-800:focus{--tw-border-opacity:1;border-color:rgb(133 77 14/var(--tw-border-opacity))}.nuvo-tailwind .focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.nuvo-tailwind .focus\\:ring-0:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.nuvo-tailwind .focus\\:ring-white:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(255 255 255/var(--tw-ring-opacity))}.nuvo-tailwind .hover\\:enabled\\:bg-ingestro-primary-700:enabled:hover{--tw-bg-opacity:1;background-color:rgb(52 83 134/var(--tw-bg-opacity))}.nuvo-tailwind .disabled\\:cursor-auto:disabled{cursor:auto}.nuvo-tailwind .disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.nuvo-tailwind .disabled\\:border-gray-260:disabled{--tw-border-opacity:1;border-color:rgb(197 197 197/var(--tw-border-opacity))}.nuvo-tailwind .disabled\\:border-gray-400:disabled{--tw-border-opacity:1;border-color:rgb(156 163 175/var(--tw-border-opacity))}.nuvo-tailwind .disabled\\:bg-gray-120:disabled{--tw-bg-opacity:1;background-color:rgb(242 242 242/var(--tw-bg-opacity))}.nuvo-tailwind .disabled\\:bg-gray-50:disabled{--tw-bg-opacity:1;background-color:rgb(251 251 251/var(--tw-bg-opacity))}.nuvo-tailwind .disabled\\:bg-transparent:disabled{background-color:transparent}.nuvo-tailwind .disabled\\:text-gray-260:disabled{--tw-text-opacity:1;color:rgb(197 197 197/var(--tw-text-opacity))}.nuvo-tailwind .disabled\\:text-gray-560:disabled{--tw-text-opacity:1;color:rgb(141 141 141/var(--tw-text-opacity))}.nuvo-tailwind .disabled\\:opacity-70:disabled{opacity:.7}.nuvo-tailwind .disabled\\:opacity-75:disabled{opacity:.75}.nuvo-tailwind .disabled\\:opacity-80:disabled{opacity:.8}.nuvo-tailwind .group:hover .group-hover\\:visible{visibility:visible}.nuvo-tailwind :is(.dark .dark\\:bg-gray-700){--tw-bg-opacity:1;background-color:rgb(84 84 84/var(--tw-bg-opacity))}@media (min-width:640px){.nuvo-tailwind .sm\\:mt-0{margin-top:0}.nuvo-tailwind .sm\\:\\!max-w-440{max-width:440px!important}.nuvo-tailwind .sm\\:\\!max-w-480{max-width:480px!important}.nuvo-tailwind .sm\\:max-w-1{max-width:.25rem}.nuvo-tailwind .sm\\:max-w-1\\.7xl{max-width:640px}.nuvo-tailwind .sm\\:max-w-505{max-width:505px}.nuvo-tailwind .sm\\:max-w-xl{max-width:36rem}.nuvo-tailwind .sm\\:p-0{padding:0}.nuvo-tailwind .sm\\:align-middle{vertical-align:middle}}@media (min-width:768px){.nuvo-tailwind .md\\:mx-4{margin-left:1rem;margin-right:1rem}.nuvo-tailwind .md\\:mb-0{margin-bottom:0}.nuvo-tailwind .md\\:mt-0{margin-top:0}.nuvo-tailwind .md\\:block{display:block}.nuvo-tailwind .md\\:max-w-355{max-width:355px}.nuvo-tailwind .md\\:flex-wrap{flex-wrap:wrap}.nuvo-tailwind .md\\:px-3{padding-left:.75rem;padding-right:.75rem}.nuvo-tailwind .md\\:align-top{vertical-align:top}.nuvo-tailwind .md\\:align-middle{vertical-align:middle}.nuvo-tailwind .md\\:align-bottom{vertical-align:bottom}.nuvo-tailwind .md\\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width:1024px){.nuvo-tailwind .lg\\:-mx-8{margin-left:-2rem;margin-right:-2rem}.nuvo-tailwind .lg\\:flex{display:flex}.nuvo-tailwind .lg\\:min-w-50{min-width:182px}.nuvo-tailwind .lg\\:flex-row{flex-direction:row}.nuvo-tailwind .lg\\:flex-nowrap{flex-wrap:nowrap}.nuvo-tailwind .lg\\:items-center{align-items:center}.nuvo-tailwind .lg\\:justify-center{justify-content:center}.nuvo-tailwind .lg\\:space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1rem*var(--tw-space-x-reverse))}.nuvo-tailwind .lg\\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(0px*var(--tw-space-y-reverse));margin-top:calc(0px*(1 - var(--tw-space-y-reverse)))}.nuvo-tailwind .lg\\:\\!px-0{padding-left:0!important;padding-right:0!important}.nuvo-tailwind .lg\\:px-8{padding-left:2rem;padding-right:2rem}}@media (min-width:375px){.nuvo-tailwind .xss\\:mr-4{margin-right:1rem}.nuvo-tailwind .xss\\:mt-0{margin-top:0}.nuvo-tailwind .xss\\:flex{display:flex}.nuvo-tailwind .xss\\:pb-2{padding-bottom:.5rem}.nuvo-tailwind .xss\\:pb-7{padding-bottom:1.75rem}}@media (min-width:468px){.nuvo-tailwind .xsmd\\:w-auto{width:auto}}@media (min-width:740px){.nuvo-tailwind .xssmd\\:w-14{width:3.5rem}.nuvo-tailwind .xssmd\\:pl-4{padding-left:1rem}}@media (min-width:820px){.nuvo-tailwind .smmd\\:right-5{right:1.25rem}.nuvo-tailwind .smmd\\:top-7{top:1.75rem}.nuvo-tailwind .smmd\\:pr-14{padding-right:3.5rem}}@media (min-width:885px){.nuvo-tailwind .smd\\:order-1{order:1}.nuvo-tailwind .smd\\:flex-row{flex-direction:row}}@media (min-width:990px){.nuvo-tailwind .large\\:grid{display:grid}.nuvo-tailwind .large\\:min-w-100{min-width:400px}.nuvo-tailwind .large\\:pb-0{padding-bottom:0}.nuvo-tailwind .large\\:pb-10{padding-bottom:2.5rem}.nuvo-tailwind .large\\:pb-2{padding-bottom:.5rem}.nuvo-tailwind .large\\:pl-0{padding-left:0}.nuvo-tailwind .large\\:pt-0{padding-top:0}}@media (min-width:1190px){.nuvo-tailwind .mmd\\:right-7{right:1.75rem}.nuvo-tailwind .mmd\\:top-7{top:1.75rem}.nuvo-tailwind .mmd\\:pr-14{padding-right:3.5rem}}@media (min-width:1440px){.nuvo-tailwind .\\33xl\\:py-2{padding-bottom:.5rem;padding-top:.5rem}.nuvo-tailwind .\\33xl\\:pt-1{padding-top:.25rem}}@media (min-width:1441px){.nuvo-tailwind .min3xl\\:p-5{padding:1.25rem}}@media (min-width:1920px){.nuvo-tailwind .\\34xl\\:max-h-72{max-height:18rem}}.nuvo-tailwind *{-webkit-touch-callout:none;outline:none;scrollbar-color:auto;-webkit-user-select:none;-moz-user-select:none;user-select:none}.nuvo-tailwind input,.nuvo-tailwind textarea{-webkit-user-select:text;-moz-user-select:text;user-select:text}.nuvo-tailwind .loader{animation:spin 1.2s linear infinite;border:16px solid rgba(92,142,242,.3);border-radius:50%;border-top-color:#5c8ef2;height:100px;margin:auto;position:relative;top:16px;width:100px}.nuvo-tailwind .loader:before{--rad:radial-gradient(circle 7.5px,#5c8ef2 99%,transparent 100%);background:var(--rad) left -17px top 0,var(--rad) right -17px top 0;background-size:224% 100%;content:"";height:19px;left:-4px;position:absolute;top:-4.9px;width:111%}@keyframes spin{to{transform:rotate(1turn)}}.nuvo-tailwind .circle-loader{border:3px solid;border-radius:50%;display:inline-block;height:20px;margin:auto;position:relative;width:20px}.nuvo-tailwind .animate-loader,.nuvo-tailwind .circle-loader{animation:spin 1.2s linear infinite}@keyframes progress{to{transform:translateX(100%)}}.nuvo-tailwind .translate-by-keyframe{animation:progress 1.5s linear forwards}`));document.head.appendChild(b4);var w4=document.createElement("style");w4.type="text/css";w4.appendChild(document.createTextNode(".nuvo-tailwind .dropdown-scroll .simplebar-scrollbar{height:5px;top:0}.nuvo-tailwind .dropdown-scroll .simplebar-scrollbar:before{inset:0}.nuvo-tailwind .dropdown-scroll .simplebar-track{background-color:#f4f4f4;border-radius:60px;pointer-events:auto}.nuvo-tailwind .dropdown-scroll .simplebar-track>.simplebar-scrollbar:before{background-color:#b9b9b9;border-radius:60px;opacity:1!important}.nuvo-tailwind .dropdown-scroll .simplebar-track.simplebar-vertical{bottom:8px;top:8px;transform:translateX(-3px);width:5px}.nuvo-tailwind .dropdown-scroll .simplebar-track.simplebar-vertical .simplebar-scrollbar:before{inset:0}.nuvo-tailwind .dropdown-scroll .simplebar-track.simplebar-horizontal{height:5px;transform:translateY(5px)}.nuvo-tailwind .dropdown-scroll .simplebar-track.simplebar-horizontal .simplebar-scrollbar{height:5px;top:8px}.nuvo-tailwind .dropdown-scroll .simplebar-track.simplebar-horizontal .simplebar-scrollbar:before{inset:0}"));document.head.appendChild(w4);var x4=document.createElement("style");x4.type="text/css";x4.appendChild(document.createTextNode(".nuvo-tailwind #review-entries-table{height:100%}.nuvo-tailwind .handsontable:not(.htHorizontallyScrollableByWindow) .ht_master .wtHolder,.nuvo-tailwind .handsontable:not(.htVerticallyScrollableByWindow) .ht_master .wtHolder{background:inherit}.nuvo-tailwind .data-review .handsontable{--ht-cell-vertical-padding:0px;--ht-line-height:26px;color:var(--globals-text-color);font-family:var(--globals-font-family)}.nuvo-tailwind .data-review col.rowHeader{width:52px!important}.nuvo-tailwind .data-review .handsontable:not(.htHorizontallyScrollableByWindow) .ht_master .wtHolder,.nuvo-tailwind .data-review .handsontable:not(.htVerticallyScrollableByWindow) .ht_master .wtHolder{background:inherit}.nuvo-tailwind .data-review{--ht-header-background-color:#fbfbfb;--ht-header-highlighted-background-color:#f2f2f2}.nuvo-tailwind .data-review .handsontable thead th .relative{height:100%;padding:0!important}.nuvo-tailwind .data-review .handsontable thead th .colHeader{display:flex;flex-direction:column;height:100%;width:100%}.nuvo-tailwind .data-review .handsontable thead th .colHeader .title-header{align-items:center;display:flex;flex:1 1 0%;justify-items:flex-start;position:relative;width:auto}.nuvo-tailwind .data-review .handsontable thead tr th:first-child{position:relative}.nuvo-tailwind .data-review .handsontable thead tr th:first-child:before{--tw-bg-opacity:1;--tw-text-opacity:1;align-items:center;background-color:rgb(201 207 210/var(--tw-bg-opacity));border-top-width:1px;bottom:0;color:rgb(44 50 53/var(--tw-text-opacity));display:flex;font-weight:400;height:23px;justify-content:center;left:0;position:absolute;right:0;text-align:center;z-index:10}.nuvo-tailwind .data-review .handsontable thead th .colHeader .example-header{align-items:center;border-top-width:1px;box-sizing:border-box;display:flex;flex-shrink:0;height:23px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.nuvo-tailwind .data-review .handsontable .htAutocomplete{--tw-border-opacity:1;border-color:rgb(221 221 221/var(--tw-border-opacity));position:relative}.nuvo-tailwind .data-review .handsontable .htAutocompleteArrow{height:100%!important;max-height:28px;width:100%!important}.nuvo-tailwind .data-review .handsontable .htAutocompleteArrow,.nuvo-tailwind .data-review .handsontable .htAutocompleteArrow:hover{--tw-text-opacity:1;color:rgb(22 35 56/var(--tw-text-opacity))}.nuvo-tailwind .data-review .handsontable td.ingestro-cell-error{--ht-row-cell-odd-background-color:#fff1f0;--ht-row-cell-even-background-color:#fff1f0;--ht-cell-read-only-background-color:#fff1f0}.nuvo-tailwind .data-review .handsontable td.ingestro-cell-warning{--ht-row-cell-odd-background-color:#fffbe6;--ht-row-cell-even-background-color:#fffbe6;--ht-cell-read-only-background-color:#fffbe6}.nuvo-tailwind .data-review .handsontable td.ingestro-cell-info{--ht-row-cell-odd-background-color:#f0f9ff;--ht-row-cell-even-background-color:#f0f9ff;--ht-cell-read-only-background-color:#f0f9ff}.nuvo-tailwind .data-review .handsontable td.ingestro-cell-disabled{--ht-row-cell-odd-background-color:#fafafa;--ht-row-cell-even-background-color:#fafafa;--ht-cell-read-only-background-color:#fafafa}.nuvo-tailwind .data-review .handsontable td.ingestro-cell-error:hover{--ht-row-cell-odd-background-color:#fad4d4;--ht-row-cell-even-background-color:#fad4d4;--ht-cell-read-only-background-color:#fad4d4}.nuvo-tailwind .data-review .handsontable td.ingestro-cell-warning:hover{--ht-row-cell-odd-background-color:#ffe8a8;--ht-row-cell-even-background-color:#ffe8a8;--ht-cell-read-only-background-color:#ffe8a8}.nuvo-tailwind .data-review .handsontable td.ingestro-cell-info:hover{--ht-row-cell-odd-background-color:#c2d5fa;--ht-row-cell-even-background-color:#c2d5fa;--ht-cell-read-only-background-color:#c2d5fa}.nuvo-tailwind .data-review .handsontable td.ingestro-cell-disabled:hover{--ht-row-cell-odd-background-color:#fff;--ht-row-cell-even-background-color:#fff;--ht-cell-read-only-background-color:#fff}.nuvo-tailwind .custom-dropdown-boolean-renderer,.nuvo-tailwind .custom-dropdown-renderer{padding-right:16px}.nuvo-tailwind .custom-dropdown-boolean-renderer-text-element,.nuvo-tailwind .custom-dropdown-renderer-text-element{background-color:transparent!important;padding-top:4px}.nuvo-tailwind .data-review .hide-arrow-btn{align-items:center;background-color:#fff;border:1px solid #f2f2f2;border-bottom-left-radius:4px;border-right-width:0;border-top-left-radius:4px;cursor:pointer;display:flex;height:12px;justify-content:center;position:absolute;right:0;top:50%;transform:translateY(-50%);width:12px}.nuvo-tailwind .data-review .hide-arrow-btn.hide-icon-left{left:0;right:auto;transform:translateY(-50%) rotate(180deg)}.nuvo-tailwind .data-review .handsontable td>div.custom-dropdown-boolean-renderer>.close-icon *,.nuvo-tailwind .data-review .handsontable td>div.custom-dropdown-renderer>.close-icon *{color:#c5c5c5}.nuvo-tailwind .data-review .handsontable td.default-cell.current.highlight>div>.arrow-down-icon,.nuvo-tailwind .data-review .handsontable td.error-cell.current.highlight>div>.arrow-down-icon,.nuvo-tailwind .data-review .handsontable td.info-cell.current.highlight>div>.arrow-down-icon,.nuvo-tailwind .data-review .handsontable td.warning-cell.current.highlight>div>.arrow-down-icon{padding-left:0!important}.nuvo-tailwind .data-review .handsontable td.disabled-cell #dropdown-arrow-icon svg{--tw-text-opacity:1;color:rgb(197 197 197/var(--tw-text-opacity))}.nuvo-tailwind .data-review .handsontable td.error-cell #dropdown-arrow-icon svg{--tw-text-opacity:1;color:rgb(237 112 112/var(--tw-text-opacity))}.nuvo-tailwind .data-review .handsontable td.warning-cell #dropdown-arrow-icon svg{--tw-text-opacity:1;color:rgb(255 193 22/var(--tw-text-opacity))}.nuvo-tailwind .data-review .handsontable td.default-cell #dropdown-arrow-icon,.nuvo-tailwind .data-review .handsontable td.default-cell #dropdown-arrow-icon svg{--tw-text-opacity:1;color:rgb(22 35 56/var(--tw-text-opacity))}.nuvo-tailwind .data-review .handsontable .ht_clone_top_inline_start_corner{z-index:101}.nuvo-tailwind .data-review .ht_master.handsontable .wtHolder::-webkit-scrollbar{height:.5rem!important;width:.5rem!important}.nuvo-tailwind .data-review .ht_master.handsontable .wtHolder::-webkit-scrollbar-track{background-clip:padding-box;background-color:#dfe2e4;border-radius:4px;width:.375rem!important}.nuvo-tailwind .data-review .ht_clone_inline_start .wtHolder::-webkit-scrollbar-thumb{--tw-bg-opacity:1!important;background-color:rgb(179 188 192/var(--tw-bg-opacity))!important;border-radius:4px}.nuvo-tailwind .data-review .ht_master.handsontable .wtHolder::-webkit-scrollbar-thumb{--tw-bg-opacity:1!important;background-color:rgb(179 188 192/var(--tw-bg-opacity))!important;border-radius:4px}.nuvo-tailwind .data-review::-webkit-scrollbar-thumb{background-clip:content-box;background-color:#818b99;border:0 solid transparent;border-radius:9px}.nuvo-tailwind .data-review .ht_clone_inline_start .wtHolder .wtHider{box-sizing:border-box!important;margin-bottom:2rem!important}.nuvo-tailwind .data-review.not_firefox .ht_clone_top,.nuvo-tailwind .data-review.not_firefox .ht_clone_top .wtHolder{width:100%!important}.nuvo-tailwind .data-review.not_firefox .add-space-scrollbar-w .ht_clone_top{width:calc(100% - 8px)!important}.nuvo-tailwind .data-review.not_firefox .ht_clone_inline_start.handsontable .wtHolder,.nuvo-tailwind .data-review.not_firefox .ht_clone_inline_start:not(.handsontableInputHolder){height:100%!important}.nuvo-tailwind .data-review.not_firefox .add-space-scrollbar-h .ht_clone_inline_start:not(.handsontableInputHolder){height:calc(100% - 8px)!important}.nuvo-tailwind .data-review .hide-border-last-column .ht_clone_top td:last-child,.nuvo-tailwind .data-review .hide-border-last-column .ht_clone_top th:last-child,.nuvo-tailwind .data-review div.hide-border-last-column .handsontable.ht_master tr td:last-child{border-right-color:transparent!important;border-right-width:0!important}.nuvo-tailwind .data-review .wtBorder.fill{background:#4b89ff!important}.nuvo-tailwind .data-review .handsontable .wtBorder.area{--ht-cell-selection-border-color:#547cbc;--ht-cell-autofill-background-color:#547cbc}.nuvo-tailwind .data-review .handsontable .wtBorder.area:nth-child(2)[style*=width],.nuvo-tailwind .data-review .handsontable .wtBorder.area:nth-child(4)[style*=width]{border-right:2px solid #547cbc;width:0!important}.nuvo-tailwind .data-review .handsontable .wtBorder.area:first-child,.nuvo-tailwind .data-review .handsontable .wtBorder.area:nth-child(3){height:2px!important}.nuvo-tailwind .data-review .handsontable .wtBorder.corner{border-color:#fff!important;border-radius:50%!important}.nuvo-tailwind .data-review .ht_clone_inline_start th>div.relative{align-items:center;display:flex;height:100%;justify-content:center}.nuvo-tailwind .data-review .ht_clone_inline_start.handsontable td,.nuvo-tailwind .data-review .ht_master.handsontable td{padding:0 12px!important}@media only screen and (max-width:1440px){.nuvo-tailwind div.ht_master.handsontable>div.wtHolder>div>div>table>thead>tr>th{border-width:0!important}.nuvo-tailwind .data-review .handsontable thead tr th:first-child:before{border-top-width:1px;height:23px!important;line-height:23px!important}.nuvo-tailwind .data-review .handsontable thead th .colHeader .example-header{height:23px!important;line-height:23px!important}.nuvo-tailwind .custom-dropdown-boolean-renderer-text-element,.nuvo-tailwind .custom-dropdown-renderer-text-element{padding-top:0}}.nuvo-tailwind .data-review .handsontable th .row-header-number{display:inline}.nuvo-tailwind .data-review .handsontable th .relative .rowHeader{width:100%}.nuvo-tailwind .data-review .nuvo-add-row-button{align-items:center;cursor:pointer;display:flex;justify-content:center;width:100%}.nuvo-tailwind .data-review .nuvo-add-row-button.nuvo-add-row-button-disabled{cursor:not-allowed}.nuvo-tailwind .data-review .nuvo-custom-add-column-button{cursor:pointer}.nuvo-tailwind .data-review .row-header-checkbox{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity));box-shadow:none;cursor:pointer;display:none}.nuvo-tailwind .data-review .row-header-checkbox:checked{--tw-bg-opacity:1;background-color:rgb(8 37 97/var(--tw-bg-opacity))}.nuvo-tailwind .data-review .handsontable th.hover-row .row-header-number{display:none}.nuvo-tailwind .data-review .handsontable th.checked-row .row-header-checkbox,.nuvo-tailwind .data-review .handsontable th.hover-row .row-header-checkbox{display:block}.nuvo-tailwind .data-review .handsontable th.checked-row .row-header-number{display:none}.nuvo-tailwind .data-review .check-all-checkbox{--tw-bg-opacity:1;--tw-border-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity));border-color:rgb(197 197 197/var(--tw-border-opacity));border-radius:4px;cursor:pointer;height:1rem!important;width:1rem!important}.nuvo-tailwind .data-review .check-all-checkbox:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000);outline:2px solid transparent;outline-offset:2px}.nuvo-tailwind .data-review .check-all-checkbox{box-shadow:none!important}.nuvo-tailwind .data-review .check-all-checkbox:indeterminate{--tw-border-opacity:1;border-color:rgb(197 197 197/var(--tw-border-opacity))}.nuvo-tailwind .data-review .check-all-checkbox:indeterminate{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.nuvo-tailwind .data-review .check-all-checkbox:checked{--tw-bg-opacity:1;background-color:rgb(8 37 97/var(--tw-bg-opacity));border-color:transparent}.nuvo-tailwind .data-review .handsontable thead th .colHeader .context-menu-button{cursor:pointer}.nuvo-tailwind .data-review .handsontable .columnSorting:not(.indicatorDisabled).sortAction{max-width:100%!important;min-width:auto!important;padding-inline-end:0!important;padding-inline-start:0!important}.nuvo-tailwind .data-review .handsontable .columnSorting.sortAction:hover{cursor:auto;text-decoration:initial}.nuvo-tailwind .data-review .handsontable .columnSorting.sortAction #text-title:hover{cursor:var(--text-header-pointer);-webkit-text-decoration:var(--text-header-decoration);text-decoration:var(--text-header-decoration)}.nuvo-tailwind .data-review .handsontable .columnSorting.sortAction .sort-loader{display:none}.nuvo-tailwind .data-review .handsontable .sort-loading .columnSorting.sortAction .sort-loader{display:block}.nuvo-tailwind .data-review .handsontable .sort-loading .columnSorting.sortAction .context-menu-button{display:none}.nuvo-tailwind .data-review .handsontable .header-circle-loader{animation:spin 1.2s linear infinite;border-radius:50%;border-style:solid;border-width:3px;display:inline-block;flex-shrink:0;height:13px;margin-left:1px;position:relative;top:2px;width:13px}.nuvo-tailwind .data-review .ht_clone_inline_start .wtHolder .htCore{box-shadow:none}.nuvo-tailwind .filter-value-list-scroll .simplebar-scrollbar{height:5px;top:0}.nuvo-tailwind .filter-value-list-scroll .simplebar-scrollbar:before{inset:0}.nuvo-tailwind .filter-value-list-scroll .simplebar-track{background-color:#f4f4f4;border-radius:60px;pointer-events:auto}.nuvo-tailwind .filter-value-list-scroll .simplebar-track>.simplebar-scrollbar:before{background-color:#b9b9b9;border-radius:60px;opacity:1!important}.nuvo-tailwind .filter-value-list-scroll .simplebar-track.simplebar-vertical{bottom:0;top:0;transform:translateX(-8px);width:4px}.nuvo-tailwind .filter-value-list-scroll .simplebar-track.simplebar-vertical .simplebar-scrollbar:before{inset:0}.nuvo-tailwind .filter-value-list-scroll .simplebar-track.simplebar-horizontal{height:5px;transform:translateY(5px)}.nuvo-tailwind .filter-value-list-scroll .simplebar-track.simplebar-horizontal .simplebar-scrollbar{height:5px;top:0}.nuvo-tailwind .filter-value-list-scroll .simplebar-track.simplebar-horizontal .simplebar-scrollbar:before{inset:0}.nuvo-tailwind .context-menu-scroll>div>.simplebar-track .simplebar-scrollbar{height:5px;top:0}.nuvo-tailwind .context-menu-scroll>div>.simplebar-track .simplebar-scrollbar:before{inset:0}.nuvo-tailwind .context-menu-scroll>div>.simplebar-track{background-color:#f4f4f4;border-radius:60px;pointer-events:auto}.nuvo-tailwind .context-menu-scroll>div>.simplebar-track>.simplebar-scrollbar:before{background-color:#b9b9b9;border-radius:60px;opacity:1!important}.nuvo-tailwind .context-menu-scroll>div>.simplebar-track.simplebar-vertical{bottom:6px;top:6px;transform:translateX(-4px);width:5px}.nuvo-tailwind .context-menu-scroll>div>.simplebar-track.simplebar-vertical .simplebar-scrollbar:before{inset:0}.nuvo-tailwind .context-menu-scroll>div>.simplebar-track.simplebar-horizontal{height:5px;transform:translateY(5px)}.nuvo-tailwind .context-menu-scroll>div>.simplebar-track.simplebar-horizontal .simplebar-scrollbar{height:5px;top:0}.nuvo-tailwind .context-menu-scroll>div .simplebar-track.simplebar-horizontal .simplebar-scrollbar:before{inset:0}"));document.head.appendChild(x4);var y4=document.createElement("style");y4.type="text/css";y4.appendChild(document.createTextNode(".nuvo-tailwind .handsontable{--tw-text-opacity:1;color:rgb(56 56 56/var(--tw-text-opacity));font-family:var(--globals-font-family)}.nuvo-tailwind .wtBorder.current:nth-of-type(4){transform:translateX(1px)}.nuvo-tailwind .handsontable .htDimmed,.nuvo-tailwind .handsontable td.htDimmed{color:#162338}.nuvo-tailwind .ht_clone_top{z-index:20!important}.nuvo-tailwind .ht_clone_inline_start:not(.handsontableInputHolder){z-index:0!important}.nuvo-tailwind .ht_clone_top_inline_start_corner{z-index:20!important}.nuvo-tailwind .spread-data-sheet .ht_clone_inline_start .wtHolder .wtHider div.wtSpreader .htCore tbody tr th{align-items:center;display:flex;font-size:.875rem;justify-content:center;line-height:1.25rem}.nuvo-tailwind .spread-data-sheet .handsontable.wt-full-width .ht_master.handsontable .wtHider,.nuvo-tailwind .spread-data-sheet .handsontable.wt-full-width .ht_master.handsontable .wtHider .wtSpreader{width:100%!important}.nuvo-tailwind .spread-data-sheet .ht_clone_inline_start .wtHolder .wtHider div.wtSpreader .htCore tbody tr th div{align-items:center;display:flex;height:31px!important;justify-content:center;padding-bottom:0;padding-top:0;text-align:center}.nuvo-tailwind .ht_clone_inline_start .wtHolder table{box-shadow:2px 0 5px -2px hsla(0,0%,53%,.3)}.nuvo-tailwind .wtBorder.corner{display:none}.nuvo-tailwind thead th:first-child{--tw-bg-opacity:1;background-color:rgb(251 251 251/var(--tw-bg-opacity))}.nuvo-tailwind .handsontable td{border-color:#ddd;font-size:.875rem;line-height:1.25rem;overflow:hidden!important;padding:0!important;text-overflow:ellipsis!important;white-space:nowrap!important}.nuvo-tailwind .handsontable thead th:first-child{border-bottom:1px solid #ddd}.nuvo-tailwind .ht_clone_top .wtHolder .wtHider .wtSpreader .htCore th:first-child,.nuvo-tailwind div.ht_clone_top_inline_start_corner.ht_clone_top_left_corner.handsontable>div>div>div>table>thead>tr>th{border-top:none!important}.nuvo-tailwind .ht_clone_top .wtHolder .wtHider .wtSpreader .htCore th:first-child,.nuvo-tailwind .ht_clone_top_inline_start_corner .wtHolder .wtHider .wtSpreader .htCore th:first-child{border-left:none!important;padding-top:1px}.nuvo-tailwind .ht_clone_top .wtHolder .wtHider .wtSpreader .htCore th{border-top:none!important}.nuvo-tailwind .ht_clone_inline_start .wtHolder .wtHider .htCore th{--tw-border-opacity:1;border-left:none!important;border-color:rgb(221 221 221/var(--tw-border-opacity))}.nuvo-tailwind .ht_clone_inline_start .wtHolder .wtHider .htCore th.ht__highlight{border-color:#547cbc!important}.nuvo-tailwind .ht_master .wtHolder .wtHider .htCore th{border-left:none!important;padding-left:1px}.nuvo-tailwind .spread-data-sheet #hot-display-license-info{display:none}.nuvo-tailwind .spread-data-sheet .handsontable{font-family:var(--globals-font-family)}.nuvo-tailwind .spread-data-sheet .handsontable td .ht-cell{padding:0 16px}.nuvo-tailwind .spread-data-sheet .handsontable td{align-items:center;border-color:#ddd;padding:0 16px!important;text-align:left!important}.nuvo-tailwind .spread-data-sheet .handsontable .hide-border-last-row .htCore tr:last-child td{border-bottom-width:0}.nuvo-tailwind .spread-data-sheet .handsontable .hide-border-last-row .ht_clone_inline_start tr:last-child th{border-bottom:transparent}.nuvo-tailwind .spread-data-sheet .handsontable .ht_master .wtHolder::-webkit-scrollbar{height:.5rem!important;width:.5rem!important}.nuvo-tailwind .spread-data-sheet .handsontable .ht_master .wtHolder::-webkit-scrollbar-track{background-clip:padding-box;background-color:#dfe2e4;border-radius:4px;width:.25rem!important}.nuvo-tailwind .spread-data-sheet .handsontable .ht_master .wtHolder::-webkit-scrollbar-thumb{--tw-bg-opacity:1!important;background-color:rgb(179 188 192/var(--tw-bg-opacity))!important;border-radius:4px}.nuvo-tailwind .spread-data-sheet ::-webkit-scrollbar-thumb{background-clip:content-box;background-color:#818b99;border:0 solid transparent;border-radius:9px}.nuvo-tailwind .spread-data-sheet .ht_clone_inline_start .wtHolder::-webkit-scrollbar{height:.5rem!important;width:.5rem!important}.nuvo-tailwind .spread-data-sheet .ht_clone_inline_start .wtHolder::-webkit-scrollbar-track{background-clip:padding-box;background-color:#dfe2e4;border-radius:4px;margin-right:.5rem!important}.nuvo-tailwind .spread-data-sheet .ht_clone_inline_start .wtHolder::-webkit-scrollbar-thumb{--tw-bg-opacity:1!important;background-color:rgb(179 188 192/var(--tw-bg-opacity))!important;border-radius:4px}.nuvo-tailwind .spread-data-sheet .ht_clone_inline_start .wtHolder .wtHider{box-sizing:border-box!important;margin-bottom:2rem!important}.nuvo-tailwind .spread-data-sheet.not_firefox .handsontable.wt-full-width .ht_clone_top .wtHolder,.nuvo-tailwind .spread-data-sheet.not_firefox .handsontable.wt-full-width .ht_clone_top .wtHolder .htCore,.nuvo-tailwind .spread-data-sheet.not_firefox .handsontable.wt-full-width .ht_clone_top .wtHolder .wtHider,.nuvo-tailwind .spread-data-sheet.not_firefox .handsontable.wt-full-width .ht_clone_top .wtHolder .wtSpreader,.nuvo-tailwind .spread-data-sheet.not_firefox .ht_clone_top{width:100%!important}.nuvo-tailwind .spread-data-sheet.not_firefox .handsontable.add-space-scrollbar-w .ht_clone_top{width:calc(100% - 8px)!important}.nuvo-tailwind .spread-data-sheet.not_firefox .handsontable.add-space-scrollbar-w .ht_clone_top .wtHolder{width:100%!important}.nuvo-tailwind .spread-data-sheet.not_firefox .handsontable .ht_clone_inline_start,.nuvo-tailwind .spread-data-sheet.not_firefox .handsontable .ht_clone_inline_start .wtHolder{height:100%!important}.nuvo-tailwind .spread-data-sheet.not_firefox .handsontable.add-space-scrollbar-h .ht_clone_inline_start,.nuvo-tailwind .spread-data-sheet.not_firefox .handsontable.add-space-scrollbar-h .ht_clone_inline_start .wtHolder{height:calc(100% - 4px)!important}.nuvo-tailwind .spread-data-sheet #hotInstance{height:100%}.nuvo-tailwind .spread-data-sheet #hotInstance .ht_clone_inline_start td,.nuvo-tailwind .spread-data-sheet #hotInstance .ht_clone_top_inline_start_corner{box-shadow:2px 0 5px -2px hsla(0,0%,53%,.3)}.nuvo-tailwind .spread-data-sheet .hide-border-last-column .ht_clone_top td:last-child,.nuvo-tailwind .spread-data-sheet .hide-border-last-column .ht_clone_top th:last-child,.nuvo-tailwind .spread-data-sheet div.hide-border-last-column .handsontable.ht_master tr td:last-child{border-right-color:transparent!important;border-right-width:0!important}.nuvo-tailwind .spread-data-sheet tr td.default-cell:not(.added-column-cell),.nuvo-tailwind .spread-data-sheet tr td.hover-row{--tw-text-opacity:1;color:rgb(22 35 56/var(--tw-text-opacity));cursor:pointer;font-size:.875rem;line-height:1.25rem}.nuvo-tailwind .spread-data-sheet tr td.metadata-empty-cell{cursor:auto!important}.nuvo-tailwind .spread-data-sheet.read-only tr td.default-cell{--tw-text-opacity:1;color:rgb(141 141 141/var(--tw-text-opacity))}.nuvo-tailwind .spread-data-sheet.read-only tr td{cursor:auto!important}.nuvo-tailwind .spread-data-sheet .ht_clone_inline_start .wtHolder .wtHider div.wtSpreader .htCore tbody tr th{text-indent:-1px}.nuvo-tailwind .spread-data-sheet .ht_left .wtHolder .wtSpreader,.nuvo-tailwind .spread-data-sheet .ht_master .wtHolder .wtSpreader table{width:100%}.nuvo-tailwind .spread-data-sheet tr .hover-row,.nuvo-tailwind .spread-data-sheet tr .hover-selected-row,.nuvo-tailwind .spread-data-sheet tr .selecting-row{cursor:pointer;font-size:.875rem;line-height:1.25rem}.nuvo-tailwind .spread-data-sheet tr td div{box-sizing:border-box}.nuvo-tailwind .spread-data-sheet .handsontable tr td.selecting-row-and-hovering.selecting-row{--tw-text-opacity:1;color:rgb(22 35 56/var(--tw-text-opacity));cursor:pointer}.nuvo-tailwind .sheet-preview .handsontable{font-family:var(--globals-font-family)}.nuvo-tailwind .sheet-preview .handsontable td .ht-cell{padding:0 16px}.nuvo-tailwind .sheet-preview .handsontable td{align-items:center;border-color:#ddd;padding:0 16px!important;text-align:left!important}.nuvo-tailwind .sheet-preview .handsontable .hide-border-last-row .htCore tr:last-child td{border-bottom-width:0}.nuvo-tailwind .sheet-preview .handsontable .hide-border-last-row .ht_clone_inline_start tr:last-child th{border-bottom:transparent}.nuvo-tailwind .sheet-preview .handsontable .ht_master .wtHolder::-webkit-scrollbar{height:.5rem!important;width:.5rem!important}.nuvo-tailwind .sheet-preview .handsontable .ht_master .wtHolder::-webkit-scrollbar-track{background-clip:padding-box;background-color:#dfe2e4;border-radius:4px;width:.25rem!important}.nuvo-tailwind .sheet-preview .handsontable .ht_master .wtHolder::-webkit-scrollbar-thumb{--tw-bg-opacity:1!important;background-color:rgb(179 188 192/var(--tw-bg-opacity))!important;border-radius:4px}.nuvo-tailwind .sheet-preview ::-webkit-scrollbar-thumb{background-clip:content-box;background-color:#818b99;border:0 solid transparent;border-radius:9px}.nuvo-tailwind .sheet-preview .ht_clone_inline_start .wtHolder::-webkit-scrollbar{height:.5rem!important;width:.5rem!important}.nuvo-tailwind .sheet-preview .ht_clone_inline_start .wtHolder::-webkit-scrollbar-track{background-clip:padding-box;background-color:#dfe2e4;border-radius:4px;margin-right:.5rem!important}.nuvo-tailwind .sheet-preview .ht_clone_inline_start .wtHolder::-webkit-scrollbar-thumb{--tw-bg-opacity:1!important;background-color:rgb(179 188 192/var(--tw-bg-opacity))!important;border-radius:4px}.nuvo-tailwind .sheet-preview .ht_clone_inline_start .wtHolder .wtHider{box-sizing:border-box!important;margin-bottom:2rem!important}.nuvo-tailwind .sheet-preview.not_firefox .handsontable.wt-full-width .ht_clone_top .wtHolder,.nuvo-tailwind .sheet-preview.not_firefox .handsontable.wt-full-width .ht_clone_top .wtHolder .htCore,.nuvo-tailwind .sheet-preview.not_firefox .handsontable.wt-full-width .ht_clone_top .wtHolder .wtHider,.nuvo-tailwind .sheet-preview.not_firefox .handsontable.wt-full-width .ht_clone_top .wtHolder .wtSpreader,.nuvo-tailwind .sheet-preview.not_firefox .ht_clone_top{width:100%!important}.nuvo-tailwind .sheet-preview.not_firefox .handsontable.add-space-scrollbar-w .ht_clone_top{width:calc(100% - 8px)!important}.nuvo-tailwind .sheet-preview.not_firefox .handsontable.add-space-scrollbar-w .ht_clone_top .wtHolder{width:100%!important}.nuvo-tailwind .sheet-preview.not_firefox .handsontable .ht_clone_inline_start,.nuvo-tailwind .sheet-preview.not_firefox .handsontable .ht_clone_inline_start .wtHolder{height:100%!important}.nuvo-tailwind .sheet-preview.not_firefox .handsontable.add-space-scrollbar-h .ht_clone_inline_start,.nuvo-tailwind .sheet-preview.not_firefox .handsontable.add-space-scrollbar-h .ht_clone_inline_start .wtHolder{height:calc(100% - 4px)!important}.nuvo-tailwind .sheet-preview #hotInstance{height:100%}.nuvo-tailwind .sheet-preview #hotInstance .ht_clone_inline_start td,.nuvo-tailwind .sheet-preview #hotInstance .ht_clone_top_inline_start_corner{box-shadow:2px 0 5px -2px hsla(0,0%,53%,.3)}.nuvo-tailwind .sheet-preview .hide-border-last-column .ht_clone_top td:last-child,.nuvo-tailwind .sheet-preview .hide-border-last-column .ht_clone_top th:last-child,.nuvo-tailwind .sheet-preview div.hide-border-last-column .handsontable.ht_master tr td:last-child{border-right-color:transparent!important;border-right-width:0!important}.nuvo-tailwind .sheet-preview tr td.default-cell,.nuvo-tailwind .sheet-preview tr td.hover-row:not(.added-column-cell){--tw-text-opacity:1;color:rgb(22 35 56/var(--tw-text-opacity));cursor:pointer;font-size:.875rem;line-height:1.25rem}.nuvo-tailwind .sheet-preview.read-only tr td.default-cell{--tw-text-opacity:1;color:rgb(141 141 141/var(--tw-text-opacity))}.nuvo-tailwind .sheet-preview.read-only tr td{cursor:auto!important}.nuvo-tailwind .sheet-preview .ht_clone_inline_start .wtHolder .wtHider div.wtSpreader .htCore tbody tr th{text-indent:-1px}.nuvo-tailwind .sheet-preview .ht_left .wtHolder .wtSpreader,.nuvo-tailwind .sheet-preview .ht_master .wtHolder .wtSpreader table{width:100%}.nuvo-tailwind .sheet-preview tr .hover-row,.nuvo-tailwind .sheet-preview tr .hover-selected-row,.nuvo-tailwind .sheet-preview tr .selecting-row{cursor:pointer;font-size:.875rem;line-height:1.25rem}.nuvo-tailwind .sheet-preview tr td div{box-sizing:border-box}.nuvo-tailwind .sheet-preview .handsontable tr td.selecting-row-and-hovering.selecting-row{--tw-text-opacity:1;color:rgb(22 35 56/var(--tw-text-opacity));cursor:pointer}.nuvo-tailwind .sheet-preview .handsontable.wt-full-width .ht_master.handsontable .wtHider,.nuvo-tailwind .sheet-preview .handsontable.wt-full-width .ht_master.handsontable .wtHider .wtSpreader{width:100%!important}.nuvo-tailwind .join-sheet-preview #hot-display-license-info,.nuvo-tailwind .join-sheet-preview .handsontable .htBorders{display:none}.nuvo-tailwind .join-sheet-preview .handsontable{font-family:var(--globals-font-family)}.nuvo-tailwind .join-sheet-preview .handsontable td .ht-cell{padding:0 16px}.nuvo-tailwind .join-sheet-preview .handsontable td{align-items:center;border-color:#ddd;padding:0 16px!important;text-align:left!important}.nuvo-tailwind .join-sheet-preview .handsontable .hide-border-last-row .htCore tr:last-child td{border-bottom-width:0}.nuvo-tailwind .join-sheet-preview .handsontable .hide-border-last-row .ht_clone_inline_start tr:last-child th{border-bottom:transparent}.nuvo-tailwind .join-sheet-preview .handsontable .ht_master .wtHolder::-webkit-scrollbar{height:.5rem!important;width:.5rem!important}.nuvo-tailwind .join-sheet-preview .handsontable .ht_master .wtHolder::-webkit-scrollbar-track{background-clip:padding-box;background-color:#dfe2e4;border-radius:4px;width:.25rem!important}.nuvo-tailwind .join-sheet-preview ::-webkit-scrollbar-thumb{background-clip:content-box;background-color:#818b99;border:0 solid transparent;border-radius:9px}.nuvo-tailwind .join-sheet-preview .ht_clone_inline_start .wtHolder::-webkit-scrollbar{height:.5rem!important;width:.5rem!important}.nuvo-tailwind .join-sheet-preview .ht_clone_inline_start .wtHolder::-webkit-scrollbar-track{background-clip:padding-box;background-color:#dfe2e4;border-radius:4px;margin-right:.5rem!important}.nuvo-tailwind .join-sheet-preview .ht_clone_inline_start .wtHolder::-webkit-scrollbar-thumb{--tw-bg-opacity:1!important;background-color:rgb(179 188 192/var(--tw-bg-opacity))!important;border-radius:4px}.nuvo-tailwind .join-sheet-preview .ht_clone_inline_start .wtHolder .wtHider{box-sizing:border-box!important;margin-bottom:2rem!important}.nuvo-tailwind .join-sheet-preview.not_firefox .handsontable.wt-full-width .ht_clone_top .wtHolder,.nuvo-tailwind .join-sheet-preview.not_firefox .handsontable.wt-full-width .ht_clone_top .wtHolder .htCore,.nuvo-tailwind .join-sheet-preview.not_firefox .handsontable.wt-full-width .ht_clone_top .wtHolder .wtHider,.nuvo-tailwind .join-sheet-preview.not_firefox .handsontable.wt-full-width .ht_clone_top .wtHolder .wtSpreader,.nuvo-tailwind .join-sheet-preview.not_firefox .ht_clone_top{width:100%!important}.nuvo-tailwind .join-sheet-preview.not_firefox .handsontable.add-space-scrollbar-w .ht_clone_top{width:calc(100% - 8px)!important}.nuvo-tailwind .join-sheet-preview.not_firefox .handsontable.add-space-scrollbar-w .ht_clone_top .wtHolder{width:100%!important}.nuvo-tailwind .join-sheet-preview.not_firefox .handsontable .ht_clone_inline_start,.nuvo-tailwind .join-sheet-preview.not_firefox .handsontable .ht_clone_inline_start .wtHolder{height:100%!important}.nuvo-tailwind .join-sheet-preview.not_firefox .handsontable.add-space-scrollbar-h .ht_clone_inline_start,.nuvo-tailwind .join-sheet-preview.not_firefox .handsontable.add-space-scrollbar-h .ht_clone_inline_start .wtHolder{height:calc(100% - 4px)!important}.nuvo-tailwind .join-sheet-preview #hotInstance{height:100%}.nuvo-tailwind .join-sheet-preview #hotInstance .ht_clone_inline_start td,.nuvo-tailwind .join-sheet-preview #hotInstance .ht_clone_top_inline_start_corner{box-shadow:2px 0 5px -2px hsla(0,0%,53%,.3)}.nuvo-tailwind .join-sheet-preview .hide-border-last-column .ht_clone_top td:last-child,.nuvo-tailwind .join-sheet-preview .hide-border-last-column .ht_clone_top th:last-child,.nuvo-tailwind .join-sheet-preview div.hide-border-last-column .handsontable.ht_master tr td:last-child{border-right-color:transparent!important;border-right-width:0!important}.nuvo-tailwind .join-sheet-preview tr td.default-cell{--tw-text-opacity:1;color:rgb(22 35 56/var(--tw-text-opacity));font-size:.875rem;line-height:1.25rem}.nuvo-tailwind .join-sheet-preview .ht_clone_inline_start .wtHolder .wtHider div.wtSpreader .htCore tbody tr th{text-indent:-1px}.nuvo-tailwind .join-sheet-preview .ht_left .wtHolder .wtSpreader,.nuvo-tailwind .join-sheet-preview .ht_master .wtHolder .wtSpreader table{width:100%}.nuvo-tailwind .join-sheet-preview tr td div{box-sizing:border-box}.nuvo-tailwind .join-sheet-preview .handsontable th .colHeader{width:100%}.nuvo-tailwind .join-sheet-preview .handsontable.wt-full-width .ht_master.handsontable .wtHider,.nuvo-tailwind .join-sheet-preview .handsontable.wt-full-width .ht_master.handsontable .wtHider .wtSpreader{width:100%!important}.nuvo-tailwind .join-sheet-preview .handsontable span.colHeader{line-height:1.2}.nuvo-tailwind .htFocusCatcher{padding:0}.nuvo-tailwind .non-selectable-cell{pointer-events:none!important;-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}.nuvo-tailwind th.no-select-column{cursor:default!important}.nuvo-tailwind th.no-select-column:has(.example-header){pointer-events:none!important}"));document.head.appendChild(y4);var C4=document.createElement("style");C4.type="text/css";C4.appendChild(document.createTextNode('@font-face{font-display:swap;font-family:Inter;font-style:normal;font-weight:100 900;src:url(https://fonts.ingestro.com/inter/Inter-VariableFont_opsz,wght.ttf) format("truetype-variations")}.nuvo-tailwind{--tw-text-opacity:1;color:rgb(66 66 66/var(--tw-text-opacity));color:var(--globals-text-color);font-family:var(--globals-font-family);font-size:16px;letter-spacing:0;line-height:1.43}.nuvo-tailwind .text-color-primary{color:var(--text-color-primary)}.nuvo-tailwind .text-color-secondary{color:var(--text-color-secondary)}.nuvo-tailwind [role=gridcell]{padding:0}.nuvo-tailwind [role=gridcell][aria-selected=true]>.cell-viewer{box-shadow:inset 0 0 0 2px var(--rdg-selection-color)}.nuvo-tailwind .nuvo-invisible{visibility:hidden}.nuvo-tailwind .caption{font-size:12px;line-height:1.43}.nuvo-ReactModal__Body--open{overflow:hidden}:root{--layer-overlay:300;--nuvo-white:#fff;--nuvo-neutral-900:#2d2d2d;--shadow-bottom:0px 7px 15px 0px rgba(27,80,113,.1)}.nuvo-popover{box-sizing:border-box}.nuvo-popover,.nuvo-popover__anchor{display:inline-flex;flex-direction:column}.nuvo-popover__anchor{background-color:transparent;border:0;outline:0;padding:0}.nuvo-popover__content{background-color:var(--nuvo-white);border-radius:4px;box-shadow:var(--shadow-bottom);color:var(--nuvo-neutral-900);outline:none;overflow-y:auto;padding:12px 16px;z-index:var(--layer-overlay)}'));document.head.appendChild(C4);import"handsontable/styles/handsontable.css";import"handsontable/styles/ht-theme-classic.css";var S4=document.createElement("style");S4.type="text/css";S4.appendChild(document.createTextNode('.nuvo-tailwind .default-popper{--tw-text-opacity:1;border-radius:3px;border-width:1px;color:rgb(251 251 251/var(--tw-text-opacity));font-size:.75rem;line-height:1rem;opacity:0;padding-bottom:.75rem;padding-left:1rem;padding-right:1rem;padding-top:.75rem;pointer-events:none;z-index:170!important}.nuvo-tailwind .error-popper{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:rgb(237 112 112/var(--tw-bg-opacity));border-color:rgb(237 112 112/var(--tw-border-opacity))}.nuvo-tailwind .warning-popper{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:rgb(255 193 22/var(--tw-bg-opacity));border-color:rgb(255 193 22/var(--tw-border-opacity))}.nuvo-tailwind .multiple-popper{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:rgb(84 84 84/var(--tw-bg-opacity));border-color:rgb(84 84 84/var(--tw-border-opacity))}.nuvo-tailwind .disabled-popper{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:rgb(84 84 84/var(--tw-bg-opacity));border-color:rgb(84 84 84/var(--tw-border-opacity))}.nuvo-tailwind #arrow-message-info,.nuvo-tailwind #arrow-message-info:before{background:inherit;height:13px;position:absolute;width:13px}.nuvo-tailwind #arrow-message-info{visibility:hidden}.nuvo-tailwind #arrow-message-info:before{content:"";transform:rotate(45deg);visibility:visible}.nuvo-tailwind [overflow-hide]{opacity:0!important;pointer-events:none;visibility:hidden!important;z-index:100}.nuvo-tailwind [overflow-hide] #arrow{opacity:0;pointer-events:none;visibility:hidden}.nuvo-tailwind .remove-popper{--tw-text-opacity:1;border-radius:3px;border-width:1px;color:rgb(251 251 251/var(--tw-text-opacity));font-size:.75rem;line-height:1rem;opacity:0;padding:1rem;pointer-events:none;z-index:170!important}.nuvo-tailwind .remove-info-popper{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:rgb(40 64 103/var(--tw-bg-opacity));border-color:rgb(40 64 103/var(--tw-border-opacity))}'));document.head.appendChild(S4);var I4=document.createElement("style");I4.type="text/css";I4.appendChild(document.createTextNode(".nuvo-tailwind #dropdown-scroll-element-id::-webkit-scrollbar-track{width:.25rem!important}.nuvo-tailwind #dropdown-scroll-element-id::-webkit-scrollbar-thumb{background-clip:content-box;background-color:#818b99;border:0 solid transparent;border-radius:9px}.nuvo-tailwind #dropdown-scroll-element-id::-webkit-scrollbar{height:.25rem!important;width:.25rem!important}.nuvo-tailwind #dropdown-scroll-element-id::-webkit-scrollbar-track{background-clip:padding-box;background-color:#dfe2e4;border-radius:4px}.nuvo-tailwind #dropdown-scroll-element-id::-webkit-scrollbar-thumb{--tw-bg-opacity:1!important;background-color:rgb(179 188 192/var(--tw-bg-opacity))!important;border-radius:4px}"));document.head.appendChild(I4);import{createContext as ISe,useEffect as _Se,useMemo as MSe,useState as CH}from"react";import{useContext as xSe}from"react";var Vr=()=>xSe(R5);import{Subject as ESe}from"rxjs";var _4=()=>{},M4=class{constructor(e,r){this.onResultCallbackMapping={};this.getGeneralHooks=e=>{let r=this.hooksAPI.onCancel??_4,o=e?.trim()?.length>0?this.onResultCallbackMapping[e]:this.hooksAPI.onResults,a=this.hooksAPI.onEntryChange??_4,n=this.hooksAPI.onEntryInit??_4;return{onResults:o,onCancel:r,onEntryChange:a,onEntryInit:n}};this.hooksAPI=e,this.onResultCallbackMapping={[r]:e.onResults}}},yH=M4;import{useContext as ySe,useMemo as CSe}from"react";var SSe=()=>{let{onResults:t,onCancel:e,onEntryChange:r,onEntryInit:o,columnHooks:a}=gt(),n=ySe(Gv),i=be(),s=CSe(()=>new yH({onResults:t,onCancel:e,onEntryChange:r,onEntryInit:o,columnHooks:a},i.identifier),[t,e,r,o,a,i.identifier]);return{...n,hooksAPIMapper:s,getIdentifier:()=>i.identifier}},dn=SSe;import{jsx as RSe,jsxs as TSe}from"react/jsx-runtime";var Gv=ISe({setLoadingInitialValues:()=>{},loadingInitialValues:!0,setReviewEntriesRendered:()=>{},reviewEntriesRendered:!1}),SH=({children:t})=>{let[e,r]=CH(!0),[o,a]=CH(!1),n=MSe(()=>new ESe,[]);return TSe(Gv.Provider,{value:{cancelHookObservable:n,loadingInitialValues:e,setLoadingInitialValues:r,reviewEntriesRendered:o,setReviewEntriesRendered:a},children:[RSe(LSe,{}),t]})},LSe=()=>{let{cancelHookObservable:t,hooksAPIMapper:e,getIdentifier:r}=dn(),o=Vr(),{featureWhiteList:a}=rr();return _Se(()=>{let n=t?.subscribe(()=>{e.getGeneralHooks(r()).onCancel()});return()=>{n?.unsubscribe()}},[t,e,r,o,a]),null};import{useCallback as aV}from"react";import oV from"url-join";import*as fn from"react";import*as fIe from"react-dom";import*as Xe from"react";function Wx(){return Wx=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var o in r)({}).hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Wx.apply(null,arguments)}var Js;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(Js||(Js={}));function EH(t){t===void 0&&(t={});let{initialEntries:e=["/"],initialIndex:r,v5Compat:o=!1}=t,a;a=e.map((p,m)=>c(p,typeof p=="string"?null:p.state,m===0?"default":void 0));let n=l(r??a.length-1),i=Js.Pop,s=null;function l(p){return Math.min(Math.max(p,0),a.length-1)}function u(){return a[n]}function c(p,m,h){m===void 0&&(m=null);let g=OSe(a?u().pathname:"/",p,m,h);return qx(g.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(p)),g}function d(p){return typeof p=="string"?p:LH(p)}return{get index(){return n},get action(){return i},get location(){return u()},createHref:d,createURL(p){return new URL(d(p),"http://localhost")},encodeLocation(p){let m=typeof p=="string"?Kl(p):p;return{pathname:m.pathname||"",search:m.search||"",hash:m.hash||""}},push(p,m){i=Js.Push;let h=c(p,m);n+=1,a.splice(n,a.length,h),o&&s&&s({action:i,location:h,delta:1})},replace(p,m){i=Js.Replace;let h=c(p,m);a[n]=h,o&&s&&s({action:i,location:h,delta:0})},go(p){i=Js.Pop;let m=l(n+p),h=a[m];n=m,s&&s({action:i,location:h,delta:p})},listen(p){return s=p,()=>{s=null}}}}function qo(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function qx(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function kSe(){return Math.random().toString(36).substr(2,8)}function OSe(t,e,r,o){return r===void 0&&(r=null),Wx({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Kl(e):e,{state:r,key:e&&e.key||o||kSe()})}function LH(t){let{pathname:e="/",search:r="",hash:o=""}=t;return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),o&&o!=="#"&&(e+=o.charAt(0)==="#"?o:"#"+o),e}function Kl(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substr(r),t=t.substr(0,r));let o=t.indexOf("?");o>=0&&(e.search=t.substr(o),t=t.substr(0,o)),t&&(e.pathname=t)}return e}var IH;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(IH||(IH={}));function L4(t,e,r){return r===void 0&&(r="/"),PSe(t,e,r,!1)}function PSe(t,e,r,o){let a=typeof e=="string"?Kl(e):e,n=R4(a.pathname||"/",r);if(n==null)return null;let i=RH(t);DSe(i);let s=null,l=kH(n);for(let u=0;s==null&&u<i.length;++u)s=jSe(i[u],l,o);return s}function RH(t,e,r,o){e===void 0&&(e=[]),r===void 0&&(r=[]),o===void 0&&(o="");let a=(n,i,s)=>{let l={relativePath:s===void 0?n.path||"":s,caseSensitive:n.caseSensitive===!0,childrenIndex:i,route:n};l.relativePath.startsWith("/")&&(qo(l.relativePath.startsWith(o),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+o+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(o.length));let u=nc([o,l.relativePath]),c=r.concat(l);n.children&&n.children.length>0&&(qo(n.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),RH(n.children,e,c,u)),!(n.path==null&&!n.index)&&e.push({path:u,score:$Se(u,n.index),routesMeta:c})};return t.forEach((n,i)=>{var s;if(n.path===""||!((s=n.path)!=null&&s.includes("?")))a(n,i);else for(let l of TH(n.path))a(n,i,l)}),e}function TH(t){let e=t.split("/");if(e.length===0)return[];let[r,...o]=e,a=r.endsWith("?"),n=r.replace(/\?$/,"");if(o.length===0)return a?[n,""]:[n];let i=TH(o.join("/")),s=[];return s.push(...i.map(l=>l===""?n:[n,l].join("/"))),a&&s.push(...i),s.map(l=>t.startsWith("/")&&l===""?"/":l)}function DSe(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:USe(e.routesMeta.map(o=>o.childrenIndex),r.routesMeta.map(o=>o.childrenIndex)))}var ASe=/^:[\w-]+$/,NSe=3,FSe=2,BSe=1,HSe=10,VSe=-2,_H=t=>t==="*";function $Se(t,e){let r=t.split("/"),o=r.length;return r.some(_H)&&(o+=VSe),e&&(o+=FSe),r.filter(a=>!_H(a)).reduce((a,n)=>a+(ASe.test(n)?NSe:n===""?BSe:HSe),o)}function USe(t,e){return t.length===e.length&&t.slice(0,-1).every((o,a)=>o===e[a])?t[t.length-1]-e[e.length-1]:0}function jSe(t,e,r){r===void 0&&(r=!1);let{routesMeta:o}=t,a={},n="/",i=[];for(let s=0;s<o.length;++s){let l=o[s],u=s===o.length-1,c=n==="/"?e:e.slice(n.length)||"/",d=zx({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),f=l.route;if(!d&&u&&r&&!o[o.length-1].route.index&&(d=zx({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!d)return null;Object.assign(a,d.params),i.push({params:a,pathname:nc([n,d.pathname]),pathnameBase:KSe(nc([n,d.pathnameBase])),route:f}),d.pathnameBase!=="/"&&(n=nc([n,d.pathnameBase]))}return i}function zx(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[r,o]=WSe(t.path,t.caseSensitive,t.end),a=e.match(r);if(!a)return null;let n=a[0],i=n.replace(/(.)\/+$/,"$1"),s=a.slice(1);return{params:o.reduce((u,c,d)=>{let{paramName:f,isOptional:p}=c;if(f==="*"){let h=s[d]||"";i=n.slice(0,n.length-h.length).replace(/(.)\/+$/,"$1")}let m=s[d];return p&&!m?u[f]=void 0:u[f]=(m||"").replace(/%2F/g,"/"),u},{}),pathname:n,pathnameBase:i,pattern:t}}function WSe(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!0),qx(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let o=[],a="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,l)=>(o.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(o.push({paramName:"*"}),a+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":t!==""&&t!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,e?void 0:"i"),o]}function kH(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return qx(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function R4(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,o=t.charAt(r);return o&&o!=="/"?null:t.slice(r)||"/"}var zSe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,qSe=t=>zSe.test(t);function OH(t,e){e===void 0&&(e="/");let{pathname:r,search:o="",hash:a=""}=typeof t=="string"?Kl(t):t,n;if(r)if(qSe(r))n=r;else{if(r.includes("//")){let i=r;r=AH(r),qx(!1,"Pathnames cannot have embedded double slashes - normalizing "+(i+" -> "+r))}r.startsWith("/")?n=MH(r.substring(1),"/"):n=MH(r,e)}else n=e;return{pathname:n,search:YSe(o),hash:XSe(a)}}function MH(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function E4(t,e,r,o){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(o)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function GSe(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function PH(t,e){let r=GSe(t);return e?r.map((o,a)=>a===r.length-1?o.pathname:o.pathnameBase):r.map(o=>o.pathnameBase)}function DH(t,e,r,o){o===void 0&&(o=!1);let a;typeof t=="string"?a=Kl(t):(a=Wx({},t),qo(!a.pathname||!a.pathname.includes("?"),E4("?","pathname","search",a)),qo(!a.pathname||!a.pathname.includes("#"),E4("#","pathname","hash",a)),qo(!a.search||!a.search.includes("#"),E4("#","search","hash",a)));let n=t===""||a.pathname==="",i=n?"/":a.pathname,s;if(i==null)s=r;else{let d=e.length-1;if(!o&&i.startsWith("..")){let f=i.split("/");for(;f[0]==="..";)f.shift(),d-=1;a.pathname=f.join("/")}s=d>=0?e[d]:"/"}let l=OH(a,s),u=i&&i!=="/"&&i.endsWith("/"),c=(n||i===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}var AH=t=>t.replace(/\/\/+/g,"/"),nc=t=>AH(t.join("/")),KSe=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),YSe=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,XSe=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function T4(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}var NH=["post","put","patch","delete"],Dyr=new Set(NH),ZSe=["get",...NH],Ayr=new Set(ZSe);function Kv(){return Kv=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var o in r)({}).hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Kv.apply(null,arguments)}var Kx=Xe.createContext(null),HH=Xe.createContext(null);var Xv=Xe.createContext(null),$d=Xe.createContext(null),Ud=Xe.createContext({outlet:null,matches:[],isDataRoute:!1}),VH=Xe.createContext(null);function jd(){return Xe.useContext($d)!=null}function Vt(){return jd()||qo(!1),Xe.useContext($d).location}function $H(t){Xe.useContext(Xv).static||Xe.useLayoutEffect(t)}function O4(){let{isDataRoute:t}=Xe.useContext(Ud);return t?lIe():QSe()}function QSe(){jd()||qo(!1);let t=Xe.useContext(Kx),{basename:e,future:r,navigator:o}=Xe.useContext(Xv),{matches:a}=Xe.useContext(Ud),{pathname:n}=Vt(),i=JSON.stringify(PH(a,r.v7_relativeSplatPath)),s=Xe.useRef(!1);return $H(()=>{s.current=!0}),Xe.useCallback(function(u,c){if(c===void 0&&(c={}),!s.current)return;if(typeof u=="number"){o.go(u);return}let d=DH(u,JSON.parse(i),n,c.relative==="path");t==null&&e!=="/"&&(d.pathname=d.pathname==="/"?e:nc([e,d.pathname])),(c.replace?o.replace:o.push)(d,c.state,c)},[e,o,i,n,t])}function UH(t,e){return eIe(t,e)}function eIe(t,e,r,o){jd()||qo(!1);let{navigator:a}=Xe.useContext(Xv),{matches:n}=Xe.useContext(Ud),i=n[n.length-1],s=i?i.params:{},l=i?i.pathname:"/",u=i?i.pathnameBase:"/",c=i&&i.route,d=Vt(),f;if(e){var p;let w=typeof e=="string"?Kl(e):e;u==="/"||(p=w.pathname)!=null&&p.startsWith(u)||qo(!1),f=w}else f=d;let m=f.pathname||"/",h=m;if(u!=="/"){let w=u.replace(/^\//,"").split("/");h="/"+m.replace(/^\//,"").split("/").slice(w.length).join("/")}let g=L4(t,{pathname:h}),b=aIe(g&&g.map(w=>Object.assign({},w,{params:Object.assign({},s,w.params),pathname:nc([u,a.encodeLocation?a.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?u:nc([u,a.encodeLocation?a.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),n,r,o);return e&&b?Xe.createElement($d.Provider,{value:{location:Kv({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:Js.Pop}},b):b}function tIe(){let t=zH(),e=T4(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,o="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:o},n={padding:"2px 4px",backgroundColor:o};return Xe.createElement(Xe.Fragment,null,Xe.createElement("h2",null,"Unexpected Application Error!"),Xe.createElement("h3",{style:{fontStyle:"italic"}},e),r?Xe.createElement("pre",{style:a},r):null,null)}var rIe=Xe.createElement(tIe,null),k4=class extends Xe.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,r){return r.location!==e.location||r.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:r.error,location:r.location,revalidation:e.revalidation||r.revalidation}}componentDidCatch(e,r){console.error("React Router caught the following error during render",e,r)}render(){return this.state.error!==void 0?Xe.createElement(Ud.Provider,{value:this.props.routeContext},Xe.createElement(VH.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function oIe(t){let{routeContext:e,match:r,children:o}=t,a=Xe.useContext(Kx);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),Xe.createElement(Ud.Provider,{value:e},o)}function aIe(t,e,r,o){var a;if(e===void 0&&(e=[]),r===void 0&&(r=null),o===void 0&&(o=null),t==null){var n;if(!r)return null;if(r.errors)t=r.matches;else if((n=o)!=null&&n.v7_partialHydration&&e.length===0&&!r.initialized&&r.matches.length>0)t=r.matches;else return null}let i=t,s=(a=r)==null?void 0:a.errors;if(s!=null){let c=i.findIndex(d=>d.route.id&&s?.[d.route.id]!==void 0);c>=0||qo(!1),i=i.slice(0,Math.min(i.length,c+1))}let l=!1,u=-1;if(r&&o&&o.v7_partialHydration)for(let c=0;c<i.length;c++){let d=i[c];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=c),d.route.id){let{loaderData:f,errors:p}=r,m=d.route.loader&&f[d.route.id]===void 0&&(!p||p[d.route.id]===void 0);if(d.route.lazy||m){l=!0,u>=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((c,d,f)=>{let p,m=!1,h=null,g=null;r&&(p=s&&d.route.id?s[d.route.id]:void 0,h=d.route.errorElement||rIe,l&&(u<0&&f===0?(uIe("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),m=!0,g=null):u===f&&(m=!0,g=d.route.hydrateFallbackElement||null)));let b=e.concat(i.slice(0,f+1)),w=()=>{let y;return p?y=h:m?y=g:d.route.Component?y=Xe.createElement(d.route.Component,null):d.route.element?y=d.route.element:y=c,Xe.createElement(oIe,{match:d,routeContext:{outlet:c,matches:b,isDataRoute:r!=null},children:y})};return r&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?Xe.createElement(k4,{location:r.location,revalidation:r.revalidation,component:h,error:p,children:w(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):w()},null)}var jH=(function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t})(jH||{}),Gx=(function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t})(Gx||{});function nIe(t){let e=Xe.useContext(Kx);return e||qo(!1),e}function iIe(t){let e=Xe.useContext(HH);return e||qo(!1),e}function sIe(t){let e=Xe.useContext(Ud);return e||qo(!1),e}function WH(t){let e=sIe(t),r=e.matches[e.matches.length-1];return r.route.id||qo(!1),r.route.id}function zH(){var t;let e=Xe.useContext(VH),r=iIe(Gx.UseRouteError),o=WH(Gx.UseRouteError);return e!==void 0?e:(t=r.errors)==null?void 0:t[o]}function lIe(){let{router:t}=nIe(jH.UseNavigateStable),e=WH(Gx.UseNavigateStable),r=Xe.useRef(!1);return $H(()=>{r.current=!0}),Xe.useCallback(function(a,n){n===void 0&&(n={}),r.current&&(typeof a=="number"?t.navigate(a):t.navigate(a,Kv({fromRouteId:e},n)))},[t,e])}var FH={};function uIe(t,e,r){!e&&!FH[t]&&(FH[t]=!0)}var Kp=(t,e,r)=>(""+e+("You can use the `"+t+"` future flag to opt-in early. ")+("For more information, see "+r+"."),void 0);function cIe(t,e){t?.v7_startTransition===void 0&&Kp("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),t?.v7_relativeSplatPath===void 0&&(!e||e.v7_relativeSplatPath===void 0)&&Kp("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),e&&(e.v7_fetcherPersist===void 0&&Kp("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),e.v7_normalizeFormMethod===void 0&&Kp("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),e.v7_partialHydration===void 0&&Kp("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),e.v7_skipActionErrorRevalidation===void 0&&Kp("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}var dIe="startTransition",BH=Xe[dIe];function P4(t){let{basename:e,children:r,initialEntries:o,initialIndex:a,future:n}=t,i=Xe.useRef();i.current==null&&(i.current=EH({initialEntries:o,initialIndex:a,v5Compat:!0}));let s=i.current,[l,u]=Xe.useState({action:s.action,location:s.location}),{v7_startTransition:c}=n||{},d=Xe.useCallback(f=>{c&&BH?BH(()=>u(f)):u(f)},[u,c]);return Xe.useLayoutEffect(()=>s.listen(d),[s,d]),Xe.useEffect(()=>cIe(n),[n]),Xe.createElement(qH,{basename:e,children:r,location:l.location,navigationType:l.action,navigator:s,future:n})}function Ii(t){qo(!1)}function qH(t){let{basename:e="/",children:r=null,location:o,navigationType:a=Js.Pop,navigator:n,static:i=!1,future:s}=t;jd()&&qo(!1);let l=e.replace(/^\/*/,"/"),u=Xe.useMemo(()=>({basename:l,navigator:n,static:i,future:Kv({v7_relativeSplatPath:!1},s)}),[l,s,n,i]);typeof o=="string"&&(o=Kl(o));let{pathname:c="/",search:d="",hash:f="",state:p=null,key:m="default"}=o,h=Xe.useMemo(()=>{let g=R4(c,l);return g==null?null:{location:{pathname:g,search:d,hash:f,state:p,key:m},navigationType:a}},[l,c,d,f,p,m,a]);return h==null?null:Xe.createElement(Xv.Provider,{value:u},Xe.createElement($d.Provider,{children:r,value:h}))}function Yp(t){let{children:e,location:r}=t;return UH(Yv(e),r)}var Uyr=new Promise(()=>{});function Yv(t,e){e===void 0&&(e=[]);let r=[];return Xe.Children.forEach(t,(o,a)=>{if(!Xe.isValidElement(o))return;let n=[...e,a];if(o.type===Xe.Fragment){r.push.apply(r,Yv(o.props.children,n));return}o.type!==Ii&&qo(!1),!o.props.index||!o.props.children||qo(!1);let i={id:o.props.id||n.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,loader:o.props.loader,action:o.props.action,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(i.children=Yv(o.props.children,n)),r.push(i)}),r}var pIe="6";try{window.__reactRouterVersion=pIe}catch{}var mIe="startTransition",bCr=fn[mIe],hIe="flushSync",wCr=fIe[hIe],gIe="useId",xCr=fn[gIe];var yCr=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";var GH;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(GH||(GH={}));var KH;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(KH||(KH={}));var yr="/upload-file",Mr="/review-entries",gr="/select-header",jt="/match-column",Xr="/select-sheet",Go="/join-column";import{createContext as yIe,useMemo as CIe,useState as JH,useCallback as QH}from"react";var Yx,vIe=new Uint8Array(16);function D4(){if(!Yx&&(Yx=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Yx))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Yx(vIe)}var YH=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function bIe(t){return typeof t=="string"&&YH.test(t)}var XH=bIe;var ha=[];for(Xx=0;Xx<256;++Xx)ha.push((Xx+256).toString(16).substr(1));var Xx;function wIe(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(ha[t[e+0]]+ha[t[e+1]]+ha[t[e+2]]+ha[t[e+3]]+"-"+ha[t[e+4]]+ha[t[e+5]]+"-"+ha[t[e+6]]+ha[t[e+7]]+"-"+ha[t[e+8]]+ha[t[e+9]]+"-"+ha[t[e+10]]+ha[t[e+11]]+ha[t[e+12]]+ha[t[e+13]]+ha[t[e+14]]+ha[t[e+15]]).toLowerCase();if(!XH(r))throw TypeError("Stringified UUID is invalid");return r}var ZH=wIe;function xIe(t,e,r){t=t||{};var o=t.random||(t.rng||D4)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,e){r=r||0;for(var a=0;a<16;++a)e[r+a]=o[a];return e}return ZH(o)}var A4=xIe;import{jsx as SIe}from"react/jsx-runtime";var N4=yIe({sessionId:"",generateNewSessionId:()=>{},setHasUploadedData:()=>{}}),eV=t=>{let e=QH(()=>A4().replace(/-/g,""),[]),[r,o]=JH(e()),[a,n]=JH(!1),i=QH(()=>{a&&o(e())},[e,a]),s=CIe(()=>({sessionId:r,generateNewSessionId:i,setHasUploadedData:n}),[r,i]);return SIe(N4.Provider,{value:s,children:t.children})};import{useContext as IIe}from"react";var _Ie=()=>IIe(N4),$r=_Ie;import{createContext as MIe}from"react";import{jsx as EIe}from"react/jsx-runtime";var F4=MIe({isUseInRouter:!1}),tV=({isUseInRouter:t,children:e})=>EIe(F4.Provider,{value:{isUseInRouter:t},children:e});import{useContext as LIe}from"react";var RIe=()=>LIe(F4),rV=RIe;var nV=()=>{let t=O4(),{isUseInRouter:e}=rV();return aV((o,a)=>{if(e){let n=window.location.pathname,i=`${window.location.hash}`.replace("#",""),s=window.location.hash,l=typeof o=="string"?o:o.pathname,u=s?oV(i,l):oV(n,l);return t({pathname:u},{...a,replace:!0})}else{let n=typeof o=="string"?o:o.pathname;return t({pathname:n},{...a,replace:!0})}},[t,e])},Xp=()=>{let t=nV(),{columns:e}=be(),r=Vr(),{setHasUploadedData:o}=$r();return{navigateToReviewEntries:aV(()=>{t({pathname:Mr},{state:{hideStepper:!0,columns:e,dataModels:r.getDataModels()}}),o(!0)},[e,r,t,o])}},Ur=nV;import{isEmpty as _2e,isNil as UV}from"lodash";var kr=Ft(_d(),1);import u2e,{forwardRef as c2e,Fragment as d2e,useCallback as _i,useEffect as ey,useImperativeHandle as f2e,useMemo as Jp,useReducer as p2e,useRef as Qv}from"react";O5();var TIe=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function Wd(t,e,r){let o=kIe(t),{webkitRelativePath:a}=t,n=typeof e=="string"?e:typeof a=="string"&&a.length>0?a:`./${t.name}`;return typeof o.path!="string"&&iV(o,"path",n),r!==void 0&&Object.defineProperty(o,"handle",{value:r,writable:!1,configurable:!1,enumerable:!0}),iV(o,"relativePath",n),o}function kIe(t){let{name:e}=t;if(e&&e.lastIndexOf(".")!==-1&&!t.type){let o=e.split(".").pop().toLowerCase(),a=TIe.get(o);a&&Object.defineProperty(t,"type",{value:a,writable:!1,configurable:!1,enumerable:!0})}return t}function iV(t,e,r){Object.defineProperty(t,e,{value:r,writable:!1,configurable:!1,enumerable:!0})}var OIe=[".DS_Store","Thumbs.db"];function H4(t){return Yu(this,void 0,void 0,function*(){return Zx(t)&&PIe(t.dataTransfer)?FIe(t.dataTransfer,t.type):DIe(t)?AIe(t):Array.isArray(t)&&t.every(e=>"getFile"in e&&typeof e.getFile=="function")?NIe(t):[]})}function PIe(t){return Zx(t)}function DIe(t){return Zx(t)&&Zx(t.target)}function Zx(t){return typeof t=="object"&&t!==null}function AIe(t){return B4(t.target.files).map(e=>Wd(e))}function NIe(t){return Yu(this,void 0,void 0,function*(){return(yield Promise.all(t.map(r=>r.getFile()))).map(r=>Wd(r))})}function FIe(t,e){return Yu(this,void 0,void 0,function*(){if(t.items){let r=B4(t.items).filter(a=>a.kind==="file");if(e!=="drop")return r;let o=yield Promise.all(r.map(BIe));return sV(uV(o))}return sV(B4(t.files).map(r=>Wd(r)))})}function sV(t){return t.filter(e=>OIe.indexOf(e.name)===-1)}function B4(t){if(t===null)return[];let e=[];for(let r=0;r<t.length;r++){let o=t[r];e.push(o)}return e}function BIe(t){if(typeof t.webkitGetAsEntry!="function")return lV(t);let e=t.webkitGetAsEntry();return e&&e.isDirectory?cV(e):lV(t,e)}function uV(t){return t.reduce((e,r)=>[...e,...Array.isArray(r)?uV(r):[r]],[])}function lV(t,e){return Yu(this,void 0,void 0,function*(){var r;if(globalThis.isSecureContext&&typeof t.getAsFileSystemHandle=="function"){let n=yield t.getAsFileSystemHandle();if(n===null)throw new Error(`${t} is not a File`);if(n!==void 0){let i=yield n.getFile();return i.handle=n,Wd(i)}}let o=t.getAsFile();if(!o)throw new Error(`${t} is not a File`);return Wd(o,(r=e?.fullPath)!==null&&r!==void 0?r:void 0)})}function HIe(t){return Yu(this,void 0,void 0,function*(){return t.isDirectory?cV(t):VIe(t)})}function cV(t){let e=t.createReader();return new Promise((r,o)=>{let a=[];function n(){e.readEntries(i=>Yu(this,void 0,void 0,function*(){if(i.length){let s=Promise.all(i.map(HIe));a.push(s),n()}else try{let s=yield Promise.all(a);r(s)}catch(s){o(s)}}),i=>{o(i)})}n()})}function VIe(t){return Yu(this,void 0,void 0,function*(){return new Promise((e,r)=>{t.file(o=>{let a=Wd(o,t.fullPath);e(a)},o=>{r(o)})})})}var Jx=Ft(dV(),1);function fV(t){return jIe(t)||UIe(t)||bV(t)||$Ie()}function $Ie(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
110
110
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UIe(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function jIe(t){if(Array.isArray(t))return $4(t)}function pV(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,o)}return r}function mV(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?pV(Object(r),!0).forEach(function(o){vV(t,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pV(Object(r)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))})}return t}function vV(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Zv(t,e){return qIe(t)||zIe(t,e)||bV(t,e)||WIe()}function WIe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
111
111
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bV(t,e){if(t){if(typeof t=="string")return $4(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $4(t,e)}}function $4(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}function zIe(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var o=[],a=!0,n=!1,i,s;try{for(r=r.call(t);!(a=(i=r.next()).done)&&(o.push(i.value),!(e&&o.length===e));a=!0);}catch(l){n=!0,s=l}finally{try{!a&&r.return!=null&&r.return()}finally{if(n)throw s}}return o}}function qIe(t){if(Array.isArray(t))return t}var GIe=typeof Jx.default=="function"?Jx.default:Jx.default.default,wV="file-invalid-type",xV="file-too-large",yV="file-too-small",CV="too-many-files",Qx={FileInvalidType:wV,FileTooLarge:xV,FileTooSmall:yV,TooManyFiles:CV},KIe=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=e.split(","),o=r.length>1?"one of ".concat(r.join(", ")):r[0];return{code:wV,message:"File type must be ".concat(o)}},hV=function(e){return{code:xV,message:"File is larger than ".concat(e," ").concat(e===1?"byte":"bytes")}},gV=function(e){return{code:yV,message:"File is smaller than ".concat(e," ").concat(e===1?"byte":"bytes")}},SV={code:CV,message:"Too many files"};function YIe(t){return t.type===""&&typeof t.getAsFile=="function"}function U4(t,e){var r=t.type==="application/x-moz-file"||GIe(t,e)||YIe(t);return[r,r?null:KIe(e)]}function j4(t,e,r){if(zd(t.size))if(zd(e)&&zd(r)){if(t.size>r)return[!1,hV(r)];if(t.size<e)return[!1,gV(e)]}else{if(zd(e)&&t.size<e)return[!1,gV(e)];if(zd(r)&&t.size>r)return[!1,hV(r)]}return[!0,null]}function zd(t){return t!=null}function IV(t){var e=t.files,r=t.accept,o=t.minSize,a=t.maxSize,n=t.multiple,i=t.maxFiles,s=t.validator;return!n&&e.length>1||n&&i>=1&&e.length>i?!1:e.every(function(l){var u=U4(l,r),c=Zv(u,1),d=c[0],f=j4(l,o,a),p=Zv(f,1),m=p[0],h=s?s(l):null;return d&&m&&!h})}function Jv(t){return typeof t.isPropagationStopped=="function"?t.isPropagationStopped():typeof t.cancelBubble<"u"?t.cancelBubble:!1}function Zp(t){return t.dataTransfer?Array.prototype.some.call(t.dataTransfer.types,function(e){return e==="Files"||e==="application/x-moz-file"}):!!t.target&&!!t.target.files}function W4(t){t.preventDefault()}function XIe(t){return t.indexOf("MSIE")!==-1||t.indexOf("Trident/")!==-1}function ZIe(t){return t.indexOf("Edge/")!==-1}function _V(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return XIe(t)||ZIe(t)}function vs(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(o){for(var a=arguments.length,n=new Array(a>1?a-1:0),i=1;i<a;i++)n[i-1]=arguments[i];return e.some(function(s){return!Jv(o)&&s&&s.apply(void 0,[o].concat(n)),Jv(o)})}}function MV(){return"showOpenFilePicker"in window}function EV(t){if(zd(t)){var e=Object.entries(t).filter(function(r){var o=Zv(r,2),a=o[0],n=o[1],i=!0;return kV(a)||(console.warn('Skipped "'.concat(a,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),i=!1),(!Array.isArray(n)||!n.every(OV))&&(console.warn('Skipped "'.concat(a,'" because an invalid file extension was provided.')),i=!1),i}).reduce(function(r,o){var a=Zv(o,2),n=a[0],i=a[1];return mV(mV({},r),{},vV({},n,i))},{});return[{description:"Files",accept:e}]}return t}function LV(t){if(zd(t))return Object.entries(t).reduce(function(e,r){var o=Zv(r,2),a=o[0],n=o[1];return[].concat(fV(e),[a],fV(n))},[]).filter(function(e){return kV(e)||OV(e)}).join(",")}function RV(t){return t instanceof DOMException&&(t.name==="AbortError"||t.code===t.ABORT_ERR)}function TV(t){return t instanceof DOMException&&(t.name==="SecurityError"||t.code===t.SECURITY_ERR)}function kV(t){return t==="audio/*"||t==="video/*"||t==="image/*"||t==="text/*"||t==="application/*"||/\w+\/[-+.\w]+/g.test(t)}function OV(t){return/^.*\.[\w]+$/.test(t)}var JIe=["children"],QIe=["open"],e2e=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],t2e=["refKey","onChange","onClick"];function PV(t){return a2e(t)||o2e(t)||NV(t)||r2e()}function r2e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
@@ -397,11 +397,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
397
397
  @media (min-width: ${Wr.large}) {
398
398
  grid-template-columns: minmax(610px, 1fr) 1fr;
399
399
  }
400
- `,v({"&&":e})),children:t}),lq=N6e;import{jsx as uq,jsxs as U6e}from"react/jsx-runtime";var $6e=({children:t,matchedDataModel:e,sheetColumn:r,prefixName:o})=>{let{collapseMatchedColumns:a}=be(),n=H6e(()=>e?a?!0:!e.isDropdown():!1,[e,a]),{isMatchingReportEmpty:i,isPreviewDataEmpty:s}=cm({matchedDataModel:e,prefixName:o,sheetColumn:r}),l=i&&s,[u,c]=V6e(n),d=X(),f=ML(()=>{c(h=>!h)},[]),p=ML(()=>{c(!1)},[]),m=ML(()=>{c(!0)},[]);return B6e(()=>{l&&c(!0)},[l]),uq(Ly.Provider,{value:{isCollapse:u,toggleCollapse:f,toggleCloseCollapse:m,toggleOpenCollapse:p},children:U6e(lq,{configTheme:d.getColumnMatchTheme().root,children:[l?null:uq(sq,{onClick:f,isCollapse:u,disabled:l,configTheme:d.getColumnMatchTheme().icon}),t]})})},cq=$6e;import{jsx as EL,jsxs as W6e}from"react/jsx-runtime";var dq=({sheetColumn:t,matchedDataModel:e,prefixName:r,configTheme:o,configThemePopper:a,index:n})=>{let[i,s]=j6e(!1),{mappingViewMode:l}=be();return W6e(cq,{matchedDataModel:e,prefixName:r,sheetColumn:t,children:[l==="targetColumns"?e?EL(Dz,{sheetColumn:t,matchedDataModel:e,prefixName:r,configTheme:o,configThemePopper:a,index:n,setLoadingMatchingMoreOptions:s,loadingMatchingMoreOptions:i}):null:t?EL(YW,{sheetColumn:t,matchedDataModel:e,prefixName:r,configTheme:o,configThemePopper:a,index:n,setLoadingMatchingMoreOptions:s,loadingMatchingMoreOptions:i}):null,EL(oq,{matchedDataModel:e,sheetColumn:t,prefixName:r,configTheme:o})]})};import{useCallback as G6e,useEffect as K6e,useMemo as TC}from"react";import{jsx as LL,jsxs as q6e}from"react/jsx-runtime";var z6e=({title:t,titleId:e,...r})=>q6e("svg",{width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...r,children:[t?LL("title",{id:e,children:t}):null,LL("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.33398 7.00033C2.33398 6.67816 2.59515 6.41699 2.91732 6.41699H11.084C11.4062 6.41699 11.6673 6.67816 11.6673 7.00033C11.6673 7.32249 11.4062 7.58366 11.084 7.58366H2.91732C2.59515 7.58366 2.33398 7.32249 2.33398 7.00033Z",fill:"currentColor"}),LL("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.99935 2.33301C7.32152 2.33301 7.58268 2.59418 7.58268 2.91634V11.083C7.58268 11.4052 7.32152 11.6663 6.99935 11.6663C6.67718 11.6663 6.41602 11.4052 6.41602 11.083V2.91634C6.41602 2.59418 6.67718 2.33301 6.99935 2.33301Z",fill:"currentColor"})]});var RC=z6e;import{Fragment as Y6e,jsx as kC,jsxs as fq}from"react/jsx-runtime";var pq=()=>{let{dataModelSheetMatching:t}=Ta(),{control:e}=zt(),{fields:r,append:o}=dc({name:"matching",control:e}),{allowCustomColumns:a,mappingViewMode:n}=be(),{open:i}=vc(),s=l1({name:"matching",control:e}),{updateMappings:l}=Mi(),u=TC(()=>(s||[]).filter(b=>n==="targetColumns"?b.sheetColumn:b.matchedDataModel?.dataModel).map(b=>b.matchedDataModel.dataModel.getKey()),[s,n]);K6e(()=>{l(u)},[u]);let c=X(),d=TC(()=>c.getColumnMatchTheme(),[c]),f=TC(()=>c.getPopoverInfo(),[c]),{t:p}=q(),m=TC(()=>{let g=new Map;for(let b of t.getDataModels())g.set(b.getKey(),b);return g},[t]),h=G6e(()=>{i({onSubmit:g=>{o({matchedDataModel:{dataModel:g}})}})},[i,o]);return fq(Y6e,{children:[r.map((g,b)=>{let w=s?.[b];if(!w)return null;let y=w.matchedDataModel?.dataModel?.getKey(),C=y?m.get(y):void 0,I=`matching.${b}`;return kC(dq,{prefixName:I,matchedDataModel:C,sheetColumn:w.sheetColumn,configTheme:d,configThemePopper:f,index:b},g.id)}),a&&n==="targetColumns"?kC("div",{className:"text-right",children:kC(He,{variant:"secondary",className:"!px-6",onClick:h,"data-testid":re.matchColumns.createColumn,children:fq("div",{className:"flex items-center",children:[kC(RC,{className:x("mr-2 h-4 w-4")}),p("txt_create_custom_column")]})})}):null]})};import{useEffect as HRe,useMemo as VRe,useState as $Re}from"react";import{memoize as X6e}from"lodash";var yc=()=>{let{modal:t}=Qe();return{scrollToTop:()=>{let r=document.querySelector(".ReactModalPortal > div");t?r?.scrollTo(0,0):window.scrollTo(0,0)}}},mq=X6e(()=>{let t=document.createElement("div");t.style.visibility="hidden",t.style.overflow="scroll",document.body.appendChild(t);let e=document.createElement("div");t.appendChild(e);let r=t.offsetWidth-e.offsetWidth;return t.parentNode?.removeChild(t),r});import{useCallback as Z6e}from"react";var J6e=()=>{let{multipleFileUpload:t}=be();return{getHasSheetSelectionPage:Z6e(o=>{let a=o?.getAllSheets().length??0;return!(a<=1)},[t]),getHasJoinColumnPage:o=>(o?.getSelectedSheets(!0)?.length??0)>1}},Di=J6e;import{isNil as hq}from"lodash";import{useCallback as Q6e}from"react";var OC=()=>{let{columns:t}=be(),e=(o,a)=>{let n=o.getMatchingByDataModelKey(a.getKey())?.matchedDataModel;return(a?.getOptions()??[]).filter(u=>{if(u.creator)if(a.getIsMultiSelection()){let c=n?.matchedOptions?.find(d=>d.dataModelOptions?.find(f=>f===u.value));return!hq(c)}else{let c=n?.matchedOptions?.find(d=>d.dataModelOption===u.value);return!hq(c)}else return!0})};return{getColumnsAndDataModels:Q6e((o,a,n)=>{let i=o.getDataModels(),s=i.filter(b=>b.hasMappingValidation()).map(b=>({key:b.getKey(),label:b.getLabel(),mappingValidation:b.getMappingValidation()})),l=a.map(b=>b.matchedDataModel?.dataModel?.getKey()).filter(b=>!!b),u=s.length>0?nm(s,l):[],d=i.filter(b=>u.includes(b.getKey())).filter(b=>!a.some(w=>w.matchedDataModel?.dataModel?.getKey()===b.getKey())),f=[...t.map(b=>{let w=i.find(C=>C.getKey()===b.key),y=o.getMatchingByDataModelKey(b.key)?.matchedDataModel;if(w?.isCategoryType()&&y){let I=e(o,w);return{...b,dropdownOptions:I}}else return b})];n.forEach(b=>{b.getAddedColumns().forEach(y=>{f.some(I=>I.key===y.columnName)||f.push({label:y.columnName,key:y.columnName,columnType:"string",description:""})})});let p=o.getMatchedDataModelKeys(),m=i.filter(b=>b.getCreator()?p.includes(b.getKey()):!0).map(b=>{let w=o.getMatchingByDataModelKey(b.getKey())?.matchedDataModel;if(b.isCategoryType()&&w){let y=b,C=e(o,y),I=y.clone();return I.setOptions(C),I}else return b}),g=o.getDataModels().filter(b=>b.getCreator()).filter(b=>p.includes(b.getKey()));for(let b=0;b<g.length;b++){let w=g[b];f.push({label:w.getLabel(),key:w.getKey(),columnType:Ro.mapColumnType({dataType:w.getType()}),description:w.getDescription(),outputFormat:w.getOutputFormat()})}return{reviewEntriesDataModels:m,reviewEntriesColumns:f,notMatchedDataModel:d}},[t])}};var RL=(t,e)=>t.getType()===1&&e.getType()!==1?-1:t.getType()!==1&&e.getType()===1?1:0;import{useEffect as eRe,useMemo as tRe}from"react";var rRe=()=>{let{skipConfiguration:t,automaticHeaderDetection:e,automaticMapping:r}=be(),{settings:o}=gt(),a=tRe(()=>im({skipConfiguration:t,automaticHeaderDetection:e,automaticMapping:r}),[t,e,r]),{isHeaderSkipEnabled:n,isMappingSkipActive:i}=hy(a),s=c$(a.mapping),l=!a.mapping.showInStepper;return eRe(()=>{o.columns.some(c=>c.excludeFromAutoMatching===!0)&&l&&console.warn("excludeFromAutoMatching has no effect because the mapping step is hidden for this session.")},[o.columns,l]),{resolvedSkipConfig:a,isHeaderSkipEnabled:n,isMappingSkipActive:i,isAutoMatchEnabled:s}},co=rRe;import oRe from"is-promise";var aRe=10,nRe=3e4;async function j1(t,e){let r=e?.maxReruns??aRe,o=e?.devTimeoutMs??nRe,a=0;for(;;){let n=!1,i=!1,s=!1,l,u=new Promise(y=>{l=y}),c=y=>{i||(i=!0,n=!0,l(y))},d=()=>{n=!0},f=y=>{i||(s=y?.rerunHandler??!1,c("proceed"))},p=y=>{i||(s=y?.rerunHandler??!1,c("stay"))},m,g=t({proceed:f,stay:p,markGatePending:d,resolveGateAs:c}),b=oRe(g)?g:Promise.resolve(),w=await new Promise((y,C)=>{u.then(y),b.then(()=>{n||c("proceed")},I=>{i||C(I)})});if(clearTimeout(m),s){if(await b,a>=r)return console.error(`[stepHandler] rerunHandler cap (${r}) exceeded. Treating as proceed().`),"proceed";a++;continue}return w}}import pRe from"is-promise";import{isArray as gq,isObject as iRe}from"lodash";var TL=t=>t&&gq(t)&&t.every(e=>e&&e.fileName&&e.data),vq=t=>{let e=[];for(let r=0;r<t.length;++r){let o=t[r],a=o.getAddedColumns().map(({sourceCell:n,...i})=>i);e.push({data:o.getData(),fileName:o.getSpreadSheet().getFilename(),fileSize:o.getSpreadSheet().getFileSize(),fileType:o.getSpreadSheet().getType(),sheetName:o.getName(),transposed:o.getTransposed(),headerRowIndexes:o.getHeaderRowIndexes(),addedColumns:a})}return e},Em=t=>{let e=[];for(let r=0;r<t.length;++r){let o=t[r],a=o.getHeaderRowIndexes(),n=o.getData(),i=[];if(a.length>0)for(let l=0;l<n.length;l++)i.push([...n[l]]);else i.push(o.getColumns().map(l=>l.getColumnKey()),...o.getValues());let s=o.getAddedColumns().map(({sourceCell:l,...u})=>u);e.push({data:i,fileName:o.getSpreadSheet().getFilename(),fileSize:o.getSpreadSheet().getFileSize(),fileType:o.getSpreadSheet().getType(),sheetName:o.getName(),transposed:o.getTransposed(),headerRowIndexes:o.getHeaderRowIndexes(),addedColumns:s})}return e},kL=(t,e)=>{let r=[],o={},a=t.filter(n=>!n.hidden);for(let n=0;n<e.length;++n){let i=e[n];r[n]={},o[n]=[];for(let s=0;s<t.length;s++){let l,u,c=t[s],d=i[c.key];if(iRe(d)&&!gq(d)){if(l=d?.value,d?.info){let f=a.findIndex(p=>c.key===p.key);f>=0&&(u=d?.info.map(p=>({colIndex:f,popover:{message:p.message,level:p.level},rowIndex:n})))}}else l=d;r[n][c.key]=l,o[n]?o[n]=[...o[n],...u??[]]:o[n]=[...u??[]]}}return{values:r,dataInfos:o}},PC=(t,e)=>`${t}__${e}`,bq=(t,e,r)=>{let o=PC(e,r??""),a=t.get(o)||[];return a.length===0&&!r&&(o=PC(e,e),a=t.get(o)||[]),a},OL=(t,e,r)=>{let o=e;r&&r.length>0&&(o=r),o.length>0?(t.setHeaderRowIndex(o[0]),o.length>1&&t.setHeaderRowIndexes(o)):t.setHeaderByAutoDetection()};import{isArray as Sq,isObject as Iq}from"lodash";import{isNil as sRe}from"lodash";var Qd=({matching:t,baseColumns:e,dataModels:r,featureWhiteList:o})=>{let a=o.getEnableLogs();if(!a.columns&&!a.mappings)return null;let n={};return a.columns&&(n.columns=uRe({baseColumns:e,dataModels:r})),a.mappings&&(n.mappings=lRe({matching:t,baseColumns:e})),n};function lRe({matching:t,baseColumns:e}){let r=[],o={},a=t??[];for(let n=0;n<a.length;n++){let s=a[n].sheetColumn.getColumnKey(),l=a[n].matchedDataModel?.dataModel;if(!l){r.push({sourceColumn:s,targetColumn:""});continue}let u=l.getKey();o[u]=!0;let c;l.isDropdown()&&(c=a[n].matchedDataModel?.matchedOptions?.map(f=>{let p;return l.getIsMultiSelection()?p=f.dataModelOptions??[]:p=sRe(f.dataModelOption)?[]:[f.dataModelOption],{sourceValue:f.sheetOption,targetOptions:p}})??[]);let d=u||"";c?r.push({sourceColumn:s,targetColumn:d,options:c}):r.push({sourceColumn:s,targetColumn:d})}return e.forEach(n=>{let i=n.key;o[i]||r.push({sourceColumn:"",targetColumn:i})}),r}function uRe({dataModels:t,baseColumns:e}){let r=[],o=[],a={},n={};for(let i=0;i<t.length;i++){let s=t[i];if(!s)continue;let l=s.getBaseKey();if(s.isCategoryType()){let u=s.getOptions();for(let c=0;c<u.length;c++){if(u[c].creator!=="manual")continue;n[l]===void 0&&(o.push({columnKey:l,dropdownOptions:[]}),n[l]=o.length-1);let d=n[l];o[d].dropdownOptions.push({label:u[c].label,value:u[c].type==="string"?u[c].value:+u[c].value,type:u[c].type})}}}return e.forEach(i=>{a[i.key]=!0}),t.forEach(i=>{let s=i.getKey();if(!a[s]){let l={key:i.getKey(),label:i.getLabel(),columnType:i.getType()};i.getType()==="date"&&(l.outputFormat=i.getOutputFormat(),l.inputFormat=i.getInputFormat()),r.push(l),a[s]=!0}}),{addedColumns:r,addedOptions:o}}var Re={REQUIRED:"required",UNIQUE:"unique",REGEX:"regex",REQUIRED_WITH:"required_with",REQUIRED_WITHOUT:"required_without",REQUIRED_WITH_ALL:"required_with_all",REQUIRED_WITHOUT_ALL:"required_without_all",REQUIRED_WITH_VALUES:"required_with_values",REQUIRED_WITHOUT_VALUES:"required_without_values",REQUIRED_WITH_ALL_VALUES:"required_with_all_values",REQUIRED_WITHOUT_ALL_VALUES:"required_without_all_values",COMPARE:"compare",NOT_IN_OPTIONS:"not_in_options",INVALID_FORMAT_NUMBER_FLOAT:"invalid_format_number_float",INVALID_FORMAT_NUMBER_INT:"invalid_format_number_int",REQUIRED_NUMBER:"required_number",REQUIRED_CATEGORY:"category_required",INVALID_FORMAT_DATE:"invalid_format_date",INVALID_FORMAT_DATE_INPUT_FORMAT:"invalid_format_date_input_format",INVALID_FORMAT_DATE_DMY:"invalid_format_date_dmy",INVALID_FORMAT_DATE_MDY:"invalid_format_date_mdy",INVALID_FORMAT_DATE_ISO:"invalid_format_date_iso",INVALID_FORMAT_DATETIME:"invalid_format_datetime",INVALID_FORMAT_TIME_HMS:"invalid_format_time_hms",INVALID_FORMAT_TIME_HMS_24:"invalid_format_time_hms_24",INVALID_FORMAT_TIME_HM:"invalid_format_time_hm",INVALID_FORMAT_TIME_HM_24:"invalid_format_time_hm_24",INVALID_FORMAT_EMAIL:"invalid_format_email",INVALID_FORMAT_URL_WWW:"invalid_format_url_www",INVALID_FORMAT_URL_HTTPS:"invalid_format_url_https",INVALID_FORMAT_URL:"invalid_format_url",INVALID_FORMAT_PHONE:"invalid_format_phone",INVALID_FORMAT_ZIP_CODE_DE:"invalid_format_zip_code_de",INVALID_FORMAT_PERCENTAGE:"invalid_format_percentage",INVALID_FORMAT_COUNTRY_CODE_ALPHA_2:"invalid_format_country_code_alpha_2",INVALID_FORMAT_COUNTRY_CODE_ALPHA_3:"invalid_format_country_code_alpha_3",INVALID_FORMAT_CURRENCY_CODE:"invalid_format_currency_code",INVALID_FORMAT_CURRENCY_EUR:"invalid_format_currency_eur",INVALID_FORMAT_CURRENCY_USD:"invalid_format_currency_usd",INVALID_FORMAT_BIC:"invalid_format_bic",INVALID_FORMAT_VAT_EU:"invalid_format_vat_eu",INVALID_FORMAT_GTIN:"invalid_format_gtin",INVALID_FORMAT_IBAN:"invalid_format_iban",INVALID_OPTIONS_CONDITION:"invalid_options_condition"};import{isArray as dRe}from"lodash";import{isArray as xq,isBoolean as cRe}from"lodash";function yq(t,e){return Et(e)?!0:new RegExp(t).test(e??"")}function Et(t){return t===""||t===void 0||t===null||xq(t)&&t.length===0}var wq=t=>cRe(t)?`${t}`:t;function Lm(t,e){return"_keyed"in t&&t._keyed&&e in t._keyed?t._keyed[e]?.value:t.find(o=>o.key===e)?.value}function W1(t,e,r){return Object.keys(t).some(o=>{let a=t[o];return e(xq(a)?a.map(wq):wq(a),Lm(r,o),o)})}var Cq=(t,e)=>e.find(r=>r.key===t);import fRe from"moment";var PL=class{constructor(){throw new Error("This class is static please use static method instead \u{1F64F}")}static{this.dateExample=fRe("03-05-2023 19:03:47","MM-DD-YYYY HH:mm:ss")}static{this.getValidateMessage=(e,r,o,a)=>{let{colIndex:n,validate:i,validateMsg:s}=r,l=o[n].validations?.find(c=>c.validate===i&&c.errorMessage===s),u=o[n];if(l?.errorMessage)return l?.errorMessage;switch(i){case Re.REQUIRED:return u.columnType==="category"||u.columnType==="boolean"||u.columnType==="currency_code"||u.columnType==="country_code_alpha_2"||u.columnType==="country_code_alpha_3"?e("txt_field_category_required"):e("txt_field_required");case Re.NOT_IN_OPTIONS:return e("txt_field_not_in_options");case Re.INVALID_FORMAT_NUMBER_INT:return e("txt_field_invalid_format_number_int");case Re.REQUIRED_NUMBER:return e("txt_field_invalid_format_number");case Re.INVALID_FORMAT_NUMBER_FLOAT:return e("txt_field_invalid_format_number_float");case Re.REGEX:return e("txt_field_invalid_regex_format");case Re.INVALID_FORMAT_DATE_INPUT_FORMAT:return e("txt_field_invalid_date_input_format",{inputFormat:u.inputFormat??""});case Re.INVALID_FORMAT_DATE:{let d=ta.getOutputFormat(u.outputFormat);return e("txt_field_invalid_date",{dateFormat:d,dateFormatExample:this.dateExample.format(d)})}case Re.INVALID_FORMAT_DATE_DMY:return e("txt_field_invalid_date_dmy");case Re.INVALID_FORMAT_DATE_MDY:return e("txt_field_invalid_date_mdy");case Re.INVALID_FORMAT_DATE_ISO:return e("txt_invalid_format_date_iso");case Re.INVALID_FORMAT_DATETIME:return e("txt_invalid_format_datetime");case Re.INVALID_FORMAT_TIME_HMS:return e("txt_invalid_format_time_hms");case Re.INVALID_FORMAT_TIME_HMS_24:return e("txt_invalid_format_time_hms_24");case Re.INVALID_FORMAT_TIME_HM:return e("txt_invalid_format_time_hm");case Re.INVALID_FORMAT_TIME_HM_24:return e("txt_invalid_format_time_hm_24");case Re.INVALID_FORMAT_EMAIL:return e("txt_invalid_format_email");case Re.INVALID_FORMAT_URL_WWW:return e("txt_invalid_format_url_www");case Re.INVALID_FORMAT_URL_HTTPS:return e("txt_invalid_format_url_https");case Re.INVALID_FORMAT_URL:return e("txt_invalid_format_url");case Re.INVALID_FORMAT_PHONE:return e("txt_invalid_format_phone");case Re.INVALID_FORMAT_ZIP_CODE_DE:return e("txt_invalid_format_zip_code_de");case Re.INVALID_FORMAT_PERCENTAGE:return e("txt_invalid_format_percentage");case Re.INVALID_FORMAT_CURRENCY_EUR:return e("txt_invalid_format_currency_eur");case Re.INVALID_FORMAT_CURRENCY_USD:return e("txt_invalid_format_currency_usd");case Re.INVALID_FORMAT_BIC:return e("txt_invalid_format_bic");case Re.INVALID_FORMAT_VAT_EU:return e("txt_invalid_format_vat_eu");case Re.INVALID_FORMAT_GTIN:return e("txt_invalid_format_gtin");case Re.INVALID_FORMAT_IBAN:return e("txt_invalid_format_iban");case Re.REQUIRED_WITH:{let d=o[n].validations?.find(f=>f.validate===Re.REQUIRED_WITH);return e("txt_field_required_with",{columns:this.getValidateWithMessage(a,d)})}case Re.REQUIRED_WITHOUT:{let d=o[n].validations?.find(f=>f.validate===Re.REQUIRED_WITHOUT);return e("txt_field_required_without",{columns:this.getValidateWithMessage(a,d)})}case Re.REQUIRED_WITHOUT_VALUES:{let d=o[n].validations?.find(f=>f.validate===Re.REQUIRED_WITHOUT_VALUES);return e("txt_field_required_without_values",{columns:this.getValidateValuesMessage(a,d)})}case Re.REQUIRED_WITH_ALL_VALUES:{let d=o[n].validations?.find(f=>f.validate===Re.REQUIRED_WITH_ALL_VALUES);return e("txt_field_required_with_all_values",{columns:this.getValidateValuesMessage(a,d)})}case Re.REQUIRED_WITHOUT_ALL_VALUES:{let d=o[n].validations?.find(f=>f.validate===Re.REQUIRED_WITHOUT_ALL_VALUES);return e("txt_field_required_without_all_values",{columns:this.getValidateValuesMessage(a,d)})}case Re.REQUIRED_WITH_ALL:{let d=o[n].validations?.find(f=>f.validate===Re.REQUIRED_WITH_ALL);return e("txt_field_required_with_all",{columns:this.getValidateWithMessage(a,d)})}case Re.REQUIRED_WITHOUT_ALL:{let d=o[n].validations?.find(f=>f.validate===Re.REQUIRED_WITHOUT_ALL);return e("txt_field_required_without_all",{columns:this.getValidateWithMessage(a,d)})}case Re.REQUIRED_WITH_VALUES:let c=o[n].validations?.find(d=>d.validate===Re.REQUIRED_WITH_VALUES);return e("txt_field_required_with_values",{columns:this.getValidateValuesMessage(a,c)});case Re.UNIQUE:return e("txt_field_unique");case Re.COMPARE:{if(r.operator!==void 0&&r.compareValue!==void 0)return this.getCompareMessage(e,r.operator,r.compareValue);let d=o[n].validations?.find(f=>f.validate===Re.COMPARE&&f.errorMessage===s);return this.getCompareMessage(e,d?.operator,d?.value)}case Re.INVALID_OPTIONS_CONDITION:return s??e("txt_field_not_in_options")??"";default:return""}}}static{this.getCompareMessage=(e,r,o)=>{let a="Invalid value";if(r===void 0||o===void 0)return e("txt_field_invalid_compare",{defaultValue:a});let i={GT:{key:"txt_field_compare_gt",defaultValue:"Value must be greater than {{value}}."},GTE:{key:"txt_field_compare_gte",defaultValue:"Value must be greater than or equal to {{value}}."},LT:{key:"txt_field_compare_lt",defaultValue:"Value must be less than {{value}}."},LTE:{key:"txt_field_compare_lte",defaultValue:"Value must be less than or equal to {{value}}."},EQ:{key:"txt_field_compare_eq",defaultValue:"Value must equal {{value}}."},NEQ:{key:"txt_field_compare_neq",defaultValue:"Value must not equal {{value}}."}}[r];return i?e(i.key,{value:o,defaultValue:i.defaultValue}):e("txt_field_invalid_compare",{defaultValue:a})}}static{this.getValidateValuesMessage=(e,r)=>Object.keys(r?.columnValues??{}).map(a=>{let n=r?.columnValues?.[a],i=dRe(n)?n:[n];return`"${Cq(a,e)?.label}" = ${i.map(s=>`"${s}"`).join(" or ")}`}).join(", ")}static{this.getValidateWithMessage=(e,r)=>r?.columns?.map(o=>e.find(a=>a.key===o)?.label).join(", ")}},Ai=PL;import{jsx as _q}from"react/jsx-runtime";var Yn=()=>{let{stepHandler:t}=gt(),{showConfirmModal:e}=Tt(),{style:r}=be(),{featureWhiteList:o}=rr(),a=Ur(),{t:n}=q(),{multipleFileUpload:i,workersBaseUrl:s}=be(),l=(g,b)=>{let w=`<div>
400
+ `,v({"&&":e})),children:t}),lq=N6e;import{jsx as uq,jsxs as U6e}from"react/jsx-runtime";var $6e=({children:t,matchedDataModel:e,sheetColumn:r,prefixName:o})=>{let{collapseMatchedColumns:a}=be(),n=H6e(()=>e?a?!0:!e.isDropdown():!1,[e,a]),{isMatchingReportEmpty:i,isPreviewDataEmpty:s}=cm({matchedDataModel:e,prefixName:o,sheetColumn:r}),l=i&&s,[u,c]=V6e(n),d=X(),f=ML(()=>{c(h=>!h)},[]),p=ML(()=>{c(!1)},[]),m=ML(()=>{c(!0)},[]);return B6e(()=>{l&&c(!0)},[l]),uq(Ly.Provider,{value:{isCollapse:u,toggleCollapse:f,toggleCloseCollapse:m,toggleOpenCollapse:p},children:U6e(lq,{configTheme:d.getColumnMatchTheme().root,children:[l?null:uq(sq,{onClick:f,isCollapse:u,disabled:l,configTheme:d.getColumnMatchTheme().icon}),t]})})},cq=$6e;import{jsx as EL,jsxs as W6e}from"react/jsx-runtime";var dq=({sheetColumn:t,matchedDataModel:e,prefixName:r,configTheme:o,configThemePopper:a,index:n})=>{let[i,s]=j6e(!1),{mappingViewMode:l}=be();return W6e(cq,{matchedDataModel:e,prefixName:r,sheetColumn:t,children:[l==="targetColumns"?e?EL(Dz,{sheetColumn:t,matchedDataModel:e,prefixName:r,configTheme:o,configThemePopper:a,index:n,setLoadingMatchingMoreOptions:s,loadingMatchingMoreOptions:i}):null:t?EL(YW,{sheetColumn:t,matchedDataModel:e,prefixName:r,configTheme:o,configThemePopper:a,index:n,setLoadingMatchingMoreOptions:s,loadingMatchingMoreOptions:i}):null,EL(oq,{matchedDataModel:e,sheetColumn:t,prefixName:r,configTheme:o})]})};import{useCallback as G6e,useEffect as K6e,useMemo as TC}from"react";import{jsx as LL,jsxs as q6e}from"react/jsx-runtime";var z6e=({title:t,titleId:e,...r})=>q6e("svg",{width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...r,children:[t?LL("title",{id:e,children:t}):null,LL("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.33398 7.00033C2.33398 6.67816 2.59515 6.41699 2.91732 6.41699H11.084C11.4062 6.41699 11.6673 6.67816 11.6673 7.00033C11.6673 7.32249 11.4062 7.58366 11.084 7.58366H2.91732C2.59515 7.58366 2.33398 7.32249 2.33398 7.00033Z",fill:"currentColor"}),LL("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.99935 2.33301C7.32152 2.33301 7.58268 2.59418 7.58268 2.91634V11.083C7.58268 11.4052 7.32152 11.6663 6.99935 11.6663C6.67718 11.6663 6.41602 11.4052 6.41602 11.083V2.91634C6.41602 2.59418 6.67718 2.33301 6.99935 2.33301Z",fill:"currentColor"})]});var RC=z6e;import{Fragment as Y6e,jsx as kC,jsxs as fq}from"react/jsx-runtime";var pq=()=>{let{dataModelSheetMatching:t}=Ta(),{control:e}=zt(),{fields:r,append:o}=dc({name:"matching",control:e}),{allowCustomColumns:a,mappingViewMode:n}=be(),{open:i}=vc(),s=l1({name:"matching",control:e}),{updateMappings:l}=Mi(),u=TC(()=>(s||[]).filter(b=>n==="targetColumns"?b.sheetColumn:b.matchedDataModel?.dataModel).map(b=>b.matchedDataModel.dataModel.getKey()),[s,n]);K6e(()=>{l(u)},[u]);let c=X(),d=TC(()=>c.getColumnMatchTheme(),[c]),f=TC(()=>c.getPopoverInfo(),[c]),{t:p}=q(),m=TC(()=>{let g=new Map;for(let b of t.getDataModels())g.set(b.getKey(),b);return g},[t]),h=G6e(()=>{i({onSubmit:g=>{o({matchedDataModel:{dataModel:g}})}})},[i,o]);return fq(Y6e,{children:[r.map((g,b)=>{let w=s?.[b];if(!w)return null;let y=w.matchedDataModel?.dataModel?.getKey(),C=y?m.get(y):void 0,I=`matching.${b}`;return kC(dq,{prefixName:I,matchedDataModel:C,sheetColumn:w.sheetColumn,configTheme:d,configThemePopper:f,index:b},g.id)}),a&&n==="targetColumns"?kC("div",{className:"text-right",children:kC(He,{variant:"secondary",className:"!px-6",onClick:h,"data-testid":re.matchColumns.createColumn,children:fq("div",{className:"flex items-center",children:[kC(RC,{className:x("mr-2 h-4 w-4")}),p("txt_create_custom_column")]})})}):null]})};import{useEffect as HRe,useMemo as VRe,useState as $Re}from"react";import{memoize as X6e}from"lodash";var yc=()=>{let{modal:t}=Qe();return{scrollToTop:()=>{let r=document.querySelector(".ReactModalPortal > div");t?r?.scrollTo(0,0):window.scrollTo(0,0)}}},mq=X6e(()=>{let t=document.createElement("div");t.style.visibility="hidden",t.style.overflow="scroll",document.body.appendChild(t);let e=document.createElement("div");t.appendChild(e);let r=t.offsetWidth-e.offsetWidth;return t.parentNode?.removeChild(t),r});import{useCallback as Z6e}from"react";var J6e=()=>{let{multipleFileUpload:t}=be();return{getHasSheetSelectionPage:Z6e(o=>{let a=o?.getAllSheets().length??0;return!(a<=1)},[t]),getHasJoinColumnPage:o=>(o?.getSelectedSheets(!0)?.length??0)>1}},Di=J6e;import{isNil as hq}from"lodash";import{useCallback as Q6e}from"react";var OC=()=>{let{columns:t}=be(),e=(o,a)=>{let n=o.getMatchingByDataModelKey(a.getKey())?.matchedDataModel;return(a?.getOptions()??[]).filter(u=>{if(u.creator)if(a.getIsMultiSelection()){let c=n?.matchedOptions?.find(d=>d.dataModelOptions?.find(f=>f===u.value));return!hq(c)}else{let c=n?.matchedOptions?.find(d=>d.dataModelOption===u.value);return!hq(c)}else return!0})};return{getColumnsAndDataModels:Q6e((o,a,n)=>{let i=o.getDataModels(),s=i.filter(b=>b.hasMappingValidation()).map(b=>({key:b.getKey(),label:b.getLabel(),mappingValidation:b.getMappingValidation()})),l=a.map(b=>b.matchedDataModel?.dataModel?.getKey()).filter(b=>!!b),u=s.length>0?nm(s,l):[],d=i.filter(b=>u.includes(b.getKey())).filter(b=>!a.some(w=>w.matchedDataModel?.dataModel?.getKey()===b.getKey())),f=[...t.map(b=>{let w=i.find(C=>C.getKey()===b.key),y=o.getMatchingByDataModelKey(b.key)?.matchedDataModel;if(w?.isCategoryType()&&y){let I=e(o,w);return{...b,dropdownOptions:I}}else return b})];n.forEach(b=>{b.getAddedColumns().forEach(y=>{f.some(I=>I.key===y.columnName)||f.push({label:y.columnName,key:y.columnName,columnType:"string",description:""})})});let p=o.getMatchedDataModelKeys(),m=i.filter(b=>b.getCreator()?p.includes(b.getKey()):!0).map(b=>{let w=o.getMatchingByDataModelKey(b.getKey())?.matchedDataModel;if(b.isCategoryType()&&w){let y=b,C=e(o,y),I=y.clone();return I.setOptions(C),I}else return b}),g=o.getDataModels().filter(b=>b.getCreator()).filter(b=>p.includes(b.getKey()));for(let b=0;b<g.length;b++){let w=g[b];f.push({label:w.getLabel(),key:w.getKey(),columnType:Ro.mapColumnType({dataType:w.getType()}),description:w.getDescription(),outputFormat:w.getOutputFormat()})}return{reviewEntriesDataModels:m,reviewEntriesColumns:f,notMatchedDataModel:d}},[t])}};var RL=(t,e)=>t.getType()===1&&e.getType()!==1?-1:t.getType()!==1&&e.getType()===1?1:0;import{useEffect as eRe,useMemo as tRe}from"react";var rRe=()=>{let{skipConfiguration:t,automaticHeaderDetection:e,automaticMapping:r}=be(),{settings:o}=gt(),a=tRe(()=>im({skipConfiguration:t,automaticHeaderDetection:e,automaticMapping:r}),[t,e,r]),{isHeaderSkipEnabled:n,isMappingSkipActive:i}=hy(a),s=c$(a.mapping),l=!a.mapping.showInStepper;return eRe(()=>{o.columns.some(c=>c.excludeFromAutoMatching===!0)&&l&&console.warn("excludeFromAutoMatching has no effect because the mapping step is hidden for this session.")},[o.columns,l]),{resolvedSkipConfig:a,isHeaderSkipEnabled:n,isMappingSkipActive:i,isAutoMatchEnabled:s}},co=rRe;import oRe from"is-promise";var aRe=10,nRe=3e4;async function j1(t,e){let r=e?.maxReruns??aRe,o=e?.devTimeoutMs??nRe,a=0;for(;;){let n=!1,i=!1,s=!1,l,u=new Promise(y=>{l=y}),c=y=>{i||(i=!0,n=!0,l(y))},d=()=>{n=!0},f=y=>{i||(s=y?.rerunHandler??!1,c("proceed"))},p=y=>{i||(s=y?.rerunHandler??!1,c("stay"))},m,g=t({proceed:f,stay:p,markGatePending:d,resolveGateAs:c}),b=oRe(g)?g:Promise.resolve(),w=await new Promise((y,C)=>{u.then(y),b.then(()=>{n||c("proceed")},I=>{i||C(I)})});if(clearTimeout(m),s){if(await b,a>=r)return console.error(`[stepHandler] rerunHandler cap (${r}) exceeded. Treating as proceed().`),"proceed";a++;continue}return w==="stay"&&await b,w}}import pRe from"is-promise";import{isArray as gq,isObject as iRe}from"lodash";var TL=t=>t&&gq(t)&&t.every(e=>e&&e.fileName&&e.data),vq=t=>{let e=[];for(let r=0;r<t.length;++r){let o=t[r],a=o.getAddedColumns().map(({sourceCell:n,...i})=>i);e.push({data:o.getData(),fileName:o.getSpreadSheet().getFilename(),fileSize:o.getSpreadSheet().getFileSize(),fileType:o.getSpreadSheet().getType(),sheetName:o.getName(),transposed:o.getTransposed(),headerRowIndexes:o.getHeaderRowIndexes(),addedColumns:a})}return e},Em=t=>{let e=[];for(let r=0;r<t.length;++r){let o=t[r],a=o.getHeaderRowIndexes(),n=o.getData(),i=[];if(a.length>0)for(let l=0;l<n.length;l++)i.push([...n[l]]);else i.push(o.getColumns().map(l=>l.getColumnKey()),...o.getValues());let s=o.getAddedColumns().map(({sourceCell:l,...u})=>u);e.push({data:i,fileName:o.getSpreadSheet().getFilename(),fileSize:o.getSpreadSheet().getFileSize(),fileType:o.getSpreadSheet().getType(),sheetName:o.getName(),transposed:o.getTransposed(),headerRowIndexes:o.getHeaderRowIndexes(),addedColumns:s})}return e},kL=(t,e)=>{let r=[],o={},a=t.filter(n=>!n.hidden);for(let n=0;n<e.length;++n){let i=e[n];r[n]={},o[n]=[];for(let s=0;s<t.length;s++){let l,u,c=t[s],d=i[c.key];if(iRe(d)&&!gq(d)){if(l=d?.value,d?.info){let f=a.findIndex(p=>c.key===p.key);f>=0&&(u=d?.info.map(p=>({colIndex:f,popover:{message:p.message,level:p.level},rowIndex:n})))}}else l=d;r[n][c.key]=l,o[n]?o[n]=[...o[n],...u??[]]:o[n]=[...u??[]]}}return{values:r,dataInfos:o}},PC=(t,e)=>`${t}__${e}`,bq=(t,e,r)=>{let o=PC(e,r??""),a=t.get(o)||[];return a.length===0&&!r&&(o=PC(e,e),a=t.get(o)||[]),a},OL=(t,e,r)=>{let o=e;r&&r.length>0&&(o=r),o.length>0?(t.setHeaderRowIndex(o[0]),o.length>1&&t.setHeaderRowIndexes(o)):t.setHeaderByAutoDetection()};import{isArray as Sq,isObject as Iq}from"lodash";import{isNil as sRe}from"lodash";var Qd=({matching:t,baseColumns:e,dataModels:r,featureWhiteList:o})=>{let a=o.getEnableLogs();if(!a.columns&&!a.mappings)return null;let n={};return a.columns&&(n.columns=uRe({baseColumns:e,dataModels:r})),a.mappings&&(n.mappings=lRe({matching:t,baseColumns:e})),n};function lRe({matching:t,baseColumns:e}){let r=[],o={},a=t??[];for(let n=0;n<a.length;n++){let s=a[n].sheetColumn.getColumnKey(),l=a[n].matchedDataModel?.dataModel;if(!l){r.push({sourceColumn:s,targetColumn:""});continue}let u=l.getKey();o[u]=!0;let c;l.isDropdown()&&(c=a[n].matchedDataModel?.matchedOptions?.map(f=>{let p;return l.getIsMultiSelection()?p=f.dataModelOptions??[]:p=sRe(f.dataModelOption)?[]:[f.dataModelOption],{sourceValue:f.sheetOption,targetOptions:p}})??[]);let d=u||"";c?r.push({sourceColumn:s,targetColumn:d,options:c}):r.push({sourceColumn:s,targetColumn:d})}return e.forEach(n=>{let i=n.key;o[i]||r.push({sourceColumn:"",targetColumn:i})}),r}function uRe({dataModels:t,baseColumns:e}){let r=[],o=[],a={},n={};for(let i=0;i<t.length;i++){let s=t[i];if(!s)continue;let l=s.getBaseKey();if(s.isCategoryType()){let u=s.getOptions();for(let c=0;c<u.length;c++){if(u[c].creator!=="manual")continue;n[l]===void 0&&(o.push({columnKey:l,dropdownOptions:[]}),n[l]=o.length-1);let d=n[l];o[d].dropdownOptions.push({label:u[c].label,value:u[c].type==="string"?u[c].value:+u[c].value,type:u[c].type})}}}return e.forEach(i=>{a[i.key]=!0}),t.forEach(i=>{let s=i.getKey();if(!a[s]){let l={key:i.getKey(),label:i.getLabel(),columnType:i.getType()};i.getType()==="date"&&(l.outputFormat=i.getOutputFormat(),l.inputFormat=i.getInputFormat()),r.push(l),a[s]=!0}}),{addedColumns:r,addedOptions:o}}var Re={REQUIRED:"required",UNIQUE:"unique",REGEX:"regex",REQUIRED_WITH:"required_with",REQUIRED_WITHOUT:"required_without",REQUIRED_WITH_ALL:"required_with_all",REQUIRED_WITHOUT_ALL:"required_without_all",REQUIRED_WITH_VALUES:"required_with_values",REQUIRED_WITHOUT_VALUES:"required_without_values",REQUIRED_WITH_ALL_VALUES:"required_with_all_values",REQUIRED_WITHOUT_ALL_VALUES:"required_without_all_values",COMPARE:"compare",NOT_IN_OPTIONS:"not_in_options",INVALID_FORMAT_NUMBER_FLOAT:"invalid_format_number_float",INVALID_FORMAT_NUMBER_INT:"invalid_format_number_int",REQUIRED_NUMBER:"required_number",REQUIRED_CATEGORY:"category_required",INVALID_FORMAT_DATE:"invalid_format_date",INVALID_FORMAT_DATE_INPUT_FORMAT:"invalid_format_date_input_format",INVALID_FORMAT_DATE_DMY:"invalid_format_date_dmy",INVALID_FORMAT_DATE_MDY:"invalid_format_date_mdy",INVALID_FORMAT_DATE_ISO:"invalid_format_date_iso",INVALID_FORMAT_DATETIME:"invalid_format_datetime",INVALID_FORMAT_TIME_HMS:"invalid_format_time_hms",INVALID_FORMAT_TIME_HMS_24:"invalid_format_time_hms_24",INVALID_FORMAT_TIME_HM:"invalid_format_time_hm",INVALID_FORMAT_TIME_HM_24:"invalid_format_time_hm_24",INVALID_FORMAT_EMAIL:"invalid_format_email",INVALID_FORMAT_URL_WWW:"invalid_format_url_www",INVALID_FORMAT_URL_HTTPS:"invalid_format_url_https",INVALID_FORMAT_URL:"invalid_format_url",INVALID_FORMAT_PHONE:"invalid_format_phone",INVALID_FORMAT_ZIP_CODE_DE:"invalid_format_zip_code_de",INVALID_FORMAT_PERCENTAGE:"invalid_format_percentage",INVALID_FORMAT_COUNTRY_CODE_ALPHA_2:"invalid_format_country_code_alpha_2",INVALID_FORMAT_COUNTRY_CODE_ALPHA_3:"invalid_format_country_code_alpha_3",INVALID_FORMAT_CURRENCY_CODE:"invalid_format_currency_code",INVALID_FORMAT_CURRENCY_EUR:"invalid_format_currency_eur",INVALID_FORMAT_CURRENCY_USD:"invalid_format_currency_usd",INVALID_FORMAT_BIC:"invalid_format_bic",INVALID_FORMAT_VAT_EU:"invalid_format_vat_eu",INVALID_FORMAT_GTIN:"invalid_format_gtin",INVALID_FORMAT_IBAN:"invalid_format_iban",INVALID_OPTIONS_CONDITION:"invalid_options_condition"};import{isArray as dRe}from"lodash";import{isArray as xq,isBoolean as cRe}from"lodash";function yq(t,e){return Et(e)?!0:new RegExp(t).test(e??"")}function Et(t){return t===""||t===void 0||t===null||xq(t)&&t.length===0}var wq=t=>cRe(t)?`${t}`:t;function Lm(t,e){return"_keyed"in t&&t._keyed&&e in t._keyed?t._keyed[e]?.value:t.find(o=>o.key===e)?.value}function W1(t,e,r){return Object.keys(t).some(o=>{let a=t[o];return e(xq(a)?a.map(wq):wq(a),Lm(r,o),o)})}var Cq=(t,e)=>e.find(r=>r.key===t);import fRe from"moment";var PL=class{constructor(){throw new Error("This class is static please use static method instead \u{1F64F}")}static{this.dateExample=fRe("03-05-2023 19:03:47","MM-DD-YYYY HH:mm:ss")}static{this.getValidateMessage=(e,r,o,a)=>{let{colIndex:n,validate:i,validateMsg:s}=r,l=o[n].validations?.find(c=>c.validate===i&&c.errorMessage===s),u=o[n];if(l?.errorMessage)return l?.errorMessage;switch(i){case Re.REQUIRED:return u.columnType==="category"||u.columnType==="boolean"||u.columnType==="currency_code"||u.columnType==="country_code_alpha_2"||u.columnType==="country_code_alpha_3"?e("txt_field_category_required"):e("txt_field_required");case Re.NOT_IN_OPTIONS:return e("txt_field_not_in_options");case Re.INVALID_FORMAT_NUMBER_INT:return e("txt_field_invalid_format_number_int");case Re.REQUIRED_NUMBER:return e("txt_field_invalid_format_number");case Re.INVALID_FORMAT_NUMBER_FLOAT:return e("txt_field_invalid_format_number_float");case Re.REGEX:return e("txt_field_invalid_regex_format");case Re.INVALID_FORMAT_DATE_INPUT_FORMAT:return e("txt_field_invalid_date_input_format",{inputFormat:u.inputFormat??""});case Re.INVALID_FORMAT_DATE:{let d=ta.getOutputFormat(u.outputFormat);return e("txt_field_invalid_date",{dateFormat:d,dateFormatExample:this.dateExample.format(d)})}case Re.INVALID_FORMAT_DATE_DMY:return e("txt_field_invalid_date_dmy");case Re.INVALID_FORMAT_DATE_MDY:return e("txt_field_invalid_date_mdy");case Re.INVALID_FORMAT_DATE_ISO:return e("txt_invalid_format_date_iso");case Re.INVALID_FORMAT_DATETIME:return e("txt_invalid_format_datetime");case Re.INVALID_FORMAT_TIME_HMS:return e("txt_invalid_format_time_hms");case Re.INVALID_FORMAT_TIME_HMS_24:return e("txt_invalid_format_time_hms_24");case Re.INVALID_FORMAT_TIME_HM:return e("txt_invalid_format_time_hm");case Re.INVALID_FORMAT_TIME_HM_24:return e("txt_invalid_format_time_hm_24");case Re.INVALID_FORMAT_EMAIL:return e("txt_invalid_format_email");case Re.INVALID_FORMAT_URL_WWW:return e("txt_invalid_format_url_www");case Re.INVALID_FORMAT_URL_HTTPS:return e("txt_invalid_format_url_https");case Re.INVALID_FORMAT_URL:return e("txt_invalid_format_url");case Re.INVALID_FORMAT_PHONE:return e("txt_invalid_format_phone");case Re.INVALID_FORMAT_ZIP_CODE_DE:return e("txt_invalid_format_zip_code_de");case Re.INVALID_FORMAT_PERCENTAGE:return e("txt_invalid_format_percentage");case Re.INVALID_FORMAT_CURRENCY_EUR:return e("txt_invalid_format_currency_eur");case Re.INVALID_FORMAT_CURRENCY_USD:return e("txt_invalid_format_currency_usd");case Re.INVALID_FORMAT_BIC:return e("txt_invalid_format_bic");case Re.INVALID_FORMAT_VAT_EU:return e("txt_invalid_format_vat_eu");case Re.INVALID_FORMAT_GTIN:return e("txt_invalid_format_gtin");case Re.INVALID_FORMAT_IBAN:return e("txt_invalid_format_iban");case Re.REQUIRED_WITH:{let d=o[n].validations?.find(f=>f.validate===Re.REQUIRED_WITH);return e("txt_field_required_with",{columns:this.getValidateWithMessage(a,d)})}case Re.REQUIRED_WITHOUT:{let d=o[n].validations?.find(f=>f.validate===Re.REQUIRED_WITHOUT);return e("txt_field_required_without",{columns:this.getValidateWithMessage(a,d)})}case Re.REQUIRED_WITHOUT_VALUES:{let d=o[n].validations?.find(f=>f.validate===Re.REQUIRED_WITHOUT_VALUES);return e("txt_field_required_without_values",{columns:this.getValidateValuesMessage(a,d)})}case Re.REQUIRED_WITH_ALL_VALUES:{let d=o[n].validations?.find(f=>f.validate===Re.REQUIRED_WITH_ALL_VALUES);return e("txt_field_required_with_all_values",{columns:this.getValidateValuesMessage(a,d)})}case Re.REQUIRED_WITHOUT_ALL_VALUES:{let d=o[n].validations?.find(f=>f.validate===Re.REQUIRED_WITHOUT_ALL_VALUES);return e("txt_field_required_without_all_values",{columns:this.getValidateValuesMessage(a,d)})}case Re.REQUIRED_WITH_ALL:{let d=o[n].validations?.find(f=>f.validate===Re.REQUIRED_WITH_ALL);return e("txt_field_required_with_all",{columns:this.getValidateWithMessage(a,d)})}case Re.REQUIRED_WITHOUT_ALL:{let d=o[n].validations?.find(f=>f.validate===Re.REQUIRED_WITHOUT_ALL);return e("txt_field_required_without_all",{columns:this.getValidateWithMessage(a,d)})}case Re.REQUIRED_WITH_VALUES:let c=o[n].validations?.find(d=>d.validate===Re.REQUIRED_WITH_VALUES);return e("txt_field_required_with_values",{columns:this.getValidateValuesMessage(a,c)});case Re.UNIQUE:return e("txt_field_unique");case Re.COMPARE:{if(r.operator!==void 0&&r.compareValue!==void 0)return this.getCompareMessage(e,r.operator,r.compareValue);let d=o[n].validations?.find(f=>f.validate===Re.COMPARE&&f.errorMessage===s);return this.getCompareMessage(e,d?.operator,d?.value)}case Re.INVALID_OPTIONS_CONDITION:return s??e("txt_field_not_in_options")??"";default:return""}}}static{this.getCompareMessage=(e,r,o)=>{let a="Invalid value";if(r===void 0||o===void 0)return e("txt_field_invalid_compare",{defaultValue:a});let i={GT:{key:"txt_field_compare_gt",defaultValue:"Value must be greater than {{value}}."},GTE:{key:"txt_field_compare_gte",defaultValue:"Value must be greater than or equal to {{value}}."},LT:{key:"txt_field_compare_lt",defaultValue:"Value must be less than {{value}}."},LTE:{key:"txt_field_compare_lte",defaultValue:"Value must be less than or equal to {{value}}."},EQ:{key:"txt_field_compare_eq",defaultValue:"Value must equal {{value}}."},NEQ:{key:"txt_field_compare_neq",defaultValue:"Value must not equal {{value}}."}}[r];return i?e(i.key,{value:o,defaultValue:i.defaultValue}):e("txt_field_invalid_compare",{defaultValue:a})}}static{this.getValidateValuesMessage=(e,r)=>Object.keys(r?.columnValues??{}).map(a=>{let n=r?.columnValues?.[a],i=dRe(n)?n:[n];return`"${Cq(a,e)?.label}" = ${i.map(s=>`"${s}"`).join(" or ")}`}).join(", ")}static{this.getValidateWithMessage=(e,r)=>r?.columns?.map(o=>e.find(a=>a.key===o)?.label).join(", ")}},Ai=PL;import{jsx as _q}from"react/jsx-runtime";var Yn=()=>{let{stepHandler:t}=gt(),{showConfirmModal:e}=Tt(),{style:r}=be(),{featureWhiteList:o}=rr(),a=Ur(),{t:n}=q(),{multipleFileUpload:i,workersBaseUrl:s}=be(),l=(g,b)=>{let w=`<div>
401
401
  <p className="font-bold">
402
402
  ${n("txt_matching_error_description")}
403
403
  </p>
404
- </div>`;g?.message==="1000"&&(w=n("txt_step_handler_invalid_data")),setTimeout(()=>{e({title:n("txt_default_title_error"),description:w,textNegativeButton:n("txt_close"),isShowIcon:!0,isShowPositiveButton:!1,onClickNegativeButton:()=>{b?.()}})},50)},u={alertTitle:n("txt_default_alert_title"),alertDescription:n("txt_default_alert_description"),alertCancelBtn:n("txt_default_alert_cancel_btn"),alertContinueBtn:n("txt_default_alert_continue_btn"),blockTitle:n("txt_default_block_title"),blockDescription:n("txt_default_block_description"),blockCloseBtn:n("txt_default_block_close_btn")},c=()=>r?.alertPopup?.icon&&dr(r?.alertPopup?.icon)?()=>_q("svg",{className:x("w-auto bg-contain bg-center bg-no-repeat",v({"&&":r?.alertPopup?.icon}))}):void 0,d=()=>r?.blockPopup?.icon&&dr(r?.blockPopup?.icon)?()=>_q("svg",{className:x("w-auto bg-contain bg-center bg-no-repeat",v({"&&":r?.blockPopup?.icon}))}):void 0;return{onUploadStep:({parsedData:g,rawData:b})=>{let w=null,y=async()=>{if(!w)return;if(!TL(w))throw new Error("1000");let _=[],M=pn({workersBaseUrl:s??""});await M.init();for(let E=0;E<w.length;++E){let R=w[E],T;try{T=await M.jsonParser(JSON.stringify(R.data),{hasDateType:!1})}catch{throw M.clear(),new Error("1000")}let k=new ds({data:T,name:R.sheetName??R.fileName});k.setHeaderByAutoDetection();let P=_.find(O=>O.getFilename()===R.fileName);if(P)P.addSheet(k),k.setSpreadSheet(P);else{let O=new Id({filename:R.fileName,sheets:[k],type:"json"});_.push(O)}}let L=new ic({spreadSheets:_});return M.clear(),L},C=_=>{w=_},I=!1;return j1(({markGatePending:_,resolveGateAs:M})=>{I=!1;let L=!1,E=T=>{if(L)return;L=!0,_();let{title:k,description:P,cancelButton:O,proceedButton:A}=T??{};e({title:k??u.alertTitle,description:P??u.alertDescription,textNegativeButton:A??u.alertContinueBtn,textPositiveButton:O??u.alertCancelBtn,type:"alert",onClickNegativeButton:()=>{M("proceed")},onClickPositiveButton:()=>{M("stay")},onCloseModal:()=>{M("stay")},customIcon:c()})},R=T=>{if(L)return;L=!0;let{closeButton:k,description:P,title:O}=T??{};M("stay"),e({title:O??u.blockTitle,description:P??u.blockDescription,textNegativeButton:k??u.blockCloseBtn,isShowPositiveButton:!1,type:"block",onClickNegativeButton:()=>{},onCloseModal:()=>{},customIcon:d()})};return t?.uploadStep?.({parsedData:g,rawData:b,updateData:C,alert:E,block:R})}).then(async _=>_==="stay"||!w?{isBlock:_==="stay",developerStay:I}:{isBlock:!1,developerStay:!1,spreadSheetList:await y()})},onMappingStep:({data:g,dataModels:b,columns:w,matching:y,baseColumns:C,goBack:I,reviewLocationState:S,ignoreAlert:_,invokeFromMappingStep:M=!1})=>{let L,E=[],R=[],T=[],k=B=>{L=B},P=({columns:B})=>{if(L){if(!Sq(L)||L.some(j=>!Iq(j)))throw new Error("1000")}else return{values:null,dataInfos:null};return kL(B,L)},O=()=>{if(E.length===0&&R.length===0&&T.length===0)return{updatedDataModels:null,updatedColumns:null};let B=[...b],j=[...w];return R.forEach(H=>{if(!j.some(G=>G.key===H)){console.warn(`tdm.removeColumn: Column with key "${H}" does not exist. The operation was ignored.`);return}j=j.filter(G=>G.key!==H),B=B.filter(G=>G.getKey()!==H)}),E.forEach(({column:H,index:K})=>{if(K!=null&&(!Number.isInteger(K)||K<0)){console.warn(`Your index at "${H.key}" is invalid, Please provide a non-negative, whole number format.`);return}let ae=new Ro([H],{checkValidation:!1,enableNodeProcessing:o.getEnableNodeProcessing(),enableReuseMapping:o.getEnableReuseMapping()}).getDataModels()[0];if(B.findIndex(V=>V.getKey()===ae.getKey())>=0){console.warn(`Column with key "${ae.getKey()}" already exists. To update an existing column, use tdm.updateColumn() instead.`);return}let Q=K!==void 0&&K>=0&&K<j.length?K:j.length;B.splice(Q,0,ae),j.splice(Q,0,H)}),T.forEach(({key:H,changes:K,options:G})=>{let ne=j.findIndex(V=>V.key===H);if(ne<0){console.warn(`tdm.updateColumn: Column with key "${H}" does not exist. The operation was ignored.`);return}if(G?.index!=null&&(!Number.isInteger(G.index)||G.index<0)){console.warn(`Your index at "${H}" is invalid, Please provide a non-negative, whole number format.`);return}let ae={...j[ne],...K,key:H},Q=new Ro([ae],{checkValidation:!1,enableNodeProcessing:o.getEnableNodeProcessing(),enableReuseMapping:o.getEnableReuseMapping()}).getDataModels()[0];if(G?.index!=null){j.splice(ne,1),B.splice(ne,1);let V=Math.max(0,Math.min(G.index,j.length));j.splice(V,0,ae),B.splice(V,0,Q)}else j[ne]=ae,B[ne]=Q}),{updatedColumns:j,updatedDataModels:B}},A={addColumn:(B,j)=>{E.push({column:B,index:j?.index})},removeColumn:B=>{R.push(B)},updateColumn:(B,j,H)=>{T.push({key:B,changes:j,options:H})}},D=()=>{let{updatedColumns:B,updatedDataModels:j}=O(),{values:H,dataInfos:K}=P({columns:B||w});return{updatedColumns:B,updatedDataModels:j,values:H,dataInfos:K}};return j1(({proceed:B,stay:j,resolveGateAs:H})=>{let K=!1,G=me=>{if(K||(K=!0,_))return;let{title:Q,description:V,cancelButton:U,proceedButton:le}=me??{};M||I(),H("stay"),setTimeout(()=>{e({title:Q??u.alertTitle,description:V??u.alertDescription,textNegativeButton:le??u.alertContinueBtn,textPositiveButton:U??u.alertCancelBtn,type:"alert",onClickNegativeButton:()=>{try{let{dataInfos:Z,updatedColumns:ie,updatedDataModels:J,values:ue}=D();a({pathname:Mr},{state:{...S,mappingStepResult:{mappingStepData:ue,mappingStepDataInfos:Z,mappingStepColumns:ie,mappingStepDataModels:J}}})}catch(Z){l(Z);return}},customIcon:c()})},50)},ne=me=>{if(K||(K=!0,_))return;let{title:Q,closeButton:V,description:U}=me??{};M||I(),H("stay"),setTimeout(()=>{e({title:Q??u.blockTitle,description:U??u.blockDescription,textNegativeButton:V??u.blockCloseBtn,isShowPositiveButton:!1,type:"block",onClickNegativeButton:()=>{},customIcon:d()})},50)},ae=me=>{!_&&!M&&!me?.rerunHandler&&I(),j(me)};return t?.mappingStep?.({alert:G,block:ne,updateData:k,tdm:A,logs:Qd({baseColumns:C,dataModels:b,featureWhiteList:o,matching:y}),data:g,proceed:B,stay:ae})}).then(B=>({isCalledAlertOrBlock:B==="stay",handleUpdatedColumnsAndData:D}))},onHeaderStep:({data:g,onConfirmBlock:b,onProceedAlert:w,onHeaderResultIsPromise:y})=>{let C,I=L=>{C=L},S=async()=>{if(!C)return;let L=new Map;g.forEach(O=>{let A=PC(O.fileName,O.sheetName);L.set(A,O.headerRowIndexes||[])});let E=[],R=pn({workersBaseUrl:s??""});if(await R.init(),!C[0]?.fileName||!C[0].data){let O;try{O=await R.jsonParser(JSON.stringify(C),{hasDateType:!1})}catch{throw R.clear(),new Error("1000")}let A=new ds({data:O,name:"Sheet"}),D=g[0]?.headerRowIndexes||[],N=C?.[0]?.headerRowIndexes;OL(A,D,N);let B=new Id({filename:"SpreadSheet",sheets:[A],type:"json"});E.push(B)}else{if(!TL(C))throw new Error("1000");for(let O=0;O<C.length&&!(!i&&O>0);++O){let A=C[O],D=Array.isArray(A.data)&&Array.isArray(A.data[0]),N;if(D)N=A.data;else try{N=await R.jsonParser(JSON.stringify(A.data),{hasDateType:!1})}catch{throw R.clear(),new Error("1000")}let B=new ds({data:N,name:A.sheetName??A.fileName}),j=bq(L,A.fileName,A.sheetName),H=A.headerRowIndexes;OL(B,j,H);let K=new Id({filename:A.fileName,sheets:[B],type:"json"});E.push(K)}}let T=new ic({spreadSheets:E});if(T.selectAllSheets(!0),R.clear(),T.getSelectedSheets().every(O=>O.getData().length===0))throw new Error("1000");return T},_=!1;return j1(({proceed:L,stay:E,markGatePending:R,resolveGateAs:T})=>{_=!1;let k=!1,P=N=>{_=!0,E(N)},O=N=>{if(k)return;k=!0,R();let{title:B,description:j,cancelButton:H,proceedButton:K}=N??{};setTimeout(()=>{e({title:B??u.alertTitle,description:j??u.alertDescription,textNegativeButton:K??u.alertContinueBtn,textPositiveButton:H??u.alertCancelBtn,type:"alert",onClickNegativeButton:()=>{T("proceed"),w?.()},onClickPositiveButton:()=>{T("stay"),b?.()},onCloseModal:()=>{T("stay"),b?.()},customIcon:c()})},50)},A=N=>{if(k)return;k=!0;let{closeButton:B,description:j,title:H}=N??{};T("stay"),setTimeout(()=>{e({title:H??u.blockTitle,description:j??u.blockDescription,textNegativeButton:B??u.blockCloseBtn,isShowPositiveButton:!1,type:"block",onClickNegativeButton:()=>{b?.()},onCloseModal:()=>{b?.()},customIcon:d()})},50)},D=t?.headerStep?.({data:g,alert:O,block:A,updateData:I,proceed:L,stay:P});return pRe(D)&&y?.(),D}).then(async L=>({isBlock:L==="stay",isCalledAlertOrBlock:L==="stay",developerStay:_,handleUpdatedData:S}))},onReviewStep:({values:g,columns:b,errors:w,dataInfos:y,baseColumns:C,logs:I})=>{let S,_=()=>{let T=[];for(let k=0;k<g.length;++k){let P=g[k],O={},A=b.filter(D=>!D.hidden);for(let D=0;D<b.length;++D){let N=b[D],B=A.findIndex(G=>N.key===G.key);O[N.key]={value:P[N.key]??null};let j=[];j=[...B>-1?(w[k]??[]).filter(G=>G&&G.colIndex===B).map(G=>({level:"error",message:Ai.getValidateMessage(n,{validate:G.validate,colIndex:D,validateMsg:G?.validateMsg,operator:G?.operator,compareValue:G?.compareValue},b,C)})):[]];let K=B>-1?(y[k]??[]).filter(G=>G.colIndex===B).map(G=>({message:G.popover.message,level:G.popover.level})):[];j=[...j,...K],O[N.key].info=j.length>0?j:void 0}T.push(O)}return T},M=T=>{S=T},L=()=>{if(S){if(!Sq(S)||S.some(T=>!Iq(T)))throw new Error("1000")}else return;return kL(b,S)},E=_();return j1(({proceed:T,stay:k,resolveGateAs:P})=>{let O=!1,A=D=>{if(O)return;O=!0;let{closeButton:N,description:B,title:j}=D??{};P("stay"),e({title:j??u.blockTitle,description:B??u.blockDescription,textNegativeButton:N??u.blockCloseBtn,isShowPositiveButton:!1,type:"block",onClickNegativeButton:()=>{},onCloseModal:()=>{},customIcon:d()})};return t?.reviewStep?.({block:A,data:E,logs:I,updateData:M,proceed:T,stay:k})}).then(T=>{let k=T==="stay";if(k||!S)return{isBlock:k};let P=L();return{isBlock:k,results:P}})},showErrorModal:l,defaultPopupMessages:u,getBlockCustomIcon:d}};var mRe=t=>{let e=t.matchedDataModel?.dataModel,r=e?.getType(),o=e?.getInputFormat();return Aw(r)?t.sheetColumn.getParsedRowsForInputFormat(o)??t.sheetColumn.getRowsForDateInputFormatParse():t.sheetColumn.getRows()},DC=t=>{let e=[];for(let r=0;r<t.length;++r){let o=t[r],a=o.sheetColumn.toJSON();a.rows=mRe(o);let n=o.matchedDataModel;e.push({sheetColumn:a,matchedDataModel:n})}return e};import{isArray as hRe,isBoolean as gRe,isNil as vRe,isObject as bRe}from"lodash";var DL=class{constructor(){this.parse=(e,r)=>vRe(r)?null:hRe(r)||bRe(r)||gRe(r)?r:ur(r)===null?null:this.valueParser(r)}},AC=DL;var AL=class extends AC{constructor(){super(...arguments);this.valueParser=r=>{let o=Number(r);return isNaN(o)?ur(r):o}}},Mq=AL;var NL=class extends AC{constructor(){super(...arguments);this.valueParser=r=>{let o=`${r}`.replace(",","."),a=lt.convertStringToNumber(o,{format:"us"});return a===null?ur(`${r}`):Number(a)}}},Eq=NL;import{isArray as wRe,isBoolean as xRe,isNil as yRe,isObject as CRe}from"lodash";var FL=class{constructor(){this.parse=(e,r)=>yRe(r)?null:wRe(r)||CRe(r)||xRe(r)?r:ur(r)}},Lq=FL;import{isArray as SRe,isBoolean as IRe,isNil as _Re,isObject as MRe}from"lodash";var BL=class{constructor(){this.parse=(e,r)=>{if(_Re(r))return null;if(SRe(r)||MRe(r)||IRe(r))return r;if(ur(r)===null)return null;let o=`${r}`.replace(",","."),a=lt.convertStringToNumber(o,{format:"us",adornment:"percentage"});return a===null?ur(r):Number(a)}}},Rq=BL;import{isNil as ERe}from"lodash";var HL=class{constructor(){this.parse=(e,r)=>{if(ERe(r))return null;if(typeof r=="number"){let o=`${r}`;return ur(/[eE]/.test(o)?lt.expandScientificNotation(o):o)}return ur(r)}}},Tq=HL;import{isArray as kq,isBoolean as Oq,isNil as Pq,isObject as Dq}from"lodash";var VL=class{constructor(){this.parseSingle=(e,r)=>Pq(r)||Dq(r)||kq(r)?null:Oq(r)?JSON.stringify(r):nn({value:r,dataModel:e,isTrim:!0});this.parseMultiple=(e,r)=>kq(r)?r.map(o=>nn({value:o,dataModel:e,isTrim:!0})):Pq(r)||Dq(r)||r===""?null:Oq(r)?[JSON.stringify(r)]:[nn({value:r,dataModel:e,isTrim:!0})];this.parse=(e,r)=>e.getIsMultiSelection()?this.parseMultiple(e,r):this.parseSingle(e,r)}},Aq=VL;var LRe=new Mq,RRe=new Eq,TRe=new Lq,kRe=new Rq,ORe=new Tq,PRe=new Aq,$L=class{static{this.parse=(e,r)=>{let o;switch(e.getType()){case"int":o=LRe;break;case"float":o=RRe;break;case"currency_eur":case"currency_usd":o=TRe;break;case"percentage":o=kRe;break;case"single-select":case"currency_code":case"country_code_alpha_2":case"country_code_alpha_3":o=PRe;break;default:o=ORe}return o.parse(e,r)}}},Rm=$L;var DRe=t=>{if(!t||typeof t!="string")return"";let e=document.createElement("div");e.innerHTML=t;let r=["a","b","i","u","p","strong","em","br","span","div","ul","ol","li","h1","h2","h3","h4","h5","h6"],o={a:["href","target","rel"],span:["style"],div:["style"],p:["style"],strong:["style"],em:["style"],b:["style"],i:["style"],u:["style"]},a=i=>{if(i.nodeType===Node.TEXT_NODE)return i.cloneNode(!0);if(i.nodeType!==Node.ELEMENT_NODE)return null;let s=i,l=s.tagName.toLowerCase();if(!r.includes(l))return document.createTextNode(s.textContent||"");let u=document.createElement(l),c=o[l]||[];if(Array.from(s.attributes).forEach(d=>{if(c.includes(d.name)){if(d.name==="href"){let f=d.value.trim();try{let m=new URL(f,window.location.href).protocol.toLowerCase();if(!["http:","https:","mailto:"].includes(m))return}catch{let p=f.toLowerCase();if(p.includes("javascript:")||p.includes("data:")||p.includes("vbscript:")||p.includes("file:"))return}}u.setAttribute(d.name,d.value)}}),l==="a"){u.hasAttribute("target")||u.setAttribute("target","_blank");let d=u.getAttribute("rel")||"",f=new Set(d.split(/\s+/).filter(Boolean));f.add("noopener"),f.add("noreferrer"),u.setAttribute("rel",Array.from(f).join(" "))}return Array.from(i.childNodes).forEach(d=>{let f=a(d);f&&u.appendChild(f)}),u},n=document.createElement("div");return Array.from(e.childNodes).forEach(i=>{let s=a(i);s&&n.appendChild(s)}),n.innerHTML},ARe=t=>!t||typeof t!="string"?!1:/<[^>]*>/g.test(t),NC=t=>ARe(t)?{isHtml:!0,content:DRe(t)}:{isHtml:!1,content:t};var Nq=(t,e)=>{if(e.getType()!=="date")return ra.parse(t,{dataModel:e});if(Rp(t))return null;let r=e.getInputFormat();return $l(r)?ra.parse(t,{dataModel:e,skipDeclaredInputFormatNormalization:!0}):AD(t,e.getOutputFormat())};var UL=t=>new Promise(e=>{setTimeout(e,t)}),Fq=t=>{let e=[];for(let r=0;r<t.length;++r){let o=[];if(t[r].isCategoryType())for(let a=0;a<t[r].getOptions().length;a++)o.push({label:t[r].getOptions()[a].label,value:t[r].getOptions()[a].value});else t[r].getType()==="boolean"&&(o=bo.getInstance().getOptionsForReviewEntries().map(a=>({...a,value:`${a.value}`})));e.push(o)}return e},Bq=(t,e,r,o)=>{let a=r[t];if(!a||a.length<=0)return e;let n=`${e}`?.toLowerCase()?.trim();if(o==="both"){let i=[];for(let s=0;s<a.length;++s){if(a[s].value?.toLowerCase()?.trim()===n)return a[s].value;a[s]?.label?.toLowerCase()?.trim()===n&&i.push(a[s].value)}return i[0]??e}for(let i=0;i<a.length;++i)if(o==="label"?a[i].value?.toLowerCase()?.trim()===n:a[i].label?.toLowerCase()?.trim()===n)return a[i][o];return e};function FC(t,e,r){return Aw(t)?typeof e=="boolean"?!e:e.needsDateFormatParse(r):!1}var Tm=class{constructor(e){this.PROBE_ROWS_COUNT=25;this.MAX_ITERATIONS=6;this.totalEuFormatsCount=0;this.totalUsFormatsCount=0;this.matching=[];this.probeTypes=["float","currency_eur","currency_usd","int","percentage"];this.matching=e}detect(){let e=this.getColumnsNumberFormat(),r="eu";return this.totalUsFormatsCount>this.totalEuFormatsCount?r="us":r="eu",{global:r,columns:e}}getColumnsNumberFormat(){let e=[];for(let r=0;r<this.matching.length;r++){let o=this.matching[r].matchedDataModel?.dataModel?.getType();if(!o||!this.probeTypes.includes(o))continue;let a,n=0,i=1,s=this.matching[r].sheetColumn.getColumnKey(),l=this.matching[r].sheetColumn.getRows();for(;!a&&i<=this.MAX_ITERATIONS;){let u=l.slice(n,n+this.PROBE_ROWS_COUNT);if(u.length===0)break;let c=this.detectNumberFormat(u);if(c!==void 0){a=c;break}n+=this.PROBE_ROWS_COUNT,i+=1}e.push({column:s,numberFormat:a})}return e}detectNumberFormat(e){let r=0,o=0;for(let a=0;a<e.length;a++){let n=e[a];if(typeof n!="string")continue;let i=lt.detectNumberFormat(n,{resolveUncertainty:!1});i==="eu"&&(r++,this.totalEuFormatsCount++),i==="us"&&(o++,this.totalUsFormatsCount++)}if(!(o===0&&r===0))return o>r?"us":"eu"}};var Fi=({workersBaseUrl:t})=>{let e=t?cn(t,Si.MATCHING):"",{init:r,getRemote:o,clear:a}=Ci({hostWorkerUrl:e,workerFile:()=>new Worker(new URL("workers/matchValues/index.js",import.meta.url),{type:"module"})});return{init:r,clear:a,getValues:(...d)=>{let f=o();if(f)return f.getValues(...d);let p=cA(...d);return Promise.resolve(p)},addToAllRows:(...d)=>{let f=o();return f?f.addToAllRows(...d):nA(...d)},joinWithoutColumns:(...d)=>{let f=o();return f?f.joinWithoutColumns(...d):iA(...d)},joinOnColumns:(...d)=>{let f=o();return f?f.joinOnColumns(...d):sA(...d)},appendToColumns:(...d)=>{let f=o();return f?f.appendToColumns(...d):lA(...d)},countMatching:(...d)=>{let f=o();return f?f.countMatching(...d):uA(...d)}}};var NRe=t=>t.find(e=>e.sheetColumn.getType()===1)?.matchedDataModel?.dataModel,FRe=({dataModels:t,onlyMappedColumns:e,matchedDataModelKeys:r,joinDataModel:o})=>{let a=t;return e&&(a=a.filter(n=>!!n&&r.includes(n.getKey()))??[]),o&&(a=[o,...a.filter(n=>n.getKey()!==o.getKey())]),a},BRe=t=>{let e={};for(let r=0;r<t.length;r++){let o=t[r];e[o.getKey()]=o}return r=>e[r]};async function Hq({dataModelSheetMatching:t,columns:e,dataModels:r,spreadSheetNavigate:o,workersBaseUrl:a,onlyMappedColumns:n}){let i=t.getMatching(),s=t.getMatchedDataModelKeys(),l=NRe(i),u=pn({workersBaseUrl:a}),c=Fi({workersBaseUrl:a});await u.init(),await c.init();try{for(let g=0;g<i.length;g++){let b=i[g],w=b.matchedDataModel?.dataModel,y=w?.getType(),C=w?.getInputFormat()??void 0,I=w?.getKey()??b.sheetColumn.getColumnKey();if(FC(y,b.sheetColumn,C)){let _=b.sheetColumn.getRowsForDateInputFormatParse(),M=await u.parseDateFormat(_,C)||[];$l(C)&&Fw({columnKey:I,sourceRows:_,inputFormat:C}),b.sheetColumn.applyDateInputFormatParse(M,C)}}let d={global:"eu",columns:[]};if(o){d=new Tm(i).detect();let b=o.getSpreadSheetList().getSelectedSpreadSheets();b[b.length-1].setNumberFormat(d)}let f=FRe({dataModels:r,onlyMappedColumns:n,matchedDataModelKeys:s,joinDataModel:l}),p=await c.getValues({matching:DC(i),detectedNumberFormats:d,columns:e}),m=BRe(f),h=[];for(let g=0;g<p.length;++g){let b=p[g],w=Object.keys(b),y={};for(let C=0;C<w.length;++C){let I=w[C],S=m(I);y[I]=S?Rm.parse(S,p[g][I]):p[g][I]}h[g]=y}return h}finally{u.clear(),c.clear()}}var URe=({dataModelSheetMatching:t,dataModelSheetMatcher:e,setShowFieldRequired:r,autoMatchingChecksum:o,matchingByAutoMatch:a,initialDataModelSheetMatching:n})=>{let i=t.getDataModels(),s=Ur(),{state:l}=Vt(),{matchingStrategy:u,abort:c}=_o(),d=l,{showConfirmModal:f,isOpen:p}=Tt(),{t:m}=q(),{embedUploadArea:h=!1,mappingViewMode:g,columns:b,workersBaseUrl:w}=be(),{cancel:y}=Cr(),{scrollToTop:C}=yc(),{modal:I}=Qe(),{getHasSheetSelectionPage:S,getHasJoinColumnPage:_}=Di(),{getColumnsAndDataModels:M}=OC(),{licenseKey:L,settings:E}=gt(),{isHeaderSkipEnabled:R,resolvedSkipConfig:T}=co(),{featureWhiteList:k}=rr(),{onMappingStep:P,showErrorModal:O}=Yn(),[A,D]=$Re(!1),N=VRe(()=>{let V={matching:[]};return g==="targetColumns"?t.getDataModels().forEach(U=>{let le=t.getMatchingByDataModel(U);V.matching.push({sheetColumn:t.getMatchingByDataModel(U)?.sheetColumn,matchedDataModel:le?.matchedDataModel??{dataModel:U}})}):t.getSheets().forEach(U=>{U.getColumns().sort(RL).forEach(le=>{V.matching.push({sheetColumn:le,matchedDataModel:t.getMatchingBySheetColumn(le)?.matchedDataModel})})}),V},[]),B=()=>{let V=d.spreadSheetNavigate;if(V){if(V.goToLastSpreadSheet(),V.goToLastSheet(),_(V.getSpreadSheetList())){s({pathname:Go},{state:{spreadSheetNavigate:V,hasBackStep:!0,dynamicUploadStart:d?.dynamicUploadStart,processingContextualBefore:!0}});return}R&&!T.header.showInStepper?S(V.getSpreadSheetList())?s({pathname:Xr},{state:{spreadSheetList:V.getSpreadSheetList(),hasBackStep:!0,dynamicUploadStart:d?.dynamicUploadStart,oldSelectedSingleSheetWithoutModified:d?.oldSelectedSingleSheetWithoutModified,processingContextualBefore:!0}}):h||!I?y():(y(!1),s({pathname:yr})):(V.setUpdatedSpreadSheetList(V.getOriginalSpreadSheetList()),s({pathname:gr},{state:{spreadSheetNavigate:V,hasBackStep:!0,dynamicUploadStart:d?.dynamicUploadStart,processingContextualBefore:!0}}))}},j=()=>{u?.clearData(L,i),c()},H=()=>{let V=d.spreadSheetNavigate;d?.dynamicUploadStart===jt?f({isShowIcon:!0,title:m("txt_confirm_title"),description:m("txt_go_back_dynamic_import_title"),textNegativeButton:m("txt_confirm_leave_confirm_btn"),textPositiveButton:m("txt_confirm_leave_cancel_btn"),onClickNegativeButton:()=>{j(),y()}}):f(V?{isShowIcon:!0,title:m("txt_confirm_title"),description:m("txt_back_page_dialog"),textNegativeButton:m("txt_go_back"),textPositiveButton:m("txt_cancel"),onClickNegativeButton:()=>{j(),C(),B(),r(!1)}}:{isShowIcon:!0,title:m("txt_confirm_title"),description:m("txt_back_page_dialog"),textNegativeButton:m("txt_go_back"),textPositiveButton:m("txt_cancel"),onClickNegativeButton:()=>{j(),y()}})},K=(V,U)=>{if(!U)return;let Z=V?.matchedDataModel?.dataModel?.getPreserveUnmappedOptions?.();if(Z==="optional-off"||Z==="optional-on")return V?.preserveUnmapped??V?.matchedDataModel?.preserveUnmapped},G=async V=>{let U=[];t.getSheets().forEach(ue=>{ue.getColumns().sort(RL).forEach(se=>{let ee=V.matching.find(F=>F.sheetColumn?.equal(se)),fe=ee?.matchedDataModel?.dataModel?.isDropdown();U.push({sheetColumn:se,matchedDataModel:{dataModel:ee?.matchedDataModel?.dataModel,matchedOptions:fe?ee?.matchedDataModel?.matchedOptions:void 0,preserveUnmapped:K(ee,fe)}})})}),t.setDataModelSheetMatch(U);let le=d.spreadSheetNavigate,{reviewEntriesColumns:Z,reviewEntriesDataModels:ie,notMatchedDataModel:J}=M(t,U,le?le.getSpreadSheetList().getSelectedSheets():[]);if(J.length>0)f({isShowIcon:!0,title:m("txt_match_column_required"),description:m("txt_dialog_un_matched",{unMatched:`<b>${J.map(ue=>ue.getLabel()).join(", ")}</b>`}),textNegativeButton:m("txt_submit_understand"),isShowPositiveButton:!1,onClickNegativeButton:()=>{r(!0)}});else{r(!1);let ue={dataModelSheetMatching:t,dataModelSheetMatcher:e,spreadSheetNavigate:le,columns:Z,dataModels:ie,dynamicUploadStart:d?.dynamicUploadStart,oldSelectedSingleSheetWithoutModified:d.oldSelectedSingleSheetWithoutModified,autoMatchingChecksum:o,matchingByAutoMatch:a,initialDataModelSheetMatching:n,resolvedSkipConfig:{...T,mapping:{...T.mapping,showInStepper:!0}},fromPreviousStepNavigation:d?.fromPreviousStepNavigation,hasBackStep:d?.hasBackStep},se,ee=!1;if(k.getStepHandler()){D(!0);try{let fe=await Hq({dataModelSheetMatching:t,columns:Z,dataModels:ie,spreadSheetNavigate:le,workersBaseUrl:w??"",onlyMappedColumns:E.onlyMappedColumns}),F=await P({data:fe,dataModels:ie,columns:Z,baseColumns:b,matching:t.getMatching(),goBack:()=>{},reviewLocationState:ue,ignoreAlert:!1,invokeFromMappingStep:!0});if(F?.isCalledAlertOrBlock)return;let{dataInfos:W,updatedColumns:z,updatedDataModels:pe,values:te}=F.handleUpdatedColumnsAndData();se={mappingStepData:te,mappingStepDataInfos:W,mappingStepColumns:z,mappingStepDataModels:pe},ee=!0}catch(fe){O(fe);return}finally{D(!1)}}c(),s({pathname:Mr},{state:{...ue,mappingStepResult:se,mappingStepGated:ee}})}},ne=Ti({defaultValues:N,reValidateMode:"onBlur"}),{handleSubmit:ae,watch:me}=ne,Q=me();return HRe(()=>{ne.reset(N)},[N]),{dataModels:i,initialValues:N,onBackClick:H,onSubmit:G,isModalClose:p,form:ne,handleSubmitForm:ae,values:Q,gatePending:A}},Vq=URe;import{useMemo as $q}from"react";var jRe=({values:t})=>{let e=Vr(),r=$q(()=>e.getDataModels().filter(a=>a.hasMappingValidation()),[e]),o=$q(()=>t.matching.map(a=>a.matchedDataModel?.dataModel).filter(a=>!!a),[t]);return{footerDataModels:r,matchedDataModels:o}},Uq=jRe;import{useLayoutEffect as lG,useRef as vTe,useState as bTe}from"react";import{jsx as jL,jsxs as zRe}from"react/jsx-runtime";var WRe=({title:t,titleId:e,...r})=>zRe("svg",{width:16,height:16,viewBox:"0 0 16 16",className:"color",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...r,children:[t?jL("title",{id:e,children:t}):null,jL("path",{d:"M12.6667 8H3.33334",stroke:"currentColor",className:"color",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),jL("path",{d:"M8 12.6668L3.33334 8.00016L8 3.3335",className:"color",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]});var jq=WRe;import{jsx as Wq,jsxs as GRe}from"react/jsx-runtime";var qRe=({onClick:t,disabled:e,className:r,label:o,hideIcon:a,dataTestId:n})=>{let{t:i}=q();return GRe(He,{variant:"secondary",onClick:t,disabled:e,className:r,"data-testid":n,children:[!a&&Wq("div",{className:"mr-2 flex items-center",children:Wq(jq,{})}),i(o??"txt_back")]})},BC=qRe;import{forwardRef as fTe,useEffect as KL,useImperativeHandle as pTe,useMemo as mTe,useRef as iG}from"react";import{useLayoutEffect as zq,useEffect as KRe,useRef as qq,useState as Gq}from"react";var HC=31,YRe=()=>{let[t,e]=Gq(!1),r=qq(null),o=qq(null),[a,n]=Gq(!1);return zq(()=>{o.current&&(t?o.current.style.height="auto":o.current.style.height=`${HC}px`)},[t]),KRe(()=>{a&&e(!1)},[a]),zq(()=>{let i=()=>{(r.current?.offsetHeight??0)>HC?n(!0):n(!1)};i(),window.addEventListener("resize",i);let s=r.current,l;return s&&(l=new ResizeObserver(i),l.observe(s)),()=>{window.removeEventListener("resize",i),l?.disconnect()}},[]),{isShow:t,setIsShow:e,refContent:r,isAvailableCollapse:a,refWrapper:o}},Kq=YRe;import{jsx as Yq}from"react/jsx-runtime";var XRe=({children:t,className:e})=>Yq("div",{className:x("bg-salmon-100 text-xss text-salmon-500 inline-flex h-5 w-5 items-center justify-center rounded-full",e),children:Yq("span",{children:t})}),Xq=XRe;import{jsx as Zq,jsxs as JRe}from"react/jsx-runtime";var ZRe=({title:t,titleId:e,...r})=>JRe("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...r,children:[t?Zq("title",{id:e,children:t}):null,Zq("path",{d:"M12 10L8 6L4 10",stroke:"#88959C",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]});var Jq=ZRe;import{jsx as WL,jsxs as eTe}from"react/jsx-runtime";var QRe=({onClick:t,requiredCount:e,isShow:r,dataTestId:o})=>{let{t:a}=q(),n=X(),i=e>0;return eTe("button",{type:"button",className:x("rounded-t-medium relative top-px flex items-center bg-white px-4",i?"py-1":"py-1.5",v({"&&":n.getRequiredColumnsTheme().showMore.root})),onClick:t,"data-testid":o,children:[WL("span",{className:x("text-gray-510 mr-2 text-xs tracking-wide",v({"&&":n.getRequiredColumnsTheme().showMore.text})),children:a(r?"txt_show_less":"txt_show_more")}),i?WL(Xq,{className:x(v({"&&":n.getRequiredColumnsTheme().showMore.badge})),children:e}):null,WL(Jq,{className:x("ml-2",r?"":"rotate-180 transform",v({"&& path":n.getRequiredColumnsTheme().showMore.icon}))})]})},Qq=QRe;import{useMemo as GL}from"react";import{useState as tTe}from"react";import{Fragment as oTe,jsx as eG}from"react/jsx-runtime";var zL=t=>{let e=t?.trim();return e||void 0},rTe=({iconUrl:t,fallback:e})=>{let[r,o]=tTe(!1),a=zL(t);return!a||r?eG(oTe,{children:e}):eG("img",{src:a,alt:"",width:16,height:17,className:"h-[17px] w-4 object-contain",onError:()=>o(!0)})},qL=rTe;var aTe=({dataModels:t,matchedDataModels:e})=>{let r=X(),o=zL(r.getRequiredColumnsTheme().hasMatchIconUrl),a=GL(()=>e.map(u=>u.getKey()),[e]),{isColumnRequired:n}=Mi(),i=GL(()=>t.filter(u=>u.hasMappingValidation()).map(u=>({key:u.getKey(),label:u.getLabel(),mappingValidation:u.getMappingValidation()})),[t]),s=GL(()=>{let u=[];return t.forEach(c=>{let d=c.getKey(),f=a.includes(d),p=n(d),m=f&&i.length>0&&nm(i,a.filter(b=>b!==d)).includes(d);if(!(p||m&&o))return;let g=c.getMappingValidation();u.push({label:c.getLabel(),matched:f,errorMessage:g?.errorMessage})}),u},[t,a,o,n,i]),l=s.reduce((u,c)=>c.matched?u:u+1,0);return{columns:s,requiredCount:l}},tG=aTe;import{createPortal as hTe}from"react-dom";import{jsx as rG,jsxs as iTe}from"react/jsx-runtime";var nTe=({title:t,titleId:e,...r})=>iTe("svg",{width:16,height:17,viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...r,children:[t?rG("title",{id:e,children:t}):null,rG("path",{d:"M13.3327 4.5L5.99935 11.8333L2.66602 8.5",stroke:"#10B981",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]});var oG=nTe;import{jsx as km,jsxs as lTe}from"react/jsx-runtime";var sTe=({title:t,titleId:e,...r})=>lTe("svg",{width:16,height:17,viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...r,children:[t?km("title",{id:e,children:t}):null,km("g",{clipPath:"url(#clip0_1440_8076)",children:km("path",{d:"M8.00065 15.1668C11.6825 15.1668 14.6673 12.1821 14.6673 8.50016C14.6673 4.81826 11.6825 1.8335 8.00065 1.8335C4.31875 1.8335 1.33398 4.81826 1.33398 8.50016C1.33398 12.1821 4.31875 15.1668 8.00065 15.1668Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})}),km("defs",{children:km("clipPath",{id:"clip0_1440_8076",children:km("rect",{width:16,height:16,fill:"white",transform:"translate(0 0.5)"})})})]});var aG=sTe;import{useState as uTe}from"react";import{jsx as Cc,jsxs as dTe}from"react/jsx-runtime";var cTe=({label:t,matched:e,isError:r,errorMessage:o})=>{let a=X(),[n,i]=uTe(!1),s=a.getRequiredColumnsTheme(),l=s.errorPopover;return dTe("div",{className:"mr-5 mt-2 flex items-center whitespace-nowrap",children:[e?Cc(qL,{iconUrl:s.hasMatchIconUrl,fallback:Cc(oG,{className:v({"&& path":s.hasMatchIcon})})}):Cc(qL,{iconUrl:r?s.notMatchErrorIconUrl:s.notMatchIconUrl,fallback:Cc(aG,{className:r?x("text-red-510",v({"&& path":s.notMatchErrorIcon})):x("text-gray-510",v({"&& path":s.notMatchIcon}))})}),!e&&r&&o?Cc(ct,{isShow:n,direction:"top",flip:!0,offset:{mainAxis:8,crossAxis:0},message:Cc("div",{className:x("bg-salmon-500 border-salmon-500 rounded border px-3 py-2","w-max text-left text-xs text-white",v({"&&":l})),style:{maxWidth:300},children:o}),render:({setReferenceElement:u})=>Cc("span",{ref:u,className:x("text-red-510 ml-2 text-sm",v({"&&":s.notMatchError})),onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),children:t})}):Cc("span",{className:x("ml-2 text-sm",e?"text-green-510":`${r?"text-red-510":"text-gray-510"}`,e?v({"&&":s.hasMatch}):r?v({"&&":s.notMatchError}):v({"&&":s.notMatch})),children:t})]})},nG=cTe;import{jsx as sl,jsxs as z1}from"react/jsx-runtime";var gTe=fTe(({className:t,wrapperClassName:e,dataModels:r,matchedDataModels:o,isShowFieldRequired:a,onIsAvailableCollapseChange:n,buttonWrapperClassName:i,onBackClick:s,onIsShowChange:l,onSubmitClick:u,isDisabledSubmitButton:c,isDisabledBackButton:d,nextLabel:f,backLabel:p,hideIcon:m,isModal:h,containerId:g,hideColumns:b,positiveDataTestId:w,negativeDataTestId:y,positiveLoading:C=!1},I)=>{let{refWrapper:S,refContent:_,isAvailableCollapse:M,setIsShow:L,isShow:E}=Kq(),{columns:R,requiredCount:T}=tG({dataModels:r,matchedDataModels:o}),k=X(),{t:P}=q(),O=iG(null),A=iG(null);pTe(I,()=>({setIsShowBadge:N=>{L(N)},getIsAvailableCollapse:()=>M})),KL(()=>{l?.(E)},[l,E]),KL(()=>{n(M)},[M,n]);let D=mTe(()=>sl("div",{id:g,ref:O,className:t,children:z1("div",{className:x(e),children:[sl("div",{className:x("flex w-full justify-center"),children:M?sl(Qq,{isShow:E,requiredCount:T,onClick:()=>{L(N=>!N)},dataTestId:re.matchColumns.showMore}):null}),sl("div",{children:z1("div",{className:x("flex items-center justify-between px-3 py-5 lg:px-8",h?"rounded-b-lg":"",v({"&&":{paddingTop:19,minHeight:90}}),v({"&&":k.getFooterTheme().root}),v({backgroundColor:k.getGlobalTheme().getBackgroundColor()}),v`
404
+ </div>`;g?.message==="1000"&&(w=n("txt_step_handler_invalid_data")),setTimeout(()=>{e({title:n("txt_default_title_error"),description:w,textNegativeButton:n("txt_close"),isShowIcon:!0,isShowPositiveButton:!1,onClickNegativeButton:()=>{b?.()}})},50)},u={alertTitle:n("txt_default_alert_title"),alertDescription:n("txt_default_alert_description"),alertCancelBtn:n("txt_default_alert_cancel_btn"),alertContinueBtn:n("txt_default_alert_continue_btn"),blockTitle:n("txt_default_block_title"),blockDescription:n("txt_default_block_description"),blockCloseBtn:n("txt_default_block_close_btn")},c=()=>r?.alertPopup?.icon&&dr(r?.alertPopup?.icon)?()=>_q("svg",{className:x("w-auto bg-contain bg-center bg-no-repeat",v({"&&":r?.alertPopup?.icon}))}):void 0,d=()=>r?.blockPopup?.icon&&dr(r?.blockPopup?.icon)?()=>_q("svg",{className:x("w-auto bg-contain bg-center bg-no-repeat",v({"&&":r?.blockPopup?.icon}))}):void 0;return{onUploadStep:({parsedData:g,rawData:b})=>{let w=null,y=async()=>{if(!w)return;if(!TL(w))throw new Error("1000");let _=[],M=pn({workersBaseUrl:s??""});await M.init();for(let E=0;E<w.length;++E){let R=w[E],T;try{T=await M.jsonParser(JSON.stringify(R.data),{hasDateType:!1})}catch{throw M.clear(),new Error("1000")}let k=new ds({data:T,name:R.sheetName??R.fileName});k.setHeaderByAutoDetection();let P=_.find(O=>O.getFilename()===R.fileName);if(P)P.addSheet(k),k.setSpreadSheet(P);else{let O=new Id({filename:R.fileName,sheets:[k],type:"json"});_.push(O)}}let L=new ic({spreadSheets:_});return M.clear(),L},C=_=>{w=_},I=!1;return j1(({markGatePending:_,resolveGateAs:M})=>{I=!1;let L=!1,E=T=>{if(L)return;L=!0,_();let{title:k,description:P,cancelButton:O,proceedButton:A}=T??{};e({title:k??u.alertTitle,description:P??u.alertDescription,textNegativeButton:A??u.alertContinueBtn,textPositiveButton:O??u.alertCancelBtn,type:"alert",onClickNegativeButton:()=>{M("proceed")},onClickPositiveButton:()=>{M("stay")},onCloseModal:()=>{M("stay")},customIcon:c()})},R=T=>{if(L)return;L=!0;let{closeButton:k,description:P,title:O}=T??{};M("stay"),e({title:O??u.blockTitle,description:P??u.blockDescription,textNegativeButton:k??u.blockCloseBtn,isShowPositiveButton:!1,type:"block",onClickNegativeButton:()=>{},onCloseModal:()=>{},customIcon:d()})};return t?.uploadStep?.({parsedData:g,rawData:b,updateData:C,alert:E,block:R})}).then(async _=>_==="stay"||!w?{isBlock:_==="stay",developerStay:I}:{isBlock:!1,developerStay:!1,spreadSheetList:await y()})},onMappingStep:({data:g,dataModels:b,columns:w,matching:y,baseColumns:C,goBack:I,reviewLocationState:S,ignoreAlert:_,invokeFromMappingStep:M=!1})=>{let L,E=[],R=[],T=[],k=B=>{L=B},P=({columns:B})=>{if(L){if(!Sq(L)||L.some(j=>!Iq(j)))throw new Error("1000")}else return{values:null,dataInfos:null};return kL(B,L)},O=()=>{if(E.length===0&&R.length===0&&T.length===0)return{updatedDataModels:null,updatedColumns:null};let B=[...b],j=[...w];return R.forEach(H=>{if(!j.some(G=>G.key===H)){console.warn(`tdm.removeColumn: Column with key "${H}" does not exist. The operation was ignored.`);return}j=j.filter(G=>G.key!==H),B=B.filter(G=>G.getKey()!==H)}),E.forEach(({column:H,index:K})=>{if(K!=null&&(!Number.isInteger(K)||K<0)){console.warn(`Your index at "${H.key}" is invalid, Please provide a non-negative, whole number format.`);return}let ae=new Ro([H],{checkValidation:!1,enableNodeProcessing:o.getEnableNodeProcessing(),enableReuseMapping:o.getEnableReuseMapping()}).getDataModels()[0];if(B.findIndex(V=>V.getKey()===ae.getKey())>=0){console.warn(`Column with key "${ae.getKey()}" already exists. To update an existing column, use tdm.updateColumn() instead.`);return}let Q=K!==void 0&&K>=0&&K<j.length?K:j.length;B.splice(Q,0,ae),j.splice(Q,0,H)}),T.forEach(({key:H,changes:K,options:G})=>{let ne=j.findIndex(V=>V.key===H);if(ne<0){console.warn(`tdm.updateColumn: Column with key "${H}" does not exist. The operation was ignored.`);return}if(G?.index!=null&&(!Number.isInteger(G.index)||G.index<0)){console.warn(`Your index at "${H}" is invalid, Please provide a non-negative, whole number format.`);return}let ae={...j[ne],...K,key:H},Q=new Ro([ae],{checkValidation:!1,enableNodeProcessing:o.getEnableNodeProcessing(),enableReuseMapping:o.getEnableReuseMapping()}).getDataModels()[0];if(G?.index!=null){j.splice(ne,1),B.splice(ne,1);let V=Math.max(0,Math.min(G.index,j.length));j.splice(V,0,ae),B.splice(V,0,Q)}else j[ne]=ae,B[ne]=Q}),{updatedColumns:j,updatedDataModels:B}},A={addColumn:(B,j)=>{E.push({column:B,index:j?.index})},removeColumn:B=>{R.push(B)},updateColumn:(B,j,H)=>{T.push({key:B,changes:j,options:H})}},D=()=>{let{updatedColumns:B,updatedDataModels:j}=O(),{values:H,dataInfos:K}=P({columns:B||w});return{updatedColumns:B,updatedDataModels:j,values:H,dataInfos:K}};return j1(({proceed:B,stay:j,resolveGateAs:H})=>{let K=!1,G=me=>{if(K||(K=!0,_))return;let{title:Q,description:V,cancelButton:U,proceedButton:le}=me??{};M||I(),H("stay"),setTimeout(()=>{e({title:Q??u.alertTitle,description:V??u.alertDescription,textNegativeButton:le??u.alertContinueBtn,textPositiveButton:U??u.alertCancelBtn,type:"alert",onClickNegativeButton:()=>{try{let{dataInfos:Z,updatedColumns:ie,updatedDataModels:J,values:ue}=D();a({pathname:Mr},{state:{...S,mappingStepResult:{mappingStepData:ue,mappingStepDataInfos:Z,mappingStepColumns:ie,mappingStepDataModels:J}}})}catch(Z){l(Z);return}},customIcon:c()})},50)},ne=me=>{if(K||(K=!0,_))return;let{title:Q,closeButton:V,description:U}=me??{};M||I(),H("stay"),setTimeout(()=>{e({title:Q??u.blockTitle,description:U??u.blockDescription,textNegativeButton:V??u.blockCloseBtn,isShowPositiveButton:!1,type:"block",onClickNegativeButton:()=>{},customIcon:d()})},50)},ae=me=>{!_&&!M&&!me?.rerunHandler&&I(),j(me)};return t?.mappingStep?.({alert:G,block:ne,updateData:k,tdm:A,logs:Qd({baseColumns:C,dataModels:b,featureWhiteList:o,matching:y}),data:g,proceed:B,stay:ae})}).then(B=>({isCalledAlertOrBlock:B==="stay",handleUpdatedColumnsAndData:D}))},onHeaderStep:({data:g,onConfirmBlock:b,onProceedAlert:w,onHeaderResultIsPromise:y})=>{let C,I=L=>{C=L},S=async()=>{if(!C)return;let L=new Map;g.forEach(O=>{let A=PC(O.fileName,O.sheetName);L.set(A,O.headerRowIndexes||[])});let E=[],R=pn({workersBaseUrl:s??""});if(await R.init(),!C[0]?.fileName||!C[0].data){let O;try{O=await R.jsonParser(JSON.stringify(C),{hasDateType:!1})}catch{throw R.clear(),new Error("1000")}let A=new ds({data:O,name:"Sheet"}),D=g[0]?.headerRowIndexes||[],N=C?.[0]?.headerRowIndexes;OL(A,D,N);let B=new Id({filename:"SpreadSheet",sheets:[A],type:"json"});E.push(B)}else{if(!TL(C))throw new Error("1000");for(let O=0;O<C.length&&!(!i&&O>0);++O){let A=C[O],D=Array.isArray(A.data)&&Array.isArray(A.data[0]),N;if(D)N=A.data;else try{N=await R.jsonParser(JSON.stringify(A.data),{hasDateType:!1})}catch{throw R.clear(),new Error("1000")}let B=new ds({data:N,name:A.sheetName??A.fileName}),j=bq(L,A.fileName,A.sheetName),H=A.headerRowIndexes;OL(B,j,H);let K=new Id({filename:A.fileName,sheets:[B],type:"json"});E.push(K)}}let T=new ic({spreadSheets:E});if(T.selectAllSheets(!0),R.clear(),T.getSelectedSheets().every(O=>O.getData().length===0))throw new Error("1000");return T},_=!1;return j1(({proceed:L,stay:E,markGatePending:R,resolveGateAs:T})=>{_=!1;let k=!1,P=N=>{_=!0,E(N)},O=N=>{if(k)return;k=!0,R();let{title:B,description:j,cancelButton:H,proceedButton:K}=N??{};setTimeout(()=>{e({title:B??u.alertTitle,description:j??u.alertDescription,textNegativeButton:K??u.alertContinueBtn,textPositiveButton:H??u.alertCancelBtn,type:"alert",onClickNegativeButton:()=>{T("proceed"),w?.()},onClickPositiveButton:()=>{T("stay"),b?.()},onCloseModal:()=>{T("stay"),b?.()},customIcon:c()})},50)},A=N=>{if(k)return;k=!0;let{closeButton:B,description:j,title:H}=N??{};T("stay"),setTimeout(()=>{e({title:H??u.blockTitle,description:j??u.blockDescription,textNegativeButton:B??u.blockCloseBtn,isShowPositiveButton:!1,type:"block",onClickNegativeButton:()=>{b?.()},onCloseModal:()=>{b?.()},customIcon:d()})},50)},D=t?.headerStep?.({data:g,alert:O,block:A,updateData:I,proceed:L,stay:P});return pRe(D)&&y?.(),D}).then(async L=>({isBlock:L==="stay",isCalledAlertOrBlock:L==="stay",developerStay:_,handleUpdatedData:S}))},onReviewStep:({values:g,columns:b,errors:w,dataInfos:y,baseColumns:C,logs:I})=>{let S,_=()=>{let T=[];for(let k=0;k<g.length;++k){let P=g[k],O={},A=b.filter(D=>!D.hidden);for(let D=0;D<b.length;++D){let N=b[D],B=A.findIndex(G=>N.key===G.key);O[N.key]={value:P[N.key]??null};let j=[];j=[...B>-1?(w[k]??[]).filter(G=>G&&G.colIndex===B).map(G=>({level:"error",message:Ai.getValidateMessage(n,{validate:G.validate,colIndex:D,validateMsg:G?.validateMsg,operator:G?.operator,compareValue:G?.compareValue},b,C)})):[]];let K=B>-1?(y[k]??[]).filter(G=>G.colIndex===B).map(G=>({message:G.popover.message,level:G.popover.level})):[];j=[...j,...K],O[N.key].info=j.length>0?j:void 0}T.push(O)}return T},M=T=>{S=T},L=()=>{if(S){if(!Sq(S)||S.some(T=>!Iq(T)))throw new Error("1000")}else return;return kL(b,S)},E=_();return j1(({proceed:T,stay:k,resolveGateAs:P})=>{let O=!1,A=D=>{if(O)return;O=!0;let{closeButton:N,description:B,title:j}=D??{};P("stay"),e({title:j??u.blockTitle,description:B??u.blockDescription,textNegativeButton:N??u.blockCloseBtn,isShowPositiveButton:!1,type:"block",onClickNegativeButton:()=>{},onCloseModal:()=>{},customIcon:d()})};return t?.reviewStep?.({block:A,data:E,logs:I,updateData:M,proceed:T,stay:k})}).then(T=>{let k=T==="stay",P=L();return{isBlock:k,results:P}})},showErrorModal:l,defaultPopupMessages:u,getBlockCustomIcon:d}};var mRe=t=>{let e=t.matchedDataModel?.dataModel,r=e?.getType(),o=e?.getInputFormat();return Aw(r)?t.sheetColumn.getParsedRowsForInputFormat(o)??t.sheetColumn.getRowsForDateInputFormatParse():t.sheetColumn.getRows()},DC=t=>{let e=[];for(let r=0;r<t.length;++r){let o=t[r],a=o.sheetColumn.toJSON();a.rows=mRe(o);let n=o.matchedDataModel;e.push({sheetColumn:a,matchedDataModel:n})}return e};import{isArray as hRe,isBoolean as gRe,isNil as vRe,isObject as bRe}from"lodash";var DL=class{constructor(){this.parse=(e,r)=>vRe(r)?null:hRe(r)||bRe(r)||gRe(r)?r:ur(r)===null?null:this.valueParser(r)}},AC=DL;var AL=class extends AC{constructor(){super(...arguments);this.valueParser=r=>{let o=Number(r);return isNaN(o)?ur(r):o}}},Mq=AL;var NL=class extends AC{constructor(){super(...arguments);this.valueParser=r=>{let o=`${r}`.replace(",","."),a=lt.convertStringToNumber(o,{format:"us"});return a===null?ur(`${r}`):Number(a)}}},Eq=NL;import{isArray as wRe,isBoolean as xRe,isNil as yRe,isObject as CRe}from"lodash";var FL=class{constructor(){this.parse=(e,r)=>yRe(r)?null:wRe(r)||CRe(r)||xRe(r)?r:ur(r)}},Lq=FL;import{isArray as SRe,isBoolean as IRe,isNil as _Re,isObject as MRe}from"lodash";var BL=class{constructor(){this.parse=(e,r)=>{if(_Re(r))return null;if(SRe(r)||MRe(r)||IRe(r))return r;if(ur(r)===null)return null;let o=`${r}`.replace(",","."),a=lt.convertStringToNumber(o,{format:"us",adornment:"percentage"});return a===null?ur(r):Number(a)}}},Rq=BL;import{isNil as ERe}from"lodash";var HL=class{constructor(){this.parse=(e,r)=>{if(ERe(r))return null;if(typeof r=="number"){let o=`${r}`;return ur(/[eE]/.test(o)?lt.expandScientificNotation(o):o)}return ur(r)}}},Tq=HL;import{isArray as kq,isBoolean as Oq,isNil as Pq,isObject as Dq}from"lodash";var VL=class{constructor(){this.parseSingle=(e,r)=>Pq(r)||Dq(r)||kq(r)?null:Oq(r)?JSON.stringify(r):nn({value:r,dataModel:e,isTrim:!0});this.parseMultiple=(e,r)=>kq(r)?r.map(o=>nn({value:o,dataModel:e,isTrim:!0})):Pq(r)||Dq(r)||r===""?null:Oq(r)?[JSON.stringify(r)]:[nn({value:r,dataModel:e,isTrim:!0})];this.parse=(e,r)=>e.getIsMultiSelection()?this.parseMultiple(e,r):this.parseSingle(e,r)}},Aq=VL;var LRe=new Mq,RRe=new Eq,TRe=new Lq,kRe=new Rq,ORe=new Tq,PRe=new Aq,$L=class{static{this.parse=(e,r)=>{let o;switch(e.getType()){case"int":o=LRe;break;case"float":o=RRe;break;case"currency_eur":case"currency_usd":o=TRe;break;case"percentage":o=kRe;break;case"single-select":case"currency_code":case"country_code_alpha_2":case"country_code_alpha_3":o=PRe;break;default:o=ORe}return o.parse(e,r)}}},Rm=$L;var DRe=t=>{if(!t||typeof t!="string")return"";let e=document.createElement("div");e.innerHTML=t;let r=["a","b","i","u","p","strong","em","br","span","div","ul","ol","li","h1","h2","h3","h4","h5","h6"],o={a:["href","target","rel"],span:["style"],div:["style"],p:["style"],strong:["style"],em:["style"],b:["style"],i:["style"],u:["style"]},a=i=>{if(i.nodeType===Node.TEXT_NODE)return i.cloneNode(!0);if(i.nodeType!==Node.ELEMENT_NODE)return null;let s=i,l=s.tagName.toLowerCase();if(!r.includes(l))return document.createTextNode(s.textContent||"");let u=document.createElement(l),c=o[l]||[];if(Array.from(s.attributes).forEach(d=>{if(c.includes(d.name)){if(d.name==="href"){let f=d.value.trim();try{let m=new URL(f,window.location.href).protocol.toLowerCase();if(!["http:","https:","mailto:"].includes(m))return}catch{let p=f.toLowerCase();if(p.includes("javascript:")||p.includes("data:")||p.includes("vbscript:")||p.includes("file:"))return}}u.setAttribute(d.name,d.value)}}),l==="a"){u.hasAttribute("target")||u.setAttribute("target","_blank");let d=u.getAttribute("rel")||"",f=new Set(d.split(/\s+/).filter(Boolean));f.add("noopener"),f.add("noreferrer"),u.setAttribute("rel",Array.from(f).join(" "))}return Array.from(i.childNodes).forEach(d=>{let f=a(d);f&&u.appendChild(f)}),u},n=document.createElement("div");return Array.from(e.childNodes).forEach(i=>{let s=a(i);s&&n.appendChild(s)}),n.innerHTML},ARe=t=>!t||typeof t!="string"?!1:/<[^>]*>/g.test(t),NC=t=>ARe(t)?{isHtml:!0,content:DRe(t)}:{isHtml:!1,content:t};var Nq=(t,e)=>{if(e.getType()!=="date")return ra.parse(t,{dataModel:e});if(Rp(t))return null;let r=e.getInputFormat();return $l(r)?ra.parse(t,{dataModel:e,skipDeclaredInputFormatNormalization:!0}):AD(t,e.getOutputFormat())};var UL=t=>new Promise(e=>{setTimeout(e,t)}),Fq=t=>{let e=[];for(let r=0;r<t.length;++r){let o=[];if(t[r].isCategoryType())for(let a=0;a<t[r].getOptions().length;a++)o.push({label:t[r].getOptions()[a].label,value:t[r].getOptions()[a].value});else t[r].getType()==="boolean"&&(o=bo.getInstance().getOptionsForReviewEntries().map(a=>({...a,value:`${a.value}`})));e.push(o)}return e},Bq=(t,e,r,o)=>{let a=r[t];if(!a||a.length<=0)return e;let n=`${e}`?.toLowerCase()?.trim();if(o==="both"){let i=[];for(let s=0;s<a.length;++s){if(a[s].value?.toLowerCase()?.trim()===n)return a[s].value;a[s]?.label?.toLowerCase()?.trim()===n&&i.push(a[s].value)}return i[0]??e}for(let i=0;i<a.length;++i)if(o==="label"?a[i].value?.toLowerCase()?.trim()===n:a[i].label?.toLowerCase()?.trim()===n)return a[i][o];return e};function FC(t,e,r){return Aw(t)?typeof e=="boolean"?!e:e.needsDateFormatParse(r):!1}var Tm=class{constructor(e){this.PROBE_ROWS_COUNT=25;this.MAX_ITERATIONS=6;this.totalEuFormatsCount=0;this.totalUsFormatsCount=0;this.matching=[];this.probeTypes=["float","currency_eur","currency_usd","int","percentage"];this.matching=e}detect(){let e=this.getColumnsNumberFormat(),r="eu";return this.totalUsFormatsCount>this.totalEuFormatsCount?r="us":r="eu",{global:r,columns:e}}getColumnsNumberFormat(){let e=[];for(let r=0;r<this.matching.length;r++){let o=this.matching[r].matchedDataModel?.dataModel?.getType();if(!o||!this.probeTypes.includes(o))continue;let a,n=0,i=1,s=this.matching[r].sheetColumn.getColumnKey(),l=this.matching[r].sheetColumn.getRows();for(;!a&&i<=this.MAX_ITERATIONS;){let u=l.slice(n,n+this.PROBE_ROWS_COUNT);if(u.length===0)break;let c=this.detectNumberFormat(u);if(c!==void 0){a=c;break}n+=this.PROBE_ROWS_COUNT,i+=1}e.push({column:s,numberFormat:a})}return e}detectNumberFormat(e){let r=0,o=0;for(let a=0;a<e.length;a++){let n=e[a];if(typeof n!="string")continue;let i=lt.detectNumberFormat(n,{resolveUncertainty:!1});i==="eu"&&(r++,this.totalEuFormatsCount++),i==="us"&&(o++,this.totalUsFormatsCount++)}if(!(o===0&&r===0))return o>r?"us":"eu"}};var Fi=({workersBaseUrl:t})=>{let e=t?cn(t,Si.MATCHING):"",{init:r,getRemote:o,clear:a}=Ci({hostWorkerUrl:e,workerFile:()=>new Worker(new URL("workers/matchValues/index.js",import.meta.url),{type:"module"})});return{init:r,clear:a,getValues:(...d)=>{let f=o();if(f)return f.getValues(...d);let p=cA(...d);return Promise.resolve(p)},addToAllRows:(...d)=>{let f=o();return f?f.addToAllRows(...d):nA(...d)},joinWithoutColumns:(...d)=>{let f=o();return f?f.joinWithoutColumns(...d):iA(...d)},joinOnColumns:(...d)=>{let f=o();return f?f.joinOnColumns(...d):sA(...d)},appendToColumns:(...d)=>{let f=o();return f?f.appendToColumns(...d):lA(...d)},countMatching:(...d)=>{let f=o();return f?f.countMatching(...d):uA(...d)}}};var NRe=t=>t.find(e=>e.sheetColumn.getType()===1)?.matchedDataModel?.dataModel,FRe=({dataModels:t,onlyMappedColumns:e,matchedDataModelKeys:r,joinDataModel:o})=>{let a=t;return e&&(a=a.filter(n=>!!n&&r.includes(n.getKey()))??[]),o&&(a=[o,...a.filter(n=>n.getKey()!==o.getKey())]),a},BRe=t=>{let e={};for(let r=0;r<t.length;r++){let o=t[r];e[o.getKey()]=o}return r=>e[r]};async function Hq({dataModelSheetMatching:t,columns:e,dataModels:r,spreadSheetNavigate:o,workersBaseUrl:a,onlyMappedColumns:n}){let i=t.getMatching(),s=t.getMatchedDataModelKeys(),l=NRe(i),u=pn({workersBaseUrl:a}),c=Fi({workersBaseUrl:a});await u.init(),await c.init();try{for(let g=0;g<i.length;g++){let b=i[g],w=b.matchedDataModel?.dataModel,y=w?.getType(),C=w?.getInputFormat()??void 0,I=w?.getKey()??b.sheetColumn.getColumnKey();if(FC(y,b.sheetColumn,C)){let _=b.sheetColumn.getRowsForDateInputFormatParse(),M=await u.parseDateFormat(_,C)||[];$l(C)&&Fw({columnKey:I,sourceRows:_,inputFormat:C}),b.sheetColumn.applyDateInputFormatParse(M,C)}}let d={global:"eu",columns:[]};if(o){d=new Tm(i).detect();let b=o.getSpreadSheetList().getSelectedSpreadSheets();b[b.length-1].setNumberFormat(d)}let f=FRe({dataModels:r,onlyMappedColumns:n,matchedDataModelKeys:s,joinDataModel:l}),p=await c.getValues({matching:DC(i),detectedNumberFormats:d,columns:e}),m=BRe(f),h=[];for(let g=0;g<p.length;++g){let b=p[g],w=Object.keys(b),y={};for(let C=0;C<w.length;++C){let I=w[C],S=m(I);y[I]=S?Rm.parse(S,p[g][I]):p[g][I]}h[g]=y}return h}finally{u.clear(),c.clear()}}var URe=({dataModelSheetMatching:t,dataModelSheetMatcher:e,setShowFieldRequired:r,autoMatchingChecksum:o,matchingByAutoMatch:a,initialDataModelSheetMatching:n})=>{let i=t.getDataModels(),s=Ur(),{state:l}=Vt(),{matchingStrategy:u,abort:c}=_o(),d=l,{showConfirmModal:f,isOpen:p}=Tt(),{t:m}=q(),{embedUploadArea:h=!1,mappingViewMode:g,columns:b,workersBaseUrl:w}=be(),{cancel:y}=Cr(),{scrollToTop:C}=yc(),{modal:I}=Qe(),{getHasSheetSelectionPage:S,getHasJoinColumnPage:_}=Di(),{getColumnsAndDataModels:M}=OC(),{licenseKey:L,settings:E}=gt(),{isHeaderSkipEnabled:R,resolvedSkipConfig:T}=co(),{featureWhiteList:k}=rr(),{onMappingStep:P,showErrorModal:O}=Yn(),[A,D]=$Re(!1),N=VRe(()=>{let V={matching:[]};return g==="targetColumns"?t.getDataModels().forEach(U=>{let le=t.getMatchingByDataModel(U);V.matching.push({sheetColumn:t.getMatchingByDataModel(U)?.sheetColumn,matchedDataModel:le?.matchedDataModel??{dataModel:U}})}):t.getSheets().forEach(U=>{U.getColumns().sort(RL).forEach(le=>{V.matching.push({sheetColumn:le,matchedDataModel:t.getMatchingBySheetColumn(le)?.matchedDataModel})})}),V},[]),B=()=>{let V=d.spreadSheetNavigate;if(V){if(V.goToLastSpreadSheet(),V.goToLastSheet(),_(V.getSpreadSheetList())){s({pathname:Go},{state:{spreadSheetNavigate:V,hasBackStep:!0,dynamicUploadStart:d?.dynamicUploadStart,processingContextualBefore:!0}});return}R&&!T.header.showInStepper?S(V.getSpreadSheetList())?s({pathname:Xr},{state:{spreadSheetList:V.getSpreadSheetList(),hasBackStep:!0,dynamicUploadStart:d?.dynamicUploadStart,oldSelectedSingleSheetWithoutModified:d?.oldSelectedSingleSheetWithoutModified,processingContextualBefore:!0}}):h||!I?y():(y(!1),s({pathname:yr})):(V.setUpdatedSpreadSheetList(V.getOriginalSpreadSheetList()),s({pathname:gr},{state:{spreadSheetNavigate:V,hasBackStep:!0,dynamicUploadStart:d?.dynamicUploadStart,processingContextualBefore:!0}}))}},j=()=>{u?.clearData(L,i),c()},H=()=>{let V=d.spreadSheetNavigate;d?.dynamicUploadStart===jt?f({isShowIcon:!0,title:m("txt_confirm_title"),description:m("txt_go_back_dynamic_import_title"),textNegativeButton:m("txt_confirm_leave_confirm_btn"),textPositiveButton:m("txt_confirm_leave_cancel_btn"),onClickNegativeButton:()=>{j(),y()}}):f(V?{isShowIcon:!0,title:m("txt_confirm_title"),description:m("txt_back_page_dialog"),textNegativeButton:m("txt_go_back"),textPositiveButton:m("txt_cancel"),onClickNegativeButton:()=>{j(),C(),B(),r(!1)}}:{isShowIcon:!0,title:m("txt_confirm_title"),description:m("txt_back_page_dialog"),textNegativeButton:m("txt_go_back"),textPositiveButton:m("txt_cancel"),onClickNegativeButton:()=>{j(),y()}})},K=(V,U)=>{if(!U)return;let Z=V?.matchedDataModel?.dataModel?.getPreserveUnmappedOptions?.();if(Z==="optional-off"||Z==="optional-on")return V?.preserveUnmapped??V?.matchedDataModel?.preserveUnmapped},G=async V=>{let U=[];t.getSheets().forEach(ue=>{ue.getColumns().sort(RL).forEach(se=>{let ee=V.matching.find(F=>F.sheetColumn?.equal(se)),fe=ee?.matchedDataModel?.dataModel?.isDropdown();U.push({sheetColumn:se,matchedDataModel:{dataModel:ee?.matchedDataModel?.dataModel,matchedOptions:fe?ee?.matchedDataModel?.matchedOptions:void 0,preserveUnmapped:K(ee,fe)}})})}),t.setDataModelSheetMatch(U);let le=d.spreadSheetNavigate,{reviewEntriesColumns:Z,reviewEntriesDataModels:ie,notMatchedDataModel:J}=M(t,U,le?le.getSpreadSheetList().getSelectedSheets():[]);if(J.length>0)f({isShowIcon:!0,title:m("txt_match_column_required"),description:m("txt_dialog_un_matched",{unMatched:`<b>${J.map(ue=>ue.getLabel()).join(", ")}</b>`}),textNegativeButton:m("txt_submit_understand"),isShowPositiveButton:!1,onClickNegativeButton:()=>{r(!0)}});else{r(!1);let ue={dataModelSheetMatching:t,dataModelSheetMatcher:e,spreadSheetNavigate:le,columns:Z,dataModels:ie,dynamicUploadStart:d?.dynamicUploadStart,oldSelectedSingleSheetWithoutModified:d.oldSelectedSingleSheetWithoutModified,autoMatchingChecksum:o,matchingByAutoMatch:a,initialDataModelSheetMatching:n,resolvedSkipConfig:{...T,mapping:{...T.mapping,showInStepper:!0}},fromPreviousStepNavigation:d?.fromPreviousStepNavigation,hasBackStep:d?.hasBackStep},se,ee=!1;if(k.getStepHandler()){D(!0);try{let fe=await Hq({dataModelSheetMatching:t,columns:Z,dataModels:ie,spreadSheetNavigate:le,workersBaseUrl:w??"",onlyMappedColumns:E.onlyMappedColumns}),F=await P({data:fe,dataModels:ie,columns:Z,baseColumns:b,matching:t.getMatching(),goBack:()=>{},reviewLocationState:ue,ignoreAlert:!1,invokeFromMappingStep:!0});if(F?.isCalledAlertOrBlock)return;let{dataInfos:W,updatedColumns:z,updatedDataModels:pe,values:te}=F.handleUpdatedColumnsAndData();se={mappingStepData:te,mappingStepDataInfos:W,mappingStepColumns:z,mappingStepDataModels:pe},ee=!0}catch(fe){O(fe);return}finally{D(!1)}}c(),s({pathname:Mr},{state:{...ue,mappingStepResult:se,mappingStepGated:ee}})}},ne=Ti({defaultValues:N,reValidateMode:"onBlur"}),{handleSubmit:ae,watch:me}=ne,Q=me();return HRe(()=>{ne.reset(N)},[N]),{dataModels:i,initialValues:N,onBackClick:H,onSubmit:G,isModalClose:p,form:ne,handleSubmitForm:ae,values:Q,gatePending:A}},Vq=URe;import{useMemo as $q}from"react";var jRe=({values:t})=>{let e=Vr(),r=$q(()=>e.getDataModels().filter(a=>a.hasMappingValidation()),[e]),o=$q(()=>t.matching.map(a=>a.matchedDataModel?.dataModel).filter(a=>!!a),[t]);return{footerDataModels:r,matchedDataModels:o}},Uq=jRe;import{useLayoutEffect as lG,useRef as vTe,useState as bTe}from"react";import{jsx as jL,jsxs as zRe}from"react/jsx-runtime";var WRe=({title:t,titleId:e,...r})=>zRe("svg",{width:16,height:16,viewBox:"0 0 16 16",className:"color",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...r,children:[t?jL("title",{id:e,children:t}):null,jL("path",{d:"M12.6667 8H3.33334",stroke:"currentColor",className:"color",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),jL("path",{d:"M8 12.6668L3.33334 8.00016L8 3.3335",className:"color",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]});var jq=WRe;import{jsx as Wq,jsxs as GRe}from"react/jsx-runtime";var qRe=({onClick:t,disabled:e,className:r,label:o,hideIcon:a,dataTestId:n})=>{let{t:i}=q();return GRe(He,{variant:"secondary",onClick:t,disabled:e,className:r,"data-testid":n,children:[!a&&Wq("div",{className:"mr-2 flex items-center",children:Wq(jq,{})}),i(o??"txt_back")]})},BC=qRe;import{forwardRef as fTe,useEffect as KL,useImperativeHandle as pTe,useMemo as mTe,useRef as iG}from"react";import{useLayoutEffect as zq,useEffect as KRe,useRef as qq,useState as Gq}from"react";var HC=31,YRe=()=>{let[t,e]=Gq(!1),r=qq(null),o=qq(null),[a,n]=Gq(!1);return zq(()=>{o.current&&(t?o.current.style.height="auto":o.current.style.height=`${HC}px`)},[t]),KRe(()=>{a&&e(!1)},[a]),zq(()=>{let i=()=>{(r.current?.offsetHeight??0)>HC?n(!0):n(!1)};i(),window.addEventListener("resize",i);let s=r.current,l;return s&&(l=new ResizeObserver(i),l.observe(s)),()=>{window.removeEventListener("resize",i),l?.disconnect()}},[]),{isShow:t,setIsShow:e,refContent:r,isAvailableCollapse:a,refWrapper:o}},Kq=YRe;import{jsx as Yq}from"react/jsx-runtime";var XRe=({children:t,className:e})=>Yq("div",{className:x("bg-salmon-100 text-xss text-salmon-500 inline-flex h-5 w-5 items-center justify-center rounded-full",e),children:Yq("span",{children:t})}),Xq=XRe;import{jsx as Zq,jsxs as JRe}from"react/jsx-runtime";var ZRe=({title:t,titleId:e,...r})=>JRe("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...r,children:[t?Zq("title",{id:e,children:t}):null,Zq("path",{d:"M12 10L8 6L4 10",stroke:"#88959C",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]});var Jq=ZRe;import{jsx as WL,jsxs as eTe}from"react/jsx-runtime";var QRe=({onClick:t,requiredCount:e,isShow:r,dataTestId:o})=>{let{t:a}=q(),n=X(),i=e>0;return eTe("button",{type:"button",className:x("rounded-t-medium relative top-px flex items-center bg-white px-4",i?"py-1":"py-1.5",v({"&&":n.getRequiredColumnsTheme().showMore.root})),onClick:t,"data-testid":o,children:[WL("span",{className:x("text-gray-510 mr-2 text-xs tracking-wide",v({"&&":n.getRequiredColumnsTheme().showMore.text})),children:a(r?"txt_show_less":"txt_show_more")}),i?WL(Xq,{className:x(v({"&&":n.getRequiredColumnsTheme().showMore.badge})),children:e}):null,WL(Jq,{className:x("ml-2",r?"":"rotate-180 transform",v({"&& path":n.getRequiredColumnsTheme().showMore.icon}))})]})},Qq=QRe;import{useMemo as GL}from"react";import{useState as tTe}from"react";import{Fragment as oTe,jsx as eG}from"react/jsx-runtime";var zL=t=>{let e=t?.trim();return e||void 0},rTe=({iconUrl:t,fallback:e})=>{let[r,o]=tTe(!1),a=zL(t);return!a||r?eG(oTe,{children:e}):eG("img",{src:a,alt:"",width:16,height:17,className:"h-[17px] w-4 object-contain",onError:()=>o(!0)})},qL=rTe;var aTe=({dataModels:t,matchedDataModels:e})=>{let r=X(),o=zL(r.getRequiredColumnsTheme().hasMatchIconUrl),a=GL(()=>e.map(u=>u.getKey()),[e]),{isColumnRequired:n}=Mi(),i=GL(()=>t.filter(u=>u.hasMappingValidation()).map(u=>({key:u.getKey(),label:u.getLabel(),mappingValidation:u.getMappingValidation()})),[t]),s=GL(()=>{let u=[];return t.forEach(c=>{let d=c.getKey(),f=a.includes(d),p=n(d),m=f&&i.length>0&&nm(i,a.filter(b=>b!==d)).includes(d);if(!(p||m&&o))return;let g=c.getMappingValidation();u.push({label:c.getLabel(),matched:f,errorMessage:g?.errorMessage})}),u},[t,a,o,n,i]),l=s.reduce((u,c)=>c.matched?u:u+1,0);return{columns:s,requiredCount:l}},tG=aTe;import{createPortal as hTe}from"react-dom";import{jsx as rG,jsxs as iTe}from"react/jsx-runtime";var nTe=({title:t,titleId:e,...r})=>iTe("svg",{width:16,height:17,viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...r,children:[t?rG("title",{id:e,children:t}):null,rG("path",{d:"M13.3327 4.5L5.99935 11.8333L2.66602 8.5",stroke:"#10B981",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]});var oG=nTe;import{jsx as km,jsxs as lTe}from"react/jsx-runtime";var sTe=({title:t,titleId:e,...r})=>lTe("svg",{width:16,height:17,viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...r,children:[t?km("title",{id:e,children:t}):null,km("g",{clipPath:"url(#clip0_1440_8076)",children:km("path",{d:"M8.00065 15.1668C11.6825 15.1668 14.6673 12.1821 14.6673 8.50016C14.6673 4.81826 11.6825 1.8335 8.00065 1.8335C4.31875 1.8335 1.33398 4.81826 1.33398 8.50016C1.33398 12.1821 4.31875 15.1668 8.00065 15.1668Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})}),km("defs",{children:km("clipPath",{id:"clip0_1440_8076",children:km("rect",{width:16,height:16,fill:"white",transform:"translate(0 0.5)"})})})]});var aG=sTe;import{useState as uTe}from"react";import{jsx as Cc,jsxs as dTe}from"react/jsx-runtime";var cTe=({label:t,matched:e,isError:r,errorMessage:o})=>{let a=X(),[n,i]=uTe(!1),s=a.getRequiredColumnsTheme(),l=s.errorPopover;return dTe("div",{className:"mr-5 mt-2 flex items-center whitespace-nowrap",children:[e?Cc(qL,{iconUrl:s.hasMatchIconUrl,fallback:Cc(oG,{className:v({"&& path":s.hasMatchIcon})})}):Cc(qL,{iconUrl:r?s.notMatchErrorIconUrl:s.notMatchIconUrl,fallback:Cc(aG,{className:r?x("text-red-510",v({"&& path":s.notMatchErrorIcon})):x("text-gray-510",v({"&& path":s.notMatchIcon}))})}),!e&&r&&o?Cc(ct,{isShow:n,direction:"top",flip:!0,offset:{mainAxis:8,crossAxis:0},message:Cc("div",{className:x("bg-salmon-500 border-salmon-500 rounded border px-3 py-2","w-max text-left text-xs text-white",v({"&&":l})),style:{maxWidth:300},children:o}),render:({setReferenceElement:u})=>Cc("span",{ref:u,className:x("text-red-510 ml-2 text-sm",v({"&&":s.notMatchError})),onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),children:t})}):Cc("span",{className:x("ml-2 text-sm",e?"text-green-510":`${r?"text-red-510":"text-gray-510"}`,e?v({"&&":s.hasMatch}):r?v({"&&":s.notMatchError}):v({"&&":s.notMatch})),children:t})]})},nG=cTe;import{jsx as sl,jsxs as z1}from"react/jsx-runtime";var gTe=fTe(({className:t,wrapperClassName:e,dataModels:r,matchedDataModels:o,isShowFieldRequired:a,onIsAvailableCollapseChange:n,buttonWrapperClassName:i,onBackClick:s,onIsShowChange:l,onSubmitClick:u,isDisabledSubmitButton:c,isDisabledBackButton:d,nextLabel:f,backLabel:p,hideIcon:m,isModal:h,containerId:g,hideColumns:b,positiveDataTestId:w,negativeDataTestId:y,positiveLoading:C=!1},I)=>{let{refWrapper:S,refContent:_,isAvailableCollapse:M,setIsShow:L,isShow:E}=Kq(),{columns:R,requiredCount:T}=tG({dataModels:r,matchedDataModels:o}),k=X(),{t:P}=q(),O=iG(null),A=iG(null);pTe(I,()=>({setIsShowBadge:N=>{L(N)},getIsAvailableCollapse:()=>M})),KL(()=>{l?.(E)},[l,E]),KL(()=>{n(M)},[M,n]);let D=mTe(()=>sl("div",{id:g,ref:O,className:t,children:z1("div",{className:x(e),children:[sl("div",{className:x("flex w-full justify-center"),children:M?sl(Qq,{isShow:E,requiredCount:T,onClick:()=>{L(N=>!N)},dataTestId:re.matchColumns.showMore}):null}),sl("div",{children:z1("div",{className:x("flex items-center justify-between px-3 py-5 lg:px-8",h?"rounded-b-lg":"",v({"&&":{paddingTop:19,minHeight:90}}),v({"&&":k.getFooterTheme().root}),v({backgroundColor:k.getGlobalTheme().getBackgroundColor()}),v`
405
405
  box-shadow: 0px -13px 50px rgba(17, 48, 68, 0.08);
406
406
  `),children:[b?sl("div",{}):z1("div",{className:"flex-grow",children:[R.length>0?z1("p",{className:x("text-color-primary text-left text-sm font-semibold",v({"&&":k.getRequiredColumnsTheme().title})),children:[P("txt_require_columns"),":"]}):null,sl("div",{ref:S,style:{height:HC},className:"overflow-hidden",children:sl("div",{className:"flex flex-wrap items-center",ref:_,children:R.map((N,B)=>sl(nG,{label:N.label,matched:N.matched,isError:a,errorMessage:N.errorMessage},`${N.label}${B}`))})})]}),z1("div",{className:x("flex h-full items-center justify-end space-x-4",R.length>0&&M?"mt-2":"",i),children:[sl(BC,{onClick:s,disabled:d,className:"h-10",label:p,hideIcon:m,dataTestId:y}),sl(He,{className:"h-10",type:"submit",onClick:u,disabled:c,loading:C,"data-testid":w,children:f??P("txt_confirm")})]})]})})]})}),[p,i,t,R,g,m,M,d,c,E,a,h,f,s,u,_,S,T,L,P,k,e,b,w,y,C]);return KL(()=>{A.current=O.current?.closest("#nuvo-app-root-element")},[]),A.current&&!h?hTe(D,A.current):D}),sG=gTe;import{jsx as xTe}from"react/jsx-runtime";var wTe=({onBackClick:t,isShowFieldRequired:e,values:r,isModalClose:o,onIsAvailableCollapseChange:a,onIsShowChange:n,onSubmitClick:i,gatePending:s=!1})=>{let{footerDataModels:l,matchedDataModels:u}=Uq({values:r}),{modal:c}=Qe(),d="match-form-footer absolute bottom-0 left-0 right-0 z-20 absolute",f=c?"":"sticky bottom-0",[p,m]=bTe(0),h=vTe(null),{mappingViewMode:g}=be();return lG(()=>{let b=h.current?.getIsAvailableCollapse();e&&!o&&b&&h.current?.setIsShowBadge(!0)},[e,o]),lG(()=>{let b=mq();c||m(o?b:0)},[c,o]),xTe(sG,{containerId:ot.MATCH_FORM_FOOTER,dataModels:l,isShowFieldRequired:e,matchedDataModels:u,onIsAvailableCollapseChange:a,buttonWrapperClassName:v`
407
407
  padding-right: ${p}px;
@@ -1417,7 +1417,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1417
1417
  ${f.getButtonTheme().exportExcel?.icon}
1418
1418
  `)}),i?"":d("txt_export_as_excel")]})})})}),u?zR("div",{className:x("z-103 rounded-medium border-gray-120 w-44 border bg-white",v`
1419
1419
  box-shadow: 0px 4px 16px 0px rgba(27, 80, 113, 0.08);
1420
- `,v({"&&":f.getButtonTheme().exportExcel?.dropdown?.root})),style:g,ref:h.setFloating,children:[Nc(WR,{dataTestId:re.review.exportAll,disabled:t,onClick:y,tooltipDisabledMessage:d("txt_unable_to_export"),className:x(v({"&&":f.getButtonTheme().exportExcel?.dropdown?.item,"&&&":t?f.getButtonTheme().exportExcel?.dropdown?.item?.[":disabled"]:""})),children:d("txt_export_all_rows")}),Nc(WR,{dataTestId:re.review.exportErrors,disabled:e,onClick:C,tooltipDisabledMessage:d("txt_unable_to_export"),className:x(v({"&&":f.getButtonTheme().exportExcel?.dropdown?.item,"&&&":e?f.getButtonTheme().exportExcel?.dropdown?.item?.[":disabled"]:""})),children:d("txt_export_error_rows")})]}):null]})},wQ=LAe;import{useCallback as bf,useEffect as KR,useLayoutEffect as DAe,useMemo as LQ,useRef as Fc,useState as du}from"react";var qR=class{constructor(e){this.cleaningAIServices=e}async getSuggestions(e,r,o){return await this.cleaningAIServices.getSuggestions(e,r,o)}groupSuggestions(e,r,o,a,n){let i=[...e];if(!r)return i;let s={};for(let u=0;u<o.length;u++)s[o[u].getKey()]=o[u].getLabel();let l={};for(let u=0;u<e.length;u++)l[e[u].column]=u;return r.forEach(u=>{for(let c in u.data){l[c]===void 0&&(l[c]=i.length);let d=l[c];i[d]===void 0&&(i[d]={column:c,columnLabel:s[c],suggestions:[]});let f=o.findIndex(g=>g.getKey()===c),p=`${u.rowIndex}_${f}`,m={id:p,rowIndex:u.rowIndex,colIndex:f,column:c,initRowIndex:u.rowIndex,initColIndex:f,value:u.data[c].value,suggestion:u.data[c].suggestion,isDisabled:o[f]?.isDisabled()};i[d].suggestions.push(m),a.current===null&&(a.current=[]),a.current.findIndex(g=>g.id===p)<0&&a.current.push({id:p,key:c,value:u.data[c].value,error_message:n[p]||"",suggested_value:u.data[c].suggestion,status:"ignored"})}}),i}},xQ=qR;import{firstValueFrom as OAe}from"rxjs";import TAe from"axios";import{Observable as kAe}from"rxjs";var XS=class{constructor(e,r={}){this.getHttpClient=()=>this.httpClient;this.httpClient=TAe.create(r),this.sendApiKey=e.sendApiKey}observableRequest(e){let r=this.httpClient.request(e);return new kAe(o=>{r.then(a=>{o.next(a.data)}).catch(a=>{o.error(a)}).finally(()=>{o.complete()})})}get(e,r,o){let a={method:"GET",url:e,params:r,...o};return this.observableRequest(a)}post(e,r,o={}){let a={method:"POST",url:e,data:r,...o};return this.observableRequest(a)}put(e,r,o={}){let a={method:"PUT",url:e,data:r,...o};return this.observableRequest(a)}patch(e,r,o={}){let a={method:"PATCH",url:e,data:r,...o};return this.observableRequest(a)}delete(e,r={}){let o={method:"DELETE",url:e,...r};return this.observableRequest(o)}};var GR=class extends XS{getSuggestions(e,r,o){let a={apikey:this.sendApiKey?"3n5E21bB0ZfpdrNOgWk8M3iDNkR1G3CB":void 0,Authorization:e};return OAe(this.post("/cleaning-assistant",o,{headers:a}))}},yQ=GR;function CQ(t,e){if(t===null||e===null)return!1;let r=t.getBoundingClientRect(),o=e.getBoundingClientRect();return!(r.right<o.left||r.left>o.right||r.bottom<o.top||r.top>o.bottom)}function ZS(t,e,r,o){if(!t||!e)return;let a=`${e.initRowIndex}_${e.initColIndex}`,n=t.findIndex(i=>i.id===a);n>=0&&(t[n].status=r,o&&(t[n]={...t[n],...o}))}var hl="rowIndex",SQ=[{label:hl,insertText:hl,api:"",type:"variable",key:hl}];var $t={KEY_IN_BRACKETS:`[^"'\\]]+`,KEY_IN_BRACKETS_OPTIONAL:`[^"'\\]]*`,WORD_BOUNDARY_START:"(?:^|[^@\\w])",WORD_BOUNDARY_END:"(?=[^@\\w]|$)",BRACKET_OPEN:`row\\[["']`,BRACKET_CLOSE:`["']\\]`,ROW_DOT:"row\\.",WORD:"\\w+",WORD_OPTIONAL:"\\w*",COLUMN_LABEL_OPTIONAL:"[^\\s,;()\\[\\]{}]*"},JS={bracketNotation:new RegExp(`${$t.WORD_BOUNDARY_START}${$t.BRACKET_OPEN}(${$t.KEY_IN_BRACKETS})${$t.BRACKET_CLOSE}$`),rowDotOnly:new RegExp(`${$t.WORD_BOUNDARY_START}(${$t.ROW_DOT}(${$t.WORD}))$`),delimiter:/[\s,;()[\]{}+\-*/=<>!&|]/,lastWord:new RegExp(`${$t.WORD_BOUNDARY_START}((?:${$t.BRACKET_OPEN}(${$t.KEY_IN_BRACKETS})${$t.BRACKET_CLOSE})|(?:${$t.ROW_DOT}(${$t.WORD}))|(${$t.WORD}))$`)},uu={bracketNotation:new RegExp(`${$t.BRACKET_OPEN}(${$t.KEY_IN_BRACKETS})${$t.BRACKET_CLOSE}`,"g"),dotNotation:new RegExp(`${$t.ROW_DOT}(${$t.WORD})`,"g"),standaloneWord:new RegExp(`${$t.WORD_BOUNDARY_START}(${$t.WORD})${$t.WORD_BOUNDARY_END}`,"g")},x0={bracketNotation:new RegExp(`${$t.WORD_BOUNDARY_START}(${$t.BRACKET_OPEN}(${$t.KEY_IN_BRACKETS})${$t.BRACKET_CLOSE})`,"g"),dotNotation:new RegExp(`${$t.WORD_BOUNDARY_START}(${$t.ROW_DOT}(${$t.WORD}))`,"g"),standaloneWord:new RegExp(`${$t.WORD_BOUNDARY_START}(${$t.WORD})${$t.WORD_BOUNDARY_END}`,"g"),incompleteBracket:new RegExp(`${$t.BRACKET_OPEN}(?:${$t.KEY_IN_BRACKETS})?$`)},QS={atSymbol:new RegExp(`@(${$t.COLUMN_LABEL_OPTIONAL})$`),rowDot:new RegExp(`${$t.ROW_DOT}(${$t.WORD_OPTIONAL})$`),rowBracket:new RegExp(`${$t.BRACKET_OPEN}(${$t.KEY_IN_BRACKETS_OPTIONAL})$`)},IQ=1e3;var y0=(t,e,r,o)=>{let a=t.getSettings().data;for(let i of e){let s=i[0],l=i[1],u=i[2],c=a[s];typeof c=="object"&&c!==null&&!Array.isArray(c)&&(c[l]=u)}t.loadData(a);let n=e.map((i,s)=>{let l=i[0],u=i[1],c=i[2],d=o?.[s]?.[2]??null;return[l,u,d,c]});t.runHooks("afterSetSourceDataAtCell",n,r)},_Q=(t,e,r)=>{let o=t.countSourceRows()-1,a=e.filter(n=>n[0]!==o);a.length>0&&y0(t,a,r)},cu=(t,e)=>t.filter(r=>r.key===e),MQ=(t,e,r,o=!1)=>{let a=x0.bracketNotation;a.lastIndex=0;let n;for(;(n=a.exec(t))!==null;){let l=n[1],u=n[2],c=n.index+(n[0].length-l.length),d=c+l.length;if(e>=c&&e<=d+1){let f=cu(r,u);if(f.length===1)return{fullMatch:l,key:u,startIndex:c,endIndex:d,label:f[0].label}}}let i=x0.dotNotation;for(i.lastIndex=0;(n=i.exec(t))!==null;){let l=n[1],u=n[2],c=n.index+(n[0].length-l.length),d=c+l.length;if(e>=c&&e<=d+1){let f=cu(r,u);if(f.length===1)return{fullMatch:l,key:u,startIndex:c,endIndex:d,label:f[0].label}}}if(!o)return null;let s=x0.standaloneWord;for(s.lastIndex=0;(n=s.exec(t))!==null;){let l=n[1],u=n.index+(n[0].length-l.length),c=u+l.length;if(e>=u&&e<=c+1&&t.charAt(u-1)!=="@"){let f=t.substring(0,u);if(x0.incompleteBracket.test(f))continue;let m=cu(r,l);if(m.length===1)return{fullMatch:l,key:l,startIndex:u,endIndex:c,label:m[0].label}}}return null},EQ=(t,e)=>{let r=t;return r=r.replace(uu.bracketNotation,(o,a)=>{let n=cu(e,a);return n.length===1?`@${n[0].label}`:o}),r=r.replace(uu.dotNotation,(o,a)=>{let n=cu(e,a);return n.length===1?`@${n[0].label}`:o}),r=r.replace(uu.standaloneWord,(o,a,n)=>{if(n>0&&t[n-1]==="@")return o;let i=cu(e,a);return i.length===1?`${o.charAt(0)===a.charAt(0)?"":o.charAt(0)}@${i[0].label}`:o}),r};var RQ=t=>{let{t:e}=q(),r=X(),o=Fc(!1),[a,n]=du(!1),[i,s]=du(!1),[l,u]=du([]),c=Fc([]),[d,f]=du(-1),[p,m]=du([]),[h,g]=du(!1),b=t.cleaningAssistantLogsRef,w=t.setTotalCleanings,y=Fc({}),C=Fc(t.dataModelRegistry.getDataModels()),I=Fc([]),S=Fc(""),[_,M]=du(!1),[L,E]=du(!1),R=Fc(void 0),T=Fc(0),[k,P]=du(!1);KR(()=>{if(k)return T.current>0?R.current=setInterval(()=>{T.current--,T.current===0&&(P(!1),clearInterval(T.current))},1e3):clearInterval(T.current),()=>{R.current!==void 0&&clearInterval(R.current)}},[k]);let O=bf(()=>{M(!1),C.current=t.dataModelRegistry.getDataModels();let Q=t.validator.getError(),V=[],U=[],le=5,Z=t.hotInstance.current?.hotInstance;if(!Z)return[];for(let ee=0;ee<Q.length;ee++){let fe=Q[ee]!==void 0&&Q[ee].every(z=>z===null);if(Q[ee]===void 0||fe){if(U.length===le)continue;let z=Z.getDataAtRow(ee),pe={};for(let te=0;te<z.length;te++){if(!C.current[te])continue;let ve=C.current[te].getKey();pe[ve]=z[te]}U.push(pe);continue}let F=Z?.getSourceDataAtRow(ee)??{};V.push({rowIndex:ee,data:{}});let W=V[V.length-1];for(let z of C.current){let pe=z.getKey();W.data[pe]={value:F[pe]}}for(let z of Q[ee]){if(!z||z.colIndex<0)continue;let pe=z.colIndex,te=C.current[pe]?.getKey();if(!te||!W.data[te])continue;let ve=Ai.getValidateMessage(e,z,t.dataModelRegistry.getColumns(),t.baseColumns),ce=`${ee}_${pe}`;y.current[ce]=ve,W.data[te].info=[{message:ve,level:"error"}]}}if(V.length===0)return[];let ie=C.current.map(ee=>({columnType:ee.getType(),key:ee.getKey(),validations:ee.getValidators().map(fe=>fe.serialize()),label:ee.getLabel(),description:ee.getDescription(),dropdownOptions:ee.isCategoryType()?ee.getOptions().map(fe=>({label:fe.label,value:fe.value,type:fe.type})):[],outputFormat:ee.getOutputFormat()})),J=0,ue=Math.min(500,1500),se=[];for(;V.length>0;){let ee=V.splice(0,ue);if(se.push({error_data:ee,data_model:ie,clean_data:U,session_id:t.sessionId,version:"4.8.0"}),J+=ee.length,J>=1500){M(!0);break}ue=Math.min(ue*2,2e3)}return se},[t,e]),A=()=>{m(Q=>Q.length===0?l[d]?.suggestions||[]:[])},D=Q=>{m(V=>{let U=[...V],le=V.findIndex(Z=>Q.suggestion===Z.suggestion);return le>=0?U.splice(le,1):U.push(Q),U})},N=LQ(()=>l.reduce((Q,V)=>Q+=V.suggestions.length,0),[l]),B=bf(()=>{n(!0)},[]),j=bf(()=>{n(!1)},[]);DAe(()=>{a&&!S.current&&setTimeout(()=>{let Q=document.querySelector(".nuvo_cleaning-assistant-popover .nuvo-popover__content");if(!Q)return;let V=window.getComputedStyle(Q),U=new WebKitCSSMatrix(V.transform);S.current=`translate(${U.m41}px, ${U.m42}px)`},100)},[a]);let H=LQ(()=>new xQ(new yQ({sendApiKey:!t.isSelfHosted},{baseURL:t.cleaningAPIUrl})),[t.cleaningAPIUrl,t.isSelfHosted]),K=bf(()=>{if(k)return Promise.resolve();let Q=O();return g(!1),s(!0),!Q||Q.length===0?(setTimeout(()=>{s(!1)},500),Promise.resolve()):(u([]),c.current=[],f(-1),m([]),new Promise(V=>{let le=Q.length,Z=0;function ie(J){J&&H.getSuggestions(t.licenseKey,t.origin,J).then(ue=>{ue.length>0&&(T.current=180,P(!0)),c.current=H.groupSuggestions(c.current,ue,C.current,b,y.current),u(c.current)}).catch(()=>{}).finally(()=>{if(Z++,Q.length>0){let ue=Q.shift();ie(ue)}else Z===le&&(b.current&&w(b.current.length),s(!1),V())})}for(let J=0;J<8;J++){let ue=Q.shift();ie(ue)}}))},[b,O,t.licenseKey,t.origin,k,H,w]),G=()=>{f(-1),m([])},ne=bf(Q=>{let V=t.hotInstance.current?.hotInstance;if(V)try{let U=V.toVisualRow(Q.rowIndex),le=V.toVisualColumn(Q.colIndex);V?.selectCell(U,le,void 0,void 0,!1,!0),V?.scrollViewportTo({row:U,col:le,horizontalSnap:"start",verticalSnap:"top"});let Z=V.getCell(U,le),ie=document.querySelector(".nuvo_cleaning-assistant-popover .nuvo-popover__content");if(Z&&ie&&(ie.style.transform=S.current,CQ(ie,Z))){let J=window.getComputedStyle(ie),ue=new WebKitCSSMatrix(J.transform),se=Z.getBoundingClientRect(),ee=ie.getBoundingClientRect(),fe=Math.abs(ue.m41-(ee.right-se.left));ie.style.transform=`translate(${fe}px, ${ue.m42}px)`}}catch{}},[t.hotInstance]),ae=bf((Q,V)=>{u(U=>{let le={};for(let J=0;J<Q.length;J++)le[Q[J].id]===void 0&&(le[Q[J].id]=!0);m(J=>J.filter(ue=>!le[ue.id]));let Z=[...U],ie=!1;for(let J=Z.length-1;J>=0;J--){let ue=[];for(let se=0;se<Z[J].suggestions.length;se++){let ee=Z[J].suggestions[se];le[ee.id]||ue.push(ee)}Z[J].suggestions=Z[J].suggestions.filter(se=>!le[se.id]),Z[J].suggestions.length===0&&(Z.splice(J,1),J===d&&(ie=!0))}return ie&&f(-1),c.current=Z,V&&V(),Z})},[d]),me=bf(Q=>{let V=t.hotInstance.current?.hotInstance;if(!V)return;function U(Z){return new Promise(ie=>{setTimeout(()=>{if(!V){ie();return}let J=[[Z.rowIndex,Z.column,Z.suggestion]],ue=[[Z.rowIndex,Z.column,Z.value??null]];y0(V,J,"CLEANING_ASSISTANT",ue),ZS(b.current,Z,"applied"),V?.render(),ie()})})}Q.length>1&&E(!0);let le=Q.map(Z=>U(Z));Promise.allSettled(le).then(()=>{ae(Q),V.render(),E(!1)})},[b,ae,t.hotInstance]);return KR(()=>{if(!t.cleaningAssistantEntryChangeObserverRef.current)return;let Q=t.cleaningAssistantEntryChangeObserverRef.current.subscribe(V=>{V.actionType!=="create"&&V.sourceCols.forEach(U=>{let le=C.current.findIndex(J=>J.getKey()===U),Z=`${V.rowIndex}_${le}`;for(let J=0;J<c.current.length;J++){let se=c.current[J].suggestions.find(fe=>fe.id===Z),ee=V.currentRowData[le];ZS(b.current,se,"changed",{change_value:ee})}c.current.findIndex(J=>J.suggestions.find(se=>se.id===Z)!==void 0)>=0&&ae([{id:Z}])})});return()=>{Q.unsubscribe()}},[b,ae,t.cleaningAssistantEntryChangeObserverRef]),KR(()=>{if(!t.cleaningAssistantRemoveRowObserverRef.current)return;let Q=t.cleaningAssistantRemoveRowObserverRef.current.subscribe(({type:V,rows:U})=>{let le=t.hotInstance.current?.hotInstance,Z=c.current;if(le){if(V==="before"){let ie=[];for(let J=0;J<Z.length;J++)for(let ue=0;ue<Z[J].suggestions.length;ue++){let se=Z[J].suggestions[ue],ee=0,fe="";for(let F=0;F<U.length;F++){let W=le.toPhysicalRow(U[F]);se.rowIndex>W?ee++:se.rowIndex===W&&(fe="d",ie.push(se))}se.rowIndex-=ee,se.id=`${se.rowIndex}_${se.colIndex}${fe}`}I.current=ie}if(V==="after"){let ie=[],J=t.validator.getError();for(let ue=0;ue<Z.length;ue++)for(let se=0;se<Z[ue].suggestions.length;se++){let ee=Z[ue].suggestions[se];J[ee.rowIndex]&&!J[ee.rowIndex][ee.colIndex]&&ie.push(ee)}I.current=[...I.current,...ie],I.current.forEach(ue=>{ZS(b.current,ue,"deleted")}),ae(I.current,()=>{I.current=[]})}}});return()=>{Q.unsubscribe()}},[b,K,ae,O,t.cleaningAssistantRemoveRowObserverRef,t.hotInstance,t.validator]),{...t,open:a,setOpen:n,loading:i,setLoading:s,onOpenPopover:B,onDismissPopover:j,getSuggestions:K,groups:l,setGroups:u,selectedGroupIndex:d,setSelectedGroupIndex:f,initialLoaded:o,count:N,selectedSuggestions:p,setSelectedSuggestions:m,onSelectAll:A,onSelectSuggestion:D,onFind:ne,onDismiss:ae,onApply:me,onBackClick:G,theme:r,showErrorMessage:h,setShowErrorMessage:g,showRowLimitMessage:_,refreshDisabled:k,setRefreshDisabled:P,disableRefreshCountdownRef:T,isApplying:L}};import{createContext as AAe}from"react";var Eo=AAe({});var TQ=t=>{let e=t.theme.getCleaningAssistantTheme();return{rootClass:x(["nuvo_cleaning-assistant-popover",v`
1420
+ `,v({"&&":f.getButtonTheme().exportExcel?.dropdown?.root})),style:g,ref:h.setFloating,children:[Nc(WR,{dataTestId:re.review.exportAll,disabled:t,onClick:y,tooltipDisabledMessage:d("txt_unable_to_export"),className:x(v({"&&":f.getButtonTheme().exportExcel?.dropdown?.item,"&&&":t?f.getButtonTheme().exportExcel?.dropdown?.item?.[":disabled"]:""})),children:d("txt_export_all_rows")}),Nc(WR,{dataTestId:re.review.exportErrors,disabled:e,onClick:C,tooltipDisabledMessage:d("txt_unable_to_export"),className:x(v({"&&":f.getButtonTheme().exportExcel?.dropdown?.item,"&&&":e?f.getButtonTheme().exportExcel?.dropdown?.item?.[":disabled"]:""})),children:d("txt_export_error_rows")})]}):null]})},wQ=LAe;import{useCallback as bf,useEffect as KR,useLayoutEffect as DAe,useMemo as LQ,useRef as Fc,useState as du}from"react";var qR=class{constructor(e){this.cleaningAIServices=e}async getSuggestions(e,r,o){return await this.cleaningAIServices.getSuggestions(e,r,o)}groupSuggestions(e,r,o,a,n){let i=[...e];if(!r)return i;let s={};for(let u=0;u<o.length;u++)s[o[u].getKey()]=o[u].getLabel();let l={};for(let u=0;u<e.length;u++)l[e[u].column]=u;return r.forEach(u=>{for(let c in u.data){l[c]===void 0&&(l[c]=i.length);let d=l[c];i[d]===void 0&&(i[d]={column:c,columnLabel:s[c],suggestions:[]});let f=o.findIndex(g=>g.getKey()===c),p=`${u.rowIndex}_${f}`,m={id:p,rowIndex:u.rowIndex,colIndex:f,column:c,initRowIndex:u.rowIndex,initColIndex:f,value:u.data[c].value,suggestion:u.data[c].suggestion,isDisabled:o[f]?.isDisabled()};i[d].suggestions.push(m),a.current===null&&(a.current=[]),a.current.findIndex(g=>g.id===p)<0&&a.current.push({id:p,key:c,value:u.data[c].value,error_message:n[p]||"",suggested_value:u.data[c].suggestion,status:"ignored"})}}),i}},xQ=qR;import{firstValueFrom as OAe}from"rxjs";import TAe from"axios";import{Observable as kAe}from"rxjs";var XS=class{constructor(e,r={}){this.getHttpClient=()=>this.httpClient;this.httpClient=TAe.create(r),this.sendApiKey=e.sendApiKey}observableRequest(e){let r=this.httpClient.request(e);return new kAe(o=>{r.then(a=>{o.next(a.data)}).catch(a=>{o.error(a)}).finally(()=>{o.complete()})})}get(e,r,o){let a={method:"GET",url:e,params:r,...o};return this.observableRequest(a)}post(e,r,o={}){let a={method:"POST",url:e,data:r,...o};return this.observableRequest(a)}put(e,r,o={}){let a={method:"PUT",url:e,data:r,...o};return this.observableRequest(a)}patch(e,r,o={}){let a={method:"PATCH",url:e,data:r,...o};return this.observableRequest(a)}delete(e,r={}){let o={method:"DELETE",url:e,...r};return this.observableRequest(o)}};var GR=class extends XS{getSuggestions(e,r,o){let a={apikey:this.sendApiKey?"3n5E21bB0ZfpdrNOgWk8M3iDNkR1G3CB":void 0,Authorization:e};return OAe(this.post("/cleaning-assistant",o,{headers:a}))}},yQ=GR;function CQ(t,e){if(t===null||e===null)return!1;let r=t.getBoundingClientRect(),o=e.getBoundingClientRect();return!(r.right<o.left||r.left>o.right||r.bottom<o.top||r.top>o.bottom)}function ZS(t,e,r,o){if(!t||!e)return;let a=`${e.initRowIndex}_${e.initColIndex}`,n=t.findIndex(i=>i.id===a);n>=0&&(t[n].status=r,o&&(t[n]={...t[n],...o}))}var hl="rowIndex",SQ=[{label:hl,insertText:hl,api:"",type:"variable",key:hl}];var $t={KEY_IN_BRACKETS:`[^"'\\]]+`,KEY_IN_BRACKETS_OPTIONAL:`[^"'\\]]*`,WORD_BOUNDARY_START:"(?:^|[^@\\w])",WORD_BOUNDARY_END:"(?=[^@\\w]|$)",BRACKET_OPEN:`row\\[["']`,BRACKET_CLOSE:`["']\\]`,ROW_DOT:"row\\.",WORD:"\\w+",WORD_OPTIONAL:"\\w*",COLUMN_LABEL_OPTIONAL:"[^\\s,;()\\[\\]{}]*"},JS={bracketNotation:new RegExp(`${$t.WORD_BOUNDARY_START}${$t.BRACKET_OPEN}(${$t.KEY_IN_BRACKETS})${$t.BRACKET_CLOSE}$`),rowDotOnly:new RegExp(`${$t.WORD_BOUNDARY_START}(${$t.ROW_DOT}(${$t.WORD}))$`),delimiter:/[\s,;()[\]{}+\-*/=<>!&|]/,lastWord:new RegExp(`${$t.WORD_BOUNDARY_START}((?:${$t.BRACKET_OPEN}(${$t.KEY_IN_BRACKETS})${$t.BRACKET_CLOSE})|(?:${$t.ROW_DOT}(${$t.WORD}))|(${$t.WORD}))$`)},uu={bracketNotation:new RegExp(`${$t.BRACKET_OPEN}(${$t.KEY_IN_BRACKETS})${$t.BRACKET_CLOSE}`,"g"),dotNotation:new RegExp(`${$t.ROW_DOT}(${$t.WORD})`,"g"),standaloneWord:new RegExp(`${$t.WORD_BOUNDARY_START}(${$t.WORD})${$t.WORD_BOUNDARY_END}`,"g")},x0={bracketNotation:new RegExp(`${$t.WORD_BOUNDARY_START}(${$t.BRACKET_OPEN}(${$t.KEY_IN_BRACKETS})${$t.BRACKET_CLOSE})`,"g"),dotNotation:new RegExp(`${$t.WORD_BOUNDARY_START}(${$t.ROW_DOT}(${$t.WORD}))`,"g"),standaloneWord:new RegExp(`${$t.WORD_BOUNDARY_START}(${$t.WORD})${$t.WORD_BOUNDARY_END}`,"g"),incompleteBracket:new RegExp(`${$t.BRACKET_OPEN}(?:${$t.KEY_IN_BRACKETS})?$`)},QS={atSymbol:new RegExp(`@(${$t.COLUMN_LABEL_OPTIONAL})$`),rowDot:new RegExp(`${$t.ROW_DOT}(${$t.WORD_OPTIONAL})$`),rowBracket:new RegExp(`${$t.BRACKET_OPEN}(${$t.KEY_IN_BRACKETS_OPTIONAL})$`)},IQ=1e3;var y0=(t,e,r,o)=>{let a=t.getSettings().data;for(let i of e){let s=i[0],l=i[1],u=i[2],c=a[s];typeof c=="object"&&c!==null&&!Array.isArray(c)&&(c[l]=u)}t.loadData(a);let n=e.map((i,s)=>{let l=i[0],u=i[1],c=i[2],d=o?.[s]?.[2]??null;return[l,u,d,c]});t.runHooks("afterSetSourceDataAtCell",n,r)},_Q=(t,e,r)=>{let o=t.countSourceRows()-1,a=e.filter(n=>n[0]!==o);a.length>0&&y0(t,a,r)},cu=(t,e)=>t.filter(r=>r.key===e),MQ=(t,e,r,o=!1)=>{let a=x0.bracketNotation;a.lastIndex=0;let n;for(;(n=a.exec(t))!==null;){let l=n[1],u=n[2],c=n.index+(n[0].length-l.length),d=c+l.length;if(e>=c&&e<=d+1){let f=cu(r,u);if(f.length===1)return{fullMatch:l,key:u,startIndex:c,endIndex:d,label:f[0].label}}}let i=x0.dotNotation;for(i.lastIndex=0;(n=i.exec(t))!==null;){let l=n[1],u=n[2],c=n.index+(n[0].length-l.length),d=c+l.length;if(e>=c&&e<=d+1){let f=cu(r,u);if(f.length===1)return{fullMatch:l,key:u,startIndex:c,endIndex:d,label:f[0].label}}}if(!o)return null;let s=x0.standaloneWord;for(s.lastIndex=0;(n=s.exec(t))!==null;){let l=n[1],u=n.index+(n[0].length-l.length),c=u+l.length;if(e>=u&&e<=c+1&&t.charAt(u-1)!=="@"){let f=t.substring(0,u);if(x0.incompleteBracket.test(f))continue;let m=cu(r,l);if(m.length===1)return{fullMatch:l,key:l,startIndex:u,endIndex:c,label:m[0].label}}}return null},EQ=(t,e)=>{let r=t;return r=r.replace(uu.bracketNotation,(o,a)=>{let n=cu(e,a);return n.length===1?`@${n[0].label}`:o}),r=r.replace(uu.dotNotation,(o,a)=>{let n=cu(e,a);return n.length===1?`@${n[0].label}`:o}),r=r.replace(uu.standaloneWord,(o,a,n)=>{if(n>0&&t[n-1]==="@")return o;let i=cu(e,a);return i.length===1?`${o.charAt(0)===a.charAt(0)?"":o.charAt(0)}@${i[0].label}`:o}),r};var RQ=t=>{let{t:e}=q(),r=X(),o=Fc(!1),[a,n]=du(!1),[i,s]=du(!1),[l,u]=du([]),c=Fc([]),[d,f]=du(-1),[p,m]=du([]),[h,g]=du(!1),b=t.cleaningAssistantLogsRef,w=t.setTotalCleanings,y=Fc({}),C=Fc(t.dataModelRegistry.getDataModels()),I=Fc([]),S=Fc(""),[_,M]=du(!1),[L,E]=du(!1),R=Fc(void 0),T=Fc(0),[k,P]=du(!1);KR(()=>{if(k)return T.current>0?R.current=setInterval(()=>{T.current--,T.current===0&&(P(!1),clearInterval(T.current))},1e3):clearInterval(T.current),()=>{R.current!==void 0&&clearInterval(R.current)}},[k]);let O=bf(()=>{M(!1),C.current=t.dataModelRegistry.getDataModels();let Q=t.validator.getError(),V=[],U=[],le=5,Z=t.hotInstance.current?.hotInstance;if(!Z)return[];for(let ee=0;ee<Q.length;ee++){let fe=Q[ee]!==void 0&&Q[ee].every(z=>z===null);if(Q[ee]===void 0||fe){if(U.length===le)continue;let z=Z.getDataAtRow(ee),pe={};for(let te=0;te<z.length;te++){if(!C.current[te])continue;let ve=C.current[te].getKey();pe[ve]=z[te]}U.push(pe);continue}let F=Z?.getSourceDataAtRow(ee)??{};V.push({rowIndex:ee,data:{}});let W=V[V.length-1];for(let z of C.current){let pe=z.getKey();W.data[pe]={value:F[pe]}}for(let z of Q[ee]){if(!z||z.colIndex<0)continue;let pe=z.colIndex,te=C.current[pe]?.getKey();if(!te||!W.data[te])continue;let ve=Ai.getValidateMessage(e,z,t.dataModelRegistry.getColumns(),t.baseColumns),ce=`${ee}_${pe}`;y.current[ce]=ve,W.data[te].info=[{message:ve,level:"error"}]}}if(V.length===0)return[];let ie=C.current.map(ee=>({columnType:ee.getType(),key:ee.getKey(),validations:ee.getValidators().map(fe=>fe.serialize()),label:ee.getLabel(),description:ee.getDescription(),dropdownOptions:ee.isCategoryType()?ee.getOptions().map(fe=>({label:fe.label,value:fe.value,type:fe.type})):[],outputFormat:ee.getOutputFormat()})),J=0,ue=Math.min(500,1500),se=[];for(;V.length>0;){let ee=V.splice(0,ue);if(se.push({error_data:ee,data_model:ie,clean_data:U,session_id:t.sessionId,version:"4.8.1"}),J+=ee.length,J>=1500){M(!0);break}ue=Math.min(ue*2,2e3)}return se},[t,e]),A=()=>{m(Q=>Q.length===0?l[d]?.suggestions||[]:[])},D=Q=>{m(V=>{let U=[...V],le=V.findIndex(Z=>Q.suggestion===Z.suggestion);return le>=0?U.splice(le,1):U.push(Q),U})},N=LQ(()=>l.reduce((Q,V)=>Q+=V.suggestions.length,0),[l]),B=bf(()=>{n(!0)},[]),j=bf(()=>{n(!1)},[]);DAe(()=>{a&&!S.current&&setTimeout(()=>{let Q=document.querySelector(".nuvo_cleaning-assistant-popover .nuvo-popover__content");if(!Q)return;let V=window.getComputedStyle(Q),U=new WebKitCSSMatrix(V.transform);S.current=`translate(${U.m41}px, ${U.m42}px)`},100)},[a]);let H=LQ(()=>new xQ(new yQ({sendApiKey:!t.isSelfHosted},{baseURL:t.cleaningAPIUrl})),[t.cleaningAPIUrl,t.isSelfHosted]),K=bf(()=>{if(k)return Promise.resolve();let Q=O();return g(!1),s(!0),!Q||Q.length===0?(setTimeout(()=>{s(!1)},500),Promise.resolve()):(u([]),c.current=[],f(-1),m([]),new Promise(V=>{let le=Q.length,Z=0;function ie(J){J&&H.getSuggestions(t.licenseKey,t.origin,J).then(ue=>{ue.length>0&&(T.current=180,P(!0)),c.current=H.groupSuggestions(c.current,ue,C.current,b,y.current),u(c.current)}).catch(()=>{}).finally(()=>{if(Z++,Q.length>0){let ue=Q.shift();ie(ue)}else Z===le&&(b.current&&w(b.current.length),s(!1),V())})}for(let J=0;J<8;J++){let ue=Q.shift();ie(ue)}}))},[b,O,t.licenseKey,t.origin,k,H,w]),G=()=>{f(-1),m([])},ne=bf(Q=>{let V=t.hotInstance.current?.hotInstance;if(V)try{let U=V.toVisualRow(Q.rowIndex),le=V.toVisualColumn(Q.colIndex);V?.selectCell(U,le,void 0,void 0,!1,!0),V?.scrollViewportTo({row:U,col:le,horizontalSnap:"start",verticalSnap:"top"});let Z=V.getCell(U,le),ie=document.querySelector(".nuvo_cleaning-assistant-popover .nuvo-popover__content");if(Z&&ie&&(ie.style.transform=S.current,CQ(ie,Z))){let J=window.getComputedStyle(ie),ue=new WebKitCSSMatrix(J.transform),se=Z.getBoundingClientRect(),ee=ie.getBoundingClientRect(),fe=Math.abs(ue.m41-(ee.right-se.left));ie.style.transform=`translate(${fe}px, ${ue.m42}px)`}}catch{}},[t.hotInstance]),ae=bf((Q,V)=>{u(U=>{let le={};for(let J=0;J<Q.length;J++)le[Q[J].id]===void 0&&(le[Q[J].id]=!0);m(J=>J.filter(ue=>!le[ue.id]));let Z=[...U],ie=!1;for(let J=Z.length-1;J>=0;J--){let ue=[];for(let se=0;se<Z[J].suggestions.length;se++){let ee=Z[J].suggestions[se];le[ee.id]||ue.push(ee)}Z[J].suggestions=Z[J].suggestions.filter(se=>!le[se.id]),Z[J].suggestions.length===0&&(Z.splice(J,1),J===d&&(ie=!0))}return ie&&f(-1),c.current=Z,V&&V(),Z})},[d]),me=bf(Q=>{let V=t.hotInstance.current?.hotInstance;if(!V)return;function U(Z){return new Promise(ie=>{setTimeout(()=>{if(!V){ie();return}let J=[[Z.rowIndex,Z.column,Z.suggestion]],ue=[[Z.rowIndex,Z.column,Z.value??null]];y0(V,J,"CLEANING_ASSISTANT",ue),ZS(b.current,Z,"applied"),V?.render(),ie()})})}Q.length>1&&E(!0);let le=Q.map(Z=>U(Z));Promise.allSettled(le).then(()=>{ae(Q),V.render(),E(!1)})},[b,ae,t.hotInstance]);return KR(()=>{if(!t.cleaningAssistantEntryChangeObserverRef.current)return;let Q=t.cleaningAssistantEntryChangeObserverRef.current.subscribe(V=>{V.actionType!=="create"&&V.sourceCols.forEach(U=>{let le=C.current.findIndex(J=>J.getKey()===U),Z=`${V.rowIndex}_${le}`;for(let J=0;J<c.current.length;J++){let se=c.current[J].suggestions.find(fe=>fe.id===Z),ee=V.currentRowData[le];ZS(b.current,se,"changed",{change_value:ee})}c.current.findIndex(J=>J.suggestions.find(se=>se.id===Z)!==void 0)>=0&&ae([{id:Z}])})});return()=>{Q.unsubscribe()}},[b,ae,t.cleaningAssistantEntryChangeObserverRef]),KR(()=>{if(!t.cleaningAssistantRemoveRowObserverRef.current)return;let Q=t.cleaningAssistantRemoveRowObserverRef.current.subscribe(({type:V,rows:U})=>{let le=t.hotInstance.current?.hotInstance,Z=c.current;if(le){if(V==="before"){let ie=[];for(let J=0;J<Z.length;J++)for(let ue=0;ue<Z[J].suggestions.length;ue++){let se=Z[J].suggestions[ue],ee=0,fe="";for(let F=0;F<U.length;F++){let W=le.toPhysicalRow(U[F]);se.rowIndex>W?ee++:se.rowIndex===W&&(fe="d",ie.push(se))}se.rowIndex-=ee,se.id=`${se.rowIndex}_${se.colIndex}${fe}`}I.current=ie}if(V==="after"){let ie=[],J=t.validator.getError();for(let ue=0;ue<Z.length;ue++)for(let se=0;se<Z[ue].suggestions.length;se++){let ee=Z[ue].suggestions[se];J[ee.rowIndex]&&!J[ee.rowIndex][ee.colIndex]&&ie.push(ee)}I.current=[...I.current,...ie],I.current.forEach(ue=>{ZS(b.current,ue,"deleted")}),ae(I.current,()=>{I.current=[]})}}});return()=>{Q.unsubscribe()}},[b,K,ae,O,t.cleaningAssistantRemoveRowObserverRef,t.hotInstance,t.validator]),{...t,open:a,setOpen:n,loading:i,setLoading:s,onOpenPopover:B,onDismissPopover:j,getSuggestions:K,groups:l,setGroups:u,selectedGroupIndex:d,setSelectedGroupIndex:f,initialLoaded:o,count:N,selectedSuggestions:p,setSelectedSuggestions:m,onSelectAll:A,onSelectSuggestion:D,onFind:ne,onDismiss:ae,onApply:me,onBackClick:G,theme:r,showErrorMessage:h,setShowErrorMessage:g,showRowLimitMessage:_,refreshDisabled:k,setRefreshDisabled:P,disableRefreshCountdownRef:T,isApplying:L}};import{createContext as AAe}from"react";var Eo=AAe({});var TQ=t=>{let e=t.theme.getCleaningAssistantTheme();return{rootClass:x(["nuvo_cleaning-assistant-popover",v`
1421
1421
  & .nuvo-popover__content {
1422
1422
  padding: 0;
1423
1423
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ingestro/importer-react",
3
- "version": "4.8.0",
3
+ "version": "4.8.1",
4
4
  "homepage": "https://docs.ingestro.com",
5
5
  "peerDependencies": {
6
6
  "react": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",