@syncfusion/ej2
Version:
A modern JavaScript UI toolkit that has been built from the ground up to be lightweight, responsive, modular and touch friendly. It is written in TypeScript and has no external dependencies.
10 lines • 14.6 MB
JavaScript
/*!
* filename: ej2.min.js
* version : 18.4.48
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
* Use of this code is subject to the terms of our license.
* A copy of the current license can be obtained at any time by e-mailing
* licensing@syncfusion.com. Any infringement will be prosecuted under
* applicable laws.
*/
var ej=function(e){"use strict";function t(e,t){var i=t;return i.unshift(void 0),new(Function.prototype.bind.apply(e,i))}function i(e){var t,i=new Uint16Array(5);(window.msCrypto||window.crypto).getRandomValues(i);var n="ej2"+function(e){for(var t="",i=0;i<5;i++)t+=(i?",":"")+e[i];return t}(i),r=function(i){i.source===window&&"string"==typeof i.data&&i.data.length<=32&&i.data===n&&(e(),t())};return window.addEventListener("message",r,!1),window.postMessage(n,"*"),t=function(){window.removeEventListener("message",r),e=r=n=void 0}}function n(e,t){for(var i=t,n=e.replace(/\[/g,".").replace(/\]/g,"").split("."),r=0;r<n.length&&!c(i);r++)i=i[n[r]];return i}function r(e,t,i){var n,r,o=e.replace(/\[/g,".").replace(/\]/g,"").split("."),s=i||{},a=s,l=o.length;for(n=0;n<l;n++)r=o[n],n+1===l?a[r]=void 0===t?{}:t:d(a[r])&&(a[r]={}),a=a[r];return s}function o(e,t){delete e[t]}function s(e){return!d(e)&&e.constructor==={}.constructor}function a(e,t){return e[t]}function l(e,t){if(!d(t))for(var i=e,n=t,r=0,o=Object.keys(t);r<o.length;r++){var a=o[r];d(i.deepMerge)||-1===i.deepMerge.indexOf(a)||!s(n[a])&&!Array.isArray(n[a])?i[a]=n[a]:h(i[a],i[a],n[a],!0)}}function h(e,t,i,n){var r=e&&"object"==typeof e?e:{},o=arguments.length;n&&(o-=1);for(var a=function(e){if(!l[e])return"continue";var t=l[e];Object.keys(t).forEach(function(e){var i,o=r[e],a=t[e],l=Array.isArray(a)&&Array.isArray(o)&&a.length!==o.length,d=!w()||!(o instanceof Event||l);n&&d&&(s(a)||Array.isArray(a))?s(a)?(i=o||{},Array.isArray(i)&&i.hasOwnProperty("isComplexArray")?h(i,{},a,n):r[e]=h(i,{},a,n)):(i=w()?o&&Object.keys(a).length:o||[],r[e]=h([],i,a,n)):r[e]=a})},l=arguments,d=1;d<o;d++)a(d);return r}function d(e){return void 0===e||null===e}function c(e){return void 0===e}function p(e){return e+"_"+hL++}function u(e,t){var i;return function(){var n=this,r=arguments;clearTimeout(i),i=setTimeout(function(){return i=null,e.apply(n,r)},t)}}function g(e){var t=Object.prototype.toString;return"[object Array]"===t.call(e)&&"[object Object]"===t.call(e[0])}function m(e,t){var i=e;return i===t||!(i===document||!i)&&m(i.parentNode,t)}function f(e){try{throw new Error(e)}catch(e){throw e.message+"\n"+e.stack}}function y(e,t){var i=document.createElement("div"),n=[].slice.call(document.getElementsByTagName("head")[0].querySelectorAll("base, link, style")),r="";d(t)&&(t=window.open("","print","height=452,width=1024,tabbar=no")),i.appendChild(e.cloneNode(!0));for(var o=0,s=n.length;o<s;o++)r+=n[o].outerHTML;t.document.write("<!DOCTYPE html> <html><head>"+r+"</head><body>"+i.innerHTML+"<script> (function() { window.ready = true; })(); <\/script></body></html>"),t.document.close(),t.focus();var a=setInterval(function(){t.ready&&(t.print(),t.close(),clearInterval(a))},500);return t}function v(e){var t=e+"";return t.match(/auto|%|px|vh|vm|vmax|vmin|em/)?t:t+"px"}function w(){return dL}function b(e){return e instanceof Node||!w()||d(e.xPath)?e:document.evaluate(e.xPath,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}function C(e,t){var i="string"==typeof e?document.querySelector(e):e;if(i[lL])for(var n=0,r=i[lL];n<r.length;n++){var o=r[n];if(o instanceof t)return o}return null}function S(){if("undefined"!=typeof window){var e=new Uint16Array(5);return(window.msCrypto||window.crypto).getRandomValues(e)}}function x(e){RL=e,jL.notify("notifyExternalChange",{locale:RL})}function M(e,t){var i=fL.getDependables(OL,e,"",!0)[BL[0]],r=fL.getDependables(OL,e,"")[BL[1]],o=n("defaultNumberingSystem",i),s=w()?n("numberSymbols",i):n("symbols-numberSystem-"+o,i),a=fL.getSymbolPattern(t||"decimal",o,i,!1);return h(s,fL.getFormatData(a,!0,"",!0),{dateSeparator:fL.getDateSeparator(r)})}function L(e,t){var i=fL.getDependables(OL,e,"",!0);return fL.getCurrencySymbol(i.numericObject,t)}function T(e){return fL.getDependables(OL,"",e,!1)[BL[1]]}function A(e,t){var i='var str="'+function(e,t,i){var n=0,r=[],o=e.match(/class="([^\"]+|)\s{2}/g),s="";o&&o.forEach(function(t){s=t.replace(/\s\s+/g," "),e=e.replace(t,s)});return e.replace(iT,"").replace(pT,"'$1'").replace(gT,function(e,o,s,a){var l=o.match(hT);if(l){var h=l[1];if(oT.test(o))o='";} '+o.replace(l[1],h.replace(cT,function(e){return e=e.trim(),D(e,!nT.test(e)&&-1===r.indexOf(e),t,r)}))+'{ \n str = str + "';else if(rT.test(o))o='"; '+o.replace(l[1],h.replace(uT,function(e){return k(e,t,r,!0)}))+'{ \n str = str + "';else if(aT.test(o)){var d=l[1].split(" of ");o='"; '+o.replace(l[1],function(e){return r.push(d[0]),r.push(d[0]+"Index"),"var i"+(n+=1)+"=0; i"+n+" < "+D(d[1],!0,t,r)+".length; i"+n+"++"})+"{ \n var "+d[0]+"= "+D(d[1],!0,t,r)+"[i"+n+"]; \n var "+d[0]+"Index=i"+n+'; \n str = str + "'}else{var c=o.split("("),p=i&&i.hasOwnProperty(c[0])?"this.":"global";p=/\./.test(c[0])?"":p;var u=l[1].split(",");0===l[1].length||/data/.test(u[0])||/window./.test(u[0])||(l[1]="global"===p?t+"."+l[1]:l[1]);if(wT.test(o)&&/\]\./gm.test(o)||/\@|\$|\#/gm.test(o)){/\@|\$|\#|\]\./gm.test(o)&&(o='"+ '+("global"===p?"":p)+o.replace(l[1],h.replace(vT,function(e){return k(e,t,r)}))+'+ "')}else o='" + '+("global"===p?"":p)+o.replace(h,D(l[1].replace(/,( |)data.|,/gi,","+t+".").replace(/,( |)data.window/gi,",window"),"global"!==p,t,r))+'+"'}}else sT.test(o)?o='"; '+o.replace(sT,'} else { \n str = str + "'):o.match(lT)?o=o.replace(lT,'"; \n } \n str = str + "'):/\@|\#|\$/gm.test(o)?(o.match(fT)&&(o=E(o)),o='"+'+I(o,-1===r.indexOf(o),t,r)+'"]+"'):o=o.match(fT)?'"+'+I(o=E(o),-1===r.indexOf(o),t,r)+'"]+"':'"+'+D(o.replace(/\,/gi,"+"+t+"."),-1===r.indexOf(o),t,r)+'+"';return o})}(e,"data",t)+'"; return str;';return new Function("data",i).bind(t)}function D(e,t,i,n,r){return r&&""===e?e:t&&!dT.test(e)&&-1===n.indexOf(e.split(".")[0])?i+"."+e:e}function I(e,t,i,n){return t&&!dT.test(e)&&-1===n.indexOf(e.split(".")[0])?i+'["'+e:e}function E(e){return e=e.match(yT)?e:e.replace(fT,"\\\\")}function k(e,t,i,n){e=e.trim();if(/\window\./gm.test(e))return e;var r=/'|"/gm;return/\@|\$|\#/gm.test(e)&&(e=I(e,-1===i.indexOf(e),t,i)+'"]'),mT.test(e)?function(e,t,i,n){return!t||dT.test(e)||-1!==n.indexOf(e.split(".")[0])||/^\..*/gm.test(e)?e:i+"."+e}(e,!r.test(e)&&-1===i.indexOf(e),t,i):D(e,!r.test(e)&&-1===i.indexOf(e),t,i,n)}function P(){return"-"+Math.random().toString(36).substr(2,5)}function j(e,t){var i=xT.compile(e,t);return function(e,t,n,r,o,s,a){var l=i(e,t,n,a),h="BlazorTemplateId";if(w()&&!o){var c=r+P();if(ST[r]||(ST[r]=[]),d(s))e[h]=c,ST[r].push(e);else for(var p=0,u=Object.keys(ST[r][s]);p<u.length;p++){var g=u[p];g!==h&&e[g]&&(ST[r][s][g]=e[g]),g===h&&(c=ST[r][s][g])}return"rowTemplate"===n?[R("tr",{id:c,className:"e-blazor-template"})]:[R("div",{id:c,className:"e-blazor-template"})]}if("string"==typeof l){if(CT.test(l)){return R("svg",{innerHTML:l}).childNodes}return R(bT.test(l)?"table":"div",{innerHTML:l}).childNodes}return l}}function N(e,t,i,n,r){if(w()){window.sfBlazor.updateTemplate(t,ST[e],e,i,r),!1!==n&&(ST[e]=[])}}function O(e,t,i){var n=document.getElementById(e);if(n)for(var r=n.getElementsByClassName("blazor-inner-template"),o=0;o<r.length;o++){var s=" ";s=d(i)?r[o].getAttribute("data-templateId"):r[i].getAttribute("data-templateId");var a=document.getElementById(s);if(a)for(var l=a.childNodes.length,h=0;h<l;h++)d(i)?r[o].appendChild(a.childNodes[0]):(r[i].appendChild(a.childNodes[0]),o=r.length)}}function R(e,t){var i=HT.test(e)?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return void 0===t?i:(i.innerHTML=t.innerHTML?t.innerHTML:"",void 0!==t.className&&(i.className=t.className),void 0!==t.id&&(i.id=t.id),void 0!==t.styles&&i.setAttribute("style",t.styles),void 0!==t.attrs&&Y(i,t.attrs),i)}function F(e,t){for(var i=z(t),o=0,a=e;o<a.length;o++){var l=a[o];if(l&&i)for(var h=0,c=i;h<c.length;h++){var p=c[h];if(s(l)){var u=n("attributes.className",l);d(u)?r("attributes.className",p,l):new RegExp("\\b"+p+"\\b","i").test(u)||r("attributes.className",u+" "+p,l)}else l.classList.contains(p)||l.classList.add(p)}}return e}function B(e,t){for(var i=z(t),o=0,a=e;o<a.length;o++){var l=a[o];if(l&&i){var h=s(l);if(h?n("attributes.className",l):""!==l.className)for(var d=0,c=i;d<c.length;d++){var p=c[d];if(h){var u=n("attributes.className",l).split(" "),g=u.indexOf(p);-1!==g&&u.splice(g,1),r("attributes.className",u.join(" "),l)}else l.classList.remove(p)}}}return e}function z(e){var t=[];return"string"==typeof e?t.push(e):t=e,t}function V(e){var t=e;return""===t.style.visibility&&t.offsetWidth>0}function H(e,t,i){if(s(t))$L.prepend(e,t);else{for(var n=document.createDocumentFragment(),r=0,o=e;r<o.length;r++){var a=o[r];n.appendChild(a)}t.insertBefore(n,t.firstElementChild),i&&_(t)}return e}function W(e,t,i){if(s(t))$L.append(e,t);else{for(var n=document.createDocumentFragment(),r=0,o=e;r<o.length;r++){var a=o[r];n.appendChild(a)}t.appendChild(n),i&&_(t)}return e}function _(e){e.querySelectorAll("script").forEach(function(e){var t=document.createElement("script");t.text=e.innerHTML,document.head.appendChild(t),U(t)})}function U(e){if(s(e))return $L.detach(e);var t=e.parentNode;return t?t.removeChild(e):void 0}function q(e){if(s(e))$L.detach(e);else{var t=e.parentNode;tT.clearEvents(e),t.removeChild(e)}}function Y(e,t){var i=Object.keys(t),n=e;if(n)for(var r=0,o=i;r<o.length;r++){var a=o[r];if(s(n)){var l=a;"tabindex"===a&&(l="tabIndex"),n.attributes[l]=t[a]}else n.setAttribute(a,t[a])}return n}function G(e,t,i){return void 0===t&&(t=document),s(t)&&i?$L.vDomSelector({ele:t,selector:e,selectAll:!1}):(e=X(e),t.querySelector(e))}function Q(e,t,i){if(void 0===t&&(t=document),s(t)&&!i)return $L.vDomSelector({ele:t,selector:e,selectAll:!0});e=X(e);return t.querySelectorAll(e)}function X(e){var t=/(!|"|\$|%|&|'|\(|\)|\*|\/|:|;|<|=|\?|@|\]|\^|`|{|}|\||\+|~)/g;if(e.match(/#[0-9]/g)||e.match(t)){for(var i=e.split(","),n=0;n<i.length;n++){for(var r=i[n].split(" "),o=0;o<r.length;o++)if(r[o].indexOf("#")>-1&&!r[o].match(/\[.*\]/)){var s=r[o].split("#");if(s[1].match(/^\d/)||s[1].match(t)){var a=r[o].split(".");a[0]=a[0].replace(/#/,"[id='")+"']",r[o]=a.join(".")}}i[n]=r.join(" ")}return i.join(",")}return e}function J(e,t){var i=e;if("function"==typeof i.closest)return i.closest(t);for(;i&&1===i.nodeType;){if($(i,t))return i;i=i.parentNode}return null}function K(e,t){void 0!==t&&(s(e)?$L.setStyleAttribute(e,t):Object.keys(t).forEach(function(i){e.style[i]=t[i]}))}function Z(e,t,i){F([e],t),B([e],i)}function $(e,t){var i=e.matches||e.msMatchesSelector||e.webkitMatchesSelector;return i?i.call(e,t):-1!==[].indexOf.call(document.querySelectorAll(t),e)}function ee(e,t){var i,n,r="string"==typeof e?document.getElementById(e):e;for(n=0;n<r.ej2_instances.length;n++)if(i=r.ej2_instances[n],"string"==typeof t){if(t===i.getModuleName())return i}else if(i instanceof t)return i}function te(e,i,n,r){return e.properties.hasOwnProperty(i)&&e.properties[i]instanceof r||(e.properties[i]=t(r,[e,i,n])),e.properties[i]}function ie(e,i,n,r,o,s){for(var a=[],l=n?n.length:0,h=0;h<l;h++){var d=r;if(s&&(d=r(n[h],e)),o){var c=t(d,[e,i,{},!0]);c.setProperties(n[h],!0),a.push(c)}else a.push(t(d,[e,i,n[h],!1]))}return a}function ne(e,t){return function(){return this.properties.hasOwnProperty(t)||(this.properties[t]=e),this.properties[t]}}function re(e,t,i){return function(){var n=this;if(!this.properties.hasOwnProperty(t)){var r=ie(this,t,e,i,!1);this.properties[t]=r}var o=void 0!==this.controlParent&&this.controlParent.ignoreCollectionWatch||this.ignoreCollectionWatch;return this.properties[t].hasOwnProperty("push")||o||["push","pop"].forEach(function(e){var i={value:function(e,t,i,n){return function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];var o=this.propName?this.getParentKey()+"."+t+"-":t+"-";switch(e){case"push":for(var s=0;s<i.length;s++){Array.prototype[e].apply(n,[i[s]]);var a=oe(o+(n.length-1),i[s],!this.controlParent,e);this.serverDataBind(a,i[s],!1,e)}break;case"pop":Array.prototype[e].apply(n);var l=oe(o+n.length,null,!this.controlParent,e);this.serverDataBind(l,{ejsAction:"pop"},!1,e)}return n}}(e,t,0,n.properties[t]).bind(n),configurable:!0};Object.defineProperty(n.properties[t],e,i)}),this.properties[t].hasOwnProperty("isComplexArray")||Object.defineProperty(this.properties[t],"isComplexArray",{value:!0}),this.properties[t]}}function oe(e,t,i,n){var r=e;if(i&&(r={},r[e]=t,t&&"object"==typeof t)){r[e].ejsAction=n}return r}function se(e){return function(t,i){var n={set:function(e,t){return function(i){if(this.properties[t]!==i){var n=this.properties.hasOwnProperty(t)?this.properties[t]:e;this.saveChanges(t,i,n),this.properties[t]=i}}}(e,i),get:ne(e,i),enumerable:!0,configurable:!0};Object.defineProperty(t,i,n),ue(t,i,"prop",e)}}function ae(e,t){return function(i,n){var r={set:function(e,t,i){return function(n){te(this,t,e,i).setProperties(n)}}(e,n,t),get:function(e,t,i){return function(){return te(this,t,e,i)}}(e,n,t),enumerable:!0,configurable:!0};Object.defineProperty(i,n,r),ue(i,n,"complexProp",e,t)}}function le(e){return function(t,i){var n={set:function(e,t,i){return function(n){var r=i(n,this);te(this,t,e,r).setProperties(n)}}({},i,e),get:function(e,t,i){return function(){var n=i({});return this.properties.hasOwnProperty(t)?this.properties[t]:te(this,t,e,n)}}({},i,e),enumerable:!0,configurable:!0};Object.defineProperty(t,i,n),ue(t,i,"complexProp",{},e)}}function he(e,t){return function(i,n){var r={set:function(e,t,i){return function(n){this.isComplexArraySetter=!0;var r=ie(this,t,e,i,!1),o=ie(this,t,n,i,!0);this.isComplexArraySetter=!1,this.saveChanges(t,o,r),this.properties[t]=o}}(e,n,t),get:re(e,n,t),enumerable:!0,configurable:!0};Object.defineProperty(i,n,r),ue(i,n,"colProp",e,t)}}function de(e){return function(t,i){var n={set:function(e,t,i){return function(n){var r=this.properties.hasOwnProperty(t)?this.properties[t]:e,o=ie(this,t,n,i,!0,!0);this.saveChanges(t,o,r),this.properties[t]=o}}([],i,e),get:function(e,t,i){return function(){var n=i({});if(!this.properties.hasOwnProperty(t)){var r=ie(this,t,e,n,!1);this.properties[t]=r}return this.properties[t]}}([],i,e),enumerable:!0,configurable:!0};Object.defineProperty(t,i,n),ue(t,i,"colProp",{},e)}}function ce(){return function(e,t){var i={set:function(e){var i=this.properties[t];if(i!==e){var n=me(this,t);!1===c(i)&&n.context.removeEventListener(n.prefix,i),n.context.addEventListener(n.prefix,e),this.properties[t]=e}},get:ne(void 0,t),enumerable:!0,configurable:!0};Object.defineProperty(e,t,i),ue(e,t,"event")}}function pe(e){}function ue(e,t,i,n,r){c(e.propList)&&(e.propList={props:[],complexProps:[],colProps:[],events:[],propNames:[],complexPropNames:[],colPropNames:[],eventNames:[]}),e.propList[i+"s"].push({propertyName:t,defaultValue:n,type:r}),e.propList[i+"Names"].push(t)}function ge(e){if(c(e.prototype.builderObject)){e.prototype.builderObject={properties:{},propCollections:[],add:function(){this.isPropertyArray=!0,this.propCollections.push(h({},this.properties,{}))}};for(var t=/complex/,i=0,n=Object.keys(e.prototype.propList);i<n.length;i++)for(var r=n[i],o=function(i){t.test(r)?e.prototype.builderObject[i.propertyName]=function(e){var t={};l(t,ge(i.type)),e(t);var n;return n=t.isPropertyArray?t.propCollections:h({},t.properties,{}),this.properties[i.propertyName]=n,t.properties={},t.propCollections=[],t.isPropertyArray=!1,this}:e.prototype.builderObject[i.propertyName]=function(e){return this.properties[i.propertyName]=e,this}},s=0,a=e.prototype.propList[r];s<a.length;s++){o(a[s])}}return e.prototype.builderObject}function me(e,t){if(!1===e.hasOwnProperty("parentObj"))return{context:e,prefix:t};var i=n("propName",e);return i&&(t=i+"-"+t),me(n("parentObj",e),t)}function fe(e,t,i){var n=function(e){return{selector:e&&e.selector?e.selector:null,ignore:e&&e.ignore?e.ignore:null,rippleFlag:e&&e.rippleFlag,isCenterRipple:e&&e.isCenterRipple,duration:e&&e.duration?e.duration:350}}(t);return!1===n.rippleFlag||void 0===n.rippleFlag&&!GT?Function:(e.setAttribute("data-ripple","true"),tT.add(e,"mousedown",ye,{parent:e,rippleOptions:n}),tT.add(e,"mouseup",ve,{parent:e,rippleOptions:n,done:i}),tT.add(e,"mouseleave",we,{parent:e,rippleOptions:n}),eT.isPointer&&tT.add(e,"transitionend",we,{parent:e,rippleOptions:n}),function(){e.removeAttribute("data-ripple"),tT.remove(e,"mousedown",ye),tT.remove(e,"mouseup",ve),tT.remove(e,"mouseleave",we),tT.remove(e,"transitionend",we)})}function ye(e){var t=e.target,i=this.rippleOptions.selector,n=i?J(t,i):t;if(!(!n||this.rippleOptions&&J(t,this.rippleOptions.ignore))){var r=n.getBoundingClientRect(),o=e.pageX-document.body.scrollLeft,s=e.pageY-(!document.body.scrollTop&&document.documentElement?document.documentElement.scrollTop:document.body.scrollTop),a=Math.max(Math.abs(o-r.left),Math.abs(o-r.right)),l=Math.max(Math.abs(s-r.top),Math.abs(s-r.bottom)),h=Math.sqrt(a*a+l*l),d=2*h+"px",c=o-r.left-h,p=s-r.top-h;this.rippleOptions&&this.rippleOptions.isCenterRipple&&(c=0,p=0,d="100%"),n.classList.add("e-ripple");var u=R("div",{className:"e-ripple-element",styles:"width: "+d+";height: "+d+";left: "+c+"px;top: "+p+"px;transition-duration: "+this.rippleOptions.duration.toString()+"ms;"});n.appendChild(u),window.getComputedStyle(u).getPropertyValue("opacity"),u.style.transform="scale(1)",n!==this.parent&&tT.add(n,"mouseleave",we,{parent:this.parent,rippleOptions:this.rippleOptions})}}function ve(e){be(e,this)}function we(e){be(e,this)}function be(e,t){var i=t.rippleOptions.duration,n=e.target,r=t.rippleOptions.selector,o=r?J(n,r):n;if(o&&(!o||-1!==o.className.indexOf("e-ripple"))){var s=Q(".e-ripple-element",o),a=s[s.length-1];a&&(a.style.opacity="0.5"),t.parent!==o&&tT.remove(o,"mouseleave",we),setTimeout(function(){a&&a.parentNode&&a.parentNode.removeChild(a),o.getElementsByClassName("e-ripple-element").length||o.classList.remove("e-ripple"),t.done&&t.done(e)},i)}}function Ce(e){return GT=e}function Se(e,t){var i=R(e);return t&&Le(i,t),i}function xe(e){var t,i=[];if("msie"===eT.info.name||"edge"===eT.info.name)for(var n=0;n<e.childNodes.length;n++)1===(t=e.childNodes[n]).nodeType&&i.push(t);else i=e.children;return i}function Me(e){var t="barcodeMeasureElement";window[t].style.visibility="visible";var i=xe(window[t].children[1])[0];i.textContent=e.string,i.setAttribute("style","font-size:"+e.stringSize+"px; font-family:"+e.fontStyle+";font-weight:");var n=new YA(0,0);return n.width=i.getBBox().width,n.height=i.getBBox().height,window[t].style.visibility="hidden",n}function Le(e,t){for(var i=Object.keys(t),n=0;n<i.length;n++)e.setAttribute(i[n],t[i[n]])}function Te(e,t){var i=document.createElementNS("http://www.w3.org/2000/svg",e);return Le(i,t),i}function Ae(){var e="barcodeMeasureElement";if(window[e])window[e].usageCount+=1;else{var t=Se("div",{id:"barcodeMeasureElement",class:"barcodeMeasureElement",style:"visibility:hidden ; height: 0px ; width: 0px; overflow: hidden;"}),i=Se("span",{style:"display:inline-block ; line-height: normal"});t.appendChild(i);var n=document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("xlink","http://www.w3.org/1999/xlink"),t.appendChild(n);var r=document.createElementNS("http://www.w3.org/2000/svg","text");r.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),n.appendChild(r),window[e]=t,window[e].usageCount=1,document.body.appendChild(t)}}function De(e,t,i,n){var r=t;return"SVG"!==i||e.mode?e.mode&&r.parentNode.removeChild(r):r.innerHTML="",new XA(n,"SVG"===i)}function Ie(e,t,i,n,r,o){return{width:e,height:t,x:i,y:n,color:r,strokeColor:o}}function Ee(e,t){!function(e,t){var i,n;i=1.5*e.element.offsetWidth,n=1.5*e.element.offsetHeight,GA.getContext(t).clearRect(0,0,i,n)}(e,t)}function ke(e,t,i,n,r){var o=function(e,t,i,n,r){return new Promise(function(o,s){var a=i.children[0],l=document.createElement("canvas");l.height=i.clientHeight,l.width=i.clientWidth;var h=l.getContext("2d"),d=new Image;d.onload=function(){if(h.drawImage(d,0,0),n){var i="JPG"===e?l.toDataURL("image/jpg"):l.toDataURL("image/png");o(i)}else!function(e,t,i){var n=document.createElement("a");n.download=t+"."+e.toLocaleLowerCase(),n.href=i,n.click()}(e,t,l.toDataURL("image/png").replace("image/png","image/octet-stream")),o(null)},"Canvas"===r.mode?(d.src="JPG"===e?a.toDataURL("image/jpg"):a.toDataURL("image/png"),l.height=1.5*i.clientHeight,l.width=1.5*i.clientWidth,h.scale(2/3,2/3)):d.src=window.URL.createObjectURL(new Blob([(new window.XMLSerializer).serializeToString(i.children[0])],{type:"image/svg+xml"}))})}(e,t,i,n,r);return o instanceof Promise&&o.then(function(e){return e}),o}function Pe(e,t,i,s,a,l){var h=s;if(s.tagName===t){var d=n("ej2_instances",s);h=e("input",{attrs:{type:i}});for(var c=["change","cssClass","label","labelPosition","id"],p=0,u=s.attributes.length;p<u;p++)-1===c.indexOf(s.attributes[p].nodeName)&&h.setAttribute(s.attributes[p].nodeName,s.attributes[p].nodeValue);Y(s,{class:a,role:l,"aria-checked":"false"}),s.appendChild(h),r("ej2_instances",d,h),o(s,"ej2_instances")}return h}function je(e){for(var t,i=e.childNodes,n=0;n<i.length;n++)if(3===(t=i[n]).nodeType)return t;return null}function Ne(e,t,i){"INPUT"===i?(t.parentNode.insertBefore(e.element,t),U(t),e.element.checked=!1,["name","value","disabled"].forEach(function(t){e.element.removeAttribute(t)})):(["role","aria-checked","class"].forEach(function(e){t.removeAttribute(e)}),t.innerHTML="")}function Oe(e,t,i,n,r){n=Pe(e.createElement,t,"checkbox",n,i,r),e.element=n,"checkbox"!==e.element.getAttribute("type")&&e.element.setAttribute("type","checkbox"),e.element.id||(e.element.id=p("e-"+r))}function Re(e,t,i){void 0===t&&(t=!1),void 0===i&&(i={});var n=e("div",{className:"e-checkbox-wrapper e-css"});if(i.cssClass&&F([n],i.cssClass.split(" ")),i.enableRtl&&n.classList.add("e-rtl"),t){var r=e("span",{className:"e-ripple-container"});fe(r,{isCenterRipple:!0,duration:400}),n.appendChild(r)}var o=e("span",{className:"e-frame e-icons"});if(i.checked&&o.classList.add("e-check"),n.appendChild(o),i.label){var s=e("span",{className:"e-label",innerHTML:i.label});n.appendChild(s)}return n}function Fe(e,t){if(t){var i=document.createEvent("MouseEvents");i.initEvent(e.type,!1,!0),t.dispatchEvent(i)}}function Be(e,t){e.element.getAttribute("ejs-for")&&t.appendChild(e.createElement("input",{attrs:{name:e.name||e.element.name,value:"false",type:"hidden"}}))}function ze(e,t){var i=!1,n={left:0,top:0},r=e;if(!e||!t)return n;for(d(t.offsetParent)&&"fixed"===t.style.position&&(i=!0);(t.offsetParent||i)&&e&&t.offsetParent!==e;)n.left+=e.offsetLeft,n.top+=e.offsetTop,e=e.offsetParent;for(e=r;(t.offsetParent||i)&&e&&t.offsetParent!==e;)n.left-=e.scrollLeft,n.top-=e.scrollTop,e=e.parentElement;return n}function Ve(e,t,i,n,r){if(kA=i+t==="topright"?void 0:r,kA=r,rE=!!n,!e)return{left:0,top:0};t||(t="left"),i||(i="top"),jA=e.ownerDocument,PA=e;return function(e,t,i){switch(EA=PA.getBoundingClientRect(),t+e){case"topcenter":He(Je(),i),We(Ge(),i);break;case"topright":He(Xe(),i),We(Ge(),i);break;case"centercenter":He(Je(),i),We(Ye(),i);break;case"centerright":He(Xe(),i),We(Ye(),i);break;case"centerleft":He(Qe(),i),We(Ye(),i);break;case"bottomcenter":He(Je(),i),We(qe(),i);break;case"bottomright":He(Xe(),i),We(qe(),i);break;case"bottomleft":He(Qe(),i),We(qe(),i);break;default:case"topleft":He(Qe(),i),We(Ge(),i)}return i}(t.toLowerCase(),i.toLowerCase(),{left:0,top:0})}function He(e,t){t.left=e}function We(e,t){t.top=e}function _e(){return jA.documentElement.scrollTop||jA.body.scrollTop}function Ue(){return jA.documentElement.scrollLeft||jA.body.scrollLeft}function qe(){return rE?EA.bottom:EA.bottom+_e()}function Ye(){return Ge()+EA.height/2}function Ge(){return rE?EA.top:EA.top+_e()}function Qe(){return EA.left+Ue()}function Xe(){return EA.right+Ue()-(kA?kA.width:0)}function Je(){return Qe()+EA.width/2}function Ke(e,t,i,n){if(void 0===t&&(t=null),void 0===i&&(i={X:!1,Y:!1}),!i.Y&&!i.X)return{left:0,top:0};var r=e.getBoundingClientRect();if(OA=t,NA=e.ownerDocument,n||(n=Ve(e,"left","top")),i.X){var o=OA?ot():ft(),s=dt(),a=ct(),l=s-n.left,h=n.left+r.width-a;r.width>o?n.left=l>0&&h<=0?a-r.width:h>0&&l<=0?s:l>h?a-r.width:s:l>0?n.left+=l:h>0&&(n.left-=h)}if(i.Y){var d=OA?st():mt(),c=ht(),p=pt(),u=c-n.top,g=n.top+r.height-p;r.height>d?n.top=u>0&&g<=0?p-r.height:g>0&&u<=0?c:u>g?p-r.height:c:u>0?n.top+=u:g>0&&(n.top-=g)}return n}function Ze(e,t,i,n){void 0===t&&(t=null);var r=Ve(e,"left","top");i&&(r.left=i),n&&(r.top=n);var o=[];OA=t,NA=e.ownerDocument;var s=e.getBoundingClientRect(),a=r.top,l=r.left,h=r.left+s.width,d=rt(a,r.top+s.height),c=tt(l,h);return d.topSide&&o.push("top"),c.rightSide&&o.push("right"),c.leftSide&&o.push("left"),d.bottomSide&&o.push("bottom"),o}function $e(e,t,i,n,r,o,s,a,l){if(void 0===s&&(s=null),void 0===a&&(a={X:!0,Y:!0}),t&&e&&r&&o&&(a.X||a.Y)){var h={TL:null,TR:null,BL:null,BR:null},d={TL:null,TR:null,BL:null,BR:null},c=e.style.visibility;e.style.visibility="hidden",e.style.display="block";var p=e.getBoundingClientRect();e.style.removeProperty("display"),e.style.visibility=c;var u={posX:r,posY:o,offsetX:i,offsetY:n,position:{left:0,top:0}};OA=s,NA=t.ownerDocument,function(e,t,i,n,r){i.position=Ve(e,i.posX,i.posY,n,r),t.TL=Ve(e,"left","top",n,r),t.TR=Ve(e,"right","top",n,r),t.BR=Ve(e,"left","bottom",n,r),t.BL=Ve(e,"right","bottom",n,r)}(t,h,u,l,p),et(d,u,p),a.X&&it(t,d,h,u,p,!0),a.Y&&h.TL.top>-1&&nt(t,d,h,u,p,!0),function(e,t,i){var n=0,r=0;if(null!=e.offsetParent&&("absolute"===getComputedStyle(e.offsetParent).position||"relative"===getComputedStyle(e.offsetParent).position)){var o=Ve(e.offsetParent,"left","top",!1,i);n=o.left,r=o.top}e.style.top=t.position.top+t.offsetY-r+"px",e.style.left=t.position.left+t.offsetX-n+"px"}(e,u,p)}}function et(e,t,i){e.TL={top:t.position.top+t.offsetY,left:t.position.left+t.offsetX},e.TR={top:e.TL.top,left:e.TL.left+i.width},e.BL={top:e.TL.top+i.height,left:e.TL.left},e.BR={top:e.TL.top+i.height,left:e.TL.left+i.width}}function tt(e,t){var i=!1,n=!1;return e-gt()<dt()&&(i=!0),t>ct()&&(n=!0),{leftSide:i,rightSide:n}}function it(e,t,i,n,r,o){var s=tt(t.TL.left,t.TR.left);i.TL.left-gt()<=dt()&&(s.leftSide=!1),i.TR.left>=ct()&&(s.rightSide=!1),(s.leftSide&&!s.rightSide||!s.leftSide&&s.rightSide)&&("right"===n.posX?n.posX="left":n.posX="right",n.offsetX=n.offsetX+r.width,n.offsetX=-1*n.offsetX,n.position=Ve(e,n.posX,n.posY,!1),et(t,n,r),o&&it(e,t,i,n,r,!1))}function nt(e,t,i,n,r,o){var s=rt(t.TL.top,t.BL.top);i.TL.top-ut()<=ht()&&(s.topSide=!1),i.BL.top>=pt()&&e.getBoundingClientRect().bottom<window.innerHeight&&(s.bottomSide=!1),(s.topSide&&!s.bottomSide||!s.topSide&&s.bottomSide)&&("top"===n.posY?n.posY="bottom":n.posY="top",n.offsetY=n.offsetY+r.height,n.offsetY=-1*n.offsetY,n.position=Ve(e,n.posX,n.posY,!1,r),et(t,n,r),o&&nt(e,t,i,n,r,!1))}function rt(e,t){var i=!1,n=!1;return e-ut()<ht()&&(i=!0),t>pt()&&(n=!0),{topSide:i,bottomSide:n}}function ot(){return OA.getBoundingClientRect().width}function st(){return OA.getBoundingClientRect().height}function at(){return OA.getBoundingClientRect().left}function lt(){return OA.getBoundingClientRect().top}function ht(){return OA?lt():0}function dt(){return OA?at():0}function ct(){return OA?gt()+at()+ot():gt()+ft()}function pt(){return OA?ut()+lt()+st():ut()+mt()}function ut(){return NA.documentElement.scrollTop||NA.body.scrollTop}function gt(){return NA.documentElement.scrollLeft||NA.body.scrollLeft}function mt(){return window.innerHeight}function ft(){var e=window.innerWidth;return e-(e-(d(document.documentElement)?0:document.documentElement.offsetWidth))}function yt(e,t){for(var i=getComputedStyle(e),n=[],r=/(auto|scroll)/,o=e.parentElement;o&&"HTML"!==o.tagName;){var s=getComputedStyle(o);"absolute"===i.position&&"static"===s.position||!r.test(s.overflow+s.overflowY+s.overflowX)||n.push(o),o=o.parentElement}return t||n.push(document),n}function vt(e){for(var t=e.parentElement,i=[];t&&"BODY"!==t.tagName;){var n=document.defaultView.getComputedStyle(t,null).getPropertyValue("z-index"),r=document.defaultView.getComputedStyle(t,null).getPropertyValue("position");"auto"!==n&&"static"!==r&&i.push(n),t=t.parentElement}for(var o=[],s=0;s<document.body.children.length;s++)if(!e.isEqualNode(document.body.children[s])){n=document.defaultView.getComputedStyle(document.body.children[s],null).getPropertyValue("z-index"),r=document.defaultView.getComputedStyle(document.body.children[s],null).getPropertyValue("position");"auto"!==n&&"static"!==r&&o.push(n)}o.push("999");var a=[];if(!d(e.parentElement)&&"BODY"!==e.parentElement.tagName){var l=[].slice.call(e.parentElement.children);for(s=0;s<l.length;s++){n=document.defaultView.getComputedStyle(l[s],null).getPropertyValue("z-index"),r=document.defaultView.getComputedStyle(l[s],null).getPropertyValue("position");"auto"!==n&&"static"!==r&&a.push(n)}}var h=i.concat(o,a),c=Math.max.apply(Math,h)+1;return c>2147483647?2147483647:c}function wt(e){ME=e.resizeBegin,LE=e.resizing,TE=e.resizeComplete,RA=bt(e.element),WA=bt(e.boundary);for(var t=e.direction.split(" "),i=0;i<t.length;i++)if(EE.indexOf(t[i])>=0&&t[i])!function(e){Lt();var t=R("span",{attrs:{unselectable:"on",contenteditable:"false"}});t.setAttribute("class","e-dialog-border-resize e-"+e),"south"===e&&(t.style.height="2px",t.style.width="100%",t.style.bottom="0px",t.style.left="0px");"north"===e&&(t.style.height="2px",t.style.width="100%",t.style.top="0px",t.style.left="0px");"east"===e&&(t.style.height="100%",t.style.width="2px",t.style.right="0px",t.style.top="0px");"west"===e&&(t.style.height="100%",t.style.width="2px",t.style.left="0px",t.style.top="0px");RA.appendChild(t)}(t[i]);else if(""!==t[i].trim()){var n=R("div",{className:"e-icons "+bE+" e-"+t[i]});RA.appendChild(n)}BA=e.minHeight,VA=e.minWidth,HA=e.maxWidth,zA=e.maxHeight,e.proxy&&e.proxy.element&&e.proxy.element.classList.contains("e-dialog")?Ct(e.proxy):Ct()}function bt(e){var t;return d(e)||(t="string"==typeof e?document.querySelector(e):e),t}function Ct(e){d(e)&&(e=this);for(var t=RA.querySelectorAll("."+bE),i=0;i<t.length;i++){FA=t[i],tT.add(FA,"mousedown",xt,e);var n="msie"===eT.info.name?"pointerdown":"touchstart";tT.add(FA,n,Tt,e)}var r=RA.querySelectorAll(".e-dialog-border-resize");if(!d(r))for(i=0;i<r.length;i++){FA=r[i],tT.add(FA,"mousedown",xt,e);n="msie"===eT.info.name?"pointerdown":"touchstart";tT.add(FA,n,Tt,e)}}function St(e){return e.indexOf("mouse")>-1?"mouse":"touch"}function xt(e){if(e.preventDefault(),RA=e.target.parentElement,Lt(),vE=e.pageX,wE=e.pageY,e.target.classList.add(CE),d(ME)||(UA=this,!0!==ME(e,UA))){var t=d(WA)?document:WA;tT.add(t,"mousemove",At,this),tT.add(document,"mouseup",Mt,this);for(var i=0;i<SE.length;i++)AE=!RA.classList.contains(SE[i])}}function Mt(e){var t="msie"===eT.info.name?"pointermove":"touchmove",i="msie"===eT.info.name?"pointerup":"touchend",n=d(WA)?document:WA;tT.remove(n,"mousemove",At),tT.remove(n,t,At);var r="msie"===eT.info.name?"pointerdown":"touchstart";tT.remove(n,r,At),d(document.body.querySelector("."+CE))||document.body.querySelector("."+CE).classList.remove(CE),d(TE)||TE(e,UA=this),tT.remove(document,"mouseup",Mt),tT.remove(document,i,Mt)}function Lt(){gE=parseFloat(getComputedStyle(RA,null).getPropertyValue("width").replace("px","")),mE=parseFloat(getComputedStyle(RA,null).getPropertyValue("height").replace("px","")),fE=RA.getBoundingClientRect().left,yE=RA.getBoundingClientRect().top}function Tt(e){RA=e.target.parentElement,Lt();var t=e.touches?e.changedTouches[0]:e;if(vE=t.pageX,wE=t.pageY,d(ME)||(UA=this,!0!==ME(e,UA))){var i="msie"===eT.info.name?"pointermove":"touchmove",n="msie"===eT.info.name?"pointerup":"touchend",r=d(WA)?document:WA;tT.add(r,i,At,this),tT.add(document,n,Mt)}}function At(e){if(e.target.classList.contains(bE)&&e.target.classList.contains(CE)?FA=e.target:d(document.body.querySelector("."+CE))||(FA=document.body.querySelector("."+CE)),!d(FA)){for(var t="",i=0;i<uE.length;i++)FA.classList.contains("e-"+uE[i])&&(t=uE[i]);switch(d(LE)||LE(e,UA=this),t){case"south":It(e);break;case"north":Et(e);break;case"west":kt(e);break;case"east":Pt(e);break;case"south-east":It(e),Pt(e);break;case"south-west":It(e),kt(e);break;case"north-east":Et(e),Pt(e);break;case"north-west":Et(e),kt(e)}}}function Dt(e){return e.getBoundingClientRect()}function It(e){var t,i=document.documentElement.clientHeight,n=!1,r=(e.touches?e.changedTouches[0]:e).pageY,o=Dt(RA);d(WA)||(t=Dt(WA)),d(WA)?d(WA)&&(i-r>=0||o.top<0)&&(n=!0):n=!0;var s=mE+(r-wE);s=s>BA?s:BA;var a=0;d(WA)||(a=t.top);var l=d(WA)?0:WA.offsetHeight-WA.clientHeight,h=o.top-a-l/2;if(h=h<0?0:h,o.top>0&&h+s>zA){if(n=!1,RA.classList.contains(xE))return;RA.style.height=zA-parseInt(h.toString(),10)+"px"}else{var c=0;if(n){o.top<0&&i+(o.height+o.top)>0&&s+(c=o.top)<=30&&(s=o.height-(o.height+o.top)+30),s+o.top>=zA&&(RA.style.height=o.height+(i-(o.height+o.top))+"px");var p=d(WA)?c:h;s>=BA&&s+p<=zA&&(RA.style.height=s+"px")}}}function Et(e){var t,i=!1,n="mouse"===St(e.type)?e.pageY:e.touches[0].pageY,r=Dt(RA);d(WA)||(t=Dt(WA)),!d(WA)&&r.top-t.top>0?i=!0:d(WA)&&n>0&&(i=!0);var o=mE-(n-wE);if(i&&o>=BA&&o<=zA){var s=0;d(WA)||(s=t.top);var a=yE-s+(n-wE);a=a>0?a:1,RA.style.height=o+"px",RA.style.top=a+"px"}}function kt(e){var t,i=document.documentElement.clientWidth,n=!1;d(WA)||(t=Dt(WA));var r="mouse"===St(e.type)?e.pageX:e.touches[0].pageX,o=Dt(RA),s=d(WA)?0:WA.offsetWidth-WA.clientWidth,a=d(WA)?0:t.left,l=d(WA)?0:t.width;d(_A)&&(d(WA)?_A=i:(_A=o.left-a-s/2+o.width,_A+=l-s-_A)),!d(WA)&&Math.floor(o.left-t.left+o.width+(t.right-o.right))-s<=HA?n=!0:d(WA)&&r>=0&&(n=!0);var h=gE-(r-vE);if(AE&&(h=h>_A?_A:h),n&&h>=VA&&h<=HA){var c=0;d(WA)||(c=t.left);var p=fE-c+(r-vE);p=p>0?p:1,h!==DE&&IE&&(RA.style.width=h+"px"),AE&&(RA.style.left=p+"px",IE=1!==p)}DE=h}function Pt(e){var t,i=document.documentElement.clientWidth,n=!1;d(WA)||(t=Dt(WA));var r=(e.touches?e.changedTouches[0]:e).pageX,o=Dt(RA);!d(WA)&&(o.left-t.left+o.width<HA||o.right-t.left>o.width)?n=!0:d(WA)&&i-r>0&&(n=!0);var s=gE+(r-vE),a=0;if(d(WA)||(a=t.left),o.left-a+s>HA){if(n=!1,RA.classList.contains(xE))return;RA.style.width=HA-(o.left-a)+"px"}n&&s>=VA&&s<=HA&&(RA.style.width=s+"px")}function jt(){for(var e=RA.querySelectorAll("."+bE),t=0;t<e.length;t++)U(e[t]);var i=RA.querySelectorAll(".e-dialog-border-resize");if(!d(i))for(t=0;t<i.length;t++)U(i[t])}function Nt(e,t){if(e.target){var i,n=d(t)?R:t,r=function(e,t){var i=t("div",{});i.classList.add(Lk);var n=t("div",{});return n.classList.add(Tk),e.appendChild(i),i.appendChild(n),{wrap:i,inner_wrap:n}}(e.target,n);if(d(e.cssClass)||r.wrap.classList.add(e.cssClass),d(e.template)&&d(pk)){var o=d(e.type)?function(e){return window.getComputedStyle(e,":after").getPropertyValue("content").replace(/['"]+/g,"")}(r.wrap):e.type;i=function(e,t){var i;switch(t){case"Material":i=gk;break;case"Fabric":i=mk;break;case"Bootstrap4":i=yk;break;default:i=fk}return e=e?parseFloat(e+""):i,"Bootstrap"===t?e:e/2}(d(e.width)?void 0:e.width,o),Ot(o,r.wrap,i,n),d(e.label)||function(e,t,i){var n=i("div",{});n.classList.add(Ik),n.textContent=t,e.appendChild(n)}(r.inner_wrap,e.label,n)}else{var s=d(e.template)?pk:e.template;r.wrap.classList.add(Ek),function(e,t,i){d(i)||e.classList.add(i);e.querySelector(".e-spinner-inner").innerHTML=t}(r.wrap,s,uk)}r.wrap.classList.add(wk),r=null}}function Ot(e,t,i,n){var r=t.querySelector("."+Tk),o=r.querySelector("svg");switch(d(o)||r.removeChild(o),e){case"Material":!function(e,t,i){var n=Ft();ck[n]={timeOut:0,type:"Material",radius:t},zt(e,n,i,bk),Ht(t,e,"Material",bk)}(r,i,n);break;case"Fabric":!function(e,t,i){var n=Ft();ck[n]={timeOut:0,type:"Fabric",radius:t},Bt(e,n,Ck,i),qt(t,e,Ck)}(r,i,n);break;case"Bootstrap":!function(e,t,i){var n=Ft();ck[n]={timeOut:0,type:"Bootstrap",radius:t},function(e,t,i){var n=document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("id",t),n.setAttribute("class",Sk),n.setAttribute("viewBox","0 0 64 64"),e.insertBefore(n,e.firstChild);for(var r=0;r<=7;r++){var o=document.createElementNS("http://www.w3.org/2000/svg","circle");o.setAttribute("class",Ak+"_"+r),o.setAttribute("r","2"),o.setAttribute("transform","translate(32,32)"),n.appendChild(o)}}(e,n),function(e,t){var i=e.querySelector("svg.e-spin-bootstrap");i.style.width=i.style.height=t+"px";for(var n=90,r=0;r<=7;r++){var o=Yt(0,0,24,n),s=i.querySelector("."+Ak+"_"+r);s.setAttribute("cx",o.x+""),s.setAttribute("cy",o.y+""),n=n>=360?0:n,n+=45}}(e,t)}(r,i);break;case"HighContrast":!function(e,t,i){var n=Ft();ck[n]={timeOut:0,type:"HighContrast",radius:t},Bt(e,n,Mk,i),qt(t,e,Mk)}(r,i,n);break;case"Bootstrap4":!function(e,t,i){var n=Ft();ck[n]={timeOut:0,type:"Bootstrap4",radius:t},zt(e,n,i,xk),Ht(t,e,"Bootstrap4",xk)}(r,i,n)}}function Rt(e,t){function i(e){n.push(e),e===o&&1!==a||(e<=r&&e>1&&!s?e=parseFloat((e-.2).toFixed(2)):1===e?(e=7,e=parseFloat((e+.2).toFixed(2)),s=!0):e<8&&s?8===(e=parseFloat((e+.2).toFixed(2)))&&(s=!1):e<=8&&!s&&(e=parseFloat((e-.2).toFixed(2))),++a,i(e))}var n=[],r=e,o=t,s=!1,a=1;return i(r),n}function Ft(){for(var e="",t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=0;i<5;i++)e+=t.charAt(Math.floor(Math.random()*t.length));return e}function Bt(e,t,i,n){var r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("id",t),r.setAttribute("class",i);var o=document.createElementNS("http://www.w3.org/2000/svg","path");o.setAttribute("class",Ak);var s=document.createElementNS("http://www.w3.org/2000/svg","path");s.setAttribute("class",Dk),e.insertBefore(r,e.firstChild),r.appendChild(o),r.appendChild(s)}function zt(e,t,i,n){var r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("class",n),r.setAttribute("id",t);var o=document.createElementNS("http://www.w3.org/2000/svg","path");o.setAttribute("class",Ak),e.insertBefore(r,e.firstChild),r.appendChild(o)}function Vt(e){!function(e,t,i,n,r,o,s){function a(t){var r=Math.max(0,Math.min((new Date).getTime()-h,n));!function(e,t){if(!d(t.querySelector("svg.e-spin-material"))&&!d(t.querySelector("svg.e-spin-material").querySelector("path.e-path-circle"))){var i=t.querySelector("svg.e-spin-material"),n=i.querySelector("path.e-path-circle");n.setAttribute("stroke-dashoffset",_t(p,u,e,o)+""),n.setAttribute("transform","rotate("+g+" "+p/2+" "+p/2+")")}}(i(r,e,c,n),t.container),l===t.globalInfo[t.uniqueID].previousId&&r<n?ck[t.uniqueID].timeOut=setTimeout(a.bind(null,t),1):Vt(t)}var l=++s.globalInfo[s.uniqueID].previousId,h=(new Date).getTime(),c=t-e,p=function(e){return parseFloat(e)}(2*s.globalInfo[s.uniqueID].radius+""),u=Wt(p),g=-90*(s.globalInfo[s.uniqueID].count||0);a(s)}(1,149,Ut,1333,e.globalInfo[e.uniqueID].count,75,e),e.globalInfo[e.uniqueID].count=++e.globalInfo[e.uniqueID].count%4}function Ht(e,t,i,n){var r=2*e,o=t.querySelector("svg."+n),s=o.querySelector("path.e-path-circle"),a=Wt(r),l=r/2+"px";o.setAttribute("viewBox","0 0 "+r+" "+r),o.style.width=o.style.height=r+"px",o.style.transformOrigin=l+" "+l+" "+l,s.setAttribute("d",function(e,t){var i=e/2,n=t/2;return"M"+i+","+n+"A"+(i-n)+","+(i-n)+" 0 1 1 "+n+","+i}(r,a)),"Material"===i&&(s.setAttribute("stroke-width",a+""),s.setAttribute("stroke-dasharray",(r-a)*Math.PI*.75+""),s.setAttribute("stroke-dashoffset",_t(r,a,1,75)+""))}function Wt(e){return.1*e}function _t(e,t,i,n){return(e-t)*Math.PI*(3*n/100-i/100)}function Ut(e,t,i,n){var r=(e/=n)*e,o=r*e;return t+i*(6*o*r+-15*r*r+10*o)}function qt(e,t,i){var n=e,r=e,o=2*e,s=t.querySelector("."+i),a=s.querySelector(".e-path-circle"),l=s.querySelector(".e-path-arc"),h=o/2+"px";a.setAttribute("d",function(e,t,i){return["M",e,t,"m",-i,0,"a",i,i,0,1,0,2*i,0,"a",i,i,0,1,0,2*-i,0].join(" ")}(n,r,e)),l.setAttribute("d",function(e,t,i,n,r){var o=Yt(e,t,i,r),s=Yt(e,t,i,n);return["M",o.x,o.y,"A",i,i,0,0,0,s.x,s.y].join(" ")}(n,r,e,315,45)),s.setAttribute("viewBox","0 0 "+o+" "+o),s.style.transformOrigin=h+" "+h+" "+h,s.style.width=s.style.height=o+"px"}function Yt(e,t,i,n){var r=(n-90)*Math.PI/180;return{x:e+i*Math.cos(r),y:t+i*Math.sin(r)}}function Gt(e){Qt(e,!1),e=null}function Qt(e,t){var i;if(e&&(i=e.classList.contains(Lk)?e:e.querySelector("."+Lk)),e&&i){var n=i.querySelector("."+Tk);if(t?!i.classList.contains(Ek)&&!i.classList.contains(wk):!i.classList.contains(Ek)&&!i.classList.contains(vk)){var r=i.querySelector("svg");if(d(r))return;var o=r.getAttribute("id");switch(ck[o].isAnimate=!t,ck[o].type){case"Material":t?clearTimeout(ck[o].timeOut):function(e,t,i){var n={};ck[t].timeOut=0,n[t]=function(e,t,i,n){return{radius:t,count:i,previousId:n}}(0,i,0,0),Vt({uniqueID:t,container:e,globalInfo:n,timeOutVar:0})}(n,o,ck[o].radius);break;case"Bootstrap":t?clearTimeout(ck[o].timeOut):function(e){for(var t=e.querySelector("svg.e-spin-bootstrap").getAttribute("id"),i=1;i<=8;i++)!function(e,t,i,n,r){function o(t){ck[r].isAnimate&&(++s,e.setAttribute("r",t+""),s>=n.length&&(s=0),ck[r].timeOut=setTimeout(o.bind(null,n[s]),18))}var s=0;o(t)}(e.getElementsByClassName("e-path-circle_"+(8===i?0:i))[0],i,0,Rt(i,i),t)}(n)}}t?Z(i,[wk],[vk]):Z(i,[vk],[wk]),e=null}}function Xt(e){Qt(e,!0),e=null}function Jt(e,t){var i=d(t)?R:t;void 0!==e.template&&(pk=e.template,void 0!==e.template&&(uk=e.cssClass));for(var n=document.querySelectorAll("."+Lk),r=0;r<n.length;r++)!function(e,t,i,n,r){d(e)&&!t.classList.contains(Ek)?(!function(e,t,i,n){d(i)||e.classList.add(i);var r=e.querySelector("svg"),o="Bootstrap"===t?parseFloat(r.style.height):parseFloat(r.style.height)/2;if(r.getAttribute("class").split(/\s/).indexOf("e-spin-material")>=0){var s=r.getAttribute("id");clearTimeout(ck[s].timeOut)}Ot(t,e,o,n)}(t,i,n,r),t.classList.contains(vk)?(t.classList.remove(vk),Gt(t)):(t.classList.remove(wk),Xt(t))):(pk=e,d(n)||(uk=n))}(e.template,n[r],e.type,e.cssClass,i)}function Kt(){if(Y(this.element,{role:"textbox",autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false","aria-live":"assertive","aria-valuenow":""}),this.mask){for(var e=this.mask.split("]"),t=0;t<e.length;t++)if("\\"===e[t][e[t].length-1]){e[t]=e[t]+"]";for(var i=e[t].split("["),n=0;n<i.length;n++)"\\"===i[n][i[n].length-1]&&(i[n]=i[n]+"["),si.call(this,i[n])}else{if((i=e[t].split("[")).length>1){var r=!1;for(n=0;n<i.length;n++)"\\"===i[n]?(this.customRegExpCollec.push("["),this.hiddenMask+=i[n]+"["):""===i[n]?r=!0:""!==i[n]&&r||n===i.length-1?(this.customRegExpCollec.push("["+i[n]+"]"),this.hiddenMask+=this.promptChar,r=!1):si.call(this,i[n])}else si.call(this,i[0])}if(this.escapeMaskValue=this.hiddenMask,this.promptMask=this.hiddenMask.replace(/[09?LCAa#&]/g,this.promptChar),!d(this.customCharacters))for(t=0;t<this.promptMask.length;t++)d(this.customCharacters[this.promptMask[t]])||(this.promptMask=this.promptMask.replace(new RegExp(this.promptMask[t],"g"),this.promptChar));var o=0;if(this.hiddenMask.match(new RegExp(/\\/)))for(t=0;t<this.hiddenMask.length;t++){n=0;t>=1&&(n=t),n-=o=this.hiddenMask.length-this.promptMask.length,t>0&&"\\"!==this.hiddenMask[t-1]&&(">"===this.hiddenMask[t]||"<"===this.hiddenMask[t]||"|"===this.hiddenMask[t])&&(this.promptMask=this.promptMask.substring(0,n)+this.promptMask.substring(t+1-o,this.promptMask.length),this.escapeMaskValue=this.escapeMaskValue.substring(0,n)+this.escapeMaskValue.substring(t+1-o,this.escapeMaskValue.length)),"\\"===this.hiddenMask[t]&&(this.promptMask=this.promptMask.substring(0,n)+this.hiddenMask[t+1]+this.promptMask.substring(t+2-o,this.promptMask.length),this.escapeMaskValue=this.escapeMaskValue.substring(0,n)+this.escapeMaskValue[t+1]+this.escapeMaskValue.substring(t+2-o,this.escapeMaskValue.length))}else this.promptMask=this.promptMask.replace(/[>|<]/g,""),this.escapeMaskValue=this.hiddenMask.replace(/[>|<]/g,"");Y(this.element,{"aria-invalid":"false"})}}function Zt(){Ti.call(this,this.promptMask),Li.call(this,this.value)}function $t(){tT.add(this.element,"keydown",ui,this),tT.add(this.element,"keypress",yi,this),tT.add(this.element,"keyup",wi,this),tT.add(this.element,"input",pi,this),tT.add(this.element,"focus",ai,this),tT.add(this.element,"blur",li,this),tT.add(this.element,"paste",hi,this),tT.add(this.element,"cut",di,this),tT.add(this.element,"drop",ci,this),this.enabled&&(ti.call(this),this.formElement&&tT.add(this.formElement,"reset",ni,this))}function ei(){tT.remove(this.element,"keydown",ui),tT.remove(this.element,"keypress",yi),tT.remove(this.element,"keyup",wi),tT.remove(this.element,"input",pi),tT.remove(this.element,"focus",ai),tT.remove(this.element,"blur",li),tT.remove(this.element,"paste",hi),tT.remove(this.element,"cut",di),this.formElement&&tT.remove(this.formElement,"reset",ni)}function ti(){this.showClearButton&&tT.add(this.inputObj.clearButton,"mousedown touchstart",ii,this)}function ii(e){e.preventDefault(),this.inputObj.clearButton.classList.contains("e-clear-icon-hide")||(function(e){var t=this.element.value;Ti.call(this,this.promptMask),this.redoCollec.unshift({value:this.promptMask,startIndex:this.element.selectionStart,endIndex:this.element.selectionEnd}),vi.call(this,e,t),this.element.setSelectionRange(0,0)}.call(this,e),this.value="")}function ni(){"EJS-MASKEDTEXTBOX"===this.element.tagName?Ti.call(this,this.promptMask):this.value=this.initInputValue}function ri(e){return e.value}function oi(e,t){var i="",n=0,r=!1,o=d(t)?d(e)||d(this)?t:e.value:t;if(o!==this.promptMask)for(var s=0;s<this.customRegExpCollec.length;s++)r&&(r=!1),">"!==this.customRegExpCollec[n]&&"<"!==this.customRegExpCollec[n]&&"|"!==this.customRegExpCollec[n]&&"\\"!==this.customRegExpCollec[n]||(--s,r=!0),r||o[s]!==this.promptChar&&!d(this.customRegExpCollec[n])&&(this._callPasteHandler||!d(this.regExpCollec[this.customRegExpCollec[n]])||this.customRegExpCollec[n].length>2&&"["===this.customRegExpCollec[n][0]&&"]"===this.customRegExpCollec[n][this.customRegExpCollec[n].length-1]||!d(this.customCharacters)&&!d(this.customCharacters[this.customRegExpCollec[n]]))&&""!==o&&(i+=o[s]),++n;return(null===this.mask||""===this.mask&&void 0!==this.value)&&(i=o),i}function si(e){for(var t=0;t<e.length;t++)this.hiddenMask+=e[t],"\\"!==e[t]&&this.customRegExpCollec.push(e[t])}function ai(e){var t=this,i={selectionStart:0,event:e,value:this.value,maskedValue:this.element.value,container:this.inputObj.container,selectionEnd:this.promptMask.length>0?this.promptMask.length:this.element.value.length};this.trigger("focus",i,function(e){if(t.mask)if(t.isFocus=!0,""===t.element.value?Ti.call(t,t.promptMask):Ti.call(t,t.element.value),eT.isDevice||"11.0"!==eT.info.version){var i=eT.isDevice&&eT.isIos?450:0;setTimeout(function(){t.element.setSelectionRange(e.selectionStart,e.selectionEnd)},i)}else t.element.setSelectionRange(e.selectionStart,e.selectionEnd)})}function li(e){if(this.blurEventArgs={event:e,value:this.value,maskedValue:this.element.value,container:this.inputObj.container},this.trigger("blur",this.blurEventArgs),this.mask&&(this.isFocus=!1,this.placeholder&&this.element.value===this.promptMask&&"Always"!==this.floatLabelType)){Ti.call(this,"");var t=this.element.parentNode.querySelector(".e-float-text");"Auto"===this.floatLabelType&&!d(t)&&t.classList.contains(Gk)&&B([t],Gk)}}function hi(e){var t=this;if(this.mask&&!this.readonly){var i=this.element.selectionStart,n=this.element.selectionEnd,r=this.element.value;Ti.call(this,""),this._callPasteHandler=!0,setTimeout(function(){var o=t.element.value.replace(/ /g,"");t.redoCollec.length>0&&t.redoCollec[0].value===t.element.value&&(o=oi.call(t,t.element)),Ti.call(t,r),t.element.selectionStart=i,t.element.selectionEnd=n;var s=0;t.maskKeyPress=!0;do{Ci.call(t,o[s],!1,null),++s}while(s<o.length);if(t.maskKeyPress=!1,t._callPasteHandler=!1,t.element.value===r){var a=0;t.maskKeyPress=!0;do{Ci.call(t,o[a],!1,null),++a}while(a<o.length);t.maskKeyPress=!1}else vi.call(t,e,r)},1)}}function di(e){var t=this;if(this.mask&&!this.readonly){var i=this.element.value,n=this.element.selectionStart,r=this.element.selectionEnd;this.undoCollec.push({value:this.element.value,startIndex:this.element.selectionStart,endIndex:this.element.selectionEnd});var o=this.element.value.substring(0,n)+this.promptMask.substring(n,r)+this.element.value.substring(r);setTimeout(function(){Ti.call(t,o),t.element.selectionStart=t.element.selectionEnd=n,t.element.value!==i&&vi.call(t,e,null)},0)}}function ci(e){e.preventDefault()}function pi(e){if(!0!==eT.isIE||""!==this.element.value||"Never"!==this.floatLabelType){if(h(e,{ctrlKey:!1,keyCode:229}),this.mask){if(""===this.element.value&&this.redoCollec.unshift({value:this.promptMask,startIndex:this.element.selectionStart,endIndex:this.element.selectionEnd}),1===this.element.value.length&&(this.element.value=this.element.value+this.promptMask,this.element.setSelectionRange(1,1)),this._callPasteHandler||fi.call(this,e),this.element.value.length>this.promptMask.length){var t=this.element.selectionStart,i=this.element.value.length-this.promptMask.length,n=this.element.value.substring(t-i,t);this.maskKeyPress=!1;var r=0;do{Ci.call(this,n[r],e.ctrlKey,e),++r}while(r<n.length);this.element.value!==this.preEleVal&&vi.call(this,e,null)}var o=oi.call(this,this.element);this.prevValue=o,this.value=o,""===o&&(Ti.call(this,this.promptMask),this.element.setSelectionRange(0,0))}}}function ui(e){if(this.mask&&!this.readonly){229!==e.keyCode&&(!e.ctrlKey||89!==e.keyCode&&90!==e.keyCode||e.preventDefault(),fi.call(this,e));var t=this.element.value;if(e.ctrlKey&&(89===e.keyCode||90===e.keyCode)){var i=void 0;90===e.keyCode&&this.undoCollec.length>0&&t!==this.undoCollec[this.undoCollec.length-1].value?(i=this.undoCollec[this.undoCollec.length-1],this.redoCollec.unshift({value:this.element.value,startIndex:this.element.selectionStart,endIndex:this.element.selectionEnd}),Ti.call(this,i.value),this.element.selectionStart=i.startIndex,this.element.selectionEnd=i.endIndex,this.undoCollec.splice(this.undoCollec.length-1,1