hisonvue 1.1.9 → 1.1.11

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 (61) hide show
  1. package/dist/{HAccordion-CwX4X5rP.js → HAccordion-BPcUkox0.js} +1 -1
  2. package/dist/{HAccordion-B9X5a8uS.mjs → HAccordion-DzD88p_k.mjs} +2 -2
  3. package/dist/{HBaggie-BkdjoUd8.mjs → HBaggie-CoE3swPJ.mjs} +2 -2
  4. package/dist/{HBaggie-p4YtANgJ.js → HBaggie-DN3TUx7R.js} +1 -1
  5. package/dist/{HBanner-XHxPBDDx.js → HBanner-CO620JW2.js} +1 -1
  6. package/dist/{HBanner-DJSW0-oC.mjs → HBanner-wYmOu8Da.mjs} +2 -2
  7. package/dist/{HButton-BTx3hnGw.mjs → HButton-BcGJbrDW.mjs} +2 -2
  8. package/dist/{HButton-Cog_ozZo.js → HButton-DuHEt4L4.js} +1 -1
  9. package/dist/{HCalendar-DBOIOJU5.mjs → HCalendar-BCnJmmwt.mjs} +2 -2
  10. package/dist/{HCalendar-CNQKtcAW.js → HCalendar-w59hzWIb.js} +2 -2
  11. package/dist/{HCaption-DxHNXOQT.js → HCaption-BS-kcsPL.js} +1 -1
  12. package/dist/{HCaption-CLJuVeBS.mjs → HCaption-CEcuoI2Z.mjs} +1 -1
  13. package/dist/{HChart-DDf5oZRS.mjs → HChart-BVErh-TI.mjs} +1 -1
  14. package/dist/{HChart-BL9C0v1k.js → HChart-GW0MC1O-.js} +1 -1
  15. package/dist/{HDrawer-C34D6Yyn.js → HDrawer-BYNWM5oo.js} +1 -1
  16. package/dist/{HDrawer-BoOaLn_5.mjs → HDrawer-BeFNw6it.mjs} +1 -1
  17. package/dist/{HDropdown-YYE5X-xr.js → HDropdown-4PzlwYQK.js} +1 -1
  18. package/dist/{HDropdown-Qv-J_mld.mjs → HDropdown-DAPxzzLT.mjs} +2 -2
  19. package/dist/{HFileset-BA_iNeiI.js → HFileset-C3jH-75M.js} +1 -1
  20. package/dist/{HFileset-BvDO3aNe.mjs → HFileset-DH4RVJMc.mjs} +1 -1
  21. package/dist/{HGap-BrB040ot.js → HGap-BICfHf2P.js} +1 -1
  22. package/dist/{HGap-BHFeKNmj.mjs → HGap-xEp9kuzW.mjs} +1 -1
  23. package/dist/{HGrid-DqB9uUXP.js → HGrid-BYpzERIV.js} +1 -1
  24. package/dist/{HGrid-B3sogW2X.mjs → HGrid-CMj1N_CR.mjs} +7 -7
  25. package/dist/{HImagebox-CJ6ZePsH.js → HImagebox-BK13d9hC.js} +1 -1
  26. package/dist/{HImagebox-FskJNzsv.mjs → HImagebox-CjP4ifUf.mjs} +1 -1
  27. package/dist/{HInput-CXjTaPED.mjs → HInput-BsQwJ4oK.mjs} +1 -1
  28. package/dist/{HInput-CJr5PE-7.js → HInput-C6P1WBQR.js} +1 -1
  29. package/dist/{HInputGroup-D8p9jS7n.js → HInputGroup-CJvqmDw_.js} +1 -1
  30. package/dist/{HInputGroup-BhSyxYq0.mjs → HInputGroup-DSytkVgB.mjs} +1 -1
  31. package/dist/{HLabel-5ptBVe28.js → HLabel-BZmcQdJZ.js} +1 -1
  32. package/dist/{HLabel-BVsI-mje.mjs → HLabel-CVlUjx2J.mjs} +2 -2
  33. package/dist/{HLayout-DryvkRqE.mjs → HLayout-CTokm5DW.mjs} +1 -1
  34. package/dist/{HLayout-DtM-cTSx.js → HLayout-Cvh9owsl.js} +1 -1
  35. package/dist/{HList-DU3WuYwD.js → HList-B56HtoRE.js} +1 -1
  36. package/dist/{HList-DtOpQ2V3.mjs → HList-CjQUGjSi.mjs} +2 -2
  37. package/dist/{HModal-BJKdf65e.mjs → HModal-B60an2UM.mjs} +1 -1
  38. package/dist/{HModal-C_mi279o.js → HModal-pR6tdZaS.js} +1 -1
  39. package/dist/{HNote-B6GFOj0S.mjs → HNote-DbolymFq.mjs} +1 -1
  40. package/dist/{HNote-B9gSb3LH.js → HNote-aGk4Iq2z.js} +1 -1
  41. package/dist/{HPagination-4wmIvYNJ.js → HPagination-BZ17GWQO.js} +1 -1
  42. package/dist/{HPagination-CqOA6UCF.mjs → HPagination-BrMrMfTw.mjs} +2 -2
  43. package/dist/{HParagraph-PTHx_RN4.js → HParagraph-BSv_Wsjz.js} +1 -1
  44. package/dist/{HParagraph-CM2yycMU.mjs → HParagraph-D5k1Wd5x.mjs} +1 -1
  45. package/dist/{HPopup-VSP63YBK.js → HPopup-ASomoAz9.js} +1 -1
  46. package/dist/{HPopup-CRXaObMA.mjs → HPopup-BvZpNjfs.mjs} +1 -1
  47. package/dist/{HSpinner-CMNqrFQm.mjs → HSpinner-BpZVFnXH.mjs} +1 -1
  48. package/dist/{HSpinner-DUSvlAUB.js → HSpinner-CmyqXHMh.js} +1 -1
  49. package/dist/{HTable-D_7pbQh6.mjs → HTable-CV3PO9DY.mjs} +1 -1
  50. package/dist/{HTable-Cxnp6Dcb.js → HTable-lqvTk19w.js} +1 -1
  51. package/dist/hisonvue.cjs.js +1 -1
  52. package/dist/hisonvue.css +1 -1
  53. package/dist/hisonvue.d.ts +11 -129
  54. package/dist/hisonvue.es.js +15 -16
  55. package/dist/{index-CTBjU64J.mjs → index-CC0B7Mqx.mjs} +4 -4
  56. package/dist/{index-8ra42Geo.js → index-DeOa0YJA.js} +2 -2
  57. package/dist/{setButtonCssEvent-D2gKOB4N.mjs → setButtonCssEvent-CYoAPu2n.mjs} +1 -1
  58. package/dist/{setButtonCssEvent-Dr7JxaDk.js → setButtonCssEvent-DK69MUM5.js} +1 -1
  59. package/nuxt/module.mjs +36 -16
  60. package/package.json +1 -1
  61. package/nuxt/plugin.mjs +0 -21
@@ -45,7 +45,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
45
45
  `&&(me!=="\r"||Q!==`
46
46
  `)?de+=me:(q.push(de),de="",me==="\r"&&Q===`
47
47
  `&&se++)}de&&q.push(de);for(var u=H.rowIndex,b=H.colIndex,_=A[p].methods.getRowCount(),R=A[p].methods.getColCount(),F=0,D=0,z=0;z<q.length;z++){var pe=u+D+F;if(pe>_)return;var Se=x._getRow(p,pe);if(Se[0].rowVisible&&!Se[0].filter){for(var ze=0,je=0,Ue=q[D].split(" "),it=function(){var Pe=b+je-1+ze;if(Pe>=R)return 0;var lt=Se[Pe];if(!lt.colVisible){ze++;for(var ae=1,te=Se[Pe+ae];te&&!te.colVisible;)ze++,ae++,te=Se[Pe+ae];return 1}var ht=Ue[je];if(["select","checkbox","button","link"].indexOf(lt.dataType)<0&&!lt.untarget&&!lt.locked){ht=ht.replaceAll('"',"");var d=!0;Object.keys(w.dataType).forEach(function(y){if(lt.dataType===y)if(w.dataType[y].getPasteValue){if(typeof w.dataType[y].getPasteValue!="function")throw new Error("getPasteValue must be a function.");ht=w.dataType[y].getPasteValue(lt._gridId,x.__getData(lt),ht)}else d=!1}),d&&oe.push.apply(oe,Ge(x.getRecordsWithModifyValue(lt,ht)))}je++},rt=0;rt<Ue.length&&it()!==0;rt++);D++}else{F++;for(var ct=1,Ne=x._getCell(p,Se[0].rowIndex+ct,1);Ne&&(!Ne.rowVisible||Ne.filter);)F++,ct++,Ne=x._getCell(p,Se[0].rowIndex+ct,1)}}oe.length>0&&x.recordGridModify(p,oe)}},x.getRecordsWithModifyValue=function(g,p){var B=arguments.length>2&&arguments[2]!==void 0&&arguments[2],H=[];return x.modifyCellValue(g,p,H,B),H},x.getTabCell=function(g,p){if(!g)return null;for(var B,H=g._gridId,U=g.rowIndex,q=p?g.colIndex-1:g.colIndex+1;!B&&U>=1&&U<=A[H].methods.getRowCount();){for(;!B&&q>=1&&q<=A[H].methods.getColCount();)(B=x._getCell(H,U,q))&&(B.isRowMerge||B.isColMerge||B.untarget?B=null:x.isCellVisible(B)||(B=null)),q=p?q-1:q+1;U=p?U-1:U+1,q=p?A[H].methods.getColCount():1}return B||(B=g),B},x.getMoveRowCell=function(g,p){if(!g)return null;var B,H=g._gridId,U=g.rowIndex,q=g.colIndex;if(!p)return g;for(;!B&&!((U+=p)<1||U>A[H].methods.getRowCount());)(B=x._getCell(H,U,q))&&(B.isRowMerge||B.isColMerge||B.untarget?B=null:x.isCellVisible(B)||(B=null));return B||(B=g),B},x.getMoveColCell=function(g,p){if(!g)return null;var B,H=g._gridId,U=g.rowIndex,q=g.colIndex;if(!p)return g;for(;!B&&!((q+=p)<1||q>A[H].methods.getColCount());)(B=x._getCell(H,U,q))&&(B.isRowMerge||B.isColMerge||B.untarget?B=null:x.isCellVisible(B)||(B=null));return B||(B=g),B},x.recordGridModify=function(g,p){p.length<=0||(A[g].data.variables.recordseq<A[g].data.variables.records.length&&A[g].data.variables.records.splice(A[g].data.variables.recordseq),A[g].data.variables.records.push(p),A[g].data.variables.recordseq=A[g].data.variables.recordseq+1,A[g].data.variables.recordseq>A[g].data.gridInfo.redoCount&&(A[g].data.variables.records.shift(),A[g].data.variables.recordseq=A[g].data.variables.recordseq-1))},x.redoundo=function(g,p){if(!A[g].data.gridInfo.redoable)return!1;var B=p!==!1;if(B&&A[g].data.variables.recordseq<=0||!B&&A[g].data.variables.recordseq+1>A[g].data.variables.records.length)return!1;A[g].data.variables.recordseq=B?A[g].data.variables.recordseq-1:A[g].data.variables.recordseq+1;var H=B?A[g].data.variables.records[A[g].data.variables.recordseq]:A[g].data.variables.records[A[g].data.variables.recordseq-1];if(!H||!Array.isArray(H))return!1;x.selectCell(H[0].cell);var U,q=j(H);try{for(q.s();!(U=q.n()).done;){var oe=U.value;oe.cell.value=B?oe.oldValue:oe.newValue,x.reConnectedCallbackElement(oe.cell),x.reloadGridWithModifyCell(g,oe.cell.colIndex)}}catch(de){q.e(de)}finally{q.f()}return!0},x.selectAndCheckboxOnChange=function(g){if(g.nType){var p=g.parentNode,B=p._gridId,H=!0;if(g.nType==="select"?w._status.editNewValue=g.value:g.nType==="checkbox"&&(w._status.editNewValue=g.checked?A[B].data.gridInfo.checkedValue:A[B].data.gridInfo.uncheckedValue),A[B].events.onBeforeChange(p.rowIndex,p.colId,w._status.editOldValue,w._status.editNewValue)===!1&&(H=!1),!H||p.untarget||p.locked){switch(g.nType){case"select":g.value=w._status.editOldValue;break;case"checkbox":g.checked=!g.checked}return w._status.editOldValue=null,!1}switch(g.nType){case"select":x.recordGridModify(B,x.getRecordsWithModifyValue(p,x.getSelectOptions(g)));break;case"checkbox":x.recordGridModify(B,x.getRecordsWithModifyValue(p,w._status.editNewValue))}A[B].events.onAfterChange(p.rowIndex,p.colId,w._status.editOldValue,w._status.editNewValue)}}}(v,et,Ve),function(w,A,x){x.modifyColSize=function(g,p){if(g&&g.resizable&&g.colId!=="v-g-rownum"&&g.colId!=="v-g-status"){var B=A[g._gridId];if(B.events.onResize(g.colId)!==!1){var H=B.elements.gridHeader.style.gridTemplateColumns.split(" "),U=H[g.colIndex-1];Ie(U).unit==="%"&&(p=p>0?1:p<0?-1:0);var q=Ie(U).number+p+Ie(U).unit;H[g.colIndex-1]=q;var oe=H.join(" ");B.elements.gridHeader.style.gridTemplateColumns=oe,B.elements.gridBody.style.gridTemplateColumns=oe,B.elements.gridFooter.style.gridTemplateColumns=oe}}},x.changeColSize=function(g,p,B){if(typeof B!="number"||B<0)throw new Error("The format of size is only zero or positive integers.");var H=A[g];if(!x._getHeaderCell(g,1,p)._frozenCol){for(var U=B!==0,q=1;q<=H.methods.getHeaderRowCount();q++){var oe=x._getHeaderCell(g,q,p);oe.colVisible=U,x.reConnectedCallbackElement(oe)}for(var de=1;de<=H.methods.getRowCount();de++)x._getCell(g,de,p).colVisible=U;for(var he=1;he<=H.methods.getFooterRowCount();he++){var se=x._getFooterCell(g,he,p);se.colVisible=U,x.reConnectedCallbackElement(se)}var me=H.elements.gridHeader,Q=H.elements.gridBody,u=H.elements.gridFooter,b=me.style.gridTemplateColumns.split(" "),_=b[p-1],R=B+Ie(_).unit;b[p-1]=R;var F=b.join(" ");me.style.gridTemplateColumns=F,Q.style.gridTemplateColumns=F,u.style.gridTemplateColumns=F}},x.modifyCellValue=function(g,p,B){if(!(!(arguments.length>3&&arguments[3]!==void 0&&arguments[3])&&(!x.isCellVisible(g)||g.untarget||g.locked))&&(p=x.getValidValue(g,p),g.value!==p)){var H=g.value,U=p;B&&Array.isArray(B)&&B.push({cell:g,oldValue:H,newValue:U}),A[g._gridId].methods.getRowStatus(g.rowIndex)||A[g._gridId].methods.setRowStatus(g.rowIndex,"U"),g.value=p,x.reConnectedCallbackElement(g),x.reloadGridWithModifyCell(g._gridId,g.colIndex)}},x.modifyCell=function(g){if(g._status.activeGridEditor){var p=g._status.activeGridEditor.parentNode;if(!p.untarget&&!p.locked&&(g._status.editNewValue=g._status.activeGridEditor.value,Object.keys(g.dataType).forEach(function(U){if(p.dataType===U)if(g.dataType[U].getEditedValue){if(typeof g.dataType[U].getEditedValue!="function")throw new Error("getEditedValue must be a function.");g._status.editNewValue=g.dataType[U].getEditedValue(g._status.activeGridEditor,p._gridId,x.__getData(p))}else g._status.editNewValue=g._status.editOldValue}),x.removeGridEditor(),A[p._gridId].events.onBeforeChange(p.rowIndex,p.colId,g._status.editOldValue,g._status.editNewValue)!==!1)){var B=g._status.editNewValue,H=x.getRecordsWithModifyValue(p,B);x.recordGridModify(p._gridId,H),A[p._gridId].events.onAfterChange(p.rowIndex,p.colId,g._status.editOldValue,g._status.editNewValue)}}},x.sort=function(g,p,B){var H=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],U=arguments.length>4&&arguments[4]!==void 0&&arguments[4],q=ot(p),oe=A[g];return q.sort(function(de,he){var se=de.find(function(Se){return Se.colId===B}),me=he.find(function(Se){return Se.colId===B}),Q=se?se.value:null,u=se?se.dataType:null,b=me?me.value:null,_=me?me.dataType:null,R=U;if(typeof Q!="number"&&typeof b!="number"||(R=!0),Q===oe.data.gridInfo.nullValue&&(Q=null),b===oe.data.gridInfo.nullValue&&(b=null),u==="select"&&Q!==null&&Array.isArray(Q)){var F=Q.find(function(Se){return Se.selected});Q=F?F.text:Q.length>0&&Q[0].text!==void 0?Q[0].text:null}else u==="link"&&Q!==null&&Q.constructor===Object&&(Q=Q.text);if(_==="select"&&b!==null&&Array.isArray(b)){var D=b.find(function(Se){return Se.selected});b=D?D.text:b.length>0&&b[0].text!==void 0?b[0].text:null}else _==="link"&&b!==null&&b.constructor===Object&&(b=b.text);if(w.dataType&&Object.keys(w.dataType).forEach(function(Se){if(u===Se)if(w.dataType[Se].getSortValue){if(typeof w.dataType[Se].getSortValue!="function")throw new Error("getSortValue must be a function.");Q=w.dataType[Se].getSortValue(g,Q)}else Q=se.text;if(_===Se)if(w.dataType[Se].getSortValue){if(typeof w.dataType[Se].getSortValue!="function")throw new Error("getSortValue must be a function.");b=w.dataType[Se].getSortValue(g,b)}else b=me.text}),R){var z=Q===null?NaN:Number(Q),pe=b===null?NaN:Number(b);if(!isNaN(z)&&!isNaN(pe))return H!==!1?z-pe:pe-z;isNaN(z)&&(Q=null),isNaN(pe)&&(b=null)}return Q===null&&b===null?0:Q===null?H!==!1?1:-1:b===null?H!==!1?-1:1:Q.localeCompare||b.localeCompare?Q.localeCompare?b.localeCompare?R?H!==!1?Q.localeCompare(b,void 0,{numeric:!0}):b.localeCompare(Q,void 0,{numeric:!0}):H!==!1?Q.localeCompare(b):b.localeCompare(Q):H!==!1?-1:1:H!==!1?1:-1:0}),oe.data.variables.sortToggle={},oe.data.variables.sortToggle[B]=H,q},x.setFilterOptions=function(g,p){var B=g.value;Qe(g),p.forEach(function(H){var U=document.createElement("option");U.value=H.value,U.textContent=H.text,g.appendChild(U)}),B&&(g.value=B)},x.reloadColFilterValue=function(g,p){var B=A[g];if(B&&B.data.gridInfo.filterable){var H=x.__getColInfo(g,p);if(H.filterable){H.filterValues=new Set;for(var U=function(){var oe,de=x._getCell(g,q,H.colIndex);if(!de||!de.rowVisible||!de.colVisible)return 1;oe=x.getTextFromCell(de),Object.keys(w.dataType).forEach(function(he){if(de.dataType===he&&w.dataType[he].getFilterValue){if(typeof w.dataType[he].getFilterValue!="function")throw new Error("getFilterValue must be a function.");oe=w.dataType[he].getFilterValue(g,de.value)}}),oe!==""&&oe!=null&&oe!==B.data.gridInfo.nullValue||(oe="$$NULL"),H.filterValues.add(oe)},q=1;q<=B.methods.getRowCount();q++)U();x.reloadFilter(g,p)}}},x.reloadFilter=function(g,p){var B=x.__getHeaderFilter(g,p);if(B){var H=x.__getColInfo(g,p),U=H.filterValues,q=H.dataType;if(U){var oe=[];oe.push({value:"$$ALL",text:"*"});var de=A[g];U.forEach(function(se){var me={value:se,text:se};se==="$$NULL"&&(me.text=de.data.gridInfo.nullValue),q==="checkbox"&&(me.text=se===de.data.gridInfo.checkedValue?"☑":"☐"),oe.push(me)});var he=B.value;Qe(B),oe.forEach(function(se){var me=document.createElement("option");me.value=se.value,me.textContent=se.text,B.appendChild(me)}),he&&(B.value=he,H.filterValue=he)}}},x.getDatasWithClearFilterValue=function(g,p){return p.forEach(function(B){B.forEach(function(H){H.filter=!1})}),A[g].data.variables.filters=[],p},x.reloadColForMerge=function(g,p){var B=x.__getColInfo(g,p);if(B){var H,U,q,oe,de=A[g];if(B.rowMerge){for(oe=B.colIndex,q=1;q<=de.methods.getRowCount();q++)delete(U=x._getCell(g,q,oe)).rowSpan,delete U.isRowMerge,delete U.colSpan,delete U.isColMerge;for(q=2;q<=de.methods.getRowCount();q++)if(H=x._getCell(g,q-1,oe),U=x._getCell(g,q,oe),H&&x.isCellVisible(H)&&H.dataType===U.dataType&&x.getTextFromCell(H)===x.getTextFromCell(U)){for(var he=H.rowIndex-1;he>0;he--)if((H=x._getCell(g,he,oe)).isRowMerge!==!0){H.rowSpan=_e(H.rowSpan,1)+1;break}U.isRowMerge=!0}for(q=1;q<=de.methods.getRowCount();q++)U=x._getCell(g,q,oe),x.reConnectedCallbackElement(U)}if(B.colMerge&&!x.__getColInfo(g,p-1).rowMerge){var se=x._getCells(g);for(q=1;q<=de.methods.getRowCount();q++)for(oe=B.colIndex-1;oe<=B.colIndex;oe++)delete(U=x._getCell(g,q,oe)).rowSpan,delete U.isRowMerge,delete U.colSpan,delete U.isColMerge;for(oe=B.colIndex,q=1;q<=de.methods.getRowCount();q++)if(H=se[q-1][oe-2],U=se[q-1][oe-1],H&&x.isCellVisible(H)&&H.dataType===U.dataType&&x.getTextFromCell(H)===x.getTextFromCell(U)){for(var me=H.colIndex-1;me>2;me--)if((H=se[q-1][me]).isColMerge!==!0){H.colSpan=_e(H.colSpan,1)+1;break}U.isColMerge=!0}for(q=1;q<=de.methods.getRowCount();q++)for(oe=B.colIndex-1;oe<=B.colIndex;oe++)U=x._getCell(g,q,oe),x.reConnectedCallbackElement(U)}}},x.reloadGridWithModifyCell=function(g,p){x.reloadFooterValue(g),x.reloadColFilterValue(g,p);var B=x.__getColInfo(g,p+1);B&&B.colMerge?x.reloadColForMerge(g,p+1):x.reloadColForMerge(g,p)},x.reloadGridForMerge=function(g){for(var p=A[g],B=3;B<=p.methods.getColCount();B++)x.reloadColForMerge(g,B)},x.reloadFooterValue=function(g){var p,B=k(x._getFooterCells(g));try{for(B.s();!(p=B.n()).done;){var H,U=k(p.value);try{for(U.s();!(H=U.n()).done;){var q=H.value;A[g].data.colInfos[q.colIndex-1]!=null&&x.reConnectedCallbackElement(q)}}catch(oe){U.e(oe)}finally{U.f()}}}catch(oe){B.e(oe)}finally{B.f()}},x.setGridDataRowCol=function(g,p,B){g.rowIndex=p,g.colIndex=B,x.setGridDataPosition(g)},x.setGridDataPosition=function(g){var p=g.rowIndex,B=g.colIndex;g.style.gridRowStart=String(p),g.style.gridRowEnd=String(p+1),g.style.gridColumnStart=String(B),g.style.gridColumnEnd=String(B+1)},x.getGridCell=function(g,p,B,H,U){var q;if(B&&B.constructor===Object)q={value:B[p.colId]};else if(B&&Array.isArray(B)){var oe,de=k(B);try{for(de.s();!(oe=de.n()).done;){var he=oe.value;if(he.colId===p.colId){q=he;break}}}catch(me){de.e(me)}finally{de.f()}}q||(q={value:null});var se=document.createElement("div");if(se._gridId=g,se._type="gbd",x.setCellDataFromColInfo(se,p),se.rowVisible=q.rowVisible===void 0||q.rowVisible,se.filter=q.filter!==void 0&&q.filter,q.colId!==void 0&&(se.colId=q.colId),q.colIndex!==void 0&&(se.colIndex=q.colIndex),q.name!==void 0&&(se.name=q.name),q.untarget!==void 0&&(se.untarget=q.untarget),q.rowMerge!==void 0&&(se.rowMerge=q.rowMerge),q.colMerge!==void 0&&(se.colMerge=q.colMerge),q.colVisible!==void 0&&(se.colVisible=q.colVisible),q.required!==void 0&&(se.required=q.required),q.resizable!==void 0&&(se.resizable=q.resizable),q.sortable!==void 0&&(se.sortable=q.sortable),q.filterable!==void 0&&(se.filterable=q.filterable),q.originWidth!==void 0&&(se.originWidth=q.originWidth),q.dataType!==void 0&&(se.dataType=q.dataType,![].concat(l(Object.keys(W)),l(Object.keys(w.dataType))).includes(se.dataType)))throw new Error("Please insert a valid dataType.");switch(q.selectSize!==void 0&&(se.selectSize=q.selectSize),q.locked!==void 0&&(se.locked=q.locked),q.lockedColor!==void 0&&(se.lockedColor=q.lockedColor),q.format!==void 0&&(se.format=q.format),q.codes!==void 0&&(se.codes=ot(q.codes)),q.defaultCode!==void 0&&(se.defaultCode=q.defaultCode),q.maxLength!==void 0&&(se.maxLength=q.maxLength),q.maxByte!==void 0&&(se.maxByte=q.maxByte),q.maxNumber!==void 0&&(se.maxNumber=q.maxNumber),q.minNumber!==void 0&&(se.minNumber=q.minNumber),q.roundNumber!==void 0&&(se.roundNumber=q.roundNumber),q.align!==void 0&&(se.align=q.align),q.verticalAlign!==void 0&&(se.verticalAlign=q.verticalAlign),q.overflowWrap!==void 0&&(se.overflowWrap=q.overflowWrap),q.wordBreak!==void 0&&(se.wordBreak=q.wordBreak),q.whiteSpace!==void 0&&(se.whiteSpace=q.whiteSpace),q.backColor!==void 0&&(se.backColor=q.backColor),q.fontColor!==void 0&&(se.fontColor=q.fontColor),q.fontBold!==void 0&&(se.fontBold=q.fontBold),q.fontItalic!==void 0&&(se.fontItalic=q.fontItalic),q.fontThruline!==void 0&&(se.fontThruline=q.fontThruline),q.fontUnderline!==void 0&&(se.fontUnderline=q.fontUnderline),se.colId){case"v-g-rownum":se.value=H;break;case"v-g-status":se.value=x.getCodeValue(["C","U","D"],null,q.value);break;default:se.value=x.getValidValue(se,q.value)}return p.filterable&&se.colVisible&&p.filterValues.add(se.textContent),x.setGridDataRowCol(se,H,U),se},x.setCellDataFromColInfo=function(g,p){if(g.colId=p.colId,g.colIndex=p.colIndex,g.name=p.name,g.untarget=p.untarget,g.rowMerge=p.rowMerge,g.colMerge=p.colMerge,g.colVisible=p.colVisible,g.required=p.required,g.resizable=p.resizable,g.sortable=p.sortable,g.filterable=p.filterable,g.originWidth=p.originWidth,g.dataType=p.dataType,![].concat(l(Object.keys(W)),l(Object.keys(w.dataType))).includes(g.dataType))throw new Error("Please insert a valid dataType.");g.selectSize=p.selectSize,g.locked=p.locked,g.lockedColor=p.lockedColor,g.format=p.format,g.codes=ot(p.codes),g.defaultCode=p.defaultCode,g.maxLength=p.maxLength,g.maxByte=p.maxByte,g.maxNumber=p.maxNumber,g.minNumber=p.minNumber,g.roundNumber=p.roundNumber,g.align=p.align,g.verticalAlign=p.verticalAlign,g.overflowWrap=p.overflowWrap,g.wordBreak=p.wordBreak,g.whiteSpace=p.whiteSpace,g.backColor=p.backColor,g.fontColor=p.fontColor,g.fontBold=p.fontBold,g.fontItalic=p.fontItalic,g.fontThruline=p.fontThruline,g.fontUnderline=p.fontUnderline},x.getSortSpan=function(g,p){var B;return A[g].data.variables.sortToggle[p]?w.elements.sortAscSpan&&w.elements.sortAscSpan instanceof HTMLElement&&w.elements.sortAscSpan.nodeType===1?B=w.elements.sortAscSpan.cloneNode(!0):((B=document.createElement("span")).style.fontSize="0.5em",B.style.paddingLeft="5px",B.innerText="▲"):w.elements.sortDescSpan&&w.elements.sortDescSpan instanceof HTMLElement&&w.elements.sortDescSpan.nodeType===1?B=w.elements.sortDescSpan.cloneNode(!0):((B=document.createElement("span")).style.fontSize="0.5em",B.style.paddingLeft="5px",B.innerText="▼"),B._gridId=g,B.isChild=!0,B._type="sort",B.classList.add(g+"_sortSpan"),B.classList.add(A[g].data.variables.sortToggle[p]?g+"_ascSpan":g+"_descSpan"),B}}(v,et,Ve),function(w,A,x){x.__getDefaultColInfo=function(g,p){var B=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(!p||!p.colId)throw new Error("Column ID is required. (colId)");var H=A[g];if(B){var U,q=ge(H.data.colInfos);try{for(q.s();!(U=q.n()).done;){var oe=U.value;if(p.colId===oe.colId)throw new Error("Column ID is primary key. (colId)")}}catch(se){q.e(se)}finally{q.f()}}var de=x._getColDefaultAlign(p.dataType?p.dataType:w.attributes.defaultColInfo.dataType),he={colId:p.colId,name:p.name?p.name:p.colId,colIndex:0,header:p.header?Zt(H.methods.getHeaderRowCount(),p.header):Zt(H.methods.getHeaderRowCount(),p.colId),footer:p.footer?p.footer:null,untarget:p.untarget?p.untarget:H.data.gridInfo.selectionPolicy==="none",rowMerge:p.rowMerge?p.rowMerge:w.attributes.defaultColInfo.rowMerge,colMerge:p.colMerge?p.colMerge:w.attributes.defaultColInfo.colMerge,colVisible:p.colVisible?p.colVisible:w.attributes.defaultColInfo.colVisible,required:p.required?p.required:w.attributes.defaultColInfo.required,resizable:p.resizable?p.resizable:w.attributes.defaultColInfo.resizable,sortable:p.sortable?p.sortable:w.attributes.defaultColInfo.sortable,filterable:p.filterable?p.filterable:w.attributes.defaultColInfo.filterable,originWidth:p.originWidth?p.originWidth:w.attributes.defaultColInfo.originWidth,dataType:p.dataType?p.dataType:w.attributes.defaultColInfo.dataType,selectSize:p.selectSize?p.selectSize:w.attributes.defaultColInfo.selectSize,locked:p.locked?p.locked:H.data.gridInfo.locked,lockedColor:p.lockedColor?p.lockedColor:H.data.gridInfo.lockedColor,format:p.format?p.format:w.attributes.defaultColInfo.format,codes:p.codes?p.codes:w.attributes.defaultColInfo.codes,defaultCode:p.defaultCode?p.defaultCode:w.attributes.defaultColInfo.defaultCode,maxLength:p.maxLength?p.maxLength:w.attributes.defaultColInfo.maxLength,maxByte:p.maxByte?p.maxByte:w.attributes.defaultColInfo.maxByte,maxNumber:p.maxNumber?p.maxNumber:w.attributes.defaultColInfo.maxNumber,minNumber:p.minNumber?p.minNumber:w.attributes.defaultColInfo.minNumber,roundNumber:p.roundNumber?p.roundNumber:w.attributes.defaultColInfo.roundNumber,align:p.align?p.align:de,verticalAlign:p.verticalAlign?p.verticalAlign:w.attributes.defaultColInfo.verticalAlign,overflowWrap:p.overflowWrap?p.overflowWrap:w.attributes.defaultColInfo.overflowWrap,wordBreak:p.wordBreak?p.wordBreak:w.attributes.defaultColInfo.wordBreak,whiteSpace:p.whiteSpace?p.whiteSpace:w.attributes.defaultColInfo.whiteSpace,backColor:p.backColor?p.backColor:w.attributes.defaultColInfo.backColor,fontColor:p.fontColor?p.fontColor:w.attributes.defaultColInfo.fontColor,fontBold:p.fontBold?p.fontBold:w.attributes.defaultColInfo.fontBold,fontItalic:p.fontItalic?p.fontItalic:w.attributes.defaultColInfo.fontItalic,fontThruline:p.fontThruline?p.fontThruline:w.attributes.defaultColInfo.fontThruline,fontUnderline:p.fontUnderline?p.fontUnderline:w.attributes.defaultColInfo.fontUnderline,filterValues:new Set,filterValue:null};return he.filterValue=he.filterable?"$$ALL":null,he},x.__getColInfo=function(g,p){var B,H=arguments.length>2&&arguments[2]!==void 0&&arguments[2],U=A[g];if(typeof p=="number")B=U.data.colInfos[p-1];else{var q,oe=ge(U.data.colInfos);try{for(oe.s();!(q=oe.n()).done;){var de=q.value;de.colId===p&&(B=de)}}catch(he){oe.e(he)}finally{oe.f()}}if(!B){if(H)throw new Error("There is no "+(typeof p=="number"?p+"th":p)+" colunm.");return null}return B},x.__getColIndex=function(g,p){var B=arguments.length>2&&arguments[2]!==void 0&&arguments[2],H=A[g];if(typeof p=="number")return B&&x.__checkColIndex(g,p),p;var U,q=ge(H.data.colInfos);try{for(q.s();!(U=q.n()).done;){var oe=U.value;if(oe.colId===p)return oe.colIndex}}catch(de){q.e(de)}finally{q.f()}if(B)throw new Error("There is no "+(typeof p=="number"?p+"th":p)+" colunm.");return null},x.__setGridColSize=function(g){var p,B=[],H=A[g],U=ge(H.data.colInfos);try{for(U.s();!(p=U.n()).done;){var q=p.value;B.push(q.colVisible?q.originWidth:"0px")}}catch(de){U.e(de)}finally{U.f()}var oe=B.join(" ");if(oe.includes("%")&&H.data.gridInfo.frozenColCount!==0)throw new Error(g+" has error. If you set the horizontal size to a percentage, property A is not available.");H.elements.gridHeader.style.gridTemplateColumns=oe,H.elements.gridBody.style.gridTemplateColumns=oe,H.elements.gridFooter.style.gridTemplateColumns=oe},x._getCellChildNode=function(g){if(!g)return null;var p,B=g._gridId,H=A[B];switch(g.dataType){case"text":(p=document.createElement("span")).classList.add(B+"_data-value-text"),p.innerText=g.value,p.nType="text";break;case"number":(p=document.createElement("span")).classList.add(B+"_data-value-number"),g.value===null||g.value===void 0||g.value===H.data.gridInfo.nullValue?p.innerText=H.data.gridInfo.nullValue:p.innerText=x.getFormatNumberFromCell(g),p.nType="number";break;case"mask":(p=document.createElement("span")).classList.add(B+"_data-value-mask"),p.innerText=g.value,p.nType="mask";break;case"date":(p=document.createElement("span")).classList.add(B+"_data-value-date"),g.value===null||g.value===void 0||g.value===H.data.gridInfo.nullValue?p.innerText=H.data.gridInfo.nullValue:p.innerText=x.getDateWithGridDateFormat(g),p.nType="date";break;case"month":(p=document.createElement("span")).classList.add(B+"_data-value-month"),g.value===null||g.value===void 0||g.value===H.data.gridInfo.nullValue?p.innerText=H.data.gridInfo.nullValue:p.innerText=x.getDateWithGridMonthFormat(g),p.nType="month";break;case"select":Array.isArray(g.value)&&g.value.length>0?((p=document.createElement("select")).classList.add(B+"_data-value-select"),p.addEventListener("change",function(U){x.selectAndCheckboxOnChange(U.target)}),x.setSelectOptions(p,g.value),p.nType="select",g.selectSize&&(p.style.width=g.selectSize)):((p=document.createElement("span")).classList.add(B+"_data-value-text"),p.innerText=H.data.gridInfo.nullValue,p.nType="text");break;case"checkbox":(p=document.createElement("input")).classList.add(B+"_data-value-checkbox"),p.addEventListener("change",function(U){x.selectAndCheckboxOnChange(U.target)}),p.type="checkbox",p.nType="checkbox",x.getCheckboxCellTrueOrFalse(g)&&p.setAttribute("checked","");break;case"button":g.value===null||g.value===void 0||g.value===H.data.gridInfo.nullValue?((p=document.createElement("span")).classList.add(B+"_data-value-text"),p.innerText=H.data.gridInfo.nullValue,p.nType="text"):((p=document.createElement("button")).classList.add(B+"_data-value-button"),p.innerText=g.value,p.nType="button",p.addEventListener("touchstart",function(){p.classList.add("active")}),p.addEventListener("touchend",function(){p.classList.remove("active")}));break;case"link":g.value===null||g.value===void 0||g.value===H.data.gridInfo.nullValue?((p=document.createElement("span")).classList.add(B+"_data-value-text"),p.innerText=H.data.gridInfo.nullValue,p.nType="text"):((p=document.createElement("a")).classList.add(B+"_data-value-link"),p.innerText=g.value.text,p.setAttribute("href",g.value.value),p.setAttribute("target",g.value.target?g.value.target:"_blank"),p.nType="link");break;case"code":(p=document.createElement("span")).classList.add(B+"_data-value-code"),p.innerText=g.value,p.nType="code";break;default:w.dataType&&Object.keys(w.dataType).forEach(function(U){if(U===g.dataType){if(w.dataType[U].getChildNode){if(typeof w.dataType[U].getChildNode!="function")throw new Error("getChildNode must be a function.");if(p=w.dataType[U].getChildNode(B,x.__getData(g))){if(!(p instanceof HTMLElement)||p.nodeType!==1)throw new Error("getChildNode must return an html element.")}else(p=document.createElement("span")).innerText=g.value}else(p=document.createElement("span")).innerText=g.value;p.classList.add(B+"_data-value-"+U),p.nType=U}})}return p.classList.add(B+"_data-value"),p._type="gbdv",p},x.__loadHeader=function(g){var p=A[g];x.__setGridColSize(g),Qe(p.elements.gridHeader),p.elements.gridHeader._gridHeaderCells.length=0;for(var B=p.methods.getHeaderRowCount(),H=1;H<=B;H++){var U,q=[],oe=1,de=ge(p.data.colInfos);try{for(de.s();!(U=de.n()).done;){var he=U.value,se=document.createElement("div");se._gridId=g,se._type="ghd",se.rowVisible=!0,se.filter=!1,x.setCellDataFromColInfo(se,he);var me=he.header.split(";");if(se.value=me[H-1]?me[H-1].replaceAll("\\n",`
48
- `):"",x.setGridDataRowCol(se,H,oe),oe!==1){if(!me[H-1]){for(var Q=H-2;Q>=0;Q--)me[Q]&&(se.isRowMerge=!0);if(!se.isRowMerge)for(var u=oe-2;u>=0;u--)p.data.colInfos[u].header.split(";")[H-1]&&(se.isColMerge=!0)}}else H!==1&&(se.isRowMerge=!0);se.addEventListener("mousemove",function(pe){var Se=pe.target,ze=Se._gridId;if(ze){var je=A[ze];if(je&&(Se.style.cursor&&Se.style.removeProperty("cursor"),je.data.gridInfo.resizable&&Se._type==="ghd")){var Ue,it,rt=Se.getBoundingClientRect(),ct=rt.left,Ne=rt.right,Pe=pe.clientX;if(Pe-ct<20){if(Se.colIndex<=3||Se._frozenCol)return;for(var lt=Se.colIndex-1;lt>1&&(it=x._getHeaderCell(ze,1,lt)).colVisible!==!0;lt--);if(!it.resizable)return;Se.style.cursor="ew-resize",w._status.onHeaderDragging=!0,w._status.isHeaderDragging&&(Ue=Pe-w._status.mouseX,x.modifyColSize(it,Ue),w._status.mouseX=Pe)}else if(Ne-Pe<20){if(Se.colIndex<3||Se._frozenCol)return;for(var ae=Se.colIndex;ae>1&&(it=x._getHeaderCell(ze,1,ae)).colVisible!==!0;ae--);if(!it.resizable)return;Se.style.cursor="ew-resize",w._status.onHeaderDragging=!0,w._status.isHeaderDragging&&(Ue=Pe-w._status.mouseX,x.modifyColSize(it,Ue),w._status.mouseX=Pe)}else Se.style.cursor="",w._status.onHeaderDragging=!1}}}),se.addEventListener("mousedown",function(pe){w._status.mouseX=pe.clientX,w._status.onHeaderDragging&&(w._status.isHeaderDragging=!0)}),q.push(se),oe++}}catch(pe){de.e(pe)}finally{de.f()}p.elements.gridHeader._gridHeaderCells.push(q)}var b,_=ge(p.elements.gridHeader._gridHeaderCells);try{for(_.s();!(b=_.n()).done;){var R,F=ge(b.value);try{for(F.s();!(R=F.n()).done;){var D=R.value;p.elements.gridHeader.append(D),x.connectedGridData(D)}}catch(pe){F.e(pe)}finally{F.f()}}}catch(pe){_.e(pe)}finally{_.f()}var z=p.elements.gridHeader._gridHeaderCells;z.forEach(function(pe){pe.forEach(function(Se,ze){if(p.data.gridInfo.sortable&&Object.keys(p.data.variables.sortToggle).length>0&&B===Se.rowIndex)for(var je=B;je>0;je--){var Ue=z[je-1][ze];if(!Ue.isRowMerge&&!Ue.isColMerge&&p.data.variables.sortToggle[Ue.colId]!==void 0){var it=x.getSortSpan(p.data.id,Ue.colId);Ue.append(it);break}}p.data.gridInfo.filterable&&p.data.variables.filters.length>0&&Se.filterable&&Se._filterSelector&&p.data.variables.filters.forEach(function(rt){Se.colId===rt.colId&&(Se._filterSelector.style.display="block",requestAnimationFrame(function(){Array.from(Se._filterSelector.options).some(function(ct){return ct.value===rt.value})&&(Se._filterSelector.value=rt.value)}))})})})},x._getHeaderRow=function(g,p){return mt(A[g].elements.gridHeader._gridHeaderCells,p-1)},x._getHeaderCell=function(g,p,B){if(typeof B=="number")return mt(x._getHeaderRow(g,p),B-1);var H,U=ge(x._getHeaderRow(g,p));try{for(U.s();!(H=U.n()).done;){var q=H.value;if(q.colId===B)return q}}catch(oe){U.e(oe)}finally{U.f()}throw new Error("There is no "+(typeof B=="number"?B+"th":B)+" colunm.")},x._getHeaderCells=function(g){return A[g].elements.gridHeader._gridHeaderCells},x.__getHeaderFilter=function(g,p){var B,H,U=x.__getColIndex(g,p),q=A[g];if(!q.data.colInfos[U-1].filterable)return null;for(var oe=1;oe<=q.methods.getHeaderRowCount();oe++)if((B=x._getHeaderCell(g,oe,U))&&(H=B.querySelectorAll("."+g+"_filterSelect"))[0])return H[0];return null},x.__loadFooter=function(g){var p=A[g];Qe(p.elements.gridFooter),p.elements.gridFooter._gridFooterCells.length=0;for(var B=1;B<=p.methods.getFooterRowCount();B++){var H,U=[],q=1,oe=ge(p.data.colInfos);try{for(oe.s();!(H=oe.n()).done;){var de=H.value,he=document.createElement("div");he._gridId=g,he._type="gfd",he.rowVisible=!0,he.filter=!1,x.setCellDataFromColInfo(he,de),x.setGridDataRowCol(he,B,q),U.push(he),q++}}catch(_){oe.e(_)}finally{oe.f()}p.elements.gridFooter._gridFooterCells.push(U)}var se,me=ge(p.elements.gridFooter._gridFooterCells);try{for(me.s();!(se=me.n()).done;){var Q,u=ge(se.value);try{for(u.s();!(Q=u.n()).done;){var b=Q.value;p.elements.gridFooter.append(b),x.connectedGridData(b)}}catch(_){u.e(_)}finally{u.f()}}}catch(_){me.e(_)}finally{me.f()}},x._getFooterRow=function(g,p){var B=A[g];return mt(B.elements.gridFooter._gridFooterCells,p-1)},x._getFooterCell=function(g,p,B){if(typeof B=="number")return mt(x._getFooterRow(g,p),B-1);var H,U=ge(x._getFooterRow(g,p));try{for(U.s();!(H=U.n()).done;){var q=H.value;if(q.colId===B)return q}}catch(oe){U.e(oe)}finally{U.f()}throw new Error("There is no "+(typeof B=="number"?B+"th":B)+" colunm.")},x._getFooterCells=function(g){return A[g].elements.gridFooter._gridFooterCells},x._getRow=function(g,p){return A[g].elements.gridBody._gridBodyCells[p-1]},x._getCell=function(g,p,B){try{if(typeof B=="number")return A[g].elements.gridBody._gridBodyCells[p-1][B-1];var H,U=ge(A[g].elements.gridBody._gridBodyCells[p-1]);try{for(U.s();!(H=U.n()).done;){var q=H.value;if(q.colId===B)return q}}catch(oe){U.e(oe)}finally{U.f()}}catch{return null}return null},x._getCells=function(g){return A[g].elements.gridBody._gridBodyCells},x.__gridBodyCellsReConnected=function(g){if(A[g].data.variables.isDrawable){var p,B=ge(A[g].elements.gridBody._gridBodyCells);try{for(B.s();!(p=B.n()).done;){var H,U=ge(p.value);try{for(U.s();!(H=U.n()).done;){var q=H.value;x.reConnectedCallbackElement(q)}}catch(oe){U.e(oe)}finally{U.f()}}}catch(oe){B.e(oe)}finally{B.f()}}},x.__mountGridBodyCell=function(g){var p=A[g];if(p.data.variables.isDrawable){Qe(p.elements.gridBody);var B,H=ge(p.elements.gridBody._gridBodyCells);try{for(H.s();!(B=H.n()).done;){var U,q=ge(B.value);try{for(q.s();!(U=q.n()).done;){var oe=U.value;p.elements.gridBody.append(oe),x.connectedGridData(oe)}}catch(de){q.e(de)}finally{q.f()}}}catch(de){H.e(de)}finally{H.f()}x.reloadGridForMerge(g),p.methods.reloadFilterValue(),p.methods.reloadFooterValue()}},x.__clear=function(g){var p=A[g];p.elements.gridBody._gridBodyCells.length=0,p.data.variables.activeRows=[],p.data.variables.activeCols=[],p.data.variables.activeCells=[],p.data.variables.targetCell=null,p.data.variables.records=[],p.data.variables.recordseq=0},x.__checkRowIndex=function(g,p){if(!(p=Me(p))||p<1||p>A[g].methods.getRowCount())throw new Error("Please insert a row of valid range.")},x.__checkColRownumOrStatus=function(g){if(typeof g=="number"){if(g<=2)throw new Error("The row number or status columns info cannot be modified.")}else if(g==="v-g-rownum"||g==="v-g-status")throw new Error("The row number or status columns info cannot be modified.")},x.__checkColIndex=function(g,p){if(!(p=Me(p))||p<1||p>A[g].methods.getColCount())throw new Error("Please insert a col of valid range.")},x.___getDatasWithoutExceptedProperty=function(g){var p,B,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],U=[],q=ge(A[g].elements.gridBody._gridBodyCells);try{for(q.s();!(B=q.n()).done;){var oe=B.value;p=[];var de,he=ge(oe);try{for(he.s();!(de=he.n()).done;){var se=de.value,me=x.__getData(se,H);p.push(me)}}catch(Q){he.e(Q)}finally{he.f()}U.push(p)}}catch(Q){q.e(Q)}finally{q.f()}return U},x._doFilter=function(g){var p,B=A[g];if(B.data.variables.filters=[],B.elements.gridHeader.querySelectorAll("."+g+"_filterSelect").forEach(function(U){U.value!=="$$ALL"&&(p={colId:U.colId,value:U.value},x.__getColInfo(g,U.parentNode.parentNode.colIndex).filterValue=U.value,p.value!=="$$NULL"&&p.value!==null&&p.value!==void 0&&p.value!==""||(p.value=B.data.gridInfo.nullValue),B.data.variables.filters.push(p))}),B.data.variables.filters.length===0)x._getCells(g).forEach(function(U){U.forEach(function(q){q.filter=!1})});else{var H=1;x._getCells(g).forEach(function(U){var q=!1;U.forEach(function(oe){B.data.variables.filters.forEach(function(de){if(oe.colId===de.colId){var he=x.getTextFromCell(oe);Object.keys(w.dataType).forEach(function(se){if(oe.dataType===se&&w.dataType[se].getFilterValue){if(typeof w.dataType[se].getFilterValue!="function")throw new Error("getFilterValue must be a function.");he=w.dataType[se].getFilterValue(g,oe.value)}}),he!=de.value&&(q=!0)}})}),x._getRow(g,H).forEach(function(oe){oe.filter=q}),H++})}B.methods.load(B.methods.getDatas())},x.__gridCellReConnectedWithControlSpan=function(g){if(x.reConnectedCallbackElement(g),g.rowSpan)for(var p=g.rowIndex+1;p<g.rowIndex+g.rowSpan;p++)x.__gridCellReConnectedWithControlSpan(x._getCell(g._gridId,p,g.colIndex));if(g.colSpan)for(var B=g.colIndex+1;B<g.colIndex+g.colSpan;B++)x.__gridCellReConnectedWithControlSpan(x._getCell(g._gridId,g.rowIndex,B))},x.__getCellData=function(g,p){var B={};return x.setCellDataFromColInfo(B,g),B.value=null,B.rowIndex=p,B.filter=!1,B.rowVisible=!0,B},x.__getData=function(g){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],B={value:ot(g.value),colId:g.colId,rowIndex:g.rowIndex,colIndex:g.colIndex,name:g.name,untarget:g.untarget,rowMerge:g.rowMerge,colMerge:g.colMerge,colVisible:g.colVisible,required:g.required,resizable:g.resizable,sortable:g.sortable,filterable:g.filterable,originWidth:g.originWidth,dataType:g.dataType,selectSize:g.selectSize,locked:g.locked,lockedColor:g.lockedColor,format:g.format,codes:ot(g.codes),defaultCode:g.defaultCode,maxLength:g.maxLength,maxByte:g.maxByte,maxNumber:g.maxNumber,minNumber:g.minNumber,roundNumber:g.roundNumber,align:g.align,verticalAlign:g.verticalAlign,overflowWrap:g.overflowWrap,wordBreak:g.wordBreak,whiteSpace:g.whiteSpace,backColor:g.backColor,fontColor:g.fontColor,fontBold:g.fontBold,fontItalic:g.fontItalic,fontThruline:g.fontThruline,fontUnderline:g.fontUnderline,filter:g.filter};return B.text=x.getTextFromCell(g),g.rowSpan&&(B.rowSpan=g.rowSpan),g.colSpan&&(B.colSpan=g.colSpan),g.isRowMerge&&(B.isRowMerge=g.isRowMerge),g.isColMerge&&(B.isColMerge=g.isColMerge),g.rowVisible&&(B.rowVisible=g.rowVisible),p&&(p.indexOf("untarget")>=0&&(B.untarget=null),p.indexOf("colVisible")>=0&&(B.colVisible=null),p.indexOf("rowVisible")>=0&&(B.rowVisible=null),p.indexOf("required")>=0&&(B.required=null),p.indexOf("resizable")>=0&&(B.resizable=null),p.indexOf("originWidth")>=0&&(B.originWidth=null),p.indexOf("dataType")>=0&&(B.dataType=null),p.indexOf("selectSize")>=0&&(B.selectSize=null),p.indexOf("locked")>=0&&(B.locked=null),p.indexOf("lockedColor")>=0&&(B.lockedColor=null),p.indexOf("format")>=0&&(B.format=null),p.indexOf("codes")>=0&&(B.codes=null),p.indexOf("defaultCode")>=0&&(B.defaultCode=null),p.indexOf("maxLength")>=0&&(B.maxLength=null),p.indexOf("maxByte")>=0&&(B.maxByte=null),p.indexOf("maxNumber")>=0&&(B.maxNumber=null),p.indexOf("minNumber")>=0&&(B.minNumber=null),p.indexOf("roundNumber")>=0&&(B.roundNumber=null),p.indexOf("align")>=0&&(B.align=null),p.indexOf("verticalAlign")>=0&&(B.verticalAlign=null),p.indexOf("backColor")>=0&&(B.backColor=null),p.indexOf("fontColor")>=0&&(B.fontColor=null),p.indexOf("fontBold")>=0&&(B.fontBold=null),p.indexOf("fontItalic")>=0&&(B.fontItalic=null),p.indexOf("fontThruline")>=0&&(B.fontThruline=null),p.indexOf("fontUnderline")>=0&&(B.fontUnderline=null),p.indexOf("filter")>=0&&(B.filter=null),p.indexOf("value")>=0&&(B.value=null)),B},x.__setCellData=function(g,p,B,H){var U=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4];x.__checkRowIndex(g,p);var q=x.__getColIndex(g,B,!0);if(q<=2){if(U)throw new Error("The row number or status columns are immutable.");return!1}var oe=x._getCell(g,p,q);if(H.untarget&&(oe.untarget=H.untarget),H.dataType){if(![].concat(ie(Object.keys(W)),ie(Object.keys(w.dataType))).includes(H.dataType))throw new Error("Please insert a valid dataType.");oe.dataType=H.dataType}return H.selectSize&&(oe.selectSize=H.selectSize),H.locked&&(oe.locked=H.locked),H.lockedColor&&(oe.lockedColor=H.lockedColor),H.format&&(oe.format=H.format),H.codes&&(oe.codes=H.codes),H.defaultCode&&(oe.defaultCode=H.defaultCode),H.maxLength&&(oe.maxLength=H.maxLength),H.maxByte&&(oe.maxByte=H.maxByte),H.maxNumber&&(oe.maxNumber=H.maxNumber),H.minNumber&&(oe.minNumber=H.minNumber),H.roundNumber&&(oe.roundNumber=H.roundNumber),H.align&&(oe.align=H.align),H.verticalAlign&&(oe.verticalAlign=H.verticalAlign),H.overflowWrap&&(oe.overflowWrap=H.overflowWrap),H.wordBreak&&(oe.wordBreak=H.wordBreak),H.whiteSpace&&(oe.whiteSpace=H.whiteSpace),H.backColor&&(oe.backColor=H.backColor),H.fontColor&&(oe.fontColor=H.fontColor),H.fontBold&&(oe.fontBold=H.fontBold),H.fontItalic&&(oe.fontItalic=H.fontItalic),H.fontThruline&&(oe.fontThruline=H.fontThruline),H.fontUnderline&&(oe.fontUnderline=H.fontUnderline),H.value&&(oe.value=H.value),x.reConnectedCallbackElement(oe),x.reloadGridWithModifyCell(g,oe.colIndex),!0},x._getDataTypeStyle=function(){var g={};return Object.keys(w.dataType).forEach(function(p){w.dataType[p].cellStyle&&(g[p]=w.dataType[p].cellStyle)}),g},x._getFilterSpan=function(){return w.elements.filterSpan},x._getFooterFormula=function(){return ot(w.footerFormula)},x._getColDefaultAlign=function(g){switch(g){case"text":case"mask":return r.left;case"number":return r.right;case"date":case"month":case"select":case"checkbox":case"button":case"link":case"code":return r.center;default:return w.attributes.defaultColInfo.align}}}(v,et,Ve),function(w,A,x){x.isCellVisible=function(g){return!!g&&!(g.colVisible===!1||g.rowVisible===!1||g.filter===!0)},x.getFirstCellValidNumber=function(g){for(var p,B,H=g._gridId,U=1;U<A[H].methods.getRowCount();U++)if(B=x._getCell(H,U,g.colIndex),x.isCellVisible(B)&&(p=Et(B.value)))return p;return null},x.removeGridEditor=function(){if(!w._status.activeGridEditor)return!1;var g=w._status.activeGridEditor.targetCell,p=g._gridId;return A[p].events.onEditEnding(g.rowIndex,g.colId,w._status.editOldValue,w._status.editNewValue),g.style.padding="",g.style.fontSize="",w._status.activeGridEditor.parentNode.removeChild(w._status.activeGridEditor),w._status.activeGridEditor=null,!0},x.addBagicEventListenerToGridEditor=function(g){g.addEventListener("keydown",function(p){var B,H=w._status.activeGrid,U=H.data.variables.targetCell;if(H.events.onKeydownEditor(p)===!1)return p.stopPropagation(),void p.preventDefault();switch(p.key){case"Enter":p.shiftKey||(x.modifyCell(w),B=x.getMoveRowCell(U,1),x.selectCell(B),p.stopPropagation(),p.preventDefault());break;case"Escape":w._status.editNewValue=w._status.editOldValue,x.removeGridEditor(),p.stopPropagation(),p.preventDefault();break;case"Tab":x.modifyCell(w),B=x.getTabCell(U,p.shiftKey),x.selectCell(B),p.stopPropagation(),p.preventDefault();break;case"F2":x.modifyCell(w),p.stopPropagation(),p.preventDefault()}}),g.addEventListener("input",function(p){w._status.activeGrid.events.onInputEditor(p)})},x.setBagicAttributesToGridEditor=function(g,p){g._gridId=p._gridId,g.targetCell=p,g.style.width=p.offsetWidth+"px",g.style.height=p.scrollHeight+g.offsetHeight-g.clientHeight+"px",g.classList.add(g._gridId+"_editor")},x.createGridEditorTextarea=function(g){var p=document.createElement("textarea");x.setBagicAttributesToGridEditor(p,g),p.placeholder,p.classList.add(p._gridId+"_editor_textarea");var B=A[g._gridId].data.gridInfo.nullValue===g.value?null:g.value;return w._status.editOldValue=B,p.value=w._status.editOldValue,p.addEventListener("input",function(H){H.target.style.height=H.target.scrollHeight+p.offsetHeight-p.clientHeight+"px"},!1),p.addEventListener("keyup",function(H){H.target.value&&H.target.parentNode&&H.target.parentNode.maxLength&&(H.target.value=H.target.value.substring(0,H.target.parentNode.maxLength)),H.target.value&&H.target.parentNode&&H.target.parentNode.maxByte&&(H.target.value=De(H.target.value,H.target.parentNode.maxByte,w.checkByte))},!1),x.addBagicEventListenerToGridEditor(p),p},x.createGridEditorNumber=function(g){var p=document.createElement("input");x.setBagicAttributesToGridEditor(p,g),p.classList.add(p._gridId+"_editor_number"),p.setAttribute("type","number");var B=A[g._gridId].data.gridInfo.nullValue===g.value?null:g.value;return w._status.editOldValue=B,p.value=w._status.editOldValue,x.addBagicEventListenerToGridEditor(p),p},x.createGridEditorDate=function(g){var p=document.createElement("input");return x.setBagicAttributesToGridEditor(p,g),p.classList.add(p._gridId+"_editor_date"),p.setAttribute("type","date"),w._status.editOldValue=x.getDateWithInputDateFormat(g.value),p.value=w._status.editOldValue,x.addBagicEventListenerToGridEditor(p),p},x.createGridEditorMonth=function(g){var p=document.createElement("input");return x.setBagicAttributesToGridEditor(p,g),p.classList.add(p._gridId+"_editor_month"),p.setAttribute("type","month"),w._status.editOldValue=x.getDateWithInputMonthFormat(g.value),p.value=w._status.editOldValue,x.addBagicEventListenerToGridEditor(p),p},x.createGridEditorMask=function(g){var p=document.createElement("input");x.setBagicAttributesToGridEditor(p,g),p.classList.add(p._gridId+"_editor_mask"),p.setAttribute("type","text");var B=A[g._gridId].data.gridInfo.nullValue===g.value?null:g.value;return w._status.editOldValue=B,p.value=w._status.editOldValue,p.addEventListener("keyup",function(H){H.target.value=x.getMaskValue(H.target.targetCell.format,H.target.value)}),x.addBagicEventListenerToGridEditor(p),p},x.createGridEditorCode=function(g){var p=document.createElement("input");x.setBagicAttributesToGridEditor(p,g),p.classList.add(p._gridId+"_editor_code"),p.setAttribute("type","text");var B=g.value;return w._status.editOldValue=B,p.value=w._status.editOldValue,x.addBagicEventListenerToGridEditor(p),p},x.createGridEditor=function(g){var p=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(!(g.locked||g.untarget||["select","checkbox","button","link"].indexOf(g.dataType)>=0)){var B;switch(x.removeGridEditor(),g.dataType){case"text":B=x.createGridEditorTextarea(g);break;case"number":B=x.createGridEditorNumber(g);break;case"date":B=x.createGridEditorDate(g);break;case"month":B=x.createGridEditorMonth(g);break;case"mask":B=x.createGridEditorMask(g);break;case"code":B=x.createGridEditorCode(g);break;default:Object.keys(w.dataType).forEach(function(H){if(g.dataType===H&&w.dataType[H].getEditor){if(typeof w.dataType[H].getEditor!="function")throw new Error("getEditor must be a function.");if(B=w.dataType[H].getEditor(g,g._gridId,x.__getData(g),function(){x.modifyCell(w)},function(){w._status.editNewValue=w._status.editOldValue,x.removeGridEditor()})){if(!(B instanceof HTMLElement)||B.nodeType!==1)throw new Error("getEditor must return an html element.");B._gridId=g._gridId,B.targetCell=g,B.classList.add(B._gridId+"_editor_"+H),B.classList.add(B._gridId+"_editor"),w._status.editOldValue=g.value}}})}A[g._gridId].events.onBeforeEditEnter(g.rowIndex,g.colId,B)!==!1&&B&&(g.style.padding="0",g.style.fontSize="0px",g.appendChild(B),B.focus(),p&&B.select(),w._status.activeGridEditor=B,A[g._gridId].events.onAfterEditEnter(g.rowIndex,g.colId,B))}},x.getValidValue=function(g,p){var B=_e(A[g._gridId].data.gridInfo.nullValue,null);if(!g)return null;if(g.dataType!=="code"&&(p==null||p===""||p===B))return B;switch(g.dataType){case"text":return g.maxLength&&(p=p.substring(0,g.maxLength)),g.maxByte&&(p=De(p,g.maxByte,w.checkByte)),p;case"mask":return _e(x.getMaskValue(g.format,p),B);case"date":return _e(x.getDateWithValueDateFormat(p),B);case"month":return _e(x.getDateWithValueMonthFormat(p),B);case"number":if((p=Et(p))===null)return B;var H=g.maxNumber,U=g.minNumber,q=g.roundNumber;H!=null&&typeof H=="number"&&p>H&&(p=H),U!=null&&typeof U=="number"&&p<U&&(p=U);var oe=parseFloat(p);if(q==null||typeof q!="number")return Number(p);if(q>=0){var de=oe.toFixed(q);return de=(de=de.replace(/(\.[0-9]*?)0+$/,"$1")).replace(/\.$/,""),Number(de)}var he=Math.pow(10,-q);return Number((Math.round(oe/he)*he).toFixed(-q));case"select":case"button":case"link":return p;case"checkbox":return typeof p=="boolean"?p:A[g._gridId].data.gridInfo.checkedValue===p;case"code":return x.getCodeValue(g.codes,g.defaultCode,p);default:return w.dataType&&Object.keys(w.dataType).forEach(function(se){if(g.dataType===se&&w.dataType[se].getValue){if(typeof w.dataType[se].getValue!="function")throw new Error("getValue must be a function.");p=w.dataType[se].getValue(g._gridId,p)}}),p}},x.getTextFromCell=function(g){if(!g)return"";var p="",B=_e(g.value,A[g._gridId].data.gridInfo.nullValue);switch(g.dataType){case"number":p=B===A[g._gridId].data.gridInfo.nullValue?B:_e(x.getFormatNumberFromCell(g),A[g._gridId].data.gridInfo.nullValue);break;case"date":p=B===A[g._gridId].data.gridInfo.nullValue?B:_e(x.getDateWithGridDateFormat(g),A[g._gridId].data.gridInfo.nullValue);break;case"month":p=B===A[g._gridId].data.gridInfo.nullValue?B:_e(x.getDateWithGridMonthFormat(g),A[g._gridId].data.gridInfo.nullValue);break;case"select":if(Array.isArray(g.value)&&g.value.length>0){p=g.value[0].text;var H,U=Le(g.value);try{for(U.s();!(H=U.n()).done;){var q=H.value;q.selected&&(p=q.text)}}catch(oe){U.e(oe)}finally{U.f()}p==null&&(p=A[g._gridId].data.gridInfo.nullValue)}break;case"link":p=g.value&&g.value.text?g.value.text:B;break;default:p=B,w.dataType?Object.keys(w.dataType).forEach(function(oe){if(g.dataType===oe&&w.dataType[oe].getText){if(typeof w.dataType[oe].getText!="function")throw new Error("getText must be a function.");p=w.dataType[oe].getText(g._gridId,p)}}):p=String(B)}return p},x.getFormatNumber=function(g,p){if(!g||p==null)return Number(p);var B=g.match(/^(.*?)([#0,.]+)(.*?)$/);if(!B)return Number(p);var H=function(R){return isNaN(R)||!isFinite(R)?0:Number(R)},U=function(R){return isNaN(R)||!isFinite(R)?0:parseFloat(R)},q=B[1],oe=B[2],de=B[3],he=oe.split(".")[0],se=oe.split(".").length>1?oe.split(".")[1]:"";de!=="%"&&de!==" %"||(p*=100);var me,Q=String(p),u=Q[0]==="-",b=(Q=u?Q.substring(1):Q).split(".")[0],_=Q.split(".").length>1?Q.split(".")[1]:"";switch(_=(_=U("0."+_).toLocaleString("en",{minimumFractionDigits:se.lastIndexOf("0")+1,maximumFractionDigits:se.length}))==="0"?"":_.substring(1),he){case"#,###":me=H(b)===0?_:(b=U(b).toLocaleString("en"))+_;break;case"#,##0":me=(b=U(b).toLocaleString("en"))+_;break;case"#":me=H(b)===0?_:b+_;break;case"0":me=b+_;break;default:return p}return q+(me=u?"-"+me:me)+de},x.getFormatNumberFromCell=function(g){return g.format?g.value===null||g.value===void 0?null:x.getFormatNumber(g.format,g.value):g.value},x.getDateWithValueDateFormat=function(g){if(!g||typeof g!="string")return null;var p=/^(\d{4})[-/.]? ?(\d{2})[-/.]? ?(\d{2})$/.exec(g.replace(/\s+/g,""));if(!p)return null;var B=p[1],H=p[2],U=p[3];return nt(B,H,U)?"".concat(B).concat(H).concat(U):null},x.getDateWithValueMonthFormat=function(g){if(!g||typeof g!="string")return null;g=g.replace(/\s+/g,"");var p,B,H=/^(\d{4})[-/.]? ?(\d{2})[-/.]? ?(\d{2})?$/.exec(g),U=/^(\d{4})[-/.]? ?(\d{2})$/.exec(g);if(H)p=H[1],B=H[2];else{if(!U)return null;p=U[1],B=U[2]}return nt(p,B,"01")?"".concat(p).concat(B):null},x.getDateWithInputDateFormat=function(g){if(!g||typeof g!="string")return null;var p=/^(\d{4})[-/.]?(\d{2})[-/.]?(\d{2})$/.exec(g);if(!p)return null;var B=p[1],H=p[2],U=p[3];return nt(B,H,U)?"".concat(B,"-").concat(H,"-").concat(U):null},x.getDateWithInputMonthFormat=function(g){if(!g||typeof g!="string")return null;var p=/^(\d{4})[-/.]?(\d{2})$/.exec(g);if(!p)return null;var B=p[1],H=p[2];return nt(B,H,"01")?"".concat(B,"-").concat(H):null},x.getDateWithGridDateFormat=function(g){var p=/^(\d{4})[-/.]?(\d{2})[-/.]?(\d{2})$/.exec(g.value);if(!p)return null;var B=p[1],H=p[2],U=p[3];if(!nt(B,H,U))return null;switch(A[g._gridId].data.gridInfo.dateFormat){case"yyyy-mm-dd":default:return"".concat(B,"-").concat(H,"-").concat(U);case"yyyy/mm/dd":return"".concat(B,"/").concat(H,"/").concat(U);case"yyyy. mm. dd":return"".concat(B,". ").concat(H,". ").concat(U);case"yyyymmdd":return"".concat(B).concat(H).concat(U);case"mm-dd-yyyy":return"".concat(H,"-").concat(U,"-").concat(B);case"mm/dd/yyyy":return"".concat(H,"/").concat(U,"/").concat(B);case"mm. dd. yyyy":return"".concat(H,". ").concat(U,". ").concat(B);case"mmddyyyy":return"".concat(H).concat(U).concat(B);case"dd-mm-yyyy":return"".concat(U,"-").concat(H,"-").concat(B);case"dd/mm/yyyy":return"".concat(U,"/").concat(H,"/").concat(B);case"dd. mm. yyyy":return"".concat(U,". ").concat(H,". ").concat(B);case"ddmmyyyy":return"".concat(U).concat(H).concat(B)}},x.getDateWithGridMonthFormat=function(g){var p=/^(\d{4})[-/.]?(\d{2})$/.exec(g.value);if(!p)return null;var B=p[1],H=p[2];if(!nt(B,H,"01"))return null;switch(A[g._gridId].data.gridInfo.monthFormat){case"yyyy-mm":default:return"".concat(B,"-").concat(H);case"yyyy/mm":return"".concat(B,"/").concat(H);case"yyyy. mm":return"".concat(B,". ").concat(H);case"yyyymm":return"".concat(B).concat(H);case"mm-yyyy":return"".concat(H,"-").concat(B);case"mm/yyyy":return"".concat(H,"/").concat(B);case"mm. yyyy":return"".concat(H,". ").concat(B);case"mmyyyy":return"".concat(H).concat(B)}},x.getCheckboxCellTrueOrFalse=function(g){var p=g.value,B=A[g._gridId].data.gridInfo.checkedValue,H=A[g._gridId].data.gridInfo.uncheckedValue;return typeof p=="boolean"?(g.value=p?B:H,p):p===B||(g.value=H,!1)},x.getCodeValue=function(g,p,B){return g&&Array.isArray(g)&&g.indexOf(B)>=0?B:p},x.getMaskValue=function(g,p){if(typeof g!="string"||typeof p!="string")return null;var B,H=g.split(""),U=p.split(""),q="";return H.every(function(oe,de){switch(B=!1,oe){case"A":/^[A-Z]$/.test(U[de])?(q+=U[de],B=!0):/^[a-z]$/.test(U[de])&&(q+=(he=U[de])&&typeof he=="string"?he.toUpperCase():"",B=!0);break;case"a":/^[a-z]$/.test(U[de])?(q+=U[de],B=!0):/^[A-Z]$/.test(U[de])&&(q+=Te(U[de]),B=!0);break;case"9":/^[0-9]$/.test(U[de])&&(q+=U[de],B=!0);break;default:oe===U[de]&&(q+=U[de],B=!0)}var he;return B}),q},x.setSelectOptions=function(g,p){Array.isArray(p)&&(Qe(g),p.forEach(function(B){var H=document.createElement("option");H.value=B.value,H.textContent=B.text,B.selected&&H.setAttribute("selected",""),B.disabled&&H.setAttribute("disabled",""),B.label&&H.setAttribute("label",B.label),g.appendChild(H)}))},x.getSelectOptions=function(g){if(!g)return null;var p=g.options;if(!p)return null;var B,H=[],U=Le(p);try{for(U.s();!(B=U.n()).done;){var q=B.value,oe={value:q.value,text:q.textContent};q.selected&&(oe.selected=!0),q.disabled&&(oe.disabled=!0),q.label&&(oe.label=q.label),H.push(oe)}}catch(de){U.e(de)}finally{U.f()}return H.length===0?null:H}}(v,et,Ve),function(w,A){A.connectedGridHeader=function(x){var g=w[x];if(g){var p=w[x].elements.gridHeader;if(!p.style.gridTemplateColumns.includes("%")){for(var B=0,H=1;H<g.methods.getColCount();H++)B+=Ie(g.methods.getColOriginWidth(H)).number;p.style.width=B+"px"}}},A.connectedGridBody=function(x){var g=w[x];if(g){var p=w[x].elements.gridBody;if(!p.style.gridTemplateColumns.includes("%")){for(var B=0,H=1;H<g.methods.getColCount();H++)B+=Ie(g.methods.getColOriginWidth(H)).number;p.style.width=B+"px"}}},A.connectedGridFooter=function(x){var g=w[x];if(g){var p=w[x].elements.gridFooter;if(!p.style.gridTemplateColumns.includes("%")){var B=0;if(!A._getFooterCells(x)||A._getFooterCells(x).length<=0)return;for(var H=1;H<g.methods.getColCount();H++)B+=Ie(g.methods.getColOriginWidth(H)).number;p.style.width=B+"px"}}},A.connectedGridData=function(x){var g=x._gridId,p=w[g],B=p.methods.getGridInfo();switch(x.style.removeProperty("display"),x.style.removeProperty("align-items"),x.style.removeProperty("justify-content"),x.style.removeProperty("text-align"),x.style.removeProperty("z-index"),x._type){case"ghd":if(x.innerText=x.value,B.frozenRowCount<=0&&x.colIndex<=B.frozenColCount){for(var H,U=0,q=x.colIndex-1;q>0;q--)if(H=A._getHeaderCell(g,x.rowIndex,q))if(H.isRowMerge){for(var oe=x.rowIndex-1,de=A._getHeaderCell(g,oe,q);de&&!(oe<0)&&de.isRowMerge;)oe--,de=A._getHeaderCell(g,oe,q);U+=de.offsetWidth}else U+=A._getHeaderCell(g,x.rowIndex,q).offsetWidth;else U+=0;x.style.position="sticky",x.style.zIndex=String(300+p.methods.getColCount()-x.colIndex),x.style.left=U+"px",x._frozenCol=!0}if(x.isRowMerge){for(var he=x.rowIndex-1,se=A._getHeaderCell(g,he,x.colIndex);se&&!(he<0);){if(!se.isRowMerge){se.style.gridRowEnd=x.style.gridRowEnd,se.rowSpan=se.rowSpan?se.rowSpan+1:1,se.style.zIndex=se.style.zIndex?se.style.zIndex:"250";break}he--,se=A._getHeaderCell(g,he,x.colIndex)}x.style.display="none"}if(x.isColMerge){for(var me=x.colIndex-1,Q=A._getHeaderCell(g,x.rowIndex,me);Q&&!(me<0);){if(!Q.isColMerge){if(Q.colId==="v-g-rownum"||Q.colId==="v-g-status")break;Q.style.gridColumnEnd=x.style.gridColumnEnd,Q.colSpan=Q.colSpan?Q.colSpan+1:1,Q.style.zIndex=Q.style.zIndex?Q.style.zIndex:"250";break}me--,Q=A._getHeaderCell(g,x.rowIndex,me)}x.style.display="none"}if(x.colVisible&&x.rowVisible||(x.style.display="none"),p.methods.getHeaderRowCount()===x.rowIndex){var u=x;if(x.isRowMerge)for(var b=x.rowIndex-1;b>0&&!(u=A._getHeaderCell(g,b,x.colIndex)).rowSpan;b--);u&&(u._isLastCell=!0)}if(B.filterable===!0&&p.methods.getColInfo(x.colId).filterable&&p.methods.getHeaderRowCount()===x.rowIndex&&x.colId!=="v-g-rownum"&&x.colId!=="v-g-status"){var _,R=A._getFilterSpan();R&&R instanceof HTMLElement&&R.nodeType===1?_=R.cloneNode(!0):(_=document.createElement("span")).innerText="σ",_._gridId=x._gridId,_.isChild=!0,_._type="filter",_.classList.add(x._gridId+"_filterSpan");var F=document.createElement("select");F.classList.add(x._gridId+"_filterSelect"),F.style.display="none",F._gridId=x._gridId,F.colId=x.colId,F.addEventListener("mousedown",function(Ct){Ct.target.filterOldValue=Ct.target.value}),F.addEventListener("change",function(Ct){var jt=Ct.target.value,rn=Ct.target._gridId;if(w[rn].events.onChooseFilter(Ct.target.parentNode.parentNode.rowIndex,Ct.target.parentNode.parentNode.colId,Ct.target.filterOldValue,jt)===!1)return Ct.stopPropagation(),void Ct.preventDefault();A._doFilter(rn),jt==="$$ALL"&&(Ct.target.style.display="none")}),_.append(F);var D=x;if(x.isRowMerge)for(var z=x.rowIndex-1;z>0&&!(D=A._getHeaderCell(g,z,x.colIndex)).rowSpan;z--);D&&(D.insertBefore(_,D.firstChild),D._filterSelector=F)}x.classList.add(x._gridId+"_h-v-g-d");break;case"gfd":if(B.frozenRowCount<=0&&x.colIndex<=B.frozenColCount){for(var pe,Se=0,ze=x.colIndex-1;ze>0;ze--)if(pe=A._getFooterCell(g,x.rowIndex,ze))if(pe.isRowMerge){for(var je=x.rowIndex-1,Ue=A._getFooterCell(g,je,ze);Ue&&!(je<0)&&Ue.isRowMerge;)je--,Ue=A._getFooterCell(g,je,ze);Se+=Ue.offsetWidth}else Se+=A._getFooterCell(g,x.rowIndex,ze).offsetWidth;else Se+=0;x.style.position="-webkit-sticky",x.style.zIndex="300",x.style.left=Se+"px",x._frozenCol=!0}var it=p.data.colInfos[x.colIndex-1].footer;Array.isArray(it)||(it=null);var rt=it&&it.length>=x.rowIndex-1?it[x.rowIndex-1]:null;if(rt){var ct;x.classList.add(x._gridId+"_f-v-g-d-value");try{ct=A._getFooterCell(g,x.rowIndex,x.colIndex-1)}catch{ct=null}if(ct&&ct.classList.add(x._gridId+"_f-v-g-d-value"),Object.values(re).includes(rt)){var Ne,Pe,lt;switch(rt){case"$$MAX":if(x.style.justifyContent="right",x.style.textAlign="right",p.methods.getRowCount()>0){Ne=Pe=A.getFirstCellValidNumber(x);for(var ae=2;ae<=p.methods.getRowCount();ae++)lt=A._getCell(g,ae,x.colIndex),A.isCellVisible(lt)&&(Pe=Et(lt.value))!==null&&Pe>Ne&&(Ne=Pe)}break;case"$$MIN":if(x.style.justifyContent="right",x.style.textAlign="right",p.methods.getRowCount()>0){Ne=Pe=A.getFirstCellValidNumber(x);for(var te=2;te<=p.methods.getRowCount();te++)lt=A._getCell(g,te,x.colIndex),A.isCellVisible(lt)&&(Pe=Et(lt.value))!==null&&Pe<Ne&&(Ne=Pe)}break;case"$$SUM":if(x.style.justifyContent="right",x.style.textAlign="right",p.methods.getRowCount()>0){Ne=0;for(var ht=1;ht<=p.methods.getRowCount();ht++)lt=A._getCell(g,ht,x.colIndex),A.isCellVisible(lt)&&(Ne=Math.round(1e5*(Ne+nn(lt.value)))/1e5)}break;case"$$AVG":if(x.style.justifyContent="right",x.style.textAlign="right",p.methods.getRowCount()>0){Ne=0,Pe=0;for(var d=0,y=1;y<=p.methods.getRowCount();y++)lt=A._getCell(g,y,x.colIndex),A.isCellVisible(lt)&&(Ne=Math.round(1e5*(Ne+nn(lt.value)))/1e5,lt.value===null||lt.value===void 0||isNaN(lt.value)||d++);Ne=d===0?null:(Ne/d).toFixed(2)}}Ne=Ne==null?"-":A.getFormatNumber(p.methods.getColFormat(x.colIndex),Ne),x.innerText=Ne,x.value=Ne}else if(typeof rt=="function"){var M=rt(p.methods.getValues());x.innerText=M,x.value=M}else{x.innerText=rt,x.value=rt;var S=A._getFooterFormula();S&&S.constructor===Object&&Object.keys(S).forEach(function(Ct){if(rt===Ct){var jt=S[Ct](p.methods.getColValues(x.colIndex));x.innerText=jt,x.value=jt}})}}x.align&&(x.style.justifyContent=x.align,x.style.textAlign=x.align),x.colIndex===p.methods.getColCount()&&x.classList.add(x._gridId+"_f-v-g-d-value"),x.colVisible&&x.rowVisible||(x.style.display="none"),x.classList.add(x._gridId+"_f-v-g-d");break;case"gbd":switch(x.dataType){case"text":case"mask":x.style.justifyContent="left",x.style.textAlign="left";break;case"number":x.style.justifyContent="right",x.style.textAlign="right";break;case"date":case"month":case"code":case"select":case"checkbox":case"button":case"link":x.style.justifyContent="center",x.style.textAlign="center";break;default:x.style.justifyContent="center",x.style.textAlign="center";var N=A._getDataTypeStyle();Object.keys(N).forEach(function(Ct){if(x.dataType===Ct){if(N[Ct].constructor!==Object)throw new Error("Cellstyle can only be inserted in object type.");Object.keys(N[Ct]).forEach(function(jt){x.style[jt]=N[Ct][jt]})}})}for(;x.firstChild;)x.removeChild(x.firstChild);if(x.append(A._getCellChildNode(x)),x.rowIndex<=B.frozenRowCount){for(var O,T=p.elements.gridHeader.offsetHeight,G=0,V=x.rowIndex-1;V>0;V--)if(O=A._getCell(g,V,x.colIndex))if(O.isColMerge){for(var Z=x.colIndex-1,ne=A._getCell(g,V,Z);ne&&!(Z<0)&&ne.isColMerge;)Z--,ne=A._getCell(g,V,Z);G+=ne.offsetHeight}else G+=A._getCell(g,V,x.colIndex).offsetHeight;else G+=0;x.style.position="sticky",x.style.zIndex="200",x.style.top=T+G+"px",x.rowIndex===B.frozenRowCount&&(x.style.borderBottom=B.cssInfo.verticalBorderSize+"px solid "+B.cssInfo.headerCellBorderColor),x._frozenCol=!0}if(B.frozenRowCount<=0&&x.colIndex<=B.frozenColCount){for(var Y,le=0,qe=x.colIndex-1;qe>0;qe--)if(Y=A._getCell(g,x.rowIndex,qe))if(Y.isRowMerge){for(var _t=x.rowIndex-1,on=A._getCell(g,_t,qe);on&&!(_t<0)&&on.isRowMerge;)_t--,on=A._getCell(g,_t,qe);le+=on.offsetWidth}else le+=A._getCell(g,x.rowIndex,qe).offsetWidth;else le+=0;x.style.position="sticky",x.style.zIndex="200",x.colIndex===B.frozenColCount&&(x.style.borderRight=B.cssInfo.verticalBorderSize+"px solid "+B.cssInfo.headerCellBorderColor),x.style.left=le+"px",x._frozenRow=!0}if(x.isRowMerge){for(var Ft=x.rowIndex-1,Gt=A._getCell(g,Ft,x.colIndex);Gt&&!(Ft<0);){if(!Gt.isRowMerge){Gt.style.gridRowEnd=x.style.gridRowEnd,Gt.verticalAlign||(Gt.style.alignItems="center"),Gt.style.zIndex=Gt.style.zIndex?Gt.style.zIndex:"50";break}Ft--,Gt=A._getCell(g,Ft,x.colIndex)}A.isCellVisible(Gt)&&(x.style.display="none")}if(x.isColMerge){for(var St=x.colIndex-1,At=A._getCell(g,x.rowIndex,St);At&&!(St<0);){if(!At.isColMerge){At.style.gridColumnEnd=x.style.gridColumnEnd,At.align||(At.style.justifyContent="center"),At.align||(At.style.textAlign="center"),At.verticalAlign||(At.style.alignItems="center"),At.style.zIndex=At.style.zIndex?At.style.zIndex:"50";break}St--,At=A._getCell(g,x.rowIndex,St)}x.style.display="none"}if(x.align&&(x.style.justifyContent=x.align,x.style.textAlign=x.align),x.verticalAlign)switch(x.verticalAlign.toLowerCase()){case"top":x.style.alignItems="flex-start";break;case"bottom":x.style.alignItems="flex-end";break;default:x.style.alignItems="center"}x.overflowWrap&&(x.style.overflowWrap=x.overflowWrap),x.wordBreak&&(x.style.wordBreak=x.wordBreak),x.whiteSpace&&(x.style.whiteSpace=x.whiteSpace),x.backColor&&(x.style.backgroundColor=x.backColor),x.fontColor&&(x.firstChild.style.color=x.fontColor),x.fontBold&&(x.firstChild.style.fontWeight="bold"),x.fontItalic&&(x.firstChild.style.fontStyle="italic"),x.fontThruline&&(x.firstChild.style.textDecoration="line-through"),x.fontUnderline&&(x.firstChild.style.textDecoration="underline"),x.colVisible&&x.rowVisible||(x.style.display="none"),x.filter&&(x.style.display="none"),B.alterRow&&x.rowIndex%2==0?(x.classList.add(x._gridId+"_b-v-g-d-alter"),x.classList.remove(x._gridId+"_b-v-g-d")):(x.classList.add(x._gridId+"_b-v-g-d"),x.classList.remove(x._gridId+"_b-v-g-d-alter")),x.locked&&x.lockedColor?x.classList.add(x._gridId+"_b-v-g-d-locked"):x.classList.remove(x._gridId+"_b-v-g-d-locked"),x.locked&&(x.dataType==="select"&&x.firstChild&&x.firstChild.nType=="select"||x.dataType==="checkbox"&&x.firstChild&&x.firstChild.nType=="checkbox")&&(x.firstChild.disabled=!0,x.firstChild.style.pointerEvents="none"),x.untarget&&(x.dataType==="button"&&x.firstChild&&x.firstChild.nType=="button"?(x.firstChild.disabled=!0,x.firstChild.style.pointerEvents="none"):x.dataType==="link"&&x.firstChild&&x.firstChild.nType=="link"&&(x.firstChild.style.opacity="0.8",x.firstChild.style.pointerEvents="none"))}x.classList.add(x._gridId+"_v-g-d"),x.addEventListener("mouseover",function(Ct){x.untarget||x._type!=="gbd"||(x.classList.add(x._gridId+"_mouseover-cell"),x.dataType==="link"&&x.querySelectorAll("*").forEach(function(jt){jt.classList.add(x._gridId+"_mouseover-cell")}))}),x.addEventListener("mouseout",function(Ct){x.untarget||x._type!=="gbd"||(x.classList.remove(x._gridId+"_mouseover-cell"),x.dataType==="link"&&x.querySelectorAll("*").forEach(function(jt){jt.classList.remove(x._gridId+"_mouseover-cell")}))})}}(et,Ve),v.documentEvent.mousedown=function(w){v._status.activeGridEditor&&v._status.activeGridEditor!==w.target&&Ve.modifyCell(v),v._status.activeGrid&&!v._status.activeGrid.elements.grid.contains(w.target)&&(v._status.activeGrid=null)},document.removeEventListener("mousedown",v.documentEvent.mousedown),document.addEventListener("mousedown",v.documentEvent.mousedown),v.documentEvent.mouseup=function(w){v._status.mouseX=0,v._status.mouseY=0,Ve.stopScrolling(v),v._status.isDragging&&(v._status.isDragging=!1),v._status.isHeaderDragging&&(v._status.isHeaderDragging=!1)},document.removeEventListener("mouseup",v.documentEvent.mouseup),document.addEventListener("mouseup",v.documentEvent.mouseup),v.documentEvent.keydown=function(w){if(v._status.activeGrid&&!v._status.activeGridEditor){var A=v._status.activeGrid;if(!A)return;var x=A.data.id;if(A.events.onKeydownGrid(w)===!1)return w.stopPropagation(),void w.preventDefault();if(w.ctrlKey||w.metaKey)switch(w.key){case"z":case"Z":Ve.redoundo(x),w.preventDefault();break;case"y":case"Y":Ve.redoundo(x,!1),w.preventDefault();break;case"a":case"A":A.data.variables.targetCell=Ve._getCell(x,1,3),Ve.selectCells(Ve._getCell(x,1,1),Ve._getCell(x,A.methods.getRowCount(),A.methods.getColCount())),w.preventDefault()}if(A.data.gridInfo.selectionPolicy==="none"||A.data.variables.activeCells.length<=0)return;var g,p=A.data.variables.activeCells[0],B=A.data.variables.activeCells[A.data.variables.activeCells.length-1];switch(Object.keys(v.dataType).forEach(function(H){if(A.data.variables.targetCell.dataType===H&&v.dataType[H].onSelectedAndKeyDown){if(typeof v.dataType[H].onSelectedAndKeyDown!="function")throw new Error("onSelectedAndKeyDown must be a function.");if(v.dataType[H].onSelectedAndKeyDown(w,A.data.id,Ve.__getData(A.data.variables.targetCell))===!1)return}}),w.key){case"Tab":g=Ve.getTabCell(A.data.variables.targetCell,w.shiftKey),Ve.selectCell(g),w.preventDefault();break;case"F2":Ve.createGridEditor(A.data.variables.targetCell),w.preventDefault();break;case"Enter":A.data.variables.targetCell.dataType==="select"?(v._status.editOldValue=A.data.variables.targetCell.firstChild.value,A.data.variables.targetCell.firstChild.focus()):A.data.variables.targetCell.dataType==="checkbox"?(v._status.editOldValue=A.data.variables.targetCell.value,A.data.variables.targetCell.firstChild.checked=!A.data.variables.targetCell.firstChild.checked,Ve.selectAndCheckboxOnChange(A.data.variables.targetCell.firstChild),g=Ve.getMoveRowCell(A.data.variables.targetCell,1),Ve.selectCell(g),w.preventDefault()):["text","number","date","month","mask","code"].indexOf(A.data.variables.targetCell.dataType)>=0&&(Ve.createGridEditor(A.data.variables.targetCell,!0),w.preventDefault());break;case" ":if(A.data.variables.targetCell.dataType==="select"){if(A.data.variables.targetCell.untarget||A.data.variables.targetCell.locked)return void w.preventDefault();v._status.editOldValue=A.data.variables.targetCell.firstChild.value,A.data.variables.targetCell.firstChild.focus()}else if(A.data.variables.targetCell.dataType==="button")A.data.variables.targetCell.firstChild.focus();else if(A.data.variables.targetCell.dataType==="checkbox"){if(A.data.variables.targetCell.untarget||A.data.variables.targetCell.locked)return void w.preventDefault();v._status.editOldValue=A.data.variables.targetCell.value,A.data.variables.targetCell.firstChild.checked=!A.data.variables.targetCell.firstChild.checked,Ve.selectAndCheckboxOnChange(A.data.variables.targetCell.firstChild),w.preventDefault()}else["text","number","date","month","mask","code"].indexOf(A.data.variables.targetCell.dataType)>=0&&(Ve.createGridEditor(A.data.variables.targetCell),w.preventDefault());break;case"ArrowUp":A.data.gridInfo.selectionPolicy==="range"&&w.shiftKey?(Ve.unselectCells(x),A.data.variables.targetCell.rowIndex>=B.rowIndex?(g=Ve.getMoveRowCell(p,-1),Ve.selectCells(g,B,g)):(g=Ve.getMoveRowCell(B,-1),Ve.selectCells(p,g))):(g=Ve.getMoveRowCell(A.data.variables.targetCell,-1),Ve.selectCell(g)),w.preventDefault();break;case"ArrowDown":A.data.gridInfo.selectionPolicy==="range"&&w.shiftKey?(Ve.unselectCells(x),A.data.variables.targetCell.rowIndex<=p.rowIndex?(g=Ve.getMoveRowCell(B,1),Ve.selectCells(p,g)):(g=Ve.getMoveRowCell(p,1),Ve.selectCells(g,B,g))):(g=Ve.getMoveRowCell(A.data.variables.targetCell,1),Ve.selectCell(g)),w.preventDefault();break;case"ArrowLeft":A.data.gridInfo.selectionPolicy==="range"&&w.shiftKey?(Ve.unselectCells(x),A.data.variables.targetCell.colIndex>=B.colIndex?(g=Ve.getMoveColCell(p,-1),Ve.selectCells(g,B,g)):(g=Ve.getMoveColCell(B,-1),Ve.selectCells(p,g))):(g=Ve.getMoveColCell(A.data.variables.targetCell,-1),Ve.selectCell(g)),w.preventDefault();break;case"ArrowRight":A.data.gridInfo.selectionPolicy==="range"&&w.shiftKey?(Ve.unselectCells(x),A.data.variables.targetCell.colIndex<=p.colIndex?(g=Ve.getMoveColCell(B,1),Ve.selectCells(p,g)):(g=Ve.getMoveColCell(p,1),Ve.selectCells(g,B,g))):(g=Ve.getMoveColCell(A.data.variables.targetCell,1),Ve.selectCell(g)),w.preventDefault()}}},document.removeEventListener("keydown",v.documentEvent.keydown),document.addEventListener("keydown",v.documentEvent.keydown),v.documentEvent.copy=function(w){if(v._status.activeGrid&&!v._status.activeGridEditor){var A=v._status.activeGrid.data.variables.activeCells;A.length>0&&(w.preventDefault(),Ve.copyGrid(A))}},document.removeEventListener("copy",v.documentEvent.copy),document.addEventListener("copy",v.documentEvent.copy),v.documentEvent.paste=function(w){v._status.activeGrid&&!v._status.activeGridEditor&&v._status.activeGrid.data.variables.activeCells.length>0&&(w.preventDefault(),Ve.pasteGrid(w,v._status.activeGrid.data.id))},document.removeEventListener("paste",v.documentEvent.paste),document.addEventListener("paste",v.documentEvent.paste),v._initialized=!0)},Ht=function(){Ze&&(Object.values(et).forEach(function(v){var w=document.getElementById(v.data.id),A=document.getElementById(v.data.id+"_styles-sheet");w&&w.parentNode.removeChild(w),A&&A.parentNode.removeChild(A),delete et[v.data.id],v=null}),document.removeEventListener("mousedown",Ze.documentEvent.mousedown),document.removeEventListener("mouseup",Ze.documentEvent.mouseup),document.removeEventListener("keydown",Ze.documentEvent.keydown),document.removeEventListener("copy",Ze.documentEvent.copy),document.removeEventListener("paste",Ze.documentEvent.paste),Ze.unmountGrid(),Ze=null)};return o})())}(fi)),fi.exports}var Na=Yd();const Kd=t=>t==null,Xd=()=>{let t=new Date().getTime();return typeof performance<"u"&&typeof performance.now=="function"&&(t+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const n=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(e==="x"?n:n&3|8).toString(16)})},Jd=t=>!t||typeof t!="string"?"":t.toLowerCase(),Zd=t=>!t||typeof t!="string"?"":t.toUpperCase(),Qd=(t,e)=>{if(typeof e!="string"||typeof t!="string")return null;const n=e.split(""),o=t.split("");let r="",i;return n.every((a,c)=>{switch(i=!1,a){case"A":/^[A-Z]$/.test(o[c])?(r+=o[c],i=!0):/^[a-z]$/.test(o[c])&&(r+=Zd(o[c]),i=!0);break;case"a":/^[a-z]$/.test(o[c])?(r+=o[c],i=!0):/^[A-Z]$/.test(o[c])&&(r+=Jd(o[c]),i=!0);break;case"9":/^[0-9]$/.test(o[c])&&(r+=o[c],i=!0);break;default:a===o[c]&&(r+=o[c],i=!0);break}return i}),r},eu=t=>(t=String(t),t.replace(/[^0-9]/g,"")),tu=t=>t<768?"mb":t<1200?"tb":t<1980?"pc":"wd",nu=(t,e)=>Array.from(t).find(n=>n.startsWith(`hison-${e}-`)),ou=(t,e)=>{const n=nu(t,e);if(n){const o=n.split("-");if(o.length>=3)return o[2]}return null},js=(t,e)=>t.findIndex(n=>n.startsWith(`hison-${e}-`)),Ws=t=>t?typeof t=="string"?t:Array.isArray(t)?t.map(Ws).filter(Boolean).join(" "):typeof t=="object"?Object.keys(t).filter(e=>!!t[e]).join(" "):"":"",ru=(t,e)=>{const n=t.trim().split(/\s+/),o={},r=[];for(const a of n){const c=a.match(/^(hison-(color|size|col|pos|layout-vertical-align)-[\w]+?)(?:-(mb|tb|pc|wd))?$/);if(c){const m=c[1],C=c[2],L=c[3];o[C]||(o[C]={}),L?o[C][L]=m:o[C].default=m}else r.push(a)}const i=[];for(const a of Object.values(o)){const c=a[e]||(e==="mb"?a.tb:void 0)||(e==="tb"?a.mb:void 0)||(e==="pc"?a.wd:void 0)||(e==="wd"?a.pc:void 0)||a.default;c&&i.push(c)}return[...r,...i].filter(Boolean)},iu=(t,e,n)=>{const o=js(t,e);o!==-1?t[o]=t[o]:t.push(`hison-${e}-${n}`)},au=(t,e)=>{if(!t||!e)return[];const n=`hison-${e}-`;return t.trim().split(/\s+/).filter(o=>o.startsWith(n))},Li=t=>/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(t),qs=t=>/^rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})(\s*,\s*(0|1|0?\.\d+))?\s*\)$/.test(t),Sl=t=>typeof t=="number"&&isFinite(t),lu=t=>{let e,n,o;if(t.length===4)e=parseInt(t[1]+t[1],16),n=parseInt(t[2]+t[2],16),o=parseInt(t[3]+t[3],16);else if(t.length===7)e=parseInt(t.slice(1,3),16),n=parseInt(t.slice(3,5),16),o=parseInt(t.slice(5,7),16);else throw new Error(`Invalid hex color format: ${t}`);return`rgba(${e}, ${n}, ${o}, 1)`},su=t=>{const e=t.replace(/\s+/g,"").match(/^rgba?\((\d+),(\d+),(\d+),?.*\)$/i);if(!e)throw new Error(`Invalid rgba color format: ${t}`);const n=parseInt(e[1],10),o=parseInt(e[2],10),r=parseInt(e[3],10),i=a=>{const c=a.toString(16);return c.length===1?"0"+c:c};return`#${i(n)}${i(o)}${i(r)}`},Vn=t=>{if(Li(t))return t.replace(/\s+/g,"");if(qs(t))return su(t);throw new Error(`Invalid color format: ${t}`)},dn=t=>{if(Li(t))return lu(t);if(qs(t))return t.replace(/\s+/g,"");throw new Error(`Invalid color format: ${t}`)},_o=(t,e,n)=>{if(!Sl(e))throw new Error("add must be valid numbers");if(n&&!Sl(n))throw new Error("newOpacity must be valid numbers");const o=(K,X,ee)=>Math.min(Math.max(K,X),ee),r=t.match(/^rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})(?:\s*,\s*(0|1|0?\.\d+))?\s*\)$/i);if(!r)throw new Error("Invalid rgba color format");let[,i,a,c,m]=r;n||(n=Number(m));const C=o(parseInt(i)+e,0,255),L=o(parseInt(a)+e,0,255),P=o(parseInt(c)+e,0,255),W=o(n,0,1);return`rgba(${C},${L},${P},${W})`},hn=t=>{const e=t.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+),\s*(\d*\.?\d+)\)$/);if(!e)throw new Error("Invalid RGBA format.");const[,n,o,r,i]=e.map(Number),a=255-n,c=255-o,m=255-r;return`rgba(${a}, ${c}, ${m}, ${i})`},$s=t=>{const e=t.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+),\s*(\d*\.?\d+)\)$/);if(!e)throw new Error("Invalid RGBA format.");const[,n,o,r,i]=e.map(Number);return i<=.5?!1:n+o+r>385},cu=t=>{switch(t){case"primary":return Vn(ce.componentStyle.primaryColor);case"muted":return Vn(ce.componentStyle.mutedColor);case"info":return Vn(ce.componentStyle.infoColor);case"success":return Vn(ce.componentStyle.successColor);case"danger":return Vn(ce.componentStyle.dangerColor);case"warning":return Vn(ce.componentStyle.warningColor)}return null},du=t=>{switch(t){case"primary":return ce.componentStyle.primaryColor;case"muted":return ce.componentStyle.mutedColor;case"info":return ce.componentStyle.infoColor;case"success":return ce.componentStyle.successColor;case"danger":return ce.componentStyle.dangerColor;case"warning":return ce.componentStyle.warningColor}return""},uu=t=>$s(t)?Ja:Za,vo=(t,e)=>{t.buttonColor=e,t.borderColor=_o(e,-31),t.shadowColor=_o(e,-47),t.hoverColor=_o(e,-24),t.activeColor=_o(e,-24),t.rowHoverColor=_o(e,64,.2),t.stripeColor=_o(e,64,.1),t.emptyTextColor=e,t.filledTextColor=uu(e)},fu=(t,e)=>t.replace(/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([0-9.]+)\s*\)/i,(n,o,r,i)=>`rgba(${o},${r},${i},${e})`),Ni=new Map,hu=(t,e)=>{Ni.set(t,e)},mu=t=>{Ni.delete(t)},gu=()=>{for(const t of Ni.values())t()},yu=t=>{const e=Ni.get(t);e&&e()};var lo=(t=>(t.s="s",t.m="m",t.l="l",t.xl="xl",t))(lo||{}),Ys=(t=>(t.primary="primary",t.muted="muted",t.info="info",t.success="success",t.danger="danger",t.warning="warning",t))(Ys||{}),hi={exports:{}},pu=hi.exports,kl;function _u(){return kl||(kl=1,function(t,e){(function(n,o){t.exports=o()})(typeof self<"u"?self:typeof So<"u"?So:pu,()=>(()=>{var n={d:(f,h)=>{for(var I in h)n.o(h,I)&&!n.o(f,I)&&Object.defineProperty(f,I,{enumerable:!0,get:h[I]})},o:(f,h)=>Object.prototype.hasOwnProperty.call(f,h),r:f=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(f,"__esModule",{value:!0})}},o={};n.r(o),n.d(o,{NoteModeByDevice:()=>i,ToolPosition:()=>r,getVanillanote:()=>gn,getVanillanoteConfig:()=>Rn});var r=function(f){return f.top="TOP",f.bottom="BOTTOM",f}({}),i=function(f){return f.adaptive="ADAPTIVE",f.mobile="MOBILE",f.desktop="DESKTOP",f}({}),a=function(f){for(var h=f;!(h instanceof Element);)h=h.parentNode;return h.closest?h.closest("[data-vanillanote]"):null},c=function(f,h,I){return f+"_"+h+"_"+I},m=function(f,h,I){return f+"_"+h+"_"+I},C=function(f){return f+"_eventChildren"},L=function(f){return f+"_eventOnOverCssElement"},P=function(f){return f+"_eventClickCssElement"},W=function(){var f=new Date().getTime();return typeof performance<"u"&&typeof performance.now=="function"&&(f+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(h){var I=(f+16*Math.random())%16|0;return f=Math.floor(f/16),(h==="x"?I:3&I|8).toString(16)})},K=function(f){if(!f)return null;for(var h,I=f instanceof Element?f:f.parentNode;!I.hasAttribute("data-note-id")&&(I=I.parentNode)&&I.hasAttribute;);return I&&I.hasAttribute&&I.hasAttribute("data-note-id")&&(h=I.getAttribute("data-note-id")),h},X=function(){var f,h=navigator;if(((f=h.userAgentData)===null||f===void 0?void 0:f.mobile)!==void 0)return h.userAgentData.mobile;var I=navigator.userAgent;return/iPhone|iPad|iPod|Android|webOS|BlackBerry|IEMobile|Opera Mini/i.test(I)},ee=function(f){return/^[0-9]+$/.test(f)},re=function(f){return f==="-"||!isNaN(f)},fe=function(f){return/^[0-9A-Fa-f]*$/.test(f)},ye=function(f){var h=f.match(/-?\d+\.?\d*/);return h?Number(parseFloat(h[0])):null},xe=function(f,h){var I=Object.keys(f),be=Object.keys(h);if(I.length!==be.length)return!1;for(var Be=0;Be<I.length;Be++)if(!be.includes(I[Be])||f[I[Be]]!==h[I[Be]])return!1;return!0},ke=function(f,h){var I={};for(var be in f)f.hasOwnProperty(be)&&(I[be]=f[be]);for(var Be in h)h.hasOwnProperty(Be)&&(I[Be]=h[Be]);return I},ve=function(f){var h,I,be=new Object;if(!f)return be;h=f.trim().split(";");for(var Be=0;Be<h.length;Be++)h[Be]&&((I=h[Be].split(":")).length<2||(be[I[0].trim()]=I[1].trim()));return be},Ee=function(f){var h="";if(!f||f.constructor!==Object||Object.keys(f).length===0)return h;for(var I=Object.entries(f),be=0;be<I.length;be++)I[be].length<2||(h+=I[be][0].trim()+":"+I[be][1].trim()+";");return h},Me=function(f,h){if(!h||h.constructor!==Object)return f;for(var I=Object.keys(h),be=0;be<I.length;be++)f.setAttribute(I[be],h[I[be]]);return f},Ie=function(f,h){if(!f||!h||(h=h.toUpperCase(),f[0]!=="#"&&(f="#"+f),!/^#([0-9A-Fa-f]{6})$/.test(f)))return"33";var I=h==="R"?1:h==="G"?3:5;return f.substring(I,I+2)},Te=function(f,h){return"rgba("+parseInt(Ie(f,"R"),16)+","+parseInt(Ie(f,"G"),16)+","+parseInt(Ie(f,"B"),16)+","+h+")"},We=function(f){if(f.startsWith("#"))return f;if(!f.startsWith("rgba"))return null;var h=f.match(/\d+/g).map(Number),I=h[0].toString(16),be=h[1].toString(16),Be=h[2].toString(16);return I.length==1&&(I="0"+I),be.length==1&&(be="0"+be),Be.length==1&&(Be="0"+Be),"#"+I+be+Be},nt=function(f){if(!f||f.startsWith("#"))return null;var h=f.match(/\d+/g);if(!h)return null;var I=h.map(Number);return I.length<4?"1":I[3].toString()},De=function(f){if(/^#[0-9a-fA-F]{6}$/.test(f))return f;var h=document.createElement("div");h.style.color=f,document.body.appendChild(h);var I=window.getComputedStyle(h).color;document.body.removeChild(h);var be=I.match(/\d+/g);return"#"+((1<<24)+(+be[0]<<16)+(+be[1]<<8)+ +be[2]).toString(16).slice(1)},ot=function(f,h){f.startsWith("#")&&(f=f.slice(1));var I=parseInt(h,16);h.startsWith("-")&&(I=-parseInt(h.slice(1),16));var be=parseInt(f.slice(0,2),16)+I,Be=parseInt(f.slice(2,4),16)+I,tt=parseInt(f.slice(4,6),16)+I;return"#"+(be=(be<0?0:be>255?255:be).toString(16).padStart(2,"0"))+(Be=(Be<0?0:Be>255?255:Be).toString(16).padStart(2,"0"))+(tt<0?0:tt>255?255:tt).toString(16).padStart(2,"0")},mt=function(f){f.startsWith("#")&&(f=f.slice(1));var h=255-parseInt(f.slice(0,2),16),I=255-parseInt(f.slice(2,4),16),be=255-parseInt(f.slice(4,6),16);return I=I<127.5?I+16:I-16,be=be<127.5?be+16:be-16,"#"+(h=((h=h<127.5?h+16:h-16)<0?0:h>255?255:h).toString(16).padStart(2,"0"))+(I=(I<0?0:I>255?255:I).toString(16).padStart(2,"0"))+(be<0?0:be>255?255:be).toString(16).padStart(2,"0")},Qe=function(f){var h={color1:"",color2:"",color3:"",color4:"",color5:"",color6:"",color7:"",color8:"",color9:"",color10:"",color11:"",color12:"",color13:"",color14:"",color15:"",color16:"",color17:"",color18:"",color19:"",color20:""};return function(I){if(!/^#([0-9a-fA-F]{6})$/.test(I))throw new Error("Invalid HEX color format: ".concat(I));return parseInt(I.slice(1,3),16)+parseInt(I.slice(3,5),16)+parseInt(I.slice(5,7),16)>385?"light":"dark"}(f=De(f))==="light"?(h.color1="#333333",h.color2="#ffffff",h.color3=ot(f,"18"),h.color4=f,h.color5=ot(f,"-18"),h.color6=ot(f,"-1f"),h.color7=ot(f,"-2f"),h.color8="#609966",h.color9="#df2e38",h.color10="#333333",h.color11="#666666",h.color12="#333333",h.color13="#ffffff",h.color14="#ff7f7f",h.color15="#ffad66",h.color16="#ffff66",h.color17="#99ff99",h.color18="#99ccff",h.color19="#6699cc",h.color20="#cc99cc"):(h.color1="#ffffff",h.color2="#ffffff",h.color3=ot(f,"18"),h.color4=f,h.color5=ot(f,"-18"),h.color6=ot(f,"-1f"),h.color7=ot(f,"-2f"),h.color8="#609966",h.color9="#df2e38",h.color10="#333333",h.color11="#666666",h.color12="#333333",h.color13="#ffffff",h.color14="#b70404",h.color15="#e55807",h.color16="#f1c93b",h.color17="#1a5d1a",h.color18="#068fff",h.color19="#0c134f",h.color20="#5c469c"),h};function ut(f){return ut=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},ut(f)}function Ye(f,h){return function(I){if(Array.isArray(I))return I}(f)||function(I,be){var Be=I==null?null:typeof Symbol<"u"&&I[Symbol.iterator]||I["@@iterator"];if(Be!=null){var tt,Ge,j,E,s=[],l=!0,k=!1;try{if(j=(Be=Be.call(I)).next,be!==0)for(;!(l=(tt=j.call(Be)).done)&&(s.push(tt.value),s.length!==be);l=!0);}catch($){k=!0,Ge=$}finally{try{if(!l&&Be.return!=null&&(E=Be.return(),Object(E)!==E))return}finally{if(k)throw Ge}}return s}}(f,h)||function(I,be){if(I){if(typeof I=="string")return Je(I,be);var Be={}.toString.call(I).slice(8,-1);return Be==="Object"&&I.constructor&&(Be=I.constructor.name),Be==="Map"||Be==="Set"?Array.from(I):Be==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Be)?Je(I,be):void 0}}(f,h)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
48
+ `):"",x.setGridDataRowCol(se,H,oe),oe!==1){if(!me[H-1]){for(var Q=H-2;Q>=0;Q--)me[Q]&&(se.isRowMerge=!0);if(!se.isRowMerge)for(var u=oe-2;u>=0;u--)p.data.colInfos[u].header.split(";")[H-1]&&(se.isColMerge=!0)}}else H!==1&&(se.isRowMerge=!0);se.addEventListener("mousemove",function(pe){var Se=pe.target,ze=Se._gridId;if(ze){var je=A[ze];if(je&&(Se.style.cursor&&Se.style.removeProperty("cursor"),je.data.gridInfo.resizable&&Se._type==="ghd")){var Ue,it,rt=Se.getBoundingClientRect(),ct=rt.left,Ne=rt.right,Pe=pe.clientX;if(Pe-ct<20){if(Se.colIndex<=3||Se._frozenCol)return;for(var lt=Se.colIndex-1;lt>1&&(it=x._getHeaderCell(ze,1,lt)).colVisible!==!0;lt--);if(!it.resizable)return;Se.style.cursor="ew-resize",w._status.onHeaderDragging=!0,w._status.isHeaderDragging&&(Ue=Pe-w._status.mouseX,x.modifyColSize(it,Ue),w._status.mouseX=Pe)}else if(Ne-Pe<20){if(Se.colIndex<3||Se._frozenCol)return;for(var ae=Se.colIndex;ae>1&&(it=x._getHeaderCell(ze,1,ae)).colVisible!==!0;ae--);if(!it.resizable)return;Se.style.cursor="ew-resize",w._status.onHeaderDragging=!0,w._status.isHeaderDragging&&(Ue=Pe-w._status.mouseX,x.modifyColSize(it,Ue),w._status.mouseX=Pe)}else Se.style.cursor="",w._status.onHeaderDragging=!1}}}),se.addEventListener("mousedown",function(pe){w._status.mouseX=pe.clientX,w._status.onHeaderDragging&&(w._status.isHeaderDragging=!0)}),q.push(se),oe++}}catch(pe){de.e(pe)}finally{de.f()}p.elements.gridHeader._gridHeaderCells.push(q)}var b,_=ge(p.elements.gridHeader._gridHeaderCells);try{for(_.s();!(b=_.n()).done;){var R,F=ge(b.value);try{for(F.s();!(R=F.n()).done;){var D=R.value;p.elements.gridHeader.append(D),x.connectedGridData(D)}}catch(pe){F.e(pe)}finally{F.f()}}}catch(pe){_.e(pe)}finally{_.f()}var z=p.elements.gridHeader._gridHeaderCells;z.forEach(function(pe){pe.forEach(function(Se,ze){if(p.data.gridInfo.sortable&&Object.keys(p.data.variables.sortToggle).length>0&&B===Se.rowIndex)for(var je=B;je>0;je--){var Ue=z[je-1][ze];if(!Ue.isRowMerge&&!Ue.isColMerge&&p.data.variables.sortToggle[Ue.colId]!==void 0){var it=x.getSortSpan(p.data.id,Ue.colId);Ue.append(it);break}}p.data.gridInfo.filterable&&p.data.variables.filters.length>0&&Se.filterable&&Se._filterSelector&&p.data.variables.filters.forEach(function(rt){Se.colId===rt.colId&&(Se._filterSelector.style.display="block",requestAnimationFrame(function(){Array.from(Se._filterSelector.options).some(function(ct){return ct.value===rt.value})&&(Se._filterSelector.value=rt.value)}))})})})},x._getHeaderRow=function(g,p){return mt(A[g].elements.gridHeader._gridHeaderCells,p-1)},x._getHeaderCell=function(g,p,B){if(typeof B=="number")return mt(x._getHeaderRow(g,p),B-1);var H,U=ge(x._getHeaderRow(g,p));try{for(U.s();!(H=U.n()).done;){var q=H.value;if(q.colId===B)return q}}catch(oe){U.e(oe)}finally{U.f()}throw new Error("There is no "+(typeof B=="number"?B+"th":B)+" colunm.")},x._getHeaderCells=function(g){return A[g].elements.gridHeader._gridHeaderCells},x.__getHeaderFilter=function(g,p){var B,H,U=x.__getColIndex(g,p),q=A[g];if(!q.data.colInfos[U-1].filterable)return null;for(var oe=1;oe<=q.methods.getHeaderRowCount();oe++)if((B=x._getHeaderCell(g,oe,U))&&(H=B.querySelectorAll("."+g+"_filterSelect"))[0])return H[0];return null},x.__loadFooter=function(g){var p=A[g];Qe(p.elements.gridFooter),p.elements.gridFooter._gridFooterCells.length=0;for(var B=1;B<=p.methods.getFooterRowCount();B++){var H,U=[],q=1,oe=ge(p.data.colInfos);try{for(oe.s();!(H=oe.n()).done;){var de=H.value,he=document.createElement("div");he._gridId=g,he._type="gfd",he.rowVisible=!0,he.filter=!1,x.setCellDataFromColInfo(he,de),x.setGridDataRowCol(he,B,q),U.push(he),q++}}catch(_){oe.e(_)}finally{oe.f()}p.elements.gridFooter._gridFooterCells.push(U)}var se,me=ge(p.elements.gridFooter._gridFooterCells);try{for(me.s();!(se=me.n()).done;){var Q,u=ge(se.value);try{for(u.s();!(Q=u.n()).done;){var b=Q.value;p.elements.gridFooter.append(b),x.connectedGridData(b)}}catch(_){u.e(_)}finally{u.f()}}}catch(_){me.e(_)}finally{me.f()}},x._getFooterRow=function(g,p){var B=A[g];return mt(B.elements.gridFooter._gridFooterCells,p-1)},x._getFooterCell=function(g,p,B){if(typeof B=="number")return mt(x._getFooterRow(g,p),B-1);var H,U=ge(x._getFooterRow(g,p));try{for(U.s();!(H=U.n()).done;){var q=H.value;if(q.colId===B)return q}}catch(oe){U.e(oe)}finally{U.f()}throw new Error("There is no "+(typeof B=="number"?B+"th":B)+" colunm.")},x._getFooterCells=function(g){return A[g].elements.gridFooter._gridFooterCells},x._getRow=function(g,p){return A[g].elements.gridBody._gridBodyCells[p-1]},x._getCell=function(g,p,B){try{if(typeof B=="number")return A[g].elements.gridBody._gridBodyCells[p-1][B-1];var H,U=ge(A[g].elements.gridBody._gridBodyCells[p-1]);try{for(U.s();!(H=U.n()).done;){var q=H.value;if(q.colId===B)return q}}catch(oe){U.e(oe)}finally{U.f()}}catch{return null}return null},x._getCells=function(g){return A[g].elements.gridBody._gridBodyCells},x.__gridBodyCellsReConnected=function(g){if(A[g].data.variables.isDrawable){var p,B=ge(A[g].elements.gridBody._gridBodyCells);try{for(B.s();!(p=B.n()).done;){var H,U=ge(p.value);try{for(U.s();!(H=U.n()).done;){var q=H.value;x.reConnectedCallbackElement(q)}}catch(oe){U.e(oe)}finally{U.f()}}}catch(oe){B.e(oe)}finally{B.f()}}},x.__mountGridBodyCell=function(g){var p=A[g];if(p.data.variables.isDrawable){Qe(p.elements.gridBody);var B,H=ge(p.elements.gridBody._gridBodyCells);try{for(H.s();!(B=H.n()).done;){var U,q=ge(B.value);try{for(q.s();!(U=q.n()).done;){var oe=U.value;p.elements.gridBody.append(oe),x.connectedGridData(oe)}}catch(de){q.e(de)}finally{q.f()}}}catch(de){H.e(de)}finally{H.f()}x.reloadGridForMerge(g),p.methods.reloadFilterValue(),p.methods.reloadFooterValue()}},x.__clear=function(g){var p=A[g];p.elements.gridBody._gridBodyCells.length=0,p.data.variables.activeRows=[],p.data.variables.activeCols=[],p.data.variables.activeCells=[],p.data.variables.targetCell=null,p.data.variables.records=[],p.data.variables.recordseq=0},x.__checkRowIndex=function(g,p){if(!(p=Me(p))||p<1||p>A[g].methods.getRowCount())throw new Error("Please insert a row of valid range.")},x.__checkColRownumOrStatus=function(g){if(typeof g=="number"){if(g<=2)throw new Error("The row number or status columns info cannot be modified.")}else if(g==="v-g-rownum"||g==="v-g-status")throw new Error("The row number or status columns info cannot be modified.")},x.__checkColIndex=function(g,p){if(!(p=Me(p))||p<1||p>A[g].methods.getColCount())throw new Error("Please insert a col of valid range.")},x.___getDatasWithoutExceptedProperty=function(g){var p,B,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],U=[],q=ge(A[g].elements.gridBody._gridBodyCells);try{for(q.s();!(B=q.n()).done;){var oe=B.value;p=[];var de,he=ge(oe);try{for(he.s();!(de=he.n()).done;){var se=de.value,me=x.__getData(se,H);p.push(me)}}catch(Q){he.e(Q)}finally{he.f()}U.push(p)}}catch(Q){q.e(Q)}finally{q.f()}return U},x._doFilter=function(g){var p,B=A[g];if(B.data.variables.filters=[],B.elements.gridHeader.querySelectorAll("."+g+"_filterSelect").forEach(function(U){U.value!=="$$ALL"&&(p={colId:U.colId,value:U.value},x.__getColInfo(g,U.parentNode.parentNode.colIndex).filterValue=U.value,p.value!=="$$NULL"&&p.value!==null&&p.value!==void 0&&p.value!==""||(p.value=B.data.gridInfo.nullValue),B.data.variables.filters.push(p))}),B.data.variables.filters.length===0)x._getCells(g).forEach(function(U){U.forEach(function(q){q.filter=!1})});else{var H=1;x._getCells(g).forEach(function(U){var q=!1;U.forEach(function(oe){B.data.variables.filters.forEach(function(de){if(oe.colId===de.colId){var he=x.getTextFromCell(oe);Object.keys(w.dataType).forEach(function(se){if(oe.dataType===se&&w.dataType[se].getFilterValue){if(typeof w.dataType[se].getFilterValue!="function")throw new Error("getFilterValue must be a function.");he=w.dataType[se].getFilterValue(g,oe.value)}}),he!=de.value&&(q=!0)}})}),x._getRow(g,H).forEach(function(oe){oe.filter=q}),H++})}B.methods.load(B.methods.getDatas())},x.__gridCellReConnectedWithControlSpan=function(g){if(x.reConnectedCallbackElement(g),g.rowSpan)for(var p=g.rowIndex+1;p<g.rowIndex+g.rowSpan;p++)x.__gridCellReConnectedWithControlSpan(x._getCell(g._gridId,p,g.colIndex));if(g.colSpan)for(var B=g.colIndex+1;B<g.colIndex+g.colSpan;B++)x.__gridCellReConnectedWithControlSpan(x._getCell(g._gridId,g.rowIndex,B))},x.__getCellData=function(g,p){var B={};return x.setCellDataFromColInfo(B,g),B.value=null,B.rowIndex=p,B.filter=!1,B.rowVisible=!0,B},x.__getData=function(g){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],B={value:ot(g.value),colId:g.colId,rowIndex:g.rowIndex,colIndex:g.colIndex,name:g.name,untarget:g.untarget,rowMerge:g.rowMerge,colMerge:g.colMerge,colVisible:g.colVisible,required:g.required,resizable:g.resizable,sortable:g.sortable,filterable:g.filterable,originWidth:g.originWidth,dataType:g.dataType,selectSize:g.selectSize,locked:g.locked,lockedColor:g.lockedColor,format:g.format,codes:ot(g.codes),defaultCode:g.defaultCode,maxLength:g.maxLength,maxByte:g.maxByte,maxNumber:g.maxNumber,minNumber:g.minNumber,roundNumber:g.roundNumber,align:g.align,verticalAlign:g.verticalAlign,overflowWrap:g.overflowWrap,wordBreak:g.wordBreak,whiteSpace:g.whiteSpace,backColor:g.backColor,fontColor:g.fontColor,fontBold:g.fontBold,fontItalic:g.fontItalic,fontThruline:g.fontThruline,fontUnderline:g.fontUnderline,filter:g.filter};return B.text=x.getTextFromCell(g),g.rowSpan&&(B.rowSpan=g.rowSpan),g.colSpan&&(B.colSpan=g.colSpan),g.isRowMerge&&(B.isRowMerge=g.isRowMerge),g.isColMerge&&(B.isColMerge=g.isColMerge),g.rowVisible&&(B.rowVisible=g.rowVisible),p&&(p.indexOf("untarget")>=0&&(B.untarget=null),p.indexOf("colVisible")>=0&&(B.colVisible=null),p.indexOf("rowVisible")>=0&&(B.rowVisible=null),p.indexOf("required")>=0&&(B.required=null),p.indexOf("resizable")>=0&&(B.resizable=null),p.indexOf("originWidth")>=0&&(B.originWidth=null),p.indexOf("dataType")>=0&&(B.dataType=null),p.indexOf("selectSize")>=0&&(B.selectSize=null),p.indexOf("locked")>=0&&(B.locked=null),p.indexOf("lockedColor")>=0&&(B.lockedColor=null),p.indexOf("format")>=0&&(B.format=null),p.indexOf("codes")>=0&&(B.codes=null),p.indexOf("defaultCode")>=0&&(B.defaultCode=null),p.indexOf("maxLength")>=0&&(B.maxLength=null),p.indexOf("maxByte")>=0&&(B.maxByte=null),p.indexOf("maxNumber")>=0&&(B.maxNumber=null),p.indexOf("minNumber")>=0&&(B.minNumber=null),p.indexOf("roundNumber")>=0&&(B.roundNumber=null),p.indexOf("align")>=0&&(B.align=null),p.indexOf("verticalAlign")>=0&&(B.verticalAlign=null),p.indexOf("backColor")>=0&&(B.backColor=null),p.indexOf("fontColor")>=0&&(B.fontColor=null),p.indexOf("fontBold")>=0&&(B.fontBold=null),p.indexOf("fontItalic")>=0&&(B.fontItalic=null),p.indexOf("fontThruline")>=0&&(B.fontThruline=null),p.indexOf("fontUnderline")>=0&&(B.fontUnderline=null),p.indexOf("filter")>=0&&(B.filter=null),p.indexOf("value")>=0&&(B.value=null)),B},x.__setCellData=function(g,p,B,H){var U=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4];x.__checkRowIndex(g,p);var q=x.__getColIndex(g,B,!0);if(q<=2){if(U)throw new Error("The row number or status columns are immutable.");return!1}var oe=x._getCell(g,p,q);if(H.untarget&&(oe.untarget=H.untarget),H.dataType){if(![].concat(ie(Object.keys(W)),ie(Object.keys(w.dataType))).includes(H.dataType))throw new Error("Please insert a valid dataType.");oe.dataType=H.dataType}return H.selectSize&&(oe.selectSize=H.selectSize),H.locked&&(oe.locked=H.locked),H.lockedColor&&(oe.lockedColor=H.lockedColor),H.format&&(oe.format=H.format),H.codes&&(oe.codes=H.codes),H.defaultCode&&(oe.defaultCode=H.defaultCode),H.maxLength&&(oe.maxLength=H.maxLength),H.maxByte&&(oe.maxByte=H.maxByte),H.maxNumber&&(oe.maxNumber=H.maxNumber),H.minNumber&&(oe.minNumber=H.minNumber),H.roundNumber&&(oe.roundNumber=H.roundNumber),H.align&&(oe.align=H.align),H.verticalAlign&&(oe.verticalAlign=H.verticalAlign),H.overflowWrap&&(oe.overflowWrap=H.overflowWrap),H.wordBreak&&(oe.wordBreak=H.wordBreak),H.whiteSpace&&(oe.whiteSpace=H.whiteSpace),H.backColor&&(oe.backColor=H.backColor),H.fontColor&&(oe.fontColor=H.fontColor),H.fontBold&&(oe.fontBold=H.fontBold),H.fontItalic&&(oe.fontItalic=H.fontItalic),H.fontThruline&&(oe.fontThruline=H.fontThruline),H.fontUnderline&&(oe.fontUnderline=H.fontUnderline),H.value&&(oe.value=H.value),x.reConnectedCallbackElement(oe),x.reloadGridWithModifyCell(g,oe.colIndex),!0},x._getDataTypeStyle=function(){var g={};return Object.keys(w.dataType).forEach(function(p){w.dataType[p].cellStyle&&(g[p]=w.dataType[p].cellStyle)}),g},x._getFilterSpan=function(){return w.elements.filterSpan},x._getFooterFormula=function(){return ot(w.footerFormula)},x._getColDefaultAlign=function(g){switch(g){case"text":case"mask":return r.left;case"number":return r.right;case"date":case"month":case"select":case"checkbox":case"button":case"link":case"code":return r.center;default:return w.attributes.defaultColInfo.align}}}(v,et,Ve),function(w,A,x){x.isCellVisible=function(g){return!!g&&!(g.colVisible===!1||g.rowVisible===!1||g.filter===!0)},x.getFirstCellValidNumber=function(g){for(var p,B,H=g._gridId,U=1;U<A[H].methods.getRowCount();U++)if(B=x._getCell(H,U,g.colIndex),x.isCellVisible(B)&&(p=Et(B.value)))return p;return null},x.removeGridEditor=function(){if(!w._status.activeGridEditor)return!1;var g=w._status.activeGridEditor.targetCell,p=g._gridId;return A[p].events.onEditEnding(g.rowIndex,g.colId,w._status.editOldValue,w._status.editNewValue),g.style.padding="",g.style.fontSize="",w._status.activeGridEditor.parentNode.removeChild(w._status.activeGridEditor),w._status.activeGridEditor=null,!0},x.addBagicEventListenerToGridEditor=function(g){g.addEventListener("keydown",function(p){var B,H=w._status.activeGrid,U=H.data.variables.targetCell;if(H.events.onKeydownEditor(p)===!1)return p.stopPropagation(),void p.preventDefault();switch(p.key){case"Enter":p.shiftKey||(x.modifyCell(w),B=x.getMoveRowCell(U,1),x.selectCell(B),p.stopPropagation(),p.preventDefault());break;case"Escape":w._status.editNewValue=w._status.editOldValue,x.removeGridEditor(),p.stopPropagation(),p.preventDefault();break;case"Tab":x.modifyCell(w),B=x.getTabCell(U,p.shiftKey),x.selectCell(B),p.stopPropagation(),p.preventDefault();break;case"F2":x.modifyCell(w),p.stopPropagation(),p.preventDefault()}}),g.addEventListener("input",function(p){w._status.activeGrid.events.onInputEditor(p)})},x.setBagicAttributesToGridEditor=function(g,p){g._gridId=p._gridId,g.targetCell=p,g.style.width=p.offsetWidth+"px",g.style.height=p.scrollHeight+g.offsetHeight-g.clientHeight+"px",g.classList.add(g._gridId+"_editor")},x.createGridEditorTextarea=function(g){var p=document.createElement("textarea");x.setBagicAttributesToGridEditor(p,g),p.placeholder,p.classList.add(p._gridId+"_editor_textarea");var B=A[g._gridId].data.gridInfo.nullValue===g.value?null:g.value;return w._status.editOldValue=B,p.value=w._status.editOldValue,p.addEventListener("input",function(H){H.target.style.height=H.target.scrollHeight+p.offsetHeight-p.clientHeight+"px"},!1),p.addEventListener("keyup",function(H){H.target.value&&H.target.parentNode&&H.target.parentNode.maxLength&&(H.target.value=H.target.value.substring(0,H.target.parentNode.maxLength)),H.target.value&&H.target.parentNode&&H.target.parentNode.maxByte&&(H.target.value=De(H.target.value,H.target.parentNode.maxByte,w.checkByte))},!1),x.addBagicEventListenerToGridEditor(p),p},x.createGridEditorNumber=function(g){var p=document.createElement("input");x.setBagicAttributesToGridEditor(p,g),p.classList.add(p._gridId+"_editor_number"),p.setAttribute("type","number");var B=A[g._gridId].data.gridInfo.nullValue===g.value?null:g.value;return w._status.editOldValue=B,p.value=w._status.editOldValue,x.addBagicEventListenerToGridEditor(p),p},x.createGridEditorDate=function(g){var p=document.createElement("input");return x.setBagicAttributesToGridEditor(p,g),p.classList.add(p._gridId+"_editor_date"),p.setAttribute("type","date"),w._status.editOldValue=x.getDateWithInputDateFormat(g.value),p.value=w._status.editOldValue,x.addBagicEventListenerToGridEditor(p),p},x.createGridEditorMonth=function(g){var p=document.createElement("input");return x.setBagicAttributesToGridEditor(p,g),p.classList.add(p._gridId+"_editor_month"),p.setAttribute("type","month"),w._status.editOldValue=x.getDateWithInputMonthFormat(g.value),p.value=w._status.editOldValue,x.addBagicEventListenerToGridEditor(p),p},x.createGridEditorMask=function(g){var p=document.createElement("input");x.setBagicAttributesToGridEditor(p,g),p.classList.add(p._gridId+"_editor_mask"),p.setAttribute("type","text");var B=A[g._gridId].data.gridInfo.nullValue===g.value?null:g.value;return w._status.editOldValue=B,p.value=w._status.editOldValue,p.addEventListener("keyup",function(H){H.target.value=x.getMaskValue(H.target.targetCell.format,H.target.value)}),x.addBagicEventListenerToGridEditor(p),p},x.createGridEditorCode=function(g){var p=document.createElement("input");x.setBagicAttributesToGridEditor(p,g),p.classList.add(p._gridId+"_editor_code"),p.setAttribute("type","text");var B=g.value;return w._status.editOldValue=B,p.value=w._status.editOldValue,x.addBagicEventListenerToGridEditor(p),p},x.createGridEditor=function(g){var p=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(!(g.locked||g.untarget||["select","checkbox","button","link"].indexOf(g.dataType)>=0)){var B;switch(x.removeGridEditor(),g.dataType){case"text":B=x.createGridEditorTextarea(g);break;case"number":B=x.createGridEditorNumber(g);break;case"date":B=x.createGridEditorDate(g);break;case"month":B=x.createGridEditorMonth(g);break;case"mask":B=x.createGridEditorMask(g);break;case"code":B=x.createGridEditorCode(g);break;default:Object.keys(w.dataType).forEach(function(H){if(g.dataType===H&&w.dataType[H].getEditor){if(typeof w.dataType[H].getEditor!="function")throw new Error("getEditor must be a function.");if(B=w.dataType[H].getEditor(g,g._gridId,x.__getData(g),function(){x.modifyCell(w)},function(){w._status.editNewValue=w._status.editOldValue,x.removeGridEditor()})){if(!(B instanceof HTMLElement)||B.nodeType!==1)throw new Error("getEditor must return an html element.");B._gridId=g._gridId,B.targetCell=g,B.classList.add(B._gridId+"_editor_"+H),B.classList.add(B._gridId+"_editor"),w._status.editOldValue=g.value}}})}A[g._gridId].events.onBeforeEditEnter(g.rowIndex,g.colId,B)!==!1&&B&&(g.style.padding="0",g.style.fontSize="0px",g.appendChild(B),B.focus(),p&&B.select(),w._status.activeGridEditor=B,A[g._gridId].events.onAfterEditEnter(g.rowIndex,g.colId,B))}},x.getValidValue=function(g,p){var B=_e(A[g._gridId].data.gridInfo.nullValue,null);if(!g)return null;if(g.dataType!=="code"&&(p==null||p===""||p===B))return B;switch(g.dataType){case"text":return g.maxLength&&(p=p.substring(0,g.maxLength)),g.maxByte&&(p=De(p,g.maxByte,w.checkByte)),p;case"mask":return _e(x.getMaskValue(g.format,p),B);case"date":return _e(x.getDateWithValueDateFormat(p),B);case"month":return _e(x.getDateWithValueMonthFormat(p),B);case"number":if((p=Et(p))===null)return B;var H=g.maxNumber,U=g.minNumber,q=g.roundNumber;H!=null&&typeof H=="number"&&p>H&&(p=H),U!=null&&typeof U=="number"&&p<U&&(p=U);var oe=parseFloat(p);if(q==null||typeof q!="number")return Number(p);if(q>=0){var de=oe.toFixed(q);return de=(de=de.replace(/(\.[0-9]*?)0+$/,"$1")).replace(/\.$/,""),Number(de)}var he=Math.pow(10,-q);return Number((Math.round(oe/he)*he).toFixed(-q));case"select":case"button":case"link":return p;case"checkbox":return typeof p=="boolean"?p:A[g._gridId].data.gridInfo.checkedValue===p;case"code":return x.getCodeValue(g.codes,g.defaultCode,p);default:return w.dataType&&Object.keys(w.dataType).forEach(function(se){if(g.dataType===se&&w.dataType[se].getValue){if(typeof w.dataType[se].getValue!="function")throw new Error("getValue must be a function.");p=w.dataType[se].getValue(g._gridId,p)}}),p}},x.getTextFromCell=function(g){if(!g)return"";var p="",B=_e(g.value,A[g._gridId].data.gridInfo.nullValue);switch(g.dataType){case"number":p=B===A[g._gridId].data.gridInfo.nullValue?B:_e(x.getFormatNumberFromCell(g),A[g._gridId].data.gridInfo.nullValue);break;case"date":p=B===A[g._gridId].data.gridInfo.nullValue?B:_e(x.getDateWithGridDateFormat(g),A[g._gridId].data.gridInfo.nullValue);break;case"month":p=B===A[g._gridId].data.gridInfo.nullValue?B:_e(x.getDateWithGridMonthFormat(g),A[g._gridId].data.gridInfo.nullValue);break;case"select":if(Array.isArray(g.value)&&g.value.length>0){p=g.value[0].text;var H,U=Le(g.value);try{for(U.s();!(H=U.n()).done;){var q=H.value;q.selected&&(p=q.text)}}catch(oe){U.e(oe)}finally{U.f()}p==null&&(p=A[g._gridId].data.gridInfo.nullValue)}break;case"link":p=g.value&&g.value.text?g.value.text:B;break;default:p=B,w.dataType?Object.keys(w.dataType).forEach(function(oe){if(g.dataType===oe&&w.dataType[oe].getText){if(typeof w.dataType[oe].getText!="function")throw new Error("getText must be a function.");p=w.dataType[oe].getText(g._gridId,p)}}):p=String(B)}return p},x.getFormatNumber=function(g,p){if(!g||p==null)return Number(p);var B=g.match(/^(.*?)([#0,.]+)(.*?)$/);if(!B)return Number(p);var H=function(R){return isNaN(R)||!isFinite(R)?0:Number(R)},U=function(R){return isNaN(R)||!isFinite(R)?0:parseFloat(R)},q=B[1],oe=B[2],de=B[3],he=oe.split(".")[0],se=oe.split(".").length>1?oe.split(".")[1]:"";de!=="%"&&de!==" %"||(p*=100);var me,Q=String(p),u=Q[0]==="-",b=(Q=u?Q.substring(1):Q).split(".")[0],_=Q.split(".").length>1?Q.split(".")[1]:"";switch(_=(_=U("0."+_).toLocaleString("en",{minimumFractionDigits:se.lastIndexOf("0")+1,maximumFractionDigits:se.length}))==="0"?"":_.substring(1),he){case"#,###":me=H(b)===0?_:(b=U(b).toLocaleString("en"))+_;break;case"#,##0":me=(b=U(b).toLocaleString("en"))+_;break;case"#":me=H(b)===0?_:b+_;break;case"0":me=b+_;break;default:return p}return q+(me=u?"-"+me:me)+de},x.getFormatNumberFromCell=function(g){return g.format?g.value===null||g.value===void 0?null:x.getFormatNumber(g.format,g.value):g.value},x.getDateWithValueDateFormat=function(g){if(!g||typeof g!="string")return null;var p=/^(\d{4})[-/.]? ?(\d{2})[-/.]? ?(\d{2})$/.exec(g.replace(/\s+/g,""));if(!p)return null;var B=p[1],H=p[2],U=p[3];return nt(B,H,U)?"".concat(B).concat(H).concat(U):null},x.getDateWithValueMonthFormat=function(g){if(!g||typeof g!="string")return null;g=g.replace(/\s+/g,"");var p,B,H=/^(\d{4})[-/.]? ?(\d{2})[-/.]? ?(\d{2})?$/.exec(g),U=/^(\d{4})[-/.]? ?(\d{2})$/.exec(g);if(H)p=H[1],B=H[2];else{if(!U)return null;p=U[1],B=U[2]}return nt(p,B,"01")?"".concat(p).concat(B):null},x.getDateWithInputDateFormat=function(g){if(!g||typeof g!="string")return null;var p=/^(\d{4})[-/.]?(\d{2})[-/.]?(\d{2})$/.exec(g);if(!p)return null;var B=p[1],H=p[2],U=p[3];return nt(B,H,U)?"".concat(B,"-").concat(H,"-").concat(U):null},x.getDateWithInputMonthFormat=function(g){if(!g||typeof g!="string")return null;var p=/^(\d{4})[-/.]?(\d{2})$/.exec(g);if(!p)return null;var B=p[1],H=p[2];return nt(B,H,"01")?"".concat(B,"-").concat(H):null},x.getDateWithGridDateFormat=function(g){var p=/^(\d{4})[-/.]?(\d{2})[-/.]?(\d{2})$/.exec(g.value);if(!p)return null;var B=p[1],H=p[2],U=p[3];if(!nt(B,H,U))return null;switch(A[g._gridId].data.gridInfo.dateFormat){case"yyyy-mm-dd":default:return"".concat(B,"-").concat(H,"-").concat(U);case"yyyy/mm/dd":return"".concat(B,"/").concat(H,"/").concat(U);case"yyyy. mm. dd":return"".concat(B,". ").concat(H,". ").concat(U);case"yyyymmdd":return"".concat(B).concat(H).concat(U);case"mm-dd-yyyy":return"".concat(H,"-").concat(U,"-").concat(B);case"mm/dd/yyyy":return"".concat(H,"/").concat(U,"/").concat(B);case"mm. dd. yyyy":return"".concat(H,". ").concat(U,". ").concat(B);case"mmddyyyy":return"".concat(H).concat(U).concat(B);case"dd-mm-yyyy":return"".concat(U,"-").concat(H,"-").concat(B);case"dd/mm/yyyy":return"".concat(U,"/").concat(H,"/").concat(B);case"dd. mm. yyyy":return"".concat(U,". ").concat(H,". ").concat(B);case"ddmmyyyy":return"".concat(U).concat(H).concat(B)}},x.getDateWithGridMonthFormat=function(g){var p=/^(\d{4})[-/.]?(\d{2})$/.exec(g.value);if(!p)return null;var B=p[1],H=p[2];if(!nt(B,H,"01"))return null;switch(A[g._gridId].data.gridInfo.monthFormat){case"yyyy-mm":default:return"".concat(B,"-").concat(H);case"yyyy/mm":return"".concat(B,"/").concat(H);case"yyyy. mm":return"".concat(B,". ").concat(H);case"yyyymm":return"".concat(B).concat(H);case"mm-yyyy":return"".concat(H,"-").concat(B);case"mm/yyyy":return"".concat(H,"/").concat(B);case"mm. yyyy":return"".concat(H,". ").concat(B);case"mmyyyy":return"".concat(H).concat(B)}},x.getCheckboxCellTrueOrFalse=function(g){var p=g.value,B=A[g._gridId].data.gridInfo.checkedValue,H=A[g._gridId].data.gridInfo.uncheckedValue;return typeof p=="boolean"?(g.value=p?B:H,p):p===B||(g.value=H,!1)},x.getCodeValue=function(g,p,B){return g&&Array.isArray(g)&&g.indexOf(B)>=0?B:p},x.getMaskValue=function(g,p){if(typeof g!="string"||typeof p!="string")return null;var B,H=g.split(""),U=p.split(""),q="";return H.every(function(oe,de){switch(B=!1,oe){case"A":/^[A-Z]$/.test(U[de])?(q+=U[de],B=!0):/^[a-z]$/.test(U[de])&&(q+=(he=U[de])&&typeof he=="string"?he.toUpperCase():"",B=!0);break;case"a":/^[a-z]$/.test(U[de])?(q+=U[de],B=!0):/^[A-Z]$/.test(U[de])&&(q+=Te(U[de]),B=!0);break;case"9":/^[0-9]$/.test(U[de])&&(q+=U[de],B=!0);break;default:oe===U[de]&&(q+=U[de],B=!0)}var he;return B}),q},x.setSelectOptions=function(g,p){Array.isArray(p)&&(Qe(g),p.forEach(function(B){var H=document.createElement("option");H.value=B.value,H.textContent=B.text,B.selected&&H.setAttribute("selected",""),B.disabled&&H.setAttribute("disabled",""),B.label&&H.setAttribute("label",B.label),g.appendChild(H)}))},x.getSelectOptions=function(g){if(!g)return null;var p=g.options;if(!p)return null;var B,H=[],U=Le(p);try{for(U.s();!(B=U.n()).done;){var q=B.value,oe={value:q.value,text:q.textContent};q.selected&&(oe.selected=!0),q.disabled&&(oe.disabled=!0),q.label&&(oe.label=q.label),H.push(oe)}}catch(de){U.e(de)}finally{U.f()}return H.length===0?null:H}}(v,et,Ve),function(w,A){A.connectedGridHeader=function(x){var g=w[x];if(g){var p=w[x].elements.gridHeader;if(!p.style.gridTemplateColumns.includes("%")){for(var B=0,H=1;H<g.methods.getColCount();H++)B+=Ie(g.methods.getColOriginWidth(H)).number;p.style.width=B+"px"}}},A.connectedGridBody=function(x){var g=w[x];if(g){var p=w[x].elements.gridBody;if(!p.style.gridTemplateColumns.includes("%")){for(var B=0,H=1;H<g.methods.getColCount();H++)B+=Ie(g.methods.getColOriginWidth(H)).number;p.style.width=B+"px"}}},A.connectedGridFooter=function(x){var g=w[x];if(g){var p=w[x].elements.gridFooter;if(!p.style.gridTemplateColumns.includes("%")){var B=0;if(!A._getFooterCells(x)||A._getFooterCells(x).length<=0)return;for(var H=1;H<g.methods.getColCount();H++)B+=Ie(g.methods.getColOriginWidth(H)).number;p.style.width=B+"px"}}},A.connectedGridData=function(x){var g=x._gridId,p=w[g],B=p.methods.getGridInfo();switch(x.style.removeProperty("display"),x.style.removeProperty("align-items"),x.style.removeProperty("justify-content"),x.style.removeProperty("text-align"),x.style.removeProperty("z-index"),x._type){case"ghd":if(x.innerText=x.value,B.frozenRowCount<=0&&x.colIndex<=B.frozenColCount){for(var H,U=0,q=x.colIndex-1;q>0;q--)if(H=A._getHeaderCell(g,x.rowIndex,q))if(H.isRowMerge){for(var oe=x.rowIndex-1,de=A._getHeaderCell(g,oe,q);de&&!(oe<0)&&de.isRowMerge;)oe--,de=A._getHeaderCell(g,oe,q);U+=de.offsetWidth}else U+=A._getHeaderCell(g,x.rowIndex,q).offsetWidth;else U+=0;x.style.position="sticky",x.style.zIndex=String(300+p.methods.getColCount()-x.colIndex),x.style.left=U+"px",x._frozenCol=!0}if(x.isRowMerge){for(var he=x.rowIndex-1,se=A._getHeaderCell(g,he,x.colIndex);se&&!(he<0);){if(!se.isRowMerge){se.style.gridRowEnd=x.style.gridRowEnd,se.rowSpan=se.rowSpan?se.rowSpan+1:1,se.style.zIndex=se.style.zIndex?se.style.zIndex:"250";break}he--,se=A._getHeaderCell(g,he,x.colIndex)}x.style.display="none"}if(x.isColMerge){for(var me=x.colIndex-1,Q=A._getHeaderCell(g,x.rowIndex,me);Q&&!(me<0);){if(!Q.isColMerge){if(Q.colId==="v-g-rownum"||Q.colId==="v-g-status")break;Q.style.gridColumnEnd=x.style.gridColumnEnd,Q.colSpan=Q.colSpan?Q.colSpan+1:1,Q.style.zIndex=Q.style.zIndex?Q.style.zIndex:"250";break}me--,Q=A._getHeaderCell(g,x.rowIndex,me)}x.style.display="none"}if(x.colVisible&&x.rowVisible||(x.style.display="none"),p.methods.getHeaderRowCount()===x.rowIndex){var u=x;if(x.isRowMerge)for(var b=x.rowIndex-1;b>0&&!(u=A._getHeaderCell(g,b,x.colIndex)).rowSpan;b--);u&&(u._isLastCell=!0)}if(B.filterable===!0&&p.methods.getColInfo(x.colId).filterable&&p.methods.getHeaderRowCount()===x.rowIndex&&x.colId!=="v-g-rownum"&&x.colId!=="v-g-status"){var _,R=A._getFilterSpan();R&&R instanceof HTMLElement&&R.nodeType===1?_=R.cloneNode(!0):(_=document.createElement("span")).innerText="σ",_._gridId=x._gridId,_.isChild=!0,_._type="filter",_.classList.add(x._gridId+"_filterSpan");var F=document.createElement("select");F.classList.add(x._gridId+"_filterSelect"),F.style.display="none",F._gridId=x._gridId,F.colId=x.colId,F.addEventListener("mousedown",function(Ct){Ct.target.filterOldValue=Ct.target.value}),F.addEventListener("change",function(Ct){var jt=Ct.target.value,rn=Ct.target._gridId;if(w[rn].events.onChooseFilter(Ct.target.parentNode.parentNode.rowIndex,Ct.target.parentNode.parentNode.colId,Ct.target.filterOldValue,jt)===!1)return Ct.stopPropagation(),void Ct.preventDefault();A._doFilter(rn),jt==="$$ALL"&&(Ct.target.style.display="none")}),_.append(F);var D=x;if(x.isRowMerge)for(var z=x.rowIndex-1;z>0&&!(D=A._getHeaderCell(g,z,x.colIndex)).rowSpan;z--);D&&(D.insertBefore(_,D.firstChild),D._filterSelector=F)}x.classList.add(x._gridId+"_h-v-g-d");break;case"gfd":if(B.frozenRowCount<=0&&x.colIndex<=B.frozenColCount){for(var pe,Se=0,ze=x.colIndex-1;ze>0;ze--)if(pe=A._getFooterCell(g,x.rowIndex,ze))if(pe.isRowMerge){for(var je=x.rowIndex-1,Ue=A._getFooterCell(g,je,ze);Ue&&!(je<0)&&Ue.isRowMerge;)je--,Ue=A._getFooterCell(g,je,ze);Se+=Ue.offsetWidth}else Se+=A._getFooterCell(g,x.rowIndex,ze).offsetWidth;else Se+=0;x.style.position="-webkit-sticky",x.style.zIndex="300",x.style.left=Se+"px",x._frozenCol=!0}var it=p.data.colInfos[x.colIndex-1].footer;Array.isArray(it)||(it=null);var rt=it&&it.length>=x.rowIndex-1?it[x.rowIndex-1]:null;if(rt){var ct;x.classList.add(x._gridId+"_f-v-g-d-value");try{ct=A._getFooterCell(g,x.rowIndex,x.colIndex-1)}catch{ct=null}if(ct&&ct.classList.add(x._gridId+"_f-v-g-d-value"),Object.values(re).includes(rt)){var Ne,Pe,lt;switch(rt){case"$$MAX":if(x.style.justifyContent="right",x.style.textAlign="right",p.methods.getRowCount()>0){Ne=Pe=A.getFirstCellValidNumber(x);for(var ae=2;ae<=p.methods.getRowCount();ae++)lt=A._getCell(g,ae,x.colIndex),A.isCellVisible(lt)&&(Pe=Et(lt.value))!==null&&Pe>Ne&&(Ne=Pe)}break;case"$$MIN":if(x.style.justifyContent="right",x.style.textAlign="right",p.methods.getRowCount()>0){Ne=Pe=A.getFirstCellValidNumber(x);for(var te=2;te<=p.methods.getRowCount();te++)lt=A._getCell(g,te,x.colIndex),A.isCellVisible(lt)&&(Pe=Et(lt.value))!==null&&Pe<Ne&&(Ne=Pe)}break;case"$$SUM":if(x.style.justifyContent="right",x.style.textAlign="right",p.methods.getRowCount()>0){Ne=0;for(var ht=1;ht<=p.methods.getRowCount();ht++)lt=A._getCell(g,ht,x.colIndex),A.isCellVisible(lt)&&(Ne=Math.round(1e5*(Ne+nn(lt.value)))/1e5)}break;case"$$AVG":if(x.style.justifyContent="right",x.style.textAlign="right",p.methods.getRowCount()>0){Ne=0,Pe=0;for(var d=0,y=1;y<=p.methods.getRowCount();y++)lt=A._getCell(g,y,x.colIndex),A.isCellVisible(lt)&&(Ne=Math.round(1e5*(Ne+nn(lt.value)))/1e5,lt.value===null||lt.value===void 0||isNaN(lt.value)||d++);Ne=d===0?null:(Ne/d).toFixed(2)}}Ne=Ne==null?"-":A.getFormatNumber(p.methods.getColFormat(x.colIndex),Ne),x.innerText=Ne,x.value=Ne}else if(typeof rt=="function"){var M=rt(p.methods.getValues());x.innerText=M,x.value=M}else{x.innerText=rt,x.value=rt;var S=A._getFooterFormula();S&&S.constructor===Object&&Object.keys(S).forEach(function(Ct){if(rt===Ct){var jt=S[Ct](p.methods.getColValues(x.colIndex));x.innerText=jt,x.value=jt}})}}x.align&&(x.style.justifyContent=x.align,x.style.textAlign=x.align),x.colIndex===p.methods.getColCount()&&x.classList.add(x._gridId+"_f-v-g-d-value"),x.colVisible&&x.rowVisible||(x.style.display="none"),x.classList.add(x._gridId+"_f-v-g-d");break;case"gbd":switch(x.dataType){case"text":case"mask":x.style.justifyContent="left",x.style.textAlign="left";break;case"number":x.style.justifyContent="right",x.style.textAlign="right";break;case"date":case"month":case"code":case"select":case"checkbox":case"button":case"link":x.style.justifyContent="center",x.style.textAlign="center";break;default:x.style.justifyContent="center",x.style.textAlign="center";var N=A._getDataTypeStyle();Object.keys(N).forEach(function(Ct){if(x.dataType===Ct){if(N[Ct].constructor!==Object)throw new Error("Cellstyle can only be inserted in object type.");Object.keys(N[Ct]).forEach(function(jt){x.style[jt]=N[Ct][jt]})}})}for(;x.firstChild;)x.removeChild(x.firstChild);if(x.append(A._getCellChildNode(x)),x.rowIndex<=B.frozenRowCount){for(var O,T=p.elements.gridHeader.offsetHeight,G=0,V=x.rowIndex-1;V>0;V--)if(O=A._getCell(g,V,x.colIndex))if(O.isColMerge){for(var Z=x.colIndex-1,ne=A._getCell(g,V,Z);ne&&!(Z<0)&&ne.isColMerge;)Z--,ne=A._getCell(g,V,Z);G+=ne.offsetHeight}else G+=A._getCell(g,V,x.colIndex).offsetHeight;else G+=0;x.style.position="sticky",x.style.zIndex="200",x.style.top=T+G+"px",x.rowIndex===B.frozenRowCount&&(x.style.borderBottom=B.cssInfo.verticalBorderSize+"px solid "+B.cssInfo.headerCellBorderColor),x._frozenCol=!0}if(B.frozenRowCount<=0&&x.colIndex<=B.frozenColCount){for(var Y,le=0,qe=x.colIndex-1;qe>0;qe--)if(Y=A._getCell(g,x.rowIndex,qe))if(Y.isRowMerge){for(var _t=x.rowIndex-1,on=A._getCell(g,_t,qe);on&&!(_t<0)&&on.isRowMerge;)_t--,on=A._getCell(g,_t,qe);le+=on.offsetWidth}else le+=A._getCell(g,x.rowIndex,qe).offsetWidth;else le+=0;x.style.position="sticky",x.style.zIndex="200",x.colIndex===B.frozenColCount&&(x.style.borderRight=B.cssInfo.verticalBorderSize+"px solid "+B.cssInfo.headerCellBorderColor),x.style.left=le+"px",x._frozenRow=!0}if(x.isRowMerge){for(var Ft=x.rowIndex-1,Gt=A._getCell(g,Ft,x.colIndex);Gt&&!(Ft<0);){if(!Gt.isRowMerge){Gt.style.gridRowEnd=x.style.gridRowEnd,Gt.verticalAlign||(Gt.style.alignItems="center"),Gt.style.zIndex=Gt.style.zIndex?Gt.style.zIndex:"50";break}Ft--,Gt=A._getCell(g,Ft,x.colIndex)}A.isCellVisible(Gt)&&(x.style.display="none")}if(x.isColMerge){for(var St=x.colIndex-1,At=A._getCell(g,x.rowIndex,St);At&&!(St<0);){if(!At.isColMerge){At.style.gridColumnEnd=x.style.gridColumnEnd,At.align||(At.style.justifyContent="center"),At.align||(At.style.textAlign="center"),At.verticalAlign||(At.style.alignItems="center"),At.style.zIndex=At.style.zIndex?At.style.zIndex:"50";break}St--,At=A._getCell(g,x.rowIndex,St)}x.style.display="none"}if(x.align&&(x.style.justifyContent=x.align,x.style.textAlign=x.align),x.verticalAlign)switch(x.verticalAlign.toLowerCase()){case"top":x.style.alignItems="flex-start";break;case"bottom":x.style.alignItems="flex-end";break;default:x.style.alignItems="center"}x.overflowWrap&&(x.style.overflowWrap=x.overflowWrap),x.wordBreak&&(x.style.wordBreak=x.wordBreak),x.whiteSpace&&(x.style.whiteSpace=x.whiteSpace),x.backColor&&(x.style.backgroundColor=x.backColor),x.fontColor&&(x.firstChild.style.color=x.fontColor),x.fontBold&&(x.firstChild.style.fontWeight="bold"),x.fontItalic&&(x.firstChild.style.fontStyle="italic"),x.fontThruline&&(x.firstChild.style.textDecoration="line-through"),x.fontUnderline&&(x.firstChild.style.textDecoration="underline"),x.colVisible&&x.rowVisible||(x.style.display="none"),x.filter&&(x.style.display="none"),B.alterRow&&x.rowIndex%2==0?(x.classList.add(x._gridId+"_b-v-g-d-alter"),x.classList.remove(x._gridId+"_b-v-g-d")):(x.classList.add(x._gridId+"_b-v-g-d"),x.classList.remove(x._gridId+"_b-v-g-d-alter")),x.locked&&x.lockedColor?x.classList.add(x._gridId+"_b-v-g-d-locked"):x.classList.remove(x._gridId+"_b-v-g-d-locked"),x.locked&&(x.dataType==="select"&&x.firstChild&&x.firstChild.nType=="select"||x.dataType==="checkbox"&&x.firstChild&&x.firstChild.nType=="checkbox")&&(x.firstChild.disabled=!0,x.firstChild.style.pointerEvents="none"),x.untarget&&(x.dataType==="button"&&x.firstChild&&x.firstChild.nType=="button"?(x.firstChild.disabled=!0,x.firstChild.style.pointerEvents="none"):x.dataType==="link"&&x.firstChild&&x.firstChild.nType=="link"&&(x.firstChild.style.opacity="0.8",x.firstChild.style.pointerEvents="none"))}x.classList.add(x._gridId+"_v-g-d"),x.addEventListener("mouseover",function(Ct){x.untarget||x._type!=="gbd"||(x.classList.add(x._gridId+"_mouseover-cell"),x.dataType==="link"&&x.querySelectorAll("*").forEach(function(jt){jt.classList.add(x._gridId+"_mouseover-cell")}))}),x.addEventListener("mouseout",function(Ct){x.untarget||x._type!=="gbd"||(x.classList.remove(x._gridId+"_mouseover-cell"),x.dataType==="link"&&x.querySelectorAll("*").forEach(function(jt){jt.classList.remove(x._gridId+"_mouseover-cell")}))})}}(et,Ve),v.documentEvent.mousedown=function(w){v._status.activeGridEditor&&v._status.activeGridEditor!==w.target&&Ve.modifyCell(v),v._status.activeGrid&&!v._status.activeGrid.elements.grid.contains(w.target)&&(v._status.activeGrid=null)},document.removeEventListener("mousedown",v.documentEvent.mousedown),document.addEventListener("mousedown",v.documentEvent.mousedown),v.documentEvent.mouseup=function(w){v._status.mouseX=0,v._status.mouseY=0,Ve.stopScrolling(v),v._status.isDragging&&(v._status.isDragging=!1),v._status.isHeaderDragging&&(v._status.isHeaderDragging=!1)},document.removeEventListener("mouseup",v.documentEvent.mouseup),document.addEventListener("mouseup",v.documentEvent.mouseup),v.documentEvent.keydown=function(w){if(v._status.activeGrid&&!v._status.activeGridEditor){var A=v._status.activeGrid;if(!A)return;var x=A.data.id;if(A.events.onKeydownGrid(w)===!1)return w.stopPropagation(),void w.preventDefault();if(w.ctrlKey||w.metaKey)switch(w.key){case"z":case"Z":Ve.redoundo(x),w.preventDefault();break;case"y":case"Y":Ve.redoundo(x,!1),w.preventDefault();break;case"a":case"A":A.data.variables.targetCell=Ve._getCell(x,1,3),Ve.selectCells(Ve._getCell(x,1,1),Ve._getCell(x,A.methods.getRowCount(),A.methods.getColCount())),w.preventDefault()}if(A.data.gridInfo.selectionPolicy==="none"||A.data.variables.activeCells.length<=0)return;var g,p=A.data.variables.activeCells[0],B=A.data.variables.activeCells[A.data.variables.activeCells.length-1];switch(Object.keys(v.dataType).forEach(function(H){if(A.data.variables.targetCell.dataType===H&&v.dataType[H].onSelectedAndKeyDown){if(typeof v.dataType[H].onSelectedAndKeyDown!="function")throw new Error("onSelectedAndKeyDown must be a function.");if(v.dataType[H].onSelectedAndKeyDown(w,A.data.id,Ve.__getData(A.data.variables.targetCell))===!1)return}}),w.key){case"Tab":g=Ve.getTabCell(A.data.variables.targetCell,w.shiftKey),Ve.selectCell(g),w.preventDefault();break;case"F2":Ve.createGridEditor(A.data.variables.targetCell),w.preventDefault();break;case"Enter":A.data.variables.targetCell.dataType==="select"?(v._status.editOldValue=A.data.variables.targetCell.firstChild.value,A.data.variables.targetCell.firstChild.focus()):A.data.variables.targetCell.dataType==="checkbox"?(v._status.editOldValue=A.data.variables.targetCell.value,A.data.variables.targetCell.firstChild.checked=!A.data.variables.targetCell.firstChild.checked,Ve.selectAndCheckboxOnChange(A.data.variables.targetCell.firstChild),g=Ve.getMoveRowCell(A.data.variables.targetCell,1),Ve.selectCell(g),w.preventDefault()):["text","number","date","month","mask","code"].indexOf(A.data.variables.targetCell.dataType)>=0&&(Ve.createGridEditor(A.data.variables.targetCell,!0),w.preventDefault());break;case" ":if(A.data.variables.targetCell.dataType==="select"){if(A.data.variables.targetCell.untarget||A.data.variables.targetCell.locked)return void w.preventDefault();v._status.editOldValue=A.data.variables.targetCell.firstChild.value,A.data.variables.targetCell.firstChild.focus()}else if(A.data.variables.targetCell.dataType==="button")A.data.variables.targetCell.firstChild.focus();else if(A.data.variables.targetCell.dataType==="checkbox"){if(A.data.variables.targetCell.untarget||A.data.variables.targetCell.locked)return void w.preventDefault();v._status.editOldValue=A.data.variables.targetCell.value,A.data.variables.targetCell.firstChild.checked=!A.data.variables.targetCell.firstChild.checked,Ve.selectAndCheckboxOnChange(A.data.variables.targetCell.firstChild),w.preventDefault()}else["text","number","date","month","mask","code"].indexOf(A.data.variables.targetCell.dataType)>=0&&(Ve.createGridEditor(A.data.variables.targetCell),w.preventDefault());break;case"ArrowUp":A.data.gridInfo.selectionPolicy==="range"&&w.shiftKey?(Ve.unselectCells(x),A.data.variables.targetCell.rowIndex>=B.rowIndex?(g=Ve.getMoveRowCell(p,-1),Ve.selectCells(g,B,g)):(g=Ve.getMoveRowCell(B,-1),Ve.selectCells(p,g))):(g=Ve.getMoveRowCell(A.data.variables.targetCell,-1),Ve.selectCell(g)),w.preventDefault();break;case"ArrowDown":A.data.gridInfo.selectionPolicy==="range"&&w.shiftKey?(Ve.unselectCells(x),A.data.variables.targetCell.rowIndex<=p.rowIndex?(g=Ve.getMoveRowCell(B,1),Ve.selectCells(p,g)):(g=Ve.getMoveRowCell(p,1),Ve.selectCells(g,B,g))):(g=Ve.getMoveRowCell(A.data.variables.targetCell,1),Ve.selectCell(g)),w.preventDefault();break;case"ArrowLeft":A.data.gridInfo.selectionPolicy==="range"&&w.shiftKey?(Ve.unselectCells(x),A.data.variables.targetCell.colIndex>=B.colIndex?(g=Ve.getMoveColCell(p,-1),Ve.selectCells(g,B,g)):(g=Ve.getMoveColCell(B,-1),Ve.selectCells(p,g))):(g=Ve.getMoveColCell(A.data.variables.targetCell,-1),Ve.selectCell(g)),w.preventDefault();break;case"ArrowRight":A.data.gridInfo.selectionPolicy==="range"&&w.shiftKey?(Ve.unselectCells(x),A.data.variables.targetCell.colIndex<=p.colIndex?(g=Ve.getMoveColCell(B,1),Ve.selectCells(p,g)):(g=Ve.getMoveColCell(p,1),Ve.selectCells(g,B,g))):(g=Ve.getMoveColCell(A.data.variables.targetCell,1),Ve.selectCell(g)),w.preventDefault()}}},document.removeEventListener("keydown",v.documentEvent.keydown),document.addEventListener("keydown",v.documentEvent.keydown),v.documentEvent.copy=function(w){if(v._status.activeGrid&&!v._status.activeGridEditor){var A=v._status.activeGrid.data.variables.activeCells;A.length>0&&(w.preventDefault(),Ve.copyGrid(A))}},document.removeEventListener("copy",v.documentEvent.copy),document.addEventListener("copy",v.documentEvent.copy),v.documentEvent.paste=function(w){v._status.activeGrid&&!v._status.activeGridEditor&&v._status.activeGrid.data.variables.activeCells.length>0&&(w.preventDefault(),Ve.pasteGrid(w,v._status.activeGrid.data.id))},document.removeEventListener("paste",v.documentEvent.paste),document.addEventListener("paste",v.documentEvent.paste),v._initialized=!0)},Ht=function(){Ze&&(Object.values(et).forEach(function(v){var w=document.getElementById(v.data.id),A=document.getElementById(v.data.id+"_styles-sheet");w&&w.parentNode.removeChild(w),A&&A.parentNode.removeChild(A),delete et[v.data.id],v=null}),document.removeEventListener("mousedown",Ze.documentEvent.mousedown),document.removeEventListener("mouseup",Ze.documentEvent.mouseup),document.removeEventListener("keydown",Ze.documentEvent.keydown),document.removeEventListener("copy",Ze.documentEvent.copy),document.removeEventListener("paste",Ze.documentEvent.paste),Ze.unmountGrid(),Ze=null)};return o})())}(fi)),fi.exports}var Na=Yd();const Kd=t=>t==null,Xd=()=>{let t=new Date().getTime();return typeof performance<"u"&&typeof performance.now=="function"&&(t+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const n=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(e==="x"?n:n&3|8).toString(16)})},Jd=t=>!t||typeof t!="string"?"":t.toLowerCase(),Zd=t=>!t||typeof t!="string"?"":t.toUpperCase(),Qd=(t,e)=>{if(typeof e!="string"||typeof t!="string")return null;const n=e.split(""),o=t.split("");let r="",i;return n.every((a,c)=>{switch(i=!1,a){case"A":/^[A-Z]$/.test(o[c])?(r+=o[c],i=!0):/^[a-z]$/.test(o[c])&&(r+=Zd(o[c]),i=!0);break;case"a":/^[a-z]$/.test(o[c])?(r+=o[c],i=!0):/^[A-Z]$/.test(o[c])&&(r+=Jd(o[c]),i=!0);break;case"9":/^[0-9]$/.test(o[c])&&(r+=o[c],i=!0);break;default:a===o[c]&&(r+=o[c],i=!0);break}return i}),r},eu=t=>(t=String(t),t.replace(/[^0-9]/g,"")),tu=t=>t<768?"mb":t<1200?"tb":t<1980?"pc":"wd",nu=(t,e)=>Array.from(t).find(n=>n.startsWith(`hison-${e}-`)),ou=(t,e)=>{const n=nu(t,e);if(n){const o=n.split("-");if(o.length>=3)return o[2]}return null},js=(t,e)=>t.findIndex(n=>n.startsWith(`hison-${e}-`)),Ws=t=>t?typeof t=="string"?t:Array.isArray(t)?t.map(Ws).filter(Boolean).join(" "):typeof t=="object"?Object.keys(t).filter(e=>!!t[e]).join(" "):"":"",ru=(t,e)=>{const n=t.trim().split(/\s+/),o={},r=[];for(const a of n){const c=a.match(/^(hison-(color|size|col|pos|layout-vertical-align)-[\w]+?)(?:-(mb|tb|pc|wd))?$/);if(c){const m=c[1],C=c[2],L=c[3];o[C]||(o[C]={}),L?o[C][L]=m:o[C].default=m}else r.push(a)}const i=[];for(const a of Object.values(o)){const c=a[e]||(e==="mb"?a.tb:void 0)||(e==="tb"?a.mb:void 0)||(e==="pc"?a.wd:void 0)||(e==="wd"?a.pc:void 0)||a.default;c&&i.push(c)}return[...r,...i].filter(Boolean)},iu=(t,e,n)=>{const o=js(t,e);o!==-1?t[o]=t[o]:t.push(`hison-${e}-${n}`)},au=(t,e)=>{if(!t||!e)return[];const n=`hison-${e}-`;return t.trim().split(/\s+/).filter(o=>o.startsWith(n))},Li=t=>/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(t),qs=t=>/^rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})(\s*,\s*(0|1|0?\.\d+))?\s*\)$/.test(t),Sl=t=>typeof t=="number"&&isFinite(t),ce={event:{cssEvent:{}}},lu=t=>{let e,n,o;if(t.length===4)e=parseInt(t[1]+t[1],16),n=parseInt(t[2]+t[2],16),o=parseInt(t[3]+t[3],16);else if(t.length===7)e=parseInt(t.slice(1,3),16),n=parseInt(t.slice(3,5),16),o=parseInt(t.slice(5,7),16);else throw new Error(`Invalid hex color format: ${t}`);return`rgba(${e}, ${n}, ${o}, 1)`},su=t=>{const e=t.replace(/\s+/g,"").match(/^rgba?\((\d+),(\d+),(\d+),?.*\)$/i);if(!e)throw new Error(`Invalid rgba color format: ${t}`);const n=parseInt(e[1],10),o=parseInt(e[2],10),r=parseInt(e[3],10),i=a=>{const c=a.toString(16);return c.length===1?"0"+c:c};return`#${i(n)}${i(o)}${i(r)}`},Vn=t=>{if(Li(t))return t.replace(/\s+/g,"");if(qs(t))return su(t);throw new Error(`Invalid color format: ${t}`)},dn=t=>{if(Li(t))return lu(t);if(qs(t))return t.replace(/\s+/g,"");throw new Error(`Invalid color format: ${t}`)},_o=(t,e,n)=>{if(!Sl(e))throw new Error("add must be valid numbers");if(n&&!Sl(n))throw new Error("newOpacity must be valid numbers");const o=(K,X,ee)=>Math.min(Math.max(K,X),ee),r=t.match(/^rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})(?:\s*,\s*(0|1|0?\.\d+))?\s*\)$/i);if(!r)throw new Error("Invalid rgba color format");let[,i,a,c,m]=r;n||(n=Number(m));const C=o(parseInt(i)+e,0,255),L=o(parseInt(a)+e,0,255),P=o(parseInt(c)+e,0,255),W=o(n,0,1);return`rgba(${C},${L},${P},${W})`},hn=t=>{const e=t.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+),\s*(\d*\.?\d+)\)$/);if(!e)throw new Error("Invalid RGBA format.");const[,n,o,r,i]=e.map(Number),a=255-n,c=255-o,m=255-r;return`rgba(${a}, ${c}, ${m}, ${i})`},$s=t=>{const e=t.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+),\s*(\d*\.?\d+)\)$/);if(!e)throw new Error("Invalid RGBA format.");const[,n,o,r,i]=e.map(Number);return i<=.5?!1:n+o+r>385},cu=t=>{switch(t){case"primary":return Vn(ce.componentStyle.primaryColor);case"muted":return Vn(ce.componentStyle.mutedColor);case"info":return Vn(ce.componentStyle.infoColor);case"success":return Vn(ce.componentStyle.successColor);case"danger":return Vn(ce.componentStyle.dangerColor);case"warning":return Vn(ce.componentStyle.warningColor)}return null},du=t=>{switch(t){case"primary":return ce.componentStyle.primaryColor;case"muted":return ce.componentStyle.mutedColor;case"info":return ce.componentStyle.infoColor;case"success":return ce.componentStyle.successColor;case"danger":return ce.componentStyle.dangerColor;case"warning":return ce.componentStyle.warningColor}return""},uu=t=>$s(t)?Ja:Za,vo=(t,e)=>{t.buttonColor=e,t.borderColor=_o(e,-31),t.shadowColor=_o(e,-47),t.hoverColor=_o(e,-24),t.activeColor=_o(e,-24),t.rowHoverColor=_o(e,64,.2),t.stripeColor=_o(e,64,.1),t.emptyTextColor=e,t.filledTextColor=uu(e)},fu=(t,e)=>t.replace(/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([0-9.]+)\s*\)/i,(n,o,r,i)=>`rgba(${o},${r},${i},${e})`),Ni=new Map,hu=(t,e)=>{Ni.set(t,e)},mu=t=>{Ni.delete(t)},gu=()=>{for(const t of Ni.values())t()},yu=t=>{const e=Ni.get(t);e&&e()};var lo=(t=>(t.s="s",t.m="m",t.l="l",t.xl="xl",t))(lo||{}),Ys=(t=>(t.primary="primary",t.muted="muted",t.info="info",t.success="success",t.danger="danger",t.warning="warning",t))(Ys||{}),hi={exports:{}},pu=hi.exports,kl;function _u(){return kl||(kl=1,function(t,e){(function(n,o){t.exports=o()})(typeof self<"u"?self:typeof So<"u"?So:pu,()=>(()=>{var n={d:(f,h)=>{for(var I in h)n.o(h,I)&&!n.o(f,I)&&Object.defineProperty(f,I,{enumerable:!0,get:h[I]})},o:(f,h)=>Object.prototype.hasOwnProperty.call(f,h),r:f=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(f,"__esModule",{value:!0})}},o={};n.r(o),n.d(o,{NoteModeByDevice:()=>i,ToolPosition:()=>r,getVanillanote:()=>gn,getVanillanoteConfig:()=>Rn});var r=function(f){return f.top="TOP",f.bottom="BOTTOM",f}({}),i=function(f){return f.adaptive="ADAPTIVE",f.mobile="MOBILE",f.desktop="DESKTOP",f}({}),a=function(f){for(var h=f;!(h instanceof Element);)h=h.parentNode;return h.closest?h.closest("[data-vanillanote]"):null},c=function(f,h,I){return f+"_"+h+"_"+I},m=function(f,h,I){return f+"_"+h+"_"+I},C=function(f){return f+"_eventChildren"},L=function(f){return f+"_eventOnOverCssElement"},P=function(f){return f+"_eventClickCssElement"},W=function(){var f=new Date().getTime();return typeof performance<"u"&&typeof performance.now=="function"&&(f+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(h){var I=(f+16*Math.random())%16|0;return f=Math.floor(f/16),(h==="x"?I:3&I|8).toString(16)})},K=function(f){if(!f)return null;for(var h,I=f instanceof Element?f:f.parentNode;!I.hasAttribute("data-note-id")&&(I=I.parentNode)&&I.hasAttribute;);return I&&I.hasAttribute&&I.hasAttribute("data-note-id")&&(h=I.getAttribute("data-note-id")),h},X=function(){var f,h=navigator;if(((f=h.userAgentData)===null||f===void 0?void 0:f.mobile)!==void 0)return h.userAgentData.mobile;var I=navigator.userAgent;return/iPhone|iPad|iPod|Android|webOS|BlackBerry|IEMobile|Opera Mini/i.test(I)},ee=function(f){return/^[0-9]+$/.test(f)},re=function(f){return f==="-"||!isNaN(f)},fe=function(f){return/^[0-9A-Fa-f]*$/.test(f)},ye=function(f){var h=f.match(/-?\d+\.?\d*/);return h?Number(parseFloat(h[0])):null},xe=function(f,h){var I=Object.keys(f),be=Object.keys(h);if(I.length!==be.length)return!1;for(var Be=0;Be<I.length;Be++)if(!be.includes(I[Be])||f[I[Be]]!==h[I[Be]])return!1;return!0},ke=function(f,h){var I={};for(var be in f)f.hasOwnProperty(be)&&(I[be]=f[be]);for(var Be in h)h.hasOwnProperty(Be)&&(I[Be]=h[Be]);return I},ve=function(f){var h,I,be=new Object;if(!f)return be;h=f.trim().split(";");for(var Be=0;Be<h.length;Be++)h[Be]&&((I=h[Be].split(":")).length<2||(be[I[0].trim()]=I[1].trim()));return be},Ee=function(f){var h="";if(!f||f.constructor!==Object||Object.keys(f).length===0)return h;for(var I=Object.entries(f),be=0;be<I.length;be++)I[be].length<2||(h+=I[be][0].trim()+":"+I[be][1].trim()+";");return h},Me=function(f,h){if(!h||h.constructor!==Object)return f;for(var I=Object.keys(h),be=0;be<I.length;be++)f.setAttribute(I[be],h[I[be]]);return f},Ie=function(f,h){if(!f||!h||(h=h.toUpperCase(),f[0]!=="#"&&(f="#"+f),!/^#([0-9A-Fa-f]{6})$/.test(f)))return"33";var I=h==="R"?1:h==="G"?3:5;return f.substring(I,I+2)},Te=function(f,h){return"rgba("+parseInt(Ie(f,"R"),16)+","+parseInt(Ie(f,"G"),16)+","+parseInt(Ie(f,"B"),16)+","+h+")"},We=function(f){if(f.startsWith("#"))return f;if(!f.startsWith("rgba"))return null;var h=f.match(/\d+/g).map(Number),I=h[0].toString(16),be=h[1].toString(16),Be=h[2].toString(16);return I.length==1&&(I="0"+I),be.length==1&&(be="0"+be),Be.length==1&&(Be="0"+Be),"#"+I+be+Be},nt=function(f){if(!f||f.startsWith("#"))return null;var h=f.match(/\d+/g);if(!h)return null;var I=h.map(Number);return I.length<4?"1":I[3].toString()},De=function(f){if(/^#[0-9a-fA-F]{6}$/.test(f))return f;var h=document.createElement("div");h.style.color=f,document.body.appendChild(h);var I=window.getComputedStyle(h).color;document.body.removeChild(h);var be=I.match(/\d+/g);return"#"+((1<<24)+(+be[0]<<16)+(+be[1]<<8)+ +be[2]).toString(16).slice(1)},ot=function(f,h){f.startsWith("#")&&(f=f.slice(1));var I=parseInt(h,16);h.startsWith("-")&&(I=-parseInt(h.slice(1),16));var be=parseInt(f.slice(0,2),16)+I,Be=parseInt(f.slice(2,4),16)+I,tt=parseInt(f.slice(4,6),16)+I;return"#"+(be=(be<0?0:be>255?255:be).toString(16).padStart(2,"0"))+(Be=(Be<0?0:Be>255?255:Be).toString(16).padStart(2,"0"))+(tt<0?0:tt>255?255:tt).toString(16).padStart(2,"0")},mt=function(f){f.startsWith("#")&&(f=f.slice(1));var h=255-parseInt(f.slice(0,2),16),I=255-parseInt(f.slice(2,4),16),be=255-parseInt(f.slice(4,6),16);return I=I<127.5?I+16:I-16,be=be<127.5?be+16:be-16,"#"+(h=((h=h<127.5?h+16:h-16)<0?0:h>255?255:h).toString(16).padStart(2,"0"))+(I=(I<0?0:I>255?255:I).toString(16).padStart(2,"0"))+(be<0?0:be>255?255:be).toString(16).padStart(2,"0")},Qe=function(f){var h={color1:"",color2:"",color3:"",color4:"",color5:"",color6:"",color7:"",color8:"",color9:"",color10:"",color11:"",color12:"",color13:"",color14:"",color15:"",color16:"",color17:"",color18:"",color19:"",color20:""};return function(I){if(!/^#([0-9a-fA-F]{6})$/.test(I))throw new Error("Invalid HEX color format: ".concat(I));return parseInt(I.slice(1,3),16)+parseInt(I.slice(3,5),16)+parseInt(I.slice(5,7),16)>385?"light":"dark"}(f=De(f))==="light"?(h.color1="#333333",h.color2="#ffffff",h.color3=ot(f,"18"),h.color4=f,h.color5=ot(f,"-18"),h.color6=ot(f,"-1f"),h.color7=ot(f,"-2f"),h.color8="#609966",h.color9="#df2e38",h.color10="#333333",h.color11="#666666",h.color12="#333333",h.color13="#ffffff",h.color14="#ff7f7f",h.color15="#ffad66",h.color16="#ffff66",h.color17="#99ff99",h.color18="#99ccff",h.color19="#6699cc",h.color20="#cc99cc"):(h.color1="#ffffff",h.color2="#ffffff",h.color3=ot(f,"18"),h.color4=f,h.color5=ot(f,"-18"),h.color6=ot(f,"-1f"),h.color7=ot(f,"-2f"),h.color8="#609966",h.color9="#df2e38",h.color10="#333333",h.color11="#666666",h.color12="#333333",h.color13="#ffffff",h.color14="#b70404",h.color15="#e55807",h.color16="#f1c93b",h.color17="#1a5d1a",h.color18="#068fff",h.color19="#0c134f",h.color20="#5c469c"),h};function ut(f){return ut=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},ut(f)}function Ye(f,h){return function(I){if(Array.isArray(I))return I}(f)||function(I,be){var Be=I==null?null:typeof Symbol<"u"&&I[Symbol.iterator]||I["@@iterator"];if(Be!=null){var tt,Ge,j,E,s=[],l=!0,k=!1;try{if(j=(Be=Be.call(I)).next,be!==0)for(;!(l=(tt=j.call(Be)).done)&&(s.push(tt.value),s.length!==be);l=!0);}catch($){k=!0,Ge=$}finally{try{if(!l&&Be.return!=null&&(E=Be.return(),Object(E)!==E))return}finally{if(k)throw Ge}}return s}}(f,h)||function(I,be){if(I){if(typeof I=="string")return Je(I,be);var Be={}.toString.call(I).slice(8,-1);return Be==="Object"&&I.constructor&&(Be=I.constructor.name),Be==="Map"||Be==="Set"?Array.from(I):Be==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Be)?Je(I,be):void 0}}(f,h)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
49
49
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Je(f,h){(h==null||h>f.length)&&(h=f.length);for(var I=0,be=Array(h);I<h;I++)be[I]=f[I];return be}function dt(f,h){var I=Object.keys(f);if(Object.getOwnPropertySymbols){var be=Object.getOwnPropertySymbols(f);h&&(be=be.filter(function(Be){return Object.getOwnPropertyDescriptor(f,Be).enumerable})),I.push.apply(I,be)}return I}function Pt(f){for(var h=1;h<arguments.length;h++){var I=arguments[h]!=null?arguments[h]:{};h%2?dt(Object(I),!0).forEach(function(be){Re(f,be,I[be])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(I)):dt(Object(I)).forEach(function(be){Object.defineProperty(f,be,Object.getOwnPropertyDescriptor(I,be))})}return f}function Re(f,h,I){return(h=function(be){var Be=function(tt){if(ut(tt)!="object"||!tt)return tt;var Ge=tt[Symbol.toPrimitive];if(Ge!==void 0){var j=Ge.call(tt,"string");if(ut(j)!="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(tt)}(be);return ut(Be)=="symbol"?Be:Be+""}(h))in f?Object.defineProperty(f,h,{value:I,enumerable:!0,configurable:!0,writable:!0}):f[h]=I,f}var ft=function(f,h,I,be){var Be=null,tt=h.createElement("div",I,f.consts.CLASS_NAMES.template.id,f.consts.CLASS_NAMES.template.className);tt.style.display="none";var Ge=h.createElementBasic(I._noteName+"-textarea",I,f.consts.CLASS_NAMES.textarea.id,f.consts.CLASS_NAMES.textarea.className);Ge.setAttribute("contenteditable","true"),Ge.setAttribute("role","textbox"),Ge.setAttribute("aria-multiline","true"),Ge.setAttribute("spellcheck","true"),Ge.setAttribute("autocorrect","true"),Ge.setAttribute("name",c(I._noteName,I._id,f.consts.CLASS_NAMES.textarea.id)),Ge.setAttribute("title",f.languageSet[I._attributes.language].textareaTooltip),Ge.addEventListener("focus",function(ue){I._elementEvents.textarea_onBeforeFocus(ue)&&(f.events.elementEvents.textarea_onFocus(ue),I._elementEvents.textarea_onAfterFocus(ue),ue.stopImmediatePropagation())}),Ge.addEventListener(typeof navigator<"u"&&/iPhone|iPad|iPod/i.test(navigator.userAgent)?"mouseout":"blur",function(ue){I._elementEvents.textarea_onBeforeBlur(ue)&&(f.events.elementEvents.textarea_onBlur(ue),I._elementEvents.textarea_onAfterBlur(ue),ue.stopImmediatePropagation())}),Ge.addEventListener("keydown",function(ue){f.events.elementEvents.textarea_onKeydown(ue),ue.stopImmediatePropagation()}),Ge.addEventListener("keyup",function(ue){f.events.elementEvents.textarea_onKeyup(ue),ue.stopImmediatePropagation()}),Ge.addEventListener("beforeinput",function(ue){f.events.elementEvents.textarea_onBeforeinput(ue),ue.stopImmediatePropagation()}),f.events.documentEvents.noteObserver.observe(Ge,f.variables.observerOptions),h.initTextarea(Ge);var j=[C(I._noteName),P(I._noteName),L(I._noteName),c(I._noteName,I._id,"icon")],E=h.createElement("div",I,f.consts.CLASS_NAMES.tool.id,f.consts.CLASS_NAMES.tool.className),s=h.createElementButton("span",I,f.consts.CLASS_NAMES.toolToggleButton.id,f.consts.CLASS_NAMES.toolToggleButton.className,{isIcon:!0,text:"arrow_drop_down"});if(f.iconSpanElement.toolToggleButtonIcon&&f.iconSpanElement.toolToggleButtonIcon instanceof HTMLSpanElement){var l=f.iconSpanElement.toolToggleButtonIcon.cloneNode(!0);l.setAttribute("data-note-id",I._id),j.forEach(function(ue){l.classList.contains(ue)||l.classList.add(ue)}),s.replaceChild(l,s.firstChild)}var k=h.createElementSelect("span",I,f.consts.CLASS_NAMES.paragraphStyleSelect.id,f.consts.CLASS_NAMES.paragraphStyleSelect.className,{isIcon:!0,text:"auto_fix_high"});if(k.setAttribute("title",f.languageSet[I._attributes.language].styleTooltip),f.iconSpanElement.paragraphStyleSelectIcon&&f.iconSpanElement.paragraphStyleSelectIcon instanceof HTMLSpanElement){var $=f.iconSpanElement.paragraphStyleSelectIcon.cloneNode(!0);$.setAttribute("data-note-id",I._id),j.forEach(function(ue){$.classList.contains(ue)||$.classList.add(ue)}),k.replaceChild($,k.firstChild)}var J=h.createElement("div",I,f.consts.CLASS_NAMES.paragraphStyleSelectBox.id,f.consts.CLASS_NAMES.paragraphStyleSelectBox.className);k.appendChild(J);var ie=h.createElementButton("div",I,f.consts.CLASS_NAMES.styleNomal.id,f.consts.CLASS_NAMES.styleNomal.className,{isIcon:!1,text:"Normal"});ie.setAttribute("data-tag-name","p"),J.appendChild(ie);var ge=h.createElementButton("h1",I,f.consts.CLASS_NAMES.styleHeader1.id,f.consts.CLASS_NAMES.styleHeader1.className,{isIcon:!1,text:"Header1"});ge.setAttribute("data-tag-name","H1"),J.appendChild(ge);var Ce=h.createElementButton("h2",I,f.consts.CLASS_NAMES.styleHeader2.id,f.consts.CLASS_NAMES.styleHeader2.className,{isIcon:!1,text:"Header2"});Ce.setAttribute("data-tag-name","H2"),J.appendChild(Ce);var He=h.createElementButton("h3",I,f.consts.CLASS_NAMES.styleHeader3.id,f.consts.CLASS_NAMES.styleHeader3.className,{isIcon:!1,text:"Header3"});He.setAttribute("data-tag-name","H3"),J.appendChild(He);var Le=h.createElementButton("h4",I,f.consts.CLASS_NAMES.styleHeader4.id,f.consts.CLASS_NAMES.styleHeader4.className,{isIcon:!1,text:"Header4"});Le.setAttribute("data-tag-name","H4"),J.appendChild(Le);var Ke=h.createElementButton("h5",I,f.consts.CLASS_NAMES.styleHeader5.id,f.consts.CLASS_NAMES.styleHeader5.className,{isIcon:!1,text:"Header5"});Ke.setAttribute("data-tag-name","H5"),J.appendChild(Ke);var Ze=h.createElementButton("h6",I,f.consts.CLASS_NAMES.styleHeader6.id,f.consts.CLASS_NAMES.styleHeader6.className,{isIcon:!1,text:"Header6"});Ze.setAttribute("data-tag-name","H6"),J.appendChild(Ze);var et=h.createElementButton("span",I,f.consts.CLASS_NAMES.boldButton.id,f.consts.CLASS_NAMES.boldButton.className,{isIcon:!0,text:"format_bold"});if(et.setAttribute("title",f.languageSet[I._attributes.language].boldTooltip),f.iconSpanElement.boldButtonIcon&&f.iconSpanElement.boldButtonIcon instanceof HTMLSpanElement){var Ve=f.iconSpanElement.boldButtonIcon.cloneNode(!0);Ve.setAttribute("data-note-id",I._id),j.forEach(function(ue){Ve.classList.contains(ue)||Ve.classList.add(ue)}),et.replaceChild(Ve,et.firstChild)}var Mt=h.createElementButton("span",I,f.consts.CLASS_NAMES.underlineButton.id,f.consts.CLASS_NAMES.underlineButton.className,{isIcon:!0,text:"format_underlined"});if(Mt.setAttribute("title",f.languageSet[I._attributes.language].underlineTooltip),f.iconSpanElement.underlineButtonIcon&&f.iconSpanElement.underlineButtonIcon instanceof HTMLSpanElement){var Rt=f.iconSpanElement.underlineButtonIcon.cloneNode(!0);Rt.setAttribute("data-note-id",I._id),j.forEach(function(ue){Rt.classList.contains(ue)||Rt.classList.add(ue)}),Mt.replaceChild(Rt,Mt.firstChild)}var xt=h.createElementButton("span",I,f.consts.CLASS_NAMES.italicButton.id,f.consts.CLASS_NAMES.italicButton.className,{isIcon:!0,text:"format_italic"});if(xt.setAttribute("title",f.languageSet[I._attributes.language].italicTooltip),f.iconSpanElement.italicButtonIcon&&f.iconSpanElement.italicButtonIcon instanceof HTMLSpanElement){var Ht=f.iconSpanElement.italicButtonIcon.cloneNode(!0);Ht.setAttribute("data-note-id",I._id),j.forEach(function(ue){Ht.classList.contains(ue)||Ht.classList.add(ue)}),xt.replaceChild(Ht,xt.firstChild)}var v=h.createElementButton("span",I,f.consts.CLASS_NAMES.ulButton.id,f.consts.CLASS_NAMES.ulButton.className,{isIcon:!0,text:"format_list_bulleted"});if(v.setAttribute("title",f.languageSet[I._attributes.language].ulTooltip),v.setAttribute("data-tag-name","UL"),f.iconSpanElement.ulButtonIcon&&f.iconSpanElement.ulButtonIcon instanceof HTMLSpanElement){var w=f.iconSpanElement.ulButtonIcon.cloneNode(!0);w.setAttribute("data-note-id",I._id),j.forEach(function(ue){w.classList.contains(ue)||w.classList.add(ue)}),v.replaceChild(w,v.firstChild)}var A=h.createElementButton("span",I,f.consts.CLASS_NAMES.olButton.id,f.consts.CLASS_NAMES.olButton.className,{isIcon:!0,text:"format_list_numbered"});if(A.setAttribute("title",f.languageSet[I._attributes.language].olTooltip),A.setAttribute("data-tag-name","OL"),f.iconSpanElement.olButtonIcon&&f.iconSpanElement.olButtonIcon instanceof HTMLSpanElement){var x=f.iconSpanElement.olButtonIcon.cloneNode(!0);x.setAttribute("data-note-id",I._id),j.forEach(function(ue){x.classList.contains(ue)||x.classList.add(ue)}),A.replaceChild(x,A.firstChild)}var g=h.createElementSelect("span",I,f.consts.CLASS_NAMES.textAlignSelect.id,f.consts.CLASS_NAMES.textAlignSelect.className,{isIcon:!0,text:"notes"});if(g.setAttribute("title",f.languageSet[I._attributes.language].textAlignTooltip),f.iconSpanElement.textAlignSelectIcon&&f.iconSpanElement.textAlignSelectIcon instanceof HTMLSpanElement){var p=f.iconSpanElement.textAlignSelectIcon.cloneNode(!0);p.setAttribute("data-note-id",I._id),j.forEach(function(ue){p.classList.contains(ue)||p.classList.add(ue)}),g.replaceChild(p,g.firstChild)}var B=h.createElement("div",I,f.consts.CLASS_NAMES.textAlignSelectBox.id,f.consts.CLASS_NAMES.textAlignSelectBox.className);g.appendChild(B);var H=h.createElementButton("span",I,f.consts.CLASS_NAMES.textAlignLeft.id,f.consts.CLASS_NAMES.textAlignLeft.className,{isIcon:!0,text:"format_align_left"});if(H.setAttribute("data-tag-style","text-align:left;"),f.iconSpanElement.textAlignLeftButtonIcon&&f.iconSpanElement.textAlignLeftButtonIcon instanceof HTMLSpanElement){var U=f.iconSpanElement.textAlignLeftButtonIcon.cloneNode(!0);U.setAttribute("data-note-id",I._id),j.forEach(function(ue){U.classList.contains(ue)||U.classList.add(ue)}),H.replaceChild(U,H.firstChild)}B.appendChild(H);var q=h.createElementButton("span",I,f.consts.CLASS_NAMES.textAlignCenter.id,f.consts.CLASS_NAMES.textAlignCenter.className,{isIcon:!0,text:"format_align_center"});if(q.setAttribute("data-tag-style","text-align:center;"),f.iconSpanElement.textAlignCenterButtonIcon&&f.iconSpanElement.textAlignCenterButtonIcon instanceof HTMLSpanElement){var oe=f.iconSpanElement.textAlignCenterButtonIcon.cloneNode(!0);oe.setAttribute("data-note-id",I._id),j.forEach(function(ue){oe.classList.contains(ue)||oe.classList.add(ue)}),q.replaceChild(oe,q.firstChild)}B.appendChild(q);var de=h.createElementButton("span",I,f.consts.CLASS_NAMES.textAlignRight.id,f.consts.CLASS_NAMES.textAlignRight.className,{isIcon:!0,text:"format_align_right"});if(de.setAttribute("data-tag-style","text-align:right;"),f.iconSpanElement.textAlignRightButtonIcon&&f.iconSpanElement.textAlignRightButtonIcon instanceof HTMLSpanElement){var he=f.iconSpanElement.textAlignRightButtonIcon.cloneNode(!0);he.setAttribute("data-note-id",I._id),j.forEach(function(ue){he.classList.contains(ue)||he.classList.add(ue)}),de.replaceChild(he,de.firstChild)}B.appendChild(de);var se=h.createElementButton("span",I,f.consts.CLASS_NAMES.attLinkButton.id,f.consts.CLASS_NAMES.attLinkButton.className,{isIcon:!0,text:"link"});if(se.setAttribute("title",f.languageSet[I._attributes.language].attLinkTooltip),f.iconSpanElement.attLinkButtonIcon&&f.iconSpanElement.attLinkButtonIcon instanceof HTMLSpanElement){var me=f.iconSpanElement.attLinkButtonIcon.cloneNode(!0);me.setAttribute("data-note-id",I._id),j.forEach(function(ue){me.classList.contains(ue)||me.classList.add(ue)}),se.replaceChild(me,se.firstChild)}var Q=h.createElementButton("span",I,f.consts.CLASS_NAMES.attFileButton.id,f.consts.CLASS_NAMES.attFileButton.className,{isIcon:!0,text:"attach_file"});if(Q.setAttribute("title",f.languageSet[I._attributes.language].attFileTooltip),f.iconSpanElement.attFileButtonIcon&&f.iconSpanElement.attFileButtonIcon instanceof HTMLSpanElement){var u=f.iconSpanElement.attFileButtonIcon.cloneNode(!0);u.setAttribute("data-note-id",I._id),j.forEach(function(ue){u.classList.contains(ue)||u.classList.add(ue)}),Q.replaceChild(u,Q.firstChild)}var b=h.createElementButton("span",I,f.consts.CLASS_NAMES.attImageButton.id,f.consts.CLASS_NAMES.attImageButton.className,{isIcon:!0,text:"image"});if(b.setAttribute("title",f.languageSet[I._attributes.language].attImageTooltip),f.iconSpanElement.attImageButtonIcon&&f.iconSpanElement.attImageButtonIcon instanceof HTMLSpanElement){var _=f.iconSpanElement.attImageButtonIcon.cloneNode(!0);_.setAttribute("data-note-id",I._id),j.forEach(function(ue){_.classList.contains(ue)||_.classList.add(ue)}),b.replaceChild(_,b.firstChild)}var R=h.createElementButton("span",I,f.consts.CLASS_NAMES.attVideoButton.id,f.consts.CLASS_NAMES.attVideoButton.className,{isIcon:!0,text:"videocam"});if(R.setAttribute("title",f.languageSet[I._attributes.language].attVideoTooltip),f.iconSpanElement.attVideoButtonIcon&&f.iconSpanElement.attVideoButtonIcon instanceof HTMLSpanElement){var F=f.iconSpanElement.attVideoButtonIcon.cloneNode(!0);F.setAttribute("data-note-id",I._id),j.forEach(function(ue){F.classList.contains(ue)||F.classList.add(ue)}),R.replaceChild(F,R.firstChild)}var D=h.createElementButton("span",I,f.consts.CLASS_NAMES.fontSizeInputBox.id,f.consts.CLASS_NAMES.fontSizeInputBox.className,{isIcon:!0,text:"format_size"});if(f.iconSpanElement.fontSizeInputBoxIcon&&f.iconSpanElement.fontSizeInputBoxIcon instanceof HTMLSpanElement){var z=f.iconSpanElement.fontSizeInputBoxIcon.cloneNode(!0);z.setAttribute("data-note-id",I._id),j.forEach(function(ue){z.classList.contains(ue)||z.classList.add(ue)}),D.replaceChild(z,D.firstChild)}var pe=h.createElementInput(I,f.consts.CLASS_NAMES.fontSizeInput.id,f.consts.CLASS_NAMES.fontSizeInput.className);pe.setAttribute("type","number"),pe.setAttribute("title",f.languageSet[I._attributes.language].fontSizeTooltip),h.addClickEvent(pe,f.consts.CLASS_NAMES.fontSizeInput.id,I),D.appendChild(pe);var Se=h.createElementButton("span",I,f.consts.CLASS_NAMES.letterSpacingInputBox.id,f.consts.CLASS_NAMES.letterSpacingInputBox.className,{isIcon:!0,text:"swap_horiz"});if(f.iconSpanElement.letterSpacingInputBoxIcon&&f.iconSpanElement.letterSpacingInputBoxIcon instanceof HTMLSpanElement){var ze=f.iconSpanElement.letterSpacingInputBoxIcon.cloneNode(!0);ze.setAttribute("data-note-id",I._id),j.forEach(function(ue){ze.classList.contains(ue)||ze.classList.add(ue)}),Se.replaceChild(ze,Se.firstChild)}var je=h.createElementInput(I,f.consts.CLASS_NAMES.letterSpacingInput.id,f.consts.CLASS_NAMES.letterSpacingInput.className);je.setAttribute("type","number"),je.setAttribute("title",f.languageSet[I._attributes.language].letterSpacingTooltip),h.addClickEvent(je,f.consts.CLASS_NAMES.letterSpacingInput.id,I),Se.appendChild(je);var Ue=h.createElementButton("span",I,f.consts.CLASS_NAMES.lineHeightInputBox.id,f.consts.CLASS_NAMES.lineHeightInputBox.className,{isIcon:!0,text:"height"});if(f.iconSpanElement.lineHeightInputBoxIcon&&f.iconSpanElement.lineHeightInputBoxIcon instanceof HTMLSpanElement){var it=f.iconSpanElement.lineHeightInputBoxIcon.cloneNode(!0);it.setAttribute("data-note-id",I._id),j.forEach(function(ue){it.classList.contains(ue)||it.classList.add(ue)}),Ue.replaceChild(it,Ue.firstChild)}var rt=h.createElementInput(I,f.consts.CLASS_NAMES.lineHeightInput.id,f.consts.CLASS_NAMES.lineHeightInput.className);rt.setAttribute("type","number"),rt.setAttribute("title",f.languageSet[I._attributes.language].lineHeightTooltip),h.addClickEvent(rt,f.consts.CLASS_NAMES.lineHeightInput.id,I),Ue.appendChild(rt);var ct=h.createElementSelect("span",I,f.consts.CLASS_NAMES.fontFamilySelect.id,f.consts.CLASS_NAMES.fontFamilySelect.className,{isIcon:!1,text:I._attributes.defaultTextareaFontFamily.length>12?I._attributes.defaultTextareaFontFamily.substr(0,12)+"...":I._attributes.defaultTextareaFontFamily});ct.setAttribute("style","font-family:"+I._attributes.defaultTextareaFontFamily+";"),ct.setAttribute("title",f.languageSet[I._attributes.language].fontFamilyTooltip);var Ne=h.createElement("div",I,f.consts.CLASS_NAMES.fontFamilySelectBox.id,f.consts.CLASS_NAMES.fontFamilySelectBox.className);ct.appendChild(Ne);for(var Pe=0;Pe<I._attributes.defaultFontFamilies.length;Pe++){var lt=h.createElementFontFamiliySelect("div",I,f.consts.CLASS_NAMES.fontFamily.id+Pe,f.consts.CLASS_NAMES.fontFamily.className,{isIcon:!1,text:I._attributes.defaultFontFamilies[Pe]});lt.setAttribute("data-font-family",I._attributes.defaultFontFamilies[Pe]),lt.setAttribute("style","font-family:"+I._attributes.defaultFontFamilies[Pe]+";"),Ne.appendChild(lt)}var ae=h.createElementSelect("span",I,f.consts.CLASS_NAMES.colorTextSelect.id,f.consts.CLASS_NAMES.colorTextSelect.className,{isIcon:!0,text:"format_color_text",iconStyle:"-webkit-text-stroke: 0.5px black; font-size: 1.1em"});if(ae.setAttribute("title",f.languageSet[I._attributes.language].colorTextTooltip),f.iconSpanElement.colorTextSelectIcon&&f.iconSpanElement.colorTextSelectIcon instanceof HTMLSpanElement){var te=f.iconSpanElement.colorTextSelectIcon.cloneNode(!0);te.setAttribute("data-note-id",I._id),j.forEach(function(ue){te.classList.contains(ue)||te.classList.add(ue)}),ae.replaceChild(te,ae.firstChild)}var ht=h.createElement("div",I,f.consts.CLASS_NAMES.colorTextSelectBox.id,f.consts.CLASS_NAMES.colorTextSelectBox.className);ae.appendChild(ht);var d=h.createElement("span",I,f.consts.CLASS_NAMES.colorTextRExplain.id,f.consts.CLASS_NAMES.colorTextRExplain.className,{isIcon:!1,text:"R"});d.style.paddingLeft=8*I._attributes.sizeRate+"px",ht.appendChild(d);var y=h.createElementInput(I,f.consts.CLASS_NAMES.colorTextRInput.id,f.consts.CLASS_NAMES.colorTextRInput.className);y.setAttribute("maxlength","2"),h.addClickEvent(y,f.consts.CLASS_NAMES.colorTextRInput.id,I),ht.appendChild(y);var M=h.createElement("span",I,f.consts.CLASS_NAMES.colorTextGExplain.id,f.consts.CLASS_NAMES.colorTextGExplain.className,{isIcon:!1,text:"G"});ht.appendChild(M);var S=h.createElementInput(I,f.consts.CLASS_NAMES.colorTextGInput.id,f.consts.CLASS_NAMES.colorTextGInput.className);S.setAttribute("maxlength","2"),h.addClickEvent(S,f.consts.CLASS_NAMES.colorTextGInput.id,I),ht.appendChild(S);var N=h.createElement("span",I,f.consts.CLASS_NAMES.colorTextBExplain.id,f.consts.CLASS_NAMES.colorTextBExplain.className,{isIcon:!1,text:"B"});ht.appendChild(N);var O=h.createElementInput(I,f.consts.CLASS_NAMES.colorTextBInput.id,f.consts.CLASS_NAMES.colorTextBInput.className);O.setAttribute("maxlength","2"),h.addClickEvent(O,f.consts.CLASS_NAMES.colorTextBInput.id,I),ht.appendChild(O);var T=h.createElement("span",I,f.consts.CLASS_NAMES.colorTextOpacityExplain.id,f.consts.CLASS_NAMES.colorTextOpacityExplain.className,{isIcon:!1,text:"Opacity"});ht.appendChild(T);var G=h.createElementInput(I,f.consts.CLASS_NAMES.colorTextOpacityInput.id,f.consts.CLASS_NAMES.colorTextOpacityInput.className);G.setAttribute("type","number"),G.setAttribute("maxlength","3"),h.addClickEvent(G,f.consts.CLASS_NAMES.colorTextOpacityInput.id,I),ht.appendChild(G),Be=document.createElement("br"),ht.appendChild(Be);var V=h.createElementBasic("div",I,f.consts.CLASS_NAMES.colorText0.id,f.consts.CLASS_NAMES.colorText0.className);V.style.backgroundColor=I._colors.color12,ht.appendChild(V);var Z=h.createElementBasic("div",I,f.consts.CLASS_NAMES.colorText1.id,f.consts.CLASS_NAMES.colorText1.className);Z.style.backgroundColor=I._colors.color14,ht.appendChild(Z);var ne=h.createElementBasic("div",I,f.consts.CLASS_NAMES.colorText2.id,f.consts.CLASS_NAMES.colorText2.className);ne.style.backgroundColor=I._colors.color15,ht.appendChild(ne);var Y=h.createElementBasic("div",I,f.consts.CLASS_NAMES.colorText3.id,f.consts.CLASS_NAMES.colorText3.className);Y.style.backgroundColor=I._colors.color16,ht.appendChild(Y);var le=h.createElementBasic("div",I,f.consts.CLASS_NAMES.colorText4.id,f.consts.CLASS_NAMES.colorText4.className);le.style.backgroundColor=I._colors.color17,ht.appendChild(le);var qe=h.createElementBasic("div",I,f.consts.CLASS_NAMES.colorText5.id,f.consts.CLASS_NAMES.colorText5.className);qe.style.backgroundColor=I._colors.color18,ht.appendChild(qe);var _t=h.createElementBasic("div",I,f.consts.CLASS_NAMES.colorText6.id,f.consts.CLASS_NAMES.colorText6.className);_t.style.backgroundColor=I._colors.color19,ht.appendChild(_t);var on=h.createElementBasic("div",I,f.consts.CLASS_NAMES.colorText7.id,f.consts.CLASS_NAMES.colorText7.className);on.style.backgroundColor=I._colors.color20,ht.appendChild(on);var Ft=h.createElementSelect("span",I,f.consts.CLASS_NAMES.colorBackSelect.id,f.consts.CLASS_NAMES.colorBackSelect.className,{isIcon:!0,text:"format_color_fill",iconStyle:"font-size: 1.1em; -webkit-text-stroke: 0.5px "+I._colors.color1+";"});if(Ft.setAttribute("title",f.languageSet[I._attributes.language].colorBackTooltip),f.iconSpanElement.colorBackSelectIcon&&f.iconSpanElement.colorBackSelectIcon instanceof HTMLSpanElement){var Gt=f.iconSpanElement.colorBackSelectIcon.cloneNode(!0);Gt.setAttribute("data-note-id",I._id),j.forEach(function(ue){Gt.classList.contains(ue)||Gt.classList.add(ue)}),Ft.replaceChild(Gt,Ft.firstChild)}var St=h.createElement("div",I,f.consts.CLASS_NAMES.colorBackSelectBox.id,f.consts.CLASS_NAMES.colorBackSelectBox.className);Ft.appendChild(St);var At=h.createElement("span",I,f.consts.CLASS_NAMES.colorBackRExplain.id,f.consts.CLASS_NAMES.colorBackRExplain.className,{isIcon:!1,text:"R"});At.style.paddingLeft=8*I._attributes.sizeRate+"px",St.appendChild(At);var Ct=h.createElementInput(I,f.consts.CLASS_NAMES.colorBackRInput.id,f.consts.CLASS_NAMES.colorBackRInput.className);Ct.setAttribute("maxlength","2"),h.addClickEvent(Ct,f.consts.CLASS_NAMES.colorBackRInput.id,I),St.appendChild(Ct);var jt=h.createElement("span",I,f.consts.CLASS_NAMES.colorBackGExplain.id,f.consts.CLASS_NAMES.colorBackGExplain.className,{isIcon:!1,text:"G"});St.appendChild(jt);var rn=h.createElementInput(I,f.consts.CLASS_NAMES.colorBackGInput.id,f.consts.CLASS_NAMES.colorBackGInput.className);rn.setAttribute("maxlength","2"),h.addClickEvent(rn,f.consts.CLASS_NAMES.colorBackGInput.id,I),St.appendChild(rn);var Sn=h.createElement("span",I,f.consts.CLASS_NAMES.colorBackBExplain.id,f.consts.CLASS_NAMES.colorBackBExplain.className,{isIcon:!1,text:"B"});St.appendChild(Sn);var Hn=h.createElementInput(I,f.consts.CLASS_NAMES.colorBackBInput.id,f.consts.CLASS_NAMES.colorBackBInput.className);Hn.setAttribute("maxlength","2"),h.addClickEvent(Hn,f.consts.CLASS_NAMES.colorBackBInput.id,I),St.appendChild(Hn);var Kn=h.createElement("span",I,f.consts.CLASS_NAMES.colorBackOpacityExplain.id,f.consts.CLASS_NAMES.colorBackOpacityExplain.className,{isIcon:!1,text:"Opacity"});St.appendChild(Kn);var Fn=h.createElementInput(I,f.consts.CLASS_NAMES.colorBackOpacityInput.id,f.consts.CLASS_NAMES.colorBackOpacityInput.className);Fn.setAttribute("type","number"),Fn.setAttribute("maxlength","3"),h.addClickEvent(Fn,f.consts.CLASS_NAMES.colorBackOpacityInput.id,I),St.appendChild(Fn),Be=document.createElement("br"),St.appendChild(Be);var ho=h.createElementBasic("div",I,f.consts.CLASS_NAMES.colorBack0.id,f.consts.CLASS_NAMES.colorBack0.className);ho.style.backgroundColor=I._colors.color13,St.appendChild(ho);var To=h.createElementBasic("div",I,f.consts.CLASS_NAMES.colorBack1.id,f.consts.CLASS_NAMES.colorBack1.className);To.style.backgroundColor=I._colors.color14,St.appendChild(To);var Xn=h.createElementBasic("div",I,f.consts.CLASS_NAMES.colorBack2.id,f.consts.CLASS_NAMES.colorBack2.className);Xn.style.backgroundColor=I._colors.color15,St.appendChild(Xn);var Jn=h.createElementBasic("div",I,f.consts.CLASS_NAMES.colorBack3.id,f.consts.CLASS_NAMES.colorBack3.className);Jn.style.backgroundColor=I._colors.color16,St.appendChild(Jn);var Zn=h.createElementBasic("div",I,f.consts.CLASS_NAMES.colorBack4.id,f.consts.CLASS_NAMES.colorBack4.className);Zn.style.backgroundColor=I._colors.color17,St.appendChild(Zn);var Ae=h.createElementBasic("div",I,f.consts.CLASS_NAMES.colorBack5.id,f.consts.CLASS_NAMES.colorBack5.className);Ae.style.backgroundColor=I._colors.color18,St.appendChild(Ae);var we=h.createElementBasic("div",I,f.consts.CLASS_NAMES.colorBack6.id,f.consts.CLASS_NAMES.colorBack6.className);we.style.backgroundColor=I._colors.color19,St.appendChild(we);var Fe=h.createElementBasic("div",I,f.consts.CLASS_NAMES.colorBack7.id,f.consts.CLASS_NAMES.colorBack7.className);Fe.style.backgroundColor=I._colors.color20,St.appendChild(Fe);var at=h.createElementButton("span",I,f.consts.CLASS_NAMES.formatClearButton.id,f.consts.CLASS_NAMES.formatClearButton.className,{isIcon:!0,text:"format_clear"});if(at.setAttribute("title",f.languageSet[I._attributes.language].formatClearButtonTooltip),f.iconSpanElement.formatClearButtonIcon&&f.iconSpanElement.formatClearButtonIcon instanceof HTMLSpanElement){var $e=f.iconSpanElement.formatClearButtonIcon.cloneNode(!0);$e.setAttribute("data-note-id",I._id),j.forEach(function(ue){$e.classList.contains(ue)||$e.classList.add(ue)}),at.replaceChild($e,at.firstChild)}var pt=h.createElementButton("span",I,f.consts.CLASS_NAMES.undoButton.id,f.consts.CLASS_NAMES.undoButton.className,{isIcon:!0,text:"undo"});if(pt.setAttribute("title",f.languageSet[I._attributes.language].undoTooltip),f.iconSpanElement.undoButtonIcon&&f.iconSpanElement.undoButtonIcon instanceof HTMLSpanElement){var Nt=f.iconSpanElement.undoButtonIcon.cloneNode(!0);Nt.setAttribute("data-note-id",I._id),j.forEach(function(ue){Nt.classList.contains(ue)||Nt.classList.add(ue)}),pt.replaceChild(Nt,pt.firstChild)}var zt=h.createElementButton("span",I,f.consts.CLASS_NAMES.redoButton.id,f.consts.CLASS_NAMES.redoButton.className,{isIcon:!0,text:"redo"});if(zt.setAttribute("title",f.languageSet[I._attributes.language].redoTooltip),f.iconSpanElement.redoButtonIcon&&f.iconSpanElement.redoButtonIcon instanceof HTMLSpanElement){var Wt=f.iconSpanElement.redoButtonIcon.cloneNode(!0);Wt.setAttribute("data-note-id",I._id),j.forEach(function(ue){Wt.classList.contains(ue)||Wt.classList.add(ue)}),zt.replaceChild(Wt,zt.firstChild)}var an=h.createElementButton("span",I,f.consts.CLASS_NAMES.helpButton.id,f.consts.CLASS_NAMES.helpButton.className,{isIcon:!0,text:"help"});if(an.setAttribute("title",f.languageSet[I._attributes.language].helpTooltip),f.iconSpanElement.helpButtonIcon&&f.iconSpanElement.helpButtonIcon instanceof HTMLSpanElement){var pn=f.iconSpanElement.helpButtonIcon.cloneNode(!0);pn.setAttribute("data-note-id",I._id),j.forEach(function(ue){pn.classList.contains(ue)||pn.classList.add(ue)}),an.replaceChild(pn,an.firstChild)}var Xt=h.createElementBasic("div",I,f.consts.CLASS_NAMES.modalBack.id,f.consts.CLASS_NAMES.modalBack.className),kn=h.createElementBasic("div",I,f.consts.CLASS_NAMES.attLinkModal.id,f.consts.CLASS_NAMES.attLinkModal.className),Qa=h.createElement("div",I,f.consts.CLASS_NAMES.attLinkHeader.id,f.consts.CLASS_NAMES.attLinkHeader.className,{isIcon:!1,text:f.languageSet[I._attributes.language].attLinkModalTitle});kn.appendChild(Qa);var el=h.createElement("div",I,f.consts.CLASS_NAMES.attLinkExplain1.id,f.consts.CLASS_NAMES.attLinkExplain1.className,{isIcon:!1,text:f.languageSet[I._attributes.language].attLinkInTextExplain});kn.appendChild(el);var Pi=h.createElementInput(I,f.consts.CLASS_NAMES.attLinkText.id,f.consts.CLASS_NAMES.attLinkText.className);Pi.setAttribute("title",f.languageSet[I._attributes.language].attLinkInTextTooltip),kn.appendChild(Pi);var tl=h.createElement("div",I,f.consts.CLASS_NAMES.attLinkExplain2.id,f.consts.CLASS_NAMES.attLinkExplain2.className,{isIcon:!1,text:f.languageSet[I._attributes.language].attLinkInLinkExplain});kn.appendChild(tl);var zi=h.createElementInput(I,f.consts.CLASS_NAMES.attLinkHref.id,f.consts.CLASS_NAMES.attLinkHref.className);zi.setAttribute("title",f.languageSet[I._attributes.language].attLinkInLinkTooltip),kn.appendChild(zi);var Ui=h.createElementInputCheckbox(I,f.consts.CLASS_NAMES.attLinkIsBlankCheckbox.id,f.consts.CLASS_NAMES.attLinkIsBlankCheckbox.className);Ui.setAttribute("title",f.languageSet[I._attributes.language].attLinkIsOpenTooltip);var dr=h.createElement("label",I,f.consts.CLASS_NAMES.attLinkIsBlankLabel.id,f.consts.CLASS_NAMES.attLinkIsBlankLabel.className,{isIcon:!1,text:f.languageSet[I._attributes.language].attLinkIsOpenExplain});dr.insertBefore(Ui,dr.firstChild),kn.appendChild(dr);var nl=h.createElement("span",I,f.consts.CLASS_NAMES.attLinkValidCheckText.id,f.consts.CLASS_NAMES.attLinkValidCheckText.className),Gi=h.createElementInputCheckbox(I,f.consts.CLASS_NAMES.attLinkValidCheckbox.id,f.consts.CLASS_NAMES.attLinkValidCheckbox.className);Gi.style.display="none";var Bo=h.createElement("div",I,f.consts.CLASS_NAMES.attLinkFooter.id,f.consts.CLASS_NAMES.attLinkFooter.className),ur=h.createElementButton("button",I,f.consts.CLASS_NAMES.attLinkInsertButton.id,f.consts.CLASS_NAMES.attLinkInsertButton.className,{isIcon:!0,text:"add_link"});if(f.iconSpanElement.attLinkInsertButtonIcon&&f.iconSpanElement.attLinkInsertButtonIcon instanceof HTMLSpanElement){var fr=f.iconSpanElement.attLinkInsertButtonIcon.cloneNode(!0);fr.setAttribute("data-note-id",I._id),j.forEach(function(ue){fr.classList.contains(ue)||fr.classList.add(ue)}),ur.replaceChild(fr,ur.firstChild)}Bo.appendChild(nl),Bo.appendChild(Gi),Bo.appendChild(ur),kn.appendChild(Bo);var Lo=h.createElementBasic("div",I,f.consts.CLASS_NAMES.attFileModal.id,f.consts.CLASS_NAMES.attFileModal.className),ol=h.createElement("div",I,f.consts.CLASS_NAMES.attFileHeader.id,f.consts.CLASS_NAMES.attFileHeader.className,{isIcon:!1,text:f.languageSet[I._attributes.language].attFileModalTitle});Lo.appendChild(ol);var Qn=h.createElement("div",I,f.consts.CLASS_NAMES.attFilelayout.id,f.consts.CLASS_NAMES.attFilelayout.className),rl=h.createElement("div",I,f.consts.CLASS_NAMES.attFileExplain1.id,f.consts.CLASS_NAMES.attFileExplain1.className,{isIcon:!1,text:f.languageSet[I._attributes.language].attFileExplain1});Qn.appendChild(rl),Be=document.createElement("br"),Qn.appendChild(Be);var hr=document.createElement("div");hr.setAttribute("style","width:90%;text-align:center;margin:0 auto;");var mr=h.createElementButton("div",I,f.consts.CLASS_NAMES.attFileUploadDiv.id,f.consts.CLASS_NAMES.attFileUploadDiv.className,{isIcon:!1,text:f.languageSet[I._attributes.language].attFileUploadDiv});mr.addEventListener("dragover",function(ue){I._elementEvents.attFileUploadDiv_onBeforeDragover(ue)&&(f.events.elementEvents.attFileUploadDiv_onDragover(ue),I._elementEvents.attFileUploadDiv_onAfterDragover(ue),ue.stopImmediatePropagation())}),mr.addEventListener("drop",function(ue){I._elementEvents.attFileUploadDiv_onBeforeDrop(ue)&&(f.events.elementEvents.attFileUploadDiv_onDrop(ue),I._elementEvents.attFileUploadDiv_onAfterDrop(ue),ue.stopImmediatePropagation())}),hr.appendChild(mr),Qn.appendChild(hr);var gr=document.createElement("div");gr.setAttribute("style","width:90%;text-align:right;margin:5px auto 20px auto;");var il=h.createElementButton("button",I,f.consts.CLASS_NAMES.attFileUploadButton.id,f.consts.CLASS_NAMES.attFileUploadButton.className,{isIcon:!1,text:f.languageSet[I._attributes.language].attFileUploadButton});gr.appendChild(il),Qn.appendChild(gr);var yr=h.createElementInput(I,f.consts.CLASS_NAMES.attFileUpload.id,f.consts.CLASS_NAMES.attFileUpload.className);yr.setAttribute("type","file"),yr.setAttribute("multiple",""),Qn.appendChild(yr),Lo.appendChild(Qn);var ji=h.createElement("div",I,f.consts.CLASS_NAMES.attFileFooter.id,f.consts.CLASS_NAMES.attFileFooter.className),pr=h.createElementButton("button",I,f.consts.CLASS_NAMES.attFileInsertButton.id,f.consts.CLASS_NAMES.attFileInsertButton.className,{isIcon:!0,text:"attach_file"});if(f.iconSpanElement.attFileInsertButtonIcon&&f.iconSpanElement.attFileInsertButtonIcon instanceof HTMLSpanElement){var _r=f.iconSpanElement.attFileInsertButtonIcon.cloneNode(!0);_r.setAttribute("data-note-id",I._id),j.forEach(function(ue){_r.classList.contains(ue)||_r.classList.add(ue)}),pr.replaceChild(_r,pr.firstChild)}ji.appendChild(pr),Lo.appendChild(ji);var fn=h.createElementBasic("div",I,f.consts.CLASS_NAMES.attImageModal.id,f.consts.CLASS_NAMES.attImageModal.className),al=h.createElement("div",I,f.consts.CLASS_NAMES.attImageHeader.id,f.consts.CLASS_NAMES.attImageHeader.className,{isIcon:!1,text:f.languageSet[I._attributes.language].attImageModalTitle});fn.appendChild(al);var ll=h.createElement("div",I,f.consts.CLASS_NAMES.attImageExplain1.id,f.consts.CLASS_NAMES.attImageExplain1.className,{isIcon:!1,text:f.languageSet[I._attributes.language].attImageExplain1});fn.appendChild(ll),Be=document.createElement("br"),fn.appendChild(Be);var mo=document.createElement("div");mo.setAttribute("style","width:90%;text-align:center;margin:0 auto;position:relative;");var No=h.createElementButton("button",I,f.consts.CLASS_NAMES.attImageViewPreButton.id,f.consts.CLASS_NAMES.attImageViewPreButton.className,{isIcon:!0,text:"navigate_before"});if(f.iconSpanElement.attImageViewPreButtonIcon&&f.iconSpanElement.attImageViewPreButtonIcon instanceof HTMLSpanElement){var vr=f.iconSpanElement.attImageViewPreButtonIcon.cloneNode(!0);vr.setAttribute("data-note-id",I._id),j.forEach(function(ue){vr.classList.contains(ue)||vr.classList.add(ue)}),No.replaceChild(vr,No.firstChild)}No.setAttribute("style","position:absolute;top:50%;transform:translateY(-50%) translateX(1%);"),mo.appendChild(No);var br=h.createElementBasic("div",I,f.consts.CLASS_NAMES.attImageUploadButtonAndView.id,f.consts.CLASS_NAMES.attImageUploadButtonAndView.className,{isIcon:!1,text:f.languageSet[I._attributes.language].attImageUploadButtonAndView});br.addEventListener("dragover",function(ue){I._elementEvents.attImageUploadButtonAndView_onBeforeDragover(ue)&&(f.events.elementEvents.attImageUploadButtonAndView_onDragover(ue),I._elementEvents.attImageUploadButtonAndView_onAfterDragover(ue),ue.stopImmediatePropagation())}),br.addEventListener("drop",function(ue){I._elementEvents.attImageUploadButtonAndView_onBeforeDrop(ue)&&(f.events.elementEvents.attImageUploadButtonAndView_onDrop(ue),I._elementEvents.attImageUploadButtonAndView_onAfterDrop(ue),ue.stopImmediatePropagation())}),mo.appendChild(br);var Ro=h.createElementButton("button",I,f.consts.CLASS_NAMES.attImageViewNextButton.id,f.consts.CLASS_NAMES.attImageViewNextButton.className,{isIcon:!0,text:"navigate_next"});if(f.iconSpanElement.attImageViewNextButtonIcon&&f.iconSpanElement.attImageViewNextButtonIcon instanceof HTMLSpanElement){var Cr=f.iconSpanElement.attImageViewNextButtonIcon.cloneNode(!0);Cr.setAttribute("data-note-id",I._id),j.forEach(function(ue){Cr.classList.contains(ue)||Cr.classList.add(ue)}),Ro.replaceChild(Cr,Ro.firstChild)}Ro.setAttribute("style","position:absolute;top:50%;transform:translateY(-50%) translateX(-101%);"),mo.appendChild(Ro),fn.appendChild(mo);var Ho=h.createElementInput(I,f.consts.CLASS_NAMES.attImageUpload.id,f.consts.CLASS_NAMES.attImageUpload.className);Ho.setAttribute("type","file"),Ho.setAttribute("multiple","");var zd=function(ue){for(var eo="",On=0;On<ue.length;On++)ue[On]&&(eo+=ue[On].trim(),On!==ue.length-1&&(eo+=", "));return eo}(I._attributes.attImageAcceptTypes);Ho.setAttribute("accept",zd),fn.appendChild(Ho);var sl=h.createElement("div",I,f.consts.CLASS_NAMES.attImageExplain2.id,f.consts.CLASS_NAMES.attImageExplain2.className,{isIcon:!1,text:f.languageSet[I._attributes.language].attImageExplain2});fn.appendChild(sl),Be=document.createElement("br"),fn.appendChild(Be);var Wi=h.createElementInput(I,f.consts.CLASS_NAMES.attImageURL.id,f.consts.CLASS_NAMES.attImageURL.className);Wi.setAttribute("title",f.languageSet[I._attributes.language].attImageURLTooltip),fn.appendChild(Wi);var qi=h.createElement("div",I,f.consts.CLASS_NAMES.attImageFooter.id,f.consts.CLASS_NAMES.attImageFooter.className),Mr=h.createElementButton("button",I,f.consts.CLASS_NAMES.attImageInsertButton.id,f.consts.CLASS_NAMES.attImageInsertButton.className,{isIcon:!0,text:"image"});if(f.iconSpanElement.attImageInsertButtonIcon&&f.iconSpanElement.attImageInsertButtonIcon instanceof HTMLSpanElement){var xr=f.iconSpanElement.attImageInsertButtonIcon.cloneNode(!0);xr.setAttribute("data-note-id",I._id),j.forEach(function(ue){xr.classList.contains(ue)||xr.classList.add(ue)}),Mr.replaceChild(xr,Mr.firstChild)}qi.appendChild(Mr),fn.appendChild(qi);var In=h.createElementBasic("div",I,f.consts.CLASS_NAMES.attVideoModal.id,f.consts.CLASS_NAMES.attVideoModal.className),cl=h.createElement("div",I,f.consts.CLASS_NAMES.attVideoHeader.id,f.consts.CLASS_NAMES.attVideoHeader.className,{isIcon:!1,text:f.languageSet[I._attributes.language].attVideoModalTitle});In.appendChild(cl);var dl=h.createElement("div",I,f.consts.CLASS_NAMES.attVideoExplain1.id,f.consts.CLASS_NAMES.attVideoExplain1.className,{isIcon:!1,text:f.languageSet[I._attributes.language].attVideoExplain1});In.appendChild(dl);var $i=h.createElementInput(I,f.consts.CLASS_NAMES.attVideoEmbedId.id,f.consts.CLASS_NAMES.attVideoEmbedId.className);$i.setAttribute("title",f.languageSet[I._attributes.language].attVideoEmbedIdTooltip),In.appendChild($i);var ul=h.createElement("div",I,f.consts.CLASS_NAMES.attVideoExplain2.id,f.consts.CLASS_NAMES.attVideoExplain2.className,{isIcon:!1,text:f.languageSet[I._attributes.language].attVideoExplain2});In.appendChild(ul);var go=document.createElement("div");go.setAttribute("style","padding-left:20px;color:"+I._colors.color10);var Sr=h.createElement("span",I,"","modal_att_video_icon",{isIcon:!0,text:"width",iconStyle:"color:"+I._colors.color10});if(f.iconSpanElement.attVideoWidthTextIcon&&f.iconSpanElement.attVideoWidthTextIcon instanceof HTMLSpanElement){var kr=f.iconSpanElement.attVideoWidthTextIcon.cloneNode(!0);kr.setAttribute("data-note-id",I._id),j.forEach(function(ue){kr.classList.contains(ue)||kr.classList.add(ue)}),Sr.replaceChild(kr,Sr.firstChild)}go.appendChild(Sr);var Fo=h.createElementInput(I,f.consts.CLASS_NAMES.attVideoWidth.id,f.consts.CLASS_NAMES.attVideoWidth.className);Fo.setAttribute("title",f.languageSet[I._attributes.language].attVideoWidthTooltip),Fo.setAttribute("type","number"),Fo.setAttribute("style","text-align:right;"),go.appendChild(Fo);var Yi=h.createElement("span",I,"","modal_att_video_icon",{isIcon:!1,text:"%"});Yi.setAttribute("style","padding-left:10px;font-size:0.8em"),go.appendChild(Yi),In.appendChild(go);var yo=document.createElement("div");yo.setAttribute("style","padding-left:20px;color:"+I._colors.color10);var Ir=h.createElement("span",I,"","modal_att_video_icon",{isIcon:!0,text:"height",iconStyle:"color:"+I._colors.color10});if(f.iconSpanElement.attVideoHeightTextIcon&&f.iconSpanElement.attVideoHeightTextIcon instanceof HTMLSpanElement){var Er=f.iconSpanElement.attVideoHeightTextIcon.cloneNode(!0);Er.setAttribute("data-note-id",I._id),j.forEach(function(ue){Er.classList.contains(ue)||Er.classList.add(ue)}),Ir.replaceChild(Er,Ir.firstChild)}yo.appendChild(Ir);var Oo=h.createElementInput(I,f.consts.CLASS_NAMES.attVideoHeight.id,f.consts.CLASS_NAMES.attVideoHeight.className);Oo.setAttribute("title",f.languageSet[I._attributes.language].attVideoHeightTooltip),Oo.setAttribute("type","number"),Oo.setAttribute("style","text-align:right;"),yo.appendChild(Oo);var Ki=h.createElement("span",I,"","modal_att_video_icon",{isIcon:!1,text:"px"});Ki.setAttribute("style","padding-left:10px;font-size:0.8em"),yo.appendChild(Ki),In.appendChild(yo);var fl=h.createElement("span",I,f.consts.CLASS_NAMES.attVideoValidCheckText.id,f.consts.CLASS_NAMES.attVideoValidCheckText.className),Xi=h.createElementInputCheckbox(I,f.consts.CLASS_NAMES.attVideoValidCheckbox.id,f.consts.CLASS_NAMES.attVideoValidCheckbox.className);Xi.style.display="none";var wr=h.createElementButton("button",I,f.consts.CLASS_NAMES.attVideoInsertButton.id,f.consts.CLASS_NAMES.attVideoInsertButton.className,{isIcon:!0,text:"videocam"});if(f.iconSpanElement.attVideoInsertButtonIcon&&f.iconSpanElement.attVideoInsertButtonIcon instanceof HTMLSpanElement){var Ar=f.iconSpanElement.attVideoInsertButtonIcon.cloneNode(!0);Ar.setAttribute("data-note-id",I._id),j.forEach(function(ue){Ar.classList.contains(ue)||Ar.classList.add(ue)}),wr.replaceChild(Ar,wr.firstChild)}var Vo=h.createElement("div",I,f.consts.CLASS_NAMES.attVideoFooter.id,f.consts.CLASS_NAMES.attVideoFooter.className);Vo.appendChild(fl),Vo.appendChild(Xi),Vo.appendChild(wr),In.appendChild(Vo);var po=h.createElement("div",I,f.consts.CLASS_NAMES.attLinkTooltip.id,f.consts.CLASS_NAMES.attLinkTooltip.className),Ji=h.createElement("a",I,f.consts.CLASS_NAMES.attLinkTooltipHref.id,f.consts.CLASS_NAMES.attLinkTooltipHref.className);Ji.setAttribute("target","_blank");var Tr=h.createElementButton("span",I,f.consts.CLASS_NAMES.attLinkTooltipEditButton.id,f.consts.CLASS_NAMES.attLinkTooltipEditButton.className,{isIcon:!0,text:"add_link",iconStyle:"font-size:0.9em"});if(f.iconSpanElement.attLinkTooltipEditButtonIcon&&f.iconSpanElement.attLinkTooltipEditButtonIcon instanceof HTMLSpanElement){var Br=f.iconSpanElement.attLinkTooltipEditButtonIcon.cloneNode(!0);Br.setAttribute("data-note-id",I._id),j.forEach(function(ue){Br.classList.contains(ue)||Br.classList.add(ue)}),Tr.replaceChild(Br,Tr.firstChild)}var Lr=h.createElementButton("span",I,f.consts.CLASS_NAMES.attLinkTooltipUnlinkButton.id,f.consts.CLASS_NAMES.attLinkTooltipUnlinkButton.className,{isIcon:!0,text:"link_off",iconStyle:"font-size:0.9em"});if(f.iconSpanElement.attLinkTooltipUnlinkButtonIcon&&f.iconSpanElement.attLinkTooltipUnlinkButtonIcon instanceof HTMLSpanElement){var Nr=f.iconSpanElement.attLinkTooltipUnlinkButtonIcon.cloneNode(!0);Nr.setAttribute("data-note-id",I._id),j.forEach(function(ue){Nr.classList.contains(ue)||Nr.classList.add(ue)}),Lr.replaceChild(Nr,Lr.firstChild)}po.appendChild(Tr),po.appendChild(Lr),po.appendChild(Ji);var Do=h.createElement("div",I,f.consts.CLASS_NAMES.attImageAndVideoTooltip.id,f.consts.CLASS_NAMES.attImageAndVideoTooltip.className),sn=document.createElement("div"),Po=document.createElement("span");Po.setAttribute("class",m(I._noteName,I.id,"small_text_box")),Po.setAttribute("style","padding: 0 0 0 10px;"),Po.textContent=f.languageSet[I._attributes.language].attImageAndVideoTooltipWidthInput,sn.appendChild(Po);var Rr=h.createElementInput(I,f.consts.CLASS_NAMES.attImageAndVideoTooltipWidthInput.id,f.consts.CLASS_NAMES.attImageAndVideoTooltipWidthInput.className);Rr.addEventListener("keyup",function(ue){I._elementEvents.attImageAndVideoTooltipWidthInput_onBeforeKeyup(ue)&&(f.events.elementEvents.attImageAndVideoTooltipWidthInput_onKeyup(ue),I._elementEvents.attImageAndVideoTooltipWidthInput_onAfterKeyup(ue),ue.stopImmediatePropagation())}),Rr.setAttribute("type","number"),sn.appendChild(Rr);var zo=document.createElement("span");zo.setAttribute("class",m(I._noteName,I.id,"small_text_box")),zo.setAttribute("style","padding: 0;"),zo.textContent="%",sn.appendChild(zo);var Hr=document.createElement("span");Hr.setAttribute("class",m(I._noteName,I.id,"small_text_box")),Hr.textContent=f.languageSet[I._attributes.language].attImageAndVideoTooltipFloatRadio,sn.appendChild(Hr);var hl=h.createElementInputRadio(I,f.consts.CLASS_NAMES.attImageAndVideoTooltipFloatRadioNone.id,f.consts.CLASS_NAMES.attImageAndVideoTooltipFloatRadioNone.className,c(I._noteName,I.id,"attImageAndVideoTooltipFloatRadio"));sn.appendChild(hl);var Fr=h.createElementRadioLabel(I,c(I._noteName,I.id,f.consts.CLASS_NAMES.attImageAndVideoTooltipFloatRadioNone.id),"close");if(f.iconSpanElement.attImageAndVideoTooltipFloatRadioNoneLabelIcon&&f.iconSpanElement.attImageAndVideoTooltipFloatRadioNoneLabelIcon instanceof HTMLSpanElement){var Or=f.iconSpanElement.attImageAndVideoTooltipFloatRadioNoneLabelIcon.cloneNode(!0);Or.setAttribute("data-note-id",I._id),j.forEach(function(ue){Or.classList.contains(ue)||Or.classList.add(ue)}),Fr.replaceChild(Or,Fr.firstChild)}sn.appendChild(Fr);var ml=h.createElementInputRadio(I,f.consts.CLASS_NAMES.attImageAndVideoTooltipFloatRadioLeft.id,f.consts.CLASS_NAMES.attImageAndVideoTooltipFloatRadioLeft.className,c(I._noteName,I.id,"attImageAndVideoTooltipFloatRadio"));sn.appendChild(ml);var Vr=h.createElementRadioLabel(I,c(I._noteName,I.id,f.consts.CLASS_NAMES.attImageAndVideoTooltipFloatRadioLeft.id),"art_track");if(f.iconSpanElement.attImageAndVideoTooltipFloatRadioLeftLabelIcon&&f.iconSpanElement.attImageAndVideoTooltipFloatRadioLeftLabelIcon instanceof HTMLSpanElement){var Dr=f.iconSpanElement.attImageAndVideoTooltipFloatRadioLeftLabelIcon.cloneNode(!0);Dr.setAttribute("data-note-id",I._id),j.forEach(function(ue){Dr.classList.contains(ue)||Dr.classList.add(ue)}),Vr.replaceChild(Dr,Vr.firstChild)}sn.appendChild(Vr);var gl=h.createElementInputRadio(I,f.consts.CLASS_NAMES.attImageAndVideoTooltipFloatRadioRight.id,f.consts.CLASS_NAMES.attImageAndVideoTooltipFloatRadioRight.className,c(I._noteName,I.id,"attImageAndVideoTooltipFloatRadio"));sn.appendChild(gl);var Pr=h.createElementRadioLabel(I,c(I._noteName,I.id,f.consts.CLASS_NAMES.attImageAndVideoTooltipFloatRadioRight.id),"burst_mode");if(f.iconSpanElement.attImageAndVideoTooltipFloatRadioRightLabelIcon&&f.iconSpanElement.attImageAndVideoTooltipFloatRadioRightLabelIcon instanceof HTMLSpanElement){var zr=f.iconSpanElement.attImageAndVideoTooltipFloatRadioRightLabelIcon.cloneNode(!0);zr.setAttribute("data-note-id",I._id),j.forEach(function(ue){zr.classList.contains(ue)||zr.classList.add(ue)}),Pr.replaceChild(zr,Pr.firstChild)}sn.appendChild(Pr),Do.appendChild(sn);var En=document.createElement("div"),Ur=document.createElement("span");Ur.setAttribute("class",m(I._noteName,I.id,"small_text_box")),Ur.textContent=f.languageSet[I._attributes.language].attImageAndVideoTooltipShapeRadio,En.appendChild(Ur);var yl=h.createElementInputRadio(I,f.consts.CLASS_NAMES.attImageAndVideoTooltipShapeRadioSquare.id,f.consts.CLASS_NAMES.attImageAndVideoTooltipShapeRadioSquare.className,c(I._noteName,I.id,"attImageAndVideoTooltipShapeRadio"));En.appendChild(yl);var Gr=h.createElementRadioLabel(I,c(I._noteName,I.id,f.consts.CLASS_NAMES.attImageAndVideoTooltipShapeRadioSquare.id),"crop_5_4");if(f.iconSpanElement.attImageAndVideoTooltipShapeRadioSquareLabelIcon&&f.iconSpanElement.attImageAndVideoTooltipShapeRadioSquareLabelIcon instanceof HTMLSpanElement){var jr=f.iconSpanElement.attImageAndVideoTooltipShapeRadioSquareLabelIcon.cloneNode(!0);jr.setAttribute("data-note-id",I._id),j.forEach(function(ue){jr.classList.contains(ue)||jr.classList.add(ue)}),Gr.replaceChild(jr,Gr.firstChild)}En.appendChild(Gr);var pl=h.createElementInputRadio(I,f.consts.CLASS_NAMES.attImageAndVideoTooltipShapeRadioRadius.id,f.consts.CLASS_NAMES.attImageAndVideoTooltipShapeRadioRadius.className,c(I._noteName,I.id,"attImageAndVideoTooltipShapeRadio"));En.appendChild(pl);var Wr=h.createElementRadioLabel(I,c(I._noteName,I.id,f.consts.CLASS_NAMES.attImageAndVideoTooltipShapeRadioRadius.id),"aspect_ratio");if(f.iconSpanElement.attImageAndVideoTooltipShapeRadioRadiusLabelIcon&&f.iconSpanElement.attImageAndVideoTooltipShapeRadioRadiusLabelIcon instanceof HTMLSpanElement){var qr=f.iconSpanElement.attImageAndVideoTooltipShapeRadioRadiusLabelIcon.cloneNode(!0);qr.setAttribute("data-note-id",I._id),j.forEach(function(ue){qr.classList.contains(ue)||qr.classList.add(ue)}),Wr.replaceChild(qr,Wr.firstChild)}En.appendChild(Wr);var _l=h.createElementInputRadio(I,f.consts.CLASS_NAMES.attImageAndVideoTooltipShapeRadioCircle.id,f.consts.CLASS_NAMES.attImageAndVideoTooltipShapeRadioCircle.className,c(I._noteName,I.id,"attImageAndVideoTooltipShapeRadio"));En.appendChild(_l);var $r=h.createElementRadioLabel(I,c(I._noteName,I.id,f.consts.CLASS_NAMES.attImageAndVideoTooltipShapeRadioCircle.id),"circle");if(f.iconSpanElement.attImageAndVideoTooltipShapeRadioCircleLabelIcon&&f.iconSpanElement.attImageAndVideoTooltipShapeRadioCircleLabelIcon instanceof HTMLSpanElement){var Yr=f.iconSpanElement.attImageAndVideoTooltipShapeRadioCircleLabelIcon.cloneNode(!0);Yr.setAttribute("data-note-id",I._id),j.forEach(function(ue){Yr.classList.contains(ue)||Yr.classList.add(ue)}),$r.replaceChild(Yr,$r.firstChild)}En.appendChild($r),Do.appendChild(En);var Uo=h.createElementBasic("div",I,f.consts.CLASS_NAMES.helpModal.id,f.consts.CLASS_NAMES.helpModal.className),vl=h.createElement("div",I,f.consts.CLASS_NAMES.helpHeader.id,f.consts.CLASS_NAMES.helpHeader.className,{isIcon:!1,text:f.languageSet[I._attributes.language].helpModalTitle});Uo.appendChild(vl);var Zi=h.createElement("div",I,f.consts.CLASS_NAMES.helpMain.id,f.consts.CLASS_NAMES.helpMain.className),Qi=document.createElement("table");f.languageSet[I._attributes.language].helpContent.forEach(function(ue){var eo=document.createElement("tr");Object.keys(ue).forEach(function(On){var ta=document.createElement("td");ta.textContent=On,ta.setAttribute("style","width:30%;padding:0 0 6px 12px;border:none;"),eo.appendChild(ta);var na=document.createElement("td");na.setAttribute("style","width:70%;padding:0 12px 6px 12px;border:none;"),na.textContent=ue[On],eo.appendChild(na)}),Qi.appendChild(eo)}),Zi.appendChild(Qi),Uo.appendChild(Zi);var ea=h.createElement("div",I,f.consts.CLASS_NAMES.helpFooter.id,f.consts.CLASS_NAMES.helpFooter.className);ea.setAttribute("style","height:25px;"),Uo.appendChild(ea);var Kr=h.createElementBasic("div",I,f.consts.CLASS_NAMES.placeholder.id,f.consts.CLASS_NAMES.placeholder.className);if(I._attributes.placeholderTitle){var bl=document.createElement("h5");bl.innerText=I._attributes.placeholderTitle,Kr.appendChild(bl)}if(I._attributes.placeholderTextContent){var Cl=document.createElement("p");Cl.innerText=I._attributes.placeholderTextContent,Kr.appendChild(Cl)}Xt.appendChild(kn),Xt.appendChild(Lo),Xt.appendChild(fn),Xt.appendChild(In),Xt.appendChild(Uo),tt.appendChild(Xt),tt.appendChild(Kr),I._attributes.toolToggleUsing&&E.appendChild(s),E.appendChild(k),E.appendChild(et),E.appendChild(Mt),E.appendChild(xt),E.appendChild(v),E.appendChild(A),E.appendChild(g),E.appendChild(se),E.appendChild(Q),E.appendChild(b),E.appendChild(R),E.appendChild(D),E.appendChild(Se),E.appendChild(Ue),E.appendChild(ct),E.appendChild(ae),E.appendChild(Ft),E.appendChild(at),E.appendChild(pt),E.appendChild(zt),E.appendChild(an),I._attributes.toolPosition===r.bottom?(tt.appendChild(Ge),tt.appendChild(po),tt.appendChild(Do),tt.appendChild(E)):(tt.appendChild(E),tt.appendChild(po),tt.appendChild(Do),tt.appendChild(Ge)),I.appendChild(tt),pe.value=String(I._status.fontSize),je.value=String(I._status.letterSpacing),rt.value=String(I._status.lineHeight),y.value=I._status.colorTextR,S.value=I._status.colorTextG,O.value=I._status.colorTextB,G.value=I._status.colorTextO,Ct.value=I._status.colorBackR,rn.value=I._status.colorBackG,Hn.value=I._status.colorBackB,Fn.value=I._status.colorBackO,be.usingParagraphStyle||(k.style.display="none"),be.usingBold||(et.style.display="none"),be.usingUnderline||(Mt.style.display="none"),be.usingItalic||(xt.style.display="none"),be.usingUl||(v.style.display="none"),be.usingOl||(A.style.display="none"),be.usingTextAlign||(g.style.display="none"),be.usingAttLink||(se.style.display="none"),be.usingAttFile||(Q.style.display="none"),be.usingAttImage||(b.style.display="none"),be.usingAttVideo||(R.style.display="none"),be.usingFontSize||(D.style.display="none"),be.usingLetterSpacing||(Se.style.display="none"),be.usingLineHeight||(Ue.style.display="none"),be.usingFontFamily||(ct.style.display="none"),be.usingColorText||(ae.style.display="none"),be.usingColorBack||(Ft.style.display="none"),be.usingFormatClear||(at.style.display="none"),be.usingUndo||(pt.style.display="none"),be.usingRedo||(zt.style.display="none"),be.usingHelp||(an.style.display="none"),I._elements={template:tt,textarea:Ge,tool:E,toolToggleButton:s,paragraphStyleSelect:k,paragraphStyleSelectBox:J,paragraphStyleNormalButton:ie,paragraphStyleHeader1Button:ge,paragraphStyleHeader2Button:Ce,paragraphStyleHeader3Button:He,paragraphStyleHeader4Button:Le,paragraphStyleHeader5Button:Ke,paragraphStyleHeader6Button:Ze,boldButton:et,underlineButton:Mt,italicButton:xt,ulButton:v,olButton:A,textAlignSelect:g,textAlignSelectBox:B,textAlignLeftButton:H,textAlignCenterButton:q,textAlignRightButton:de,attLinkButton:se,attFileButton:Q,attImageButton:b,attVideoButton:R,fontSizeInputBox:D,fontSizeInput:pe,letterSpacingInputBox:Se,letterSpacingInput:je,lineHeightInputBox:Ue,lineHeightInput:rt,fontFamilySelect:ct,fontFamilySelectBox:Ne,colorTextSelect:ae,colorTextSelectBox:ht,colorTextRIcon:d,colorTextRInput:y,colorTextGIcon:M,colorTextGInput:S,colorTextBIcon:N,colorTextBInput:O,colorTextOpacityIcon:T,colorTextOpacityInput:G,colorText0:V,colorText1:Z,colorText2:ne,colorText3:Y,colorText4:le,colorText5:qe,colorText6:_t,colorText7:on,colorBackSelect:Ft,colorBackSelectBox:St,colorBackRIcon:At,colorBackRInput:Ct,colorBackGIcon:jt,colorBackGInput:rn,colorBackBIcon:Sn,colorBackBInput:Hn,colorBackOpacityIcon:Kn,colorBackOpacityInput:Fn,colorBack0:ho,colorBack1:To,colorBack2:Xn,colorBack3:Jn,colorBack4:Zn,colorBack5:Ae,colorBack6:we,colorBack7:Fe,formatClearButton:at,undoButton:pt,redoButton:zt,helpButton:an,modalBack:Xt,attLinkModal:kn,attLinkModalTitle:Qa,attLinkInTextExplain:el,attLinkText:Pi,attLinkInLinkExplain:tl,attLinkHref:zi,attLinkIsBlankCheckbox:Ui,attLinkIsOpenExplain:dr,attLinkValidCheckText:nl,attLinkValidCheckbox:Gi,attModalBox:Bo,attLinkInsertButton:ur,attFileModal:Lo,attFileModalTitle:ol,attFilelayout:Qn,attFileExplain1:rl,attFileUploadDivBox:hr,attFileUploadDiv:mr,attFileUploadButtonBox:gr,attFileUploadButton:il,attFileUpload:yr,attFileInsertButtonBox:ji,attFileInsertButton:pr,attImageModal:fn,attImageModalTitle:al,attImageExplain1:ll,attImageUploadButtonAndViewBox:mo,attImageViewPreButton:No,attImageUploadButtonAndView:br,attImageViewNextButton:Ro,attImageUpload:Ho,attImageExplain2:sl,attImageURL:Wi,attImageInsertButtonBox:qi,attImageInsertButton:Mr,attVideoModal:In,attVideoModalTitle:cl,attVideoExplain1:dl,attVideoEmbedId:$i,attVideoExplain2:ul,attVideoWidthTextBox:go,attVideoWidthText:Sr,attVideoWidth:Fo,attVideoWidthUnit:Yi,attVideoHeightTextBox:yo,attVideoHeightText:Ir,attVideoHeight:Oo,attVideoHeightUnit:Ki,attVideoFooter:Vo,attVideoValidCheckText:fl,attVideoValidCheckbox:Xi,attVideoInsertButton:wr,attLinkTooltip:po,attLinkTooltipHref:Ji,attLinkTooltipEditButton:Tr,attLinkTooltipUnlinkButton:Lr,attImageAndVideoTooltip:Do,attImageAndVideoTooltipWidthAndFloatBox:sn,attImageAndVideoTooltipWidthText:Po,attImageAndVideoTooltipWidthInput:Rr,attImageAndVideoTooltipWidthUnit:zo,attImageAndVideoTooltipFloatRadioBox:Hr,attImageAndVideoTooltipFloatRadioNone:hl,attImageAndVideoTooltipFloatRadioNoneLabel:Fr,attImageAndVideoTooltipFloatRadioLeft:ml,attImageAndVideoTooltipFloatRadioLeftLabel:Vr,attImageAndVideoTooltipFloatRadioRight:gl,attImageAndVideoTooltipFloatRadioRightLabel:Pr,attImageAndVideoTooltipShapeBox:En,attImageAndVideoTooltipShapeRadioBox:Ur,attImageAndVideoTooltipShapeRadioSquare:yl,attImageAndVideoTooltipShapeRadioSquareLabel:Gr,attImageAndVideoTooltipShapeRadioRadius:pl,attImageAndVideoTooltipShapeRadioRadiusLabel:Wr,attImageAndVideoTooltipShapeRadioCircle:_l,attImageAndVideoTooltipShapeRadioCircleLabel:$r,helpModal:Uo,helpHeader:vl,helpMain:Zi,helpMainTable:Qi,helpFooter:ea,placeholder:Kr}},nn=function(f,h){for(var I,be=h.getAttribute("note-mode-by-device")&&["ADAPTIVE","MOBILE","DESKTOP"].indexOf(h.getAttribute("note-mode-by-device"))?h.getAttribute("note-mode-by-device").toUpperCase():f.attributes.noteModeByDevice,Be=be==="MOBILE"||be!=="DESKTOP"&&X(),tt=h.getAttribute("tool-position")&&["BOTTOM","TOP"].indexOf(h.getAttribute("tool-position"))>=0?h.getAttribute("tool-position"):Be?r.bottom:r.top,Ge=ee(h.getAttribute("tool-default-line"))?Number(h.getAttribute("tool-default-line")):Be?2:1,j=h.getAttribute("tool-toggle")?h.getAttribute("tool-toggle").toLowerCase()==="true":!!Be,E=h.getAttribute("textarea-width")?h.getAttribute("textarea-width"):f.attributes.textareaOriginWidth,s=h.getAttribute("textarea-height")?h.getAttribute("textarea-height"):f.attributes.textareaOriginHeight,l=h.getAttribute("textarea-max-width")?h.getAttribute("textarea-max-width"):f.attributes.textareaMaxWidth,k=h.getAttribute("textarea-max-height")?h.getAttribute("textarea-max-height"):f.attributes.textareaMaxHeight,$=h.getAttribute("textarea-height-isModify")?h.getAttribute("textarea-height-isModify").toLowerCase()==="true":f.attributes.textareaHeightIsModify,J=h.getAttribute("placeholder-is-visible")?h.getAttribute("placeholder-is-visible").toLowerCase()==="true":f.attributes.placeholderIsVisible,ie=re(h.getAttribute("placeholder-add-top"))?Number(h.getAttribute("placeholder-add-top")):f.attributes.placeholderAddTop,ge=re(h.getAttribute("placeholder-add-left"))?Number(h.getAttribute("placeholder-add-left")):f.attributes.placeholderAddLeft,Ce=h.getAttribute("placeholder-width")?h.getAttribute("placeholder-width"):f.attributes.placeholderWidth,He=h.getAttribute("placeholder-color")?h.getAttribute("placeholder-color"):f.attributes.placeholderColor,Le=h.getAttribute("placeholder-background-color")?h.getAttribute("placeholder-background-color"):f.attributes.placeholderBackgroundColor,Ke=h.getAttribute("placeholder-title")?h.getAttribute("placeholder-title"):f.attributes.placeholderTitle,Ze=h.getAttribute("placeholder-text-content")?h.getAttribute("placeholder-text-content"):f.attributes.placeholderTextContent,et=h.getAttribute("att-file-prevent-types")?h.getAttribute("att-file-prevent-types").split(","):f.attributes.attFilePreventTypes,Ve=h.getAttribute("att-file-accept-types")?h.getAttribute("att-file-accept-types").split(","):f.attributes.attFileAcceptTypes,Mt=ee(h.getAttribute("att-file-max-size"))?Number(h.getAttribute("att-file-max-size")):f.attributes.attFileMaxSize,Rt=h.getAttribute("att-image-prevent-types")?h.getAttribute("att-image-prevent-types").split(","):f.attributes.attImagePreventTypes,xt=h.getAttribute("att-image-accept-types")?h.getAttribute("att-image-accept-types").split(","):f.attributes.attImageAcceptTypes,Ht=ee(h.getAttribute("att-image-max-size"))?Number(h.getAttribute("att-image-max-size")):f.attributes.attImageMaxSize,v=f.attributes.defaultFontFamilies,w=h.getAttribute("add-font-family")?h.getAttribute("add-font-family").split(","):[],A=h.getAttribute("remove-font-family")?h.getAttribute("remove-font-family").split(","):[],x=0;x<w.length;x++)w[x],w[x]&&(v.includes(w[x])||(I=w[x],/^[A-Za-z0-9]+$/.test(I)?v.splice(7+x,0,w[x]):v.push(w[x])));for(var g=function(S){if(!A[S])return 1;v=v.filter(function(N){return N!==A[S]})},p=0;p<A.length;p++)g(p);var B=h.getAttribute("default-font-family")?h.getAttribute("default-font-family"):f.attributes.defaultTextareaFontFamily;v.includes(B)||v.splice(0,0,B);var H=h.getAttribute("default-tool-font-family")?h.getAttribute("default-tool-font-family"):f.attributes.defaultToolFontFamily,U=ee(h.getAttribute("default-font-size"))?Number(h.getAttribute("default-font-size")):f.attributes.defaultTextareaFontSize,q=ee(h.getAttribute("default-line-height"))?Number(h.getAttribute("default-line-height")):f.attributes.defaultTextareaLineHeight,oe=ee(h.getAttribute("size-level-desktop"))?Number(h.getAttribute("size-level-desktop")):3,de=ee(h.getAttribute("size-level-mobile"))?Number(h.getAttribute("size-level-mobile")):7,he=Be?de:oe;he<1&&(he=1),he>9&&(he=9);var se=(he+11)/20,me=h.getAttribute("main-color")?De(h.getAttribute("main-color")):f.attributes.mainColor,Q=h.getAttribute("color-set")?h.getAttribute("color-set").toLowerCase():f.attributes.colorSet,u=h.getAttribute("invert-color")?h.getAttribute("invert-color").toLowerCase()==="true":f.attributes.invertColor,b=(!h.getAttribute("using-paragraph-style")||h.getAttribute("using-paragraph-style").toLowerCase()!=="false")&&f.attributes.usingParagraphStyle,_=(!h.getAttribute("using-bold")||h.getAttribute("using-bold").toLowerCase()!=="false")&&f.attributes.usingBold,R=(!h.getAttribute("using-underline")||h.getAttribute("using-underline").toLowerCase()!=="false")&&f.attributes.usingUnderline,F=(!h.getAttribute("using-italic")||h.getAttribute("using-italic").toLowerCase()!=="false")&&f.attributes.usingItalic,D=(!h.getAttribute("using-ul")||h.getAttribute("using-ul").toLowerCase()!=="false")&&f.attributes.usingUl,z=(!h.getAttribute("using-ol")||h.getAttribute("using-ol").toLowerCase()!=="false")&&f.attributes.usingOl,pe=(!h.getAttribute("using-text-align")||h.getAttribute("using-text-align").toLowerCase()!=="false")&&f.attributes.usingTextAlign,Se=(!h.getAttribute("using-att-link")||h.getAttribute("using-att-link").toLowerCase()!=="false")&&f.attributes.usingAttLink,ze=(!h.getAttribute("using-att-file")||h.getAttribute("using-att-file").toLowerCase()!=="false")&&f.attributes.usingAttFile,je=(!h.getAttribute("using-att-image")||h.getAttribute("using-att-image").toLowerCase()!=="false")&&f.attributes.usingAttImage,Ue=(!h.getAttribute("using-att-video")||h.getAttribute("using-att-video").toLowerCase()!=="false")&&f.attributes.usingAttVideo,it=(!h.getAttribute("using-font-size")||h.getAttribute("using-font-size").toLowerCase()!=="false")&&f.attributes.usingFontSize,rt=(!h.getAttribute("using-letter-spacing")||h.getAttribute("using-letter-spacing").toLowerCase()!=="false")&&f.attributes.usingLetterSpacing,ct=(!h.getAttribute("using-line-height")||h.getAttribute("using-line-height").toLowerCase()!=="false")&&f.attributes.usingLineHeight,Ne=(!h.getAttribute("using-font-family")||h.getAttribute("using-font-family").toLowerCase()!=="false")&&f.attributes.usingFontFamily,Pe=(!h.getAttribute("using-color-text")||h.getAttribute("using-color-text").toLowerCase()!=="false")&&f.attributes.usingColorText,lt=(!h.getAttribute("using-color-back")||h.getAttribute("using-color-back").toLowerCase()!=="false")&&f.attributes.usingColorBack,ae=(!h.getAttribute("using-format-clear")||h.getAttribute("using-format-clear").toLowerCase()!=="false")&&f.attributes.usingFormatClear,te=(!h.getAttribute("using-undo")||h.getAttribute("using-undo").toLowerCase()!=="false")&&f.attributes.usingUndo,ht=(!h.getAttribute("using-redo")||h.getAttribute("using-redo").toLowerCase()!=="false")&&f.attributes.usingRedo,d=(!h.getAttribute("using-help")||h.getAttribute("using-help").toLowerCase()!=="false")&&f.attributes.usingHelp;h.getAttribute("using-paragraph-all-style")&&h.getAttribute("using-paragraph-all-style").toLowerCase()==="false"&&(b=!1,D=!1,z=!1,pe=!1),h.getAttribute("using-character-style")&&h.getAttribute("using-character-style").toLowerCase()==="false"&&(_=!1,R=!1,F=!1,Ne=!1,Pe=!1,lt=!1,ae=!1),h.getAttribute("using-character-size")&&h.getAttribute("using-character-size").toLowerCase()==="false"&&(it=!1,rt=!1,ct=!1),h.getAttribute("using-attach-file")&&h.getAttribute("using-attach-file").toLowerCase()==="false"&&(Se=!1,ze=!1,je=!1,Ue=!1),h.getAttribute("using-do")&&h.getAttribute("using-do").toLowerCase()==="false"&&(te=!1,ht=!1);var y=h.getAttribute("language")&&f.languageSet.hasOwnProperty(h.getAttribute("language"))?h.getAttribute("language"):f.attributes.language,M=ee(h.getAttribute("recode-limit"))?Number(h.getAttribute("recode-limit")):f.attributes.recodeLimit;return{isNoteByMobile:Be,toolPosition:tt,toolDefaultLine:Ge,toolToggleUsing:j,sizeRate:se,noteModeByDevice:be,textareaOriginWidth:E,textareaOriginHeight:s,textareaMaxWidth:l,textareaMaxHeight:k,textareaHeightIsModify:$,placeholderIsVisible:J,placeholderAddTop:ie,placeholderAddLeft:ge,placeholderWidth:Ce,placeholderColor:He,placeholderBackgroundColor:Le,placeholderTitle:Ke,placeholderTextContent:Ze,attFilePreventTypes:et,attFileAcceptTypes:Ve,attFileMaxSize:Mt,attImagePreventTypes:Rt,attImageAcceptTypes:xt,attImageMaxSize:Ht,defaultFontFamilies:v,defaultTextareaFontFamily:B,defaultToolFontFamily:H,defaultTextareaFontSize:U,defaultTextareaLineHeight:q,mainColor:me,colorSet:Q,invertColor:u,usingParagraphStyle:b,usingBold:_,usingUnderline:R,usingItalic:F,usingUl:D,usingOl:z,usingTextAlign:pe,usingAttLink:Se,usingAttFile:ze,usingAttImage:je,usingAttVideo:Ue,usingFontSize:it,usingLetterSpacing:rt,usingLineHeight:ct,usingFontFamily:Ne,usingColorText:Pe,usingColorBack:lt,usingFormatClear:ae,usingUndo:te,usingRedo:ht,usingHelp:d,language:y,recodeLimit:M}},Et=function(f,h){var I={color1:f.colors.color1,color2:f.colors.color2,color3:f.colors.color3,color4:f.colors.color4,color5:f.colors.color5,color6:f.colors.color6,color7:f.colors.color7,color8:f.colors.color8,color9:f.colors.color9,color10:f.colors.color10,color11:f.colors.color11,color12:f.colors.color12,color13:f.colors.color13,color14:f.colors.color14,color15:f.colors.color15,color16:f.colors.color16,color17:f.colors.color17,color18:f.colors.color18,color19:f.colors.color19,color20:f.colors.color20};if(h.mainColor)I=Qe(h.mainColor);else switch(h.colorSet){case"skyblue":I=Qe("#91c8e4");break;case"blue":I=Qe("#4682a9");break;case"light-red":I=Qe("#fdd2bf");break;case"red":I=Qe("#b61919");break;case"light-green":I=Qe("#a4be7b");break;case"green":I=Qe("#285430");break;case"orange":I=Qe("#f79327");break;case"yellow":I=Qe("#ffe569");break;case"purple":I=Qe("#804674");break;case"brown":I=Qe("#675d50");break;case"black":I=Qe("#272829")}return h.invertColor&&(I.color1=mt(I.color1),I.color2=mt(I.color2),I.color3=mt(I.color3),I.color4=mt(I.color4),I.color5=mt(I.color5),I.color6=mt(I.color6),I.color7=mt(I.color7),I.color10=mt(I.color10),I.color11=mt(I.color11),I.color12=mt(I.color12),I.color13=mt(I.color13)),I},_e=function(f,h,I){if(!h)throw new Error("Please insert variables object in VanillanoteConfig.");if(!I)throw new Error("Please insert colors object in VanillanoteConfig.");return{"template h1":{display:"block","font-size":"2em","line-height":"1.2em","font-weight":"bold",margin:"1em 0",padding:"0 10px"},"template h2":{display:"block","font-size":"1.8em","line-height":"1.2em","font-weight":"bold",margin:"1em 0",padding:"0 10px"},"template h3":{display:"block","font-size":"1.6em","line-height":"1.2em","font-weight":"bold","margin-top":"1em","margin-bottom":"1em",padding:"0 10px"},"template h4":{display:"block","font-size":"1.4em","line-height":"1.2em","font-weight":"bold",margin:"1em 0",padding:"0 10px"},"template h5":{display:"block","font-size":"1.2em","line-height":"1.2em","font-weight":"bold",margin:"1em 0",padding:"0 10px"},"template h6":{display:"block","font-size":"1em","line-height":"1.2em","font-weight":"bold",margin:"1em 0",padding:"0 10px"},"textarea ul":{display:"block","list-style-type":"disc","padding-left":"40px",margin:"1em 0"},"textarea ol":{display:"block","list-style-type":"decimal","padding-left":"40px",margin:"1em 0"},"textarea li":{display:"list-item","margin-top":"0.5em","margin-bottom":"0.5em",padding:"0 10px"},"textarea p":{display:"block","margin-top":"1em","margin-bottom":"1em",padding:"0 10px"},"textarea div":{display:"block","margin-top":"1em","margin-bottom":"1em",padding:"0 10px"},"textarea span":{display:"inline"},"textarea a":{display:"inline",color:I.color11,"text-decoration":"underline"},template:{width:"100%",height:"100%",position:"relative"},textarea:{width:h.textareaOriginWidth,height:h.textareaOriginHeight,display:"block",margin:"0 auto",outline:"none",cursor:"text","text-align":"left",overflow:"auto","word-wrap":"break-word",resize:h.textareaHeightIsModify===!0?"vertical":"none","max-width":h.textareaMaxWidth,"max-height":h.textareaMaxHeight,"box-shadow":"0 0.5px 1px 0.5px "+I.color7,"background-color":I.color2,"font-size":h.defaultTextareaFontSize+"px","line-height":h.defaultTextareaLineHeight+"px","font-family":h.defaultTextareaFontFamily,color:I.color12,transition:"height 0.5s"},tool:{width:h.textareaOriginWidth,height:h.toolDefaultLine*(50*h.sizeRate)+"px",padding:"2px 0","max-width":h.textareaMaxWidth,display:"block","line-height":50*h.sizeRate+"px",margin:"0 auto","text-align":"left","vertical-align":"middle","box-shadow":"0.25px 0.25px 1px 0.5px "+I.color7,"font-size":16*h.sizeRate+"px","background-color":I.color3,"font-family":h.defaultToolFontFamily},icon:{"font-size":"1.3em","-webkit-user-select":"none","-moz-user-select":"none","-ms-user-select":"none","user-select":"none",color:I.color1},button:{width:50*h.sizeRate+"px",height:45*h.sizeRate+"px",float:"left",display:"inline-block",cursor:"pointer","text-align":"center",margin:"2px 2px","border-radius":"5px","box-shadow":"0.25px 0.25px 2px 0.25px "+I.color7,"background-color":I.color4,"font-family":h.defaultToolFontFamily,position:"relative"},select:{width:150*h.sizeRate+"px",height:45*h.sizeRate+"px","background-color":I.color4,float:"left",display:"inline-block",cursor:"pointer","text-align":"center",margin:"2px 2px","border-radius":"5px","box-shadow":"0.25px 0.25px 2px 0.25px "+I.color7,color:I.color1,position:"relative"},select_box_a:{"min-width":150*h.sizeRate+"px","background-color":I.color4,display:"none",float:"left",position:"absolute",cursor:"pointer","border-radius":"5px","box-shadow":"0.25px 0.25px 0.1em "+I.color7,opacity:"0.85","z-index":"200"},select_box_b:{width:50*h.sizeRate+"px",display:" none",float:"left",position:"absolute",cursor:"pointer","border-radius":"5px","z-index":"200"},select_box_c:{width:220*h.sizeRate+30+"px",display:"none",padding:"0 "+10*h.sizeRate+"px",float:"left",position:"absolute","border-radius":"5px","box-shadow":"0.25px 0.25px 0.1em "+I.color7,"background-color":I.color4,opacity:"0.95",cursor:"text","text-align":"left","z-index":"200"},select_list:{display:"block",height:45*h.sizeRate+"px",margin:"0 !important","line-height":45*h.sizeRate+"px !important",padding:"3px 5px",cursor:"pointer","text-align":"left",overflow:"hidden"},select_list_button:{width:50*h.sizeRate+"px",height:45*h.sizeRate+"px","background-color":I.color4,display:"inline-block",cursor:"pointer","border-radius":"5px","box-shadow":"0px 0.25px 0.1em "+I.color7},small_input_box:{width:120*h.sizeRate+"px",height:45*h.sizeRate+"px","background-color":I.color4,float:"left",overflow:"hidden",cursor:"pointer",display:"inline-block","text-align":"center",margin:"2px 2px","border-radius":"5px","box-shadow":"0.25px 0.25px 2px 0.25px "+I.color7},small_input:{width:"30%","background-color":"rgba(0,0,0,0)",color:I.color1,border:"none","border-radius":"0","text-align":"right",display:"inline-block",position:"relative",top:"-4px","margin-left":"5px","font-family":h.defaultToolFontFamily,cursor:"text","font-size":"0.8em!important"},"small_input:focus":{outline:"none"},"small_input::-webkit-inner-spin-button":{"-webkit-appearance":"none",margin:"0"},"small_input::-webkit-outer-spin-button":{"-webkit-appearance":"none",margin:"0"},"small_input[type=number]":{"-moz-appearance":"textfield"},normal_button:{"min-width":50*h.sizeRate+"px",height:45*h.sizeRate+"px","font-size":"0.8em",padding:"0 15px",display:"inline-block",cursor:"pointer","text-align":"center","border-radius":"5px",border:"none","box-shadow":"0.25px 0.25px 2px 0.25px "+I.color7,color:I.color1,"font-family":h.defaultToolFontFamily,"background-color":I.color4},opacity_button:{"min-width":40*h.sizeRate+"px",height:40*h.sizeRate+"px","font-size":"0.7em",display:"inline-block",cursor:"pointer","text-align":"center","border-radius":"5px",border:"none",color:I.color1,"font-family":h.defaultToolFontFamily,"background-color":Te(I.color4,.5)},small_text_box:{display:"inline-block",padding:"0 10px","font-size":"0.8em",color:I.color1},modal_back:{"background-color":"rgba(0,0,0,0.5)",display:"none",position:"absolute","z-index":"300","font-family":h.defaultToolFontFamily,color:I.color1,"font-size":16*h.sizeRate+"px"},modal_body:{width:"80%",margin:"0 auto",display:"none","text-align":"left",border:"solid 1px "+I.color6,"border-radius":"20px","background-color":I.color2},modal_header:{"text-align":"left","padding-top":20*h.sizeRate+"px","padding-right":10*h.sizeRate+"px","padding-bottom":20*h.sizeRate+"px","padding-left":20*h.sizeRate+"px","margin-bottom":10*h.sizeRate+"px","background-color":I.color4,"border-radius":"20px 20px 0 0","font-weight":"bold","font-size":"1.05em"},modal_footer:{"text-align":"right","margin-top":10*h.sizeRate+"px","padding-top":10*h.sizeRate+"px","padding-right":10*h.sizeRate+"px","padding-bottom":10*h.sizeRate+"px","padding-left":10*h.sizeRate+"px","border-top":"1px solid "+I.color6},modal_explain:{"font-size":"0.95em","text-align":"left","padding-top":20*h.sizeRate+"px","padding-bottom":10*h.sizeRate+"px","padding-left":20*h.sizeRate+"px",display:"inline-block",color:I.color10,"font-family":h.defaultToolFontFamily},modal_input:{display:"block",width:"80%","background-color":"rgba(0,0,0,0)","font-family":h.defaultToolFontFamily,color:I.color10,border:"none","border-radius":"0","border-bottom":"1px solid "+I.color6,"margin-bottom":10*h.sizeRate+"px","margin-left":20*h.sizeRate+"px","font-size":"1.05em",animation:f+"-modal-input 0.7s forwards"},"modal_input:focus":{outline:"none"},"modal_input[readonly]":{"background-color":"rgba(0,0,0,0.1)"},modal_small_input:{display:"inline-block",width:"20%","background-color":"rgba(0,0,0,0)","font-family":h.defaultToolFontFamily,color:I.color10,border:"none","border-radius":"0","border-bottom":"1px solid "+I.color6,"margin-bottom":10*h.sizeRate+"px","margin-left":20*h.sizeRate+"px","font-size":"1.05em",animation:f+"-modal-small-input 1s forwards"},"modal_small_input:focus":{outline:"none"},"modal_small_input::-webkit-inner-spin-button":{appearance:"none","-moz-appearance":"none","-webkit-appearance":"none"},"modal_small_input::-webkit-outer-spin-button":{"-webkit-appearance":"none",margin:"0"},"modal_small_input[type=number]":{"-moz-appearance":"textfield"},"modal_small_input[readonly]":{"background-color":I.color4},modal_input_file:{display:"none!important"},att_valid_checktext:{"padding-right":"10px","font-size":"0.7em"},att_link_is_blank_label:{"font-size":"0.95em","text-align":"left",display:"inline-block",height:"25px",cursor:"pointer","margin-top":10*h.sizeRate+"px","margin-bottom":10*h.sizeRate+"px","margin-left":15*h.sizeRate+"px",color:I.color10},input_checkbox:{cursor:"pointer",display:"inline-block",width:"12px",height:"12px","border-radius":"3px",border:"solid "+I.color6,"border-width":"1px 2px 2px 1px",transform:"rotate(0deg)",transition:"transform 0.3s"},"input_checkbox:focus":{outline:"none!important"},"input_checkbox[disabled]":{"background-color":I.color4},smallpx_input:{width:"40px","background-color":"rgba(0,0,0,0)",color:I.color1,border:"none","border-radius":"5px","text-align":"right","font-size":"0.9em!important",display:"inline-block","margin-left":"5px","font-family":h.defaultToolFontFamily},"smallpx_input:focus":{outline:"none"},"smallpx_input::-webkit-inner-spin-button":{appearance:"none","-moz-appearance":"none","-webkit-appearance":"none"},input_radio:{cursor:"pointer",display:"inline-block",width:"12px",height:"12px","border-radius":"50%",border:"solid 1px "+I.color6,transition:"transform 0.4s, background-color 0.6s;"},"input_radio:focus":{outline:"none!important"},"input_radio:checked":{"background-color":I.color5,transform:"rotateY( 180deg )",transition:"transform 0.3s, background-color 0.5s;"},"input_radio[disabled]":{"background-color":I.color4},drag_drop_div:{width:"100%",height:120*h.sizeRate+"px",display:"inline-block","margin-top":"10px","border-radius":"5px","background-color":I.color4,border:"solid 1px"+I.color6,"line-height":130*h.sizeRate+"px","font-size":"0.8em",color:Te(I.color1,.8),"overflow-y":"scroll",cursor:"pointer"},image_view_div:{width:"80%",height:120*h.sizeRate+"px",display:"inline-block","margin-top":"10px","border-radius":"5px","background-color":I.color4,border:"solid 1px"+I.color6,"line-height":130*h.sizeRate+"px","font-size":"0.8em",color:Te(I.color1,.8),cursor:"pointer",overflow:"hidden","white-space":"nowrap","scroll-behavior":"smooth"},color_button:{width:50*h.sizeRate*.5+"px",height:45*h.sizeRate*.5+"px",float:"left",display:"inline-block",cursor:"pointer","text-align":"center","border-radius":"5px","margin-right":"3px","margin-bottom":"5%",border:"1px solid "+I.color1,"box-shadow":"0.25px 0.25px 2px 0.25px "+I.color7,position:"relative"},color_input:{display:"inline-block","background-color":"rgba(0,0,0,0)",width:25*h.sizeRate+"px",height:40*h.sizeRate+"px","font-size":"0.7em!important",color:I.color1,border:"none","border-radius":"5px","text-align":"right","margin-right":8*h.sizeRate+"px","margin-left":2*h.sizeRate+"px","font-family":h.defaultToolFontFamily},"color_input:focus":{outline:"none"},"color_input::-webkit-inner-spin-button":{appearance:"none","-moz-appearance":"none","-webkit-appearance":"none"},color_explain:{display:"inline-block",height:25*h.sizeRate+"px",color:I.color1,"font-family":h.defaultToolFontFamily,"font-size":"0.7em"},tooltip:{width:h.textareaOriginWidth,"max-width":h.textareaMaxWidth,margin:"0 auto",padding:"2px 0","background-color":I.color3,border:"solid 1px "+I.color5,height:"0",overflow:"hidden",opacity:"0",transition:"opacity 0.6s, height 0.6s",position:"absolute",left:"50%",transform:"translateX(-50%)","z-index":"100","text-align":"left","font-family":h.defaultToolFontFamily,"font-size":"0.9em"},tooltip_button:{width:50*h.sizeRate*.7+"px",height:45*h.sizeRate*.7+"px",float:"left",display:"inline-block",cursor:"pointer","text-align":"center",margin:"2px 2px","border-radius":"5px","box-shadow":"0.25px 0.25px 2px 0.25px "+I.color7,"background-color":I.color4,position:"relative"},att_link_tooltip_href:{cursor:"pointer",float:"left",padding:"0 10px",color:I.color11,"text-decoration":"underline","font-size":"0.9em","line-height":45*h.sizeRate*.8+"px"},help_main:{"max-height":h.textareaOriginHeight,color:I.color10,"overflow-y":"auto"},placeholder:{width:h.textareaOriginWidth,padding:"10px","background-color":Te(I.color3,.8),color:I.color1,display:"none",position:"absolute","z-index":"100","font-family":h.defaultToolFontFamily},on_button_on:{"background-color":I.color5+"!important","box-shadow":"0.25px 0.25px 0.25px 0.25px "+I.color7},on_active:{"background-color":I.color5+"!important","box-shadow":"0.25px 0.25px 0.25px 0.25px "+I.color7},on_mouseover:{"background-color":I.color5+"!important"},on_mouseout:{"background-color":I.color4+"!important"},on_display_inline:{display:"inline"},on_display_inline_block:{display:"inline-block"},on_display_block:{display:"block"},on_display_none:{display:"none"}}},bt=function(f){f._cssEvents={target_onBeforeClick:function(h){return!0},target_onAfterClick:function(h){},target_onBeforeMouseover:function(h){return!0},target_onAfterMouseover:function(h){},target_onBeforeMouseout:function(h){return!0},target_onAfterMouseout:function(h){},target_onBeforeTouchstart:function(h){return!0},target_onAfterTouchstart:function(h){},target_onBeforeTouchend:function(h){return!0},target_onAfterTouchend:function(h){}},f._elementEvents={textarea_onBeforeClick:function(h){return!0},textarea_onAfterClick:function(h){},textarea_onBeforeFocus:function(h){return!0},textarea_onAfterFocus:function(h){},textarea_onBeforeBlur:function(h){return!0},textarea_onAfterBlur:function(h){},paragraphStyleSelect_onBeforeClick:function(h){return!0},paragraphStyleSelect_onAfterClick:function(h){},toolToggleButton_onBeforeClick:function(h){return!0},toolToggleButton_onAfterClick:function(h){},styleNomal_onBeforeClick:function(h){return!0},styleNomal_onAfterClick:function(h){},styleHeader1_onBeforeClick:function(h){return!0},styleHeader1_onAfterClick:function(h){},styleHeader2_onBeforeClick:function(h){return!0},styleHeader2_onAfterClick:function(h){},styleHeader3_onBeforeClick:function(h){return!0},styleHeader3_onAfterClick:function(h){},styleHeader4_onBeforeClick:function(h){return!0},styleHeader4_onAfterClick:function(h){},styleHeader5_onBeforeClick:function(h){return!0},styleHeader5_onAfterClick:function(h){},styleHeader6_onBeforeClick:function(h){return!0},styleHeader6_onAfterClick:function(h){},boldButton_onBeforeClick:function(h){return!0},boldButton_onAfterClick:function(h){},underlineButton_onBeforeClick:function(h){return!0},underlineButton_onAfterClick:function(h){},italicButton_onBeforeClick:function(h){return!0},italicButton_onAfterClick:function(h){},ulButton_onBeforeClick:function(h){return!0},ulButton_onAfterClick:function(h){},olButton_onBeforeClick:function(h){return!0},olButton_onAfterClick:function(h){},textAlignSelect_onBeforeClick:function(h){return!0},textAlignSelect_onAfterClick:function(h){},textAlignLeft_onBeforeClick:function(h){return!0},textAlignLeft_onAfterClick:function(h){},textAlignCenter_onBeforeClick:function(h){return!0},textAlignCenter_onAfterClick:function(h){},textAlignRight_onBeforeClick:function(h){return!0},textAlignRight_onAfterClick:function(h){},attLinkButton_onBeforeClick:function(h){return!0},attLinkButton_onAfterClick:function(h){},attFileButton_onBeforeClick:function(h){return!0},attFileButton_onAfterClick:function(h){},attImageButton_onBeforeClick:function(h){return!0},attImageButton_onAfterClick:function(h){},attVideoButton_onBeforeClick:function(h){return!0},attVideoButton_onAfterClick:function(h){},fontSizeInputBox_onBeforeClick:function(h){return!0},fontSizeInputBox_onAfterClick:function(h){},fontSizeInput_onBeforeClick:function(h){return!0},fontSizeInput_onAfterClick:function(h){},fontSizeInput_onBeforeInput:function(h){return!0},fontSizeInput_onAfterInput:function(h){},fontSizeInput_onBeforeBlur:function(h){return!0},fontSizeInput_onAfterBlur:function(h){},letterSpacingInputBox_onBeforeClick:function(h){return!0},letterSpacingInputBox_onAfterClick:function(h){},letterSpacingInput_onBeforeClick:function(h){return!0},letterSpacingInput_onAfterClick:function(h){},letterSpacingInput_onBeforeInput:function(h){return!0},letterSpacingInput_onAfterInput:function(h){},letterSpacingInput_onBeforeBlur:function(h){return!0},letterSpacingInput_onAfterBlur:function(h){},lineHeightInputBox_onBeforeClick:function(h){return!0},lineHeightInputBox_onAfterClick:function(h){},lineHeightInput_onBeforeClick:function(h){return!0},lineHeightInput_onAfterClick:function(h){},lineHeightInput_onBeforeInput:function(h){return!0},lineHeightInput_onAfterInput:function(h){},lineHeightInput_onBeforeBlur:function(h){return!0},lineHeightInput_onAfterBlur:function(h){},fontFamilySelect_onBeforeClick:function(h){return!0},fontFamilySelect_onAfterClick:function(h){},colorTextSelect_onBeforeClick:function(h){return!0},colorTextSelect_onAfterClick:function(h){},colorTextSelectBox_onBeforeClick:function(h){return!0},colorTextSelectBox_onAfterClick:function(h){},colorText0_onBeforeClick:function(h){return!0},colorText0_onAfterClick:function(h){},colorText1_onBeforeClick:function(h){return!0},colorText1_onAfterClick:function(h){},colorText2_onBeforeClick:function(h){return!0},colorText2_onAfterClick:function(h){},colorText3_onBeforeClick:function(h){return!0},colorText3_onAfterClick:function(h){},colorText4_onBeforeClick:function(h){return!0},colorText4_onAfterClick:function(h){},colorText5_onBeforeClick:function(h){return!0},colorText5_onAfterClick:function(h){},colorText6_onBeforeClick:function(h){return!0},colorText6_onAfterClick:function(h){},colorText7_onBeforeClick:function(h){return!0},colorText7_onAfterClick:function(h){},colorTextRInput_onBeforeClick:function(h){return!0},colorTextRInput_onAfterClick:function(h){},colorTextRInput_onBeforeInput:function(h){return!0},colorTextRInput_onAfterInput:function(h){},colorTextRInput_onBeforeBlur:function(h){return!0},colorTextRInput_onAfterBlur:function(h){},colorTextGInput_onBeforeClick:function(h){return!0},colorTextGInput_onAfterClick:function(h){},colorTextGInput_onBeforeInput:function(h){return!0},colorTextGInput_onAfterInput:function(h){},colorTextGInput_onBeforeBlur:function(h){return!0},colorTextGInput_onAfterBlur:function(h){},colorTextBInput_onBeforeClick:function(h){return!0},colorTextBInput_onAfterClick:function(h){},colorTextBInput_onBeforeInput:function(h){return!0},colorTextBInput_onAfterInput:function(h){},colorTextBInput_onBeforeBlur:function(h){return!0},colorTextBInput_onAfterBlur:function(h){},colorTextOpacityInput_onBeforeClick:function(h){return!0},colorTextOpacityInput_onAfterClick:function(h){},colorTextOpacityInput_onBeforeInput:function(h){return!0},colorTextOpacityInput_onAfterInput:function(h){},colorTextOpacityInput_onBeforeBlur:function(h){return!0},colorTextOpacityInput_onAfterBlur:function(h){},colorBackSelect_onBeforeClick:function(h){return!0},colorBackSelect_onAfterClick:function(h){},colorBackSelectBox_onBeforeClick:function(h){return!0},colorBackSelectBox_onAfterClick:function(h){},colorBack0_onBeforeClick:function(h){return!0},colorBack0_onAfterClick:function(h){},colorBack1_onBeforeClick:function(h){return!0},colorBack1_onAfterClick:function(h){},colorBack2_onBeforeClick:function(h){return!0},colorBack2_onAfterClick:function(h){},colorBack3_onBeforeClick:function(h){return!0},colorBack3_onAfterClick:function(h){},colorBack4_onBeforeClick:function(h){return!0},colorBack4_onAfterClick:function(h){},colorBack5_onBeforeClick:function(h){return!0},colorBack5_onAfterClick:function(h){},colorBack6_onBeforeClick:function(h){return!0},colorBack6_onAfterClick:function(h){},colorBack7_onBeforeClick:function(h){return!0},colorBack7_onAfterClick:function(h){},colorBackRInput_onBeforeClick:function(h){return!0},colorBackRInput_onAfterClick:function(h){},colorBackRInput_onBeforeInput:function(h){return!0},colorBackRInput_onAfterInput:function(h){},colorBackRInput_onBeforeBlur:function(h){return!0},colorBackRInput_onAfterBlur:function(h){},colorBackGInput_onBeforeClick:function(h){return!0},colorBackGInput_onAfterClick:function(h){},colorBackGInput_onBeforeInput:function(h){return!0},colorBackGInput_onAfterInput:function(h){},colorBackGInput_onBeforeBlur:function(h){return!0},colorBackGInput_onAfterBlur:function(h){},colorBackBInput_onBeforeClick:function(h){return!0},colorBackBInput_onAfterClick:function(h){},colorBackBInput_onBeforeInput:function(h){return!0},colorBackBInput_onAfterInput:function(h){},colorBackBInput_onBeforeBlur:function(h){return!0},colorBackBInput_onAfterBlur:function(h){},colorBackOpacityInput_onBeforeClick:function(h){return!0},colorBackOpacityInput_onAfterClick:function(h){},colorBackOpacityInput_onBeforeInput:function(h){return!0},colorBackOpacityInput_onAfterInput:function(h){},colorBackOpacityInput_onBeforeBlur:function(h){return!0},colorBackOpacityInput_onAfterBlur:function(h){},formatClearButton_onBeforeClick:function(h){return!0},formatClearButton_onAfterClick:function(h){},undoButton_onBeforeClick:function(h){return!0},undoButton_onAfterClick:function(h){},redoButton_onBeforeClick:function(h){return!0},redoButton_onAfterClick:function(h){},helpButton_onBeforeClick:function(h){return!0},helpButton_onAfterClick:function(h){},modalBack_onBeforeClick:function(h){return!0},modalBack_onAfterClick:function(h){},attLinkModal_onBeforeClick:function(h){return!0},attLinkModal_onAfterClick:function(h){},attLinkText_onBeforeInput:function(h){return!0},attLinkText_onAfterInput:function(h){},attLinkText_onBeforeBlur:function(h){return!0},attLinkText_onAfterBlur:function(h){},attLinkHref_onBeforeInput:function(h){return!0},attLinkHref_onAfterInput:function(h){},attLinkHref_onBeforeBlur:function(h){return!0},attLinkHref_onAfterBlur:function(h){},attLinkInsertButton_onBeforeClick:function(h){return!0},attLinkInsertButton_onAfterClick:function(h){},attFileModal_onBeforeClick:function(h){return!0},attFileModal_onAfterClick:function(h){},attFileUploadButton_onBeforeClick:function(h){return!0},attFileUploadButton_onAfterClick:function(h){},attFileUploadDiv_onBeforeDragover:function(h){return!0},attFileUploadDiv_onAfterDragover:function(h){},attFileUploadDiv_onBeforeDrop:function(h){return!0},attFileUploadDiv_onAfterDrop:function(h){},attFileUploadDiv_onBeforeClick:function(h){return!0},attFileUploadDiv_onAfterClick:function(h){},attFileUpload_onBeforeInput:function(h){return!0},attFileUpload_onAfterInput:function(h){},attFileUpload_onBeforeBlur:function(h){return!0},attFileUpload_onAfterBlur:function(h){},attFileInsertButton_onBeforeClick:function(h){return!0},attFileInsertButton_onAfterClick:function(h){},attLinkTooltipEditButton_onBeforeClick:function(h){return!0},attLinkTooltipEditButton_onAfterClick:function(h){},attLinkTooltipUnlinkButton_onBeforeClick:function(h){return!0},attLinkTooltipUnlinkButton_onAfterClick:function(h){},attImageModal_onBeforeClick:function(h){return!0},attImageModal_onAfterClick:function(h){},attImageUploadButtonAndView_onBeforeDragover:function(h){return!0},attImageUploadButtonAndView_onAfterDragover:function(h){},attImageUploadButtonAndView_onBeforeDrop:function(h){return!0},attImageUploadButtonAndView_onAfterDrop:function(h){},attImageUploadButtonAndView_onBeforeClick:function(h){return!0},attImageUploadButtonAndView_onAfterClick:function(h){},attImageViewPreButton_onBeforeClick:function(h){return!0},attImageViewPreButton_onAfterClick:function(h){},attImageViewNextButton_onBeforeClick:function(h){return!0},attImageViewNextButton_onAfterClick:function(h){},attImageUpload_onBeforeInput:function(h){return!0},attImageUpload_onAfterInput:function(h){},attImageUpload_onBeforeBlur:function(h){return!0},attImageUpload_onAfterBlur:function(h){},attImageURL_onBeforeInput:function(h){return!0},attImageURL_onAfterInput:function(h){},attImageURL_onBeforeBlur:function(h){return!0},attImageURL_onAfterBlur:function(h){},attImageInsertButton_onBeforeClick:function(h){return!0},attImageInsertButton_onAfterClick:function(h){},attVideoModal_onBeforeClick:function(h){return!0},attVideoModal_onAfterClick:function(h){},attVideoEmbedId_onBeforeInput:function(h){return!0},attVideoEmbedId_onAfterInput:function(h){},attVideoEmbedId_onBeforeBlur:function(h){return!0},attVideoEmbedId_onAfterBlur:function(h){},attVideoWidth_onBeforeInput:function(h){return!0},attVideoWidth_onAfterInput:function(h){},attVideoWidth_onBeforeBlur:function(h){return!0},attVideoWidth_onAfterBlur:function(h){},attVideoHeight_onBeforeInput:function(h){return!0},attVideoHeight_onAfterInput:function(h){},attVideoHeight_onBeforeBlur:function(h){return!0},attVideoHeight_onAfterBlur:function(h){},attVideoInsertButton_onBeforeClick:function(h){return!0},attVideoInsertButton_onAfterClick:function(h){},attImageAndVideoTooltipWidthInput_onBeforeInput:function(h){return!0},attImageAndVideoTooltipWidthInput_onAfterInput:function(h){},attImageAndVideoTooltipWidthInput_onBeforeBlur:function(h){return!0},attImageAndVideoTooltipWidthInput_onAfterBlur:function(h){},attImageAndVideoTooltipWidthInput_onBeforeKeyup:function(h){return!0},attImageAndVideoTooltipWidthInput_onAfterKeyup:function(h){},attImageAndVideoTooltipFloatRadioNone_onBeforeClick:function(h){return!0},attImageAndVideoTooltipFloatRadioNone_onAfterClick:function(h){},attImageAndVideoTooltipFloatRadioLeft_onBeforeClick:function(h){return!0},attImageAndVideoTooltipFloatRadioLeft_onAfterClick:function(h){},attImageAndVideoTooltipFloatRadioRight_onBeforeClick:function(h){return!0},attImageAndVideoTooltipFloatRadioRight_onAfterClick:function(h){},attImageAndVideoTooltipShapeRadioSquare_onBeforeClick:function(h){return!0},attImageAndVideoTooltipShapeRadioSquare_onAfterClick:function(h){},attImageAndVideoTooltipShapeRadioRadius_onBeforeClick:function(h){return!0},attImageAndVideoTooltipShapeRadioRadius_onAfterClick:function(h){},attImageAndVideoTooltipShapeRadioCircle_onBeforeClick:function(h){return!0},attImageAndVideoTooltipShapeRadioCircle_onAfterClick:function(h){},helpModal_onBeforeClick:function(h){return!0},helpModal_onAfterClick:function(h){},placeholder_onBeforeClick:function(h){return!0},placeholder_onAfterClick:function(h){}}},Yn=function(f,h){(h||document).querySelectorAll("[data-vanillanote]").forEach(function(I){var be,Be=document.getElementById("".concat(I._noteName,"_").concat(I._id,"_styles-sheet"));Be==null||(be=Be.parentElement)===null||be===void 0||be.removeChild(Be),delete f.vanillanoteElements[I._id],function(tt){for(;tt.firstChild;)tt.removeChild(tt.firstChild)}(I)})};function Zt(f){return Zt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},Zt(f)}function Lt(f){return Lt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},Lt(f)}var Xe=null,Ut={setAttTempFileValid:function(f){},setAttFileUploadDiv:function(f){},setAttTempImageValid:function(f){},setAttImageUploadAndView:function(f){},createElement:function(f,h,I,be,Be){},createElementBasic:function(f,h,I,be,Be){},createElementButton:function(f,h,I,be,Be){},createElementSelect:function(f,h,I,be,Be){},createElementInput:function(f,h,I){},createElementInputCheckbox:function(f,h,I){},createElementInputRadio:function(f,h,I,be){},createElementRadioLabel:function(f,h,I){},createElementFontFamiliySelect:function(f,h,I,be,Be){},addClickEvent:function(f,h,I){},addMouseoverEvent:function(f,h){},addMouseoutEvent:function(f,h){},addTouchstartEvent:function(f,h){},addTouchendEvent:function(f,h){},onEventDisable:function(f,h){},replaceDifferentBetweenElements:function(f,h,I){},compareAttributesBetweenEl:function(f,h){},compareStylesBetweenEl:function(f,h){},getAttributesObjectFromElement:function(f){},getSpecialTag:function(f,h){},getParentUnitTagElemnt:function(f,h){},getParentTagName:function(f,h){},getObjectEditElementAttributes:function(f,h){},getObjectEditElementCss:function(f,h){},getEditElementTag:function(f){},getPreviousElementsUntilNotTag:function(f,h,I){},getNextElementsUntilNotTag:function(f,h,I){},setTagToggle:function(f,h){},initToggleButtonVariables:function(f){},isInNote:function(f){},getElementReplaceTag:function(f,h){},removeDoubleTag:function(f,h){},getElement:function(f,h,I,be,Be){},setEditNodeAndElement:function(f,h,I){},removeEmptyElment:function(f,h){},editUnitCheck:function(f){},doEditUnitCheck:function(f){},connectObserver:function(f){},isElementInParentBounds:function(f,h){},validCheckAttLink:function(f){},validCheckAttVideo:function(f){},initAttLink:function(f){},initAttFile:function(f){},initAttImage:function(f){},getObjectNoteCss:function(f){},showAlert:function(f,h){},recodeNote:function(f){},closeAllTooltip:function(f){},setVariableButtonTogle:function(f,h){},button_onToggle:function(f,h){},allButtonToggle:function(f){},selectToggle:function(f,h){},closeAllSelectBoxes:function(f){},fontFamilySelectList_onClick:function(f,h){},setEditStyleTag:function(f){},setElementScroll:function(f,h,I){},getCheckSelectBoxesOpened:function(f){},closeAllModal:function(f){},openAttLinkModal:function(f){},openPlaceholder:function(f){},closePlaceholder:function(f){},setAllModalSize:function(f){},setPlaceholderSize:function(f){},setAllToolTipPosition:function(f){},appearAttLinkToolTip:function(f){},appearAttImageAndVideoTooltip:function(f){},setImageAndVideoWidth:function(f){},setAllToolSize:function(f){},doDecreaseTextareaHeight:function(f){},doIncreaseTextareaHeight:function(f){},modifyTextareaScroll:function(f,h){},initTextarea:function(f){},setNewSelection:function(f,h,I,be){},handleSpecialTagSelection:function(f){},setOriginEditSelection:function(f){},setEditSelection:function(f,h){},isValidSelection:function(f){},modifySeletedElements:function(f){},modifySelectedUnitElementTag:function(f,h){},modifySelectedUnitElementStyle:function(f,h){},modifySelectedSingleElement:function(f,h,I,be){},textarea_onBeforeinputSpelling:function(f){},textarea_onKeydownEnter:function(f){}},gn=function(f){var h,I,be,Be,tt,Ge,j,E,s,l,k,$,J,ie,ge,Ce,He,Le,Ke,Ze,et,Ve,Mt,Rt,xt,Ht,v,w,A,x,g,p,B,H,U,q,oe,de,he,se;if(Xe)return Xe;var me=function(D){return Object.freeze(D),Object.getOwnPropertyNames(D).forEach(function(z){var pe=D[z];pe&&Lt(pe)==="object"&&!Object.isFrozen(pe)&&me(pe)}),D},Q=me({START_POSSIBLE_TAG:["P","H1","H2","H3","H4","H5","H6","OL","UL","BR","DIV","PRE","BLOCKQUOTE","TABLE"],UNIT_TAG:["P","H1","H2","H3","H4","H5","H6","LI","DIV","PRE","BLOCKQUOTE","TH","TD"],DOUBLE_TAG:["UL","OL"],NOT_SINGLE_TAG:["P","H1","H2","H3","H4","H5","H6","OL","UL","LI","DIV","PRE","BLOCKQUOTE"],SPECIAL_TAG:["A","IMG","IFRAME"],AUTO_MODIFY_TAG:["B","U"],EMPTY_ABLE_TAG:["BR","IMG","IFRAME","INPUT","I"],CLASS_NAMES:{template:{id:"template",className:"template"},textarea:{id:"textarea",className:"textarea"},tool:{id:"tool",className:"tool"},toolToggleButton:{id:"toolToggleButton",className:"button"},paragraphStyleSelect:{id:"paragraphStyleSelect",className:"select"},paragraphStyleSelectBox:{id:"paragraphStyleSelectBox",className:"select_box_a"},styleNomal:{id:"styleNomal",className:"select_list"},styleHeader1:{id:"styleHeader1",className:"select_list"},styleHeader2:{id:"styleHeader2",className:"select_list"},styleHeader3:{id:"styleHeader3",className:"select_list"},styleHeader4:{id:"styleHeader4",className:"select_list"},styleHeader5:{id:"styleHeader5",className:"select_list"},styleHeader6:{id:"styleHeader6",className:"select_list"},boldButton:{id:"boldButton",className:"button"},underlineButton:{id:"underlineButton",className:"button"},italicButton:{id:"italicButton",className:"button"},ulButton:{id:"ulButton",className:"button"},olButton:{id:"olButton",className:"button"},textAlignSelect:{id:"textAlignSelect",className:"button"},textAlignSelectBox:{id:"textAlignSelectBox",className:"select_box_b"},textAlignLeft:{id:"textAlignLeft",className:"select_list_button"},textAlignCenter:{id:"textAlignCenter",className:"select_list_button"},textAlignRight:{id:"textAlignRight",className:"select_list_button"},attLinkButton:{id:"attLinkButton",className:"button"},attFileButton:{id:"attFileButton",className:"button"},attImageButton:{id:"attImageButton",className:"button"},attVideoButton:{id:"attVideoButton",className:"button"},fontSizeInputBox:{id:"fontSizeInputBox",className:"small_input_box"},fontSizeInput:{id:"fontSizeInput",className:"small_input"},letterSpacingInputBox:{id:"letterSpacingInputBox",className:"small_input_box"},letterSpacingInput:{id:"letterSpacingInput",className:"small_input"},lineHeightInputBox:{id:"lineHeightInputBox",className:"small_input_box"},lineHeightInput:{id:"lineHeightInput",className:"small_input"},fontFamilySelect:{id:"fontFamilySelect",className:"select"},fontFamilySelectBox:{id:"fontFamilySelectBox",className:"select_box_a"},fontFamily:{id:"fontFamily_",className:"select_list"},colorTextSelect:{id:"colorTextSelect",className:"button"},colorTextSelectBox:{id:"colorTextSelectBox",className:"select_box_c"},colorText0:{id:"colorText0",className:"color_button"},colorText1:{id:"colorText1",className:"color_button"},colorText2:{id:"colorText2",className:"color_button"},colorText3:{id:"colorText3",className:"color_button"},colorText4:{id:"colorText4",className:"color_button"},colorText5:{id:"colorText5",className:"color_button"},colorText6:{id:"colorText6",className:"color_button"},colorText7:{id:"colorText7",className:"color_button"},colorTextRInput:{id:"colorTextRInput",className:"color_input"},colorTextRExplain:{id:"colorTextRExplain",className:"color_explain"},colorTextGInput:{id:"colorTextGInput",className:"color_input"},colorTextGExplain:{id:"colorTextGExplain",className:"color_explain"},colorTextBInput:{id:"colorTextBInput",className:"color_input"},colorTextBExplain:{id:"colorTextBExplain",className:"color_explain"},colorTextOpacityInput:{id:"colorTextOpacityInput",className:"color_input"},colorTextOpacityExplain:{id:"colorTextOpacityExplain",className:"color_explain"},colorBackSelect:{id:"colorBackSelect",className:"button"},colorBackSelectBox:{id:"colorTextSelectBox",className:"select_box_c"},colorBack0:{id:"colorBack0",className:"color_button"},colorBack1:{id:"colorBack1",className:"color_button"},colorBack2:{id:"colorBack2",className:"color_button"},colorBack3:{id:"colorBack3",className:"color_button"},colorBack4:{id:"colorBack4",className:"color_button"},colorBack5:{id:"colorBack5",className:"color_button"},colorBack6:{id:"colorBack6",className:"color_button"},colorBack7:{id:"colorBack7",className:"color_button"},colorBackRInput:{id:"colorBackRInput",className:"color_input"},colorBackRExplain:{id:"colorBackRExplain",className:"color_explain"},colorBackGInput:{id:"colorBackGInput",className:"color_input"},colorBackGExplain:{id:"colorBackGExplain",className:"color_explain"},colorBackBInput:{id:"colorBackBInput",className:"color_input"},colorBackBExplain:{id:"colorBackBExplain",className:"color_explain"},colorBackOpacityInput:{id:"colorBackOpacityInput",className:"color_input"},colorBackOpacityExplain:{id:"colorBackOpacityExplain",className:"color_explain"},formatClearButton:{id:"formatClearButton",className:"button"},undoButton:{id:"undoButton",className:"button"},redoButton:{id:"redoButton",className:"button"},helpButton:{id:"helpButton",className:"button"},modalBack:{id:"modalBack",className:"modal_back"},attLinkModal:{id:"attLinkModal",className:"modal_body"},attLinkHeader:{id:"attLinkHeader",className:"modal_header"},attLinkFooter:{id:"attLinkFooter",className:"modal_footer"},attLinkExplain1:{id:"attLinkExplain1",className:"modal_explain"},attLinkText:{id:"attLinkText",className:"modal_input"},attLinkExplain2:{id:"attLinkExplain2",className:"modal_explain"},attLinkHref:{id:"attLinkHref",className:"modal_input"},attLinkIsBlankLabel:{id:"attLinkIsBlankLabel",className:"att_link_is_blank_label"},attLinkIsBlankCheckbox:{id:"attLinkIsBlankCheckbox",className:"input_checkbox"},attLinkValidCheckText:{id:"attLinkValidChecktext",className:"att_valid_checktext"},attLinkValidCheckbox:{id:"attLinkValidCheckbox",className:"input_checkbox"},attLinkInsertButton:{id:"attLinkInsertButton",className:"normal_button"},attLinkTooltip:{id:"attLinkTooltip",className:"tooltip"},attLinkTooltipHref:{id:"attLinkTooltipHref",className:"att_link_tooltip_href"},attLinkTooltipEditButton:{id:"attLinkTooltipEditButton",className:"tooltip_button"},attLinkTooltipUnlinkButton:{id:"attLinkTooltipUnlinkButton",className:"tooltip_button"},attFileModal:{id:"attFileModal",className:"modal_body"},attFileHeader:{id:"attFileHeader",className:"modal_header"},attFilelayout:{id:"attFilelayout",className:"modal_layout"},attFileExplain1:{id:"attFileExplain1",className:"modal_explain"},attFileUploadButton:{id:"attFileUploadButton",className:"normal_button"},attFileUploadDiv:{id:"attFileUploadDiv",className:"drag_drop_div"},attFileUpload:{id:"attFileUpload",className:"modal_input_file"},attFileInsertButton:{id:"attFileInsertButton",className:"normal_button"},attFileFooter:{id:"attFileFooter",className:"modal_footer"},attImageModal:{id:"attImageModal",className:"modal_body"},attImageHeader:{id:"attImageHeader",className:"modal_header"},attImageExplain1:{id:"attImageExplain1",className:"modal_explain"},attImageExplain2:{id:"attImageExplain2",className:"modal_explain"},attImageUploadButtonAndView:{id:"attImageUploadButtonAndView",className:"image_view_div"},attImageViewPreButton:{id:"attImageViewPreButton",className:"opacity_button"},attImageViewNextButton:{id:"attImageViewNextButton",className:"opacity_button"},attImageUpload:{id:"attImageUpload",className:"modal_input_file"},attImageURL:{id:"attImageURL",className:"modal_input"},attImageInsertButton:{id:"attImageInsertButton",className:"normal_button"},attImageFooter:{id:"attImageFooter",className:"modal_footer"},attVideoModal:{id:"attVideoModal",className:"modal_body"},attVideoHeader:{id:"attVideoHeader",className:"modal_header"},attVideoExplain1:{id:"attVideoExplain1",className:"modal_explain"},attVideoEmbedId:{id:"attVideoEmbedId",className:"modal_input"},attVideoExplain2:{id:"attVideoExplain2",className:"modal_explain"},attVideoWidth:{id:"attVideoWidth",className:"modal_small_input"},attVideoHeight:{id:"attVideoHeight",className:"modal_small_input"},attVideoValidCheckText:{id:"attVideoValidCheckText",className:"att_valid_checktext"},attVideoValidCheckbox:{id:"attVideoValidCheckbox",className:"input_checkbox"},attVideoInsertButton:{id:"attVideoInsertButton",className:"normal_button"},attVideoFooter:{id:"attVideoFooter",className:"modal_footer"},attImageAndVideoTooltip:{id:"attImageAndVideoTooltip",className:"tooltip"},attImageAndVideoTooltipWidthInput:{id:"attImageAndVideoTooltipWidthInput",className:"smallpx_input"},attImageAndVideoTooltipFloatRadioNone:{id:"attImageAndVideoTooltipFloatRadioNone",className:"input_radio"},attImageAndVideoTooltipFloatRadioLeft:{id:"attImageAndVideoTooltipFloatRadioLeft",className:"input_radio"},attImageAndVideoTooltipFloatRadioRight:{id:"attImageAndVideoTooltipFloatRadioRight",className:"input_radio"},attImageAndVideoTooltipShapeRadioSquare:{id:"attImageAndVideoTooltipShapeRadioSquare",className:"input_radio"},attImageAndVideoTooltipShapeRadioRadius:{id:"attImageAndVideoTooltipShapeRadioRadius",className:"input_radio"},attImageAndVideoTooltipShapeRadioCircle:{id:"attImageAndVideoTooltipShapeRadioCircle",className:"input_radio"},helpModal:{id:"helpModal",className:"modal_body"},helpMain:{id:"helpMain",className:"help_main"},helpHeader:{id:"helpHeader",className:"modal_header"},helpFooter:{id:"helpFooter",className:"modal_footer"},placeholder:{id:"placeholder",className:"placeholder"}}});f||(f=Rn());var u=f.colors,b=f.attributes,_=f.variables,R=f.languageSet,F=f.useGoogleIcon;return(Xe={consts:Q,colors:u,attributes:b,variables:_,languageSet:R,iconSpanElement:{toolToggleButtonIcon:(h=f.iconSpanElement.toolToggleButtonIcon)!==null&&h!==void 0?h:null,paragraphStyleSelectIcon:(I=f.iconSpanElement.paragraphStyleSelectIcon)!==null&&I!==void 0?I:null,boldButtonIcon:(be=f.iconSpanElement.boldButtonIcon)!==null&&be!==void 0?be:null,underlineButtonIcon:(Be=f.iconSpanElement.underlineButtonIcon)!==null&&Be!==void 0?Be:null,italicButtonIcon:(tt=f.iconSpanElement.italicButtonIcon)!==null&&tt!==void 0?tt:null,ulButtonIcon:(Ge=f.iconSpanElement.ulButtonIcon)!==null&&Ge!==void 0?Ge:null,olButtonIcon:(j=f.iconSpanElement.olButtonIcon)!==null&&j!==void 0?j:null,textAlignSelectIcon:(E=f.iconSpanElement.textAlignSelectIcon)!==null&&E!==void 0?E:null,textAlignLeftButtonIcon:(s=f.iconSpanElement.textAlignLeftButtonIcon)!==null&&s!==void 0?s:null,textAlignCenterButtonIcon:(l=f.iconSpanElement.textAlignCenterButtonIcon)!==null&&l!==void 0?l:null,textAlignRightButtonIcon:(k=f.iconSpanElement.textAlignRightButtonIcon)!==null&&k!==void 0?k:null,attLinkButtonIcon:($=f.iconSpanElement.attLinkButtonIcon)!==null&&$!==void 0?$:null,attLinkInsertButtonIcon:(J=f.iconSpanElement.attLinkInsertButtonIcon)!==null&&J!==void 0?J:null,attLinkTooltipEditButtonIcon:(ie=f.iconSpanElement.attLinkTooltipEditButtonIcon)!==null&&ie!==void 0?ie:null,attLinkTooltipUnlinkButtonIcon:(ge=f.iconSpanElement.attLinkTooltipUnlinkButtonIcon)!==null&&ge!==void 0?ge:null,attFileButtonIcon:(Ce=f.iconSpanElement.attFileButtonIcon)!==null&&Ce!==void 0?Ce:null,attFileInsertButtonIcon:(He=f.iconSpanElement.attFileInsertButtonIcon)!==null&&He!==void 0?He:null,attImageButtonIcon:(Le=f.iconSpanElement.attImageButtonIcon)!==null&&Le!==void 0?Le:null,attImageViewPreButtonIcon:(Ke=f.iconSpanElement.attImageViewPreButtonIcon)!==null&&Ke!==void 0?Ke:null,attImageViewNextButtonIcon:(Ze=f.iconSpanElement.attImageViewNextButtonIcon)!==null&&Ze!==void 0?Ze:null,attImageInsertButtonIcon:(et=f.iconSpanElement.attImageInsertButtonIcon)!==null&&et!==void 0?et:null,attVideoButtonIcon:(Ve=f.iconSpanElement.attVideoButtonIcon)!==null&&Ve!==void 0?Ve:null,attVideoWidthTextIcon:(Mt=f.iconSpanElement.attVideoWidthTextIcon)!==null&&Mt!==void 0?Mt:null,attVideoHeightTextIcon:(Rt=f.iconSpanElement.attVideoHeightTextIcon)!==null&&Rt!==void 0?Rt:null,attVideoInsertButtonIcon:(xt=f.iconSpanElement.attVideoInsertButtonIcon)!==null&&xt!==void 0?xt:null,attImageAndVideoTooltipFloatRadioNoneLabelIcon:(Ht=f.iconSpanElement.attImageAndVideoTooltipFloatRadioNoneLabelIcon)!==null&&Ht!==void 0?Ht:null,attImageAndVideoTooltipFloatRadioLeftLabelIcon:(v=f.iconSpanElement.attImageAndVideoTooltipFloatRadioLeftLabelIcon)!==null&&v!==void 0?v:null,attImageAndVideoTooltipFloatRadioRightLabelIcon:(w=f.iconSpanElement.attImageAndVideoTooltipFloatRadioRightLabelIcon)!==null&&w!==void 0?w:null,attImageAndVideoTooltipShapeRadioSquareLabelIcon:(A=f.iconSpanElement.attImageAndVideoTooltipShapeRadioSquareLabelIcon)!==null&&A!==void 0?A:null,attImageAndVideoTooltipShapeRadioRadiusLabelIcon:(x=f.iconSpanElement.attImageAndVideoTooltipShapeRadioRadiusLabelIcon)!==null&&x!==void 0?x:null,attImageAndVideoTooltipShapeRadioCircleLabelIcon:(g=f.iconSpanElement.attImageAndVideoTooltipShapeRadioCircleLabelIcon)!==null&&g!==void 0?g:null,fontSizeInputBoxIcon:(p=f.iconSpanElement.fontSizeInputBoxIcon)!==null&&p!==void 0?p:null,letterSpacingInputBoxIcon:(B=f.iconSpanElement.letterSpacingInputBoxIcon)!==null&&B!==void 0?B:null,lineHeightInputBoxIcon:(H=f.iconSpanElement.lineHeightInputBoxIcon)!==null&&H!==void 0?H:null,colorTextSelectIcon:(U=f.iconSpanElement.colorTextSelectIcon)!==null&&U!==void 0?U:null,colorBackSelectIcon:(q=f.iconSpanElement.colorBackSelectIcon)!==null&&q!==void 0?q:null,formatClearButtonIcon:(oe=f.iconSpanElement.formatClearButtonIcon)!==null&&oe!==void 0?oe:null,undoButtonIcon:(de=f.iconSpanElement.undoButtonIcon)!==null&&de!==void 0?de:null,redoButtonIcon:(he=f.iconSpanElement.redoButtonIcon)!==null&&he!==void 0?he:null,helpButtonIcon:(se=f.iconSpanElement.helpButtonIcon)!==null&&se!==void 0?se:null},useGoogleIcon:F===!0,events:{documentEvents:{noteObserver:null,selectionchange:null,keydown:null,resize:null,resizeViewport:null},cssEvents:{target_onClick:null,target_onMouseover:null,target_onMouseout:null,target_onTouchstart:null,target_onTouchend:null},elementEvents:{toolToggleButton_onClick:null,paragraphStyleSelect_onClick:null,styleNomal_onClick:null,styleHeader1_onClick:null,styleHeader2_onClick:null,styleHeader3_onClick:null,styleHeader4_onClick:null,styleHeader5_onClick:null,styleHeader6_onClick:null,boldButton_onClick:null,underlineButton_onClick:null,italicButton_onClick:null,ulButton_onClick:null,olButton_onClick:null,textAlignSelect_onClick:null,textAlignLeft_onClick:null,textAlignCenter_onClick:null,textAlignRight_onClick:null,attLinkButton_onClick:null,attLinkModal_onClick:null,attLinkText_onInput:null,attLinkText_onBlur:null,attLinkHref_onInput:null,attLinkHref_onBlur:null,attLinkInsertButton_onClick:null,attLinkTooltipEditButton_onClick:null,attLinkTooltipUnlinkButton_onClick:null,attFileButton_onClick:null,attFileModal_onClick:null,attFileUploadButton_onClick:null,attFileUploadDiv_onDragover:null,attFileUploadDiv_onDrop:null,attFileUploadDiv_onClick:null,attFileUpload_onInput:null,attFileUpload_onBlur:null,attFileInsertButton_onClick:null,attImageButton_onClick:null,attImageModal_onClick:null,attImageUploadButtonAndView_onDragover:null,attImageUploadButtonAndView_onDrop:null,attImageUploadButtonAndView_onClick:null,attImageViewPreButton_onClick:null,attImageViewNextButton_onClick:null,attImageUpload_onInput:null,attImageUpload_onBlur:null,attImageURL_onInput:null,attImageURL_onBlur:null,attImageInsertButton_onClick:null,attVideoButton_onClick:null,attVideoModal_onClick:null,attVideoEmbedId_onInput:null,attVideoEmbedId_onBlur:null,attVideoWidth_onInput:null,attVideoWidth_onBlur:null,attVideoHeight_onInput:null,attVideoHeight_onBlur:null,attVideoInsertButton_onClick:null,attImageAndVideoTooltipWidthInput_onInput:null,attImageAndVideoTooltipWidthInput_onBlur:null,attImageAndVideoTooltipWidthInput_onKeyup:null,attImageAndVideoTooltipFloatRadioNone_onClick:null,attImageAndVideoTooltipFloatRadioLeft_onClick:null,attImageAndVideoTooltipFloatRadioRight_onClick:null,attImageAndVideoTooltipShapeRadioSquare_onClick:null,attImageAndVideoTooltipShapeRadioRadius_onClick:null,attImageAndVideoTooltipShapeRadioCircle_onClick:null,fontSizeInputBox_onClick:null,fontSizeInput_onClick:null,fontSizeInput_onInput:null,fontSizeInput_onBlur:null,letterSpacingInputBox_onClick:null,letterSpacingInput_onClick:null,letterSpacingInput_onInput:null,letterSpacingInput_onBlur:null,lineHeightInputBox_onClick:null,lineHeightInputBox_onInput:null,lineHeightInput_onClick:null,lineHeightInput_onInput:null,lineHeightInput_onBlur:null,fontFamilySelect_onClick:null,colorTextSelect_onClick:null,colorTextSelectBox_onClick:null,colorTextRInput_onClick:null,colorTextRInput_onInput:null,colorTextRInput_onBlur:null,colorTextGInput_onClick:null,colorTextGInput_onInput:null,colorTextGInput_onBlur:null,colorTextBInput_onClick:null,colorTextBInput_onInput:null,colorTextBInput_onBlur:null,colorTextOpacityInput_onClick:null,colorTextOpacityInput_onInput:null,colorTextOpacityInput_onBlur:null,colorText0_onClick:null,colorText1_onClick:null,colorText2_onClick:null,colorText3_onClick:null,colorText4_onClick:null,colorText5_onClick:null,colorText6_onClick:null,colorText7_onClick:null,colorBackSelect_onClick:null,colorBackSelectBox_onClick:null,colorBackRInput_onClick:null,colorBackRInput_onInput:null,colorBackRInput_onBlur:null,colorBackGInput_onClick:null,colorBackGInput_onInput:null,colorBackGInput_onBlur:null,colorBackBInput_onClick:null,colorBackBInput_onInput:null,colorBackBInput_onBlur:null,colorBackOpacityInput_onClick:null,colorBackOpacityInput_onInput:null,colorBackOpacityInput_onBlur:null,colorBack0_onClick:null,colorBack1_onClick:null,colorBack2_onClick:null,colorBack3_onClick:null,colorBack4_onClick:null,colorBack5_onClick:null,colorBack6_onClick:null,colorBack7_onClick:null,formatClearButton_onClick:null,undoButton_onClick:null,redoButton_onClick:null,helpButton_onClick:null,helpModal_onClick:null,modalBack_onClick:null,placeholder_onClick:null,textarea_onClick:null,textarea_onFocus:null,textarea_onBlur:null,textarea_onKeydown:null,textarea_onKeyup:null,textarea_onBeforeinput:null}},vanillanoteElements:{},getNote:function(D){return null},beforeAlert:function(D){return!0},init:function(){gt()},mountNote:function(D){},destroy:function(){yn()},unmountNote:function(D){},_initialized:!1}).mountNote=function(D){(function(z,pe,Se){var ze=(Se||document).querySelectorAll("[data-vanillanote]");ze.length<=0||(ze.forEach(function(je){var Ue=je.getAttribute("data-id");if(!Ue)throw new Error("The data-id attribute of vanillanote is required.");if(Ue&&Object.keys(z.vanillanoteElements).includes(Ue))throw new Error("".concat(Ue," is a note that has already been created."))}),ze.forEach(function(je){var Ue=je.getAttribute("data-id");if(Object.keys(z.vanillanoteElements).includes(Ue))throw new Error("Duplicate vanillanote id detected: ".concat(Ue));var it=je;it.setAttribute("id",c(z.variables.noteName,Ue,"note")),it.setAttribute("class",m(z.variables.noteName,Ue,"note")),it.setAttribute("data-note-id",Ue),it._noteName=z.variables.noteName,it._id=Ue,z.vanillanoteElements[Ue]=function(rt,ct,Ne){var Pe=nn(rt,Ne);Ne._colors=Et(rt,Pe);var lt=_e(Ne._noteName,Pe,Ne._colors),ae="".concat(Ne._noteName,"_").concat(Ne._id,"_styles-sheet");if(!document.getElementById(ae)){var te="";Object.keys(lt).forEach(function(d){te=te+function(y,M,S,N){return"."+c(y,M,S)+" {"+Ee(N)+"}"}(Ne._noteName,Ne._id,d,lt[d])+`
50
50
  `});var ht=document.createElement("style");ht.id=ae,ht.textContent=te.trim(),document.head.appendChild(ht)}return Ne._selection={editSelection:null,editRange:null,startOffset:null,endOffset:null,editStartNode:null,editEndNode:null,editStartElement:null,editEndElement:null,editStartUnitElement:null,editEndUnitElement:null,editDragUnitElement:[],setEditStyleTagToggle:0},Ne._attributes={isNoteByMobile:Pe.isNoteByMobile,language:Pe.language,sizeRate:Pe.sizeRate,toolPosition:Pe.toolPosition,toolToggleUsing:Pe.toolToggleUsing,toolDefaultLine:Pe.toolDefaultLine,textareaOriginHeight:Pe.textareaOriginHeight,defaultTextareaFontSize:Pe.defaultTextareaFontSize,defaultTextareaLineHeight:Pe.defaultTextareaLineHeight,defaultTextareaFontFamily:Pe.defaultTextareaFontFamily,defaultFontFamilies:Pe.defaultFontFamilies,attFilePreventTypes:Pe.attFilePreventTypes,attFileAcceptTypes:Pe.attFileAcceptTypes,attFileMaxSize:Pe.attFileMaxSize,attImagePreventTypes:Pe.attImagePreventTypes,attImageAcceptTypes:Pe.attImageAcceptTypes,attImageMaxSize:Pe.attImageMaxSize,placeholderIsVisible:Pe.placeholderIsVisible,placeholderWidth:Pe.placeholderWidth,placeholderAddTop:Pe.placeholderAddTop,placeholderAddLeft:Pe.placeholderAddLeft,placeholderTitle:Pe.placeholderTitle,placeholderTextContent:Pe.placeholderTextContent},Ne._status={toolToggle:!1,boldToggle:!1,underlineToggle:!1,italicToggle:!1,ulToggle:!1,olToggle:!1,fontSize:Pe.defaultTextareaFontSize,letterSpacing:0,lineHeight:Pe.defaultTextareaLineHeight,fontFamily:Pe.defaultTextareaFontFamily,colorTextR:Ie(Ne._colors.color12,"R"),colorTextG:Ie(Ne._colors.color12,"G"),colorTextB:Ie(Ne._colors.color12,"B"),colorTextO:"1",colorTextRGB:Ne._colors.color12,colorTextOpacity:"1",colorBackR:Ie(Ne._colors.color13,"R"),colorBackG:Ie(Ne._colors.color13,"G"),colorBackB:Ie(Ne._colors.color13,"B"),colorBackO:"0",colorBackRGB:Ne._colors.color13,colorBackOpacity:"0"},Ne._recodes={recodeNotes:[],recodeCount:-1,recodeLimit:Pe.recodeLimit},Ne._attTempFiles={},Ne._attFiles={},Ne._attTempImages={},Ne._attImages={},bt(Ne),ft(rt,ct,Ne,Pe),Ne.getNoteData=function(){var d=Ne._elements.textarea,y=d.querySelectorAll("[uuid]"),M=d.querySelectorAll("img[data-note-id]"),S=d.querySelectorAll("a[data-note-id]"),N=d.querySelectorAll("iframe[data-note-id]"),O=Pt(Pt({},Ne._attFiles),Ne._attImages),T={},G={};Object.keys(O).forEach(function(le){Array.from(y).some(function(qe){return qe.getAttribute("uuid")===le})&&(T[le]=O[le]),Array.from(M).some(function(qe){return qe.getAttribute("uuid")===le})&&(G[le]=O[le])});var V=[];S.forEach(function(le){V.push({text:le.textContent||"",href:le.getAttribute("href")||"",target:le.getAttribute("target")||void 0})});var Z=[];M.forEach(function(le){Z.push({src:le.getAttribute("src")||"",uuid:le.getAttribute("uuid")||void 0})});var ne=[];Object.keys(T).forEach(function(le){ne.push({uuid:le,name:T[le].name})});var Y=[];return N.forEach(function(le){var qe=le.getAttribute("src")||"";qe.includes("youtube.com/embed")&&Y.push({src:qe,width:le.style.width||le.getAttribute("width")||void 0,height:le.style.height||le.getAttribute("height")||void 0})}),{html:d.innerHTML,plainText:d.textContent||"",links:V,files:ne,images:Z,videos:Y,fileObjects:T,imageObjects:G}},Ne.setNoteData=function(d){if(d){var y=Ne._elements.textarea;y&&(y.innerHTML="",Ne._attFiles={},Ne._attImages={},y.innerHTML=d.html,Object.entries(d.fileObjects).forEach(function(M){var S=Ye(M,2),N=S[0],O=S[1];Ne._attFiles[N]=O,y.querySelectorAll('a[uuid="'.concat(N,'"]')).forEach(function(T){T.setAttribute("href",URL.createObjectURL(O)),T.setAttribute("download",O.name)})}),Object.entries(d.imageObjects).forEach(function(M){var S=Ye(M,2),N=S[0],O=S[1];Ne._attImages[N]=O,y.querySelectorAll('img[uuid="'.concat(N,'"]')).forEach(function(T){T.setAttribute("src",URL.createObjectURL(O))})}))}},Ne}(z,pe,it)}),setTimeout(function(){Object.keys(z.vanillanoteElements).forEach(function(je){z.vanillanoteElements[je]._elements.template.removeAttribute("style")}),z.events.documentEvents.resize()},z.variables.loadInterval))})(Xe,Ut,D)},Xe.unmountNote=function(D){Yn(Xe,D)},Xe},gt=function(){if(Xe&&!Xe._initialized){Xe._initialized=!0,function(j,E){E.setAttTempFileValid=function(s){for(var l=new Object,k=Object.keys(s._attTempFiles),$=0;$<k.length;$++)s._attributes.attFileAcceptTypes.length>0?s._attributes.attFileAcceptTypes.includes(s._attTempFiles[k[$]].type)&&(l[k[$]]=s._attTempFiles[k[$]]):l[k[$]]=s._attTempFiles[k[$]],l[k[$]]&&(s._attributes.attFilePreventTypes.includes(l[k[$]].type)?(E.showAlert("["+l[k[$]].name+"] "+j.languageSet[s._attributes.language].attPreventType,j.beforeAlert),delete l[k[$]]):l[k[$]].size>=s._attributes.attFileMaxSize&&(E.showAlert("["+l[k[$]].name+"] "+j.languageSet[s._attributes.language].attOverSize,j.beforeAlert),delete l[k[$]]));s._attTempFiles=l},E.setAttFileUploadDiv=function(s){if(s._attTempFiles.length<=0)return s._elements.attFileUploadDiv.style.removeProperty("line-height"),void(s._elements.attFileUploadDiv.textContent=j.languageSet[s._attributes.language].attFileUploadDiv);s._elements.attFileUploadDiv.style.lineHeight="unset",s._elements.attFileUploadDiv.replaceChildren();for(var l,k=Object.keys(s._attTempFiles),$=0;$<k.length;$++)l=E.getElement(s._attTempFiles[k[$]].name,"P","display:block;padding:0.5em 0;",{title:j.languageSet[s._attributes.language].attFileListTooltip,uuid:k[$]},s),s._elements.attFileUploadDiv.appendChild(l)},E.setAttTempImageValid=function(s){for(var l=new Object,k=Object.keys(s._attTempImages),$=0;$<k.length;$++)s._attributes.attImageAcceptTypes.length>0?s._attributes.attImageAcceptTypes.includes(s._attTempImages[k[$]].type)&&(l[k[$]]=s._attTempImages[k[$]]):l[k[$]]=s._attTempImages[k[$]],l[k[$]]&&(s._attributes.attImagePreventTypes.includes(l[k[$]].type)?(E.showAlert("["+l[k[$]].name+"] "+j.languageSet[s._attributes.language].attPreventType,j.beforeAlert),delete l[k[$]]):l[k[$]].size>=s._attributes.attImageMaxSize&&(E.showAlert("["+l[k[$]].name+"] "+j.languageSet[s._attributes.language].attOverSize,j.beforeAlert),delete l[k[$]]));s._attTempImages=l},E.setAttImageUploadAndView=function(s){var l=Object.keys(s._attTempImages);if(!(l.length<=0)){var k,$;s._elements.attImageUploadButtonAndView.replaceChildren();for(var J=0;J<l.length;J++)k=s._attTempImages[l[J]],($=document.createElement("img")).src=URL.createObjectURL(k),$.style.width="auto",$.style.height="100%",$.style.display="inline-block",$.style.margin="0 5px",s._elements.attImageUploadButtonAndView.appendChild($);s._elements.attImageURL.value="",s._elements.attImageURL.setAttribute("readonly","true")}},E.createElement=function(s,l,k,$,J){var ie,ge=document.createElement(s);if(k!==""&&ge.setAttribute("id",c(l._noteName,l._id,k)),ge.setAttribute("data-note-id",l._id),ge.setAttribute("class",m(l._noteName,l._id,$)),J&&Zt(J)==="object"&&Object.keys(J).length!==0)if(J.isIcon){var Ce=document.createElement("span");Ce.setAttribute("class","material-symbols-rounded "+C(l._noteName)+" "+P(l._noteName)+" "+L(l._noteName)+" "+c(l._noteName,l._id,"icon")),ie=document.createTextNode(J.text),Ce.appendChild(ie),J.iconStyle&&Ce.setAttribute("style",J.iconStyle),Ce.setAttribute("data-note-id",l._id),ge.appendChild(Ce)}else ie=document.createTextNode(J.text),ge.appendChild(ie);return ge},E.createElementBasic=function(s,l,k,$,J){var ie=E.createElement(s,l,k,$,J);return E.addClickEvent(ie,k,l),ie},E.createElementButton=function(s,l,k,$,J){var ie=E.createElement(s,l,k,$,J);return ie.classList.add(P(l._noteName)),ie.classList.add(L(l._noteName)),E.addClickEvent(ie,k,l),E.addMouseoverEvent(ie,l),E.addMouseoutEvent(ie,l),E.addTouchstartEvent(ie,l),E.addTouchendEvent(ie,l),ie},E.createElementSelect=function(s,l,k,$,J){var ie=E.createElement(s,l,k,$,J);return ie.classList.add(P(l._noteName)),ie.classList.add(L(l._noteName)),ie.setAttribute("type","select"),E.addClickEvent(ie,k,l),E.addMouseoverEvent(ie,l),E.addMouseoutEvent(ie,l),E.addTouchstartEvent(ie,l),E.addTouchendEvent(ie,l),ie},E.createElementInput=function(s,l,k){var $=E.createElement("input",s,l,k);return $.setAttribute("name",c(s._noteName,s._id,l)),$.setAttribute("autocapitalize","none"),$.setAttribute("placeholder",""),$.addEventListener("input",function(J){s._elementEvents[l+"_onBeforeInput"](J)&&(j.events.elementEvents[l+"_onInput"](J),s._elementEvents[l+"_onAfterInput"](J),J.stopImmediatePropagation())}),$.addEventListener("blur",function(J){s._elementEvents[l+"_onBeforeBlur"](J)&&(j.events.elementEvents[l+"_onBlur"](J),s._elementEvents[l+"_onAfterBlur"](J),J.stopImmediatePropagation())}),$},E.createElementInputCheckbox=function(s,l,k){var $=E.createElement("input",s,l,k);return $.setAttribute("name",c(s._noteName,s._id,l)),$.setAttribute("placeholder",""),$.setAttribute("type","checkbox"),$},E.createElementInputRadio=function(s,l,k,$){var J=E.createElement("input",s,l,k);return J.setAttribute("name",$),J.setAttribute("placeholder",""),J.setAttribute("type","radio"),E.addClickEvent(J,l,s),J},E.createElementRadioLabel=function(s,l,k){var $=document.createElement("label");$.setAttribute("for",l),$.setAttribute("style","display:inline-block;width:30px;position:relative;margin-left:3px;;margin-left:3px;");var J=document.createElement("span");return J.setAttribute("class","material-symbols-rounded"),J.setAttribute("style","font-size:1.3em;position:absolute;bottom:-6px;cursor:pointer;color:"+De(s._colors.color1)),J.textContent=k,$.appendChild(J),$},E.createElementFontFamiliySelect=function(s,l,k,$,J){var ie=E.createElement(s,l,k,$,J);return ie.classList.add(P(l._noteName)),ie.classList.add(L(l._noteName)),l._elementEvents[k+"_onBeforeClick"]=function(ge){return!0},j.events.elementEvents[l._id+"_"+k+"_onClick"]=function(ge){E.fontFamilySelectList_onClick(ge,l),E.selectToggle(ge.target,l),l._selection.editRange&&l._selection.editRange.collapsed?E.setOriginEditSelection(l):E.modifySelectedSingleElement(l,E.getObjectNoteCss(l))},l._elementEvents[k+"_onAfterClick"]=function(ge){},ie.addEventListener("click",function(ge){l._cssEvents.target_onBeforeClick(ge)&&ge.target.classList.contains(P(l._noteName))&&(j.events.cssEvents.target_onClick(ge),l._cssEvents.target_onAfterClick(ge)),l._elementEvents[k+"_onBeforeClick"](ge)&&(j.events.elementEvents[l._id+"_"+k+"_onClick"](ge),l._elementEvents[k+"_onAfterClick"](ge),ge.stopImmediatePropagation())}),E.addMouseoverEvent(ie,l),E.addMouseoutEvent(ie,l),E.addTouchstartEvent(ie,l),E.addTouchendEvent(ie,l),ie},E.addClickEvent=function(s,l,k){l==="textarea"?s.addEventListener("click",function($){k._elementEvents[l+"_onBeforeClick"]($)&&(j.events.elementEvents[l+"_onClick"]($),k._elementEvents[l+"_onAfterClick"]($),$.stopImmediatePropagation())}):s.addEventListener("click",function($){k._cssEvents.target_onBeforeClick($)&&$.target.classList.contains(P(k._noteName))&&(j.events.cssEvents.target_onClick($),k._cssEvents.target_onAfterClick($)),k._elementEvents[l+"_onBeforeClick"]($)&&(j.events.elementEvents[l+"_onClick"]($),k._elementEvents[l+"_onAfterClick"]($),$.stopImmediatePropagation())})},E.addMouseoverEvent=function(s,l){s.addEventListener("mouseover",function(k){l._cssEvents.target_onBeforeMouseover(k)&&k.target.classList.contains(L(l._noteName))&&(j.events.cssEvents.target_onMouseover(k),l._cssEvents.target_onAfterMouseover(k),k.stopImmediatePropagation())})},E.addMouseoutEvent=function(s,l){s.addEventListener("mouseout",function(k){l._cssEvents.target_onBeforeMouseout(k)&&k.target.classList.contains(L(l._noteName))&&(j.events.cssEvents.target_onMouseout(k),l._cssEvents.target_onAfterMouseout(k),k.stopImmediatePropagation())})},E.addTouchstartEvent=function(s,l){s.addEventListener("touchstart",function(k){l._cssEvents.target_onBeforeTouchstart(k)&&k.target.classList.contains(L(l._noteName))&&(j.events.cssEvents.target_onTouchstart(k),l._cssEvents.target_onAfterTouchstart(k),k.stopImmediatePropagation())})},E.addTouchendEvent=function(s,l){s.addEventListener("touchend",function(k){l._cssEvents.target_onBeforeTouchend(k)&&k.target.classList.contains(L(l._noteName))&&(j.events.cssEvents.target_onTouchend(k),l._cssEvents.target_onAfterTouchend(k),k.stopImmediatePropagation())})}}(Xe,Ut),function(j,E){E.onEventDisable=function(s,l){var k;k=l==="resize"?s.variables.resizeInterval:s.variables.inputInterval,s.variables.canEvent=!1,setTimeout(function(){s.variables.canEvent=!0},k)},E.replaceDifferentBetweenElements=function(s,l,k){var $,J,ie,ge,Ce=function(He,Le,Ke){if(!(Le.tagName!==(He.variables.noteName+"-textarea").toUpperCase()&&Ke.tagName!==(He.variables.noteName+"-textarea").toUpperCase()&&He.consts.NOT_SINGLE_TAG.indexOf(Le.tagName)>=0&&He.consts.NOT_SINGLE_TAG.indexOf(Ke.tagName)>=0)||Le.nodeType===Ke.nodeType&&Le.tagName===Ke.tagName&&E.compareAttributesBetweenEl(Le,Ke)&&E.compareStylesBetweenEl(Le,Ke))if(!(Le.tagName!==(He.variables.noteName+"-textarea").toUpperCase()&&Ke.tagName!==(He.variables.noteName+"-textarea").toUpperCase()&&He.consts.NOT_SINGLE_TAG.indexOf(Le.tagName)<0&&He.consts.NOT_SINGLE_TAG.indexOf(Ke.tagName)<0)||Le.nodeType===Ke.nodeType&&Le.tagName===Ke.tagName&&Le.textContent===Ke.textContent&&E.compareAttributesBetweenEl(Le,Ke)&&E.compareStylesBetweenEl(Le,Ke))for(var Ze=Array.prototype.slice.call(Le.childNodes),et=Array.prototype.slice.call(Ke.childNodes),Ve=Math.max(Ze.length,et.length),Mt=0;Mt<Ve;Mt++){var Rt=Ze[Mt],xt=et[Mt];!Rt&&xt?(ie=xt.cloneNode(!0),Le.appendChild(ie),$||($=ie),J=ie):Rt&&!xt?Le.removeChild(Rt):Ce(He,Rt,xt)}else ie=Ke.cloneNode(!0),Le.parentNode.replaceChild(ie,Le),$||($=ie),J=ie;else ie=Ke.cloneNode(!0),Le.parentNode.replaceChild(ie,Le),$||($=ie),J=ie};Ce(s,l,k),$&&(J||(J=$),ge=J instanceof Element?J.childNodes.length:J.nodeType===3?J.textContent.length:0,E.setNewSelection($,0,J,ge))},E.compareAttributesBetweenEl=function(s,l){var k=E.getAttributesObjectFromElement(s),$=E.getAttributesObjectFromElement(l);return xe(k,$)},E.compareStylesBetweenEl=function(s,l){var k=s.cssText,$=l.cssText;return xe(ve(k),ve($))},E.getAttributesObjectFromElement=function(s){var l=new Object;if(!s.attributes)return l;for(var k=0;k<s.attributes.length;k++)l[s.attributes[k].nodeName]=s.attributes[k].nodeValue;return l},E.getSpecialTag=function(s,l){for(var k=s,$=k.tagName;k&&j.consts.UNIT_TAG.indexOf($)<0;){if(j.consts.SPECIAL_TAG.indexOf($)>=0)return $;if(!(k=k.parentNode))break;$=k.tagName}return"SPAN"},E.getParentUnitTagElemnt=function(s,l){for(var k=s;k&&!(j.consts.UNIT_TAG.indexOf(k.tagName)>=0);){if(j.consts.DOUBLE_TAG.indexOf(k.tagName)>=0){k=k.lastElementChild;break}if(k.tagName===(l._noteName+"-textarea").toUpperCase())return null;k=k.parentNode}return k},E.getParentTagName=function(s,l){var k="span";return s&&s.parentNode&&s.parentNode.tagName?j.consts.UNIT_TAG.indexOf(s.parentNode.tagName)>=0||j.consts.AUTO_MODIFY_TAG.indexOf(s.parentNode.tagName)>=0?k:s.parentNode.tagName:k},E.getObjectEditElementAttributes=function(s,l){for(var k=E.getAttributesObjectFromElement(s),$=function(J){if(J.getAttribute)for(var ie=E.getAttributesObjectFromElement(J),ge=Object.keys(ie),Ce=0;Ce<ge.length;Ce++)ie[ge[Ce]]&&ge[Ce]!=="style"&&!k[ge[Ce]]&&(k[ge[Ce]]=ie[ge[Ce]])};s&&!(j.consts.UNIT_TAG.indexOf(s.tagName)>=0);)$(s),s=s.parentNode;return k},E.getObjectEditElementCss=function(s,l){for(var k=ve(document.contains(s)&&s.getAttribute?s.getAttribute("style"):""),$=function(J){if(J.getAttribute)for(var ie=ve(J.getAttribute("style")),ge=Object.keys(ie),Ce=0;Ce<ge.length;Ce++)k[ge[Ce]]||(k[ge[Ce]]=ie[ge[Ce]])};s&&!(j.consts.UNIT_TAG.indexOf(s.tagName)>=0);){switch(s.tagName){case"B":case"STRONG":k["font-weight"]="bold";break;case"U":k["text-decoration"]="underline";break;case"I":k["font-style"]="italic"}$(s),s=s.parentNode}return k},E.getEditElementTag=function(s){for(var l="",k="",$=0;$<s._selection.editDragUnitElement.length;$++){if(k=s._selection.editDragUnitElement[$].tagName==="LI"?s._selection.editDragUnitElement[$].parentNode.tagName:s._selection.editDragUnitElement[$].tagName,l&&l!==k)return"";l=k}return l},E.getPreviousElementsUntilNotTag=function(s,l,k){var $=[],J=s,ie=E.getAttributesObjectFromElement(s);for($.push(J);J;){for(;J.previousSibling;){if((J=J.previousSibling).tagName&&k.DOUBLE_TAG.indexOf(J.tagName)>0)for(;J.lastChild;)J=J.lastChild;else if(J.tagName&&k.UNIT_TAG.indexOf(J.tagName)>0)for(;J.lastChild;)J=J.lastChild;if(J.nodeType===3&&(J=J.parentNode),k.UNIT_TAG.indexOf(J.tagName)>0||!J.tagName||J.tagName!==l.toUpperCase()||!xe(ie,E.getAttributesObjectFromElement(J)))return $;$.push(J)}J=J.parentNode}return $},E.getNextElementsUntilNotTag=function(s,l,k){var $=[],J=s,ie=E.getAttributesObjectFromElement(s);for($.push(J);J;){for(;J.nextSibling;){if((J=J.nextSibling).tagName&&k.DOUBLE_TAG.indexOf(J.tagName)>0)for(;J.firstChild;)J=J.firstChild;else if(J.tagName&&k.UNIT_TAG.indexOf(J.tagName)>0)for(;J.firstChild;)J=J.firstChild;if(J.nodeType===3&&(J=J.parentNode),k.UNIT_TAG.indexOf(J.tagName)>0||!J.tagName||J.tagName!==l.toUpperCase()||!xe(ie,E.getAttributesObjectFromElement(J)))return $;$.push(J)}J=J.parentNode}return $},E.setTagToggle=function(s,l){s._status.ulToggle=l==="UL",s._status.olToggle=l==="OL"},E.initToggleButtonVariables=function(s){s._status.boldToggle=!1,s._status.underlineToggle=!1,s._status.italicToggle=!1,s._status.ulToggle=!1,s._status.olToggle=!1,E.button_onToggle(s._elements.boldButton,s._status.boldToggle),E.button_onToggle(s._elements.underlineButton,s._status.underlineToggle),E.button_onToggle(s._elements.italicButton,s._status.italicToggle),E.button_onToggle(s._elements.ulButton,s._status.ulToggle),E.button_onToggle(s._elements.olButton,s._status.olToggle)},E.isInNote=function(s){for(;s;){if(s&&s instanceof Element&&s.hasAttribute("data-vanillanote"))return!0;s=s.parentNode}return!1},E.getElementReplaceTag=function(s,l){for(var k,$,J=document.createElement(l),ie=s.childNodes;ie[0];)ie[0].getAttribute&&(k=ve(ie[0].getAttribute("style")),J&&J.tagName.substring(0,1)==="H"&&(delete k["font-size"],delete k["letter-spacing"],delete k["line-height"]),$=Ee(k)),$&&ie[0].setAttribute&&ie[0].setAttribute("style",$),J.append(ie[0]);return Me(J,E.getAttributesObjectFromElement(s))},E.removeDoubleTag=function(s,l){if(!(j.consts.DOUBLE_TAG.indexOf(l.tagName)<0)){for(var k,$=l.childNodes,J=0;J<$.length;J++){k=E.getElementReplaceTag($[J],"P"),l.insertAdjacentElement("beforebegin",k);for(var ie=0;ie<s._selection.editDragUnitElement.length;ie++)if(s._selection.editDragUnitElement[ie]===$[J]){s._selection.editDragUnitElement[ie]=k;break}}l.remove()}},E.getElement=function(s,l,k,$,J){s=s.replace(/<br\s*\/?>/gm,`
51
51
  `),(!l||j.consts.UNIT_TAG.indexOf(l)>=0||j.consts.AUTO_MODIFY_TAG.indexOf(l)>=0)&&(l="span");var ie=document.createElement(l);return ie.innerText=s,$&&(ie=Me(ie,$)),k&&ie.setAttribute("style",k),ie},E.setEditNodeAndElement=function(s,l,k){var $=!1;return s._selection.editStartNode===k&&(s._selection.editStartNode=l,$=!0),s._selection.editEndNode===k&&(s._selection.editEndNode=l,$=!0),s._selection.editStartElement===k&&(s._selection.editStartElement=l,$=!0),s._selection.editEndElement===k&&(s._selection.editEndElement=l,$=!0),s._selection.editStartUnitElement===k&&(s._selection.editStartUnitElement=l,$=!0),s._selection.editEndUnitElement===k&&(s._selection.editEndUnitElement=l,$=!0),$},E.removeEmptyElment=function(s,l){for(var k=s.querySelectorAll("*"),$=k.length-1;$>=0;$--)!k[$].hasChildNodes()&&j.consts.EMPTY_ABLE_TAG.indexOf(k[$].tagName)<0&&k[$].remove()},E.doEditUnitCheck=function(s){j.events.documentEvents.noteObserver.disconnect(),function(l){for(var k=l._elements.textarea,$=k.childNodes,J=document.createElement("P"),ie=[],ge=!0,Ce=0;Ce<$.length;Ce++)j.consts.UNIT_TAG.indexOf($[Ce].tagName)<0&&j.consts.DOUBLE_TAG.indexOf($[Ce].tagName)<0?ge?(k.insertBefore(J,$[Ce]),ge=!1):(J.append($[Ce].cloneNode(!0)),ie.push($[Ce])):(J=document.createElement("P"),ge=!0);for(var He=0;He<ie.length;He++)ie[He].remove()}(s),E.connectObserver(j)},E.connectObserver=function(s){Object.keys(s.vanillanoteElements).forEach(function(l){s.events.documentEvents.noteObserver.observe(s.vanillanoteElements[l]._elements.textarea,s.variables.observerOptions)})},E.isElementInParentBounds=function(s,l){if(s.offsetParent===null)return!1;var k=s.getBoundingClientRect();if(l.offsetParent===null)return!1;var $=l.getBoundingClientRect(),J=$.top+window.pageYOffset,ie=$.bottom+window.pageYOffset,ge=k.top+window.pageYOffset,Ce=k.bottom+window.pageYOffset;return J>=ge&&ie<=Ce},E.validCheckAttLink=function(s){return s._elements.attLinkText.value?s._elements.attLinkHref.value?(s._elements.attLinkValidCheckbox.checked=!0,s._elements.attLinkValidCheckText.style.color=De(s._colors.color8),void(s._elements.attLinkValidCheckText.textContent=j.languageSet[s._attributes.language].thanks)):(s._elements.attLinkValidCheckbox.checked=!1,s._elements.attLinkValidCheckText.style.color=De(s._colors.color9),void(s._elements.attLinkValidCheckText.textContent=j.languageSet[s._attributes.language].attLinkInLinkTooltip)):(s._elements.attLinkValidCheckbox.checked=!1,s._elements.attLinkValidCheckText.style.color=De(s._colors.color9),void(s._elements.attLinkValidCheckText.textContent=j.languageSet[s._attributes.language].attLinkInTextTooltip))},E.validCheckAttVideo=function(s){if(!s._elements.attVideoEmbedId.value)return s._elements.attVideoValidCheckbox.checked=!1,s._elements.attVideoValidCheckText.style.color=De(s._colors.color9),void(s._elements.attVideoValidCheckText.textContent=j.languageSet[s._attributes.language].attVideoEmbedIdTooltip);s._elements.attVideoValidCheckbox.checked=!0,s._elements.attVideoValidCheckText.style.color=De(s._colors.color8),s._elements.attVideoValidCheckText.textContent=j.languageSet[s._attributes.language].thanks},E.initAttLink=function(s){s._elements.attLinkText.value="",s._elements.attLinkHref.value="",s._elements.attLinkIsBlankCheckbox.checked=!1},E.initAttFile=function(s){delete s._attTempFiles,s._attTempFiles={},s._elements.attFileUploadDiv.replaceChildren(),s._elements.attFileUploadDiv.textContent=j.languageSet[s._attributes.language].attFileUploadDiv,s._elements.attFileUploadDiv.style.lineHeight=130*s._attributes.sizeRate+"px",s._elements.attFileUpload.value=""},E.initAttImage=function(s){delete s._attTempImages,s._attTempImages={},s._elements.attImageUploadButtonAndView.replaceChildren(),s._elements.attImageUploadButtonAndView.textContent=j.languageSet[s._attributes.language].attImageUploadButtonAndView,s._elements.attImageUpload.value="",s._elements.attImageURL.value="",s._elements.attImageURL.removeAttribute("readonly")},E.getObjectNoteCss=function(s){var l=new Object;return s._status.boldToggle&&(l["font-weight"]="bold"),s._status.underlineToggle&&(l["text-decoration"]="underline"),s._status.italicToggle&&(l["font-style"]="italic"),l["font-size"]=s._status.fontSize+"px",l["line-height"]=s._status.lineHeight+"px",s._status.letterSpacing&&re(s._status.letterSpacing)&&(l["letter-spacing"]=s._status.letterSpacing+"px"),s._status.fontFamily&&(l["font-family"]=s._status.fontFamily),De(s._colors.color12)===s._status.colorTextRGB&&s._status.colorTextOpacity==="1"||(l.color=Te(s._status.colorTextRGB,s._status.colorTextOpacity)),De(s._colors.color13)===s._status.colorBackRGB&&s._status.colorBackOpacity==="0"||(l["background-color"]=Te(s._status.colorBackRGB,s._status.colorBackOpacity)),l},E.showAlert=function(s,l){l(s)&&alert(s)},E.recodeNote=function(s){s._recodes.recodeNotes.length>=s._recodes.recodeLimit?(s._recodes.recodeNotes.shift(),s._recodes.recodeNotes.push(s._elements.textarea.cloneNode(!0))):(s._recodes.recodeCount=s._recodes.recodeCount+1,s._recodes.recodeCount<s._recodes.recodeNotes.length&&s._recodes.recodeNotes.splice(s._recodes.recodeCount),s._recodes.recodeNotes.push(s._elements.textarea.cloneNode(!0)))}}(Xe,Ut),function(j,E){E.closeAllTooltip=function(s){s._elements.attLinkTooltip.style.opacity="0",s._elements.attLinkTooltip.style.height="0",s._elements.attImageAndVideoTooltip.style.opacity="0",s._elements.attImageAndVideoTooltip.style.height="0"},E.setVariableButtonTogle=function(s,l){l["font-weight"]==="bold"?s._status.boldToggle=!0:s._status.boldToggle=!1,l["text-decoration"]==="underline"||l["text-decoration-line"]==="underline"?s._status.underlineToggle=!0:s._status.underlineToggle=!1,l["font-style"]==="italic"?s._status.italicToggle=!0:s._status.italicToggle=!1,l.color?(s._status.colorTextRGB=We(l.color),s._status.colorTextOpacity=nt(l.color),s._status.colorTextRGB?s._status.colorTextOpacity||(l.opacity?s._status.colorTextOpacity=l.opacity:s._status.colorTextOpacity="1"):(s._status.colorTextRGB=De(s._colors.color12),s._status.colorTextOpacity="1")):(s._status.colorTextRGB=De(s._colors.color12),s._status.colorTextOpacity="1"),l["background-color"]?(s._status.colorBackRGB=We(l["background-color"]),s._status.colorBackOpacity=nt(l["background-color"]),s._status.colorTextRGB?s._status.colorBackOpacity||(l.opacity?s._status.colorBackOpacity=l.opacity:s._status.colorBackOpacity="0"):(s._status.colorTextRGB=De(s._colors.color12),s._status.colorTextOpacity="1")):(s._status.colorBackRGB=De(s._colors.color13),s._status.colorBackOpacity="0")},E.button_onToggle=function(s,l){var k=a(s);k&&(s.classList.contains(C(k._noteName))&&(s=s.parentNode),l?s.classList.add(c(k._noteName,k._id,"on_button_on")):s.classList.remove(c(k._noteName,k._id,"on_button_on")))},E.allButtonToggle=function(s){E.button_onToggle(s._elements.boldButton,s._status.boldToggle),E.button_onToggle(s._elements.underlineButton,s._status.underlineToggle),E.button_onToggle(s._elements.italicButton,s._status.italicToggle),E.button_onToggle(s._elements.ulButton,s._status.ulToggle),E.button_onToggle(s._elements.olButton,s._status.olToggle),s._elements.colorTextSelect.querySelector("."+C(s._noteName)).style.color=Te(s._status.colorTextRGB,s._status.colorTextOpacity==="0"?"1":s._status.colorTextOpacity),s._elements.colorBackSelect.querySelector("."+C(s._noteName)).style.color=Te(s._status.colorBackRGB,s._status.colorBackOpacity==="0"?"1":s._status.colorBackOpacity)},E.selectToggle=function(s,l){var k=l||a(s);if(k){s.classList.contains(C(k._noteName))&&(s=s.parentNode);for(var $=s,J=!1;$&&$.getAttribute("type")!=="select";)J=!0,$=$.parentNode;if($.getAttribute("data-note-id")){var ie,ge=$.getAttribute("id");if(ge.includes("paragraphStyleSelect"))ie=k._elements.paragraphStyleSelectBox;else if(ge.includes("textAlignSelect"))ie=k._elements.textAlignSelectBox;else if(ge.includes("fontFamilySelect"))ie=k._elements.fontFamilySelectBox;else if(ge.includes("colorTextSelect")){if(J)return;ie=k._elements.colorTextSelectBox}else if(ge.includes("colorBackSelect")){if(J)return;ie=k._elements.colorBackSelectBox}var Ce=c(k._noteName,k._id,"on_display_block"),He=c(k._noteName,k._id,"on_display_none"),Le=ie.classList.contains(Ce);if(E.closeAllSelectBoxes(k),Le?(ie.classList.remove(Ce),ie.classList.add(He)):(ie.classList.remove(He),ie.classList.add(Ce)),function(Ve){if(Ve.offsetParent===null)return!1;var Mt=Ve.getBoundingClientRect();return window.innerWidth/2<Mt.left}($)){if(ie.style.removeProperty("left"),ie.style.right="0%",ie.offsetParent===null)return;var Ke=ie.getBoundingClientRect();if(Ke.top===0||k._elements.tool.offsetParent===null)return;k._elements.tool.getBoundingClientRect().left>Ke.left&&(ie.style.right=Ke.left-1+"px")}else{if(ie.style.removeProperty("right"),ie.style.left="0%",ie.offsetParent===null)return;var Ze=ie.getBoundingClientRect();if(Ze.top===0||k._elements.tool.offsetParent===null)return;var et=k._elements.tool.getBoundingClientRect();et.right<Ze.right&&(ie.style.left=et.right-(Ze.right+1)+"px")}}}},E.closeAllSelectBoxes=function(s){var l=c(s._noteName,s._id,"on_display_block"),k=c(s._noteName,s._id,"on_display_none");s._elements.paragraphStyleSelectBox.classList.remove(l),s._elements.paragraphStyleSelectBox.classList.add(k),s._elements.textAlignSelectBox.classList.remove(l),s._elements.textAlignSelectBox.classList.add(k),s._elements.fontFamilySelectBox.classList.remove(l),s._elements.fontFamilySelectBox.classList.add(k),s._elements.colorTextSelectBox.classList.remove(l),s._elements.colorTextSelectBox.classList.add(k),s._elements.colorBackSelectBox.classList.remove(l),s._elements.colorBackSelectBox.classList.add(k)},E.fontFamilySelectList_onClick=function(s,l){if(s.target){var k=s.target,$=l||a(s.target);if($){var J=k.getAttribute("data-font-family");ve($._elements.fontFamilySelect.getAttribute("style"))["font-family"]=J,$._status.fontFamily=J,$._elements.fontFamilySelect.firstChild.textContent=J.length>12?J.substr(0,12)+"...":J,$._elements.fontFamilySelect.style.fontFamily=J}}},E.setEditStyleTag=function(s){if(s._selection.setEditStyleTagToggle>0)s._selection.setEditStyleTagToggle--;else{for(var l=s._selection.editStartUnitElement,k=l;l;){if(l.tagName===(s._noteName+"-textarea").toUpperCase()){k=l;break}l=l.parentNode}if(k){var $=E.getObjectEditElementCss(s._selection.editStartElement,s);if(s._selection.editStartNode!==s._selection.editEndNode)for(var J=$,ie=!1,ge=!1,Ce=function(Ke){for(var Ze=0;Ze<Ke.childNodes.length&&!ge;Ze++)s._selection.editStartNode===Ke.childNodes[Ze]&&(ie=!0),ie&&Ke.childNodes[Ze].nodeType===3&&Ke.childNodes[Ze].textContent&&(J=E.getObjectEditElementCss(Ke.childNodes[Ze],s)),xe($,J)||($={},ge=!0),s._selection.editEndNode===Ke.childNodes[Ze]&&(ge=!0),Ke.childNodes[Ze].childNodes&&Ce(Ke.childNodes[Ze])},He=0;He<s._selection.editDragUnitElement.length;He++)Ce(s._selection.editDragUnitElement[He]);E.setVariableButtonTogle(s,$);var Le=E.getEditElementTag(s);E.setTagToggle(s,Le),E.allButtonToggle(s)}else Object.keys(j.vanillanoteElements).forEach(function(Ke){E.initToggleButtonVariables(j.vanillanoteElements[Ke])})}},E.setElementScroll=function(s,l,k){if(s&&l){l.nodeType===3&&(l=l.parentNode);var $=null,J=l.offsetTop-Math.round(k/2)+Math.round(l.offsetHeight/2),ie=s.scrollTop,ge=J-ie;window.requestAnimationFrame(function Ce(He){$||($=He);var Le=He-$,Ke=Math.min(Le/500,1);s.scrollTop=ie+ge*Ke,Le<500&&window.requestAnimationFrame(Ce)})}},E.getCheckSelectBoxesOpened=function(s){var l=c(s._noteName,s._id,"on_display_block");return!!(s._elements.paragraphStyleSelectBox.classList.contains(l)||s._elements.textAlignSelectBox.classList.contains(l)||s._elements.fontFamilySelectBox.classList.contains(l)||s._elements.colorTextSelectBox.classList.contains(l)||s._elements.colorBackSelectBox.classList.contains(l))},E.closeAllModal=function(s){var l=c(s._noteName,s._id,"on_display_block"),k=c(s._noteName,s._id,"on_display_none");s._elements.modalBack.classList.remove(l),s._elements.modalBack.classList.add(k),s._elements.attLinkModal.classList.remove(l),s._elements.attLinkModal.classList.add(k),s._elements.attFileModal.classList.remove(l),s._elements.attFileModal.classList.add(k),s._elements.attImageModal.classList.remove(l),s._elements.attImageModal.classList.add(k),s._elements.attVideoModal.classList.remove(l),s._elements.attVideoModal.classList.add(k),s._elements.helpModal.classList.remove(l),s._elements.helpModal.classList.add(k),E.initAttLink(s),E.initAttFile(s),E.initAttImage(s)},E.openAttLinkModal=function(s){E.doIncreaseTextareaHeight(j),E.closeAllModal(s),E.closeAllSelectBoxes(s),E.setAllModalSize(s);var l=c(s._noteName,s._id,"on_display_block"),k=c(s._noteName,s._id,"on_display_none");if(s._elements.modalBack.classList.remove(k),s._elements.modalBack.classList.add(l),s._elements.attLinkModal.classList.remove(k),s._elements.attLinkModal.classList.add(l),E.isValidSelection(s)){var $=s._elements.attLinkText,J=s._elements.attLinkHref;$.value=s._selection.editRange.toString(),J.value="",s._selection.editRange.collapsed?($.removeAttribute("readonly"),$.focus()):($.setAttribute("readonly","true"),J.focus()),E.validCheckAttLink(s)}else E.validCheckAttLink(s)},E.openPlaceholder=function(s){s._attributes.placeholderIsVisible&&s._elements.textarea.innerText.length<=1&&s._elements.textarea.textContent.length<1&&s._elements.textarea.childNodes.length<=1&&s._elements.textarea.childNodes[0]&&s._elements.textarea.childNodes[0].childNodes.length<=1&&s._elements.textarea.childNodes[0].childNodes[0]&&s._elements.textarea.childNodes[0].childNodes[0].tagName==="BR"&&(s._elements.placeholder.classList.remove(c(s._noteName,s._id,"on_display_none")),s._elements.placeholder.classList.add(c(s._noteName,s._id,"on_display_block")))},E.closePlaceholder=function(s){s._attributes.placeholderIsVisible&&(s._elements.placeholder.classList.remove(c(s._noteName,s._id,"on_display_block")),s._elements.placeholder.classList.add(c(s._noteName,s._id,"on_display_none")))},E.setAllModalSize=function(s){s._elements.template.offsetParent!==null&&setTimeout(function(){s._elements.modalBack.style.width=s._elements.template.clientWidth+"px",s._elements.modalBack.style.height=s._elements.template.clientHeight+"px",s._elements.attLinkModal.style.width=.8*s._elements.textarea.clientWidth+"px",s._elements.attLinkModal.style.marginTop=.1*s._elements.template.clientHeight+"px",s._elements.attFileModal.style.width=.8*s._elements.textarea.clientWidth+"px",s._elements.attFileModal.style.marginTop=.1*s._elements.template.clientHeight+"px",s._elements.attImageModal.style.width=.8*s._elements.textarea.clientWidth+"px",s._elements.attImageModal.style.marginTop=.1*s._elements.template.clientHeight+"px",s._elements.attVideoModal.style.width=.8*s._elements.textarea.clientWidth+"px",s._elements.attVideoModal.style.marginTop=.1*s._elements.template.clientHeight+"px",s._elements.helpModal.style.width=.8*s._elements.textarea.clientWidth+"px",s._elements.helpModal.style.marginTop=.1*s._elements.template.clientHeight+"px"},500)},E.setPlaceholderSize=function(s){setTimeout(function(){s._attributes.placeholderIsVisible&&(E.closePlaceholder(s),s._elements.textarea.offsetParent!==null&&(s._elements.placeholder.style.top=s._elements.textarea.offsetTop+s._attributes.placeholderAddTop+"px",s._elements.placeholder.style.left=s._elements.textarea.offsetLeft+s._attributes.placeholderAddLeft+"px",s._elements.placeholder.style.width=s._attributes.placeholderWidth?s._attributes.placeholderWidth:s._elements.textarea.clientWidth+"px",E.openPlaceholder(s)))},100)},E.setAllToolTipPosition=function(s){s._attributes.toolPosition===r.bottom&&(s._elements.attLinkTooltip.style.bottom=s._elements.tool.style.height,s._elements.attImageAndVideoTooltip.style.bottom=s._elements.tool.style.height)},E.appearAttLinkToolTip=function(s){var l=s._selection.editStartNode.parentElement,k=l.getAttribute("href"),$=l.getAttribute("download"),J=c(s._noteName,s._id,"on_display_inline_block"),ie=c(s._noteName,s._id,"on_display_none");s._elements.attLinkTooltipEditButton.classList.remove(ie),s._elements.attLinkTooltipUnlinkButton.classList.remove(ie),s._elements.attLinkTooltipEditButton.classList.add(J),s._elements.attLinkTooltipUnlinkButton.classList.add(J),k&&(s._elements.attLinkTooltipHref.setAttribute("href",k),s._elements.attLinkTooltipHref.textContent=k.length>25?k.substr(0,25)+"...":k),$&&(s._elements.attLinkTooltipHref.setAttribute("download",$),s._elements.attLinkTooltipHref.textContent="download : "+$,s._elements.attLinkTooltipEditButton.classList.remove(J),s._elements.attLinkTooltipUnlinkButton.classList.remove(J),s._elements.attLinkTooltipEditButton.classList.add(ie),s._elements.attLinkTooltipUnlinkButton.classList.add(ie)),s._elements.attLinkTooltip.style.opacity="0.95",s._elements.attLinkTooltip.style.height=54*s._attributes.sizeRate*.8+"px",s._elements.attLinkTooltip.style.lineHeight=54*s._attributes.sizeRate*.8+"px"},E.appearAttImageAndVideoTooltip=function(s){var l=s._selection.editStartNode,k=ve(E.getAttributesObjectFromElement(l).style);switch(k.width&&(s._elements.attImageAndVideoTooltipWidthInput.value=ye(k.width)),k.float){case"left":s._elements.attImageAndVideoTooltipFloatRadioLeft.checked=!0;break;case"right":s._elements.attImageAndVideoTooltipFloatRadioRight.checked=!0;break;default:s._elements.attImageAndVideoTooltipFloatRadioNone.checked=!0}if(s._elements.attImageAndVideoTooltipShapeRadioSquare.checked=!0,k["border-radius"]){var $=ye(k["border-radius"]);$>0?s._elements.attImageAndVideoTooltipShapeRadioRadius.checked=!0:$>=50&&(s._elements.attImageAndVideoTooltipShapeRadioCircle.checked=!0)}s._elements.attImageAndVideoTooltip.style.opacity="0.9",s._elements.attImageAndVideoTooltip.style.height=54*s._attributes.sizeRate*.8*2+"px",s._elements.attImageAndVideoTooltip.style.lineHeight=54*s._attributes.sizeRate*.7+"px"},E.setImageAndVideoWidth=function(s){s.value||(s.value=100);var l=s.value,k=a(s);if(k){var $=k._selection.editStartNode;$.tagName!=="IMG"&&$.tagName!=="IFRAME"||(l<10&&(l=10),l>100&&(l=100),s.value=l,$.style.width=l+"%",k._selection.editStartNode.parentNode.replaceChild($,k._selection.editStartNode),k._selection.editStartNode=$)}},E.setAllToolSize=function(s){for(var l=s._elements.tool.childNodes,k=c(s._noteName,s._id,"on_display_inline_block"),$=c(s._noteName,s._id,"on_display_none"),J=l.length-1;J>=0;J--)l[J].classList.add(k),l[J].classList.remove($);if(s._elements.tool.offsetParent!==null)if(s._status.toolToggle){s._elements.tool.style.height=s._attributes.toolDefaultLine*(52*s._attributes.sizeRate)+"px";for(var ie=l.length-1;ie>=0;ie--)E.isElementInParentBounds(s._elements.tool,l[ie])||(l[ie].classList.remove(k),l[ie].classList.add($))}else{for(var ge,Ce,He,Le=l.length-1;Le>=0;Le--)if(l[Le].offsetParent!==null){Ce=l[Le];break}if(s._elements.tool.offsetParent===null)return;ge=window.pageYOffset+s._elements.tool.getBoundingClientRect().top,He=window.pageYOffset+Ce.getBoundingClientRect().top-ge+52*s._attributes.sizeRate,s._elements.tool.style.height=He+"px"}},E.doDecreaseTextareaHeight=function(s){s._attributes.isNoteByMobile&&(s._elements.textarea.scrollIntoView({behavior:"smooth",block:"start"}),setTimeout(function(){(s._attributes.textareaOriginHeight.replace(/[-+]?[0-9]*\.?[0-9]+/g,"")||null)==="px"&&j.variables.mobileKeyboardExceptHeight<ye(s._attributes.textareaOriginHeight)&&j.variables.mobileKeyboardExceptHeight<s._elements.textarea.offsetHeight&&(s._elements.textarea.style.height=j.variables.mobileKeyboardExceptHeight+"px")},100))},E.doIncreaseTextareaHeight=function(s){for(var l=Object.keys(s.vanillanoteElements),k=0;k<l.length;k++){var $=s.vanillanoteElements[l[k]];$._attributes.isNoteByMobile&&($._elements.textarea.style.height=$._attributes.textareaOriginHeight)}},E.modifyTextareaScroll=function(s,l){l._attributes.isNoteByMobile&&(j.variables.preventChangeScroll>0?j.variables.preventChangeScroll--:j.variables.isSelectionProgress||(j.variables.isSelectionProgress=!0,setTimeout(function(){if(j.variables.isSelectionProgress=!1,E.isValidSelection(l)){var k=ee(l._selection.editDragUnitElement.length/2)?l._selection.editDragUnitElement.length/2-1:Math.floor(l._selection.editDragUnitElement.length/2);l._selection.editDragUnitElement[l._selection.editDragUnitElement.length-1].offsetTop-l._selection.editDragUnitElement[0].offsetTop+l._selection.editDragUnitElement[l._selection.editDragUnitElement.length-1].offsetHeight>s.offsetHeight-30||E.getCheckSelectBoxesOpened(l)||(l._selection.editRange.collapsed?E.setElementScroll(s,l._selection.editStartElement,j.variables.mobileKeyboardExceptHeight):E.setElementScroll(s,l._selection.editDragUnitElement[k],j.variables.mobileKeyboardExceptHeight))}},50)))},E.initTextarea=function(s){for(;s.firstChild;)s.removeChild(s.firstChild);var l=document.createElement("P"),k=document.createElement("BR");l.appendChild(k),s.appendChild(l),E.setNewSelection(l,0,l,0)}}(Xe,Ut),function(j,E){E.setNewSelection=function(s,l,k,$){if(document.contains(s)&&document.contains(k)){var J=document.createRange(),ie=window.getSelection();return J.setStart(s,l),J.setEnd(k,$),ie.removeAllRanges(),ie.addRange(J),ie}},E.handleSpecialTagSelection=function(s){if(E.closeAllTooltip(s),s._selection.editRange.collapsed)switch(E.getSpecialTag(s._selection.editStartNode,s)){case"A":E.appearAttLinkToolTip(s);break;case"IMG":case"IFRAME":E.appearAttImageAndVideoTooltip(s);break;default:return}},E.setOriginEditSelection=function(s){if(s._selection.editRange){s._selection.setEditStyleTagToggle=2;var l=window.getSelection();l.removeAllRanges(),l.addRange(s._selection.editRange)}},E.setEditSelection=function(s,l){if(l.rangeCount<1||!function(ie){var ge=window.getSelection();if(!ge||ge.rangeCount<1)return!1;for(var Ce=ge.getRangeAt(0).startContainer.parentNode,He=!1;Ce;){if(Ce.tagName===(ie+"-textarea").toUpperCase()){He=!0;break}Ce=Ce.parentNode}return He}(s._noteName))return!1;if(s._selection.editSelection=l,s._selection.editRange=s._selection.editSelection.getRangeAt(0),s._selection.startOffset=s._selection.editRange.startOffset,s._selection.endOffset=s._selection.editRange.endOffset,s._selection.editStartNode=s._selection.editRange.startContainer,s._selection.editEndNode=s._selection.editRange.endContainer,s._selection.editStartNode instanceof Element){for(;s._selection.editStartNode instanceof Element&&s._selection.editStartNode.firstChild&&s._selection.editStartNode.firstChild.tagName!=="BR"&&(s._selection.editStartNode=s._selection.editStartNode.firstChild,s._selection.editStartNode.nodeType!==3););s._selection.startOffset=0}if(s._selection.editEndNode instanceof Element){for(;s._selection.editEndNode instanceof Element&&s._selection.editEndNode.firstChild&&s._selection.editEndNode.firstChild.tagName!=="BR"&&(s._selection.editEndNode=s._selection.editEndNode.firstChild,s._selection.editEndNode.nodeType!==3););s._selection.endOffset=0}if(s._selection.editStartElement=s._selection.editRange.startContainer instanceof Element?s._selection.editRange.startContainer:s._selection.editRange.startContainer.parentNode,s._selection.editEndElement=s._selection.editRange.endContainer instanceof Element?s._selection.editRange.endContainer:s._selection.editRange.endContainer.parentNode,j.consts.UNIT_TAG.indexOf(s._selection.editStartElement.tagName)>0)for(;j.consts.UNIT_TAG.indexOf(s._selection.editStartElement.tagName)>0;)s._selection.editStartElement=s._selection.editStartElement.firstChild;if(j.consts.UNIT_TAG.indexOf(s._selection.editEndElement.tagName)>0)for(;j.consts.UNIT_TAG.indexOf(s._selection.editEndElement.tagName)>0;)s._selection.editEndElement=s._selection.editEndElement.lastChild;s._selection.editStartElement instanceof Element&&s._selection.editStartElement.tagName==="BR"&&(s._selection.editStartElement=s._selection.editStartElement.parentNode),s._selection.editEndElement instanceof Element&&s._selection.editEndElement.tagName==="BR"&&(s._selection.editEndElement=s._selection.editEndElement.parentNode),s._selection.editStartElement.tagName===(s._noteName+"-textarea").toUpperCase()&&(s._selection.editStartElement=null),s._selection.editEndElement.tagName===(s._noteName+"-textarea").toUpperCase()&&(s._selection.editEndElement=null),s._selection.editStartUnitElement=E.getParentUnitTagElemnt(s._selection.editStartElement,s),s._selection.editEndUnitElement=E.getParentUnitTagElemnt(s._selection.editEndElement,s),s._selection.editDragUnitElement.splice(0,s._selection.editDragUnitElement.length);for(var k,$=E.modifySeletedElements(s),J=0;J<$.length;J++)k=E.getParentUnitTagElemnt($[J],s),s._selection.editDragUnitElement.includes(k)||s._selection.editDragUnitElement.push(k);return E.setEditStyleTag(s),E.handleSpecialTagSelection(s),!0},E.isValidSelection=function(s){return!!s._selection.editRange&&!!s._selection.editStartElement&&!!s._selection.editStartUnitElement},E.modifySeletedElements=function(s){var l=!1,k=s._selection.editStartNode,$=[];if(!s._selection.editStartUnitElement||!s._selection.editEndUnitElement)return $;for(var J=s._selection.editEndUnitElement.lastChild;J&&J.lastChild;)J=J.lastChild;for(var ie=function(ge){if(ge===J&&($.push(ge),l=!0),!l&&((j.consts.UNIT_TAG.indexOf(ge.tagName)>=0||j.consts.EMPTY_ABLE_TAG.indexOf(ge.tagName)>=0||ge.nodeType===3)&&$.push(ge),ge&&ge.childNodes&&ge.childNodes.length))for(var Ce=0;Ce<ge.childNodes.length;Ce++)ie(ge.childNodes[Ce])};k&&!l;)if(ie(k),k.nextSibling)k=k.nextSibling;else{for(;k&&!k.nextSibling;)k=k.parentNode;k&&(k=k.nextSibling)}return $},E.modifySelectedUnitElementTag=function(s,l){var k=l||a(s);if(k&&E.isValidSelection(k)){var $,J=s.getAttribute("data-tag-name");if(j.consts.DOUBLE_TAG.indexOf(J)>=0)for(var ie=document.createElement(J),ge=0;ge<k._selection.editDragUnitElement.length&&(k._selection.editDragUnitElement[ge].tagName==="LI"&&E.removeDoubleTag(k,k._selection.editDragUnitElement[ge].parentNode),J!=="UL"||!k._status.ulToggle)&&(J!=="OL"||!k._status.olToggle);ge++)ge===0&&k._selection.editDragUnitElement[0].insertAdjacentElement("beforebegin",ie),$=E.getElementReplaceTag(k._selection.editDragUnitElement[ge],"LI"),E.setEditNodeAndElement(k,$,k._selection.editDragUnitElement[ge]),k._selection.editDragUnitElement[ge].remove(),k._selection.editDragUnitElement[ge]=$,ie.append($);else for(var Ce=0;Ce<k._selection.editDragUnitElement.length;Ce++)k._selection.editDragUnitElement[Ce].tagName==="LI"&&E.removeDoubleTag(k,k._selection.editDragUnitElement[Ce].parentNode),$=E.getElementReplaceTag(k._selection.editDragUnitElement[Ce],J),E.setEditNodeAndElement(k,$,k._selection.editDragUnitElement[Ce]),k._selection.editDragUnitElement[Ce].replaceWith($),k._selection.editDragUnitElement[Ce]=$;var He=0,Le=k._selection.editEndElement?k._selection.editEndElement.textContent.length:0;k._selection.editStartElement===k._selection.editEndElement&&(He=Le),E.setNewSelection(k._selection.editStartNode,He,k._selection.editEndNode,Le)}},E.modifySelectedUnitElementStyle=function(s,l){var k=l||a(s);if(k&&E.isValidSelection(k)){for(var $,J,ie,ge,Ce=s.getAttribute("data-tag-style"),He=ve(Ce),Le=0;Le<k._selection.editDragUnitElement.length;Le++)$=k._selection.editDragUnitElement[Le].getAttribute("style"),ie=ve($),J=Ee(ke(ie,He)),(ge=k._selection.editDragUnitElement[Le].cloneNode(!0)).setAttribute("style",J),k._selection.editDragUnitElement[Le].parentNode.replaceChild(ge,k._selection.editDragUnitElement[Le]),k._selection.editDragUnitElement[Le]=ge;k._selection.editEndElement.childNodes&&k._selection.editEndElement.childNodes.length,E.setNewSelection(k._selection.editDragUnitElement[0],0,k._selection.editDragUnitElement[k._selection.editDragUnitElement.length-1],1)}},E.modifySelectedSingleElement=function(s,l,k,$){if(E.isValidSelection(s)){var J,ie,ge,Ce,He,Le,Ke,Ze,et;Ce=l?Ee(l):"",ge=k||"",He=$||null,Le=E.modifySeletedElements(s);for(var Ve=s._selection.editStartNode.textContent.slice(0,s._selection.startOffset),Mt=s._selection.editStartNode.textContent.slice(s._selection.startOffset,s._selection.editStartNode.textContent.length),Rt=s._selection.editEndNode.textContent.slice(0,s._selection.endOffset),xt=s._selection.editEndNode.textContent.slice(s._selection.endOffset,s._selection.editEndNode.textContent.length),Ht=function(g,p){g&&(p?p.insertBefore(g,null):s._selection.editStartUnitElement.insertBefore(g,null))},v=!1,w=s._selection.editStartNode===s._selection.editEndNode,A=0;A<Le.length;A++)Le[A].nodeType===3?($||(He=E.getObjectEditElementAttributes(Le[A],s)),k||(ge=E.getSpecialTag(Le[A],s)),l||(Ce=Ee(E.getObjectEditElementCss(Le[A],s))),(J=E.getParentUnitTagElemnt(Le[A],s))&&J.tagName.substring(0,1)==="H"&&(delete(l=ve(Ce))["font-size"],delete l["letter-spacing"],delete l["line-height"],Ce=Ee(l)),Le[A]===s._selection.editStartNode?(w&&(Mt=Mt.slice(0,Mt.length-xt.length)),Ht(J=E.getElement(Ve,E.getParentTagName(s._selection.editStartNode,s),Ee(E.getObjectEditElementCss(s._selection.editStartNode,s)),E.getObjectEditElementAttributes(s._selection.editStartNode,s),s),ie),Ht(J=E.getElement(Mt,ge,Ce,He,s),ie),Ke=J.firstChild,w&&(Ze=J.firstChild,Ht(J=E.getElement(xt,E.getParentTagName(s._selection.editEndNode,s),Ee(E.getObjectEditElementCss(s._selection.editEndNode,s)),E.getObjectEditElementAttributes(s._selection.editEndNode,s),s),ie),v=!0),Le[A].remove()):w||Le[A]!==s._selection.editEndNode?(Ht(J=v?E.getElement(Le[A].textContent,E.getParentTagName(Le[A],s),Ee(E.getObjectEditElementCss(Le[A],s)),E.getObjectEditElementAttributes(Le[A],s),s):E.getElement(Le[A].textContent,ge,Ce,He,s),ie),Le[A].remove()):(Ht(J=E.getElement(Rt,ge,Ce,He,s),ie),Ze=J.firstChild,Ht(J=E.getElement(xt,E.getParentTagName(s._selection.editEndNode,s),Ee(E.getObjectEditElementCss(s._selection.editEndNode,s)),E.getObjectEditElementAttributes(s._selection.editEndNode,s),s),ie),v=!0,Le[A].remove())):j.consts.EMPTY_ABLE_TAG.indexOf(Le[A].tagName)>=0?(Ht(J=Le[A].cloneNode(),ie),Le[A].remove()):j.consts.UNIT_TAG.indexOf(Le[A].tagName)>=0&&(ie=Le[A]);for(var x=0;x<s._selection.editDragUnitElement.length;x++)E.removeEmptyElment(s._selection.editDragUnitElement[x],s);Ke||(Ke=s._selection.editStartUnitElement),Ze?et=Ze.textContent.length:(Ze=s._selection.editEndUnitElement,et=0),E.setNewSelection(Ke,0,Ze,et)}},E.textarea_onBeforeinputSpelling=function(s){var l=a(s.target);if(l&&j.variables.canEvent&&(E.onEventDisable(j,"input"),E.isValidSelection(l))){var k="",$=E.getObjectNoteCss(l),J=E.getObjectEditElementCss(l._selection.editStartElement,l);if(l._selection.editStartUnitElement.tagName.substring(0,1)==="H"?(delete $["font-size"],delete $["letter-spacing"],delete $["line-height"]):!(l._selection.editStartElement instanceof Element&&j.consts.UNIT_TAG.indexOf(l._selection.editStartElement.tagName)<0)||J["font-size"]&&J["line-height"]||(J=$,Me(l._selection.editStartElement,{style:Ee(J)})),!xe($,J)){k=Ee($);var ie=document.createElement("span");if(ie.setAttribute("class",l._noteName+"-point"),ie.appendChild(document.createTextNode("!")),l._selection.editRange.collapsed){l._selection.editRange.insertNode(ie);try{E.modifySelectedSingleElement(l,E.getObjectNoteCss(l))}catch{}var ge=document.getElementsByClassName(l._noteName+"-point"),Ce=ge[0];k?Ce.setAttribute("style",k):Ce.removeAttribute("style");for(var He=0;He<ge.length;He++)ge[He].removeAttribute("class");E.setNewSelection(Ce.firstChild,0,Ce.firstChild,Ce.firstChild.length)}else E.modifySelectedSingleElement(l,E.getObjectNoteCss(l))}}},E.textarea_onKeydownEnter=function(s){var l=a(s);if(l&&E.isValidSelection(l)&&!(l._selection.editStartUnitElement&&l._selection.editStartUnitElement.textContent||l._selection.editStartNode instanceof Element&&j.consts.EMPTY_ABLE_TAG.indexOf(l._selection.editStartNode.tagName)>=0&&l._selection.editStartNode.tagName!=="BR")){var k,$,J=l._selection.editStartUnitElement.tagName;k=document.createElement(J),$=document.createElement("BR"),k.appendChild($),k=Me(k,E.getAttributesObjectFromElement(l._selection.editStartUnitElement)),l._selection.editStartUnitElement.replaceWith(k),E.setNewSelection(k,0,k,0)}}}(Xe,Ut),Xe.variables.lastScreenHeight=typeof window<"u"&&window.visualViewport?window.visualViewport.height:null,Xe.getNote=function(j){return Xe.vanillanoteElements[j]?Xe.vanillanoteElements[j]:null};var f,h="".concat(Xe.variables.noteName,"_animation_styles-sheet");if(!document.getElementById(h)){var I=`
@@ -150,4 +150,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
150
150
  --hison-l-font-size: ${t.fontSizeL};
151
151
  --hison-xl-font-size: ${t.fontSizeXL};
152
152
  }
153
- `.trim(),o="hisonvue-css-variables";let r=document.getElementById(o);r&&r.remove(),r=document.createElement("style"),r.id=o,r.textContent=n,document.head.appendChild(r)},Wy=(t,e)=>{qd(t,e),t.setMaxFilesetSize=o=>{ce.componentConfig.filesetSize=o},t.setMaxFilesetTotalSize=o=>{ce.componentConfig.filesetTotalSize=o},t.getMaxFilesetSize=()=>ce.componentConfig.filesetSize,t.getMaxFilesetTotalSize=()=>ce.componentConfig.filesetTotalSize,t.cssEvent={setButtonOnBefoerFocus(o){ce.event.cssEvent.button_onBeforeFocus=o},setButtonOnAfterFocus(o){ce.event.cssEvent.button_onAfterFocus=o},setButtonOnBefoerBlur(o){ce.event.cssEvent.button_onBeforeBlur=o},setButtonOnAfterBlur(o){ce.event.cssEvent.button_onAfterBlur=o},setButtonOnBefoerClick(o){ce.event.cssEvent.button_onBeforeClick=o},setButtonOnAfterClick(o){ce.event.cssEvent.button_onAfterClick=o},setButtonOnBeforeMouseover(o){ce.event.cssEvent.button_onBeforeMouseover=o},setButtonOnAfterMouseover(o){ce.event.cssEvent.button_onAfterMouseover=o},setButtonOnBeforeMouseout(o){ce.event.cssEvent.button_onBeforeMouseout=o},setButtonOnAfterMouseout(o){ce.event.cssEvent.button_onAfterMouseout=o},setButtonOnBeforeTouchstart(o){ce.event.cssEvent.button_onBeforeTouchstart=o},setButtonOnAfterTouchstart(o){ce.event.cssEvent.button_onAfterTouchstart=o},setButtonOnBeforeTouchend(o){ce.event.cssEvent.button_onBeforeTouchend=o},setButtonOnAfterTouchend(o){ce.event.cssEvent.button_onAfterTouchend=o},setInputOnBefoerFocus(o){ce.event.cssEvent.input_onBeforeFocus=o},setInputOnAfterFocus(o){ce.event.cssEvent.input_onAfterFocus=o},setInputOnBefoerBlur(o){ce.event.cssEvent.input_onBeforeBlur=o},setInputOnAfterBlur(o){ce.event.cssEvent.input_onAfterBlur=o},setInputOnBeforeMouseover(o){ce.event.cssEvent.input_onBeforeMouseover=o},setInputOnAfterMouseover(o){ce.event.cssEvent.input_onAfterMouseover=o},setInputOnBeforeMouseout(o){ce.event.cssEvent.input_onBeforeMouseout=o},setInputOnAfterMouseout(o){ce.event.cssEvent.input_onAfterMouseout=o},setInputOnBeforeTouchstart(o){ce.event.cssEvent.input_onBeforeTouchstart=o},setInputOnAfterTouchstart(o){ce.event.cssEvent.input_onAfterTouchstart=o},setInputOnBeforeTouchend(o){ce.event.cssEvent.input_onBeforeTouchend=o},setInputOnAfterTouchend(o){ce.event.cssEvent.input_onAfterTouchend=o}};const n=()=>{typeof window<"u"&&(gd(),gu())};t.style={setSize(o){ce.componentStyle.size=o,n()},setFilledColor(o){ce.componentStyle.filledColor=o,n()},setEmptyColor(o){ce.componentStyle.emptyColor=o,n()},setFilledTextColor(o){ce.componentStyle.filledTextColor=o,n()},setEmptyTextColor(o){ce.componentStyle.emptyTextColor=o,n()},setPrimaryColor(o){ce.componentStyle.primaryColor=o,n()},setMutedColor(o){ce.componentStyle.mutedColor=o,n()},setInfoColor(o){ce.componentStyle.infoColor=o,n()},setSuccessColor(o){ce.componentStyle.successColor=o,n()},setDangerColor(o){ce.componentStyle.dangerColor=o,n()},setWarningColor(o){ce.componentStyle.warningColor=o,n()},setInvertColor(o){ce.componentStyle.invertColor=o,n()},getDeviceType(){if(typeof window>"u")return"pc";const o=window.innerWidth;return o<768?"mb":o<1200?"tb":o<1980?"pc":"wd"},getFilledColor(){return ce.componentStyle.filledColor},getEmptyColor(){return ce.componentStyle.emptyColor},getFilledTextColor(){return ce.componentStyle.filledTextColor},getEmptyTextColor(){return ce.componentStyle.emptyTextColor},getPrimaryColor(){return ce.componentStyle.primaryColor},getPrimaryButtonColor(){return ce.componentStyle.componentColor.primary.buttonColor},getPrimaryBorderColor(){return ce.componentStyle.componentColor.primary.borderColor},getPrimaryShadowColor(){return ce.componentStyle.componentColor.primary.shadowColor},getPrimaryHoverColor(){return ce.componentStyle.componentColor.primary.hoverColor},getPrimaryActiveColor(){return ce.componentStyle.componentColor.primary.activeColor},getPrimaryRowHoverColor(){return ce.componentStyle.componentColor.primary.rowHoverColor},getPrimaryStripeColor(){return ce.componentStyle.componentColor.primary.stripeColor},getMutedColor(){return ce.componentStyle.mutedColor},getMutedButtonColor(){return ce.componentStyle.componentColor.muted.buttonColor},getMutedBorderColor(){return ce.componentStyle.componentColor.muted.borderColor},getMutedShadowColor(){return ce.componentStyle.componentColor.muted.shadowColor},getMutedHoverColor(){return ce.componentStyle.componentColor.muted.hoverColor},getMutedActiveColor(){return ce.componentStyle.componentColor.muted.activeColor},getMutedRowHoverColor(){return ce.componentStyle.componentColor.muted.rowHoverColor},getMutedStripeColor(){return ce.componentStyle.componentColor.muted.stripeColor},getInfoColor(){return ce.componentStyle.infoColor},getInfoButtonColor(){return ce.componentStyle.componentColor.info.buttonColor},getInfoBorderColor(){return ce.componentStyle.componentColor.info.borderColor},getInfoShadowColor(){return ce.componentStyle.componentColor.info.shadowColor},getInfoHoverColor(){return ce.componentStyle.componentColor.info.hoverColor},getInfoActiveColor(){return ce.componentStyle.componentColor.info.activeColor},getInfoRowHoverColor(){return ce.componentStyle.componentColor.info.rowHoverColor},getInfoStripeColor(){return ce.componentStyle.componentColor.info.stripeColor},getSuccessColor(){return ce.componentStyle.successColor},getSuccessButtonColor(){return ce.componentStyle.componentColor.success.buttonColor},getSuccessBorderColor(){return ce.componentStyle.componentColor.success.borderColor},getSuccessShadowColor(){return ce.componentStyle.componentColor.success.shadowColor},getSuccessHoverColor(){return ce.componentStyle.componentColor.success.hoverColor},getSuccessActiveColor(){return ce.componentStyle.componentColor.success.activeColor},getSuccessRowHoverColor(){return ce.componentStyle.componentColor.success.rowHoverColor},getSuccessStripeColor(){return ce.componentStyle.componentColor.success.stripeColor},getDangerColor(){return ce.componentStyle.dangerColor},getDangerButtonColor(){return ce.componentStyle.componentColor.danger.buttonColor},getDangerBorderColor(){return ce.componentStyle.componentColor.danger.borderColor},getDangerShadowColor(){return ce.componentStyle.componentColor.danger.shadowColor},getDangerHoverColor(){return ce.componentStyle.componentColor.danger.hoverColor},getDangerActiveColor(){return ce.componentStyle.componentColor.danger.activeColor},getDangerRowHoverColor(){return ce.componentStyle.componentColor.danger.rowHoverColor},getDangerStripeColor(){return ce.componentStyle.componentColor.danger.stripeColor},getWarningColor(){return ce.componentStyle.warningColor},getWarningButtonColor(){return ce.componentStyle.componentColor.warning.buttonColor},getWarningBorderColor(){return ce.componentStyle.componentColor.warning.borderColor},getWarningShadowColor(){return ce.componentStyle.componentColor.warning.shadowColor},getWarningHoverColor(){return ce.componentStyle.componentColor.warning.hoverColor},getWarningActiveColor(){return ce.componentStyle.componentColor.warning.activeColor},getWarningRowHoverColor(){return ce.componentStyle.componentColor.warning.rowHoverColor},getWarningStripeColor(){return ce.componentStyle.componentColor.warning.stripeColor},isInvertColor(){return ce.componentStyle.invertColor}},t.component={},t.component.getAccordion=o=>ce.component.accordionList[o],t.component.getBaggie=o=>ce.component.baggieList[o],t.component.getBanner=o=>ce.component.bannerList[o],t.component.getButton=o=>ce.component.buttonList[o],t.component.getCalendar=o=>ce.component.calendarList[o],t.component.getCaption=o=>ce.component.captionList[o],t.component.getChart=o=>ce.component.chartList[o],t.component.getDrawer=o=>ce.component.drawerList[o],t.component.getDropdown=o=>ce.component.dropdownList[o],t.component.getGap=o=>ce.component.gapList[o],t.component.getFileset=o=>ce.component.filesetList[o],t.component.getGrid=o=>ce.grid.getGrid(o),t.component.getImagebox=o=>ce.component.imageboxList[o],t.component.getInput=o=>ce.component.inputList[o],t.component.getInputGroup=o=>ce.component.inputGroupList[o],t.component.getLabel=o=>ce.component.labelList[o],t.component.getLayout=o=>ce.component.layoutList[o],t.component.getList=o=>ce.component.listList[o],t.component.getModal=o=>ce.component.modalList[o],t.component.getNote=o=>ce.note.getNote(o),t.component.getPagination=o=>ce.component.paginationList[o],t.component.getParagraph=o=>ce.component.paragraphList[o],t.component.getPopup=o=>ce.component.popupList[o],t.component.getSpinner=o=>ce.component.spinnerList[o],t.component.getTable=o=>ce.component.tableList[o]},yd=Bt(()=>Promise.resolve().then(()=>require("./HAccordion-CwX4X5rP.js")),"HAccordion"),pd=Bt(()=>Promise.resolve().then(()=>require("./HBaggie-p4YtANgJ.js")),"HBaggie"),_d=Bt(()=>Promise.resolve().then(()=>require("./HBanner-XHxPBDDx.js")),"HBanner"),vd=Bt(()=>Promise.resolve().then(()=>require("./HButton-Cog_ozZo.js")),"HButton"),bd=Bt(()=>Promise.resolve().then(()=>require("./HCalendar-CNQKtcAW.js")),"HCalendar"),Cd=Bt(()=>Promise.resolve().then(()=>require("./HCaption-DxHNXOQT.js")),"HCaption"),Md=Bt(()=>Promise.resolve().then(()=>require("./HChart-BL9C0v1k.js")),"HChart"),xd=Bt(()=>Promise.resolve().then(()=>require("./HDrawer-C34D6Yyn.js")),"HDrawer"),Sd=Bt(()=>Promise.resolve().then(()=>require("./HDropdown-YYE5X-xr.js")),"HDropdown"),kd=Bt(()=>Promise.resolve().then(()=>require("./HFileset-BA_iNeiI.js")),"HFileset"),Id=Bt(()=>Promise.resolve().then(()=>require("./HGap-BrB040ot.js")),"HGap"),Ed=Bt(()=>Promise.resolve().then(()=>require("./HGrid-DqB9uUXP.js")),"HGrid"),wd=Bt(()=>Promise.resolve().then(()=>require("./HImagebox-CJ6ZePsH.js")),"HImagebox"),Ad=Bt(()=>Promise.resolve().then(()=>require("./HInput-CJr5PE-7.js")),"HInput"),Td=Bt(()=>Promise.resolve().then(()=>require("./HInputGroup-D8p9jS7n.js")),"HInputGroup"),Bd=Bt(()=>Promise.resolve().then(()=>require("./HLabel-5ptBVe28.js")),"HLabel"),Ld=Bt(()=>Promise.resolve().then(()=>require("./HLayout-DtM-cTSx.js")),"HLayout"),Nd=Bt(()=>Promise.resolve().then(()=>require("./HList-DU3WuYwD.js")),"HList"),Rd=Bt(()=>Promise.resolve().then(()=>require("./HModal-C_mi279o.js")),"HModal"),Hd=Bt(()=>Promise.resolve().then(()=>require("./HNote-B9gSb3LH.js")),"HNote"),Fd=Bt(()=>Promise.resolve().then(()=>require("./HPagination-4wmIvYNJ.js")),"HPagination"),Od=Bt(()=>Promise.resolve().then(()=>require("./HParagraph-PTHx_RN4.js")),"HParagraph"),Vd=Bt(()=>Promise.resolve().then(()=>require("./HPopup-VSP63YBK.js")),"HPopup"),Dd=Bt(()=>Promise.resolve().then(()=>require("./HSpinner-DUSvlAUB.js")),"HSpinner"),Pd=Bt(()=>Promise.resolve().then(()=>require("./HTable-Cxnp6Dcb.js")),"HTable"),ce={event:{cssEvent:{}}},un=en.createHison(),qy={install(t,e){const n=La();e?Object.keys(n).forEach(o=>{o in e||(e[o]=n[o])}):e=La(),Uy(e),Wy(un,e),typeof window<"u"&&gd(),jy(),t.provide("hison",un),t.component("HAccordion",yd),t.component("HBaggie",pd),t.component("HBanner",_d),t.component("HButton",vd),t.component("HCalendar",bd),t.component("HCaption",Cd),t.component("HChart",Md),t.component("HDrawer",xd),t.component("HDropdown",Sd),t.component("HFileset",kd),t.component("HGap",Id),t.component("HGrid",Ed),t.component("HImagebox",wd),t.component("HInput",Ad),t.component("HInputGroup",Td),t.component("HLabel",Bd),t.component("HLayout",Ld),t.component("HList",Nd),t.component("HModal",Rd),t.component("HNote",Hd),t.component("HPagination",Fd),t.component("HParagraph",Od),t.component("HPopup",Vd),t.component("HSpinner",Dd),t.component("HTable",Pd)}};exports.BACKGROUND_TYPE_VALUES=Mu;exports.BACK_IMAGE_ALIGN_VALUES=vu;exports.BACK_IMAGE_STYLE_VALUES=Cu;exports.BACK_IMAGE_VERTICAL_ALIGN_VALUES=bu;exports.BackImageAlign=Ks;exports.BackImageRepeat=Js;exports.BackImageVerticalAlign=Xs;exports.BackgroundType=Zs;exports.COLOR_SET_VALUES=Du;exports.CSS_VAR_RE=uc;exports.Chart=mn;exports.Color=Ys;exports.DATA_STATUS_VALUES=zu;exports.DROPDOWN_TRIGGER_VALUES=Lu;exports.DataStatus=fc;exports.DayOfWeek=hc;exports.DropdownTrigger=sc;exports.EDIT_MODE_VALUES=Bu;exports.EditMode=lc;exports.GRID_ALIGN_VALUES=Ou;exports.GRID_DATE_FORMAT_VALUES=Hu;exports.GRID_MONTH_FORMAT_VALUES=Fu;exports.GRID_VERTICAL_ALIGN_VALUES=Vu;exports.HAccordionClientOnly=yd;exports.HBaggieClientOnly=pd;exports.HBannerClientOnly=_d;exports.HButtonClientOnly=vd;exports.HCalendarClientOnly=bd;exports.HCalendarTimeFormat=gc;exports.HCalendarView=mc;exports.HCaptionClientOnly=Cd;exports.HChartClientOnly=Md;exports.HDrawerClientOnly=xd;exports.HDropdownClientOnly=Sd;exports.HEX_COLOR_RE=dc;exports.HFilesetClientOnly=kd;exports.HGapClientOnly=Id;exports.HGapLine=rc;exports.HGapLineStyle=ic;exports.HGridClientOnly=Ed;exports.HImageboxClientOnly=wd;exports.HInputClientOnly=Ad;exports.HInputGroupClientOnly=Td;exports.HLabelClientOnly=Bd;exports.HLayoutClientOnly=Ld;exports.HListClientOnly=Nd;exports.HModalClientOnly=Rd;exports.HNoteClientOnly=Hd;exports.HPaginationClientOnly=Fd;exports.HParagraphClientOnly=Od;exports.HPopupClientOnly=Vd;exports.HSpinnerClientOnly=Dd;exports.HTableClientOnly=Pd;exports.H_CALENDAR_TIME_FORMAT_VALUES=Gu;exports.H_CALENDAR_VIEW_VALUES=Uu;exports.H_GAP_LINE_STYLE_VALUES=Au;exports.H_GAP_RULE_VALUES=wu;exports.Hisonjs_bundleExports=en;exports.INPUT_TYPE_VALUES=Tu;exports.InputType=ac;exports.MODAL_PLACEMENT_VALUES=xu;exports.ModalPlacement=Qs;exports.NOTE_MODE_BY_DEVICE_VALUES=ju;exports.SCREEN_POSITION_VALUES=Su;exports.SELECTION_POLICY_VALUES=Ru;exports.SPINNER_TYPE_VALUES=ku;exports.ScreenPosition=ec;exports.Size=lo;exports.SpinnerType=tc;exports.TEXT_ALIGN_VALUES=Nu;exports.TOOL_POSITION_VALUES=Wu;exports.TextAlign=cc;exports.VERTICAL_ALIGN_VALUES=Iu;exports.Vanillagrid2_bundleExports=Na;exports.Vanillanote2_bundleExports=Ra;exports.VerticalAlign=nc;exports.WHITE_SPACE_VALUES=Eu;exports.WhiteSpace=oc;exports.addComponentNameToClass=iu;exports.applyOpacityToRgba=fu;exports.extractPrefixedClasses=au;exports.extractResponsiveClasses=ru;exports.getDefaultHisonConfig=La;exports.getDigitsOnly=eu;exports.getHexCodeFromColorText=cu;exports.getIndexSpecificClassNameFromClassList=js;exports.getInvertColor=hn;exports.getMaskValue=Qd;exports.getRGBAFromColorText=du;exports.getSpecificClassValueFromClassList=ou;exports.getUUID=Xd;exports.hison=un;exports.hisonCloser=ce;exports.hisonvue=qy;exports.isCssColorLike=Pu;exports.isNullOrUndefined=Kd;exports.normalizeToRgba=dn;exports.registerReloadable=hu;exports.reloadHisonComponent=yu;exports.toClassString=Ws;exports.unregisterReloadable=mu;exports.useDevice=Gy;
153
+ `.trim(),o="hisonvue-css-variables";let r=document.getElementById(o);r&&r.remove(),r=document.createElement("style"),r.id=o,r.textContent=n,document.head.appendChild(r)},Wy=(t,e)=>{qd(t,e),t.setMaxFilesetSize=o=>{ce.componentConfig.filesetSize=o},t.setMaxFilesetTotalSize=o=>{ce.componentConfig.filesetTotalSize=o},t.getMaxFilesetSize=()=>ce.componentConfig.filesetSize,t.getMaxFilesetTotalSize=()=>ce.componentConfig.filesetTotalSize,t.cssEvent={setButtonOnBefoerFocus(o){ce.event.cssEvent.button_onBeforeFocus=o},setButtonOnAfterFocus(o){ce.event.cssEvent.button_onAfterFocus=o},setButtonOnBefoerBlur(o){ce.event.cssEvent.button_onBeforeBlur=o},setButtonOnAfterBlur(o){ce.event.cssEvent.button_onAfterBlur=o},setButtonOnBefoerClick(o){ce.event.cssEvent.button_onBeforeClick=o},setButtonOnAfterClick(o){ce.event.cssEvent.button_onAfterClick=o},setButtonOnBeforeMouseover(o){ce.event.cssEvent.button_onBeforeMouseover=o},setButtonOnAfterMouseover(o){ce.event.cssEvent.button_onAfterMouseover=o},setButtonOnBeforeMouseout(o){ce.event.cssEvent.button_onBeforeMouseout=o},setButtonOnAfterMouseout(o){ce.event.cssEvent.button_onAfterMouseout=o},setButtonOnBeforeTouchstart(o){ce.event.cssEvent.button_onBeforeTouchstart=o},setButtonOnAfterTouchstart(o){ce.event.cssEvent.button_onAfterTouchstart=o},setButtonOnBeforeTouchend(o){ce.event.cssEvent.button_onBeforeTouchend=o},setButtonOnAfterTouchend(o){ce.event.cssEvent.button_onAfterTouchend=o},setInputOnBefoerFocus(o){ce.event.cssEvent.input_onBeforeFocus=o},setInputOnAfterFocus(o){ce.event.cssEvent.input_onAfterFocus=o},setInputOnBefoerBlur(o){ce.event.cssEvent.input_onBeforeBlur=o},setInputOnAfterBlur(o){ce.event.cssEvent.input_onAfterBlur=o},setInputOnBeforeMouseover(o){ce.event.cssEvent.input_onBeforeMouseover=o},setInputOnAfterMouseover(o){ce.event.cssEvent.input_onAfterMouseover=o},setInputOnBeforeMouseout(o){ce.event.cssEvent.input_onBeforeMouseout=o},setInputOnAfterMouseout(o){ce.event.cssEvent.input_onAfterMouseout=o},setInputOnBeforeTouchstart(o){ce.event.cssEvent.input_onBeforeTouchstart=o},setInputOnAfterTouchstart(o){ce.event.cssEvent.input_onAfterTouchstart=o},setInputOnBeforeTouchend(o){ce.event.cssEvent.input_onBeforeTouchend=o},setInputOnAfterTouchend(o){ce.event.cssEvent.input_onAfterTouchend=o}};const n=()=>{typeof window<"u"&&(gd(),gu())};t.style={setSize(o){ce.componentStyle.size=o,n()},setFilledColor(o){ce.componentStyle.filledColor=o,n()},setEmptyColor(o){ce.componentStyle.emptyColor=o,n()},setFilledTextColor(o){ce.componentStyle.filledTextColor=o,n()},setEmptyTextColor(o){ce.componentStyle.emptyTextColor=o,n()},setPrimaryColor(o){ce.componentStyle.primaryColor=o,n()},setMutedColor(o){ce.componentStyle.mutedColor=o,n()},setInfoColor(o){ce.componentStyle.infoColor=o,n()},setSuccessColor(o){ce.componentStyle.successColor=o,n()},setDangerColor(o){ce.componentStyle.dangerColor=o,n()},setWarningColor(o){ce.componentStyle.warningColor=o,n()},setInvertColor(o){ce.componentStyle.invertColor=o,n()},getDeviceType(){if(typeof window>"u")return"pc";const o=window.innerWidth;return o<768?"mb":o<1200?"tb":o<1980?"pc":"wd"},getFilledColor(){return ce.componentStyle.filledColor},getEmptyColor(){return ce.componentStyle.emptyColor},getFilledTextColor(){return ce.componentStyle.filledTextColor},getEmptyTextColor(){return ce.componentStyle.emptyTextColor},getPrimaryColor(){return ce.componentStyle.primaryColor},getPrimaryButtonColor(){return ce.componentStyle.componentColor.primary.buttonColor},getPrimaryBorderColor(){return ce.componentStyle.componentColor.primary.borderColor},getPrimaryShadowColor(){return ce.componentStyle.componentColor.primary.shadowColor},getPrimaryHoverColor(){return ce.componentStyle.componentColor.primary.hoverColor},getPrimaryActiveColor(){return ce.componentStyle.componentColor.primary.activeColor},getPrimaryRowHoverColor(){return ce.componentStyle.componentColor.primary.rowHoverColor},getPrimaryStripeColor(){return ce.componentStyle.componentColor.primary.stripeColor},getMutedColor(){return ce.componentStyle.mutedColor},getMutedButtonColor(){return ce.componentStyle.componentColor.muted.buttonColor},getMutedBorderColor(){return ce.componentStyle.componentColor.muted.borderColor},getMutedShadowColor(){return ce.componentStyle.componentColor.muted.shadowColor},getMutedHoverColor(){return ce.componentStyle.componentColor.muted.hoverColor},getMutedActiveColor(){return ce.componentStyle.componentColor.muted.activeColor},getMutedRowHoverColor(){return ce.componentStyle.componentColor.muted.rowHoverColor},getMutedStripeColor(){return ce.componentStyle.componentColor.muted.stripeColor},getInfoColor(){return ce.componentStyle.infoColor},getInfoButtonColor(){return ce.componentStyle.componentColor.info.buttonColor},getInfoBorderColor(){return ce.componentStyle.componentColor.info.borderColor},getInfoShadowColor(){return ce.componentStyle.componentColor.info.shadowColor},getInfoHoverColor(){return ce.componentStyle.componentColor.info.hoverColor},getInfoActiveColor(){return ce.componentStyle.componentColor.info.activeColor},getInfoRowHoverColor(){return ce.componentStyle.componentColor.info.rowHoverColor},getInfoStripeColor(){return ce.componentStyle.componentColor.info.stripeColor},getSuccessColor(){return ce.componentStyle.successColor},getSuccessButtonColor(){return ce.componentStyle.componentColor.success.buttonColor},getSuccessBorderColor(){return ce.componentStyle.componentColor.success.borderColor},getSuccessShadowColor(){return ce.componentStyle.componentColor.success.shadowColor},getSuccessHoverColor(){return ce.componentStyle.componentColor.success.hoverColor},getSuccessActiveColor(){return ce.componentStyle.componentColor.success.activeColor},getSuccessRowHoverColor(){return ce.componentStyle.componentColor.success.rowHoverColor},getSuccessStripeColor(){return ce.componentStyle.componentColor.success.stripeColor},getDangerColor(){return ce.componentStyle.dangerColor},getDangerButtonColor(){return ce.componentStyle.componentColor.danger.buttonColor},getDangerBorderColor(){return ce.componentStyle.componentColor.danger.borderColor},getDangerShadowColor(){return ce.componentStyle.componentColor.danger.shadowColor},getDangerHoverColor(){return ce.componentStyle.componentColor.danger.hoverColor},getDangerActiveColor(){return ce.componentStyle.componentColor.danger.activeColor},getDangerRowHoverColor(){return ce.componentStyle.componentColor.danger.rowHoverColor},getDangerStripeColor(){return ce.componentStyle.componentColor.danger.stripeColor},getWarningColor(){return ce.componentStyle.warningColor},getWarningButtonColor(){return ce.componentStyle.componentColor.warning.buttonColor},getWarningBorderColor(){return ce.componentStyle.componentColor.warning.borderColor},getWarningShadowColor(){return ce.componentStyle.componentColor.warning.shadowColor},getWarningHoverColor(){return ce.componentStyle.componentColor.warning.hoverColor},getWarningActiveColor(){return ce.componentStyle.componentColor.warning.activeColor},getWarningRowHoverColor(){return ce.componentStyle.componentColor.warning.rowHoverColor},getWarningStripeColor(){return ce.componentStyle.componentColor.warning.stripeColor},isInvertColor(){return ce.componentStyle.invertColor}},t.component={},t.component.getAccordion=o=>ce.component.accordionList[o],t.component.getBaggie=o=>ce.component.baggieList[o],t.component.getBanner=o=>ce.component.bannerList[o],t.component.getButton=o=>ce.component.buttonList[o],t.component.getCalendar=o=>ce.component.calendarList[o],t.component.getCaption=o=>ce.component.captionList[o],t.component.getChart=o=>ce.component.chartList[o],t.component.getDrawer=o=>ce.component.drawerList[o],t.component.getDropdown=o=>ce.component.dropdownList[o],t.component.getGap=o=>ce.component.gapList[o],t.component.getFileset=o=>ce.component.filesetList[o],t.component.getGrid=o=>ce.grid.getGrid(o),t.component.getImagebox=o=>ce.component.imageboxList[o],t.component.getInput=o=>ce.component.inputList[o],t.component.getInputGroup=o=>ce.component.inputGroupList[o],t.component.getLabel=o=>ce.component.labelList[o],t.component.getLayout=o=>ce.component.layoutList[o],t.component.getList=o=>ce.component.listList[o],t.component.getModal=o=>ce.component.modalList[o],t.component.getNote=o=>ce.note.getNote(o),t.component.getPagination=o=>ce.component.paginationList[o],t.component.getParagraph=o=>ce.component.paragraphList[o],t.component.getPopup=o=>ce.component.popupList[o],t.component.getSpinner=o=>ce.component.spinnerList[o],t.component.getTable=o=>ce.component.tableList[o]},yd=Bt(()=>Promise.resolve().then(()=>require("./HAccordion-BPcUkox0.js")),"HAccordion"),pd=Bt(()=>Promise.resolve().then(()=>require("./HBaggie-DN3TUx7R.js")),"HBaggie"),_d=Bt(()=>Promise.resolve().then(()=>require("./HBanner-CO620JW2.js")),"HBanner"),vd=Bt(()=>Promise.resolve().then(()=>require("./HButton-DuHEt4L4.js")),"HButton"),bd=Bt(()=>Promise.resolve().then(()=>require("./HCalendar-w59hzWIb.js")),"HCalendar"),Cd=Bt(()=>Promise.resolve().then(()=>require("./HCaption-BS-kcsPL.js")),"HCaption"),Md=Bt(()=>Promise.resolve().then(()=>require("./HChart-GW0MC1O-.js")),"HChart"),xd=Bt(()=>Promise.resolve().then(()=>require("./HDrawer-BYNWM5oo.js")),"HDrawer"),Sd=Bt(()=>Promise.resolve().then(()=>require("./HDropdown-4PzlwYQK.js")),"HDropdown"),kd=Bt(()=>Promise.resolve().then(()=>require("./HFileset-C3jH-75M.js")),"HFileset"),Id=Bt(()=>Promise.resolve().then(()=>require("./HGap-BICfHf2P.js")),"HGap"),Ed=Bt(()=>Promise.resolve().then(()=>require("./HGrid-BYpzERIV.js")),"HGrid"),wd=Bt(()=>Promise.resolve().then(()=>require("./HImagebox-BK13d9hC.js")),"HImagebox"),Ad=Bt(()=>Promise.resolve().then(()=>require("./HInput-C6P1WBQR.js")),"HInput"),Td=Bt(()=>Promise.resolve().then(()=>require("./HInputGroup-CJvqmDw_.js")),"HInputGroup"),Bd=Bt(()=>Promise.resolve().then(()=>require("./HLabel-BZmcQdJZ.js")),"HLabel"),Ld=Bt(()=>Promise.resolve().then(()=>require("./HLayout-Cvh9owsl.js")),"HLayout"),Nd=Bt(()=>Promise.resolve().then(()=>require("./HList-B56HtoRE.js")),"HList"),Rd=Bt(()=>Promise.resolve().then(()=>require("./HModal-pR6tdZaS.js")),"HModal"),Hd=Bt(()=>Promise.resolve().then(()=>require("./HNote-aGk4Iq2z.js")),"HNote"),Fd=Bt(()=>Promise.resolve().then(()=>require("./HPagination-BZ17GWQO.js")),"HPagination"),Od=Bt(()=>Promise.resolve().then(()=>require("./HParagraph-BSv_Wsjz.js")),"HParagraph"),Vd=Bt(()=>Promise.resolve().then(()=>require("./HPopup-ASomoAz9.js")),"HPopup"),Dd=Bt(()=>Promise.resolve().then(()=>require("./HSpinner-CmyqXHMh.js")),"HSpinner"),Pd=Bt(()=>Promise.resolve().then(()=>require("./HTable-lqvTk19w.js")),"HTable"),un=en.createHison(),qy={install(t,e){const n=La();e?Object.keys(n).forEach(o=>{o in e||(e[o]=n[o])}):e=La(),Uy(e),Wy(un,e),typeof window<"u"&&gd(),jy(),t.provide("hison",un),t.component("HAccordion",yd),t.component("HBaggie",pd),t.component("HBanner",_d),t.component("HButton",vd),t.component("HCalendar",bd),t.component("HCaption",Cd),t.component("HChart",Md),t.component("HDrawer",xd),t.component("HDropdown",Sd),t.component("HFileset",kd),t.component("HGap",Id),t.component("HGrid",Ed),t.component("HImagebox",wd),t.component("HInput",Ad),t.component("HInputGroup",Td),t.component("HLabel",Bd),t.component("HLayout",Ld),t.component("HList",Nd),t.component("HModal",Rd),t.component("HNote",Hd),t.component("HPagination",Fd),t.component("HParagraph",Od),t.component("HPopup",Vd),t.component("HSpinner",Dd),t.component("HTable",Pd)}};exports.BACKGROUND_TYPE_VALUES=Mu;exports.BACK_IMAGE_ALIGN_VALUES=vu;exports.BACK_IMAGE_STYLE_VALUES=Cu;exports.BACK_IMAGE_VERTICAL_ALIGN_VALUES=bu;exports.BackImageAlign=Ks;exports.BackImageRepeat=Js;exports.BackImageVerticalAlign=Xs;exports.BackgroundType=Zs;exports.COLOR_SET_VALUES=Du;exports.CSS_VAR_RE=uc;exports.Chart=mn;exports.Color=Ys;exports.DATA_STATUS_VALUES=zu;exports.DROPDOWN_TRIGGER_VALUES=Lu;exports.DataStatus=fc;exports.DayOfWeek=hc;exports.DropdownTrigger=sc;exports.EDIT_MODE_VALUES=Bu;exports.EditMode=lc;exports.GRID_ALIGN_VALUES=Ou;exports.GRID_DATE_FORMAT_VALUES=Hu;exports.GRID_MONTH_FORMAT_VALUES=Fu;exports.GRID_VERTICAL_ALIGN_VALUES=Vu;exports.HAccordionClientOnly=yd;exports.HBaggieClientOnly=pd;exports.HBannerClientOnly=_d;exports.HButtonClientOnly=vd;exports.HCalendarClientOnly=bd;exports.HCalendarTimeFormat=gc;exports.HCalendarView=mc;exports.HCaptionClientOnly=Cd;exports.HChartClientOnly=Md;exports.HDrawerClientOnly=xd;exports.HDropdownClientOnly=Sd;exports.HEX_COLOR_RE=dc;exports.HFilesetClientOnly=kd;exports.HGapClientOnly=Id;exports.HGapLine=rc;exports.HGapLineStyle=ic;exports.HGridClientOnly=Ed;exports.HImageboxClientOnly=wd;exports.HInputClientOnly=Ad;exports.HInputGroupClientOnly=Td;exports.HLabelClientOnly=Bd;exports.HLayoutClientOnly=Ld;exports.HListClientOnly=Nd;exports.HModalClientOnly=Rd;exports.HNoteClientOnly=Hd;exports.HPaginationClientOnly=Fd;exports.HParagraphClientOnly=Od;exports.HPopupClientOnly=Vd;exports.HSpinnerClientOnly=Dd;exports.HTableClientOnly=Pd;exports.H_CALENDAR_TIME_FORMAT_VALUES=Gu;exports.H_CALENDAR_VIEW_VALUES=Uu;exports.H_GAP_LINE_STYLE_VALUES=Au;exports.H_GAP_RULE_VALUES=wu;exports.Hisonjs_bundleExports=en;exports.INPUT_TYPE_VALUES=Tu;exports.InputType=ac;exports.MODAL_PLACEMENT_VALUES=xu;exports.ModalPlacement=Qs;exports.NOTE_MODE_BY_DEVICE_VALUES=ju;exports.SCREEN_POSITION_VALUES=Su;exports.SELECTION_POLICY_VALUES=Ru;exports.SPINNER_TYPE_VALUES=ku;exports.ScreenPosition=ec;exports.Size=lo;exports.SpinnerType=tc;exports.TEXT_ALIGN_VALUES=Nu;exports.TOOL_POSITION_VALUES=Wu;exports.TextAlign=cc;exports.VERTICAL_ALIGN_VALUES=Iu;exports.Vanillagrid2_bundleExports=Na;exports.Vanillanote2_bundleExports=Ra;exports.VerticalAlign=nc;exports.WHITE_SPACE_VALUES=Eu;exports.WhiteSpace=oc;exports.addComponentNameToClass=iu;exports.applyOpacityToRgba=fu;exports.extractPrefixedClasses=au;exports.extractResponsiveClasses=ru;exports.getDefaultHisonConfig=La;exports.getDigitsOnly=eu;exports.getHexCodeFromColorText=cu;exports.getIndexSpecificClassNameFromClassList=js;exports.getInvertColor=hn;exports.getMaskValue=Qd;exports.getRGBAFromColorText=du;exports.getSpecificClassValueFromClassList=ou;exports.getUUID=Xd;exports.hison=un;exports.hisonCloser=ce;exports.hisonvue=qy;exports.isCssColorLike=Pu;exports.isNullOrUndefined=Kd;exports.normalizeToRgba=dn;exports.registerReloadable=hu;exports.reloadHisonComponent=yu;exports.toClassString=Ws;exports.unregisterReloadable=mu;exports.useDevice=Gy;