2 var _typeof=
"function"==typeof Symbol&&
"symbol"==typeof Symbol.iterator?
function(e){
return typeof e}:
function(e){
return e&&
"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?
"symbol":typeof e},Format=
function(e){this.table=e};Format.prototype.initializeColumn=
function(e){var t=
this,o={params:e.definition.formatterParams||{}};
switch(_typeof(e.definition.formatter)){
case"string":
"tick"===e.definition.formatter&&(e.definition.formatter=
"tickCross",
void 0===o.params.crossElement&&(o.params.crossElement=!1),console.warn(
"DEPRECATION WARNING - the tick formatter has been deprecated, please use the tickCross formatter with the crossElement param set to false")),t.formatters[e.definition.formatter]?o.formatter=t.formatters[e.definition.formatter]:(console.warn(
"Formatter Error - No such formatter found: ",e.definition.formatter),o.formatter=t.formatters.plaintext);
break;
case"function":o.formatter=e.definition.formatter;
break;
default:o.formatter=t.formatters.plaintext}e.modules.format=o},Format.prototype.cellRendered=
function(e){e.modules.format&&e.modules.format.renderedCallback&&e.modules.format.renderedCallback()},Format.prototype.formatValue=
function(e){
function t(t){e.modules.format||(e.modules.format={}),e.modules.format.renderedCallback=t}var o=e.getComponent(),r=
"function"==typeof e.column.modules.format.params?e.column.modules.format.params(o):e.column.modules.format.params;
return e.column.modules.format.formatter.call(
this,o,r,t)},Format.prototype.sanitizeHTML=
function(e){
if(e){var t={
"&":
"&",
"<":
"<",
">":
">",
'"':
""",
"'":
"'",
"/":
"/",
"`":
"`",
"=":
"="};
return String(e).replace(/[&<>
"'`=\/]/g,function(e){return t[e]})}return e},Format.prototype.emptyToSpace=function(e){return null===e||void 0===e?"
":e},Format.prototype.getFormatter=function(e){var e;switch(void 0===e?"undefined
":_typeof(e)){case"string":this.formatters[e]?e=this.formatters[e]:(console.warn("Formatter Error - No such formatter found:
",e),e=this.formatters.plaintext);break;case"function":e=e;break;default:e=this.formatters.plaintext}return e},Format.prototype.formatters={plaintext:function(e,t,o){return this.emptyToSpace(this.sanitizeHTML(e.getValue()))},html:function(e,t,o){return e.getValue()},textarea:function(e,t,o){return e.getElement().style.whiteSpace="pre-wrap
",this.emptyToSpace(this.sanitizeHTML(e.getValue()))},money:function(e,t,o){var r,a,n,i,l=parseFloat(e.getValue()),s=t.decimal||".
",c=t.thousand||",
",d=t.symbol||"",u=!!t.symbolAfter,m=void 0!==t.precision?t.precision:2;if(isNaN(l))return this.emptyToSpace(this.sanitizeHTML(e.getValue()));for(r=!1!==m?l.toFixed(m):l,r=String(r).split(".
"),a=r[0],n=r.length>1?s+r[1]:"",i=/(\d+)(\d{3})/;i.test(a);)a=a.replace(i,"$1
"+c+"$2
");return u?a+n+d:d+a+n},link:function(e,t,o){var r,a=e.getValue(),n=t.urlPrefix||"",i=t.download,l=a,s=document.createElement("a
");if(t.labelField&&(r=e.getData(),l=r[t.labelField]),t.label)switch(_typeof(t.label)){case"string":l=t.label;break;case"function":l=t.label(e)}if(l){if(t.urlField&&(r=e.getData(),a=r[t.urlField]),t.url)switch(_typeof(t.url)){case"string":a=t.url;break;case"function":a=t.url(e)}return s.setAttribute("href
",n+a),t.target&&s.setAttribute("target
",t.target),t.download&&(i="function"==typeof i?i(e):!0===i?"":i,s.setAttribute("download
",i)),s.innerHTML=this.emptyToSpace(this.sanitizeHTML(l)),s}return"
"},image:function(e,t,o){var r=document.createElement("img
");switch(r.setAttribute("src
",e.getValue()),_typeof(t.height)){case"number
":r.style.height=t.height+"px
";break;case"string":r.style.height=t.height}switch(_typeof(t.width)){case"number
":r.style.width=t.width+"px
";break;case"string":r.style.width=t.width}return r.addEventListener("load
",function(){e.getRow().normalizeHeight()}),r},tickCross:function(e,t,o){var r=e.getValue(),a=e.getElement(),n=t.allowEmpty,i=t.allowTruthy,l=void 0!==t.tickElement?t.tickElement:'<svg enable-background="new 0 0 24 24
" height="14
" width="14
" viewBox="0 0 24 24
" xml:space="preserve
" ><path fill="#2DC214
" clip-rule="evenodd
" d="M21.652,3.211c-0.293-0.295-0.77-0.295-1.061,0L9.41,14.34 c-0.293,0.297-0.771,0.297-1.062,0L3.449,9.351C3.304,9.203,3.114,9.13,2.923,9.129C2.73,9.128,2.534,9.201,2.387,9.351 l-2.165,1.946C0.078,11.445,0,11.63,0,11.823c0,0.194,0.078,0.397,0.223,0.544l4.94,5.184c0.292,0.296,0.771,0.776,1.062,1.07 l2.124,2.141c0.292,0.293,0.769,0.293,1.062,0l14.366-14.34c0.293-0.294,0.293-0.777,0-1.071L21.652,3.211z
" fill-rule="evenodd
"/></svg>',s=void 0!==t.crossElement?t.crossElement:'<svg enable-background="new 0 0 24 24
" height="14
" width="14
" viewBox="0 0 24 24
" xml:space="preserve
" ><path fill="#CE1515
" d="M22.245,4.015c0.313,0.313,0.313,0.826,0,1.139l-6.276,6.27c-0.313,0.312-0.313,0.826,0,1.14l6.273,6.272 c0.313,0.313,0.313,0.826,0,1.14l-2.285,2.277c-0.314,0.312-0.828,0.312-1.142,0l-6.271-6.271c-0.313-0.313-0.828-0.313-1.141,0 l-6.276,6.267c-0.313,0.313-0.828,0.313-1.141,0l-2.282-2.28c-0.313-0.313-0.313-0.826,0-1.14l6.278-6.269 c0.313-0.312,0.313-0.826,0-1.14L1.709,5.147c-0.314-0.313-0.314-0.827,0-1.14l2.284-2.278C4.308,1.417,4.821,1.417,5.135,1.73 L11.405,8c0.314,0.314,0.828,0.314,1.141,0.001l6.276-6.267c0.312-0.312,0.826-0.312,1.141,0L22.245,4.015z
"/></svg>';return i&&r||!0===r||"true"===r||"True
"===r||1===r||"1
"===r?(a.setAttribute("aria-checked
",!0),l||""):!n||"null
"!==r&&""!==r&&null!==r&&void 0!==r?(a.setAttribute("aria-checked
",!1),s||""):(a.setAttribute("aria-checked
","mixed
"),"")},datetime:function(e,t,o){var r=t.inputFormat||"YYYY-MM-DD hh:mm:ss
",a=t.outputFormat||"DD/MM/YYYY hh:mm:ss
",n=void 0!==t.invalidPlaceholder?t.invalidPlaceholder:"",i=e.getValue(),l=moment(i,r);return l.isValid()?l.format(a):!0===n?i:"function"==typeof n?n(i):n},datetimediff:function(e,t,o){var r=t.inputFormat||"YYYY-MM-DD hh:mm:ss
",a=void 0!==t.invalidPlaceholder?t.invalidPlaceholder:"",n=void 0!==t.suffix&&t.suffix,i=void 0!==t.unit?t.unit:void 0,l=void 0!==t.humanize&&t.humanize,s=void 0!==t.date?t.date:moment(),c=e.getValue(),d=moment(c,r);return d.isValid()?l?moment.duration(d.diff(s)).humanize(n):d.diff(s,i)+(n?" "+n:""):!0===a?c:"function"==typeof a?a(c):a},lookup:function(e,t,o){var r=e.getValue();return void 0===t[r]?(console.warn("Missing display value
for "+r),r):t[r]},star:function(e,t,o){var r=e.getValue(),a=e.getElement(),n=t&&t.stars?t.stars:5,i=document.createElement("span
"),l=document.createElementNS("http: