function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};define((function(){var t=(function(){function t(){_classCallCheck(this,t)}return t.removeAllEvents=function(t){if(t){var e=t.cloneNode(!0);return t.parentNode&&t.parentNode.replaceChild(e,t),e}},t.removeClass=function(e,n){if(e&&n){var o=t.classList();Array.prototype.forEach.call(e,(function(t){o.remove(t,n)}))}},t.addClass=function(e,n){var o=t.classList();Array.prototype.forEach.call(e,(function(t){o.add(t,n)}))},t.hideAll=function(t){t&&Array.prototype.forEach.call(t,(function(t){t.style.display="none"}))},t.showAll=function(t,e){t&&Array.prototype.forEach.call(t,(function(t){t.style.display=e||"block"}))},t.removeAll=function(t){t&&Array.prototype.forEach.call(t,(function(t){t.parentNode.removeChild(t)}))},t.updateAttr=function(t,e,n){e&&n&&Array.prototype.forEach.call(t,(function(t){t.setAttribute(e,n)}))},t.parseGet=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.search,e=t.substr(1).split("&");if(""===e)return{};for(var n={},o=0;o=0?n.splice(o,1):n.push(e),t.className=n.join(" ")}}}},t.extend=function(t,e){var n={};for(var o in t)n[o]=t[o];for(var o in e)n[o]=e[o];return n},t.getDocumentHeight=function(){return Math.max(Math.max(document.body.scrollHeight,document.documentElement.scrollHeight),Math.max(document.body.offsetHeight,document.documentElement.offsetHeight),Math.max(document.body.clientHeight,document.documentElement.clientHeight))},t.toGet=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=[];for(var n in t)void 0!==t[n]&&e.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e.join("&")},t.toArray=function(t){for(var e=[],n=t.length>>>0;n--;)e[n]=t[n];return e},t.fileUploadEnable=function(){var t=document.createElement("input");return t.type="file",!t.disabled},t.isVisible=function(t){return!!t&&(0!==t.clientWidth&&0!==t.clientHeight&&0!==+getComputedStyle(t).opacity&&"hidden"!==t.style.visibility)},t.getParents=function(t){for(var e=[],n=t.parentNode;null!==n;){var o=n;e.push(o),n=o.parentNode}return e},t.getParent=function(t,e){for(var n=t;n&&n.parentNode;){if(n.classList&&n.classList.contains(e))return n;n=n.parentNode}return null},t.which=function(t){return t=t||window.event,null===t.which?t.button:t.which},t.support=function(){return{calc:function(){for(var t=document.createElement("div"),e=["calc","-webkit-calc","-moz-calc","-o-calc"],n=0;n=0;o-=1)e=t.elements[o],("checkbox"!==e.type&&"radio"!==e.type||e.checked)&&""!==t.elements[o].name&&(n[t.elements[o].name]=t.elements[o].value);return n},t.outerWidth=function(t){if(t){var e,n,o,r,i,a=getComputedStyle(t);return e=parseInt(a.width||0,10),n=parseInt(a.paddingRight||0,10),o=parseInt(a.paddingLeft||0,10),r=parseInt(a.marginRight||0,10),i=parseInt(a.marginLeft||0,10),e+n+o+r+i}},t.isArray=function e(t){var e=Array.isArray||function(t){return t instanceof Array};return e(t)},t.trim=function(t){return t&&"string"==typeof t?String.prototype.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""):t},t.onetime=function(t,e,n){e.split(" ").forEach((function(e){t.addEventListener(e,(function o(t){return t.target.removeEventListener(t.type,o),n(t)}))}))},t.generateClickEvent=function(t){if(t){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window),t.dispatchEvent(e)}},t.getStaticHost=function(){var t=App.context.staticHost,e=t.indexOf("."),n=Math.floor(5*Math.random())+1;return e<0?App.context.staticHost:t.substring(0,e)+n+t.substring(e,t.length)},t.isElement=function(t){try{return t instanceof HTMLElement}catch(e){return"object"===("undefined"==typeof t?"undefined":_typeof(t))&&1===t.nodeType&&"object"===_typeof(t.style)&&"object"===_typeof(t.ownerDocument)}},t})();return t})); //# sourceMappingURL=dom-83e622c736.min.js.map