@syncfusion/ej2-vue-grids
Version:
Feature-rich JavaScript datagrid (datatable) control with built-in support for editing, filtering, grouping, paging, sorting, and exporting to Excel. for Vue
10 lines • 3.77 MB
JavaScript
/*!
* filename: ej2-vue-grids.min.js
* version : 21.1.37
* 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[parseInt(i.toString(),10)];return t}(i),s=function(i){i.source===window&&"string"==typeof i.data&&i.data.length<=32&&i.data===n&&(e(),t())};return window.addEventListener("message",s,!1),window.postMessage(n,"*"),t=function(){window.removeEventListener("message",s),e=s=n=void 0}}function n(e,t){for(var i=t,n=e.replace(/\[/g,".").replace(/\]/g,"").split("."),s=0;s<n.length&&!p(i);s++)i=i[n[parseInt(s.toString(),10)]];return i}function s(e,t,i){var n,s,r=e.replace(/\[/g,".").replace(/\]/g,"").split("."),o=i||{},a=o,l=r.length;for(n=0;n<l;n++)s=r[parseInt(n.toString(),10)],n+1===l?a[""+s]=void 0===t?{}:t:c(a[""+s])&&(a[""+s]={}),a=a[""+s];return o}function r(e,t){delete e[""+t]}function o(e){return!c(e)&&e.constructor==={}.constructor}function a(e,t){return e[t]}function l(e,t){if(!c(t))for(var i=e,n=t,s=0,r=Object.keys(t);s<r.length;s++){var a=r[s];c(i.deepMerge)||-1===i.deepMerge.indexOf(a)||!o(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 s=e&&"object"==typeof e?e:{},r=arguments.length;n&&(r-=1);for(var a=function(e){if(!l[e])return"continue";var t=l[e];Object.keys(t).forEach(function(e){var i,r=s[""+e],a=t[""+e],l=Array.isArray(a)&&Array.isArray(r)&&a.length!==r.length,c=!v()||!(r instanceof Event||l);n&&c&&(o(a)||Array.isArray(a))?o(a)?(i=r||{},Array.isArray(i)&&i.hasOwnProperty("isComplexArray")?h(i,{},a,n):s[""+e]=h(i,{},a,n)):(i=v()?r&&Object.keys(a).length:r||[],s[""+e]=h([],i,a,i&&i.length||a&&a.length)):s[""+e]=a})},l=arguments,c=1;c<r;c++)a(c);return s}function c(e){return void 0===e||null===e}function p(e){return void 0===e}function u(e){return e+"_"+Za++}function d(e,t){var i;return function(){var n=this,s=arguments;clearTimeout(i),i=setTimeout(function(){return i=null,e.apply(n,s)},t)}}function g(e,t){var i=e;return i===t||!(i===document||!i)&&g(i.parentNode,t)}function f(e){try{throw new Error(e)}catch(e){throw e.message+"\n"+e.stack}}function m(e,t){var i=document.createElement("div"),n=[].slice.call(document.getElementsByTagName("head")[0].querySelectorAll("base, link, style")),s=[].slice.call(document.getElementsByTagName("body")[0].querySelectorAll("link, style"));if(s.length)for(var r=0,o=s.length;r<o;r++)n.push(s[parseInt(r.toString(),10)]);var a="";c(t)&&(t=window.open("","print","height=452,width=1024,tabbar=no")),i.appendChild(e.cloneNode(!0));var l=0;for(o=n.length;l<o;l++)a+=n[parseInt(l.toString(),10)].outerHTML;t.document.write("<!DOCTYPE html> <html><head>"+a+"</head><body>"+i.innerHTML+"<script> (function() { window.ready = true; })(); <\/script></body></html>"),t.document.close(),t.focus();var h=setInterval(function(){t.ready&&(t.print(),t.close(),clearInterval(h))},500);return t}function y(e){var t=e+"";return t.match(/auto|cm|mm|in|px|pt|pc|%|em|ex|ch|rem|vw|vh|vmin|vmax/)?t:t+"px"}function v(){return el}function b(e){return e instanceof Node||!v()||c(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[""+Ja])for(var n=0,s=i[""+Ja];n<s.length;n++){var r=s[n];if(r instanceof t)return r}return null}function S(){if("undefined"!=typeof window){var e=new Uint16Array(5);return(window.msCrypto||window.crypto).getRandomValues(e)}}function w(e){Dl=e,Il.notify("notifyExternalChange",{locale:Dl})}function x(e,t){var i=al.getDependables(El,e,"",!0)[Tl[0]],s=al.getDependables(El,e,"")[Tl[1]],r=n("defaultNumberingSystem",i),o=v()?n("numberSymbols",i):n("symbols-numberSystem-"+r,i),a=al.getSymbolPattern(t||"decimal",r,i,!1);return h(o,al.getFormatData(a,!0,"",!0),{dateSeparator:al.getDateSeparator(s)})}function I(e){return al.getDependables(El,"",e,!1)[Tl[1]]}function M(e,t){var i=Kl.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&&P(i,t.attrs),i)}function E(e,t){for(var i=k(t),r=RegExp,a=0,l=e;a<l.length;a++)for(var h=l[a],p=0,u=i;p<u.length;p++){var d=u[p];if(o(h)){var g=n("attributes.className",h);c(g)?s("attributes.className",d,h):new r("\\b"+d+"\\b","i").test(g)||s("attributes.className",g+" "+d,h)}else h.classList.contains(d)||h.classList.add(d)}return e}function D(e,t){for(var i=k(t),r=0,a=e;r<a.length;r++){var l=a[r],h=o(l);if(h?n("attributes.className",l):""!==l.className)for(var c=0,p=i;c<p.length;c++){var u=p[c];if(h){var d=n("attributes.className",l).split(" "),g=d.indexOf(u);-1!==g&&d.splice(g,1),s("attributes.className",d.join(" "),l)}else l.classList.remove(u)}}return e}function k(e){var t=[];return"string"==typeof e?t.push(e):t=e,t}function T(e){var t=e;return""===t.style.visibility&&t.offsetWidth>0}function A(e,t,i){for(var n=document.createDocumentFragment(),s=0,r=e;s<r.length;s++){var o=r[s];n.appendChild(o)}return t.insertBefore(n,t.firstElementChild),i&&N(t),e}function L(e,t,i){for(var n=document.createDocumentFragment(),s=0,r=e;s<r.length;s++){var o=r[s];n.appendChild(o)}return t.appendChild(n),i&&N(t),e}function N(e){e.querySelectorAll("script").forEach(function(e){var t=document.createElement("script");t.text=e.innerHTML,document.head.appendChild(t),O(t)})}function O(e){var t=e.parentNode;if(t)return t.removeChild(e)}function R(e){var t=e.parentNode;Ql.clearEvents(e),t.removeChild(e)}function P(e,t){for(var i=e,n=0,s=Object.keys(t);n<s.length;n++){var r=s[n];if(o(i)){var a=r;"tabindex"===r&&(a="tabIndex"),i.attributes[""+a]=t[""+r]}else i.setAttribute(r,t[""+r])}return i}function z(e,t,i){return void 0===t&&(t=document),e=F(e),t.querySelector(e)}function j(e,t,i){void 0===t&&(t=document),e=F(e);return t.querySelectorAll(e)}function F(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 s=i[parseInt(n.toString(),10)].split(" "),r=0;r<s.length;r++)if(s[parseInt(r.toString(),10)].indexOf("#")>-1&&!s[parseInt(r.toString(),10)].match(/\[.*\]/)){var o=s[parseInt(r.toString(),10)].split("#");if(o[1].match(/^\d/)||o[1].match(t)){var a=s[parseInt(r.toString(),10)].split(".");a[0]=a[0].replace(/#/,"[id='")+"']",s[parseInt(r.toString(),10)]=a.join(".")}}i[parseInt(n.toString(),10)]=s.join(" ")}return i.join(",")}return e}function B(e,t){var i=e;if("function"==typeof i.closest)return i.closest(t);for(;i&&1===i.nodeType;){if(q(i,t))return i;i=i.parentNode}return null}function V(e,t){void 0!==t&&Object.keys(t).forEach(function(i){e.style[i]=t[i]})}function H(e,t,i){E([e],t),D([e],i)}function q(e,t){var i=e.matches||e.msMatchesSelector||e.webkitMatchesSelector;return i?i.call(e,t):-1!==[].indexOf.call(document.querySelectorAll(t),e)}function W(e,t){var i,n,s="string"==typeof e?document.getElementById(e):e;for(n=0;n<s.ej2_instances.length;n++)if(i=s.ej2_instances[parseInt(n.toString(),10)],"string"==typeof t){if(t===i.getModuleName())return i}else if(i instanceof t)return i}function U(e,i,n,s){return e.properties.hasOwnProperty(i)&&e.properties[i]instanceof s||(e.properties[""+i]=t(s,[e,i,n])),e.properties[""+i]}function _(e,i,n,s,r,o){for(var a=[],l=n?n.length:0,h=0;h<l;h++){var c=s;if(o&&(c=s(n[parseInt(h.toString(),10)],e)),r){var p=t(c,[e,i,{},!0]);p.setProperties(n[parseInt(h.toString(),10)],!0),a.push(p)}else a.push(t(c,[e,i,n[parseInt(h.toString(),10)],!1]))}return a}function G(e,t){return function(){return this.properties.hasOwnProperty(t)||(this.properties[""+t]=e),this.properties[""+t]}}function Y(e,t,i){return function(){var n=this;if(!this.properties.hasOwnProperty(t)){var s=_(this,t,e,i,!1);this.properties[""+t]=s}var r=void 0!==this.controlParent&&this.controlParent.ignoreCollectionWatch||this.ignoreCollectionWatch;return this.properties[t].hasOwnProperty("push")||r||["push","pop"].forEach(function(e){var i={value:function(e,t,i,n){return function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];var r=this.propName?this.getParentKey()+"."+t+"-":t+"-";switch(e){case"push":for(var o=0;o<i.length;o++){Array.prototype[""+e].apply(n,[i[parseInt(o.toString(),10)]]);var a=Q(r+(n.length-1),i[parseInt(o.toString(),10)],!this.controlParent,e);this.serverDataBind(a,i[parseInt(o.toString(),10)],!1,e)}break;case"pop":Array.prototype[""+e].apply(n);var l=Q(r+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 Q(e,t,i,n){var s=e;if(i&&(s={},s[""+e]=t,t&&"object"==typeof t)){s[""+e].ejsAction=n}return s}function K(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:G(e,i),enumerable:!0,configurable:!0};Object.defineProperty(t,i,n),ee(t,i,"prop",e)}}function X(e,t){return function(i,n){var s={set:function(e,t,i){return function(n){U(this,t,e,i).setProperties(n)}}(e,n,t),get:function(e,t,i){return function(){return U(this,t,e,i)}}(e,n,t),enumerable:!0,configurable:!0};Object.defineProperty(i,n,s),ee(i,n,"complexProp",e,t)}}function $(e,t){return function(i,n){var s={set:function(e,t,i){return function(n){this.isComplexArraySetter=!0;var s=_(this,t,e,i,!1),r=_(this,t,n,i,!0);this.isComplexArraySetter=!1,this.saveChanges(t,r,s),this.properties[""+t]=r}}(e,n,t),get:Y(e,n,t),enumerable:!0,configurable:!0};Object.defineProperty(i,n,s),ee(i,n,"colProp",e,t)}}function J(){return function(e,t){var i={set:function(e){var i=this.properties[""+t];if(i!==e){var n=ie(this,t);!1===p(i)&&n.context.removeEventListener(n.prefix,i),n.context.addEventListener(n.prefix,e),this.properties[""+t]=e}},get:G(void 0,t),enumerable:!0,configurable:!0};Object.defineProperty(e,t,i),ee(e,t,"event")}}function Z(e){}function ee(e,t,i,n,s){p(e.propList)&&(e.propList={props:[],complexProps:[],colProps:[],events:[],propNames:[],complexPropNames:[],colPropNames:[],eventNames:[]}),e.propList[i+"s"].push({propertyName:t,defaultValue:n,type:s}),e.propList[i+"Names"].push(t)}function te(e){if(p(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 s=n[i],r=function(i){t.test(s)?e.prototype.builderObject[i.propertyName]=function(e){var t={};l(t,te(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}},o=0,a=e.prototype.propList[""+s];o<a.length;o++){r(a[o])}}return e.prototype.builderObject}function ie(e,t){if(!1===e.hasOwnProperty("parentObj"))return{context:e,prefix:t};var i=n("propName",e);return i&&(t=i+"-"+t),ie(n("parentObj",e),t)}function ne(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&&!th?function(){}:(e.setAttribute("data-ripple","true"),Ql.add(e,"mousedown",se,{parent:e,rippleOptions:n}),Ql.add(e,"mouseup",re,{parent:e,rippleOptions:n,done:i}),Ql.add(e,"mouseleave",oe,{parent:e,rippleOptions:n}),Yl.isPointer&&Ql.add(e,"transitionend",oe,{parent:e,rippleOptions:n}),function(){e.removeAttribute("data-ripple"),Ql.remove(e,"mousedown",se),Ql.remove(e,"mouseup",re),Ql.remove(e,"mouseleave",oe),Ql.remove(e,"transitionend",oe)})}function se(e){var t=e.target,i=this.rippleOptions.selector,n=i?B(t,i):t;if(!(!n||this.rippleOptions&&B(t,this.rippleOptions.ignore))){var s=n.getBoundingClientRect(),r=e.pageX-document.body.scrollLeft,o=e.pageY-(!document.body.scrollTop&&document.documentElement?document.documentElement.scrollTop:document.body.scrollTop),a=Math.max(Math.abs(r-s.left),Math.abs(r-s.right)),l=Math.max(Math.abs(o-s.top),Math.abs(o-s.bottom)),h=Math.sqrt(a*a+l*l),c=2*h+"px",p=r-s.left-h,u=o-s.top-h;this.rippleOptions&&this.rippleOptions.isCenterRipple&&(p=0,u=0,c="100%"),n.classList.add("e-ripple");var d=M("div",{className:"e-ripple-element",styles:"width: "+c+";height: "+c+";left: "+p+"px;top: "+u+"px;transition-duration: "+this.rippleOptions.duration.toString()+"ms;"});n.appendChild(d),window.getComputedStyle(d).getPropertyValue("opacity"),d.style.transform="scale(1)",n!==this.parent&&Ql.add(n,"mouseleave",oe,{parent:this.parent,rippleOptions:this.rippleOptions})}}function re(e){ae(e,this)}function oe(e){ae(e,this)}function ae(e,t){var i=t.rippleOptions.duration,n=e.target,s=t.rippleOptions.selector,r=s?B(n,s):n;if(r&&(!r||-1!==r.className.indexOf("e-ripple"))){var o=j(".e-ripple-element",r),a=o[o.length-1];a&&(a.style.opacity="0.5"),t.parent!==r&&Ql.remove(r,"mouseleave",oe),setTimeout(function(){a&&a.parentNode&&a.parentNode.removeChild(a),r.getElementsByClassName("e-ripple-element").length||r.classList.remove("e-ripple"),t.done&&t.done(e)},i)}}function le(e){for(var t="",i=0,n=e;i<n.length;i++){var s=n[i];t+=String.fromCharCode(s)}return t}function he(e){lh=new ah(e)}function ce(e,t,i){var n='var str="'+function(e,t,i,n){var s=0,r=[],o=e.match(/class="([^"]+|)\s{2}/g),a="";o&&o.forEach(function(t){a=t.replace(/\s\s+/g," "),e=e.replace(t,a)});return e.replace(Gh,"").replace(ic,"'$1'").replace(sc,function(e,o,a,l){var h=o.match(Zh);if(h){var c=h[1];if(Kh.test(o))o='";} '+o.replace(h[1],c.replace(tc,function(e){return e=e.trim(),pe(e,!Yh.test(e)&&-1===r.indexOf(e),t,r,n)}))+'{ \n str = str + "';else if(Qh.test(o))o='"; '+o.replace(h[1],c.replace(nc,function(e){return ge(e,t,r,n)}))+'{ \n str = str + "';else if($h.test(o)){var p=h[1].split(" of ");o='"; '+o.replace(h[1],function(e){return r.push(p[0]),r.push(p[0]+"Index"),"var i"+(s+=1)+"=0; i"+s+" < "+pe(p[1],!0,t,r,n)+".length; i"+s+"++"})+"{ \n "+p[0]+"= "+pe(p[1],!0,t,r,n)+"[i"+s+"]; \n var "+p[0]+"Index=i"+s+'; \n str = str + "'}else{var u=o.split("("),d=i&&i.hasOwnProperty(u[0])?"this.":"global";d=/\./.test(u[0])?"":d;var g=h[1].split(",");0===h[1].length||/data/.test(g[0])||/window./.test(g[0])||(h[1]="global"===d?t+"."+h[1]:h[1]);if(hc.test(o)&&/\]\./gm.test(o)||/@|\$|#/gm.test(o)){/@|\$|#|\]\./gm.test(o)&&(o='"+ '+("global"===d?"":d)+o.replace(h[1],c.replace(lc,function(e){return ge(e,t,r,n)}))+'+ "')}else o='" + '+("global"===d?"":d)+o.replace(c,pe(h[1].replace(/,( |)data.|,/gi,","+t+".").replace(/,( |)data.window/gi,",window"),"global"!==d,t,r,n))+'+"'}}else Xh.test(o)?o='"; '+o.replace(Xh,'} else { \n str = str + "'):o.match(Jh)?o=o.replace(Jh,'"; \n } \n str = str + "'):/@|#|\$/gm.test(o)?(o.match(oc)&&(o=de(o)),o='"+'+ue(o,-1===r.indexOf(o),t,r)+'"]+"'):o=o.match(oc)?'"+'+ue(o=de(o),-1===r.indexOf(o),t,r)+'"]+"':""!==o?'"+'+pe(o.replace(/,/gi,"+"+t+"."),-1===r.indexOf(o),t,r,n)+'+"':" ";return o})}(e,"data",t,i)+"\";var valueRegEx = (/value=\\'([A-Za-z0-9 _]*)((.)([\\w)(!-;?-■\\s]+)['])/g);\n var hrefRegex = (/(?:href)([\\s='\"./]+)([\\w-./?=&\\\\#\"]+)((.)([\\w)(!-;/?-■\\s]+)['])/g);\n if(str.match(valueRegEx)){\n var check = str.match(valueRegEx);\n var str1 = str;\n for (var i=0; i < check.length; i++) {\n var check1 = str.match(valueRegEx)[i].split('value=')[1];\n var change = check1.match(/^'/) !== null ? check1.replace(/^'/, '\"') : check1;\n change =change.match(/.$/)[0] === '\\'' ? change.replace(/.$/,'\"') : change;\n str1 = str1.replace(check1, change);\n }\n str = str.replace(str, str1);\n }\n else if (str.match(/(?:href='')/) === null) {\n if(str.match(hrefRegex)) {\n var check = str.match(hrefRegex);\n var str1 = str;\n for (var i=0; i < check.length; i++) {\n var check1 = str.match(hrefRegex)[i].split('href=')[1];\n if (check1) {\n var change = check1.match(/^'/) !== null ? check1.replace(/^'/, '\"') : check1;\n change =change.match(/.$/)[0] === '\\'' ? change.replace(/.$/,'\"') : change;\n str1 = str1.replace(check1, change);\n }\n }\n str = str.replace(str, str1);\n }\n }\n return str;";return new Function("data",n).bind(t)}function pe(e,t,i,n,s){return!t||ec.test(e)||-1!==n.indexOf(e.split(".")[0])||s?e:i+"."+e}function ue(e,t,i,n){return t&&!ec.test(e)&&-1===n.indexOf(e.split(".")[0])?i+'["'+e:e}function de(e){return e=e.match(ac)?e:e.replace(oc,"\\\\")}function ge(e,t,i,n){e=e.trim();if(/\window\./gm.test(e))return e;var s=/'|"/gm;return/@|\$|#/gm.test(e)&&(e=ue(e,-1===i.indexOf(e),t,i)+'"]'),rc.test(e)?function(e,t,i,n){return!t||ec.test(e)||-1!==n.indexOf(e.split(".")[0])||/^\..*/gm.test(e)?e:i+"."+e}(e,!s.test(e)&&-1===i.indexOf(e),t,i):pe(e,!s.test(e)&&-1===i.indexOf(e),t,i,n)}function fe(){return"-"+Math.random().toString(36).substr(2,5)}function me(e,t,i){var n=dc.compile(e,t,i);return function(e,t,i,s,r,o,a,l){var h=n(e,t,i,a,l),p="BlazorTemplateId";if(v()&&!r){var u=s+fe();if(uc[""+s]||(uc[""+s]=[]),c(o))e[""+p]=u,uc[""+s].push(e);else for(var d=0,g=Object.keys(uc[""+s][parseInt(o.toString(),10)]);d<g.length;d++){var f=g[d];f!==p&&e[""+f]&&(uc[""+s][parseInt(o.toString(),10)][""+f]=e[""+f]),f===p&&(u=uc[""+s][parseInt(o.toString(),10)][""+f])}return"rowTemplate"===i?[M("tr",{id:u,className:"e-blazor-template"})]:[M("div",{id:u,className:"e-blazor-template"})]}if("string"==typeof h){if(pc.test(h)){return M("svg",{innerHTML:h}).childNodes}return M(cc.test(h)?"table":"div",{innerHTML:h}).childNodes}return h}}function ye(e,t,i,n,s){if(v()){window.sfBlazor.updateTemplate(t,uc[""+e],e,i,s),!1!==n&&(uc[""+e]=[])}}function ve(e,t,i){var n=document.getElementById(e);if(n)for(var s=n.getElementsByClassName("blazor-inner-template"),r=0;r<s.length;r++){var o=" ";o=c(i)?s[parseInt(r.toString(),10)].getAttribute("data-templateId"):s[parseInt(i.toString(),10)].getAttribute("data-templateId");var a=document.getElementById(o);if(a)for(var l=a.childNodes.length,h=0;h<l;h++)c(i)?s[parseInt(r.toString(),10)].appendChild(a.childNodes[0]):(s[parseInt(i.toString(),10)].appendChild(a.childNodes[0]),r=s.length)}}function be(e){dc.compile=e.compile}function Ce(){return dc.compile}function Se(e,t){var i=!1,n={left:0,top:0},s=e;if(!e||!t)return n;for(c(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=s;(t.offsetParent||i)&&e&&t.offsetParent!==e;)n.left-=e.scrollLeft,n.top-=e.scrollTop,e=e.parentElement;return n}function we(e,t,i,n,s){if(Sh=void 0,Sh=s,Hc=!!n,!e)return{left:0,top:0};t||(t="left"),i||(i="top"),xh=e.ownerDocument,wh=e;return function(e,t,i){switch(Ch=wh.getBoundingClientRect(),t+e){case"topcenter":xe(Ne(),i),Ie(Te(),i);break;case"topright":xe(Le(),i),Ie(Te(),i);break;case"centercenter":xe(Ne(),i),Ie(ke(),i);break;case"centerright":xe(Le(),i),Ie(ke(),i);break;case"centerleft":xe(Ae(),i),Ie(ke(),i);break;case"bottomcenter":xe(Ne(),i),Ie(De(),i);break;case"bottomright":xe(Le(),i),Ie(De(),i);break;case"bottomleft":xe(Ae(),i),Ie(De(),i);break;default:case"topleft":xe(Ae(),i),Ie(Te(),i)}return wh=null,i}(t.toLowerCase(),i.toLowerCase(),{left:0,top:0})}function xe(e,t){t.left=e}function Ie(e,t){t.top=e}function Me(){return xh.documentElement.scrollTop||xh.body.scrollTop}function Ee(){return xh.documentElement.scrollLeft||xh.body.scrollLeft}function De(){return Hc?Ch.bottom:Ch.bottom+Me()}function ke(){return Te()+Ch.height/2}function Te(){return Hc?Ch.top:Ch.top+Me()}function Ae(){return Ch.left+Ee()}function Le(){var e=wh&&wh.classList.contains("e-date-range-wrapper")?Sh?Sh.width:0:Sh&&Ch.width>=Sh.width?Sh.width:0;return Ch.right+Ee()-e}function Ne(){return Ae()+Ch.width/2}function Oe(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 s=e.getBoundingClientRect();if(Mh=t,Ih=e.ownerDocument,n||(n=we(e,"left","top")),i.X){var r=Mh?He():Je(),o=Ge(),a=Ye(),l=o-n.left,h=n.left+s.width-a;s.width>r?n.left=l>0&&h<=0?a-s.width:h>0&&l<=0?o:l>h?a-s.width:o:l>0?n.left+=l:h>0&&(n.left-=h)}if(i.Y){var c=Mh?qe():$e(),p=_e(),u=Qe(),d=p-n.top,g=n.top+s.height-u;s.height>c?n.top=d>0&&g<=0?u-s.height:g>0&&d<=0?p:d>g?u-s.height:p:d>0?n.top+=d:g>0&&(n.top-=g)}return n}function Re(e,t,i,n){void 0===t&&(t=null);var s=we(e,"left","top");i&&(s.left=i),n&&(s.top=n);var r=[];Mh=t,Ih=e.ownerDocument;var o=e.getBoundingClientRect(),a=s.top,l=s.left,h=s.left+o.width,c=Ve(a,s.top+o.height),p=je(l,h);return c.topSide&&r.push("top"),p.rightSide&&r.push("right"),p.leftSide&&r.push("left"),c.bottomSide&&r.push("bottom"),r}function Pe(e,t,i,n,s,r,o,a,l){if(void 0===o&&(o=null),void 0===a&&(a={X:!0,Y:!0}),t&&e&&s&&r&&(a.X||a.Y)){var h,c={TL:null,TR:null,BL:null,BR:null},p={TL:null,TR:null,BL:null,BR:null};if("none"===window.getComputedStyle(e).display){var u=e.style.visibility;e.style.visibility="hidden",e.style.display="block",h=e.getBoundingClientRect(),e.style.removeProperty("display"),e.style.visibility=u}else h=e.getBoundingClientRect();var d={posX:s,posY:r,offsetX:i,offsetY:n,position:{left:0,top:0}};Mh=o,Ih=t.ownerDocument,function(e,t,i,n,s){i.position=we(e,i.posX,i.posY,n,s),t.TL=we(e,"left","top",n,s),t.TR=we(e,"right","top",n,s),t.BR=we(e,"left","bottom",n,s),t.BL=we(e,"right","bottom",n,s)}(t,c,d,l,h),ze(p,d,h),a.X&&Fe(t,p,c,d,h,!0),a.Y&&c.TL.top>-1&&Be(t,p,c,d,h,!0),function(e,t,i){var n=0,s=0;if(null!=e.offsetParent&&("absolute"===getComputedStyle(e.offsetParent).position||"relative"===getComputedStyle(e.offsetParent).position)){var r=we(e.offsetParent,"left","top",!1,i);n=r.left,s=r.top}e.style.top=t.position.top+t.offsetY-s+"px",e.style.left=t.position.left+t.offsetX-n+"px"}(e,d,h)}}function ze(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 je(e,t){var i=!1,n=!1;return e-Xe()<Ge()&&(i=!0),t>Ye()&&(n=!0),{leftSide:i,rightSide:n}}function Fe(e,t,i,n,s,r){var o=je(t.TL.left,t.TR.left);i.TL.left-Xe()<=Ge()&&(o.leftSide=!1),i.TR.left>Ye()&&(o.rightSide=!1),(o.leftSide&&!o.rightSide||!o.leftSide&&o.rightSide)&&("right"===n.posX?n.posX="left":n.posX="right",n.offsetX=n.offsetX+s.width,n.offsetX=-1*n.offsetX,n.position=we(e,n.posX,n.posY,!1),ze(t,n,s),r&&Fe(e,t,i,n,s,!1))}function Be(e,t,i,n,s,r){var o=Ve(t.TL.top,t.BL.top);i.TL.top-Ke()<=_e()&&(o.topSide=!1),i.BL.top>=Qe()&&e.getBoundingClientRect().bottom<window.innerHeight&&(o.bottomSide=!1),(o.topSide&&!o.bottomSide||!o.topSide&&o.bottomSide)&&("top"===n.posY?n.posY="bottom":n.posY="top",n.offsetY=n.offsetY+s.height,n.offsetY=-1*n.offsetY,n.position=we(e,n.posX,n.posY,!1,s),ze(t,n,s),r&&Be(e,t,i,n,s,!1))}function Ve(e,t){var i=!1,n=!1;return e-Ke()<_e()&&(i=!0),t>Qe()&&(n=!0),{topSide:i,bottomSide:n}}function He(){return Mh.getBoundingClientRect().width}function qe(){return Mh.getBoundingClientRect().height}function We(){return Mh.getBoundingClientRect().left}function Ue(){return Mh.getBoundingClientRect().top}function _e(){return Mh?Ue():0}function Ge(){return Mh?We():0}function Ye(){return Mh?Xe()+We()+He():Xe()+Je()}function Qe(){return Mh?Ke()+Ue()+qe():Ke()+$e()}function Ke(){return Ih.documentElement.scrollTop||Ih.body.scrollTop}function Xe(){return Ih.documentElement.scrollLeft||Ih.body.scrollLeft}function $e(){return window.innerHeight}function Je(){var e=window.innerWidth,t=document.documentElement.getBoundingClientRect();return e-(e-(c(document.documentElement)?0:t.width))}function Ze(e,t){for(var i=getComputedStyle(e),n=[],s=/(auto|scroll)/,r=e.parentElement;r&&"HTML"!==r.tagName;){var o=getComputedStyle(r);"absolute"===i.position&&"static"===o.position||!s.test(o.overflow+o.overflowY+o.overflowX)||n.push(r),r=r.parentElement}return t||n.push(document),n}function et(e){for(var t=e.parentElement,i=[];t&&"BODY"!==t.tagName;){var n=document.defaultView.getComputedStyle(t,null).getPropertyValue("z-index"),s=document.defaultView.getComputedStyle(t,null).getPropertyValue("position");"auto"!==n&&"static"!==s&&i.push(n),t=t.parentElement}for(var r=[],o=0;o<document.body.children.length;o++)if(!e.isEqualNode(document.body.children[o])){n=document.defaultView.getComputedStyle(document.body.children[o],null).getPropertyValue("z-index"),s=document.defaultView.getComputedStyle(document.body.children[o],null).getPropertyValue("position");"auto"!==n&&"static"!==s&&r.push(n)}r.push("999");var a=[];if(!c(e.parentElement)&&"BODY"!==e.parentElement.tagName){var l=[].slice.call(e.parentElement.children);for(o=0;o<l.length;o++)if(!e.isEqualNode(l[o])){n=document.defaultView.getComputedStyle(l[o],null).getPropertyValue("z-index"),s=document.defaultView.getComputedStyle(l[o],null).getPropertyValue("position");"auto"!==n&&"static"!==s&&a.push(n)}}var h=i.concat(r,a),p=Math.max.apply(Math,h)+1;return p>2147483647?2147483647:p}function tt(e,t,i,o,a,l){var h=o;if(o.tagName===t){var c=n("ej2_instances",o);h=e("input",{attrs:{type:i}});for(var p=["change","cssClass","label","labelPosition","id"],u=0,d=o.attributes.length;u<d;u++)-1===p.indexOf(o.attributes[u].nodeName)&&h.setAttribute(o.attributes[u].nodeName,o.attributes[u].nodeValue);P(o,{class:a}),o.appendChild(h),s("ej2_instances",c,h),r(o,"ej2_instances")}return h}function it(e){for(var t,i=e.childNodes,n=0;n<i.length;n++)if(3===(t=i[n]).nodeType)return t;return null}function nt(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&&E([n],i.cssClass.split(" ")),i.enableRtl&&n.classList.add("e-rtl"),t){var s=e("span",{className:"e-ripple-container"});ne(s,{isCenterRipple:!0,duration:400}),n.appendChild(s)}var r=e("span",{className:"e-frame e-icons"});if(i.checked&&r.classList.add("e-check"),n.appendChild(r),i.label){var o=e("span",{className:"e-label"});i.disableHtmlEncode?o.textContent=i.label:o.innerHTML=i.label,n.appendChild(o)}return n}function st(e,t){if(t){var i=document.createEvent("MouseEvents");i.initEvent(e.type,!1,!0),t.dispatchEvent(i)}}function rt(e,t){e.element.getAttribute("ejs-for")&&t.appendChild(e.createElement("input",{attrs:{name:e.name||e.element.name,value:"false",type:"hidden"}}))}function ot(e){Ju=e.resizeBegin,Zu=e.resizing,ed=e.resizeComplete,Eu=at(e.element),Nu=at(e.boundary);for(var t=e.direction.split(" "),i=0;i<t.length;i++)if(_u.indexOf(t[i])>=0&&t[i])!function(e){ut();var t=M("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");Eu.appendChild(t)}(t[i]);else if(""!==t[i].trim()){var n=M("div",{className:"e-icons "+Vu+" e-"+t[i]});Eu.appendChild(n)}ku=e.minHeight,Au=e.minWidth,Lu=e.maxWidth,Tu=e.maxHeight,e.proxy&&e.proxy.element&&e.proxy.element.classList.contains("e-dialog")?lt(e.proxy):lt()}function at(e){var t;return c(e)||(t="string"==typeof e?document.querySelector(e):e),t}function lt(e){c(e)&&(e=this);for(var t=Eu.querySelectorAll("."+Vu),i=0;i<t.length;i++){Du=t[i],Ql.add(Du,"mousedown",ct,e);var n="msie"===Yl.info.name?"pointerdown":"touchstart";Ql.add(Du,n,dt,e)}var s=Eu.querySelectorAll(".e-dialog-border-resize");if(!c(s))for(i=0;i<s.length;i++){Du=s[i],Ql.add(Du,"mousedown",ct,e);n="msie"===Yl.info.name?"pointerdown":"touchstart";Ql.add(Du,n,dt,e)}}function ht(e){return e.indexOf("mouse")>-1?"mouse":"touch"}function ct(e){if(e.preventDefault(),Eu=e.target.parentElement,ut(),Xu=e.pageX,$u=e.pageY,e.target.classList.add(Hu),c(Ju)||(Ru=this,!0!==Ju(e,Ru))){this.targetEle&&Eu&&Eu.querySelector("."+qu)&&(Nu="body"===this.target?null:this.targetEle,Lu=this.targetEle.clientWidth,Tu=this.targetEle.clientHeight);var t=c(Nu)?document:Nu;Ql.add(t,"mousemove",gt,this),Ql.add(document,"mouseup",pt,this);for(var i=0;i<Wu.length;i++)td=!Eu.classList.contains(Wu[i])}}function pt(e){var t="msie"===Yl.info.name?"pointermove":"touchmove",i="msie"===Yl.info.name?"pointerup":"touchend",n=c(Nu)?document:Nu,s="msie"===Yl.info.name?"pointerdown":"touchstart";Ql.remove(n,"mousemove",gt),Ql.remove(n,t,gt),Ql.remove(n,s,gt),c(document.body.querySelector("."+Hu))||document.body.querySelector("."+Hu).classList.remove(Hu),c(ed)||ed(e,Ru=this),Ql.remove(document,"mouseup",pt),Ql.remove(document,i,pt)}function ut(){Gu=parseFloat(getComputedStyle(Eu,null).getPropertyValue("width").replace("px","")),Yu=parseFloat(getComputedStyle(Eu,null).getPropertyValue("height").replace("px","")),Qu=Eu.getBoundingClientRect().left,Ku=Eu.getBoundingClientRect().top}function dt(e){Eu=e.target.parentElement,ut();var t=Eu.classList.contains("e-dialog");(e.target.classList.contains(Vu)||e.target.classList.contains("e-dialog-border-resize"))&&t&&e.target.classList.add(Hu);var i=e.touches?e.changedTouches[0]:e;if(Xu=i.pageX,$u=i.pageY,c(Ju)||(Ru=this,!0!==Ju(e,Ru))){var n="msie"===Yl.info.name?"pointermove":"touchmove",s="msie"===Yl.info.name?"pointerup":"touchend",r=c(Nu)?document:Nu;Ql.add(r,n,gt,this),Ql.add(document,s,pt,this)}}function gt(e){if(e.target.classList.contains(Vu)&&e.target.classList.contains(Hu)?Du=e.target:c(document.body.querySelector("."+Hu))||(Du=document.body.querySelector("."+Hu)),!c(Du)){for(var t="",i=0;i<Bu.length;i++)Du.classList.contains("e-"+Bu[i])&&(t=Bu[i]);switch(c(Zu)||Zu(e,Ru=this),t){case"south":mt(e);break;case"north":yt(e);break;case"west":vt(e);break;case"east":bt(e);break;case"south-east":mt(e),bt(e);break;case"south-west":mt(e),vt(e);break;case"north-east":yt(e),bt(e);break;case"north-west":yt(e),vt(e)}}}function ft(e){return e.getBoundingClientRect()}function mt(e){var t,i=document.documentElement.clientHeight,n=!1,s=(e.touches?e.changedTouches[0]:e).pageY,r=ft(Eu);c(Nu)||(t=ft(Nu)),c(Nu)?c(Nu)&&(i-s>=0||r.top<0)&&(n=!0):n=!0;var o=Yu+(s-$u);o=o>ku?o:ku;var a=0;c(Nu)||(a=t.top);var l=c(Nu)?0:Nu.offsetHeight-Nu.clientHeight,h=r.top-a-l/2;if(h=h<0?0:h,r.top>0&&h+o>Tu){if(n=!1,Eu.classList.contains(Uu))return;Eu.style.height=Tu-parseInt(h.toString(),10)+"px"}else{var p=0;if(n){r.top<0&&i+(r.height+r.top)>0&&o+(p=r.top)<=30&&(o=r.height-(r.height+r.top)+30),o+r.top>=Tu&&(Eu.style.height=r.height+(i-(r.height+r.top))+"px");var u=c(Nu)?p:h;o>=ku&&o+u<=Tu&&(Eu.style.height=o+"px")}}}function yt(e){var t,i=!1,n="mouse"===ht(e.type)?e.pageY:e.touches[0].pageY,s=ft(Eu);c(Nu)||(t=ft(Nu)),!c(Nu)&&s.top-t.top>0?i=!0:c(Nu)&&n>0&&(i=!0);var r=Yu-(n-$u);if(i&&r>=ku&&r<=Tu){var o=0;c(Nu)||(o=t.top);var a=Ku-o+(n-$u);a=a>0?a:1,Eu.style.height=r+"px",Eu.style.top=a+"px"}}function vt(e){var t,i=document.documentElement.clientWidth,n=!1;c(Nu)||(t=ft(Nu));var s="mouse"===ht(e.type)?e.pageX:e.touches[0].pageX,r=ft(Eu),o=c(Nu)?0:Nu.offsetWidth-Nu.clientWidth,a=c(Nu)?0:t.left,l=c(Nu)?0:t.width;c(Ou)&&(c(Nu)?Ou=i:(Ou=r.left-a-o/2+r.width,Ou+=l-o-Ou)),!c(Nu)&&Math.floor(r.left-t.left+r.width+(t.right-r.right))-o<=Lu?n=!0:c(Nu)&&s>=0&&(n=!0);var h=Gu-(s-Xu);if(td&&(h=h>Ou?Ou:h),n&&h>=Au&&h<=Lu){var p=0;c(Nu)||(p=t.left);var u=Qu-p+(s-Xu);u=u>0?u:1,h!==id&&nd&&(Eu.style.width=h+"px"),td&&(Eu.style.left=u+"px",nd=1!==u)}id=h}function bt(e){var t,i=document.documentElement.clientWidth,n=!1;c(Nu)||(t=ft(Nu));var s=(e.touches?e.changedTouches[0]:e).pageX,r=ft(Eu);!c(Nu)&&(r.left-t.left+r.width<=Lu||r.right-t.left>=r.width)?n=!0:c(Nu)&&i-s>0&&(n=!0);var o=Gu+(s-Xu),a=0;if(c(Nu)||(a=t.left),r.left-a+o>Lu){if(n=!1,Eu.classList.contains(Uu))return;Eu.style.width=Lu-(r.left-a)+"px"}n&&o>=Au&&o<=Lu&&(Eu.style.width=o+"px")}function Ct(){for(var e=Eu.querySelectorAll("."+Vu),t=0;t<e.length;t++)O(e[t]);var i=Eu.querySelectorAll(".e-dialog-border-resize");if(!c(i))for(t=0;t<i.length;t++)O(i[t])}function St(e,t){if(e.target){var i,n=c(t)?M:t,s=function(e,t){var i=t("div",{}),n=t("div",{});return i.classList.add(rg),n.classList.add(og),e.appendChild(i),i.appendChild(n),{wrap:i,inner_wrap:n}}(e.target,n);if(c(e.cssClass)||s.wrap.classList.add(e.cssClass),c(e.template)&&c(pg)){var r=c(e.type)?function(e){return window.getComputedStyle(e,":after").getPropertyValue("content").replace(/['"]+/g,"")}(s.wrap):e.type;i=function(e,t){var i;switch(t){case"Material":i=Hd;break;case"Material3":i=qd;break;case"Fabric":i=Wd;break;case"Tailwind":case"Tailwind-dark":i=Wd;break;case"Fluent":i=Ud;break;case"Bootstrap4":i=Gd;break;case"Bootstrap5":i=Yd;break;default:i=_d}return e=e?parseFloat(e+""):i,"Bootstrap"===t?e:e/2}(c(e.width)?void 0:e.width,r),function(e,t,i,n){var s=t.querySelector("."+og),r=s.querySelector("svg");c(r)||s.removeChild(r);switch(e){case"Material":!function(e,t,i){var n=xt();Vd[""+n]={timeOut:0,type:"Material",radius:t},Mt(e,n,i,Xd),Dt(t,e,"Material",Xd)}(s,i,n);break;case"Material3":!function(e,t,i){var n=xt();Vd[""+n]={timeOut:0,type:"Material3",radius:t},Mt(e,n,i,$d),Dt(t,e,"Material3",$d)}(s,i,n);break;case"Fabric":!function(e,t,i){var n=xt();Vd[""+n]={timeOut:0,type:"Fabric",radius:t},It(e,n,Jd,i),Lt(t,e,Jd)}(s,i,n);break;case"Fluent":!function(e,t,i){var n=xt();Vd[""+n]={timeOut:0,type:"Fluent",radius:t},It(e,n,Zd,i),Lt(t,e,Zd)}(s,i,n);break;case"Bootstrap":!function(e,t,i){var n=xt();Vd[""+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",tg),n.setAttribute("viewBox","0 0 64 64"),e.insertBefore(n,e.firstChild);for(var s=0;s<=7;s++){var r=document.createElementNS("http://www.w3.org/2000/svg","circle");r.setAttribute("class",ag+"_"+s),r.setAttribute("r","2"),r.setAttribute("transform","translate(32,32)"),n.appendChild(r)}}(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,s=0;s<=7;s++){var r=Nt(0,0,24,n),o=i.querySelector("."+ag+"_"+s);o.setAttribute("cx",r.x+""),o.setAttribute("cy",r.y+""),n=n>=360?0:n,n+=45}}(e,t)}(s,i);break;case"HighContrast":!function(e,t,i){var n=xt();Vd[""+n]={timeOut:0,type:"HighContrast",radius:t},It(e,n,sg,i),Lt(t,e,sg)}(s,i,n);break;case"Bootstrap4":!function(e,t,i){var n=xt();Vd[""+n]={timeOut:0,type:"Bootstrap4",radius:t},Mt(e,n,i,ig),Dt(t,e,"Bootstrap4",ig)}(s,i,n);break;case"Bootstrap5":!function(e,t,i){var n=xt();Vd[""+n]={timeOut:0,type:"Bootstrap5",radius:t},Mt(e,n,i,ng),Dt(t,e,"Bootstrap5",ng)}(s,i,n);break;case"Tailwind":case"Tailwind-dark":!function(e,t,i){var n=xt();Vd[""+n]={timeOut:0,type:"Tailwind",radius:t},It(e,n,eg,i),Lt(t,e,eg)}(s,i,n)}}(r,s.wrap,i,n),c(e.label)||function(e,t,i){var n=i("div",{});n.classList.add(hg),n.innerHTML=t,e.appendChild(n)}(s.inner_wrap,e.label,n)}else{var o=c(e.template)?pg:e.template;s.wrap.classList.add(cg),function(e,t,i){c(i)||e.classList.add(i);e.querySelector(".e-spinner-inner").innerHTML=t}(s.wrap,o,ug)}s.wrap.classList.add(Kd),s=null}}function wt(e,t){function i(e){n.push(e),e===r&&1!==a||(e<=s&&e>1&&!o?e=parseFloat((e-.2).toFixed(2)):1===e?(e=7,e=parseFloat((e+.2).toFixed(2)),o=!0):e<8&&o?8===(e=parseFloat((e+.2).toFixed(2)))&&(o=!1):e<=8&&!o&&(e=parseFloat((e-.2).toFixed(2))),++a,i(e))}var n=[],s=e,r=t,o=!1,a=1;return i(s),n}function xt(){for(var e="",t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=0;i<5;i++)e+=t.charAt(Math.floor(Math.random()*t.length));return e}function It(e,t,i,n){var s=document.createElementNS("http://www.w3.org/2000/svg","svg");s.setAttribute("id",t),s.setAttribute("class",i);var r=document.createElementNS("http://www.w3.org/2000/svg","path");r.setAttribute("class",ag);var o=document.createElementNS("http://www.w3.org/2000/svg","path");o.setAttribute("class",lg),e.insertBefore(s,e.firstChild),s.appendChild(r),s.appendChild(o)}function Mt(e,t,i,n){var s=document.createElementNS("http://www.w3.org/2000/svg","svg"),r=document.createElementNS("http://www.w3.org/2000/svg","path");s.setAttribute("class",n),s.setAttribute("id",t),r.setAttribute("class",ag),e.insertBefore(s,e.firstChild),s.appendChild(r)}function Et(e){!function(e,t,i,n,s,r,o){function a(t){var s=Math.max(0,Math.min((new Date).getTime()-h,n));!function(e,t){if(!c(t.querySelector("svg.e-spin-material"))||!c(t.querySelector("svg.e-spin-material3"))){var i=void 0;if(c(t.querySelector("svg.e-spin-material"))||c(t.querySelector("svg.e-spin-material").querySelector("path.e-path-circle"))?c(t.querySelector("svg.e-spin-material3"))||c(t.querySelector("svg.e-spin-material3").querySelector("path.e-path-circle"))||(i=t.querySelector("svg.e-spin-material3")):i=t.querySelector("svg.e-spin-material"),!c(i)){var n=i.querySelector("path.e-path-circle");n.setAttribute("stroke-dashoffset",Tt(u,d,e,r)+""),n.setAttribute("transform","rotate("+g+" "+u/2+" "+u/2+")")}}}(i(s,e,p,n),t.container),l===t.globalInfo[t.uniqueID].previousId&&s<n?Vd[t.uniqueID].timeOut=setTimeout(a.bind(null,t),1):Et(t)}var l=++o.globalInfo[o.uniqueID].previousId,h=(new Date).getTime(),p=t-e,u=function(e){return parseFloat(e)}(2*o.globalInfo[o.uniqueID].radius+""),d=kt(u),g=-90*(o.globalInfo[o.uniqueID].count||0);a(o)}(1,149,At,1333,e.globalInfo[e.uniqueID].count,75,e),e.globalInfo[e.uniqueID].count=++e.globalInfo[e.uniqueID].count%4}function Dt(e,t,i,n){var s=2*e,r=t.querySelector("svg."+n),o=r.querySelector("path.e-path-circle"),a=kt(s),l=s/2+"px";r.setAttribute("viewBox","0 0 "+s+" "+s),r.style.width=r.style.height=s+"px",r.style.transformOrigin=l+" "+l+" "+l,o.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}(s,a)),"Material"!==i&&"Material3"!==i||(o.setAttribute("stroke-width",a+""),o.setAttribute("stroke-dasharray",(s-a)*Math.PI*.75+""),o.setAttribute("stroke-dashoffset",Tt(s,a,1,75)+""))}function kt(e){return.1*e}function Tt(e,t,i,n){return(e-t)*Math.PI*(3*n/100-i/100)}function At(e,t,i,n){var s=(e/=n)*e,r=s*e;return t+i*(6*r*s+-15*s*s+10*r)}function Lt(e,t,i){var n=e,s=e,r=2*e,o=t.querySelector("."+i),a=o.querySelector(".e-path-circle"),l=o.querySelector(".e-path-arc"),h=r/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,s,e)),l.setAttribute("d",function(e,t,i,n,s){var r=Nt(e,t,i,s),o=Nt(e,t,i,n);return["M",r.x,r.y,"A",i,i,0,0,0,o.x,o.y].join(" ")}(n,s,e,315,45)),o.setAttribute("viewBox","0 0 "+r+" "+r),o.style.transformOrigin=h+" "+h+" "+h,o.style.width=o.style.height=r+"px"}function Nt(e,t,i,n){var s=(n-90)*Math.PI/180;return{x:e+i*Math.cos(s),y:t+i*Math.sin(s)}}function Ot(e){Rt(e,!1),e=null}function Rt(e,t){var i;if(e&&(i=e.classList.contains(rg)?e:e.querySelector("."+rg)),e&&i){var n=i.querySelector("."+og);if(t?!i.classList.contains(cg)&&!i.classList.contains(Kd):!i.classList.contains(cg)&&!i.classList.contains(Qd)){var s=i.querySelector("svg");if(c(s))return;var r=s.getAttribute("id");switch(Vd[""+r].isAnimate=!t,Vd[""+r].type){case"Material":case"Material3":t?clearTimeout(Vd[r].timeOut):function(e,t,i){var n={};Vd[""+t].timeOut=0,n[""+t]=function(e,t,i,n){return{radius:t,count:i,previousId:n}}(0,i,0,0),Et({uniqueID:t,container:e,globalInfo:n,timeOutVar:0})}(n,r,Vd[r].radius);break;case"Bootstrap":t?clearTimeout(Vd[r].timeOut):function(e){for(var t=e.querySelector("svg.e-spin-bootstrap").getAttribute("id"),i=1;i<=8;i++)!function(e,t,i,n,s){function r(t){Vd[""+s].isAnimate&&(++o,e.setAttribute("r",t+""),o>=n.length&&(o=0),Vd[s].timeOut=setTimeout(r.bind(null,n[o]),18))}var o=0;r(t)}(e.getElementsByClassName("e-path-circle_"+(8===i?0:i))[0],i,0,wt(i,i),t)}(n)}}t?H(i,[Kd],[Qd]):H(i,[Qd],[Kd]),e=null}}function Pt(e){Rt(e,!0),e=null}function zt(e,t,i,n){n&&e?e.removeAttribute(t):e&&e.setAttribute(t,i)}function jt(){return["aggregates","allowGrouping","allowFiltering","allowMultiSorting","allowReordering","allowSorting","allowTextWrap","childGrid","columns","currentViewData","dataSource","detailTemplate","enableAltRow","enableColumnVirtualization","filterSettings","gridLines","groupSettings","height","locale","pageSettings","printMode","query","queryString","enableRtl","rowHeight","rowTemplate","sortSettings","textWrapSettings","allowPaging","hierarchyPrintMode","searchSettings","queryCellInfo","beforeDataBound"]}function Ft(e,t){return e.prototype&&t in e.prototype}function Bt(e,t,i){return c(e)||""===e?"":wc.getObject(e,t)}function Vt(e,t){requestAnimationFrame(function(){try{t(null,e())}catch(e){t(e)}})}function Ht(e){return!c(e)&&!c(e.columns)&&e.columns.length>0}function qt(e,t){for(var i=e.columns,n=t.columns,s=0;s<i.length;s++)if(n.length-1>=s)if(n[parseInt(s.toString(),10)].columns)for(var r=0;r<n[parseInt(s.toString(),10)].columns.length;r++)i[parseInt(s.toString(),10)].columns[parseInt(r.toString(),10)].type=n[parseInt(s.toString(),10)].columns[parseInt(r.toString(),10)].type;else i[parseInt(s.toString(),10)].type=n[parseInt(s.toString(),10)].type}function Wt(e){for(var t=[],i=e.vRows,n=0;n<i.length;n++)i[parseInt(n.toString(),10)].isDataRow?t.push(i[parseInt(n.toString(),10)]):i[parseInt(n.toString(),10)].isDataRow||(t.push(i[parseInt(n.toString(),10)]),!i[parseInt(n.toString(),10)].isExpand&&i[parseInt(n.toString(),10)].isCaptionRow&&(n+=Ut(i[parseInt(n.toString(),10)],e)));e.vcRows=t}function Ut(e,t){PC=0;var i=t.groupSettings.columns.length,n=e.gSummary,s=0,r="aggregatesCount";if(n===e.data.count)return t.groupSettings.columns.length&&!c(e[""+r])&&e[""+r]?1!==t.groupSettings.columns.length?PC+=0!==e.indent&&n<2?e.gSummary*(i-e.indent+(i-e.indent)*e[""+r]):e.gSummary*(i-e.indent+(i-e.indent-1)*e[""+r])+e[""+r]:1===t.groupSettings.columns.length&&(PC+=e.gSummary*(i-e.indent)+e[""+r]):t.groupSettings.columns.length&&(1!==t.groupSettings.columns.length?PC+=e.gSummary*(t.groupSettings.columns.length-e.indent):PC+=e.gSummary),PC;for(var o=0,a=e.data.items.length;o<a;o++){var l=e.data.items[parseInt(o.toString(),10)];PC+=l.items.length+(i===t.columns.length||c(l.items.records)?0:l.items.records.length),s+=c(l.items.records)||c(e[""+r])?l.items.length:l.items.records.length,l.items.GroupGuid&&0!==l.items.childLevels&&_t(l)}return PC+=e.data.items.length,c(e[""+r])||e[""+r]&&PC&&0!==s&&(PC+=(PC-s)*e[""+r]+e[""+r]),PC}function _t(e){for(var t=0,i=e.items.length;t<i;t++){var n=e.items[parseInt(t.toString(),10)];PC+=n.count,0!==n.items.childLevels&&_t(n)}}function Gt(e,t){for(var i=[],n=0,s=e.length;n<s;n++){var r=t(e[parseInt(n.toString(),10)],n);c(r)||i.push(r)}return i}function Yt(e){for(var t=[],i=0;i<e.length;i++)t.push(h({},ei(e[parseInt(i.toString(),10)]),{},!0));return t}function Qt(e){if(e)try{return"<"!==e[0]&&document.querySelectorAll(e).length?me(document.querySelector(e).innerHTML.trim()):me(e)}catch(t){return me(e)}}function Kt(e,t){var i={},n=["style","class"];h(i,t,{}),"style"in i&&(V(e,i[n[0]]),delete i[n[0]]),"class"in i&&(E([e],i[n[1]]),delete i[n[1]]),P(e,i)}function Xt(e,t,i,n){for(var s=h(e,t,i),r=Object.keys(s),o=0;o<r.length;o++)n&&-1!==n.indexOf(r[parseInt(o.toString(),10)])&&delete s[r[parseInt(o.toString(),10)]];return s}function $t(e,t){void 0===t&&(t=0);for(var i=0,n=e.length;i<n;i++)e[parseInt(i.toString(),10)].columns?(e[parseInt(i.toString(),10)].index=c(e[parseInt(i.toString(),10)].index)?t:e[parseInt(i.toString(),10)].index,t++,t=$t(e[parseInt(i.toString(),10)].columns,t)):(e[parseInt(i.toString(),10)].index=c(e[parseInt(i.toString(),10)].index)?t:e[parseInt(i.toString(),10)].index,t++);return t}function Jt(e,t,i){for(var s=0,r=e.length;s<r;s++){var o=void 0;"string"==typeof e[parseInt(s.toString(),10)]?o=new jc({field:e[parseInt(s.toString(),10)]},i):e[parseInt(s.toString(),10)]instanceof jc&&!e[parseInt(s.toString(),10)].columns?o=e[parseInt(s.toString(),10)]:e[parseInt(s.toString(),10)].columns?(e[parseInt(s.toString(),10)].columns=Jt(e[parseInt(s.toString(),10)].columns,null,i),o=new jc(e[parseInt(s.toString(),10)],i)):o=new jc(e[parseInt(s.toString(),10)],i),o.type&&"checkbox"===o.type.toLowerCase()&&(o.allowReordering=!1),o.headerText=c(o.headerText)?o.foreignKeyValue||o.field||"":o.headerText,o.foreignKeyField=o.foreignKeyField||o.field,o.valueAccessor=("string"==typeof o.valueAccessor?n(o.valueAccessor,window):o.valueAccessor)||Bt,o.width=t&&c(o.width)?200:o.width,c(o.visible)&&(o.visible=!0),e[parseInt(s.toString(),10)]=o}return e}function Zt(e,t,i){var n=e.querySelector("span"),s=e.parentElement.getBoundingClientRect(),r=t.target.getBoundingClientRect();n.className=i,e.style.display="";var o=(c(t.clientY)?t.changedTouches[0].clientY:t.clientY)>e.offsetHeight+10;e.style.top=r.top-s.top+(o?-(e.offsetHeight+10):e.offsetHeight+10)+"px",e.style.left=function(e,t,i,n){var s=e.offsetWidth/2,r=oi(t).x;return r-i.left<s?i.left-n:i.right-r<s?i.right-n-2*s:r-n-s}(e,t,r,s.left)+"px",o?(e.querySelector(".e-downtail").style.display="",e.querySelector(".e-uptail").style.display="none"):(e.querySelector(".e-downtail").style.display="none",e.querySelector(".e-uptail").style.display="")}function ei(e){return e instanceof sh?n("properties",e):e}function ti(e,t,i){for(var n=e;n&&(i?n.id!==t:!n.classList.contains(t));)n=n.parentElement;return n}function ii(e,t){for(var i=-1,n=0,s=t.length;n<s;n++)if(t[parseInt(n.toString(),10)].isEqualNode(e)){i=n;break}return i}function ni(e,t){for(var i=0,n=t.length;i<n;i++)if(t[parseInt(i.toString(),10)]===e)return i;return-1}function si(e){for(var t=[],i=0,n=e.length;i<n;i++)e[parseInt(i.toString(),10)].hasOwnProperty("properties")?t.push(e[parseInt(i.toString(),10)].properties):t.push(e[parseInt(i.toString(),10)]);return t}function ri(e,t){for(var i=[].slice.call(e.querySelectorAll(t)),n=0;n<i.length;n++)R(i[parseInt(n.toString(),10)])}function oi(e){var t={};return t.x=c(e.clientX)?e.changedTouches[0].clientX:e.clientX,t.y=c(e.clientY)?e.changedTouches[0].clientY:e.clientY,t}function ai(e){return e+zC++}function li(e,t){for(var i=0,n=t.length;i<n;i++)n===t.length?e.appendChild(t[parseInt(i.toString(),10)]):e.appendChild(t[0]);return e}function hi(e,t,i){for(var n=e,s=[];n;)(i?n.id===t:n.classList.contains(t))&&s.push(n),n=n.parentElement;return s}function ci(e,t,i,s){if("Custom"===e){var r=i.customAggregate;return"string"==typeof r&&(r=n(r,window)),r?r.call(s,t,i):""}return i.field in t||t instanceof Array?wc.aggregates[e.toLowerCase()](t,i.field):null}function pi(){if(null!==jC)return jC;var e=document.createElement("div"),t=0;return e.style.cssText="width:100px;height: 100px;overflow: scroll;position: absolute;top: -9999px;",document.body.appendChild(e),t=e.offsetWidth-e.clientWidth|0,document.body.removeChild(e),jC=t}function ui(e){if(void 0!==vv)return vv;var t=M("table",{className:Pv,styles:"visibility: hidden",attrs:{role:"grid"}});t.innerHTML='<tr><td class="e-rowcell">A<td></tr>',e.appendChild(t);var i=t.querySelector("td").getBoundingClientRect();return e.removeChild(t),vv=Math.ceil(i.height)}function di(e){return e.split(".").length>1}function gi(e){return void 0===e&&(e=""),e.replace(/\./g,"___")}function fi(e){return void 0===e&&(e=""),e.replace(/___/g,".")}function mi(e,t,i){var n=ti(i,zv),s=!n||n&&!n.classList.contains("e-insertedrow");return"beginEdit"===t&&s?!(e.isIdentity||e.isPrimaryKey||!e.allowEditing):("add"!==t||!e.isIdentity)&&!(s&&!e.allowEditing&&!e.isIdentity&&!e.isPrimaryKey)}function yi(e){var t=z("#"+e.element.id+"EditConfirm",e.element);return"Batch"===e.editSettings.mode&&j(".e-updatedtd",e.element).length&&e.editSettings.showConfirmDialog&&(!t||t.classList.contains("e-popup-close"))}function vi(e,t){e=e instanceof Array?e:[e];for(var i=0;i<e.length;i++)t?e[parseInt(i.toString(),10)].classList.add("e-wrap"):e[parseInt(i.toString(),10)].classList.remove("e-wrap")}function bi(e,t){var i,n=e.getService("valueFormatter");switch("date"!==t.type&&"datetime"!==t.type||(i={type:t.type,skeleton:t.format},"string"==typeof t.format&&"yMd"!==t.format&&(i.format=t.format)),t.type){case"date":case"datetime":t.setFormatter(n.getFormatFunction(i)),t.setParser(n.getParserFunction(i));break;case"number":t.setFormatter(n.getFormatFunction({format:t.format})),t.setParser(n.getParserFunction({format:t.format}))}}function Ci(e,t){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];for(var s=0,r=e.length;s<r;s++)t?(H(e[parseInt(s.toString(),10)],i.slice(),[]),e[parseInt(s.toString(),10)].setAttribute("aria-selected","true")):(H(e[parseInt(s.toString(),10)],[],i.slice()),e[parseInt(s.toString(),10)].removeAttribute("aria-selected"))}function Si(e){for(var t={},i=[],n=0;n<e.length;n++)e[parseInt(n.toString(),10)]in t||(i.push(e[parseInt(n.toString(),10)].toString()),t[e[parseInt(n.toString(),10)]]=1);return i}function wi(e,t){var i=t.element.style.display;t.element.style.display="block";var n=t.width,s=Se(e,t.element);t.element.style.display=i,t.element.style.top=s.top+e.getBoundingClientRect().height-5+"px";var r=s.left-n+e.clientWidth;t.element.style.l