1function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _wrapRegExp(){_wrapRegExp=function(e,t){return new o(e,void 0,t)};var a=RegExp.prototype,l=new WeakMap;function o(e,t,r){t=RegExp(e,t);return l.set(t,r||l.get(e)),_setPrototypeOf(t,o.prototype)}function n(a,e){var n=l.get(e);return Object.keys(n).reduce(function(e,t){var r=n[t];if("number"==typeof r)e[t]=a[r];else{for(var o=0;void 0===a[r[o]]&&o+1<r.length;)o++;e[t]=a[r[o]]}return e},Object.create(null))}return _inherits(o,RegExp),o.prototype.exec=function(e){var t,e=a.exec.call(this,e);return e&&(e.groups=n(e,this),t=e.indices)&&(t.groups=n(t,this)),e},o.prototype[Symbol.replace]=function(e,t){var r,o;return"string"==typeof t?(r=l.get(this),a[Symbol.replace].call(this,e,t.replace(/\$<([^>]+)>/g,function(e,t){t=r[t];return"$"+(Array.isArray(t)?t.join("$"):t)}))):"function"==typeof t?(o=this,a[Symbol.replace].call(this,e,function(){var e=arguments;return"object"!=_typeof(e[e.length-1])&&(e=[].slice.call(e)).push(n(e,o)),t.apply(this,e)})):a[Symbol.replace].call(this,e,t)},_wrapRegExp.apply(this,arguments)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){var r;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(r="Object"===(r={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}function _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,a,n,l,i=[],s=!0,c=!1;try{if(n=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(o=n.call(r)).done)&&(i.push(o.value),i.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw a}}return i}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!=_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){var r;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(r="Object"===(r={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}document.addEventListener("DOMContentLoaded",function(){var e;e=function(){function r(e){var t=this,r=(this.parentContainer=null,this.matrixContainer=null,this.mainTable=null,this.id=null,function(e){var e=e.getAttribute("id");
1return e?(e=(null==(e=e.match(_wrapRegExp(/^wptb\x2Dtable\x2Did\x2D(\d+)$/,{id:1})))?void 0:e.groups).id,parseInt(e,10)):null});if(!e.classList.contains("wptb-table-container"))throw new Error("invalid table top level container");e=(t.parentContainer=e).querySelector(".wptb-table-container-matrix");if(!e)throw new Error("invalid matrix container");if(t.matrixContainer=e,!(e=t.matrixContainer.querySelector("table.wptb-preview-table")))throw new Error("invalid table element");t.mainTable=e,t.mainTable&&(t.id=r(t.matrixContainer))}var e=new function(){var t=[];this.getTableObjects=function(){return t},this.init=function(){Array.from(document.querySelectorAll(".wptb-table-container")).map(function(e){t.push(new r(e))})}};return e.init(),e},(self||global)["WptbFrontendBase"]=e()}),function(e,t,r){"undefined"!=typeof module&&"object"===("undefined"==typeof exports?"undefined":_typeof(exports))?module.exports=r():t[e]=r()}("WPTB_ExtraStyles",self||global,function(){return new function(){function o(e){var t,r,o,a,n=e.dataset.wptbExtraStyles;n&&(n=atob(n),t=e.getAttribute("class").match(/wptb-element-main-table_setting-(?:startedid-)?(\d+)/),a="wptb-extra-styles-"+(t=_slicedToArray(t,2)[1]),(o=null==(r=l.baseDocument.querySelector("head"))?void 0:r.querySelector("#".concat(a)))||((o=document.createElement("style")).type="text/css",o.id=a,e.dataset.disableThemeStyles&&l.currentMode===l.modes.frontEnd||l.currentMode===l.modes.block?(e.insertAdjacentElement("beforebegin",o),l.currentMode===l.modes.frontEnd&&l.generalStyles&&s(l.generalStyles,e)):r.appendChild(o)),a=".wptb-element-main-table_setting-".concat(t),e=i(a,n),o.innerHTML="",o.appendChild(document.createTextNode(e)))}var l=this,a=(this.modes={builder:"builder",frontEnd:"frontEnd",block:"block"},this.baseDocument=document,this.currentMode=this.modes.builder,this.generalStyles="",_defineProperty(_defineProperty(_defineProperty({},this.modes.builder,".wptb-table-setup .wptb-preview-table"),this.modes.block,".wptb-block-table-setup .wptb-preview-table"),this.modes.frontEnd,".wptb-table-container .wptb-preview-table")),t=function(e){return e.replaceAll(/(\r?\n)|(\/\*.+?\*\/)|(\s*!important)/g,"").replaceAll(";"," !important;")},i=function(n,e){function l(e){for(var t=[],r="",o=0,a=0;a<e.length;){var n=e[a];r+=n,"{"===n?o++:"}"===n&&0===--o&&(t.push(r.trim()),r=""),a++}return r.trim()&&t.push(r.trim()),t}var e=t(e),e=l(e),i=[];return e.forEach(function(e){var t,r,o,a;e&&-1!==(r=e.indexOf("{"))&&(t=e.substring(0,r).trim(),r=e.substring(r),t===n?i.push(e):t.startsWith("@")?(o=n,e=(e=r).slice(1,-1),e=l(e),a=[],e.forEach(function(e){var t,r;e&&-1!==(r=e.indexOf("{"))&&(t=e.substring(0,r).trim(),r=e.substring(r),t===o?a.push(e):(e="".concat(o," ").concat(t).concat(r),a.push(e)))}),e="{".concat(a.join(""),"}"),i.push("".concat(t).concat(e))):(e="".concat(n," ").concat(t).concat(r),i.push(e)))}),i.join("")},s=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,r=document.createElement("style"),t=(r.type="text/css",r.id="wptb-general-styles",t?t.insertAdjacentElement("beforebegin",r):(l.currentMode===l.modes.block?l.baseDocument:l.baseDocument.querySelector("head")).appendChild(r),i(e.parentPrefix,e.styles));r.appendChild(document.createTextNode(t))};this.applyStyles=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:l.modes.frontEnd,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document,r=(l.baseDocument=r,l.currentMode=e,l.generalStyles=t,Array.from(l.baseDocument.querySelectorAll(a[e])));r&&r.map(o),e!==l.modes.frontEnd&&e!==l.modes.block||!t||s(t)}}}),function(e,t,r){"undefined"!=typeof module&&"object"===("undefined"==typeof exports?"undefined":_typeof(exports))?module.exports=r():t[e]=r()}("WPTB_Logger",self||global,function(){var t={normal:"#48BB78"};return{prepareMessage:function(e){return"%c WP Table Builder %c {message} ".replace("{message}",e)},prepareMessageStyle:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"normal",e=t[e]?e:"normal";return"background-color: {bgColor} ; padding: 3px; color: #FFF; border-radius: 0 5px 5px 0;".replace("{bgColor}",t[e])},log:function(e){console.log(this.prepareMessage(e),"border-radius:5px 0 0 5px; background-color: #3299D1; padding: 3px; color: #FFF; font-weight: bold;",this.prepareMessageStyle("normal"))}}});var WPTB_CutGlueTable={cutTableHorizontally:function(e,t){if(t&&t.rows[e])for(var r=0;r<e;r++)for(var o=t.rows[r].children,a=0;a<o.length;a++)if(1<o[a].rowSpan&&o[a].rowSpan>e-r){for(var n=o[a].rowSpan-e+r,l=(o[a].rowSpan=e-r,o[a].dataset.sameCellBeforeDivision||(o[a].dataset.sameCellBeforeDivision="r"+r+"c"+a),void 0),l=t.hasOwnProperty("wptbCell")?(l=new t.wptbCell(t.mark)).getDOMElement():document.createElement("td"),i=o[a].getAttribute("style"),i=(l.setAttribute("style",i),l.colSpan=o[a].colSpan,l.rowSpan=n,l.dataset.sameCellBeforeDivision=o[a].dataset.sameCellBeforeDivision,o[a].dataset.xIndex),s=parseInt(i)+parseInt(o[a].colSpan),c=void 0;!c&&s<t.maxCols;)c=t.rows[e].querySelector('[data-x-index="'+s+'"]'),s++;t.rows[e].insertBefore(l,c),WPTB_RecalculateIndexes(t)}},glueTableHorizontally:function(e){if(e){for(var t=_toConsumableArray(e.getElementsByTagName("td")),r=0;r<t.length;r++)if(t[r].hasAttribute("data-same-cell-before-division"))for(var o=t[r].dataset.sameCellBeforeDivision,a=e.querySelectorAll('[data-same-cell-before-division="'+o+'"]'),n=0;n<a.length;
1n++)if(a[n]&&a[n+1]&&a[n].parentNode&&a[n+1].parentNode&&!a[n].parentNode.classList.contains("wptb-row-moving")&&!a[n+1].parentNode.classList.contains("wptb-row-moving")&&a[n+1].dataset.yIndex==parseInt(a[n].dataset.yIndex)+parseInt(a[n].rowSpan)){a[n].rowSpan+=a[n+1].rowSpan;for(var l=_toConsumableArray(a[n+1].children),i=0;i<l.length;i++)a[n].appendChild(l[i]);a[n+1].parentNode.removeChild(a[n+1])}WPTB_RecalculateIndexes(e)}},cutTableVertically:function(e,t){for(var r=0;r<t.rows.length;r++){if(e<t.maxCols&&0!=e&&!t.rows[r].querySelector('[data-x-index="'+e+'"]'))for(var o,a,n=t.rows[r].children,l=void 0,i=n.length,s=void 0,c=0;c<i;c++)if(1<n[c].colSpan&&parseInt(n[c].dataset.xIndex)<e&&parseInt(n[c].dataset.xIndex)+parseInt(n[c].colSpan)>e){l=t.hasOwnProperty("wptbCell")?(l=new t.wptbCell(t.mark)).getDOMElement():document.createElement("td"),o=n[c].rowSpan,a=n[c].colSpan,n[c].colSpan=e-n[c].dataset.xIndex,a=a-n[c].colSpan,n[c].dataset.sameCellBeforeDivision||(n[c].dataset.sameCellBeforeDivision="r"+r+"c"+c);var d=n[c].getAttribute("style"),d=(l.setAttribute("style",d),t.querySelector('[data-x-index="'+e+'"]')),d=(d&&(l.style.width=d.style.width),t.querySelector('[data-y-index="'+r+'"]'));d&&(l.style.height=d.style.height),s=n[c+1]||null,t.rows[r].insertBefore(l,s),l.colSpan=a,l.rowSpan=o,l.dataset.sameCellBeforeDivision=n[c].dataset.sameCellBeforeDivision,r+=o-1;break}WPTB_RecalculateIndexes(t)}},glueTableVertically:function(e){if(e){for(var t=_toConsumableArray(e.getElementsByTagName("td")),r=0;r<t.length;r++)if(t[r].hasAttribute("data-same-cell-before-division"))for(var o=t[r].dataset.sameCellBeforeDivision,a=_toConsumableArray(e.querySelectorAll('[data-same-cell-before-division="'+o+'"]')),n=null,l=0;l<a.length;l++)if(a[l]&&a[l+1]&&!a[l].classList.contains("wptb-column-moving")&&!a[l+1].classList.contains("wptb-column-moving")&&a[l+1].dataset.xIndex==parseInt(a[l].dataset.xIndex)+parseInt(a[l].colSpan)){a[n=null==n?l:n].colSpan+=a[l+1].colSpan;for(var i=_toConsumableArray(a[l+1].children),s=0;s<i.length;s++)a[n].appendChild(i[s]);a[l+1].parentNode.removeChild(a[l+1])}WPTB_RecalculateIndexes(e)}}},WPTB_GetDirectionAfterReconstruction=function(o,a,n,r,l){var i=0,s=o.maxCols,e={},c=[];return l&&l.getDirective(o)?e.switch=function(e){var t=l.getDirective(o),r="desktop";return e&&e.detail&&(r=e.detail.sizeRangeId),c=[a,1],"desktop"!==r?t.hasOwnProperty("modeOptions")&&(e=t.responsiveMode,(t=t.modeOptions[e]).hasOwnProperty("topRowAsHeader")&&t.topRowAsHeader.hasOwnProperty(r)&&t.topRowAsHeader[r]?t.hasOwnProperty("cellStackDirection")&&t.cellStackDirection.hasOwnProperty(r)&&("row"===t.cellStackDirection[r]?(c=[n,2],i=s-1):"column"===t.cellStackDirection[r]&&t.hasOwnProperty("cellsPerRow")&&(i=t.cellsPerRow[r])):i=0):i=0,{type:c,itemsPerHeader:i}}:e.switch=function(e){var t;return c=[a,1],o.classList.contains("wptb-mobile-view-active")?(o.classList.contains("wptb-table-preview-head")&&(c=[n,2])===r&&(i=s-1),t=o.parentNode.parentNode.querySelector(".wptb-preview-table-mobile"),{type:c,itemsPerHeader:i,newTable:t}):{type:c,itemsPerHeader:i}},e};function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){var r;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(r="Object"===(r={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e,t,r){"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports=r():t[e]=r()}("WPTB_SortableTable",self||global,function(){return function(){var U=this.table=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).table,n=(WPTB_RecalculateIndexes(U),this);function t(e,t,r){var o,a,n;"TD"===e.target.tagName&&(o=null==e.offsetX?e.layerX:e.offsetX,a=null==e.offsetY?e.layerY:e.offsetY,n=!1,n="vertical"===t&&e.target.clientWidth-o<=35||"horizontal"===t&&o<=35||n)&&(e.target.clientHeight-35)/2<a&&
1(e.target.clientHeight+35)/2>a?r.classList.add("sortable-hover"):r.classList.remove("sortable-hover")}function c(e){t(e,"vertical",this)}function d(e){t(e,"horizontal",this)}function u(){this.classList.remove("sortable-hover")}function r(e,t){if(e.target&&"TD"===e.target.tagName&&!U.parentNode.classList.contains("wptb-preview-table-manage-cells")){var r=e.currentTarget,o=!1;if("vertical"===t&&e.target.dataset.hasOwnProperty("sortedVertical")){var a=[],n=[];if(this.itemsPerHeader&&this.itemsPerHeader<r.rows.length){WPTB_RecalculateIndexes(r);for(var l=_toConsumableArray(r.rows),i=r.querySelector("tbody")?r.querySelector("tbody"):r,s=0;s<l.length;s++)s<e.target.dataset.yIndex?(a.push(l[s]),i.removeChild(l[s])):s>parseInt(e.target.dataset.yIndex,10)+this.itemsPerHeader&&(n.push(l[s]),i.removeChild(l[s]));WPTB_RecalculateIndexes(r)}var c,d,u=r.querySelectorAll('[data-x-index="'.concat(e.target.dataset.xIndex,'"]'));(u=_toConsumableArray(u)).map(function(e){c=(c=parseInt(e.rowSpan,10))||1,d=e.dataset.yIndex,WPTB_CutGlueTable.cutTableHorizontally(d,r),d+=c,WPTB_CutGlueTable.cutTableHorizontally(d,r)});for(var W,p=[],z=0,M=[],b=0;b<u.length;b++){var f=Q(e,r,u,b,z,"vertical");if(f&&f.hasOwnProperty("i"))u=f.tds,b=f.i;else{for(var y=(u=f?f.tds:u)[b],h=(h=parseInt(y.rowSpan,10))||1,z=parseInt(y.dataset.yIndex,10)+h,f=Z(y),m=[],v=0;v<h;v++)m.push(r.rows[parseInt(y.dataset.yIndex,10)+v]),M.push(parseInt(y.dataset.yIndex,10)+v);0<y.dataset.yIndex?p.push({rowsTd:m,value:f}):W=m}}var D=X(e,"sortedVertical");if(!D)return;if(p.length&&p.sort(function(e,t){return J(D,e,t)}),p.unshift({rowsTd:W}),p.length<r.rows.length)for(var N,w=0;w<r.rows.length;w++)-1<M.indexOf(w)||((N=[]).push(r.rows[w]),p.push({rowsTd:N}));var g,H,q,S=r.querySelector("tbody");S.innerHTML="",p.map(function(e){e.rowsTd.map(function(e){S.appendChild(e)})}),a.length&&(g=r.querySelector("tbody")?r.querySelector("tbody"):r)&&(H=g.querySelector("tr"),a.map(function(e){g.insertBefore(e,H)})),n.length&&(q=r.querySelector("tbody")?r.querySelector("tbody"):r,S)&&n.map(function(e){q.appendChild(e)}),WPTB_RecalculateIndexes(r),WPTB_CutGlueTable.glueTableHorizontally(r),o=!0}else if("horizontal"===t&&"0"===e.target.dataset.xIndex){var T,C,A=r.querySelectorAll('[data-y-index="'.concat(e.target.dataset.yIndex,'"]'));(A=_toConsumableArray(A)).map(function(e){T=(T=parseInt(e.colSpan,10))||1,C=e.dataset.xIndex,WPTB_CutGlueTable.cutTableVertically(C,r),C+=T,WPTB_CutGlueTable.cutTableVertically(C,r)});for(var F,_=[],V=0,x=0;x<A.length;x++){var E=Q(e,r,A,x,V,"horizontal");if(E&&E.hasOwnProperty("i"))A=E.tds,x=E.i;else{for(var P=(A=E?E.tds:A)[x],O=(O=parseInt(P.colSpan,10))||1,V=parseInt(P.dataset.xIndex,10)+O,E=Z(P),k=[],I=0;I<O;I++){var K=_toConsumableArray(r.querySelectorAll('[data-x-index="'.concat(parseInt(P.dataset.xIndex,10)+I,'"]')));k.push(K)}0<P.dataset.xIndex?_.push({columnsTd:k,value:E}):F=k}}var $=X(e,"sortedHorizontal");if(!$)return;if(_.length&&_.sort(function(e,t){return J($,e,t)}),_.unshift({columnsTd:F}),_.length<r.maxCols)for(var G=r.maxCols-_.length,j=0;j<G;j++){var Y=_toConsumableArray(r.querySelectorAll('[data-x-index="'.concat(parseInt(r.maxCols,10)-parseInt(G,10)+j,'"]')));_.push({columnsTd:[Y]})}for(var L=0;L<r.rows.length;L++)r.rows[L].innerHTML="";_.map(function(e){e.columnsTd.map(function(e){e.map(function(e){r.rows[e.dataset.yIndex].appendChild(e)})})}),WPTB_RecalculateIndexes(r),WPTB_CutGlueTable.glueTableVertically(r),o=!0}if(o){for(var R=_toConsumableArray(r.getElementsByTagName("td")),B=0;B<R.length;B++)R[B].hasAttribute("data-same-cell-before-division")&&R[B].removeAttribute("data-same-cell-before-division");r.hasOwnProperty("tableSM")&&(new(r.tableSM())).tableStateSet(),this.reassignElementsStyles("td"),this.reassignElementsStyles("tr")}}}function X(e,t){return!(!e.currentTarget||!e.currentTarget.classList.contains("wptb-preview-table")&&!e.currentTarget.classList.contains("wptb-preview-table-mobile"))&&(e.target.dataset[t]&&"ask"!==e.target.dataset[t]?e.target.dataset[t]="ask":e.target.dataset[t]="desk",e.target.dataset[t])}function J(e,t,r){var o=0<arguments.length&&void 0!==e?e:"ask",a=(1<arguments.length?t:void 0).value,n=(2<arguments.length?r:void 0).value;return parseInt(a)&&parseInt(n)&&(a=parseInt(a),n=parseInt(n)),"ask"===o?a<n?-1:a===n?0:1:a<n?1:a===n?0:-1}function Z(e){for(var t=e.querySelectorAll(".wptb-text-container"),t=_toConsumableArray(t),r="",o=0;o<t.length;o++)r+=t[o].innerText,o!==t.length-1&&(r+=" ");return r}function Q(e,t,r,o,a,n){var l,i,s,c,d,u,p,b=r[o],f=!1;if("vertical"===n?(i="colSpan",s="data-y-index",c="yIndex",d="xIndex",u="rowSpan",p=t.rows.length):"horizontal"===n&&(i="rowSpan",s="data-x-index",c="xIndex",d="yIndex",u="colSpan",p=t.maxCols),0<b.dataset[c]-a)for(var y=t.querySelectorAll("[".concat(s,'="').concat(a,'"]')),h=0;h<y.length;h++)if(l=(l=y[h][i])||1,y[h].dataset[d]<e.target.dataset[d]&&parseInt(y[h].dataset[d],10)+parseInt(l,10)>e.target.dataset[d]){r.splice(o,0,y[h]),f=!0,o--;break}if(f)return{tds:r,i:o};n=(n=parseInt(b[u],10))||1;if(o==r.length-1&&parseInt(b.dataset[c],10)+n<p){y=t.querySelectorAll("[".concat(s,'="').concat(parseInt(b.dataset[c],10)+n,'"]'));for(var m=0;m<y.length;m++)if(l=(l=y[m][i])||1,y[m].dataset[d]<e.target.dataset[d]&&parseInt(y[m].dataset[d],10)+parseInt(l,10)>e.target.dataset[d]){r.push(y[m]),f=!0;break}}return!!f&&{tds:r}}return this.itemsPerHeader=0,this.tableMaxCols=U.maxCols,this.cellsStylesScheme={},this.rowsStylesScheme={},this.sortModeSwitcher=function(e,t){t&&(this.sortModeSwitcher("horizontal",!1),this.sortModeSwitcher("vertical",!1)),"vertical"===e?(this.table.removeEventListener("click",this.sortableTableVerticalStart,!1),t?(this.sortingCellMouseMoveSwitcher("vertical",!0),this.table.addEventListener("click",this.sortableTableVerticalStart,!1),this.table.dataset.wptbSortableTableVertical="1",this.createTableElementsStylesScheme("td"),this.createTableElementsStylesScheme("tr")):(this.sortingCellMouseMoveSwitcher("vertical",!1),delete this.table.dataset.wptbSortableTableVertical)):"horizontal"===e&&(this.table.removeEventListener("click",this.sortableTableHorizontalStart,!1),t?(this.sortingCellMouseMoveSwitcher("horizontal",!0),this.table.addEventListener("click",this.sortableTableHorizontalStart,!1),this.table.dataset.wptbSortableTableHorizontal="1",this.createTableElementsStylesScheme("td"),this.createTableElementsStylesScheme("tr")):(this.sortingCellMouseMoveSwitcher("horizontal",!1),delete this.table.dataset.wptbSortableTableHorizontal))},this.tableObjectChange=function(){var e=!(0<arguments.length&&void 0!==arguments[0])||arguments[0];return this.table.classList.contains("wptb-mobile-view-active")&&e?this.table=U.parentNode.parentNode.querySelector(".wptb-preview-table-mobile"):this.table.classList.contains("wptb-preview-table-mobile")&&!e&&(this.table=U.parentNode.querySelector(".wptb-preview-table")),this.table},this.createTableElementsStylesScheme=function(e){this.tableObjectChange();var t=this.table.querySelectorAll(e);if(t.length)for(var r=0;r<t.length;r++){var o=t[r],a=window.getComputedStyle(o,null).getPropertyValue("background-color"),n="";"td"===e?(n=o.dataset.xIndex+"-"+o.dataset.yIndex,this.cellsStylesScheme[n]={backgroundColor:a}):"tr"===e&&(n=String(r),this.rowsStylesScheme[n]={backgroundColor:a})}this.tableObjectChange(!1)},this.reassignElementsStyles=function(e){this.tableObjectChange();var t,r=this.table.querySelectorAll(e);if("td"===e?t=this.cellsStylesScheme:"tr"===e&&(t=this.rowsStylesScheme),r.length)for(var o=0;o<r.length;o++){var a=r[o],n="";if("td"===e?n=a.dataset.xIndex+"-"+a.dataset.yIndex:"tr"===e&&(n=o),t.hasOwnProperty(n)){var l,i=t[n];for(l in i)a.style[l]=i[l]}}this.tableObjectChange(!1)},this.sortableTableInitialization=function(e){var t,r,o,a;this.table.dataset.wptbSortableTableVertical&&"1"===this.table.dataset.wptbSortableTableVertical?(t="vertical",r="horizontal"):this.table.dataset.wptbSortableTableHorizontal&&"1"===this.table.dataset.wptbSortableTableHorizontal&&(t="horizontal",r="vertical"),t&&"string"==typeof t&&r&&"string"==typeof r&&(o=WPTB_GetDirectionAfterReconstruction(this.table,t,r,"vertical",e),"object"===_typeof(o))&&o.hasOwnProperty("switch")&&((a=function(e){var t,e=o.switch(e);"object"===_typeof(e)&&(this.itemsPerHeader=e.itemsPerHeader,e.hasOwnProperty("newTable")?(t=this.table,this.table=e.newTable,this.sortModeSwitcher(e.type[0],!0),this.table=t):this.sortModeSwitcher(e.type[0],!0))}).call(n),this.table.addEventListener("table:rebuilt",function(e){a.call(n,e)},!1))},this.sortingCellMouseMoveSwitcher=function(e,t){var r=this;function o(e,t,r){e.removeEventListener("mousemove",t,!1),e.removeEventListener("mouseleave",u,!1),r&&(e.addEventListener("mousemove",t,!1),e.addEventListener("mouseleave",u,!1))}function a(e,t,r){r?e.dataset[t]&&"desk-disabled"===e.dataset[t]?e.dataset[t]="desk":e.dataset[t]="ask":"ask"===e.dataset[t]?e.dataset[t]="ask-disabled":"desk"===e.dataset[t]&&(e.dataset[t]="desk-disabled")}var n=this.table.querySelectorAll("td");if(n.length&&(n=_toConsumableArray(n)).map(function(e){o(e,c,!1),a(e,"sortedVertical",!1),o(e,d,!1),a(e,"sortedHorizontal",!1)}),t)if("vertical"===e)for(var l=this.table.rows.length,i=0;0<l;){var s=this.table.querySelectorAll('[data-y-index="'.concat(i,'"]'));(s=_toConsumableArray(s)).map(function(e){o(e,c,t),a(e,"sortedVertical",t)}),this.itemsPerHeader?(l-=this.itemsPerHeader+1,i+=this.itemsPerHeader+1):l=0}else"horizontal"===e&&(n=this.table.querySelectorAll('[data-x-index="0"]'),(n=_toConsumableArray(n)).map(function(e){2<r.table.querySelectorAll('[data-y-index="'.concat(e.dataset.yIndex,'"]')).length&&(o(e,d,t),a(e,"sortedHorizontal",t))}))},this.sortableTableVerticalStart=function(e){r.call(n,e,"vertical")},this.sortableTableHorizontalStart=function(e){r.call(n,e,"horizontal")},this}});var WPTB_RecalculateIndexes=function(e){for(var t,r=e.getElementsByTagName("tr"),o=0,a=0,n=[],l=0;l<r.length;l++){t=r[l].getElementsByTagName("td"),null==n[l]&&(n[l]=[]);for(var i=0,s=0;s<t.length;s++){if(null!=n[l][s])for(var c=0;c<100;c++){if(null==n[l][i]){n[l][i]=t[s],t[s].dataset.xIndex=i;break}i++}else n[l][s]=t[s],t[s].dataset.xIndex=i;if(t[s].dataset.yIndex=l,1<t[s].colSpan)for(var d=1;d<t[s].colSpan;d++)n[l][++i]="tdDummy";if(1<t[s].rowSpan)for(var u=1;u<t[s].rowSpan;u++){null==n[l+u]&&(n[l+u]=[]);for(var p=0;p<t[s].colSpan;p++)n[l+u][i-t[s].colSpan+1+p]="tdDummy"}i++}t.length>
vendor: 5,303 bytes, line 1
1o&&(o=t.length),0==l&&(a=i)}e.columns=o,e.maxCols=a};function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){var r;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(r="Object"===(r={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}function _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,a,n,l,i=[],s=!0,c=!1;try{if(n=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(o=n.call(r)).done)&&(i.push(o.value),i.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw a}}return i}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function ownKeys(t,e){var r,o=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,r)),o}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(r),!0).forEach(function(e){_defineProperty(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!=_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ownKeys(t,e){var r,o=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,r)),o}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(r),!0).forEach(function(e){_defineProperty(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!=_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){var r;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(r="Object"===(r={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}function ownKeys(t,e){var r,o=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,r)),o}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?ownKeys(Object(r),!0).forEach(function(e){_defineProperty(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!=_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e,t,r){"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports=r():t[e]=r()}("WPTB_ResponsiveFrontend",self||global,function(){function o(e,t){var r=1<arguments.length&&void 0!==t?t:"log";if("undefined"!=typeof process&&"development"===process.env.NODE_ENV){if(!console[r])throw new Error("no logging type found with given type value of [".concat(r,"]"));console[r]("[WPTB]: ".concat(e))}}function p(e){var s=this,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;return this.element=e,this.referenceObject=t,this.mergedRenderStatus=!0,this.mergedCells={row:[],column:[]},this.getMergedRenderStatus=function(){return s.mergedRenderStatus},this.setMergedRenderStatus=function(e){s.mergedRenderStatus=e},null!==this.referenceObject&&(this.element=e.cloneNode(!0)),this.modifications={},this.spans={row:1,col:1},this.remainingSpans={row:0,col:0},this.cacheSpanValues=function(){Object.keys(s.spans).map(function(e){var t;Object.prototype.hasOwnProperty.call(s.spans,e)&&(t=s.spans[e],s.spans[e]=s.element.getAttribute("".concat(e,"Span"))||t)})},this.cacheSpanValues(),this.getSpan=function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1]?s.getElement().getAttribute("".concat(e,"Span")):s.spans[e];if(t)return t;throw new Error("no span value found with the given type of [".concat(e,"]"))},this.getElement=function(){return s.element},e||(this.element=document.createElement("td")),this.setAttribute=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]&&arguments[2],o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:",",a=s.getElement()[e],n=("function"!=typeof a&&"object"!==_typeof(a)||(a=s.getElement().getAttribute(e)),a=s.modifications[e]?s.modifications[e].default:a);r?n+="".concat(n).concat(o).concat(t):n=t,s.modifications[e]={value:n,default:a},s.getElement()[e]=n},this.setSpan=function(e,t){if(null===s.referenceObject){var r=s.getSpan(e)-t<0?s.getSpan(e):t;s.setAttribute("".concat(e,"Span"),r),s.remainingSpans[e]=s.getSpan(e)-r;for(var o=0;o<r-1;o+=1)s.mergedCells[e]&&s.mergedCells[e][o]&&s.mergedCells[e][o].setMergedRenderStatus(!1)}else{if(!s.getMergedRenderStatus())return!1;var a=s.referenceObject.remainingSpans[e];if(0===a)return!1;var t=a-t<0?a:t,n=a-t;if(s.referenceObject.remainingSpans[e]=n,s.setAttribute("".concat(e,"Span"),t),0!=n)for(var n=s.referenceObject.mergedCells[e].length-a+1,l=n+t-1,i=n;i<l;i+=1)s.mergedCells[e][i].setMergedRenderStatus(!1)}return!0},this.resetAttribute=function(e){s.modifications[e]&&(s.getElement()[e]=s.modifications[e].default,s.modifications[e]=void 0)},this.resetAllAttributes=function(){Object.keys(s.modifications).map(function(e){Object.prototype.hasOwnProperty.call(s.modifications,e)&&s.resetAttribute(e)})},{getElement:this.getElement,el:this.element,setAttribute:this.setAttribute,resetAllAttributes:this.resetAllAttributes,getSpan:this.getSpan,setSpan:this.setSpan,mergedCells:this.mergedCells,setMergedRenderStatus:this.setMergedRenderStatus,getMergedRenderStatus:this.getMergedRenderStatus}}function t(e){var u=this;return this.tableElement=e,this.parsedTable=[],this.rowCache=[],this.originals={rows:[]},this.rowColors={header:null,even:null,odd:null},this.addToParsed=function(e,t,r){u.parsedTable[e]||(u.parsedTable[e]=[]),u.parsedTable[e][t]=r},this.parseTable=function(){var e=Array.from(u.tableElement.querySelectorAll("tr"));e.filter(function(e){return"true"!==e.dataset.wptbResponsiveIgnore}).map(function(e,c){u.originals.rows.push(e);var e=Array.from(e.querySelectorAll("td")),d=0;e.map(function(e,t){var r=new p(e),o=(u.addToParsed(c,d,r),d+=1,r.getSpan(p.spanTypes.row)),a=r.getSpan(p.spanTypes.column);if(1<o)for(var n=1;n<o;n+=1){var l=new p(e,r);r.mergedCells.row.push(l),u.addToParsed(c+n,t,l)}
1if(1<a)for(var i=1;i<a;i+=1){var s=new p(e,r);r.mergedCells.column.push(s),u.addToParsed(c,d,s),d+=1}})}),u.parseRowColors(e)},this.parseRowColors=function(e){if(e&&!(e.length<=0)){for(var t=u.tableElement.dataset.wptbHeaderBackgroundColor,r=u.tableElement.dataset.wptbEvenRowBackgroundColor,o=u.tableElement.dataset.wptbOddRowBackgroundColor,a=(u.rowColors.header=void 0!==t?t:""===e[0].style.backgroundColor?null:e[0].style.backgroundColor,1<=e.length/3?0:1===e.length?2:(e.length-1)%2),n=0;n<a;n+=1){var l=document.createElement("tr");u.tableElement.querySelector("tbody").appendChild(l),e.push(l)}u.rowColors.even=r||getComputedStyle(e[1]).backgroundColor,u.rowColors.odd=r?o:getComputedStyle(e[2]).backgroundColor;for(var i=0;i<a;i+=1)e[e.length-(i+1)].remove()}},this.addRow=function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,o=(Array.isArray(e)||(e=[e]),u.tableElement.querySelector("tbody")),r=t?u.originals.rows[r]:((t=document.createRange()).setStart(o,0),t.createContextualFragment('<tr class="'.concat(e.join(" "),'"></tr>')).childNodes[0]);return o.appendChild(r),u.rowCache.push(r),{el:r,id:u.rowCache.length-1}},this.clearTable=function(){u.rowCache=[],u.tableElement.querySelector("tbody").innerHTML=""},this.getCell=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]&&arguments[2];try{if(u.parsedTable[e][t])return r?u.parsedTable[e][t]:u.parsedTable[e][t].el}catch(e){}return o("no cell found at the given address of [".concat(e,"-").concat(t,"]"),"warn"),null},this.appendElementToRow=function(e,t){t=u.rowCache[t];e&&t&&t.appendChild(e)},this.getParsedTable=function(){return u.parsedTable},this.parseTable(),{addRow:this.addRow,clearTable:this.clearTable,getCell:this.getCell,appendElementToRow:this.appendElementToRow,el:this.tableElement,rowColors:this.rowColors,getParsedTable:this.getParsedTable}}p.spanTypes={row:"row",column:"col"};var r={query:".wptb-preview-table"};return function(){function s(e,t){var r;e.dataset.wptbHorizontalScrollStatus&&(r=e.parentNode,t?(t=e.dataset.wptbTableContainerMaxWidth,r.style.width="".concat(t,"px")):r.style.width="")}function c(e){return!!e&&e.responsiveEnabled}function d(e,t){var r;return"desktop"!==(t=u.calculateRangeId(t,e.breakpoints))&&(r=e.responsiveMode,(e=e.modeOptions[r]).disabled)&&!e.disabled[t]}function o(e){var t=document.body.clientWidth,r=u.getDirective(e);if(r&&r.relativeWidth)switch(r.relativeWidth){case"window":t=document.body.clientWidth;break;case"container":t=e.parentNode.parentNode.parentNode.clientWidth;break;default:t=document.body.clientWidth}return t}var u=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return this.options=_objectSpread(_objectSpread({},r),e),this.elements=Array.from(document.querySelectorAll(this.options.query)),this.elementObjects=this.elements.map(function(e){return{el:e,tableObject:new t(e)}}),this.getDirective=function(e){e=e.dataset.wptbResponsiveDirectives;return e?JSON.parse(atob(e)):null},this.autoBuild=function(e,t,r,o){var a=r.cellStackDirection[t],n=r.topRowAsHeader[t],l=r.cellsPerRow[t],i=!!r.staticTopRow&&r.staticTopRow[t],r=(void 0===r.repeatMergedHeader||!0===r.repeatMergedHeader[t])&&!!n&&(!r.repeatMergedHeader||r.repeatMergedHeader[t]);o.clearTable(),"desktop"===t?(s(e,!0),u.buildDefault(o)):(s(e,!1),u.autoDirectionBuild(o,a,n,i,l,r))},this.convertTableObjectToCells=function(e){for(var t=e.getParsedTable(),r=t.length,o=t.reduce(function(e,t){return Math.max(e,t.length)},0),a={},n={},l=0;l<r;l++)for(var i=t[l],s=(a[l]=a[l]||{},n[l]||0),c=0;c<i.length;c++){var d=i[c],u=d.el.colSpan,p=d.el.rowSpan;if(a[l][s]={value:d,rowSpan:p,colSpan:u,hidden:!1,col:s,row:l,shadow:!1,originalRow:l,originalCol:s},1<u||1<p)for(var b=0;b<p;b++)for(var f=0;f<u;f++)0===b&&0===f||(a[l+b]=a[l+b]||{},a[l+b][s+f]={rowSpan:1,colSpan:1,hidden:!0,col:s+f,row:l+b,shadow:!1,originalRow:l+b,originalCol:s+f});if(1<p&&0===s)for(var y=1;y<p;y++)n[l+y]=u;s+=u}for(var h=[],m=0;m<r;m++){for(var v=[],w=0;w<o;w++)v.push(a[m][w]);h.push(v)}return h},this.transformTable=function(e,t){var r=t.transpose,o=t.repeatFirst,a=t.columnCount;if(r){for(var n=Array.from({length:e[0].length},function(){return[]}),l=0;l<e[0].length;l++)for(var i=0;i<e.length;i++){n[l][i]=e[i][l];var s=n[l][i].rowSpan,c=n[l][i].colSpan;n[l][i].rowSpan=c,n[l][i].colSpan=s}e=n}var d=e;e=[];for(var u=0;u<d.length;u++){for(var p=[],b=0;b<d[u].length;b++)p.push(_objectSpread({},d[u][b]));e.push(p)}if(a>=e[0].length)return e;var f={},y=0,h=o&&1<e.length;if(h){var m=0,y=1;if(e.forEach(function(e,t){e=e[0];f[t]={cell:e,colspan:e.colSpan},m=Math.max(m,e.colSpan)}),a<=m)return e}for(var v={},w=0;w<e.length;w++)v[w]=h?{filled:f[w].colspan,rows:[[f[w].cell]]}:{filled:0,rows:[[]]};for(var g=0;g<e.length;g++)for(var S=e[g],T=v[g],C=T.rows[0],A=y;A<S.length;A++){var _=S[A],x=(C.push(_),_.colSpan),E=a-v[g].filled,E=Math.min(x,E);0===E&&console.log("Space used is 0"),T.filled+=1,E<x&&(_.colSpan=E,x=_objectSpread(_objectSpread({},_),{},{colSpan:x-E,rowSpan:_.rowSpan,hidden:!1,shadow:!0}
1),e[g][A+E]=x),C.length===a&&(C=[],T.filled=0,T.rows.push(C),h)&&(T.filled=f[g].colspan,C.push(f[g].cell))}for(var P=[],O=v[0].rows.length,k=0;k<O;k++)for(var I=0;I<e.length;I++){var j=v[I].rows[k];(1<j.length||!h)&&P.push(j),P.length%e.length==0&&0<P.length&&(P.length-1,0)}return P},this.buildTableFromCells=function(e,t){for(var r=0;r<e.length;r++)for(var o=t.addRow("wptb-row"),a=0;a<e[r].length;a++){var n,l,i=e[r][a];i.hidden||((n=null==(n=i.value)?void 0:n.el)?(n=n.cloneNode(!0),i.shadow&&(n.innerHTML=""),l=n.style.backgroundColor||n.style.background,l=0===i.originalRow?l||t.rowColors.header||t.rowColors.odd:i.originalRow%2==0?l||t.rowColors.even:l||t.rowColors.odd,n.style.backgroundColor=l):n=document.createElement("td"),n.colSpan=i.colSpan,n.rowSpan=i.rowSpan,t.appendElementToRow(n,o.id))}},this.autoDirectionBuild=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]&&arguments[2],o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:1,o={transpose:"column"!==t,repeatFirst:r,columnCount:o+(r?1:0)},r=u.convertTableObjectToCells(e),r=u.transformTable(r,o);u.buildTableFromCells(r,e)},this.buildDefault=function(e){for(var t=e.getParsedTable(),r=t.length,o=t.reduce(function(e,t){return Math.max(e,t.length)},0),a=0;a<r;a+=1)for(var n=e.addRow("",!0,a).id,l=0;l<o;l+=1){var i=e.getCell(a,l,!0);i&&null===i.referenceObject&&(i.resetAllAttributes(),e.appendElementToRow(i.getElement(),n))}},this.calculateRangeId=function(e,t){var r="desktop";return e<=t.mobile.width?r="mobile":e<=t.tablet.width&&(r="tablet"),r},this.rebuildTable=function(e,t,r){var o=u.getDirective(e);if(o&&c(o)){var a=o.responsiveMode,n=u["".concat(a,"Build")],l=(t=t||e.getBoundingClientRect().width,u.calculateRangeId(t,o.breakpoints));if(!n)throw new Error("No build mode named as [".concat(a,"] found."));var i=o.modeOptions[a],t=(d(o,t)?n.call(u,e,l,i,r):(r.clearTable(),u.buildDefault(r)),WPTB_RecalculateIndexes(e),new CustomEvent("table:rebuilt",{detail:{sizeRangeId:l,topRowAsHeader:o.modeOptions[a].topRowAsHeader}}));e.dispatchEvent(t),e&&l&&(e.dataset.wptbBreakpoint=l)}},this.rebuildTables=function(r){u.elementObjects.map(function(e){var t=r;r||(t=o(e.el)),u.rebuildTable(e.el,t,e.tableObject)})},this.calculateRangeIdFromTable=function(e){var t=u.getDirective(e),e=o(e);return u.calculateRangeId(e,t.breakpoints)},this.isResponsiveEnabledForCurrentBreakpoint=function(e){var t=u.getDirective(e);return t&&c(t)&&d(t,o(e))},this.bindRebuildToResize=function(){window.addEventListener("resize",function(){u.rebuildTables()})},this.options.bindToResize&&this.bindRebuildToResize(),this.getTableElementObject=function(t){var e=u.elementObjects.filter(function(e){e=e.el.parentNode,e=new RegExp(/^wptb-table-id-(\d+)$/).exec(e.getAttribute("id"));return e&&e[1]&&Number.parseInt(e[1],10)===t});return _slicedToArray(e,1)[0]},this.markRowForResponsive=function(e,t){e.dataset.wptbResponsiveIgnore=JSON.stringify(t)},{rebuildTables:this.rebuildTables,rebuildTable:this.rebuildTable,getDirective:this.getDirective,calculateRangeId:this.calculateRangeId,calculateRangeIdFromTable:this.calculateRangeIdFromTable,isResponsiveEnabledForCurrentBreakpoint:this.isResponsiveEnabledForCurrentBreakpoint,getTableElementObject:this.getTableElementObject,markRowForResponsive:this.markRowForResponsive,calculateInnerSize:o,TableObject:t}}}),function(e,t,r){t[e]=r()}("WPTB_StylePass",self||global,function(){return new function(){var l=this;this.options={stylesheets:{}},this.insertShadowRoot=function(e,t){var r=t.parentNode,o=Array.from(r.children),a=o.indexOf(t),n=0<a-1?null:o[a-1],o=a+1>=o.length?null:o[a+1];l.prepareAllStylesheets(l.options.stylesheets,e.shadowRoot),l.borrowFromTheme(t),e.shadowRoot.appendChild(t),n?n.insertAdjacentElement("afterend",e):o?o.insertAdjacentElement("beforebegin",e):r.appendChild(e)},this.borrowFromTheme=function(e){var e=e.querySelector("table"),t=getComputedStyle(e).fontFamily;e.style.fontFamily=t},this.init=function(e){l.options=_objectSpread(_objectSpread({},l.options),e);e=Array.from(document.querySelectorAll("div .wptb-table-container"));0<e.length&&e.map(l.setupStylePass)},this.checkTableEligibility=function(e){e=e.querySelector("table");return!!e&&(l.options.settings.disableThemeStylesForAll||e.dataset.disableThemeStyles)},this.setupStylePass=function(e){var t,r,o;l.checkTableEligibility(e)&&((t=document.createElement("div")).classList.add("wptb-shadow-root-container"),r=(o=e.querySelector("table")).dataset.wptbTableContainerMaxWidth,o=o.dataset.wptbHorizontalScrollStatus,r&&!o&&(t.style.maxWidth="".concat(r,"px")),t.attachShadow({mode:"open"}),l.insertShadowRoot(t,e))},this.prepareAllStylesheets=function(r,o){Object.keys(r).map(function(t){if(Object.prototype.hasOwnProperty.call(r,t))switch(t){case"create":Object.keys(r[t]).map(function(e){Object.prototype.hasOwnProperty.call(r[t],e)&&l.prepareStylesheet(e,r[t][e],o)});break;case"copy":r[t].map(function(e){l.copyStylesheet(e,o)})}})},this.copyStylesheet=function(e,t){e=document.querySelector(e);e&&t.appendChild(e.cloneNode(!0))},this.prepareStylesheet=function(e,t,r){var o=document.createElement("link");o.setAttribute("id",e),o.setAttribute("href",t),o.setAttribute("rel","stylesheet"),o.setAttribute("media","all"),r.appendChild(o)}}}),function(e,t,r){"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports=r():t[e]=r()}("WPTB_LazyLoad",self||global,function(){function o(e){function t(e){var t=l(e);if(t){for(var r=arguments.length,o=new Array(1<r?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];t.apply(n,o)}}var n=this,r=_objectSpread(_objectSpread({},{name:"",speed:8,step:10,hooks:{},direction:"left",perspective:1e3,flashColor:"#FFFFFF"}),e),o="wptb-lazy-load-styles",l=(this.getOptions=function(){return _objectSpread({},r)},this.calculateDuration=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:.1,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1;return Math.max(e,t)-Math.abs(t-e)/r.step*r.speed},this.calculateAnimationDirection=function(){var e=["X","Y"],t=0<arguments.length&&void 0!==arguments[0]&&arguments[0]?1:0;return["left","right"].includes(r.direction)?e[(0+t)%2]:e[(1+t)%2]},this.calculateDirectionConstant=function(){return(0<arguments.length&&void 0!==arguments[0]&&arguments[0]?-1:1)*(["left","up"].includes(n.getOptions().direction)?1:-1)},function(e){if(Object.prototype.hasOwnProperty.call(r.hooks,e)){e=r.hooks[e];if("function"==typeof e)return e}return null});this.getBufferElement=function(e){return e.parentNode.querySelector(".".concat("wptb-lazy-load-buffer-element"))},this.removeBufferElement=function(e){var t,e=n.getBufferElement(e);e&&((t=e.parentNode).removeChild(e),t.classList.remove("wptb-lazy-load-buffer-element-container"))},this.addStylesheet=function(e,t){var r=t.querySelector('style[id="'.concat(o,'"]')),t=(r||((r=t.createElement("style")).id=o,r.type="text/css",t.head.appendChild(r)),document.createTextNode(e));r.innerHTML="",r.appendChild(t)},this.beforeAnimation=function(e){t("beforeAnimation",e)},this.animate=function(e){t("animate",e)},this.afterAnimation=function(e){t("afterAnimation",e),delete n}}function e(r){this.getAnimation=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return r[e]?new o(_objectSpread(_objectSpread({},r[e]),t)):new o({})}}var s={none:{hooks:{animate:function(e){this.removeBufferElement(e)}}},slideIn:{hooks:{beforeAnimation:function(e){e.parentNode.style.overflow="hidden",e.style.transform="translate".concat(this.calculateAnimationDirection(),"(").concat(100*this.calculateDirectionConstant(),"%)")},animate:function(e){this.removeBufferElement(e),e.style.transition="transform ".concat(this.calculateDuration(),"s ease-out"),e.style.transform="translate".concat(this.calculateAnimationDirection(),"(0)")}
1}},growSling:{hooks:{beforeAnimation:function(e){e.style.transform="scale(0.1)"},animate:function(e){this.removeBufferElement(e),e.style.transition="transform ".concat(this.calculateDuration(),"s cubic-bezier(0.68, -0.55, 0.27, 1.55)"),e.style.transform="scale(1)"}}},flash:{hooks:{beforeAnimation:function(e){var t=document.createElement("div"),t=(t.classList.add("wptb-flash-element"),e.parentNode.classList.add("wptb-lazy-load-buffer-element-container"),e.insertAdjacentElement("afterend",t),"@keyframes wptb-flash {0% {opacity:1;}100% {opacity: 0;}} .wptb-flash-element {position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; background-color: ".concat(this.getOptions().flashColor,"}.wptb-flash-animation {animation: wptb-flash ").concat(this.calculateDuration(),"s forwards ease-out}"));this.addStylesheet(t,e.ownerDocument)},animate:function(t){this.removeBufferElement(t);var r=t.parentNode.querySelector(".wptb-flash-element");r&&(t.parentNode.classList.add("wptb-lazy-load-buffer-element-container"),r.addEventListener("animationend",function(e){"wptb-flash"===e.animationName&&(t.parentNode.classList.remove("wptb-lazy-load-buffer-element-container"),r.remove())}),r.classList.add("wptb-flash-animation"))}}},flip:{hooks:{beforeAnimation:function(e){var t=e.parentNode,t=(t.classList.add("wptb-lazy-load-card-container"),null!=(t=t.parentNode)&&t.classList.add("wptb-lazy-load-perspective-base"),e.classList.add("wptb-lazy-load-card-back","wptb-lazy-load-hidden-backface"),this.getBufferElement(e).classList.add("wptb-lazy-load-hidden-backface","wptb-lazy-load-card-front"),this.calculateAnimationDirection(!0)),r="".concat(180*this.calculateDirectionConstant(!0),"deg"),t=".wptb-lazy-load-perspective-base{perspective: ".concat(this.getOptions().perspective,"px;} .wptb-lazy-load-card-container{ transform-style: preserve-3d; transition: transform ").concat(this.calculateDuration(),"s ease-out; } .wptb-lazy-load-card-container[data-wptb-card-flip='true']{transform: rotate").concat(t,"(").concat(r,")} [data-wptb-card-flip='true'] .wptb-lazy-load-card-front svg{ animation: none !important; opacity: 0.2;} .wptb-lazy-load-card-back { transform: rotate").concat(t,"(").concat(r,")} .wptb-lazy-load-hidden-backface{backface-visibility: hidden;}");this.addStylesheet(t,e.ownerDocument)},animate:function(t){var r=this,o=t.parentNode;o.addEventListener("transitionend",function(e){"transform"===e.propertyName&&r.removeBufferElement(t),o.classList.remove("wptb-lazy-load-card-container","wptb-lazy-load-flip"),o.parentNode.classList.remove("wptb-lazy-load-perspective-base"),t.classList.remove("wptb-lazy-load-card-back","wptb-lazy-load-hidden-backface")}),o.dataset.wptbCardFlip="true"}}}};return new function(){function r(e,l){var t,i=2<arguments.length&&void 0!==arguments[2]&&arguments[2],s=3<arguments.length&&void 0!==arguments[3]&&arguments[3];e.filter(function(e){return"false"===e.dataset.wptbLazyLoadStatus}).map(function(e){var t,r,o,a,n;i&&(t=e,(o=document.createElement("div")).classList.add(d),o.style.backgroundColor=c.backgroundColor,c.iconSvg&&(o.innerHTML='<div class="wptb-lazy-load-buffer-icon-wrapper wptb-plugin-filter-box-shadow-md">'.concat(c.iconSvg,"</div>"),r=o.querySelector("svg"),(n=o.querySelector(".wptb-lazy-load-buffer-icon-wrapper")).style.width="".concat(c.iconSize,"px"),n.style.height="".concat(c.iconSize,"px"),n.dataset.wptbLazyLoadIconAnimation=c.iconAnimation,r)&&(r.style.fill=c.iconColor),t.insertAdjacentElement("afterend",o),t.parentNode.classList.add(u),p.beforeAnimation(t)),(!c.forceMode||s)&&(a=e,n=l,c.forceMode||b(a,n))&&(a.dataset.wptbLazyLoadStatus="true",a.addEventListener("load",c.delay?function(){setTimeout(function(){f({target:a})},1e3*c.delay)}:f),a.src=a.dataset.wptbLazyLoadTarget)}),t=window.scrollY,n.lastYPosition=t}function o(){return window.innerHeight}function t(){var e=Array.from(document.querySelectorAll(".wptb-preview-table")),t=Array.from(document.querySelectorAll(".wptb-shadow-root-container")).reduce(function(e,t){t=t.shadowRoot.querySelector(".wptb-preview-table");return t&&e.push(t),e},[]),e=[].concat(e,_toConsumableArray(t));l.push.apply(l,_toConsumableArray(e.reduce(function(e,t){t=Array.from(t.querySelectorAll(".wptb-lazy-load-img"));return e.push.apply(e,t),e},[]))),r(l,o(),!0),c.forceMode||window.addEventListener("scroll",function(){r(l,o())},{passive:!0})}var a={forceMode:!1},c={},n={lastYPosition:0},l=[],d="wptb-lazy-load-buffer-element",u="wptb-lazy-load-buffer-element-container",i=new e(s),p=null,b=function(e,t){var e=e.parentNode.getBoundingClientRect(),r=e.top,o=e.height,e=e.bottom,a=c.visibilityPercentage,r=0<=window.scrollY-n.lastYPosition?r+o*(a/100):e-o*(a/100);return 0<=r&&r<=t},f=function(e){e=e.target;p.animate(e),e.removeEventListener("load",f),p.afterAnimation(e)};this.forceLoadImages=function(){r(l,null,!1,!0)},this.init=function(e){e&&"object"===_typeof(e)&&(c=_objectSpread(_objectSpread({},a),e)).enabled&&(p=i.getAnimation(c.imageLoadAnimation,_objectSpread({speed:c.imageLoadAnimationSpeed,direction:c.imageLoadAnimationDirection,perspective:c.imageLoadAnimationPerspective},c)),t())}}}),function(e,t,r){t[e]=r()}("WPTB_ScrollManager",self||global,function(){return function(e){function t(e){var t=e.parentNode.parentNode,e=e.parentNode,r=(t.dataset.wptbHorizontalScrollStatus="true",t.style.maxWidth);t.style.maxWidth="",e.style.width=r}var r=e.frontendCalculationStatus;this.init=function(){var e=Array.from(document.querySelectorAll("table[data-wptb-horizontal-scroll-status=true]"));r&&e.map(t)}}}),document.addEventListener("DOMContentLoaded",function(){var F=document.getElementsByClassName("wptb-table-container");function e(){for(var e=0;e<F.length;e++){var t=F[e],r=!0,o=t.getElementsByClassName("wptb-preview-table"),a=t.getElementsByClassName("wptb-table-container-matrix");if(0<o.length&&0<a.length){o=o[0],a=a[0];if(o.style.display="table",o.dataset.wptbTableAlignment&&(n=o.dataset.wptbTableAlignment,t.offsetWidth<o.offsetWidth?o.style.float=null:o.style.float="center"==n?null:n,t.style.float="center"==n?null:n),1==o.dataset.reconstraction&&1==o.dataset.wptbAdaptiveTable){var n=t.offsetWidth,l=o.offsetWidth,i=void 0,s=o.rows;0<s.length&&(i=s[0].querySelectorAll("td").length);var s=!1,c=void 0;if((!o.classList.contains("wptb-table-preview-head")||2<i)&&1<i)if(n<l){if(t.style.overflow="unset",a&&!a.classList.contains("wptb-matrix-hide")&&(a.classList.add("wptb-matrix-hide"),s=!0),o.classList.add("wptb-mobile-view-active"),o.rows&&i){var d=Math.floor(n/(l/i));
1if(d<1&&(d=1),0<t.getElementsByClassName("wptb-preview-table-mobile").length&&((c=t.getElementsByClassName("wptb-preview-table-mobile")[0]).classList.remove("wptb-mobile-hide"),(l=c.dataset.wholeColumnsInContainer)==d&&o.classList.contains("wptb-table-preview-head")||l==d&&!o.classList.contains("wptb-table-preview-head")&&(480<n||1==c.column)?r=!1:c.parentNode.removeChild(c)),r){var l=document.createElement("table"),u=document.createElement("tbody"),r=(l.appendChild(u),l.classList.add("wptb-preview-table-mobile"),o.className.match(/wptb-element-main(.+)-(\d+)/i)),p=(r&&Array.isArray(r)&&l.classList.add(r[0]),o.rows.length),b=void 0,f=!1;if(o.classList.contains("wptb-table-preview-head")){var y=p-1,h=void 0;if(d<p)for(var m=0;m<y;m++){if(0==(b=y%(h=(h=d-1-m)<=0?1:h))){f=!0;break}if(0<h&&h<=6&&h-2*b<0&&b<h){f=!0;break}if(6<h&&h<=12&&h-1.8*b<0&&b<h){f=!0;break}if(12<h&&h<=18&&h-1.6*b<0&&b<h){f=!0;break}}else h=y,f=!(b=0);if(f)for(var W=void 0,W=0<h?i*Math.ceil(y/h):i,v=(Math.floor((W-1)/i),void 0),w=0;w<W;w++){var g=Math.floor(w/i),S=document.createElement("tr"),T=o.rows[0].children[w-g*i].cloneNode(!0),C=void 0,z=window.getComputedStyle(o.rows[0]);T.style.backgroundColor||(T.style.backgroundColor=z.backgroundColor),T.style.width=null,T.style.height=null,T.removeAttribute("data-wptb-css-td-auto-width"),(v=window.getComputedStyle(o.querySelector("td"))).borderTopColor?T.style.borderColor=v.borderTopColor:T.style.borderColor=v.borderBottomColor,0<g&&w%i==0&&(T.style.borderTopWidth="5px"),S.appendChild(T);for(var M,A=h*g+1;A<h*(g+1)+1;A++)A<o.rows.length?(C=o.rows[A].children[w-g*i].cloneNode(!0),M=window.getComputedStyle(o.rows[A]),C.style.backgroundColor||(C.style.backgroundColor=M.backgroundColor),C.style.width=null,C.style.height=null,C.removeAttribute("data-wptb-css-td-auto-width")):((C=document.createElement("td")).style.borderWidth="0px",C.style.background="#fff"),(v=window.getComputedStyle(o.querySelector("td"))).borderTopColor?C.style.borderColor=v.borderTopColor:C.style.borderColor=v.borderBottomColor,0<g&&w%i==0&&(C.style.borderTopWidth="5px"),S.appendChild(C);u.appendChild(S)}}else{var _=void 0;if(480<n)for(var x=0;x<i;x++){if(0==(b=i%(_=0==(_=d-x)?1:_))){f=!0;break}if(0<_&&_<=6&&_-2*b<=0&&b<_){f=!0;break}if(6<_&&_<=12&&_-1.8*b<=0&&b<_){f=!0;break}if(12<_&&_<=18&&_-1.6*b<=0&&b<_){f=!0;break}}else f=!(b=0),l.column=_=1;var D=Math.ceil(i/_),N=D*p;if(f)for(var E=0;E<N;E++){var P=Math.floor(E/p),O=document.createElement("tr"),H=void 0,k=void 0,H=P!=D-1||0==b?(k=P*_,_*(1+P)):(k=i-b,i),I=o.rows[E-P*p];O.classList=I.classList,O.style.backgroundColor=I.style.backgroundColor;for(var j=k;j<H;j++){var q,L=I.children[j].cloneNode(!0);L.style.backgroundColor||(q=window.getComputedStyle(I),L.style.backgroundColor=q.backgroundColor),L.style.width=null,L.style.height=null,L.removeAttribute("data-wptb-css-td-auto-width"),O.appendChild(L)}u.appendChild(O)}}l.dataset.wholeColumnsInContainer=d;var R=l.querySelectorAll("[srcset]");if(0<R.length)for(var B=0;B<R.length;B++)R[B].removeAttribute("srcset");t.appendChild(c=l),s=!0}}}else a&&a.classList.contains("wptb-matrix-hide")&&(a.classList.remove("wptb-matrix-hide"),s=!0,o.classList.remove("wptb-mobile-view-active"),(c=t.querySelector(".wptb-preview-table-mobile"))&&t.getElementsByClassName("wptb-preview-table-mobile")[0].classList.add("wptb-mobile-hide"),t.style.overflow="auto");else o.style.minWidth="auto";WPTB_RecalculateIndexes(o),s&&(WPTB_RecalculateIndexes(c),r=new CustomEvent("table:rebuilt",{detail:!0,bubbles:!0}),o.dispatchEvent(r))}}}}function t(){function e(){var o=g[S],a=(o.classList.add("wptb-table-container-".concat(S)),o.getElementsByClassName("wptb-preview-table"));if(0<a.length){!(a=a[0]).dataset.wptbTableContainerMaxWidth||a.dataset.wptbTableHorizontalScrollStatus||o.dataset.wptbHorizontalScrollStatus||(o.style.maxWidth="".concat(a.dataset.wptbTableContainerMaxWidth,"px")),a.classList.remove("wptb-table-preview-static-indic"),a.merginCellsHorizontally=!1;for(var e=a.querySelectorAll("td"),t=0;t<e.length;t++)1<e[t].colSpan&&(a.mergingCellsHorizontally=!0);function r(){var e,t,r=o.offsetWidth;h<r?v?(a.style.minWidth="100%",a.mergingCellsHorizontally?(a.style.width="auto",n=(n=(r-m)/v)-f-y,w=!0):a.style.width="100%"):(a.style.width="auto",a.style.minWidth=null,a.style.maxWidth="".concat(h,"px")):(a.style.maxWidth=null,a.style.minWidth="".concat(a.dataset.wptbTableTdsSumMaxWidth,"px"),a.style.width="auto",n=a.dataset.wptbTdWidthAuto||"100",w=!0,(t=JSON.parse(atob(a.dataset.wptbResponsiveDirectives)||"false"))&&t.responsiveEnabled&&(e="desktop",(r="window"!==t.relativeWidth?r:document.body.clientWidth)<=t.breakpoints.mobile.width?e="mobile":r<=t.breakpoints.tablet.width&&(e="tablet"),t.modeOptions.auto.disabled[e]||"desktop"===e||(a.style.minWidth=null,a.style.width="100%")))}var n,l,i,s,c=o.offsetWidth,d=a.querySelector("td"),d=window.getComputedStyle(d,null),u=d.getPropertyValue("border-left-width"),p=d.getPropertyValue("border-right-width"),b=d.getPropertyValue("padding-left"),d=d.getPropertyValue("padding-left"),f=parseFloat(b,10)+
1parseFloat(d,10),y=parseFloat(u,10)+parseFloat(p,10),h=a.dataset.wptbTableTdsSumMaxWidth,m=a.dataset.wptbFixedWidthSize,v=a.dataset.wptbCellsWidthAutoCount,w=!1;c<=0?(l=function(e){var e=getComputedStyle(e),t=e.display,e=e.visibility;return"none"!==t||"visible"===e},(b=(i=function(e){var e=e.parentNode,t=l(e),r=e.nodeName.toLowerCase();return t||"body"===r?"body"===r?null:e:i(e)})(o))&&(s=new MutationObserver(function(e){try{e.map(function(e){var t=l(e.target),e=e.target.getBoundingClientRect().width;if(t&&0<e)throw r(),s.disconnect(),new Error("get out of iteration")})}catch(e){}})).observe(b,{attributes:!0,childList:!1,subtree:!1})):r();d=document.head;d&&(u=d.querySelector("style[data-wptb-td-auto-width-".concat(S,'="true"]')))&&d.removeChild(u),w&&((p=document.createElement("style")).setAttribute("data-wptb-td-auto-width-".concat(S),!0),p.innerHTML=".wptb-table-container-".concat(S," table td[data-wptb-css-td-auto-width=true]{width:").concat(n,"px}"),d)&&d.appendChild(p)}}for(var g=document.getElementsByClassName("wptb-table-container"),S=0;S<g.length;S++)e()}d=".wptb-preview-table .wptb-button",Array.from(document.querySelectorAll(d)).map(function(t){t.addEventListener("mouseenter",function(e){e=e.target;e.dataset.wptbElementHoverBgColor&&(e.style.backgroundColor=e.dataset.wptbElementHoverBgColor),e.dataset.wptbElementHoverTextColor&&(e.style.color=e.dataset.wptbElementHoverTextColor),e.dataset.wptbElementHoverScale&&(e.style.transform="scale(".concat(t.dataset.wptbElementHoverScale,")"))}),t.addEventListener("mouseleave",function(e){e=e.target;e.dataset.wptbElementHoverBgColor&&(e.style.backgroundColor=e.dataset.wptbElementBgColor),e.dataset.wptbElementHoverTextColor&&(e.style.color=e.dataset.wptbElementColor),e.dataset.wptbElementHoverScale&&(e.style.transform="scale(1)")})}),t(),e(),window.addEventListener("resize",function(){t(),e()});for(var r=document.getElementsByClassName("wptb-ph-element"),o=0;o<r.length;o++){var a,n,l=r[o];l.classList.contains("wptb-list-item-container")&&(l.classList.remove("wptb-list-item-container"),l.classList.add("wptb-list-container")),l.classList.contains("wptb-button-container")&&(n=l.className.match(/wptb-size-([A-Z]+)/i))&&Array.isArray(n)&&(a=(n=n[0]).toLowerCase(),l.classList.remove(n),n=l.querySelector(".wptb-button-wrapper"))&&n.classList.add(a)}var i=new WPTB_ResponsiveFrontend({query:".wptb-preview-table",bindToResize:!0});(self||global).wptbResponsiveFrontendInstance=i;for(var s=document.querySelectorAll(".wptb-preview-table"),c=0;c<s.length;c+=1)new WPTB_SortableTable({table:s[c]}).sortableTableInitialization(i);var d=new CustomEvent("responsive:front",{detail:{responsiveFront:i}});document.dispatchEvent(d),new WPTB_ScrollManager(WptbFrontendData.scrollManager).init(),WPTB_ExtraStyles.applyStyles(WPTB_ExtraStyles.modes.frontEnd,WptbFrontendData.generalStyles),i.rebuildTables(),WPTB_LazyLoad.init(WptbFrontendData.lazyLoad),WptbFrontendBase.getTableObjects().map(function(e){e=e.mainTable;Array.from(e.querySelectorAll(".wptb-text_icon_element-container")).map(function(e){e.setAttribute("contenteditable",!1)})}),WptbFrontendBase.getTableObjects().map(function(e){e=e.mainTable;Array.from(e.querySelectorAll(".wptb-badge-container")).map(function(e){e.setAttribute("contenteditable",!1)})}),WPTB_StylePass.init(WptbFrontendData.stylePass)}); 2//# sourceMappingURL=wp-table-builder-frontend.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.