@syncfusion/ej2-vue-treemap 25.2.3 → 26.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ej2-vue-treemap.umd.min.js +2 -2
- package/dist/ej2-vue-treemap.umd.min.js.map +1 -1
- package/dist/es6/ej2-vue-treemap.es2015.js +5 -7
- package/dist/es6/ej2-vue-treemap.es2015.js.map +1 -1
- package/dist/es6/ej2-vue-treemap.es5.js +5 -7
- package/dist/es6/ej2-vue-treemap.es5.js.map +1 -1
- package/package.json +9 -9
- package/CHANGELOG.md +0 -90
- package/dist/global/ej2-vue-treemap.min.js +0 -10
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* filename: ej2-vue-treemap.min.js
|
|
3
|
-
* version : 25.2.3
|
|
4
|
-
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
|
|
5
|
-
* Use of this code is subject to the terms of our license.
|
|
6
|
-
* A copy of the current license can be obtained at any time by e-mailing
|
|
7
|
-
* licensing@syncfusion.com. Any infringement will be prosecuted under
|
|
8
|
-
* applicable laws.
|
|
9
|
-
*/
|
|
10
|
-
var ej=function(t){"use strict";function e(t,e){var i=e;return i.unshift(void 0),new(Function.prototype.bind.apply(t,i))}function i(t){var e,i=new Uint16Array(5);(window.msCrypto||window.crypto).getRandomValues(i);var r="ej2"+function(t){for(var e="",i=0;i<5;i++)e+=(i?",":"")+t[parseInt(i.toString(),10)];return e}(i),n=function(i){i.source===window&&"string"==typeof i.data&&i.data.length<=32&&i.data===r&&(t(),e())};return window.addEventListener("message",n,!1),window.postMessage(r,"*"),e=function(){window.removeEventListener("message",n),t=n=r=void 0}}function r(t,e){for(var i=e,r=t.replace(/\[/g,".").replace(/\]/g,"").split("."),n=0;n<r.length&&!u(i);n++)i=i[r[parseInt(n.toString(),10)]];return i}function n(t,e,i){var r,n,o=t.replace(/\[/g,".").replace(/\]/g,"").split("."),s=i||{},a=s,l=o.length;for(r=0;r<l;r++)n=o[parseInt(r.toString(),10)],r+1===l?a[""+n]=void 0===e?{}:e:h(a[""+n])&&(a[""+n]={}),a=a[""+n];return s}function o(t,e){delete t[""+e]}function s(t){return!h(t)&&t.constructor==={}.constructor}function a(t,e){if(!h(e))for(var i=t,r=e,n=0,o=Object.keys(e);n<o.length;n++){var a=o[n];h(i.deepMerge)||-1===i.deepMerge.indexOf(a)||!s(r[""+a])&&!Array.isArray(r[""+a])?i[""+a]=r[""+a]:l(i[""+a],i[""+a],r[""+a],!0)}}function l(t,e,i,r){var n=t&&"object"==typeof t?t:{},o=arguments.length;r&&(o-=1);for(var a=function(t){if(!h[t])return"continue";var e=h[t];Object.keys(e).forEach(function(t){var i,o=n[""+t],a=e[""+t],h=Array.isArray(a)&&Array.isArray(o)&&a.length!==o.length,u=!y()||!(o instanceof Event||h);r&&u&&(s(a)||Array.isArray(a))?s(a)?(i=o||{},Array.isArray(i)&&i.hasOwnProperty("isComplexArray")?l(i,{},a,r):n[""+t]=l(i,{},a,r)):(i=y()?o&&Object.keys(a).length:o||[],n[""+t]=l([],i,a,i&&i.length||a&&a.length)):n[""+t]=a})},h=arguments,u=1;u<o;u++)a(u);return n}function h(t){return void 0===t||null===t}function u(t){return void 0===t}function c(t){return t+"_"+zn++}function p(t,e){var i;return function(){var r=this,n=arguments;clearTimeout(i),i=setTimeout(function(){return i=null,t.apply(r,n)},e)}}function d(t,e){var i=t;return i===e||!(i===document||!i)&&d(i.parentNode,e)}function g(t){try{throw new Error(t)}catch(t){throw t.message+"\n"+t.stack}}function f(t,e){var i=document.createElement("div"),r=[].slice.call(document.getElementsByTagName("head")[0].querySelectorAll("base, link, style")),n=[].slice.call(document.getElementsByTagName("body")[0].querySelectorAll("link, style"));if(n.length)for(var o=0,s=n.length;o<s;o++)r.push(n[parseInt(o.toString(),10)]);var a="";h(e)&&(e=window.open("","print","height=452,width=1024,tabbar=no")),i.appendChild(t.cloneNode(!0));var l=0;for(s=r.length;l<s;l++)a+=r[parseInt(l.toString(),10)].outerHTML;e.document.write("<!DOCTYPE html> <html><head>"+a+"</head><body>"+i.innerHTML+"<script> (function() { window.ready = true; })(); <\/script></body></html>"),e.document.close(),e.focus();var u=setInterval(function(){e.ready&&(e.print(),e.close(),clearInterval(u))},500);return e}function y(){return Tn}function m(){if("undefined"!=typeof window){var t=new Uint16Array(5);return(window.msCrypto||window.crypto).getRandomValues(t)}}function M(t,e){var i=Co.test(t)?document.createElementNS("http://www.w3.org/2000/svg",t):document.createElement(t);return void 0===e?i:(i.innerHTML=e.innerHTML?e.innerHTML:"",void 0!==e.className&&(i.className=e.className),void 0!==e.id&&(i.id=e.id),void 0!==e.styles&&i.setAttribute("style",e.styles),void 0!==e.attrs&&I(i,e.attrs),i)}function v(t,e){for(var i=w(e),o=RegExp,a=0,l=t;a<l.length;a++)for(var u=l[a],c=0,p=i;c<p.length;c++){var d=p[c];if(s(u)){var g=r("attributes.className",u);h(g)?n("attributes.className",d,u):new o("\\b"+d+"\\b","i").test(g)||n("attributes.className",g+" "+d,u)}else u.classList.contains(d)||u.classList.add(d)}return t}function b(t,e){for(var i=w(e),o=0,a=t;o<a.length;o++){var l=a[o],h=s(l);if(h?r("attributes.className",l):""!==l.className)for(var u=0,c=i;u<c.length;u++){var p=c[u];if(h){var d=r("attributes.className",l).split(" "),g=d.indexOf(p);-1!==g&&d.splice(g,1),n("attributes.className",d.join(" "),l)}else l.classList.remove(p)}}return t}function w(t){var e=[];return"string"==typeof t?e.push(t):e=t,e}function N(t){var e=t;return""===e.style.visibility&&e.offsetWidth>0}function S(t){t.querySelectorAll("script").forEach(function(t){var e=document.createElement("script");e.text=t.innerHTML,document.head.appendChild(e),D(e)})}function D(t){var e=t.parentNode;if(e)return e.removeChild(t)}function j(t){var e=t.parentNode;xo.clearEvents(t),e.removeChild(t)}function I(t,e){for(var i=t,r=0,n=Object.keys(e);r<n.length;r++){var o=n[r];if(s(i)){var a=o;"tabindex"===o&&(a="tabIndex"),i.attributes[""+a]=e[""+o]}else i.setAttribute(o,e[""+o])}return i}function O(t,e,i){return void 0===e&&(e=document),t=C(t),e.querySelector(t)}function x(t,e,i){void 0===e&&(e=document),t=C(t);return e.querySelectorAll(t)}function C(t){var e=/(!|"|\$|%|&|'|\(|\)|\*|\/|:|;|<|=|\?|@|\]|\^|`|{|}|\||\+|~)/g;if(t.match(/#[0-9]/g)||t.match(e)){for(var i=t.split(","),r=0;r<i.length;r++){for(var n=i[parseInt(r.toString(),10)].split(" "),o=0;o<n.length;o++)if(n[parseInt(o.toString(),10)].indexOf("#")>-1&&!n[parseInt(o.toString(),10)].match(/\[.*\]/)){var s=n[parseInt(o.toString(),10)].split("#");if(s[1].match(/^\d/)||s[1].match(e)){var a=n[parseInt(o.toString(),10)].split(".");a[0]=a[0].replace(/#/,"[id='")+"']",n[parseInt(o.toString(),10)]=a.join(".")}}i[parseInt(r.toString(),10)]=n.join(" ")}return i.join(",")}return t}function z(t,e){var i=t;if("function"==typeof i.closest)return i.closest(e);for(;i&&1===i.nodeType;){if(L(i,e))return i;i=i.parentNode}return null}function T(t,e){void 0!==e&&Object.keys(e).forEach(function(i){t.style[i]=e[i]})}function L(t,e){var i=t.matches||t.msMatchesSelector||t.webkitMatchesSelector;return i?i.call(t,e):-1!==[].indexOf.call(document.querySelectorAll(e),t)}function A(t,e){var i,r,n="string"==typeof t?document.getElementById(t):t;for(r=0;r<n.ej2_instances.length;r++)if(i=n.ej2_instances[parseInt(r.toString(),10)],"string"==typeof e){if(e===i.getModuleName())return i}else if(i instanceof e)return i}function P(t,i,r,n){return t.properties.hasOwnProperty(i)&&t.properties[i]instanceof n||(t.properties[""+i]=e(n,[t,i,r])),t.properties[""+i]}function E(t,i,r,n,o,s){for(var a=[],l=r?r.length:0,h=0;h<l;h++){var u=n;if(s&&(u=n(r[parseInt(h.toString(),10)],t)),o){var c=e(u,[t,i,{},!0]);c.setProperties(r[parseInt(h.toString(),10)],!0),a.push(c)}else a.push(e(u,[t,i,r[parseInt(h.toString(),10)],!1]))}return a}function k(t,e){return function(){return this.properties.hasOwnProperty(e)||(this.properties[""+e]=t),this.properties[""+e]}}function B(t,e,i){return function(){var r=this;if(!this.properties.hasOwnProperty(e)){var n=E(this,e,t,i,!1);this.properties[""+e]=n}var o=void 0!==this.controlParent&&this.controlParent.ignoreCollectionWatch||this.ignoreCollectionWatch;return this.properties[e].hasOwnProperty("push")||o||["push","pop"].forEach(function(t){var i={value:function(t,e,i,r){return function(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var o=this.propName?this.getParentKey()+"."+e+"-":e+"-";switch(t){case"push":for(var s=0;s<i.length;s++){var a=i[parseInt(s.toString(),10)];Array.prototype[""+t].apply(r,[a]);var l=F(o+(r.length-1),a,!this.controlParent,t);this.serverDataBind(l,i[parseInt(s.toString(),10)],!1,t)}break;case"pop":Array.prototype[""+t].apply(r);var h=F(o+r.length,null,!this.controlParent,t);this.serverDataBind(h,{ejsAction:"pop"},!1,t)}return r}}(t,e,0,r.properties[""+e]).bind(r),configurable:!0};Object.defineProperty(r.properties[""+e],t,i)}),this.properties[e].hasOwnProperty("isComplexArray")||Object.defineProperty(this.properties[""+e],"isComplexArray",{value:!0}),this.properties[""+e]}}function F(t,e,i,r){var n=t;if(i&&(n={},n[""+t]=e,e&&"object"==typeof e)){n[""+t].ejsAction=r}return n}function R(t){return function(e,i){var r={set:function(t,e){return function(i){if(this.properties[""+e]!==i){var r=this.properties.hasOwnProperty(e)?this.properties[e]:t;this.saveChanges(e,i,r),this.properties[""+e]=i}}}(t,i),get:k(t,i),enumerable:!0,configurable:!0};Object.defineProperty(e,i,r),Q(e,i,"prop",t)}}function U(t,e){return function(i,r){var n={set:function(t,e,i){return function(r){P(this,e,t,i).setProperties(r)}}(t,r,e),get:function(t,e,i){return function(){return P(this,e,t,i)}}(t,r,e),enumerable:!0,configurable:!0};Object.defineProperty(i,r,n),Q(i,r,"complexProp",t,e)}}function _(t,e){return function(i,r){var n={set:function(t,e,i){return function(r){this.isComplexArraySetter=!0;var n=E(this,e,t,i,!1),o=E(this,e,r,i,!0);this.isComplexArraySetter=!1,this.saveChanges(e,o,n),this.properties[""+e]=o}}(t,r,e),get:B(t,r,e),enumerable:!0,configurable:!0};Object.defineProperty(i,r,n),Q(i,r,"colProp",t,e)}}function V(){return function(t,e){var i={set:function(t){var i=this.properties[""+e];if(i!==t){var r=G(this,e);!1===u(i)&&r.context.removeEventListener(r.prefix,i),r.context.addEventListener(r.prefix,t),this.properties[""+e]=t}},get:k(void 0,e),enumerable:!0,configurable:!0};Object.defineProperty(t,e,i),Q(t,e,"event")}}function Y(t){}function Q(t,e,i,r,n){u(t.propList)&&(t.propList={props:[],complexProps:[],colProps:[],events:[],propNames:[],complexPropNames:[],colPropNames:[],eventNames:[]}),t.propList[i+"s"].push({propertyName:e,defaultValue:r,type:n}),t.propList[i+"Names"].push(e)}function W(t){if(u(t.prototype.builderObject)){t.prototype.builderObject={properties:{},propCollections:[],add:function(){this.isPropertyArray=!0,this.propCollections.push(l({},this.properties,{}))}};for(var e=/complex/,i=0,r=Object.keys(t.prototype.propList);i<r.length;i++)for(var n=r[i],o=function(i){e.test(n)?t.prototype.builderObject[i.propertyName]=function(t){var e={};a(e,W(i.type)),t(e);var r;return r=e.isPropertyArray?e.propCollections:l({},e.properties,{}),this.properties[i.propertyName]=r,e.properties={},e.propCollections=[],e.isPropertyArray=!1,this}:t.prototype.builderObject[i.propertyName]=function(t){return this.properties[i.propertyName]=t,this}},s=0,h=t.prototype.propList[""+n];s<h.length;s++){o(h[s])}}return t.prototype.builderObject}function G(t,e){if(!1===t.hasOwnProperty("parentObj"))return{context:t,prefix:e};var i=r("propName",t);return i&&(e=i+"-"+e),G(r("parentObj",t),e)}function H(t){var e=t.target,i=this.rippleOptions.selector,r=i?z(e,i):e;if(!(!r||this.rippleOptions&&z(e,this.rippleOptions.ignore))){var n=r.getBoundingClientRect(),o=t.pageX-document.body.scrollLeft,s=t.pageY-(!document.body.scrollTop&&document.documentElement?document.documentElement.scrollTop:document.body.scrollTop),a=Math.max(Math.abs(o-n.left),Math.abs(o-n.right)),l=Math.max(Math.abs(s-n.top),Math.abs(s-n.bottom)),h=Math.sqrt(a*a+l*l),u=2*h+"px",c=o-n.left-h,p=s-n.top-h;this.rippleOptions&&this.rippleOptions.isCenterRipple&&(c=0,p=0,u="100%"),r.classList.add("e-ripple");var d=M("div",{className:"e-ripple-element",styles:"width: "+u+";height: "+u+";left: "+c+"px;top: "+p+"px;transition-duration: "+this.rippleOptions.duration.toString()+"ms;"});r.appendChild(d),window.getComputedStyle(d).getPropertyValue("opacity"),d.style.transform="scale(1)",r!==this.parent&&xo.add(r,"mouseleave",$,{parent:this.parent,rippleOptions:this.rippleOptions})}}function q(t){K(t,this)}function $(t){K(t,this)}function K(t,e){var i=e.rippleOptions.duration,r=t.target,n=e.rippleOptions.selector,o=n?z(r,n):r;if(o&&(!o||-1!==o.className.indexOf("e-ripple"))){var s=x(".e-ripple-element",o),a=s[s.length-1];a&&(a.style.opacity="0.5"),e.parent!==o&&xo.remove(o,"mouseleave",$),setTimeout(function(){a&&a.parentNode&&a.parentNode.removeChild(a),o.getElementsByClassName("e-ripple-element").length||o.classList.remove("e-ripple"),e.done&&e.done(t)},i)}}function J(t){for(var e="",i=0,r=t;i<r.length;i++){var n=r[i];e+=String.fromCharCode(n)}return e}function Z(t){Qo=new Yo(t)}function X(t,e,i){if("function"==typeof t)return t;var r='var str="'+function(t,e,i,r){var n=0,o=[],s=t.match(/class="([^"]+|)\s{2}/g),a="";s&&s.forEach(function(e){a=e.replace(/\s\s+/g," "),t=t.replace(e,a)});if(Ps.test(t)){for(var l=!1,h="",u=0;u<t.length;u++)"$"===t[u+""]&&"{"===t[u+1]?l=!0:"}"===t[u+""]&&(l=!1),h+='"'!==t[u+""]||l?t[u+""]:'\\"';t=h}else t=t.replace(/\\?"/g,'\\"');return t.replace(Ns,"").replace(Ls,"'$1'").replace(Ps,function(t,s,a,l){var h=s.match(Cs);if(h){var u=h[1];if(js.test(s))s='";} '+s.replace(h[1],u.replace(Ts,function(t){return t=t.trim(),tt(t,!Ss.test(t)&&-1===o.indexOf(t),e,o,r)}))+'{ \n str = str + "';else if(Ds.test(s))s='"; '+s.replace(h[1],u.replace(As,function(t){return rt(t,e,o,r)}))+'{ \n str = str + "';else if(Os.test(s)){var c=h[1].split(" of ");s='"; '+s.replace(h[1],function(t){return o.push(c[0]),o.push(c[0]+"Index"),"var i"+(n+=1)+"=0; i"+n+" < "+tt(c[1],!0,e,o,r)+".length; i"+n+"++"})+"{ \n "+c[0]+"= "+tt(c[1],!0,e,o,r)+"[i"+n+"]; \n var "+c[0]+"Index=i"+n+'; \n str = str + "'}else{var p=s.split("("),d=i&&i.hasOwnProperty(p[0])?"this.":"global";d=/\./.test(p[0])?"":d;var g=h[1].split(",");0===h[1].length||/data/.test(g[0])||/window./.test(g[0])||(h[1]="global"===d?e+"."+h[1]:h[1]);if(Rs.test(s)&&/\]\./gm.test(s)||/@|\$|#/gm.test(s)){/@|\$|#|\]\./gm.test(s)&&(s='"+ '+("global"===d?"":d)+s.replace(h[1],u.replace(Fs,function(t){return rt(t,e,o,r)}))+'+ "')}else s='" + '+("global"===d?"":d)+s.replace(u,tt(h[1].replace(/,( |)data.|,/gi,","+e+".").replace(/,( |)data.window/gi,",window"),"global"!==d,e,o,r))+'+"'}}else Is.test(s)?s='"; '+s.replace(Is,'} else { \n str = str + "'):s.match(xs)?s=s.replace(xs,'"; \n } \n str = str + "'):/@|#|\$/gm.test(s)?(s.match(ks)&&(s=it(s)),s='"+'+et(s,-1===o.indexOf(s),e,o)+'"]+"'):s=s.match(ks)?'"+'+et(s=it(s),-1===o.indexOf(s),e,o)+'"]+"':""!==s?'"+'+tt(s.replace(/,/gi,"+"+e+"."),-1===o.indexOf(s),e,o,r)+'+"':"${}";return s})}(t,"data",e,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",r).bind(e)}function tt(t,e,i,r,n){return!e||zs.test(t)||-1!==r.indexOf(t.split(".")[0])||n||"true"===t||"false"===t?t:i+"."+t}function et(t,e,i,r){return e&&!zs.test(t)&&-1===r.indexOf(t.split(".")[0])?i+'["'+t:t}function it(t){return t=t.match(Bs)?t:t.replace(ks,"\\\\")}function rt(t,e,i,r){t=t.trim();if(/\window\./gm.test(t))return t;var n=/'|"/gm;return/@|\$|#/gm.test(t)&&(t=et(t,-1===i.indexOf(t),e,i)+'"]'),Es.test(t)?function(t,e,i,r){return!e||zs.test(t)||-1!==r.indexOf(t.split(".")[0])||/^\..*/gm.test(t)?t:i+"."+t}(t,!n.test(t)&&-1===i.indexOf(t),e,i):tt(t,!n.test(t)&&-1===i.indexOf(t),e,i,r)}function nt(){return"-"+Math.random().toString(36).substr(2,5)}function ot(t,e,i){var r=Ys.compile(t,e,i);return function(t,e,i,n,o,s,a,l){var u=r(t,e,i,a,l),c="BlazorTemplateId";if(y()&&!o){var p=n+nt();if(Vs[""+n]||(Vs[""+n]=[]),h(s))t[""+c]=p,Vs[""+n].push(t);else for(var d=0,g=Object.keys(Vs[""+n][parseInt(s.toString(),10)]);d<g.length;d++){var f=g[d];f!==c&&t[""+f]&&(Vs[""+n][parseInt(s.toString(),10)][""+f]=t[""+f]),f===c&&(p=Vs[""+n][parseInt(s.toString(),10)][""+f])}return"rowTemplate"===i?[M("tr",{id:p,className:"e-blazor-template"})]:[M("div",{id:p,className:"e-blazor-template"})]}if("string"==typeof u){if(_s.test(u)){return M("svg",{innerHTML:u}).childNodes}return M(Us.test(u)?"table":"div",{innerHTML:u}).childNodes}return u}}function st(t,e,i,r,n){if(y()){window.sfBlazor.updateTemplate(e,Vs[""+t],t,i,n),!1!==r&&(Vs[""+t]=[])}}function at(t,e,i){var r=document.getElementById(t);if(r)for(var n=r.getElementsByClassName("blazor-inner-template"),o=0;o<n.length;o++){var s=" ";s=h(i)?n[parseInt(o.toString(),10)].getAttribute("data-templateId"):n[parseInt(i.toString(),10)].getAttribute("data-templateId");var a=document.getElementById(s);if(a)for(var l=a.childNodes.length,u=0;u<l;u++)h(i)?n[parseInt(o.toString(),10)].appendChild(a.childNodes[0]):(n[parseInt(i.toString(),10)].appendChild(a.childNodes[0]),o=n.length)}}function lt(t){Ys.compile=t.compile}function ht(){return Ys.compile}function ut(t,e,i){var r=t||"",n=document.getElementById("chartmeasuretext");if(null===n&&(n=M("text",{id:"chartmeasuretext"}),document.body.appendChild(n)),"string"==typeof t&&(t.indexOf("<")>-1||t.indexOf(">")>-1)){for(var o=t.split(" "),s=0;s<o.length;s++)-1===o[s].indexOf("<br/>")&&(o[s]=o[s].replace(/[<>]/g,"&"));t=o.join(" ")}return n.innerHTML=r.indexOf("<br>")>-1||r.indexOf("<br/>")>-1?r:t,n.style.position="fixed",n.style.fontSize=e.size,n.style.fontWeight=e.fontWeight,n.style.fontStyle=e.fontStyle,n.style.fontFamily=e.fontFamily||i.fontFamily,n.style.visibility="hidden",n.style.top="-100",n.style.left="0",n.style.whiteSpace="nowrap",n.style.lineHeight="normal",new Js(n.clientWidth,n.clientHeight)}function ct(t,e,i,r,n){return void 0===r&&(r=0),void 0===n&&(n=0),t>=i.x-r&&t<=i.x+i.width+r&&e>=i.y-n&&e<=i.y+i.height+n}function pt(t){return document.getElementById(t)}function dt(t){var e=pt(t);e&&j(e)}function gt(t,e,i,r,n,o,s){var l=new $s(""),h=function(t,e,i,r,n){var o,s="Path",l=e.width,h=e.height,u=t.x,c=t.y,p=t.x+-l/2,d=t.y+-h/2;switch(i){case"Circle":case"Bubble":s="Ellipse",a(r,{rx:l/2,ry:h/2,cx:u,cy:c});break;case"Plus":a(r,{d:o="M "+p+" "+c+" L "+(u+l/2)+" "+c+" M "+u+" "+(c+h/2)+" L "+u+" "+(c+-h/2),stroke:r.fill});break;case"Cross":a(r,{d:o="M "+p+" "+(c+-h/2)+" L "+(u+l/2)+" "+(c+h/2)+" M "+p+" "+(c+h/2)+" L "+(u+l/2)+" "+(c+-h/2),stroke:r.fill});break;case"HorizontalLine":a(r,{d:o="M "+p+" "+c+" L "+(u+l/2)+" "+c,stroke:r.fill});break;case"VerticalLine":a(r,{d:o="M "+u+" "+(c+h/2)+" L "+u+" "+(c+-h/2),stroke:r.fill});break;case"Diamond":a(r,{d:o="M "+p+" "+c+" L "+u+" "+(c+-h/2)+" L "+(u+l/2)+" "+c+" L "+u+" "+(c+h/2)+" L "+p+" "+c+" z"});break;case"Rectangle":a(r,{d:o="M "+p+" "+(c+-h/2)+" L "+(u+l/2)+" "+(c+-h/2)+" L "+(u+l/2)+" "+(c+h/2)+" L "+p+" "+(c+h/2)+" L "+p+" "+(c+-h/2)+" z"});break;case"Triangle":a(r,{d:o="M "+p+" "+(c+h/2)+" L "+u+" "+(c+-h/2)+" L "+(u+l/2)+" "+(c+h/2)+" L "+p+" "+(c+h/2)+" z"});break;case"InvertedTriangle":a(r,{d:o="M "+(u+l/2)+" "+(c-h/2)+" L "+u+" "+(c+h/2)+" L "+(u-l/2)+" "+(c-h/2)+" L "+(u+l/2)+" "+(c-h/2)+" z"});break;case"Pentagon":for(var g=void 0,f=void 0,y=0;y<=5;y++)g=l/2*Math.cos(Math.PI/180*(72*y)),f=h/2*Math.sin(Math.PI/180*(72*y)),o=0===y?"M "+(u+g)+" "+(c+f)+" ":o.concat("L "+(u+g)+" "+(c+f)+" ");o=o.concat("Z"),a(r,{d:o});break;case"Image":s="Image",a(r,{href:n,height:h,width:l,x:p,y:d})}return{renderOption:r,functionName:s}}(t,i,e,n,r),u=l["draw"+h.functionName](h.renderOption);return u.setAttribute("role",o),u.setAttribute("aria-label",s),u}function ft(t,e){return null!==t&&void 0!==t?-1!==t.indexOf("%")?e/100*parseInt(t,10):parseInt(t,10):null}function yt(t,e){var i=document.getElementById("treeMapMeasureText");return null===i&&(i=M("text",{id:"treeMapMeasureText"}),document.body.appendChild(i)),i.innerHTML=Hs.sanitize(t),i.style.position="absolute",i.style.fontSize=e.size,i.style.fontWeight=e.fontWeight,i.style.fontStyle=e.fontStyle,i.style.fontFamily=e.fontFamily,i.style.visibility="hidden",i.style.top="-100",i.style.left="0",i.style.whiteSpace="nowrap",i.style.lineHeight="normal",new Fa(i.clientWidth,i.clientHeight)}function mt(t,e,i){var r=e,n=yt(e,i).width;if(n>t)for(var o=e.length-1;o>=0;--o)if(r=e.substring(0,o)+"...",(n=yt(r,i).width)<=t||r.length<4)return r.length<4&&(r=" "),r;return r}function Mt(t,e,i,r){var n;switch(e){case"Near":n=t.x;break;case"Center":n="title"===r?t.width/2-i.width/2:t.x+t.width/2-i.width/2;break;case"Far":n="title"===r?t.width-t.y-i.width:t.x+t.width-i.width}var o="title"===r?t.y+i.height/2:t.y+t.height/2+i.height/2;return new Ya(n,o)}function vt(t,e,i){var r=t.createText(e,i);return r.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),r.style["user-select"]="none",r.style["-moz-user-select"]="none",r.style["-webkit-touch-callout"]="none",r.style["-webkit-user-select"]="none",r.style["-khtml-user-select"]="none",r.style["-ms-user-select"]="none",r.style["-o-user-select"]="none",r}function bt(t,e,i,r,n){void 0===n&&(n=!1);var o,s,a,l={"font-size":e.size,"font-style":e.fontStyle,"font-family":e.fontFamily,"font-weight":e.fontWeight,"text-anchor":t.anchor,transform:t.transform,opacity:e.opacity,"dominant-baseline":t.baseLine,id:t.id,x:t.x,y:t.y,fill:i},u="string"==typeof t.text?t.text:n?t.text[t.text.length-1]:t.text[0],c=new $s("");if(!h(u)&&!h(t.connectorText)&&u.search(t.connectorText[1])>=0)for(var p=u.split("#"),d=0;d<p.length;d++){var g=-1===p[d].search(t.connectorText)||h(t.connectorText)?p[d]:t.connectorText;if(l.id=t.id+"_"+d,a=vt(c,l,g),d%2==0&&0!==d){g=g.replace(/\s+/g," ")}var f=yt(g,e);l.x=0!==d?l.x+f.width:l.x+f.width+5,r.appendChild(a)}else a=vt(c,l,u),r.appendChild(a);if("string"!=typeof t.text&&t.text.length>1){for(var y=1,m=t.text.length;y<m;y++)s=yt(t.text[y],e).height,o=c.createTSpan({x:t.x,id:t.id,y:t.y+y*s},t.text[y]),a.appendChild(o);r.appendChild(a)}return a}function wt(t,e,i){var r,n=t.split("_RectPath")[0];h(r=t.indexOf("_LabelTemplate")>-1?e:document.querySelector("#"+n+"_LabelTemplate"))||(r.innerHTML=i)}function Nt(t){return document.getElementById(t)}function St(t,e){return t.weight===e.weight?0:t.weight<e.weight?1:-1}function Dt(t,e,i,r){for(var n=!1,o="",s=r.leafItemSettings,a=0;a<t.length;a++){var l=i[r.levels[a]?r.levels[a].groupPath:s.labelPath?s.labelPath:r.weightValuePath]||"undefined";if(t[a]===l&&(o+=l+(a===t.length-1?"":"#"))===e){n=!0;break}}return n}function jt(t){var e;if(t){var i=Object.keys(t);e={};for(var r=0;r<i.length;r++)if(t[i[r]]instanceof Array){e.values=t[i[r]],e.key=i[r];break}}return e}function It(t,e,i,r){if("Child"===i){e.push(t.levelOrderName);var n=jt(t).values;if(n&&n.length>0){for(var o=0;o<n.length;o++)-1===e.indexOf(n[o].levelOrderName)&&e.push(n[o].levelOrderName);for(var s=0;s<n.length;s++)It(n[s],e,i,r)}}else if("Parent"===i)"string"==typeof t.levelOrderName&&-1===e.indexOf(t.levelOrderName)&&(e.push(t.levelOrderName),It(t.parent,e,i,r));else if("All"===i){var a=t.levelOrderName.split("#")[0],l=void 0;for(o=0;o<r.layout.renderItems.length;o++)(l=r.layout.renderItems[o]).levelOrderName.indexOf(a)>-1&&-1===e.indexOf(l.levelOrderName)&&e.push(l.levelOrderName)}else e.push(t.levelOrderName);return e}function Ot(t){var e=null;try{e="function"!=typeof t&&document.querySelectorAll(t).length?ot(document.querySelector(t).innerHTML.trim()):ot(t)}catch(i){e=ot(t)}return e}function xt(t,e,i){var r=M("div",{id:e});r.style.cssText="position: absolute;pointer-events: auto;";for(var n=t.length;n>0;)r.appendChild(t[0]),n--;for(var o=r.innerHTML,s=Object.keys(i),a=0;a<s.length;a++){var l=RegExp;o=o.replace(new l("{{:"+s[a]+"}}","g"),i[s[a].toString()])}return r.innerHTML=o,r}function Ct(t,e,i,r,n){var o=new Ya(0,0),s="Template"===r?n.areaRect.x:0,a="Template"===r?n.areaRect.y:0;return o.x=Math.abs(s-(e.indexOf("Left")>-1?t.x+5:e.indexOf("Right")>-1?t.x+t.width-i.width:t.x+(t.width/2-i.width/2)))-2,!n.enableDrillDown||"BottomLeftTopRight"!==n.renderDirection&&"BottomRightTopLeft"!==n.renderDirection?o.y=Math.abs(a-(e.indexOf("Top")>-1?"Template"===r?t.y:t.y+i.height:e.indexOf("Bottom")>-1?t.y+t.height-i.height:"Template"===r?t.y+(t.height/2-i.height/2):t.y+t.height/2+i.height/4)):o.y=Math.abs(t.y+t.height-i.height+5),o}function zt(t,e){var i=new Fa(0,0);e.appendChild(t),i.height=t.offsetHeight,i.width=t.offsetWidth;var r=document.getElementById(t.id);return r.parentNode.removeChild(r),i}function Tt(t){return(t.width-t.x)*(t.height-t.y)}function Lt(t){var e=At(t),i=e.width,r=e.height;return Math.min(i,r)}function At(t){var e=t.x,i=t.y;return{x:e,y:i,width:t.width-e,height:t.height-i}}function Pt(t){var e=t.x,i=t.y;return{x:e,y:i,width:e+t.width,height:i+t.height}}function Et(t,e,i){var r=i.getBoundingClientRect(),n=i.ownerDocument.defaultView.pageXOffset,o=i.ownerDocument.defaultView.pageYOffset,s=i.ownerDocument.documentElement.clientTop,a=i.ownerDocument.documentElement.clientLeft,l=r.left+n-a,h=r.top+o-s;return new Ya(t-l,e-h)}function kt(t,e,i){var r,n,o=[];if(h(e)&&h(i)&&isNaN(i))return null;for(var s=0;s<t.length;s++){var a=!1,l=i;h(t[s].from)||h(t[s].to)||h(t[s].value)?(h(t[s].from)||h(t[s].to))&&h(t[s].value)||(i>=t[s].from&&t[s].to>=i||t[s].value===e)&&(t[s].value===e&&(a=!0),r="[object Array]"===Object.prototype.toString.call(t[s].color)?a?t[s].color[0]:Ft(t[s],l):t[s].color):i>=t[s].from&&t[s].to>=i&&t[s].value===e&&(a=!0,r="[object Array]"===Object.prototype.toString.call(t[s].color)?a?t[s].color[0]:Ft(t[s],l):t[s].color),(i>=t[s].from&&i<=t[s].to||t[s].value===e)&&!h(t[s].minOpacity)&&!h(t[s].maxOpacity)&&r&&(n=Bt(t[s],i)),(""===r||h(r))&&h(t[s].from)&&h(t[s].to)&&h(t[s].minOpacity)&&h(t[s].maxOpacity)&&h(t[s].value)&&(r="[object Array]"===Object.prototype.toString.call(t[s].color)?t[s].color[0]:t[s].color),n=h(n)?"1":n,o.push(r)}for(var u=o.length-1;u>=0;u--)u=(r=o[u])?-1:u;return{fill:r,opacity:n}}function Bt(t,e){var i=1;if(e>=t.from&&e<=t.to){i=(e-t.from)/(t.to-t.from)*(t.maxOpacity-t.minOpacity)+t.minOpacity}return i.toString()}function Ft(t,e){return Ut(t,e)}function Rt(t,e,i){return"#"+ee(t)+ee(e)+ee(i)}function Ut(t,e){var i;return Number(e)===t.from?t.color[0]:Number(e)===t.to?t.color[t.color.length-1]:Rt((i=_t(Number(e),t)).r,i.g,i.b)}function _t(t,e){var i=e.from,r=e.to,n=0,o=r-i;n=(t-i)/o;var s,a;if(e.color.length<=2)s="#"===e.color[0].charAt(0)?e.color[0]:re(e.color[0]),a="#"===e.color[e.color.length-1].charAt(0)?e.color[e.color.length-1]:re(e.color[e.color.length-1]);else{s="#"===e.color[0].charAt(0)?e.color[0]:re(e.color[0]),a="#"===e.color[e.color.length-1].charAt(0)?e.color[e.color.length-1]:re(e.color[e.color.length-1]);for(var l=o/(e.color.length-1),h=e.color.length-1,u=[],c={},p=1;p<h;p++)c={b:i+p*l,color:e.color[p]},u.push(c);for(var d=0;d<u.length;d++)i<=t&&t<=u[d].b&&0===d?(a="#"===u[d].color.charAt(0)?u[d].color:re(u[d].color),n=t<u[d].b?1-Math.abs((t-u[d].b)/l):(t-u[d].b)/l):u[d].b<=t&&t<=r&&d===u.length-1&&(s="#"===u[d].color.charAt(0)?u[d].color:re(u[d].color),n=t<u[d].b?1-Math.abs((t-u[d].b)/l):(t-u[d].b)/l),d!==u.length-1&&d<u.length&&u[d].b<=t&&t<=u[d+1].b&&(s="#"===u[d].color.charAt(0)?u[d].color:re(u[d].color),a="#"===u[d+1].color.charAt(0)?u[d+1].color:re(u[d+1].color),n=Math.abs(t-u[d+1].b)/l)}return Vt(n,s,a)}function Vt(t,e,i){var r=i.split("#")[1],n=e.split("#")[1],o=Yt(t,parseInt(n.substr(0,2),16),parseInt(r.substr(0,2),16)),s=Yt(t,parseInt(n.substr(2,2),16),parseInt(r.substr(2,2),16)),a=Yt(t,parseInt(n.substr(4,2),16),parseInt(r.substr(4,2),16));return new Qa(o,s,a)}function Yt(t,e,i){var r=i-e;return Math.round(e+r*t)}function Qt(t,e,i){for(var r,n=e.split(" "),o="",s=[],a=0,l=n.length;a<l;a++)r=n[a],yt(o.concat(r),i).width<t?o=o.concat((""===o?"":" ")+r):""!==o?(s.push(mt(t,o,i)),o=r):(s.push(mt(t,r,i)),r=""),o&&a===l-1&&s.push(mt(t,o,i));return s}function Wt(t,e,i){var r=[],n=0,o=yt(e,i).width,s=e.length;if(t>=o)return r.push(e),r;for(var a=e.length;a>n;a--){var l=e.slice(n,a);if((o=yt(l,i).width)<=t){if(r.push(l),n+=l.length,s===n)return r;a=s+1}}return r}function Gt(t,e,i,r){var n=yt(i,r);return n.width>t||n.height>e?" ":i}function Ht(t,e){return t.itemArea===e.itemArea?0:t.itemArea<e.itemArea?1:-1}function qt(t,e,i){var r=t.levelSelection;if(r)for(var n=0;n<r.length;n++)e.getAttribute("id")===r[n]?e.childElementCount>0&&(e.children[0].setAttribute("class",i),Jt(e.childNodes[0],{border:t.selectionSettings.border,fill:t.selectionSettings.fill,opacity:t.selectionSettings.opacity})):e.setAttribute("class","")}function $t(t,e){var i=t.legendId;if(i)for(var r=0;r<i.length;r++)for(var n=0;n<e.childElementCount;n++)if(e.childNodes[n].id===i[r]){var o=e.childNodes[n];o.setAttribute("fill",t.selectionSettings.fill),o.setAttribute("stroke",t.selectionSettings.border.color),o.setAttribute("stroke-width",t.selectionSettings.border.width.toString()),o.setAttribute("opacity",t.selectionSettings.opacity)}}function Kt(t,e,i){for(var r,n=0;n<t.length;n++)Jt(r=h(t[n].childNodes[0])?t[n]:t[n].childNodes[0],i.layout.renderItems[parseFloat(r.id.split("_Item_Index_")[1])].options),t[n].classList.remove(e),n-=1}function Jt(t,e){t.setAttribute("opacity",e.opacity),h(e.fill)||t.setAttribute("fill",e.fill),t.setAttribute("stroke",e.border.color),t.setAttribute("stroke-width",e.border.width)}function Zt(t,e,i){if(h(t))return null;for(var r=0,n=Object.keys(e);r<n.length;r++){var o=n[r];t=t.split("${"+o+"}").join(Xt(e[o],i).toString())}return t}function Xt(t,e){return(e.format&&!isNaN(Number(t))?e.intl.getNumberFormat({format:e.format,useGrouping:e.useGroupingSeparator})(Number(t)):t)||""}function te(t){return"#"+ee(t.r)+ee(t.g)+ee(t.b)}function ee(t){var e=t.toString(16);return 1===e.length?"0"+e:e}function ie(t){var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?new Qa(parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)):new Qa(255,255,255)}function re(t){t="transparent"===t?"white":t;var e=document.getElementById("treeMapMeasureText");e.style.color=t;var i=(t=window.getComputedStyle(e).color).replace(/[()RGBrgba ]/g,"").split(",");return te(new Qa(parseInt(i[0],10),parseInt(i[1],10),parseInt(i[2],10)))}function ne(t,e,i,r,n){var o=new $s(""),s=oe(t,i,e,n,r);return o["draw"+s.functionName](s.renderOption)}function oe(t,e,i,r,n){var o,s="Path",l=e.width,h=e.height,u=t.x,c=t.y,p=t.x+-l/2,d=t.y+-h/2;switch(i){case"Circle":case"Bubble":s="Ellipse",a(r,{rx:l/2,ry:h/2,cx:u,cy:c});break;case"VerticalLine":a(r,{d:o="M "+u+" "+(c+h/2)+" L "+u+" "+(c+-h/2)});break;case"Diamond":a(r,{d:o="M "+p+" "+c+" L "+u+" "+(c+-h/2)+" L "+(u+l/2)+" "+c+" L "+u+" "+(c+h/2)+" L "+p+" "+c+" z"});break;case"Rectangle":a(r,{d:o="M "+p+" "+(c+-h/2)+" L "+(u+l/2)+" "+(c+-h/2)+" L "+(u+l/2)+" "+(c+h/2)+" L "+p+" "+(c+h/2)+" L "+p+" "+(c+-h/2)+" z"});break;case"Triangle":a(r,{d:o="M "+p+" "+(c+h/2)+" L "+u+" "+(c+-h/2)+" L "+(u+l/2)+" "+(c+h/2)+" L "+p+" "+(c+h/2)+" z"});break;case"InvertedTriangle":a(r,{d:o="M "+(u+l/2)+" "+(c-h/2)+" L "+u+" "+(c+h/2)+" L "+(u-l/2)+" "+(c-h/2)+" L "+(u+l/2)+" "+(c-h/2)+" z"});break;case"Pentagon":for(var g=void 0,f=void 0,y=0;y<=5;y++)g=l/2*Math.cos(Math.PI/180*(72*y)),f=l/2*Math.sin(Math.PI/180*(72*y)),o=0===y?"M "+(u+g)+" "+(c+f)+" ":o.concat("L "+(u+g)+" "+(c+f)+" ");a(r,{d:o=o.concat("Z")});break;case"Star":a(r,{d:o="M "+(t.x+e.width/3)+" "+(t.y-e.height/2)+" L "+(t.x-e.width/2)+" "+(t.y+e.height/6)+" L "+(t.x+e.width/2)+" "+(t.y+e.height/6)+" L "+(t.x-e.width/3)+" "+(t.y-e.height/2)+" L "+t.x+" "+(t.y+e.height/2)+" L "+(t.x+e.width/3)+" "+(t.y-e.height/2)+" Z"});break;case"Cross":a(r,{d:o="M "+p+" "+c+" L "+(u+l/2)+" "+c+" M "+u+" "+(c+h/2)+" L "+u+" "+(c+-h/2)});break;case"Image":s="Image",a(r,{href:n,height:h,width:l,x:p,y:d})}return{renderOption:r,functionName:s}}function se(t,e){for(var i=!1,r=0;r<t.length;r++)if(e.levelOrderName===t[r].levelOrderName){i=!0;break}return i}function ae(t){if(t.length>0)for(var e=0;e<t.length;e++){var i=t[e];he(i.legendEle,i.oldFill,i.oldOpacity,i.oldBorderColor,i.oldBorderWidth)}}function le(t){if(t.length>0)for(var e=0;e<t.length;e++){var i=t[e];he(i.legendEle,i.oldFill,i.oldOpacity,i.oldBorderColor,i.oldBorderWidth);for(var r=i.ShapeCollection.Elements.length,n=0;n<r;n++)he(i.ShapeCollection.Elements[n],i.shapeOldFill,i.shapeOldOpacity,i.shapeOldBorderColor,i.shapeOldBorderWidth)}}function he(t,e,i,r,n){t.setAttribute("fill",e),t.setAttribute("opacity",i),t.setAttribute("stroke",r),t.setAttribute("stroke-width",n)}function ue(t,e,i){ae(t),Kt(document.getElementsByClassName("treeMapHighLight"),"treeMapHighLight",i)}function ce(t,e,i){for(var r,n=0;n<t;n++)for(var o=i.treeMapLegendModule.legendCollections[n].legendData.length,s=0;s<o;s++)if(i.treeMapLegendModule.legendCollections[n].legendData[s].levelOrderName===e.levelOrderName){r=n;break}return r}function pe(t,e,i,r,n,o,s){t.push({legendEle:r,oldFill:s[e].legendFill,oldOpacity:s[e].opacity,oldBorderColor:s[e].borderColor,oldBorderWidth:s[e].borderWidth,shapeElement:n,shapeOldFill:o[i].options.fill,shapeOldOpacity:o[i].options.opacity,shapeOldBorderColor:o[i].options.border.color,shapeOldBorderWidth:o[i].options.border.width})}function de(t,e,i,r){M("a",{attrs:{download:t+"."+e.toLocaleLowerCase(),href:i}}).dispatchEvent(new MouseEvent(r?"click":"move",{view:window,bubbles:!1,cancelable:!0}))}function ge(t){var e=document.getElementById(t);return e?j(e):null}function fe(t){var e,i;switch(t.toLowerCase()){case"materialdark":i="#303030";break;case"fabricdark":i="#201F1F";break;case"bootstrapdark":i="#1A1A1A"}switch(t.toLowerCase()){case"bootstrapdark":case"fabricdark":case"materialdark":e={backgroundColor:i,titleFontColor:"#FFFFFF",titleFontWeight:"Normal",subTitleFontColor:"#FFFFFF",tooltipFillColor:"#363F4C",tooltipFontColor:"#ffffff",tooltipFontSize:"13px",legendTitleColor:"#DADADA",legendTextColor:"#DADADA",fontSize:"15px",fontWeight:"Normal",subtitleFontSize:"14px",legendFontSize:"13px",fontFamily:"Roboto, Noto, Sans-serif"};break;case"highcontrast":e={backgroundColor:"#000000",titleFontColor:"#FFFFFF",titleFontWeight:"Normal",subTitleFontColor:"#FFFFFF",tooltipFillColor:"#363F4C",tooltipFontColor:"#ffffff",tooltipFontSize:"13px",legendTitleColor:"#FFFFFF",legendTextColor:"#FFFFFF",fontSize:"15px",fontWeight:"Normal",subtitleFontSize:"14px",legendFontSize:"13px",fontFamily:"Roboto, Noto, Sans-serif"};break;case"bootstrap4":e={backgroundColor:"#FFFFFF",titleFontColor:"#212529",titleFontWeight:"Normal",subTitleFontColor:"#212529",tooltipFillColor:"#000000",tooltipFontColor:"#FFFFFF",tooltipFontSize:"13px",tooltipFillOpacity:1,tooltipTextOpacity:.9,legendTitleColor:"#212529",legendTextColor:"#212529",fontFamily:"HelveticaNeue-Medium",fontSize:"16px",fontWeight:"Normal",subtitleFontSize:"14px",legendFontSize:"14px",labelFontFamily:"HelveticaNeue"};break;case"tailwind":e={backgroundColor:"transparent",titleFontColor:"#374151",titleFontWeight:"Normal",subTitleFontColor:"#374151",tooltipFillColor:"#111827",tooltipFontColor:"#F9FAFB",tooltipFontSize:"13px",tooltipFillOpacity:1,tooltipTextOpacity:1,legendTitleColor:"#374151",legendTextColor:"#374151",fontFamily:"Inter",fontSize:"14px",fontWeight:"Normal",subtitleFontSize:"12px",legendFontSize:"12px",labelFontFamily:"Inter"};break;case"tailwinddark":e={backgroundColor:"transparent",titleFontColor:"#D1D5DB",titleFontWeight:"Normal",subTitleFontColor:"#D1D5DB",tooltipFillColor:"#F9FAFB",tooltipFontColor:"#1F2937",tooltipFontSize:"13px",tooltipFillOpacity:1,tooltipTextOpacity:1,legendTitleColor:"#D1D5DB",legendTextColor:"#D1D5DB",fontFamily:"Inter",fontWeight:"Normal",fontSize:"14px",subtitleFontSize:"12px",legendFontSize:"12px",labelFontFamily:"Inter"};break;case"bootstrap5":e={backgroundColor:"rgba(255,255,255, 0.0)",titleFontColor:"#212529",titleFontWeight:"Normal",subTitleFontColor:"#212529",tooltipFillColor:"#212529",tooltipFontColor:"#F9FAFB",tooltipFontSize:"13px",tooltipFillOpacity:1,tooltipTextOpacity:1,legendTitleColor:"#212529",legendTextColor:"#212529",fontFamily:"Helvetica Neue",fontSize:"14px",fontWeight:"Normal",subtitleFontSize:"12px",legendFontSize:"12px",labelFontFamily:"Helvetica Neue"};break;case"bootstrap5dark":e={backgroundColor:"rgba(255,255,255, 0.0)",titleFontColor:"#FFFFFF",titleFontWeight:"Normal",subTitleFontColor:"#FFFFFF",tooltipFillColor:"#E9ECEF",tooltipFontColor:"#212529",tooltipFontSize:"13px",tooltipFillOpacity:1,tooltipTextOpacity:1,legendTitleColor:"#FFFFFF",legendTextColor:"#FFFFFF",fontFamily:"Helvetica Neue",fontSize:"14px",fontWeight:"Normal",subtitleFontSize:"12px",legendFontSize:"12px",labelFontFamily:"Helvetica Neue"};break;case"fluent":e={backgroundColor:"rgba(255,255,255, 0.0)",titleFontColor:"#201F1E",titleFontWeight:"Normal",subTitleFontColor:"#201F1E",tooltipFillColor:"#FFFFFF",tooltipFontColor:"#323130",tooltipFontSize:"13px",tooltipFillOpacity:1,tooltipTextOpacity:1,legendTitleColor:"#201F1E",legendTextColor:"#201F1E",fontFamily:"Segoe UI",fontSize:"14px",fontWeight:"Normal",subtitleFontSize:"12px",legendFontSize:"12px",labelFontFamily:"Segoe UI"};break;case"fluentdark":e={backgroundColor:"rgba(255,255,255, 0.0)",titleFontColor:"#F3F2F1",titleFontWeight:"Normal",subTitleFontColor:"#F3F2F1",tooltipFillColor:"#252423",tooltipFontColor:"#F3F2F1",tooltipFontSize:"13px",tooltipFillOpacity:1,tooltipTextOpacity:1,legendTitleColor:"#F3F2F1",legendTextColor:"#F3F2F1",fontFamily:"Segoe UI",fontSize:"14px",fontWeight:"Normal",subtitleFontSize:"12px",legendFontSize:"12px",labelFontFamily:"Segoe UI"};break;case"material3":e={backgroundColor:"transparent",titleFontColor:"#1C1B1F",titleFontWeight:"500",subTitleFontColor:"#1C1B1F",tooltipFillColor:"#313033",tooltipFontColor:"#F4EFF4",tooltipFontSize:"14px",tooltipFillOpacity:1,tooltipTextOpacity:1,legendTitleColor:"#1C1B1F",legendTextColor:"#49454E",fontFamily:"Roboto",fontSize:"16px",fontWeight:"400",subtitleFontSize:"14px",legendFontSize:"14px",labelFontFamily:"Roboto"};break;case"material3dark":e={backgroundColor:"transparent",titleFontColor:"#E6E1E5",titleFontWeight:"500",subTitleFontColor:"#E6E1E5",tooltipFillColor:"#E6E1E5",tooltipFontColor:"#313033",tooltipFontSize:"14px",tooltipFillOpacity:1,tooltipTextOpacity:1,legendTitleColor:"#E6E1E5",legendTextColor:"#CAC4D0",fontFamily:"Roboto",fontSize:"16px",fontWeight:"400",subtitleFontSize:"14px",legendFontSize:"14px",labelFontFamily:"Roboto"};break;default:e={backgroundColor:"#FFFFFF",titleFontColor:"#424242",titleFontWeight:"Normal",subTitleFontColor:"#424242",tooltipFillColor:"#363F4C",tooltipFontColor:"#ffffff",tooltipFontSize:"13px",legendTitleColor:"#353535",legendTextColor:"#353535",fontSize:"15px",fontWeight:"Normal",subtitleFontSize:"14px",legendFontSize:"13px",fontFamily:"Roboto, Noto, Sans-serif"}}return e}function ye(t,e){if(null===t||void 0===t)throw new Error("ArgumentException: "+e+" cannot be null or undefined")}function me(t){return void 0===t||null===t}function Me(t){return void 0!==t&&null!==t}function ve(t){return!0===t}function be(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function we(t){return null!==t&&"object"==typeof t}function Ne(t){return Rd.call(t).slice(8,-1)}function Se(t){return"[object Object]"===Rd.call(t)}function De(t){return"[object RegExp]"===Rd.call(t)}function je(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function Ie(t){return Me(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function Oe(t){return null==t?"":Array.isArray(t)||Se(t)&&t.toString===Rd?JSON.stringify(t,null,2):String(t)}function xe(t){var e=parseFloat(t);return isNaN(e)?t:e}function Ce(t,e){for(var i=Object.create(null),r=t.split(","),n=0;n<r.length;n++)i[r[n]]=!0;return e?function(t){return i[t.toLowerCase()]}:function(t){return i[t]}}function ze(t,e){if(t.length){var i=t.indexOf(e);if(i>-1)return t.splice(i,1)}}function Te(t,e){return Vd.call(t,e)}function Le(t){var e=Object.create(null);return function(i){return e[i]||(e[i]=t(i))}}function Ae(t,e){e=e||0;for(var i=t.length-e,r=new Array(i);i--;)r[i]=t[i+e];return r}function Pe(t,e){for(var i in e)t[i]=e[i];return t}function Ee(t){for(var e={},i=0;i<t.length;i++)t[i]&&Pe(e,t[i]);return e}function ke(t,e,i){}function Be(t,e){if(t===e)return!0;var i=we(t),r=we(e);if(!i||!r)return!i&&!r&&String(t)===String(e);try{var n=Array.isArray(t),o=Array.isArray(e);if(n&&o)return t.length===e.length&&t.every(function(t,i){return Be(t,e[i])});if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(n||o)return!1;var s=Object.keys(t),a=Object.keys(e);return s.length===a.length&&s.every(function(i){return Be(t[i],e[i])})}catch(t){return!1}}function Fe(t,e){for(var i=0;i<t.length;i++)if(Be(t[i],e))return i;return-1}function Re(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}function Ue(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function _e(t,e,i,r){Object.defineProperty(t,e,{value:i,enumerable:!!r,writable:!0,configurable:!0})}function Ve(t){return"function"==typeof t&&/native code/.test(t.toString())}function Ye(t){Cg.push(t),xg.target=t}function Qe(){Cg.pop(),xg.target=Cg[Cg.length-1]}function We(t){return new zg(void 0,void 0,void 0,String(t))}function Ge(t){var e=new zg(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}function He(t){kg=t}function qe(t,e){if(we(t)&&!(t instanceof zg)){var i;return Te(t,"__ob__")&&t.__ob__ instanceof Bg?i=t.__ob__:kg&&!Mg()&&(Array.isArray(t)||Se(t))&&Object.isExtensible(t)&&!t._isVue&&(i=new Bg(t)),e&&i&&i.vmCount++,i}}function $e(t,e,i,r,n){var o=new xg,s=Object.getOwnPropertyDescriptor(t,e);if(!s||!1!==s.configurable){var a=s&&s.get,l=s&&s.set;a&&!l||2!==arguments.length||(i=t[e]);var h=!n&&qe(i);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=a?a.call(t):i;return xg.target&&(o.depend(),h&&(h.dep.depend(),Array.isArray(e)&&Ze(e))),e},set:function(e){var s=a?a.call(t):i;e===s||e!=e&&s!=s||("production"!==process.env.NODE_ENV&&r&&r(),a&&!l||(l?l.call(t,e):i=e,h=!n&&qe(e),o.notify()))}})}}function Ke(t,e,i){if("production"!==process.env.NODE_ENV&&(me(t)||be(t))&&wg("Cannot set reactive property on undefined, null, or primitive value: "+t),Array.isArray(t)&&je(e))return t.length=Math.max(t.length,e),t.splice(e,1,i),i;if(e in t&&!(e in Object.prototype))return t[e]=i,i;var r=t.__ob__;return t._isVue||r&&r.vmCount?("production"!==process.env.NODE_ENV&&wg("Avoid adding reactive properties to a Vue instance or its root $data at runtime - declare it upfront in the data option."),i):r?($e(r.value,e,i),r.dep.notify(),i):(t[e]=i,i)}function Je(t,e){if("production"!==process.env.NODE_ENV&&(me(t)||be(t))&&wg("Cannot delete reactive property on undefined, null, or primitive value: "+t),Array.isArray(t)&&je(e))t.splice(e,1);else{var i=t.__ob__;t._isVue||i&&i.vmCount?"production"!==process.env.NODE_ENV&&wg("Avoid deleting properties on a Vue instance or its root $data - just set it to null."):Te(t,e)&&(delete t[e],i&&i.dep.notify())}}function Ze(t){for(var e=void 0,i=0,r=t.length;i<r;i++)(e=t[i])&&e.__ob__&&e.__ob__.dep.depend(),Array.isArray(e)&&Ze(e)}function Xe(t,e){if(!e)return t;for(var i,r,n,o=bg?Reflect.ownKeys(e):Object.keys(e),s=0;s<o.length;s++)"__ob__"!==(i=o[s])&&(r=t[i],n=e[i],Te(t,i)?r!==n&&Se(r)&&Se(n)&&Xe(r,n):Ke(t,i,n));return t}function ti(t,e,i){return i?function(){var r="function"==typeof e?e.call(i,i):e,n="function"==typeof t?t.call(i,i):t;return r?Xe(r,n):n}:e?t?function(){return Xe("function"==typeof e?e.call(this,this):e,"function"==typeof t?t.call(this,this):t)}:e:t}function ei(t,e){var i=e?t?t.concat(e):Array.isArray(e)?e:[e]:t;return i?function(t){for(var e=[],i=0;i<t.length;i++)-1===e.indexOf(t[i])&&e.push(t[i]);return e}(i):i}function ii(t,e,i,r){var n=Object.create(t||null);return e?("production"!==process.env.NODE_ENV&&ni(r,e,i),Pe(n,e)):n}function ri(t){new RegExp("^[a-zA-Z][\\-\\.0-9_"+eg.source+"]*$").test(t)||wg('Invalid component name: "'+t+'". Component names should conform to valid custom element name in html5 specification.'),(Ud(t)||tg.isReservedTag(t))&&wg("Do not use built-in or reserved HTML elements as component id: "+t)}function ni(t,e,i){Se(e)||wg('Invalid value for option "'+t+'": expected an Object, but got '+Ne(e)+".",i)}function oi(t,e,i){function r(r){var n=Fg[r]||Ug;a[r]=n(t[r],e[r],i,r)}if("production"!==process.env.NODE_ENV&&function(t){for(var e in t.components)ri(e)}(e),"function"==typeof e&&(e=e.options),function(t,e){var i=t.props;if(i){var r,n,o={};if(Array.isArray(i))for(r=i.length;r--;)"string"==typeof(n=i[r])?o[Qd(n)]={type:null}:"production"!==process.env.NODE_ENV&&wg("props must be strings when using array syntax.");else if(Se(i))for(var s in i)n=i[s],o[Qd(s)]=Se(n)?n:{type:n};else"production"!==process.env.NODE_ENV&&wg('Invalid value for option "props": expected an Array or an Object, but got '+Ne(i)+".",e);t.props=o}}(e,i),function(t,e){var i=t.inject;if(i){var r=t.inject={};if(Array.isArray(i))for(var n=0;n<i.length;n++)r[i[n]]={from:i[n]};else if(Se(i))for(var o in i){var s=i[o];r[o]=Se(s)?Pe({from:o},s):{from:s}}else"production"!==process.env.NODE_ENV&&wg('Invalid value for option "inject": expected an Array or an Object, but got '+Ne(i)+".",e)}}(e,i),function(t){var e=t.directives;if(e)for(var i in e){var r=e[i];"function"==typeof r&&(e[i]={bind:r,update:r})}}(e),!e._base&&(e.extends&&(t=oi(t,e.extends,i)),e.mixins))for(var n=0,o=e.mixins.length;n<o;n++)t=oi(t,e.mixins[n],i);var s,a={};for(s in t)r(s);for(s in e)Te(t,s)||r(s);return a}function si(t,e,i,r){if("string"==typeof i){var n=t[e];if(Te(n,i))return n[i];var o=Qd(i);if(Te(n,o))return n[o];var s=Wd(o);if(Te(n,s))return n[s];var a=n[i]||n[o]||n[s];return"production"!==process.env.NODE_ENV&&r&&!a&&wg("Failed to resolve "+e.slice(0,-1)+": "+i,t),a}}function ai(t,e,i,r){var n=e[t],o=!Te(i,t),s=i[t],a=ui(Boolean,n.type);if(a>-1)if(o&&!Te(n,"default"))s=!1;else if(""===s||s===Hd(t)){var l=ui(String,n.type);(l<0||a<l)&&(s=!0)}if(void 0===s){s=function(t,e,i){if(!Te(e,"default"))return;var r=e.default;"production"!==process.env.NODE_ENV&&we(r)&&wg('Invalid default value for prop "'+i+'": Props with type Object/Array must use a factory function to return the default value.',t);if(t&&t.$options.propsData&&void 0===t.$options.propsData[i]&&void 0!==t._props[i])return t._props[i];return"function"==typeof r&&"Function"!==li(e.type)?r.call(t):r}(r,n,t);var h=kg;He(!0),qe(s),He(h)}return"production"!==process.env.NODE_ENV&&function(t,e,i,r,n){if(t.required&&n)return void wg('Missing required prop: "'+e+'"',r);if(null==i&&!t.required)return;var o=t.type,s=!o||!0===o,a=[];if(o){Array.isArray(o)||(o=[o]);for(var l=0;l<o.length&&!s;l++){var h=function(t,e,i){var r,n=li(e);if(_g.test(n)){var o=typeof t;(r=o===n.toLowerCase())||"object"!==o||(r=t instanceof e)}else if("Object"===n)r=Se(t);else if("Array"===n)r=Array.isArray(t);else try{r=t instanceof e}catch(t){wg('Invalid prop type: "'+String(e)+'" is not a constructor',i),r=!1}return{valid:r,expectedType:n}}(i,o[l],r);a.push(h.expectedType||""),s=h.valid}}var u=a.some(function(t){return t});if(!s&&u)return void wg(function(t,e,i){var r='Invalid prop: type check failed for prop "'+t+'". Expected '+i.map(Wd).join(", "),n=i[0],o=Ne(e);1===i.length&&pi(n)&&pi(typeof e)&&!function(){var t=[],e=arguments.length;for(;e--;)t[e]=arguments[e];return t.some(function(t){return"boolean"===t.toLowerCase()})}(n,o)&&(r+=" with value "+ci(e,n));r+=", got "+o+" ",pi(o)&&(r+="with value "+ci(e,o)+".");return r}(e,i,a),r);var c=t.validator;c&&(c(i)||wg('Invalid prop: custom validator check failed for prop "'+e+'".',r))}(n,t,s,r,o),s}function li(t){var e=t&&t.toString().match(Vg);return e?e[1]:""}function hi(t,e){return li(t)===li(e)}function ui(t,e){if(!Array.isArray(e))return hi(e,t)?0:-1;for(var i=0,r=e.length;i<r;i++)if(hi(e[i],t))return i;return-1}function ci(t,e){return"String"===e?'"'+t+'"':"Number"===e?""+Number(t):""+t}function pi(t){return Yg.some(function(e){return t.toLowerCase()===e})}function di(t,e,i){Ye();try{if(e)for(var r=e;r=r.$parent;){var n=r.$options.errorCaptured;if(n)for(var o=0;o<n.length;o++)try{if(!1===n[o].call(r,t,e,i))return}catch(t){fi(t,r,"errorCaptured hook")}}fi(t,e,i)}finally{Qe()}}function gi(t,e,i,r,n){var o;try{(o=i?t.apply(e,i):t.call(e))&&!o._isVue&&Ie(o)&&!o._handled&&(o.catch(function(t){return di(t,r,n+" (Promise/async)")}),o._handled=!0)}catch(t){di(t,r,n)}return o}function fi(t,e,i){if(tg.errorHandler)try{return tg.errorHandler.call(null,t,e,i)}catch(e){e!==t&&yi(e,null,"config.errorHandler")}yi(t,e,i)}function yi(t,e,i){if("production"!==process.env.NODE_ENV&&wg("Error in "+i+': "'+t.toString()+'"',e),!ng&&!og||"undefined"==typeof console)throw t;console.error(t)}function mi(){Gg=!1;var t=Wg.slice(0);Wg.length=0;for(var e=0;e<t.length;e++)t[e]()}function Mi(t,e){var i;if(Wg.push(function(){if(t)try{t.call(e)}catch(t){di(t,e,"nextTick")}else i&&i(e)}),Gg||(Gg=!0,Rg()),!t&&"undefined"!=typeof Promise)return new Promise(function(t){i=t})}function vi(t){bi(t,lf),lf.clear()}function bi(t,e){var i,r,n=Array.isArray(t);if(!(!n&&!we(t)||Object.isFrozen(t)||t instanceof zg)){if(t.__ob__){var o=t.__ob__.dep.id;if(e.has(o))return;e.add(o)}if(n)for(i=t.length;i--;)bi(t[i],e);else for(i=(r=Object.keys(t)).length;i--;)bi(t[r[i]],e)}}function wi(t,e){function i(){var t=arguments,r=i.fns;if(!Array.isArray(r))return gi(r,null,arguments,e,"v-on handler");for(var n=r.slice(),o=0;o<n.length;o++)gi(n[o],null,t,e,"v-on handler")}return i.fns=t,i}function Ni(t,e,i,r,n,o){var s,a,l,h;for(s in t)a=t[s],l=e[s],h=uf(s),me(a)?"production"!==process.env.NODE_ENV&&wg('Invalid handler for event "'+h.name+'": got '+String(a),o):me(l)?(me(a.fns)&&(a=t[s]=wi(a,o)),ve(h.once)&&(a=t[s]=n(h.name,a,h.capture)),i(h.name,a,h.capture,h.passive,h.params)):a!==l&&(l.fns=a,t[s]=l);for(s in e)me(t[s])&&r((h=uf(s)).name,e[s],h.capture)}function Si(t,e,i){function r(){i.apply(this,arguments),ze(n.fns,r)}t instanceof zg&&(t=t.data.hook||(t.data.hook={}));var n,o=t[e];me(o)?n=wi([r]):Me(o.fns)&&ve(o.merged)?(n=o).fns.push(r):n=wi([o,r]),n.merged=!0,t[e]=n}function Di(t,e,i,r,n){if(Me(e)){if(Te(e,i))return t[i]=e[i],n||delete e[i],!0;if(Te(e,r))return t[i]=e[r],n||delete e[r],!0}return!1}function ji(t){return be(t)?[We(t)]:Array.isArray(t)?Oi(t):void 0}function Ii(t){return Me(t)&&Me(t.text)&&function(t){return!1===t}(t.isComment)}function Oi(t,e){var i,r,n,o,s=[];for(i=0;i<t.length;i++)me(r=t[i])||"boolean"==typeof r||(o=s[n=s.length-1],Array.isArray(r)?r.length>0&&(Ii((r=Oi(r,(e||"")+"_"+i))[0])&&Ii(o)&&(s[n]=We(o.text+r[0].text),r.shift()),s.push.apply(s,r)):be(r)?Ii(o)?s[n]=We(o.text+r):""!==r&&s.push(We(r)):Ii(r)&&Ii(o)?s[n]=We(o.text+r.text):(ve(t._isVList)&&Me(r.tag)&&me(r.key)&&Me(e)&&(r.key="__vlist"+e+"_"+i+"__"),s.push(r)));return s}function xi(t,e){if(t){for(var i=Object.create(null),r=bg?Reflect.ownKeys(t):Object.keys(t),n=0;n<r.length;n++){var o=r[n];if("__ob__"!==o){for(var s=t[o].from,a=e;a;){if(a._provided&&Te(a._provided,s)){i[o]=a._provided[s];break}a=a.$parent}if(!a)if("default"in t[o]){var l=t[o].default;i[o]="function"==typeof l?l.call(e):l}else"production"!==process.env.NODE_ENV&&wg('Injection "'+o+'" not found',e)}}return i}}function Ci(t,e){if(!t||!t.length)return{};for(var i={},r=0,n=t.length;r<n;r++){var o=t[r],s=o.data;if(s&&s.attrs&&s.attrs.slot&&delete s.attrs.slot,o.context!==e&&o.fnContext!==e||!s||null==s.slot)(i.default||(i.default=[])).push(o);else{var a=s.slot,l=i[a]||(i[a]=[]);"template"===o.tag?l.push.apply(l,o.children||[]):l.push(o)}}for(var h in i)i[h].every(zi)&&delete i[h];return i}function zi(t){return t.isComment&&!t.asyncFactory||" "===t.text}function Ti(t){return t.isComment&&t.asyncFactory}function Li(t,e,i){var r,n=Object.keys(e).length>0,o=t?!!t.$stable:!n,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(o&&i&&i!==Fd&&s===i.$key&&!n&&!i.$hasNormal)return i;r={};for(var a in t)t[a]&&"$"!==a[0]&&(r[a]=function(t,e,i){var r=function(){var t=arguments.length?i.apply(null,arguments):i({}),e=(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:ji(t))&&t[0];return t&&(!e||1===t.length&&e.isComment&&!Ti(e))?void 0:t};i.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0});return r}(e,a,t[a]))}else r={};for(var l in e)l in r||(r[l]=function(t,e){return function(){return t[e]}}(e,l));return t&&Object.isExtensible(t)&&(t._normalized=r),_e(r,"$stable",o),_e(r,"$key",s),_e(r,"$hasNormal",n),r}function Ai(t,e){var i,r,n,o,s;if(Array.isArray(t)||"string"==typeof t)for(i=new Array(t.length),r=0,n=t.length;r<n;r++)i[r]=e(t[r],r);else if("number"==typeof t)for(i=new Array(t),r=0;r<t;r++)i[r]=e(r+1,r);else if(we(t))if(bg&&t[Symbol.iterator]){i=[];for(var a=t[Symbol.iterator](),l=a.next();!l.done;)i.push(e(l.value,i.length)),l=a.next()}else for(o=Object.keys(t),i=new Array(o.length),r=0,n=o.length;r<n;r++)s=o[r],i[r]=e(t[s],s,r);return Me(i)||(i=[]),i._isVList=!0,i}function Pi(t,e,i,r){var n,o=this.$scopedSlots[t];o?(i=i||{},r&&("production"===process.env.NODE_ENV||we(r)||wg("slot v-bind without argument expects an Object",this),i=Pe(Pe({},r),i)),n=o(i)||("function"==typeof e?e():e)):n=this.$slots[t]||("function"==typeof e?e():e);var s=i&&i.slot;return s?this.$createElement("template",{slot:s},n):n}function Ei(t){return si(this.$options,"filters",t,!0)||Kd}function ki(t,e){return Array.isArray(t)?-1===t.indexOf(e):t!==e}function Bi(t,e,i,r,n){var o=tg.keyCodes[e]||i;return n&&r&&!tg.keyCodes[e]?ki(n,r):o?ki(o,t):r?Hd(r)!==e:void 0===t}function Fi(t,e,i,r,n){if(i)if(we(i)){Array.isArray(i)&&(i=Ee(i));var o,s=function(s){if("class"===s||"style"===s||_d(s))o=t;else{var a=t.attrs&&t.attrs.type;o=r||tg.mustUseProp(e,a,s)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var l=Qd(s),h=Hd(s);if(!(l in o||h in o)&&(o[s]=i[s],n)){(t.on||(t.on={}))["update:"+s]=function(t){i[s]=t}}};for(var a in i)s(a)}else"production"!==process.env.NODE_ENV&&wg("v-bind without argument expects an Object or Array value",this);return t}function Ri(t,e){var i=this._staticTrees||(this._staticTrees=[]),r=i[t];return r&&!e?r:(r=i[t]=this.$options.staticRenderFns[t].call(this._renderProxy,null,this),_i(r,"__static__"+t,!1),r)}function Ui(t,e,i){return _i(t,"__once__"+e+(i?"_"+i:""),!0),t}function _i(t,e,i){if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]&&"string"!=typeof t[r]&&Vi(t[r],e+"_"+r,i);else Vi(t,e,i)}function Vi(t,e,i){t.isStatic=!0,t.key=e,t.isOnce=i}function Yi(t,e){if(e)if(Se(e)){var i=t.on=t.on?Pe({},t.on):{};for(var r in e){var n=i[r],o=e[r];i[r]=n?[].concat(n,o):o}}else"production"!==process.env.NODE_ENV&&wg("v-on without argument expects an Object value",this);return t}function Qi(t,e,i,r){e=e||{$stable:!i};for(var n=0;n<t.length;n++){var o=t[n];Array.isArray(o)?Qi(o,e,i):o&&(o.proxy&&(o.fn.proxy=!0),e[o.key]=o.fn)}return r&&(e.$key=r),e}function Wi(t,e){for(var i=0;i<e.length;i+=2){var r=e[i];"string"==typeof r&&r?t[e[i]]=e[i+1]:"production"!==process.env.NODE_ENV&&""!==r&&null!==r&&wg("Invalid value for dynamic directive argument (expected string or null): "+r,this)}return t}function Gi(t,e){return"string"==typeof t?e+t:t}function Hi(t){t._o=Ui,t._n=xe,t._s=Oe,t._l=Ai,t._t=Pi,t._q=Be,t._i=Fe,t._m=Ri,t._f=Ei,t._k=Bi,t._b=Fi,t._v=We,t._e=Lg,t._u=Qi,t._g=Yi,t._d=Wi,t._p=Gi}function qi(t,e,i,r,n){var o,s=this,a=n.options;Te(r,"_uid")?(o=Object.create(r))._original=r:(o=r,r=r._original);var l=ve(a._compiled),h=!l;this.data=t,this.props=e,this.children=i,this.parent=r,this.listeners=t.on||Fd,this.injections=xi(a.inject,r),this.slots=function(){return s.$slots||Li(t.scopedSlots,s.$slots=Ci(i,r)),s.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return Li(t.scopedSlots,this.slots())}}),l&&(this.$options=a,this.$slots=this.slots(),this.$scopedSlots=Li(t.scopedSlots,this.$slots)),a._scopeId?this._c=function(t,e,i,n){var s=Zi(o,t,e,i,n,h);return s&&!Array.isArray(s)&&(s.fnScopeId=a._scopeId,s.fnContext=r),s}:this._c=function(t,e,i,r){return Zi(o,t,e,i,r,h)}}function $i(t,e,i,r,n){var o=Ge(t);return o.fnContext=i,o.fnOptions=r,"production"!==process.env.NODE_ENV&&((o.devtoolsMeta=o.devtoolsMeta||{}).renderContext=n),e.slot&&((o.data||(o.data={})).slot=e.slot),o}function Ki(t,e){for(var i in e)t[Qd(i)]=e[i]}function Ji(t,e,i,r,n){if(!me(t)){var o=i.$options._base;if(we(t)&&(t=o.extend(t)),"function"==typeof t){var s;if(me(t.cid)&&(s=t,void 0===(t=function(t,e){if(ve(t.error)&&Me(t.errorComp))return t.errorComp;if(Me(t.resolved))return t.resolved;var i=yf;i&&Me(t.owners)&&-1===t.owners.indexOf(i)&&t.owners.push(i);if(ve(t.loading)&&Me(t.loadingComp))return t.loadingComp;if(i&&!Me(t.owners)){var r=t.owners=[i],n=!0,o=null,s=null;i.$on("hook:destroyed",function(){return ze(r,i)});var a=function(t){for(var e=0,i=r.length;e<i;e++)r[e].$forceUpdate();t&&(r.length=0,null!==o&&(clearTimeout(o),o=null),null!==s&&(clearTimeout(s),s=null))},l=Re(function(i){t.resolved=tr(i,e),n?r.length=0:a(!0)}),h=Re(function(e){"production"!==process.env.NODE_ENV&&wg("Failed to resolve async component: "+String(t)+(e?"\nReason: "+e:"")),Me(t.errorComp)&&(t.error=!0,a(!0))}),u=t(l,h);return we(u)&&(Ie(u)?me(t.resolved)&&u.then(l,h):Ie(u.component)&&(u.component.then(l,h),Me(u.error)&&(t.errorComp=tr(u.error,e)),Me(u.loading)&&(t.loadingComp=tr(u.loading,e),0===u.delay?t.loading=!0:o=setTimeout(function(){o=null,me(t.resolved)&&me(t.error)&&(t.loading=!0,a(!1))},u.delay||200)),Me(u.timeout)&&(s=setTimeout(function(){s=null,me(t.resolved)&&h("production"!==process.env.NODE_ENV?"timeout ("+u.timeout+"ms)":null)},u.timeout)))),n=!1,t.loading?t.loadingComp:t.resolved}}(s,o))))return function(t,e,i,r,n){var o=Lg();return o.asyncFactory=t,o.asyncMeta={data:e,context:i,children:r,tag:n},o}(s,e,i,r,n);e=e||{},Mr(t),Me(e.model)&&function(t,e){var i=t.model&&t.model.prop||"value",r=t.model&&t.model.event||"input";(e.attrs||(e.attrs={}))[i]=e.model.value;var n=e.on||(e.on={}),o=n[r],s=e.model.callback;Me(o)?(Array.isArray(o)?-1===o.indexOf(s):o!==s)&&(n[r]=[s].concat(o)):n[r]=s}(t.options,e);var a=function(t,e,i){var r=e.options.props;if(!me(r)){var n={},o=t.attrs,s=t.props;if(Me(o)||Me(s))for(var a in r){var l=Hd(a);if("production"!==process.env.NODE_ENV){var h=a.toLowerCase();a!==h&&o&&Te(o,h)&&Ng('Prop "'+h+'" is passed to component '+Dg(i||e)+', but the declared prop name is "'+a+'". Note that HTML attributes are case-insensitive and camelCased props need to use their kebab-case equivalents when using in-DOM templates. You should probably use "'+l+'" instead of "'+a+'".')}Di(n,s,a,l,!0)||Di(n,o,a,l,!1)}return n}}(e,t,n);if(ve(t.options.functional))return function(t,e,i,r,n){var o=t.options,s={},a=o.props;if(Me(a))for(var l in a)s[l]=ai(l,a,e||Fd);else Me(i.attrs)&&Ki(s,i.attrs),Me(i.props)&&Ki(s,i.props);var h=new qi(i,s,n,r,t),u=o.render.call(null,h._c,h);if(u instanceof zg)return $i(u,i,h.parent,o,h);if(Array.isArray(u)){for(var c=ji(u)||[],p=new Array(c.length),d=0;d<c.length;d++)p[d]=$i(c[d],i,h.parent,o,h);return p}}(t,a,e,i,r);var l=e.on;if(e.on=e.nativeOn,ve(t.options.abstract)){var h=e.slot;e={},h&&(e.slot=h)}!function(t){for(var e=t.hook||(t.hook={}),i=0;i<df.length;i++){var r=df[i],n=e[r],o=pf[r];n===o||n&&n._merged||(e[r]=n?function(t,e){var i=function(i,r){t(i,r),e(i,r)};return i._merged=!0,i}(o,n):o)}}(e);var u=t.options.name||n;return new zg("vue-component-"+t.cid+(u?"-"+u:""),e,void 0,void 0,void 0,i,{Ctor:t,propsData:a,listeners:l,tag:n,children:r},s)}"production"!==process.env.NODE_ENV&&wg("Invalid Component definition: "+String(t),i)}}function Zi(t,e,i,r,n,o){return(Array.isArray(i)||be(i))&&(n=r,r=i,i=void 0),ve(o)&&(n=ff),function(t,e,i,r,n){if(Me(i)&&Me(i.__ob__))return"production"!==process.env.NODE_ENV&&wg("Avoid using observed data object as vnode data: "+JSON.stringify(i)+"\nAlways create fresh vnode data objects in each render!",t),Lg();Me(i)&&Me(i.is)&&(e=i.is);if(!e)return Lg();"production"!==process.env.NODE_ENV&&Me(i)&&Me(i.key)&&!be(i.key)&&wg("Avoid using non-primitive value as key, use string/number value instead.",t);Array.isArray(r)&&"function"==typeof r[0]&&((i=i||{}).scopedSlots={default:r[0]},r.length=0);n===ff?r=ji(r):n===gf&&(r=function(t){for(var e=0;e<t.length;e++)if(Array.isArray(t[e]))return Array.prototype.concat.apply([],t);return t}(r));var o,s;if("string"==typeof e){var a;s=t.$vnode&&t.$vnode.ns||tg.getTagNamespace(e),tg.isReservedTag(e)?("production"!==process.env.NODE_ENV&&Me(i)&&Me(i.nativeOn)&&"component"!==i.tag&&wg("The .native modifier for v-on is only valid on components but it was used on <"+e+">.",t),o=new zg(tg.parsePlatformTagName(e),i,r,void 0,void 0,t)):o=i&&i.pre||!Me(a=si(t.$options,"components",e))?new zg(e,i,r,void 0,void 0,t):Ji(a,i,t,r,e)}else o=Ji(e,i,t,r);return Array.isArray(o)?o:Me(o)?(Me(s)&&Xi(o,s),Me(i)&&function(t){we(t.style)&&vi(t.style);we(t.class)&&vi(t.class)}(i),o):Lg()}(t,e,i,r,n)}function Xi(t,e,i){if(t.ns=e,"foreignObject"===t.tag&&(e=void 0,i=!0),Me(t.children))for(var r=0,n=t.children.length;r<n;r++){var o=t.children[r];Me(o.tag)&&(me(o.ns)||ve(i)&&"svg"!==o.tag)&&Xi(o,e,i)}}function tr(t,e){return(t.__esModule||bg&&"Module"===t[Symbol.toStringTag])&&(t=t.default),we(t)?e.extend(t):t}function er(t){if(Array.isArray(t))for(var e=0;e<t.length;e++){var i=t[e];if(Me(i)&&(Me(i.componentOptions)||Ti(i)))return i}}function ir(t,e){cf.$on(t,e)}function rr(t,e){cf.$off(t,e)}function nr(t,e){var i=cf;return function r(){null!==e.apply(null,arguments)&&i.$off(t,r)}}function or(t,e,i){cf=t,Ni(e,i||{},ir,rr,nr,t),cf=void 0}function sr(t){var e=mf;return mf=t,function(){mf=e}}function ar(t){for(;t&&(t=t.$parent);)if(t._inactive)return!0;return!1}function lr(t,e){if(e){if(t._directInactive=!1,ar(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var i=0;i<t.$children.length;i++)lr(t.$children[i]);ur(t,"activated")}}function hr(t,e){if(!(e&&(t._directInactive=!0,ar(t))||t._inactive)){t._inactive=!0;for(var i=0;i<t.$children.length;i++)hr(t.$children[i]);ur(t,"deactivated")}}function ur(t,e){Ye();var i=t.$options[e],r=e+" hook";if(i)for(var n=0,o=i.length;n<o;n++)gi(i[n],t,null,t,r);t._hasHookEvent&&t.$emit("hook:"+e),Qe()}function cr(){Of=xf(),jf=!0;var t,e;for(bf.sort(function(t,e){return t.id-e.id}),If=0;If<bf.length;If++)if((t=bf[If]).before&&t.before(),e=t.id,Nf[e]=null,t.run(),"production"!==process.env.NODE_ENV&&null!=Nf[e]&&(Sf[e]=(Sf[e]||0)+1,Sf[e]>vf)){wg("You may have an infinite update loop "+(t.user?'in watcher with expression "'+t.expression+'"':"in a component render function."),t.vm);break}var i=wf.slice(),r=bf.slice();If=bf.length=wf.length=0,Nf={},"production"!==process.env.NODE_ENV&&(Sf={}),Df=jf=!1,function(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,lr(t[e],!0)}(i),function(t){var e=t.length;for(;e--;){var i=t[e],r=i.vm;r._watcher===i&&r._isMounted&&!r._isDestroyed&&ur(r,"updated")}}(r),vg&&tg.devtools&&vg.emit("flush")}function pr(t,e,i){Lf.get=function(){return this[e][i]},Lf.set=function(t){this[e][i]=t},Object.defineProperty(t,i,Lf)}function dr(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var i=t.$options.propsData||{},r=t._props={},n=t.$options._propKeys=[],o=!t.$parent;o||He(!1);var s=function(s){n.push(s);var a=ai(s,e,i,t);if("production"!==process.env.NODE_ENV){var l=Hd(s);(_d(l)||tg.isReservedAttr(l))&&wg('"'+l+'" is a reserved attribute and cannot be used as component prop.',t),$e(r,s,a,function(){o||Mf||wg("Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: \""+s+'"',t)})}else $e(r,s,a);s in t||pr(t,"_props",s)};for(var a in e)s(a);He(!0)}(t,e.props),e.methods&&function(t,e){var i=t.$options.props;for(var r in e)"production"!==process.env.NODE_ENV&&("function"!=typeof e[r]&&wg('Method "'+r+'" has type "'+typeof e[r]+'" in the component definition. Did you reference the function correctly?',t),i&&Te(i,r)&&wg('Method "'+r+'" has already been defined as a prop.',t),r in t&&Ue(r)&&wg('Method "'+r+'" conflicts with an existing Vue instance method. Avoid defining component methods that start with _ or $.')),t[r]="function"!=typeof e[r]?ke:qd(e[r],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;e=t._data="function"==typeof e?function(t,e){Ye();try{return t.call(e,e)}catch(t){return di(t,e,"data()"),{}}finally{Qe()}}(e,t):e||{},Se(e)||(e={},"production"!==process.env.NODE_ENV&&wg("data functions should return an object:\nhttps://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function",t));var i=Object.keys(e),r=t.$options.props,n=t.$options.methods,o=i.length;for(;o--;){var s=i[o];"production"!==process.env.NODE_ENV&&n&&Te(n,s)&&wg('Method "'+s+'" has already been defined as a data property.',t),r&&Te(r,s)?"production"!==process.env.NODE_ENV&&wg('The data property "'+s+'" is already declared as a prop. Use prop default value instead.',t):Ue(s)||pr(t,"_data",s)}qe(e,!0)}(t):qe(t._data={},!0),e.computed&&function(t,e){var i=t._computedWatchers=Object.create(null),r=Mg();for(var n in e){var o=e[n],s="function"==typeof o?o:o.get;"production"!==process.env.NODE_ENV&&null==s&&wg('Getter is missing for computed property "'+n+'".',t),r||(i[n]=new Tf(t,s||ke,ke,Af)),n in t?"production"!==process.env.NODE_ENV&&(n in t.$data?wg('The computed property "'+n+'" is already defined in data.',t):t.$options.props&&n in t.$options.props?wg('The computed property "'+n+'" is already defined as a prop.',t):t.$options.methods&&n in t.$options.methods&&wg('The computed property "'+n+'" is already defined as a method.',t)):gr(t,n,o)}}(t,e.computed),e.watch&&e.watch!==dg&&function(t,e){for(var i in e){var r=e[i];if(Array.isArray(r))for(var n=0;n<r.length;n++)mr(t,i,r[n]);else mr(t,i,r)}}(t,e.watch)}function gr(t,e,i){var r=!Mg();"function"==typeof i?(Lf.get=r?fr(e):yr(i),Lf.set=ke):(Lf.get=i.get?r&&!1!==i.cache?fr(e):yr(i.get):ke,Lf.set=i.set||ke),"production"!==process.env.NODE_ENV&&Lf.set===ke&&(Lf.set=function(){wg('Computed property "'+e+'" was assigned to but it has no setter.',this)}),Object.defineProperty(t,e,Lf)}function fr(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),xg.target&&e.depend(),e.value}}function yr(t){return function(){return t.call(this,this)}}function mr(t,e,i,r){return Se(i)&&(r=i,i=i.handler),"string"==typeof i&&(i=t[i]),t.$watch(e,i,r)}function Mr(t){var e=t.options;if(t.super){var i=Mr(t.super);if(i!==t.superOptions){t.superOptions=i;var r=function(t){var e,i=t.options,r=t.sealedOptions;for(var n in i)i[n]!==r[n]&&(e||(e={}),e[n]=i[n]);return e}(t);r&&Pe(t.extendOptions,r),(e=t.options=oi(i,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function vr(t){"production"===process.env.NODE_ENV||this instanceof vr||wg("Vue is a constructor and should be called with the `new` keyword"),this._init(t)}function br(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var i=this,r=i.cid,n=t._Ctor||(t._Ctor={});if(n[r])return n[r];var o=t.name||i.options.name;"production"!==process.env.NODE_ENV&&o&&ri(o);var s=function(t){this._init(t)};return s.prototype=Object.create(i.prototype),s.prototype.constructor=s,s.cid=e++,s.options=oi(i.options,t),s.super=i,s.options.props&&function(t){var e=t.options.props;for(var i in e)pr(t.prototype,"_props",i)}(s),s.options.computed&&function(t){var e=t.options.computed;for(var i in e)gr(t.prototype,i,e[i])}(s),s.extend=i.extend,s.mixin=i.mixin,s.use=i.use,Zd.forEach(function(t){s[t]=i[t]}),o&&(s.options.components[o]=s),s.superOptions=i.options,s.extendOptions=t,s.sealedOptions=Pe({},s.options),n[r]=s,s}}function wr(t){return t&&(t.Ctor.options.name||t.tag)}function Nr(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!De(t)&&t.test(e)}function Sr(t,e){var i=t.cache,r=t.keys,n=t._vnode;for(var o in i){var s=i[o];if(s){var a=s.name;a&&!e(a)&&Dr(i,o,r,n)}}}function Dr(t,e,i,r){var n=t[e];!n||r&&n.tag===r.tag||n.componentInstance.$destroy(),t[e]=null,ze(i,e)}function jr(t){for(var e=t.data,i=t,r=t;Me(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(e=Ir(r.data,e));for(;Me(i=i.parent);)i&&i.data&&(e=Ir(e,i.data));return function(t,e){if(Me(t)||Me(e))return Or(t,xr(e));return""}(e.staticClass,e.class)}function Ir(t,e){return{staticClass:Or(t.staticClass,e.staticClass),class:Me(t.class)?[t.class,e.class]:e.class}}function Or(t,e){return t?e?t+" "+e:t:e||""}function xr(t){return Array.isArray(t)?function(t){for(var e,i="",r=0,n=t.length;r<n;r++)Me(e=xr(t[r]))&&""!==e&&(i&&(i+=" "),i+=e);return i}(t):we(t)?function(t){var e="";for(var i in t)t[i]&&(e&&(e+=" "),e+=i);return e}(t):"string"==typeof t?t:""}function Cr(t,e){var i=t.data.ref;if(Me(i)){var r=t.context,n=t.componentInstance||t.elm,o=r.$refs;e?Array.isArray(o[i])?ze(o[i],n):o[i]===n&&(o[i]=void 0):t.data.refInFor?Array.isArray(o[i])?o[i].indexOf(n)<0&&o[i].push(n):o[i]=[n]:o[i]=n}}function zr(t,e){return t.key===e.key&&t.asyncFactory===e.asyncFactory&&(t.tag===e.tag&&t.isComment===e.isComment&&Me(t.data)===Me(e.data)&&function(t,e){if("input"!==t.tag)return!0;var i,r=Me(i=t.data)&&Me(i=i.attrs)&&i.type,n=Me(i=e.data)&&Me(i=i.attrs)&&i.type;return r===n||ey(r)&&ey(n)}(t,e)||ve(t.isAsyncPlaceholder)&&me(e.asyncFactory.error))}function Tr(t,e,i){var r,n,o={};for(r=e;r<=i;++r)Me(n=t[r].key)&&(o[n]=r);return o}function Lr(t,e){(t.data.directives||e.data.directives)&&function(t,e){var i,r,n,o=t===ny,s=e===ny,a=Ar(t.data.directives,t.context),l=Ar(e.data.directives,e.context),h=[],u=[];for(i in l)r=a[i],n=l[i],r?(n.oldValue=r.value,n.oldArg=r.arg,Pr(n,"update",e,t),n.def&&n.def.componentUpdated&&u.push(n)):(Pr(n,"bind",e,t),n.def&&n.def.inserted&&h.push(n));if(h.length){var c=function(){for(var i=0;i<h.length;i++)Pr(h[i],"inserted",e,t)};o?Si(e,"insert",c):c()}u.length&&Si(e,"postpatch",function(){for(var i=0;i<u.length;i++)Pr(u[i],"componentUpdated",e,t)});if(!o)for(i in a)l[i]||Pr(a[i],"unbind",t,t,s)}(t,e)}function Ar(t,e){var i=Object.create(null);if(!t)return i;var r,n;for(r=0;r<t.length;r++)(n=t[r]).modifiers||(n.modifiers=ay),i[function(t){return t.rawName||t.name+"."+Object.keys(t.modifiers||{}).join(".")}(n)]=n,n.def=si(e.$options,"directives",n.name,!0);return i}function Pr(t,e,i,r,n){var o=t.def&&t.def[e];if(o)try{o(i.elm,t,i,r,n)}catch(r){di(r,i.context,"directive "+t.name+" "+e+" hook")}}function Er(t,e){var i=e.componentOptions;if(!(Me(i)&&!1===i.Ctor.options.inheritAttrs||me(t.data.attrs)&&me(e.data.attrs))){var r,n,o=e.elm,s=t.data.attrs||{},a=e.data.attrs||{};Me(a.__ob__)&&(a=e.data.attrs=Pe({},a));for(r in a)n=a[r],s[r]!==n&&kr(o,r,n,e.data.pre);(lg||ug)&&a.value!==s.value&&kr(o,"value",a.value);for(r in s)me(a[r])&&(Hf(r)?o.removeAttributeNS(Gf,qf(r)):Vf(r)||o.removeAttribute(r))}}function kr(t,e,i,r){r||t.tagName.indexOf("-")>-1?Br(t,e,i):Wf(e)?$f(i)?t.removeAttribute(e):(i="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,i)):Vf(e)?t.setAttribute(e,Qf(e,i)):Hf(e)?$f(i)?t.removeAttributeNS(Gf,qf(e)):t.setAttributeNS(Gf,e,i):Br(t,e,i)}function Br(t,e,i){if($f(i))t.removeAttribute(e);else{if(lg&&!hg&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==i&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,i)}}function Fr(t,e){var i=e.elm,r=e.data,n=t.data;if(!(me(r.staticClass)&&me(r.class)&&(me(n)||me(n.staticClass)&&me(n.class)))){var o=jr(e),s=i._transitionClasses;Me(s)&&(o=Or(o,xr(s))),o!==i._prevClass&&(i.setAttribute("class",o),i._prevClass=o)}}function Rr(t,e,i){var r=Bf;return function n(){null!==e.apply(null,arguments)&&_r(t,n,i,r)}}function Ur(t,e,i,r){if(dy){var n=Of,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=n||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}Bf.addEventListener(t,e,gg?{capture:i,passive:r}:i)}function _r(t,e,i,r){(r||Bf).removeEventListener(t,e._wrapper||e,i)}function Vr(t,e){if(!me(t.data.on)||!me(e.data.on)){var i=e.data.on||{},r=t.data.on||{};Bf=e.elm,function(t){if(Me(t[cy])){var e=lg?"change":"input";t[e]=[].concat(t[cy],t[e]||[]),delete t[cy]}Me(t[py])&&(t.change=[].concat(t[py],t.change||[]),delete t[py])}(i),Ni(i,r,Ur,_r,Rr,e.context),Bf=void 0}}function Yr(t,e){if(!me(t.data.domProps)||!me(e.data.domProps)){var i,r,n=e.elm,o=t.data.domProps||{},s=e.data.domProps||{};Me(s.__ob__)&&(s=e.data.domProps=Pe({},s));for(i in o)i in s||(n[i]="");for(i in s){if(r=s[i],"textContent"===i||"innerHTML"===i){if(e.children&&(e.children.length=0),r===o[i])continue;1===n.childNodes.length&&n.removeChild(n.childNodes[0])}if("value"===i&&"PROGRESS"!==n.tagName){n._value=r;var a=me(r)?"":String(r);(function(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var i=!0;try{i=document.activeElement!==t}catch(t){}return i&&t.value!==e}(t,e)||function(t,e){var i=t.value,r=t._vModifiers;if(Me(r)){if(r.number)return xe(i)!==xe(e);if(r.trim)return i.trim()!==e.trim()}return i!==e}(t,e))})(n,a)&&(n.value=a)}else if("innerHTML"===i&&Zf(n.tagName)&&me(n.innerHTML)){(Ff=Ff||document.createElement("div")).innerHTML="<svg>"+r+"</svg>";for(var l=Ff.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;l.firstChild;)n.appendChild(l.firstChild)}else if(r!==o[i])try{n[i]=r}catch(t){}}}}function Qr(t){var e=Wr(t.style);return t.staticStyle?Pe(t.staticStyle,e):e}function Wr(t){return Array.isArray(t)?Ee(t):"string"==typeof t?yy(t):t}function Gr(t,e){var i=e.data,r=t.data;if(!(me(i.staticStyle)&&me(i.style)&&me(r.staticStyle)&&me(r.style))){var n,o,s=e.elm,a=r.staticStyle,l=r.normalizedStyle||r.style||{},h=a||l,u=Wr(e.data.style)||{};e.data.normalizedStyle=Me(u.__ob__)?Pe({},u):u;var c=function(t,e){var i,r={};if(e)for(var n=t;n.componentInstance;)(n=n.componentInstance._vnode)&&n.data&&(i=Qr(n.data))&&Pe(r,i);(i=Qr(t.data))&&Pe(r,i);for(var o=t;o=o.parent;)o.data&&(i=Qr(o.data))&&Pe(r,i);return r}(e,!0);for(o in h)me(c[o])&&vy(s,o,"");for(o in c)(n=c[o])!==h[o]&&vy(s,o,null==n?"":n)}}function Hr(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Sy).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var i=" "+(t.getAttribute("class")||"")+" ";i.indexOf(" "+e+" ")<0&&t.setAttribute("class",(i+e).trim())}}function qr(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Sy).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var i=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";i.indexOf(r)>=0;)i=i.replace(r," ");(i=i.trim())?t.setAttribute("class",i):t.removeAttribute("class")}}function $r(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&Pe(e,Dy(t.name||"v")),Pe(e,t),e}return"string"==typeof t?Dy(t):void 0}}function Kr(t){Ly(function(){Ly(t)})}function Jr(t,e){var i=t._transitionClasses||(t._transitionClasses=[]);i.indexOf(e)<0&&(i.push(e),Hr(t,e))}function Zr(t,e){t._transitionClasses&&ze(t._transitionClasses,e),qr(t,e)}function Xr(t,e,i){var r=tn(t,e),n=r.type,o=r.timeout,s=r.propCount;if(!n)return i();var a=n===Iy?Cy:Ty,l=0,h=function(){t.removeEventListener(a,u),i()},u=function(e){e.target===t&&++l>=s&&h()};setTimeout(function(){l<s&&h()},o+1),t.addEventListener(a,u)}function tn(t,e){var i,r=window.getComputedStyle(t),n=(r[xy+"Delay"]||"").split(", "),o=(r[xy+"Duration"]||"").split(", "),s=en(n,o),a=(r[zy+"Delay"]||"").split(", "),l=(r[zy+"Duration"]||"").split(", "),h=en(a,l),u=0,c=0;e===Iy?s>0&&(i=Iy,u=s,c=o.length):e===Oy?h>0&&(i=Oy,u=h,c=l.length):c=(i=(u=Math.max(s,h))>0?s>h?Iy:Oy:null)?i===Iy?o.length:l.length:0;return{type:i,timeout:u,propCount:c,hasTransform:i===Iy&&Ay.test(r[xy+"Property"])}}function en(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max.apply(null,e.map(function(e,i){return rn(e)+rn(t[i])}))}function rn(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function nn(t,e){var i=t.elm;Me(i._leaveCb)&&(i._leaveCb.cancelled=!0,i._leaveCb());var r=$r(t.data.transition);if(!me(r)&&!Me(i._enterCb)&&1===i.nodeType){for(var n=r.css,o=r.type,s=r.enterClass,a=r.enterToClass,l=r.enterActiveClass,h=r.appearClass,u=r.appearToClass,c=r.appearActiveClass,p=r.beforeEnter,d=r.enter,g=r.afterEnter,f=r.enterCancelled,y=r.beforeAppear,m=r.appear,M=r.afterAppear,v=r.appearCancelled,b=r.duration,w=mf,N=mf.$vnode;N&&N.parent;)w=N.context,N=N.parent;var S=!w._isMounted||!t.isRootInsert;if(!S||m||""===m){var D=S&&h?h:s,j=S&&c?c:l,I=S&&u?u:a,O=S?y||p:p,x=S&&"function"==typeof m?m:d,C=S?M||g:g,z=S?v||f:f,T=xe(we(b)?b.enter:b);"production"!==process.env.NODE_ENV&&null!=T&&sn(T,"enter",t);var L=!1!==n&&!hg,A=ln(x),P=i._enterCb=Re(function(){L&&(Zr(i,I),Zr(i,j)),P.cancelled?(L&&Zr(i,D),z&&z(i)):C&&C(i),i._enterCb=null});t.data.show||Si(t,"insert",function(){var e=i.parentNode,r=e&&e._pending&&e._pending[t.key];r&&r.tag===t.tag&&r.elm._leaveCb&&r.elm._leaveCb(),x&&x(i,P)}),O&&O(i),L&&(Jr(i,D),Jr(i,j),Kr(function(){Zr(i,D),P.cancelled||(Jr(i,I),A||(an(T)?setTimeout(P,T):Xr(i,o,P)))})),t.data.show&&(e&&e(),x&&x(i,P)),L||A||P()}}}function on(t,e){function i(){v.cancelled||(!t.data.show&&r.parentNode&&((r.parentNode._pending||(r.parentNode._pending={}))[t.key]=t),u&&u(r),y&&(Jr(r,a),Jr(r,h),Kr(function(){Zr(r,a),v.cancelled||(Jr(r,l),m||(an(M)?setTimeout(v,M):Xr(r,s,v)))})),c&&c(r,v),y||m||v())}var r=t.elm;Me(r._enterCb)&&(r._enterCb.cancelled=!0,r._enterCb());var n=$r(t.data.transition);if(me(n)||1!==r.nodeType)return e();if(!Me(r._leaveCb)){var o=n.css,s=n.type,a=n.leaveClass,l=n.leaveToClass,h=n.leaveActiveClass,u=n.beforeLeave,c=n.leave,p=n.afterLeave,d=n.leaveCancelled,g=n.delayLeave,f=n.duration,y=!1!==o&&!hg,m=ln(c),M=xe(we(f)?f.leave:f);"production"!==process.env.NODE_ENV&&Me(M)&&sn(M,"leave",t);var v=r._leaveCb=Re(function(){r.parentNode&&r.parentNode._pending&&(r.parentNode._pending[t.key]=null),y&&(Zr(r,l),Zr(r,h)),v.cancelled?(y&&Zr(r,a),d&&d(r)):(e(),p&&p(r)),r._leaveCb=null});g?g(i):i()}}function sn(t,e,i){"number"!=typeof t?wg("<transition> explicit "+e+" duration is not a valid number - got "+JSON.stringify(t)+".",i.context):isNaN(t)&&wg("<transition> explicit "+e+" duration is NaN - the duration expression might be incorrect.",i.context)}function an(t){return"number"==typeof t&&!isNaN(t)}function ln(t){if(me(t))return!1;var e=t.fns;return Me(e)?ln(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function hn(t,e){!0!==e.data.show&&nn(e)}function un(t,e,i){cn(t,e,i),(lg||ug)&&setTimeout(function(){cn(t,e,i)},0)}function cn(t,e,i){var r=e.value,n=t.multiple;if(!n||Array.isArray(r)){for(var o,s,a=0,l=t.options.length;a<l;a++)if(s=t.options[a],n)o=Fe(r,dn(s))>-1,s.selected!==o&&(s.selected=o);else if(Be(dn(s),r))return void(t.selectedIndex!==a&&(t.selectedIndex=a));n||(t.selectedIndex=-1)}else"production"!==process.env.NODE_ENV&&wg('<select multiple v-model="'+e.expression+'"> expects an Array value for its binding, but got '+Object.prototype.toString.call(r).slice(8,-1),i)}function pn(t,e){return e.every(function(e){return!Be(e,t)})}function dn(t){return"_value"in t?t._value:t.value}function gn(t){t.target.composing=!0}function fn(t){t.target.composing&&(t.target.composing=!1,yn(t.target,"input"))}function yn(t,e){var i=document.createEvent("HTMLEvents");i.initEvent(e,!0,!0),t.dispatchEvent(i)}function mn(t){return!t.componentInstance||t.data&&t.data.transition?t:mn(t.componentInstance._vnode)}function Mn(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Mn(er(e.children)):t}function vn(t){var e={},i=t.$options;for(var r in i.propsData)e[r]=t[r];var n=i._parentListeners;for(var o in n)e[Qd(o)]=n[o];return e}function bn(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function wn(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Nn(t){t.data.newPos=t.elm.getBoundingClientRect()}function Sn(t){var e=t.data.pos,i=t.data.newPos,r=e.left-i.left,n=e.top-i.top;if(r||n){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+n+"px)",o.transitionDuration="0s"}}function Dn(t,e,i){var r=e||(i&&i.vueInstance?i.vueInstance:null);if(r){t.appContext=r.$.appContext;var n={},o=function(t){t.$&&t.$.parent&&o(t.$.parent),t.provides&&Object.keys(t.provides).length>0&&(n=$y({},n,t.provides))};o(r),t.appContext.provides&&(t.appContext.provides=$y({},t.appContext.provides,n))}}function jn(t,e){if(t){var i=t.$slots,r=t.$scopedSlots,n=t.scopedSlots,o=t.children;if(r&&r[""+e])return r;if(i&&i.default)for(var s=i.default,a=0;a<s.length;a++){if(l=jn(In(s[parseInt(a.toString(),10)]),e))return l}else{if(n&&n[""+e])return n;if(o)for(a=0;a<o.length;a++){var l;if(l=jn(In(o[parseInt(a.toString(),10)]),e))return l}}}}function In(t){var e=t.componentOptions&&t.componentOptions.children?t.componentOptions:t.data||"e-markersettings"!==t.tag&&"e-markersetting"!==t.tag?t.data:t;return t.componentInstance?t.componentInstance:e}function On(t,e){if(t&&t[""+e])return t;if(t&&t.default){var i=t.default();i=i.flatMap(function(t){return Array.isArray(t.children)?t.children:t});for(var r=0;r<i.length;r++){var n=On(i[parseInt(r.toString(),10)].children,e);if(n)return n}}}window.process={env:{NODE_ENV:"production"}};var xn,Cn="ej2_instances",zn=0,Tn=!1,Ln="undefined"!=typeof window?window:{},An={latn:{_digits:"0123456789",_type:"numeric"}},Pn={decimal:".",group:",",percentSign:"%",plusSign:"+",minusSign:"-",infinity:"∞",nan:"NaN",exponential:"E"},En=[0,1,2,3,4,5,6,7,8,9],kn=function(){function t(){}return t.getMainObject=function(t,e){return r(y()?e:"main."+e,t)},t.getNumberingSystem=function(t){return r("supplemental.numberingSystems",t)||this.numberingSystems},t.reverseObject=function(t,e){for(var i={},r=0,n=e||Object.keys(t);r<n.length;r++){var o=n[r];i.hasOwnProperty(t[o])||(i[t[o]]=o)}return i},t.getSymbolRegex=function(t){var e=t.map(function(t){return t.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}).join("|");return new RegExp(e,"g")},t.getSymbolMatch=function(t){for(var e={},i=0,r=Object.keys(Pn);i<r.length;i++){var n=r[i];e[t[n]]=Pn[n]}return e},t.constructRegex=function(t){for(var e=t.length,i="",r=0;r<e;r++)i+=r!==e-1?t[parseInt(r.toString(),10)]+"|":t[parseInt(r.toString(),10)];return i},t.convertValueParts=function(t,e,i){return t.replace(e,function(t){return i[t]})},t.getDefaultNumberingSystem=function(t){var e={};return e.obj=r("numbers",t),e.nSystem=r("defaultNumberingSystem",e.obj),e},t.getCurrentNumericOptions=function(t,e,i,n){var o={},s=this.getDefaultNumberingSystem(t);if(!u(s.nSystem)||n){var a=n?r("obj.mapperDigits",s):r(s.nSystem+"._digits",e);if(!u(a)){o.numericPair=this.reverseObject(a,En);var l=RegExp;o.numberParseRegex=new l(this.constructRegex(a),"g"),o.numericRegex="["+a[0]+"-"+a[9]+"]",i&&(o.numericRegex=a[0]+"-"+a[9],o.symbolNumberSystem=r(n?"numberSymbols":"symbols-numberSystem-"+s.nSystem,s.obj),o.symbolMatch=this.getSymbolMatch(o.symbolNumberSystem),o.numberSystem=s.nSystem)}}return o},t.getNumberMapper=function(t,e,i){var n={mapper:{}},o=this.getDefaultNumberingSystem(t);if(!u(o.nSystem)){n.numberSystem=o.nSystem,n.numberSymbols=r("symbols-numberSystem-"+o.nSystem,o.obj),n.timeSeparator=r("timeSeparator",n.numberSymbols);var s=r(o.nSystem+"._digits",e);if(!u(s))for(var a=0,l=En;a<l.length;a++){var h=l[a];n.mapper[h]=s[h]}}return n},t.nPair="numericPair",t.nRegex="numericRegex",t.numberingSystems=An,t}(),Bn={DJF:"Fdj",ERN:"Nfk",ETB:"Br",NAD:"$",ZAR:"R",XAF:"FCFA",GHS:"GH₵",XDR:"XDR",AED:"د.إ.",BHD:"د.ب.",DZD:"د.ج.",EGP:"ج.م.",ILS:"₪",IQD:"د.ع.",JOD:"د.ا.",KMF:"CF",KWD:"د.ك.",LBP:"ل.ل.",LYD:"د.ل.",MAD:"د.م.",MRU:"أ.م.",OMR:"ر.ع.",QAR:"ر.ق.",SAR:"ر.س.",SDG:"ج.س.",SOS:"S",SSP:"£",SYP:"ل.س.",TND:"د.ت.",YER:"ر.ي.",CLP:"$",INR:"₹",TZS:"TSh",EUR:"€",AZN:"₼",RUB:"₽",BYN:"Br",ZMW:"K",BGN:"лв.",NGN:"₦",XOF:"CFA",BDT:"৳",CNY:"¥",BAM:"КМ",UGX:"USh",USD:"$",CZK:"Kč",GBP:"£",DKK:"kr.",KES:"Ksh",CHF:"CHF",MVR:"ރ.",BTN:"Nu.",XCD:"EC$",AUD:"$",BBD:"$",BIF:"FBu",BMD:"$",BSD:"$",BWP:"P",BZD:"$",CAD:"$",NZD:"$",FJD:"$",FKP:"£",GIP:"£",GMD:"D",GYD:"$",HKD:"$",IDR:"Rp",JMD:"$",KYD:"$",LRD:"$",MGA:"Ar",MOP:"MOP$",MUR:"Rs",MWK:"MK",MYR:"RM",PGK:"K",PHP:"₱",PKR:"Rs",RWF:"RF",SBD:"$",SCR:"SR",SEK:"kr",SGD:"$",SHP:"£",SLL:"Le",ANG:"NAf.",SZL:"E",TOP:"T$",TTD:"$",VUV:"VT",WST:"WS$",ARS:"$",BOB:"Bs",BRL:"R$",COP:"$",CRC:"₡",CUP:"$",DOP:"$",GTQ:"Q",HNL:"L",MXN:"$",NIO:"C$",PAB:"B/.",PEN:"S/",PYG:"₲",UYU:"$",VES:"Bs.S",IRR:"ريال",GNF:"FG",CDF:"FC",HTG:"G",XPF:"FCFP",HRK:"kn",HUF:"Ft",AMD:"֏",ISK:"kr",JPY:"¥",GEL:"₾",CVE:"",KZT:"₸",KHR:"៛",KPW:"₩",KRW:"₩",KGS:"сом",AOA:"Kz",LAK:"₭",MZN:"MTn",MKD:"ден",MNT:"₮",BND:"$",MMK:"K",NOK:"kr",NPR:"रु",AWG:"Afl.",SRD:"$",PLN:"zł",AFN:"؋",STN:"Db",MDL:"L",RON:"lei",UAH:"₴",LKR:"රු.",ALL:"Lekë",RSD:"дин.",TJS:"смн",THB:"฿",TMT:"m.",TRY:"₺",UZS:"сўм",VND:"₫",TWD:"NT$"};!function(t){var e=[28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990];t.getHijriDate=function(t){var i=t.getDate(),r=t.getMonth(),n=t.getFullYear(),o=r+1,s=n;o<3&&(s-=1,o+=12);var a=Math.floor(s/100),l=a-Math.floor(a/4)-2,h=Math.floor(365.25*(s+4716))+Math.floor(30.6001*(o+1))+i-l-1524,u=h+(l=(a=Math.floor((h-1867216.25)/36524.25))-Math.floor(a/4)+1)+1524,c=Math.floor((u-122.1)/365.25),p=Math.floor(365.25*c),d=Math.floor((u-p)/30.6001);i=u-p-Math.floor(30.6001*d),(r=Math.floor((u-p)/20.6001))>13&&(c+=1,r-=12),r-=1,n=c-4716;var g=h-24e5,f=h-1948084,y=Math.floor(f/10631);f-=10631*y;var m=Math.floor((f-.1335)/(10631/30)),M=30*y+m;f-=Math.floor(m*(10631/30)+.1335);var v=Math.floor((f+28.5001)/29.5);13===v&&(v=12);for(var b=f-Math.floor(29.5001*v-29),w=0;w<e.length&&!(e[parseInt(w.toString(),10)]>g);w++);var N=w+16260,S=Math.floor((N-1)/12),D=S+1,j=N-12*S,I=g-e[w-1]+1;return(I+"").length>2&&(I=b,j=v,D=M),{year:D,month:j,date:I}},t.toGregorian=function(t,i,r){var n=r+e[12*(t-1)+1+(i-1)-16260-1]-1+24e5,o=Math.floor(n+.5),s=Math.floor((o-1867216.25)/36524.25),a=1524+(s=o+1+s-Math.floor(s/4)),l=Math.floor((a-122.1)/365.25),h=Math.floor(365.25*l),u=Math.floor((a-h)/30.6001),c=a-h-Math.floor(30.6001*u),p=u-(u>13.5?13:1),d=l-(p>2.5?4716:4715);return d<=0&&p--,new Date(d+"/"+p+"/"+c)}}(xn||(xn={}));var Fn,Rn=/\/MMMMM|MMMM|MMM|a|LLLL|LLL|EEEEE|EEEE|E|K|cccc|ccc|WW|W|G+|z+/gi,Un=["sun","mon","tue","wed","thu","fri","sat"],_n={m:"getMinutes",h:"getHours",H:"getHours",s:"getSeconds",d:"getDate",f:"getMilliseconds"},Vn={M:"month",d:"day",E:"weekday",c:"weekday",y:"year",m:"minute",h:"hour",H:"hour",s:"second",L:"month",a:"designator",z:"timeZone",Z:"timeZone",G:"era",f:"milliseconds"},Yn=function(){function t(){}return t.dateFormat=function(t,e,i){var n=this,o=Fn.getDependables(i,t,e.calendar),s=r("parserObject.numbers",o),a=o.dateObject,h={isIslamic:Fn.islamicRegex.test(e.calendar)};y()&&e.isServerRendered&&(e=Fn.compareBlazorDateFormats(e,t));var c=e.format||Fn.getResultantPattern(e.skeleton,o.dateObject,e.type,!1,y()?t:"");if(h.dateSeperator=y()?r("dateSeperator",a):Fn.getDateSeparator(o.dateObject),u(c))g("Format options or type given must be invalid");else{c=Fn.ConvertDateToWeekFormat(c),y()&&(c=c.replace(/tt/,"a")),h.pattern=c,h.numMapper=y()?l({},s):kn.getNumberMapper(o.parserObject,kn.getNumberingSystem(i));for(var p=0,d=c.match(Rn)||[];p<d.length;p++){var f=d[p],m=f.length,M=f[0];switch("K"===M&&(M="h"),M){case"E":case"c":y()?h.weekday=r("days."+Fn.monthIndex[m],a):h.weekday=o.dateObject[Fn.days]["stand-alone"][Fn.monthIndex[m]];break;case"M":case"L":y()?h.month=r("months."+Fn.monthIndex[m],a):h.month=o.dateObject[Fn.month]["stand-alone"][Fn.monthIndex[m]];break;case"a":h.designator=y()?r("dayPeriods",a):r("dayPeriods.format.wide",a);break;case"G":var v=m<=3?"eraAbbr":4===m?"eraNames":"eraNarrow";h.era=y()?r("eras",a):r("eras."+v,o.dateObject);break;case"z":h.timeZone=r("dates.timeZoneNames",o.parserObject)}}}return function(t){return isNaN(t.getDate())?null:n.intDateFormatter(t,h)}},t.intDateFormatter=function(t,e){for(var i="",r=e.pattern.match(Fn.dateParseRegex),n=this.getCurrentDateValue(t,e.isIslamic),o=0,s=r;o<s.length;o++){var a=s[o],l=a.length,u=a[0];"K"===u&&(u="h");var c=void 0,p="",d=void 0,g=void 0,f="";switch(u){case"M":case"L":c=n.month,l>2?i+=e.month[c]:d=!0;break;case"E":case"c":i+=e.weekday[Un[t.getDay()]];break;case"H":case"h":case"m":case"s":case"d":case"f":if(d=!0,"d"===u)c=n.date;else if("f"===u){d=!1,g=!0;var y=(p=(p=t[_n[u]]().toString()).substring(0,l)).length;if(l!==y){if(l>3)continue;for(var m=0;m<l-y;m++)p="0"+p.toString()}f+=p}else c=t[_n[u]]();"h"===u&&(c=c%12||12);break;case"y":g=!0,f+=n.year,2===l&&(f=f.substr(f.length-2));break;case"a":var M=t.getHours()<12?"am":"pm";i+=e.designator[M];break;case"G":var v=t.getFullYear()<0?0:1,b=e.era[v];h(b)&&(b=e.era[v?0:1]),i+=b||"";break;case"'":i+="''"===a?"'":a.replace(/'/g,"");break;case"z":var w=t.getTimezoneOffset(),N=l<4?"+H;-H":e.timeZone.hourFormat;N=N.replace(/:/g,e.numMapper.timeSeparator),0===w?i+=e.timeZone.gmtZeroFormat:(g=!0,f=this.getTimeZoneValue(w,N)),f=e.timeZone.gmtFormat.replace(/\{0\}/,f);break;case":":i+=e.numMapper.numberSymbols.timeSeparator;break;case"/":i+=e.dateSeperator;break;case"W":d=!0,c=Fn.getWeekOfYear(t);break;default:i+=a}d&&(g=!0,f=this.checkTwodigitNumber(c,l)),g&&(i+=kn.convertValueParts(f,Fn.latnParseRegex,e.numMapper.mapper))}return i},t.getCurrentDateValue=function(t,e){return e?xn.getHijriDate(t):{year:t.getFullYear(),month:t.getMonth()+1,date:t.getDate()}},t.checkTwodigitNumber=function(t,e){var i=t+"";return 2===e&&2!==i.length?"0"+i:i},t.getTimeZoneValue=function(t,e){var i=this,r=e.split(";")[t>0?1:0],n=Math.abs(t);return r=r.replace(/HH?|mm/g,function(t){var e=t.length,r=-1!==t.indexOf("H");return i.checkTwodigitNumber(Math.floor(r?n/60:n%60),e)})},t}(),Qn={ms:"minimumSignificantDigits",ls:"maximumSignificantDigits",mf:"minimumFractionDigits",lf:"maximumFractionDigits"},Wn=["infinity","nan","group","decimal","exponential"],Gn=function(){function t(){}return t.numberFormatter=function(t,e,i){var n,o=this,s=l({},e),a={},h={},c=Fn.getDependables(i,t,"",!0),p=c.numericObject;h.numberMapper=y()?l({},p):kn.getNumberMapper(c.parserObject,kn.getNumberingSystem(i),!0),h.currencySymbol=y()?r("currencySymbol",p):Fn.getCurrencySymbol(c.numericObject,s.currency||oo,e.altSymbol),h.percentSymbol=y()?r("numberSymbols.percentSign",p):h.numberMapper.numberSymbols.percentSign,h.minusSymbol=y()?r("numberSymbols.minusSign",p):h.numberMapper.numberSymbols.minusSign;var d=h.numberMapper.numberSymbols;if(e.format&&!Fn.formatRegex.test(e.format))a=Fn.customFormat(e.format,h,c.numericObject);else{if(l(s,Fn.getProperNumericSkeleton(e.format||"N")),s.isCurrency="currency"===s.type,s.isPercent="percent"===s.type,y()||(n=Fn.getSymbolPattern(s.type,h.numberMapper.numberSystem,c.numericObject,s.isAccount)),s.groupOne=this.checkValueRange(s.maximumSignificantDigits,s.minimumSignificantDigits,!0),this.checkValueRange(s.maximumFractionDigits,s.minimumFractionDigits,!1,!0),u(s.fractionDigits)||(s.minimumFractionDigits=s.maximumFractionDigits=s.fractionDigits),u(s.useGrouping)&&(s.useGrouping=!0),s.isCurrency&&!y()&&(n=n.replace(/\u00A4/g,Fn.defaultCurrency)),y())a.nData=l({},{},r(s.type+"nData",p)),a.pData=l({},{},r(s.type+"pData",p)),"currency"===s.type&&e.currency&&Fn.replaceBlazorCurrency([a.pData,a.nData],h.currencySymbol,e.currency);else{var g=n.split(";");a.nData=Fn.getFormatData(g[1]||"-"+g[0],!0,h.currencySymbol),a.pData=Fn.getFormatData(g[0],!1,h.currencySymbol),s.useGrouping&&(s.groupSeparator=d[Wn[2]],s.groupData=this.getGroupingDetails(g[0]))}if(u(s.minimumFractionDigits)&&(s.minimumFractionDigits=a.nData.minimumFraction),u(s.maximumFractionDigits)){var f=a.nData.maximumFraction;s.maximumFractionDigits=u(f)&&s.isPercent?0:f}var m=s.minimumFractionDigits,M=s.maximumFractionDigits;u(m)||u(M)||m>M&&(s.maximumFractionDigits=m)}return l(a.nData,s),l(a.pData,s),function(t){return isNaN(t)?d[Wn[1]]:isFinite(t)?o.intNumberFormatter(t,a,h,e):d[Wn[0]]}},t.getGroupingDetails=function(t){var e={},i=t.match(Fn.negativeDataRegex);if(i&&i[4]){var r=i[4],n=r.lastIndexOf(",");if(-1!==n){var o=r.split(".")[0];e.primary=o.length-n-1;var s=r.lastIndexOf(",",n-1);-1!==s&&(e.secondary=n-1-s)}}return e},t.checkValueRange=function(t,e,i,r){var n=r?"f":"s",o=0,s=Qn["l"+n],a=Qn["m"+n];if(u(t)||(this.checkRange(t,s,r),o++),u(e)||(this.checkRange(e,a,r),o++),2===o){if(!(t<e))return!0;g(a+"specified must be less than the"+s)}else i&&1===o&&g("Both"+a+"and"+a+"must be present");return!1},t.checkRange=function(t,e,i){var r=i?[0,20]:[1,21];(t<r[0]||t>r[1])&&g(e+"value must be within the range"+r[0]+"to"+r[1])},t.intNumberFormatter=function(t,e,i,r){var n;if(!u(e.nData.type)){t<0?(t*=-1,n=e.nData):n=0===t?e.zeroData||e.pData:e.pData;var o="";if(n.isPercent&&(t*=100),n.groupOne)o=this.processSignificantDigits(t,n.minimumSignificantDigits,n.maximumSignificantDigits);else if(o=this.processFraction(t,n.minimumFractionDigits,n.maximumFractionDigits,r),n.minimumIntegerDigits&&(o=this.processMinimumIntegers(o,n.minimumIntegerDigits)),i.isCustomFormat&&n.minimumFractionDigits<n.maximumFractionDigits&&/\d+\.\d+/.test(o)){for(var s=o.split("."),a=s[1],l=a.length-1;l>=0&&("0"===a[""+l]&&l>=n.minimumFractionDigits);l--)a=a.slice(0,l);o=s[0]+"."+a}return"scientific"===n.type&&(o=(o=t.toExponential(n.maximumFractionDigits)).replace("e",i.numberMapper.numberSymbols[Wn[4]])),o=o.replace(".",i.numberMapper.numberSymbols[Wn[3]]),o="#,###,,;(#,###,,)"===n.format?this.customPivotFormat(parseInt(o,10)):o,n.useGrouping&&(o=this.groupNumbers(o,n.groupData.primary,n.groupSeparator||",",i.numberMapper.numberSymbols[Wn[3]]||".",n.groupData.secondary)),o=kn.convertValueParts(o,Fn.latnParseRegex,i.numberMapper.mapper),"N/A"===n.nlead?n.nlead:"0"===o&&r&&"0"===r.format?o+n.nend:n.nlead+o+n.nend}},t.processSignificantDigits=function(t,e,i){var r=t+"";return r.length<e?t.toPrecision(e):(r=t.toPrecision(i),+r+"")},t.groupNumbers=function(t,e,i,r,n){for(var o=!h(n)&&0!==n,s=t.split(r),a=s[0],l=a.length,u="";l>e;)u=a.slice(l-e,l)+(u.length?i+u:""),l-=e,o&&(e=n,o=!1);return s[0]=a.slice(0,l)+(u.length?i:"")+u,s.join(r)},t.processFraction=function(t,e,i,r){var n=(t+"").split(".")[1],o=n?n.length:0;if(e&&o<e){var s="";if(0!==o){s+=t;for(var a=0;a<e-o;a++)s+="0";return s}return s=t.toFixed(e),t.toFixed(e)}if(!h(i)&&(o>i||0===i))return t.toFixed(i);var l=t+"";return"0"===l[0]&&r&&"###.00"===r.format&&(l=l.slice(1)),l},t.processMinimumIntegers=function(t,e){var i=t.split("."),r=i[0],n=r.length;if(n<e){for(var o=0;o<e-n;o++)r="0"+r;i[0]=r}return i.join(".")},t.customPivotFormat=function(t){if(t>=5e5){var e=(t/=1e6).toString().split("."),i=(e[0],e[1]);return i&&+i.substring(0,1)>=5?Math.ceil(t).toString():Math.floor(t).toString()}return""},t}(),Hn=/^[0-9]*$/,qn={minute:"setMinutes",hour:"setHours",second:"setSeconds",day:"setDate",month:"setMonth",milliseconds:"setMilliseconds"},$n=function(){function t(){}return t.dateParser=function(t,e,i){var n=this,o=Fn.getDependables(i,t,e.calendar),s=kn.getCurrentNumericOptions(o.parserObject,kn.getNumberingSystem(i),!1,y()),a={};y()&&e.isServerRendered&&(e=Fn.compareBlazorDateFormats(e,t));var l,c=e.format||Fn.getResultantPattern(e.skeleton,o.dateObject,e.type,!1,y()?t:""),p="";if(u(c))g("Format options or type given must be invalid");else{c=Fn.ConvertDateToWeekFormat(c),a={isIslamic:Fn.islamicRegex.test(e.calendar),pattern:c,evalposition:{},culture:t};for(var d=c.match(Fn.dateParseRegex)||[],f=d.length,m=0,M=0,v=!1,b=s.numericRegex,w=y()?o.parserObject.numbers:kn.getNumberMapper(o.parserObject,kn.getNumberingSystem(i)),N=0;N<f;N++){var S=d[parseInt(N.toString(),10)],D=S.length,j="K"===S[0]?"h":S[0],I=void 0,O=void 0,x=Vn[j],C=2===D?"":"?";switch(v&&(m=M,v=!1),j){case"E":case"c":var z=void 0;z=y()?r("days."+Fn.monthIndex[D],o.dateObject):o.dateObject[Fn.days]["stand-alone"][Fn.monthIndex[D]];var T=kn.reverseObject(z);p+="("+Object.keys(T).join("|")+")";break;case"M":case"L":case"d":case"m":case"s":case"h":case"H":case"f":if(O=!0,("M"===j||"L"===j)&&D>2){var L=void 0;L=y()?r("months."+Fn.monthIndex[D],o.dateObject):o.dateObject.months["stand-alone"][Fn.monthIndex[D]],a[x]=kn.reverseObject(L),p+="("+Object.keys(a[x]).join("|")+")"}else if("f"===j){if(D>3)continue;I=!0,p+="("+b+b+"?"+b+"?)"}else I=!0,p+="("+b+b+C+")";"h"===j&&(a.hour12=!0);break;case"W":p+="("+b+(1===D?"?":"")+b+")";break;case"y":O=I=!0,p+=2===D?"("+b+b+")":"("+b+"{"+D+",})";break;case"a":O=!0;var A=y()?r("dayPeriods",o.dateObject):r("dayPeriods.format.wide",o.dateObject);a[x]=kn.reverseObject(A),p+="("+Object.keys(a[x]).join("|")+")";break;case"G":O=!0;var P=D<=3?"eraAbbr":4===D?"eraNames":"eraNarrow";a[x]=kn.reverseObject(y()?r("eras",o.dateObject):r("eras."+P,o.dateObject)),p+="("+Object.keys(a[x]).join("|")+"?)";break;case"z":O=0!==(new Date).getTimezoneOffset(),a[x]=r("dates.timeZoneNames",o.parserObject);var E=a[x],k=(l=D<4)?"+H;-H":E.hourFormat;k=k.replace(/:/g,w.timeSeparator),p+="("+this.parseTimeZoneRegx(k,E,b)+")?",v=!0,M=l?6:12;break;case"'":p+="("+S.replace(/'/g,"")+")?";break;default:p+="([\\D])"}if(O&&(a.evalposition[""+x]={isNumber:I,pos:N+1+m,hourOnly:l}),N===f-1&&!h(p)){var B=RegExp;a.parserRegex=new B("^"+p+"$","i")}}}return function(t){var e=n.internalDateParse(t,a,s);if(h(e)||!Object.keys(e).length)return null;if(a.isIslamic){var i={},r=e.year,o=e.day,l=e.month,u=r?r+"":"",c=2===u.length;r&&l&&o&&!c||(i=xn.getHijriDate(new Date)),c&&(r=parseInt((i.year+"").slice(0,2)+u,10));var p=xn.toGregorian(r||i.year,l||i.month,o||i.date);e.year=p.getFullYear(),e.month=p.getMonth()+1,e.day=p.getDate()}return n.getDateObject(e)}},t.getDateObject=function(t,e){var i=e||new Date;i.setMilliseconds(0);var r=t.year,n=t.designator,o=t.timeZone;if(!u(r)){if((r+"").length<=2){r+=100*Math.floor(i.getFullYear()/100)}i.setFullYear(r)}for(var s=0,a=["hour","minute","second","milliseconds","month","day"];s<a.length;s++){var l=a[s],h=t[l];if(u(h)&&"day"===l&&i.setDate(1),!u(h))if("month"===l){if((h-=1)<0||h>11)return new Date("invalid");var c=i.getDate();i.setDate(1),i[qn[l]](h);var p=new Date(i.getFullYear(),h+1,0).getDate();i.setDate(c<p?c:p)}else{if("day"===l){var d=new Date(i.getFullYear(),i.getMonth()+1,0).getDate();if(h<1||h>d)return null}i[qn[l]](h)}}if(!u(n)){var g=i.getHours();"pm"===n?i.setHours(g+(12===g?0:12)):12===g&&i.setHours(0)}if(!u(o)){var f=o-i.getTimezoneOffset();0!==f&&i.setMinutes(i.getMinutes()+f)}return i},t.internalDateParse=function(t,e,i){var r=t.match(e.parserRegex),n={hour:0,minute:0,second:0};if(h(r))return null;for(var o=0,s=Object.keys(e.evalposition);o<s.length;o++){var a=s[o],l=e.evalposition[""+a],c=r[l.pos];if(l.isNumber)n[a]=this.internalNumberParser(c,i);else if("timeZone"!==a||u(c)){c="month"!==a||e.isIslamic||"en"!==e.culture&&"en-GB"!==e.culture&&"en-US"!==e.culture?c:c[0].toUpperCase()+c.substring(1).toLowerCase(),c="month"!==a&&"designator"===a&&e.culture&&-1!==e.culture.indexOf("en-")&&-1===["en-US","en-MH","en-MP"].indexOf(e.culture)?c.toLowerCase():c,n[a]=e[a][c]}else{var p=l.pos,d=void 0,g=r[p+1],f=!u(g);l.hourOnly?d=60*this.getZoneValue(f,g,r[p+4],i):(d=60*this.getZoneValue(f,g,r[p+7],i),d+=this.getZoneValue(f,r[p+4],r[p+10],i)),h(d)||(n[""+a]=d)}}return e.hour12&&(n.hour12=!0),n},t.internalNumberParser=function(t,e){return t=kn.convertValueParts(t,e.numberParseRegex,e.numericPair),Hn.test(t)?+t:null},t.parseTimeZoneRegx=function(t,e,i){var r,n,o=e.gmtFormat,s="("+i+")("+i+")";return r=t.replace("+","\\+"),r=-1!==t.indexOf("HH")?r.replace(/HH|mm/g,"("+s+")"):r.replace(/H|m/g,"("+s+"?)"),n=r.split(";").map(function(t){return o.replace("{0}",t)}),r=n.join("|")+"|"+e.gmtZeroFormat},t.getZoneValue=function(t,e,i,r){var n=t?e:i;if(!n)return 0;var o=this.internalNumberParser(n,r);return t?-o:o},t}(),Kn=new RegExp("^([^0-9]*)(([0-9,]*[0-9]+)(.[0-9]+)?)([Ee][+-]?[0-9]+)?([^0-9]*)$"),Jn=/,/g,Zn=["minusSign","infinity"],Xn=function(){function t(){}return t.numberParser=function(t,e,i){var n,o=this,s=Fn.getDependables(i,t,"",!0),a={custom:!0};Fn.formatRegex.test(e.format)||!e.format?(l(a,Fn.getProperNumericSkeleton(e.format||"N")),a.custom=!1,a.fractionDigits||e.maximumFractionDigits&&(a.maximumFractionDigits=e.maximumFractionDigits)):l(a,Fn.customFormat(e.format,null,null));var h=r("numbers",s.parserObject);n=kn.getCurrentNumericOptions(s.parserObject,kn.getNumberingSystem(i),!0,y()),a.symbolRegex=kn.getSymbolRegex(Object.keys(n.symbolMatch)),a.infinity=n.symbolNumberSystem[Zn[1]];var u;if(y())a.nData=l({},{},r(a.type+"nData",h)),a.pData=l({},{},r(a.type+"pData",h)),"currency"===a.type&&e.currency&&Fn.replaceBlazorCurrency([a.pData,a.nData],r("currencySymbol",h),e.currency);else if(u=Fn.getSymbolPattern(a.type,n.numberSystem,s.numericObject,a.isAccount)){var c=(u=u.replace(/\u00A4/g,Fn.defaultCurrency)).split(";");a.nData=Fn.getFormatData(c[1]||"-"+c[0],!0,""),a.pData=Fn.getFormatData(c[0],!0,"")}return function(t){return o.getParsedNumber(t,a,n)}},t.getParsedNumber=function(t,e,i){var r,n,o,s,a,l;if(-1!==t.indexOf(e.infinity))return 1/0;t=kn.convertValueParts(t,e.symbolRegex,i.symbolMatch),0===(t=-1!==(t=kn.convertValueParts(t,i.numberParseRegex,i.numericPair)).indexOf("-")?t.replace("-.","-0."):t).indexOf(".")&&(t="0"+t);var u=t.match(Kn);if(h(u))return NaN;s=u[1],o=u[2];var c=u[5];return a=u[6],r=e.custom?s===e.nData.nlead&&a===e.nData.nend:-1!==s.indexOf(e.nData.nlead)&&-1!==a.indexOf(e.nData.nend),n=r?e.nData.isPercent:e.pData.isPercent,o=o.replace(Jn,""),c&&(o+=c),l=+o,("percent"===e.type||n)&&(l/=100),(e.custom||e.fractionDigits)&&(l=parseFloat(l.toFixed(e.custom?r?e.nData.maximumFractionDigits:e.pData.maximumFractionDigits:e.fractionDigits))),e.maximumFractionDigits&&(l=this.convertMaxFracDigits(o,e,l,r)),r&&(l*=-1),l},t.convertMaxFracDigits=function(t,e,i,r){var n=t.split(".");return n[1]&&n[1].length>e.maximumFractionDigits&&(i=+i.toFixed(e.custom?r?e.nData.maximumFractionDigits:e.pData.maximumFractionDigits:e.maximumFractionDigits)),i},t}(),to=function(){function t(t){this.ranArray=[],this.boundedEvents={},h(t)||(this.context=t)}return t.prototype.on=function(t,e,i,r){if(!h(e)){var n=i||this.context;this.notExist(t)?this.boundedEvents[""+t]=[{handler:e,context:n,id:r}]:h(r)?this.isHandlerPresent(this.boundedEvents[""+t],e)||this.boundedEvents[""+t].push({handler:e,context:n}):-1===this.ranArray.indexOf(r)&&(this.ranArray.push(r),this.boundedEvents[""+t].push({handler:e,context:n,id:r}))}},t.prototype.off=function(t,e,i){if(!this.notExist(t)){var n=r(t,this.boundedEvents);if(e){for(var o=0;o<n.length;o++)if(i){if(n[parseInt(o.toString(),10)].id===i){n.splice(o,1);var s=this.ranArray.indexOf(i);-1!==s&&this.ranArray.splice(s,1);break}}else if(e===n[parseInt(o.toString(),10)].handler){n.splice(o,1);break}}else delete this.boundedEvents[""+t]}},t.prototype.notify=function(t,e,i,n){if(this.notExist(t))i&&i.call(this,e);else{e&&(e.name=t);var o=r(t,this.boundedEvents).slice(0);if(window.Blazor)return this.blazorCallback(o,e,i,n,0);for(var s=0,a=o;s<a.length;s++){var l=a[s];l.handler.call(l.context,e)}i&&i.call(this,e)}},t.prototype.blazorCallback=function(t,e,i,r,n){var o=this,s=n===t.length-1;if(n<t.length){var a=t[parseInt(n.toString(),10)],h=a.handler.call(a.context,e);if(h&&"function"==typeof h.then){if(!i)return h;h.then(function(h){if(h="string"==typeof h&&o.isJson(h)?JSON.parse(h,o.dateReviver):h,l(e,e,h,!0),!i||!s)return o.blazorCallback(t,e,i,r,n+1);i.call(a.context,e)}).catch(function(t){r&&r.call(a.context,"string"==typeof t&&o.isJson(t)?JSON.parse(t,o.dateReviver):t)})}else{if(!i||!s)return this.blazorCallback(t,e,i,r,n+1);i.call(a.context,e)}}},t.prototype.dateReviver=function(t,e){return y&&"string"==typeof e&&null!==e.match(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/)?new Date(e):e},t.prototype.isJson=function(t){return!0},t.prototype.destroy=function(){this.boundedEvents=this.context=void 0},t.prototype.offIntlEvents=function(){var t=this.boundedEvents.notifyExternalChange;if(t){for(var e=0;e<t.length;e++){var i=t[""+e].context;i&&i.detectFunction&&i.randomId&&!i.isRendered&&(this.off("notifyExternalChange",i.detectFunction,i.randomId),e--)}this.boundedEvents.notifyExternalChange.length||delete this.boundedEvents.notifyExternalChange}},t.prototype.notExist=function(t){return!1===this.boundedEvents.hasOwnProperty(t)||this.boundedEvents[t].length<=0},t.prototype.isHandlerPresent=function(t,e){for(var i=0,r=t;i<r.length;i++){if(r[i].handler===e)return!0}return!1},t}(),eo=new to,io=!1,ro={},no="en-US",oo="USD",so=["numericObject","dateObject"],ao=function(){function t(t){t&&(this.culture=t)}return t.prototype.getDateFormat=function(t){return Yn.dateFormat(this.getCulture(),t||{type:"date",skeleton:"short"},ro)},t.prototype.getNumberFormat=function(t){return t&&!t.currency&&(t.currency=oo),y()&&t&&!t.format&&(t.minimumFractionDigits=0),Gn.numberFormatter(this.getCulture(),t||{},ro)},t.prototype.getDateParser=function(t){return $n.dateParser(this.getCulture(),t||{skeleton:"short",type:"date"},ro)},t.prototype.getNumberParser=function(t){return y()&&t&&!t.format&&(t.minimumFractionDigits=0),Xn.numberParser(this.getCulture(),t||{format:"N"},ro)},t.prototype.formatNumber=function(t,e){return this.getNumberFormat(e)(t)},t.prototype.formatDate=function(t,e){return this.getDateFormat(e)(t)},t.prototype.parseDate=function(t,e){return this.getDateParser(e)(t)},t.prototype.parseNumber=function(t,e){return this.getNumberParser(e)(t)},t.prototype.getDatePattern=function(t,e){return Fn.getActualDateTimeFormat(this.getCulture(),t,ro,e)},t.prototype.getNumberPattern=function(t,e){return Fn.getActualNumberFormat(this.getCulture(),t,ro,e)},t.prototype.getFirstDayOfWeek=function(){return Fn.getWeekData(this.getCulture(),ro)},t.prototype.getCulture=function(){return this.culture||no},t}(),lo=RegExp,ho={"en-US":{d:"M/d/y",D:"EEEE, MMMM d, y",f:"EEEE, MMMM d, y h:mm a",F:"EEEE, MMMM d, y h:mm:s a",g:"M/d/y h:mm a",G:"M/d/yyyy h:mm:ss tt",m:"MMMM d",M:"MMMM d",r:"ddd, dd MMM yyyy HH':'mm':'ss 'GMT'",R:"ddd, dd MMM yyyy HH':'mm':'ss 'GMT'",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"h:mm tt",T:"h:m:s tt",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",U:"dddd, MMMM d, yyyy h:mm:ss tt",y:"MMMM yyyy",Y:"MMMM yyyy"}};!function(t){function e(e,i,n,o,a){var l,h=n||"date";if(a)l=s({skeleton:e},a).format||s({skeleton:"d"},"en-US").format;else{if(-1!==t.basicPatterns.indexOf(e)){if(l=r(h+"Formats."+e,i),"dateTime"===h){var c=r("dateFormats."+e,i),p=r("timeFormats."+e,i);l=l.replace("{1}",c).replace("{0}",p)}}else l=r("dateTimeFormats.availableFormats."+e,i);u(l)&&"yMd"===e&&(l="M/d/y")}return l}function i(e,i,n,o){var s={},a=n||"gregorian";if(s.parserObject=kn.getMainObject(e,i)||(y()?t.blazorDefaultObject:t.defaultObject),o)s.numericObject=r("numbers",s.parserObject);else{var l=y()?"dates":"dates.calendars."+a;s.dateObject=r(l,s.parserObject)}return s}function n(t,e,i,n){return r(t+"Formats-numberSystem-"+e+(n?".accounting":".standard"),i)||(n?r(t+"Formats-numberSystem-"+e+".standard",i):"")}function o(e){var i=e.match(t.dateConverterMapper);if(i&&y()){var r=3===i[0].length?"EEE":"EEEE";return e.replace(t.dateConverterMapper,r)}return e}function s(t,e){var i=t.format||t.skeleton,n=r((e||"en-US")+"."+i,ho);return n||(n=r("en-US."+i,ho)),n&&(n=o(n),t.format=n.replace(/tt/,"a")),t}function a(e){var i=e.match(t.formatRegex),r={},n=i[1].toUpperCase();return r.isAccount="A"===n,r.type=t.patternMatcher[n],e.length>1&&(r.fractionDigits=parseInt(i[2],10)),r}function c(e,i,r,n){var o=n?{}:{nlead:"",nend:""},s=e.match(t.customRegex);if(s){n||(o.nlead=p(s[1],r),o.nend=p(s[10],r),o.groupPattern=s[4]);var a=s[7];if(a&&i){var l=a.match(b);h(l)?o.minimumFraction=0:o.minimumFraction=l.length,o.maximumFraction=a.length-1}}return o}function p(e,i){return e?(e=e.replace(t.defaultCurrency,i),""===i?e.trim():e):""}function d(t,e,i){return r("currencies."+e+(i?"."+i:".symbol"),t)||r("currencies."+e+".symbol-alt-narrow",t)||"$"}function g(e,i,r){var o={type:"decimal",minimumFractionDigits:0,maximumFractionDigits:0},s=e.match(t.customRegex);if(h(s)||""===s[5]&&"N/A"!==e)return o.type=void 0,o;o.nlead=s[1],o.nend=s[10];var a=s[6],u=!!a.match(/\ $/g),c=-1!==a.replace(/\ $/g,"").indexOf(" ");o.useGrouping=-1!==a.indexOf(",")||c,a=a.replace(/,/g,"");var p=s[7];if(-1!==a.indexOf("0")&&(o.minimumIntegerDigits=a.length-a.indexOf("0")),h(p)||(o.minimumFractionDigits=p.lastIndexOf("0"),o.maximumFractionDigits=p.lastIndexOf("#"),-1===o.minimumFractionDigits&&(o.minimumFractionDigits=0),(-1===o.maximumFractionDigits||o.maximumFractionDigits<o.minimumFractionDigits)&&(o.maximumFractionDigits=o.minimumFractionDigits)),h(i)?l(o,f([o.nlead,o.nend],"%","%")):(i.isCustomFormat=!0,l(o,f([o.nlead,o.nend],"$",i.currencySymbol)),o.isCurrency||l(o,f([o.nlead,o.nend],"%",i.percentSymbol))),!h(r)){var d=n(o.type,i.numberMapper.numberSystem,r,!1);o.useGrouping&&(o.groupSeparator=c?" ":i.numberMapper.numberSymbols[w[2]],o.groupData=Gn.getGroupingDetails(d.split(";")[0])),o.nlead=o.nlead.replace(/'/g,""),o.nend=u?" "+o.nend.replace(/'/g,""):o.nend.replace(/'/g,"")}return o}function f(t,e,i){for(var r={nlead:t[0],nend:t[1]},n=0;n<2;n++){var o=t[parseInt(n.toString(),10)],s=o.indexOf(e);if(-1!==s&&(s<o.indexOf("'")||s>o.lastIndexOf("'"))){r[I[n]]=o.substr(0,s)+i+o.substr(s+1),r[I[e]]=!0,r.type=r.isCurrency?"currency":"percent";break}}return r}function m(t,e,i){t+=".";for(var r=0;r<e;r++)t+="0";if(e<i)for(var n=i-e,o=0;o<n;o++)t+="#";return t}function M(t,e){for(var i=t.split("."),r="",n=0;n<e;n++)r+="0";return i[1]?r+"."+i[1]:r}function v(t){var e=t.split("."),i=e[0],r=3-i.length%3;t="";for(var n=(i=(r&&1===r?"#":2===r?"##":"")+i).length-1;n>0;n-=3)t=","+i[n-2]+i[n-1]+i[parseInt(n.toString(),10)]+t;return t=t.slice(1),e[1]?t+"."+e[1]:t}t.negativeDataRegex=/^(('[^']+'|''|[^*#@0,.E])*)(\*.)?((([#,]*[0,]*0+)(\.0*[0-9]*#*)?)|([#,]*@+#*))(E\+?0+)?(('[^']+'|''|[^*#@0,.E])*)$/,t.customRegex=/^(('[^']+'|''|[^*#@0,.])*)(\*.)?((([0#,]*[0,]*[0#]*[0#\ ]*)(\.[0#]*)?)|([#,]*@+#*))(E\+?0+)?(('[^']+'|''|[^*#@0,.E])*)$/,t.latnParseRegex=/0|1|2|3|4|5|6|7|8|9/g;var b=/[0-9]/g;t.defaultCurrency="$";var w=["infinity","nan","group","decimal"],N=/G|M|L|H|c|'| a|yy|y|EEEE|E/g,S={G:"",M:"m",L:"m",H:"h",c:"d","'":'"'," a":" AM/PM",yy:"yy",y:"yyyy",EEEE:"dddd",E:"ddd"};t.dateConverterMapper=/dddd|ddd/gi;var D="sun";t.islamicRegex=/^islamic/;var j={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};t.formatRegex=new lo("(^[ncpae]{1})([0-1]?[0-9]|20)?$","i"),t.currencyFormatRegex=new lo("(^[ca]{1})([0-1]?[0-9]|20)?$","i"),t.curWithoutNumberRegex=/(c|a)$/gi;var I={$:"isCurrency","%":"isPercent","-":"isNegative",0:"nlead",1:"nend"};t.dateParseRegex=/([a-z])\1*|'([^']|'')+'|''|./gi,t.basicPatterns=["short","medium","long","full"],t.defaultObject={dates:{calendars:{gregorian:{months:{"stand-alone":{abbreviated:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},narrow:{1:"J",2:"F",3:"M",4:"A",5:"M",6:"J",7:"J",8:"A",9:"S",10:"O",11:"N",12:"D"},wide:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"}}},days:{"stand-alone":{abbreviated:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},narrow:{sun:"S",mon:"M",tue:"T",wed:"W",thu:"T",fri:"F",sat:"S"},short:{sun:"Su",mon:"Mo",tue:"Tu",wed:"We",thu:"Th",fri:"Fr",sat:"Sa"},wide:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"}}},dayPeriods:{format:{wide:{am:"AM",pm:"PM"}}},eras:{eraNames:{0:"Before Christ","0-alt-variant":"Before Common Era",1:"Anno Domini","1-alt-variant":"Common Era"},eraAbbr:{0:"BC","0-alt-variant":"BCE",1:"AD","1-alt-variant":"CE"},eraNarrow:{0:"B","0-alt-variant":"BCE",1:"A","1-alt-variant":"CE"}},dateFormats:{full:"EEEE, MMMM d, y",long:"MMMM d, y",medium:"MMM d, y",short:"M/d/yy"},timeFormats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateTimeFormats:{full:"{1} 'at' {0}",long:"{1} 'at' {0}",medium:"{1}, {0}",short:"{1}, {0}",availableFormats:{d:"d",E:"ccc",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y"}}},islamic:{months:{"stand-alone":{abbreviated:{1:"Muh.",2:"Saf.",3:"Rab. I",4:"Rab. II",5:"Jum. I",6:"Jum. II",7:"Raj.",8:"Sha.",9:"Ram.",10:"Shaw.",11:"Dhuʻl-Q.",12:"Dhuʻl-H."},narrow:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},wide:{1:"Muharram",2:"Safar",3:"Rabiʻ I",4:"Rabiʻ II",5:"Jumada I",6:"Jumada II",7:"Rajab",8:"Shaʻban",9:"Ramadan",10:"Shawwal",11:"Dhuʻl-Qiʻdah",12:"Dhuʻl-Hijjah"}}},days:{"stand-alone":{abbreviated:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},narrow:{sun:"S",mon:"M",tue:"T",wed:"W",thu:"T",fri:"F",sat:"S"},short:{sun:"Su",mon:"Mo",tue:"Tu",wed:"We",thu:"Th",fri:"Fr",sat:"Sa"},wide:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"}}},dayPeriods:{format:{wide:{am:"AM",pm:"PM"}}},eras:{eraNames:{0:"AH"},eraAbbr:{0:"AH"},eraNarrow:{0:"AH"}},dateFormats:{full:"EEEE, MMMM d, y G",long:"MMMM d, y G",medium:"MMM d, y G",short:"M/d/y GGGGG"},timeFormats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateTimeFormats:{full:"{1} 'at' {0}",long:"{1} 'at' {0}",medium:"{1}, {0}",short:"{1}, {0}",availableFormats:{d:"d",E:"ccc",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d",ms:"mm:ss",y:"y G",yyyy:"y G",yyyyM:"M/y GGGGG",yyyyMd:"M/d/y GGGGG",yyyyMEd:"E, M/d/y GGGGG",yyyyMMM:"MMM y G",yyyyMMMd:"MMM d, y G",yyyyMMMEd:"E, MMM d, y G",yyyyMMMM:"MMMM y G",yyyyQQQ:"QQQ y G",yyyyQQQQ:"QQQQ y G"}}}},timeZoneNames:{hourFormat:"+HH:mm;-HH:mm",gmtFormat:"GMT{0}",gmtZeroFormat:"GMT"}},numbers:{currencies:{USD:{displayName:"US Dollar",symbol:"$","symbol-alt-narrow":"$"},EUR:{displayName:"Euro",symbol:"€","symbol-alt-narrow":"€"},GBP:{displayName:"British Pound","symbol-alt-narrow":"£"}},defaultNumberingSystem:"latn",minimumGroupingDigits:"1","symbols-numberSystem-latn":{decimal:".",group:",",list:";",percentSign:"%",plusSign:"+",minusSign:"-",exponential:"E",superscriptingExponent:"×",perMille:"‰",infinity:"∞",nan:"NaN",timeSeparator:":"},"decimalFormats-numberSystem-latn":{standard:"#,##0.###"},"percentFormats-numberSystem-latn":{standard:"#,##0%"},"currencyFormats-numberSystem-latn":{standard:"¤#,##0.00",accounting:"¤#,##0.00;(¤#,##0.00)"},"scientificFormats-numberSystem-latn":{standard:"#E0"}}},t.blazorDefaultObject={numbers:{mapper:{0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9"},mapperDigits:"0123456789",numberSymbols:{decimal:".",group:",",plusSign:"+",minusSign:"-",percentSign:"%",nan:"NaN",timeSeparator:":",infinity:"∞"},timeSeparator:":",currencySymbol:"$",currencypData:{nlead:"$",nend:"",groupSeparator:",",groupData:{primary:3},maximumFraction:2,minimumFraction:2},percentpData:{nlead:"",nend:"%",groupSeparator:",",groupData:{primary:3},maximumFraction:2,minimumFraction:2},percentnData:{nlead:"-",nend:"%",groupSeparator:",",groupData:{primary:3},maximumFraction:2,minimumFraction:2},currencynData:{nlead:"($",nend:")",groupSeparator:",",groupData:{primary:3},maximumFraction:2,minimumFraction:2},decimalnData:{nlead:"-",nend:"",groupData:{primary:3},maximumFraction:2,minimumFraction:2},decimalpData:{nlead:"",nend:"",groupData:{primary:3},maximumFraction:2,minimumFraction:2}},dates:{dayPeriods:{am:"AM",pm:"PM"},dateSeperator:"/",days:{abbreviated:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},short:{sun:"Su",mon:"Mo",tue:"Tu",wed:"We",thu:"Th",fri:"Fr",sat:"Sa"},wide:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"}},months:{abbreviated:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},wide:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"}},eras:{1:"AD"}}},t.monthIndex={3:"abbreviated",4:"wide",5:"narrow",1:"abbreviated"},t.month="months",t.days="days",t.patternMatcher={C:"currency",P:"percent",N:"decimal",A:"currency",E:"scientific"},t.getResultantPattern=e,t.getDependables=i,t.getSymbolPattern=n,t.ConvertDateToWeekFormat=o,t.compareBlazorDateFormats=s,t.getProperNumericSkeleton=a,t.getFormatData=c,t.changeCurrencySymbol=p,t.getCurrencySymbol=d,t.customFormat=function(t,e,i){for(var r={},n=t.split(";"),o=["pData","nData","zeroData"],s=0;s<n.length;s++)r[o[s]]=g(n[s],e,i);return h(r.nData)&&(r.nData=l({},r.pData),r.nData.nlead=h(e)?"-"+r.nData.nlead:e.minusSymbol+r.nData.nlead),r},t.customNumberFormat=g,t.isCurrencyPercent=f,t.getDateSeparator=function(t){var e=(r("dateFormats.short",t)||"").match(/[dM]([^dM])[dM]/i);return e?e[1]:"/"},t.getActualDateTimeFormat=function(t,n,o,a){var l=i(o,t,n.calendar);y()&&(n=s(n,t));var h=n.format||e(n.skeleton,l.dateObject,n.type);if(a){if(-1!==(h=h.replace(N,function(t){return S[t]})).indexOf("z")){var u=h.match(/z/g).length,c=void 0,p={timeZone:{}};p.numMapper=kn.getNumberMapper(l.parserObject,kn.getNumberingSystem(o)),p.timeZone=r("dates.timeZoneNames",l.parserObject);var d=(new Date).getTimezoneOffset(),g=u<4?"+H;-H":p.timeZone.hourFormat;g=g.replace(/:/g,p.numMapper.timeSeparator),0===d?c=p.timeZone.gmtZeroFormat:(c=Yn.getTimeZoneValue(d,g),c=p.timeZone.gmtFormat.replace(/\{0\}/,c)),h=h.replace(/[z]+/,'"'+c+'"')}h=h.replace(/ $/,"")}return h},t.getActualNumberFormat=function(e,o,s,h){var u,p=i(s,e,"",!0),g={custom:!0},f=p.numericObject,b={},w=(o.format||"").match(t.currencyFormatRegex),N=t.formatRegex.test(o.format)?a(o.format||"N"):{},S={};if(w){S.numberMapper=y()?l({},p.numericObject):kn.getNumberMapper(p.parserObject,kn.getNumberingSystem(s),!0);var D=y()?r("currencySymbol",p.numericObject):d(p.numericObject,o.currency||oo,o.altSymbol),j=n("currency",S.numberMapper.numberSystem,p.numericObject,/a/i.test(o.format)),I=(j=j.replace(/\u00A4/g,D)).split(";");b.hasNegativePattern=!!y()||I.length>1,b.nData=y()?r(N.type+"nData",f):c(I[1]||"-"+I[0],!0,D),b.pData=y()?r(N.type+"pData",f):c(I[0],!1,D),w[2]||o.minimumFractionDigits||o.maximumFractionDigits||(u=c(j.split(";")[0],!0,"",!0).minimumFraction)}var O;if(t.formatRegex.test(o.format)||!o.format){if(l(g,a(o.format||"N")),g.custom=!1,O="###0",(g.fractionDigits||o.minimumFractionDigits||o.maximumFractionDigits||u)&&(g.fractionDigits&&(o.minimumFractionDigits=o.maximumFractionDigits=g.fractionDigits),O=m(O,u||g.fractionDigits||o.minimumFractionDigits||0,o.maximumFractionDigits||0)),o.minimumIntegerDigits&&(O=M(O,o.minimumIntegerDigits)),o.useGrouping&&(O=v(O)),"currency"===g.type||g.type&&y()){y()&&"currency"!==g.type&&(b.pData=r(g.type+"pData",f),b.nData=r(g.type+"nData",f));var x=O;O=b.pData.nlead+x+b.pData.nend,(b.hasNegativePattern||y())&&(O+=";"+b.nData.nlead+x+b.nData.nend)}"percent"!==g.type||y()||(O+=" %")}else O=o.format.replace(/'/g,'"');return Object.keys(S).length>0&&(O=h?O:function(t,e){if(-1!==t.indexOf(",")){var i=t.split(",");t=i[0]+r("numberMapper.numberSymbols.group",e)+i[1].replace(".",r("numberMapper.numberSymbols.decimal",e))}else t=t.replace(".",r("numberMapper.numberSymbols.decimal",e));return t}(O,S)),O},t.fractionDigitsPattern=m,t.minimumIntegerPattern=M,t.groupingPattern=v,t.getWeekData=function(t,e){var i=D,n=r("supplemental.weekData.firstDay",e),o=t;return/en-/.test(o)&&(o=o.slice(3)),o=o.slice(0,2).toUpperCase()+o.substr(2),n&&(i=n[""+o]||n[o.slice(0,2)]||D),j[""+i]},t.replaceBlazorCurrency=function(t,e,i){var n=function(t){return r(t||"",Bn)}(i);if(e!==n)for(var o=0,s=t;o<s.length;o++){var a=s[o];a.nend=a.nend.replace(e,n),a.nlead=a.nlead.replace(e,n)}},t.getWeekOfYear=function(t){var e,i=new Date(t.getFullYear(),0,1),r=i.getDay();r=r>=0?r:r+7;var n=Math.floor((t.getTime()-i.getTime()-6e4*(t.getTimezoneOffset()-i.getTimezoneOffset()))/864e5)+1;if(r<4){if((e=Math.floor((n+r-1)/7)+1)>52){var o=new Date(t.getFullYear()+1,0,1).getDay();e=(o=o>=0?o:o+7)<4?1:53}}else e=Math.floor((n+r-1)/7);return e}}(Fn||(Fn={}));var uo=/^(.*?):[ \t]*([^\r\n]*)$/gm,co="GET",po=function(){function t(t,e,i,r){this.mode=!0,this.emitError=!0,this.options={},"string"==typeof t?(this.url=t,this.type=e?e.toUpperCase():co,this.mode=!!h(i)||i):"object"==typeof t&&(this.options=t,a(this,this.options)),this.type=this.type?this.type.toUpperCase():co,this.contentType=void 0!==this.contentType?this.contentType:r}return t.prototype.send=function(t){var e=this;this.data=h(t)?this.data:t;var i={cancel:!1,httpRequest:null};return new Promise(function(t,r){e.httpRequest=new XMLHttpRequest,e.httpRequest.onreadystatechange=function(){e.stateChange(t,r)},h(e.onLoad)||(e.httpRequest.onload=e.onLoad),h(e.onProgress)||(e.httpRequest.onprogress=e.onProgress),h(e.onAbort)||(e.httpRequest.onabort=e.onAbort),h(e.onError)||(e.httpRequest.onerror=e.onError),h(e.onUploadProgress)||(e.httpRequest.upload.onprogress=e.onUploadProgress),e.httpRequest.open(e.type,e.url,e.mode),h(e.data)||null===e.contentType||e.httpRequest.setRequestHeader("Content-Type",e.contentType||"application/json; charset=utf-8"),e.beforeSend&&(i.httpRequest=e.httpRequest,e.beforeSend(i)),i.cancel||e.httpRequest.send(h(e.data)?null:e.data)})},t.prototype.successHandler=function(t){return this.onSuccess&&this.onSuccess(t,this),t},t.prototype.failureHandler=function(t){return this.onFailure&&this.onFailure(this.httpRequest),t},t.prototype.stateChange=function(t,e){var i=this.httpRequest.responseText;if(this.dataType&&"json"===this.dataType.toLowerCase())if(""===i)i=void 0;else try{i=JSON.parse(i)}catch(t){}4===this.httpRequest.readyState&&(this.httpRequest.status>=200&&this.httpRequest.status<=299||304===this.httpRequest.status?t(this.successHandler(i)):this.emitError?e(new Error(this.failureHandler(this.httpRequest.statusText))):t())},t.prototype.getResponseHeader=function(t){var e,i;e={};for(var r=uo.exec(this.httpRequest.getAllResponseHeaders());r;)e[r[1].toLowerCase()]=r[2],r=uo.exec(this.httpRequest.getAllResponseHeaders());return i=e[t.toLowerCase()],h(i)?null:i},t}(),go=function(){function t(t,e,i){this.type="GET",this.emitError=!0,"string"==typeof t?(this.url=t,this.type=h(e)?this.type:e.toUpperCase(),this.contentType=i):s(t)&&Object.keys(t).length>0&&a(this,t),this.contentType=h(this.contentType)?"application/json; charset=utf-8":this.contentType}return t.prototype.send=function(t){var e=this,i={"application/json":"json","multipart/form-data":"formData","application/octet-stream":"blob","application/x-www-form-urlencoded":"formData"};try{h(this.fetchRequest)&&"GET"===this.type?this.fetchRequest=new Request(this.url,{method:this.type}):h(this.fetchRequest)&&(this.data=h(t)?this.data:t,this.fetchRequest=new Request(this.url,{method:this.type,headers:{"Content-Type":this.contentType},body:this.data}));var r={cancel:!1,fetchRequest:this.fetchRequest};return this.triggerEvent(this.beforeSend,r),r.cancel?null:(this.fetchResponse=fetch(this.fetchRequest),this.fetchResponse.then(function(t){if(e.triggerEvent(e.onLoad,t),!t.ok)throw t;for(var r="text",n=0,o=Object.keys(i);n<o.length;n++){var s=o[n];t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf(s)&&(r=i[s])}return t[r]()}).then(function(t){return e.triggerEvent(e.onSuccess,t,e),t}).catch(function(t){var i={};return e.emitError&&(e.triggerEvent(e.onFailure,t),i=Promise.reject(t)),i}))}catch(t){return t}},t.prototype.triggerEvent=function(t,e,i){h(t)||"function"!=typeof t||t(e,i)},t}(),fo=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini|mobile/i,yo=/msie|trident/i,mo=/Trident\/7\./,Mo=/(ipad|iphone|ipod touch)/i,vo=/(ipad|iphone|ipod touch);.*os 7_\d|(ipad|iphone|ipod touch);.*os 8_\d/i,bo=/android/i,wo=/trident|windows phone|edge/i,No=/(version)[ /]([\w.]+)/i,So={OPERA:/(opera|opr)(?:.*version|)[ /]([\w.]+)/i,EDGE:/(edge)(?:.*version|)[ /]([\w.]+)/i,CHROME:/(chrome|crios)[ /]([\w.]+)/i,PANTHOMEJS:/(phantomjs)[ /]([\w.]+)/i,SAFARI:/(safari)[ /]([\w.]+)/i,WEBKIT:/(webkit)[ /]([\w.]+)/i,MSIE:/(msie|trident) ([\w.]+)/i,MOZILLA:/(mozilla)(?:.*? rv:([\w.]+)|)/i};"undefined"!=typeof window&&(window.browserDetails=window.browserDetails||{});var Do,jo,Io,Oo=function(){function t(){}return t.extractBrowserDetail=function(){for(var e={culture:{}},i=[],r=0,n=Object.keys(So);r<n.length;r++){var o=n[r];if(i=t.userAgent.match(So[""+o])){if(e.name="opr"===i[1].toLowerCase()?"opera":i[1].toLowerCase(),e.name="crios"===i[1].toLowerCase()?"chrome":e.name,e.version=i[2],e.culture.name=e.culture.language=navigator.language,t.userAgent.match(mo)){e.name="msie";break}var s=t.userAgent.match(No);"safari"===e.name&&s&&(e.version=s[2]);break}}return e},t.getEvent=function(e){var i={start:{isPointer:"pointerdown",isTouch:"touchstart",isDevice:"mousedown"},move:{isPointer:"pointermove",isTouch:"touchmove",isDevice:"mousemove"},end:{isPointer:"pointerup",isTouch:"touchend",isDevice:"mouseup"},cancel:{isPointer:"pointercancel",isTouch:"touchcancel",isDevice:"mouseleave"}};return t.isPointer?i[""+e].isPointer:t.isTouch?i[""+e].isTouch+(t.isDevice?"":" "+i[""+e].isDevice):i[""+e].isDevice},t.getTouchStartEvent=function(){return t.getEvent("start")},t.getTouchEndEvent=function(){return t.getEvent("end")},t.getTouchMoveEvent=function(){return t.getEvent("move")},t.getTouchCancelEvent=function(){return t.getEvent("cancel")},t.isSafari=function(){return t.isDevice&&t.isIos&&t.isTouch&&"undefined"!=typeof window&&-1===window.navigator.userAgent.toLowerCase().indexOf("iphone")&&window.navigator.userAgent.toLowerCase().indexOf("safari")>-1},t.getValue=function(e,i){var r="undefined"!=typeof window?window.browserDetails:{};return"undefined"!=typeof navigator&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1&&!0===t.isTouch&&!So.CHROME.test(navigator.userAgent)&&(r.isIos=!0,r.isDevice=!0,r.isTouch=!0,r.isPointer=!0),void 0===r[""+e]?r[""+e]=i.test(t.userAgent):r[""+e]},Object.defineProperty(t,"userAgent",{get:function(){return t.uA},set:function(e){t.uA=e,window.browserDetails={}},enumerable:!0,configurable:!0}),Object.defineProperty(t,"info",{get:function(){return u(window.browserDetails.info)?window.browserDetails.info=t.extractBrowserDetail():window.browserDetails.info},enumerable:!0,configurable:!0}),Object.defineProperty(t,"isIE",{get:function(){return t.getValue("isIE",yo)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"isTouch",{get:function(){return u(window.browserDetails.isTouch)?window.browserDetails.isTouch="ontouchstart"in window.navigator||window&&window.navigator&&window.navigator.maxTouchPoints>0||"ontouchstart"in window:window.browserDetails.isTouch},enumerable:!0,configurable:!0}),Object.defineProperty(t,"isPointer",{get:function(){return u(window.browserDetails.isPointer)?window.browserDetails.isPointer="pointerEnabled"in window.navigator:window.browserDetails.isPointer},enumerable:!0,configurable:!0}),Object.defineProperty(t,"isMSPointer",{get:function(){return u(window.browserDetails.isMSPointer)?window.browserDetails.isMSPointer="msPointerEnabled"in window.navigator:window.browserDetails.isMSPointer},enumerable:!0,configurable:!0}),Object.defineProperty(t,"isDevice",{get:function(){return t.getValue("isDevice",fo)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"isIos",{get:function(){return t.getValue("isIos",Mo)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"isIos7",{get:function(){return t.getValue("isIos7",vo)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"isAndroid",{get:function(){return t.getValue("isAndroid",bo)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"isWebView",{get:function(){return u(window.browserDetails.isWebView)?(window.browserDetails.isWebView=!(u(window.cordova)&&u(window.PhoneGap)&&u(window.phonegap)&&"object"!==window.forge),window.browserDetails.isWebView):window.browserDetails.isWebView},enumerable:!0,configurable:!0}),Object.defineProperty(t,"isWindows",{get:function(){return t.getValue("isWindows",wo)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"touchStartEvent",{get:function(){return u(window.browserDetails.touchStartEvent)?window.browserDetails.touchStartEvent=t.getTouchStartEvent():window.browserDetails.touchStartEvent},enumerable:!0,configurable:!0}),Object.defineProperty(t,"touchMoveEvent",{get:function(){return u(window.browserDetails.touchMoveEvent)?window.browserDetails.touchMoveEvent=t.getTouchMoveEvent():window.browserDetails.touchMoveEvent},enumerable:!0,configurable:!0}),Object.defineProperty(t,"touchEndEvent",{get:function(){return u(window.browserDetails.touchEndEvent)?window.browserDetails.touchEndEvent=t.getTouchEndEvent():window.browserDetails.touchEndEvent},enumerable:!0,configurable:!0}),Object.defineProperty(t,"touchCancelEvent",{get:function(){return u(window.browserDetails.touchCancelEvent)?window.browserDetails.touchCancelEvent=t.getTouchCancelEvent():window.browserDetails.touchCancelEvent},enumerable:!0,configurable:!0}),t.uA="undefined"!=typeof navigator?navigator.userAgent:"",t}(),xo=function(){function t(){}return t.addOrGetEventData=function(t){return"__eventList"in t?t.__eventList.events:(t.__eventList={},t.__eventList.events=[])},t.add=function(e,i,r,n,o){var s,a=t.addOrGetEventData(e);s=o?p(r,o):r,n&&(s=s.bind(n));for(var l=i.split(" "),h=0;h<l.length;h++)a.push({name:l[parseInt(h.toString(),10)],listener:r,debounce:s}),Oo.isIE?e.addEventListener(l[parseInt(h.toString(),10)],s):e.addEventListener(l[parseInt(h.toString(),10)],s,{passive:!1});return s},t.remove=function(e,i,r){for(var n=t.addOrGetEventData(e),o=i.split(" "),s=function(t){var i,s=-1;n&&0!==n.length&&n.some(function(e,n){return e.name===o[parseInt(t.toString(),10)]&&e.listener===r&&(s=n,i=e.debounce,!0)}),-1!==s&&n.splice(s,1),i&&e.removeEventListener(o[parseInt(t.toString(),10)],i)},a=0;a<o.length;a++)s(a)},t.clearEvents=function(e){var i,r;r=l([],r,i=t.addOrGetEventData(e));for(var n=0;n<r.length;n++){var o=r[parseInt(n.toString(),10)];e.removeEventListener(o.name,o.debounce),i.shift()}},t.trigger=function(e,i,r){for(var n=0,o=t.addOrGetEventData(e);n<o.length;n++){var s=o[n];s.name===i&&s.debounce.call(this,r)}},t}(),Co=/^svg|^path|^g/,zo=new RegExp("]"),To=function(){function t(t,e){this.isRendered=!1,this.isComplexArraySetter=!1,this.isServerRendered=!1,this.allowServerDataBinding=!0,this.isProtectedOnChange=!0,this.properties={},this.changedProperties={},this.oldProperties={},this.bulkChanges={},this.refreshing=!1,this.ignoreCollectionWatch=!1,this.finalUpdate=function(){},this.childChangedProperties={},this.modelObserver=new to(this),u(e)||(this.element="string"==typeof e?document.querySelector(e):e,h(this.element)||(this.isProtectedOnChange=!1,this.addInstance())),u(t)||this.setProperties(t,!0),this.isDestroyed=!1}return t.prototype.setProperties=function(t,e){var i=this.isProtectedOnChange;this.isProtectedOnChange=!!e,a(this,t),!0!==e?(a(this.changedProperties,t),this.dataBind()):y()&&this.isRendered&&this.serverDataBind(t),this.finalUpdate(),this.changedProperties={},this.oldProperties={},this.isProtectedOnChange=i},t.callChildDataBind=function(t,e){for(var i=0,r=Object.keys(t);i<r.length;i++){var n=r[i];if(e[""+n]instanceof Array)for(var o=0,s=e[""+n];o<s.length;o++){var a=s[o];void 0!==a.dataBind&&a.dataBind()}else e[""+n].dataBind()}},t.prototype.clearChanges=function(){this.finalUpdate(),this.changedProperties={},this.oldProperties={},this.childChangedProperties={}},t.prototype.dataBind=function(){if(t.callChildDataBind(this.childChangedProperties,this),Object.getOwnPropertyNames(this.changedProperties).length){var e=this.isProtectedOnChange,i=this.changedProperties,r=this.oldProperties;this.clearChanges(),this.isProtectedOnChange=!0,this.onPropertyChanged(i,r),this.isProtectedOnChange=e}},t.prototype.serverDataBind=function(t){if(y()){t=t||{},l(this.bulkChanges,{},t,!0);this.allowServerDataBinding&&window.sfBlazor.updateModel&&(window.sfBlazor.updateModel(this),this.bulkChanges={})}},t.prototype.saveChanges=function(t,e,r){if(y()){var n={};n[""+t]=e,this.serverDataBind(n)}this.isProtectedOnChange||(this.oldProperties[""+t]=r,this.changedProperties[""+t]=e,this.finalUpdate(),this.finalUpdate=i(this.dataBind.bind(this)))},t.prototype.addEventListener=function(t,e){this.modelObserver.on(t,e)},t.prototype.removeEventListener=function(t,e){this.modelObserver.off(t,e)},t.prototype.trigger=function(t,e,i,n){var o=this;if(!0!==this.isDestroyed){var s=this.isProtectedOnChange;this.isProtectedOnChange=!1;var a=this.modelObserver.notify(t,e,i,n);if(zo.test(t)){var l=r(t,this);if(l){if(window.Blazor){var h=l.call(this,e);h&&"function"==typeof h.then?i?h.then(function(t){i&&(t="string"==typeof t&&o.modelObserver.isJson(t)?JSON.parse(t):t,i.call(o,t))}).catch(function(t){n&&(t="string"==typeof t&&o.modelObserver.isJson(t)?JSON.parse(t):t,n.call(o,t))}):a=h:i&&i.call(this,e)}else l.call(this,e),i&&i.call(this,e)}else i&&i.call(this,e)}return this.isProtectedOnChange=s,a}},t.prototype.addInstance=function(){var t="e-"+this.getModuleName().toLowerCase();v([this.element],["e-lib",t]),h(this.element.ej2_instances)?n("ej2_instances",[this],this.element):this.element.ej2_instances.push(this)},t.prototype.destroy=function(){var t=this;this.element.ej2_instances=this.element.ej2_instances?this.element.ej2_instances.filter(function(e){return Do?Do(e)!==Do(t):e!==t}):[],b([this.element],["e-"+this.getModuleName()]),0===this.element.ej2_instances.length&&b([this.element],["e-lib"]),this.clearChanges(),this.modelObserver.destroy(),this.isDestroyed=!0},t}(),Lo=function(t){Do=t},Ao=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Po=function(t,e,i,r){var n,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,i,s):n(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s},Eo=function(t){function e(e){var i=t.call(this,e,void 0)||this;return i.easing={ease:"cubic-bezier(0.250, 0.100, 0.250, 1.000)",linear:"cubic-bezier(0.250, 0.250, 0.750, 0.750)",easeIn:"cubic-bezier(0.420, 0.000, 1.000, 1.000)",easeOut:"cubic-bezier(0.000, 0.000, 0.580, 1.000)",easeInOut:"cubic-bezier(0.420, 0.000, 0.580, 1.000)",elasticInOut:"cubic-bezier(0.5,-0.58,0.38,1.81)",elasticIn:"cubic-bezier(0.17,0.67,0.59,1.81)",elasticOut:"cubic-bezier(0.7,-0.75,0.99,1.01)"},i}Ao(e,t),i=e,e.prototype.animate=function(t,e){e=e||{};var r=this.getModel(e);if("string"==typeof t)for(var n=0,o=Array.prototype.slice.call(x(t,document));n<o.length;n++){var s=o[n];r.element=s,i.delayAnimation(r)}else r.element=t,i.delayAnimation(r)},e.stop=function(t,e){t.style.animation="",t.removeAttribute("e-animate");var i=t.getAttribute("e-animation-id");if(i){var r=parseInt(i,10);cancelAnimationFrame(r),t.removeAttribute("e-animation-id")}e&&e.end&&e.end.call(this,e)},e.delayAnimation=function(t){"Disable"===jo||jo===Io.Disable?(t.begin&&t.begin.call(this,t),t.end&&t.end.call(this,t)):t.delay?setTimeout(function(){i.applyAnimation(t)},t.delay):i.applyAnimation(t)},e.applyAnimation=function(t){var e=this;t.timeStamp=0;var i=0,r=0,n=0,o=t.duration;t.element.setAttribute("e-animate","true");var s=function(a){try{if(a){n=0===n?a:n,t.timeStamp=a+t.timeStamp-n,n=a,!i&&t.begin&&t.begin.call(e,t),i+=1;var l=t.timeStamp/i;t.timeStamp<o&&t.timeStamp+l<o&&t.element.getAttribute("e-animate")?(t.element.style.animation=t.name+" "+t.duration+"ms "+t.timingFunction,t.progress&&t.progress.call(e,t),requestAnimationFrame(s)):(cancelAnimationFrame(r),t.element.removeAttribute("e-animation-id"),t.element.removeAttribute("e-animate"),t.element.style.animation="",t.end&&t.end.call(e,t))}else r=requestAnimationFrame(s),t.element.setAttribute("e-animation-id",r.toString())}catch(i){cancelAnimationFrame(r),t.element.removeAttribute("e-animation-id"),t.fail&&t.fail.call(e,i)}};s()},e.prototype.getModel=function(t){return{name:t.name||this.name,delay:t.delay||this.delay,duration:void 0!==t.duration?t.duration:this.duration,begin:t.begin||this.begin,end:t.end||this.end,fail:t.fail||this.fail,progress:t.progress||this.progress,timingFunction:this.easing[t.timingFunction]?this.easing[t.timingFunction]:t.timingFunction||this.easing[this.timingFunction]}},e.prototype.onPropertyChanged=function(t,e){},e.prototype.getModuleName=function(){return"animation"},e.prototype.destroy=function(){};var i;return Po([R("FadeIn")],e.prototype,"name",void 0),Po([R(400)],e.prototype,"duration",void 0),Po([R("ease")],e.prototype,"timingFunction",void 0),Po([R(0)],e.prototype,"delay",void 0),Po([V()],e.prototype,"progress",void 0),Po([V()],e.prototype,"begin",void 0),Po([V()],e.prototype,"end",void 0),Po([V()],e.prototype,"fail",void 0),e=i=Po([Y],e)}(To),ko=!1;!function(t){t.Default="Default",t.Enable="Enable",t.Disable="Disable"}(Io||(Io={}));var Bo,Fo,Ro=function(){function t(t){this.loadedModules=[],this.parent=t}return t.prototype.inject=function(t,i){var r=t.length;if(0!==r){this.loadedModules.length&&this.clearUnusedModule(t);for(var o=0;o<r;o++)for(var s=t[parseInt(o.toString(),10)],a=0,l=i;a<l.length;a++){var h=l[a],u=s.member;if(h&&h.prototype.getModuleName()===s.member&&!this.isModuleLoaded(u)){var c=e(h,s.args),p=this.getMemberName(u);s.isProperty?n(p,h,this.parent):n(p,c,this.parent);var d=s;d.member=p,this.loadedModules.push(d)}}}else this.clean()},t.prototype.clean=function(){for(var t=0,e=this.loadedModules;t<e.length;t++){var i=e[t];i.isProperty||r(i.member,this.parent).destroy()}this.loadedModules=[]},t.prototype.getNonInjectedModules=function(t){var e=this;return t.filter(function(t){return!e.isModuleLoaded(t.member)})},t.prototype.clearUnusedModule=function(t){for(var e=this,i=t.map(function(t){return e.getMemberName(t.member)}),n=0,s=this.loadedModules.filter(function(t){return-1===i.indexOf(t.member)});n<s.length;n++){var a=s[n];a.isProperty||r(a.member,this.parent).destroy(),this.loadedModules.splice(this.loadedModules.indexOf(a),1),o(this.parent,a.member)}},t.prototype.getMemberName=function(t){return t[0].toLowerCase()+t.substring(1)+"Module"},t.prototype.isModuleLoaded=function(t){for(var e=0,i=this.loadedModules;e<i.length;e++){if(i[e].member===this.getMemberName(t))return!0}return!1},t}(),Uo=function(){function t(t,e,i,n){this.isComplexArraySetter=!1,this.properties={},this.changedProperties={},this.childChangedProperties={},this.oldProperties={},this.finalUpdate=function(){},this.callChildDataBind=r("callChildDataBind",To),this.parentObj=t,this.controlParent=this.parentObj.controlParent||this.parentObj,this.propName=e,this.isParentArray=n,this.setProperties(i,!0)}return t.prototype.updateChange=function(t,e){!0===t?this.parentObj.childChangedProperties[""+e]=t:delete this.parentObj.childChangedProperties[""+e],this.parentObj.updateChange&&this.parentObj.updateChange(t,this.parentObj.propName)},t.prototype.updateTimeOut=function(){if(this.parentObj.updateTimeOut)this.parentObj.finalUpdate(),this.parentObj.updateTimeOut();else{var t=setTimeout(this.parentObj.dataBind.bind(this.parentObj));this.finalUpdate=function(){clearTimeout(t)}}},t.prototype.clearChanges=function(){this.finalUpdate(),this.updateChange(!1,this.propName),this.oldProperties={},this.changedProperties={}},t.prototype.setProperties=function(t,e){!0===e?(a(this,t),this.updateChange(!1,this.propName),this.clearChanges()):a(this,t)},t.prototype.dataBind=function(){if(this.callChildDataBind(this.childChangedProperties,this),this.isParentArray){var t=this.parentObj[this.propName].indexOf(this);Object.keys(this.changedProperties).length&&(n(this.propName+"."+t,this.changedProperties,this.parentObj.changedProperties),n(this.propName+"."+t,this.oldProperties,this.parentObj.oldProperties))}else this.parentObj.changedProperties[this.propName]=this.changedProperties,this.parentObj.oldProperties[this.propName]=this.oldProperties;this.clearChanges()},t.prototype.saveChanges=function(t,e,i,r){this.controlParent.isProtectedOnChange||(r||this.serverDataBind(t,e,!0),this.oldProperties[""+t]=i,this.changedProperties[""+t]=e,this.updateChange(!0,this.propName),this.finalUpdate(),this.updateTimeOut())},t.prototype.serverDataBind=function(t,e,i,r){if(y()&&!this.parentObj.isComplexArraySetter){var n,o={},s=i?this.getParentKey(!0)+"."+t:t;if(-1!==s.indexOf(".")){var a=s.split(".");n=o;for(var l=0;l<a.length;l++){var h=l===a.length-1;n[a[parseInt(l.toString(),10)]]=h?e:{},n=h?n:n[a[parseInt(l.toString(),10)]]}}else o[""+s]={},n=o[""+s],o[""+s][""+t]=e;if(this.isParentArray){n.ejsAction=r||"none"}this.controlParent.serverDataBind(o)}},t.prototype.getParentKey=function(t){var e="",i=this.propName;if(this.isParentArray){e=this.parentObj[this.propName].indexOf(this);var r=this.parentObj[this.propName].length;r=t?r:r>0?r-1:0,i+=e=-1!==e?"-"+e:"-"+r}return this.controlParent!==this.parentObj&&(i=this.parentObj.getParentKey()+"."+this.propName+e),i},t}(),_o=["grid","pivotview","treegrid","spreadsheet","rangeNavigator","DocumentEditor","listbox","inplaceeditor","PdfViewer","richtexteditor","DashboardLayout","chart","stockChart","circulargauge","diagram","heatmap","lineargauge","maps","slider","smithchart","barcode","sparkline","treemap","bulletChart","kanban","daterangepicker","schedule","gantt","signature","query-builder","drop-down-tree","carousel","filemanager","uploader","accordion","tab","treeview"],Vo=[115,121,110,99,102,117,115,105,111,110,46,105,115,76,105,99,86,97,108,105,100,97,116,101,100],Yo=function(){function t(t){this.isValidated=!1,this.isLicensed=!0,this.version="25",this.platform=/JavaScript|ASPNET|ASPNETCORE|ASPNETMVC|FileFormats|essentialstudio/i,this.errors={noLicense:"<span>This application was built using a trial version of Syncfusion Essential Studio. To remove the license validation message permanently, a valid license key must be included.</span>",trailExpired:"<span>This application was built using a trial version of Syncfusion Essential Studio. To remove the license validation message permanently, a valid license key must be included.</span>",versionMismatched:"<span>The included Syncfusion license key is invalid.</span>",platformMismatched:"<span>The included Syncfusion license key is invalid.</span>",invalidKey:"<span>The included Syncfusion license key is invalid.</span>"},this.manager=function(){var t=null;return{setKey:function(e){t=e},getKey:function(){return t}}}(),this.npxManager=function(){var t="npxKeyReplace";return{getKey:function(){return t}}}(),this.manager.setKey(t)}return t.prototype.validate=function(){if(!this.isValidated&&Ln&&!r(J(Vo),Ln)&&!r("Blazor",Ln)){var t=void 0,e=void 0;if(this.manager&&this.manager.getKey()||this.npxManager&&"npxKeyReplace"!==this.npxManager.getKey()){var i=this.getInfoFromKey();if(i&&i.length)for(var o=0,s=i;o<s.length;o++){var a=s[o];if(!this.platform.test(a.platform)||a.invalidPlatform)t=this.errors.platformMismatched;else if(-1===a.version.indexOf(this.version))t=(t=(t=this.errors.versionMismatched).replace("##LicenseVersion",a.version)).replace("##Requireversion",this.version+".x");else if(a.expiryDate){var l=new Date(a.expiryDate),u=new Date;if(!(l!==u&&l<u))break;t=this.errors.trailExpired}}else t=this.errors.invalidKey}else{var c=r(J([115,121,110,99,102,117,115,105,111,110,46,108,105,99,101,110,115,101,67,111,110,116,101,110,116]),Ln);e=r(J([115,121,110,99,102,117,115,105,111,110,46,99,108,97,105,109,65,99,99,111,117,110,116,85,82,76]),Ln),t=c&&""!==c?c:this.errors.noLicense}if(t&&"undefined"!=typeof document&&!h(document)){var p=M("div",{innerHTML:"<img src='data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzE5OV80KSI+CjxwYXRoIGQ9Ik0xMiAyMUMxNi45NzA2IDIxIDIxIDE2Ljk3MDYgMjEgMTJDMjEgNy4wMjk0NCAxNi45NzA2IDMgMTIgM0M3LjAyOTQ0IDMgMyA3LjAyOTQ0IDMgMTJDMyAxNi45NzA2IDcuMDI5NDQgMjEgMTIgMjFaIiBzdHJva2U9IiM3MzczNzMiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0xMS4yNSAxMS4yNUgxMlYxNi41SDEyLjc1IiBmaWxsPSIjNjE2MDYzIi8+CjxwYXRoIGQ9Ik0xMS4yNSAxMS4yNUgxMlYxNi41SDEyLjc1IiBzdHJva2U9IiM3MzczNzMiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0xMS44MTI1IDlDMTIuNDMzOCA5IDEyLjkzNzUgOC40OTYzMiAxMi45Mzc1IDcuODc1QzEyLjkzNzUgNy4yNTM2OCAxMi40MzM4IDYuNzUgMTEuODEyNSA2Ljc1QzExLjE5MTIgNi43NSAxMC42ODc1IDcuMjUzNjggMTAuNjg3NSA3Ljg3NUMxMC42ODc1IDguNDk2MzIgMTEuMTkxMiA5IDExLjgxMjUgOVoiIGZpbGw9IiM3MzczNzMiLz4KPC9nPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF8xOTlfNCI+CjxyZWN0IHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0id2hpdGUiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K' style=\"top: 6px;\n position: absolute;\n left: 16px;\n width: 24px;\n height: 24px;\"/>"+t+' <a style="text-decoration: none;color: #0D6EFD;font-weight: 500;" href='+(Bo=e&&""!==e?e:"https://www.syncfusion.com/account/claim-license-key?pl=SmF2YVNjcmlwdA==&vs=MjU=&utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information")+">Claim your free account</a>"});p.setAttribute("style","position: fixed;\n top: 10px;\n left: 10px;\n right: 10px;\n font-size: 14px;\n background: #EEF2FF;\n color: #222222;\n z-index: 999999999;\n text-align: left;\n border: 1px solid #EEEEEE;\n padding: 10px 11px 10px 50px;\n border-radius: 8px;\n font-family: Helvetica Neue, Helvetica, Arial;"),document.body.appendChild(p),this.isLicensed=!1}this.isValidated=!0,n(J(Vo),this.isValidated,Ln)}return this.isLicensed},t.prototype.getDecryptedData=function(t){try{return atob(t)}catch(t){return""}},t.prototype.getInfoFromKey=function(){try{var t="",e=[5439488,7929856,5111808,6488064,4587520,7667712,5439488,6881280,5177344,7208960,4194304,4456448,6619136,7733248,5242880,7077888,6356992,7602176,4587520,7274496,7471104,7143424],i=[],r=[],n=!1,o=!1;this.manager.getKey()?t=this.manager.getKey():(o=!0,t=this.npxManager.getKey().split("npxKeyReplace")[1]);for(var s=0,a=t.split(";");s<a.length;s++){var l=a[s],h=this.getDecryptedData(l);if(h){var u=0,c="";if(o){var p=h[h.length-1],d=[];for(g=0;g<h.length;g++)d[""+g]=h[""+g].charCodeAt(0)-p.charCodeAt(0);for(g=0;g<d.length;g++)c+=String.fromCharCode(d[parseInt(g.toString(),10)])}else for(var g=0;g<h.length;g++,u++){u===e.length&&(u=0);var f=h.charCodeAt(g);c+=String.fromCharCode(f^e[parseInt(u.toString(),10)]>>16)}this.platform.test(c)?(n=!1,(i=c.split(";")).length>3&&r.push({platform:i[0],version:i[1],expiryDate:i[2]})):c&&c.split(";").length>3&&(n=!0)}}return n&&!r.length?[{invalidPlatform:n}]:r.length?r:null}catch(t){return null}},t}(),Qo=new Yo,Wo=function(t){return t&&Z(t),!0},Go=function(){var t='\n <div style="\n position: fixed;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: 99999;\n ">\n <div style="\n background: #FFFFFF;\n height: 455px;\n width: 840px;\n font-family: Helvetica Neue, Helvetica, Arial;\n color: #000000;\n box-shadow: 0px 4.8px 14.4px rgb(0 0 0 / 18%), 0px 25.6px 57.6px rgb(0 0 0 / 22%);\n display: block;\n margin: 8% auto;\n border-radius: 20px;\n ">\n <div style="\n position: absolute;\nwidth: 838px;\nheight: 62px;\nbackground-color: #F9F9F9;\nborder: 1px solid #EEEEEE;\nborder-top-left-radius: 20px;\nborder-top-right-radius: 20px;\n">\n <img src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQ2IiBoZWlnaHQ9IjMyIiB2aWV3Qm94PSIwIDAgMTQ2IDMyIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNNDAuNTk2NSAxNS4wMDc4SDMyLjQyNUMzMS41NTU3IDE1LjAwNzggMzAuOTAzNyAxNS4xODEyIDMwLjUxMjUgMTUuNDg0NkMzMC4xMjEzIDE1LjgzMTQgMjkuOTA0IDE2LjMwODIgMjkuOTA0IDE3LjA0NTFDMjkuOTA0IDE3LjYwODYgMzAuMDc3OCAxOC4wNDIxIDMwLjQyNTYgMTguMzAyMkMzMC43NzMzIDE4LjYwNTYgMzEuMjk0OSAxOC43MzU2IDMxLjk5MDMgMTguNzM1NkgzNi4zMzY5QzM4LjExODkgMTguNzM1NiAzOS40MjI5IDE5LjA4MjQgNDAuMTYxOCAxOS43MzI2QzQwLjk0NDIgMjAuNDI2MiA0MS4yOTE5IDIxLjU1MzIgNDEuMjkxOSAyMy4xMTM3QzQxLjI5MTkgMjQuNzE3NiA0MC44NTcyIDI1Ljg4OCAzOS45ODc5IDI2LjY2ODJDMzkuMTE4NiAyNy40MDUxIDM3LjcyNzcgMjcuNzk1MyAzNS44NTg3IDI3Ljc5NTNIMjcuMDc4N1YyNS4wMjFIMzUuMzM3MkMzNi4yOTM0IDI1LjAyMSAzNi45NDU0IDI0Ljg5MSAzNy4zMzY2IDI0LjYzMDlDMzcuNzI3NyAyNC4zNzA4IDM3LjkwMTYgMjMuODk0IDM3LjkwMTYgMjMuMjg3MUMzNy45MDE2IDIyLjYzNjkgMzcuNzI3NyAyMi4xNjAxIDM3LjM4IDIxLjlDMzcuMDMyMyAyMS42Mzk5IDM2LjQyMzggMjEuNDY2NSAzNS41NTQ1IDIxLjQ2NjVIMzEuNjQyNkMyOS44NjA1IDIxLjQ2NjUgMjguNTEzMSAyMS4xMTk4IDI3LjY4NzMgMjAuMzgyOEMyNi44NjE0IDE5LjY0NTkgMjYuNDI2OCAxOC41MTg5IDI2LjQyNjggMTcuMDAxN0MyNi40MjY4IDE1LjM1NDUgMjYuODYxNCAxNC4xNDA4IDI3LjczMDcgMTMuMzYwNkMyOC42IDEyLjU4MDMgMjkuOTkwOSAxMi4yMzM1IDMxLjkwMzQgMTIuMjMzNUg0MC41OTY1VjE1LjAwNzhaIiBmaWxsPSIjMzU0M0E4Ii8+CjxwYXRoIGQ9Ik00OC4wNzI3IDI1LjI4MTFINTAuNTA2OFYxNi4zOTQ5SDUzLjU0OTNWMjcuNTM1MkM1My41NDkzIDI5LjA1MjQgNTMuMjAxNiAzMC4xNzk0IDUyLjUwNjIgMzAuOTE2M0M1MS44MTA3IDMxLjY1MzIgNTAuNzI0MSAzMiA0OS4yNDYzIDMySDQzLjMzNVYyOS42NTkySDQ4LjcyNDdDNDkuMjg5NyAyOS42NTkyIDQ5Ljc2NzkgMjkuNTI5MiA1MC4wNzIxIDI5LjIyNThDNTAuMzc2NCAyOC45NjU3IDUwLjU1MDIgMjguNTMyMiA1MC41NTAyIDI4LjAxMlYyNy44Mzg2SDQ3Ljg5ODlDNDYuMjAzNyAyNy44Mzg2IDQ0Ljk0MzIgMjcuNDkxOSA0NC4yNDc4IDI2Ljg0MTZDNDMuNTA4OSAyNi4xNDgxIDQzLjE2MTEgMjUuMDY0NCA0My4xNjExIDIzLjQ2MDVWMTYuMzk0OUg0Ni4xNjAyVjIzLjIwMDVDNDYuMTYwMiAyNC4wNjc0IDQ2LjI5MDYgMjQuNjMwOSA0Ni41NTE0IDI0Ljg5MUM0Ni43MjUzIDI1LjE1MTEgNDcuMjQ2OSAyNS4yODExIDQ4LjA3MjcgMjUuMjgxMVoiIGZpbGw9IiMzNTQzQTgiLz4KPHBhdGggZD0iTTU1Ljg5NjUgMTYuMzk0OUg2MS41OTA0QzYzLjMyOTEgMTYuMzk0OSA2NC41NDYxIDE2LjY5ODMgNjUuMjg1IDE3LjM0ODVDNjYuMDIzOSAxNy45OTg4IDY2LjM3MTYgMTkuMDgyNCA2Ni4zNzE2IDIwLjU1NjNWMjcuNzk1M0g2My4zMjkxVjIwLjk0NjRDNjMuMzI5MSAyMC4wNzk0IDYzLjE5ODcgMTkuNTE1OSA2Mi45Mzc5IDE5LjI5OTJDNjIuNjc3MSAxOS4wMzkxIDYyLjE1NTUgMTguOTA5MSA2MS4zMjk3IDE4LjkwOTFINTguODk1NlYyNy44Mzg2SDU1Ljg1M1YxNi4zOTQ5SDU1Ljg5NjVaIiBmaWxsPSIjMzU0M0E4Ii8+CjxwYXRoIGQ9Ik03NC45MzQyIDI1LjM2NzhINzguMTUwNlYyNy43OTUySDc0LjAyMTRDNzIuOTc4MiAyNy43OTUyIDcyLjEwODkgMjcuNjY1MiA3MS40NTcgMjcuNDkxOEM3MC44MDUgMjcuMjc1IDcwLjE5NjUgMjYuOTI4MyA2OS43MTgzIDI2LjQ1MTRDNjkuMTk2OCAyNS45MzEzIDY4Ljc2MjEgMjUuMjgxMSA2OC40NTc4IDI0LjU0NDJDNjguMTUzNiAyMy44MDcyIDY4LjAyMzIgMjIuOTgzNiA2OC4wMjMyIDIyLjE2QzY4LjAyMzIgMjEuMjkzMSA2OC4xNTM2IDIwLjQ2OTUgNjguNDU3OCAxOS42ODkyQzY4Ljc2MjEgMTguOTA5IDY5LjE1MzMgMTguMzAyMSA2OS43MTgzIDE3Ljc4MTlDNzAuMjM5OSAxNy4zMDUxIDcwLjgwNSAxNi45NTgzIDcxLjUwMDQgMTYuNzQxNkM3Mi4xOTU5IDE2LjUyNDkgNzMuMDIxNyAxNi40MzgyIDc0LjA2NDkgMTYuNDM4Mkg3OC4xOTQxVjE4LjkwOUg3NC45MzQyQzczLjQ5OTggMTguOTA5IDcyLjU0MzYgMTkuMTY5MSA3MS45Nzg1IDE5LjY0NTlDNzEuNDU2OSAyMC4xMjI3IDcxLjE1MjcgMjAuOTg5NyA3MS4xNTI3IDIyLjIwMzRDNzEuMTUyNyAyMi44OTY5IDcxLjI4MzEgMjMuNDYwNSA3MS41MDA0IDIzLjkzNzNDNzEuNzE3NyAyNC40MTQxIDcyLjA2NTUgMjQuNzYwOSA3Mi41MDAxIDI1LjA2NDNDNzIuNzE3NCAyNS4xOTQ0IDcyLjk3ODIgMjUuMjgxMSA3My4yODI1IDI1LjM2NzhDNzMuNjMwMiAyNS4zMjQ0IDc0LjE1MTggMjUuMzY3OCA3NC45MzQyIDI1LjM2NzhaIiBmaWxsPSIjMzU0M0E4Ii8+CjxwYXRoIGQ9Ik04MC44NDU2IDE4LjY0ODlINzguNjcyNFYxNi4zNTE1SDgwLjg0NTZWMTUuMTgxMUM4MC44NDU2IDE0LjAxMDggODEuMDYzIDEzLjIzMDUgODEuNDk3NiAxMi44NDA0QzgxLjkzMjMgMTIuNDUwMyA4Mi43NTgxIDEyLjIzMzUgODMuOTc1MSAxMi4yMzM1SDg2Ljg0MzhWMTQuNDAwOUg4NS40MDk1Qzg0Ljg4NzkgMTQuNDAwOSA4NC41NDAyIDE0LjQ4NzYgODQuMzIyOSAxNC42NjFDODQuMTA1NSAxNC44MzQ0IDgzLjk3NTEgMTUuMDk0NSA4My45NzUxIDE1LjQ0MTJWMTYuMzUxNUg4Ni44NDM4VjE4LjY0ODlIODMuOTc1MVYyNy43OTUzSDgwLjg0NTZWMTguNjQ4OVoiIGZpbGw9IiMzNTQzQTgiLz4KPHBhdGggZD0iTTk4LjQwNTYgMjcuNzk1M0g5Mi43MTE2QzkxLjAxNjUgMjcuNzk1MyA4OS44NDI5IDI3LjQ0ODUgODkuMDYwNSAyNi43OTgzQzg4LjMyMTYgMjYuMTQ4MSA4Ny45MzA0IDI1LjA2NDQgODcuOTMwNCAyMy41OTA2VjE2LjM5NDlIOTAuOTI5NVYyMy40MTcyQzkwLjkyOTUgMjQuMTk3NCA5MS4wNTk5IDI0LjY3NDMgOTEuMzIwNyAyNC45MzQ0QzkxLjU4MTUgMjUuMTk0NCA5Mi4xMDMxIDI1LjMyNDUgOTIuOTI4OSAyNS4zMjQ1SDk1LjM2M1YxNi4zOTQ5SDk4LjQwNTZWMjcuNzk1M1oiIGZpbGw9IiMzNTQzQTgiLz4KPHBhdGggZD0iTTEwMC42MjIgMjUuNDExMkgxMDcuMDExQzEwNy41NzcgMjUuNDExMiAxMDguMDExIDI1LjMyNDUgMTA4LjI3MiAyNS4xNTExQzEwOC41MzMgMjQuOTc3NyAxMDguNjYzIDI0LjY3NDMgMTA4LjY2MyAyNC4zMjc1QzEwOC42NjMgMjMuOTM3NCAxMDguNTMzIDIzLjY3NzMgMTA4LjI3MiAyMy40NjA1QzEwOC4wMTEgMjMuMjg3MSAxMDcuNTc3IDIzLjIwMDUgMTA3LjA1NSAyMy4yMDA1SDEwNC40NDdDMTAyLjg4MiAyMy4yMDA1IDEwMS44MzkgMjIuOTgzNyAxMDEuMzE4IDIyLjUwNjlDMTAwLjc1MiAyMi4wMzAxIDEwMC40OTIgMjEuMjA2NSAxMDAuNDkyIDE5Ljk5MjdDMTAwLjQ5MiAxOC43NzkgMTAwLjgzOSAxNy44Njg3IDEwMS40OTEgMTcuMjYxOEMxMDIuMTQzIDE2LjY5ODMgMTAzLjE4NyAxNi4zOTQ5IDEwNC41MzQgMTYuMzk0OUgxMTEuMDU0VjE4Ljc3OUgxMDUuNzA4QzEwNC44MzggMTguNzc5IDEwNC4yNzMgMTguODY1NyAxMDQuMDEyIDE4Ljk5NTdDMTAzLjc1MiAxOS4xNjkxIDEwMy42MjEgMTkuNDI5MiAxMDMuNjIxIDE5LjgxOTRDMTAzLjYyMSAyMC4xNjYxIDEwMy43NTIgMjAuNDI2MiAxMDMuOTY5IDIwLjU5OTZDMTA0LjE4NiAyMC43NzMgMTA0LjU3NyAyMC44NTk3IDEwNS4wNTYgMjAuODU5N0gxMDcuNzk0QzEwOS4wNTQgMjAuODU5NyAxMTAuMDExIDIxLjE2MzEgMTEwLjY2MyAyMS43MjY2QzExMS4zMTUgMjIuMjkwMiAxMTEuNjYyIDIzLjE1NzEgMTExLjY2MiAyNC4yNDA4QzExMS42NjIgMjUuMjgxMSAxMTEuMzU4IDI2LjE0ODEgMTEwLjc5MyAyNi43OTgzQzExMC4yMjggMjcuNDQ4NSAxMDkuNDQ2IDI3Ljc5NTMgMTA4LjUzMyAyNy43OTUzSDEwMC43MDlWMjUuNDExMkgxMDAuNjIyWiIgZmlsbD0iIzM1NDNBOCIvPgo8cGF0aCBkPSJNMTE2LjU3NCAxNS4wOTQ0SDExMy40MDFWMTIuMjc2OUgxMTYuNTc0VjE1LjA5NDRaTTExNi41NzQgMjcuNzk1M0gxMTMuNDAxVjE2LjM5NDlIMTE2LjU3NFYyNy43OTUzWiIgZmlsbD0iIzM1NDNBOCIvPgo8cGF0aCBkPSJNMTMwLjMwOSAyMi4xMTY3QzEzMC4zMDkgMjMuODkzOSAxMjkuNzQ0IDI1LjMyNDQgMTI4LjY1NyAyNi40MDgxQzEyNy41NzEgMjcuNDkxOCAxMjYuMDkzIDI4LjAxMiAxMjQuMjI0IDI4LjAxMkMxMjIuMzU1IDI4LjAxMiAxMjAuODc3IDI3LjQ5MTggMTE5Ljc5IDI2LjQwODFDMTE4LjcwNCAyNS4zMjQ0IDExOC4xMzkgMjMuODkzOSAxMTguMTM5IDIyLjExNjdDMTE4LjEzOSAyMC4zMzk0IDExOC43MDQgMTguOTA5IDExOS43OSAxNy44MjUzQzEyMC44NzcgMTYuNzQxNiAxMjIuMzk4IDE2LjIyMTQgMTI0LjIyNCAxNi4yMjE0QzEyNi4wNDkgMTYuMjIxNCAxMjcuNTI3IDE2Ljc0MTYgMTI4LjY1NyAxNy44MjUzQzEyOS43NDQgMTguODY1NiAxMzAuMzA5IDIwLjI5NjEgMTMwLjMwOSAyMi4xMTY3Wk0xMjEuMjY4IDIyLjExNjdDMTIxLjI2OCAyMy4yMDA0IDEyMS41MjkgMjQuMDY3MyAxMjIuMDUxIDI0LjY3NDJDMTIyLjU3MiAyNS4yODExIDEyMy4yNjggMjUuNTg0NSAxMjQuMTggMjUuNTg0NUMxMjUuMDkzIDI1LjU4NDUgMTI1Ljc4OSAyNS4yODExIDEyNi4zMSAyNC42NzQyQzEyNi44MzIgMjQuMDY3MyAxMjcuMDkzIDIzLjIwMDQgMTI3LjA5MyAyMi4xMTY3QzEyNy4wOTMgMjEuMDMzIDEyNi44MzIgMjAuMTY2MSAxMjYuMzEgMTkuNjAyNUMxMjUuNzg5IDE4Ljk5NTcgMTI1LjA5MyAxOC42OTIyIDEyNC4xMzcgMTguNjkyMkMxMjMuMjI0IDE4LjY5MjIgMTIyLjUyOSAxOC45OTU3IDEyMi4wMDcgMTkuNjAyNUMxMjEuNTI5IDIwLjE2NjEgMTIxLjI2OCAyMS4wMzMgMTIxLjI2OCAyMi4xMTY3WiIgZmlsbD0iIzM1NDNBOCIvPgo8cGF0aCBkPSJNMTMxLjc4NyAxNi4zOTQ5SDEzNy40ODFDMTM5LjIxOSAxNi4zOTQ5IDE0MC40MzYgMTYuNjk4MyAxNDEuMTc1IDE3LjM0ODVDMTQxLjkxNCAxNy45OTg4IDE0Mi4yNjIgMTkuMDgyNCAxNDIuMjYyIDIwLjU1NjNWMjcuNzk1M0gxMzkuMjE5VjIwLjk0NjRDMTM5LjIxOSAyMC4wNzk0IDEzOS4wODkgMTkuNTE1OSAxMzguODI4IDE5LjI5OTJDMTM4LjU2NyAxOS4wMzkxIDEzOC4wNDYgMTguOTA5MSAxMzcuMjIgMTguOTA5MUgxMzQuNzg2VjI3LjgzODZIMTMxLjc0M1YxNi4zOTQ5SDEzMS43ODdaIiBmaWxsPSIjMzU0M0E4Ii8+CjxwYXRoIGQ9Ik03LjEyODMxIDMuNzM3NDNIMFYxMC44NDY0SDcuMTI4MzFWMy43Mzc0M1oiIGZpbGw9IiMzNTQzQTgiLz4KPHBhdGggZD0iTTIzLjI1MTMgLTIuMTU3MjVlLTA1TDE4LjU1MTMgNS41MTY4NUwyNC4wODMxIDEwLjIwNDFMMjguNzgzMSA0LjY4NzI1TDIzLjI1MTMgLTIuMTU3MjVlLTA1WiIgZmlsbD0iI0ZGODYwMCIvPgo8cGF0aCBkPSJNMTUuNjA0MSAzLjczNzQzSDguNDc1ODNWMTAuODQ2NEgxNS42MDQxVjMuNzM3NDNaIiBmaWxsPSIjMzU0M0E4Ii8+CjxwYXRoIGQ9Ik03LjEyODMxIDEyLjE5MDJIMFYxOS4yOTkySDcuMTI4MzFWMTIuMTkwMloiIGZpbGw9IiMzNTQzQTgiLz4KPHBhdGggZD0iTTE1LjYwNDEgMTIuMTkwMkg4LjQ3NTgzVjE5LjI5OTJIMTUuNjA0MVYxMi4xOTAyWiIgZmlsbD0iIzM1NDNBOCIvPgo8cGF0aCBkPSJNMjQuMDc5NyAxMi4xOTAySDE2Ljk1MTRWMTkuMjk5MkgyNC4wNzk3VjEyLjE5MDJaIiBmaWxsPSIjRkY4NjAwIi8+CjxwYXRoIGQ9Ik03LjEyODMxIDIwLjY4NjNIMFYyNy43OTUzSDcuMTI4MzFWMjAuNjg2M1oiIGZpbGw9IiMzNTQzQTgiLz4KPHBhdGggZD0iTTE1LjYwNDEgMjAuNjg2M0g4LjQ3NTgzVjI3Ljc5NTNIMTUuNjA0MVYyMC42ODYzWiIgZmlsbD0iIzM1NDNBOCIvPgo8cGF0aCBkPSJNMjQuMTIzMiAyMC42ODYzSDE2Ljk5NDlWMjcuNzk1M0gyNC4xMjMyVjIwLjY4NjNaIiBmaWxsPSIjMzU0M0E4Ii8+CjxwYXRoIGQ9Ik0xNDYgMTUuODMxM0MxNDYgMTYuODcxNyAxNDUuMTc0IDE3LjY5NTMgMTQ0LjEzMSAxNy42OTUzQzE0My4wODggMTcuNjk1MyAxNDIuMjYyIDE2Ljg3MTcgMTQyLjI2MiAxNS44MzEzQzE0Mi4yNjIgMTQuNzkxIDE0My4wODggMTQuMDEwNyAxNDQuMTMxIDE0LjAxMDdDMTQ1LjEzMSAxMy45Njc0IDE0NiAxNC43OTEgMTQ2IDE1LjgzMTNaTTE0Mi45NTcgMTQuNzkxQzE0Mi42OTcgMTUuMDUxMSAxNDIuNTY2IDE1LjQ0MTIgMTQyLjU2NiAxNS44MzEzQzE0Mi41NjYgMTYuNjk4MyAxNDMuMjYyIDE3LjM5MTggMTQ0LjEzMSAxNy4zOTE4QzE0NSAxNy4zOTE4IDE0NS42OTYgMTYuNjk4MyAxNDUuNjk2IDE1LjgzMTNDMTQ1LjY5NiAxNS4wMDc3IDE0NSAxNC4yNzA4IDE0NC4xNzQgMTQuMjcwOEMxNDMuNjUzIDE0LjI3MDggMTQzLjI2MiAxNC40NDQyIDE0Mi45NTcgMTQuNzkxWk0xNDQuODcgMTYuOTE1SDE0NC40NzlMMTQzLjkxNCAxNi4wOTE0VjE2LjkxNUgxNDMuNjA5VjE0Ljc0NzZIMTQzLjk1N0MxNDQuNDM1IDE0Ljc0NzYgMTQ0LjY1MyAxNC45NjQ0IDE0NC42NTMgMTUuMzU0NUMxNDQuNjUzIDE1LjY1NzkgMTQ0LjQ3OSAxNS44NzQ3IDE0NC4xNzQgMTUuOTYxNEwxNDQuODcgMTYuOTE1Wk0xNDQuMDQ0IDE1LjY1NzlDMTQ0LjI2MSAxNS42NTc5IDE0NC4zOTIgMTUuNTI3OSAxNDQuMzkyIDE1LjM1NDVDMTQ0LjM5MiAxNS4xMzc4IDE0NC4yNjEgMTUuMDUxMSAxNDQuMDAxIDE1LjA1MTFIMTQzLjkxNFYxNS42NTc5SDE0NC4wNDRaIiBmaWxsPSIjMzU0M0E4Ii8+Cjwvc3ZnPgo=" style="\n text-align: left;\n width: 146px;\n position: absolute;\n top: 14px;\n left: 31px;\n">\n </div>\n <div style="\n position: relative;\n top: 80px;\n left: 32px;\n font-size: 20px;\n text-align: left;\n font-weight: 700;\n letter-spacing: 0.02em;\n font-style: normal;\n line-height: 125%;\n ">Claim your FREE account and get a key in less than a minute</div>\n <ul style="\n font-size: 15px;\n font-weight: 400;\n color: #333333;\n letter-spacing: 0.01em;\n position: relative;\n left: 32px;\n top: 88px;\n line-height: 180%;\n ">\n <li><span>Access to a 30-day free trial of any of our products.</span></li>\n <li><span>Access to 24x5 support by developers via the <a href="https://support.syncfusion.com/create?utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information" style="text-decoration: none;\n color: #0D6EFD;\n font-weight: 500;">support tickets</a>, <a href="https://www.syncfusion.com/forums?utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information" style="text-decoration: none;\n color: #0D6EFD;\n font-weight: 500;">forum</a>, <a href="https://www.syncfusion.com/feedback?utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information\n " style="text-decoration: none;\n color: #0D6EFD;\n font-weight: 500;">feature & feedback page</a> and chat.</span></li>\n <li><span>200+ <a href="https://www.syncfusion.com/succinctly-free-ebooks?utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information" style="text-decoration: none;\n color: #0D6EFD;\n font-weight: 500;">ebooks </a>on the latest technologies, industry trends, and research topics.</span>\n </li>\n <li><span>Largest collection of over 7,000 flat and wireframe icons for free with Syncfusion <a href="https://www.syncfusion.com/downloads/metrostudio?utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information\n " style="text-decoration: none;\n color: #0D6EFD;\n font-weight: 500;">Metro Studio.</a></span></li>\n <li><span>Free and unlimited access to Syncfusion technical <a href="https://www.syncfusion.com/blogs/?utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information\n " style="text-decoration: none;\n color: #0D6EFD;\n font-weight: 500;">blogs</a> and <a href="https://www.syncfusion.com/resources/techportal/whitepapers?utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information" style="text-decoration: none;\n color: #0D6EFD;\n font-weight: 500;">whitepapers.</a></span></li>\n </ul>\n <div style="\n font-size: 18px;\n font-weight: 700;\n position: relative;\n line-height: 125%;\n letter-spacing: 0.02em;\n top: 90px;\n left: 32px;\n ">Syncfusion is trusted by 29,000+ businesses worldwide</div>\n <img src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODIwIiBoZWlnaHQ9IjU2IiB2aWV3Qm94PSIwIDAgODIwIDU2IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPg0KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00MjcuNjE3IDIyLjU2NTlWMjQuNzIyNkM0MjYuNTU4IDI0LjM2MzggNDI1LjM5OCAyNC4xNTQ0IDQyNC40NzQgMjQuMTU0NEM0MjMuMzMzIDI0LjE1NDQgNDIyLjY5OCAyNC40OTEyIDQyMi42OTggMjUuMDk2M0M0MjIuNjk4IDI1LjQ4MjQgNDIyLjk3NiAyNS43MzgzIDQyMy43NzMgMjYuMDg1NEw0MjUuOTE3IDI3LjAxNzRDNDI3LjYzMyAyNy43NjM5IDQyOC40OTcgMjguODUzIDQyOC40OTcgMzAuMjY4MUM0MjguNDk3IDMyLjQ1MjIgNDI2LjU0NiAzMy44MyA0MjMuNDUyIDMzLjgzQzQyMi4zMjQgMzMuODMgNDIxLjAxOCAzMy42NzM2IDQxOS42MzYgMzMuMzcwOVYzMS4xNDE2QzQyMS4wMDYgMzEuNTAyOCA0MjIuMjYyIDMxLjY5NTcgNDIzLjIzOSAzMS42OTU3QzQyNC41MTggMzEuNjk1NyA0MjUuMjAzIDMxLjM1MDYgNDI1LjIwMyAzMC43MDc0QzQyNS4yMDMgMzAuMzIwOCA0MjQuOTM1IDMwLjAzNjcgNDI0LjMyMiAyOS43NzE3TDQyMS45NzUgMjguNzU5M0M0MjAuMjM2IDI4LjAwNzggNDE5LjQzMyAyNi45OTU0IDQxOS40MzMgMjUuNTUyMUM0MTkuNDMzIDIzLjQ4MzcgNDIxLjMxNCAyMi4xNjQ5IDQyNC4yNjUgMjIuMTY0OUM0MjUuMjk4IDIyLjE2NDkgNDI2LjU3IDIyLjMxNzEgNDI3LjYxNyAyMi41NjU5VjIyLjU2NTlaTTQzMC4xNjcgMjIuMzkwOUg0MzMuNjM1VjMzLjYwMzlINDMwLjE2N1YyMi4zOTA5Wk00NDQuOTExIDIyLjM5MDlWMjQuNDQ1MUg0MzkuNjc1VjI2Ljk3NDJINDQ0LjI0OVYyOC44MzIzSDQzOS42NzVWMzEuNDU0M0g0NDQuOTc4VjMzLjYwMzlINDM2LjMwNVYyMi4zOTA5SDQ0NC45MTFaTTQ2MS4yOTQgMjIuMzkwOVYzMy42MDM5SDQ1Ny45MzlWMjYuMjIzNkw0NTQuNjUyIDMzLjY5MTVINDUyLjUzMUw0NDkuMjY2IDI2LjIyMzZWMzMuNjAzOUg0NDYuOTQ5VjIyLjM5MDlINDUxLjE4NEw0NTQuMTc4IDI5LjIxMTRMNDU3LjE1NiAyMi4zOTA5SDQ2MS4yOTRWMjIuMzkwOVpNNDcyLjU3OSAyMi4zOTA5VjI0LjQ0NTFINDY3LjMzNVYyNi45NzQySDQ3MS45MDhWMjguODMyM0g0NjcuMzM1VjMxLjQ1NDNINDcyLjYzOFYzMy42MDM5SDQ2My45NTdWMjIuMzkwOUg0NzIuNTc5Wk00ODQuNzk0IDIyLjM5MDlWMzMuNjAzOUg0ODEuMDkzTDQ3Ni45MjYgMjYuNDEyM1YzMy42MDM5SDQ3NC42MDhWMjIuMzkwOUg0NzguNDA3TDQ4Mi40ODQgMjkuNDg3NlYyMi4zOTA5SDQ4NC43OTRaTTQ5NC44NTggMjIuNTY1OVYyNC43MjI2QzQ5My44MDcgMjQuMzY2MyA0OTIuNjQgMjQuMTU0NCA0OTEuNzMyIDI0LjE1NDRDNDkwLjU3MyAyNC4xNTQ0IDQ4OS45MzkgMjQuNDg1OCA0ODkuOTM5IDI1LjA5M0M0ODkuOTM5IDI1LjQ4ODYgNDkwLjE5OCAyNS43MjUgNDkxLjAyMyAyNi4wODU5TDQ5My4xNTcgMjcuMDE3OEM0OTQuODg1IDI3Ljc3MjIgNDk1LjczOSAyOC44NTE4IDQ5NS43MzkgMzAuMjgzNUM0OTUuNzM5IDMyLjQ1NTkgNDkzLjc4NiAzMy44MzA4IDQ5MC42OTkgMzMuODMwOEM0ODkuNTY5IDMzLjgzMDggNDg4LjI1OSAzMy42NzM2IDQ4Ni44NzggMzMuMzcxN1YzMS4xNDI0QzQ4OC4yNDcgMzEuNTAyOCA0ODkuNDk5IDMxLjY5NjUgNDkwLjQ3IDMxLjY5NjVDNDkxLjc0IDMxLjY5NjUgNDkyLjQ0NCAzMS4zNTE1IDQ5Mi40NDQgMzAuNzI4NUM0OTIuNDQ0IDMwLjMxNjMgNDkyLjE5NyAzMC4wNTA0IDQ5MS41NTUgMjkuNzcyNUw0ODkuMjE4IDI4Ljc2MDFDNDg3LjQ2NyAyOC4wMDI4IDQ4Ni42NzQgMjcuMDAyIDQ4Ni42NzQgMjUuNTUzM0M0ODYuNjc0IDIzLjQ4NjIgNDg4LjU1NiAyMi4xNjY1IDQ5MS41IDIyLjE2NjVDNDkyLjUzNiAyMi4xNjUzIDQ5My44MTMgMjIuMzE3MSA0OTQuODU4IDIyLjU2NTlWMjIuNTY1OVoiIGZpbGw9IiMwMEEwQjAiLz4NCjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMzUyLjQxMyAyNi44MTlDMzUwLjk5MiAyNS4yNzU5IDM0OS42MzggMjMuODMxNSAzNDguMzQ5IDIyLjE1NzRMMzQ3LjkyIDIxLjU5OTVDMzQ5LjQwNiAyMS4zNjkzIDM1MC42OTUgMjAuMzg0OCAzNTAuNjk1IDE4Ljc0MzNDMzUwLjY5NSAxNy4yMzMxIDM0OS41MzkgMTYuMjQ4MiAzNDcuODIxIDE2LjI0ODJDMzQ2LjU5OCAxNi4yNDgyIDM0NS43MDYgMTYuMzEzNyAzNDUuMjQzIDE2LjMxMzdDMzQ0LjcxNSAxNi4zMTM3IDM0NC4yODUgMTYuMzEzNyAzNDMuNzkgMTYuMjgwOEMzNDMuODU2IDE4LjE1MjEgMzQzLjg4OSAxOC4yODM0IDM0My44ODkgMTkuNDMyMlYyMy42MzQzQzM0My44ODkgMjQuNDU1MyAzNDMuODU2IDI1LjI3NTkgMzQzLjc5IDI2LjgxODZDMzQ0LjE1MyAyNi43MjAyIDM0NC41MTcgMjYuNzIwMiAzNDQuNzgxIDI2LjcyMDJDMzQ1LjA0NSAyNi43MjAyIDM0NS40MDkgMjYuNzUzMSAzNDUuNzA2IDI2LjgxODZDMzQ1LjY0IDI1Ljc2NzkgMzQ1LjYwNyAyNC4wMjgzIDM0NS42MDcgMjMuNjM0M1YyMS4yMDUxQzM0Ny4xNiAyMy4yMDc3IDM0OS4yMDkgMjUuNjY5NSAzNTAuMDAxIDI2LjgxODZDMzUwLjM5OCAyNi43MjAyIDM1MC43MjggMjYuNzIwMiAzNTEuMTI0IDI2LjcyMDJDMzUxLjQ1NSAyNi43MjA2IDM1MS45MTggMjYuNzIwNiAzNTIuNDEzIDI2LjgxOVYyNi44MTlaTTM0OC44NzggMTkuMDA2QzM0OC44NzggMjAuMDIzNCAzNDguMzE3IDIxLjIwNTQgMzQ2Ljc5NyAyMS4yMDU0QzM0Ni40IDIxLjIwNTQgMzQ2LjAwMyAyMS4yMDU0IDM0NS42MDcgMjEuMTcyNVYxNy4wNjg4QzM0Ni4wMDMgMTYuOTcwNCAzNDYuNDk5IDE2LjkwNDYgMzQ2Ljc2MyAxNi45MDQ2QzM0OC4wODUgMTYuOTA0OSAzNDguODc4IDE3LjY2IDM0OC44NzggMTkuMDA2VjE5LjAwNlpNMzgyLjM4IDI2Ljg4NDVDMzgxLjgxOSAyNi4yOTM2IDM4MC45NiAyNS4zNDE3IDM4MC4xMzQgMjQuNDIyM0MzODAuODI4IDIzLjY2NzIgMzgxLjU1NSAyMi41NTEgMzgxLjk4NCAyMS41OTkxQzM4MS43MTkgMjEuNDY3OCAzODEuMzU2IDIxLjIwNTEgMzgxLjA5MiAyMC45NzUzQzM4MC45OTMgMjEuNzk1OSAzODAuNDMyIDIyLjg3OTIgMzc5LjYzOSAyMy44MzE1QzM3OC41MTUgMjIuNTE4NSAzNzguMjE4IDIyLjE1NzQgMzc3LjE5MyAyMC43Nzg1QzM3OC41ODEgMTkuODkyMSAzNzkuMjQyIDE4Ljg3NDMgMzc5LjI0MiAxOC4wNTM3QzM3OS4yNDIgMTcuMTAxNyAzNzguNTgxIDE2LjExNjkgMzc2Ljk2MiAxNi4xMTY5QzM3NS4yMTEgMTYuMTE2OSAzNzQuMzUyIDE3LjIwMDIgMzc0LjM1MiAxOC40ODAzQzM3NC4zNTIgMTkuMjM1NCAzNzQuNTUgMTkuODkxNyAzNzUuMzc2IDIwLjk3NTNDMzc0LjA1NCAyMS42OTc1IDM3Mi43NjYgMjIuNzQ3OSAzNzIuNzY2IDI0LjQyMjNDMzcyLjc2NiAyNi4wNjM5IDM3NC4wODcgMjYuOTE3NCAzNzUuNzA3IDI2LjkxNzRDMzc3LjE5MyAyNi45MTc0IDM3OC4xNTEgMjYuMzI2NiAzNzguOTEyIDI1LjYzNjlMMzc5LjkwMiAyNi44MTlDMzgwLjIgMjYuNzg2MSAzODAuNTMxIDI2LjcyMDYgMzgwLjg2MSAyNi43MjA2QzM4MS4zMjQgMjYuNzIwNiAzODEuODUyIDI2Ljc4NjEgMzgyLjM4IDI2Ljg4NDVWMjYuODg0NVpNMzgzLjM3MiA0MC4wMTU4QzM4MS45MTggMzguNDczIDM4MC41OTcgMzcuMDYxMiAzNzkuMzA4IDM1LjM4NzFMMzc4Ljg3OCAzNC44Mjg4QzM4MC4zMzIgMzQuNTk5MSAzODEuNjU0IDMzLjYxNSAzODEuNjU0IDMxLjk0MDFDMzgxLjY1NCAzMC40NjMyIDM4MC40OTggMjkuNDQ1NCAzNzguNzc5IDI5LjQ0NTRDMzc3LjU1NyAyOS40NDU0IDM3Ni42MzIgMjkuNTQzNSAzNzYuMTY5IDI5LjU0MzVDMzc1LjY3MyAyOS41NDM1IDM3NS4yNDQgMjkuNTQzNSAzNzQuNzQ4IDI5LjQ3NzZDMzc0LjgxNCAzMS4zODIyIDM3NC44NDggMzEuNDgwMiAzNzQuODQ4IDMyLjYyOTRWMzYuODMxMUMzNzQuODQ4IDM3LjY1MjQgMzc0LjgxNCAzOC41MDUyIDM3NC43NDggNDAuMDE1NEMzNzUuMTEyIDM5Ljk0OTYgMzc1LjQ3NSAzOS45NDk2IDM3NS43MDcgMzkuOTQ5NkMzNzYuMDA0IDM5Ljk0OTYgMzc2LjM2OCAzOS45NDk2IDM3Ni42MzIgNDAuMDE1NEMzNzYuNTY1IDM4Ljk5OCAzNzYuNTMzIDM3LjI1ODEgMzc2LjUzMyAzNi44MzExVjM0LjQzNDhDMzc4LjExOSAzNi40MDQyIDM4MC4xNjcgMzguODk5NiAzODAuOTYgNDAuMDE1NEMzODEuMzU2IDM5Ljk0OTYgMzgxLjY4NyAzOS45NDk2IDM4Mi4wODMgMzkuOTQ5NkMzODIuMzggMzkuOTUgMzgyLjg3NiAzOS45NSAzODMuMzcyIDQwLjAxNThaTTM2Mi4xNiAyNi44MTlDMzYwLjk3MSAyNS41NzE1IDM1OC44ODkgMjIuOTc4IDM1OC4wNjMgMjEuOTkzNUwzNTcuMjM3IDIwLjk3NTdDMzU4LjA5NiAxOS45NTgzIDM1OC42OSAxOS4zMzQxIDM1OS4zMTkgMTguNTc5QzM2MC4wNDUgMTcuNzkxIDM2MC43MDYgMTYuOTcwNCAzNjEuNDk5IDE2LjI0ODJDMzYxLjEzNiAxNi4zMTM3IDM2MC45MzcgMTYuMzEzNyAzNjAuNzM5IDE2LjMxMzdDMzYwLjU0MSAxNi4zMTM3IDM2MC4zNDMgMTYuMzEzNyAzNjAuMTQ0IDE2LjI0ODJDMzU5LjkxMyAxNi42MDkzIDM1OS41NSAxNy4wNjg4IDM1OS4xNTMgMTcuNTI4N0MzNTguNzU2IDE3Ljk1NTYgMzU4LjM2IDE4LjM4MjIgMzU4LjA2MyAxOC43NDMzQzM1Ny4yMzYgMTkuNjk1MiAzNTYuNzc0IDIwLjE1NDcgMzU1LjU4NSAyMS4yNzA5VjE5LjQ2NTVDMzU1LjU4NSAxOC40MTUxIDM1NS41ODUgMTcuNzI1NSAzNTUuNjUxIDE2LjI0ODJDMzU1LjMyMSAxNi4zMTM3IDM1NC45NTcgMTYuMzEzNyAzNTQuNzI2IDE2LjMxMzdDMzU0LjQ2MSAxNi4zMTM3IDM1NC4wMzIgMTYuMzEzNyAzNTMuNzY4IDE2LjI0ODJDMzUzLjgzMyAxNy44MjM5IDM1My44NjcgMTguMjgzNCAzNTMuODY3IDE5LjQzMjVWMjMuNjM0N0MzNTMuODY3IDI0LjY4NSAzNTMuODMzIDI1LjMwODggMzUzLjc2OCAyNi44MTlDMzU0LjE2NCAyNi43MjA2IDM1NC40OTUgMjYuNzIwNiAzNTQuNzI2IDI2LjcyMDZDMzU0Ljk1NyAyNi43MjA2IDM1NS4zNTMgMjYuNzUzNSAzNTUuNjUxIDI2LjgxOUMzNTUuNTg1IDI1LjE0NDkgMzU1LjU4NSAyNC4xNTk3IDM1NS41ODUgMjMuNjM0N1YyMS40MzUyQzM1Ni44MDcgMjIuODc5NiAzNTguNjkgMjUuMjQzMyAzNTkuNzQ4IDI2LjgxOUMzNjAuMTMgMjYuNzU2MyAzNjAuNTE3IDI2LjcyMzQgMzYwLjkwNSAyNi43MjA2QzM2MS4yMDIgMjYuNzIwNiAzNjEuNjY1IDI2LjcyMDYgMzYyLjE2IDI2LjgxOVYyNi44MTlaTTM3Mi42MDEgNDAuMDE1OEMzNzIuNTY4IDM5Ljg1MTkgMzcyLjUzNSAzOS43MjA2IDM3Mi41MzUgMzkuNTIzNEMzNzIuNTM1IDM5LjM5MjggMzcyLjU2OCAzOS4yMjgxIDM3Mi42MDEgMzkuMDk2NEMzNzEuMjggMzkuMTI5NyAzNjguOTAxIDM5LjE5NTIgMzY4LjM3MiAzOS4xOTUyVjM0LjY2NDlDMzY5LjY5NCAzNC42NjQ5IDM3MC45ODIgMzQuNjY0OSAzNzIuMjcgMzQuNzk2M0MzNzIuMjM4IDM0LjYzMjQgMzcyLjIwNCAzNC40Njc3IDM3Mi4yMDQgMzQuMzM2NEMzNzIuMjA0IDM0LjIwNTggMzcyLjIwNCAzNC4wNDE5IDM3Mi4yNyAzMy44NDQ3QzM3MS4zNDYgMzMuOTQyOCAzNjkuMTk4IDMzLjk3NiAzNjguMzcyIDMzLjk3NlYzMC4yNjZDMzY5LjgyNiAzMC4yNjYgMzcwLjY4NSAzMC4yNjYgMzcxLjE4IDMwLjI5OTNMMzcyLjUwMiAzMC4zNjUxQzM3Mi40MzYgMzAuMTY3OSAzNzIuNDM2IDMwLjA2OTIgMzcyLjQzNiAyOS45MDUzQzM3Mi40MzYgMjkuNzQxNCAzNzIuNDM2IDI5LjcwODEgMzcyLjUwMiAyOS40NDU4QzM3MS40MTEgMjkuNDc4MyAzNjkuOTI1IDI5LjU0MzggMzY5LjI2NCAyOS41NDM4QzM2OC44MDIgMjkuNTQzOCAzNjcuMzQ4IDI5LjUxMTMgMzY2LjU4NyAyOS40NDU4QzM2Ni42NTQgMzAuMjY2NCAzNjYuNjg2IDMxLjYxMjMgMzY2LjY4NiAzMi41NjQyVjM2Ljg2NTFDMzY2LjY4NiAzNy40ODg1IDM2Ni42MiAzOC43MzU3IDM2Ni41ODcgNDAuMDE2MkMzNjcuNTEzIDM5Ljk1MDMgMzY4LjgwMiAzOS45NTAzIDM2OS4yNjQgMzkuOTUwM0MzNzAuMDI0IDM5Ljk1IDM3MS42NDMgMzkuOTUgMzcyLjYwMSA0MC4wMTU4Wk0zNjQuNjA1IDM5LjEyOTRDMzY0LjQ0IDM4LjgwMDggMzY0LjM0MSAzOC4zMDg4IDM2NC4yNzUgMzguMDQ2MUMzNjIuOTIgMzkuMTYxOSAzNjEuOTk1IDM5LjM5MjQgMzYwLjkzOCAzOS4zOTI0QzM1OC41OTIgMzkuMzkyNCAzNTcuMzM3IDM3LjI5MTMgMzU3LjMzNyAzNC42NjQ5QzM1Ny4zMzcgMzEuNzQzNiAzNTguNzU3IDMwLjAzNjIgMzYxLjE2OSAzMC4wMzYyQzM2Mi40MjUgMzAuMDM2MiAzNjMuNjE0IDMwLjU5NDUgMzY0LjE3NiAzMS4xNTI4QzM2NC4yMDggMzAuODg5OCAzNjQuMzA4IDMwLjM2NDggMzY0LjQ3MyAzMC4wNjg4QzM2My4zMTYgMjkuNTExMyAzNjIuMjU5IDI5LjM0NjYgMzYxLjEwMiAyOS4zNDY2QzM1Ny4yMzcgMjkuMzQ2NiAzNTUuNDUzIDMxLjc0MzYgMzU1LjQ1MyAzNC44Mjg4QzM1NS40NTMgMzguMzA5MSAzNTcuNzk4IDQwLjE0NzEgMzYwLjczOSA0MC4xNDcxQzM2Mi40MjUgNDAuMTQ3MSAzNjMuODEyIDM5LjYyMjIgMzY0LjYwNSAzOS4xMjk0VjM5LjEyOTRaTTM0Mi4zMDMgMjYuODE5QzM0MC41MTkgMjMuNDA0OSAzMzguOCAxOS4xMzczIDMzNy41NzggMTYuMTE2OUgzMzcuMzhDMzM2LjU4NyAxOC4wMjA3IDMzNS4xMzMgMjEuMjcwOSAzMzQuNzM3IDIyLjE4OTlDMzM0LjI3NCAyMy4zMDYxIDMzMy4yNSAyNS41MDU2IDMzMi41ODkgMjYuODE4NkMzMzIuODAzIDI2Ljc1MzggMzMzLjAyNiAyNi43MjA2IDMzMy4yNSAyNi43MjAyQzMzMy40NDggMjYuNzIwMiAzMzMuNjEzIDI2Ljc1MzEgMzMzLjg0NSAyNi44MTg2QzMzNC4xNzUgMjUuOTMyMiAzMzQuNjM4IDI0LjgxNiAzMzUuMTMzIDIzLjYzNDNDMzM1Ljc5NCAyMy42MDE0IDMzNi4zODkgMjMuNTY4OCAzMzYuOTg0IDIzLjU2ODhDMzM3LjYxMiAyMy41Njg4IDMzOC4yNzIgMjMuNjAxNCAzMzguOTMzIDIzLjYzNDNMMzM5LjU5NCAyNS4yMUwzNDAuMjU1IDI2LjgxODZDMzQwLjcxNyAyNi43MjAyIDM0MS4wOCAyNi43MjAyIDM0MS4zMTIgMjYuNzIwMkMzNDEuNjA5IDI2LjcyMDYgMzQxLjg3MyAyNi43MjA2IDM0Mi4zMDMgMjYuODE5VjI2LjgxOVpNMzUzLjYzNiAyOS40NDU0QzM1My40MzggMjkuNTExMyAzNTMuMjczIDI5LjU0MzUgMzUzLjEwNyAyOS41NDM1QzM1Mi45MDkgMjkuNTQzNSAzNTIuNzQ0IDI5LjUxMDkgMzUyLjU0NiAyOS40NDU0QzM1Mi42NDQgMzAuNzU4NCAzNTIuNjc4IDMyLjA3MTQgMzUyLjY3OCAzMy4zNTE5VjM2LjczMzRDMzUyLjE0OSAzNi4yNzM2IDM1MC44NiAzNS4wOTE5IDM0OS4zNzQgMzMuNzEzQzM0Ny44NiAzMi4zMDc0IDM0Ni4zOTQgMzAuODUxMSAzNDQuOTc5IDI5LjM0NjZIMzQ0Ljc0OEMzNDQuNzgxIDMwLjgyNDMgMzQ0LjgxNCAzMi40IDM0NC44MTQgMzMuODExNFYzNS44Nzk5QzM0NC44MTQgMzcuNjUyOCAzNDQuODE0IDM4LjYwNDcgMzQ0LjcxNSA0MC4wMTYyQzM0NC45OCAzOS45NTAzIDM0NS4xMTIgMzkuOTUwMyAzNDUuMzEgMzkuOTUwM0MzNDUuNDQyIDM5Ljk1MDMgMzQ1LjU3NSAzOS45NTAzIDM0NS44MDYgNDAuMDE2MkMzNDUuNzQgMzguNjcwNiAzNDUuNzA3IDM2LjQ3MDggMzQ1LjcwNyAzNS44Nzk5VjMyLjU5NjhDMzQ4LjE4NSAzNC44NjI1IDM1MS4yMjQgMzcuODgyNiAzNTMuNDcxIDQwLjE0NzVIMzUzLjYwM0MzNTMuNjAzIDM4LjkzMjkgMzUzLjUzNyAzNy43MTc5IDM1My41MzcgMzYuNTA0VjM0LjYzMjdDMzUzLjUzNiAzMi40MzI1IDM1My41MzYgMzEuMzQ5MyAzNTMuNjM2IDI5LjQ0NTRaTTM0Mi41NjcgNDAuMDE1OEMzNDIuNTM0IDM5Ljg1MTkgMzQyLjUwMSAzOS43MjA2IDM0Mi41MDEgMzkuNTIzNEMzNDIuNTAxIDM5LjM5MjggMzQyLjUzNCAzOS4yMjgxIDM0Mi41NjcgMzkuMDk2NEMzNDEuMjQ2IDM5LjEyOTcgMzM4Ljg2NyAzOS4xOTUyIDMzOC4zNzEgMzkuMTk1MlYzNC42NjQ5QzMzOS42NiAzNC42NjQ5IDM0MC45NDggMzQuNjY0OSAzNDIuMjM3IDM0Ljc5NjNDMzQyLjIwNCAzNC42MzI0IDM0Mi4xNzEgMzQuNDY3NyAzNDIuMTcxIDM0LjMzNjRDMzQyLjE3MSAzNC4yMDU4IDM0Mi4xNzEgMzQuMDQxOSAzNDIuMjM3IDMzLjg0NDdDMzQxLjMxMiAzMy45NDI4IDMzOS4xOTcgMzMuOTc2IDMzOC4zNzEgMzMuOTc2VjMwLjI2NkMzMzkuNzkyIDMwLjI2NiAzNDAuNjUxIDMwLjI2NiAzNDEuMTc5IDMwLjI5OTNMMzQyLjQ2OCAzMC4zNjUxQzM0Mi40MzUgMzAuMTY3OSAzNDIuNDM1IDMwLjA2OTIgMzQyLjQzNSAyOS45MDUzQzM0Mi40MzUgMjkuNzQxNCAzNDIuNDM1IDI5LjY3NTUgMzQyLjQ2OCAyOS40NDU4QzM0MS4zNzggMjkuNDc4MyAzMzkuODkxIDI5LjU0MzggMzM5LjIzIDI5LjU0MzhDMzM4Ljc2NyAyOS41NDM4IDMzNy4zMTQgMjkuNTExMyAzMzYuNTU0IDI5LjQ0NThDMzM2LjYyIDMwLjI2NjQgMzM2LjY1MyAzMS42MTIzIDMzNi42NTMgMzIuNTY0MlYzNi44NjUxQzMzNi42NTMgMzcuNDg4NSAzMzYuNTg3IDM4LjczNTcgMzM2LjU1NCA0MC4wMTYyQzMzNy41MTIgMzkuOTUwMyAzMzguNzY3IDM5Ljk1MDMgMzM5LjIzIDM5Ljk1MDNDMzM5Ljk5IDM5Ljk1IDM0MS42NDIgMzkuOTUgMzQyLjU2NyA0MC4wMTU4VjQwLjAxNThaTTMzMS4yMDEgMjYuODE5QzMzMC42NzMgMjMuMjQwNiAzMzAuMjEgMTkuNDk4NCAzMjkuODQ3IDE2LjExNjlDMzI5Ljc0OCAxNi4xNDk4IDMyOS43MTQgMTYuMTQ5OCAzMjkuNjQ5IDE2LjExNjlDMzI4Ljk1NSAxNy4zMzE1IDMyOC4xNjIgMTguNjQ0NSAzMjcuNTY3IDE5LjU2MzlDMzI3LjAwNiAyMC40NTAzIDMyNi4zNDUgMjEuNTAwNyAzMjUuNTg1IDIyLjYxNjlDMzIzLjk5OSAyMC41ODE3IDMyMi4zNDcgMTguMDIxMSAzMjEuMjU2IDE2LjExNjlDMzIxLjE5IDE2LjE0OTggMzIxLjE1NyAxNi4xMTY5IDMyMS4wOTEgMTYuMTE2OUMzMjAuNzI4IDE5LjQ5OCAzMjAuMjMyIDIzLjI3MzIgMzE5LjczNiAyNi44MTlDMzIwLjAwMSAyNi43MjA2IDMyMC4xNjYgMjYuNzIwNiAzMjAuMjk4IDI2LjcyMDZDMzIwLjQ5NiAyNi43MjA2IDMyMC42MjggMjYuNzUzNSAzMjAuODU5IDI2LjgxOUMzMjAuOTkyIDI0LjQ1NTMgMzIxLjI1NiAyMi4xMjQ0IDMyMS41NTMgMTkuNjYyM0MzMjIuODQyIDIxLjUzMzYgMzIzLjk2NSAyMy4xNDIyIDMyNS4yMjEgMjQuODQ5M0MzMjYuMjc4IDIzLjIwNzcgMzI3LjM2OCAyMS40MzQ4IDMyOC41NTggMTkuNjI5NEMzMjguODg4IDIyLjE1NyAzMjkuMTg2IDI0LjQ1NTMgMzI5LjM1MSAyNi44MTlDMzI5Ljc4IDI2LjcyMDYgMzMwLjA3OCAyNi43MjA2IDMzMC4yNzYgMjYuNzIwNkMzMzAuNTQgMjYuNzIwNiAzMzAuODA1IDI2LjcyMDYgMzMxLjIwMSAyNi44MTlWMjYuODE5Wk0zMzQuOTY4IDMyLjIwMjhDMzM0Ljk2OCAzMC4yOTg5IDMzMy40NDggMjkuNDQ1NCAzMzEuNTk4IDI5LjQ0NTRDMzMwLjc3MiAyOS40NDU0IDMyOS44OCAyOS41NDM1IDMyOS4yNTIgMjkuNTQzNUMzMjkuMDIxIDI5LjU0MzUgMzI4LjUyNSAyOS41NDM1IDMyNy45OTcgMjkuNDc3NkMzMjguMDMgMzAuNTI4MyAzMjguMDk2IDMxLjQxNDggMzI4LjA5NiAzMi40MzIyVjM2LjkyOTVDMzI4LjA5NiAzNy45MTQ4IDMyOC4wMyAzOC45OTggMzI3Ljk5NyA0MC4wMTU0QzMyOC40MjYgMzkuOTQ5NiAzMjguNzI0IDM5Ljk0OTYgMzI4LjkyMiAzOS45NDk2QzMyOS4xNTMgMzkuOTQ5NiAzMjkuNDg0IDM5Ljk0OTYgMzI5Ljg4IDQwLjAxNTRDMzI5LjgxNSAzOS4wMzE5IDMyOS43ODIgMzguMDQ2NSAzMjkuNzgxIDM3LjA2MDlWMzUuNDJDMzMwLjE0NSAzNS40NTI2IDMzMC41MDggMzUuNDUyNiAzMzAuOTA1IDM1LjQ1MjZDMzMyLjgyIDM1LjQ1MjYgMzM0Ljk2OCAzNC43MzA0IDMzNC45NjggMzIuMjAyOFYzMi4yMDI4Wk0zMjYuMDE0IDM2Ljg5NzNDMzI2LjAxNCAzNS4yNTU4IDMyNC45MjQgMzQuNTMzNiAzMjMuMDQgMzMuNzQ1NkMzMjEuNjg2IDMzLjE4OCAzMjAuOTkyIDMyLjY5NTYgMzIwLjk5MiAzMS42NDQ1QzMyMC45OTIgMzAuNjYgMzIxLjc1MiAzMC4wMzYyIDMyMy4wMDggMzAuMDM2MkMzMjMuODM0IDMwLjAzNjIgMzI0LjU2MSAzMC4zMzE1IDMyNS4yMjIgMzAuODU2OEMzMjUuMjg3IDMwLjQ5NTcgMzI1LjQ1MyAzMC4xMzQ3IDMyNS42NTEgMjkuODM5NEMzMjQuODU4IDI5LjQ3ODMgMzIzLjk5OSAyOS4zNDcgMzIzLjA3NCAyOS4zNDdDMzIwLjM2NSAyOS4zNDcgMzE5LjUwNSAzMC44OTA1IDMxOS41MDUgMzIuMjAzNUMzMTkuNTA1IDMzLjgxMTggMzIwLjI5OSAzNC41NjcyIDMyMi4zNDcgMzUuMzU1M0MzMjMuNjM2IDM1Ljg0NyAzMjQuMjk2IDM2LjQ3MTEgMzI0LjI5NiAzNy41NTQ0QzMyNC4yOTYgMzguNzAzNSAzMjMuNDM3IDM5LjQyNTcgMzIyLjI0OCAzOS40MjU3QzMyMS41NTQgMzkuNDI1NyAzMjAuMzY1IDM5LjA2NDYgMzE5LjUzOSAzOC4zMDk5QzMxOS41MDUgMzguNzM2MSAzMTkuNTA1IDM5LjEzMDQgMzE5LjM3MyAzOS40OTE1QzMxOS45MDIgMzkuNzU0NiAzMjEuMTI1IDQwLjE0NzkgMzIyLjIxNSA0MC4xNDc5QzMyNC45OSA0MC4xNDcxIDMyNi4wMTQgMzguNDM5NyAzMjYuMDE0IDM2Ljg5NzNWMzYuODk3M1pNMzc4LjE1MiAxNy45ODgyQzM3OC4xNTIgMTguOTczIDM3Ny40NTggMTkuNjYyMyAzNzYuNzY0IDIwLjIyMDJDMzc2LjMwMSAxOS41NjM5IDM3NS43NCAxOC42NzcxIDM3NS43NCAxNy45ODgyQzM3NS43NCAxNy4yMzMxIDM3Ni4yNjggMTYuODA2MSAzNzYuOTk1IDE2LjgwNjFDMzc3Ljk4NyAxNi44MDY1IDM3OC4xNTIgMTcuNjkyNiAzNzguMTUyIDE3Ljk4ODJWMTcuOTg4MlpNMzc4LjQ4MiAyNS4wMTMyQzM3OC4xMTkgMjUuMzQxNyAzNzcuMjYgMjUuOTY1NSAzNzYuNTMzIDI1Ljk2NTVDMzc1LjU3NCAyNS45NjU1IDM3NC40MTggMjUuMjc1OSAzNzQuNDE4IDIzLjc5ODZDMzc0LjQxOCAyMi40ODU1IDM3NS4yNzcgMjEuODk0NyAzNzUuODA2IDIxLjU2NjVDMzc3LjAyOCAyMy4yNDA2IDM3Ny4wOTUgMjMuMzM5MSAzNzguNDgyIDI1LjAxMzJaTTM3OS44MDQgMzIuMjAyOEMzNzkuODA0IDMzLjI1MzUgMzc5LjI3NSAzNC40MDI2IDM3Ny43NTUgMzQuNDAyNkMzNzcuMzI2IDM0LjQwMjYgMzc2LjkyOSAzNC40MDI2IDM3Ni41MzMgMzQuMzY5M1YzMC4yNjU2QzM3Ni45MjkgMzAuMTY3NiAzNzcuNDI1IDMwLjEzNDMgMzc3LjcyMiAzMC4xMzQzQzM3OS4wMTEgMzAuMTM0MyAzNzkuODA0IDMwLjg4OTggMzc5LjgwNCAzMi4yMDI4Wk0zMzguNjAyIDIyLjgxNDFDMzM3LjkwOSAyMi44NDY2IDMzNy41NDUgMjIuODQ2NiAzMzcuMDgyIDIyLjg0NjZDMzM2LjUyMSAyMi44NDY2IDMzNi4xOSAyMi44NDY2IDMzNS40NjMgMjIuODE0MUwzMzcuMDgyIDE5LjAwNkwzMzguNjAyIDIyLjgxNDFaTTMzMy4xNTEgMzIuMzAwOEMzMzMuMTUxIDMzLjgxMTEgMzMyLjI1OCAzNC43OTU5IDMzMC44MDUgMzQuNzk1OUMzMzAuNTA3IDM0Ljc5NTkgMzMwLjE3NyAzNC43OTU5IDMyOS43OCAzNC43MzAxVjMwLjIzMjdDMzMwLjI0MyAzMC4xNjY5IDMzMC42MzkgMzAuMTMzOSAzMzEuMDM2IDMwLjEzMzlDMzMyLjQyNCAzMC4xMzQzIDMzMy4xNTEgMzEuMDIxMSAzMzMuMTUxIDMyLjMwMDhaTTM2OS41MjggMjMuNjY3NkMzNjkuNTI4IDIyLjAyNiAzNjguNDM4IDIxLjMwMzkgMzY2LjU1NSAyMC41MTYyQzM2NS4yIDE5Ljk1ODMgMzY0LjUwNiAxOS40OTg4IDM2NC41MDYgMTguNDE1MUMzNjQuNTA2IDE3LjQ2MzIgMzY1LjI2NiAxNi44MDY1IDM2Ni41MjEgMTYuODA2NUMzNjcuMzQ4IDE2LjgwNjUgMzY4LjA3NSAxNy4xMDE3IDM2OC43MzUgMTcuNjI3NUMzNjguODAyIDE3LjI2NjQgMzY4Ljk2NyAxNi45MDQ5IDM2OS4xMzEgMTYuNjQyMkMzNjguMzcyIDE2LjI4MTEgMzY3LjQ3OSAxNi4xMTcyIDM2Ni41ODcgMTYuMTE3MkMzNjMuOTQ0IDE2LjExNzIgMzYyLjk4NiAxNy42NiAzNjIuOTg2IDE5LjAwNkMzNjIuOTg2IDIwLjU4MTcgMzYzLjgxMiAyMS4zMzY4IDM2NS44NjEgMjIuMTI0NEMzNjcuMTQ5IDIyLjYxNjkgMzY3LjgxIDIzLjI0MDYgMzY3LjgxIDI0LjM1NjhDMzY3LjgxIDI1LjQ3MyAzNjYuOTUxIDI2LjE5NTIgMzY1Ljc2MiAyNi4xOTUyQzM2NS4wMzUgMjYuMTk1MiAzNjMuODc5IDI1LjgzNDEgMzYzLjA1MiAyNS4xMTE5QzM2My4wMiAyNS41Mzg5IDM2Mi45ODYgMjUuOSAzNjIuODg3IDI2LjI2MTFDMzYzLjM4MyAyNi41MjM4IDM2NC42MDYgMjYuOTE3NCAzNjUuNzI5IDI2LjkxNzRDMzY4LjUwNCAyNi45MTc0IDM2OS41MjggMjUuMjQzMyAzNjkuNTI4IDIzLjY2NzZWMjMuNjY3NloiIGZpbGw9IiMwMzY1NTUiLz4NCjxwYXRoIGQ9Ik02NDAuNDE2IDIwLjU1NzNDNjM4LjY3MSAxOS44MzU0IDYzNy42MzEgMTkuNTU1MSA2MzYuNTk4IDE5LjU1NTFDNjM1LjUxNCAxOS41NTUxIDYzNC44MTkgMTkuOTE3IDYzNC44MTkgMjAuNDc2NUM2MzQuODE5IDIyLjE2NDUgNjQwLjk2MiAyMS42ODkzIDY0MC45NjIgMjUuNTkzNkM2NDAuOTYyIDI3Ljc0NjQgNjM5LjAyNCAyOC45OTc0IDYzNi4zMzIgMjguOTk3NEM2MzQuMjIgMjguOTk3NCA2MzMuMTggMjguNDg4IDYzMS45ODMgMjcuOTExNlYyNS40OTYyQzYzMy43MSAyNi41NjM1IDYzNC43NjggMjYuOTQwMSA2MzYuMTAxIDI2Ljk0MDFDNjM3LjI1NiAyNi45NDAxIDYzNy44NzkgMjYuNTYzNSA2MzcuODc5IDI1LjkwNjNDNjM3Ljg3OSAyNC4wNjg1IDYzMS43MzcgMjQuNzQxNSA2MzEuNzM3IDIwLjcyMTNDNjMxLjczNyAxOC43ODI3IDYzMy41MzQgMTcuNDk5IDYzNi4zMzIgMTcuNDk5QzYzNy42ODIgMTcuNDk5IDYzOC45MDEgMTcuNzYzNSA2NDAuNDE2IDE4LjM3MDdWMjAuNTU3M1pNNjQ5LjAxNiAyOC40ODQxQzY0Ny45OTIgMjguODMwNiA2NDcuMTI2IDI4Ljk5NTQgNjQ2LjI2MiAyOC45OTU0QzY0My40MDIgMjguOTk1NCA2NDEuNTUyIDI3LjQ0MjIgNjQxLjU1MiAyNS4wNzkyQzY0MS41NTIgMjIuNzU5NCA2NDMuNDczIDIxLjEyMDIgNjQ2LjE1NiAyMS4xMjAyQzY0Ni45ODUgMjEuMTIwMiA2NDguMDQ0IDIxLjMxODIgNjQ4Ljg5MSAyMS42MTIzVjIzLjM4ODFDNjQ4LjIyMSAyMy4wNTYyIDY0Ny40NDQgMjIuODc0MSA2NDYuODA5IDIyLjg3NDFDNjQ1LjI3MyAyMi44NzQxIDY0NC4yODYgMjMuNzM0MyA2NDQuMjg2IDI1LjA2MTlDNjQ0LjI4NiAyNi40MDggNjQ1LjI1NiAyNy4yOTQgNjQ2LjcyIDI3LjI5NEM2NDcuMzM3IDI3LjI5NCA2NDcuODg2IDI3LjE2MjMgNjQ5LjAxNiAyNi43NjhMNjQ5LjAxNiAyOC40ODQxWk02NzEuMzIgMjQuMjA5QzY3MS40MjUgMjMuMTU0OCA2NzIuMDgxIDIyLjU0NTcgNjczLjA4NyAyMi41NDU3QzY3NC4wNzYgMjIuNTQ1NyA2NzQuNzQ2IDIzLjE3MjEgNjc0Ljg1MiAyNC4yMDlINjcxLjMyWk02NzIuOTEgMjEuMTIyOUM2NzAuNCAyMS4xMjI5IDY2OC42MTQgMjIuNzc1NSA2NjguNjE0IDI1LjEwMTJDNjY4LjYxNCAyNy40NDQxIDY3MC40NzEgMjguOTk1NCA2NzMuMzM1IDI4Ljk5NTRDNjczLjk3IDI4Ljk5NTQgNjc1LjUwNCAyOC45OTU0IDY3Ni45NjYgMjcuOTg3VjI2LjUwNDJDNjc1Ljc2OSAyNy4yOTkzIDY3NC45NzcgMjcuNTczMSA2NzMuOTU1IDI3LjU3MzFDNjcyLjM0MSAyNy41NzMxIDY3MS4zNTQgMjYuNzk0OSA2NzEuMjY1IDI1LjQ2NjZINjc3LjExQzY3Ny4yMzIgMjIuNjkzOSA2NzUuMjc5IDIxLjEyMjkgNjcyLjkxIDIxLjEyMjlWMjEuMTIyOVpNNjc4LjA5OSAyOC44NTcySDY4MC42NTRWMjEuMjYyN0g2NzguMDk5VjI4Ljg1NzJaTTY4Ny43NjcgMjYuNzgxNUM2ODcuMjM0IDI3LjIyODEgNjg2Ljc5MiAyNy40MDcyIDY4Ni4yNDYgMjcuNDA3MkM2ODUuMDQzIDI3LjQwNzIgNjg0LjI4MSAyNi40ODM4IDY4NC4yODEgMjUuMTAwNEM2ODQuMjgxIDIzLjU4NDEgNjg1LjA0MyAyMi43MTAxIDY4Ni4zMzEgMjIuNzEwMUM2ODYuNzkyIDIyLjcxMDEgNjg3LjM5NCAyMi45MDggNjg3Ljc2NyAyMy4xNTU5VjI2Ljc4MTVaTTY4Ny43NjcgMTcuNjM5MVYyMS41OTU4QzY4Ny4wNzYgMjEuMjg0NyA2ODYuMzg4IDIxLjEyMDIgNjg1LjY0NCAyMS4xMjAyQzY4My4zMTMgMjEuMTIwMiA2ODEuNyAyMi43MjY2IDY4MS43IDI1LjA1MDdDNjgxLjcgMjcuMzI0OCA2ODMuMzEzIDI4Ljk5NzQgNjg1LjUgMjguOTk3NEM2ODYuMzY3IDI4Ljk5NzQgNjg3LjAzNyAyOC43ODU2IDY4Ny43NjcgMjguMjQzNVYyOC44NTQ5SDY5MC4zMjJWMTcuNjM5MUg2ODcuNzY3Wk02OTQuMTA1IDI0LjIwOUM2OTQuMjExIDIzLjE1NDggNjk0Ljg2NCAyMi41NDU3IDY5NS44NjggMjIuNTQ1N0M2OTYuODU4IDIyLjU0NTcgNjk3LjUzNSAyMy4xNzIxIDY5Ny42NDEgMjQuMjA5SDY5NC4xMDVaTTY5NS42OTQgMjEuMTIyOUM2OTMuMTg0IDIxLjEyMjkgNjkxLjQgMjIuNzc1NSA2OTEuNCAyNS4xMDEyQzY5MS40IDI3LjQ0NDEgNjkzLjI1OSAyOC45OTU0IDY5Ni4xMTkgMjguOTk1NEM2OTYuNzUzIDI4Ljk5NTQgNjk4LjI5IDI4Ljk5NTQgNjk5Ljc1NSAyNy45ODdWMjYuNTA0MkM2OTguNTU3IDI3LjI5OTMgNjk3Ljc2MyAyNy41NzMxIDY5Ni43MzYgMjcuNTczMUM2OTUuMTMxIDI3LjU3MzEgNjk0LjE0IDI2Ljc5NDkgNjk0LjA1MSAyNS40NjY2SDY5OS44OTRDNzAwLjAxNSAyMi42OTM5IDY5OC4wNjEgMjEuMTIyOSA2OTUuNjk0IDIxLjEyMjkiIGZpbGw9IiMwMDlFNEQiLz4NCjxwYXRoIGQ9Ik03MDMuNzIxIDIzLjQzNjhINzAzLjc1OEM3MDQuNTE3IDIxLjg1NjIgNzA1LjM2NiAyMS4xMTUgNzA2LjM1MiAyMS4xMTVDNzA2Ljg2MiAyMS4xMTUgNzA3LjMwMyAyMS4yOTY0IDcwOC4wNDQgMjEuODA3Nkw3MDcuMzQxIDIzLjkxMzNDNzA2LjY3IDIzLjUxODYgNzA2LjIyOSAyMy4zNTM1IDcwNS44MjMgMjMuMzUzNUM3MDQuODg2IDIzLjM1MzUgNzA0LjI4NiAyNC4xNzc1IDcwMy43MjEgMjUuNTcwNFYyOC44NDY2SDcwMS4xNjJWMjEuMjU0MUg3MDMuNzIxVjIzLjQzNjhaTTY4MC43NzUgMTguMDY3NEM2ODEuMDE1IDE4LjY1NzUgNjgwLjU4MyAxOS40ODA1IDY3OS44MTQgMTkuOTA0QzY3OS4wNDEgMjAuMzI3MSA2NzguMjI0IDIwLjE5MjggNjc3Ljk4NiAxOS42MDI3QzY3Ny43NDMgMTkuMDExNyA2NzguMTczIDE4LjE4NzcgNjc4Ljk0NSAxNy43NjY2QzY3OS43MTYgMTcuMzQxMSA2ODAuNTMzIDE3LjQ3NTkgNjgwLjc3NSAxOC4wNjc0WiIgZmlsbD0iIzAwOUU0RCIvPg0KPHBhdGggZD0iTTY1OC4yMiAyNC4wMjMxQzY1OC4yMiAyMS45NjUxIDY1Ni43MTkgMjEuMTIyNiA2NTUuMjM5IDIxLjEyMjZDNjU0LjIzMiAyMS4xMjI2IDY1My40MDQgMjEuNTE4NCA2NTIuNjY0IDIyLjM5MjFINjUyLjYyOVYxNy42MzkySDY1MC4wNzFWMjguODM1M0g2NTIuNjI5VjI0LjAyMzFDNjUzLjIyOCAyMy4yMTYxIDY1My43MzggMjIuODcxMSA2NTQuMzM4IDIyLjg3MTFDNjU1LjEzNCAyMi44NzExIDY1NS42NjIgMjMuMzk4NiA2NTUuNjYyIDI0LjUzMjlWMjcuMjAwOEM2NTYuNTIgMjYuNzg5NiA2NTcuMzkzIDI2LjUzNzQgNjU4LjIyIDI2LjQ0MzhWMjQuMDIzMVpNNjY0LjYzNiAyMS4xMTk5QzY2My41OTQgMjEuMTE5OSA2NjIuNzk5IDIxLjQ4MTEgNjYxLjk4NCAyMi4zNDkzVjIxLjI2MjRINjU5LjQyOFYyNi40MjM0QzY2MC4zMTMgMjYuNTA1OCA2NjEuNDQzIDI2Ljg4NDcgNjYxLjk4NCAyNy41MTA0VjIzLjk2MzRDNjYyLjY1NyAyMy4wMjMyIDY2My4xMzQgMjIuNzA5NyA2NjMuNzcgMjIuNzA5N0M2NjQuNDk0IDIyLjcwOTcgNjY1LjA0NSAyMy4xNTU2IDY2NS4wNDUgMjQuMjI2NFYyOC44MzcySDY2Ny42MDJWMjQuMDI4OUM2NjcuNjAyIDIxLjc5MjYgNjY1LjkwOCAyMS4xMTk5IDY2NC42MzYgMjEuMTE5OVYyMS4xMTk5Wk02NjkuMDE1IDMxLjAxODFINjY2LjA0M1YzMi45ODY0SDY2OC45MDlWMzMuODMxMkg2NjYuMDQzVjM1Ljg2MTlINjY5LjEwM1YzNi43MDU1SDY2NS4wNDZWMzAuMTc1Mkg2NjkuMDE1TDY2OS4wMTUgMzEuMDE4MVpNNjcxLjQ0MiAzNi43MDkzSDY3Mi4zNTJWMzAuMTczM0g2NzEuNDQyVjM2LjcwOTNaTTY3Ni44NTkgMzMuMDQ4NEM2NzcuNTA0IDMzLjA0ODQgNjc3LjkwNCAzMy40NjMxIDY3Ny45MzUgMzQuMTE0Mkg2NzUuNjE2QzY3NS43NDIgMzMuNDM0MiA2NzYuMTYxIDMzLjA0ODQgNjc2Ljg1OSAzMy4wNDg0Wk02NzUuNiAzNC42ODFINjc4Ljg0MkM2NzguODQyIDMzLjA4NjkgNjc4LjA2MiAzMi4zMTggNjc2LjgzOCAzMi4zMThDNjc1LjU2OSAzMi4zMTggNjc0LjY4OCAzMy4xOTI0IDY3NC42ODggMzQuNDk2OUM2NzQuNjg4IDM1LjY4OSA2NzUuNDg0IDM2Ljc4OTggNjc2LjkxNyAzNi43ODk4QzY3Ny42OTggMzYuNzg5OCA2NzguMjAzIDM2LjYyODEgNjc4Ljc2MyAzNi4yODJWMzUuNDU2QzY3OC4yMjIgMzUuNzg1NiA2NzcuNjk4IDM1Ljk3NTggNjc3LjE0NyAzNS45NzU4QzY3Ni4yNjUgMzUuOTc1OCA2NzUuNzQyIDM1LjUzNSA2NzUuNiAzNC42ODA2VjM0LjY4MVpNNjg0Ljc4NiAzMy41MzA5QzY4NC4yNjMgMzMuMTk2NiA2ODMuOTE0IDMzLjA5ODUgNjgzLjUxNSAzMy4wOTg1QzY4Mi42ODIgMzMuMDk4NSA2ODIuMTA1IDMzLjY5NDUgNjgyLjEwNSAzNC41NjdDNjgyLjEwNSAzNS40NTYgNjgyLjcxOSAzNS45OTE2IDY4My42NjggMzUuOTkxNkM2ODQuMDU4IDM1Ljk5MTYgNjg0LjQzIDM1Ljg5NzMgNjg0Ljg4OCAzNS43MDU5VjM2LjU0MjZDNjg0LjU4MiAzNi42Nzc0IDY4My45OTcgMzYuNzg5OCA2ODMuNTE1IDM2Ljc4OThDNjgyLjEzNiAzNi43ODk4IDY4MS4xOCAzNS45MDYyIDY4MS4xOCAzNC42NDMyQzY4MS4xOCAzMy4yMTc4IDY4Mi4wNTQgMzIuMzE4IDY4My40NTMgMzIuMzE4QzY4My45ODcgMzIuMzE4IDY4NC4zNDYgMzIuNDMzOSA2ODQuNzg3IDMyLjYxNDVMNjg0Ljc4NiAzMy41MzA5Wk02ODguOTM0IDMyLjQwMDRINjkwLjM5NVYzMy4xNjUxSDY4OC45MzRWMzUuMzc1MkM2ODguOTM0IDM1Ljg4MTEgNjg5LjMyNyAzNi4wMjc0IDY4OS41OTMgMzYuMDI3NEM2ODkuOTIyIDM2LjAyNzQgNjkwLjI2MiAzNS45MiA2OTAuNjMgMzUuNzA3OVYzNi41MDM3QzY5MC4zMSAzNi42Njc4IDY4OS44MiAzNi43ODk4IDY4OS41MTkgMzYuNzg5OEM2ODguNTI4IDM2Ljc4OTggNjg4LjAyNyAzNi4yMTYxIDY4OC4wMjcgMzUuNDM5MVYzMy4xNjUxSDY4Ny4yMjRWMzMuMDcwM0w2ODguOTM0IDMxLjUxMDJWMzIuNDAwNFpNNjkzLjg3NiAzMi40MDA0VjMzLjM5NjlINjkzLjg5NUM2OTQuMzU5IDMyLjYzNDUgNjk0LjggMzIuMzE4IDY5NS4yMyAzMi4zMThDNjk1LjYwMSAzMi4zMTggNjk1Ljk0NyAzMi40ODAxIDY5Ni4zMjkgMzIuODE2Nkw2OTUuODQ3IDMzLjU2NDRDNjk1LjU3IDMzLjMwOTEgNjk1LjIxMSAzMy4xMzMxIDY5NC45OTUgMzMuMTMzMUM2OTQuMzY4IDMzLjEzMzEgNjkzLjg3NiAzMy43MjY4IDY5My44NzYgMzQuNDYyNlYzNi43MDkzSDY5Mi45NjdWMzIuNDAwNEg2OTMuODc2Wk03MDUuNjU3IDMzLjUzMDlDNzA1LjEzMSAzMy4xOTY2IDcwNC43ODIgMzMuMDk4NSA3MDQuMzgxIDMzLjA5ODVDNzAzLjU0OSAzMy4wOTg1IDcwMi45NzcgMzMuNjk0NSA3MDIuOTc3IDM0LjU2N0M3MDIuOTc3IDM1LjQ1NiA3MDMuNTkyIDM1Ljk5MTYgNzA0LjUzNSAzNS45OTE2QzcwNC45MjUgMzUuOTkxNiA3MDUuMjk1IDM1Ljg5NzMgNzA1Ljc2IDM1LjcwNTlWMzYuNTQyNkM3MDUuNDQ3IDM2LjY3NzQgNzA0Ljg2MiAzNi43ODk4IDcwNC4zOCAzNi43ODk4QzcwMy4wMDQgMzYuNzg5OCA3MDIuMDQ0IDM1LjkwNjIgNzAyLjA0NCAzNC42NDMyQzcwMi4wNDQgMzMuMjE3OCA3MDIuOTIyIDMyLjMxOCA3MDQuMzIgMzIuMzE4QzcwNC44NTUgMzIuMzE4IDcwNS4yMTIgMzIuNDMzOSA3MDUuNjU3IDMyLjYxNDVMNzA1LjY1NyAzMy41MzA5Wk02OTguNzQyIDM2LjcwOTNINjk5LjY1MlYzMi40MDA4SDY5OC43NDJWMzYuNzA5M1oiIGZpbGw9IiMwMDlFNEQiLz4NCjxwYXRoIGQ9Ik02OTkuNjg0IDMwLjg1MjVDNjk5Ljc3MyAzMS4wNjA0IDY5OS42MTggMzEuMzU0NCA2OTkuMzQ0IDMxLjUwNDFDNjk5LjA2OCAzMS42NTQzIDY5OC43NzYgMzEuNjA2MiA2OTguNjkzIDMxLjM5NzhDNjk4LjYxIDMxLjE4NzQgNjk4Ljc2MSAzMC44OTU4IDY5OS4wMzggMzAuNzQ1NkM2OTkuMzExIDMwLjU5MzUgNjk5LjYwMSAzMC42NDIxIDY5OS42ODQgMzAuODUyNVYzMC44NTI1Wk02NTguOTQgMzEuMjAwOUM2NTguNzc5IDMxLjIwMDkgNjU4LjcxMSAzMS4yMjU1IDY1OC42NDYgMzEuMjkzOEM2NTguNjIgMzEuMzIwMyA2NTguNjEgMzEuMzQ3MiA2NTguNiAzMS40MDExTDY1Ny43ODQgMzQuMjg3QzY1Ny41OTMgMzUuMjk5MiA2NTYuMjU5IDM2LjMwOTkgNjU0LjUyMSAzNi4zMDk5SDY1Mi4xMDRMNjUyLjUyMyAzNC44MjdINjU0LjA3NkM2NTQuMjM0IDM0LjgyNyA2NTQuMzU4IDM0Ljc3MjEgNjU0LjQ2MiAzNC42NjQzQzY1NC41IDM0LjYyMjUgNjU0LjU1IDM0LjU1NyA2NTQuNTU2IDM0LjQ4OTZMNjU1LjIwMSAzMS45NjgxQzY1NS4zOTEgMzAuOTU1NSA2NTYuNTM4IDI5LjgzNjkgNjU4LjI3NiAyOS44MzY5SDY2MC43NTFMNjYwLjQzNSAzMS4yMDA5SDY1OC45NFpNNjU5LjQ5NyAzMi45NTk2TDY1OS43NzMgMzIuMDI1OUg2NjIuMjg4QzY2Mi41OTggMzAuNjcyIDY2Mi4zNTQgMjkuNDE3NyA2NjEuNDczIDI4LjU5NjFDNjU5LjY4OSAyNi45MzMyIDY1NS45NTcgMjcuNDk4MyA2NTMuMTc3IDI5Ljk3NzlDNjUyLjc0MyAzMC4zNjMgNjUyLjM3NiAzMC43NzkzIDY1Mi4wNDIgMzEuMjA0OEg2NTMuNTU2TDY1My4yMDQgMzIuMTQwNEg2NTEuMzk1QzY1MS4yMjIgMzIuNDM1NCA2NTEuMDYgMzIuNzI4MSA2NTAuOTM2IDMzLjAyNUg2NTMuMDgxTDY1Mi43MzcgMzMuOTYwN0g2NTAuNjNDNjUwLjI2OSAzNS4zOTAxIDY1MC40OTkgMzYuNzIzMyA2NTEuNDA2IDM3LjU2OTlDNjUzLjE2NyAzOS4yMTE2IDY1Ni44ODggMzguNjM0NiA2NTkuNjY3IDM2LjE1NTRDNjYwLjE1MyAzNS43MjQyIDY2MC41NTUgMzUuMjU4NyA2NjAuOTE4IDM0Ljc4MDhINjU4Ljk3M0w2NTkuMjY5IDMzLjg0NzFINjYxLjU0M0M2NjEuNzEgMzMuNTUwMSA2NjEuODYzIDMzLjI1NjUgNjYxLjk4MyAzMi45NTk2SDY1OS40OTdaIiBmaWxsPSIjMDA5RTREIi8+DQo8ZyBjbGlwLXBhdGg9InVybCgjY2xpcDBfNThfMTExKSI+DQo8cGF0aCBkPSJNNzc1LjA2OCA0MS4yMjc0Qzc2Ni4yODUgNDIuMDQ2MyA3NTcuMTMxIDQwLjc1NjQgNzU1Ljg0OCAzMy44MTlDNzU1LjIyMSAzMC4zOTkgNzU2Ljc2NSAyNi43NzI1IDc1OC44MSAyNC41MTg0VjIzLjMxNDhDNzU1LjEyNiAyNi41OCA3NTMuMTMgMzAuNzExNSA3NTQuMjggMzUuNTkyQzc1NS43NDggNDEuODUxOCA3NjMuNjAzIDQ1LjM5NjcgNzc1LjU5NSA0NC4yMTk1Qzc4MC4zNDIgNDMuNzU0NSA3ODYuNTUgNDIuMjEyIDc5MC44NjkgMzkuODE0NFYzNi40MTA5Qzc4Ni45NDkgMzguNzcxMyA3ODAuNDY4IDQwLjcyMTEgNzc1LjA2OCA0MS4yMjc0VjQxLjIyNzRaTTc5OC4yMDUgMjMuMjMzNUM3OTYuMTIyIDEyLjk1MzMgNzc2LjM3MyAxMi4zMDE2IDc2My42NDMgMjAuMTMzOFYyMC45OTg5Qzc3Ni4zNTkgMTQuMzkxNSA3OTQuMzk1IDE0LjQzMTcgNzk2LjAzNyAyMy45MDE2Qzc5Ni41ODkgMjcuMDM0MiA3OTQuODQzIDMwLjI5NzggNzkxLjcyMyAzMi4xNzdWMzQuNjM0MkM3OTUuNDc2IDMzLjI0MzIgNzk5LjMyNCAyOC43NDQyIDc5OC4yMDUgMjMuMjMzNVYyMy4yMzM1WiIgZmlsbD0iIzBFN0RDMiIvPg0KPHBhdGggZD0iTTc5MC4xNTkgMjEuNzM2OEg3ODcuODU2VjMyLjEwM0M3ODcuODU2IDMzLjMxNzkgNzg4LjQzNyAzNC4zNzQ0IDc5MC4xNTkgMzQuNTQzMlYyMS43MzY4Wk03NjIuNzM5IDI1LjUyMTdINzYwLjQzMkw3NjAuNDMxIDMyLjI5NDNDNzYwLjQzMSAzMy41MTM0IDc2MS4wMTMgMzQuNTY4OCA3NjIuNzM5IDM0LjczNDRWMjUuNTIxN1YyNS41MjE3Wk03NjAuNDMyIDIyLjA1MjFINzYyLjczMlYyNC4yNTg0SDc2MC40MzJWMjIuMDUyMVpNNzc2LjUzIDM0LjYyNzJDNzc0LjY2NiAzNC42MjcyIDc3My44NzcgMzMuMzE3NyA3NzMuODc3IDMyLjAyOFYyMy4wMzU1SDc3Ni4xNlYyNS41MjE3SDc3Ny44NzlWMjcuMzg1M0g3NzYuMTZWMzEuODg1NEM3NzYuMTYgMzIuNDExMyA3NzYuNDA3IDMyLjcwNDQgNzc2Ljk1IDMyLjcwNDRINzc3Ljg3OVYzNC42MjcyTDc3Ni41MyAzNC42MjcyVjM0LjYyNzJaTTc4MC43MzEgMzAuNzk2MUM3ODAuNzMxIDMxLjk3NjggNzgxLjQ2MSAzMi44NDQ2IDc4Mi43NTQgMzIuODQ0NkM3ODMuNzY2IDMyLjg0NDYgNzg0LjI2NiAzMi41NjA1IDc4NC44NSAzMS45NzY4TDc4Ni4yNjEgMzMuMzM0OUM3ODUuMzU3IDM0LjIzNzkgNzg0LjQwOSAzNC43ODcgNzgyLjczNyAzNC43ODdDNzgwLjU1MiAzNC43ODcgNzc4LjQ1OSAzMy41ODE5IDc3OC40NTkgMzAuMDY4NkM3NzguNDU5IDI3LjA2NTEgNzgwLjI4OCAyNS4zNjczIDc4Mi42ODYgMjUuMzY3M0M3ODUuMTI0IDI1LjM2NzMgNzg2LjUyNSAyNy4zNTQ5IDc4Ni41MjUgMjkuOTYzOVYzMC43OTYzSDc4MC43MzFWMzAuNzk2MVpNNzgyLjU4NiAyNy4yNzU2Qzc4MS44MDUgMjcuMjc1NiA3ODEuMjA0IDI3LjY4MjMgNzgwLjk1IDI4LjIzMDlDNzgwLjgwMiAyOC41NjA3IDc4MC43NDcgMjguODE3NyA3ODAuNzMxIDI5LjIyMjlINzg0LjI0OUM3ODQuMjA0IDI4LjIzMDkgNzgzLjc1OSAyNy4yNzU2IDc4Mi41ODYgMjcuMjc1NlpNNzY4LjkzOSAyNy4zODUzQzc2OS42MDggMjcuMzg1MyA3NjkuODg3IDI3LjcxOTggNzY5Ljg4NyAyOC4yNjI2VjM0LjY0MDZINzcyLjE3VjI4LjI0OTJDNzcyLjE3IDI2Ljk1NDIgNzcxLjQ4NyAyNS41MjQxIDc2OS40ODIgMjUuNTI0MUw3NjQuNzY2IDI1LjUyMTdWMzQuNjQwNkg3NjcuMDVWMjcuMzg1M0g3NjguOTM5VjI3LjM4NTNaTTc5Mi42MzcgMjMuNTg5MUM3OTIuMTI5IDIzLjU4OTEgNzkxLjcyNCAyMy4xNzU0IDc5MS43MjQgMjIuNjYyOUM3OTEuNzI0IDIyLjE1MjkgNzkyLjEyOSAyMS43MzY4IDc5Mi42MzcgMjEuNzM2OEM3OTMuMTQyIDIxLjczNjggNzkzLjU1NiAyMi4xNTI5IDc5My41NTYgMjIuNjYyOUM3OTMuNTU2IDIzLjE3NTQgNzkzLjE0MiAyMy41ODkxIDc5Mi42MzcgMjMuNTg5MVpNNzkyLjYzNyAyMS44OTEyQzc5Mi4yMTggMjEuODkxMiA3OTEuODgyIDIyLjI0MDcgNzkxLjg4MiAyMi42NjI5Qzc5MS44ODIgMjMuMDg3NiA3OTIuMjE4IDIzLjQzMDkgNzkyLjYzNyAyMy40MzA5Qzc5My4wNTUgMjMuNDMwOSA3OTMuNDAyIDIzLjA4NzYgNzkzLjQwMiAyMi42NjI5Qzc5My40MDIgMjIuMjQwNyA3OTMuMDU1IDIxLjg5MTIgNzkyLjYzNyAyMS44OTEyWk03OTMuMDQzIDIzLjIxOEg3OTIuODcyQzc5Mi44NjQgMjMuMjE3OSA3OTIuODU3IDIzLjIxNTcgNzkyLjg1MSAyMy4yMTE2Qzc5Mi44NDUgMjMuMjA3NSA3OTIuODQgMjMuMjAxNyA3OTIuODM3IDIzLjE5NDlMNzkyLjYwNSAyMi43OTdDNzkyLjU5OCAyMi43ODg1IDc5Mi41NzkgMjIuNzc4OCA3OTIuNTczIDIyLjc3ODhINzkyLjQ2N1YyMy4xNzU0Qzc5Mi40NjcgMjMuMTk1IDc5Mi40NTMgMjMuMjE4MSA3OTIuNDI4IDIzLjIxODFINzkyLjI3NEM3OTIuMjUxIDIzLjIxODEgNzkyLjIzNSAyMy4xOTUgNzkyLjIzNSAyMy4xNzU0VjIyLjE3NDlDNzkyLjIzNSAyMi4xMTY0IDc5Mi4yNTQgMjIuMDkyNCA3OTIuMzA1IDIyLjA4NUM3OTIuMzYxIDIyLjA3OSA3OTIuNTA1IDIyLjA3MTYgNzkyLjU4NiAyMi4wNzE2Qzc5Mi44NzIgMjIuMDcxNiA3OTMuMDM5IDIyLjE1NjYgNzkzLjAzOSAyMi40MjQ0VjIyLjQ0NEM3OTMuMDM5IDIyLjYwOTQgNzkyLjk1OSAyMi42OTk1IDc5Mi44MzMgMjIuNzM5N0w3OTMuMDc0IDIzLjE1NDdDNzkzLjA3OCAyMy4xNjQgNzkzLjA4IDIzLjE3MzkgNzkzLjA4IDIzLjE4NEM3OTMuMDggMjMuMTk5NyA3OTMuMDcyIDIzLjIxOCA3OTMuMDQzIDIzLjIxOFYyMy4yMThaTTc5Mi44MjEgMjIuNDI0NEM3OTIuODIxIDIyLjMxMjcgNzkyLjc1MiAyMi4yNzczIDc5Mi42MDUgMjIuMjc3M0g3OTIuNDU5VjIyLjU5NDdDNzkyLjQ4MiAyMi41OTQ3IDc5Mi41ODYgMjIuNTk5NiA3OTIuNjA1IDIyLjU5OTZDNzkyLjc1MiAyMi41OTk2IDc5Mi44MjEgMjIuNTUgNzkyLjgyMSAyMi40NDRWMjIuNDI0NFoiIGZpbGw9IiMwRTdEQzIiLz4NCjwvZz4NCjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMV81OF8xMTEpIj4NCjxwYXRoIGQ9Ik01MzMuNzczIDIwLjk5MTFDNTI5LjI2MyAyMC45OTExIDUyNS41OTkgMjQuNjU0NyA1MjUuNTk5IDI5LjE2NDRDNTI1LjU5OSAzMy42NzQxIDUyOS4yNjMgMzcuMzM3NyA1MzMuNzczIDM3LjMzNzdDNTM4LjI4MiAzNy4zMzc3IDU0MS45NDYgMzMuNjc0MSA1NDEuOTQ2IDI5LjE2NDRDNTQxLjk0NiAyNC42NTQ3IDUzOC4yODIgMjAuOTkxMSA1MzMuNzczIDIwLjk5MTFaTTUzMy43NzMgMzYuNTE4NkM1MjkuNzEzIDM2LjUxODYgNTI2LjQxOSAzMy4yMTUgNTI2LjQxOSAyOS4xNjQ0QzUyNi40MTkgMjUuMTEzNyA1MjkuNzEzIDIxLjgxMDIgNTMzLjc3MyAyMS44MTAyQzUzNy44MzIgMjEuODEwMiA1NDEuMTI3IDI1LjExMzcgNTQxLjEyNyAyOS4xNjQ0QzU0MS4xMjcgMzMuMjE1IDUzNy44MzIgMzYuNTE4NiA1MzMuNzczIDM2LjUxODZaIiBmaWxsPSJibGFjayIvPg0KPHBhdGggZD0iTTUzNi42OSAyMy45MjUyQzUzNi42NjMgMjMuOTA3MiA1MzYuNjI3IDIzLjg5ODIgNTM2LjU5MSAyMy44OTgyQzUzNi40ODMgMjMuODk4MiA1MzYuNDAyIDIzLjk3OTIgNTM2LjQwMiAyNC4wODczVjI2LjY0MzdDNTM2LjQwMiAyNi43MzM3IDUzNi4zMyAyNi44MDU3IDUzNi4yNCAyNi44MDU3SDUzMS4yOUM1MzEuMiAyNi44MDU3IDUzMS4xMzcgMjYuNzMzNyA1MzEuMTI4IDI2LjY0MzdWMjQuMDg3M0M1MzEuMTI4IDI0LjA1MTMgNTMxLjExOSAyNC4wMjQyIDUzMS4xMDEgMjMuOTg4MkM1MzEuMDQ3IDIzLjg5ODIgNTMwLjkzIDIzLjg3MTIgNTMwLjgzOSAyMy45MjUyQzUyOS4wMTIgMjUuMDUwNCA1MjcuOTA1IDI3LjAwMzcgNTI3LjkwNSAyOS4xNjQxQzUyNy45MDUgMzEuMzI0NCA1MjkuMDEyIDMzLjI3NzcgNTMwLjg1NyAzNC40MDI5QzUzMC44ODUgMzQuNDIwOSA1MzAuOTIxIDM0LjQyOTkgNTMwLjk1NyAzNC40Mjk5QzUzMS4wNjUgMzQuNDI5OSA1MzEuMTQ2IDM0LjM0ODkgNTMxLjE0NiAzNC4yNDA5VjMxLjY4NDVDNTMxLjE0NiAzMS41OTQ0IDUzMS4yMTggMzEuNTMxNCA1MzEuMzA4IDMxLjUyMjRINTM2LjI1OEM1MzYuMzQ4IDMxLjUyMjQgNTM2LjQyIDMxLjU5NDQgNTM2LjQyIDMxLjY4NDVWMzQuMjQwOUM1MzYuNDIgMzQuMjc2OSA1MzYuNDI5IDM0LjMwMzkgNTM2LjQ0NyAzNC4zMzk5QzUzNi41MDEgMzQuNDI5OSA1MzYuNjE4IDM0LjQ1NjkgNTM2LjcwOCAzNC40MDI5QzUzOC41NTQgMzMuMjc3NyA1MzkuNjYxIDMxLjMyNDQgNTM5LjY2MSAyOS4xNjQxQzUzOS42NjEgMjcuMDAzNyA1MzguNTM2IDI1LjA1MDQgNTM2LjY5IDIzLjkyNTJWMjMuOTI1MlpNNTMwLjE5MSAzMi4zNjg2TDUzMC4yMTggMzIuNjc0Nkw1MzAuMDIgMzIuNDMxNkM1MjguNDk5IDMwLjUxNDMgNTI4LjQ5OSAyNy44MDQ4IDUzMC4wMiAyNS44ODc1TDUzMC4xOTEgMjUuNjcxNUw1MzAuMjE4IDI1LjY0NDVMNTMwLjE5MSAyNS45NTk2QzUzMC4xNjQgMjYuMjExNiA1MzAuMTU1IDI2LjQ3MjYgNTMwLjE1NSAyNi43MzM3VjMxLjU4NTRDNTMwLjE1NSAzMS44NDY1IDUzMC4xNzMgMzIuMTA3NSA1MzAuMTkxIDMyLjM2ODZaTTUzNi40MDIgMzAuMzg4M0M1MzYuNDAyIDMwLjQ3ODMgNTM2LjMzIDMwLjU1MDMgNTM2LjI0IDMwLjU1MDNINTMxLjI5QzUzMS4yIDMwLjU1MDMgNTMxLjEzNyAzMC40NzgzIDUzMS4xMjggMzAuMzg4M1YyNy45Mzk5QzUzMS4xMjggMjcuODQ5OSA1MzEuMiAyNy43Nzc4IDUzMS4yOSAyNy43Nzc4SDUzNi4yNEM1MzYuMzMgMjcuNzc3OCA1MzYuNDAyIDI3Ljg0OTkgNTM2LjQwMiAyNy45Mzk5VjMwLjM4ODNaTTUzNy41MTkgMzIuNDMxNkw1MzcuMzIxIDMyLjY3NDZMNTM3LjM0OCAzMi4zNjg2QzUzNy4zNzUgMzIuMTE2NSA1MzcuMzg0IDMxLjg1NTUgNTM3LjM4NCAzMS41OTQ0VjI2LjczMzdDNTM3LjM4NCAyNi40NzI2IDUzNy4zNzUgMjYuMjExNiA1MzcuMzQ4IDI1Ljk1OTZMNTM3LjMzOSAyNS44MjQ1TDUzNy4zMyAyNS42ODA1VjI1LjY0NDVMNTM3LjUxOSAyNS44ODc1QzUzOC4yNTcgMjYuODA1NyA1MzguNjYyIDI3Ljk3NTkgNTM4LjY2MiAyOS4xNTUxQzUzOC42NjIgMzAuMzM0MiA1MzguMjU3IDMxLjUxMzQgNTM3LjUxOSAzMi40MzE2VjMyLjQzMTZaIiBmaWxsPSJibGFjayIvPg0KPHBhdGggZD0iTTU1NC4yNzYgMjkuMDIwMkM1NTQuMjMxIDI5LjAwMjIgNTU0LjE3NyAyOC45ODQyIDU1NC4xNzcgMjguOTMwMkM1NTQuMTc3IDI4Ljg5NDIgNTU0LjE5NSAyOC44NjcyIDU1NC4yMzEgMjguODQ5MkM1NTQuMjk0IDI4LjgyMjIgNTU1Ljg1MSAyOC4yNjQxIDU1NS44NTEgMjYuNDI3OEM1NTUuODUxIDI0LjM4NDUgNTU0LjQ3NCAyMy4xNjkzIDU1Mi4xNTIgMjMuMTY5M0g1NDYuNTI2VjM1LjE3NzJINTUyLjY2NUM1NTQuNDU2IDM1LjE3NzIgNTU2LjM4MiAzMy45MDggNTU2LjM4MiAzMS44NjQ2QzU1Ni4zODIgMjkuOTExMyA1NTQuOTA2IDI5LjIyNzIgNTU0LjI3NiAyOS4wMjAyVjI5LjAyMDJaTTU0OS4zNjEgMjUuNjI2N0M1NDkuMzYxIDI1LjU4MTcgNTQ5LjM5NyAyNS41NDU2IDU0OS40NDIgMjUuNTQ1Nkg1NTEuNjc1QzU1Mi40MTMgMjUuNTQ1NiA1NTIuOTE3IDI2LjA0MDcgNTUyLjkxNyAyNi43Nzg4QzU1Mi45MTcgMjcuMzU0OSA1NTIuNDY3IDI3Ljk3NiA1NTEuNjIxIDI3Ljk3Nkg1NDkuNDQyQzU0OS4zOTcgMjcuOTc2IDU0OS4zNjEgMjcuOTQgNTQ5LjM2MSAyNy44OTVWMjUuNjI2N1pNNTUxLjY3NSAzMi44MDk4SDU0OS40NDJDNTQ5LjM5NyAzMi44MDk4IDU0OS4zNjEgMzIuNzczOCA1NDkuMzYxIDMyLjcyODhWMzAuMzM0NEM1NDkuMzYxIDMwLjI4OTQgNTQ5LjM5NyAzMC4yNTM0IDU0OS40NDIgMzAuMjUzNEg1NTEuNjIxQzU1Mi42OTIgMzAuMjUzNCA1NTMuMzA0IDMwLjcxMjUgNTUzLjMwNCAzMS41MjI2QzU1My4zMDQgMzIuMzU5NyA1NTIuNzM3IDMyLjgwOTggNTUxLjY3NSAzMi44MDk4VjMyLjgwOThaTTU3NS4zODQgMjcuOTQ5TDU3NC45NTIgMjcuODU5QzU3My45OCAyNy42NTIgNTczLjAzNSAyNy4zOTA5IDU3My4wMzUgMjYuNTUzOEM1NzMuMDM1IDI1LjcxNjcgNTczLjgxOCAyNS4zMzg2IDU3NC41OTIgMjUuMzM4NkM1NzUuNTAxIDI1LjMzODYgNTc2LjQwMSAyNS43NDM3IDU3Ny4wODYgMjYuNDQ1OEw1NzguODY4IDI0LjY4MTVDNTc4LjEwMyAyMy44MzU0IDU3Ni43NDQgMjIuODYzMiA1NzQuNTQ3IDIyLjg2MzJDNTcxLjkwMSAyMi44NjMyIDU3MC4xMTggMjQuMzY2NSA1NzAuMTE4IDI2LjYwNzhDNTcwLjExOCAyOC45NzUyIDU3MS45ODIgMjkuODY2MyA1NzMuNTQ4IDMwLjE5OTRMNTczLjk3MSAzMC4yODk0QzU3NS40OTIgMzAuNjEzNSA1NzYuMjEyIDMwLjg1NjUgNTc2LjIxMiAzMS43MjA2QzU3Ni4yMTIgMzIuNDk0NyA1NzUuNTE5IDMzLjAwNzggNTc0LjQ5MyAzMy4wMDc4QzU3My4yODcgMzMuMDA3OCA1NzIuMjE2IDMyLjQ3NjcgNTcxLjQwNiAzMS40Nzc2TDU2OS41NzggMzMuMjY4OUM1NzAuNTUxIDM0LjQyMTEgNTcxLjgzOCAzNS40NjUyIDU3NC41MjkgMzUuNDY1MkM1NzYuODI1IDM1LjQ2NTIgNTc5LjE1NiAzNC4xMzMgNTc5LjE1NiAzMS41NzY2QzU3OS4xNDcgMjguOTU3MiA1NzcuMzY1IDI4LjM2MzEgNTc1LjM4NCAyNy45NDlWMjcuOTQ5Wk01OTkuMTAzIDIzLjE2OTNWMjcuNTYyQzU5OS4xMDMgMjcuNjA3IDU5OS4wNjcgMjcuNjQzIDU5OS4wMjIgMjcuNjQzSDU5NS4zMzFDNTk1LjI4NiAyNy42NDMgNTk1LjI1IDI3LjYwNyA1OTUuMjUgMjcuNTYyVjIzLjE2OTNINTkyLjIyNlYzNS4xNzcySDU5NS4yNVYzMC40NjA0QzU5NS4yNSAzMC40MTU0IDU5NS4yODYgMzAuMzc5NCA1OTUuMzMxIDMwLjM3OTRINTk5LjAyMkM1OTkuMDY3IDMwLjM3OTQgNTk5LjEwMyAzMC40MTU0IDU5OS4xMDMgMzAuNDYwNFYzNS4xNzcySDYwMi4xNDZWMjMuMTY5M0g1OTkuMTAzWk01ODYuMTQxIDMyLjcxOThDNTg0Ljc4MiAzMi43MTk4IDU4My4zMTUgMzEuNTg1NiA1ODMuMzE1IDI5LjA5MjJDNTgzLjMxNSAyNi44MTQ4IDU4NC42OTIgMjUuNjI2NyA1ODYuMDUxIDI1LjYyNjdDNTg3LjA0MSAyNS42MjY3IDU4Ny43MzQgMjYuMDQwNyA1ODguMjgzIDI2Ljk1ODlMNTkwLjYwNiAyNS40MTk2QzU4OS40MTggMjMuNjczMyA1ODguMDA0IDIyLjg4MTIgNTg2LjAzMyAyMi44ODEyQzU4Mi4xNzEgMjIuODgxMiA1ODAuNDQzIDI2LjAwNDcgNTgwLjQ0MyAyOS4wOTIyQzU4MC40NDMgMzIuODQ1OCA1ODIuNzI5IDM1LjQ2NTIgNTg1Ljk5NyAzNS40NjUyQzU4OC40MjcgMzUuNDY1MiA1ODkuNTM1IDM0LjU3NDEgNTkwLjY5NiAzMi45MjY4TDU4OC4zNTUgMzEuMzUxNkM1ODcuODMzIDMyLjE5NzcgNTg3LjI2NiAzMi43MTk4IDU4Ni4xNDEgMzIuNzE5OFpNNTYzLjE3OCAyMi44NjMyQzU1OS44NzUgMjIuODYzMiA1NTcuNjYxIDI1LjM5MjYgNTU3LjY2MSAyOS4xNjQyQzU1Ny42NjEgMzIuOTM1OCA1NTkuODc1IDM1LjQ2NTIgNTYzLjE3OCAzNS40NjUyQzU2Ni40ODIgMzUuNDY1MiA1NjguNjk2IDMyLjkzNTggNTY4LjY5NiAyOS4xNjQyQzU2OC42OTYgMjUuMzkyNiA1NjYuNDgyIDIyLjg2MzIgNTYzLjE3OCAyMi44NjMyVjIyLjg2MzJaTTU2My4xNzggMzIuNzE5OEM1NjEuNTU4IDMyLjcxOTggNTYwLjUxNCAzMS4zMjQ2IDU2MC41MTQgMjkuMTY0MkM1NjAuNTE0IDI3LjAxMjkgNTYxLjU1OCAyNS42MjY3IDU2My4xNzggMjUuNjI2N0M1NjQuODA4IDI1LjYyNjcgNTY1Ljg2MSAyNy4wMTI5IDU2NS44NjEgMjkuMTY0MkM1NjUuODYxIDMxLjMyNDYgNTY0LjgwOCAzMi43MTk4IDU2My4xNzggMzIuNzE5OFoiIGZpbGw9IiNGODAwMDAiLz4NCjwvZz4NCjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTQ2LjM0NCAyMi4xODExQzE0Ny41OTUgMjIuMjg1NCAxNDguODQ1IDIxLjU1NTMgMTQ5LjYyNyAyMC42Mjk4QzE1MC4zOTUgMTkuNjc4MSAxNTAuOTAzIDE4LjQwMDUgMTUwLjc3MyAxNy4wOTY5QzE0OS42NjYgMTcuMTQ5MSAxNDguMjk4IDE3LjgyNjkgMTQ3LjUxNyAxOC43Nzg2QzE0Ni44IDE5LjU5OTkgMTQ2LjE4OCAyMC45Mjk2IDE0Ni4zNDQgMjIuMTgxMVpNMTQ3Ljg0MSAyMy4wNzk3QzE0OC42NTMgMjIuNzYwNiAxNDkuNjU4IDIyLjM2NTYgMTUwLjc2IDIyLjQyOTFDMTUxLjQ2MyAyMi40ODEyIDE1My40OTUgMjIuNjg5OCAxNTQuNzk4IDI0LjYxOTJDMTU0Ljc5MiAyNC42MjM3IDE1NC43NzggMjQuNjMyMyAxNTQuNzU5IDI0LjY0NUMxNTQuNDM2IDI0Ljg1NDggMTUyLjM5IDI2LjE4NzEgMTUyLjQxNCAyOC44MTY5QzE1Mi40MzkgMzEuOTQ5OSAxNTQuOTg4IDMzLjExODMgMTU1LjMyMiAzMy4yNzExQzE1NS4zNDQgMzMuMjgxMSAxNTUuMzU2IDMzLjI4NjcgMTU1LjM1OCAzMy4yODgzQzE1NS4zNTYgMzMuMjkyNiAxNTUuMzU0IDMzLjMwMSAxNTUuMzUgMzMuMzEzM0MxNTUuMjgzIDMzLjUyODggMTU0Ljg0NSAzNC45NDg5IDE1My44NDcgMzYuNDA0QzE1Mi45MjIgMzcuNzU5OCAxNTEuOTcxIDM5LjA4OTUgMTUwLjQ2IDM5LjExNTZDMTQ5Ljc0OSAzOS4xMjgzIDE0OS4yNyAzOC45MjExIDE0OC43NzIgMzguNzA1NEMxNDguMjQ3IDM4LjQ3ODUgMTQ3LjcwMSAzOC4yNDIyIDE0Ni44NCAzOC4yNDIyQzE0NS45NDcgMzguMjQyMiAxNDUuMzc2IDM4LjQ4NDggMTQ0LjgyNiAzOC43MTg0QzE0NC4zNDggMzguOTIxNCAxNDMuODg3IDM5LjExNzQgMTQzLjI0NSAzOS4xNDE3QzE0MS43ODYgMzkuMTkzOCAxNDAuNjc5IDM3LjcwNzcgMTM5Ljc1NCAzNi4zNTE5QzEzNy44NjYgMzMuNjE0MyAxMzYuNDIgMjguNjM0NCAxMzguMzc0IDI1LjI3MUMxMzkuMzI1IDIzLjU4OTMgMTQxLjA1NyAyMi41MzM0IDE0Mi45MTkgMjIuNTA3M0MxNDMuNzMyIDIyLjQ5MjUgMTQ0LjUwNyAyMi44MDA2IDE0NS4xODQgMjMuMDcwMUMxNDUuNzAyIDIzLjI3NTggMTQ2LjE2MiAyMy40NTg5IDE0Ni41NCAyMy40NTg5QzE0Ni44NzcgMjMuNDU4OSAxNDcuMzE5IDIzLjI4NTEgMTQ3Ljg0MSAyMy4wNzk3WiIgZmlsbD0iYmxhY2siLz4NCjxwYXRoIGQ9Ik0zNi44NTg3IDM3LjUyNDFIMzEuOTg3NEwzNS4wMzQyIDE5LjY2NjhIMzkuOTA1MkwzNi44NTg3IDM3LjUyNDFaIiBmaWxsPSIjMDA1NzlGIi8+DQo8cGF0aCBkPSJNNTQuNTE1NyAyMC4xMDQxQzUzLjU1NDkgMTkuNzQyOCA1Mi4wMzA5IDE5LjM0MzggNTAuMTQ2NiAxOS4zNDM4QzQ1LjMzNjEgMTkuMzQzOCA0MS45NDg2IDIxLjc3NTMgNDEuOTI3OCAyNS4yNTE2QzQxLjg4NzggMjcuODE2NSA0NC4zNTMxIDI5LjI0MSA0Ni4xOTcgMzAuMDk2MkM0OC4wODE2IDMwLjk3MDEgNDguNzIyMyAzMS41NDA1IDQ4LjcyMjMgMzIuMzE5NEM0OC43MDMxIDMzLjUxNTcgNDcuMTk5NCAzNC4wNjcyIDQ1Ljc5NjkgMzQuMDY3MkM0My44NTIxIDM0LjA2NzIgNDIuODEgMzMuNzgyOSA0MS4yMjY0IDMzLjExNzNMNDAuNTg1IDMyLjgzMkwzOS45MDMzIDM2Ljg0MDZDNDEuMDQ1OCAzNy4zMzM5IDQzLjE1MDcgMzcuNzcxNyA0NS4zMzYxIDM3Ljc5MDlDNTAuNDQ3MyAzNy43OTA5IDUzLjc3NDkgMzUuMzk3MSA1My44MTQzIDMxLjY5MjVDNTMuODMzOCAyOS42NTk3IDUyLjUzMiAyOC4xMDIgNDkuNzI1NCAyNi44MjkyQzQ4LjAyMTcgMjYuMDEyMSA0Ni45NzgzIDI1LjQ2MTIgNDYuOTc4MyAyNC42MjUyQzQ2Ljk5ODMgMjMuODY1MiA0Ny44NjA4IDIzLjA4NjggNDkuNzg0IDIzLjA4NjhDNTEuMzY3NyAyMy4wNDg2IDUyLjUzMTIgMjMuNDA5NCA1My40MTI2IDIzLjc3MDVMNTMuODUzMiAyMy45NjAxTDU0LjUxNTcgMjAuMTA0MVoiIGZpbGw9IiMwMDU3OUYiLz4NCjxwYXRoIGQ9Ik02MC45OTI0IDMxLjE5NzlDNjEuMzkzNiAzMC4xNzIgNjIuOTM3MiAyNi4yMDE2IDYyLjkzNzIgMjYuMjAxNkM2Mi45MTcgMjYuMjM5NyA2My4zMzc2IDI1LjE1NjggNjMuNTc4MSAyNC40OTE5TDYzLjkxODYgMjYuMDMwNkM2My45MTg2IDI2LjAzMDYgNjQuODQxIDMwLjMwNTEgNjUuMDQxNCAzMS4xOTc5QzY0LjI4IDMxLjE5NzkgNjEuOTU0NiAzMS4xOTc5IDYwLjk5MjQgMzEuMTk3OVpNNjcuMDA1NCAxOS42NjY4SDYzLjIzNzRDNjIuMDc1NSAxOS42NjY4IDYxLjE5MjcgMTkuOTg5NSA2MC42OTE0IDIxLjE0ODRMNTMuNDU1OCAzNy41MjM5SDU4LjU2NzFDNTguNTY3MSAzNy41MjM5IDU5LjQwODUgMzUuMzE5OSA1OS41ODk0IDM0Ljg0NTJDNjAuMTUwMSAzNC44NDUyIDY1LjEyMjMgMzQuODQ1MiA2NS44NDM3IDM0Ljg0NTJDNjUuOTgzNSAzNS40NzIxIDY2LjQyNDkgMzcuNTIzOSA2Ni40MjQ5IDM3LjUyMzlINzAuOTM1Mkw2Ny4wMDU0IDE5LjY2NjhWMTkuNjY2OFoiIGZpbGw9IiMwMDU3OUYiLz4NCjxwYXRoIGQ9Ik0yNy45MTggMTkuNjY2OEwyMy4xNDc1IDMxLjg0MzhMMjIuNjI2MiAyOS4zNzQxQzIxLjc0NDIgMjYuNTI0NSAxOC45NzgxIDIzLjQyODQgMTUuODkxNCAyMS44ODlMMjAuMjYxIDM3LjUwNTJIMjUuNDEyMkwzMy4wNjkgMTkuNjY2OEgyNy45MThWMTkuNjY2OFoiIGZpbGw9IiMwMDU3OUYiLz4NCjxwYXRoIGQ9Ik0xOC43MTg0IDE5LjY2NjhIMTAuODgxMUwxMC44MDA5IDIwLjAyNzZDMTYuOTE0NSAyMS41MDk1IDIwLjk2MzUgMjUuMDgxNSAyMi42MjcgMjkuMzc0OUwyMC45MjMyIDIxLjE2NzlDMjAuNjQyNyAyMC4wMjc0IDE5Ljc4MDcgMTkuNzA0NCAxOC43MTg0IDE5LjY2NjhaIiBmaWxsPSIjRkFBNjFBIi8+DQo8ZyBjbGlwLXBhdGg9InVybCgjY2xpcDJfNThfMTExKSI+DQo8cGF0aCBkPSJNMjIxLjE1OCAxNy40OTlWMTguOTM1NkgyMzEuMzA2VjE3LjQ5OUgyMjEuMTU4Wk0yMzIuNzQ0IDE3LjQ5OVYxOC45MzU2SDI0Ny4yMDZDMjQ3LjIwNiAxOC45MzU2IDI0NS43MjkgMTcuNDk5IDI0My43NzMgMTcuNDk5SDIzMi43NDRaTTI1MC4wNDMgMTcuNDk5VjE4LjkzNTZIMjU4Ljc5M0wyNTguMjczIDE3LjQ5OUgyNTAuMDQzWk0yNjUuMDY1IDE3LjQ5OUwyNjQuNTQ2IDE4LjkzNTZIMjczLjIxNlYxNy40OTlIMjY1LjA2NVpNMjIxLjE1OCAyMC4yOTI5VjIxLjcyOTZIMjMxLjMwNlYyMC4yOTI5SDIyMS4xNThaTTIzMi43NDQgMjAuMjk1VjIxLjcyOTdIMjQ4Ljg4NEMyNDguODg0IDIxLjcyOTcgMjQ4LjY5NiAyMC42MjM5IDI0OC4zNjcgMjAuMjk1SDIzMi43NDRaTTI1MC4wNDMgMjAuMjk1VjIxLjcyOTdIMjU5Ljc1MkwyNTkuMjcxIDIwLjI5NUgyNTAuMDQzWk0yNjQuMDI3IDIwLjI5NUwyNjMuNTQ2IDIxLjcyOTdIMjczLjIxNlYyMC4yOTVIMjY0LjAyN1YyMC4yOTVaTTIyNC4wNzQgMjMuMDg2OVYyNC41MjU3SDIyOC40NjlWMjMuMDg2OUgyMjQuMDc0VjIzLjA4NjlaTTIzNS42NjEgMjMuMDg2OVYyNC41MjU3SDI0MC4wNTZWMjMuMDg2OUgyMzUuNjYxVjIzLjA4NjlaTTI0NC4zMzEgMjMuMDg2OVYyNC41MjU3SDI0OC43MjZDMjQ4LjcyNiAyNC41MjU3IDI0OS4wMDUgMjMuNzY1OSAyNDkuMDA1IDIzLjA4NjlIMjQ0LjMzMVYyMy4wODY5Wk0yNTIuOTYgMjMuMDg2OVYyNC41MjU3SDI2MC43NTJMMjYwLjIzMiAyMy4wODY5SDI1Mi45NlYyMy4wODY5Wk0yNjMuMDY5IDIzLjA4NjlMMjYyLjU0OCAyNC41MjU3SDI3MC4zNzlWMjMuMDg2OUgyNjMuMDY5VjIzLjA4NjlaTTIyNC4wNzQgMjUuODgzVjI3LjMxOTdIMjI4LjQ2OVYyNS44ODNIMjI0LjA3NFYyNS44ODNaTTIzNS42NjEgMjUuODgzVjI3LjMxOTdIMjQ2Ljg4N0MyNDYuODg3IDI3LjMxOTcgMjQ3LjgyNiAyNi41ODI1IDI0OC4xMjUgMjUuODgzSDIzNS42NjFaTTI1Mi45NiAyNS44ODNWMjcuMzE5N0gyNTcuMzU1VjI2LjUyTDI1Ny42MzQgMjcuMzE5N0gyNjUuNjg0TDI2NS45ODQgMjYuNTJWMjcuMzE5N0gyNzAuMzc5VjI1Ljg4M0gyNjIuMTI5TDI2MS42OTEgMjcuMDk5OUwyNjEuMjUxIDI1Ljg4M0gyNTIuOTZaTTIyNC4wNzQgMjguNjc3VjMwLjExMzdIMjI4LjQ2OVYyOC42NzdIMjI0LjA3NFpNMjM1LjY2MSAyOC42NzdWMzAuMTEzN0gyNDguMTI1QzI0Ny44MjYgMjkuNDE2NSAyNDYuODg3IDI4LjY3NyAyNDYuODg3IDI4LjY3N0gyMzUuNjYxWk0yNTIuOTYgMjguNjc3VjMwLjExMzdIMjU3LjM1NVYyOC42NzdIMjUyLjk2Wk0yNTguMTUzIDI4LjY3N0wyNTguNjg1IDMwLjExMzdIMjY0LjcyMUwyNjUuMjI2IDI4LjY3N0gyNTguMTUzWk0yNjUuOTg0IDI4LjY3N1YzMC4xMTM3SDI3MC4zNzlWMjguNjc3SDI2NS45ODRaTTIyNC4wNzQgMzEuNDcxVjMyLjkwNzZIMjI4LjQ2OVYzMS40NzFIMjI0LjA3NFpNMjM1LjY2MSAzMS40NzFWMzIuOTA3NkgyNDAuMDU2VjMxLjQ3MUgyMzUuNjYxWk0yNDQuMzMxIDMxLjQ3MVYzMi45MDc2SDI0OS4wMDVDMjQ5LjAwNSAzMi4yMjk2IDI0OC43MjYgMzEuNDcxIDI0OC43MjYgMzEuNDcxSDI0NC4zMzFWMzEuNDcxWk0yNTIuOTYgMzEuNDcxVjMyLjkwNzZIMjU3LjM1NVYzMS40NzFIMjUyLjk2Wk0yNTkuMTUxIDMxLjQ3MUwyNTkuNjY2IDMyLjkwNzZIMjYzLjcxM0wyNjQuMjMyIDMxLjQ3MUgyNTkuMTUxWk0yNjUuOTg0IDMxLjQ3MVYzMi45MDc2SDI3MC4zNzlWMzEuNDcxSDI2NS45ODRaTTIyMS4yMzcgMzQuMjY1VjM1LjcwMzdIMjMxLjM4NlYzNC4yNjVIMjIxLjIzN1pNMjMyLjc0NCAzNC4yNjVWMzUuNzAzN0gyNDguMzY3QzI0OC42OTYgMzUuMzc0MyAyNDguODg0IDM0LjI2NSAyNDguODg0IDM0LjI2NUgyMzIuNzQ0VjM0LjI2NVpNMjUwLjEyMyAzNC4yNjVWMzUuNzAzN0gyNTcuMzU1VjM0LjI2NUgyNTAuMTIzWk0yNjAuMTUxIDM0LjI2NUwyNjAuNjggMzUuNzAzN0gyNjIuNzM5TDI2My4yMzYgMzQuMjY1SDI2MC4xNTFaTTI2NS45ODQgMzQuMjY1VjM1LjcwMzdIMjczLjI5NVYzNC4yNjVIMjY1Ljk4NFpNMjIxLjIzNyAzNy4wNjFWMzguNDk3N0gyMzEuMzg2VjM3LjA2MUgyMjEuMjM3Wk0yMzIuNzQ0IDM3LjA2MVYzOC40OTU2SDI0My43NzNDMjQ1LjcyOSAzOC40OTU2IDI0Ny4yMDYgMzcuMDYxIDI0Ny4yMDYgMzcuMDYxSDIzMi43NDRaTTI1MC4xMjMgMzcuMDYxVjM4LjQ5NzdIMjU3LjM1NVYzNy4wNjFIMjUwLjEyM1pNMjYxLjE1NSAzNy4wNjFMMjYxLjY2NCAzOC40OTM2TDI2MS43NTIgMzguNDk1NkwyNjIuMjY5IDM3LjA2MUgyNjEuMTU1VjM3LjA2MVpNMjY1Ljk4NCAzNy4wNjFWMzguNDk3N0gyNzMuMjk1VjM3LjA2MUgyNjUuOTg0WiIgZmlsbD0iIzFGNzBDMSIvPg0KPC9nPg0KPGRlZnM+DQo8Y2xpcFBhdGggaWQ9ImNsaXAwXzU4XzExMSI+DQo8cmVjdCB3aWR0aD0iNDQuNDQ3MyIgaGVpZ2h0PSIyOS42MzE1IiBmaWxsPSJ3aGl0ZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNzUzLjk1NSAxNC44MTU1KSIvPg0KPC9jbGlwUGF0aD4NCjxjbGlwUGF0aCBpZD0iY2xpcDFfNThfMTExIj4NCjxyZWN0IHdpZHRoPSI3Ni41NDgxIiBoZWlnaHQ9IjE2LjM1MDciIGZpbGw9IndoaXRlIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg1MjUuNTk5IDIwLjk4ODkpIi8+DQo8L2NsaXBQYXRoPg0KPGNsaXBQYXRoIGlkPSJjbGlwMl81OF8xMTEiPg0KPHJlY3Qgd2lkdGg9IjUyLjEzNzIiIGhlaWdodD0iMjAuOTk4NyIgZmlsbD0id2hpdGUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIyMS4xNTggMTcuNDk5KSIvPg0KPC9jbGlwUGF0aD4NCjwvZGVmcz4NCjwvc3ZnPg0K" style="\n width: 742.5px;\n position: relative;\n top: 107px;\n left: 32px;\n ">\n <a href='+Bo+' style="\n float: left;\n border-radius: 56px;\n background: #0D6EFD;\n padding-top: 8px;\n width: 280px;\n height: 38px;\n text-align: center;\n position: relative;\n top: 127px;\n left: 274px;\n font-size: 16px;\n color: white;\n text-decoration: none;\n letter-spacing: 0.02em;\n ">Claim your FREE account</a>\n <div style="\n font-size: 14px;\n position: relative;\n top: 180px;\n left: 19px;\n letter-spacing: 0.02em;\n font-weight: 500;\n line-height: 125%;\n">have a Syncfusion account? <a href="https://www.syncfusion.com/account/login?ReturnUrl=/account/login" style="text-decoration: none;\ncolor: #0D6EFD;\nfont-weight: 500;">Sign In</a></div>\n </div>\n </div>';if("undefined"!=typeof document&&!h(document)){var e=M("div",{innerHTML:t});document.body.appendChild(e)}},Ho=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),qo=function(t,e,i,r){var n,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,i,s):n(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s},$o=0,Ko=0,Jo=0,Zo=!0,Xo=!1,ts=!1,es=function(t){function e(e,i){var r=t.call(this,e,i)||this;return r.randomId=m(),r.isStringTemplate=!1,r.needsID=!1,r.isReactHybrid=!1,h(r.enableRtl)&&r.setProperties({enableRtl:io},!0),h(r.locale)&&r.setProperties({locale:no},!0),r.moduleLoader=new Ro(r),r.localObserver=new to(r),eo.on("notifyExternalChange",r.detectFunction,r,r.randomId),"undefined"==typeof window||"undefined"==typeof document||Wo()||-1!==_o.indexOf(r.getModuleName())&&(Jo+=1)>5&&(Zo=!1),u(i)||r.appendTo(),r}return Ho(e,t),e.prototype.requiredModules=function(){return[]},e.prototype.destroy=function(){this.isDestroyed||(this.enablePersistence&&(this.setPersistData(),this.detachUnloadEvent()),this.localObserver.destroy(),this.refreshing||(b([this.element],["e-control"]),this.trigger("destroyed",{cancel:!1}),t.prototype.destroy.call(this),this.moduleLoader.clean(),eo.off("notifyExternalChange",this.detectFunction,this.randomId)))},e.prototype.refresh=function(){this.refreshing=!0,this.moduleLoader.clean(),this.destroy(),this.clearChanges(),this.localObserver=new to(this),this.preRender(),this.injectModules(),this.render(),this.refreshing=!1},e.prototype.accessMount=function(){this.mount&&!this.isReactHybrid&&this.mount()},e.prototype.getRootElement=function(){return this.isReactHybrid?this.actualElement:this.element},e.prototype.getLocalData=function(){var t=this.getModuleName()+this.element.id;return ts?window.localStorage.getItem(t+this.ej2StatePersistenceVersion):window.localStorage.getItem(t)},e.prototype.attachUnloadEvent=function(){this.handleUnload=this.handleUnload.bind(this),window.addEventListener("unload",this.handleUnload)},e.prototype.handleUnload=function(){this.setPersistData()},e.prototype.detachUnloadEvent=function(){window.removeEventListener("unload",this.handleUnload)},e.prototype.appendTo=function(e){if(h(e)||"string"!=typeof e?h(e)||(this.element=e):this.element=O(e,document),!h(this.element)){var i="e-"+this.getModuleName().toLowerCase();v([this.element],["e-control",i]),this.isProtectedOnChange=!1,this.needsID&&!this.element.id&&(this.element.id=this.getUniqueID(this.getModuleName())),this.enablePersistence&&(this.mergePersistData(),this.attachUnloadEvent());var n=r("ej2_instances",this.element);n&&-1!==n.indexOf(this)||t.prototype.addInstance.call(this),this.preRender(),this.injectModules();var o={schedule:"all",diagram:"all",PdfViewer:"all",grid:["logger"],richtexteditor:["link","table","image","audio","video","formatPainter","emojiPicker","pasteCleanup","htmlEditor","toolbar"],treegrid:["filter"],gantt:["tooltip"],chart:["Export","Zoom"],accumulationchart:["Export"]},s=this.getModuleName();if(this.requiredModules&&(!o[""+s]||"all"!==o[""+s]))for(var a=this.requiredModules(),l=0,u=this.moduleLoader.getNonInjectedModules(a);l<u.length;l++){var c=u[l],p=c.name?c.name:c.member;if(!o[""+s]||-1===o[""+s].indexOf(c.member)){var d=s.charAt(0).toUpperCase()+s.slice(1);console.warn('[WARNING] :: Module "'+p+'" is not available in '+d+" component! You either misspelled the module name or forgot to load it.")}}Zo||Xo||(Go(),Xo=!0),this.render(),this.mount?this.accessMount():this.trigger("created")}},e.prototype.renderComplete=function(t){if(y()){window.sfBlazor.renderComplete(this.element,t)}this.isRendered=!0},e.prototype.dataBind=function(){this.injectModules(),t.prototype.dataBind.call(this)},e.prototype.on=function(t,e,i){if("string"==typeof t)this.localObserver.on(t,e,i);else for(var r=0,n=t;r<n.length;r++){var o=n[r];this.localObserver.on(o.event,o.handler,o.context)}},e.prototype.off=function(t,e){if("string"==typeof t)this.localObserver.off(t,e);else for(var i=0,r=t;i<r.length;i++){var n=r[i];this.localObserver.off(n.event,n.handler)}},e.prototype.notify=function(t,e){!0!==this.isDestroyed&&this.localObserver.notify(t,e)},e.prototype.getInjectedModules=function(){return this.injectedModules},e.Inject=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.prototype.injectedModules||(this.prototype.injectedModules=[]);for(var i=0;i<t.length;i++)-1===this.prototype.injectedModules.indexOf(t[parseInt(i.toString(),10)])&&this.prototype.injectedModules.push(t[parseInt(i.toString(),10)])},e.prototype.createElement=function(t,e,i){return M(t,e)},e.prototype.triggerStateChange=function(t,e){this.isReactHybrid&&(this.setState(),this.currentContext={calls:t,args:e})},e.prototype.injectModules=function(){this.injectedModules&&this.injectedModules.length&&this.moduleLoader.inject(this.requiredModules(),this.injectedModules)},e.prototype.detectFunction=function(t){var e=Object.keys(t);e.length&&(this[e[0]]=t[e[0]])},e.prototype.mergePersistData=function(){var t;h(t=ts?window.localStorage.getItem(this.getModuleName()+this.element.id+this.ej2StatePersistenceVersion):window.localStorage.getItem(this.getModuleName()+this.element.id))||""===t||this.setProperties(JSON.parse(t),!0)},e.prototype.setPersistData=function(){this.isDestroyed||(ts?window.localStorage.setItem(this.getModuleName()+this.element.id+this.ej2StatePersistenceVersion,this.getPersistData()):window.localStorage.setItem(this.getModuleName()+this.element.id,this.getPersistData()))},e.prototype.renderReactTemplates=function(t){h(t)||t()},e.prototype.clearTemplate=function(t,e){},e.prototype.getUniqueID=function(t){return this.isHistoryChanged()&&($o=0),Fo=this.pageID(location.href),Ko=history.length,t+"_"+Fo+"_"+$o++},e.prototype.pageID=function(t){var e=0;if(0===t.length)return e;for(var i=0;i<t.length;i++){e=(e<<5)-e+t.charCodeAt(i),e&=e}return Math.abs(e)},e.prototype.isHistoryChanged=function(){return Fo!==this.pageID(location.href)||Ko!==history.length},e.prototype.addOnPersist=function(t){for(var e=this,i={},o=0,s=t;o<s.length;o++){var a=s[o],l=void 0;u(l=r(a,this))||n(a,this.getActualProperties(l),i)}return JSON.stringify(i,function(t,i){return e.getActualProperties(i)})},e.prototype.getActualProperties=function(t){return t instanceof Uo?r("properties",t):t},e.prototype.ignoreOnPersist=function(t){return JSON.stringify(this.iterateJsonProperties(this.properties,t))},e.prototype.iterateJsonProperties=function(t,e){for(var i={},r=function(r){if(-1===e.indexOf(r)){var o=t[r];if("object"!=typeof o||o instanceof Array)i[""+r]=o;else{var s=e.filter(function(t){return new RegExp(r+".").test(t)}).map(function(t){return t.replace(r+".","")});i[""+r]=n.iterateJsonProperties(n.getActualProperties(o),s)}}},n=this,o=0,s=Object.keys(t);o<s.length;o++){r(s[o])}return i},qo([R(!1)],e.prototype,"enablePersistence",void 0),qo([R()],e.prototype,"enableRtl",void 0),qo([R()],e.prototype,"locale",void 0),e=qo([Y],e)}(To);"undefined"!=typeof window&&window.addEventListener("popstate",function(){$o=0});var is,rs=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),ns=function(t,e,i,r){var n,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,i,s):n(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s},os={left:0,top:0,bottom:0,right:0},ss={isDragged:!1},as=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return rs(e,t),ns([R(0)],e.prototype,"left",void 0),ns([R(0)],e.prototype,"top",void 0),e}(Uo),ls=function(t){function e(e,r){var n=t.call(this,r,e)||this;return n.dragLimit=i.getDefaultPosition(),n.borderWidth=i.getDefaultPosition(),n.padding=i.getDefaultPosition(),n.diffX=0,n.prevLeft=0,n.prevTop=0,n.dragProcessStarted=!1,n.eleTop=0,n.tapHoldTimer=0,n.externalInitialize=!1,n.diffY=0,n.parentScrollX=0,n.parentScrollY=0,n.droppables={},n.bind(),n}rs(e,t),i=e,e.prototype.bind=function(){this.toggleEvents(),Oo.isIE&&v([this.element],"e-block-touch"),this.droppables[this.scope]={}},e.getDefaultPosition=function(){return l({},os)},e.prototype.toggleEvents=function(t){var e;u(this.handle)||(e=O(this.handle,this.element));var i=this.enableTapHold&&Oo.isDevice&&Oo.isTouch?this.mobileInitialize:this.initialize;t?xo.remove(e||this.element,Oo.isSafari()?"touchstart":Oo.touchStartEvent,i):xo.add(e||this.element,Oo.isSafari()?"touchstart":Oo.touchStartEvent,i,this)},e.prototype.mobileInitialize=function(t){var e=this,i=t.currentTarget;this.tapHoldTimer=setTimeout(function(){e.externalInitialize=!0,e.removeTapholdTimer(),e.initialize(t,i)},this.tapHoldThreshold),xo.add(document,Oo.isSafari()?"touchmove":Oo.touchMoveEvent,this.removeTapholdTimer,this),xo.add(document,Oo.isSafari()?"touchend":Oo.touchEndEvent,this.removeTapholdTimer,this)},e.prototype.removeTapholdTimer=function(){clearTimeout(this.tapHoldTimer),xo.remove(document,Oo.isSafari()?"touchmove":Oo.touchMoveEvent,this.removeTapholdTimer),xo.remove(document,Oo.isSafari()?"touchend":Oo.touchEndEvent,this.removeTapholdTimer)},e.prototype.getScrollableParent=function(t,e){return h(t)?null:t[{vertical:"scrollHeight",horizontal:"scrollWidth"}[""+e]]>t[{vertical:"clientHeight",horizontal:"clientWidth"}[""+e]]&&("vertical"===e?t.scrollTop>0:t.scrollLeft>0)?("vertical"===e?(this.parentScrollY=this.parentScrollY+(0===this.parentScrollY?t.scrollTop:t.scrollTop-this.parentScrollY),this.tempScrollHeight=t.scrollHeight):(this.parentScrollX=this.parentScrollX+(0===this.parentScrollX?t.scrollLeft:t.scrollLeft-this.parentScrollX),this.tempScrollWidth=t.scrollWidth),h(t)?t:this.getScrollableParent(t.parentNode,e)):this.getScrollableParent(t.parentNode,e)},e.prototype.getScrollableValues=function(){this.parentScrollX=0,this.parentScrollY=0;this.element.classList.contains("e-dialog")&&this.element.classList.contains("e-dlg-modal"),this.getScrollableParent(this.element.parentNode,"vertical"),this.getScrollableParent(this.element.parentNode,"horizontal")},e.prototype.initialize=function(t,e){if(this.currentStateTarget=t.target,!this.isDragStarted()){if(this.isDragStarted(!0),this.externalInitialize=!1,this.target=t.currentTarget||e,this.dragProcessStarted=!1,this.abort){var i=this.abort;"string"==typeof i&&(i=[i]);for(var r=0;r<i.length;r++)if(!h(z(t.target,i[parseInt(r.toString(),10)])))return void(this.isDragStarted()&&this.isDragStarted(!0))}this.preventDefault&&!u(t.changedTouches)&&"touchstart"!==t.type&&t.preventDefault(),this.element.setAttribute("aria-grabbed","true");var n=this.getCoordinates(t);if(this.initialPosition={x:n.pageX,y:n.pageY},!this.clone){var o=this.element.getBoundingClientRect();this.getScrollableValues(),t.clientX===t.pageX&&(this.parentScrollX=0),t.clientY===t.pageY&&(this.parentScrollY=0),this.relativeXPosition=n.pageX-(o.left+this.parentScrollX),this.relativeYPosition=n.pageY-(o.top+this.parentScrollY)}this.externalInitialize?this.intDragStart(t):(xo.add(document,Oo.isSafari()?"touchmove":Oo.touchMoveEvent,this.intDragStart,this),xo.add(document,Oo.isSafari()?"touchend":Oo.touchEndEvent,this.intDestroy,this)),this.toggleEvents(!0),"touchstart"!==t.type&&this.isPreventSelect&&document.body.classList.add("e-prevent-select"),this.externalInitialize=!1,xo.trigger(document.documentElement,Oo.isSafari()?"touchstart":Oo.touchStartEvent,t)}},e.prototype.intDragStart=function(t){this.removeTapholdTimer();var e=!u(t.changedTouches);if(!e||1===t.changedTouches.length){var i,r=this.getCoordinates(t),n=getComputedStyle(this.element);this.margin={left:parseInt(n.marginLeft,10),top:parseInt(n.marginTop,10),right:parseInt(n.marginRight,10),bottom:parseInt(n.marginBottom,10)};var o=this.element;if(this.clone&&this.dragTarget){var s=z(t.target,this.dragTarget);h(s)||(o=s)}this.isReplaceDragEle&&(o=this.currentStateCheck(t.target,o)),this.offset=this.calculateParentPosition(o),this.position=this.getMousePosition(t,this.isDragScroll);var a=this.initialPosition.x-r.pageX,l=this.initialPosition.y-r.pageY;if(Math.sqrt(a*a+l*l)>=this.distance||this.externalInitialize){var c=this.getHelperElement(t);if(!c||h(c))return;e&&t.preventDefault();var p=this.helperElement=c;if(this.parentClientRect=this.calculateParentPosition(p.offsetParent),this.dragStart){var d={event:t,element:o,target:this.getProperTargetElement(t),bindEvents:y()?this.bindDragEvents.bind(this):null,dragElement:p};this.trigger("dragStart",d)}this.dragArea?this.setDragArea():(this.dragLimit={left:0,right:0,bottom:0,top:0},this.borderWidth={top:0,left:0}),i={left:this.position.left-this.parentClientRect.left,top:this.position.top-this.parentClientRect.top},this.clone&&!this.enableTailMode&&(this.diffX=this.position.left-this.offset.left,this.diffY=this.position.top-this.offset.top),this.getScrollableValues();var g=getComputedStyle(o),f=parseFloat(g.marginTop);this.clone&&0!==f&&(i.top+=f),this.eleTop=isNaN(parseFloat(g.top))?0:parseFloat(g.top)-this.offset.top,this.enableScrollHandler&&!this.clone&&(i.top-=this.parentScrollY,i.left-=this.parentScrollX);var m=this.getProcessedPositionValue({top:i.top-this.diffY+"px",left:i.left-this.diffX+"px"});this.dragArea&&"string"!=typeof this.dragArea&&this.dragArea.classList.contains("e-kanban-content")&&"relative"===this.dragArea.style.position&&(i.top+=this.dragArea.scrollTop),this.dragElePosition={top:i.top,left:i.left},T(p,this.getDragPosition({position:"absolute",left:m.left,top:m.top})),xo.remove(document,Oo.isSafari()?"touchmove":Oo.touchMoveEvent,this.intDragStart),xo.remove(document,Oo.isSafari()?"touchend":Oo.touchEndEvent,this.intDestroy),y()||this.bindDragEvents(p)}}},e.prototype.bindDragEvents=function(t){N(t)?(xo.add(document,Oo.isSafari()?"touchmove":Oo.touchMoveEvent,this.intDrag,this),xo.add(document,Oo.isSafari()?"touchend":Oo.touchEndEvent,this.intDragStop,this),this.setGlobalDroppables(!1,this.element,t)):(this.toggleEvents(),document.body.classList.remove("e-prevent-select"))},e.prototype.elementInViewport=function(t){for(this.top=t.offsetTop,this.left=t.offsetLeft,this.width=t.offsetWidth,this.height=t.offsetHeight;t.offsetParent;)t=t.offsetParent,this.top+=t.offsetTop,this.left+=t.offsetLeft;return this.top>=window.pageYOffset&&this.left>=window.pageXOffset&&this.top+this.height<=window.pageYOffset+window.innerHeight&&this.left+this.width<=window.pageXOffset+window.innerWidth},e.prototype.getProcessedPositionValue=function(t){return this.queryPositionInfo?this.queryPositionInfo(t):t},e.prototype.calculateParentPosition=function(t){if(h(t))return{left:0,top:0};var e=t.getBoundingClientRect(),i=getComputedStyle(t);return{left:e.left+window.pageXOffset-parseInt(i.marginLeft,10),top:e.top+window.pageYOffset-parseInt(i.marginTop,10)}},e.prototype.intDrag=function(t){if(u(t.changedTouches)||1===t.changedTouches.length){this.clone&&t.changedTouches&&Oo.isDevice&&Oo.isTouch&&t.preventDefault();var e,i;this.position=this.getMousePosition(t,this.isDragScroll);var r=this.getDocumentWidthHeight("Height");r<this.position.top&&(this.position.top=r);var n=this.getDocumentWidthHeight("Width");if(n<this.position.left&&(this.position.left=n),this.drag){var o=this.getProperTargetElement(t);this.trigger("drag",{event:t,element:this.element,target:o})}var s=this.checkTargetElement(t);if(s.target&&s.instance){var a=!0;this.hoverObject&&(this.hoverObject.instance!==s.instance?this.triggerOutFunction(t,s):a=!1),a&&(s.instance.dragData[this.scope]=this.droppables[this.scope],s.instance.intOver(t,s.target),this.hoverObject=s)}else this.hoverObject&&this.triggerOutFunction(t,s);var l=this.droppables[this.scope].helper;this.parentClientRect=this.calculateParentPosition(this.helperElement.offsetParent);var c=this.parentClientRect.left,p=this.parentClientRect.top,d=this.getCoordinates(t),g=d.pageX,f=d.pageY,y=this.position.left-this.diffX,m=this.position.top-this.diffY,M=getComputedStyle(l);if(this.dragArea){if(this.enableAutoScroll&&this.setDragArea(),this.pageX!==g||this.skipDistanceCheck){var v=l.offsetWidth+(parseFloat(M.marginLeft)+parseFloat(M.marginRight));e=this.dragLimit.left>y&&y>0?this.dragLimit.left:this.dragLimit.right+window.pageXOffset<y+v&&y>0?y-(y-this.dragLimit.right)+window.pageXOffset-v:y<0?this.dragLimit.left:y}if(this.pageY!==f||this.skipDistanceCheck){var b=l.offsetHeight+(parseFloat(M.marginTop)+parseFloat(M.marginBottom));i=this.dragLimit.top>m&&m>0?this.dragLimit.top:this.dragLimit.bottom+window.pageYOffset<m+b&&m>0?m-(m-this.dragLimit.bottom)+window.pageYOffset-b:m<0?this.dragLimit.top:m}}else e=y,i=m;var w=p+this.borderWidth.top,N=c+this.borderWidth.left;this.dragProcessStarted&&(h(i)&&(i=this.prevTop),h(e)&&(e=this.prevLeft));var S,D;if(this.helperElement.classList.contains("e-treeview"))this.dragArea?(this.dragLimit.top=this.clone?this.dragLimit.top:0,S=i-w<0?this.dragLimit.top:i-this.borderWidth.top,D=e-N<0?this.dragLimit.left:e-this.borderWidth.left):(S=i-this.borderWidth.top,D=e-this.borderWidth.left);else if(this.dragArea){var j=this.helperElement.classList.contains("e-dialog");this.dragLimit.top=this.clone?this.dragLimit.top:0,S=i-w<0?this.dragLimit.top:i-w,D=e-N<0?j?e-(N-this.borderWidth.left):this.dragElePosition.left:e-N}else S=i-w,D=e-N;var I=parseFloat(getComputedStyle(this.element).marginTop);if(I>0&&(this.clone&&(S+=I,m<0&&(I+m>=0?S=I+m:S-=I),this.dragArea&&(S=this.dragLimit.bottom<S?this.dragLimit.bottom:S)),i-w<0))if(m+I+(l.offsetHeight-w)>=0){var O=this.dragLimit.top+m-w;O+I+w<0?S-=I+w:S=O}else S-=I+w;if(this.dragArea&&this.helperElement.classList.contains("e-treeview")){S=S+(b=l.offsetHeight+(parseFloat(M.marginTop)+parseFloat(M.marginBottom)))>this.dragLimit.bottom?this.dragLimit.bottom-b:S}this.enableScrollHandler&&!this.clone&&(S-=this.parentScrollY,D-=this.parentScrollX),this.dragArea&&"string"!=typeof this.dragArea&&this.dragArea.classList.contains("e-kanban-content")&&"relative"===this.dragArea.style.position&&(S+=this.dragArea.scrollTop);var x=this.getProcessedPositionValue({top:S+"px",left:D+"px"});T(l,this.getDragPosition(x)),this.elementInViewport(l)||!this.enableAutoScroll||this.helperElement.classList.contains("e-treeview")||this.helperElement.scrollIntoView();var C=document.querySelectorAll(":hover");if(this.enableAutoScroll&&this.helperElement.classList.contains("e-treeview")){0===C.length&&(C=this.getPathElements(t));var z=this.getScrollParent(C,!1);this.elementInViewport(this.helperElement)?this.getScrollPosition(z,S):this.elementInViewport(this.helperElement)||(0===(C=[].slice.call(document.querySelectorAll(":hover"))).length&&(C=this.getPathElements(t)),z=this.getScrollParent(C,!0),this.getScrollPosition(z,S))}this.dragProcessStarted=!0,this.prevLeft=e,this.prevTop=i,this.position.left=e,this.position.top=i,this.pageX=g,this.pageY=f}},e.prototype.getScrollParent=function(t,e){for(var i,r=e?t.reverse():t,n=r.length-1;n>=0;n--)if(("auto"===(i=window.getComputedStyle(r[parseInt(n.toString(),10)])["overflow-y"])||"scroll"===i)&&r[parseInt(n.toString(),10)].scrollHeight>r[parseInt(n.toString(),10)].clientHeight)return r[parseInt(n.toString(),10)];if("visible"===(i=window.getComputedStyle(document.scrollingElement)["overflow-y"]))return document.scrollingElement.style.overflow="auto",document.scrollingElement},e.prototype.getScrollPosition=function(t,e){if(t&&t===document.scrollingElement)t.clientHeight+document.scrollingElement.scrollTop-this.helperElement.clientHeight<e&&t.getBoundingClientRect().height+this.parentClientRect.top>e?t.scrollTop+=this.helperElement.clientHeight:t.scrollTop>e-this.helperElement.clientHeight&&(t.scrollTop-=this.helperElement.clientHeight);else if(t&&t!==document.scrollingElement){var i=document.scrollingElement.scrollTop,r=this.helperElement.clientHeight;t.clientHeight+t.getBoundingClientRect().top-r+i<e?t.scrollTop+=this.helperElement.clientHeight:t.getBoundingClientRect().top>e-r-i&&(t.scrollTop-=this.helperElement.clientHeight)}},e.prototype.getPathElements=function(t){var e=t.clientX>0?t.clientX:0,i=t.clientY>0?t.clientY:0;return document.elementsFromPoint(e,i)},e.prototype.triggerOutFunction=function(t,e){this.hoverObject.instance.intOut(t,e.target),this.hoverObject.instance.dragData[this.scope]=null,this.hoverObject=null},e.prototype.getDragPosition=function(t){var e=l({},t);return this.axis&&("x"===this.axis?delete e.top:"y"===this.axis&&delete e.left),e},e.prototype.getDocumentWidthHeight=function(t){var e=document.body,i=document.documentElement;return Math.max(e["scroll"+t],i["scroll"+t],e["offset"+t],i["offset"+t],i["client"+t])},e.prototype.intDragStop=function(t){if(this.dragProcessStarted=!1,u(t.changedTouches)||1===t.changedTouches.length){if(-1!==["touchend","pointerup","mouseup"].indexOf(t.type)){if(this.dragStop){var e=this.getProperTargetElement(t);this.trigger("dragStop",{event:t,element:this.element,target:e,helper:this.helperElement})}this.intDestroy(t)}else this.element.setAttribute("aria-grabbed","false");var i=this.checkTargetElement(t);i.target&&i.instance&&(i.instance.dragStopCalled=!0,i.instance.dragData[this.scope]=this.droppables[this.scope],i.instance.intDrop(t,i.target)),this.setGlobalDroppables(!0),document.body.classList.remove("e-prevent-select")}},e.prototype.intDestroy=function(t){this.dragProcessStarted=!1,this.toggleEvents(),document.body.classList.remove("e-prevent-select"),this.element.setAttribute("aria-grabbed","false"),xo.remove(document,Oo.isSafari()?"touchmove":Oo.touchMoveEvent,this.intDragStart),xo.remove(document,Oo.isSafari()?"touchend":Oo.touchEndEvent,this.intDragStop),xo.remove(document,Oo.isSafari()?"touchend":Oo.touchEndEvent,this.intDestroy),xo.remove(document,Oo.isSafari()?"touchmove":Oo.touchMoveEvent,this.intDrag),this.isDragStarted()&&this.isDragStarted(!0)},e.prototype.onPropertyChanged=function(t,e){},e.prototype.getModuleName=function(){return"draggable"},e.prototype.isDragStarted=function(t){return t&&(ss.isDragged=!ss.isDragged),ss.isDragged},e.prototype.setDragArea=function(){var t,e,i,r=0,n=0;if(i="string"===typeof this.dragArea?O(this.dragArea):this.dragArea){var o=i.getBoundingClientRect();t=i.scrollWidth?i.scrollWidth:o.right-o.left,e=i.scrollHeight?this.dragArea&&!h(this.helperElement)&&this.helperElement.classList.contains("e-treeview")?i.clientHeight:i.scrollHeight:o.bottom-o.top;for(var s=["Top","Left","Bottom","Right"],a=getComputedStyle(i),l=0;l<s.length;l++){var u=s[parseInt(l.toString(),10)],c=a["border"+u+"Width"],p=a["padding"+u],d=u.toLowerCase();this.borderWidth[""+d]=isNaN(parseFloat(c))?0:parseFloat(c),this.padding[""+d]=isNaN(parseFloat(p))?0:parseFloat(p)}r=this.dragArea&&!h(this.helperElement)&&this.helperElement.classList.contains("e-treeview")?o.top+document.scrollingElement.scrollTop:o.top,n=o.left,this.dragLimit.left=n+this.borderWidth.left+this.padding.left,this.dragLimit.top=i.offsetTop+this.borderWidth.top+this.padding.top,this.dragLimit.right=n+t-(this.borderWidth.right+this.padding.right),this.dragLimit.bottom=r+e-(this.borderWidth.bottom+this.padding.bottom)}},e.prototype.getProperTargetElement=function(t){var e,i=this.getCoordinates(t),r=this.helperElement.style.pointerEvents||"",n=-1!==t.type.indexOf("pointer")&&"safari"===Oo.info.name&&parseInt(Oo.info.version,10)>12;return d(t.target,this.helperElement)||-1!==t.type.indexOf("touch")||n?(this.helperElement.style.pointerEvents="none",e=document.elementFromPoint(i.clientX,i.clientY),this.helperElement.style.pointerEvents=r):e=t.target,e},e.prototype.currentStateCheck=function(t,e){return h(this.currentStateTarget)||this.currentStateTarget===t?h(e)?t:e:this.currentStateTarget},e.prototype.getMousePosition=function(t,e){var i,r,n=void 0!==t.srcElement?t.srcElement:t.target,o=this.getCoordinates(t),s=h(n.offsetParent);if(e?(i=this.clone?o.pageX:o.pageX+(s?0:n.offsetParent.scrollLeft)-this.relativeXPosition,r=this.clone?o.pageY:o.pageY+(s?0:n.offsetParent.scrollTop)-this.relativeYPosition):(i=this.clone?o.pageX:o.pageX+window.pageXOffset-this.relativeXPosition,r=this.clone?o.pageY:o.pageY+window.pageYOffset-this.relativeYPosition),document.scrollingElement&&!e&&!this.clone){var a=document.scrollingElement,l=a.scrollHeight>0&&a.scrollHeight>a.clientHeight&&a.scrollTop>0;i=a.scrollWidth>0&&a.scrollWidth>a.clientWidth&&a.scrollLeft>0?i-a.scrollLeft:i,r=l?r-a.scrollTop:r}return{left:i-(this.margin.left+this.cursorAt.left),top:r-(this.margin.top+this.cursorAt.top)}},e.prototype.getCoordinates=function(t){return t.type.indexOf("touch")>-1?t.changedTouches[0]:t},e.prototype.getHelperElement=function(t){var e;return this.clone?this.helper?e=this.helper({sender:t,element:this.target}):(e=M("div",{className:"e-drag-helper e-block-touch",innerHTML:"Draggable"}),document.body.appendChild(e)):e=this.element,e},e.prototype.setGlobalDroppables=function(t,e,i){this.droppables[this.scope]=t?null:{draggable:e,helper:i,draggedElement:this.element}},e.prototype.checkTargetElement=function(t){var e=this.getProperTargetElement(t),i=this.getDropInstance(e);if(!i&&e&&!h(e.parentNode)){var r=z(e.parentNode,".e-droppable")||e.parentElement;r&&(i=this.getDropInstance(r))}return{target:e,instance:i}},e.prototype.getDropInstance=function(t){var e,i=t&&t.ej2_instances;if(i)for(var r=0,n=i;r<n.length;r++){var o=n[r];if("droppable"===o.getModuleName()){e=o;break}}return e},e.prototype.destroy=function(){this.toggleEvents(!0),t.prototype.destroy.call(this)};var i;return ns([U({},as)],e.prototype,"cursorAt",void 0),ns([R(!0)],e.prototype,"clone",void 0),ns([R()],e.prototype,"dragArea",void 0),ns([R()],e.prototype,"isDragScroll",void 0),ns([R()],e.prototype,"isReplaceDragEle",void 0),ns([R(!0)],e.prototype,"isPreventSelect",void 0),ns([V()],e.prototype,"drag",void 0),ns([V()],e.prototype,"dragStart",void 0),ns([V()],e.prototype,"dragStop",void 0),ns([R(1)],e.prototype,"distance",void 0),ns([R()],e.prototype,"handle",void 0),ns([R()],e.prototype,"abort",void 0),ns([R()],e.prototype,"helper",void 0),ns([R("default")],e.prototype,"scope",void 0),ns([R("")],e.prototype,"dragTarget",void 0),ns([R()],e.prototype,"axis",void 0),ns([R()],e.prototype,"queryPositionInfo",void 0),ns([R(!1)],e.prototype,"enableTailMode",void 0),ns([R(!1)],e.prototype,"skipDistanceCheck",void 0),ns([R(!0)],e.prototype,"preventDefault",void 0),ns([R(!1)],e.prototype,"enableAutoScroll",void 0),ns([R(!1)],e.prototype,"enableTapHold",void 0),ns([R(750)],e.prototype,"tapHoldThreshold",void 0),ns([R(!1)],e.prototype,"enableScrollHandler",void 0),e=i=ns([Y],e)}(To),hs=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),us=function(t,e,i,r){var n,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,i,s):n(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s},cs=function(t){function e(e,i){var r=t.call(this,i,e)||this;return r.mouseOver=!1,r.dragData={},r.dragStopCalled=!1,r.bind(),r}return hs(e,t),e.prototype.bind=function(){this.wireEvents()},e.prototype.wireEvents=function(){xo.add(this.element,Oo.isSafari()?"touchend":Oo.touchEndEvent,this.intDrop,this)},e.prototype.onPropertyChanged=function(t,e){},e.prototype.getModuleName=function(){return"droppable"},e.prototype.intOver=function(t,e){if(!this.mouseOver){var i=this.dragData[this.scope];this.trigger("over",{event:t,target:e,dragData:i}),this.mouseOver=!0}},e.prototype.intOut=function(t,e){this.mouseOver&&(this.trigger("out",{evt:t,target:e}),this.mouseOver=!1)},e.prototype.intDrop=function(t,e){if(this.dragStopCalled){this.dragStopCalled=!1;var i,r=!0,n=this.dragData[this.scope],o=!!n&&(n.helper&&N(n.helper));o&&(i=this.isDropArea(t,n.helper,e),this.accept&&(r=L(n.helper,this.accept))),o&&this.drop&&i.canDrop&&r&&this.trigger("drop",{event:t,target:i.target,droppedElement:n.helper,dragData:n}),this.mouseOver=!1}},e.prototype.isDropArea=function(t,e,i){var r={canDrop:!0,target:i||t.target},n="touchend"===t.type;if(n||r.target===e){e.style.display="none";var o=n?t.changedTouches[0]:t,s=document.elementFromPoint(o.clientX,o.clientY);r.canDrop=!1,r.canDrop=d(s,this.element),r.canDrop&&(r.target=s),e.style.display=""}return r},e.prototype.destroy=function(){xo.remove(this.element,Oo.isSafari()?"touchend":Oo.touchEndEvent,this.intDrop),t.prototype.destroy.call(this)},us([R()],e.prototype,"accept",void 0),us([R("default")],e.prototype,"scope",void 0),us([V()],e.prototype,"drop",void 0),us([V()],e.prototype,"over",void 0),us([V()],e.prototype,"out",void 0),e=us([Y],e)}(To),ps=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),ds=function(t,e,i,r){var n,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,i,s):n(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s},gs={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,space:32,escape:27,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,semicolon:186,plus:187,comma:188,minus:189,dot:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},fs=function(t){function e(e,r){var n=t.call(this,r,e)||this;return n.keyPressHandler=function(t){for(var e=t.altKey,r=t.ctrlKey,o=t.shiftKey,s=t.which,a=0,l=Object.keys(n.keyConfigs);a<l.length;a++)for(var h=l[a],u=0,c=n.keyConfigs[""+h].split(",");u<c.length;u++){var p=c[u],d=i.getKeyConfigData(p.trim());e===d.altKey&&r===d.ctrlKey&&o===d.shiftKey&&s===d.keyCode&&(t.action=h,n.keyAction&&n.keyAction(t))}},n.bind(),n}ps(e,t),i=e,e.prototype.destroy=function(){this.unwireEvents(),t.prototype.destroy.call(this)},e.prototype.onPropertyChanged=function(t,e){},e.prototype.bind=function(){this.wireEvents()},e.prototype.getModuleName=function(){return"keyboard"},e.prototype.wireEvents=function(){this.element.addEventListener(this.eventName,this.keyPressHandler)},e.prototype.unwireEvents=function(){this.element.removeEventListener(this.eventName,this.keyPressHandler)},e.getKeyConfigData=function(t){if(t in this.configCache)return this.configCache[""+t];var e=t.toLowerCase().split("+"),r={altKey:-1!==e.indexOf("alt"),ctrlKey:-1!==e.indexOf("ctrl"),shiftKey:-1!==e.indexOf("shift"),keyCode:null};return e[e.length-1].length>1&&Number(e[e.length-1])?r.keyCode=Number(e[e.length-1]):r.keyCode=i.getKeyCode(e[e.length-1]),i.configCache[""+t]=r,r},e.getKeyCode=function(t){return gs[""+t]||t.toUpperCase().charCodeAt(0)};var i;return e.configCache={},ds([R({})],e.prototype,"keyConfigs",void 0),ds([R("keyup")],e.prototype,"eventName",void 0),ds([V()],e.prototype,"keyAction",void 0),e=i=ds([Y],e)}(To),ys=function(){function t(t,e,i){this.controlName=t,this.localeStrings=e,this.setLocale(i||no)}return t.prototype.setLocale=function(e){var i=this.intGetControlConstant(t.locale,e);this.currentLocale=i||this.localeStrings},t.load=function(t){this.locale=l(this.locale,t,{},!0)},t.prototype.getConstant=function(t){return h(this.currentLocale[""+t])?this.localeStrings[""+t]||"":this.currentLocale[""+t]},t.prototype.intGetControlConstant=function(t,e){return t[""+e]?t[""+e][this.controlName]:null},t.locale={},t}(),ms=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Ms=function(t,e,i,r){var n,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,i,s):n(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s},vs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ms(e,t),Ms([R(50)],e.prototype,"swipeThresholdDistance",void 0),e}(Uo),bs=/(Up|Down)/,ws=function(t){function e(e,i){var r=t.call(this,i,e)||this;return r.touchAction=!0,r.tapCount=0,r.startEvent=function(t){if(!0===r.touchAction){var e=r.updateChangeTouches(t);void 0!==t.changedTouches&&(r.touchAction=!1),r.isTouchMoved=!1,r.movedDirection="",r.startPoint=r.lastMovedPoint={clientX:e.clientX,clientY:e.clientY},r.startEventData=e,r.hScrollLocked=r.vScrollLocked=!1,r.tStampStart=Date.now(),r.timeOutTapHold=setTimeout(function(){r.tapHoldEvent(t)},r.tapHoldThreshold),xo.add(r.element,Oo.touchMoveEvent,r.moveEvent,r),xo.add(r.element,Oo.touchEndEvent,r.endEvent,r),xo.add(r.element,Oo.touchCancelEvent,r.cancelEvent,r)}},r.moveEvent=function(t){var e=r.updateChangeTouches(t);r.movedPoint=e,r.isTouchMoved=!(e.clientX===r.startPoint.clientX&&e.clientY===r.startPoint.clientY);var i={};if(r.isTouchMoved){clearTimeout(r.timeOutTapHold),r.calcScrollPoints(t);i=l(i,{},{startEvents:r.startEventData,originalEvent:t,startX:r.startPoint.clientX,startY:r.startPoint.clientY,distanceX:r.distanceX,distanceY:r.distanceY,scrollDirection:r.scrollDirection,velocity:r.getVelocity(e)}),r.trigger("scroll",i),r.lastMovedPoint={clientX:e.clientX,clientY:e.clientY}}},r.cancelEvent=function(t){clearTimeout(r.timeOutTapHold),clearTimeout(r.timeOutTap),r.tapCount=0,r.swipeFn(t),xo.remove(r.element,Oo.touchCancelEvent,r.cancelEvent)},r.endEvent=function(t){r.swipeFn(t),r.isTouchMoved||"function"==typeof r.tap&&(r.trigger("tap",{originalEvent:t,tapCount:++r.tapCount}),r.timeOutTap=setTimeout(function(){r.tapCount=0},r.tapThreshold)),r.modeclear()},r.swipeFn=function(t){clearTimeout(r.timeOutTapHold),clearTimeout(r.timeOutTap);var e=r.updateChangeTouches(t),i=e.clientX-r.startPoint.clientX,n=e.clientY-r.startPoint.clientY;i=Math.floor(i<0?-1*i:i),n=Math.floor(n<0?-1*n:i),r.isTouchMoved=i>1||n>1;/Firefox/.test(Oo.userAgent)&&0===e.clientX&&0===e.clientY&&"mouseup"===t.type&&(r.isTouchMoved=!1),r.endPoint=e,r.calcPoints(t);var o={originalEvent:t,startEvents:r.startEventData,startX:r.startPoint.clientX,startY:r.startPoint.clientY,distanceX:r.distanceX,distanceY:r.distanceY,swipeDirection:r.movedDirection,velocity:r.getVelocity(e)};if(r.isTouchMoved){var s=void 0,a=r.swipeSettings.swipeThresholdDistance;s=l(s,r.defaultArgs,o);var h=!1,u=r.element,c=r.isScrollable(u),p=bs.test(r.movedDirection);(a<r.distanceX&&!p||a<r.distanceY&&p)&&(h=!c||r.checkSwipe(u,p)),h&&r.trigger("swipe",s)}r.modeclear()},r.modeclear=function(){r.modeClear=setTimeout(function(){r.touchAction=!0},"function"!=typeof r.tap?0:20),r.lastTapTime=(new Date).getTime(),xo.remove(r.element,Oo.touchMoveEvent,r.moveEvent),xo.remove(r.element,Oo.touchEndEvent,r.endEvent),xo.remove(r.element,Oo.touchCancelEvent,r.cancelEvent)},r.bind(),r}return ms(e,t),e.prototype.onPropertyChanged=function(t,e){},e.prototype.bind=function(){this.wireEvents(),Oo.isIE&&this.element.classList.add("e-block-touch")},e.prototype.destroy=function(){this.unwireEvents(),t.prototype.destroy.call(this)},e.prototype.wireEvents=function(){xo.add(this.element,Oo.touchStartEvent,this.startEvent,this)},e.prototype.unwireEvents=function(){xo.remove(this.element,Oo.touchStartEvent,this.startEvent)},e.prototype.getModuleName=function(){return"touch"},e.prototype.isScrollable=function(t){var e=getComputedStyle(t),i=e.overflow+e.overflowX+e.overflowY;return!!/(auto|scroll)/.test(i)},e.prototype.tapHoldEvent=function(t){this.tapCount=0,this.touchAction=!0;var e;xo.remove(this.element,Oo.touchMoveEvent,this.moveEvent),xo.remove(this.element,Oo.touchEndEvent,this.endEvent),e={originalEvent:t},this.trigger("tapHold",e),xo.remove(this.element,Oo.touchCancelEvent,this.cancelEvent)},e.prototype.calcPoints=function(t){var e=this.updateChangeTouches(t);this.defaultArgs={originalEvent:t},this.distanceX=Math.abs(Math.abs(e.clientX)-Math.abs(this.startPoint.clientX)),this.distanceY=Math.abs(Math.abs(e.clientY)-Math.abs(this.startPoint.clientY)),this.distanceX>this.distanceY?this.movedDirection=e.clientX>this.startPoint.clientX?"Right":"Left":this.movedDirection=e.clientY<this.startPoint.clientY?"Up":"Down"},e.prototype.calcScrollPoints=function(t){var e=this.updateChangeTouches(t);this.defaultArgs={originalEvent:t},this.distanceX=Math.abs(Math.abs(e.clientX)-Math.abs(this.lastMovedPoint.clientX)),this.distanceY=Math.abs(Math.abs(e.clientY)-Math.abs(this.lastMovedPoint.clientY)),(this.distanceX>this.distanceY||!0===this.hScrollLocked)&&!1===this.vScrollLocked?(this.scrollDirection=e.clientX>this.lastMovedPoint.clientX?"Right":"Left",this.hScrollLocked=!0):(this.scrollDirection=e.clientY<this.lastMovedPoint.clientY?"Up":"Down",this.vScrollLocked=!0)},e.prototype.getVelocity=function(t){var e=t.clientX,i=t.clientY,r=Date.now(),n=e-this.startPoint.clientX,o=i-this.startPoint.clientX,s=r-this.tStampStart;return Math.sqrt(n*n+o*o)/s},e.prototype.checkSwipe=function(t,e){var i=["scroll","offset"],r=e?["Height","Top"]:["Width","Left"];return t[i[0]+r[0]]<=t[i[1]+r[0]]||(0===t[i[0]+r[1]]||t[i[1]+r[0]]+t[i[0]+r[1]]>=t[i[0]+r[0]])},e.prototype.updateChangeTouches=function(t){return t.changedTouches&&0!==t.changedTouches.length?t.changedTouches[0]:t},Ms([V()],e.prototype,"tap",void 0),Ms([V()],e.prototype,"tapHold",void 0),Ms([V()],e.prototype,"swipe",void 0),Ms([V()],e.prototype,"scroll",void 0),Ms([R(350)],e.prototype,"tapThreshold",void 0),Ms([R(750)],e.prototype,"tapHoldThreshold",void 0),Ms([U({},vs)],e.prototype,"swipeSettings",void 0),e=Ms([Y],e)}(To),Ns=new RegExp("\\n|\\r|\\s\\s+","g"),Ss=new RegExp(/'|"/g),Ds=new RegExp("if ?\\("),js=new RegExp("else if ?\\("),Is=new RegExp("else"),Os=new RegExp("for ?\\("),xs=new RegExp("(/if|/for)"),Cs=new RegExp("\\((.*)\\)",""),zs=new RegExp("^[0-9]+$","g"),Ts=new RegExp("[\\w\"'.\\s+]+","g"),Ls=new RegExp('"(.*?)"',"g"),As=new RegExp("[\\w\"'@#$.\\s-+]+","g"),Ps=new RegExp("\\${([^}]*)}","g"),Es=/^\..*/gm,ks=/\\/gi,Bs=/\\\\/gi,Fs=new RegExp("[\\w\"'@#$.\\s+]+","g"),Rs=/\window\./gm,Us=/^[\n\r.]+<tr|^<tr/,_s=/^[\n\r.]+<svg|^<path|^<g/,Vs={},Ys={compile:(new(function(){function t(){}return t.prototype.compile=function(t,e,i){return void 0===e&&(e={}),X(t,e)},t}())).compile},Qs=["script","style","iframe[src]",'link[href*="javascript:"]','object[type="text/x-scriptlet"]','object[data^="data:text/html;base64"]','img[src^="data:text/html;base64"]','[src^="javascript:"]','[dynsrc^="javascript:"]','[lowsrc^="javascript:"]','[type^="application/x-shockwave-flash"]'],Ws=[{attribute:"href",selector:'[href*="javascript:"]'},{attribute:"background",selector:'[background^="javascript:"]'},{attribute:"style",selector:'[style*="javascript:"]'},{attribute:"style",selector:'[style*="expression("]'},{attribute:"href",selector:'a[href^="data:text/html;base64"]'}],Gs=["onchange","onclick","onmouseover","onmouseout","onkeydown","onload","onerror","onblur","onfocus","onbeforeload","onbeforeunload","onkeyup","onsubmit","onafterprint","onbeforeonload","onbeforeprint","oncanplay","oncanplaythrough","oncontextmenu","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onformchange","onforminput","onhaschange","oninput","oninvalid","onkeypress","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmousedown","onmousemove","onmouseup","onmousewheel","onoffline","onoine","ononline","onpagehide","onpageshow","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreadystatechange","onredo","onresize","onscroll","onseeked","onseeking","onselect","onstalled","onstorage","onsuspend","ontimeupdate","onundo","onunload","onvolumechange","onwaiting","onmouseenter","onmouseleave","onstart","onpropertychange","oncopy","ontoggle","onpointerout","onpointermove","onpointerleave","onpointerenter","onpointerrawupdate","onpointerover","onbeforecopy","onbeforecut","onbeforeinput"],Hs=function(){function t(){}return t.beforeSanitize=function(){return{selectors:{tags:Qs,attributes:Ws}}},t.sanitize=function(t){if(h(t))return t;var e=this.beforeSanitize();return this.serializeValue(e,t)},t.serializeValue=function(t,e){this.removeAttrs=t.selectors.attributes,this.removeTags=t.selectors.tags,this.wrapElement=document.createElement("div"),this.wrapElement.innerHTML=e,this.removeXssTags(),this.removeJsEvents(),this.removeXssAttrs();var i=this.wrapElement.innerHTML;return this.removeElement(),this.wrapElement=null,i.replace(/&/g,"&")},t.removeElement=function(){for(var t=this.wrapElement.children,e=0;e<t.length;e++)for(var i=t[parseInt(e.toString(),10)].attributes,r=0;r<i.length;r++)this.wrapElement.children[parseInt(e.toString(),10)].removeAttribute(i[parseInt(r.toString(),10)].localName)},t.removeXssTags=function(){var t=this.wrapElement.querySelectorAll(this.removeTags.join(","));t.length>0&&t.forEach(function(t){D(t)})},t.removeJsEvents=function(){var t=this.wrapElement.querySelectorAll("["+Gs.join("],[")+"]");t.length>0&&t.forEach(function(t){Gs.forEach(function(e){t.hasAttribute(e)&&t.removeAttribute(e)})})},t.removeXssAttrs=function(){var t=this;this.removeAttrs.forEach(function(e,i){var r=t.wrapElement.querySelectorAll(e.selector);r.length>0&&r.forEach(function(t){t.removeAttribute(e.attribute)})})},t}(),qs=Object.freeze({blazorCultureFormats:ho,get IntlBase(){return Fn},Ajax:po,Fetch:go,Animation:Eo,rippleEffect:function(t,e,i){var r=function(t){return{selector:t&&t.selector?t.selector:null,ignore:t&&t.ignore?t.ignore:null,rippleFlag:t&&t.rippleFlag,isCenterRipple:t&&t.isCenterRipple,duration:t&&t.duration?t.duration:350}}(e);return!1===r.rippleFlag||void 0===r.rippleFlag&&!ko?function(){}:(t.setAttribute("data-ripple","true"),xo.add(t,"mousedown",H,{parent:t,rippleOptions:r}),xo.add(t,"mouseup",q,{parent:t,rippleOptions:r,done:i}),xo.add(t,"mouseleave",$,{parent:t,rippleOptions:r}),Oo.isPointer&&xo.add(t,"transitionend",$,{parent:t,rippleOptions:r}),function(){t.removeAttribute("data-ripple"),xo.remove(t,"mousedown",H),xo.remove(t,"mouseup",q),xo.remove(t,"mouseleave",$),xo.remove(t,"transitionend",$)})},get isRippleEnabled(){return ko},enableRipple:function(t){return ko=t},get animationMode(){return jo},setGlobalAnimation:function(t){jo=t},get GlobalAnimationMode(){return Io},Base:To,getComponent:A,removeChildInstance:function(t){for(var e=[].slice.call(t.getElementsByClassName("e-control")),i=0;i<e.length;i++){var r=e[parseInt(i.toString(),10)].classList[1].split("e-")[1],n=A(e[parseInt(i.toString(),10)],r);u(n)||n.destroy()}},get proxyToRaw(){return Do},setProxyToRaw:Lo,Browser:Oo,get versionBasedStatePersistence(){return ts},enableVersionBasedPersistence:function(t){ts=t},Component:es,ChildProperty:Uo,Position:as,Draggable:ls,Droppable:cs,EventHandler:xo,onIntlChange:eo,get rightToLeft(){return io},cldrData:ro,get defaultCulture(){return no},get defaultCurrencyCode(){return oo},Internationalization:ao,setCulture:function(t){no=t,eo.notify("notifyExternalChange",{locale:no})},setCurrencyCode:function(t){oo=t,eo.notify("notifyExternalChange",{currencyCode:oo})},loadCldr:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i=0,r=t;i<r.length;i++){var n=r[i];l(ro,n,{},!0)}},enableRtl:function(t){void 0===t&&(t=!0),io=t,eo.notify("notifyExternalChange",{enableRtl:io})},getNumericObject:function(t,e){var i=Fn.getDependables(ro,t,"",!0)[so[0]],n=Fn.getDependables(ro,t,"")[so[1]],o=r("defaultNumberingSystem",i),s=y()?r("numberSymbols",i):r("symbols-numberSystem-"+o,i),a=Fn.getSymbolPattern(e||"decimal",o,i,!1);return l(s,Fn.getFormatData(a,!0,"",!0),{dateSeparator:Fn.getDateSeparator(n)})},getNumberDependable:function(t,e){var i=Fn.getDependables(ro,t,"",!0);return Fn.getCurrencySymbol(i.numericObject,e)},getDefaultDateObject:function(t){return Fn.getDependables(ro,"",t,!1)[so[1]]},KeyboardEvents:fs,L10n:ys,ModuleLoader:Ro,Property:R,Complex:U,ComplexFactory:function(t){return function(e,i){var r={set:function(t,e,i){return function(r){var n=i(r,this);P(this,e,t,n).setProperties(r)}}({},i,t),get:function(t,e,i){return function(){var r=i({});return this.properties.hasOwnProperty(e)?this.properties[""+e]:P(this,e,t,r)}}({},i,t),enumerable:!0,configurable:!0};Object.defineProperty(e,i,r),Q(e,i,"complexProp",{},t)}},Collection:_,CollectionFactory:function(t){return function(e,i){var r={set:function(t,e,i){return function(r){var n=this.properties.hasOwnProperty(e)?this.properties[e]:t,o=E(this,e,r,i,!0,!0);this.saveChanges(e,o,n),this.properties[""+e]=o}}([],i,t),get:function(t,e,i){return function(){var r=i({});if(!this.properties.hasOwnProperty(e)){var n=E(this,e,t,r,!1);this.properties[""+e]=n}return this.properties[""+e]}}([],i,t),enumerable:!0,configurable:!0};Object.defineProperty(e,i,r),Q(e,i,"colProp",{},t)}},Event:V,NotifyPropertyChanges:Y,CreateBuilder:function(t){var e=function(t){return this.element=t,this};return function(i){return e.prototype.hasOwnProperty("create")||((e.prototype=W(t)).create=function(){var e=l({},{},this.properties);return this.properties={},new t(e,this.element)}),new e(i)}},SwipeSettings:vs,Touch:ws,get HijriParser(){return xn},blazorTemplates:Vs,getRandomId:nt,compile:ot,updateBlazorTemplate:st,resetBlazorTemplate:at,setTemplateEngine:lt,getTemplateEngine:ht,initializeCSPTemplate:function(t,e){var i;return t.prototype.CSPTemplate=!0,h(e)?i=t:(i=t.bind(e)).prototype=Object.create(t.prototype),i},disableBlazorMode:function(){Tn=!1},createInstance:e,setImmediate:i,getValue:r,setValue:n,deleteObject:o,containerObject:Ln,isObject:s,getEnumValue:function(t,e){return t[e]},merge:a,extend:l,isNullOrUndefined:h,isUndefined:u,getUniqueID:c,debounce:p,queryParams:function(t){for(var e=[],i=0,r=Object.keys(t);i<r.length;i++){var n=r[i];e.push(encodeURIComponent(n)+"="+encodeURIComponent(""+t[""+n]))}return e.join("&")},isObjectArray:function(t){var e=Object.prototype.toString;return"[object Array]"===e.call(t)&&"[object Object]"===e.call(t[0])},compareElementParent:d,throwError:g,print:f,formatUnit:function(t){var e=t+"";return e.match(/auto|cm|mm|in|px|pt|pc|%|em|ex|ch|rem|vw|vh|vmin|vmax/)?e:e+"px"},enableBlazorMode:function(){Tn=!0},isBlazor:y,getElement:function(t){return t instanceof Node||!y()||h(t.xPath)?t:document.evaluate(t.xPath,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue},getInstance:function(t,e){var i="string"==typeof t?document.querySelector(t):t;if(i[""+Cn])for(var r=0,n=i[""+Cn];r<n.length;r++){var o=n[r];if(o instanceof e)return o}return null},addInstance:function(t,e){var i="string"==typeof t?document.querySelector(t):t;i[""+Cn]?i[""+Cn].push(e):i[""+Cn]=[e]},uniqueID:m,createElement:M,addClass:v,removeClass:b,isVisible:N,prepend:function(t,e,i){for(var r=document.createDocumentFragment(),n=0,o=t;n<o.length;n++){var s=o[n];r.appendChild(s)}return e.insertBefore(r,e.firstElementChild),i&&S(e),t},append:function(t,e,i){var r=document.createDocumentFragment();if(t instanceof NodeList)for(;t.length>0;)r.appendChild(t[0]);else for(var n=0,o=t;n<o.length;n++){var s=o[n];r.appendChild(s)}return e.appendChild(r),i&&S(e),t},detach:D,remove:j,attributes:I,select:O,selectAll:x,closest:z,siblings:function(t){for(var e=[],i=0,r=Array.prototype.slice.call(t.parentNode.childNodes);i<r.length;i++){var n=r[i];n.nodeType===Node.ELEMENT_NODE&&t!==n&&e.push(n)}return e},getAttributeOrDefault:function(t,e,i){var n,o=s(t);return n=o?r("attributes."+e,t):t.getAttribute(e),h(n)&&i&&(o?t.attributes[""+e]=i:t.setAttribute(e,i.toString()),n=i),n},setStyleAttribute:T,classList:function(t,e,i){v([t],e),b([t],i)},matches:L,includeInnerHTML:function(t,e){t.innerHTML=e},containsClass:function(t,e){return s(t)?new RegExp("\\b"+e+"\\b","i").test(t.attributes.className):t.classList.contains(e)},cloneNode:function(t,e){return s(t)?e?l({},{},t,!0):void 0:t.cloneNode(e)},Observer:to,SanitizeHtmlHelper:Hs,componentList:_o,registerLicense:Z,validateLicense:Wo,getVersion:function(){return Qo.version},createLicenseOverlay:Go}),$s=function(){function t(t){this.svgLink="http://www.w3.org/2000/svg",this.rootId=t}return t.prototype.getOptionValue=function(t,e){return t[e]},t.prototype.createSvg=function(t){return h(t.id)&&(t.id=this.rootId+"_svg"),this.svgObj=document.getElementById(t.id),h(document.getElementById(t.id))&&(this.svgObj=document.createElementNS(this.svgLink,"svg")),this.svgObj=this.setElementAttributes(t,this.svgObj),this.setSVGSize(t.width,t.height),this.svgObj},t.prototype.setSVGSize=function(t,e){var i=document.getElementById(this.rootId),r=h(i)?null:i.getBoundingClientRect();h(this.width)||this.width<=0?this.svgObj.setAttribute("width",t?t.toString():r.width.toString()):this.svgObj.setAttribute("width",this.width.toString()),h(this.height)||this.height<=0?this.svgObj.setAttribute("height",e?e.toString():"450"):this.svgObj.setAttribute("height",this.height.toString())},t.prototype.drawPath=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"path")),e=this.setElementAttributes(t,e)},t.prototype.drawLine=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"line")),e=this.setElementAttributes(t,e)},t.prototype.drawRectangle=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"rect")),e=this.setElementAttributes(t,e)},t.prototype.drawCircle=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"circle")),e=this.setElementAttributes(t,e)},t.prototype.drawPolyline=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"polyline")),e=this.setElementAttributes(t,e)},t.prototype.drawEllipse=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"ellipse")),e=this.setElementAttributes(t,e)},t.prototype.drawPolygon=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"polygon")),e=this.setElementAttributes(t,e)},t.prototype.drawImage=function(t){var e=document.createElementNS(this.svgLink,"image");return e.setAttributeNS(null,"height",t.height.toString()),e.setAttributeNS(null,"width",t.width.toString()),e.setAttributeNS("http://www.w3.org/1999/xlink","href",t.href),e.setAttributeNS(null,"x",t.x.toString()),e.setAttributeNS(null,"y",t.y.toString()),e.setAttributeNS(null,"id",t.id),e.setAttributeNS(null,"visibility",t.visibility),h(this.getOptionValue(t,"clip-path"))||e.setAttributeNS(null,"clip-path",this.getOptionValue(t,"clip-path")),h(t.preserveAspectRatio)||e.setAttributeNS(null,"preserveAspectRatio",t.preserveAspectRatio),e},t.prototype.createText=function(t,e){var i=document.createElementNS(this.svgLink,"text");return i=this.setElementAttributes(t,i),h(e)||(i.textContent=e),i},t.prototype.createTSpan=function(t,e){var i=document.createElementNS(this.svgLink,"tspan");return i=this.setElementAttributes(t,i),h(e)||(i.textContent=e),i},t.prototype.createTitle=function(t){var e=document.createElementNS(this.svgLink,"title");return e.textContent=t,e},t.prototype.createDefs=function(){return document.createElementNS(this.svgLink,"defs")},t.prototype.createClipPath=function(t){var e=document.createElementNS(this.svgLink,"clipPath");return e=this.setElementAttributes(t,e)},t.prototype.createForeignObject=function(t){var e=document.createElementNS(this.svgLink,"foreignObject");return e=this.setElementAttributes(t,e)},t.prototype.createGroup=function(t){var e=document.createElementNS(this.svgLink,"g");return e=this.setElementAttributes(t,e)},t.prototype.createPattern=function(t,e){var i=document.createElementNS(this.svgLink,e);return i=this.setElementAttributes(t,i)},t.prototype.createRadialGradient=function(t,e,i){var r;if(h(t[0].colorStop))r=t[0].color.toString();else{var n={id:this.rootId+"_"+e+"radialGradient",cx:i.cx+"%",cy:i.cy+"%",r:i.r+"%",fx:i.fx+"%",fy:i.fy+"%"};this.drawGradient("radialGradient",n,t),r="url(#"+this.rootId+"_"+e+"radialGradient)"}return r},t.prototype.createLinearGradient=function(t,e,i){var r;if(h(t[0].colorStop))r=t[0].color.toString();else{var n={id:this.rootId+"_"+e+"linearGradient",x1:i.x1+"%",y1:i.y1+"%",x2:i.x2+"%",y2:i.y2+"%"};this.drawGradient("linearGradient",n,t),r="url(#"+this.rootId+"_"+e+"linearGradient)"}return r},t.prototype.drawGradient=function(t,e,i){var r=this.createDefs(),n=document.createElementNS(this.svgLink,t);n=this.setElementAttributes(e,n);for(var o=0;o<i.length;o++){var s=document.createElementNS(this.svgLink,"stop");s.setAttribute("offset",i[o].colorStop),s.setAttribute("stop-color",i[o].color),s.setAttribute("stop-opacity",i[o].opacity?i[o].opacity:"1"),h(i[o].style)||(s.style.cssText=i[o].style),n.appendChild(s)}return r.appendChild(n),r},t.prototype.drawClipPath=function(t){var e=this.createDefs(),i=this.createClipPath({id:t.id});t.id=t.id+"_Rect";var r=this.drawRectangle(t);return i.appendChild(r),e.appendChild(i),e},t.prototype.drawCircularClipPath=function(t){var e=this.createDefs(),i=this.createClipPath({id:t.id});t.id=t.id+"_Circle";var r=this.drawCircle(t);return i.appendChild(r),e.appendChild(i),e},t.prototype.setElementAttributes=function(t,e){for(var i=Object.keys(t),r=0;r<i.length;r++)"style"===i[r]?e.style.cssText=t[i[r]]:e.setAttribute(i[r],t[i[r]]);return e},t.prototype.createCanvas=function(){return null},t}(),Ks=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Js=function(){return function(t,e){this.width=t,this.height=e}}(),Zs=function(){return function(t,e,i,r){this.x=t,this.y=e,this.width=i,this.height=r}}(),Xs=function(){return function(t,e){this.isRight=e,this.isBottom=t}}(),ta=function(){return function(t){this.id=t}}(),ea=function(t){function e(e,i,r,n,o,s,a,l){void 0===s&&(s="");var h=t.call(this,e)||this;return h.transform="",h.baseLine="auto",h.labelRotation=0,h.x=i,h.y=r,h.anchor=n,h.text=o,h.transform=s,h.baseLine=a,h.labelRotation=l,h}return Ks(e,t),e}(ta),ia=function(t){function e(e,i,r,n,o,s,a){var l=t.call(this,e)||this;return l.opacity=o,l.fill=i,l.stroke=n,l["stroke-width"]=r,l["stroke-dasharray"]=s,l.d=a,l}return Ks(e,t),e}(ta),ra=function(){return function(t,e){this.x=t,this.y=e}}(),na=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),oa=function(t,e,i,r){var n,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,i,s):n(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s},sa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return na(e,t),oa([R(null)],e.prototype,"size",void 0),oa([R("")],e.prototype,"color",void 0),oa([R("Segoe UI")],e.prototype,"fontFamily",void 0),oa([R("Normal")],e.prototype,"fontWeight",void 0),oa([R("Normal")],e.prototype,"fontStyle",void 0),oa([R(1)],e.prototype,"opacity",void 0),e}(Uo),aa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return na(e,t),oa([R("")],e.prototype,"color",void 0),oa([R(1)],e.prototype,"width",void 0),oa([R("")],e.prototype,"dashArray",void 0),e}(Uo),la=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return na(e,t),oa([R(0)],e.prototype,"x",void 0),oa([R(0)],e.prototype,"y",void 0),oa([R(0)],e.prototype,"width",void 0),oa([R(0)],e.prototype,"height",void 0),e}(Uo),ha=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return na(e,t),oa([R(0)],e.prototype,"x",void 0),oa([R(0)],e.prototype,"y",void 0),e}(Uo),ua=function(t){function e(e,i){return t.call(this,e,i)||this}return na(e,t),e.prototype.preRender=function(){this.allowServerDataBinding=!1,this.initPrivateVariable(),this.isCanvas||this.removeSVG(),this.createTooltipElement()},e.prototype.initPrivateVariable=function(){this.renderer=new $s(this.element.id),this.themeStyle=function(t){var e;switch(t){case"Highcontrast":case"HighContrast":e={tooltipFill:"#ffffff",tooltipBoldLabel:"#000000",tooltipLightLabel:"#000000",tooltipHeaderLine:"#969696",textStyle:{fontFamily:"Segoe UI",color:"#000000"}};break;case"MaterialDark":case"FabricDark":case"BootstrapDark":e={tooltipFill:"MaterialDark"===t?"#F4F4F4":"FabricDark"===t?"#A19F9D":"#F0F0F0",tooltipBoldLabel:"MaterialDark"===t?"rgba(18, 18, 18, 1)":"FabricDark"===t?"#DADADA":"#1A1A1A",tooltipLightLabel:"MaterialDark"===t?"rgba(18, 18, 18, 1)":"FabricDark"===t?"#DADADA":"#1A1A1A",tooltipHeaderLine:"#9A9A9A",textStyle:"MaterialDark"===t?{fontFamily:"Roboto",color:"rgba(18, 18, 18, 1)"}:"FabricDark"===t?{fontFamily:"Segoe UI",color:"#DADADA"}:{fontFamily:"Helvetica",color:"#1A1A1A"}};break;case"Bootstrap4":e={tooltipFill:"#212529",tooltipBoldLabel:"#F9FAFB",tooltipLightLabel:"#F9FAFB",tooltipHeaderLine:"rgba(255, 255, 255, 0.2)",textStyle:{fontFamily:"Helvetica",color:"#F9FAFB"}};break;case"Tailwind":e={tooltipFill:"#111827",tooltipBoldLabel:"#F9FAFB",tooltipLightLabel:"#F9FAFB",tooltipHeaderLine:"#6B7280",textStyle:{fontFamily:"Inter",color:"#F9FAFB"}};break;case"TailwindDark":e={tooltipFill:"#E9ECEF",tooltipBoldLabel:"#1F2937",tooltipLightLabel:"#1F2937",tooltipHeaderLine:"#9CA3AF",textStyle:{fontFamily:"Inter",color:"#1F2937"}};break;case"Bootstrap5":e={tooltipFill:"#212529",tooltipBoldLabel:"#F9FAFB",tooltipLightLabel:"#F9FAFB",tooltipHeaderLine:"#9CA3AF",textStyle:{fontFamily:"Helvetica",color:"#F9FAFB"}};break;case"Bootstrap5Dark":e={tooltipFill:"#E9ECEF",tooltipBoldLabel:"#212529",tooltipLightLabel:"#212529",tooltipHeaderLine:"#ADB5BD",textStyle:{fontFamily:"Helvetica",color:"#212529"}};break;case"Fluent":e={tooltipFill:"#FFFFFF",tooltipBoldLabel:"#323130",tooltipLightLabel:"#323130",tooltipHeaderLine:"#D2D0CE",textStyle:{fontFamily:"Segoe UI",color:"#323130"}};break;case"FluentDark":e={tooltipFill:"#323130",tooltipBoldLabel:"#F3F2F2",tooltipLightLabel:"#F3F2F1",tooltipHeaderLine:"#3B3A39",textStyle:{fontFamily:"Segoe UI",color:"#F3F2F1"}};break;case"Material3":e={tooltipFill:"#313033",tooltipBoldLabel:"#F4EFF4",tooltipLightLabel:"#F4EFF4",tooltipHeaderLine:"#F4EFF4",textStyle:{fontFamily:"Roboto",color:"#F4EFF4"}};break;case"Material3Dark":e={tooltipFill:"#E6E1E5",tooltipBoldLabel:"#313033",tooltipLightLabel:"#313033",tooltipHeaderLine:"#313033",textStyle:{fontFamily:"Roboto",color:"#313033"}};break;default:e={tooltipFill:"Material"===t?"#000816":"Fabric"===t?"#FFFFFF":"#212529",tooltipBoldLabel:"Material"===t?"rgba(249, 250, 251, 1)":"Fabric"===t?"#333333":"#F9FAFB",tooltipLightLabel:"Material"===t?"rgba(249, 250, 251, 1)":"Fabric"===t?"#333333":"#F9FAFB",tooltipHeaderLine:"Fabric"===t?"#D2D0CE":"#ffffff",textStyle:"Material"===t?{fontFamily:"Roboto",color:"rgba(249, 250, 251, 1)"}:"Fabric"===t?{fontFamily:"Segoe UI",color:"#333333"}:{fontFamily:"Helvetica",color:"#F9FAFB"}}}return e}(this.theme),this.formattedText=[],this.padding=5,this.highlightPadding=3,this.areaMargin=10,this.isFirst=!0,this.markerPoint=[]},e.prototype.removeSVG=function(){var t=document.getElementById(this.element.id+"_svg"),e=document.getElementById(this.element.id+"parent_template");this.blazorTemplate&&at(this.element.id+"parent_template_blazorTemplate"),t&&t.parentNode&&j(t),e&&e.parentNode&&j(e)},e.prototype.render=function(){if(this.fadeOuted=!1,this.template)this.updateTemplateFn(),this.createTemplate(this.areaBounds,this.location);else{this.renderText(this.isFirst);var t={cancel:!1,name:"tooltipRender",tooltip:this};this.trigger("tooltipRender",t);var e=this.renderTooltipElement(this.areaBounds,this.location);this.drawMarker(e.isBottom,e.isRight,this.markerSize)}this.trigger("loaded",{tooltip:this});var i=document.getElementById("chartmeasuretext");i&&j(i),this.allowServerDataBinding=!0},e.prototype.createTooltipElement=function(){if(this.textElements=[],!this.template||this.shared){this.enableRTL&&this.element.setAttribute("dir","ltr");var t=this.renderer.createSvg({id:this.element.id+"_svg"});this.element.appendChild(t);var e=document.getElementById(this.element.id+"_group");e||(e=this.renderer.createGroup({id:this.element.id+"_group"})).setAttribute("transform","translate(0,0)"),t.appendChild(e);var i=this.renderer.drawPath({id:this.element.id+"_path","stroke-width":"Fabric"!==this.theme&&"Fluent"!==this.theme||this.border.width?this.border.width:1,fill:this.fill||this.themeStyle.tooltipFill,opacity:"TailwindDark"!==this.theme&&"Tailwind"!==this.theme&&"Bootstrap5"!==this.theme&&"Bootstrap5Dark"!==this.theme||.75!==this.opacity?this.opacity:1,stroke:this.border.color||("Fabric"===this.theme||"Fluent"===this.theme?"#D2D0CE":this.border.color)});e.appendChild(i)}},e.prototype.drawMarker=function(t,e,i){if(this.shapes.length<=0)return null;var r,n=0,o=this.renderer.createGroup({id:this.element.id+"_trackball_group"}),s=pt(this.element.id+"_group");if(!s)return null;for(var a=(this.enableRTL?this.elementSize.width-i/2:2*this.marginX+i/2)+(e?this.arrowPadding:0),l=0,h=this.shapes;l<h.length;l++){var u=h[l];if("None"!==u){if(r=new ia(this.element.id+"_Trackball_"+n,this.palette[n],1,"#cccccc",1,null),this.markerPoint[n]){var c=0;this.header.indexOf("<br")>-1&&(c=this.header.split(/<br.*?>/g).length+n);var p=this.formattedText&&this.formattedText.length>=2?this.getTooltipTextContent(this.formattedText[1])+", "+this.getTooltipTextContent(this.formattedText[0]):"";o.appendChild(gt(new ra(a,this.markerPoint[n]-this.padding+(t?this.arrowPadding:c)),u,new Js(i,i),"",r,"img",p))}n++}}s.appendChild(o)},e.prototype.renderTooltipElement=function(t,e){var i,r=pt(this.element.id),n=new ra(0,0),o=new ra(0,0),s=pt(this.element.id+"_svg"),a=pt(this.element.id+"_group"),u=pt(this.element.id+"_path"),c=!1,p=!1,d=!1,g=0,f=0;if(!h(a)){if(""!==this.header&&(this.elementSize.height+=this.marginY),this.isFixed){var y=this.elementSize.width+2*this.marginX,m=this.elementSize.height+2*this.marginY;i=new Zs(e.x,e.y,y,m)}else this.content.length>1?(i=this.sharedTooltipLocation(t,this.location.x,this.location.y),c=!0):(i=this.tooltipLocation(t,e,n,o),this.inverted?(g=(p=i.x<e.x+this.clipBounds.x)?0:this.arrowPadding,this.allowHighlight&&(i.x+=p?this.highlightPadding:-2*this.highlightPadding)):(d=!(c=i.y<e.y+this.clipBounds.y),f=c?0:this.arrowPadding));if(""!==this.header){var M=2,v=0,b=this.isWrap?this.wrappedText:this.header;if(this.isWrap&&"string"==typeof b&&(b.indexOf("<")>-1||b.indexOf(">")>-1)){M=b.split("<br>").length}this.header.indexOf("<br")>-1&&(v=5*(this.header.split(/<br.*?>/g).length-1));var w=l({},this.textStyle,null,!0).properties,N=ut(this.isWrap?this.wrappedText:this.header,w,this.themeStyle.textStyle).height+this.marginY*M+(d?this.arrowPadding:0)+(this.isWrap?5:v),S="M "+(3*this.marginX+(p||c||d?0:this.arrowPadding))+" "+N+"L "+(i.width+(p||c||d?0:this.arrowPadding)-2*this.marginX)+" "+N,D=this.renderer.drawPath({id:this.element.id+"_header_path","stroke-width":1,fill:null,opacity:"Material3"===this.theme?.2:.8,stroke:this.themeStyle.tooltipHeaderLine,d:S});a.appendChild(D)}var j=this.border.width/2,I=new Zs(j+g,j+f,i.width-j,i.height-j);if(a.setAttribute("opacity","1"),!this.enableAnimation||this.isFirst||this.crosshair?this.updateDiv(r,i.x,i.y):this.animateTooltipDiv(r,i),s.setAttribute("height",(i.height+this.border.width+(this.inverted?0:this.arrowPadding)+5).toString()),s.setAttribute("width",(i.width+this.border.width+(this.inverted?this.arrowPadding:0)+5).toString()),s.setAttribute("opacity","1"),h(this.tooltipPlacement)||(c=this.tooltipPlacement.indexOf("Top")>-1,d=this.tooltipPlacement.indexOf("Bottom")>-1,p=this.tooltipPlacement.indexOf("Left")>-1),u.setAttribute("d",function(t,e,i,r,n,o,s,a,l,h,u){void 0===u&&(u="");var c="",p=i.x,d=i.y,g=i.x+i.width,f=i.y+i.height;return o?(c=(c=c.concat("M "+p+" "+(d+e)+" Q "+p+" "+d+" "+(p+t)+" "+d+" L "+(g-t)+" "+d+" Q "+g+" "+d+" "+g+" "+(d+e))).concat(" L "+g+" "+(f-e)+" Q "+g+" "+f+" "+(g-t)+" "+f),0!==n&&(c="RangeNavigator"===u?r.x-n>g/2?(c=c.concat(" L "+(r.x+n)+" "+f)).concat(" L "+(l+n)+" "+(f+n)+" L "+r.x+" "+f):(c=c.concat(" L "+r.x+" "+f)).concat(" L "+(l-n)+" "+(f+n)+" L "+(r.x-n)+" "+f):(c=c.concat(" L "+(r.x+n)+" "+f)).concat(" L "+l+" "+(f+n)+" L "+(r.x-n)+" "+f)),c=r.x-n>p?c.concat(" L "+(p+t)+" "+f+" Q "+p+" "+f+" "+p+" "+(f-e)+" z"):0===n?c.concat(" L "+(p+t)+" "+f+" Q "+p+" "+f+" "+p+" "+(f-e)+" z"):c.concat(" L "+p+" "+(f+e)+" z")):s?c=(c=(c=(c=(c=c.concat("M "+p+" "+(d+e)+" Q "+p+" "+d+" "+(p+t)+" "+d+" L "+(r.x-n)+" "+d)).concat(" L "+l+" "+r.y)).concat(" L "+(r.x+n)+" "+d)).concat(" L "+(g-t)+" "+d+" Q "+g+" "+d+" "+g+" "+(d+e))).concat(" L "+g+" "+(f-e)+" Q "+g+" "+f+" "+(g-t)+" "+f+" L "+(p+t)+" "+f+" Q "+p+" "+f+" "+p+" "+(f-e)+" z"):a?(c=(c=c.concat("M "+p+" "+(d+e)+" Q "+p+" "+d+" "+(p+t)+" "+d)).concat(" L "+(g-t)+" "+d+" Q "+g+" "+d+" "+g+" "+("RangeNavigator"===u?0:d+e)+" L "+g+" "+("RangeNavigator"===u?0:r.y-n)),c="RangeNavigator"===u?c.concat(" L "+(g+n)+" 0"):c.concat(" L "+(g+n)+" "+h),c=(c=(c="RangeNavigator"===u?c.concat(" L "+g+" "+(r.y-e)):c.concat(" L "+g+" "+(r.y+n))).concat(" L "+g+" "+(f-e)+" Q "+g+" "+f+" "+(g-t)+" "+f)).concat(" L "+(p+t)+" "+f+" Q "+p+" "+f+" "+p+" "+(f-e)+" z")):(c=c.concat("M "+(p+t)+" "+d+" Q "+p+" "+d+" "+p+" "+("RangeNavigator"===u?0:d+e)+" L "+p+" "+("RangeNavigator"===u?0:r.y-n)),c="RangeNavigator"===u?c.concat(" L "+(p-n)+" 0"):c.concat(" L "+(p-n)+" "+h),c=(c=(c="RangeNavigator"===u?c.concat(" L "+p+" "+(r.y-e)):c.concat(" L "+p+" "+(r.y+n))).concat(" L "+p+" "+(f-e)+" Q "+p+" "+f+" "+(p+t)+" "+f)).concat(" L "+(g-t)+" "+f+" Q "+g+" "+f+" "+g+" "+(f-e)+" L "+g+" "+(d+e)+" Q "+g+" "+d+" "+(g-t)+" "+d+" z")),c}(this.rx,this.ry,I,n,this.arrowPadding,c,d,p,o.x,o.y,this.controlName)),this.enableShadow&&"Bootstrap4"!==this.theme){var O=this.element.id+"_shadow";"Tailwind"===this.theme||"TailwindDark"===this.theme||"Bootstrap5"===this.theme||"Bootstrap5Dark"===this.theme?u.setAttribute("box-shadow","0px 1px 2px rgba(0, 0, 0, 0.06), 0px 1px 3px rgba(0, 0, 0, 0.1)"):u.setAttribute("filter",Oo.isIE?"":"url(#"+O+")");var x='<filter id="'+O+'" height="130%"><feGaussianBlur in="SourceAlpha" stdDeviation="3"/>';x+='<feOffset dx="3" dy="3" result="offsetblur"/><feComponentTransfer><feFuncA type="linear" slope="0.5"/>',x+='</feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge></filter>';var C=this.renderer.createDefs();C.setAttribute("id",this.element.id+"SVG_tooltip_definition"),a.appendChild(C),C.innerHTML=x}var z="Fabric"!==this.theme&&"Fluent"!==this.theme||this.border.color?this.border.color:"#D2D0CE";u.setAttribute("stroke",z),h(this.border.dashArray)||u.setAttribute("stroke-dasharray",this.border.dashArray),this.changeText(new ra(g,f),d,!p&&!c&&!d),this.revert&&(this.inverted=!this.inverted,this.revert=!1)}return new Xs(d,!p&&!c&&!d)},e.prototype.changeText=function(t,e,i){var r=document.getElementById(this.element.id+"_text");e&&r.setAttribute("transform","translate(0,"+this.arrowPadding+")"),i&&r.setAttribute("transform","translate("+this.arrowPadding+" 0)")},e.prototype.findFormattedText=function(){this.formattedText=[],""!==this.header.replace(/<b>/g,"").replace(/<\/b>/g,"").trim()&&(this.formattedText=this.formattedText.concat(this.header)),this.formattedText=this.formattedText.concat(this.content)},e.prototype.renderText=function(t){var e,i,r,n,o,s=0,a=0,h=0,u=l({},this.textStyle,null,!0).properties,c=pt(this.element.id+"_group"),p="";this.findFormattedText(),this.isWrap=!1;var d="rtl"===document.body.getAttribute("dir")&&!this.enableRTL?"end":"start";this.leftSpace=this.areaBounds.x+this.location.x,this.rightSpace=this.areaBounds.x+this.areaBounds.width-this.leftSpace;var g=this.header.replace(/<b>/g,"").replace(/<\/b>/g,"").trim(),f=this.header.indexOf("<b>")>-1&&this.header.indexOf("</b>")>-1,y=ut(this.formattedText[0],u,this.themeStyle.textStyle).width+2*this.marginX+this.arrowPadding,m=this.location.x-y<this.location.x,M=this.areaBounds.x+this.areaBounds.width<this.location.x+y,v=""!==g?this.marginY:0,b=!0,w=!0;this.markerPoint=[];var N,S=this.shapes.length>0?10:0,D=this.shapes.length>0?5:0,j="400",I=this.themeStyle.tooltipLightLabel,O=22/parseFloat("12px")*parseFloat(u.size),x=[],C=0;t&&!this.isCanvas||(dt(this.element.id+"_text"),dt(this.element.id+"_header_path"),dt(this.element.id+"_trackball_group"),dt(this.element.id+"SVG_tooltip_definition")),"Chart"===this.controlName&&parseFloat("12px")<parseFloat(u.size)&&(C=parseFloat(u.size)-parseFloat("12px"));for(var z=new ea(this.element.id+"_text",2*this.marginX,C+2*this.marginY+2*this.padding+(2===this.marginY?"RangeNavigator"===this.controlName?5:3:0),d,""),T=function(t,e,i,r,n){var o={},s=new $s("");o={id:t.id,x:t.x,y:t.y,fill:i,"font-size":e.size,"font-style":e.fontStyle,"font-family":e.fontFamily||n.fontFamily,"font-weight":e.fontWeight,"text-anchor":t.anchor,transform:t.transform,opacity:e.opacity,"dominant-baseline":t.baseLine};var a="string"==typeof t.text?t.text:t.text[0],l=s.createText(o,a);return r&&r.appendChild(l),l}(z,u,u.color||this.themeStyle.tooltipBoldLabel,c,this.themeStyle.textStyle),L=1===this.formattedText.length&&this.formattedText[0].indexOf(" : <b>")>-1,A=""!==this.header,P=A&&f?16:13,E=0,k=this.formattedText.length;E<k;E++)if(r=this.formattedText[E].replace(/<(b|strong)>/g,"<b>").replace(/<\/(b|strong)>/g,"</b>").split(/<br.*?>/g),this.isTextWrap&&this.header!==this.formattedText[E]&&-1===this.formattedText[E].indexOf("<br")&&(N=Math.round(this.leftSpace>this.rightSpace?this.leftSpace/P:this.rightSpace/P),r=this.formattedText[E].match(new RegExp(".{1,"+N+"}","g"))),0===E&&!L&&this.isTextWrap&&(this.leftSpace<y||m)&&(this.rightSpace<y||M)&&(N=Math.round(this.leftSpace>this.rightSpace?this.leftSpace/P:this.rightSpace/P),r=(""!==g?g:this.formattedText[E]).match(new RegExp(".{1,"+N+"}","g")),this.wrappedText=f?"<b>"+r.join("<br>")+"</b>":r.join("<br>"),this.isWrap=r.length>1),""!==r[0]){0===E&&""!==g||this.markerPoint.push((""!==g?this.marginY:0)+z.y+s-(0!==C?C/this.markerSize*(parseFloat(u.size)/this.markerSize):0));for(var B=0,F=r.length;B<F;B++){e=r[B].replace(/<b>/g,"<br><b>").replace(/<\/b>/g,"</b><br>").replace(/:/g,this.enableRTL?"<br>: <br>":"<br>:<br>").split("<br>"),this.enableRTL&&e.length>0&&r[B].match(/:/g)&&(e[0]=e[0].trim(),e.reverse()),h=0,w=!0,s+=O;for(var R=0,U=e.length;R<U;R++)if(n=e[R],this.enableRTL&&""!==n&&this.isRTLText(n)&&(n=n.concat("")),/\S/.test(n)||""===n||(n=" "),!w&&" "===n||""!==n.replace(/<b>/g,"").replace(/<\/b>/g,"").trim()){h+=" "!==n?4:0,w&&!b?(this.header.indexOf("<br")>-1&&0!==E&&(v+=this.header.split(/<br.*?>/g).length),o={x:2*this.marginX+(S+D),dy:O+(w?v:0),fill:""},v=null):o=b&&w?{x:""===g?2*this.marginX+(S+D):2*this.marginX+(this.isWrap?S+D:0)}:{},w=!1,i=this.renderer.createTSpan(o,""),T.appendChild(i),n.indexOf("<b>")>-1||f&&0===R&&0===E&&(A||this.isWrap)?(j="600",I=this.themeStyle.tooltipBoldLabel,p="font-weight:"+j,u.fontWeight=j,i.setAttribute("fill",this.textStyle.color||I)):(p="600"===j?"font-weight:"+j:"",u.fontWeight=j,i.setAttribute("fill",this.textStyle.color||I)),(n.indexOf("</b>")>-1||f&&R===U-1&&0===E&&(A||this.isWrap))&&(j="Normal",I=this.themeStyle.tooltipLightLabel),""!==p&&(i.style.fontWeight=p.split("font-weight:")[1],i.style.color=i.getAttribute("fill")),i.style.fontFamily="inherit",i.style.fontStyle="inherit",i.style.fontSize=this.header===this.formattedText[E]?u.size:this.textStyle.size,i.style.fontWeight=this.header===this.formattedText[E]&&-1===(this.header.indexOf("<b>")||this.header.indexOf("</b>"))?this.textStyle.fontWeight||"600":n.indexOf("<b>")>-1||n.indexOf("</b>")>-1?"bold":this.textStyle.fontWeight||u.fontWeight;var _=l({},this.textStyle,null,!0).properties;_.fontWeight=i.style.fontWeight,b=!1,i.textContent=n=this.getTooltipTextContent(n),h+=ut(n,_,this.themeStyle.textStyle).width}h-=4,a=Math.max(a,h),x.push(h)}}this.elementSize=new Js(a+(a>0?2*this.marginX:0),s),this.elementSize.width+=S+D;var V=T.childNodes[0];if(""!==g&&V&&!this.isWrap){u.fontWeight="600";var Y=(this.elementSize.width+2*this.padding)/2-ut(g,u,this.themeStyle.textStyle).width/2;V.setAttribute("x",Y.toString())}this.renderContentRTL(T,A,S+D,x)},e.prototype.renderContentRTL=function(t,e,i,r){if(this.enableRTL)for(var n=void 0,o=e?1:0,s=0;s<t.childNodes.length;s++)n=t.childNodes[s],e&&!(s>0)||h(n.getAttribute("x"))||(n.setAttribute("x",(this.elementSize.width-(i+r[o])).toString()),o++)},e.prototype.getTooltipTextContent=function(t){var e=t.match(/<[a-zA-Z\/](.|\n)*?>/g);if(h(e))return t;for(var i=this.isRTLText(t),r=0;r<e.length;r++)this.isValidHTMLElement(e[r].replace("<","").replace("/","").replace(">","").trim())&&(t=t.replace(e[r],i?"":""));return t},e.prototype.isValidHTMLElement=function(t){return"[object HTMLUnknownElement]"!==document.createElement(t).toString()},e.prototype.isRTLText=function(t){return/[\u0590-\u07FF\u200F\u202B\u202E\uFB1D-\uFDFD\uFE70-\uFEFC]/.test(t)},e.prototype.createTemplate=function(t,e){var i={cancel:!1,name:"tooltipRender",tooltip:this};this.trigger("tooltipRender",i);var r=document.getElementById(this.element.id);this.isCanvas&&this.removeSVG();var n=r.firstElementChild;if(n&&j(n),i.cancel)j(pt(this.element.id+"_tooltip"));else{var o=M("div",{id:this.element.id+"parent_template"}),s=void 0;if("Chart"===this.controlName&&this.shared)for(var a=0;a<this.data.length;a++){var l=this.templateFn(this.data[a],this.controlInstance,o.id,o.id+"_blazorTemplate","");0===a?s=l:l.length>1?s[a].outerHTML=l[a].outerHTML||l[a].textContent:s[s.length-1].outerHTML+=l[0].outerHTML}else s=this.templateFn(this.data,this.controlInstance,o.id,o.id+"_blazorTemplate","");for(;s&&s.length>0;)y()||1===s.length?(o.appendChild(s[0]),s=null):o.appendChild(s[0]);r.appendChild(o);var h=this.isCanvas?o:this.element,u=h.getBoundingClientRect();this.padding=0,this.elementSize=new Js(u.width,u.height);var c=this.shared?this.sharedTooltipLocation(t,this.location.x,this.location.y):this.tooltipLocation(t,e,new ra(0,0),new ra(0,0));if(!this.enableAnimation||this.isFirst||this.crosshair?this.updateDiv(h,c.x,c.y):this.animateTooltipDiv(this.element,c),this.blazorTemplate){var p=function(){var i=pt(d.element.id).getBoundingClientRect();d.elementSize=new Js(i.width,i.height);var r=d.tooltipLocation(t,e,new ra(0,0),new ra(0,0));d.updateDiv(pt(d.element.id),r.x,r.y)},d=this;p.bind(d,t,e),st(this.element.id+"parent_template_blazorTemplate",this.blazorTemplate.name,this.blazorTemplate.parent,void 0,p)}}},e.prototype.sharedTooltipLocation=function(t,e,i){var r=this.elementSize.width+2*this.marginX,n=this.elementSize.height+2*this.marginY,o=new Zs(e+2*this.padding,i-n-this.padding,r,n);return o.y<t.y&&(o.y+=o.height+2*this.padding),o.y+o.height>t.y+t.height&&(o.y=Math.max(t.y+t.height-(o.height+2*this.padding),t.y)),o.x+o.width>t.x+t.width&&(o.x=t.x+this.location.x-(o.width+4*this.padding)),o.x<t.x&&(o.x=t.x),o},e.prototype.getCurrentPosition=function(t,e,i,r){var n=this.tooltipPlacement,o=this.clipBounds.x,s=this.clipBounds.y,a=this.offset,l=this.elementSize.width+2*this.marginX,h=this.elementSize.height+2*this.marginY,u=new ra(e.x,e.y);return"Top"===n||"Bottom"===n?(u=new ra(u.x+o-this.elementSize.width/2-this.padding,u.y+s-this.elementSize.height-2*this.padding-this.arrowPadding-a),i.x=r.x=l/2,"Bottom"===n&&(u.y=e.y+s+a),t.x+t.width<u.x+l?(u.x=t.width>l?t.x+t.width-l+6:t.x,i.x=r.x=t.width>l?t.x+e.x-u.x:e.x):t.x>u.x&&(u.x=t.x,i.x=r.x=e.x)):(u=new ra(u.x+o+a,u.y+s-this.elementSize.height/2-this.padding),i.y=r.y=h/2,"Left"===n&&(u.x=e.x+o-a-(l+this.arrowPadding)),t.y+t.height<u.y+h?(u.y=t.height>h?t.y+t.height-h+6:t.y,i.y=r.y=t.height>h?t.y+e.y-u.y:e.y):t.y>u.y&&(u.y=t.y,i.y=r.y=e.y)),new Zs(u.x,u.y,l,h)},e.prototype.tooltipLocation=function(t,e,i,r){if(!h(this.tooltipPlacement)){return this.getCurrentPosition(t,e,i,r)}var n=new ra(e.x,e.y),o=this.elementSize.width+2*this.marginX,s=this.elementSize.height+2*this.marginY,a=this.offset,l=this.clipBounds.x,u=this.clipBounds.y,c=t.x,p=t.y;return this.outOfBounds=!1,this.inverted?(n=new ra(n.x+l+a,n.y+u-this.elementSize.height/2-this.padding),i.y=r.y=s/2,(n.x+o+this.arrowPadding>c+t.width||this.isNegative)&&(n.x=(e.x>t.width+t.x?t.width:e.x)+l-a-(o+this.arrowPadding)),n.x<c&&(n.x=(e.x<0?0:e.x)+l+a),n.x+o+this.arrowPadding>c+t.width&&(n.x=(e.x>t.width+t.x?t.width:e.x)+l-a-(o+this.arrowPadding)),n.y<=p&&(i.y-=p-n.y,r.y-=p-n.y,n.y=p),n.y+s>=p+t.height&&(i.y+=n.y+s-(p+t.height),r.y+=n.y+s-(p+t.height),n.y-=n.y+s-(p+t.height)),i.y+this.arrowPadding>s-this.ry&&(i.y=s-this.ry-this.arrowPadding,r.y=s),i.y-this.arrowPadding<this.ry&&(i.y=r.y=this.ry+this.arrowPadding),"Chart"===this.controlName&&((n.y+i.y<this.areaMargin+this.arrowPadding||t.y+t.height-(n.y+i.y)<this.areaMargin+this.arrowPadding)&&(this.outOfBounds=!0),ct(n.x,n.y,t)&&!this.outOfBounds||(this.inverted=!this.inverted,n=new ra(e.x+l-this.padding-this.elementSize.width/2,e.y+u-this.elementSize.height-2*this.padding-a-this.arrowPadding),this.revert=!0,r.x=i.x=o/2,r.y=i.y=0,(n.y<p||this.isNegative)&&(n.y=(e.y<0?0:e.y)+a+u),n.y+this.arrowPadding+s>p+t.height&&(n.y=Math.min(e.y,p+t.height)+u-this.elementSize.height-2*this.padding-a-this.arrowPadding),r.x=o/2,n.x<c&&(r.x-=c-n.x,i.x-=c-n.x,n.x=c),n.x+o>t.width+c&&(i.x+=n.x+o-(t.width+c),r.x+=n.x+o-(t.width+c),n.x-=n.x+o-(t.width+c)),this.arrowPadding+i.x>o-this.rx&&(r.x=o-this.rx-this.arrowPadding,i.x=o-this.rx-this.arrowPadding),i.x-this.arrowPadding<this.rx&&(i.x=r.x=this.rx+this.arrowPadding)))):(n=new ra(n.x+l-this.elementSize.width/2-this.padding,n.y+u-this.elementSize.height-2*(this.allowHighlight?this.highlightPadding:this.padding)-this.arrowPadding-a),i.x=r.x=o/2,(n.y<p||this.isNegative)&&"Progressbar"!==this.controlName&&(n.y=(e.y<0?0:e.y)+u+a),n.y+s+this.arrowPadding>p+t.height&&(n.y=Math.min(e.y,p+t.height)+u-this.elementSize.height-2*this.padding-this.arrowPadding-a),(n.x+o>c+t.width&&n.y<p||this.isNegative)&&"Progressbar"!==this.controlName&&(n.y=(e.y<0?0:e.y)+u+a),r.x=o/2,n.x<c&&"Progressbar"!==this.controlName&&(i.x-=c-n.x,r.x-=c-n.x,n.x=c),n.x+o>c+t.width&&"Progressbar"!==this.controlName&&(i.x+=n.x+o-(c+t.width),r.x+=n.x+o-(c+t.width),n.x-=n.x+o-(c+t.width)),n.x<c&&"Progressbar"!==this.controlName&&(i.x-=c-n.x,r.x-=c-n.x,n.x=c),i.x+this.arrowPadding>o-this.rx&&(i.x=o-this.rx-this.arrowPadding,r.x=o-this.rx-this.arrowPadding),i.x-this.arrowPadding<this.rx&&(i.x=r.x=this.rx+this.arrowPadding),"Chart"===this.controlName&&((t.x+t.width-(n.x+i.x)<this.areaMargin+this.arrowPadding||n.x+i.x<this.areaMargin+this.arrowPadding)&&(this.outOfBounds=!0),ct(n.x,n.y,t)&&!this.outOfBounds||(this.inverted=!this.inverted,this.revert=!0,n=new ra(e.x+a+l,e.y+u-this.elementSize.height/2-this.padding),r.x=i.x=0,r.y=i.y=s/2,(n.x+this.arrowPadding+o>c+t.width||this.isNegative)&&(n.x=(e.x>c+t.width?t.width:e.x)+l-a-(this.arrowPadding+o)),n.x<c&&(n.x=(e.x<0?0:e.x)+a+l),n.y<=p&&(r.y-=p-n.y,i.y-=p-n.y,n.y=p),n.y+s>=t.height+p&&(i.y+=n.y+s-(t.height+p),r.y+=n.y+s-(t.height+p),n.y-=n.y+s-(t.height+p)),this.arrowPadding+i.y>s-this.ry&&(i.y=s-this.arrowPadding-this.ry,r.y=s),i.y-this.arrowPadding<this.ry&&(i.y=this.arrowPadding+this.ry,r.y=0)))),new Zs(n.x,n.y,o,s)},e.prototype.animateTooltipDiv=function(t,e){var i,r=this,n=parseFloat(t.style.left),o=parseFloat(t.style.top);new Eo({}).animate(t,{duration:0===this.duration&&"Enable"===jo?300:this.duration,progress:function(s){i=s.timeStamp/s.duration,t.style.animation=null,"Chart"===r.controlName&&r.shared&&!r.enableRTL?(t.style.transition=y()?"transform 0.3s":"transform 0.1s",t.style.transform="translate("+(n+i*(e.x-n))+"px,"+(o+i*(e.y-o))+"px)",t.style.left="",t.style.top=""):(t.style.left=n+i*(e.x-n)+"px",t.style.top=o+i*(e.y-o)+"px",t.style.transform="RangeNavigator"===r.controlName?t.style.transform:"")},end:function(i){r.updateDiv(t,e.x,e.y),r.trigger("animationComplete",{tooltip:r})}})},e.prototype.updateDiv=function(t,e,i){"Chart"!==this.controlName||!this.shared||this.crosshair||this.enableRTL?(t.style.left=e+"px",t.style.top=i+"px",t.style.transform="RangeNavigator"===this.controlName?t.style.transform:""):(t.style.transform="translate("+e+"px,"+i+"px)",t.style.left="",t.style.top="")},e.prototype.updateTemplateFn=function(){if(this.template)try{"function"!=typeof this.template&&document.querySelectorAll(this.template).length?this.templateFn=ot(document.querySelector(this.template).innerHTML.trim()):this.templateFn=ot(this.template)}catch(t){this.templateFn=ot(this.template)}},e.prototype.fadeOut=function(){var t=this,e=this.isCanvas&&!this.template?pt(this.element.id+"_svg"):pt(this.element.id),i=pt(this.element.id);if(e){var r=e.firstChild;if(r.nodeType!==Node.ELEMENT_NODE&&(r=e.firstElementChild),this.isCanvas&&!this.template&&(r=document.getElementById(this.element.id+"_group")?document.getElementById(this.element.id+"_group"):r),!r)return null;var n=parseFloat(r.getAttribute("opacity"));n=h(n)?1:n,new Eo({}).animate(r,{duration:200,progress:function(e){t.progressAnimation(r,n,e.timeStamp/e.duration)},end:function(){t.fadeOuted=!0,t.endAnimation(r),i.style.transition=""}})}},e.prototype.progressAnimation=function(t,e,i){t.style.animation="",t.setAttribute("opacity",(e-i).toString())},e.prototype.endAnimation=function(t){t.setAttribute("opacity","0"),this.template&&(t.style.display="none"),this.trigger("animationComplete",{tooltip:this})},e.prototype.getPersistData=function(){return this.addOnPersist([])},e.prototype.getModuleName=function(){return"tooltip"},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.element.classList.remove("e-tooltip")},e.prototype.onPropertyChanged=function(t,e){this.blazorTemplate&&at(this.element.id+"parent_template_blazorTemplate"),this.isFirst=!1,this.render()},oa([R(!1)],e.prototype,"enable",void 0),oa([R(!1)],e.prototype,"shared",void 0),oa([R(!1)],e.prototype,"crosshair",void 0),oa([R(!1)],e.prototype,"enableShadow",void 0),oa([R(null)],e.prototype,"fill",void 0),oa([R("")],e.prototype,"header",void 0),oa([R(.75)],e.prototype,"opacity",void 0),oa([U({size:"12px",fontWeight:null,color:null,fontStyle:"Normal",fontFamily:null},sa)],e.prototype,"textStyle",void 0),oa([R(null)],e.prototype,"template",void 0),oa([R(!0)],e.prototype,"enableAnimation",void 0),oa([R(300)],e.prototype,"duration",void 0),oa([R(!1)],e.prototype,"inverted",void 0),oa([R(!1)],e.prototype,"isNegative",void 0),oa([U({color:null,width:null},aa)],e.prototype,"border",void 0),oa([R([])],e.prototype,"content",void 0),oa([R(10)],e.prototype,"markerSize",void 0),oa([U({x:0,y:0},ha)],e.prototype,"clipBounds",void 0),oa([R([])],e.prototype,"palette",void 0),oa([R([])],e.prototype,"shapes",void 0),oa([U({x:0,y:0},ha)],e.prototype,"location",void 0),oa([R(0)],e.prototype,"offset",void 0),oa([R(4)],e.prototype,"rx",void 0),oa([R(4)],e.prototype,"ry",void 0),oa([R(5)],e.prototype,"marginX",void 0),oa([R(5)],e.prototype,"marginY",void 0),oa([R(7)],e.prototype,"arrowPadding",void 0),oa([R(null)],e.prototype,"data",void 0),oa([R("Material")],e.prototype,"theme",void 0),oa([U({x:0,y:0,width:0,height:0},la)],e.prototype,"areaBounds",void 0),oa([R(null)],e.prototype,"availableSize",void 0),oa([R()],e.prototype,"blazorTemplate",void 0),oa([R(!1)],e.prototype,"isCanvas",void 0),oa([R(!1)],e.prototype,"isTextWrap",void 0),oa([R(!1)],e.prototype,"isFixed",void 0),oa([R(null)],e.prototype,"tooltipPlacement",void 0),oa([R(null)],e.prototype,"controlInstance",void 0),oa([R("")],e.prototype,"controlName",void 0),oa([V()],e.prototype,"tooltipRender",void 0),oa([V()],e.prototype,"loaded",void 0),oa([V()],e.prototype,"animationComplete",void 0),oa([R(!1)],e.prototype,"enableRTL",void 0),oa([R(!1)],e.prototype,"allowHighlight",void 0),e=oa([Y],e)}(es),ca="beforePrint",pa="itemRendering",da="drillStart",ga="itemSelected",fa="itemHighlight",ya="tooltipRendering",ma="doubleClick",Ma="rightClick",va="legendItemRendering",ba="legendRendering",wa="Roboto, Segoe UI, Noto, Sans-serif",Na=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Sa=function(t,e,i,r){var n,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,i,s):n(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s},Da=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Na(e,t),Sa([R("#808080")],e.prototype,"color",void 0),Sa([R(0)],e.prototype,"width",void 0),e}(Uo),ja=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Na(e,t),Sa([R(10)],e.prototype,"left",void 0),Sa([R(10)],e.prototype,"right",void 0),Sa([R(10)],e.prototype,"top",void 0),Sa([R(10)],e.prototype,"bottom",void 0),e}(Uo),Ia=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Na(e,t),Sa([R(null)],e.prototype,"size",void 0),Sa([R(null)],e.prototype,"color",void 0),Sa([R(wa)],e.prototype,"fontFamily",void 0),Sa([R("")],e.prototype,"fontWeight",void 0),Sa([R("Normal")],e.prototype,"fontStyle",void 0),Sa([R(1)],e.prototype,"opacity",void 0),e}(Uo),Oa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Na(e,t),Sa([R("")],e.prototype,"text",void 0),Sa([R("")],e.prototype,"description",void 0),e}(Uo),xa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Na(e,t),Sa([U({fontFamily:null,fontWeight:null},Ia)],e.prototype,"textStyle",void 0),Sa([R("Center")],e.prototype,"alignment",void 0),e}(Oa),Ca=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Na(e,t),Sa([U({fontFamily:null,fontWeight:null},Ia)],e.prototype,"textStyle",void 0),Sa([R("Center")],e.prototype,"alignment",void 0),Sa([U({},xa)],e.prototype,"subtitleSettings",void 0),e}(Oa),za=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Na(e,t),Sa([R(null)],e.prototype,"from",void 0),Sa([R(null)],e.prototype,"to",void 0),Sa([R(null)],e.prototype,"color",void 0),Sa([R(null)],e.prototype,"label",void 0),Sa([R(null)],e.prototype,"value",void 0),Sa([R(null)],e.prototype,"minOpacity",void 0),Sa([R(null)],e.prototype,"maxOpacity",void 0),Sa([R(!0)],e.prototype,"showLegend",void 0),e}(Uo),Ta=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Na(e,t),Sa([R(!1)],e.prototype,"visible",void 0),Sa([R("Default")],e.prototype,"mode",void 0),Sa([R("transparent")],e.prototype,"background",void 0),Sa([R("Circle")],e.prototype,"shape",void 0),Sa([R("")],e.prototype,"width",void 0),Sa([R("")],e.prototype,"height",void 0),Sa([U({size:null,fontFamily:null,fontWeight:null},Ia)],e.prototype,"textStyle",void 0),Sa([R(null)],e.prototype,"fill",void 0),Sa([R(1)],e.prototype,"opacity",void 0),Sa([R(15)],e.prototype,"shapeWidth",void 0),Sa([R(15)],e.prototype,"shapeHeight",void 0),Sa([R(10)],e.prototype,"shapePadding",void 0),Sa([R(null)],e.prototype,"imageUrl",void 0),Sa([U({color:"#000000",width:0},Da)],e.prototype,"border",void 0),Sa([U({color:"#000000",width:0},Da)],e.prototype,"shapeBorder",void 0),Sa([U({},Oa)],e.prototype,"title",void 0),Sa([U({size:null,fontFamily:null,fontWeight:null},Ia)],e.prototype,"titleStyle",void 0),Sa([R("Bottom")],e.prototype,"position",void 0),Sa([R("None")],e.prototype,"orientation",void 0),Sa([R(!1)],e.prototype,"invertedPointer",void 0),Sa([R("After")],e.prototype,"labelPosition",void 0),Sa([R("None")],e.prototype,"labelDisplayMode",void 0),Sa([R("Center")],e.prototype,"alignment",void 0),Sa([R({x:0,y:0})],e.prototype,"location",void 0),Sa([R(null)],e.prototype,"showLegendPath",void 0),Sa([R(null)],e.prototype,"valuePath",void 0),Sa([R(!1)],e.prototype,"removeDuplicateLegend",void 0),e}(Uo),La=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Na(e,t),Sa([R(null)],e.prototype,"groupIndex",void 0),Sa([R(null)],e.prototype,"groupName",void 0),e}(Uo),Aa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Na(e,t),Sa([R(null)],e.prototype,"fill",void 0),Sa([R(!1)],e.prototype,"autoFill",void 0),Sa([U({},Da)],e.prototype,"border",void 0),Sa([R(0)],e.prototype,"gap",void 0),Sa([R(10)],e.prototype,"padding",void 0),Sa([R(1)],e.prototype,"opacity",void 0),Sa([R(!0)],e.prototype,"showLabels",void 0),Sa([R(null)],e.prototype,"labelPath",void 0),Sa([R(null)],e.prototype,"labelFormat",void 0),Sa([R("TopLeft")],e.prototype,"labelPosition",void 0),Sa([U({color:null,size:"12px"},Ia)],e.prototype,"labelStyle",void 0),Sa([R(null)],e.prototype,"labelTemplate",void 0),Sa([R("Center")],e.prototype,"templatePosition",void 0),Sa([R("Trim")],e.prototype,"interSectAction",void 0),Sa([_([],za)],e.prototype,"colorMapping",void 0),e}(Uo),Pa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Na(e,t),Sa([R(!1)],e.prototype,"visible",void 0),Sa([R("")],e.prototype,"template",void 0),Sa([R(null)],e.prototype,"format",void 0),Sa([R(null)],e.prototype,"fill",void 0),Sa([R(.75)],e.prototype,"opacity",void 0),Sa([R(["Circle"])],e.prototype,"markerShapes",void 0),Sa([U({},Da)],e.prototype,"border",void 0),Sa([U({fontFamily:null,size:null,fontWeight:null},Ia)],e.prototype,"textStyle",void 0),e}(Uo),Ea=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Na(e,t),Sa([R(!1)],e.prototype,"enable",void 0),Sa([R(null)],e.prototype,"fill",void 0),Sa([R("0.5")],e.prototype,"opacity",void 0),Sa([U({},Da)],e.prototype,"border",void 0),Sa([R("Item")],e.prototype,"mode",void 0),e}(Uo),ka=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Na(e,t),Sa([R(!1)],e.prototype,"enable",void 0),Sa([R("#808080")],e.prototype,"fill",void 0),Sa([R("0.5")],e.prototype,"opacity",void 0),Sa([U({},Da)],e.prototype,"border",void 0),Sa([R("Item")],e.prototype,"mode",void 0),e}(Uo),Ba=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Na(e,t),Sa([R(null)],e.prototype,"groupPath",void 0),Sa([R(0)],e.prototype,"groupGap",void 0),Sa([R(10)],e.prototype,"groupPadding",void 0),Sa([U({},Da)],e.prototype,"border",void 0),Sa([R(null)],e.prototype,"fill",void 0),Sa([R(!1)],e.prototype,"autoFill",void 0),Sa([R(1)],e.prototype,"opacity",void 0),Sa([R(!0)],e.prototype,"showHeader",void 0),Sa([R(20)],e.prototype,"headerHeight",void 0),Sa([R(null)],e.prototype,"headerTemplate",void 0),Sa([R(null)],e.prototype,"headerFormat",void 0),Sa([R("Near")],e.prototype,"headerAlignment",void 0),Sa([U({color:null,size:"13px"},Ia)],e.prototype,"headerStyle",void 0),Sa([R("TopLeft")],e.prototype,"templatePosition",void 0),Sa([_([],za)],e.prototype,"colorMapping",void 0),e}(Uo),Fa=function(){return function(t,e){this.width=t,this.height=e}}(),Ra=function(){return function(t,e,i,r){this.x=t,this.y=e,this.width=i,this.height=r}}(),Ua=function(){return function(t,e,i,r,n,o){this.y=n.y,this.x=n.x,this.height=n.height,this.width=n.width,this.id=t,this.fill=e,this.opacity=r,this.stroke=i.color,this["stroke-width"]=i.width,this["stroke-dasharray"]=o}}(),_a=function(){return function(t,e,i,r,n,o,s){this.id=t,this.opacity=n,this.fill=e,this.stroke=r,this["stroke-width"]=i,this["stroke-dasharray"]=o,this.d=s}}(),Va=function(){return function(t,e,i,r,n,o,s,a){void 0===o&&(o=""),this.transform="",this.baseLine="auto",this.id=t,this.text=n,this.transform=o,this.anchor=r,this.x=e,this.y=i,this.baseLine=s,this.connectorText=a}}(),Ya=function(){return function(t,e){this.x=t,this.y=e}}(),Qa=function(){return function(t,e,i){this.r=t,this.g=e,this.b=i}}(),Wa=function(){return function(t,e,i,r,n){this.dataOptions=t,this.type=e||"GET",this.async=i||!0,this.contentType=r,this.sendData=n}}(),Ga=function(){function t(t){this.treemap=t}return t.prototype.processLayoutPanel=function(){var t,e;if(this.treemap.treemapLevelData.levelsData&&this.treemap.treemapLevelData.levelsData.length>0)if(t=h(this.treemap.initialDrillDown.groupIndex)||h(this.treemap.initialDrillDown.groupName)||(h(this.treemap.drilledItems)?!h(this.treemap.drilledItems):0!==this.treemap.drilledItems.length)?this.treemap.treemapLevelData.levelsData[0]:this.getDrilldownData(this.treemap.treemapLevelData.levelsData[0],[])[0],e=l({},this.treemap.areaRect,e,!1),h(this.treemap.treeMapLegendModule)||h(this.treemap.totalRect)||"Float"!==this.treemap.legendSettings.position&&(e=this.treemap.totalRect),h(this.treemap.currentLevel)||(h(this.treemap.drilledItems)?h(this.treemap.drilledItems):0===this.treemap.drilledItems.length))!h(this.treemap.initialDrillDown.groupIndex)&&(h(this.treemap.drilledItems)?h(this.treemap.drilledItems):0===this.treemap.drilledItems.length)&&(this.treemap.currentLevel=this.treemap.initialDrillDown.groupIndex),this.calculateLayoutItems(t||this.treemap.treemapLevelData.levelsData[0],e),this.renderLayoutItems();else{var i=this.treemap.drilledItems.length-1,r=this.treemap.drilledItems[i].data,n={};n[this.treemap.drilledItems[i].data.groupName]=[r],h(this.treemap.initialDrillDown.groupIndex)||this.treemap.enableBreadcrumb||(this.treemap.currentLevel=this.treemap.drilledItems[i].data.groupIndex),this.calculateLayoutItems(n||this.treemap.treemapLevelData.levelsData[0],e),this.renderLayoutItems()}},t.prototype.getDrilldownData=function(t,e){var i=this.treemap,r={},n=jt(t).values;if(n&&n.length>0&&0===e.length){for(var o=0;o<n.length;o++)n[o].groupIndex===i.initialDrillDown.groupIndex&&n[o].name===i.initialDrillDown.groupName&&(n[o].isDrilled=!0,r[n[o].groupName]=[n[o]],e.push(r));for(var s=0;s<n.length;s++)this.getDrilldownData(n[s],e)}return e},t.prototype.calculateLayoutItems=function(t,e){this.renderItems=[],this.parentData=[],h(this.treemap.weightValuePath)||(this.treemap.layoutType.indexOf("SliceAndDice")>-1?this.computeSliceAndDiceDimensional(t,e):(e.height=e.height+e.y,e.width=e.width+e.x,this.computeSquarifyDimensional(t,e)))},t.prototype.computeSliceAndDiceDimensional=function(t,e){var i,r,n,o,s=this.treemap.leafItemSettings,a=this.treemap.levels,l=jt(t).values;if(l&&l.length>0&&(this.sliceAndDiceProcess(l,e),this.treemap.levels.length>0))for(var h=0;h<l.length;h++)r=l[h].groupIndex,n=0===a.length||r===a.length?s.gap:a[r].groupGap,o=0===a.length?0:a[r]?a[r].showHeader?a[r].headerHeight:0:a[r-1].showHeader?a[r-1].headerHeight:0,i=l[h].rect,i=new Ra(i.x+n/2,i.y+(o+n/2),i.width-n,Math.abs(i.height-(n+o))),this.computeSliceAndDiceDimensional(l[h],i);return t},t.prototype.sliceAndDiceProcess=function(t,e){var i,r=e.height*e.width,n=this.treemap.levels,o=0,s=0;t.forEach(function(t){s+=t.weight}),t.forEach(function(t){t.weightArea=r*t.weight/s});var a="SliceAndDiceAuto"===this.treemap.layoutType?e.width>e.height:"SliceAndDiceHorizontal"===this.treemap.layoutType;t.sort(St);for(var l=0;l<t.length;l++){var u=t[l];u.isLeafItem=0===n.length||(this.treemap.isHierarchicalData||h(this.treemap.leafItemSettings.labelPath)?u.groupIndex===n.length-1:u.groupIndex===this.treemap.levels.length),a?(i=r/s*t[l].weight/e.height,o<=e.width&&(t[l].rect=new Ra(o+e.x,e.y,i,e.height))):(i=r/s*t[l].weight/e.width,o<=e.height&&(t[l].rect=new Ra(e.x,o+e.y,e.width,i))),o+=i,this.renderItems.push(t[l])}},t.prototype.computeSquarifyDimensional=function(t,e){var i,r,n,o,s,a=this.treemap.leafItemSettings,l=this.treemap.levels,h=jt(t).values;if(h&&h.length>0&&(0===this.parentData.length&&(this.parentData=[],this.parentData.push(h)),this.calculateChildrenLayout(t,h,e),this.treemap.levels.length>0))for(var u=0;u<h.length;u++)n=(r=h[u]).groupIndex,i=r.rect,o=(r.isLeafItem?a.padding:l[n].groupPadding)/2,s=this.treemap.isHierarchicalData?0===n&&r.isLeafItem?0:l[n]&&l[n].showHeader?l[n].headerHeight:0:0===l.length?0:l[n]&&l[n].showHeader?l[n].headerHeight:0,i=new Ra(i.x+o,i.y+(s+o),i.width-o,i.height-o),!r.isLeafItem&&r.weight>0&&this.computeSquarifyDimensional(h[u],i)},t.prototype.calculateChildrenLayout=function(t,e,i){this.computeTotalArea(e,Tt(i)),e.sort(Ht),this.performRowsLayout(e,[],i,[])},t.prototype.performRowsLayout=function(t,e,i,r){var n=t.length;if(0===n){var o=this.getCoordinates(e,i);return g=r.concat(o)}var s=Lt(i),a=t[0],l=t.slice(1,n);if(this.aspectRatio(e,a,s)){var h=e.concat(a);return this.performRowsLayout(l,h,i,r)}for(var u=e.length,c=0,p=0;p<u;p+=1)c+=e[p].itemArea;var d=this.cutArea(i,c),g=(o=this.getCoordinates(e,i),r.concat(o));return this.performRowsLayout(t,[],d,g)},t.prototype.aspectRatio=function(t,e,i){if(0===t.length)return!0;var r=t.concat(e);return this.findMaxAspectRatio(t,i)>=this.findMaxAspectRatio(r,i)},t.prototype.findMaxAspectRatio=function(t,e){for(var i=t.length,r=1/0,n=-1/0,o=0,s=0;s<i;s+=1){var a=t[s].itemArea;a<r&&(r=a),a>n&&(n=a),o+=a}return Math.max(Math.pow(e,2)*n/Math.pow(o,2),Math.pow(o,2)/(Math.pow(e,2)*r))},t.prototype.cutArea=function(t,e){var i=At(t),r=i.width,n=i.height,o=i.x,s=i.y;if(r>=n){var a=e/n;return Pt({x:o+a,y:s,width:r-a,height:n})}var l=e/r;return Pt({x:o,y:s+l,width:r,height:n-l})},t.prototype.getCoordinates=function(t,e){for(var i,r=At(e),n=r.width,o=r.height,s=r.x,a=r.y,l=t.length,u=this.treemap.levels,c=this.treemap.leafItemSettings,p=0,d=0;d<l;d+=1)p+=t[d].itemArea;var g,f,y,m=p/o,M=p/n,v=s,b=a,w=[];for(d=0;d<l;d+=1){var N=t[d];if(i=N.groupIndex,N.isLeafItem=0===u.length||(this.treemap.isHierarchicalData?i===u.length:!h(c.labelPath)&&i===u.length),f=se(this.parentData[0],N),y=f?this.treemap.areaRect:N.parent.rect,g=N.isLeafItem?c.padding:u[i].groupPadding,n>=o){var S=b+N.itemArea/m;N.rect={x:v,y:b,width:v+m,height:S},b=S}else{var D=v+N.itemArea/M;N.rect={x:v,y:b,width:D,height:b+M},v=D}N.weight>0&&(f||Math.round(e.y+g/2)<=Math.round(y.y+(y.height-y.y))&&Math.round(e.x+g/2)<=Math.round(y.x+(y.width-y.x)))&&(this.renderItems.push(N),w.push(N))}return w},t.prototype.computeTotalArea=function(t,e){for(var i=t.length,r=[],n=0;n<i;n+=1){for(var o=t.length,s=0,a=0;a<o;a+=1)s+=t[a].weight;for(var l=e/s,h=void 0,u=0;u<o;u++)(h=t[u]).itemArea=h.weight*l,r.push(h)}return r},t.prototype.onDemandProcess=function(t){var e,i={};i=t[0].parent,this.treemap.currentLevel=i.isDrilled?i.groupIndex:null;var r={};h(i.groupName)?r=i:r[i.groupName]=[i],e=l({},this.treemap.areaRect,e,!1),h(this.treemap.treeMapLegendModule)||h(this.treemap.totalRect)||(e=this.treemap.totalRect);for(var n=this.treemap.levels.length,o=0;o<n;o++){n===t[0].groupIndex?this.treemap.levels[n]=this.treemap.levels[o]:this.treemap.levels.splice(n-1,1)}this.calculateLayoutItems(r,e),this.renderLayoutItems()},t.prototype.renderLayoutItems=function(){var t,e,i,r,n=this,o=this.treemap;this.renderer=o.renderer;var s,a,l,u,c,p,d,g,f,y,m,v,b,w=o.element.id,N=o.layoutType,S=this.treemap.leafItemSettings.interSectAction,D="",j=document.getElementById(o.element.id+"_Secondary_Element"),I=o.levels;this.layoutGroup=this.renderer.createGroup({id:w+"_TreeMap_"+N+"_Layout"});var O,x,C,z=M("div",{id:o.element.id+"_Label_Template_Group",className:"template"});z.style.cssText="overflow: hidden; position: absolute;pointer-events: none;top:"+o.areaRect.y+"px;left:"+o.areaRect.x+"px;height:"+o.areaRect.height+"px;width:"+o.areaRect.width+"px;";for(var T,L,A=!1,P=o.leafItemSettings,E=function(M){if(d=k.renderItems[M],a=d.groupIndex,k.treemap.drillDownView&&h(k.treemap.currentLevel)&&a>0||k.treemap.drillDownView&&a>k.treemap.currentLevel+1)return"continue";u=d.rect,A=d.isLeafItem,y=w+"_Level_Index_"+a+"_Item_Index_"+M,O=k.renderer.createGroup({id:y+"_Group"}),v=(A?P.gap:I[a].groupGap)/2;var N=k.treemap.totalRect?At(k.treemap.totalRect):k.treemap.areaRect;"Squarified"===o.layoutType&&(u.width=Math.abs(u.x-u.width)-v,u.height=Math.abs(u.y-u.height)-v),"TopRightBottomLeft"===o.renderDirection?u.x=N.x+N.width-u.width-Math.abs(N.x-u.x):"BottomLeftTopRight"===o.renderDirection?u.y=N.y+N.height-u.height-Math.abs(N.y-u.y):"BottomRightTopLeft"===o.renderDirection&&(u.x=N.x+N.width-u.width-Math.abs(N.x-u.x),u.y=N.y+N.height-u.height-Math.abs(N.y-u.y)),i=k.getItemColor(A,d),p=i.fill,f=i.opacity,c=A?P.labelFormat:I[a].headerFormat;var E;if(e=A?P.showLabels:I[a].showHeader,a===k.treemap.currentLevel)if(k.treemap.enableBreadcrumb){L="#"+k.treemap.breadcrumbConnector+"#",E=d.levelOrderName.replace(/#/gi,L),E=0!==a?"#"+E:E}else E=d.name;else k.treemap.enableBreadcrumb&&(d.isDrilled=!1),E=d.name;g=Zt(c,d.data,k.treemap)||E||"undefined",T=jt(d).values,g=!A&&T&&T.length>0&&k.treemap.enableDrillDown?d.isDrilled?o.enableRtl?g+" [-]":"[-] "+g:o.enableRtl?g+" [+]":"[+] "+g:g,(b=A?P.labelStyle:I[a].headerStyle).fontFamily=k.treemap.themeStyle.labelFontFamily||b.fontFamily,b.fontWeight=b.fontWeight||k.treemap.themeStyle.fontWeight,C=A?P.border:I[a].border,t=A?P.labelPosition:"Near"===I[a].headerAlignment?"TopLeft":"Center"===I[a].headerAlignment?"TopCenter":"TopRight",l=A?P.templatePosition:I[a].templatePosition,x=A?P.labelTemplate:I[a].headerTemplate,d.options={border:C,opacity:f,fill:p},r={cancel:!1,name:pa,treemap:k.treemap,text:g,currentItem:d,RenderItems:k.renderItems,options:d.options},k.treemap.trigger(pa,r,function(i){if(!i.cancel){D=" M "+u.x+" "+u.y+" L "+(u.x+u.width)+" "+u.y+" L "+(u.x+u.width)+" "+(u.y+u.height)+" L "+u.x+" "+(u.y+u.height)+"z",s=new _a(y+"_RectPath",p,C.width,C.color,f,null,D);var o=n.renderer.drawPath(s);O.appendChild(o),e&&(r.text!==g&&(r.text=Zt(r.text,d.data,n.treemap)||E),n.renderItemText(r.text.toString(),O,b,u,S,y,p,t,L)),x&&(h(m=n.renderTemplate(j,y,u,l,x,d,A))||(z.appendChild(m),n.treemap.renderReactTemplates())),O.setAttribute("aria-label",d.name),n.treemap.enableDrillDown&&A||n.treemap.selectionSettings.enable||n.treemap.highlightSettings.enable?(O.setAttribute("role","button"),O.setAttribute("tabindex",n.treemap.tabIndex.toString()),O.style.cursor=n.treemap.highlightSettings.enable&&!n.treemap.selectionSettings.enable&&n.treemap.enableDrillDown&&d.groupIndex===n.treemap.levels.length-1?"default":!n.treemap.highlightSettings.enable||n.treemap.selectionSettings.enable||n.treemap.enableDrillDown?"pointer":"default"):O.setAttribute("role","region"),qt(n.treemap,O,"treeMapSelection"),n.layoutGroup.appendChild(O)}})},k=this,B=0;B<this.renderItems.length;B++)E(B);z.childNodes.length>0&&j.appendChild(z),this.treemap.svgObject.appendChild(this.layoutGroup)},t.prototype.renderItemText=function(t,e,i,r,n,o,s,a,l){var u,c,p,d=[],g=[],f=0;if(d=-1!==t.indexOf("<br>")?t.split("<br>"):null,c=this.labelInterSectAction(r,t,i,n),u=yt(d&&d[0]||c[0],i),this.treemap.enableRtl){var y=yt(t,i),m=t.search("[+]")||t.search("[-]");if(r.width<y.width&&m>0){var M=t.substring(m-1,t.length),v=yt("[+]",i);c[0]=mt(r.width-v.width-5,c[0],i)+M}}var b=Ct(r,a,u,"Text",this.treemap);if(!h(d)){for(var w=[],N=null,S=[],D=0;D<d.length;D++)f+=(u=yt(N=mt(r.width-5,d[D],i),i)).height,S.push(u.width),w.push(N);c=w,u.width=Math.max.apply(null,S),u.height=f}if("WrapByWord"===n||"Wrap"===n||"Trim"===n){for(var j=0;j<c.length;j++)f+=(u=yt(c[j],i)).height,r.height-5>f&&g.push(c[j]);if("Wrap"===n&&c.length!==g.length&&g.length){var I=g.length-1,O=g[I];O=O.substring(0,O.length-1)+"...",g.splice(I),"..."!==O&&g.push(O)}}else p=c,g.push(p);bt(new Va(o+"_Text",b.x,b.y,"start",g,"","",l),i,i.color||this.getSaturatedColor(s),e)},t.prototype.getItemColor=function(t,e){var i=this.treemap,r=t?i.leafItemSettings.fill:i.levels[e.groupIndex].fill,n=t?i.leafItemSettings.opacity:i.levels[e.groupIndex].opacity;h(i.treemapLevelData.defaultLevelsData)||i.treemapLevelData.defaultLevelsData.length>0&&(i.treemapLevelData.levelsData=i.treemapLevelData.defaultLevelsData);var o=jt(i.treemapLevelData.levelsData[0]).values,s=t?i.leafItemSettings.colorMapping:i.levels[e.groupIndex].colorMapping;if(s.length>0){var a=kt(s,e.data[i.equalColorValuePath],e.data[i.rangeColorValuePath]);r=h(a.fill)?i.leafItemSettings.fill:a.fill,n=a.opacity}else for(var l=0;l<o.length;l++)o[l].levelOrderName===e.levelOrderName.split("#")[0]&&(r=h(r)?h(i.colorValuePath)?i.palette.length>0?i.palette[l%i.palette.length]:"#808080":o[l].data[i.colorValuePath]:r);return{fill:r,opacity:n}},t.prototype.getSaturatedColor=function(t){var e=t,i=ie(re(e="transparent"===e?window.getComputedStyle(document.body,null).backgroundColor:e));return Math.round((299*i.r+587*i.g+114*i.b)/1e3)>=128?"black":"white"},t.prototype.renderTemplate=function(t,e,i,r,n,o,s){var a=s?e+"_LabelTemplate":e+"_HeaderTemplate",l=s?"_LabelTemplate":"_HeaderTemplate";if(h(n.prototype)&&"string"==typeof n)for(var u=Object.keys(o.data),c=0;c<u.length;c++){var p=RegExp;n=n.replace(new p("{{:"+u[c]+"}}","g"),o.data[u[c].toString()])}var d;if(!h(document.getElementById(this.treemap.element.id+"_Secondary_Element"))){var g=Ct(i,r,zt(d=xt(Ot(n)(o.data,this.treemap,n,this.treemap.element.id+l,!1),a,o.data),t),"Template",this.treemap);d.style.left=g.x+"px",d.style.top=g.y+"px"}return d},t.prototype.labelInterSectAction=function(t,e,i,r){var n,o=t.width-10;switch(r){case"Hide":n=[Gt(o,t.height,e,i)];break;case"Trim":n=[mt(o+3,e,i)];break;case"WrapByWord":n=Qt(o,e,i);break;case"Wrap":n=Wt(o,e,i)}return n},t.prototype.destroy=function(){this.treemap=null,this.currentRect=null,this.layoutGroup=null,this.renderer=null,this.renderItems=[],this.parentData=[]},t}(),Ha=function(){function t(t){return this.subQuery=null,this.isChild=!1,this.distincts=[],this.queries=[],this.key="",this.fKey="","string"==typeof t?this.fromTable=t:t&&t instanceof Array&&(this.lookups=t),this.expands=[],this.sortedColumns=[],this.groupedColumns=[],this.subQuery=null,this.isChild=!1,this.params=[],this.lazyLoad=[],this}return t.prototype.setKey=function(t){return this.key=t,this},t.prototype.using=function(t){return this.dataManager=t,this},t.prototype.execute=function(t,e,i,r){return(t=t||this.dataManager)?t.executeQuery(this,e,i,r):Ka.throwError('Query - execute() : dataManager needs to be is set using "using" function or should be passed as argument')},t.prototype.executeLocal=function(t){return(t=t||this.dataManager)?t.executeLocal(this):Ka.throwError('Query - executeLocal() : dataManager needs to be is set using "using" function or should be passed as argument')},t.prototype.clone=function(){var e=new t;return e.queries=this.queries.slice(0),e.key=this.key,e.isChild=this.isChild,e.dataManager=this.dataManager,e.fromTable=this.fromTable,e.params=this.params.slice(0),e.expands=this.expands.slice(0),e.sortedColumns=this.sortedColumns.slice(0),e.groupedColumns=this.groupedColumns.slice(0),e.subQuerySelector=this.subQuerySelector,e.subQuery=this.subQuery,e.fKey=this.fKey,e.isCountRequired=this.isCountRequired,e.distincts=this.distincts.slice(0),e.lazyLoad=this.lazyLoad.slice(0),e},t.prototype.from=function(t){return this.fromTable=t,this},t.prototype.addParams=function(t,e){return"function"==typeof e?this.params.push({key:t,fn:e}):this.params.push({key:t,value:e}),this},t.prototype.distinct=function(t){return this.distincts="string"==typeof t?[].slice.call([t],0):t.slice(0),this},t.prototype.expand=function(t){return this.expands="string"==typeof t?[].slice.call([t],0):t.slice(0),this},t.prototype.where=function(t,e,i,r,n,o){e=e?e.toLowerCase():null;var s=null;return"string"==typeof t?s=new qa(t,e,i,r,n,o):t instanceof qa&&(s=t),this.queries.push({fn:"onWhere",e:s}),this},t.prototype.search=function(t,e,i,r,n){"string"==typeof e&&(e=[e]),i&&"none"!==i||(i="contains");var o=Ka.fnOperators[i];return this.queries.push({fn:"onSearch",e:{fieldNames:e,operator:i,searchKey:t,ignoreCase:r,ignoreAccent:n,comparer:o}}),this},t.prototype.sortBy=function(t,e,i){return this.sortByForeignKey(t,e,i)},t.prototype.sortByForeignKey=function(e,i,r,n){var o,s,a=h(n)?"ascending":n;if("string"==typeof e&&Ka.endsWith(e.toLowerCase()," desc")&&(e=e.replace(/ desc$/i,""),i="descending"),i&&"string"!=typeof i||(a=i?i.toLowerCase():"ascending",i=Ka.fnSort(i)),r){o=t.filterQueries(this.queries,"onSortBy");for(var l=0;l<o.length;l++)if("string"==typeof(s=o[l].e.fieldName)){if(s===e)return this}else if(s instanceof Array)for(var u=0;u<s.length;u++)if(s[u]===e||e.toLowerCase()===s[u]+" desc")return this}return this.queries.push({fn:"onSortBy",e:{fieldName:e,comparer:i,direction:a}}),this},t.prototype.sortByDesc=function(t){return this.sortBy(t,"descending")},t.prototype.group=function(t,e,i){return this.sortBy(t,null,!0),this.queries.push({fn:"onGroup",e:{fieldName:t,comparer:e||null,format:i||null}}),this},t.prototype.page=function(t,e){return this.queries.push({fn:"onPage",e:{pageIndex:t,pageSize:e}}),this},t.prototype.range=function(t,e){return this.queries.push({fn:"onRange",e:{start:t,end:e}}),this},t.prototype.take=function(t){return this.queries.push({fn:"onTake",e:{nos:t}}),this},t.prototype.skip=function(t){return this.queries.push({fn:"onSkip",e:{nos:t}}),this},t.prototype.select=function(t){return"string"==typeof t&&(t=[].slice.call([t],0)),this.queries.push({fn:"onSelect",e:{fieldNames:t}}),this},t.prototype.hierarchy=function(t,e){return this.subQuerySelector=e,this.subQuery=t,this},t.prototype.foreignKey=function(t){return this.fKey=t,this},t.prototype.requiresCount=function(){return this.isCountRequired=!0,this},t.prototype.aggregate=function(t,e){return this.queries.push({fn:"onAggregates",e:{field:e,type:t}}),this},t.filterQueries=function(t,e){return t.filter(function(t){return t.fn===e})},t.filterQueryLists=function(t,e){for(var i=t.filter(function(t){return-1!==e.indexOf(t.fn)}),r={},n=0;n<i.length;n++)r[i[n].fn]||(r[i[n].fn]=i[n].e);return r},t}(),qa=function(){function t(e,i,r,n,o,s){return void 0===n&&(n=!1),this.ignoreAccent=!1,this.isComplex=!1,"string"==typeof e?(this.field=e,this.operator=i.toLowerCase(),this.value=r,this.matchCase=s,this.ignoreCase=n,this.ignoreAccent=o,this.isComplex=!1,this.comparer=Ka.fnOperators.processOperator(this.operator)):(e instanceof t&&r instanceof t||r instanceof Array)&&(this.isComplex=!0,this.condition=i.toLowerCase(),this.predicates=[e],this.matchCase=e.matchCase,this.ignoreCase=e.ignoreCase,this.ignoreAccent=e.ignoreAccent,r instanceof Array?[].push.apply(this.predicates,r):this.predicates.push(r)),this}return t.and=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.combinePredicates([].slice.call(e,0),"and")},t.prototype.and=function(e,i,r,n,o){return t.combine(this,e,i,r,"and",n,o)},t.or=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.combinePredicates([].slice.call(e,0),"or")},t.prototype.or=function(e,i,r,n,o){return t.combine(this,e,i,r,"or",n,o)},t.ornot=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.combinePredicates([].slice.call(e,0),"or not")},t.prototype.ornot=function(e,i,r,n,o){return t.combine(this,e,i,r,"ornot",n,o)},t.andnot=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.combinePredicates([].slice.call(e,0),"and not")},t.prototype.andnot=function(e,i,r,n,o){return t.combine(this,e,i,r,"andnot",n,o)},t.fromJson=function(t){if(t instanceof Array){for(var e=[],i=0,r=t.length;i<r;i++)e.push(this.fromJSONData(t[i]));return e}var n=t;return this.fromJSONData(n)},t.prototype.validate=function(t){var e,i,r=this.predicates?this.predicates:[];if(!this.isComplex&&this.comparer)return this.condition&&-1!==this.condition.indexOf("not")?(this.condition=""===this.condition.split("not")[0]?void 0:this.condition.split("not")[0],!this.comparer.call(this,Ka.getObject(this.field,t),this.value,this.ignoreCase,this.ignoreAccent)):this.comparer.call(this,Ka.getObject(this.field,t),this.value,this.ignoreCase,this.ignoreAccent);i=this.condition&&-1!==this.condition.indexOf("not")?-1!==this.condition.indexOf("and"):"and"===this.condition;for(var n=0;n<r.length;n++)if(n>0&&this.condition&&-1!==this.condition.indexOf("not")&&(r[n].condition=r[n].condition?r[n].condition+"not":"not"),e=r[n].validate(t),i){if(!e)return!1}else if(e)return!0;return i},t.prototype.toJson=function(){var t,e;if(this.isComplex){t=[],e=this.predicates;for(var i=0;i<e.length;i++)t.push(e[i].toJson())}return{isComplex:this.isComplex,field:this.field,operator:this.operator,value:this.value,ignoreCase:this.ignoreCase,ignoreAccent:this.ignoreAccent,condition:this.condition,predicates:t,matchCase:this.matchCase}},t.combinePredicates=function(e,i){if(1===e.length){if(!(e[0]instanceof Array))return e[0];e=e[0]}return new t(e[0],i,e.slice(1))},t.combine=function(e,i,r,n,o,s,a){return i instanceof t?t[o](e,i):"string"==typeof i?t[o](e,new t(i,r,n,s,a)):Ka.throwError("Predicate - "+o+" : invalid arguments")},t.fromJSONData=function(e){for(var i=e.predicates||[],r=i.length,n=[],o=0;o<r;o++)n.push(this.fromJSONData(i[o]));return e.isComplex?new t(n[0],e.condition,n.slice(1)):new t(e.field,e.operator,e.value,e.ignoreCase,e.ignoreAccent)},t}(),$a={GroupGuid:"{271bbba0-1ee7}"},Ka=function(){function t(){}return t.getValue=function(t,e){return"function"==typeof t?t.call(e||{}):t},t.endsWith=function(t,e){return t.slice&&t.slice(-e.length)===e},t.notEndsWith=function(t,e){return t.slice&&t.slice(-e.length)!==e},t.startsWith=function(t,e){return t.slice(0,e.length)===e},t.notStartsWith=function(t,e){return t.slice(0,e.length)!==e},t.wildCard=function(t,e){var i;if(-1!==e.indexOf("[")&&(e=e.split("[").join("[[]")),-1!==e.indexOf("(")&&(e=e.split("(").join("[(]")),-1!==e.indexOf(")")&&(e=e.split(")").join("[)]")),-1!==e.indexOf("\\")&&(e=e.split("\\").join("[\\\\]")),-1!==e.indexOf("*")){"*"!==e.charAt(0)&&(e="^"+e),"*"!==e.charAt(e.length-1)&&(e+="$"),i=e.split("*");for(var r=0;r<i.length;r++)-1===i[r].indexOf(".")?i[r]=i[r]+".*":i[r]=i[r]+"*";e=i.join("")}-1===e.indexOf("%3f")&&-1===e.indexOf("?")||(e=(-1!==e.indexOf("%3f")?e.split("%3f"):e.split("?")).join("."));return new RegExp(e,"g").test(t)},t.like=function(e,i){return-1!==i.indexOf("%")&&("%"===i.charAt(0)&&i.lastIndexOf("%")<2?(i=i.substring(1,i.length),t.startsWith(t.toLowerCase(e),t.toLowerCase(i))):"%"===i.charAt(i.length-1)&&i.indexOf("%")>i.length-3?(i=i.substring(0,i.length-1),t.endsWith(t.toLowerCase(e),t.toLowerCase(i))):i.lastIndexOf("%")!==i.indexOf("%")&&i.lastIndexOf("%")>i.indexOf("%")+1?(i=i.substring(i.indexOf("%")+1,i.lastIndexOf("%")),-1!==e.indexOf(i)):-1!==e.indexOf(i))},t.fnSort=function(e){return"ascending"===(e=e?t.toLowerCase(e):"ascending")?this.fnAscending:this.fnDescending},t.fnAscending=function(t,e){return h(t)&&h(e)?-1:null===e||void 0===e?-1:"string"==typeof t?t.localeCompare(e):null===t||void 0===t?1:t-e},t.fnDescending=function(t,e){return h(t)&&h(e)?-1:null===e||void 0===e?1:"string"==typeof t?-1*t.localeCompare(e):null===t||void 0===t?-1:e-t},t.extractFields=function(t,e){for(var i={},r=0;r<e.length;r++)i=this.setValue(e[r],this.getObject(e[r],t),i);return i},t.select=function(t,e){for(var i=[],r=0;r<t.length;r++)i.push(this.extractFields(t[r],e));return i},t.group=function(e,i,r,n,o,s,a){n=n||1;var l=e;if(l.GroupGuid===$a.GroupGuid){for(var u=function(t){if(h(o))l[t].items=c.group(l[t].items,i,r,l.level+1,null,s,a),l[t].count=l[t].items.length;else{var e=-1,n=o.filter(function(e){return e.key===l[t].key});e=o.indexOf(n[0]),l[t].items=c.group(l[t].items,i,r,l.level+1,o[e].items,s,a),l[t].count=o[e].count}},c=this,p=0;p<l.length;p++)u(p);return l.childLevels+=1,l}var d={},g=[];g.GroupGuid=$a.GroupGuid,g.level=n,g.childLevels=0,g.records=l;for(var f=function(t){var e=y.getVal(l,t,i);if(h(s)||(e=s(e,i)),!d[e]&&(d[e]={key:e,count:0,items:[],aggregates:{},field:i},g.push(d[e]),!h(o))){var n=o.filter(function(t){return t.key===d[e].key});d[e].count=n[0].count}d[e].count=h(o)?d[e].count+=1:d[e].count,(!a||a&&r.length)&&d[e].items.push(l[t])},y=this,m=0;m<l.length;m++)f(m);if(r&&r.length){var M=function(e){for(var i={},n=void 0,s=r,a=0;a<r.length;a++)if(n=t.aggregates[r[a].type],h(o))n&&(i[s[a].field+" - "+s[a].type]=n(g[e].items,s[a].field));else{var l=o.filter(function(t){return t.key===g[e].key});n&&(i[s[a].field+" - "+s[a].type]=n(l[0].items,s[a].field))}g[e].aggregates=i};for(m=0;m<g.length;m++)M(m)}if(a&&g.length&&r.length)for(m=0;m<g.length;m++)g[m].items=[];return l.length&&g||l},t.buildHierarchy=function(t,e,i,r,n){var o,s={};for(r.result&&(r=r.result),r.GroupGuid&&this.throwError("DataManager: Do not have support Grouping in hierarchy"),o=0;o<r.length;o++){(s[a=this.getObject(t,r[o])]||(s[a]=[])).push(r[o])}for(o=0;o<i.length;o++){var a=this.getObject(n||t,i[o]);i[o][e]=s[a]}},t.getFieldList=function(t,e,i){if(void 0===i&&(i=""),void 0===e||null===e)return this.getFieldList(t,[],i);for(var r=t,n=0,o=Object.keys(t);n<o.length;n++){var s=o[n];"object"!=typeof r[s]||r[s]instanceof Array?e.push(i+s):this.getFieldList(r[s],e,i+s+".")}return e},t.getObject=function(t,e){if(!t)return e;if(e){if(-1===t.indexOf(".")){var i=t.charAt(0).toLowerCase()+t.slice(1),r=t.charAt(0).toUpperCase()+t.slice(1);return h(e[t])?h(e[i])?h(e[r])?null:e[r]:e[i]:e[t]}for(var n=e,o=t.split("."),s=0;s<o.length&&null!=n;s++){if(void 0===(n=n[o[s]])){var a=o[s].charAt(0).toUpperCase()+o[s].slice(1);n=e[a]||e[a.charAt(0).toLowerCase()+a.slice(1)]||null}e=n}return n}},t.setValue=function(t,e,i){var r,n,o=t.toString().split("."),s=i||{},a=s,l=o.length;for(r=0;r<l;r++)n=o[r],r+1===l?a[n]=void 0===e?void 0:e:h(a[n])&&(a[n]={}),a=a[n];return s},t.sort=function(t,e,i){if(t.length<=1)return t;var r=parseInt((t.length/2).toString(),10),n=t.slice(0,r),o=t.slice(r);return n=this.sort(n,e,i),o=this.sort(o,e,i),this.merge(n,o,e,i)},t.ignoreDiacritics=function(e){if("string"!=typeof e)return e;return e.split("").map(function(e){return e in t.diacritics?t.diacritics[e]:e}).join("")},t.merge=function(t,e,i,r){for(var n,o=[];t.length>0||e.length>0;)n=t.length>0&&e.length>0?r?r(this.getVal(t,0,i),this.getVal(e,0,i),t[0],e[0])<=0?t:e:t[0][i]<t[0][i]?t:e:t.length>0?t:e,o.push(n.shift());return o},t.getVal=function(t,e,i){return i?this.getObject(i,t[e]):t[e]},t.toLowerCase=function(t){return t?"string"==typeof t?t.toLowerCase():t.toString():0===t||!1===t?t.toString():""},t.callAdaptorFunction=function(t,e,i,r){if(e in t){var n=t[e](i,r);h(n)||(i=n)}return i},t.getAddParams=function(e,i,r){var n={};return t.callAdaptorFunction(e,"addParams",{dm:i,query:r,params:r.params,reqParams:n}),n},t.isPlainObject=function(t){return!!t&&t.constructor===Object},t.isCors=function(){var t=null;try{t=new window.XMLHttpRequest}catch(t){}return!!t&&"withCredentials"in t},t.getGuid=function(t){var e;return(t||"")+"00000000-0000-4000-0000-000000000000".replace(/0/g,function(t,i){if("crypto"in window&&"getRandomValues"in crypto){var r=new Uint8Array(1);window.crypto.getRandomValues(r),e=r[0]%16|0}else e=16*Math.random()|0;return"0123456789abcdef"[19===i?3&e|8:e]})},t.isNull=function(t){return void 0===t||null===t},t.getItemFromComparer=function(e,i,r){var n,o,s,a=0,l="string"==typeof t.getVal(e,0,i);if(e.length)for(;h(n)&&a<e.length;)n=t.getVal(e,a,i),s=e[a++];for(;a<e.length;a++)h(o=t.getVal(e,a,i))||(l&&(n=+n,o=+o),r(n,o)>0&&(n=o,s=e[a]));return s},t.distinct=function(e,i,r){r=!h(r)&&r;var n,o=[],s={};return e.forEach(function(a,l){(n="object"==typeof e[l]?t.getVal(e,l,i):e[l])in s||(o.push(r?e[l]:n),s[n]=1)}),o},t.processData=function(t,e){var i=this.prepareQuery(t),r=new sl(e);t.requiresCounts&&i.requiresCount();var n=r.executeLocal(i),o={result:t.requiresCounts?n.result:n,count:n.count,aggregates:JSON.stringify(n.aggregates)};return t.requiresCounts?o:n},t.prepareQuery=function(e){var i=this,r=new Ha;if(e.select&&r.select(e.select),e.where){t.parse.parseJson(e.where).filter(function(t){if(h(t.condition))r.where(t.field,t.operator,t.value,t.ignoreCase,t.ignoreAccent);else{var e=[];t.field?e.push(new qa(t.field,t.operator,t.value,t.ignoreCase,t.ignoreAccent)):e=e.concat(i.getPredicate(t.predicates)),"or"===t.condition?r.where(qa.or(e)):"and"===t.condition&&r.where(qa.and(e))}})}if(e.search){t.parse.parseJson(e.search).filter(function(t){return r.search(t.key,t.fields,t.operator,t.ignoreCase,t.ignoreAccent)})}return e.aggregates&&e.aggregates.filter(function(t){return r.aggregate(t.type,t.field)}),e.sorted&&e.sorted.filter(function(t){return r.sortBy(t.name,t.direction)}),e.skip&&r.skip(e.skip),e.take&&r.take(e.take),e.group&&e.group.filter(function(t){return r.group(t)}),r},t.getPredicate=function(t){for(var e=[],i=0;i<t.length;i++){var r=t[i];if(r.field)e.push(new qa(r.field,r.operator,r.value,r.ignoreCase,r.ignoreAccent));else{for(var n=[],o=this.getPredicate(r.predicates),s=0,a=Object.keys(o);s<a.length;s++){var l=a[s];n.push(o[l])}e.push("or"===r.condition?qa.or(n):qa.and(n))}}return e},t.serverTimezoneOffset=null,t.timeZoneHandling=!0,t.throwError=function(t){try{throw new Error(t)}catch(t){throw t.message+"\n"+t.stack}},t.aggregates={sum:function(e,i){for(var r,n=0,o="number"!=typeof t.getVal(e,0,i),s=0;s<e.length;s++)r=t.getVal(e,s,i),isNaN(r)||null===r||(o&&(r=+r),n+=r);return n},average:function(e,i){return t.aggregates.sum(e,i)/e.length},min:function(e,i){var r;return"function"==typeof i&&(r=i,i=null),t.getObject(i,t.getItemFromComparer(e,i,r||t.fnAscending))},max:function(e,i){var r;return"function"==typeof i&&(r=i,i=null),t.getObject(i,t.getItemFromComparer(e,i,r||t.fnDescending))},truecount:function(t,e){return new sl(t).executeLocal((new Ha).where(e,"equal",!0,!0)).length},falsecount:function(t,e){return new sl(t).executeLocal((new Ha).where(e,"equal",!1,!0)).length},count:function(t,e){return t.length}},t.operatorSymbols={"<":"lessthan",">":"greaterthan","<=":"lessthanorequal",">=":"greaterthanorequal","==":"equal","!=":"notequal","*=":"contains","$=":"endswith","^=":"startswith"},t.odBiOperator={"<":" lt ",">":" gt ","<=":" le ",">=":" ge ","==":" eq ","!=":" ne ",lessthan:" lt ",lessthanorequal:" le ",greaterthan:" gt ",greaterthanorequal:" ge ",equal:" eq ",notequal:" ne "},t.odUniOperator={"$=":"endswith","^=":"startswith","*=":"substringof",endswith:"endswith",startswith:"startswith",contains:"substringof",doesnotendwith:"not endswith",doesnotstartwith:"not startswith",doesnotcontain:"not substringof",wildcard:"wildcard",like:"like"},t.odv4UniOperator={"$=":"endswith","^=":"startswith","*=":"contains",endswith:"endswith",startswith:"startswith",contains:"contains",doesnotendwith:"not endswith",doesnotstartwith:"not startswith",doesnotcontain:"not contains",wildcard:"wildcard",like:"like"},t.diacritics={"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"},t.fnOperators={equal:function(e,i,r,n){return n&&(e=t.ignoreDiacritics(e),i=t.ignoreDiacritics(i)),r?t.toLowerCase(e)===t.toLowerCase(i):e===i},notequal:function(e,i,r,n){return n&&(e=t.ignoreDiacritics(e),i=t.ignoreDiacritics(i)),!t.fnOperators.equal(e,i,r)},lessthan:function(e,i,r){return r?t.toLowerCase(e)<t.toLowerCase(i):(h(e)&&(e=void 0),e<i)},greaterthan:function(e,i,r){return r?t.toLowerCase(e)>t.toLowerCase(i):e>i},lessthanorequal:function(e,i,r){return r?t.toLowerCase(e)<=t.toLowerCase(i):(h(e)&&(e=void 0),e<=i)},greaterthanorequal:function(e,i,r){return r?t.toLowerCase(e)>=t.toLowerCase(i):e>=i},contains:function(e,i,r,n){return n&&(e=t.ignoreDiacritics(e),i=t.ignoreDiacritics(i)),r?!h(e)&&!h(i)&&-1!==t.toLowerCase(e).indexOf(t.toLowerCase(i)):!h(e)&&!h(i)&&-1!==e.toString().indexOf(i)},doesnotcontain:function(e,i,r,n){return n&&(e=t.ignoreDiacritics(e),i=t.ignoreDiacritics(i)),r?!h(e)&&!h(i)&&-1===t.toLowerCase(e).indexOf(t.toLowerCase(i)):!h(e)&&!h(i)&&-1===e.toString().indexOf(i)},isnotnull:function(t){return null!==t&&void 0!==t},isnull:function(t){return null===t||void 0===t},startswith:function(e,i,r,n){return n&&(e=t.ignoreDiacritics(e),i=t.ignoreDiacritics(i)),r?e&&i&&t.startsWith(t.toLowerCase(e),t.toLowerCase(i)):e&&i&&t.startsWith(e,i)},doesnotstartwith:function(e,i,r,n){return n&&(e=t.ignoreDiacritics(e),i=t.ignoreDiacritics(i)),r?e&&i&&t.notStartsWith(t.toLowerCase(e),t.toLowerCase(i)):e&&i&&t.notStartsWith(e,i)},like:function(e,i,r,n){return n&&(e=t.ignoreDiacritics(e),i=t.ignoreDiacritics(i)),r?e&&i&&t.like(t.toLowerCase(e),t.toLowerCase(i)):e&&i&&t.like(e,i)},isempty:function(t){return void 0===t||""===t},isnotempty:function(t){return void 0!==t&&""!==t},wildcard:function(e,i,r,n){return n&&(e=t.ignoreDiacritics(e),i=t.ignoreDiacritics(i)),r?(e||"boolean"==typeof e)&&i&&"object"!=typeof e&&t.wildCard(t.toLowerCase(e),t.toLowerCase(i)):(e||"boolean"==typeof e)&&i&&t.wildCard(e,i)},endswith:function(e,i,r,n){return n&&(e=t.ignoreDiacritics(e),i=t.ignoreDiacritics(i)),r?e&&i&&t.endsWith(t.toLowerCase(e),t.toLowerCase(i)):e&&i&&t.endsWith(e,i)},doesnotendwith:function(e,i,r,n){return n&&(e=t.ignoreDiacritics(e),i=t.ignoreDiacritics(i)),r?e&&i&&t.notEndsWith(t.toLowerCase(e),t.toLowerCase(i)):e&&i&&t.notEndsWith(e,i)},processSymbols:function(e){var i=t.operatorSymbols[e];if(i){return t.fnOperators[i]}return t.throwError("Query - Process Operator : Invalid operator")},processOperator:function(e){var i=t.fnOperators[e];return i||t.fnOperators.processSymbols(e)}},t.parse={parseJson:function(e){return"string"!=typeof e||!/^[\s]*\[|^[\s]*\{(.)+:/g.test(e)&&-1!==e.indexOf('"')?e instanceof Array?t.parse.iterateAndReviveArray(e):"object"==typeof e&&null!==e&&t.parse.iterateAndReviveJson(e):e=JSON.parse(e,t.parse.jsonReviver),e},iterateAndReviveArray:function(e){for(var i=0;i<e.length;i++)"object"==typeof e[i]&&null!==e[i]?t.parse.iterateAndReviveJson(e[i]):"string"!=typeof e[i]||/^[\s]*\[|^[\s]*\{(.)+:|\"/g.test(e[i])&&-1!==e[i].toString().indexOf('"')?e[i]=t.parse.parseJson(e[i]):e[i]=t.parse.jsonReviver("",e[i])},iterateAndReviveJson:function(e){for(var i,r=0,n=Object.keys(e);r<n.length;r++){var o=n[r];t.startsWith(o,"__")||("object"==typeof(i=e[o])?i instanceof Array?t.parse.iterateAndReviveArray(i):i&&t.parse.iterateAndReviveJson(i):e[o]=t.parse.jsonReviver(e[o],i))}},jsonReviver:function(e,i){if("string"==typeof i){var r=/^\/Date\(([+-]?[0-9]+)([+-][0-9]{4})?\)\/$/.exec(i),n=t.timeZoneHandling?t.serverTimezoneOffset:null;if(r)return t.dateParse.toTimeZone(new Date(parseInt(r[1],10)),n,!0);if(/^(\d{4}\-\d\d\-\d\d([tT][\d:\.]*){1})([zZ]|([+\-])(\d\d):?(\d\d))?$/.test(i)){var o=i.indexOf("Z")>-1||i.indexOf("z")>-1,s=i.split(/[^0-9.]/);if(o){if(s[5].indexOf(".")>-1){var a=s[5].split(".");s[5]=a[0],s[6]=new Date(i).getUTCMilliseconds().toString()}else s[6]="00";i=t.dateParse.toTimeZone(new Date(parseInt(s[0],10),parseInt(s[1],10)-1,parseInt(s[2],10),parseInt(s[3],10),parseInt(s[4],10),parseInt(s[5]?s[5]:"00",10),parseInt(s[6],10)),t.serverTimezoneOffset,!1)}else{var l=new Date(parseInt(s[0],10),parseInt(s[1],10)-1,parseInt(s[2],10),parseInt(s[3],10),parseInt(s[4],10),parseInt(s[5]?s[5]:"00",10)),h=parseInt(s[6],10),u=parseInt(s[7],10);if(isNaN(h)&&isNaN(u))return l;i.indexOf("+")>-1?l.setHours(l.getHours()-h,l.getMinutes()-u):l.setHours(l.getHours()+h,l.getMinutes()+u),i=t.dateParse.toTimeZone(l,t.serverTimezoneOffset,!1)}null==t.serverTimezoneOffset&&(i=t.dateParse.addSelfOffset(i))}}return i},isJson:function(e){return"string"==typeof e[0]?e:t.parse.parseJson(e)},isGuid:function(t){return null!=/[A-Fa-f0-9]{8}(?:-[A-Fa-f0-9]{4}){3}-[A-Fa-f0-9]{12}/i.exec(t)},replacer:function(e,i){return t.isPlainObject(e)?t.parse.jsonReplacer(e,i):e instanceof Array?t.parse.arrayReplacer(e):e instanceof Date?t.parse.jsonReplacer({val:e},i).val:e},jsonReplacer:function(e,i){for(var r,n=0,o=Object.keys(e);n<o.length;n++){var s=o[n];if((r=e[s])instanceof Date){var a=r;null==t.serverTimezoneOffset?e[s]=t.dateParse.toTimeZone(a,null).toJSON():(a=new Date(+a+36e5*t.serverTimezoneOffset),e[s]=t.dateParse.toTimeZone(t.dateParse.addSelfOffset(a),null).toJSON())}}return e},arrayReplacer:function(e){for(var i=0;i<e.length;i++)t.isPlainObject(e[i])?e[i]=t.parse.jsonReplacer(e[i]):e[i]instanceof Date&&(e[i]=t.parse.jsonReplacer({date:e[i]}).date);return e},jsonDateReplacer:function(e,i){if("value"===e&&i){if("string"==typeof i){var r=/^\/Date\(([+-]?[0-9]+)([+-][0-9]{4})?\)\/$/.exec(i);if(r)i=t.dateParse.toTimeZone(new Date(parseInt(r[1],10)),null,!0);else if(/^(\d{4}\-\d\d\-\d\d([tT][\d:\.]*){1})([zZ]|([+\-])(\d\d):?(\d\d))?$/.test(i)){var n=i.split(/[^0-9]/);i=t.dateParse.toTimeZone(new Date(parseInt(n[0],10),parseInt(n[1],10)-1,parseInt(n[2],10),parseInt(n[3],10),parseInt(n[4],10),parseInt(n[5],10)),null,!0)}}if(i instanceof Date)return i=t.dateParse.addSelfOffset(i),null===t.serverTimezoneOffset?t.dateParse.toTimeZone(t.dateParse.addSelfOffset(i),null).toJSON():(i=t.dateParse.toTimeZone(i,i.getTimezoneOffset()/60-t.serverTimezoneOffset,!1)).toJSON()}return i}},t.dateParse={addSelfOffset:function(t){return new Date(+t-6e4*t.getTimezoneOffset())},toUTC:function(t){return new Date(+t+6e4*t.getTimezoneOffset())},toTimeZone:function(e,i,r){if(null===i)return e;var n=r?t.dateParse.toUTC(e):e;return new Date(+n-36e5*i)},toLocalTime:function(t){var e=t,i=-e.getTimezoneOffset(),r=i>=0?"+":"-",n=function(t){var e=Math.floor(Math.abs(t));return(e<10?"0":"")+e};return e.getFullYear()+"-"+n(e.getMonth()+1)+"-"+n(e.getDate())+"T"+n(e.getHours())+":"+n(e.getMinutes())+":"+n(e.getSeconds())+r+n(i/60)+":"+n(i%60)}},t}(),Ja=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Za={GroupGuid:"{271bbba0-1ee7}"},Xa=function(){function t(e){this.options={from:"table",requestType:"json",sortBy:"sorted",select:"select",skip:"skip",group:"group",take:"take",search:"search",count:"requiresCounts",where:"where",aggregates:"aggregates",expand:"expand"},this.type=t,this.dataSource=e,this.pvt={}}return t.prototype.processResponse=function(t,e,i,r){return t},t}(),tl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ja(e,t),e.prototype.processQuery=function(t,e){for(var i,r,n,o=t.dataSource.json.slice(0),s=o.length,a=!0,l={},h=0,u=[],c=0;c<e.lazyLoad.length;c++)h++,l[e.lazyLoad[c].key]=e.lazyLoad[c].value;var p={};for(c=0;c<e.queries.length;c++)"onPage"!==(r=e.queries[c]).fn&&"onGroup"!==r.fn||!e.lazyLoad.length?(i=this[r.fn].call(this,o,r.e,e),"onAggregates"===r.fn?p[r.e.field+" - "+r.e.type]=i:o=void 0!==i?i:o,"onPage"!==r.fn&&"onSkip"!==r.fn&&"onTake"!==r.fn&&"onRange"!==r.fn||(a=!1),a&&(s=o.length)):("onGroup"===r.fn&&u.push(r.e),"onPage"===r.fn&&(n=r.e));if(h){var d={query:e,lazyLoad:l,result:o,group:u,page:n},g=this.lazyLoadGroup(d);o=g.result,s=g.count}return e.isCountRequired&&(o={result:o,count:s,aggregates:p}),o},e.prototype.lazyLoadGroup=function(t){var e=0,i=this.getAggregate(t.query),r=t.result;if(h(t.lazyLoad.onDemandGroupInfo)){s=t.group[0].fieldName;e=(r=Ka.group(r,s,i,null,null,t.group[0].comparer,!0)).length;a=r;t.page&&(r=this.onPage(r,t.page,t.query)),this.formGroupResult(r,a)}else{for(var n=t.lazyLoad.onDemandGroupInfo,o=n.where.length-1;o>=0;o--)r=this.onWhere(r,n.where[o]);if(t.group.length!==n.level){var s=t.group[n.level].fieldName;r=Ka.group(r,s,i,null,null,t.group[0].comparer,!0)}e=r.length;var a=r;r=(r=r.slice(n.skip)).slice(0,n.take),t.group.length!==n.level&&this.formGroupResult(r,a)}return{result:r,count:e}},e.prototype.formGroupResult=function(t,e){if(t.length&&e.length){t.GroupGuid=e.GroupGuid,t.childLevels=e.childLevels,t.level=e.level,t.records=e.records}return t},e.prototype.getAggregate=function(t){var e=Ha.filterQueries(t.queries,"onAggregates"),i=[];if(e.length)for(var r=void 0,n=0;n<e.length;n++)r=e[n].e,i.push({type:r.type,field:Ka.getValue(r.field,t)});return i},e.prototype.batchRequest=function(t,e,i){var r,n=e.deletedRecords.length;for(r=0;r<e.addedRecords.length;r++)this.insert(t,e.addedRecords[r]);for(r=0;r<e.changedRecords.length;r++)this.update(t,i.key,e.changedRecords[r]);for(r=0;r<n;r++)this.remove(t,i.key,e.deletedRecords[r]);return e},e.prototype.onWhere=function(t,e){return t&&t.length?t.filter(function(t){if(e)return e.validate(t)}):t},e.prototype.onAggregates=function(t,e){var i=Ka.aggregates[e.type];return t&&i&&0!==t.length?i(t,e.field):null},e.prototype.onSearch=function(t,e){return t&&t.length?(0===e.fieldNames.length&&Ka.getFieldList(t[0],e.fieldNames),t.filter(function(t){for(var i=0;i<e.fieldNames.length;i++)if(e.comparer.call(t,Ka.getObject(e.fieldNames[i],t),e.searchKey,e.ignoreCase,e.ignoreAccent))return!0;return!1})):t},e.prototype.onSortBy=function(t,e,i){if(!t||!t.length)return t;var r,n=Ka.getValue(e.fieldName,i);if(!n)return t.sort(e.comparer);if(n instanceof Array){for(var o=(n=n.slice(0)).length-1;o>=0;o--)n[o]&&(r=e.comparer,Ka.endsWith(n[o]," desc")&&(r=Ka.fnSort("descending"),n[o]=n[o].replace(" desc","")),t=Ka.sort(t,n[o],r));return t}return Ka.sort(t,n,e.comparer)},e.prototype.onGroup=function(t,e,i){if(!t||!t.length)return t;var r=this.getAggregate(i);return Ka.group(t,Ka.getValue(e.fieldName,i),r,null,null,e.comparer)},e.prototype.onPage=function(t,e,i){var r=Ka.getValue(e.pageSize,i),n=(Ka.getValue(e.pageIndex,i)-1)*r,o=n+r;return t&&t.length?t.slice(n,o):t},e.prototype.onRange=function(t,e){return t&&t.length?t.slice(Ka.getValue(e.start),Ka.getValue(e.end)):t},e.prototype.onTake=function(t,e){return t&&t.length?t.slice(0,Ka.getValue(e.nos)):t},e.prototype.onSkip=function(t,e){return t&&t.length?t.slice(Ka.getValue(e.nos)):t},e.prototype.onSelect=function(t,e){return t&&t.length?Ka.select(t,Ka.getValue(e.fieldNames)):t},e.prototype.insert=function(t,e,i,r,n){return h(n)?t.dataSource.json.push(e):t.dataSource.json.splice(n,0,e)},e.prototype.remove=function(t,e,i,r){var n,o=t.dataSource.json;for("object"!=typeof i||i instanceof Date||(i=Ka.getObject(e,i)),n=0;n<o.length&&Ka.getObject(e,o[n])!==i;n++);return n!==o.length?o.splice(n,1):null},e.prototype.update=function(t,e,i,n){var o,s,l=t.dataSource.json;for(h(e)||(s=r(e,i)),o=0;o<l.length&&(h(e)||r(e,l[o])!==s);o++);return o<l.length?a(l[o],i):null},e}(Xa),el=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ja(e,t),e.prototype.processQuery=function(t,e,i){var r,n,o=this.getQueryRequest(e),s=Ha.filterQueryLists(e.queries,["onSelect","onPage","onSkip","onTake","onRange"]),a=e.params,l=t.dataSource.url,u=null,c=this.options,p={sorts:[],groups:[],filters:[],searches:[],aggregates:[]};"onPage"in s?(r=s.onPage,n=((n=Ka.getValue(r.pageIndex,e))-1)*(u=Ka.getValue(r.pageSize,e))):"onRange"in s&&(n=(r=s.onRange).start,u=r.end-r.start);for(var d=0;d<o.sorts.length;d++)r=Ka.getValue(o.sorts[d].e.fieldName,e),p.sorts.push(Ka.callAdaptorFunction(this,"onEachSort",{name:r,direction:o.sorts[d].e.direction},e));i&&(r=this.getFiltersFrom(i,e))&&p.filters.push(Ka.callAdaptorFunction(this,"onEachWhere",r.toJson(),e));for(d=0;d<o.filters.length;d++){var g=Ka.callAdaptorFunction(this,"onEachWhere",o.filters[d].e.toJson(),e);this.getModuleName&&"ODataV4Adaptor"===this.getModuleName()&&!h(o.filters[d].e.key)&&o.filters.length>1&&(g="("+g+")"),p.filters.push(g);for(var f=0,y="object"==typeof p.filters[d]?Object.keys(p.filters[d]):[];f<y.length;f++){var m=y[f];Ka.isNull(p[m])&&delete p[m]}}for(d=0;d<o.searches.length;d++)r=o.searches[d].e,p.searches.push(Ka.callAdaptorFunction(this,"onEachSearch",{fields:r.fieldNames,operator:r.operator,key:r.searchKey,ignoreCase:r.ignoreCase},e));for(d=0;d<o.groups.length;d++)p.groups.push(Ka.getValue(o.groups[d].e.fieldName,e));for(d=0;d<o.aggregates.length;d++)r=o.aggregates[d].e,p.aggregates.push({type:r.type,field:Ka.getValue(r.field,e)});var M={};if(this.getRequestQuery(c,e,s,p,M),Ka.callAdaptorFunction(this,"addParams",{dm:t,query:e,params:a,reqParams:M}),e.lazyLoad.length)for(d=0;d<e.lazyLoad.length;d++)M[e.lazyLoad[d].key]=e.lazyLoad[d].value;for(var v=0,b=Object.keys(M);v<b.length;v++){m=b[v];(Ka.isNull(M[m])||""===M[m]||0===M[m].length)&&delete M[m]}c.skip in M&&c.take in M||null===u||(M[c.skip]=Ka.callAdaptorFunction(this,"onSkip",n,e),M[c.take]=Ka.callAdaptorFunction(this,"onTake",u,e));var w=this.pvt;return this.pvt={},"json"===this.options.requestType?{data:JSON.stringify(M,Ka.parse.jsonDateReplacer),url:l,pvtData:w,type:"POST",contentType:"application/json; charset=utf-8"}:(r=this.convertToQueryString(M,e,t),r=(-1!==t.dataSource.url.indexOf("?")?"&":"/")+r,{type:"GET",url:r.length?l.replace(/\/*$/,r):l,pvtData:w})},e.prototype.getRequestQuery=function(t,e,i,r,n){var o=n;o[t.from]=e.fromTable,t.apply&&e.distincts.length&&(o[t.apply]="onDistinct"in this?Ka.callAdaptorFunction(this,"onDistinct",e.distincts):""),!e.distincts.length&&t.expand&&(o[t.expand]="onExpand"in this&&"onSelect"in i?Ka.callAdaptorFunction(this,"onExpand",{selects:Ka.getValue(i.onSelect.fieldNames,e),expands:e.expands},e):e.expands),o[t.select]="onSelect"in i&&!e.distincts.length?Ka.callAdaptorFunction(this,"onSelect",Ka.getValue(i.onSelect.fieldNames,e),e):"",o[t.count]=e.isCountRequired?Ka.callAdaptorFunction(this,"onCount",e.isCountRequired,e):"",o[t.search]=r.searches.length?Ka.callAdaptorFunction(this,"onSearch",r.searches,e):"",o[t.skip]="onSkip"in i?Ka.callAdaptorFunction(this,"onSkip",Ka.getValue(i.onSkip.nos,e),e):"",o[t.take]="onTake"in i?Ka.callAdaptorFunction(this,"onTake",Ka.getValue(i.onTake.nos,e),e):"",o[t.where]=r.filters.length||r.searches.length?Ka.callAdaptorFunction(this,"onWhere",r.filters,e):"",o[t.sortBy]=r.sorts.length?Ka.callAdaptorFunction(this,"onSortBy",r.sorts,e):"",o[t.group]=r.groups.length?Ka.callAdaptorFunction(this,"onGroup",r.groups,e):"",o[t.aggregates]=r.aggregates.length?Ka.callAdaptorFunction(this,"onAggregates",r.aggregates,e):"",o.param=[]},e.prototype.convertToQueryString=function(t,e,i){return""},e.prototype.processResponse=function(t,e,i,r,n,o){if(r&&r.headers.get("Content-Type")&&-1!==r.headers.get("Content-Type").indexOf("application/json")){var s=Ka.timeZoneHandling;e&&!e.timeZoneHandling&&(Ka.timeZoneHandling=!1),t=Ka.parse.parseJson(t),Ka.timeZoneHandling=s}var a=n,l=a.pvtData||{},u=t?t.groupDs:[];if(r&&r.headers.get("Content-Type")&&-1!==r.headers.get("Content-Type").indexOf("xml"))return i.isCountRequired?{result:[],count:0}:[];var c=JSON.parse(a.data);if(c&&"batch"===c.action&&t&&t.addedRecords)return o.addedRecords=t.addedRecords,o;t&&t.d&&(t=t.d);var p={};t&&"count"in t&&(p.count=t.count),p.result=t&&t.result?t.result:t;var d=!1;if(Array.isArray(t.result)&&t.result.length){if(h(t.result[0].key)||(p.result=this.formRemoteGroupedData(p.result,1,l.groups.length-1)),i&&i.lazyLoad.length&&l.groups.length)for(var g=0;g<i.lazyLoad.length;g++)if("onDemandGroupInfo"===i.lazyLoad[g].key){var f=i.lazyLoad[g].value.level;l.groups.length===f&&(d=!0)}}return d||this.getAggregateResult(l,t,p,u,i),Ka.isNull(p.count)?p.result:{result:p.result,count:p.count,aggregates:p.aggregates}},e.prototype.formRemoteGroupedData=function(t,e,i){for(var r=0;r<t.length;r++)t[r].items.length&&Object.keys(t[r].items[0]).indexOf("key")>-1&&this.formRemoteGroupedData(t[r].items,e+1,i-1);return t.GroupGuid=Za.GroupGuid,t.level=e,t.childLevels=i,t.records=t[0].items.length?this.getGroupedRecords(t,!h(t[0].items.records)):[],t},e.prototype.getGroupedRecords=function(t,e){for(var i=[],r=0;r<t.length;r++)if(e)i=i.concat(t[r].items.records);else for(var n=0;n<t[r].items.length;n++)i.push(t[r].items[n]);return i},e.prototype.onGroup=function(t){return this.pvt.groups=t,t},e.prototype.onAggregates=function(t){this.pvt.aggregates=t},e.prototype.batchRequest=function(t,e,i,r,n){return{type:"POST",url:t.dataSource.batchUrl||t.dataSource.crudUrl||t.dataSource.removeUrl||t.dataSource.url,contentType:"application/json; charset=utf-8",dataType:"json",data:JSON.stringify(l({},{changed:e.changedRecords,added:e.addedRecords,deleted:e.deletedRecords,action:"batch",table:i[void 0],key:i[void 0]},Ka.getAddParams(this,t,r)))}},e.prototype.beforeSend=function(t,e){},e.prototype.insert=function(t,e,i,r){return{url:t.dataSource.insertUrl||t.dataSource.crudUrl||t.dataSource.url,data:JSON.stringify(l({},{value:e,table:i,action:"insert"},Ka.getAddParams(this,t,r)))}},e.prototype.remove=function(t,e,i,r,n){return{type:"POST",url:t.dataSource.removeUrl||t.dataSource.crudUrl||t.dataSource.url,data:JSON.stringify(l({},{key:i,keyColumn:e,table:r,action:"remove"},Ka.getAddParams(this,t,n)))}},e.prototype.update=function(t,e,i,r,n){return{type:"POST",url:t.dataSource.updateUrl||t.dataSource.crudUrl||t.dataSource.url,data:JSON.stringify(l({},{value:i,action:"update",keyColumn:e,key:Ka.getObject(e,i),table:r},Ka.getAddParams(this,t,n)))}},e.prototype.getFiltersFrom=function(t,e){var i,r=e.fKey,n=r,o=e.key,s=[];"object"!=typeof t[0]&&(n=null);for(var a=0;a<t.length;a++)i="object"==typeof t[0]?Ka.getObject(o||n,t[a]):t[a],s.push(new qa(r,"equal",i));return qa.or(s)},e.prototype.getAggregateResult=function(t,e,i,r,n){var o=e;if(e&&e.result&&(o=e.result),t&&t.aggregates&&t.aggregates.length){var s=t.aggregates,a=void 0,l=o,u={};e.aggregate&&(l=e.aggregate);for(var c=0;c<s.length;c++)(a=Ka.aggregates[s[c].type])&&(u[s[c].field+" - "+s[c].type]=a(l,s[c].field));i.aggregates=u}var p=Array.isArray(e.result)&&e.result.length&&!h(e.result[0].key);if(t&&t.groups&&t.groups.length&&!p){var d=t.groups;for(c=0;c<d.length;c++){h(r)||(r=Ka.group(r,d[c]));var g=Ha.filterQueries(n.queries,"onGroup")[c].e;o=Ka.group(o,d[c],t.aggregates,null,r,g.comparer)}i.result=o}return i},e.prototype.getQueryRequest=function(t){var e={sorts:[],groups:[],filters:[],searches:[],aggregates:[]};return e.sorts=Ha.filterQueries(t.queries,"onSortBy"),e.groups=Ha.filterQueries(t.queries,"onGroup"),e.filters=Ha.filterQueries(t.queries,"onWhere"),e.searches=Ha.filterQueries(t.queries,"onSearch"),e.aggregates=Ha.filterQueries(t.queries,"onAggregates"),e},e.prototype.addParams=function(t){var e=t.reqParams;t.params.length&&(e.params={});for(var i=0,r=t.params;i<r.length;i++){var n=r[i];if(e[n.key])throw new Error("Query() - addParams: Custom Param is conflicting other request arguments");e[n.key]=n.value,n.fn&&(e[n.key]=n.fn.call(t.query,n.key,t.query,t.dm)),e.params[n.key]=e[n.key]}},e}(Xa),il=function(t){function e(e){var i=t.call(this)||this;return i.options=l({},i.options,{requestType:"get",accept:"application/json;odata=light;q=1,application/json;odata=verbose;q=0.5",multipartAccept:"multipart/mixed",sortBy:"$orderby",select:"$select",skip:"$skip",take:"$top",count:"$inlinecount",where:"$filter",expand:"$expand",batch:"$batch",changeSet:"--changeset_",batchPre:"batch_",contentId:"Content-Id: ",batchContent:"Content-Type: multipart/mixed; boundary=",changeSetContent:"Content-Type: application/http\nContent-Transfer-Encoding: binary ",batchChangeSetContentType:"Content-Type: application/json; charset=utf-8 ",updateType:"PUT"}),l(i.options,e||{}),i}return Ja(e,t),e.prototype.getModuleName=function(){return"ODataAdaptor"},e.prototype.onPredicate=function(t,i,r){var n,o,s="",a=t.value,l=typeof a,u=t.field?e.getField(t.field):null;if(a instanceof Date&&(a="datetime'"+Ka.parse.replacer(a)+"'"),"string"===l&&(a=a.replace(/'/g,"''"),t.ignoreCase&&(a=a.toLowerCase()),"like"!==t.operator&&(a=encodeURIComponent(a)),"wildcard"!==t.operator&&"like"!==t.operator&&(a="'"+a+"'"),r&&(u="cast("+u+", 'Edm.String')"),Ka.parse.isGuid(a)&&(o="guid"),t.ignoreCase&&(o||(u="tolower("+u+")"),a=a.toLowerCase())),"isempty"===t.operator||"isnull"===t.operator||"isnotempty"===t.operator||"isnotnull"===t.operator?(n=-1!==t.operator.indexOf("isnot")?Ka.odBiOperator.notequal:Ka.odBiOperator.equal,a="isnull"===t.operator||"isnotnull"===t.operator?null:"''"):n=Ka.odBiOperator[t.operator],n)return s+=u,s+=n,o&&(s+=o),s+a;if("like"===(n=h(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?Ka.odUniOperator[t.operator]:Ka.odv4UniOperator[t.operator]))-1!==(a=a).indexOf("%")&&("%"===a.charAt(0)&&a.lastIndexOf("%")<2?(a=a.substring(1,a.length),n=h(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?Ka.odUniOperator.startswith:Ka.odv4UniOperator.startswith):"%"===a.charAt(a.length-1)&&a.indexOf("%")>a.length-3?(a=a.substring(0,a.length-1),n=h(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?Ka.odUniOperator.endswith:Ka.odv4UniOperator.endswith):a.lastIndexOf("%")!==a.indexOf("%")&&a.lastIndexOf("%")>a.indexOf("%")+1?(a=a.substring(a.indexOf("%")+1,a.lastIndexOf("%")),n=h(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?Ka.odUniOperator.contains:Ka.odv4UniOperator.contains):n=h(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?Ka.odUniOperator.contains:Ka.odv4UniOperator.contains),a="'"+(a=encodeURIComponent(a))+"'";else if("wildcard"===n)if(-1!==(a=a).indexOf("*")){var c=a.split("*"),p=void 0,d=0;if(0!==a.indexOf("*")&&-1===c[0].indexOf("%3f")&&-1===c[0].indexOf("?")&&(p="'"+(p=c[0])+"'",s+=(n=h(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?Ka.odUniOperator.startswith:Ka.odv4UniOperator.startswith)+"(",s+=u+",",o&&(s+=o),s+=p+")",d++),a.lastIndexOf("*")!==a.length-1&&-1===c[c.length-1].indexOf("%3f")&&-1===c[c.length-1].indexOf("?")&&(p="'"+(p=c[c.length-1])+"'",n=h(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?Ka.odUniOperator.endswith:Ka.odv4UniOperator.endswith,d>0&&(s+=" and "),s+=n+"(",s+=u+",",o&&(s+=o),s+=p+")",d++),c.length>2)for(var g=1;g<c.length-1;g++)if(-1===c[g].indexOf("%3f")&&-1===c[g].indexOf("?")){if(p=c[g],p="'"+p+"'",n=h(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?Ka.odUniOperator.contains:Ka.odv4UniOperator.contains,d>0&&(s+=" and "),"substringof"===n||"not substringof"===n){var f=p;p=u,u=f}s+=n+"(",s+=u+",",o&&(s+=o),s+=p+")",d++}0===d?(n=h(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?Ka.odUniOperator.contains:Ka.odv4UniOperator.contains,-1===a.indexOf("?")&&-1===a.indexOf("%3f")||(a=-1!==a.indexOf("?")?a.split("?").join(""):a.split("%3f").join("")),a="'"+a+"'"):n="wildcard"}else n=h(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?Ka.odUniOperator.contains:Ka.odv4UniOperator.contains,-1===a.indexOf("?")&&-1===a.indexOf("%3f")||(a=-1!==a.indexOf("?")?a.split("?").join(""):a.split("%3f").join("")),a="'"+a+"'";if("substringof"===n||"not substringof"===n){f=a;a=u,u=f}return"wildcard"!==n&&(s+=n+"(",s+=u+",",o&&(s+=o),s+=a+")"),s},e.prototype.addParams=function(e){t.prototype.addParams.call(this,e),delete e.reqParams.params},e.prototype.onComplexPredicate=function(t,e,i){for(var r=[],n=0;n<t.predicates.length;n++)r.push("("+this.onEachWhere(t.predicates[n],e,i)+")");return r.join(" "+t.condition+" ")},e.prototype.onEachWhere=function(t,e,i){return t.isComplex?this.onComplexPredicate(t,e,i):this.onPredicate(t,e,i)},e.prototype.onWhere=function(t){return this.pvt.search&&t.push(this.onEachWhere(this.pvt.search,null,!0)),t.join(" and ")},e.prototype.onEachSearch=function(t){t.fields&&0===t.fields.length&&Ka.throwError("Query() - Search : oData search requires list of field names to search");for(var e=this.pvt.search||[],i=0;i<t.fields.length;i++)e.push(new qa(t.fields[i],t.operator,t.key,t.ignoreCase));this.pvt.search=e},e.prototype.onSearch=function(t){return this.pvt.search=qa.or(this.pvt.search),""},e.prototype.onEachSort=function(t){var i=[];if(t.name instanceof Array)for(var r=0;r<t.name.length;r++)i.push(e.getField(t.name[r])+("descending"===t.direction?" desc":""));else i.push(e.getField(t.name)+("descending"===t.direction?" desc":""));return i.join(",")},e.prototype.onSortBy=function(t){return t.reverse().join(",")},e.prototype.onGroup=function(t){return this.pvt.groups=t,[]},e.prototype.onSelect=function(t){for(var i=0;i<t.length;i++)t[i]=e.getField(t[i]);return t.join(",")},e.prototype.onAggregates=function(t){return this.pvt.aggregates=t,""},e.prototype.onCount=function(t){return!0===t?"allpages":""},e.prototype.beforeSend=function(t,e,i){Ka.endsWith(i.url,this.options.batch)&&"post"===i.type.toLowerCase()?(e.headers.set("Accept",this.options.multipartAccept),e.headers.set("DataServiceVersion","2.0")):e.headers.set("Accept",this.options.accept),e.headers.set("DataServiceVersion","2.0"),e.headers.set("MaxDataServiceVersion","2.0")},e.prototype.processResponse=function(t,e,i,r,n,o){if(n&&"GET"===n.type&&!this.rootUrl&&t["odata.metadata"]){var s=t["odata.metadata"].split("/$metadata#");this.rootUrl=s[0],this.resourceTableName=s[1]}if(!h(t.d)){var a=i&&i.isCountRequired?t.d.results:t.d;if(!h(a))for(var l=0;l<a.length;l++)h(a[l].__metadata)||delete a[l].__metadata}var u=n&&n.pvtData,c=this.processBatchResponse(t,i,r,n,o);if(c)return c;var p=r&&n.fetchRequest.headers.get("DataServiceVersion"),d=null,g=p&&parseInt(p,10)||2;if(i&&i.isCountRequired){(t.__count||t["odata.count"])&&(d=t.__count||t["odata.count"]),t.d&&(t=t.d),(t.__count||t["odata.count"])&&(d=t.__count||t["odata.count"])}3===g&&t.value&&(t=t.value),t.d&&(t=t.d),g<3&&t.results&&(t=t.results);var f={};return f.count=d,f.result=t,this.getAggregateResult(u,t,f,null,i),Ka.isNull(d)?f.result:{result:f.result,count:f.count,aggregates:f.aggregates}},e.prototype.convertToQueryString=function(t,e,i){var r=[],n=t.table||"";delete t.table,i.dataSource.requiresFormat&&(t.$format="json");for(var o=0,s=Object.keys(t);o<s.length;o++){var a=s[o];r.push(a+"="+t[a])}return r=r.join("&"),i.dataSource.url&&-1!==i.dataSource.url.indexOf("?")&&!n?r:r.length?n+"?"+r:n||""},e.prototype.localTimeReplacer=function(t,e){for(var i=0,r=h(e)?[]:Object.keys(e);i<r.length;i++){var n=r[i];e[n]instanceof Date&&(e[n]=Ka.dateParse.toLocalTime(e[n]))}return e},e.prototype.insert=function(t,e,i){return{url:(t.dataSource.insertUrl||t.dataSource.url).replace(/\/*$/,i?"/"+i:""),data:JSON.stringify(e,this.options.localTime?this.localTimeReplacer:null)}},e.prototype.remove=function(t,e,i,r){var n;return n="string"!=typeof i||Ka.parse.isGuid(i)?"("+i+")":"('"+i+"')",{type:"DELETE",url:(t.dataSource.removeUrl||t.dataSource.url).replace(/\/*$/,r?"/"+r:"")+n}},e.prototype.update=function(t,e,i,r,n,o){"PATCH"!==this.options.updateType||h(o)||(i=this.compareAndRemove(i,o,e));var s;return s="string"!=typeof i[e]||Ka.parse.isGuid(i[e])?"("+i[e]+")":"('"+i[e]+"')",{type:this.options.updateType,url:(t.dataSource.updateUrl||t.dataSource.url).replace(/\/*$/,r?"/"+r:"")+s,data:JSON.stringify(i,this.options.localTime?this.localTimeReplacer:null),accept:this.options.accept}},e.prototype.batchRequest=function(t,e,i,r,n){var o=i.guid=Ka.getGuid(this.options.batchPre),s=this.rootUrl?this.rootUrl+"/"+this.options.batch:t.dataSource.url.replace(/\/*$/,"/"+this.options.batch);i.url=this.resourceTableName?this.resourceTableName:i.url;var a={url:i.url,key:i.key,cid:1,cSet:Ka.getGuid(this.options.changeSet)},l="--"+o+"\n";return l+="Content-Type: multipart/mixed; boundary="+a.cSet.replace("--","")+"\n",this.pvt.changeSet=0,l+=this.generateInsertRequest(e.addedRecords,a,t),l+=this.generateUpdateRequest(e.changedRecords,a,t,n?n.changedRecords:[]),l+=this.generateDeleteRequest(e.deletedRecords,a,t),l+=a.cSet+"--\n",l+="--"+o+"--",{type:"POST",url:s,dataType:"json",contentType:"multipart/mixed; charset=UTF-8;boundary="+o,data:l}},e.prototype.generateDeleteRequest=function(t,e,i){if(!t)return"";var r={method:"DELETE ",url:function(t,e,i){var r=Ka.getObject(i,t[e]);if("number"==typeof r||Ka.parse.isGuid(r))return"("+r+")";if(r instanceof Date){return"("+t[e][i].toJSON()+")"}return"('"+r+"')"},data:function(t,e){return""}};return this.generateBodyContent(t,e,r,i)+"\n"},e.prototype.generateInsertRequest=function(t,e,i){if(!t)return"";var r={method:"POST ",url:function(t,e,i){return""},data:function(t,e){return JSON.stringify(t[e])+"\n\n"}};return this.generateBodyContent(t,e,r,i)},e.prototype.generateUpdateRequest=function(t,e,i,r){var n=this;if(!t)return"";t.forEach(function(t){return t=n.compareAndRemove(t,r.filter(function(i){return Ka.getObject(e.key,i)===Ka.getObject(e.key,t)})[0],e.key)});var o={method:this.options.updateType+" ",url:function(t,e,i){if("number"==typeof t[e][i]||Ka.parse.isGuid(t[e][i]))return"("+t[e][i]+")";if(t[e][i]instanceof Date){return"("+t[e][i].toJSON()+")"}return"('"+t[e][i]+"')"},data:function(t,e){return JSON.stringify(t[e])+"\n\n"}};return this.generateBodyContent(t,e,o,i)},e.getField=function(t){return t.replace(/\./g,"/")},e.prototype.generateBodyContent=function(t,e,i,r){for(var n="",o=0;o<t.length;o++)n+="\n"+e.cSet+"\n",n+=this.options.changeSetContent+"\n\n",n+=i.method,"POST "===i.method?n+=(r.dataSource.insertUrl||r.dataSource.crudUrl||e.url)+i.url(t,o,e.key)+" HTTP/1.1\n":"PUT "===i.method||"PATCH "===i.method?n+=(r.dataSource.updateUrl||r.dataSource.crudUrl||e.url)+i.url(t,o,e.key)+" HTTP/1.1\n":"DELETE "===i.method&&(n+=(r.dataSource.removeUrl||r.dataSource.crudUrl||e.url)+i.url(t,o,e.key)+" HTTP/1.1\n"),n+="Accept: "+this.options.accept+"\n",n+="Content-Id: "+this.pvt.changeSet+++"\n",n+=this.options.batchChangeSetContentType+"\n",h(t[o]["@odata.etag"])?n+="\n":(n+="If-Match: "+t[o]["@odata.etag"]+"\n\n",delete t[o]["@odata.etag"]),n+=i.data(t,o);return n},e.prototype.processBatchResponse=function(t,e,i,r,n){if(i&&i.headers.get("Content-Type")&&-1!==i.headers.get("Content-Type").indexOf("xml"))return e.isCountRequired?{result:[],count:0}:[];if(r&&this.options.batch&&Ka.endsWith(r.url,this.options.batch)&&"post"===r.type.toLowerCase()){var o=i.headers.get("Content-Type"),s=void 0,a=void 0,h=t+"";if(o=o.substring(o.indexOf("=batchresponse")+1),(h=h.split(o)).length<2)return{};h=h[1];var u=/(?:\bContent-Type.+boundary=)(changesetresponse.+)/i.exec(h);u&&h.replace(u[0],"");for(var c=u?u[1]:"",p=(h=h.split(c)).length;p>-1;p--)/\bContent-ID:/i.test(h[p])&&/\bHTTP.+201/.test(h[p])&&(s=parseInt(/\bContent-ID: (\d+)/i.exec(h[p])[1],10),n.addedRecords[s]&&(a=Ka.parse.parseJson(/^\{.+\}/m.exec(h[p])[0]),l({},n.addedRecords[s],this.processResponse(a))));return n}return null},e.prototype.compareAndRemove=function(t,e,i){var r=this;return h(e)?t:(Object.keys(t).forEach(function(n){if(n!==i&&"@odata.etag"!==n)if(Ka.isPlainObject(t[n])){r.compareAndRemove(t[n],e[n]);0===Object.keys(t[n]).filter(function(t){return"@odata.etag"!==t}).length&&delete t[n]}else t[n]===e[n]?delete t[n]:t[n]&&e[n]&&t[n].valueOf()===e[n].valueOf()&&delete t[n]}),t)},e}(el),rl=(function(t){function e(e){var i=t.call(this,e)||this;return i.options=l({},i.options,{requestType:"get",accept:"application/json, text/javascript, */*; q=0.01",multipartAccept:"multipart/mixed",sortBy:"$orderby",select:"$select",skip:"$skip",take:"$top",count:"$count",search:"$search",where:"$filter",expand:"$expand",batch:"$batch",changeSet:"--changeset_",batchPre:"batch_",contentId:"Content-Id: ",batchContent:"Content-Type: multipart/mixed; boundary=",changeSetContent:"Content-Type: application/http\nContent-Transfer-Encoding: binary ",batchChangeSetContentType:"Content-Type: application/json; charset=utf-8 ",updateType:"PATCH",localTime:!1,apply:"$apply"}),l(i.options,e||{}),i}Ja(e,t),e.prototype.getModuleName=function(){return"ODataV4Adaptor"},e.prototype.onCount=function(t){return!0===t?"true":""},e.prototype.onPredicate=function(e,i,r){var n="",o=e.value,s=o instanceof Date;if(i instanceof Ha)for(var a=this.getQueryRequest(i),l=0;l<a.filters.length;l++)a.filters[l].e.key===e.value&&(r=!0);return n=t.prototype.onPredicate.call(this,e,i,r),s&&(n=n.replace(/datetime'(.*)'$/,"$1")),Ka.parse.isGuid(o)&&(n=n.replace("guid","").replace(/'/g,"")),n},e.prototype.onEachSearch=function(t){var e=this.pvt.searches||[];e.push(t.key),this.pvt.searches=e},e.prototype.onSearch=function(t){return this.pvt.searches.join(" OR ")},e.prototype.onExpand=function(t){var e=this,i={},r={},n=t.expands.slice(),o=[];return t.selects.filter(function(t){return t.indexOf(".")>-1}).forEach(function(t){var r=t.split(".");if(r[0]in i||(i[r[0]]=[]),2===r.length)i[r[0]].length&&-1!==Object.keys(i).indexOf(r[0])?-1!==i[r[0]][0].indexOf("$expand")&&-1===i[r[0]][0].indexOf(";$select=")?i[r[0]][0]=i[r[0]][0]+";$select="+r[1]:i[r[0]][0]=i[r[0]][0]+","+r[1]:i[r[0]].push("$select="+r[1]);else{for(var n="$select="+r[r.length-1],o="",s="",a=1;a<r.length-1;a++)o=o+"$expand="+r[a]+"(",s+=")";var l=o+n+s;if(i[r[0]].length&&-1!==Object.keys(i).indexOf(r[0])&&e.expandQueryIndex(i[r[0]],!0)){var h=e.expandQueryIndex(i[r[0]]);i[r[0]][h]=i[r[0]][h]+l.replace("$expand=",",")}else i[r[0]].push(l)}}),Object.keys(i).forEach(function(t){-1===n.indexOf(t)&&n.push(t)}),n.forEach(function(t){r[t]=t in i?t+"("+i[t].join(";")+")":t}),Object.keys(r).forEach(function(t){return o.push(r[t])}),o.join(",")},e.prototype.expandQueryIndex=function(t,e){for(var i=0;i<t.length;i++)if(-1!==t[i].indexOf("$expand"))return!!e||i;return!e&&0},e.prototype.onDistinct=function(t){return"groupby(("+t.map(function(t){return il.getField(t)}).join(",")+"))"},e.prototype.onSelect=function(e){return t.prototype.onSelect.call(this,e.filter(function(t){return-1===t.indexOf(".")}))},e.prototype.beforeSend=function(t,e,i){"POST"!==i.type&&"PUT"!==i.type&&"PATCH"!==i.type||e.headers.set("Prefer","return=representation"),e.headers.set("Accept",this.options.accept)},e.prototype.processResponse=function(e,i,r,n,o,s){var a="@odata.context";if(o&&"GET"===o.type&&!this.rootUrl&&(e[a]||e["@context"])){var l=e[a]?e[a].split("/$metadata#"):e["@context"].split("/$metadata#");this.rootUrl=l[0],this.resourceTableName=l[1]}var u=o&&o.pvtData,c=t.prototype.processBatchResponse.call(this,e,r,n,o,s);if(c)return c;var p=null;r&&r.isCountRequired&&("@odata.count"in e?p=e["@odata.count"]:"@count"in e&&(p=e["@count"])),e=h(e.value)?e:e.value;var d={};return d.count=p,d.result=e,this.getAggregateResult(u,e,d,null,r),Ka.isNull(p)?d.result:{result:d.result,count:p,aggregates:d.aggregates}}}(il),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Ja(e,t),e.prototype.getModuleName=function(){return"WebApiAdaptor"},e.prototype.insert=function(t,e,i){return{type:"POST",url:t.dataSource.url,data:JSON.stringify(e)}},e.prototype.remove=function(t,e,i,r){return{type:"DELETE",url:t.dataSource.url+"/"+i,data:JSON.stringify(i)}},e.prototype.update=function(t,e,i,r){return{type:"PUT",url:t.dataSource.url,data:JSON.stringify(i)}},e.prototype.batchRequest=function(t,e,i){var r=this,n=i.guid=Ka.getGuid(this.options.batchPre),o=t.dataSource.url.replace(/\/*$/,"/"+this.options.batch);i.url=this.resourceTableName?this.resourceTableName:i.url;for(var s=[],a=function(r,o){e.addedRecords.forEach(function(o,a){var l=function(t,e,i){return""};s.push("--"+n),s.push("Content-Type: application/http; msgtype=request",""),s.push("POST /api/"+(t.dataSource.insertUrl||t.dataSource.crudUrl||i.url)+l(e.addedRecords,r,i.key)+" HTTP/1.1"),s.push("Content-Type: application/json; charset=utf-8"),s.push("Host: "+location.host),s.push("",o?JSON.stringify(o):"")})},l=0,h=e.addedRecords.length;l<h;l++)a(l);var u=function(o,a){e.changedRecords.forEach(function(a,l){r.options.updateType;var h=function(t,e,i){return""};s.push("--"+n),s.push("Content-Type: application/http; msgtype=request",""),s.push("PUT /api/"+(t.dataSource.updateUrl||t.dataSource.crudUrl||i.url)+h(e.changedRecords,o,i.key)+" HTTP/1.1"),s.push("Content-Type: application/json; charset=utf-8"),s.push("Host: "+location.host),s.push("",a?JSON.stringify(a):"")})};for(l=0,h=e.changedRecords.length;l<h;l++)u(l);var c=function(r,o){e.deletedRecords.forEach(function(o,a){var l=function(t,e,i){var r=Ka.getObject(i,t[e]);if("number"==typeof r||Ka.parse.isGuid(r))return"/"+r;if(r instanceof Date){return"/"+t[e][i].toJSON()}return"/'"+r+"'"};s.push("--"+n),s.push("Content-Type: application/http; msgtype=request",""),s.push("DELETE /api/"+(t.dataSource.removeUrl||t.dataSource.crudUrl||i.url)+l(e.deletedRecords,r,i.key)+" HTTP/1.1"),s.push("Content-Type: application/json; charset=utf-8"),s.push("Host: "+location.host),s.push("",o?JSON.stringify(o):"")})};for(l=0,h=e.deletedRecords.length;l<h;l++)c(l);return s.push("--"+n+"--",""),{type:"POST",url:o,contentType:"multipart/mixed; boundary="+n,data:s.join("\r\n")}},e.prototype.beforeSend=function(t,e,i){e.headers.set("Accept","application/json, text/javascript, */*; q=0.01")},e.prototype.processResponse=function(t,e,i,r,n,o){var s=n&&n.pvtData,a=null,l={};if(n&&"post"!==n.type.toLowerCase()){var h=r&&n.fetchRequest.headers.get("DataServiceVersion"),u=h&&parseInt(h,10)||2;i&&i.isCountRequired&&(Ka.isNull(t.Count)||(a=t.Count)),u<3&&t.Items&&(t=t.Items),l.count=a,l.result=t,this.getAggregateResult(s,t,l,null,i)}return l.result=l.result||t,Ka.isNull(a)?l.result:{result:l.result,count:l.count,aggregates:l.aggregates}}}(il),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Ja(e,t),e.prototype.processQuery=function(t,e,i){var r=(new el).processQuery(t,e,i),n=Ka.parse.parseJson(r.data),o={};if(n.param)for(var s=0;s<n.param.length;s++){var a=n.param[s],l=Object.keys(a)[0];o[l]=a[l]}o.value=n;return{data:JSON.stringify(o),url:r.url,pvtData:r.pvtData,type:"POST",contentType:"application/json; charset=utf-8"}}}(el),function(t){function e(){var e=t.call(this)||this;return n("beforeSend",el.prototype.beforeSend,e),e}return Ja(e,t),e.prototype.insert=function(t,e,i,r,n){return this.pvt.position=n,this.updateType="add",{url:t.dataSource.insertUrl||t.dataSource.crudUrl||t.dataSource.url,data:JSON.stringify(l({},{value:e,table:i,action:"insert"},Ka.getAddParams(this,t,r)))}},e.prototype.remove=function(e,i,r,n,o){return t.prototype.remove.call(this,e,i,r),{type:"POST",url:e.dataSource.removeUrl||e.dataSource.crudUrl||e.dataSource.url,data:JSON.stringify(l({},{key:r,keyColumn:i,table:n,action:"remove"},Ka.getAddParams(this,e,o)))}},e.prototype.update=function(t,e,i,r,n){return this.updateType="update",this.updateKey=e,{type:"POST",url:t.dataSource.updateUrl||t.dataSource.crudUrl||t.dataSource.url,data:JSON.stringify(l({},{value:i,action:"update",keyColumn:e,key:i[e],table:r},Ka.getAddParams(this,t,n)))}},e.prototype.processResponse=function(e,i,r,n,o,s,a){var l;if(e="batch"===(o?JSON.parse(o.data):e).action?Ka.parse.parseJson(e):e,"add"===this.updateType&&t.prototype.insert.call(this,i,e,null,null,this.pvt.position),"update"===this.updateType&&t.prototype.update.call(this,i,this.updateKey,e),this.updateType=void 0,e.added)for(l=0;l<e.added.length;l++)t.prototype.insert.call(this,i,e.added[l]);if(e.changed)for(l=0;l<e.changed.length;l++)t.prototype.update.call(this,i,a.key,e.changed[l]);if(e.deleted)for(l=0;l<e.deleted.length;l++)t.prototype.remove.call(this,i,a.key,e.deleted[l]);return e},e.prototype.batchRequest=function(t,e,i,r,n){return{type:"POST",url:t.dataSource.batchUrl||t.dataSource.crudUrl||t.dataSource.url,contentType:"application/json; charset=utf-8",dataType:"json",data:JSON.stringify(l({},{changed:e.changedRecords,added:e.addedRecords,deleted:e.deletedRecords,action:"batch",table:i.url,key:i.key},Ka.getAddParams(this,t,r)))}},e.prototype.addParams=function(t){(new el).addParams(t)},e}(tl)),nl=function(t){function e(e){var i=t.call(this)||this;return i.options=l({},i.options,{getData:new Function,addRecord:new Function,updateRecord:new Function,deleteRecord:new Function,batchUpdate:new Function}),l(i.options,e||{}),i}return Ja(e,t),e.prototype.getModuleName=function(){return"CustomDataAdaptor"},e}(el),ol=(function(t){function e(e){var i=t.call(this)||this;return i.opt=e,i.schema=i.opt.response,i.query=i.opt.query,i.getVariables=i.opt.getVariables?i.opt.getVariables:function(){},i.getQuery=function(){return i.query},i}Ja(e,t),e.prototype.getModuleName=function(){return"GraphQLAdaptor"},e.prototype.processQuery=function(e,i){var r=t.prototype.processQuery.apply(this,arguments),n=JSON.parse(r.data),o={};["skip","take","sorted","table","select","where","search","requiresCounts","aggregates","params"].filter(function(t){o[t]="searchwhereparams".indexOf(t)>-1?JSON.stringify(n[t]):n[t]});var s=this.getVariables()||{};s.datamanager=o;var a=JSON.stringify({query:this.getQuery(),variables:s});return r.data=a,r},e.prototype.processResponse=function(t,e,i,n,o){var s,a,l=t,u=r(this.schema.result,l.data);this.schema.count&&(s=r(this.schema.count,l.data)),this.schema.aggregates&&(a=h(a=r(this.schema.aggregates,l.data))?a:Ka.parse.parseJson(a));var c=o.pvtData||{},p={result:u,aggregates:a},d=p;return c&&c.groups&&c.groups.length&&this.getAggregateResult(c,d,p,null,i),h(s)?p.result:{result:p.result,count:s,aggregates:a}},e.prototype.insert=function(){var e=t.prototype.insert.apply(this,arguments);return this.generateCrudData(e,"insert")},e.prototype.update=function(){var e=t.prototype.update.apply(this,arguments);return this.generateCrudData(e,"update")},e.prototype.remove=function(){var e=t.prototype.remove.apply(this,arguments);return this.generateCrudData(e,"remove")},e.prototype.batchRequest=function(e,i,r,n,o){var s=t.prototype.batchRequest.apply(this,arguments),a=JSON.parse(s.data);return a.key=r.key,s.data=JSON.stringify(a),this.generateCrudData(s,"batch")},e.prototype.generateCrudData=function(t,e){var i=JSON.parse(t.data);return t.data=JSON.stringify({query:this.opt.getMutation(e),variables:i}),t}}(el),function(t){function e(e,i,r){var n=t.call(this)||this;n.isCrudAction=!1,n.isInsertAction=!1,h(e)||(n.cacheAdaptor=e),n.pageSize=r,n.guidId=Ka.getGuid("cacheAdaptor");window.localStorage.setItem(n.guidId,JSON.stringify({keys:[],results:[]}));var o=n.guidId;return h(i)||setInterval(function(){for(var t=Ka.parse.parseJson(window.localStorage.getItem(o)),e=[],r=0;r<t.results.length;r++){var n=+new Date,s=+new Date(t.results[r].timeStamp);t.results[r].timeStamp=n-s,n-s>i&&e.push(r)}for(r=0;r<e.length;r++)t.results.splice(e[r],1),t.keys.splice(e[r],1);window.localStorage.removeItem(o),window.localStorage.setItem(o,JSON.stringify(t))},i),n}return Ja(e,t),e.prototype.generateKey=function(t,e){var i=this.getQueryRequest(e),r=Ha.filterQueryLists(e.queries,["onSelect","onPage","onSkip","onTake","onRange"]),n=t;"onPage"in r&&(n+=r.onPage.pageIndex),i.sorts.forEach(function(t){n+=t.e.direction+t.e.fieldName}),i.groups.forEach(function(t){n+=t.e.fieldName}),i.searches.forEach(function(t){n+=t.e.searchKey});for(var o=0;o<i.filters.length;o++){var s=i.filters[o];if(s.e.isComplex){var a=e.clone();a.queries=[];for(var l=0;l<s.e.predicates.length;l++)a.queries.push({fn:"onWhere",e:s.e.predicates[l],filter:e.queries.filter});n+=s.e.condition+this.generateKey(t,a)}else n+=s.e.field+s.e.operator+s.e.value}return n},e.prototype.processQuery=function(t,e,i){var r=this.generateKey(t.dataSource.url,e),n=Ka.parse.parseJson(window.localStorage.getItem(this.guidId)),o=n?n.results[n.keys.indexOf(r)]:null;return null==o||this.isCrudAction||this.isInsertAction?(this.isCrudAction=null,this.isInsertAction=null,this.cacheAdaptor.processQuery.apply(this.cacheAdaptor,[].slice.call(arguments,0))):o},e.prototype.processResponse=function(t,e,i,r,n,o){if(this.isInsertAction||n&&this.cacheAdaptor.options.batch&&Ka.endsWith(n.url,this.cacheAdaptor.options.batch)&&"post"===n.type.toLowerCase())return this.cacheAdaptor.processResponse(t,e,i,r,n,o);t=this.cacheAdaptor.processResponse.apply(this.cacheAdaptor,[].slice.call(arguments,0));var s=i?this.generateKey(e.dataSource.url,i):e.dataSource.url,a={},l=(a=Ka.parse.parseJson(window.localStorage.getItem(this.guidId))).keys.indexOf(s);for(-1!==l&&(a.results.splice(l,1),a.keys.splice(l,1)),a.results[a.keys.push(s)-1]={keys:s,result:t.result,timeStamp:new Date,count:t.count};a.results.length>this.pageSize;)a.results.splice(0,1),a.keys.splice(0,1);return window.localStorage.setItem(this.guidId,JSON.stringify(a)),t},e.prototype.beforeSend=function(t,e,i){!h(this.cacheAdaptor.options.batch)&&Ka.endsWith(i.url,this.cacheAdaptor.options.batch)&&"post"===i.type.toLowerCase()&&e.headers.set("Accept",this.cacheAdaptor.options.multipartAccept),t.dataSource.crossDomain||e.headers.set("Accept",this.cacheAdaptor.options.accept)},e.prototype.update=function(t,e,i,r){return this.isCrudAction=!0,this.cacheAdaptor.update(t,e,i,r)},e.prototype.insert=function(t,e,i){return this.isInsertAction=!0,this.cacheAdaptor.insert(t,e,i)},e.prototype.remove=function(t,e,i,r){return this.isCrudAction=!0,this.cacheAdaptor.remove(t,e,i,r)},e.prototype.batchRequest=function(t,e,i){return this.cacheAdaptor.batchRequest(t,e,i)},e}(el)),sl=function(){function t(t,e,i){var r=this;this.dateParse=!0,this.timeZoneHandling=!0,this.persistQuery={},this.isInitialLoad=!1,this.requests=[],this.isInitialLoad=!0,t||this.dataSource||(t=[]),i=i||t.adaptor,t&&!1===t.timeZoneHandling&&(this.timeZoneHandling=t.timeZoneHandling);var n;return t instanceof Array?n={json:t,offline:!0}:"object"==typeof t?(t.json||(t.json=[]),t.enablePersistence||(t.enablePersistence=!1),t.id||(t.id=""),t.ignoreOnPersist||(t.ignoreOnPersist=[]),n={url:t.url,insertUrl:t.insertUrl,removeUrl:t.removeUrl,updateUrl:t.updateUrl,crudUrl:t.crudUrl,batchUrl:t.batchUrl,json:t.json,headers:t.headers,accept:t.accept,data:t.data,timeTillExpiration:t.timeTillExpiration,cachingPageSize:t.cachingPageSize,enableCaching:t.enableCaching,requestType:t.requestType,key:t.key,crossDomain:t.crossDomain,jsonp:t.jsonp,dataType:t.dataType,offline:void 0!==t.offline?t.offline:!(t.adaptor instanceof rl||t.adaptor instanceof nl)&&!t.url,requiresFormat:t.requiresFormat,enablePersistence:t.enablePersistence,id:t.id,ignoreOnPersist:t.ignoreOnPersist}):Ka.throwError("DataManager: Invalid arguments"),void 0!==n.requiresFormat||Ka.isCors()||(n.requiresFormat=!!h(n.crossDomain)||n.crossDomain),void 0===n.dataType&&(n.dataType="json"),this.dataSource=n,this.defaultQuery=e,this.dataSource.enablePersistence&&this.dataSource.id&&window.addEventListener("unload",this.setPersistData.bind(this)),n.url&&n.offline&&!n.json.length?(this.isDataAvailable=!1,this.adaptor=i||new il,this.dataSource.offline=!1,this.ready=this.executeQuery(e||new Ha),this.ready.then(function(t){r.dataSource.offline=!0,r.isDataAvailable=!0,n.json=t.result,r.adaptor=new tl})):this.adaptor=n.offline?new tl:new il,!n.jsonp&&this.adaptor instanceof il&&(n.jsonp="callback"),this.adaptor=i||this.adaptor,n.enableCaching&&(this.adaptor=new ol(this.adaptor,n.timeTillExpiration,n.cachingPageSize)),this}return t.prototype.getPersistedData=function(t){var e=localStorage.getItem(t||this.dataSource.id);return JSON.parse(e)},t.prototype.setPersistData=function(t,e,i){localStorage.setItem(e||this.dataSource.id,JSON.stringify(i||this.persistQuery))},t.prototype.setPersistQuery=function(t){var e=this,i=this.getPersistedData();if(this.isInitialLoad&&i&&Object.keys(i).length){this.persistQuery=i,this.persistQuery.queries=this.persistQuery.queries.filter(function(t){if(e.dataSource.ignoreOnPersist&&e.dataSource.ignoreOnPersist.length&&t.fn&&e.dataSource.ignoreOnPersist.some(function(e){return t.fn===e}))return!1;if("onWhere"===t.fn){var i=t.e;if(i&&i.isComplex&&i.predicates instanceof Array){var r=i.predicates.map(function(t){if(t.predicates&&t.predicates instanceof Array){var e=t.predicates.map(function(t){var e=t.field,i=t.operator,r=t.value,n=t.ignoreCase,o=t.ignoreAccent,s=t.matchCase;return new qa(e,i,r,n,o,s)});return"and"===t.condition?qa.and(e):qa.or(e)}var i=t.field,r=t.operator,n=t.value,o=t.ignoreCase,s=t.ignoreAccent,a=t.matchCase;return new qa(i,r,n,o,s,a)});t.e=new qa(r[0],i.condition,r.slice(1))}}return!0});var r=l(new Ha,this.persistQuery);return this.isInitialLoad=!1,r}return this.persistQuery=t,this.isInitialLoad=!1,t},t.prototype.setDefaultQuery=function(t){return this.defaultQuery=t,this},t.prototype.executeLocal=function(e){this.defaultQuery||e instanceof Ha||Ka.throwError("DataManager - executeLocal() : A query is required to execute"),this.dataSource.json||Ka.throwError("DataManager - executeLocal() : Json data is required to execute"),this.dataSource.enablePersistence&&this.dataSource.id&&(e=this.setPersistQuery(e)),e=e||this.defaultQuery;var i=this.adaptor.processQuery(this,e);if(e.subQuery){var r=e.subQuery.fromTable,n=e.subQuery.lookups,o=e.isCountRequired?i.result:i;n&&n instanceof Array&&Ka.buildHierarchy(e.subQuery.fKey,r,o,n,e.subQuery.key);for(var s=0;s<o.length;s++)o[s][r]instanceof Array&&(o[s]=l({},{},o[s]),o[s][r]=this.adaptor.processResponse(e.subQuery.using(new t(o[s][r].slice(0))).executeLocal(),this,e))}return this.adaptor.processResponse(i,this,e)},t.prototype.executeQuery=function(e,i,r,n){var o=this,s="makeRequest";this.dataSource.enablePersistence&&this.dataSource.id&&(e=this.setPersistQuery(e)),"function"==typeof e&&(n=r,r=i,i=e,e=null),e||(e=this.defaultQuery),e instanceof Ha||Ka.throwError("DataManager - executeQuery() : A query is required to execute");var a=new al,l={query:e};if(!this.dataSource.offline&&void 0!==this.dataSource.url&&""!==this.dataSource.url||!h(this.adaptor[s])||this.isCustomDataAdaptor(this.adaptor)){var u=this.adaptor.processQuery(this,e);h(this.adaptor[s])?!h(u.url)||this.isCustomDataAdaptor(this.adaptor)?(this.requests=[],this.makeRequest(u,a,l,e)):(l=t.getDeferedArgs(e,u,l),a.resolve(l)):this.adaptor[s](u,a,l,e)}else t.nextTick(function(){var i=o.executeLocal(e);l=t.getDeferedArgs(e,i,l),a.resolve(l)});return(i||r)&&a.promise.then(i,r),n&&a.promise.then(n,n),a.promise},t.getDeferedArgs=function(t,e,i){return t.isCountRequired?(i.result=e.result,i.count=e.count,i.aggregates=e.aggregates):i.result=e,i},t.nextTick=function(t){(window.setImmediate||window.setTimeout)(t,0)},t.prototype.extendRequest=function(t,e,i){return l({},{type:"GET",dataType:this.dataSource.dataType,crossDomain:this.dataSource.crossDomain,jsonp:this.dataSource.jsonp,cache:!0,processData:!1,onSuccess:e,onFailure:i},t)},t.prototype.makeRequest=function(t,e,i,r){var n=this,o=!!r.subQuerySelector,s=function(t){i.error=t,e.reject(i)},a=function(t,r,n,o,s,a,l){i.xhr=n,i.count=r?parseInt(r.toString(),10):0,i.result=t,i.request=o,i.aggregates=a,i.actual=s,i.virtualSelectRecords=l,e.resolve(i)},u=function(t,e){var l=new al,h={parent:i};r.subQuery.isChild=!0;var u=n.adaptor.processQuery(n,r.subQuery,t?n.adaptor.processResponse(t):e),c=n.makeRequest(u,l,h,r.subQuery);return o||l.then(function(e){t&&(Ka.buildHierarchy(r.subQuery.fKey,r.subQuery.fromTable,t,e,r.subQuery.key),a(t,e.count,e.xhr))},s),c},c=this.extendRequest(t,function(t,e){if(n.isGraphQLAdaptor(n.adaptor)&&!h(t.errors))return s(t.errors);n.isCustomDataAdaptor(n.adaptor)&&(e=l({},n.fetchReqOption,e)),-1===e.contentType.indexOf("xml")&&n.dateParse&&(t=Ka.parse.parseJson(t));var i=n.adaptor.processResponse(t,n,r,e.fetchRequest,e),c=0,p=null,d=t.virtualSelectRecords;r.isCountRequired&&(c=i.count,p=i.aggregates,i=i.result),r.subQuery?o||u(i,e):a(i,c,e.fetchRequest,e.type,t,p,d)},s);if(this.isCustomDataAdaptor(this.adaptor)){this.fetchReqOption=c;var p=c;this.adaptor.options.getData({data:p.data,onSuccess:p.onSuccess,onFailure:p.onFailure})}else{var d=new go(c);d.beforeSend=function(){n.beforeSend(d.fetchRequest,d)},(c=d.send()).catch(function(t){return!0}),this.requests.push(d)}if(o){var g=r.subQuerySelector.call(this,{query:r.subQuery,parent:r});g&&g.length?Promise.all([c,u(null,g)]).then(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i=t[0],s=n.adaptor.processResponse(i[0],n,r,n.requests[0].fetchRequest,n.requests[0]),l=0;r.isCountRequired&&(l=s.count,s=s.result);var h=n.adaptor.processResponse(i[1],n,r.subQuery,n.requests[1].fetchRequest,n.requests[1]);l=0,r.subQuery.isCountRequired&&(l=h.count,h=h.result),Ka.buildHierarchy(r.subQuery.fKey,r.subQuery.fromTable,s,h,r.subQuery.key),o=!1,a(s,l,n.requests[0].fetchRequest)}):o=!1}return c},t.prototype.beforeSend=function(t,e){this.adaptor.beforeSend(this,t,e);for(var i,r=this.dataSource.headers,n=0;r&&n<r.length;n++){i=[];for(var o=0,s=Object.keys(r[n]);o<s.length;o++){var a=s[o];i.push(a),t.headers.set(a,r[n][a])}}},t.prototype.saveChanges=function(t,e,i,r,n){var o=this;i instanceof Ha&&(r=i,i=null);var s={url:i,key:e||this.dataSource.key},a=this.adaptor.batchRequest(this,t,s,r||new Ha,n);if(this.dataSource.offline)return a;if(h(this.adaptor.dofetchRequest)){if(this.isCustomDataAdaptor(this.adaptor))return this.dofetchRequest(a,this.adaptor.options.batchUpdate);var l=new al,u=new go(a);return u.beforeSend=function(){o.beforeSend(u.fetchRequest,u)},u.onSuccess=function(e,i){o.isGraphQLAdaptor(o.adaptor)&&(h(e.errors)||u.onFailure(JSON.stringify(e.errors))),l.resolve(o.adaptor.processResponse(e,o,null,i.fetchRequest,i,t,s))},u.onFailure=function(t){l.reject([{error:t}])},u.send().catch(function(t){return!0}),l.promise}return this.adaptor.dofetchRequest(a)},t.prototype.insert=function(t,e,i,r){e instanceof Ha&&(i=e,e=null);var n=this.adaptor.insert(this,t,e,i,r);return this.dataSource.offline?n:h(this.adaptor.dofetchRequest)?this.dofetchRequest(n,this.adaptor.options.addRecord):this.adaptor.dofetchRequest(n)},t.prototype.remove=function(t,e,i,r){"object"==typeof e&&(e=Ka.getObject(t,e)),i instanceof Ha&&(r=i,i=null);var n=this.adaptor.remove(this,t,e,i,r);if(this.dataSource.offline)return n;if(h(this.adaptor.dofetchRequest)){var o=this.adaptor.options.deleteRecord;return this.dofetchRequest(n,o)}return this.adaptor.dofetchRequest(n)},t.prototype.update=function(t,e,i,r,n){i instanceof Ha&&(r=i,i=null);var o=this.adaptor.update(this,t,e,i,r,n);if(this.dataSource.offline)return o;if(h(this.adaptor.dofetchRequest)){var s=this.adaptor.options.updateRecord;return this.dofetchRequest(o,s)}return this.adaptor.dofetchRequest(o)},t.prototype.isCustomDataAdaptor=function(t){return this.adaptor.getModuleName&&"CustomDataAdaptor"===this.adaptor.getModuleName()},t.prototype.isGraphQLAdaptor=function(t){return this.adaptor.getModuleName&&"GraphQLAdaptor"===this.adaptor.getModuleName()},t.prototype.successFunc=function(t,e){if(this.isGraphQLAdaptor(this.adaptor)){var i="object"==typeof t?t:JSON.parse(t);h(i.errors)||this.failureFunc(JSON.stringify(i.errors))}this.isCustomDataAdaptor(this.adaptor)&&(e=l({},this.fetchReqOption,e));try{Ka.parse.parseJson(t)}catch(e){t=[]}t=this.adaptor.processResponse(Ka.parse.parseJson(t),this,null,e.fetchRequest,e),this.fetchDeffered.resolve(t)},t.prototype.failureFunc=function(t){this.fetchDeffered.reject([{error:t}])},t.prototype.dofetchRequest=function(t,e){var i=this;if(t=l({},{type:"POST",contentType:"application/json; charset=utf-8",processData:!1},t),this.fetchDeffered=new al,this.isCustomDataAdaptor(this.adaptor))this.fetchReqOption=t,e.call(this,{data:t.data,onSuccess:this.successFunc.bind(this),onFailure:this.failureFunc.bind(this)});else{var r=new go(t);r.beforeSend=function(){i.beforeSend(r.fetchRequest,r)},r.onSuccess=this.successFunc.bind(this),r.onFailure=this.failureFunc.bind(this),r.send().catch(function(t){return!0})}return this.fetchDeffered.promise},t.prototype.clearPersistence=function(){window.removeEventListener("unload",this.setPersistData.bind(this)),this.dataSource.enablePersistence=!1,this.persistQuery={},window.localStorage.setItem(this.dataSource.id,"[]")},t}(),al=function(){return function(){var t=this;this.promise=new Promise(function(e,i){t.resolve=e,t.reject=i}),this.then=this.promise.then.bind(this.promise),this.catch=this.promise.catch.bind(this.promise)}}();(is||(is={})).mapsTitleFont={size:"14px",fontWeight:"Medium",color:"#424242",fontStyle:"Medium",fontFamily:"Roboto, Noto, Sans-serif"};var ll,hl=function(){function t(t){}return t.prototype.print=function(t,e){var i=window.open("","print","height="+window.outerHeight+",width="+window.outerWidth+",tabbar=no");i.moveTo(0,0),i.resizeTo(screen.availWidth,screen.availHeight);var r={cancel:!1,htmlContent:this.getHTMLContent(t,e),name:ca};t.trigger(ca,r,function(){r.cancel||f(r.htmlContent,i)})},t.prototype.getHTMLContent=function(t,e){var i=M("div");if(e)e instanceof Array?e.forEach(function(t){i.appendChild(Nt(t).cloneNode(!0))}):e instanceof Element?i.appendChild(e.cloneNode(!0)):i.appendChild(Nt(e).cloneNode(!0));else{var r=t.element.cloneNode(!0),n=r.getElementsByTagName("svg")[0];if(!h(n)&&(n=n.childNodes[0],!h(n))){var o=n.getAttribute("fill");"Tailwind"!==t.theme&&"Bootstrap5"!==t.theme&&"Fluent"!==t.theme&&"Material3"!==t.theme||"rgba(255,255,255, 0.0)"!==o&&"transparent"!==o?"TailwindDark"!==t.theme&&"Bootstrap5Dark"!==t.theme&&"FluentDark"!==t.theme&&"Material3Dark"!==t.theme||"rgba(255,255,255, 0.0)"!==o&&"transparent"!==o||n.setAttribute("fill","rgba(0, 0, 0, 1)"):n.setAttribute("fill","rgba(255,255,255, 1)")}i.appendChild(r)}return i},t.prototype.getModuleName=function(){return"Print"},t.prototype.destroy=function(){},t}(),ul=function(){function t(t){}return t.prototype.export=function(t,e,i,r){return new Promise(function(n,o){var s=M("canvas",{id:"ej2-canvas",attrs:{height:t.availableSize.height.toString(),width:t.availableSize.width.toString()}}),a=t.svgObject.cloneNode(!0),l=a.childNodes[0];if(!h(l)){var u=l.getAttribute("fill");"Tailwind"!==t.theme&&"Bootstrap5"!==t.theme&&"Fluent"!==t.theme&&"Material3"!==t.theme||"rgba(255,255,255, 0.0)"!==u&&"transparent"!==u?"TailwindDark"!==t.theme&&"Bootstrap5Dark"!==t.theme&&"FluentDark"!==t.theme&&"Material3Dark"!==t.theme||"rgba(255,255,255, 0.0)"!==u&&"transparent"!==u||a.childNodes[0].setAttribute("fill","rgba(0, 0, 0, 1)"):a.childNodes[0].setAttribute("fill","rgba(255,255,255, 1)")}var c=!(Oo.userAgent.toString().indexOf("HeadlessChrome")>-1),p='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">'+a.outerHTML+"</svg>",d=window.URL.createObjectURL(new Blob("SVG"===e?[p]:[(new XMLSerializer).serializeToString(a)],{type:"image/svg+xml"}));if("SVG"===e)r?de(i,e,d,c):n(null);else{var g=new Image,f=s.getContext("2d");g.onload=function(){f.drawImage(g,0,0),window.URL.revokeObjectURL(d),r?de(i,e,s.toDataURL("image/png").replace("image/png","image/octet-stream"),c):"JPEG"===e?n(s.toDataURL("image/jpeg")):"PNG"===e&&n(s.toDataURL("image/png"))},g.src=d}})},t.prototype.getModuleName=function(){return"ImageExport"},t.prototype.destroy=function(){},t}(),cl=function(){function t(t){this.table={},this.nElements=0,this.toStr=t||function(t){return"[object String]"===Object.prototype.toString.call(t)?"$s"+t:"$o"+t.toString()}}return t.prototype.getValue=function(t){var e=this.table["$"+this.toStr(t)];if(void 0!==e)return e.value},t.prototype.setValue=function(t,e){var i="$"+this.toStr(t);this.table[i];this.nElements++,this.table[i]={key:t,value:e}},t.prototype.remove=function(t){var e="$"+this.toStr(t),i=this.table[e];return delete this.table[e],this.nElements--,i.value},t.prototype.keys=function(){for(var t=[],e=Object.keys(this.table),i=0;i<e.length;i++){var r=this.table[e[i]];t.push(r.key)}return t},t.prototype.values=function(){for(var t=[],e=Object.keys(this.table),i=0;i<e.length;i++){var r=this.table[e[i]];t.push(r.value)}return t},t.prototype.containsKey=function(t){return!(void 0===this.getValue(t))},t.prototype.clear=function(){this.table={},this.nElements=0},t.prototype.size=function(){return this.nElements},t}(),pl=function(){function t(t){this.stringStartMark="/",this.internalValue="",this.isSaving6=!1,this.position6=-1,this.internalValue=this.normalizeValue(t)}return Object.defineProperty(t.prototype,"status",{get:function(){return this.status6},set:function(t){this.status6=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSaving",{get:function(){return this.isSaving6},set:function(t){this.isSaving6=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectCollectionIndex",{get:function(){return this.index6},set:function(t){this.index6=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.position6},set:function(t){this.position6=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clonedObject",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.internalValue},set:function(t){var e=t;null!==t&&t.length>0?(e=t,this.internalValue=this.normalizeValue(e)):this.internalValue=e},enumerable:!0,configurable:!0}),t.prototype.save=function(t){t.write(this.toString())},t.prototype.toString=function(){return this.stringStartMark+this.escapeString(this.value)},t.prototype.clone=function(e){var i=new t;return i.value=this.internalValue,i},t.prototype.escapeString=function(e){for(var i="",r=0,n=e.length;r<n;r++){var o=e[r];t.delimiters.indexOf(o);i+=o}return i},t.prototype.normalizeValue=function(t,e){return t},t.delimiters="()<>[]{}/%}",t.replacements=[" ","\t","\n","\r"],t}(),dl=function(){function t(){this.forTest="test",this.forTest=t.obj}return t.obj="obj",t.endObj="endobj",t.r="R",t.whiteSpace=" ",t.slash="/",t.newLine="\r\n",t.stream="stream",t.endStream="endstream",t.xref="xref",t.f="f",t.n="n",t.trailer="trailer",t.startxref="startxref",t.eof="%%EOF",t.header="%PDF-1.5",t.beginText="BT",t.endText="ET",t.beginPath="m",t.appendLineSegment="l",t.stroke="S",t.fill="f",t.fillEvenOdd="f*",t.fillStroke="B",t.fillStrokeEvenOdd="B*",t.appendbeziercurve="c",t.appendRectangle="re",t.saveState="q",t.restoreState="Q",t.paintXObject="Do",t.modifyCtm="cm",t.modifyTM="Tm",t.setLineWidth="w",t.setLineCapStyle="J",t.setLineJoinStyle="j",t.setDashPattern="d",t.setFlatnessTolerance="i",t.closePath="h",t.closeStrokePath="s",t.closeFillStrokePath="b",t.setCharacterSpace="Tc",t.setWordSpace="Tw",t.setHorizontalScaling="Tz",t.setTextLeading="TL",t.setFont="Tf",t.setRenderingMode="Tr",t.setTextRise="Ts",t.setTextScaling="Tz",t.setCoords="Td",t.goToNextLine="T*",t.setText="Tj",t.setTextWithFormatting="TJ",t.setTextOnNewLine="'",t.selectcolorspaceforstroking="CS",t.selectcolorspacefornonstroking="cs",t.setrbgcolorforstroking="RG",t.setrbgcolorfornonstroking="rg",t.setcmykcolorforstroking="K",t.setcmykcolorfornonstroking="k",t.setgraycolorforstroking="G",t.setgraycolorfornonstroking="g",t.clipPath="W",t.clipPathEvenOdd="W*",t.endPath="n",t.setGraphicsState="gs",t.comment="%",t.evenOdd="*",t.setMiterLimit="M",t.setColorAndPattern="scn",t.setColorAndPatternStroking="SCN",t}(),gl=function(){return function(){this.pages="Pages",this.kids="Kids",this.count="Count",this.resources="Resources",this.type="Type",this.size="Size",this.mediaBox="MediaBox",this.parent="Parent",this.root="Root",this.decodeParms="DecodeParms",this.filter="Filter",this.font="Font",this.type1="Type1",this.baseFont="BaseFont",this.encoding="Encoding",this.subtype="Subtype",this.contents="Contents",this.procset="ProcSet",this.colorSpace="ColorSpace",this.extGState="ExtGState",this.pattern="Pattern",this.xObject="XObject",this.length="Length",this.width="Width",this.height="Height",this.bitsPerComponent="BitsPerComponent",this.image="Image",this.dctdecode="DCTDecode",this.columns="Columns",this.blackIs1="BlackIs1",this.k="K",this.s="S",this.predictor="Predictor",this.deviceRgb="DeviceRGB",this.next="Next",this.action="Action",this.link="Link",this.a="A",this.annot="Annot",this.p="P",this.c="C",this.rect="Rect",this.uri="URI",this.annots="Annots",this.ca="ca",this.CA="CA",this.xyz="XYZ",this.fit="Fit",this.dest="Dest",this.BM="BM",this.flatedecode="FlateDecode",this.rotate="Rotate",this.bBox="BBox",this.form="Form",this.w="W",this.cIDFontType2="CIDFontType2",this.cIDToGIDMap="CIDToGIDMap",this.identity="Identity",this.dw="DW",this.fontDescriptor="FontDescriptor",this.cIDSystemInfo="CIDSystemInfo",this.fontName="FontName",this.flags="Flags",this.fontBBox="FontBBox",this.missingWidth="MissingWidth",this.stemV="StemV",this.italicAngle="ItalicAngle",this.capHeight="CapHeight",this.ascent="Ascent",this.descent="Descent",this.leading="Leading",this.avgWidth="AvgWidth",this.fontFile2="FontFile2",this.maxWidth="MaxWidth",this.xHeight="XHeight",this.stemH="StemH",this.registry="Registry",this.ordering="Ordering",this.supplement="Supplement",this.type0="Type0",this.identityH="Identity-H",this.toUnicode="ToUnicode",this.descendantFonts="DescendantFonts",this.background="Background",this.shading="Shading",this.matrix="Matrix",this.antiAlias="AntiAlias",this.function="Function",this.extend="Extend",this.shadingType="ShadingType",this.coords="Coords",this.domain="Domain",this.range="Range",this.functionType="FunctionType",this.bitsPerSample="BitsPerSample",this.patternType="PatternType",this.paintType="PaintType",this.tilingType="TilingType",this.xStep="XStep",this.yStep="YStep",this.viewerPreferences="ViewerPreferences",this.centerWindow="CenterWindow",this.displayTitle="DisplayTitle",this.fitWindow="FitWindow",this.hideMenuBar="HideMenubar",this.hideToolBar="HideToolbar",this.hideWindowUI="HideWindowUI",this.pageMode="PageMode",this.pageLayout="PageLayout",this.duplex="Duplex",this.printScaling="PrintScaling"}}(),fl=function(){function t(t){if(this.position7=-1,this.primitiveItems=new cl,this.prefix="<<",this.suffix=">>",this.resources=[],this.object=null,this.archive=!0,this.isResource=!1,void 0===t)this.primitiveItems=new cl,this.encrypt=!0,this.dictionaryProperties=new gl;else{this.primitiveItems=new cl;for(var e=t.items.keys(),i=t.items.values(),r=0;r<t.items.size();r++)this.primitiveItems.setValue(e[r],i[r]);this.status=t.status,this.freezeChanges(this),this.encrypt=!0,this.dictionaryProperties=new gl}}return Object.defineProperty(t.prototype,"items",{get:function(){return this.primitiveItems},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this.status7},set:function(t){this.status7=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSaving",{get:function(){return this.isSaving7},set:function(t){this.isSaving7=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectCollectionIndex",{get:function(){return this.index7},set:function(t){this.index7=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clonedObject",{get:function(){return this.object},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.position7},set:function(t){this.position7=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"Count",{get:function(){return this.primitiveItems.size()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"Dictionary",{get:function(){return this},enumerable:!0,configurable:!0}),t.prototype.getArchive=function(){return this.archive},t.prototype.setArchive=function(t){this.archive=t},t.prototype.setEncrypt=function(t){this.encrypt=t,this.modify()},t.prototype.getEncrypt=function(){return this.encrypt},t.prototype.freezeChanges=function(t){this.bChanged=!1},t.prototype.clone=function(e){return new t},t.prototype.modify=function(){this.bChanged=!0},t.prototype.remove=function(t){"string"!=typeof t?(this.primitiveItems.remove(t.value),this.modify()):this.remove(new pl(t))},t.prototype.containsKey=function(t){return this.primitiveItems.containsKey(t.toString())},t.prototype.onBeginSave=function(){this.beginSave.sender.beginSave()},t.prototype.onFontDictionaryBeginSave=function(){this.fontDictionaryBeginSave.sender.fontDictionaryBeginSave()},t.prototype.onDescendantFontBeginSave=function(){this.descendantFontBeginSave.sender.descendantFontBeginSave()},t.prototype.onTemplateBeginSave=function(){this.pageBeginDrawTemplate.sender.pageBeginSave()},t.prototype.onBeginAnnotationSave=function(){this.annotationBeginSave.sender.beginSave()},t.prototype.onSectionBeginSave=function(t){var e=this.sectionBeginSave;e.sender.beginSave(e.state,t)},t.prototype.save=function(t,e){void 0===e?this.save(t,!0):(t.write(this.prefix),void 0!==this.beginSave&&this.onBeginSave(),void 0!==this.descendantFontBeginSave&&this.onDescendantFontBeginSave(),void 0!==this.fontDictionaryBeginSave&&this.onFontDictionaryBeginSave(),void 0!==this.annotationBeginSave&&this.onBeginAnnotationSave(),void 0!==this.sectionBeginSave&&this.onSectionBeginSave(t),void 0!==this.pageBeginDrawTemplate&&this.onTemplateBeginSave(),this.Count>0&&this.saveItems(t),t.write(this.suffix),t.write(dl.newLine))},t.prototype.saveItems=function(t){t.write(dl.newLine);for(var e=this.primitiveItems.keys(),i=this.primitiveItems.values(),r=0;r<e.length;r++){var n=e[r];new pl(n).save(t),t.write(dl.whiteSpace);i[r].save(t),t.write(dl.newLine)}},t}(),yl=function(){return function(t){this.sender=t}}(),ml=function(){return function(t){this.sender=t}}(),Ml=function(){return function(t){this.sender=t}}(),vl=function(){return function(t){this.sender=t}}(),bl=function(){return function(t,e){this.sender=t,this.state=e}}(),wl=function(){return function(t){this.sender=t}}(),Nl=function(){function t(t){this.position5=-1,this.value=t}return Object.defineProperty(t.prototype,"intValue",{get:function(){return this.value},set:function(t){this.value=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isInteger",{get:function(){return this.integer},set:function(t){this.integer=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this.status5},set:function(t){this.status5=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSaving",{get:function(){return this.isSaving5},set:function(t){this.isSaving5=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectCollectionIndex",{get:function(){return this.index5},set:function(t){this.index5=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.position5},set:function(t){this.position5=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clonedObject",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.save=function(t){t.write(this.intValue.toString())},t.prototype.clone=function(e){return new t(this.value)},t.floatToString=function(t){var e=t.toFixed(2);return"0.00"===e&&(e=".00"),e},t.min=function(t,e,i){var r=Math.min(t,e);return Math.min(i,r)},t}(),Sl=function(){function t(e){if(this.startMark="[",this.endMark="]",this.position9=-1,this.clonedObject9=null,this.isFont=!1,void 0===e)this.internalElements=[];else if(void 0===e||e instanceof t){var i=e;this.internalElements=[];for(n=0;n<i.elements.length;n++)this.internalElements.push(i.elements[n])}else for(var r=e,n=0;n<r.length;n++){var o=new Nl(r[n]);this.add(o)}}return t.prototype.items=function(t){return this.internalElements[t]},Object.defineProperty(t.prototype,"count",{get:function(){return this.internalElements.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this.status9},set:function(t){this.status9=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSaving",{get:function(){return this.isSaving9},set:function(t){this.isSaving9=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clonedObject",{get:function(){return this.clonedObject9},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.position9},set:function(t){this.position9=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectCollectionIndex",{get:function(){return this.index9},set:function(t){this.index9=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"CrossTable",{get:function(){return this.pdfCrossTable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"elements",{get:function(){return this.internalElements},enumerable:!0,configurable:!0}),t.prototype.add=function(t){void 0===this.internalElements&&(this.internalElements=[]),this.internalElements.push(t),this.markedChange()},t.prototype.markedChange=function(){this.bChanged=!0},t.prototype.contains=function(t){for(var e=0;e<this.internalElements.length;e++){var i=this.internalElements[e],r=t;if(null!=i&&void 0!==i&&null!=r&&void 0!==r&&i.value===r.value)return!0}return!1},t.prototype.getItems=function(t){return this.internalElements[t]},t.prototype.save=function(t){t.write(this.startMark);for(var e=0,i=this.count;e<i;e++)this.getItems(e).save(t),e+1!==i&&t.write(dl.whiteSpace);t.write(this.endMark)},t.prototype.clone=function(e){this.clonedObject9=null;for(var i=new t,r=0;r<this.internalElements.length;r++){var n=this.internalElements[r];i.add(n.clone(e))}return i.pdfCrossTable=e,this.clonedObject9=i,i},t.fromRectangle=function(e){return new t([e.x,e.y,e.width,e.height])},t.prototype.insert=function(t,e){if(t<this.internalElements.length&&t>0){for(var i=[],r=0;r<t;r++)i.push(this.internalElements[r]);i.push(e);for(r=t;r<this.internalElements.length;r++)i.push(this.internalElements[r]);this.internalElements=i}else this.internalElements.push(e);this.markChanged()},t.prototype.indexOf=function(t){return this.internalElements.indexOf(t)},t.prototype.remove=function(t){var e=this.internalElements.indexOf(t);this.internalElements[e]=null,this.markChanged()},t.prototype.removeAt=function(t){if(this.internalElements.length>t){for(var e=[],i=0;i<t;i++)e.push(this.internalElements[i]);for(i=t+1;i<this.internalElements.length;i++)e.push(this.internalElements[i]);this.internalElements=e}this.markChanged()},t.prototype.clear=function(){this.internalElements=[],this.markChanged()},t.prototype.markChanged=function(){this.bChanged=!0},t}(),Dl=function(){function t(){}return t.save=function(t,e){if(null===t||void 0===t||""===t)throw new Error("ArgumentException: fileName cannot be undefined, null or empty");var i=t.substring(t.lastIndexOf(".")+1,t.length),r=this.getMimeType(i);if(""!==r&&(e=new Blob([e],{type:r})),this.isMicrosoftBrowser)navigator.msSaveBlob(e,t);else{var n=document.createElementNS("http://www.w3.org/1999/xhtml","a");this.saveInternal(t,i,e,n,"download"in n)}},t.saveInternal=function(t,e,i,r,n){if(n){r.download=t;var o=window.URL.createObjectURL(i);r.href=o;var s=document.createEvent("MouseEvent");s.initEvent("click",!0,!0),r.dispatchEvent(s),setTimeout(function(){window.URL.revokeObjectURL(o),o=void 0})}else if("docx"!==e&&"xlsx"!==e){var a=window.URL.createObjectURL(i);window.open(a,"_blank")||(window.location.href=a)}else{var l=new FileReader;l.onloadend=function(){window.open(l.result,"_blank")||(window.location.href=l.result)},l.readAsDataURL(i)}},t.getMimeType=function(t){var e="";switch(t){case"html":e="text/html";break;case"pdf":e="application/pdf";break;case"docx":e="application/vnd.openxmlformats-officedocument.wordprocessingml.document";break;case"xlsx":e="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";break;case"txt":e="text/plain"}return e},t}(),jl=(function(){function t(){this.contentPos=0,this.bufferText="",this.bufferBlob=new Blob([""],{type:"text/plain"}),this.currentState="Initial",this.namespaceStack=[],this.namespaceStack.push(new jl),this.namespaceStack[0].set("xmlns","http://www.w3.org/2000/xmlns/","Special"),this.namespaceStack.push(new jl),this.namespaceStack[1].set("xml","http://www.w3.org/XML/1998/namespace","Special"),this.namespaceStack.push(new jl),this.namespaceStack[2].set("","","Implied"),this.elementStack=[],this.elementStack.push(new Il),this.elementStack[0].set("","","",this.namespaceStack.length-1),this.attributeStack=[],Dl.isMicrosoftBrowser=!!navigator.msSaveBlob}Object.defineProperty(t.prototype,"buffer",{get:function(){return this.flush(),this.bufferBlob},enumerable:!0,configurable:!0}),t.prototype.writeProcessingInstruction=function(t,e){if(void 0===t||null===t||0===t.length)throw new Error("ArgumentException: name should not be undefined, null or empty");if(this.checkName(t),void 0!==e&&null!==e||(e=""),3===t.length&&"xml"===t&&"Initial"!==this.currentState)throw new Error("InvalidArgumentException: Cannot write XML declaration.WriteStartDocument method has already written it");if("Initial"!==this.currentState||void 0===this.bufferBlob)throw new Error("InvalidOperationException: Wrong Token");this.writeStartDocument(),this.writeProcessingInstructionInternal(t,e)},t.prototype.writeStartDocument=function(t){if("Initial"!==this.currentState||void 0===this.bufferBlob)throw new Error("InvalidOperationException: Wrong Token");this.currentState="StartDocument",this.rawText('<?xml version="1.0" encoding="utf-8'),null!==t&&void 0!==t&&(this.rawText('" standalone="'),this.rawText(t?"yes":"no")),this.rawText('"?>')},t.prototype.writeEndDocument=function(){for(;this.elementStack.length-1>0;)this.writeEndElement();this.currentState="EndDocument",this.flush()},t.prototype.writeStartElement=function(t,e,i){if(void 0===this.bufferBlob)throw new Error("InvalidOperationException: Wrong Token");if(void 0===e||null===e||0===e.length)throw new Error("ArgumentException: localName cannot be undefined, null or empty");if(this.checkName(e),"Initial"===this.currentState&&this.writeStartDocument(),"StartElement"===this.currentState&&this.startElementContent(),this.currentState="StartElement",void 0===t||null===t)void 0!==i&&null!==i&&(t=this.lookupPrefix(i)),void 0!==t&&null!==t||(t="");else if(t.length>0&&(void 0!==i&&null!==i||(i=this.lookupNamespace(t)),void 0===i||null===i||void 0!==i&&0===i.length))throw new Error("ArgumentException: Cannot use a prefix with an empty namespace");void 0!==i&&null!==i||(i=this.lookupNamespace(t)),this.writeStartElementInternal(t,e,i)},t.prototype.writeEndElement=function(){"StartElement"===this.currentState?(this.startElementContent(),this.currentState="ElementContent"):"ElementContent"===this.currentState&&(this.currentState="ElementContent"),this.currentState="EndElement";var t=this.elementStack.length-1;this.writeEndElementInternal(this.elementStack[t].prefix,this.elementStack[t].localName),this.namespaceStack.splice(this.elementStack[t].previousTop+1),this.elementStack.splice(t),this.bufferText.length>10240&&this.flush()},t.prototype.writeElementString=function(t,e,i,r){this.writeStartElement(t,e,i),void 0!==r&&null!==r&&0!==r.length&&this.writeString(r),this.writeEndElement()},t.prototype.writeAttributeString=function(t,e,i,r){this.writeStartAttribute(t,e,i,r),this.writeStringInternal(r,!0),this.writeEndAttribute()},t.prototype.writeString=function(t){this.writeInternal(t,!1)},t.prototype.writeRaw=function(t){this.writeInternal(t,!0)},t.prototype.writeInternal=function(t,e){if(void 0!==t&&null!==t){if("StartElement"!==this.currentState&&"ElementContent"!==this.currentState)throw new Error("InvalidOperationException: Wrong Token");"StartElement"===this.currentState&&this.startElementContent(),this.currentState="ElementContent",e?this.rawText(t):this.writeStringInternal(t,!1)}},t.prototype.save=function(t){for(;this.elementStack.length-1>0;)this.writeEndElement();""!==this.bufferText&&this.flush(),Dl.save(t,this.buffer)},t.prototype.destroy=function(){this.bufferBlob=void 0;for(var t=0;t<this.namespaceStack.length;t++)this.namespaceStack[t].destroy();this.namespaceStack=[];for(t=0;t<this.elementStack.length;t++)this.elementStack[t].destroy();this.elementStack=[],this.bufferText="",this.contentPos=0},t.prototype.flush=function(){void 0!==this.bufferBlob&&(this.bufferBlob=new Blob([this.bufferBlob,this.bufferText],{type:"text/plain"}),this.bufferText="")},t.prototype.writeProcessingInstructionInternal=function(t,e){this.bufferText+="<?",this.rawText(t),e.length>0&&(this.bufferText+=" ",e=e.replace(/\?\>/g,"? >"),this.bufferText+=e),this.bufferText+="?",this.bufferText+=">"},t.prototype.writeStartAttribute=function(t,e,i,r){if(void 0===e||null===e||0===e.length){if("xmlns"!==t)throw new Error("ArgumentException: localName cannot be undefined, null or empty");e="xmlns",t=""}if("StartElement"!==this.currentState)throw new Error("InvalidOperationException: Wrong Token");this.checkName(e),this.writeStartAttributePrefixAndNameSpace(t,e,i,r)},t.prototype.writeStartAttributePrefixAndNameSpace=function(t,e,i,r){void 0!==t&&null!==t||(void 0!==i&&null!==i&&("xmlns"===e&&"http://www.w3.org/2000/xmlns/"===i||(t=this.lookupPrefix(i))),void 0!==t&&null!==t||(t="")),void 0!==i&&null!==i||(void 0!==t&&null!==t&&t.length>0&&(i=this.lookupNamespace(t)),void 0!==i&&null!==i||(i="")),this.writeStartAttributeSpecialAttribute(t,e,i,r)},t.prototype.writeStartAttributeSpecialAttribute=function(t,e,i,r){if(0===t.length){if("x"===e[0]&&"xmlns"===e)return this.skipPushAndWrite(t,e,i),void this.pushNamespaceExplicit("",r);i.length>0&&(t=this.lookupPrefix(i))}else{if("x"===t[0]){if("xmlns"===t)return this.skipPushAndWrite(t,e,i),void this.pushNamespaceExplicit(e,r);if("xml"===t&&("space"===e||"lang"===e))return void this.skipPushAndWrite(t,e,i)}0===i.length&&(t="")}void 0!==t&&null!==t&&0!==t.length&&this.pushNamespaceImplicit(t,i),this.skipPushAndWrite(t,e,i)},t.prototype.writeEndAttribute=function(){this.currentState="StartElement",this.bufferText+='"'},t.prototype.writeStartElementInternal=function(t,e,i){this.bufferText+="<",t.length>0&&(this.rawText(t),this.bufferText+=":"),this.rawText(e);var r=this.elementStack.length;this.elementStack.push(new Il),this.elementStack[r].set(t,e,i,this.namespaceStack.length-1),this.pushNamespaceImplicit(t,i);for(var n=0;n<this.attributeStack.length;n++)this.attributeStack[n].destroy();this.attributeStack=[]},t.prototype.writeEndElementInternal=function(t,e){this.contentPos!==this.bufferText.length+1?(this.bufferText+="</",void 0!==t&&null!==t&&0!==t.length&&(this.rawText(t),this.bufferText+=":"),this.rawText(e),this.bufferText+=">"):(this.bufferText=this.bufferText.substring(0,this.bufferText.length-1),this.bufferText+=" />")},t.prototype.writeStartAttributeInternal=function(t,e,i){this.bufferText+=" ",void 0!==t&&null!==t&&t.length>0&&(this.rawText(t),this.bufferText+=":"),this.rawText(e),this.bufferText+="=",this.bufferText+='"'},t.prototype.writeNamespaceDeclaration=function(t,e){this.writeStartNamespaceDeclaration(t),this.writeStringInternal(e,!0),this.bufferText+='"'},t.prototype.writeStartNamespaceDeclaration=function(t){void 0===t||null===t||0===t.length?this.rawText(' xmlns="'):(this.rawText(" xmlns:"),this.rawText(t),this.bufferText+="=",this.bufferText+='"')},t.prototype.writeStringInternal=function(t,e){null!==t&&void 0!==t||(t=""),t=(t=(t=t.replace(/\&/g,"&")).replace(/\</g,"<")).replace(/\>/g,">"),e&&(t=t.replace(/\"/g,""")),this.bufferText+=t,e||(this.contentPos=0)},t.prototype.startElementContent=function(){for(var t=this.elementStack[this.elementStack.length-1].previousTop,e=this.namespaceStack.length-1;e>t;e--)"NeedToWrite"===this.namespaceStack[e].kind&&this.writeNamespaceDeclaration(this.namespaceStack[e].prefix,this.namespaceStack[e].namespaceUri);this.bufferText+=">",this.contentPos=this.bufferText.length+1},t.prototype.rawText=function(t){this.bufferText+=t},t.prototype.addNamespace=function(t,e,i){var r=this.namespaceStack.length;this.namespaceStack.push(new jl),this.namespaceStack[r].set(t,e,i)},t.prototype.lookupPrefix=function(t){for(var e=this.namespaceStack.length-1;e>=0;e--)if(this.namespaceStack[e].namespaceUri===t)return this.namespaceStack[e].prefix},t.prototype.lookupNamespace=function(t){for(var e=this.namespaceStack.length-1;e>=0;e--)if(this.namespaceStack[e].prefix===t)return this.namespaceStack[e].namespaceUri},t.prototype.lookupNamespaceIndex=function(t){for(var e=this.namespaceStack.length-1;e>=0;e--)if(this.namespaceStack[e].prefix===t)return e;return-1},t.prototype.pushNamespaceImplicit=function(t,e){var i,r=this.lookupNamespaceIndex(t);if(-1!==r){if(r>this.elementStack[this.elementStack.length-1].previousTop){if(this.namespaceStack[r].namespaceUri!==e)throw new Error("XmlException namespace Uri needs to be the same as the one that is already declared");return}if("Special"===this.namespaceStack[r].kind){if("xml"!==t)throw new Error('InvalidArgumentException: Prefix "xmlns" is reserved for use by XML.');if(e!==this.namespaceStack[r].namespaceUri)throw new Error("InvalidArgumentException: Xml String");i="Implied"}else i=this.namespaceStack[r].namespaceUri===e?"Implied":"NeedToWrite"}else{if("http://www.w3.org/XML/1998/namespace"===e&&"xml"!==t||"http://www.w3.org/2000/xmlns/"===e&&"xmlns"!==t)throw new Error("InvalidArgumentException");i="NeedToWrite"}this.addNamespace(t,e,i)},t.prototype.pushNamespaceExplicit=function(t,e){var i=this.lookupNamespaceIndex(t);-1!==i&&i>this.elementStack[this.elementStack.length-1].previousTop?this.namespaceStack[i].kind="Written":this.addNamespace(t,e,"Written")},t.prototype.addAttribute=function(t,e,i){var r=this.attributeStack.length;this.attributeStack.push(new Ol),this.attributeStack[r].set(t,e,i);for(var n=0;n<r;n++)if(this.attributeStack[n].isDuplicate(t,e,i))throw new Error("XmlException: duplicate attribute name")},t.prototype.skipPushAndWrite=function(t,e,i){this.addAttribute(t,e,i),this.writeStartAttributeInternal(t,e,i)},t.prototype.checkName=function(t){if(/[ !@#$%^&*()+\=\[\]{};':"\\|,<>\/?]/.test(t))throw new Error("InvalidArgumentException: invalid name character")}}(),function(){function t(){}return t.prototype.set=function(t,e,i){this.prefix=t,this.namespaceUri=e,this.kind=i},t.prototype.destroy=function(){this.prefix=void 0,this.namespaceUri=void 0,this.kind=void 0},t}()),Il=function(){function t(){}return t.prototype.set=function(t,e,i,r){this.previousTop=r,this.prefix=t,this.namespaceUri=i,this.localName=e},t.prototype.destroy=function(){this.previousTop=void 0,this.prefix=void 0,this.localName=void 0,this.namespaceUri=void 0},t}(),Ol=function(){function t(){}return t.prototype.set=function(t,e,i){this.prefix=t,this.namespaceUri=i,this.localName=e},t.prototype.isDuplicate=function(t,e,i){return this.localName===e&&(this.prefix===t||this.namespaceUri===i)},t.prototype.destroy=function(){this.prefix=void 0,this.namespaceUri=void 0,this.localName=void 0},t}(),xl=function(){function t(t){this.emitBOM=!0,this.encodingType="Ansi",this.initBOM(t)}return Object.defineProperty(t.prototype,"includeBom",{get:function(){return this.emitBOM},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this.encodingType},set:function(t){this.encodingType=t},enumerable:!0,configurable:!0}),t.prototype.initBOM=function(t){this.emitBOM=void 0===t||null===t||t},t.prototype.getByteCount=function(t){if(ye(t,"string"),""===t){return this.utf8Len(t.charCodeAt(0))}return null!==this.type&&void 0!==this.type||(this.type="Ansi"),this.getByteCountInternal(t,0,t.length)},t.prototype.utf8Len=function(t){return t<=127?1:t<=2047?2:t<=65535?3:t<=2097151?4:0},t.prototype.isHighSurrogate=function(t){return t>=55296&&t<=56319},t.prototype.toCodepoint=function(t,e){return((t=(1023&t)<<10)|1023&e)+65536},t.prototype.getByteCountInternal=function(t,e,i){var r=0;if("Utf8"===this.encodingType||"Unicode"===this.encodingType){for(var n="Utf8"===this.encodingType,o=0;o<i;o++){var s=t.charCodeAt(n?e:e++);if(this.isHighSurrogate(s))if(n){var a=s,l=t.charCodeAt(++e);r+=this.utf8Len(this.toCodepoint(a,l))}else r+=4,++o;else r+=n?this.utf8Len(s):2;n&&e++}return r}return r=i},t.prototype.getBytes=function(t,e,i){if(ye(t,"string"),ye(e,"charIndex"),ye(i,"charCount"),e<0||i<0)throw new RangeError("Argument Out Of Range Exception: charIndex or charCount is less than zero");if(t.length-e<i)throw new RangeError("Argument Out Of Range Exception: charIndex and charCount do not denote a valid range in string");if(""===t)return new ArrayBuffer(0);null!==this.type&&void 0!==this.type||(this.type="Ansi");var r=this.getByteCountInternal(t,e,i);switch(this.type){case"Utf8":return this.getBytesOfUtf8Encoding(r,t,e,i);case"Unicode":return this.getBytesOfUnicodeEncoding(r,t,e,i);default:return this.getBytesOfAnsiEncoding(r,t,e,i)}},t.prototype.getString=function(t,e,i){if(ye(t,"bytes"),ye(e,"index"),ye(i,"count"),e<0||i<0)throw new RangeError("Argument Out Of Range Exception: index or count is less than zero");if(t.byteLength-e<i)throw new RangeError("Argument Out Of Range Exception: index and count do not denote a valid range in bytes");if(0===t.byteLength||0===i)return"";null!==this.type&&void 0!==this.type||(this.type="Ansi");var r="",n=new Uint8Array(t);switch(this.type){case"Utf8":return this.getStringOfUtf8Encoding(n,e,i);case"Unicode":var o=new Uint16Array(t);return r=this.getStringofUnicodeEncoding(o,e,i);default:for(var s=e,a=0;a<i;a++){var l=n[s];r+=String.fromCharCode(l),s++}return r}},t.prototype.getBytesOfAnsiEncoding=function(t,e,i,r){for(var n=new ArrayBuffer(t),o=new Uint8Array(n),s=0,a=0;a<r;a++){var l=e.charCodeAt(i++);o[s]=l<2048?l:63,s++}return n},t.prototype.getBytesOfUtf8Encoding=function(t,e,i,r){for(var n=new ArrayBuffer(t),o=new Uint8Array(n),s=i,a=0,l=0;l<r;l++){var h=e.charCodeAt(s);h<=127?o[a]=h:h<2048?(o[a]=192|h>>6,o[++a]=128|63&h):h<55296||h>=57344?(o[a]=224|h>>12,o[++a]=128|h>>6&63,o[++a]=128|63&h):(o[a]=239,o[++a]=191,o[++a]=189),++a,++s}return n},t.prototype.getBytesOfUnicodeEncoding=function(t,e,i,r){for(var n=new ArrayBuffer(t),o=new Uint16Array(n),s=0;s<r;s++){var a=e.charCodeAt(s);o[s]=a}return n},t.prototype.getStringOfUtf8Encoding=function(t,e,i){for(var r=0,n=e,o="";r<i;r++){for(var s=t[n++];n>t.length;)return o;s>127&&(s>191&&s<224&&n<i?s=(31&s)<<6|63&t[n]:s>223&&s<240&&n<t.byteLength?s=(15&s)<<12|(63&t[n])<<6|63&t[++n]:s>239&&s<248&&n<t.byteLength&&(s=(7&s)<<18|(63&t[n])<<12|(63&t[++n])<<6|63&t[++n]),++n),o+=String.fromCharCode(s)}return o},t.prototype.getStringofUnicodeEncoding=function(t,e,i){if(i>t.length)throw new RangeError("ArgumentOutOfRange_Count");for(var r=new Uint16Array(i),n=0;n<i&&n<t.length;n++)r[n]=t[e++];return String.fromCharCode.apply(null,r)},t.prototype.destroy=function(){this.emitBOM=void 0,this.encodingType=void 0},t}(),Cl=function(){function t(t){this.bufferBlob=new Blob([""]),this.bufferText="",this.init(t),Dl.isMicrosoftBrowser=!!navigator.msSaveBlob}return Object.defineProperty(t.prototype,"buffer",{get:function(){return this.flush(),this.bufferBlob},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"encoding",{get:function(){return this.enc},enumerable:!0,configurable:!0}),t.prototype.init=function(t){null===t||void 0===t?(this.enc=new xl(!1),this.enc.type="Utf8"):(this.enc=t,this.setBomByte())},t.prototype.setBomByte=function(){if(this.encoding.includeBom)switch(this.encoding.type){case"Unicode":var t=new ArrayBuffer(2),e=new Uint8Array(t);e[0]=255,e[1]=254,this.bufferBlob=new Blob([t]);break;case"Utf8":var i=new ArrayBuffer(3),r=new Uint8Array(i);r[0]=239,r[1]=187,r[2]=191,this.bufferBlob=new Blob([i]);break;default:this.bufferBlob=new Blob([""])}},t.prototype.save=function(t){""!==this.bufferText&&this.flush(),Dl.save(t,this.buffer)},t.prototype.write=function(t){if(void 0===this.encoding)throw new Error("Object Disposed Exception: current writer is disposed");ye(t,"string"),this.bufferText+=t,this.bufferText.length>=10240&&this.flush()},t.prototype.flush=function(){if(void 0!==this.bufferText&&null!==this.bufferText&&0!==this.bufferText.length){var t=this.encoding.getBytes(this.bufferText,0,this.bufferText.length);this.bufferText="",this.bufferBlob=new Blob([this.bufferBlob,t])}},t.prototype.writeLine=function(t){if(void 0===this.encoding)throw new Error("Object Disposed Exception: current writer is disposed");ye(t,"string"),this.bufferText=this.bufferText+t+"\r\n",this.bufferText.length>=10240&&this.flush()},t.prototype.destroy=function(){this.bufferBlob=void 0,this.bufferText=void 0,this.enc instanceof xl&&this.enc.destroy(),this.enc=void 0},t}(),zl=function(){function t(){}return t.bitReverse=function(e){return t.reverseBits[15&e]<<12|t.reverseBits[e>>4&15]<<8|t.reverseBits[e>>8&15]<<4|t.reverseBits[e>>12]},t.bitConverterToInt32=function(t,e){return t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24},t.bitConverterToInt16=function(t,e){return t[e]|t[e+1]<<8},t.bitConverterToUInt32=function(t){var e=new Uint32Array(1);return e[0]=t,e[0]},t.bitConverterToUInt16=function(t,e){var i=new Uint16Array(1);return i[0]=t[e]|t[e+1]<<8,i[0]},t.bitConverterUintToInt32=function(t){var e=new Int32Array(1);return e[0]=t,e[0]},t.bitConverterInt32ToUint=function(t){var e=new Uint32Array(1);return e[0]=t,e[0]},t.bitConverterInt32ToInt16=function(t){var e=new Int16Array(1);return e[0]=t,e[0]},t.byteToString=function(t){for(var e="",i=0;i<t.length;i++)e+=String.fromCharCode(t[i]);return e},t.byteIntToString=function(t){for(var e="",i=0;i<t.length;i++)e+=String.fromCharCode(t[i]);return e},t.arrayCopy=function(t,e,i,r,n){var o=new Uint8Array(t.buffer,e).subarray(0,n);i.set(o,r)},t.mergeArray=function(t,e){var i=new Uint8Array(t.length+e.length);return i.set(t),i.set(e,t.length),i},t.encodedString=function(t){var e,i,r,n,o,s,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",l=0,h=0,u=3*(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(t.charAt(t.length-1)===a.charAt(64)&&u--,t.charAt(t.length-2)===a.charAt(64)&&u--,u%1!=0)throw new Error("Invalid base64 input, bad content length.");for(var c=new Uint8Array(0|u);l<t.length;)e=a.indexOf(t.charAt(l++))<<2|(n=a.indexOf(t.charAt(l++)))>>4,i=(15&n)<<4|(o=a.indexOf(t.charAt(l++)))>>2,r=(3&o)<<6|(s=a.indexOf(t.charAt(l++))),c[h++]=e,64!==o&&(c[h++]=i),64!==s&&(c[h++]=r);return c},t.reverseBits=[0,8,4,12,2,10,6,14,1,9,5,13,3,11,7,15],t.huffCodeLengthOrders=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],t}(),Tl=[],Ll=function(){function t(){0===Tl.length&&t.initCrc32Table(),this.files=[],this.level="Normal",Dl.isMicrosoftBrowser=!!navigator.msSaveBlob}return Object.defineProperty(t.prototype,"items",{get:function(){return this.files},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"compressionLevel",{get:function(){return this.level},set:function(t){this.level=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return void 0===this.files?0:this.files.length},enumerable:!0,configurable:!0}),t.prototype.addItem=function(t){if(null===t||void 0===t)throw new Error("ArgumentException: item cannot be null or undefined");for(var e=0;e<this.files.length;e++){var i=this.files[e];if(i instanceof Pl&&i.name===t.name)throw new Error("item with same name already exist")}this.files.push(t)},t.prototype.addDirectory=function(t){if(null===t||void 0===t)throw new Error("ArgumentException: string cannot be null or undefined");if(0===t.length)throw new Error("ArgumentException: string cannot be empty");if("/"!==t.slice(-1)&&(t+="/"),-1!==this.files.indexOf(t))throw new Error("item with same name already exist");this.files.push(t)},t.prototype.getItem=function(t){if(t>=0&&t<this.files.length)return this.files[t]},t.prototype.contains=function(t){return-1!==this.files.indexOf(t)},t.prototype.open=function(e){var i=zl.encodedString(e);if(0==i.length)throw new DOMException("stream");var r=new Wl(i),n=t.findValueFromEnd(r,101010256,65557);if(n<0)throw new DOMException("Can't locate end of central directory record. Possible wrong file format or archive is corrupt.");r.position=n+12;var o=n-t.ReadInt32(r);r.position=o,this.readCentralDirectoryDataAndExtractItems(r)},t.prototype.readCentralDirectoryDataAndExtractItems=function(e){if(null==e)throw new DOMException("stream");for(var i;33639248==t.ReadInt32(e);)(i=new Al).readCentralDirectoryData(e);i.readData(e,i.checkCrc),i.decompressData(),this.files.push(new Pl(i.unCompressedStream.buffer,i.name))},t.prototype.save=function(t){if(null===t||void 0===t||0===t.length)throw new Error("ArgumentException: fileName cannot be null or undefined");if(0===this.files.length)throw new Error("InvalidOperation");var e=this;return new Promise(function(i,r){e.saveInternal(t,!1).then(function(){i(e)})})},t.prototype.saveAsBlob=function(){var t=this;return new Promise(function(e,i){t.saveInternal("",!0).then(function(t){e(t)})})},t.prototype.saveInternal=function(t,e){var i=this,r=this;return new Promise(function(n,o){for(var s=[],a=0,l=0;l<r.files.length;l++){i.getCompressedData(i.files[l]).then(function(i){if(a=r.constructZippedObject(s,i,a,i.isDirectory),s.length===r.files.length){var o=r.writeZippedContent(t,s,a,e);n(o)}})}})},t.prototype.destroy=function(){if(void 0!==this.files&&this.files.length>0){for(var t=0;t<this.files.length;t++){var e=this.files[t];e instanceof Pl&&e.destroy(),e=void 0}this.files=[]}this.files=void 0,this.level=void 0},t.prototype.getCompressedData=function(t){var e=this;return new Promise(function(i,r){if(t instanceof Pl){var n=new FileReader;n.onload=function(){var r=new Uint8Array(n.result),o={fileName:t.name,crc32Value:0,compressedData:[],compressedSize:void 0,uncompressedDataSize:r.length,compressionType:void 0,isDirectory:!1};if("Normal"===e.level){e.compressData(r,o,Tl);for(var s=0,a=0;a<o.compressedData.length;a++)s+=o.compressedData[a].length;o.compressedSize=s,o.compressionType="\b\0"}else o.compressedSize=r.length,o.crc32Value=e.calculateCrc32Value(0,r,Tl),o.compressionType="\0\0",o.compressedData.push(r);i(o)},n.readAsArrayBuffer(t.data)}else{i({fileName:t,crc32Value:0,compressedData:"",compressedSize:0,uncompressedDataSize:0,compressionType:"\0\0",isDirectory:!0})}})},t.prototype.compressData=function(t,e,i){var r=new Rl(!0),n=0,o=0;do{if(n>=t.length){r.close();break}o=Math.min(t.length,n+16384);var s=t.subarray(n,o);e.crc32Value=this.calculateCrc32Value(e.crc32Value,s,i),r.write(s,0,o-n),n=o}while(n<=t.length);e.compressedData=r.compressedData,r.destroy()},t.prototype.constructZippedObject=function(t,e,i,r){var n=0,o=new Date;r&&(n|=16),n|=0;var s=this.writeHeader(e,o),a="PK"+s+e.fileName,l=this.writeCentralDirectory(e,s,i,n);return t.push({localHeader:a,centralDir:l,compressedData:e}),i+a.length+e.compressedSize},t.prototype.writeHeader=function(t,e){var i="";return i+="\n\0\0\0",i+=t.compressionType,i+=this.getBytes(this.getModifiedTime(e),2),i+=this.getBytes(this.getModifiedDate(e),2),i+=this.getBytes(t.crc32Value,4),i+=this.getBytes(t.compressedSize,4),i+=this.getBytes(t.uncompressedDataSize,4),i+=this.getBytes(t.fileName.length,2),i+=this.getBytes(0,2)},t.prototype.writeZippedContent=function(t,e,i,r){for(var n=0,o=[],s=0;s<e.length;s++){var a=e[s];for(n+=a.centralDir.length,o.push(this.getArrayBuffer(a.localHeader));a.compressedData.compressedData.length;)o.push(a.compressedData.compressedData.shift().buffer)}for(s=0;s<e.length;s++)o.push(this.getArrayBuffer(e[s].centralDir));o.push(this.getArrayBuffer(this.writeFooter(e,n,i)));var l=new Blob(o,{type:"application/zip"});return r||Dl.save(t,l),l},t.prototype.writeCentralDirectory=function(t,e,i,r){return"PK"+this.getBytes(20,2)+e+this.getBytes(0,2)+"\0\0\0\0"+this.getBytes(r,4)+this.getBytes(i,4)+t.fileName},t.prototype.writeFooter=function(t,e,i){return"PK\0\0\0\0"+this.getBytes(t.length,2)+this.getBytes(t.length,2)+this.getBytes(e,4)+this.getBytes(i,4)+this.getBytes(0,2)},t.prototype.getArrayBuffer=function(t){for(var e=new Uint8Array(t.length),i=0;i<t.length;++i)e[i]=255&t.charCodeAt(i);return e.buffer},t.prototype.getBytes=function(t,e){for(var i="",r=0;r<e;r++)i+=String.fromCharCode(255&t),t>>>=8;return i},t.prototype.getModifiedTime=function(t){var e=t.getHours();return e<<=6,e|=t.getMinutes(),e<<=5,e|=t.getSeconds()/2},t.prototype.getModifiedDate=function(t){var e=t.getFullYear()-1980;return e<<=4,e|=t.getMonth()+1,e<<=5,e|=t.getDate()},t.prototype.calculateCrc32Value=function(t,e,i){t^=-1;for(var r=0;r<e.length;r++)t=t>>>8^i[255&(t^e[r])];return-1^t},t.initCrc32Table=function(){for(var t,e=0;e<256;e++){t=e;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;Tl[e]=t}},t.findValueFromEnd=function(t,e,i){if(null==t)throw new DOMException("stream");var r=t.inputStream.buffer.byteLength;if(r<4)return-1;var n=new Uint8Array(4),o=Math.max(0,r-i),s=r-1-4;t.position=s,t.read(n,0,4);var a=n[0],l=a==e;if(!l)for(;s>o;)if(a<<=8,s--,t.position=s,(a+=t.readByte())==e){l=!0;break}return l?s:-1},t.ReadInt32=function(t){var e=new Uint8Array(4);if(4!=t.read(e,0,4))throw new DOMException("Unable to read value at the specified position - end of stream was reached.");return zl.bitConverterToInt32(e,0)},t.ReadInt16=function(t){var e=new Uint8Array(2);if(2!=t.read(e,0,2))throw new DOMException("Unable to read value at the specified position - end of stream was reached.");return zl.bitConverterToInt16(e,0)},t.ReadUInt16=function(t){var e=new Uint8Array(2);if(2!=t.read(e,0,2))throw new DOMException("Unable to read value at the specified position - end of stream was reached.");return zl.bitConverterToInt16(e,0)},t}(),Al=function(){function t(){this.headerSignature=67324752,this.checkCrc=!0,this.crc32=0}return t.prototype.readCentralDirectoryData=function(t){t.position+=4,this.options=Ll.ReadInt16(t),this.compressionMethod=Ll.ReadInt16(t),this.checkCrc=99!=this.compressionMethod;Ll.ReadInt32(t);this.crc32=zl.bitConverterToUInt32(Ll.ReadInt32(t)),this.compressedSize=Ll.ReadInt32(t),this.originalSize=Ll.ReadInt32(t);var e=Ll.ReadInt16(t),i=Ll.ReadInt16(t),r=Ll.ReadInt16(t);t.position+=4,this.externalAttributes=Ll.ReadInt32(t),this.localHeaderOffset=Ll.ReadInt32(t);var n=new Uint8Array(e);t.read(n,0,e);var o=zl.byteToString(n);o=o.replace("\\","/"),this.name=o,t.position+=i+r,0!=this.options&&(this.options=0)},t.prototype.readData=function(t,e){if(0==t.length)throw new DOMException("stream");t.position=this.localHeaderOffset,this.checkCrc=e,this.readLocalHeader(t),this.readCompressedData(t)},t.prototype.decompressData=function(){8==this.compressionMethod&&this.originalSize>0&&this.decompressDataOld()},t.prototype.decompressDataOld=function(){var t,e=new Ql(this.compressedStream,!0);this.originalSize>0&&(t=new Wl(new Uint8Array(this.originalSize)));for(var i,r=new Uint8Array(4096);(i=e.read(r,0,4096))>0;)t.write(r.subarray(0,i),0,i);this.unCompressedStream=t.toByteArray(),this.checkCrc},t.prototype.readLocalHeader=function(t){if(0==t.length)throw new DOMException("stream");if(Ll.ReadInt32(t)!=this.headerSignature)throw new DOMException("Can't find local header signature - wrong file format or file is corrupt.");t.position+=22;var e=Ll.ReadInt16(t),i=Ll.ReadUInt16(t);if(99==this.compressionMethod);else if(i>2){t.position+=e;if(23==Ll.ReadInt16(t))throw new DOMException("UnSupported");t.position+=i-2}else t.position+=e+i},t.prototype.readCompressedData=function(t){var e;if(this.compressedSize>0){var i=this.compressedSize;e=new Wl(new Uint8Array(i));for(var r=new Uint8Array(4096);i>0;){var n=Math.min(i,4096);if(t.read(r,0,n)!=n)throw new DOMException("End of file reached - wrong file format or file is corrupt.");e.write(r.subarray(0,n),0,n),i-=n}this.compressedStream=new Uint8Array(e.inputStream)}else this.compressedSize<0||this.compressedSize},t}(),Pl=function(){function t(t,e){if(null===t||void 0===t)throw new Error("ArgumentException: data cannot be null or undefined");if(null===e||void 0===e)throw new Error("ArgumentException: string cannot be null or undefined");if(0===e.length)throw new Error("string cannot be empty");this.data=t,this.name=e}return Object.defineProperty(t.prototype,"dataStream",{get:function(){return this.decompressedStream},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.fileName},set:function(t){this.fileName=t},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this.fileName=void 0,this.data=void 0},t}(),El=new Int16Array(286),kl=new Uint8Array(286),Bl=new Int16Array(30),Fl=new Uint8Array(30),Rl=function(){function t(e){this.pendingBuffer=new Uint8Array(65536),this.pendingBufLength=0,this.pendingBufCache=0,this.pendingBufBitsInCache=0,this.bufferPosition=0,this.extraBits=0,this.currentHash=0,this.matchStart=0,this.matchLength=0,this.matchPrevAvail=!1,this.blockStart=0,this.stringStart=0,this.lookAhead=0,this.totalBytesIn=0,this.inputOffset=0,this.inputEnd=0,this.windowSize=32768,this.windowMask=this.windowSize-1,this.hashSize=32768,this.hashMask=this.hashSize-1,this.hashShift=Math.floor(17/3),this.maxDist=this.windowSize-262,this.checkSum=1,this.noWrap=!1,t.isHuffmanTreeInitiated||(t.initHuffmanTree(),t.isHuffmanTreeInitiated=!0),this.treeLiteral=new Ul(this,286,257,15),this.treeDistances=new Ul(this,30,1,15),this.treeCodeLengths=new Ul(this,19,4,7),this.arrDistances=new Uint16Array(16384),this.arrLiterals=new Uint8Array(16384),this.stream=[],this.dataWindow=new Uint8Array(2*this.windowSize),this.hashHead=new Int16Array(this.hashSize),this.hashPrevious=new Int16Array(this.windowSize),this.blockStart=this.stringStart=1,this.noWrap=e,e||this.writeZLibHeader()}return Object.defineProperty(t.prototype,"compressedData",{get:function(){return this.stream},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"getCompressedString",{get:function(){var t="";if(void 0!==this.stream)for(var e=0;e<this.stream.length;e++)t+=String.fromCharCode.apply(null,this.stream[e]);return t},enumerable:!0,configurable:!0}),t.prototype.write=function(t,e,i){if(void 0===t||null===t)throw new Error("ArgumentException: data cannot null or undefined");var r=e+i;if(0>e||e>r||r>t.length)throw new Error("ArgumentOutOfRangeException: Offset or length is incorrect");if("string"==typeof t){var n=new xl(!1);n.type="Utf8",r=e+(t=new Uint8Array(n.getBytes(t,0,t.length))).length}for(this.inputBuffer=t,this.inputOffset=e,this.inputEnd=r,this.noWrap||(this.checkSum=_l.checksumUpdate(this.checkSum,this.inputBuffer,this.inputOffset,r));this.inputEnd!==this.inputOffset||0!==this.pendingBufLength;)this.pendingBufferFlush(),this.compressData(!1)},t.prototype.writeZLibHeader=function(){var t=30720;t|=64,t+=31-t%31,this.pendingBufferWriteShortBytes(t)},t.prototype.pendingBufferWriteShortBytes=function(t){this.pendingBuffer[this.pendingBufLength++]=t>>8,this.pendingBuffer[this.pendingBufLength++]=t},t.prototype.compressData=function(t){var e;do{this.fillWindow();var i=t&&this.inputEnd===this.inputOffset;e=this.compressSlow(i,t)}while(0===this.pendingBufLength&&e);return e},t.prototype.compressSlow=function(t,e){if(this.lookAhead<262&&!t)return!1;for(;this.lookAhead>=262||t;){if(0===this.lookAhead)return this.lookAheadCompleted(e);this.stringStart>=2*this.windowSize-262&&this.slideWindow();var i=this.matchStart,r=this.matchLength;if(this.lookAhead>=3&&this.discardMatch(),r>=3&&this.matchLength<=r?r=this.matchPreviousBest(i,r):this.matchPreviousAvailable(),this.bufferPosition>=16384)return this.huffmanIsFull(e)}return!0},t.prototype.discardMatch=function(){var t=this.insertString();0!==t&&this.stringStart-t<=this.maxDist&&this.findLongestMatch(t)&&this.matchLength<=5&&3===this.matchLength&&this.stringStart-this.matchStart>4096&&(this.matchLength=2)},t.prototype.matchPreviousAvailable=function(){this.matchPrevAvail&&this.huffmanTallyLit(255&this.dataWindow[this.stringStart-1]),this.matchPrevAvail=!0,this.stringStart++,this.lookAhead--},t.prototype.matchPreviousBest=function(t,e){this.huffmanTallyDist(this.stringStart-1-t,e),e-=2;do{this.stringStart++,this.lookAhead--,this.lookAhead>=3&&this.insertString()}while(--e>0);return this.stringStart++,this.lookAhead--,this.matchPrevAvail=!1,this.matchLength=2,e},t.prototype.lookAheadCompleted=function(t){return this.matchPrevAvail&&this.huffmanTallyLit(255&this.dataWindow[this.stringStart-1]),this.matchPrevAvail=!1,this.huffmanFlushBlock(this.dataWindow,this.blockStart,this.stringStart-this.blockStart,t),this.blockStart=this.stringStart,!1},t.prototype.huffmanIsFull=function(t){var e=this.stringStart-this.blockStart;this.matchPrevAvail&&e--;var i=t&&0===this.lookAhead&&!this.matchPrevAvail;return this.huffmanFlushBlock(this.dataWindow,this.blockStart,e,i),this.blockStart+=e,!i},t.prototype.fillWindow=function(){for(this.stringStart>=this.windowSize+this.maxDist&&this.slideWindow();this.lookAhead<262&&this.inputOffset<this.inputEnd;){var t=2*this.windowSize-this.lookAhead-this.stringStart;t>this.inputEnd-this.inputOffset&&(t=this.inputEnd-this.inputOffset),this.dataWindow.set(this.inputBuffer.subarray(this.inputOffset,this.inputOffset+t),this.stringStart+this.lookAhead),this.inputOffset+=t,this.totalBytesIn+=t,this.lookAhead+=t}this.lookAhead>=3&&this.updateHash()},t.prototype.slideWindow=function(){this.dataWindow.set(this.dataWindow.subarray(this.windowSize,this.windowSize+this.windowSize),0),this.matchStart-=this.windowSize,this.stringStart-=this.windowSize,this.blockStart-=this.windowSize;for(var t=0;t<this.hashSize;++t){var e=65535&this.hashHead[t];this.hashHead[t]=e>=this.windowSize?e-this.windowSize:0}for(t=0;t<this.windowSize;t++){e=65535&this.hashPrevious[t];this.hashPrevious[t]=e>=this.windowSize?e-this.windowSize:0}},t.prototype.insertString=function(){var t,e=(this.currentHash<<this.hashShift^this.dataWindow[this.stringStart+2])&this.hashMask;return this.hashPrevious[this.stringStart&this.windowMask]=t=this.hashHead[e],this.hashHead[e]=this.stringStart,this.currentHash=e,65535&t},t.prototype.findLongestMatch=function(t){var e,i=4096,r=258,n=this.stringStart,o=this.stringStart+this.matchLength,s=Math.max(this.matchLength,2),a=Math.max(this.stringStart-this.maxDist,0),l=this.stringStart+258-1,h=this.dataWindow[o-1],u=this.dataWindow[o],c=this.dataWindow;s>=32&&(i>>=2),r>this.lookAhead&&(r=this.lookAhead);do{if(c[t+s]===u&&c[t+s-1]===h&&c[t]===c[n]&&c[t+1]===c[n+1]){for(e=t+2,n+=2;c[++n]===c[++e]&&c[++n]===c[++e]&&c[++n]===c[++e]&&c[++n]===c[++e]&&c[++n]===c[++e]&&c[++n]===c[++e]&&c[++n]===c[++e]&&c[++n]===c[++e]&&n<l;);if(n>o){if(this.matchStart=t,o=n,(s=n-this.stringStart)>=r)break;h=c[o-1],u=c[o]}n=this.stringStart}}while((t=65535&this.hashPrevious[t&this.windowMask])>a&&0!=--i);return this.matchLength=Math.min(s,this.lookAhead),this.matchLength>=3},t.prototype.updateHash=function(){this.currentHash=this.dataWindow[this.stringStart]<<this.hashShift^this.dataWindow[this.stringStart+1]},t.prototype.huffmanTallyLit=function(t){return this.arrDistances[this.bufferPosition]=0,this.arrLiterals[this.bufferPosition++]=t,this.treeLiteral.codeFrequencies[t]++,this.bufferPosition>=16384},t.prototype.huffmanTallyDist=function(t,e){this.arrDistances[this.bufferPosition]=t,this.arrLiterals[this.bufferPosition++]=e-3;var i=this.huffmanLengthCode(e-3);this.treeLiteral.codeFrequencies[i]++,i>=265&&i<285&&(this.extraBits+=Math.floor((i-261)/4));var r=this.huffmanDistanceCode(t-1);return this.treeDistances.codeFrequencies[r]++,r>=4&&(this.extraBits+=Math.floor(r/2-1)),this.bufferPosition>=16384},t.prototype.huffmanFlushBlock=function(t,e,i,r){this.treeLiteral.codeFrequencies[256]++,this.treeLiteral.buildTree(),this.treeDistances.buildTree(),this.treeLiteral.calculateBLFreq(this.treeCodeLengths),this.treeDistances.calculateBLFreq(this.treeCodeLengths),this.treeCodeLengths.buildTree();for(var n=4,o=18;o>n;o--)this.treeCodeLengths.codeLengths[Ul.huffCodeLengthOrders[o]]>0&&(n=o+1);var s=14+3*n+this.treeCodeLengths.getEncodedLength()+this.treeLiteral.getEncodedLength()+this.treeDistances.getEncodedLength()+this.extraBits,a=this.extraBits;for(o=0;o<286;o++)a+=this.treeLiteral.codeFrequencies[o]*kl[o];for(o=0;o<30;o++)a+=this.treeDistances.codeFrequencies[o]*Fl[o];s>=a&&(s=a),e>=0&&i+4<s>>3?this.huffmanFlushStoredBlock(t,e,i,r):s==a?(this.pendingBufferWriteBits(2+(r?1:0),3),this.treeLiteral.setStaticCodes(El,kl),this.treeDistances.setStaticCodes(Bl,Fl),this.huffmanCompressBlock(),this.huffmanReset()):(this.pendingBufferWriteBits(4+(r?1:0),3),this.huffmanSendAllTrees(n),this.huffmanCompressBlock(),this.huffmanReset())},t.prototype.huffmanFlushStoredBlock=function(t,e,i,r){this.pendingBufferWriteBits(0+(r?1:0),3),this.pendingBufferAlignToByte(),this.pendingBufferWriteShort(i),this.pendingBufferWriteShort(~i),this.pendingBufferWriteByteBlock(t,e,i),this.huffmanReset()},t.prototype.huffmanLengthCode=function(t){if(255===t)return 285;for(var e=257;t>=8;)e+=4,t>>=1;return e+t},t.prototype.huffmanDistanceCode=function(t){for(var e=0;t>=4;)e+=2,t>>=1;return e+t},t.prototype.huffmanSendAllTrees=function(t){this.treeCodeLengths.buildCodes(),this.treeLiteral.buildCodes(),this.treeDistances.buildCodes(),this.pendingBufferWriteBits(this.treeLiteral.treeLength-257,5),this.pendingBufferWriteBits(this.treeDistances.treeLength-1,5),this.pendingBufferWriteBits(t-4,4);for(var e=0;e<t;e++)this.pendingBufferWriteBits(this.treeCodeLengths.codeLengths[Ul.huffCodeLengthOrders[e]],3);this.treeLiteral.writeTree(this.treeCodeLengths),this.treeDistances.writeTree(this.treeCodeLengths)},t.prototype.huffmanReset=function(){this.bufferPosition=0,this.extraBits=0,this.treeLiteral.reset(),this.treeDistances.reset(),this.treeCodeLengths.reset()},t.prototype.huffmanCompressBlock=function(){for(var t=0;t<this.bufferPosition;t++){var e=255&this.arrLiterals[t],i=this.arrDistances[t];if(0!=i--){var r=this.huffmanLengthCode(e);this.treeLiteral.writeCodeToStream(r);var n=Math.floor((r-261)/4);n>0&&n<=5&&this.pendingBufferWriteBits(e&(1<<n)-1,n);var o=this.huffmanDistanceCode(i);this.treeDistances.writeCodeToStream(o),(n=Math.floor(o/2-1))>0&&this.pendingBufferWriteBits(i&(1<<n)-1,n)}else this.treeLiteral.writeCodeToStream(e)}this.treeLiteral.writeCodeToStream(256)},t.prototype.pendingBufferWriteBits=function(t,e){var i=new Uint32Array(1);i[0]=this.pendingBufCache|t<<this.pendingBufBitsInCache,this.pendingBufCache=i[0],this.pendingBufBitsInCache+=e,this.pendingBufferFlushBits()},t.prototype.pendingBufferFlush=function(t){if(this.pendingBufferFlushBits(),this.pendingBufLength>0){var e=new Uint8Array(this.pendingBufLength);e.set(this.pendingBuffer.subarray(0,this.pendingBufLength),0),this.stream.push(e)}this.pendingBufLength=0},t.prototype.pendingBufferFlushBits=function(){for(var t=0;this.pendingBufBitsInCache>=8&&this.pendingBufLength<65536;)this.pendingBuffer[this.pendingBufLength++]=this.pendingBufCache,this.pendingBufCache>>=8,this.pendingBufBitsInCache-=8,t++;return t},t.prototype.pendingBufferWriteByteBlock=function(t,e,i){var r=t.subarray(e,e+i);this.pendingBuffer.set(r,this.pendingBufLength),this.pendingBufLength+=i},t.prototype.pendingBufferWriteShort=function(t){this.pendingBuffer[this.pendingBufLength++]=t,this.pendingBuffer[this.pendingBufLength++]=t>>8},t.prototype.pendingBufferAlignToByte=function(){this.pendingBufBitsInCache>0&&(this.pendingBuffer[this.pendingBufLength++]=this.pendingBufCache),this.pendingBufCache=0,this.pendingBufBitsInCache=0},t.initHuffmanTree=function(){for(var t=0;t<144;)El[t]=Ul.bitReverse(48+t<<8),kl[t++]=8;for(;t<256;)El[t]=Ul.bitReverse(256+t<<7),kl[t++]=9;for(;t<280;)El[t]=Ul.bitReverse(-256+t<<9),kl[t++]=7;for(;t<286;)El[t]=Ul.bitReverse(-88+t<<8),kl[t++]=8;for(t=0;t<30;t++)Bl[t]=Ul.bitReverse(t<<11),Fl[t]=5},t.prototype.close=function(){do{this.pendingBufferFlush(!0),this.compressData(!0)||(this.pendingBufferFlush(!0),this.pendingBufferAlignToByte(),this.noWrap||(this.pendingBufferWriteShortBytes(this.checkSum>>16),this.pendingBufferWriteShortBytes(65535&this.checkSum)),this.pendingBufferFlush(!0))}while(this.inputEnd!==this.inputOffset||0!==this.pendingBufLength)},t.prototype.destroy=function(){this.stream=[],this.stream=void 0,this.pendingBuffer=void 0,this.treeLiteral=void 0,this.treeDistances=void 0,this.treeCodeLengths=void 0,this.arrLiterals=void 0,this.arrDistances=void 0,this.hashHead=void 0,this.hashPrevious=void 0,this.dataWindow=void 0,this.inputBuffer=void 0,this.pendingBufLength=void 0,this.pendingBufCache=void 0,this.pendingBufBitsInCache=void 0,this.bufferPosition=void 0,this.extraBits=void 0,this.currentHash=void 0,this.matchStart=void 0,this.matchLength=void 0,this.matchPrevAvail=void 0,this.blockStart=void 0,this.stringStart=void 0,this.lookAhead=void 0,this.totalBytesIn=void 0,this.inputOffset=void 0,this.inputEnd=void 0,this.windowSize=void 0,this.windowMask=void 0,this.hashSize=void 0,this.hashMask=void 0,this.hashShift=void 0,this.maxDist=void 0,this.checkSum=void 0,this.noWrap=void 0},t.isHuffmanTreeInitiated=!1,t}(),Ul=function(){function t(t,e,i,r){this.writer=t,this.codeMinCount=i,this.maxLength=r,this.codeFrequency=new Uint16Array(e),this.lengthCount=new Int32Array(r)}return Object.defineProperty(t.prototype,"treeLength",{get:function(){return this.codeCount},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"codeLengths",{get:function(){return this.codeLength},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"codeFrequencies",{get:function(){return this.codeFrequency},enumerable:!0,configurable:!0}),t.prototype.setStaticCodes=function(t,e){var i=new Int16Array(t.length);i.set(t,0),this.codes=i;var r=new Uint8Array(e.length);r.set(e,0),this.codeLength=r},t.prototype.reset=function(){for(var t=0;t<this.codeFrequency.length;t++)this.codeFrequency[t]=0;this.codes=void 0,this.codeLength=void 0},t.prototype.writeCodeToStream=function(t){this.writer.pendingBufferWriteBits(65535&this.codes[t],this.codeLength[t])},t.prototype.buildCodes=function(){var e=new Int32Array(this.maxLength);this.codes=new Int16Array(this.codeCount);for(var i=0,r=0;r<this.maxLength;r++)e[r]=i,i+=this.lengthCount[r]<<15-r;for(var n=0;n<this.codeCount;n++){var o=this.codeLength[n];o>0&&(this.codes[n]=t.bitReverse(e[o-1]),e[o-1]+=1<<16-o)}},t.bitReverse=function(e){return t.reverseBits[15&e]<<12|t.reverseBits[e>>4&15]<<8|t.reverseBits[e>>8&15]<<4|t.reverseBits[e>>12]},t.prototype.getEncodedLength=function(){for(var t=0,e=0;e<this.codeFrequency.length;e++)t+=this.codeFrequency[e]*this.codeLength[e];return t},t.prototype.calculateBLFreq=function(t){for(var e,i,r,n=-1,o=0;o<this.codeCount;){r=1;var s=this.codeLength[o];for(0===s?(e=138,i=3):(e=6,i=3,n!==s&&(t.codeFrequency[s]++,r=0)),n=s,o++;o<this.codeCount&&n===this.codeLength[o]&&(o++,!(++r>=e)););r<i?t.codeFrequency[n]+=r:0!==n?t.codeFrequency[16]++:r<=10?t.codeFrequency[17]++:t.codeFrequency[18]++}},t.prototype.writeTree=function(t){for(var e,i,r,n=-1,o=0;o<this.codeCount;){r=1;var s=this.codeLength[o];for(0===s?(e=138,i=3):(e=6,i=3,n!==s&&(t.writeCodeToStream(s),r=0)),n=s,o++;o<this.codeCount&&n===this.codeLength[o]&&(o++,!(++r>=e)););if(r<i)for(;r-- >0;)t.writeCodeToStream(n);else 0!==n?(t.writeCodeToStream(16),this.writer.pendingBufferWriteBits(r-3,2)):r<=10?(t.writeCodeToStream(17),this.writer.pendingBufferWriteBits(r-3,3)):(t.writeCodeToStream(18),this.writer.pendingBufferWriteBits(r-11,7))}},t.prototype.buildTree=function(){for(var t=this.codeFrequency.length,e=new Int32Array(t),i=0,r=0,n=0;n<t;n++){var o=this.codeFrequency[n];if(0!==o){for(var s=i++,a=0;s>0&&this.codeFrequency[e[a=Math.floor((s-1)/2)]]>o;)e[s]=e[a],s=a;e[s]=n,r=n}}for(;i<2;)e[i++]=r<2?++r:0;this.codeCount=Math.max(r+1,this.codeMinCount);for(var l=i,h=new Int32Array(4*i-2),u=new Int32Array(2*i-1),c=0;c<i;c++){var p=e[c],d=2*c;h[d]=p,h[d+1]=-1,u[c]=this.codeFrequency[p]<<8,e[c]=c}this.constructHuffmanTree(e,i,u,l,h),this.buildLength(h)},t.prototype.constructHuffmanTree=function(t,e,i,r,n){do{for(var o=t[0],s=t[--e],a=i[s],l=0,h=1;h<e;)h+1<e&&i[t[h]]>i[t[h+1]]&&h++,t[l]=t[h],h=2*(l=h)+1;for(;(h=l)>0&&i[t[l=Math.floor((h-1)/2)]]>a;)t[h]=t[l];t[h]=s;var u=t[0];n[2*(s=r++)]=o,n[2*s+1]=u;var c=Math.min(255&i[o],255&i[u]);for(i[s]=a=i[o]+i[u]-c+1,l=0,h=1;h<e;)h+1<e&&i[t[h]]>i[t[h+1]]&&h++,t[l]=t[h],h=2*(l=h)+1;for(;(h=l)>0&&i[t[l=Math.floor((h-1)/2)]]>a;)t[h]=t[l];t[h]=s}while(e>1)},t.prototype.buildLength=function(t){this.codeLength=new Uint8Array(this.codeFrequency.length);for(var e=Math.floor(t.length/2),i=Math.floor((e+1)/2),r=0,n=0;n<this.maxLength;n++)this.lengthCount[n]=0;if(0!==(r=this.calculateOptimalCodeLength(t,r,e))){var o=this.maxLength-1;do{for(;0===this.lengthCount[--o];);do{this.lengthCount[o]--,this.lengthCount[++o]++,r-=1<<this.maxLength-1-o}while(r>0&&o<this.maxLength-1)}while(r>0);this.recreateTree(t,r,i)}},t.prototype.recreateTree=function(t,e,i){this.lengthCount[this.maxLength-1]+=e,this.lengthCount[this.maxLength-2]-=e;for(var r=2*i,n=this.maxLength;0!==n;n--)for(var o=this.lengthCount[n-1];o>0;){var s=2*t[r++];-1===t[s+1]&&(this.codeLength[t[s]]=n,o--)}},t.prototype.calculateOptimalCodeLength=function(t,e,i){var r=new Int32Array(i);r[i-1]=0;for(var n=i-1;n>=0;n--){var o=2*n+1;if(-1!==t[o]){(s=r[n]+1)>this.maxLength&&(s=this.maxLength,e++),r[t[o-1]]=r[t[o]]=s}else{var s=r[n];this.lengthCount[s-1]++,this.codeLength[t[o-1]]=r[n]}}return e},t.reverseBits=[0,8,4,12,2,10,6,14,1,9,5,13,3,11,7,15],t.huffCodeLengthOrders=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],t}(),_l=function(){function t(){}return t.checksumUpdate=function(e,i,r,n){var o=new Uint32Array(1);o[0]=e;for(var s=o[0],a=o[0]=65535&s,l=o[0]=s>>t.checkSumBitOffset;n>0;){var h=Math.min(n,t.checksumIterationCount);for(n-=h;--h>=0;)l+=a+=o[0]=255&i[r++];a%=t.checksumBase,l%=t.checksumBase}return s=l<<t.checkSumBitOffset|a},t.checkSumBitOffset=16,t.checksumBase=65521,t.checksumIterationCount=3800,t}(),Vl=function(){function t(t){this.buildTree(t)}return t.init=function(){var e,i;for(e=new Uint8Array(288),i=0;i<144;)e[i++]=8;for(;i<256;)e[i++]=9;for(;i<280;)e[i++]=7;for(;i<288;)e[i++]=8;for(t.m_LengthTree=new t(e),e=new Uint8Array(32),i=0;i<32;)e[i++]=5;t.m_DistanceTree=new t(e)},t.prototype.prepareData=function(e,i,r){for(var n=0,o=512,s=0;s<r.length;s++){var a=r[s];a>0&&e[a]++}for(var l=1;l<=t.MAX_BITLEN;l++)if(i[l]=n,n+=e[l]<<16-l,l>=10){o+=(130944&n)-(130944&i[l])>>16-l}return{code:n,treeSize:o}},t.prototype.treeFromData=function(e,i,r,n,o){for(var s=new Int16Array(o),a=512,l=t.MAX_BITLEN;l>=10;l--)for(var h=130944&n,u=130944&(n-=e[l]<<16-l);u<h;u+=128)s[zl.bitReverse(u)]=zl.bitConverterInt32ToInt16(-a<<4|l),a+=1<<l-9;for(u=0;u<r.length;u++){if(0!=(l=r[u])){n=i[l];var c=zl.bitReverse(n);if(l<=9)do{s[c]=zl.bitConverterInt32ToInt16(u<<4|l),c+=1<<l}while(c<512);else{var p=s[511&c],d=1<<(15&p);p=-(p>>4);do{s[p|c>>9]=zl.bitConverterInt32ToInt16(u<<4|l),c+=1<<l}while(c<d)}i[l]=n+(1<<16-l)}}return s},t.prototype.buildTree=function(t){var e=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],r=this.prepareData(e,i,t);this.m_Tree=this.treeFromData(e,i,t,r.code,r.treeSize)},t.prototype.unpackSymbol=function(t){var e,i;if((e=t.peekBits(9))>=0){if((i=this.m_Tree[e])>=0)return t.skipBits(15&i),i>>4;var r=-(i>>4),n=15&i;if((e=t.peekBits(n))>=0)return i=this.m_Tree[r|e>>9],t.skipBits(15&i),i>>4;var o=t.availableBits;return e=t.peekBits(o),(15&(i=this.m_Tree[r|e>>9]))<=o?(t.skipBits(15&i),i>>4):-1}o=t.availableBits;return e=t.peekBits(o),(i=this.m_Tree[e])>=0&&(15&i)<=o?(t.skipBits(15&i),i>>4):-1},Object.defineProperty(t,"lengthTree",{get:function(){return this.m_LengthTree},enumerable:!0,configurable:!0}),Object.defineProperty(t,"distanceTree",{get:function(){return this.m_DistanceTree},enumerable:!0,configurable:!0}),t.MAX_BITLEN=15,t}(),Yl=function(){function t(){}return t.ChecksumUpdate=function(t,e,i,r){for(var n=t,o=65535&n,s=n>>this.DEF_CHECKSUM_BIT_OFFSET;r>0;){var a=Math.min(r,this.DEF_CHECKSUM_ITERATIONSCOUNT);for(r-=a;--a>=0;)s+=o+=255&e[i++];o%=this.DEF_CHECKSUM_BASE,s%=this.DEF_CHECKSUM_BASE}t=n=s<<this.DEF_CHECKSUM_BIT_OFFSET|o},t.ChecksumGenerate=function(e,i,r){return t.ChecksumUpdate(1,e,i,r),1},t.DEF_CHECKSUM_BIT_OFFSET=16,t.DEF_CHECKSUM_BASE=65521,t.DEF_CHECKSUM_ITERATIONSCOUNT=3800,t}(),Ql=function(){function t(t,e){if(this.defaultHuffmanDynamicTree=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],this.DEF_HEADER_METHOD_MASK=3840,this.DEF_HEADER_INFO_MASK=61440,this.DEF_HEADER_FLAGS_FCHECK=31,this.DEF_HEADER_FLAGS_FDICT=32,this.DEF_HEADER_FLAGS_FLEVEL=192,this.DEF_MAX_WINDOW_SIZE=65535,this.DEF_HUFFMAN_REPEATE_MAX=258,this.DEF_HUFFMAN_END_BLOCK=256,this.DEF_HUFFMAN_LENGTH_MINIMUMCODE=257,this.DEF_HUFFMAN_LENGTH_MAXIMUMCODE=285,this.DEF_HUFFMAN_DISTANCE_MAXIMUMCODE=29,this.mCheckSum=1,this.tBuffer=0,this.mBufferedBits=0,this.mTempBuffer=new Uint8Array(4),this.mBlockBuffer=new Uint8Array(this.DEF_MAX_WINDOW_SIZE),this.mbNoWrap=!1,this.mWindowSize=0,this.mCurrentPosition=0,this.mDataLength=0,this.mbCanReadNextBlock=!0,this.mbCanReadMoreData=!0,this.mbCheckSumRead=!1,null==t)throw new DOMException("stream");if(0===t.length)throw new DOMException("stream - string can not be empty");Vl.init(),this.mInputStream=new Wl(t),this.mbNoWrap=e,this.mbNoWrap||this.readZLibHeader(),this.decodeBlockHeader()}return Object.defineProperty(t.prototype,"mBuffer",{get:function(){return this.tBuffer},set:function(t){this.tBuffer=t},enumerable:!0,configurable:!0}),t.prototype.peekBits=function(t){if(t<0)throw new DOMException("count","Bits count can not be less than zero.");if(t>32)throw new DOMException("count","Count of bits is too large.");if(this.mBufferedBits<t&&this.fillBuffer(),this.mBufferedBits<t)return-1;var e=~(4294967295<<t);return zl.bitConverterUintToInt32(this.mBuffer&e)},t.prototype.fillBuffer=function(){var t=4-(this.mBufferedBits>>3)-(0!=(7&this.mBufferedBits)?1:0);if(0!==t)for(var e=this.mInputStream.read(this.mTempBuffer,0,t),i=0;i<e;i++)this.mBuffer=zl.bitConverterInt32ToUint(this.mBuffer|zl.bitConverterInt32ToUint(this.mTempBuffer[i]<<this.mBufferedBits)),this.mBufferedBits+=8},t.prototype.skipBits=function(t){if(t<0)throw new DOMException("count","Bits count can not be less than zero.");0!==t&&(t>=this.mBufferedBits?(t-=this.mBufferedBits,this.mBufferedBits=0,this.mBuffer=0,t>0&&(this.mInputStream.position+=t>>3,(t&=7)>0&&(this.fillBuffer(),this.mBufferedBits-=t,this.mBuffer=zl.bitConverterInt32ToUint(this.mBuffer>>>t)))):(this.mBufferedBits-=t,this.mBuffer=zl.bitConverterInt32ToUint(this.mBuffer>>>t)))},Object.defineProperty(t.prototype,"availableBits",{get:function(){return this.mBufferedBits},enumerable:!0,configurable:!0}),t.prototype.readZLibHeader=function(){var t=this.readInt16();if(-1===t)throw new DOMException("Header of the stream can not be read.");if(t%31!=0)throw new DOMException("Header checksum illegal");if(2048!=(t&this.DEF_HEADER_METHOD_MASK))throw new DOMException("Unsupported compression method.");if(this.mWindowSize=Math.pow(2,8+((t&this.DEF_HEADER_INFO_MASK)>>12)),this.mWindowSize>65535)throw new DOMException("Unsupported window size for deflate compression method.");if((t&this.DEF_HEADER_FLAGS_FDICT)>>5==1)throw new DOMException("Custom dictionary is not supported at the moment.")},t.prototype.readInt16=function(){var t=this.readBits(8)<<8;return t|=this.readBits(8)},t.prototype.readBits=function(t){var e=this.peekBits(t);return-1===e?-1:(this.mBufferedBits-=t,this.mBuffer=zl.bitConverterInt32ToUint(this.mBuffer>>>t),e)},t.prototype.decodeBlockHeader=function(){if(!this.mbCanReadNextBlock)return!1;var t=this.readBits(1);if(-1===t)return!1;var e=this.readBits(2);if(-1===e)return!1;switch(this.mbCanReadNextBlock=0===t,e){case 0:this.mbReadingUncompressed=!0,this.skipToBoundary();var i=this.readInt16Inverted();if(i!==(65535^this.readInt16Inverted()))throw new DOMException("Wrong block length.");if(i>65535)throw new DOMException("Uncompressed block length can not be more than 65535.");this.mUncompressedDataLength=i,this.mCurrentLengthTree=null,this.mCurrentDistanceTree=null;break;case 1:this.mbReadingUncompressed=!1,this.mUncompressedDataLength=-1,this.mCurrentLengthTree=Vl.lengthTree,this.mCurrentDistanceTree=Vl.distanceTree;break;case 2:this.mbReadingUncompressed=!1,this.mUncompressedDataLength=-1;var r=this.decodeDynamicHeader(this.mCurrentLengthTree,this.mCurrentDistanceTree);this.mCurrentLengthTree=r.lengthTree,this.mCurrentDistanceTree=r.distanceTree;break;default:throw new DOMException("Wrong block type.")}return!0},t.prototype.skipToBoundary=function(){this.mBuffer=zl.bitConverterInt32ToUint(this.mBuffer>>>(7&this.mBufferedBits)),this.mBufferedBits&=-8},t.prototype.readInt16Inverted=function(){var t=this.readBits(8);return t|=this.readBits(8)<<8},t.prototype.decodeDynamicHeader=function(e,i){var r=0,n=this.readBits(5),o=this.readBits(5),s=this.readBits(4);if(n<0||o<0||s<0)throw new DOMException("Wrong dynamic huffman codes.");var a=(n+=257)+(o+=1),l=new Uint8Array(a),h=new Uint8Array(19);s+=4;for(var u=0;u<s;){var c=this.readBits(3);if(c<0)throw new DOMException("Wrong dynamic huffman codes.");h[this.defaultHuffmanDynamicTree[u++]]=c}var p=new Vl(h);for(u=0;;){var d=void 0,g=!1;for(d=p.unpackSymbol(this);0==(-16&d);){if(l[u++]=r=d,u===a){g=!0;break}d=p.unpackSymbol(this)}if(g)break;if(d<0)throw new DOMException("Wrong dynamic huffman codes.");if(d>=17)r=0;else if(0===u)throw new DOMException("Wrong dynamic huffman codes.");var f=d-16,y=t.DEF_HUFFMAN_DYNTREE_REPEAT_BITS[f],m=this.readBits(y);if(m<0)throw new DOMException("Wrong dynamic huffman codes.");if(m+=t.DEF_HUFFMAN_DYNTREE_REPEAT_MINIMUMS[f],u+m>a)throw new DOMException("Wrong dynamic huffman codes.");for(;m-- >0;)l[u++]=r;if(u===a)break}var M=new Uint8Array(n);return M.set(l.subarray(0,n),0),e=new Vl(M),M=l.slice(n,n+o),i=new Vl(M),{lengthTree:e,distanceTree:i}},t.prototype.readHuffman=function(){for(var e=this.DEF_MAX_WINDOW_SIZE-(this.mDataLength-this.mCurrentPosition),i=!1,r={};e>=this.DEF_HUFFMAN_REPEATE_MAX;){var n=void 0;for(n=this.mCurrentLengthTree.unpackSymbol(this);0==(-256&n);){if(r[(this.mDataLength+1)%this.DEF_MAX_WINDOW_SIZE]=n,this.mBlockBuffer[this.mDataLength++%this.DEF_MAX_WINDOW_SIZE]=n,i=!0,--e<this.DEF_HUFFMAN_REPEATE_MAX)return!0;n=this.mCurrentLengthTree.unpackSymbol(this)}if(n<this.DEF_HUFFMAN_LENGTH_MINIMUMCODE){if(n<this.DEF_HUFFMAN_END_BLOCK)throw new DOMException("Illegal code.");var o=i?1:0;this.mbCanReadMoreData=this.decodeBlockHeader();return!!(o|(this.mbCanReadMoreData?1:0))}if(n>this.DEF_HUFFMAN_LENGTH_MAXIMUMCODE)throw new DOMException("Illegal repeat code length.");var s=t.DEF_HUFFMAN_REPEAT_LENGTH_BASE[n-this.DEF_HUFFMAN_LENGTH_MINIMUMCODE],a=t.DEF_HUFFMAN_REPEAT_LENGTH_EXTENSION[n-this.DEF_HUFFMAN_LENGTH_MINIMUMCODE];if(a>0){if((h=this.readBits(a))<0)throw new DOMException("Wrong data.");s+=h}if((n=this.mCurrentDistanceTree.unpackSymbol(this))<0||n>t.DEF_HUFFMAN_REPEAT_DISTANCE_BASE.length)throw new DOMException("Wrong distance code.");var l=t.DEF_HUFFMAN_REPEAT_DISTANCE_BASE[n];if((a=t.DEF_HUFFMAN_REPEAT_DISTANCE_EXTENSION[n])>0){var h;if((h=this.readBits(a))<0)throw new DOMException("Wrong data.");l+=h}for(var u=0;u<s;u++)this.mBlockBuffer[this.mDataLength%this.DEF_MAX_WINDOW_SIZE]=this.mBlockBuffer[(this.mDataLength-l)%this.DEF_MAX_WINDOW_SIZE],this.mDataLength++,e--;i=!0}return i},t.prototype.read=function(t,e,i){if(null==t)throw new DOMException("buffer");if(e<0||e>t.length-1)throw new DOMException("offset","Offset does not belong to specified buffer.");if(i<0||i>t.length-e)throw new DOMException("length","Length is illegal.");for(var r=i;i>0;)if(this.mCurrentPosition<this.mDataLength){var n=this.mCurrentPosition%this.DEF_MAX_WINDOW_SIZE,o=Math.min(this.DEF_MAX_WINDOW_SIZE-n,this.mDataLength-this.mCurrentPosition);o=Math.min(o,i),zl.arrayCopy(this.mBlockBuffer,n,t,e,o),this.mCurrentPosition+=o,e+=o,i-=o}else{if(!this.mbCanReadMoreData)break;var s=this.mDataLength;if(this.mbReadingUncompressed)if(0===this.mUncompressedDataLength){if(this.mbCanReadMoreData=this.decodeBlockHeader(),!this.mbCanReadMoreData)break}else{n=this.mDataLength%this.DEF_MAX_WINDOW_SIZE;var a=Math.min(this.mUncompressedDataLength,this.DEF_MAX_WINDOW_SIZE-n),l=this.readPackedBytes(this.mBlockBuffer,n,a);if(a!==l)throw new DOMException("Not enough data in stream.");this.mUncompressedDataLength-=l,this.mDataLength+=l}else if(!this.readHuffman())break;if(s<this.mDataLength){var h=s%this.DEF_MAX_WINDOW_SIZE,u=this.mDataLength%this.DEF_MAX_WINDOW_SIZE;h<u?this.checksumUpdate(this.mBlockBuffer,h,u-h):(this.checksumUpdate(this.mBlockBuffer,h,this.DEF_MAX_WINDOW_SIZE-h),u>0&&this.checksumUpdate(this.mBlockBuffer,0,u))}}if(!this.mbCanReadMoreData&&!this.mbCheckSumRead&&!this.mbNoWrap){this.skipToBoundary();if(this.readInt32()!==this.mCheckSum)throw new DOMException("Checksum check failed.");this.mbCheckSumRead=!0}return r-i},t.prototype.readPackedBytes=function(t,e,i){if(null==t)throw new DOMException("buffer");if(e<0||e>t.length-1)throw new DOMException('offset", "Offset can not be less than zero or greater than buffer length - 1.');if(i<0)throw new DOMException('length", "Length can not be less than zero.');if(i>t.length-e)throw new DOMException('length", "Length is too large.');if(0!=(7&this.mBufferedBits))throw new DOMException("Reading of unalligned data is not supported.");if(0===i)return 0;for(var r=0;this.mBufferedBits>0&&i>0;)t[e++]=this.mBuffer,this.mBufferedBits-=8,this.mBuffer=zl.bitConverterInt32ToUint(this.mBuffer>>>8),i--,r++;return i>0&&(r+=this.mInputStream.read(t,e,i)),r},t.prototype.readInt32=function(){var t=this.readBits(8)<<24;return t|=this.readBits(8)<<16,t|=this.readBits(8)<<8,t|=this.readBits(8)},t.prototype.checksumUpdate=function(t,e,i){Yl.ChecksumUpdate(this.mCheckSum,t,e,i)},t.DEF_REVERSE_BITS=new Uint8Array([0,8,4,12,2,10,6,14,1,9,5,13,3,11,7,15]),t.DEF_HUFFMAN_DYNTREE_REPEAT_MINIMUMS=[3,3,11],t.DEF_HUFFMAN_DYNTREE_REPEAT_BITS=[2,3,7],t.DEF_HUFFMAN_REPEAT_LENGTH_BASE=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],t.DEF_HUFFMAN_REPEAT_LENGTH_EXTENSION=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],t.DEF_HUFFMAN_REPEAT_DISTANCE_BASE=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],t.DEF_HUFFMAN_REPEAT_DISTANCE_EXTENSION=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],t}(),Wl=function(){function t(t){this.position=0,this.inputStream=new Uint8Array(t.buffer)}return Object.defineProperty(t.prototype,"length",{get:function(){return this.inputStream.buffer.byteLength},enumerable:!0,configurable:!0}),t.prototype.read=function(t,e,i){var r=new Uint8Array(this.inputStream.buffer,this.position+e).subarray(0,i);return t.set(r,0),this.position+=r.byteLength,r.byteLength},t.prototype.readByte=function(){return this.inputStream[this.position++]},t.prototype.write=function(t,e,i){zl.arrayCopy(t,0,this.inputStream,this.position+e,i),this.position+=i},t.prototype.toByteArray=function(){return new Uint8Array(this.inputStream.buffer)},t}(),Gl=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Hl=function(t){function e(e,i){var r=t.call(this,e)||this;return r.dicPrefix="stream",r.dicSuffix="endstream",r.clonedObject2=null,r.bCompress=!0,void 0!==e||void 0!==i?(r.dataStream2=[],r.dataStream2=i,r.bCompress2=!1):(r.dataStream2=[],r.bCompress2=!0),r}return Gl(e,t),Object.defineProperty(e.prototype,"internalStream",{get:function(){return this.dataStream2},set:function(t){this.dataStream2=[],this.dataStream2=t,this.modify()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"compress",{get:function(){return this.bCompress},set:function(t){this.bCompress=t,this.modify()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this.dataStream2},set:function(t){this.dataStream2=[],this.dataStream2=t,this.modify()},enumerable:!0,configurable:!0}),e.prototype.clearStream=function(){this.internalStream=[],this.items.containsKey(this.dictionaryProperties.filter)&&this.remove(this.dictionaryProperties.filter),this.bCompress=!0,this.modify()},e.prototype.write=function(t){if(null==t)throw new Error("ArgumentNullException:text");if(t.length<=0)throw new Error("ArgumentException: Can not write an empty string, text");this.dataStream2.push(t),this.modify()},e.prototype.writeBytes=function(t){if(null===t)throw new Error("ArgumentNullException:data");if(t.length<=0)throw new Error("ArgumentException: Can not write an empty bytes, data");for(var e="",i=0;i<t.length;i++)e+=String.fromCharCode(t[i]);this.dataStream2.push(e),this.modify()},e.prototype.onCmapBeginSave=function(){this.cmapBeginSave.sender.cmapBeginSave()},e.prototype.onFontProgramBeginSave=function(){this.fontProgramBeginSave.sender.fontProgramBeginSave()},e.prototype.compressContent=function(t,e){if(this.bCompress){for(var i=[],r=0;r<t.length;r++)i.push(t.charCodeAt(r));var n=new Uint8Array(i),o=new Rl;o.write(n,0,n.length),o.close(),t=o.getCompressedString,this.addFilter(this.dictionaryProperties.flatedecode)}return t},e.prototype.addFilter=function(t){var e=this.items.getValue(this.dictionaryProperties.filter);if(e instanceof Xl){e=e.object}var i=e,r=e;null!=r&&((i=new Sl).insert(0,r),this.items.setValue(this.dictionaryProperties.filter,i)),r=new pl(t),null==i?this.items.setValue(this.dictionaryProperties.filter,r):i.insert(0,r)},e.prototype.save=function(e){void 0!==this.cmapBeginSave&&this.onCmapBeginSave(),void 0!==this.fontProgramBeginSave&&this.onFontProgramBeginSave();for(var i="",r=0;r<this.data.length;r++)i+=this.data[r];i.length>1&&!this.isResource&&(i="q\r\n"+i+"Q\r\n");var n=(i=this.compressContent(i,e)).length;this.items.setValue(this.dictionaryProperties.length,new Nl(n)),t.prototype.save.call(this,e,!1),e.write(this.dicPrefix),e.write(dl.newLine),i.length>0&&e.write(i),e.write(dl.newLine),e.write(this.dicSuffix),e.write(dl.newLine)},e.bytesToString=function(t){for(var e="",i=0;i<t.length;i++)e+=String.fromCharCode(t[i]);return e},e}(fl),ql=function(){return function(t){this.sender=t}}(),$l=function(){return function(t){this.sender=t}}();!function(t){!function(t){t[t.None=0]="None",t[t.Ascii=1]="Ascii",t[t.Unicode=2]="Unicode"}(t.ForceEncoding||(t.ForceEncoding={}));var e;!function(t){t[t.StringValue=0]="StringValue",t[t.ByteBuffer=1]="ByteBuffer"}(e||(e={}))}(ll||(ll={}));var Kl,Jl=function(){function t(t){if(this.bHex=!1,this.position1=-1,this.clonedObject1=null,this.bDecrypted=!1,this.isParentDecrypted=!1,this.isPacked=!1,this.isFormField=!1,this.isColorSpace=!1,this.isHexString=!0,void 0===t)this.bHex=!1;else if(!(t.length>0&&"0xfeff"===t[0])){this.stringValue=t,this.data=[];for(var e=0;e<t.length;++e)this.data.push(t.charCodeAt(e))}}return Object.defineProperty(t.prototype,"hex",{get:function(){return this.bHex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.stringValue},set:function(t){this.stringValue=t,this.data=null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this.status1},set:function(t){this.status1=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSaving",{get:function(){return this.isSaving1},set:function(t){this.isSaving1=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectCollectionIndex",{get:function(){return this.index1},set:function(t){this.index1=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clonedObject",{get:function(){return this.clonedObject1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.position1},set:function(t){this.position1=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"CrossTable",{get:function(){return this.crossTable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"converted",{get:function(){return this.bConverted},set:function(t){this.bConverted=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"encode",{get:function(){return this.bForceEncoding},set:function(t){this.bForceEncoding=t},enumerable:!0,configurable:!0}),t.bytesToHex=function(t){if(null==t)return"";return""},t.prototype.save=function(e){if(null===e)throw new Error("ArgumentNullException : writer");void 0!==this.encode&&this.encode===ll.ForceEncoding.Ascii?e.write(this.pdfEncode()):e.write(t.stringMark[0]+this.value+t.stringMark[1])},t.prototype.pdfEncode=function(){var e="";if(void 0!==this.encode&&this.encode===ll.ForceEncoding.Ascii){for(var i=this.escapeSymbols(this.value),r=0;r<i.length;r++)e+=String.fromCharCode(i[r]);e=t.stringMark[0]+e+t.stringMark[1]}else e=this.value;return e},t.prototype.escapeSymbols=function(t){for(var e=[],i=0;i<t.length;i++){var r=t.charCodeAt(i);switch(r){case 40:case 41:e.push(92),e.push(r);break;case 13:e.push(92),e.push(114);break;case 92:e.push(92),e.push(r);break;default:e.push(r)}}return e},t.prototype.clone=function(e){if(null!==this.clonedObject1&&this.clonedObject1.CrossTable===e)return this.clonedObject1;this.clonedObject1=null;var i=new t(this.stringValue);return i.bHex=this.bHex,i.crossTable=e,i.isColorSpace=this.isColorSpace,this.clonedObject1=i,i},t.toUnicodeArray=function(t,e){if(null==t)throw new Error("Argument Null Exception : value");for(var i=[],r=0;r<t.length;r++){var n=t.charCodeAt(r);i.push(n/256>>>0),i.push(255&n)}return i},t.byteToString=function(t){if(null==t)throw new Error("Argument Null Exception : stream");for(var e="",i=0;i<t.length;++i)e+=String.fromCharCode(t[i]);return e},t.stringMark="()",t.hexStringMark="<>",t.hexFormatPattern="{0:X2}",t}(),Zl=function(){function t(t,e){this.index3=-1,this.position3=-1,this.objNumber=0,this.genNumber=0,"number"==typeof t&&"number"==typeof e?(this.objNumber=t,this.genNumber=e):(this.objNumber=Number(t),this.genNumber=Number(e))}return Object.defineProperty(t.prototype,"status",{get:function(){return this.status3},set:function(t){this.status3=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSaving",{get:function(){return this.isSaving3},set:function(t){this.isSaving3=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectCollectionIndex",{get:function(){return this.index3},set:function(t){this.index3=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.position3},set:function(t){this.position3=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clonedObject",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.save=function(t){t.write(this.toString())},t.prototype.toString=function(){return this.objNumber.toString()+" "+this.genNumber.toString()+" R"},t.prototype.clone=function(t){return null},t}(),Xl=function(){function t(t,e){this.index4=-1,this.position4=-1,this.objectIndex=-1,this.dictionaryProperties=new gl,this.initialize(t)}return Object.defineProperty(t.prototype,"status",{get:function(){return this.status4},set:function(t){this.status4=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSaving",{get:function(){return this.isSaving4},set:function(t){this.isSaving4=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectCollectionIndex",{get:function(){return this.index4},set:function(t){this.index4=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.position4},set:function(t){this.position4=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clonedObject",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"object",{get:function(){return this.primitiveObject},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"reference",{get:function(){return this.pdfReference},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.objectIndex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.primitiveObject},enumerable:!0,configurable:!0}),t.prototype.initialize=function(t){if(t instanceof Sl||t instanceof fl||t instanceof pl||t instanceof Nl||t instanceof Hl||t instanceof Zl||t instanceof Jl)this.primitiveObject=t;else{var e=t;this.initialize(e.element)}},t.prototype.save=function(t){t.position;var e=t.document.crossTable;this.object.isSaving=!0;e.getReference(this.object).save(t)},t.prototype.clone=function(t){return null},t}(),th=function(){function t(){this.action=null,this.dictionaryProperties=new gl,this.initialize()}return Object.defineProperty(t.prototype,"next",{get:function(){return this.action},set:function(t){this.action=t,this.dictionary.items.setValue(this.dictionaryProperties.next,new Xl(this.action))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dictionary",{get:function(){return void 0===this.pdfDictionary&&(this.pdfDictionary=new fl),this.pdfDictionary},enumerable:!0,configurable:!0}),t.prototype.initialize=function(){this.dictionary.items.setValue(this.dictionaryProperties.type,new pl(this.dictionaryProperties.action))},Object.defineProperty(t.prototype,"element",{get:function(){return this.dictionary},enumerable:!0,configurable:!0}),t}(),eh=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),ih=function(t){function e(e){var i=t.call(this)||this;return i.uniformResourceIdentifier="",i}return eh(e,t),Object.defineProperty(e.prototype,"uri",{get:function(){return this.uniformResourceIdentifier},set:function(t){this.uniformResourceIdentifier=t,this.dictionary.items.setValue(this.dictionaryProperties.uri,new Jl(this.uniformResourceIdentifier))},enumerable:!0,configurable:!0}),e.prototype.initialize=function(){t.prototype.initialize.call(this),this.dictionary.items.setValue(this.dictionaryProperties.s,new pl(this.dictionaryProperties.uri))},e}(th);!function(t){t[t.Left=0]="Left",t[t.Center=1]="Center",t[t.Right=2]="Right"}(Kl||(Kl={}));var rh;!function(t){t[t.Top=0]="Top",t[t.Middle=1]="Middle",t[t.Bottom=2]="Bottom"}(rh||(rh={}));var nh;!function(t){t[t.Left=0]="Left",t[t.Center=1]="Center",t[t.Right=2]="Right",t[t.Justify=3]="Justify"}(nh||(nh={}));var oh;!function(t){t[t.Fill=0]="Fill",t[t.Stroke=1]="Stroke",t[t.FillStroke=2]="FillStroke",t[t.None=3]="None",t[t.ClipFlag=4]="ClipFlag",t[t.ClipFill=4]="ClipFill",t[t.ClipStroke=5]="ClipStroke",t[t.ClipFillStroke=6]="ClipFillStroke",t[t.Clip=7]="Clip"}(oh||(oh={}));var sh;!function(t){t[t.Miter=0]="Miter",t[t.Round=1]="Round",t[t.Bevel=2]="Bevel"}(sh||(sh={}));var ah;!function(t){t[t.Flat=0]="Flat",t[t.Round=1]="Round",t[t.Square=2]="Square"}(ah||(ah={}));var lh;!function(t){t[t.Solid=0]="Solid",t[t.Dash=1]="Dash",t[t.Dot=2]="Dot",t[t.DashDot=3]="DashDot",t[t.DashDotDot=4]="DashDotDot",t[t.Custom=5]="Custom"}(lh||(lh={}));var hh;!function(t){t[t.Winding=0]="Winding",t[t.Alternate=1]="Alternate"}(hh||(hh={}));var uh;!function(t){t[t.Rgb=0]="Rgb",t[t.Cmyk=1]="Cmyk",t[t.GrayScale=2]="GrayScale",t[t.Indexed=3]="Indexed"}(uh||(uh={}));var ch;!function(t){t[t.Normal=0]="Normal",t[t.Multiply=1]="Multiply",t[t.Screen=2]="Screen",t[t.Overlay=3]="Overlay",t[t.Darken=4]="Darken",t[t.Lighten=5]="Lighten",t[t.ColorDodge=6]="ColorDodge",t[t.ColorBurn=7]="ColorBurn",t[t.HardLight=8]="HardLight",t[t.SoftLight=9]="SoftLight",t[t.Difference=10]="Difference",t[t.Exclusion=11]="Exclusion",t[t.Hue=12]="Hue",t[t.Saturation=13]="Saturation",t[t.Color=14]="Color",t[t.Luminosity=15]="Luminosity"}(ch||(ch={}));var ph;!function(t){t[t.Centimeter=0]="Centimeter",t[t.Pica=1]="Pica",t[t.Pixel=2]="Pixel",t[t.Point=3]="Point",t[t.Inch=4]="Inch",t[t.Document=5]="Document",t[t.Millimeter=6]="Millimeter"}(ph||(ph={}));var dh;!function(t){t[t.Fit=0]="Fit",t[t.Center=1]="Center",t[t.Stretch=2]="Stretch",t[t.Tile=3]="Tile"}(dh||(dh={}));var gh;!function(t){t[t.None=0]="None",t[t.LeftToRight=1]="LeftToRight",t[t.RightToLeft=2]="RightToLeft"}(gh||(gh={}));var fh,yh=function(){function t(e,i,r,n){void 0===e?void 0!==i&&void 0!==r&&void 0!==n?this.assignRGB(i,r,n):this.filled=!1:e instanceof t?(this.redColor=e.r,this.greenColor=e.g,this.blueColor=e.b,this.grayColor=e.gray,this.alpha=e.alpha,this.filled=0!==this.alpha):"number"==typeof e&&void 0===i&&void 0===r&&void 0===n?(e<0&&(e=0),e>1&&(e=1),this.redColor=e*t.maxColourChannelValue,this.greenColor=e*t.maxColourChannelValue,this.blueColor=e*t.maxColourChannelValue,this.cyanColor=e,this.magentaColor=e,this.yellowColor=e,this.blackColor=e,this.grayColor=e,this.alpha=t.maxColourChannelValue,this.filled=!0):void 0===n?this.assignRGB(e,i,r):this.assignRGB(i,r,n,e)}return t.prototype.assignRGB=function(e,i,r,n){void 0===e||void 0===i||void 0===r?this.filled=!1:(this.cyanColor=0,this.magentaColor=0,this.yellowColor=0,this.blackColor=0,this.grayColor=0,this.redColor=e,this.greenColor=i,this.blueColor=r,this.alpha=void 0===n?t.maxColourChannelValue:n,this.filled=!0,this.assignCMYK(e,i,r))},t.prototype.assignCMYK=function(e,i,r){var n=e/t.maxColourChannelValue,o=i/t.maxColourChannelValue,s=r/t.maxColourChannelValue,a=Nl.min(1-n,1-o,1-s),l=1===a?0:(1-n-a)/(1-a),h=1===a?0:(1-o-a)/(1-a),u=1===a?0:(1-s-a)/(1-a);this.blackColor=a,this.cyanColor=l,this.magentaColor=h,this.yellowColor=u},Object.defineProperty(t.prototype,"r",{get:function(){return this.redColor},set:function(t){this.redColor=t,this.assignCMYK(this.redColor,this.greenColor,this.blueColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"red",{get:function(){return this.r/t.maxColourChannelValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"b",{get:function(){return this.blueColor},set:function(t){this.blueColor=t,this.assignCMYK(this.redColor,this.greenColor,this.blueColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"blue",{get:function(){return this.b/t.maxColourChannelValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"c",{get:function(){return this.cyanColor},set:function(t){this.cyanColor=t<0?0:t>1?1:t,this.assignRGB(this.cyanColor,this.magentaColor,this.yellowColor,this.blackColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"k",{get:function(){return this.blackColor},set:function(t){this.blackColor=t<0?0:t>1?1:t,this.assignRGB(this.cyanColor,this.magentaColor,this.yellowColor,this.blackColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"m",{get:function(){return this.magentaColor},set:function(t){this.magentaColor=t<0?0:t>1?1:t,this.assignRGB(this.cyanColor,this.magentaColor,this.yellowColor,this.blackColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this.yellowColor},set:function(t){this.yellowColor=t<0?0:t>1?1:t,this.assignRGB(this.cyanColor,this.magentaColor,this.yellowColor,this.blackColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"g",{get:function(){return this.greenColor},set:function(t){this.greenColor=t,this.assignCMYK(this.redColor,this.greenColor,this.blueColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"green",{get:function(){return this.g/t.maxColourChannelValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gray",{get:function(){return(this.redColor+this.greenColor+this.blueColor)/(3*t.maxColourChannelValue)},set:function(e){this.grayColor=e<0?0:e>1?1:e,this.r=this.grayColor*t.maxColourChannelValue,this.g=this.grayColor*t.maxColourChannelValue,this.b=this.grayColor*t.maxColourChannelValue,this.assignCMYK(this.redColor,this.greenColor,this.blueColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEmpty",{get:function(){return!this.filled},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"a",{get:function(){return this.alpha},set:function(t){this.alpha=t<0?0:t,this.filled=!0},enumerable:!0,configurable:!0}),t.prototype.toString=function(t,e){if(this.isEmpty)return"";var i="";switch(t){case uh.Rgb:i=this.rgbToString(e);break;case uh.GrayScale:i=this.grayScaleToString(e);break;case uh.Cmyk:i=this.cmykToString(e)}return i},t.prototype.grayScaleToString=function(e){var i=this.gray,r="",n=null;return null==(n=e?t.grayStringsSroke.containsKey(i)?t.grayStringsSroke.getValue(i):null:t.grayStringsFill.containsKey(i)?t.grayStringsFill.getValue(i):null)?e&&(r=i.toString()+" G",t.grayStringsSroke.setValue(i,r)):r=n.toString(),r+dl.newLine},t.prototype.rgbToString=function(e){var i=this.r,r=this.g,n=this.b,o=(i<<16)+(r<<8)+n;e&&(o+=1<<24);var s="",a=null;if(t.rgbStrings.containsKey(o)&&(a=t.rgbStrings.getValue(o)),null==a){var l=i/t.maxColourChannelValue,h=r/t.maxColourChannelValue,u=n/t.maxColourChannelValue;s=e?l.toString()+" "+h.toString()+" "+u.toString()+" RG":l.toString()+" "+h.toString()+" "+u.toString()+" rg",t.rgbStrings.setValue(o,s)}else s=a.toString();return s+dl.newLine},t.prototype.cmykToString=function(t){var e=this.c,i=this.m,r=this.y,n=this.b;return e.toString()+" "+i.toString()+" "+r.toString()+" "+n.toString()+" K"+dl.newLine},t.prototype.toArray=function(t){var e=new Sl;switch(t){case uh.Rgb:e.add(new Nl(this.red)),e.add(new Nl(this.green)),e.add(new Nl(this.blue))}return e},t.rgbStrings=new cl,t.grayStringsSroke=new cl,t.grayStringsFill=new cl,t.maxColourChannelValue=255,t}(),mh=function(){return function(t,e){void 0===t?(this.x=0,this.y=0):(this.x=null!==t?t:0,this.y=null!==e?e:0)}}(),Mh=function(){return function(t,e){void 0===e?(this.height=0,this.width=0):(this.height=null!==e?e:0,this.width=null!==t?t:0)}}(),vh=function(){return function(t,e,i,r){if(typeof t==typeof t&&void 0===t)this.x=0,this.y=0,this.height=0,this.width=0;else if(t instanceof mh&&e instanceof Mh&&void 0===i){var n=t;this.x=n.x,this.y=n.y;var o=e;this.height=o.height,this.width=o.width}else{var s=t,a=e,l=i,h=r;this.x=s,this.y=a,this.height=h,this.width=l}}}(),bh=function(){function t(t,e,i,r){this.left=t,this.top=e,this.right=i,this.bottom=r}return Object.defineProperty(t.prototype,"width",{get:function(){return this.right-this.left},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topLeft",{get:function(){return new mh(this.left,this.top)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return new Mh(this.width,this.height)},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.topLeft+"x"+this.size},t}(),wh=function(){function t(){}return t.prototype.clone=function(){return this},t}(),Nh=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Sh=function(t){function e(e){var i=t.call(this)||this;return i.pdfColor=e,i}return Nh(e,t),Object.defineProperty(e.prototype,"color",{get:function(){return this.pdfColor},set:function(t){this.pdfColor=t},enumerable:!0,configurable:!0}),e.prototype.monitorChanges=function(t,e,i,r,n){if(null==e)throw new Error("ArgumentNullException:streamWriter");var o=!1;return o=!0,e.setColorAndSpace(this.pdfColor,n,!1),o},e.prototype.resetChanges=function(t){t.setColorAndSpace(new yh(0,0,0),uh.Rgb,!1)},e}(wh);!function(t){t[t.Regular=0]="Regular",t[t.Bold=1]="Bold",t[t.Italic=2]="Italic",t[t.Underline=4]="Underline",t[t.Strikeout=8]="Strikeout"}(fh||(fh={}));var Dh;!function(t){t[t.Helvetica=0]="Helvetica",t[t.Courier=1]="Courier",t[t.TimesRoman=2]="TimesRoman",t[t.Symbol=3]="Symbol",t[t.ZapfDingbats=4]="ZapfDingbats"}(Dh||(Dh={}));var jh;!function(t){t[t.Standard=0]="Standard",t[t.TrueType=1]="TrueType",t[t.TrueTypeEmbedded=2]="TrueTypeEmbedded"}(jh||(jh={}));var Ih;!function(t){t[t.None=0]="None",t[t.Word=1]="Word",t[t.WordOnly=2]="WordOnly",t[t.Character=3]="Character"}(Ih||(Ih={}));var Oh;!function(t){t[t.None=0]="None",t[t.SuperScript=1]="SuperScript",t[t.SubScript=2]="SubScript"}(Oh||(Oh={}));var xh;!function(t){t[t.Unknown=0]="Unknown",t[t.StandardEncoding=1]="StandardEncoding",t[t.MacRomanEncoding=2]="MacRomanEncoding",t[t.MacExpertEncoding=3]="MacExpertEncoding",t[t.WinAnsiEncoding=4]="WinAnsiEncoding",t[t.PdfDocEncoding=5]="PdfDocEncoding",t[t.IdentityH=6]="IdentityH"}(xh||(xh={}));var Ch;!function(t){t[t.Apple=0]="Apple",t[t.Microsoft=4]="Microsoft",t[t.Trimmed=6]="Trimmed"}(Ch||(Ch={}));var zh;!function(t){t[t.Unknown=0]="Unknown",t[t.Symbol=1]="Symbol",t[t.Unicode=2]="Unicode",t[t.Macintosh=3]="Macintosh"}(zh||(zh={}));var Th;!function(t){t[t.AppleUnicode=0]="AppleUnicode",t[t.Macintosh=1]="Macintosh",t[t.Iso=2]="Iso",t[t.Microsoft=3]="Microsoft"}(Th||(Th={}));var Lh;!function(t){t[t.Undefined=0]="Undefined",t[t.Unicode=1]="Unicode"}(Lh||(Lh={}));var Ah;!function(t){t[t.Roman=0]="Roman",t[t.Japanese=1]="Japanese",t[t.Chinese=2]="Chinese"}(Ah||(Ah={}));var Ph;!function(t){t[t.FixedPitch=1]="FixedPitch",t[t.Serif=2]="Serif",t[t.Symbolic=4]="Symbolic",t[t.Script=8]="Script",t[t.Nonsymbolic=32]="Nonsymbolic",t[t.Italic=64]="Italic",t[t.ForceBold=262144]="ForceBold"}(Ph||(Ph={}));var Eh;!function(t){t[t.Arg1And2AreWords=1]="Arg1And2AreWords",t[t.ArgsAreXyValues=2]="ArgsAreXyValues",t[t.RoundXyToGrid=4]="RoundXyToGrid",t[t.WeHaveScale=8]="WeHaveScale",t[t.Reserved=16]="Reserved",t[t.MoreComponents=32]="MoreComponents",t[t.WeHaveAnXyScale=64]="WeHaveAnXyScale",t[t.WeHaveTwoByTwo=128]="WeHaveTwoByTwo",t[t.WeHaveInstructions=256]="WeHaveInstructions",t[t.UseMyMetrics=512]="UseMyMetrics"}(Eh||(Eh={}));var kh,Bh=function(){function t(t,e){this.scalingFactor=100,this.wordWrapType=Ih.Word,this.internalLineLimit=!0,this.wordWrapType=Ih.Word,void 0!==t&&"string"!=typeof t&&(this.textAlignment=t),void 0!==e&&(this.verticalAlignment=e)}return Object.defineProperty(t.prototype,"alignment",{get:function(){return this.textAlignment},set:function(t){this.textAlignment=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textDirection",{get:function(){return this.direction},set:function(t){this.direction=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineAlignment",{get:function(){return void 0===this.verticalAlignment||null==this.verticalAlignment?rh.Top:this.verticalAlignment},set:function(t){this.verticalAlignment=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rightToLeft",{get:function(){return void 0!==this.isRightToLeft&&null!=this.isRightToLeft&&this.isRightToLeft},set:function(t){this.isRightToLeft=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"characterSpacing",{get:function(){return void 0===this.internalCharacterSpacing||null==this.internalCharacterSpacing?0:this.internalCharacterSpacing},set:function(t){this.internalCharacterSpacing=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wordSpacing",{get:function(){return void 0===this.internalWordSpacing||null==this.internalWordSpacing?0:this.internalWordSpacing},set:function(t){this.internalWordSpacing=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineSpacing",{get:function(){return void 0===this.leading||null==this.leading?0:this.leading},set:function(t){this.leading=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clipPath",{get:function(){return void 0!==this.clip&&null!=this.clip&&this.clip},set:function(t){this.clip=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"subSuperScript",{get:function(){return void 0===this.pdfSubSuperScript||null==this.pdfSubSuperScript?Oh.None:this.pdfSubSuperScript},set:function(t){this.pdfSubSuperScript=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paragraphIndent",{get:function(){return void 0===this.internalParagraphIndent||null==this.internalParagraphIndent?0:this.internalParagraphIndent},set:function(t){this.internalParagraphIndent=t,this.firstLineIndent=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineLimit",{get:function(){return this.internalLineLimit},set:function(t){this.internalLineLimit=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"measureTrailingSpaces",{get:function(){return void 0!==this.trailingSpaces&&null!=this.trailingSpaces&&this.trailingSpaces},set:function(t){this.trailingSpaces=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"noClip",{get:function(){return void 0!==this.isNoClip&&null!=this.isNoClip&&this.isNoClip},set:function(t){this.isNoClip=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wordWrap",{get:function(){return this.wordWrapType},set:function(t){this.wordWrapType=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"horizontalScalingFactor",{get:function(){return this.scalingFactor},set:function(t){if(t<=0)throw new Error("ArgumentOutOfRangeException:The scaling factor cant be less of equal to zero, ScalingFactor");this.scalingFactor=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstLineIndent",{get:function(){return void 0===this.initialLineIndent||null==this.initialLineIndent?0:this.initialLineIndent},set:function(t){this.initialLineIndent=t},enumerable:!0,configurable:!0}),t.prototype.clone=function(){return this},t}(),Fh=function(){function t(t){if(this.currentPosition=0,null==t)throw new Error("ArgumentNullException:text");this.text=t}return Object.defineProperty(t.prototype,"length",{get:function(){return this.text.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this.currentPosition===this.text.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.currentPosition},set:function(t){this.currentPosition=t},enumerable:!0,configurable:!0}),t.getCharsCount=function(t,e){if("string"==typeof e){if(null==t)throw new Error("ArgumentNullException:wholeText");for(var i=0,r=0;-1!==(r=t.indexOf(e,r));)i++,r++;return i}if(null==t)throw new Error("ArgumentNullException:text");if(null==e)throw new Error("ArgumentNullException:symbols");for(var n=0,o=0,s=t.length;o<s;o++){var a=t[o];this.contains(e,a)&&n++}return n},t.prototype.readLine=function(){for(var t=this.currentPosition;t<this.length;){var e=this.text[t];switch(e){case"\r":case"\n":var i=this.text.substr(this.currentPosition,t-this.currentPosition);return this.currentPosition=t+1,"\r"===e&&this.currentPosition<this.length&&"\n"===this.text[this.currentPosition]&&this.currentPosition++,i}t++}if(t>this.currentPosition){var r=this.text.substr(this.currentPosition,t-this.currentPosition);return this.currentPosition=t,r}return null},t.prototype.peekLine=function(){var t=this.currentPosition,e=this.readLine();return this.currentPosition=t,e},t.prototype.readWord=function(){for(var t=this.currentPosition;t<this.length;){var e=this.text[t];switch(e){case"\r":case"\n":var i=this.text.substr(this.currentPosition,t-this.currentPosition);return this.currentPosition=t+1,"\r"===e&&this.currentPosition<this.length&&"\n"===this.text[this.currentPosition]&&this.currentPosition++,i;case" ":case"\t":t===this.currentPosition&&t++;var r=this.text.substr(this.currentPosition,t-this.currentPosition);return this.currentPosition=t,r}t++}if(t>this.currentPosition){var n=this.text.substr(this.currentPosition,t-this.currentPosition);return this.currentPosition=t,n}return null},t.prototype.peekWord=function(){var t=this.currentPosition,e=this.readWord();return this.currentPosition=t,e},t.prototype.read=function(t){if(void 0===t){var e="0";return this.end||(e=this.text[this.currentPosition],this.currentPosition++),e}for(var i=0,r="";!this.end&&i<t;){r+=e=this.read(),i++}return r},t.prototype.peek=function(){var t="0";return this.end||(t=this.text[this.currentPosition]),t},t.prototype.close=function(){this.text=null},t.prototype.readToEnd=function(){var t;return t=0===this.currentPosition?this.text:this.text.substr(this.currentPosition,this.length-this.currentPosition),this.currentPosition=this.length,t},t.contains=function(t,e){for(var i=!1,r=0;r<t.length;r++)if(t[r]===e){i=!0;break}return i},t.whiteSpace=" ",t.tab="\t",t.spaces=[t.whiteSpace,t.tab],t.whiteSpacePattern="^[ \t]+$",t}(),Rh=function(){function t(){this.isOverloadWithPosition=!1}return t.prototype.layout=function(t,e,i,r,n,o,s){if(r instanceof vh){this.initialize(t,e,i,r,n),this.isOverloadWithPosition=o,this.clientSize=s;var a=this.doLayout();return this.clear(),a}this.initialize(t,e,i,r),this.isOverloadWithPosition=n,this.clientSize=o;a=this.doLayout();return this.clear(),a},t.prototype.initialize=function(t,e,i,r,n){if("number"==typeof n){if(null==t)throw new Error("ArgumentNullException:text");if(null==e)throw new Error("ArgumentNullException:font");this.text=t,this.font=e,this.format=i,this.size=new Mh(r.width,r.height),this.rectangle=r,this.pageHeight=n,this.reader=new Fh(t)}else this.initialize(t,e,i,new vh(new mh(0,0),r),0)},t.prototype.clear=function(){this.font=null,this.format=null,this.reader.close(),this.reader=null,this.text=null},t.prototype.doLayout=function(){for(var t=new Uh,e=new Uh,i=[],r=this.reader.peekLine(),n=this.getLineIndent(!0);null!=r;){if(null!==(e=this.layoutLine(r,n))||void 0!==e){var o=0,s=this.copyToResult(t,e,i,o),a=s.success;if(o=s.numInserted,!a){this.reader.read(o);break}}this.reader.readLine(),r=this.reader.peekLine(),n=this.getLineIndent(!1)}return this.finalizeResult(t,i),t},t.prototype.getLineIndent=function(t){var e=0;return null!=this.format&&(e=t?this.format.firstLineIndent:this.format.paragraphIndent,e=this.size.width>0?Math.min(this.size.width,e):e),e},t.prototype.getLineHeight=function(){var t=this.font.height;return null!=this.format&&0!==this.format.lineSpacing&&(t=this.format.lineSpacing+this.font.height),t},t.prototype.getLineWidth=function(t){return this.font.getLineWidth(t,this.format)},t.prototype.layoutLine=function(t,e){var i=new Uh;i.layoutLineHeight=this.getLineHeight();var r=[],n=this.size.width,o=this.getLineWidth(t)+e,s=kh.FirstParagraphLine,a=!0;if(n<=0||Math.round(o)<=Math.round(n))this.addToLineResult(i,r,t,o,kh.NewLineBreak|s);else{var l="",h="";o=e;var u=e,c=new Fh(t),p=c.peekWord();for(p.length!==c.length&&" "===p&&(h+=p,l+=p,c.position+=1,p=c.peekWord());null!=p;){h+=p;var d=this.getLineWidth(h.toString())+u;if(" "===h.toString()&&(h="",d=0),d>n){if(this.getWrapType()===Ih.None)break;if(h.length===p.length){if(this.getWrapType()===Ih.WordOnly){i.textRemainder=t.substring(c.position);break}if(1===h.length){l+=p;break}a=!1,h="",p=c.peek().toString();continue}if(this.getLineWidth(p.toString())>n?this.format.wordWrap=Ih.Character:void 0!==this.format&&null!==this.format&&(this.format.wordWrap=Ih.Word),this.getWrapType()===Ih.Character&&a)a=!1,h="",h+=l.toString(),p=c.peek().toString();else{" "!==(g=l.toString())&&this.addToLineResult(i,r,g,o,kh.LayoutBreak|s),this.isOverloadWithPosition&&(n=this.clientSize.width),h="",l="",o=0,u=0,d=0,s=kh.None,p=a?p:c.peekWord(),a=!0}}else l+=p,o=d,a?(c.readWord(),p=c.peekWord()):(c.read(),p=c.peek().toString())}if(l.length>0){var g=l.toString();this.addToLineResult(i,r,g,o,kh.NewLineBreak|kh.LastParagraphLine)}c.close()}i.layoutLines=[];for(var f=0;f<r.length;f++)i.layoutLines.push(r[f]);return r=[],i},t.prototype.addToLineResult=function(t,e,i,r,n){var o=new _h;o.text=i,o.width=r,o.lineType=n,e.push(o);var s=t.actualSize;s.height+=this.getLineHeight(),s.width=Math.max(s.width,r),t.size=s},t.prototype.copyToResult=function(t,e,i,r){var n=!0,o=null!=this.format&&!this.format.lineLimit,s=t.actualSize.height,a=this.size.height;if(this.pageHeight>0&&a+this.rectangle.y>this.pageHeight&&(a=this.rectangle.y-this.pageHeight,a=Math.max(a,-a)),r=0,null!=e.lines)for(var l=0,h=e.lines.length;l<h;l++){var u=s+e.lineHeight;if(!(u<=a||a<=0||o)){n=!1;break}var c=e.lines[l];r+=c.text.length,c=this.trimLine(c,0===i.length),i.push(c);var p=t.actualSize;p.width=Math.max(p.width,c.width),t.size=p,s=u}if(s!=t.size.height){var d=t.actualSize;d.height=s,t.size=d}return{success:n,numInserted:r}},t.prototype.finalizeResult=function(t,e){t.layoutLines=[];for(var i=0;i<e.length;i++)t.layoutLines.push(e[i]);t.layoutLineHeight=this.getLineHeight(),this.reader.end||(t.textRemainder=this.reader.readToEnd()),e=[]},t.prototype.trimLine=function(t,e){var i=t.text,r=t.width;t.lineType,kh.FirstParagraphLine,null==this.format||this.format.rightToLeft;return(i=i.trim()).length!==t.text.length&&(r=this.getLineWidth(i),(t.lineType&kh.FirstParagraphLine)>0&&(r+=this.getLineIndent(e))),t.text=i,t.width=r,t},t.prototype.getWrapType=function(){return null!=this.format?this.format.wordWrap:Ih.Word},t}(),Uh=function(){function t(){}return Object.defineProperty(t.prototype,"remainder",{get:function(){return this.textRemainder},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"actualSize",{get:function(){return void 0===this.size&&(this.size=new Mh(0,0)),this.size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lines",{get:function(){return this.layoutLines},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineHeight",{get:function(){return this.layoutLineHeight},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"empty",{get:function(){return null==this.layoutLines||0===this.layoutLines.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineCount",{get:function(){return this.empty?0:this.layoutLines.length},enumerable:!0,configurable:!0}),t}(),_h=function(){function t(){}return Object.defineProperty(t.prototype,"lineType",{get:function(){return this.type},set:function(t){this.type=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.content},set:function(t){this.content=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.lineWidth},set:function(t){this.lineWidth=t},enumerable:!0,configurable:!0}),t}();!function(t){t[t.None=0]="None",t[t.NewLineBreak=1]="NewLineBreak",t[t.LayoutBreak=2]="LayoutBreak",t[t.FirstParagraphLine=4]="FirstParagraphLine",t[t.LastParagraphLine=8]="LastParagraphLine"}(kh||(kh={}));var Vh,Yh=function(){function t(t,e){this.fontStyle=fh.Regular,"number"==typeof t&&void 0===e?this.fontSize=t:(this.fontSize=t,this.setStyle(e))}return Object.defineProperty(t.prototype,"name",{get:function(){return this.metrics.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.fontSize},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.metrics.getHeight(null)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return this.fontStyle},set:function(t){this.fontStyle=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bold",{get:function(){return(this.style&fh.Bold)>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"italic",{get:function(){return(this.style&fh.Italic)>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strikeout",{get:function(){return(this.style&fh.Strikeout)>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"underline",{get:function(){return(this.style&fh.Underline)>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"metrics",{get:function(){return this.fontMetrics},set:function(t){this.fontMetrics=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.pdfFontInternals},enumerable:!0,configurable:!0}),t.prototype.measureString=function(t,e,i,r,n){if("string"==typeof t&&void 0===e)return this.measureString(t,null);if("string"==typeof t&&(e instanceof Bh||null==e)&&void 0===i&&void 0===r){var o=e;return this.measureString(t,o,0,0)}if("string"==typeof t&&(e instanceof Bh||null==e)&&"number"==typeof i&&"number"==typeof r){o=e;return this.measureString(t,0,o,i,r)}if("string"==typeof t&&"number"==typeof e&&(i instanceof Bh||null==i)&&"number"==typeof r&&"number"==typeof n){var s=new Mh(e,0),a=i;return this.measureString(t,s,a,r,n)}if(null==t)throw Error('ArgumentNullException("text")');o=e,a=i;var l=(new Rh).layout(t,this,a,o,!1,new Mh(0,0));return r=t.length,n=l.empty?0:l.lines.length,l.actualSize},t.prototype.equalsTo=function(t){return this.equalsToFont(t)},t.prototype.getInternals=function(){return this.pdfFontInternals},t.prototype.setInternals=function(t){if(null==t)throw new Error("ArgumentNullException:internals");this.pdfFontInternals=t},t.prototype.setStyle=function(t){this.fontStyle=t},t.prototype.applyFormatSettings=function(t,e,i){var r=i;if(null!=e&&i>0&&(0!==e.characterSpacing&&(r+=(t.length-1)*e.characterSpacing),0!==e.wordSpacing)){var n=Fh.spaces;r+=Fh.getCharsCount(t,n)*e.wordSpacing}return r},t.charSizeMultiplier=.001,t.syncObject=new Object,t}(),Qh=function(){function t(t){this.streamWriter=t}return Object.defineProperty(t.prototype,"document",{get:function(){return this.pdfDocument},set:function(t){this.pdfDocument=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.streamWriter.buffer.size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this.streamWriter.buffer.size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stream",{get:function(){return this.streamWriter},enumerable:!0,configurable:!0}),t.prototype.write=function(t){var e=t;this.streamWriter.write(e)},t}();!function(t){t[t.None=0]="None",t[t.Registered=1]="Registered"}(Vh||(Vh={}));var Wh,Gh=function(){function t(){this.objectCollections=[],this.mainObjectCollection=new cl,this.primitiveObjectCollection=new cl}return Object.defineProperty(t.prototype,"count",{get:function(){return this.objectCollections.length},enumerable:!0,configurable:!0}),t.prototype.items=function(t){return this.objectCollections[t]},Object.defineProperty(t.prototype,"outIsNew",{get:function(){return this.isNew},enumerable:!0,configurable:!0}),t.prototype.add=function(t){var e=new Hh(t);this.objectCollections.push(e),this.primitiveObjectCollection.containsKey(t)||this.primitiveObjectCollection.setValue(t,this.objectCollections.length-1),t.position=this.index=this.objectCollections.length-1,t.status=Vh.Registered},t.prototype.lookFor=function(t){var e=-1;if(-1!==t.position)return t.position;if(this.primitiveObjectCollection.containsKey(t)&&this.count===this.primitiveObjectCollection.size())e=this.primitiveObjectCollection.getValue(t);else for(var i=this.count-1;i>=0;i--){if(this.objectCollections[i].object===t){e=i;break}}return e},t.prototype.getReference=function(t,e){this.index=this.lookFor(t);this.isNew=!1;return{reference:this.objectCollections[this.index].reference,wasNew:e}},t.prototype.trySetReference=function(t,e,i){this.index=this.lookFor(t);return this.objectCollections[this.index].setReference(e),!0},t.prototype.destroy=function(){for(var t=0,e=this.objectCollections;t<e.length;t++){var i=e[t];void 0!==i&&(i.pdfObject.position=-1,i.pdfObject.isSaving=void 0,i.pdfObject.objectCollectionIndex=void 0,i.pdfObject.position=void 0)}this.objectCollections=[],this.mainObjectCollection=new cl,this.primitiveObjectCollection=new cl},t}(),Hh=function(){function t(t,e){this.pdfObject=t,this.pdfReference=e}return Object.defineProperty(t.prototype,"object",{get:function(){return this.pdfObject},set:function(t){this.pdfObject=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"reference",{get:function(){return this.pdfReference},enumerable:!0,configurable:!0}),t.prototype.setReference=function(t){this.pdfReference=t},t}(),qh=function(){function t(t){this.isStreamCopied=!1,t instanceof Yc&&(this.document=t)}return Object.defineProperty(t.prototype,"pdfObjects",{get:function(){return this.objects},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"crossTable",{get:function(){return this.pdfCrossTable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentSavingObj",{get:function(){return this.currentSavingObject},set:function(t){this.currentSavingObject=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"catalog",{get:function(){return this.pdfCatalog},set:function(t){this.pdfCatalog=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewerPreferences",{get:function(){return this.pdfCatalog.viewerPreferences},enumerable:!0,configurable:!0}),t.prototype.setMainObjectCollection=function(t){this.objects=t},t.prototype.setCrossTable=function(t){this.pdfCrossTable=t},t.prototype.setCatalog=function(t){this.pdfCatalog=t},t.prototype.save=function(t){var e=this,i=new xl(!0),r=new Cl(i);if(void 0===t){var n=new xl(!0),o=new Cl(n);return new Promise(function(t,i){var r={};r.blobData=new Blob([e.document.docSave(o,!0)],{type:"application/pdf"}),t(r)})}this.document.docSave(r,t,!0)},t.prototype.clone=function(){return this.document},t}();!function(t){t[t.Free=0]="Free",t[t.Normal=1]="Normal",t[t.Packed=2]="Packed"}(Wh||(Wh={}));var $h,Kh=function(){function t(t){this.currentPosition=-1,this.value=t}return Object.defineProperty(t.prototype,"status",{get:function(){return this.objectStatus},set:function(t){this.objectStatus=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSaving",{get:function(){return this.saving},set:function(t){this.saving=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectCollectionIndex",{get:function(){return this.index},set:function(t){this.index=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.currentPosition},set:function(t){this.currentPosition=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clonedObject",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.save=function(t){t.write(this.boolToStr(this.value))},t.prototype.clone=function(e){return new t(this.value)},t.prototype.boolToStr=function(t){return t?"true":"false"},t}(),Jh=function(){function t(t){this._dictionaryProperties=new gl,this._centerWindow=!1,this._fitWindow=!1,this._displayTitle=!1,this._splitWindow=!1,this._hideMenuBar=!1,this._hideToolBar=!1,this._hideWindowUI=!1,this._pageMode=$h.UseNone,this._pageLayout=Zh.SinglePage,this._dictionary=new fl,this._duplex=Xh.None,this._catalog=t}return Object.defineProperty(t.prototype,"centerWindow",{get:function(){return this._centerWindow},set:function(t){this._centerWindow=t,this._dictionary.items.setValue(this._dictionaryProperties.centerWindow,new Kh(this._centerWindow))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"displayTitle",{get:function(){return this._displayTitle},set:function(t){this._displayTitle=t,this._dictionary.items.setValue(this._dictionaryProperties.displayTitle,new Kh(this._displayTitle))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fitWindow",{get:function(){return this._fitWindow},set:function(t){this._fitWindow=t,this._dictionary.items.setValue(this._dictionaryProperties.fitWindow,new Kh(this._fitWindow))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideMenuBar",{get:function(){return this._hideMenuBar},set:function(t){this._hideMenuBar=t,this._dictionary.items.setValue(this._dictionaryProperties.hideMenuBar,new Kh(this._hideMenuBar))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideToolBar",{get:function(){return this._hideToolBar},set:function(t){this._hideToolBar=t,this._dictionary.items.setValue(this._dictionaryProperties.hideToolBar,new Kh(this._hideToolBar))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideWindowUI",{get:function(){return this._hideWindowUI},set:function(t){this._hideWindowUI=t,this._dictionary.items.setValue(this._dictionaryProperties.hideWindowUI,new Kh(this._hideWindowUI))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageMode",{get:function(){return this._pageMode},set:function(t){this._pageMode=t,this._catalog.items.setValue(this._dictionaryProperties.pageMode,new pl(this._mapPageMode(this._pageMode)))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"duplex",{get:function(){return this._duplex},set:function(t){this._duplex=t,this._catalog.items.setValue(this._dictionaryProperties.duplex,new pl(this._mapDuplexMode(this._duplex)))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageLayout",{get:function(){return this._pageLayout},set:function(t){this._pageLayout=t,this._catalog.items.setValue(this._dictionaryProperties.pageLayout,new pl(this._mapPageLayout(this._pageLayout)))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageScaling",{get:function(){return this._pageScaling},set:function(t){this._pageScaling=t,this._pageScaling===tu.AppDefault&&this._dictionary.items.containsKey(this._dictionaryProperties.printScaling)?this._dictionary.items.remove(this._dictionaryProperties.printScaling):this._pageScaling===tu.None&&this._dictionary.items.setValue(this._dictionaryProperties.printScaling,new pl("None"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._dictionary},enumerable:!0,configurable:!0}),t.prototype._mapDuplexMode=function(t){switch(t){case Xh.Simplex:return"Simplex";case Xh.DuplexFlipShortEdge:return"DuplexFlipShortEdge";case Xh.DuplexFlipLongEdge:return"DuplexFlipLongEdge";case Xh.None:return"None"}},t.prototype._mapPageMode=function(t){switch(t){case $h.UseNone:return"UseNone";case $h.UseOutlines:return"UseOutlines";case $h.UseThumbs:return"UseThumbs";case $h.FullScreen:return"FullScreen";case $h.UseOC:return"UseOC";case $h.UseAttachments:return"UseAttachments"}},t.prototype._mapPageLayout=function(t){switch(t){case Zh.SinglePage:return"SinglePage";case Zh.OneColumn:return"OneColumn";case Zh.TwoColumnLeft:return"TwoColumnLeft";case Zh.TwoColumnRight:return"TwoColumnRight";case Zh.TwoPageLeft:return"TwoPageLeft";case Zh.TwoPageRight:return"TwoPageRight"}},t}();!function(t){t[t.UseNone=0]="UseNone",t[t.UseOutlines=1]="UseOutlines",t[t.UseThumbs=2]="UseThumbs",t[t.FullScreen=3]="FullScreen",t[t.UseOC=4]="UseOC",t[t.UseAttachments=5]="UseAttachments"}($h||($h={}));var Zh;!function(t){t[t.SinglePage=0]="SinglePage",t[t.OneColumn=1]="OneColumn",t[t.TwoColumnLeft=2]="TwoColumnLeft",t[t.TwoColumnRight=3]="TwoColumnRight",t[t.TwoPageLeft=4]="TwoPageLeft",t[t.TwoPageRight=5]="TwoPageRight"}(Zh||(Zh={}));var Xh;!function(t){t[t.Simplex=0]="Simplex",t[t.DuplexFlipShortEdge=1]="DuplexFlipShortEdge",t[t.DuplexFlipLongEdge=2]="DuplexFlipLongEdge",t[t.None=3]="None"}(Xh||(Xh={}));var tu;!function(t){t[t.AppDefault=0]="AppDefault",t[t.None=1]="None"}(tu||(tu={}));var eu,iu=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),ru=function(t){function e(){var e=t.call(this)||this;return e.sections=null,e.tempDictionaryProperties=new gl,e.items.setValue((new gl).type,new pl("Catalog")),e}return iu(e,t),Object.defineProperty(e.prototype,"pages",{get:function(){return this.sections},set:function(t){t.element;this.sections=t,this.items.setValue(this.tempDictionaryProperties.pages,new Xl(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"viewerPreferences",{get:function(){return null!==this._viewerPreferences&&void 0!==this._viewerPreferences||(this._viewerPreferences=new Jh(this),this.items.setValue(this.tempDictionaryProperties.viewerPreferences,new Xl(this._viewerPreferences.element))),this._viewerPreferences},enumerable:!0,configurable:!0}),e}(fl),nu=function(){function t(){this.objects=new cl,this.maxGenNumIndex=0,this.objectCount=0,this.dictionaryProperties=new gl}return Object.defineProperty(t.prototype,"isMerging",{get:function(){return this.merging},set:function(t){this.merging=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"trailer",{get:function(){return null==this.internalTrailer&&(this.internalTrailer=new Hl),this.internalTrailer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"document",{get:function(){return this.pdfDocument},set:function(t){this.pdfDocument=t,this.items=this.pdfDocument.pdfObjects},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pdfObjects",{get:function(){return this.items},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectCollection",{get:function(){return this.pdfDocument.pdfObjects},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return this.objectCount},set:function(t){this.objectCount=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nextObjNumber",{get:function(){return this.count=this.count+1,this.count},enumerable:!0,configurable:!0}),t.prototype.save=function(t,e){this.saveHead(t),this.mappedReferences=null,this.objects.clear(),this.markTrailerReferences(),this.saveObjects(t);var i=this.count,r=t.position;this.registerObject(0,new Zl(0,-1),!0);t.write(dl.xref),t.write(dl.newLine),this.saveSections(t),this.saveTrailer(t,this.count,0),this.saveTheEndess(t,r),this.count=i;for(var n=0;n<this.objectCollection.count;++n){this.objectCollection.items(n).object.isSaving=!1}if(void 0===e)return t.stream.buffer;t.stream.save(e)},t.prototype.saveTheEndess=function(t,e){t.write(dl.newLine+dl.startxref+dl.newLine),t.write(e.toString()+dl.newLine),t.write(dl.eof+dl.newLine)},t.prototype.saveTrailer=function(t,e,i){t.write(dl.trailer+dl.newLine);var r=this.trailer;r.items.setValue(this.dictionaryProperties.size,new Nl(this.objectCount+1)),(r=new fl(r)).setEncrypt(!1),r.save(t)},t.prototype.saveSections=function(t){var e=0,i=0;do{i=this.prepareSubsection(e),this.saveSubsection(t,e,i),e+=i}while(0!==i)},t.prototype.saveSubsection=function(t,e,i){if(!(i<=0||e>=this.count)){t.write(e+" "+(i+1)+dl.newLine);for(var r=e;r<=e+i;++r){var n=this.objects.getValue(r),o="";o=n.type===Wh.Free?this.getItem(n.offset,65535,!0):this.getItem(n.offset,n.generation,!1),t.write(o)}}},t.prototype.getItem=function(t,e,i){var r="",n=10-t.toString().length;e<=0&&(e=0);for(var o=5-e.toString().length<=0?0:5-e.toString().length,s=0;s<n;s++)r+="0";r=r+t.toString()+" ";for(s=0;s<o;s++)r+="0";return r=r+e.toString()+" ",r=r+(i?dl.f:dl.n)+dl.newLine},t.prototype.prepareSubsection=function(t){for(var e,i=0,r=this.count,n=0;n<this.document.pdfObjects.count;n++)this.document.pdfObjects.items(n).reference.toString().split(" ");if(t>=r)return i;for(e=t;e<r;++e)break;for(t=e;e<r;++e)++i;return i},t.prototype.markTrailerReferences=function(){this.trailer.items.keys(),this.trailer.items.values()},t.prototype.saveHead=function(t){var e=this.generateFileVersion(t.document);t.write("%PDF-"+e),t.write(dl.newLine)},t.prototype.generateFileVersion=function(t){return"1."+4..toString()},t.prototype.getReference=function(t,e){if(void 0===e){return this.getReference(t,!1)}return this.getSubReference(t,e)},t.prototype.getSubReference=function(t,e){var i,r=!1,n=null;if(this.items.count>0&&t.objectCollectionIndex>0&&this.items.count>t.objectCollectionIndex-1){var o=this.document.pdfObjects.getReference(t,i);n=o.reference,i=o.wasNew}if(i=null==n&&t.status!==Vh.Registered,null==n){var s=this.nextObjNumber;n=new Zl(s,0);if(i){this.document.pdfObjects.add(t),this.document.pdfObjects.trySetReference(t,n,void 0);var a=this.document.pdfObjects.count-1,l=this.document.pdfObjects.objectCollections[a].reference.objNumber,h=this.document.pdfObjects.objectCollections[this.document.pdfObjects.count-1];this.document.pdfObjects.mainObjectCollection.setValue(l,h),t.position=-1}else this.document.pdfObjects.trySetReference(t,n,void 0);t.objectCollectionIndex=n.objNumber,t.status=Vh.None,r=!0}return r||this.bForceNew,n},t.prototype.saveObjects=function(t){for(var e=this.objectCollection,i=0;i<e.count;++i){var r=e.items(i).object;r.isSaving=!0,this.saveIndirectObject(r,t)}},t.prototype.saveIndirectObject=function(t,e){var i=this.getReference(t);t instanceof ru&&this.trailer.items.setValue(this.dictionaryProperties.root,i),this.pdfDocument.currentSavingObj=i;t.getArchive(),this.registerObject(e.position,i),this.doSaveObject(t,i,e)},t.prototype.doSaveObject=function(t,e,i){i.length;i.write(e.objNumber.toString()),i.write(dl.whiteSpace),i.write(e.genNumber.toString()),i.write(dl.whiteSpace),i.write(dl.obj),i.write(dl.newLine),t.save(i);i.stream;i.write(dl.endObj),i.write(dl.newLine)},t.prototype.registerObject=function(t,e,i){"boolean"==typeof i?(this.objects.setValue(e.objNumber,new ou(t,e,i)),this.maxGenNumIndex=Math.max(this.maxGenNumIndex,e.genNumber)):void 0===i&&(this.objects.setValue(e.objNumber,new ou(t,e)),this.maxGenNumIndex=Math.max(this.maxGenNumIndex,e.genNumber))},t.dereference=function(t){return null!=t&&(t=t.object),t},t}(),ou=function(){function t(t,e,i){var r=t;this.offsetNumber=r;var n=e;this.generation=n.genNumber,this.object=n.objNumber,this.type=void 0===i?Wh.Normal:Wh.Free}return Object.defineProperty(t.prototype,"objectNumber",{get:function(){return this.object},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"offset",{get:function(){return this.offsetNumber},enumerable:!0,configurable:!0}),t}(),su=function(){function t(){}return t.letter=new Mh(612,792),t.note=new Mh(540,720),t.legal=new Mh(612,1008),t.a0=new Mh(2380,3368),t.a1=new Mh(1684,2380),t.a2=new Mh(1190,1684),t.a3=new Mh(842,1190),t.a4=new Mh(595,842),t.a5=new Mh(421,595),t.a6=new Mh(297,421),t.a7=new Mh(210,297),t.a8=new Mh(148,210),t.a9=new Mh(105,148),t.a10=new Mh(74,105),t.b0=new Mh(2836,4008),t.b1=new Mh(2004,2836),t.b2=new Mh(1418,2004),t.b3=new Mh(1002,1418),t.b4=new Mh(709,1002),t.b5=new Mh(501,709),t.archE=new Mh(2592,3456),t.archD=new Mh(1728,2592),t.archC=new Mh(1296,1728),t.archB=new Mh(864,1296),t.archA=new Mh(648,864),t.flsa=new Mh(612,936),t.halfLetter=new Mh(396,612),t.letter11x17=new Mh(792,1224),t.ledger=new Mh(1224,792),t}();!function(t){t[t.Portrait=0]="Portrait",t[t.Landscape=1]="Landscape"}(eu||(eu={}));var au;!function(t){t[t.RotateAngle0=0]="RotateAngle0",t[t.RotateAngle90=1]="RotateAngle90",t[t.RotateAngle180=2]="RotateAngle180",t[t.RotateAngle270=3]="RotateAngle270"}(au||(au={}));var lu;!function(t){t[t.None=0]="None",t[t.Numeric=1]="Numeric",t[t.LowerLatin=2]="LowerLatin",t[t.LowerRoman=3]="LowerRoman",t[t.UpperLatin=4]="UpperLatin",t[t.UpperRoman=5]="UpperRoman"}(lu||(lu={}));var hu;!function(t){t[t.None=0]="None",t[t.Bottom=1]="Bottom",t[t.Top=2]="Top",t[t.Left=3]="Left",t[t.Right=4]="Right",t[t.Fill=5]="Fill"}(hu||(hu={}));var uu;!function(t){t[t.None=0]="None",t[t.TopLeft=1]="TopLeft",t[t.TopCenter=2]="TopCenter",t[t.TopRight=3]="TopRight",t[t.MiddleLeft=4]="MiddleLeft",t[t.MiddleCenter=5]="MiddleCenter",t[t.MiddleRight=6]="MiddleRight",t[t.BottomLeft=7]="BottomLeft",t[t.BottomCenter=8]="BottomCenter",t[t.BottomRight=9]="BottomRight"}(uu||(uu={}));var cu;!function(t){t[t.None=0]="None",t[t.Top=1]="Top",t[t.Bottom=2]="Bottom",t[t.Left=3]="Left",t[t.Right=4]="Right"}(cu||(cu={}));var pu,du=function(){function t(){this.pdfMargin=40,this.setMargins(this.pdfMargin)}return Object.defineProperty(t.prototype,"left",{get:function(){return this.leftMargin},set:function(t){this.leftMargin=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.topMargin},set:function(t){this.topMargin=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.rightMargin},set:function(t){this.rightMargin=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.bottomMargin},set:function(t){this.bottomMargin=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"all",{set:function(t){this.setMargins(t)},enumerable:!0,configurable:!0}),t.prototype.setMargins=function(t,e,i,r){void 0===e?this.leftMargin=this.topMargin=this.rightMargin=this.bottomMargin=t:void 0===i?(this.leftMargin=this.rightMargin=t,this.bottomMargin=this.topMargin=e):(this.leftMargin=t,this.topMargin=e,this.rightMargin=i,this.bottomMargin=r)},t.prototype.clone=function(){return this},t}(),gu=function(){function t(t){this.pageMargins=new du,this.pageSize=su.a4,this.rotateAngle=au.RotateAngle0,this.pageOrientation=eu.Portrait,this.pageOrigin=new mh(0,0),this.isRotation=!1,"number"==typeof t&&this.pageMargins.setMargins(t)}return Object.defineProperty(t.prototype,"size",{get:function(){return this.pageSize},set:function(t){this.setSize(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orientation",{get:function(){return this.pageOrientation},set:function(t){this.pageOrientation!==t&&(this.pageOrientation=t,this.updateSize(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"margins",{get:function(){return this.pageMargins},set:function(t){this.pageMargins=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.pageSize.width},set:function(t){this.pageSize.width=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.pageSize.height},set:function(t){this.pageSize.height=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"origin",{get:function(){return this.pageOrigin},set:function(t){this.pageOrigin=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rotate",{get:function(){return this.rotateAngle},set:function(t){this.rotateAngle=t,this.isRotation=!0},enumerable:!0,configurable:!0}),t.prototype.updateSize=function(t){var e=Math.min(this.pageSize.width,this.pageSize.height),i=Math.max(this.pageSize.width,this.pageSize.height);switch(t){case eu.Portrait:this.pageSize=new Mh(e,i);break;case eu.Landscape:this.pageSize=new Mh(i,e)}},t.prototype.clone=function(){return this.pageMargins=this.pageMargins.clone(),this},t.prototype.getActualSize=function(){var t=this.width-(this.margins.left+this.margins.right),e=this.height-(this.margins.top+this.margins.bottom);return new Mh(t,e)},t.prototype.setSize=function(t){var e=Math.min(t.width,t.height),i=Math.max(t.width,t.height);this.orientation===eu.Portrait?this.pageSize=new Mh(e,i):this.pageSize=new Mh(i,e)},t}(),fu=function(){function t(t){if(null==t)throw new Error("ArgumentNullException:stream");this.stream=t}return t.prototype.clear=function(){this.stream.clearStream()},t.prototype.setGraphicsState=function(t){t instanceof pl?(this.stream.write(t.toString()),this.stream.write(dl.whiteSpace),this.writeOperator(dl.setGraphicsState)):(this.stream.write(dl.slash),this.stream.write(t),this.stream.write(dl.whiteSpace),this.writeOperator(dl.setGraphicsState))},t.prototype.executeObject=function(t){this.stream.write(t.toString()),this.stream.write(dl.whiteSpace),this.writeOperator(dl.paintXObject),this.stream.write(dl.newLine)},t.prototype.closePath=function(){this.writeOperator(dl.closePath)},t.prototype.clipPath=function(t){this.stream.write(dl.clipPath),t&&this.stream.write(dl.evenOdd),this.stream.write(dl.whiteSpace),this.stream.write(dl.endPath),this.stream.write(dl.newLine)},t.prototype.closeFillStrokePath=function(t){this.stream.write(dl.closeFillStrokePath),t?(this.stream.write(dl.evenOdd),this.stream.write(dl.newLine)):this.stream.write(dl.newLine)},t.prototype.fillStrokePath=function(t){this.stream.write(dl.fillStroke),t?(this.stream.write(dl.evenOdd),this.stream.write(dl.newLine)):this.stream.write(dl.newLine)},t.prototype.fillPath=function(t){this.stream.write(dl.fill),t?(this.stream.write(dl.evenOdd),this.stream.write(dl.newLine)):this.stream.write(dl.newLine)},t.prototype.endPath=function(){this.writeOperator(dl.n)},t.prototype.closeFillPath=function(t){this.writeOperator(dl.closePath),this.stream.write(dl.fill),t?(this.stream.write(dl.evenOdd),this.stream.write(dl.newLine)):this.stream.write(dl.newLine)},t.prototype.closeStrokePath=function(){this.writeOperator(dl.closeStrokePath)},t.prototype.setTextScaling=function(t){this.stream.write(Nl.floatToString(t)),this.stream.write(dl.whiteSpace),this.writeOperator(dl.setTextScaling)},t.prototype.strokePath=function(){this.writeOperator(dl.stroke)},t.prototype.restoreGraphicsState=function(){this.writeOperator(dl.restoreState)},t.prototype.saveGraphicsState=function(){this.writeOperator(dl.saveState)},t.prototype.startNextLine=function(t,e){void 0===t?this.writeOperator(dl.goToNextLine):t instanceof mh?(this.writePoint(t),this.writeOperator(dl.setCoords)):(this.writePoint(t,e),this.writeOperator(dl.setCoords))},t.prototype.showText=function(t){this.checkTextParam(t),this.writeText(t),this.writeOperator(dl.setText)},t.prototype.setLeading=function(t){this.stream.write(Nl.floatToString(t)),this.stream.write(dl.whiteSpace),this.writeOperator(dl.setTextLeading)},t.prototype.beginPath=function(t,e){this.writePoint(t,e),this.writeOperator(dl.beginPath)},t.prototype.beginText=function(){this.writeOperator(dl.beginText)},t.prototype.endText=function(){this.writeOperator(dl.endText)},t.prototype.appendRectangle=function(t,e,i,r){t instanceof vh?this.appendRectangle(t.x,t.y,t.width,t.height):(this.writePoint(t,e),this.writePoint(i,r),this.writeOperator(dl.appendRectangle))},t.prototype.appendLineSegment=function(t,e){t instanceof mh?this.appendLineSegment(t.x,t.y):(this.writePoint(t,e),this.writeOperator(dl.appendLineSegment))},t.prototype.setTextRenderingMode=function(t){this.stream.write(t.toString()),this.stream.write(dl.whiteSpace),this.writeOperator(dl.setRenderingMode)},t.prototype.setCharacterSpacing=function(t){this.stream.write(Nl.floatToString(t)),this.stream.write(dl.whiteSpace),this.stream.write(dl.setCharacterSpace),this.stream.write(dl.newLine)},t.prototype.setWordSpacing=function(t){this.stream.write(Nl.floatToString(t)),this.stream.write(dl.whiteSpace),this.writeOperator(dl.setWordSpace)},t.prototype.showNextLineText=function(t,e){t instanceof Jl?(this.checkTextParam(t),this.writeText(t),this.writeOperator(dl.setTextOnNewLine)):(this.checkTextParam(t),this.writeText(t,e),this.writeOperator(dl.setTextOnNewLine))},t.prototype.setColorSpace=function(t,e){if(t instanceof pl&&"boolean"==typeof e){var i=t,r=(n=e)?dl.selectcolorspaceforstroking:dl.selectcolorspacefornonstroking;this.stream.write(i.toString()),this.stream.write(dl.whiteSpace),this.stream.write(r),this.stream.write(dl.newLine)}else{i=t;var n=e;this.setColorSpace(new pl(i),n)}},t.prototype.modifyCtm=function(t){if(null==t)throw new Error("ArgumentNullException:matrix");this.stream.write(t.toString()),this.stream.write(dl.whiteSpace),this.writeOperator(dl.modifyCtm)},t.prototype.setFont=function(t,e,i){if("string"==typeof e)this.setFont(t,new pl(e),i);else{if(null==t)throw new Error("ArgumentNullException:font");this.stream.write(e.toString()),this.stream.write(dl.whiteSpace),this.stream.write(Nl.floatToString(i)),this.stream.write(dl.whiteSpace),this.writeOperator(dl.setFont)}},t.prototype.writeOperator=function(t){this.stream.write(t),this.stream.write(dl.newLine)},t.prototype.checkTextParam=function(t){if(null==t)throw new Error("ArgumentNullException:text");if("string"==typeof t&&""===t)throw new Error("ArgumentException:The text can not be an empty string, text")},t.prototype.writeText=function(t,e){if(t instanceof Jl&&void 0===e)this.stream.write(t.pdfEncode());else{var i=void 0,r=void 0;e?(i=Jl.hexStringMark[0],r=Jl.hexStringMark[1]):(i=Jl.stringMark[0],r=Jl.stringMark[1]),this.stream.write(i),this.stream.write(t),this.stream.write(r)}},t.prototype.writePoint=function(t,e){if(t instanceof mh&&void 0===e)this.writePoint(t.x,t.y);else{var i=t;this.stream.write(Nl.floatToString(i)),this.stream.write(dl.whiteSpace),e=this.updateY(e),this.stream.write(Nl.floatToString(e)),this.stream.write(dl.whiteSpace)}},t.prototype.updateY=function(t){return-t},t.prototype.write=function(t){var e="";e+=t,e+=dl.newLine,this.writeOperator(e)},t.prototype.writeComment=function(t){if(!(null!=t&&t.length>0))throw new Error("Invalid comment");var e="";e+=dl.comment,e+=dl.whiteSpace,e+=t,this.writeOperator(e)},t.prototype.setColorAndSpace=function(t,e,i){t.isEmpty||(this.stream.write(t.toString(e,i)),this.stream.write(dl.newLine))},t.prototype.setLineDashPattern=function(t,e){this.setLineDashPatternHelper(t,e)},t.prototype.setLineDashPatternHelper=function(t,e){var i="[";if(t.length>1)for(var r=0;r<t.length;r++)r===t.length-1?i+=t[r].toString():i+=t[r].toString()+" ";i+="] ",i+=e.toString(),i+=" "+dl.setDashPattern,this.stream.write(i),this.stream.write(dl.newLine)},t.prototype.setMiterLimit=function(t){this.stream.write(Nl.floatToString(t)),this.stream.write(dl.whiteSpace),this.writeOperator(dl.setMiterLimit)},t.prototype.setLineWidth=function(t){this.stream.write(Nl.floatToString(t)),this.stream.write(dl.whiteSpace),this.writeOperator(dl.setLineWidth)},t.prototype.setLineCap=function(t){this.stream.write(t.toString()),this.stream.write(dl.whiteSpace),this.writeOperator(dl.setLineCapStyle)},t.prototype.setLineJoin=function(t){this.stream.write(t.toString()),this.stream.write(dl.whiteSpace),this.writeOperator(dl.setLineJoinStyle)},Object.defineProperty(t.prototype,"position",{get:function(){return this.stream.position},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){var t=0;if(0!==this.stream.data.length&&-1!==this.stream.data.length)for(var e=0;e<this.stream.data.length;e++)t+=this.stream.data[e].length;return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"document",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.appendBezierSegment=function(t,e,i,r,n,o){t instanceof mh&&e instanceof mh&&i instanceof mh?(this.writePoint(t.x,t.y),this.writePoint(e.x,e.y),this.writePoint(i.x,i.y)):(this.writePoint(t,e),this.writePoint(i,r),this.writePoint(n,o)),this.writeOperator(dl.appendbeziercurve)},t.prototype.setColourWithPattern=function(t,e,i){if(null!=t){var r=t.length,n=0;for(n=0;n<r;++n)this.stream.write(t[n].toString()),this.stream.write(dl.whiteSpace)}null!=e&&(this.stream.write(e.toString()),this.stream.write(dl.whiteSpace)),i?this.writeOperator(dl.setColorAndPatternStroking):this.writeOperator(dl.setColorAndPattern)},t}(),yu=function(){function t(t,e){this.pdfColor=new yh(0,0,0),this.dashOffsetValue=0,this.penDashPattern=[0],this.pdfDashStyle=lh.Solid,this.pdfLineCap=0,this.pdfLineJoin=0,this.penWidth=1,this.internalMiterLimit=0,this.colorSpace=uh.Rgb,t instanceof wh?this.setBrush(t):t instanceof yh&&(this.color=t),"number"==typeof e&&(this.width=e)}return Object.defineProperty(t.prototype,"color",{get:function(){return this.pdfColor},set:function(t){this.pdfColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dashOffset",{get:function(){return void 0===this.dashOffsetValue||null==this.dashOffsetValue?0:this.dashOffsetValue},set:function(t){this.dashOffsetValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dashPattern",{get:function(){return this.penDashPattern},set:function(t){this.penDashPattern=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dashStyle",{get:function(){return this.pdfDashStyle},set:function(t){if(this.pdfDashStyle!==t)switch(this.pdfDashStyle=t,this.pdfDashStyle){case lh.Custom:break;case lh.Dash:this.penDashPattern=[3,1];break;case lh.Dot:this.penDashPattern=[1,1];break;case lh.DashDot:this.penDashPattern=[3,1,1,1];break;case lh.DashDotDot:this.penDashPattern=[3,1,1,1,1,1];break;case lh.Solid:break;default:this.pdfDashStyle=lh.Solid,this.penDashPattern=[0]}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineCap",{get:function(){return this.pdfLineCap},set:function(t){this.pdfLineCap=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineJoin",{get:function(){return this.pdfLineJoin},set:function(t){this.pdfLineJoin=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"miterLimit",{get:function(){return this.internalMiterLimit},set:function(t){this.internalMiterLimit=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.penWidth},set:function(t){this.penWidth=t},enumerable:!0,configurable:!0}),t.prototype.clone=function(){return this},t.prototype.setBrush=function(t){var e=t;null!=e&&e instanceof Sh&&(this.color=e.color,this.pdfBrush=e),this.color=e.color,this.pdfBrush=e},t.prototype.monitorChanges=function(t,e,i,r,n,o){r=!0,this.dashControl(t,r,e),e.setLineWidth(this.width),e.setLineJoin(this.lineJoin),e.setLineCap(this.lineCap);var s=this.miterLimit;s>0&&e.setMiterLimit(s);this.pdfBrush;return e.setColorAndSpace(this.color,n,!0),!0},t.prototype.dashControl=function(t,e,i){e=!0;var r=this.width,n=this.getPattern();return i.setLineDashPattern(n,this.dashOffset*r),e},t.prototype.getPattern=function(){for(var t=this.dashPattern,e=0;e<t.length;++e)t[e]*=this.width;return t},t}(),mu=function(){function t(t){this.radDegFactor=180/Math.PI,this.transformationMatrix=new Mu(1,0,0,void 0===t?1:-1,0,0)}return Object.defineProperty(t.prototype,"matrix",{get:function(){return this.transformationMatrix},set:function(t){this.transformationMatrix=t},enumerable:!0,configurable:!0}),t.prototype.translate=function(t,e){this.transformationMatrix.translate(t,e)},t.prototype.scale=function(t,e){this.transformationMatrix.elements[0]=t,this.transformationMatrix.elements[3]=e},t.prototype.rotate=function(t){t=t*Math.PI/180,this.transformationMatrix.elements[0]=Math.cos(t),this.transformationMatrix.elements[1]=Math.sin(t),this.transformationMatrix.elements[2]=-Math.sin(t),this.transformationMatrix.elements[3]=Math.cos(t)},t.prototype.toString=function(){for(var t="",e=0,i=this.transformationMatrix.elements.length;e<i;e++){this.matrix.elements[e];t+=Nl.floatToString(this.transformationMatrix.elements[e]),t+=" "}return t},t.prototype.multiply=function(t){this.transformationMatrix.multiply(t.matrix)},t.degreesToRadians=function(t){return this.degRadFactor*t},t.prototype.radiansToDegrees=function(t){return this.radDegFactor*t},t.prototype.clone=function(){return this},t.degRadFactor=Math.PI/180,t}(),Mu=function(){function t(t,e,i,r,n,o){void 0===t?this.metrixElements=[]:"number"==typeof t?(this.metrixElements=[],this.metrixElements.push(t),this.metrixElements.push(e),this.metrixElements.push(i),this.metrixElements.push(r),this.metrixElements.push(n),this.metrixElements.push(o)):this.metrixElements=t}return Object.defineProperty(t.prototype,"elements",{get:function(){return this.metrixElements},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"offsetX",{get:function(){return this.metrixElements[4]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"offsetY",{get:function(){return this.metrixElements[5]},enumerable:!0,configurable:!0}),t.prototype.translate=function(t,e){this.metrixElements[4]=t,this.metrixElements[5]=e},t.prototype.transform=function(t){var e=t.x,i=t.y,r=e*this.elements[0]+i*this.elements[2]+this.offsetX,n=e*this.elements[1]+i*this.elements[3]+this.offsetY;return new mh(r,n)},t.prototype.multiply=function(t){var e=[];e.push(this.elements[0]*t.elements[0]+this.elements[1]*t.elements[2]),e[1]=this.elements[0]*t.elements[1]+this.elements[1]*t.elements[3],e[2]=this.elements[2]*t.elements[0]+this.elements[3]*t.elements[2],e[3]=this.elements[2]*t.elements[1]+this.elements[3]*t.elements[3],e[4]=this.offsetX*t.elements[0]+this.offsetY*t.elements[2]+t.offsetX,e[5]=this.offsetX*t.elements[1]+this.offsetY*t.elements[3]+t.offsetY;for(var i=0;i<e.length;i++)this.elements[i]=e[i]},t.prototype.dispose=function(){this.metrixElements=null},t.prototype.clone=function(){return new t(this.metrixElements)},t}(),vu=function(){return function(){this.pdf="PDF",this.text="Text",this.imageB="ImageB",this.imageC="ImageC",this.imageI="ImageI"}}(),bu=function(){function t(){this.mKeys=[],this.mValues=[]}return t.prototype.size=function(){return this.mKeys.length},t.prototype.add=function(t,e){if(void 0===t||null===t||void 0===e||null===e)throw new ReferenceError("Provided key or value is not valid.");if(this.mKeys.indexOf(t)<0)return this.mKeys.push(t),this.mValues.push(e),1;throw new RangeError("An item with the same key has already been added.")},t.prototype.keys=function(){return this.mKeys},t.prototype.values=function(){return this.mValues},t.prototype.getValue=function(t){if(void 0===t||null===t)throw new ReferenceError("Provided key is not valid.");var e=this.mKeys.indexOf(t);if(e<0)throw new RangeError("No item with the specified key has been added.");return this.mValues[e]},t.prototype.setValue=function(t,e){if(void 0===t||null===t)throw new ReferenceError("Provided key is not valid.");var i=this.mKeys.indexOf(t);i<0?(this.mKeys.push(t),this.mValues.push(e)):this.mValues[i]=e},t.prototype.remove=function(t){if(void 0===t||null===t)throw new ReferenceError("Provided key is not valid.");var e=this.mKeys.indexOf(t);if(e<0)throw new RangeError("No item with the specified key has been added.");return this.mKeys.splice(e,1),this.mValues.splice(e,1),!0},t.prototype.containsKey=function(t){if(void 0===t||null===t)throw new ReferenceError("Provided key is not valid.");return!(this.mKeys.indexOf(t)<0)},t.prototype.clear=function(){this.mKeys=[],this.mValues=[]},t}(),wu=function(){function t(t,e,i){this.dictionary=new fl,this.dictionaryProperties=new gl,this.dictionary.items.setValue(this.dictionaryProperties.CA,new Nl(t)),this.dictionary.items.setValue(this.dictionaryProperties.ca,new Nl(e)),this.dictionary.items.setValue(this.dictionaryProperties.BM,new pl(i.toString()))}return Object.defineProperty(t.prototype,"element",{get:function(){return this.dictionary},enumerable:!0,configurable:!0}),t}(),Nu=function(){function t(){this.automaticFieldsInformation=[]}return Object.defineProperty(t.prototype,"automaticFields",{get:function(){return this.automaticFieldsInformation},enumerable:!0,configurable:!0}),t.prototype.add=function(t){return this.automaticFields.push(t)},t}(),Su=function(){function t(){}return t.prototype.drawHelper=function(t,e,i){var r=0!==e||0!==i,n=null;r&&(n=t.save(),t.translateTransform(e,i)),this.drawInternal(t),r&&t.restore(n)},t}(),Du=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),ju=function(t){function e(){var e=t.call(this)||this;return e.internalBounds=new vh(0,0,0,0),e.internalTemplateSize=new Mh(0,0),e}return Du(e,t),Object.defineProperty(e.prototype,"bounds",{get:function(){return this.internalBounds},set:function(t){this.internalBounds=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return new Mh(this.bounds.width,this.bounds.height)},set:function(t){this.bounds.width=t.width,this.bounds.height=t.height},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"location",{get:function(){return new mh(this.bounds.x,this.bounds.y)},set:function(t){this.bounds.x=t.x,this.bounds.y=t.y},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"font",{get:function(){return this.internalFont},set:function(t){this.internalFont=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"brush",{get:function(){return this.internalBrush},set:function(t){this.internalBrush=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pen",{get:function(){return this.internalPen},set:function(t){this.internalPen=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stringFormat",{get:function(){return this.internalStringFormat},set:function(t){this.internalStringFormat=t},enumerable:!0,configurable:!0}),e.prototype.performDrawHelper=function(t,e,i,r){if(0===this.bounds.height||0===this.bounds.width){var n=this.getValue(t);this.internalTemplateSize=this.getFont().measureString(n,this.size,this.stringFormat)}},e.prototype.draw=function(t,e,i){if(void 0===e){var r=new mh(0,0);this.draw(t,r)}else if(e instanceof mh)this.draw(t,e.x,e.y);else{this.drawHelper(t,e,i);var n=new Iu(this,new mh(e,i));t.automaticFields.add(n)}},e.prototype.getSize=function(){return 0===this.bounds.height||0===this.bounds.width?this.internalTemplateSize:this.size},e.prototype.drawInternal=function(t){},e.prototype.getBrush=function(){return void 0===this.internalBrush||null==this.internalBrush?new Sh(new yh(0,0,0)):this.internalBrush},e.prototype.getFont=function(){return void 0===this.internalFont||null==this.internalFont?Yc.defaultFont:this.internalFont},e.prototype.getPageFromGraphics=function(t){if(void 0!==t.page&&null!==t.page){return t.page}return t.currentPage},e}(Su),Iu=function(){function t(e,i,r,n){this.pageNumberFieldLocation=new mh,this.pageNumberField=null,this.scaleX=1,this.scaleY=1,void 0===i&&e instanceof t?(this.pageNumberField=e.field,this.pageNumberFieldLocation=e.location,this.scaleX=e.scalingX,this.scaleY=e.scalingY):void 0===r&&i instanceof mh&&e instanceof ju?(this.pageNumberField=e,this.pageNumberFieldLocation=i):(this.pageNumberField=e,this.pageNumberFieldLocation=i,this.scaleX=r,this.scaleY=n)}return Object.defineProperty(t.prototype,"location",{get:function(){return this.pageNumberFieldLocation},set:function(t){this.pageNumberFieldLocation=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"field",{get:function(){return this.pageNumberField},set:function(t){this.pageNumberField=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scalingX",{get:function(){return this.scaleX},set:function(t){this.scaleX=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scalingY",{get:function(){return this.scaleY},set:function(t){this.scaleY=t},enumerable:!0,configurable:!0}),t}(),Ou=function(){function t(t){this.mPosition=0,this.buffer=new Uint8Array(t),this.dataView=new DataView(this.buffer.buffer)}return Object.defineProperty(t.prototype,"position",{get:function(){return this.mPosition},set:function(t){this.mPosition=t},enumerable:!0,configurable:!0}),t.prototype.read=function(t,e,i){for(var r=e;r<i;r++){var n=this.position;t.buffer[r]=this.readByte(n),this.position++}},t.prototype.getBuffer=function(t){return this.buffer[t]},t.prototype.writeFromBase64String=function(t){var e=this.encodedString(t);this.buffer=e},t.prototype.encodedString=function(t){var e,i,r,n,o,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=0,l=0,h=3*(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;t.charAt(t.length-1)===s.charAt(64)&&h--;for(var u=new Uint8Array(0|h);a<t.length;)e=s.indexOf(t.charAt(a++))<<2|(n=s.indexOf(t.charAt(a++)))>>4,i=(15&n)<<4|(o=s.indexOf(t.charAt(a++)))>>2,r=(3&o)<<6|s.indexOf(t.charAt(a++)),u[l++]=e,u[l++]=i,u[l++]=r;return u},t.prototype.readByte=function(t){return this.buffer[t]},Object.defineProperty(t.prototype,"internalBuffer",{get:function(){return this.buffer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return this.buffer.byteLength},enumerable:!0,configurable:!0}),t.prototype.readNextTwoBytes=function(t){var e=t.readByte(this.position);return this.position++,e<<=8,e|=t.readByte(this.position),this.position++,e},t}();!function(t){t[t.Unknown=0]="Unknown",t[t.Bmp=1]="Bmp",t[t.Emf=2]="Emf",t[t.Gif=3]="Gif",t[t.Jpeg=4]="Jpeg",t[t.Png=5]="Png",t[t.Wmf=6]="Wmf",t[t.Icon=7]="Icon"}(pu||(pu={}));var xu,Cu=function(){function t(t){this.sof1Marker=193,this.sof2Marker=194,this.sof3Marker=195,this.sof5Marker=197,this.sof6Marker=198,this.sof7Marker=199,this.sof9Marker=201,this.sof10Marker=202,this.sof11Marker=203,this.sof13Marker=205,this.sof14Marker=206,this.sof15Marker=207,this.mFormat=pu.Unknown,this.mbitsPerComponent=8,this.dictionaryProperties=new gl,this.mStream=t,this.initialize()}return Object.defineProperty(t.prototype,"height",{get:function(){return this.mHeight},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.mWidth},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bitsPerComponent",{get:function(){return this.mbitsPerComponent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.mImageData.count},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageData",{get:function(){return this.mImageData},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageDataAsNumberArray",{get:function(){return this.mImageData.internalBuffer.buffer},enumerable:!0,configurable:!0}),t.prototype.initialize=function(){if(this.mFormat!==pu.Unknown||!this.checkIfJpeg())throw new TypeError("Only the JPEG format is supported");this.mFormat=pu.Jpeg,this.parseJpegImage(),this.reset(),this.mImageData=new Ou(this.mStream.count),this.mStream.read(this.mImageData,0,this.mImageData.count)},t.prototype.reset=function(){this.mStream.position=0},t.prototype.parseJpegImage=function(){this.reset();var t=new Ou(this.mStream.count);this.mStream.read(t,0,t.count);for(var e=4,i=!1,r=256*t.getBuffer(e)+t.getBuffer(e+1);e<t.count;){if(!((e+=r)<t.count)){i=!0;break}if(192===t.getBuffer(e+1))return this.mHeight=256*t.getBuffer(e+5)+t.getBuffer(e+6),void(this.mWidth=256*t.getBuffer(e+7)+t.getBuffer(e+8));e+=2,r=256*t.getBuffer(e)+t.getBuffer(e+1)}i&&(this.mStream.position=0,this.skip(this.mStream,2),this.readExceededJPGImage(this.mStream))},Object.defineProperty(t.prototype,"format",{get:function(){return this.mFormat},enumerable:!0,configurable:!0}),t.prototype.checkIfJpeg=function(){this.reset();for(var e=0;e<t.mJpegHeader.length;e++){if(t.mJpegHeader[e]!==this.mStream.readByte(e))return!1;this.mStream.position++}return!0},t.prototype.getImageDictionary=function(){if(this.mFormat===pu.Jpeg){this.imageData.internalBuffer.length;this.imageStream=new Hl,this.imageStream.isResource=!0;for(var t="",e="",i=0;i<this.imageDataAsNumberArray.byteLength;i++)t+=String.fromCharCode(null,this.mStream.readByte(i));for(i=0;i<t.length;i++)i%2!=0&&(e+=t[i]);return this.imageStream.data=[e],this.imageStream.compress=!1,this.imageStream.items.setValue(this.dictionaryProperties.type,new pl(this.dictionaryProperties.xObject)),this.imageStream.items.setValue(this.dictionaryProperties.subtype,new pl(this.dictionaryProperties.image)),this.imageStream.items.setValue(this.dictionaryProperties.width,new Nl(this.width)),this.imageStream.items.setValue(this.dictionaryProperties.height,new Nl(this.height)),this.imageStream.items.setValue(this.dictionaryProperties.bitsPerComponent,new Nl(this.bitsPerComponent)),this.imageStream.items.setValue(this.dictionaryProperties.filter,new pl(this.dictionaryProperties.dctdecode)),this.imageStream.items.setValue(this.dictionaryProperties.colorSpace,new pl(this.getColorSpace())),this.imageStream.items.setValue(this.dictionaryProperties.decodeParms,this.getDecodeParams()),this.imageStream}return this.imageStream},t.prototype.getColorSpace=function(){return this.dictionaryProperties.deviceRgb},t.prototype.getDecodeParams=function(){var t=new fl;return t.items.setValue(this.dictionaryProperties.columns,new Nl(this.width)),t.items.setValue(this.dictionaryProperties.blackIs1,new Kh(!0)),t.items.setValue(this.dictionaryProperties.k,new Nl(-1)),t.items.setValue(this.dictionaryProperties.predictor,new Nl(15)),t.items.setValue(this.dictionaryProperties.bitsPerComponent,new Nl(this.bitsPerComponent)),t},t.prototype.readExceededJPGImage=function(t){this.mStream=t;for(var e=!0;e;){switch(this.getMarker(t)){case this.sof1Marker:case this.sof2Marker:case this.sof3Marker:case this.sof5Marker:case this.sof6Marker:case this.sof7Marker:case this.sof9Marker:case this.sof10Marker:case this.sof11Marker:case this.sof13Marker:case this.sof14Marker:case this.sof15Marker:t.position+=3,this.mHeight=this.mStream.readNextTwoBytes(t),this.mWidth=this.mStream.readNextTwoBytes(t),e=!1;break;default:this.skipStream(t)}}},t.prototype.skip=function(t,e){this.mStream=t;var i=new Ou(e);this.mStream.read(i,0,i.count)},t.prototype.getMarker=function(t){var e=32;for(e=t.readByte(this.mStream.position),t.position++;255!==e;)e=t.readByte(this.mStream.position),t.position++;do{e=t.readByte(this.mStream.position),t.position++}while(255===e);return e},t.prototype.skipStream=function(t){var e=this.mStream.readNextTwoBytes(t)-2;e>0&&(t.position+=e)},t.mPngHeader=[137,80,78,71,13,10,26,10],t.mJpegHeader=[255,216],t.GIF_HEADER="G,I,F,8",t.BMP_HEADER="B,M",t}(),zu=function(){function t(t){this.updateProportionsHelper(t)}return t.prototype.convertUnits=function(t,e,i){return this.convertFromPixels(this.convertToPixels(t,e),i)},t.prototype.convertToPixels=function(t,e){var i=e;return t*this.proportions[i]},t.prototype.convertFromPixels=function(t,e){var i=e;return t/this.proportions[i]},t.prototype.updateProportionsHelper=function(t){this.proportions=[t/2.54,t/6,1,t/72,t,t/300,t/25.4]},t.horizontalResolution=96,t.verticalResolution=96,t}(),Tu=function(){function t(){}return Object.defineProperty(t.prototype,"width",{get:function(){return this.imageWidth},set:function(t){this.imageWidth=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.imageHeight},set:function(t){this.imageHeight=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{set:function(t){this.width=t.width,this.height=t.height},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"physicalDimension",{get:function(){return this.imagePhysicalDimension=this.getPointSize(this.width,this.height,this.horizontalResolution,this.verticalResolution),new Mh(this.width,this.height)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.imageStream},enumerable:!0,configurable:!0}),t.prototype.getPointSize=function(t,e,i,r){if(void 0===i){var n=zu.horizontalResolution,o=zu.verticalResolution;return this.getPointSize(t,e,n,o)}var s=new zu(i),a=new zu(r),l=s.convertUnits(t,ph.Pixel,ph.Point),h=a.convertUnits(e,ph.Pixel,ph.Point);return new Mh(l,h)},t}(),Lu=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Au=function(t){function e(e){var i=t.call(this)||this;return i.imageStatus=!0,i.dictionaryProperties=new gl,i.loadImage(e),i}return Lu(e,t),e.prototype.loadImage=function(t){this.initializeAsync(t)},e.prototype.initializeAsync=function(t){var e=new Ou(t.length);e.writeFromBase64String(t),this.decoder=new Cu(e),this.height=this.decoder.height,this.width=this.decoder.width,this.bitsPerComponent=this.decoder.bitsPerComponent},e.prototype.save=function(){this.imageStatus=!0,this.imageStream=this.decoder.getImageDictionary()},e}(Tu),Pu=function(){function t(){}return Object.defineProperty(t.prototype,"empty",{get:function(){return this.offset===this.length&&this.length===this.checksum&&0===this.checksum},enumerable:!0,configurable:!0}),t}(),Eu=function(){return function(){}}(),ku=function(){return function(){}}(),Bu=function(){return function(){}}(),Fu=function(){function t(){}return Object.defineProperty(t.prototype,"isItalic",{get:function(){return 0!=(2&this.macStyle)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isBold",{get:function(){return 0!=(1&this.macStyle)},enumerable:!0,configurable:!0}),t}(),Ru=function(){return function(){}}(),Uu=function(){return function(){}}(),_u=function(){return function(){}}(),Vu=function(){return function(){}}(),Yu=function(){return function(){}}(),Qu=function(){return function(){}}(),Wu=function(){function t(){}return Object.defineProperty(t.prototype,"empty",{get:function(){return this.index===this.width&&this.width===this.charCode&&0===this.charCode},enumerable:!0,configurable:!0}),t.prototype.compareTo=function(t){var e=t;return this.index-e.index},t}(),Gu=function(){return function(){}}(),Hu=function(){return function(){}}(),qu=function(){return function(){}}(),$u=function(){return function(){}}(),Ku=function(){return function(){}}(),Ju=function(){function t(t){this.int32Size=4,this.int16Size=2,this.int64Size=8,this.bufferLength=t,this.buffer=[]}return Object.defineProperty(t.prototype,"data",{get:function(){if(this.buffer.length<this.bufferLength)for(var t=this.bufferLength-this.buffer.length,e=0;e<t;e++)this.buffer.push(0);return this.buffer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return void 0!==this.internalPosition&&null!==this.internalPosition||(this.internalPosition=0),this.internalPosition},enumerable:!0,configurable:!0}),t.prototype.writeShort=function(t){var e=[(65280&t)>>8,255&t];this.flush(e)},t.prototype.writeInt=function(t){var e=[(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t];this.flush(e)},t.prototype.writeUInt=function(t){var e=[(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t];this.flush(e)},t.prototype.writeString=function(t){if(null==t)throw new Error("Argument Null Exception : value");for(var e=[],i=0;i<t.length;i++)e.push(t.charCodeAt(i));this.flush(e)},t.prototype.writeBytes=function(t){this.flush(t)},t.prototype.flush=function(t){if(null===t)throw new Error("Argument Null Exception : buff");for(var e=this.position,i=0;i<t.length;i++)this.buffer[e]=t[i],e++;this.internalPosition+=t.length},t}(),Zu=function(){function t(t){this.int32Size=4,this.isTtcFont=!1,this.isMacTtf=!1,this.metricsName="",this.isMacTTF=!1,this.missedGlyphs=0,this.tableNames=["cvt ","fpgm","glyf","head","hhea","hmtx","loca","maxp","prep"],this.entrySelectors=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4],this.fontData=t,this.initialize()}return Object.defineProperty(t.prototype,"macintosh",{get:function(){return null!==this.macintoshDictionary&&void 0!==this.macintoshDictionary||(this.macintoshDictionary=new cl),this.macintoshDictionary},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"microsoft",{get:function(){return null!==this.microsoftDictionary&&void 0!==this.microsoftDictionary||(this.microsoftDictionary=new cl),this.microsoftDictionary},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"macintoshGlyphs",{get:function(){return null!==this.internalMacintoshGlyphs&&void 0!==this.internalMacintoshGlyphs||(this.internalMacintoshGlyphs=new cl),this.internalMacintoshGlyphs},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"microsoftGlyphs",{get:function(){return null!==this.internalMicrosoftGlyphs&&void 0!==this.internalMicrosoftGlyphs||(this.internalMicrosoftGlyphs=new cl),this.internalMicrosoftGlyphs},enumerable:!0,configurable:!0}),t.prototype.initialize=function(){void 0===this.metrics&&(this.metrics=new Fu),this.readFontDictionary();var t=this.readNameTable(),e=this.readHeadTable();this.initializeFontName(t),this.metrics.macStyle=e.macStyle},t.prototype.readFontDictionary=function(){this.offset=0;this.checkPreambula();var t=this.readInt16(this.offset);this.readInt16(this.offset),this.readInt16(this.offset),this.readInt16(this.offset);void 0===this.tableDirectory&&(this.tableDirectory=new cl);for(var e=0;e<t;++e){var i=new Pu,r=this.readString(this.int32Size);i.checksum=this.readInt32(this.offset),i.offset=this.readInt32(this.offset),i.length=this.readInt32(this.offset),this.tableDirectory.setValue(r,i)}this.lowestPosition=this.offset,this.isTtcFont||this.fixOffsets()},t.prototype.fixOffsets=function(){for(var t=Number.MAX_VALUE,e=this.tableDirectory.keys(),i=0;i<e.length;i++){var r=(s=this.tableDirectory.getValue(e[i])).offset;if(t>r&&(t=r)<=this.lowestPosition)break}var n=t-this.lowestPosition;if(0!==n){var o=new cl;for(i=0;i<e.length;i++){var s;(s=this.tableDirectory.getValue(e[i])).offset-=n,o.setValue(e[i],s)}this.tableDirectory=o}},t.prototype.checkPreambula=function(){var t=this.readInt32(this.offset);if(this.isMacTtf=1953658213===t,65536!==t&&1953658213!==t&&1330926671!==t){this.isTtcFont=!0,this.offset=0;if("ttcf"!==this.readString(4))throw new Error("Can not read TTF font data");this.offset+=4;if(this.readInt32(this.offset)<0)throw new Error("Can not read TTF font data");this.offset=this.readInt32(this.offset),t=this.readInt32(this.offset)}return t},t.prototype.readNameTable=function(){var t=this.getTable("name");this.offset=t.offset;var e=new Eu;e.formatSelector=this.readUInt16(this.offset),e.recordsCount=this.readUInt16(this.offset),e.offset=this.readUInt16(this.offset),e.nameRecords=[];for(var i=this.offset,r=0;r<e.recordsCount;r++){this.offset=i;var n=new ku;n.platformID=this.readUInt16(this.offset),n.encodingID=this.readUInt16(this.offset),n.languageID=this.readUInt16(this.offset),n.nameID=this.readUInt16(this.offset),n.length=this.readUInt16(this.offset),n.offset=this.readUInt16(this.offset),this.offset=t.offset+e.offset+n.offset;var o=0===n.platformID||3===n.platformID;n.name=this.readString(n.length,o),e.nameRecords[r]=n,i+=12}return e},t.prototype.readHeadTable=function(){var t=this.getTable("head");this.offset=t.offset;var e=new Bu;return e.version=this.readFixed(this.offset),e.fontRevision=this.readFixed(this.offset),e.checkSumAdjustment=this.readUInt32(this.offset),e.magicNumber=this.readUInt32(this.offset),e.flags=this.readUInt16(this.offset),e.unitsPerEm=this.readUInt16(this.offset),e.created=this.readInt64(this.offset),e.modified=this.readInt64(this.offset),e.xMin=this.readInt16(this.offset),e.yMin=this.readInt16(this.offset),e.xMax=this.readInt16(this.offset),e.yMax=this.readInt16(this.offset),e.macStyle=this.readUInt16(this.offset),e.lowestReadableSize=this.readUInt16(this.offset),e.fontDirectionHint=this.readInt16(this.offset),e.indexToLocalFormat=this.readInt16(this.offset),e.glyphDataFormat=this.readInt16(this.offset),e},t.prototype.readHorizontalHeaderTable=function(){var t=this.getTable("hhea");this.offset=t.offset;var e=new Ru;return e.version=this.readFixed(this.offset),e.ascender=this.readInt16(this.offset),e.descender=this.readInt16(this.offset),e.lineGap=this.readInt16(this.offset),e.advanceWidthMax=this.readUInt16(this.offset),e.minLeftSideBearing=this.readInt16(this.offset),e.minRightSideBearing=this.readInt16(this.offset),e.xMaxExtent=this.readInt16(this.offset),e.caretSlopeRise=this.readInt16(this.offset),e.caretSlopeRun=this.readInt16(this.offset),this.offset+=10,e.metricDataFormat=this.readInt16(this.offset),e.numberOfHMetrics=this.readUInt16(this.offset),e},t.prototype.readOS2Table=function(){var t=this.getTable("OS/2");this.offset=t.offset;var e=new Uu;return e.version=this.readUInt16(this.offset),e.xAvgCharWidth=this.readInt16(this.offset),e.usWeightClass=this.readUInt16(this.offset),e.usWidthClass=this.readUInt16(this.offset),e.fsType=this.readInt16(this.offset),e.ySubscriptXSize=this.readInt16(this.offset),e.ySubscriptYSize=this.readInt16(this.offset),e.ySubscriptXOffset=this.readInt16(this.offset),e.ySubscriptYOffset=this.readInt16(this.offset),e.ySuperscriptXSize=this.readInt16(this.offset),e.ySuperscriptYSize=this.readInt16(this.offset),e.ySuperscriptXOffset=this.readInt16(this.offset),e.ySuperscriptYOffset=this.readInt16(this.offset),e.yStrikeoutSize=this.readInt16(this.offset),e.yStrikeoutPosition=this.readInt16(this.offset),e.sFamilyClass=this.readInt16(this.offset),e.panose=this.readBytes(10),e.ulUnicodeRange1=this.readUInt32(this.offset),e.ulUnicodeRange2=this.readUInt32(this.offset),e.ulUnicodeRange3=this.readUInt32(this.offset),e.ulUnicodeRange4=this.readUInt32(this.offset),e.vendorIdentifier=this.readBytes(4),e.fsSelection=this.readUInt16(this.offset),e.usFirstCharIndex=this.readUInt16(this.offset),e.usLastCharIndex=this.readUInt16(this.offset),e.sTypoAscender=this.readInt16(this.offset),e.sTypoDescender=this.readInt16(this.offset),e.sTypoLineGap=this.readInt16(this.offset),e.usWinAscent=this.readUInt16(this.offset),e.usWinDescent=this.readUInt16(this.offset),e.ulCodePageRange1=this.readUInt32(this.offset),e.ulCodePageRange2=this.readUInt32(this.offset),e.version>1?(e.sxHeight=this.readInt16(this.offset),e.sCapHeight=this.readInt16(this.offset),e.usDefaultChar=this.readUInt16(this.offset),e.usBreakChar=this.readUInt16(this.offset),e.usMaxContext=this.readUInt16(this.offset)):(e.sxHeight=0,e.sCapHeight=0,e.usDefaultChar=0,e.usBreakChar=0,e.usMaxContext=0),e},t.prototype.readPostTable=function(){var t=this.getTable("post");this.offset=t.offset;var e=new _u;return e.formatType=this.readFixed(this.offset),e.italicAngle=this.readFixed(this.offset),e.underlinePosition=this.readInt16(this.offset),e.underlineThickness=this.readInt16(this.offset),e.isFixedPitch=this.readUInt32(this.offset),e.minType42=this.readUInt32(this.offset),e.maxType42=this.readUInt32(this.offset),e.minType1=this.readUInt32(this.offset),e.maxType1=this.readUInt32(this.offset),e},t.prototype.readWidthTable=function(t,e){var i=this.getTable("hmtx");this.offset=i.offset;for(var r=[],n=0;n<t;n++){var o=new Vu;o.advanceWidth=this.readUInt16(this.offset),o.lsb=this.readInt16(this.offset);var s=1e3*o.advanceWidth/e;r.push(Math.floor(s))}return r},t.prototype.readCmapTable=function(){var t=this.getTable("cmap");this.offset=t.offset;var e=new Qu;e.version=this.readUInt16(this.offset),e.tablesCount=this.readUInt16(this.offset);for(var i=this.offset,r=[],n=0;n<e.tablesCount;n++){this.offset=i;var o=new Yu;o.platformID=this.readUInt16(this.offset),o.encodingID=this.readUInt16(this.offset),o.offset=this.readUInt32(this.offset),i=this.offset,this.readCmapSubTable(o),r[n]=o}return r},t.prototype.readCmapSubTable=function(t){var e=this.getTable("cmap");this.offset=e.offset+t.offset;var i=this.readUInt16(this.offset),r=this.getCmapEncoding(t.platformID,t.encodingID);r===zh.Macintosh?Th.Macintosh:Th.Microsoft;if(r!==zh.Unknown)switch(i){case Ch.Apple:this.readAppleCmapTable(t,r);break;case Ch.Microsoft:this.readMicrosoftCmapTable(t,r);break;case Ch.Trimmed:this.readTrimmedCmapTable(t,r)}},t.prototype.readAppleCmapTable=function(t,e){var i=this.getTable("cmap");this.offset=i.offset+t.offset;var r=new Hu;r.format=this.readUInt16(this.offset),r.length=this.readUInt16(this.offset),r.version=this.readUInt16(this.offset),null!==this.maxMacIndex&&void 0!==this.maxMacIndex||(this.maxMacIndex=0);for(var n=0;n<256;++n){var o=new Wu;o.index=this.readByte(this.offset),o.width=this.getWidth(o.index),o.charCode=n,this.macintosh.setValue(n,o),this.addGlyph(o,e),this.maxMacIndex=Math.max(n,this.maxMacIndex)}},t.prototype.readMicrosoftCmapTable=function(t,e){var i=this.getTable("cmap");this.offset=i.offset+t.offset;var r=e===zh.Unicode?this.microsoft:this.macintosh,n=new qu;n.format=this.readUInt16(this.offset),n.length=this.readUInt16(this.offset),n.version=this.readUInt16(this.offset),n.segCountX2=this.readUInt16(this.offset),n.searchRange=this.readUInt16(this.offset),n.entrySelector=this.readUInt16(this.offset),n.rangeShift=this.readUInt16(this.offset);var o=n.segCountX2/2;n.endCount=this.readUshortArray(o),n.reservedPad=this.readUInt16(this.offset),n.startCount=this.readUshortArray(o),n.idDelta=this.readUshortArray(o),n.idRangeOffset=this.readUshortArray(o);var s=n.length/2-8-4*o;n.glyphID=this.readUshortArray(s);for(var a=0,l=0,h=0;h<o;h++)for(var u=n.startCount[h];u<=n.endCount[h]&&65535!==u;u++){if(0===n.idRangeOffset[h])a=u+n.idDelta[h]&65535;else{if((l=h+n.idRangeOffset[h]/2-o+u-n.startCount[h])>=n.glyphID.length)continue;a=n.glyphID[l]+n.idDelta[h]&65535}var c=new Wu;c.index=a,c.width=this.getWidth(c.index);var p=e===zh.Symbol&&61440==(65280&u)?255&u:u;c.charCode=p,r.setValue(p,c),this.addGlyph(c,e)}},t.prototype.readTrimmedCmapTable=function(t,e){var i=this.getTable("cmap");this.offset=i.offset+t.offset;var r=new $u;r.format=this.readUInt16(this.offset),r.length=this.readUInt16(this.offset),r.version=this.readUInt16(this.offset),r.firstCode=this.readUInt16(this.offset),r.entryCount=this.readUInt16(this.offset);for(var n=0;n<r.entryCount;++n){var o=new Wu;o.index=this.readUInt16(this.offset),o.width=this.getWidth(o.index),o.charCode=n+r.firstCode,this.macintosh.setValue(n,o),this.addGlyph(o,e),this.maxMacIndex=Math.max(n,this.maxMacIndex)}},t.prototype.initializeFontName=function(t){for(var e=0;e<t.recordsCount;e++){var i=t.nameRecords[e];if(1===i.nameID?this.metrics.fontFamily=i.name:6===i.nameID&&(this.metrics.postScriptName=i.name),null!==this.metrics.fontFamily&&void 0!==this.metrics.fontFamily&&null!==this.metrics.postScriptName&&void 0!==this.metrics.postScriptName)break}},t.prototype.getTable=function(t){var e,i=new Pu;return this.tableDirectory.containsKey(t)&&(e=this.tableDirectory.getValue(t)),null!==e&&void 0!==e&&(i=e),i},t.prototype.getWidth=function(t){return t=t<this.width.length?t:this.width.length-1,this.width[t]},t.prototype.getCmapEncoding=function(t,e){var i=zh.Unknown;return t==Th.Microsoft&&e==Lh.Undefined?i=zh.Symbol:t==Th.Microsoft&&e==Lh.Unicode?i=zh.Unicode:t==Th.Macintosh&&e==Ah.Roman&&(i=zh.Macintosh),i},t.prototype.addGlyph=function(t,e){var i=null;switch(e){case zh.Unicode:i=this.microsoftGlyphs;break;case zh.Macintosh:case zh.Symbol:i=this.macintoshGlyphs}i.setValue(t.index,t)},t.prototype.initializeMetrics=function(t,e,i,r,n,o){this.initializeFontName(t);for(var s=!1,a=0;a<o.length;a++){var l=o[a];if(this.getCmapEncoding(l.platformID,l.encodingID)===zh.Symbol){s=!0;break}}this.metrics.isSymbol=s,this.metrics.macStyle=e.macStyle,this.metrics.isFixedPitch=0!==n.isFixedPitch,this.metrics.italicAngle=n.italicAngle;var h=1e3/e.unitsPerEm;this.metrics.winAscent=r.sTypoAscender*h,this.metrics.macAscent=i.ascender*h,this.metrics.capHeight=0!==r.sCapHeight?r.sCapHeight:.7*e.unitsPerEm*h,this.metrics.winDescent=r.sTypoDescender*h,this.metrics.macDescent=i.descender*h,this.metrics.leading=(r.sTypoAscender-r.sTypoDescender+r.sTypoLineGap)*h,this.metrics.lineGap=Math.ceil(i.lineGap*h);var u=e.xMin*h,c=Math.ceil(this.metrics.macAscent+this.metrics.lineGap),p=e.xMax*h,d=this.metrics.macDescent;this.metrics.fontBox=new bh(u,c,p,d),this.metrics.stemV=80,this.metrics.widthTable=this.updateWidth(),this.metrics.contains=this.tableDirectory.containsKey("CFF"),this.metrics.subScriptSizeFactor=e.unitsPerEm/r.ySubscriptYSize,this.metrics.superscriptSizeFactor=e.unitsPerEm/r.ySuperscriptYSize},t.prototype.updateWidth=function(){var t=[];if(this.metrics.isSymbol)for(var e=0;e<256;e++){var i=this.getGlyph(String.fromCharCode(e));t[e]=i.empty?0:i.width}else{var r=[],n=String.fromCharCode(32);for(e=0;e<256;e++){r[0]=e;var o=this.getString(r,0,r.length),s=o.length>0?o[0]:"?";(i=this.getGlyph(s)).empty?(i=this.getGlyph(n),t[e]=i.empty?0:i.width):t[e]=i.width}}return t},t.prototype.getDefaultGlyph=function(){return this.getGlyph(Fh.whiteSpace)},t.prototype.getString=function(t,e,i){for(var r="",n=0;n<i;n++)r+=String.fromCharCode(t[n+e]);return r},t.prototype.readLocaTable=function(t){var e=this.getTable("loca");this.offset=e.offset;var i=new Gu,r=null;if(t){var n=e.length/2;r=[];for(var o=0;o<n;o++)r[o]=2*this.readUInt16(this.offset)}else{n=e.length/4;r=[];for(o=0;o<n;o++)r[o]=this.readUInt32(this.offset)}return i.offsets=r,i},t.prototype.updateGlyphChars=function(t,e){t.containsKey(0)||t.setValue(0,0);for(var i=new cl,r=t.keys(),n=0;n<r.length;n++)i.setValue(r[n],t.getValue(r[n]));for(n=0;n<r.length;n++){var o=r[n];this.processCompositeGlyph(t,o,e)}},t.prototype.processCompositeGlyph=function(t,e,i){if(e<i.offsets.length-1){var r=i.offsets[e];if(r!==i.offsets[e+1]){var n=this.getTable("glyf");this.offset=n.offset+r;var o=new Ku;if(o.numberOfContours=this.readInt16(this.offset),o.xMin=this.readInt16(this.offset),o.yMin=this.readInt16(this.offset),o.xMax=this.readInt16(this.offset),o.yMax=this.readInt16(this.offset),o.numberOfContours<0)for(var s=0;;){var a=this.readUInt16(this.offset),l=this.readUInt16(this.offset);if(t.containsKey(l)||t.setValue(l,0),0==(a&Eh.MoreComponents))break;s=0!=(a&Eh.Arg1And2AreWords)?4:2,0!=(a&Eh.WeHaveScale)?s+=2:0!=(a&Eh.WeHaveAnXyScale)?s+=4:0!=(a&Eh.WeHaveTwoByTwo)&&(s+=8),this.offset+=s}}}},t.prototype.generateGlyphTable=function(t,e,i,r){i=[];var n=t.keys();n.sort(function(t,e){return t-e});for(var o=0,s=0;s<n.length;s++){var a=n[s];e.offsets.length>0&&(o+=e.offsets[a+1]-e.offsets[a])}var l=this.align(o);r=[];for(s=0;s<l;s++)r.push(0);var h=0,u=0,c=this.getTable("glyf");for(s=0;s<e.offsets.length;s++)if(i.push(h),u<n.length&&n[u]===s){++u,i[s]=h;var p=e.offsets[s],d=e.offsets[s+1]-p;if(d>0){this.offset=c.offset+p;r=this.read(r,h,d).buffer,h+=d}}return{glyphTableSize:o,newLocaTable:i,newGlyphTable:r}},t.prototype.updateLocaTable=function(t,e,i){if(null===t)throw new Error("Argument Null Exception : newLocaTable");for(var r=e?2*t.length:4*t.length,n=this.align(r),o=new Ju(n),s=0;s<t.length;s++){var a=t[s];e?(a/=2,o.writeShort(a)):o.writeInt(a)}return{newLocaUpdated:o.data,newLocaSize:r}},t.prototype.align=function(t){return t+3&-4},t.prototype.getFontProgram=function(t,e,i,r){if(null===t)throw new Error("Argument Null Exception : newLocaTableOut");if(null===e)throw new Error("Argument Null Exception : newGlyphTable");this.tableNames;var n=this.getFontProgramLength(t,e,0),o=n.fontProgramLength,s=n.numTables,a=new Ju(o);a.writeInt(65536),a.writeShort(s);var l=this.entrySelectors[s];return a.writeShort(16*(1<<(31&l))),a.writeShort(l),a.writeShort(16*(s-(1<<(31&l)))),this.writeCheckSums(a,s,t,e,i,r),this.writeGlyphs(a,t,e),a.data},t.prototype.getFontProgramLength=function(t,e,i){if(null===t)throw new Error("Argument Null Exception : newLocaTableOut");if(null===e)throw new Error("Argument Null Exception : newGlyphTable");i=2;for(var r=this.tableNames,n=0,o=0;o<r.length;o++){var s=r[o];if("glyf"!==s&&"loca"!==s){var a=this.getTable(s);a.empty||(++i,n+=this.align(a.length))}}n+=t.length,n+=e.length;return n+=16*i+12,{fontProgramLength:n,numTables:i}},t.prototype.writeCheckSums=function(t,e,i,r,n,o){if(null===t)throw new Error("Argument Null Exception : writer");if(null===i)throw new Error("Argument Null Exception : newLocaTableOut");if(null===r)throw new Error("Argument Null Exception : newGlyphTable");for(var s=this.tableNames,a=16*e+12,l=0,h=0;h<s.length;h++){var u=s[h],c=this.getTable(u);if(!c.empty){if(t.writeString(u),"glyf"===u){var p=this.calculateCheckSum(r);t.writeInt(p),l=n}else if("loca"===u){p=this.calculateCheckSum(i);t.writeInt(p),l=o}else t.writeInt(c.checksum),l=c.length;t.writeUInt(a),t.writeUInt(l),a+=this.align(l)}}},t.prototype.calculateCheckSum=function(t){if(null===t)throw new Error("Argument Null Exception : bytes");for(var e=0,i=0,r=0,n=0,o=0,s=0;s<(t.length+1)/4;s++)o+=255&t[e++],n+=255&t[e++],r+=255&t[e++],i+=255&t[e++];var a=i;return a+=r<<8,a+=n<<16,a+=o<<24},t.prototype.writeGlyphs=function(t,e,i){if(null===t)throw new Error("Argument Null Exception : writer");if(null===e)throw new Error("Argument Null Exception : newLocaTableOut");if(null===i)throw new Error("Argument Null Exception : newGlyphTable");for(var r=this.tableNames,n=0;n<r.length;n++){var o=r[n],s=this.getTable(o);if(!s.empty)if("glyf"===o)t.writeBytes(i);else if("loca"===o)t.writeBytes(e);else{for(var a=this.align(s.length),l=[],h=0;h<a;h++)l.push(0);this.offset=s.offset;var u=this.read(l,0,s.length);t.writeBytes(u.buffer)}}},t.prototype.setOffset=function(t){this.offset=t},t.prototype.createInternals=function(){this.metrics=new Fu;var t=this.readNameTable(),e=this.readHeadTable();this.bIsLocaShort=0===e.indexToLocalFormat;var i=this.readHorizontalHeaderTable(),r=this.readOS2Table(),n=this.readPostTable();this.width=this.readWidthTable(i.numberOfHMetrics,e.unitsPerEm);var o=this.readCmapTable();this.initializeMetrics(t,e,i,r,n,o)},t.prototype.getGlyph=function(t){if("number"==typeof t){var e=null;this.metrics.isSymbol||null==this.microsoftGlyphs?this.metrics.isSymbol&&null!=this.macintoshGlyphs&&this.macintoshGlyphs.containsKey(t)&&(e=this.macintoshGlyphs.getValue(t)):this.microsoftGlyphs.containsKey(t)&&(e=this.microsoftGlyphs.getValue(t));return null!=e?e:this.getDefaultGlyph()}var i=null,r=t.charCodeAt(0);this.metrics.isSymbol||null===this.microsoft?(this.metrics.isSymbol&&null!==this.macintosh||this.isMacTTF)&&(0!==this.maxMacIndex?r%=this.maxMacIndex+1:r=61440==(65280&r)?255&r:r,this.macintosh.containsKey(r)&&(i=this.macintosh.getValue(r),this.isFontPresent=!0)):this.microsoft.containsKey(r)?(i=this.microsoft.getValue(r),r!==Fh.whiteSpace.charCodeAt(0)&&(this.isFontPresent=!0)):r!==Fh.whiteSpace.charCodeAt(0)&&(this.isFontPresent=!1),t===Fh.whiteSpace&&null===i&&(i=new Wu);return null!==i?i:this.getDefaultGlyph()},t.prototype.getGlyphChars=function(t){if(null===t||void 0===t)throw new Error("Argument Null Exception : chars");for(var e=new cl,i=t.keys(),r=0;r<i.length;r++){var n=i[r],o=this.getGlyph(n);o.empty||e.setValue(o.index,n.charCodeAt(0))}return e},t.prototype.getAllGlyphs=function(){for(var t=[],e=new Wu,i=0,r=0;r<this.width.length;r++){var n=this.width[r];e.index=i,e.width=n,t.push(e),i++}return t},t.prototype.readFontProgram=function(t){var e=this.getGlyphChars(t),i=this.readLocaTable(this.bIsLocaShort);e.size()<t.size()&&(this.missedGlyphs=t.size()-e.size()),this.updateGlyphChars(e,i);var r=this.generateGlyphTable(e,i,null,null),n=r.glyphTableSize,o=r.newLocaTable,s=r.newGlyphTable,a=this.updateLocaTable(o,this.bIsLocaShort,null),l=a.newLocaSize,h=a.newLocaUpdated;return this.getFontProgram(h,s,n,l)},t.prototype.convertString=function(t){if(null===t)throw new Error("Argument Null Exception : text");for(var e="",i=0;i<t.length;i++){var r=t[i],n=this.getGlyph(r);n.empty||(e+=String.fromCharCode(n.index))}return e},t.prototype.getCharWidth=function(t){var e=this.getGlyph(t);return(e=e.empty?this.getDefaultGlyph():e).empty?0:e.width},t.prototype.readString=function(t,e){if(void 0===e)return this.readString(t,!1);var i="";if(e)for(var r=0;r<t;r++)r%2!=0&&(i+=String.fromCharCode(this.fontData[this.offset])),this.offset+=1;else for(r=0;r<t;r++)i+=String.fromCharCode(this.fontData[this.offset]),this.offset+=1;return i},t.prototype.readFixed=function(t){return this.readInt16(t)+this.readInt16(t+2)/16384},t.prototype.readInt32=function(t){var e=this.fontData[t+3],i=this.fontData[t+2],r=this.fontData[t+1],n=this.fontData[t];return this.offset+=4,e+(i<<8)+(r<<16)+(n<<24)},t.prototype.readUInt32=function(t){var e=this.fontData[t+3],i=this.fontData[t+2],r=this.fontData[t+1],n=this.fontData[t];return this.offset+=4,e|i<<8|r<<16|n<<24},t.prototype.readInt16=function(t){var e=(this.fontData[t]<<8)+this.fontData[t+1];return e=32768&e?e-65536:e,this.offset+=2,e},t.prototype.readInt64=function(t){var e=this.readInt32(t+4),i=4294967296*this.readInt32(t)+e;return e<0&&(i+=4294967296),i},t.prototype.readUInt16=function(t){var e=this.fontData[t]<<8|this.fontData[t+1];return this.offset+=2,e},t.prototype.readUshortArray=function(t){for(var e=[],i=0;i<t;i++)e[i]=this.readUInt16(this.offset);return e},t.prototype.readBytes=function(t){for(var e=[],i=0;i<t;i++)e.push(this.fontData[this.offset]),this.offset+=1;return e},t.prototype.readByte=function(t){var e=this.fontData[t];return this.offset+=1,e},t.prototype.read=function(t,e,i){if(null===t)throw new Error("Argument Null Exception : buffer");var r=0,n=0;do{for(var o=0;o<i-r&&this.offset+o<this.fontData.length;o++)t[e+o]=this.fontData[this.offset+o];n=i-r,this.offset+=n,r+=n}while(r<i);return{buffer:t,written:r}},t}(),Xu=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),tc=function(){function t(){this.lineGap=0}return t.prototype.getAscent=function(t){return this.ascent*Yh.charSizeMultiplier*this.getSize(t)},t.prototype.getDescent=function(t){return this.descent*Yh.charSizeMultiplier*this.getSize(t)},t.prototype.getLineGap=function(t){return this.lineGap*Yh.charSizeMultiplier*this.getSize(t)},t.prototype.getHeight=function(t){for(var e=["cambria","candara","constantia","corbel","cariadings"],i=[],r=0;r<e.length;r++){var n=e[r];i.push(n)}return this.getDescent(t)<0?this.getAscent(t)-this.getDescent(t)+this.getLineGap(t):this.getAscent(t)+this.getDescent(t)+this.getLineGap(t)},t.prototype.getSize=function(t){var e=this.size;if(null!=t)switch(t.subSuperScript){case Oh.SubScript:e/=this.subScriptSizeFactor;break;case Oh.SuperScript:e/=this.superscriptSizeFactor}return e},t.prototype.clone=function(){return this.widthTable=ec.clone(),this},Object.defineProperty(t.prototype,"widthTable",{get:function(){return this.internalWidthTable},set:function(t){this.internalWidthTable=t},enumerable:!0,configurable:!0}),t}(),ec=function(){function t(){}return t.clone=function(){return null},t}(),ic=function(t){function e(e){var i=t.call(this)||this;if(null==e)throw new Error("ArgumentNullException:widths");return i.widths=e,i}return Xu(e,t),e.prototype.items=function(t){if(t<0||t>=this.widths.length)throw new Error("ArgumentOutOfRangeException:index, The character is not supported by the font.");return this.widths[t]},Object.defineProperty(e.prototype,"length",{get:function(){return this.widths.length},enumerable:!0,configurable:!0}),e.prototype.clone=function(){return this.widths=this.widths,this},e.prototype.toArray=function(){return new Sl(this.widths)},e}(ec),rc=function(){function t(t,e){if(this.nameString="ABCDEFGHIJKLMNOPQRSTUVWXYZ",this.dictionaryProperties=new gl,this.isCompress=!1,this.isEmbedFont=!1,this.cmapPrefix="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap"+dl.newLine+"/CIDSystemInfo << /Registry (Adobe)/Ordering (UCS)/Supplement 0>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange"+dl.newLine,this.cmapEndCodespaceRange="endcodespacerange"+dl.newLine,this.cmapBeginRange="beginbfrange"+dl.newLine,this.cmapEndRange="endbfrange"+dl.newLine,this.cmapSuffix="endbfrange\nendcmap\nCMapName currentdict /CMap defineresource pop\nend end"+dl.newLine,null===t||void 0===t)throw new Error("ArgumentNullException:base64String");this.fontSize=e,this.fontString=t,this.Initialize()}return t.prototype.getCharWidth=function(t){return this.ttfReader.getCharWidth(t)},t.prototype.getLineWidth=function(t){for(var e=0,i=0,r=t.length;i<r;i++){var n=t[i];e+=this.getCharWidth(n)}return e},t.prototype.Initialize=function(){var t=new Ou(this.fontString.length);t.writeFromBase64String(this.fontString),this.fontData=t.internalBuffer,this.ttfReader=new Zu(this.fontData),this.ttfMetrics=this.ttfReader.metrics},t.prototype.createInternals=function(){this.fontDictionary=new fl,this.fontProgram=new Hl,this.cmap=new Hl,this.descendantFont=new fl,this.metrics=new tc,this.ttfReader.createInternals(),this.ttfMetrics=this.ttfReader.metrics,this.initializeMetrics(),this.subsetName=this.getFontName(),this.createDescendantFont(),this.createCmap(),this.createFontDictionary(),this.createFontProgram()},t.prototype.getInternals=function(){return this.fontDictionary},t.prototype.initializeMetrics=function(){var t=this.ttfReader.metrics;this.metrics.ascent=t.macAscent,this.metrics.descent=t.macDescent,this.metrics.height=t.macAscent-t.macDescent+t.lineGap,this.metrics.name=t.fontFamily,this.metrics.postScriptName=t.postScriptName,this.metrics.size=this.fontSize,this.metrics.widthTable=new ic(t.widthTable),this.metrics.lineGap=t.lineGap,this.metrics.subScriptSizeFactor=t.subScriptSizeFactor,this.metrics.superscriptSizeFactor=t.superscriptSizeFactor,this.metrics.isBold=t.isBold},t.prototype.getFontName=function(){for(var t,e="",i=0;i<6;i++){var r=Math.floor(26*Math.random())+0;e+=this.nameString[r]}return e+="+",e+=this.ttfReader.metrics.postScriptName,t=e.toString(),t=this.formatName(t)},t.prototype.formatName=function(t){var e=t.replace("(","#28");return e=e.replace(")","#29"),e=e.replace("[","#5B"),e=e.replace("]","#5D"),e=e.replace("<","#3C"),e=e.replace(">","#3E"),e=e.replace("{","#7B"),e=e.replace("}","#7D"),e=e.replace("/","#2F"),(e=e.replace("%","#25")).replace(" ","#20")},t.prototype.createDescendantFont=function(){this.descendantFont.isResource=!0,this.descendantFont.descendantFontBeginSave=new ml(this),this.descendantFont.items.setValue(this.dictionaryProperties.type,new pl(this.dictionaryProperties.font)),this.descendantFont.items.setValue(this.dictionaryProperties.subtype,new pl(this.dictionaryProperties.cIDFontType2)),this.descendantFont.items.setValue(this.dictionaryProperties.baseFont,new pl(this.subsetName)),this.descendantFont.items.setValue(this.dictionaryProperties.cIDToGIDMap,new pl(this.dictionaryProperties.identity)),this.descendantFont.items.setValue(this.dictionaryProperties.dw,new Nl(1e3)),this.fontDescriptor=this.createFontDescriptor(),this.descendantFont.items.setValue(this.dictionaryProperties.fontDescriptor,new Xl(this.fontDescriptor));var t=this.createSystemInfo();this.descendantFont.items.setValue(this.dictionaryProperties.cIDSystemInfo,t)},t.prototype.createFontDescriptor=function(){var t=new fl,e=this.ttfReader.metrics;return t.isResource=!0,t.items.setValue(this.dictionaryProperties.type,new pl(this.dictionaryProperties.fontDescriptor)),t.items.setValue(this.dictionaryProperties.fontName,new pl(this.subsetName)),t.items.setValue(this.dictionaryProperties.flags,new Nl(this.getDescriptorFlags())),t.items.setValue(this.dictionaryProperties.fontBBox,Sl.fromRectangle(this.getBoundBox())),t.items.setValue(this.dictionaryProperties.missingWidth,new Nl(e.widthTable[32])),t.items.setValue(this.dictionaryProperties.stemV,new Nl(e.stemV)),t.items.setValue(this.dictionaryProperties.italicAngle,new Nl(e.italicAngle)),t.items.setValue(this.dictionaryProperties.capHeight,new Nl(e.capHeight)),t.items.setValue(this.dictionaryProperties.ascent,new Nl(e.winAscent)),t.items.setValue(this.dictionaryProperties.descent,new Nl(e.winDescent)),t.items.setValue(this.dictionaryProperties.leading,new Nl(e.leading)),t.items.setValue(this.dictionaryProperties.avgWidth,new Nl(e.widthTable[32])),t.items.setValue(this.dictionaryProperties.fontFile2,new Xl(this.fontProgram)),t.items.setValue(this.dictionaryProperties.maxWidth,new Nl(e.widthTable[32])),t.items.setValue(this.dictionaryProperties.xHeight,new Nl(0)),t.items.setValue(this.dictionaryProperties.stemH,new Nl(0)),t},t.prototype.createCmap=function(){this.cmap.cmapBeginSave=new ql(this)},t.prototype.createFontDictionary=function(){this.fontDictionary.isResource=!0,this.fontDictionary.fontDictionaryBeginSave=new Ml(this),this.fontDictionary.items.setValue(this.dictionaryProperties.type,new pl(this.dictionaryProperties.font)),this.fontDictionary.items.setValue(this.dictionaryProperties.baseFont,new pl(this.subsetName)),this.fontDictionary.items.setValue(this.dictionaryProperties.subtype,new pl(this.dictionaryProperties.type0)),this.fontDictionary.items.setValue(this.dictionaryProperties.encoding,new pl(this.dictionaryProperties.identityH));var t=new Sl,e=new Xl(this.descendantFont);t.isFont=!0,t.add(e),this.fontDictionary.items.setValue(this.dictionaryProperties.descendantFonts,t)},t.prototype.createFontProgram=function(){this.fontProgram.fontProgramBeginSave=new $l(this)},t.prototype.createSystemInfo=function(){var t=new fl;return t.items.setValue(this.dictionaryProperties.registry,new Jl("Adobe")),t.items.setValue(this.dictionaryProperties.ordering,new Jl(this.dictionaryProperties.identity)),t.items.setValue(this.dictionaryProperties.supplement,new Nl(0)),t},t.prototype.descendantFontBeginSave=function(){if(null!==this.usedChars&&void 0!==this.usedChars&&this.usedChars.size()>0){var t=this.getDescendantWidth();null!==t&&this.descendantFont.items.setValue(this.dictionaryProperties.w,t)}},t.prototype.cmapBeginSave=function(){this.generateCmap()},t.prototype.fontDictionaryBeginSave=function(){null!==this.usedChars&&void 0!==this.usedChars&&this.usedChars.size()>0&&!this.fontDictionary.containsKey(this.dictionaryProperties.toUnicode)&&this.fontDictionary.items.setValue(this.dictionaryProperties.toUnicode,new Xl(this.cmap))},t.prototype.fontProgramBeginSave=function(){this.isCompress=!0,this.generateFontProgram()},t.prototype.getDescendantWidth=function(){var t=new Sl;if(null!==this.usedChars&&void 0!==this.usedChars&&this.usedChars.size()>0){for(var e=[],i=this.usedChars.keys(),r=0;r<i.length;r++){var n=i[r];(h=this.ttfReader.getGlyph(n)).empty||e.push(h)}e.sort(function(t,e){return t.index-e.index});var o=0,s=0,a=!1,l=new Sl;for(r=0;r<e.length;r++){var h=e[r];a||(a=!0,o=h.index,s=h.index-1),(s+1!==h.index||r+1===e.length)&&e.length>1&&(t.add(new Nl(o)),0!==r&&t.add(l),o=h.index,l=new Sl),l.add(new Nl(h.width)),r+1===e.length&&(t.add(new Nl(o)),t.add(l)),s=h.index}}return t},t.prototype.generateCmap=function(){if(null!==this.usedChars&&void 0!==this.usedChars&&this.usedChars.size()>0){var t=this.ttfReader.getGlyphChars(this.usedChars);if(t.size()>0){var e=t.keys().sort(),i=e[0],r=e[e.length-1],n=this.toHexString(i,!1)+this.toHexString(r,!1)+dl.newLine,o="";o+=this.cmapPrefix,o+=n,o+=this.cmapEndCodespaceRange;for(var s=0,a=0;a<e.length;a++){0===s&&(0!==a&&(o+=this.cmapEndRange),o+=s=Math.min(100,e.length-a),o+=dl.whiteSpace,o+=this.cmapBeginRange),s-=1;var l=e[a];o+=this.toHexString(l,!0)+this.toHexString(l,!0)+this.toHexString(t.getValue(l),!0)+"\n"}o+=this.cmapSuffix,this.cmap.clearStream(),this.cmap.isResource=!0,this.cmap.write(o)}}},t.prototype.generateFontProgram=function(){var t=null;this.usedChars=null===this.usedChars||void 0===this.usedChars?new cl:this.usedChars,this.ttfReader.setOffset(0),t=this.ttfReader.readFontProgram(this.usedChars),this.fontProgram.clearStream(),this.fontProgram.isResource=!0,this.fontProgram.writeBytes(t)},t.prototype.getDescriptorFlags=function(){var t=0,e=this.ttfReader.metrics;return e.isFixedPitch&&(t|=Ph.FixedPitch),e.isSymbol?t|=Ph.Symbolic:t|=Ph.Nonsymbolic,e.isItalic&&(t|=Ph.Italic),e.isBold&&(t|=Ph.ForceBold),t},t.prototype.getBoundBox=function(){var t=this.ttfReader.metrics.fontBox,e=Math.abs(t.right-t.left),i=Math.abs(t.top-t.bottom);return new vh(t.left,t.bottom,e,i)},t.prototype.toHexString=function(t,e){var i=t.toString(16);return e&&(i=i.toUpperCase()),"<0000".substring(0,5-i.length)+i+">"},t.prototype.setSymbols=function(t){if(null===t)throw new Error("Argument Null Exception : text");null!==this.usedChars&&void 0!==this.usedChars||(this.usedChars=new cl);for(var e=0;e<t.length;e++){var i=t[e];this.usedChars.setValue(i,String.fromCharCode(0))}!1===this.isEmbedFont&&this.getDescendantWidth()},t}(),nc=function(){function t(){this.arabicCharTable=[["ء","ﺀ"],["آ","ﺁ","ﺂ"],["أ","ﺃ","ﺄ"],["ؤ","ﺅ","ﺆ"],["إ","ﺇ","ﺈ"],["ئ","ﺉ","ﺊ","ﺋ","ﺌ"],["ا","ﺍ","ﺎ"],["ب","ﺏ","ﺐ","ﺑ","ﺒ"],["ة","ﺓ","ﺔ"],["ت","ﺕ","ﺖ","ﺗ","ﺘ"],["ث","ﺙ","ﺚ","ﺛ","ﺜ"],["ج","ﺝ","ﺞ","ﺟ","ﺠ"],["ح","ﺡ","ﺢ","ﺣ","ﺤ"],["خ","ﺥ","ﺦ","ﺧ","ﺨ"],["د","ﺩ","ﺪ"],["ذ","ﺫ","ﺬ"],["ر","ﺭ","ﺮ"],["ز","ﺯ","ﺰ"],["س","ﺱ","ﺲ","ﺳ","ﺴ"],["ش","ﺵ","ﺶ","ﺷ","ﺸ"],["ص","ﺹ","ﺺ","ﺻ","ﺼ"],["ض","ﺽ","ﺾ","ﺿ","ﻀ"],["ط","ﻁ","ﻂ","ﻃ","ﻄ"],["ظ","ﻅ","ﻆ","ﻇ","ﻈ"],["ع","ﻉ","ﻊ","ﻋ","ﻌ"],["غ","ﻍ","ﻎ","ﻏ","ﻐ"],["ـ","ـ","ـ","ـ","ـ"],["ف","ﻑ","ﻒ","ﻓ","ﻔ"],["ق","ﻕ","ﻖ","ﻗ","ﻘ"],["ك","ﻙ","ﻚ","ﻛ","ﻜ"],["ل","ﻝ","ﻞ","ﻟ","ﻠ"],["م","ﻡ","ﻢ","ﻣ","ﻤ"],["ن","ﻥ","ﻦ","ﻧ","ﻨ"],["ه","ﻩ","ﻪ","ﻫ","ﻬ"],["و","ﻭ","ﻮ"],["ى","ﻯ","ﻰ","ﯨ","ﯩ"],["ي","ﻱ","ﻲ","ﻳ","ﻴ"],["ٱ","ﭐ","ﭑ"],["ٹ","ﭦ","ﭧ","ﭨ","ﭩ"],["ٺ","ﭞ","ﭟ","ﭠ","ﭡ"],["ٻ","ﭒ","ﭓ","ﭔ","ﭕ"],["پ","ﭖ","ﭗ","ﭘ","ﭙ"],["ٿ","ﭢ","ﭣ","ﭤ","ﭥ"],["ڀ","ﭚ","ﭛ","ﭜ","ﭝ"],["ڃ","ﭶ","ﭷ","ﭸ","ﭹ"],["ڄ","ﭲ","ﭳ","ﭴ","ﭵ"],["چ","ﭺ","ﭻ","ﭼ","ﭽ"],["ڇ","ﭾ","ﭿ","ﮀ","ﮁ"],["ڈ","ﮈ","ﮉ"],["ڌ","ﮄ","ﮅ"],["ڍ","ﮂ","ﮃ"],["ڎ","ﮆ","ﮇ"],["ڑ","ﮌ","ﮍ"],["ژ","ﮊ","ﮋ"],["ڤ","ﭪ","ﭫ","ﭬ","ﭭ"],["ڦ","ﭮ","ﭯ","ﭰ","ﭱ"],["ک","ﮎ","ﮏ","ﮐ","ﮑ"],["ڭ","ﯓ","ﯔ","ﯕ","ﯖ"],["گ","ﮒ","ﮓ","ﮔ","ﮕ"],["ڱ","ﮚ","ﮛ","ﮜ","ﮝ"],["ڳ","ﮖ","ﮗ","ﮘ","ﮙ"],["ں","ﮞ","ﮟ"],["ڻ","ﮠ","ﮡ","ﮢ","ﮣ"],["ھ","ﮪ","ﮫ","ﮬ","ﮭ"],["ۀ","ﮤ","ﮥ"],["ہ","ﮦ","ﮧ","ﮨ","ﮩ"],["ۅ","ﯠ","ﯡ"],["ۆ","ﯙ","ﯚ"],["ۇ","ﯗ","ﯘ"],["ۈ","ﯛ","ﯜ"],["ۉ","ﯢ","ﯣ"],["ۋ","ﯞ","ﯟ"],["ی","ﯼ","ﯽ","ﯾ","ﯿ"],["ې","ﯤ","ﯥ","ﯦ","ﯧ"],["ے","ﮮ","ﮯ"],["ۓ","ﮰ","ﮱ"]],this.alef="ا",this.alefHamza="أ",this.alefHamzaBelow="إ",this.alefMadda="آ",this.lam="ل",this.hamza="ء",this.zeroWidthJoiner="",this.hamzaAbove="ٔ",this.hamzaBelow="ٕ",this.wawHamza="ؤ",this.yehHamza="ئ",this.waw="و",this.alefMaksura="ى",this.yeh="ي",this.farsiYeh="ی",this.shadda="ّ",this.madda="ٓ",this.lwa="ﻻ",this.lwawh="ﻷ",this.lwawhb="ﻹ",this.lwawm="ﻵ",this.bwhb="ۓ",this.fathatan="ً",this.superScriptalef="ٰ",this.vowel=1,this.arabicMapTable=new cl;for(var t=0;t<this.arabicCharTable.length;t++)this.arabicMapTable.setValue(this.arabicCharTable[t][0],this.arabicCharTable[t])}return t.prototype.getCharacterShape=function(t,e){if(t>=this.hamza&&t<=this.bwhb){if(this.arabicMapTable.getValue(t))return this.arabicMapTable.getValue(t)[e+1]}else if(t>=this.lwawm&&t<=this.lwa)return t;return t},t.prototype.shape=function(t,e){for(var i="",r="",n=0;n<t.length;n++){var o=t[n];if(o>=""&&o<="ۿ")r+=o;else{if(r.length>0){i+=this.doShape(r.toString(),0),r=""}i+=o}}if(r.length>0){i+=this.doShape(r.toString(),0)}return i.toString()},t.prototype.doShape=function(t,e){for(var i="",r=0,n=0,o="",s=new oc,a=new oc;n<t.length;)if(o=t[n++],0===this.ligature(o,a)){var l=this.getShapeCount(o);r=1===l?0:2,s.Shapes>2&&(r+=1),r%=a.Shapes,a.Value=this.getCharacterShape(a.Value,r),i=this.append(i,s,e),s=a,(a=new oc).Value=o,a.Shapes=l,a.Ligature++}return r=s.Shapes>2?1:0,r%=a.Shapes,a.Value=this.getCharacterShape(a.Value,r),i=this.append(i,s,e),(i=this.append(i,a,e)).toString()},t.prototype.append=function(t,e,i){return""!==e.Value&&(t+=e.Value,e.Ligature-=1,""!==e.Type&&(0==(i&this.vowel)?(t+=e.Type,e.Ligature-=1):e.Ligature-=1),""!==e.vowel&&(0==(i&this.vowel)?(t+=e.vowel,e.Ligature-=1):e.Ligature-=1)),t},t.prototype.ligature=function(t,e){if(""!==e.Value){var i=0;if(t>=this.fathatan&&t<=this.hamzaBelow||t===this.superScriptalef){if(i=1,""!==e.vowel&&t!==this.shadda&&(i=2),t===this.shadda){if(null!=e.Type)return 0;e.Type=this.shadda}else t===this.hamzaBelow?e.Value===this.alef?(e.Value=this.alefHamzaBelow,i=2):t===this.lwa?(e.Value=this.lwawhb,i=2):e.Type=this.hamzaBelow:t===this.hamzaAbove?e.Value===this.alef?(e.Value=this.alefHamza,i=2):e.Value===this.lwa?(e.Value=this.lwawh,i=2):e.Value===this.waw?(e.Value=this.wawHamza,i=2):e.Value===this.yeh||e.Value===this.alefMaksura||e.Value===this.farsiYeh?(e.Value=this.yehHamza,i=2):e.Type=this.hamzaAbove:t===this.madda?e.Value===this.alef&&(e.Value=this.alefMadda,i=2):e.vowel=t;return 1===i&&e.Ligature++,i}return""!==e.vowel?0:(e.Value===this.lam&&(t===this.alef?(e.Value=this.lwa,e.Shapes=2,i=3):t===this.alefHamza?(e.Value=this.lwawh,e.Shapes=2,i=3):t===this.alefHamzaBelow?(e.Value=this.lwawhb,e.Shapes=2,i=3):t===this.alefMadda&&(e.Value=this.lwawm,e.Shapes=2,i=3)),i)}return 0},t.prototype.getShapeCount=function(t){if(t>=this.hamza&&t<=this.bwhb&&!(t>=this.fathatan&&t<=this.hamzaBelow||t===this.superScriptalef)){if(this.arabicMapTable.getValue(t))return this.arabicMapTable.getValue(t).length-1}else if(t===this.zeroWidthJoiner)return 4;return 1},t}(),oc=function(){function t(){this.shapeValue="",this.shapeType="",this.shapeVowel="",this.shapeLigature=0,this.shapeShapes=1}return Object.defineProperty(t.prototype,"Value",{get:function(){return this.shapeValue},set:function(t){this.shapeValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"Type",{get:function(){return this.shapeType},set:function(t){this.shapeType=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"vowel",{get:function(){return this.shapeVowel},set:function(t){this.shapeVowel=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"Ligature",{get:function(){return this.shapeLigature},set:function(t){this.shapeLigature=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"Shapes",{get:function(){return this.shapeShapes},set:function(t){this.shapeShapes=t},enumerable:!0,configurable:!0}),t}(),sc=function(){function t(){this.indexes=[],this.indexLevels=[],this.mirroringShapeCharacters=new cl,this.update()}return t.prototype.doMirrorShaping=function(t){for(var e=[],i=0;i<t.length;i++)1==(1&this.indexLevels[i])&&this.mirroringShapeCharacters.containsKey(t[i].charCodeAt(0))?e[i]=String.fromCharCode(this.mirroringShapeCharacters.getValue(t[i].charCodeAt(0))):e[i]=t[i].toString();for(var r="",n=0;n<e.length;n++)r+=e[n];return r},t.prototype.getLogicalToVisualString=function(t,e){var i=new ac;this.indexLevels=i.getVisualOrder(t,e),this.setDefaultIndexLevel(),this.doOrder(0,this.indexLevels.length-1);for(var r=this.doMirrorShaping(t),n="",o=0;o<this.indexes.length;o++){n+=r[this.indexes[o]]}return n.toString()},t.prototype.setDefaultIndexLevel=function(){for(var t=0;t<this.indexLevels.length;t++)this.indexes[t]=t},t.prototype.doOrder=function(t,e){for(var i=this.indexLevels[t],r=i,n=i,o=i,s=t+1;s<=e;++s){var a=this.indexLevels[s];a>i?i=a:a<r&&(r=a),n&=a,o|=a}if(0!=(1&o))if(1!=(1&n))for(r|=1;i>=r;){for(var l=t;;){for(;l<=e&&!(this.indexLevels[l]>=i);)l+=1;if(l>e)break;for(var h=l+1;h<=e&&!(this.indexLevels[h]<i);)h+=1;this.reArrange(l,h),l=h+1}i-=1}else this.reArrange(t,e+1)},t.prototype.reArrange=function(t,e){var i=(t+e)/2;for(--e;t<i;++t,--e){var r=this.indexes[t];this.indexes[t]=this.indexes[e],this.indexes[e]=r}},t.prototype.update=function(){this.mirroringShapeCharacters.setValue(40,41),this.mirroringShapeCharacters.setValue(41,40),this.mirroringShapeCharacters.setValue(60,62),this.mirroringShapeCharacters.setValue(62,60),this.mirroringShapeCharacters.setValue(91,93),this.mirroringShapeCharacters.setValue(93,91),this.mirroringShapeCharacters.setValue(123,125),this.mirroringShapeCharacters.setValue(125,123),this.mirroringShapeCharacters.setValue(171,187),this.mirroringShapeCharacters.setValue(187,171),this.mirroringShapeCharacters.setValue(8249,8250),this.mirroringShapeCharacters.setValue(8250,8249),this.mirroringShapeCharacters.setValue(8261,8262),this.mirroringShapeCharacters.setValue(8262,8261),this.mirroringShapeCharacters.setValue(8317,8318),this.mirroringShapeCharacters.setValue(8318,8317),this.mirroringShapeCharacters.setValue(8333,8334),this.mirroringShapeCharacters.setValue(8334,8333),this.mirroringShapeCharacters.setValue(8712,8715),this.mirroringShapeCharacters.setValue(8713,8716),this.mirroringShapeCharacters.setValue(8714,8717),this.mirroringShapeCharacters.setValue(8715,8712),this.mirroringShapeCharacters.setValue(8716,8713),this.mirroringShapeCharacters.setValue(8717,8714),this.mirroringShapeCharacters.setValue(8725,10741),this.mirroringShapeCharacters.setValue(8764,8765),this.mirroringShapeCharacters.setValue(8765,8764),this.mirroringShapeCharacters.setValue(8771,8909),this.mirroringShapeCharacters.setValue(8786,8787),this.mirroringShapeCharacters.setValue(8787,8786),this.mirroringShapeCharacters.setValue(8788,8789),this.mirroringShapeCharacters.setValue(8789,8788),this.mirroringShapeCharacters.setValue(8804,8805),this.mirroringShapeCharacters.setValue(8805,8804),this.mirroringShapeCharacters.setValue(8806,8807),this.mirroringShapeCharacters.setValue(8807,8806),this.mirroringShapeCharacters.setValue(8808,8809),this.mirroringShapeCharacters.setValue(8809,8808),this.mirroringShapeCharacters.setValue(8810,8811),this.mirroringShapeCharacters.setValue(8811,8810),this.mirroringShapeCharacters.setValue(8814,8815),this.mirroringShapeCharacters.setValue(8815,8814),this.mirroringShapeCharacters.setValue(8816,8817),this.mirroringShapeCharacters.setValue(8817,8816),this.mirroringShapeCharacters.setValue(8818,8819),this.mirroringShapeCharacters.setValue(8819,8818),this.mirroringShapeCharacters.setValue(8820,8821),this.mirroringShapeCharacters.setValue(8821,8820),this.mirroringShapeCharacters.setValue(8822,8823),this.mirroringShapeCharacters.setValue(8823,8822),this.mirroringShapeCharacters.setValue(8824,8825),this.mirroringShapeCharacters.setValue(8825,8824),this.mirroringShapeCharacters.setValue(8826,8827),this.mirroringShapeCharacters.setValue(8827,8826),this.mirroringShapeCharacters.setValue(8828,8829),this.mirroringShapeCharacters.setValue(8829,8828),this.mirroringShapeCharacters.setValue(8830,8831),this.mirroringShapeCharacters.setValue(8831,8830),this.mirroringShapeCharacters.setValue(8832,8833),this.mirroringShapeCharacters.setValue(8833,8832),this.mirroringShapeCharacters.setValue(8834,8835),this.mirroringShapeCharacters.setValue(8835,8834),this.mirroringShapeCharacters.setValue(8836,8837),this.mirroringShapeCharacters.setValue(8837,8836),this.mirroringShapeCharacters.setValue(8838,8839),this.mirroringShapeCharacters.setValue(8839,8838),this.mirroringShapeCharacters.setValue(8840,8841),this.mirroringShapeCharacters.setValue(8841,8840),this.mirroringShapeCharacters.setValue(8842,8843),this.mirroringShapeCharacters.setValue(8843,8842),this.mirroringShapeCharacters.setValue(8847,8848),this.mirroringShapeCharacters.setValue(8848,8847),this.mirroringShapeCharacters.setValue(8849,8850),this.mirroringShapeCharacters.setValue(8850,8849),this.mirroringShapeCharacters.setValue(8856,10680),this.mirroringShapeCharacters.setValue(8866,8867),this.mirroringShapeCharacters.setValue(8867,8866),this.mirroringShapeCharacters.setValue(8870,10974),this.mirroringShapeCharacters.setValue(8872,10980),this.mirroringShapeCharacters.setValue(8873,10979),this.mirroringShapeCharacters.setValue(8875,10981),this.mirroringShapeCharacters.setValue(8880,8881),this.mirroringShapeCharacters.setValue(8881,8880),this.mirroringShapeCharacters.setValue(8882,8883),this.mirroringShapeCharacters.setValue(8883,8882),this.mirroringShapeCharacters.setValue(8884,8885),this.mirroringShapeCharacters.setValue(8885,8884),this.mirroringShapeCharacters.setValue(8886,8887),this.mirroringShapeCharacters.setValue(8887,8886),this.mirroringShapeCharacters.setValue(8905,8906),this.mirroringShapeCharacters.setValue(8906,8905),this.mirroringShapeCharacters.setValue(8907,8908),this.mirroringShapeCharacters.setValue(8908,8907),this.mirroringShapeCharacters.setValue(8909,8771),this.mirroringShapeCharacters.setValue(8912,8913),this.mirroringShapeCharacters.setValue(8913,8912),this.mirroringShapeCharacters.setValue(8918,8919),this.mirroringShapeCharacters.setValue(8919,8918),this.mirroringShapeCharacters.setValue(8920,8921),this.mirroringShapeCharacters.setValue(8921,8920),this.mirroringShapeCharacters.setValue(8922,8923),this.mirroringShapeCharacters.setValue(8923,8922),this.mirroringShapeCharacters.setValue(8924,8925),this.mirroringShapeCharacters.setValue(8925,8924),this.mirroringShapeCharacters.setValue(8926,8927),this.mirroringShapeCharacters.setValue(8927,8926),this.mirroringShapeCharacters.setValue(8928,8929),this.mirroringShapeCharacters.setValue(8929,8928),this.mirroringShapeCharacters.setValue(8930,8931),this.mirroringShapeCharacters.setValue(8931,8930),this.mirroringShapeCharacters.setValue(8932,8933),this.mirroringShapeCharacters.setValue(8933,8932),this.mirroringShapeCharacters.setValue(8934,8935),this.mirroringShapeCharacters.setValue(8935,8934),this.mirroringShapeCharacters.setValue(8936,8937),this.mirroringShapeCharacters.setValue(8937,8936),this.mirroringShapeCharacters.setValue(8938,8939),this.mirroringShapeCharacters.setValue(8939,8938),this.mirroringShapeCharacters.setValue(8940,8941),this.mirroringShapeCharacters.setValue(8941,8940),this.mirroringShapeCharacters.setValue(8944,8945),this.mirroringShapeCharacters.setValue(8945,8944),this.mirroringShapeCharacters.setValue(8946,8954),this.mirroringShapeCharacters.setValue(8947,8955),this.mirroringShapeCharacters.setValue(8948,8956),this.mirroringShapeCharacters.setValue(8950,8957),this.mirroringShapeCharacters.setValue(8951,8958),this.mirroringShapeCharacters.setValue(8954,8946),this.mirroringShapeCharacters.setValue(8955,8947),this.mirroringShapeCharacters.setValue(8956,8948),this.mirroringShapeCharacters.setValue(8957,8950),this.mirroringShapeCharacters.setValue(8958,8951),this.mirroringShapeCharacters.setValue(8968,8969),this.mirroringShapeCharacters.setValue(8969,8968),this.mirroringShapeCharacters.setValue(8970,8971),this.mirroringShapeCharacters.setValue(8971,8970),this.mirroringShapeCharacters.setValue(9001,9002),this.mirroringShapeCharacters.setValue(9002,9001),this.mirroringShapeCharacters.setValue(10088,10089),this.mirroringShapeCharacters.setValue(10089,10088),this.mirroringShapeCharacters.setValue(10090,10091),this.mirroringShapeCharacters.setValue(10091,10090),this.mirroringShapeCharacters.setValue(10092,10093),this.mirroringShapeCharacters.setValue(10093,10092),this.mirroringShapeCharacters.setValue(10094,10095),this.mirroringShapeCharacters.setValue(10095,10094),this.mirroringShapeCharacters.setValue(10096,10097),this.mirroringShapeCharacters.setValue(10097,10096),this.mirroringShapeCharacters.setValue(10098,10099),this.mirroringShapeCharacters.setValue(10099,10098),this.mirroringShapeCharacters.setValue(10100,10101),this.mirroringShapeCharacters.setValue(10101,10100),this.mirroringShapeCharacters.setValue(10197,10198),this.mirroringShapeCharacters.setValue(10198,10197),this.mirroringShapeCharacters.setValue(10205,10206),this.mirroringShapeCharacters.setValue(10206,10205),this.mirroringShapeCharacters.setValue(10210,10211),this.mirroringShapeCharacters.setValue(10211,10210),this.mirroringShapeCharacters.setValue(10212,10213),this.mirroringShapeCharacters.setValue(10213,10212),this.mirroringShapeCharacters.setValue(10214,10215),this.mirroringShapeCharacters.setValue(10215,10214),this.mirroringShapeCharacters.setValue(10216,10217),this.mirroringShapeCharacters.setValue(10217,10216),this.mirroringShapeCharacters.setValue(10218,10219),this.mirroringShapeCharacters.setValue(10219,10218),this.mirroringShapeCharacters.setValue(10627,10628),this.mirroringShapeCharacters.setValue(10628,10627),this.mirroringShapeCharacters.setValue(10629,10630),this.mirroringShapeCharacters.setValue(10630,10629),this.mirroringShapeCharacters.setValue(10631,10632),this.mirroringShapeCharacters.setValue(10632,10631),this.mirroringShapeCharacters.setValue(10633,10634),this.mirroringShapeCharacters.setValue(10634,10633),this.mirroringShapeCharacters.setValue(10635,10636),this.mirroringShapeCharacters.setValue(10636,10635),this.mirroringShapeCharacters.setValue(10637,10640),this.mirroringShapeCharacters.setValue(10638,10639),this.mirroringShapeCharacters.setValue(10639,10638),this.mirroringShapeCharacters.setValue(10640,10637),this.mirroringShapeCharacters.setValue(10641,10642),this.mirroringShapeCharacters.setValue(10642,10641),this.mirroringShapeCharacters.setValue(10643,10644),this.mirroringShapeCharacters.setValue(10644,10643),this.mirroringShapeCharacters.setValue(10645,10646),this.mirroringShapeCharacters.setValue(10646,10645),this.mirroringShapeCharacters.setValue(10647,10648),this.mirroringShapeCharacters.setValue(10648,10647),this.mirroringShapeCharacters.setValue(10680,8856),this.mirroringShapeCharacters.setValue(10688,10689),this.mirroringShapeCharacters.setValue(10689,10688),this.mirroringShapeCharacters.setValue(10692,10693),this.mirroringShapeCharacters.setValue(10693,10692),this.mirroringShapeCharacters.setValue(10703,10704),this.mirroringShapeCharacters.setValue(10704,10703),this.mirroringShapeCharacters.setValue(10705,10706),this.mirroringShapeCharacters.setValue(10706,10705),this.mirroringShapeCharacters.setValue(10708,10709),this.mirroringShapeCharacters.setValue(10709,10708),this.mirroringShapeCharacters.setValue(10712,10713),this.mirroringShapeCharacters.setValue(10713,10712),this.mirroringShapeCharacters.setValue(10714,10715),this.mirroringShapeCharacters.setValue(10715,10714),this.mirroringShapeCharacters.setValue(10741,8725),this.mirroringShapeCharacters.setValue(10744,10745),this.mirroringShapeCharacters.setValue(10745,10744),this.mirroringShapeCharacters.setValue(10748,10749),this.mirroringShapeCharacters.setValue(10749,10748),this.mirroringShapeCharacters.setValue(10795,10796),this.mirroringShapeCharacters.setValue(10796,10795),this.mirroringShapeCharacters.setValue(10797,10796),this.mirroringShapeCharacters.setValue(10798,10797),this.mirroringShapeCharacters.setValue(10804,10805),this.mirroringShapeCharacters.setValue(10805,10804),this.mirroringShapeCharacters.setValue(10812,10813),this.mirroringShapeCharacters.setValue(10813,10812),this.mirroringShapeCharacters.setValue(10852,10853),this.mirroringShapeCharacters.setValue(10853,10852),this.mirroringShapeCharacters.setValue(10873,10874),this.mirroringShapeCharacters.setValue(10874,10873),this.mirroringShapeCharacters.setValue(10877,10878),this.mirroringShapeCharacters.setValue(10878,10877),this.mirroringShapeCharacters.setValue(10879,10880),this.mirroringShapeCharacters.setValue(10880,10879),this.mirroringShapeCharacters.setValue(10881,10882),this.mirroringShapeCharacters.setValue(10882,10881),this.mirroringShapeCharacters.setValue(10883,10884),this.mirroringShapeCharacters.setValue(10884,10883),this.mirroringShapeCharacters.setValue(10891,10892),this.mirroringShapeCharacters.setValue(10892,10891),this.mirroringShapeCharacters.setValue(10897,10898),this.mirroringShapeCharacters.setValue(10898,10897),this.mirroringShapeCharacters.setValue(10899,10900),this.mirroringShapeCharacters.setValue(10900,10899),this.mirroringShapeCharacters.setValue(10901,10902),this.mirroringShapeCharacters.setValue(10902,10901),this.mirroringShapeCharacters.setValue(10903,10904),this.mirroringShapeCharacters.setValue(10904,10903),this.mirroringShapeCharacters.setValue(10905,10906),this.mirroringShapeCharacters.setValue(10906,10905),this.mirroringShapeCharacters.setValue(10907,10908),this.mirroringShapeCharacters.setValue(10908,10907),this.mirroringShapeCharacters.setValue(10913,10914),this.mirroringShapeCharacters.setValue(10914,10913),this.mirroringShapeCharacters.setValue(10918,10919),this.mirroringShapeCharacters.setValue(10919,10918),this.mirroringShapeCharacters.setValue(10920,10921),this.mirroringShapeCharacters.setValue(10921,10920),this.mirroringShapeCharacters.setValue(10922,10923),this.mirroringShapeCharacters.setValue(10923,10922),this.mirroringShapeCharacters.setValue(10924,10925),this.mirroringShapeCharacters.setValue(10925,10924),this.mirroringShapeCharacters.setValue(10927,10928),this.mirroringShapeCharacters.setValue(10928,10927),this.mirroringShapeCharacters.setValue(10931,10932),this.mirroringShapeCharacters.setValue(10932,10931),this.mirroringShapeCharacters.setValue(10939,10940),this.mirroringShapeCharacters.setValue(10940,10939),this.mirroringShapeCharacters.setValue(10941,10942),this.mirroringShapeCharacters.setValue(10942,10941),this.mirroringShapeCharacters.setValue(10943,10944),this.mirroringShapeCharacters.setValue(10944,10943),this.mirroringShapeCharacters.setValue(10945,10946),this.mirroringShapeCharacters.setValue(10946,10945),this.mirroringShapeCharacters.setValue(10947,10948),this.mirroringShapeCharacters.setValue(10948,10947),this.mirroringShapeCharacters.setValue(10949,10950),this.mirroringShapeCharacters.setValue(10950,10949),this.mirroringShapeCharacters.setValue(10957,10958),this.mirroringShapeCharacters.setValue(10958,10957),this.mirroringShapeCharacters.setValue(10959,10960),this.mirroringShapeCharacters.setValue(10960,10959),this.mirroringShapeCharacters.setValue(10961,10962),this.mirroringShapeCharacters.setValue(10962,10961),this.mirroringShapeCharacters.setValue(10963,10964),this.mirroringShapeCharacters.setValue(10964,10963),this.mirroringShapeCharacters.setValue(10965,10966),this.mirroringShapeCharacters.setValue(10966,10965),this.mirroringShapeCharacters.setValue(10974,8870),this.mirroringShapeCharacters.setValue(10979,8873),this.mirroringShapeCharacters.setValue(10980,8872),this.mirroringShapeCharacters.setValue(10981,8875),this.mirroringShapeCharacters.setValue(10988,10989),this.mirroringShapeCharacters.setValue(10989,10988),this.mirroringShapeCharacters.setValue(10999,11e3),this.mirroringShapeCharacters.setValue(11e3,10999),this.mirroringShapeCharacters.setValue(11001,11002),this.mirroringShapeCharacters.setValue(11002,11001),this.mirroringShapeCharacters.setValue(12296,12297),this.mirroringShapeCharacters.setValue(12297,12296),this.mirroringShapeCharacters.setValue(12298,12299),this.mirroringShapeCharacters.setValue(12299,12298),this.mirroringShapeCharacters.setValue(12300,12301),this.mirroringShapeCharacters.setValue(12301,12300),this.mirroringShapeCharacters.setValue(12302,12303),this.mirroringShapeCharacters.setValue(12303,12302),this.mirroringShapeCharacters.setValue(12304,12305),this.mirroringShapeCharacters.setValue(12305,12304),this.mirroringShapeCharacters.setValue(12308,12309),this.mirroringShapeCharacters.setValue(12309,12308),this.mirroringShapeCharacters.setValue(12310,12311),this.mirroringShapeCharacters.setValue(12311,12310),this.mirroringShapeCharacters.setValue(12312,12313),this.mirroringShapeCharacters.setValue(12313,12312),this.mirroringShapeCharacters.setValue(12314,12315),this.mirroringShapeCharacters.setValue(12315,12314),this.mirroringShapeCharacters.setValue(65288,65289),this.mirroringShapeCharacters.setValue(65289,65288),this.mirroringShapeCharacters.setValue(65308,65310),this.mirroringShapeCharacters.setValue(65310,65308),this.mirroringShapeCharacters.setValue(65339,65341),this.mirroringShapeCharacters.setValue(65341,65339),this.mirroringShapeCharacters.setValue(65371,65373),this.mirroringShapeCharacters.setValue(65373,65371),this.mirroringShapeCharacters.setValue(65375,65376),this.mirroringShapeCharacters.setValue(65376,65375),this.mirroringShapeCharacters.setValue(65378,65379),this.mirroringShapeCharacters.setValue(65379,65378)},t}(),ac=function(){function t(){this.types=[],this.textOrder=-1,this.rtlCharacterTypes=new Array(65536),this.L=0,this.LRE=1,this.LRO=2,this.R=3,this.AL=4,this.RLE=5,this.RLO=6,this.PDF=7,this.EN=8,this.ES=9,this.ET=10,this.AN=11,this.CS=12,this.NSM=13,this.BN=14,this.B=15,this.S=16,this.WS=17,this.ON=18,this.charTypes=[this.L,this.EN,this.BN,this.ES,this.ES,this.S,this.ET,this.ET,this.B,this.AN,this.AN,this.S,this.CS,this.CS,this.WS,this.NSM,this.NSM,this.B,this.BN,27,this.BN,28,30,this.B,31,31,this.S,32,32,this.WS,33,34,this.ON,35,37,this.ET,38,42,this.ON,43,43,this.ET,44,44,this.CS,45,45,this.ET,46,46,this.CS,47,47,this.CS,48,57,this.EN,58,58,this.CS,59,64,this.ON,65,90,this.L,91,96,this.ON,97,122,this.L,123,126,this.ON,127,132,this.BN,133,133,this.B,134,159,this.BN,160,160,this.CS,161,161,this.ON,162,165,this.ET,166,169,this.ON,170,170,this.L,171,175,this.ON,176,177,this.ET,178,179,this.EN,180,180,this.ON,181,181,this.L,182,184,this.ON,185,185,this.EN,186,186,this.L,187,191,this.ON,192,214,this.L,215,215,this.ON,216,246,this.L,247,247,this.ON,248,696,this.L,697,698,this.ON,699,705,this.L,706,719,this.ON,720,721,this.L,722,735,this.ON,736,740,this.L,741,749,this.ON,750,750,this.L,751,767,this.ON,768,855,this.NSM,856,860,this.L,861,879,this.NSM,880,883,this.L,884,885,this.ON,886,893,this.L,894,894,this.ON,895,899,this.L,900,901,this.ON,902,902,this.L,903,903,this.ON,904,1013,this.L,1014,1014,this.ON,1015,1154,this.L,1155,1158,this.NSM,1159,1159,this.L,1160,1161,this.NSM,1162,1417,this.L,1418,1418,this.ON,1419,1424,this.L,1425,1441,this.NSM,1442,1442,this.L,1443,1465,this.NSM,1466,1466,this.L,1467,1469,this.NSM,1470,1470,this.R,1471,1471,this.NSM,1472,1472,this.R,1473,1474,this.NSM,1475,1475,this.R,1476,1476,this.NSM,1477,1487,this.L,1488,1514,this.R,1515,1519,this.L,1520,1524,this.R,1525,1535,this.L,1536,1539,this.AL,1540,1547,this.L,1548,1548,this.CS,1549,1549,this.AL,1550,1551,this.ON,1552,1557,this.NSM,1558,1562,this.L,1563,1563,this.AL,1564,1566,this.L,1567,1567,this.AL,1568,1568,this.L,1569,1594,this.AL,1595,1599,this.L,1600,1610,this.AL,1611,1624,this.NSM,1625,1631,this.L,1632,1641,this.AN,1642,1642,this.ET,1643,1644,this.AN,1645,1647,this.AL,1648,1648,this.NSM,1649,1749,this.AL,1750,1756,this.NSM,1757,1757,this.AL,1758,1764,this.NSM,1765,1766,this.AL,1767,1768,this.NSM,1769,1769,this.ON,1770,1773,this.NSM,1774,1775,this.AL,1776,1785,this.EN,1786,1805,this.AL,1806,1806,this.L,1807,1807,this.BN,1808,1808,this.AL,1809,1809,this.NSM,1810,1839,this.AL,1840,1866,this.NSM,1867,1868,this.L,1869,1871,this.AL,1872,1919,this.L,1920,1957,this.AL,1958,1968,this.NSM,1969,1969,this.AL,1970,2304,this.L,2305,2306,this.NSM,2307,2363,this.L,2364,2364,this.NSM,2365,2368,this.L,2369,2376,this.NSM,2377,2380,this.L,2381,2381,this.NSM,2382,2384,this.L,2385,2388,this.NSM,2389,2401,this.L,2402,2403,this.NSM,2404,2432,this.L,2433,2433,this.NSM,2434,2491,this.L,2492,2492,this.NSM,2493,2496,this.L,2497,2500,this.NSM,2501,2508,this.L,2509,2509,this.NSM,2510,2529,this.L,2530,2531,this.NSM,2532,2545,this.L,2546,2547,this.ET,2548,2560,this.L,2561,2562,this.NSM,2563,2619,this.L,2620,2620,this.NSM,2621,2624,this.L,2625,2626,this.NSM,2627,2630,this.L,2631,2632,this.NSM,2633,2634,this.L,2635,2637,this.NSM,2638,2671,this.L,2672,2673,this.NSM,2674,2688,this.L,2689,2690,this.NSM,2691,2747,this.L,2748,2748,this.NSM,2749,2752,this.L,2753,2757,this.NSM,2758,2758,this.L,2759,2760,this.NSM,2761,2764,this.L,2765,2765,this.NSM,2766,2785,this.L,2786,2787,this.NSM,2788,2800,this.L,2801,2801,this.ET,2802,2816,this.L,2817,2817,this.NSM,2818,2875,this.L,2876,2876,this.NSM,2877,2878,this.L,2879,2879,this.NSM,2880,2880,this.L,2881,2883,this.NSM,2884,2892,this.L,2893,2893,this.NSM,2894,2901,this.L,2902,2902,this.NSM,2903,2945,this.L,2946,2946,this.NSM,2947,3007,this.L,3008,3008,this.NSM,3009,3020,this.L,3021,3021,this.NSM,3022,3058,this.L,3059,3064,this.ON,3065,3065,this.ET,3066,3066,this.ON,3067,3133,this.L,3134,3136,this.NSM,3137,3141,this.L,3142,3144,this.NSM,3145,3145,this.L,3146,3149,this.NSM,3150,3156,this.L,3157,3158,this.NSM,3159,3259,this.L,3260,3260,this.NSM,3261,3275,this.L,3276,3277,this.NSM,3278,3392,this.L,3393,3395,this.NSM,3396,3404,this.L,3405,3405,this.NSM,3406,3529,this.L,3530,3530,this.NSM,3531,3537,this.L,3538,3540,this.NSM,3541,3541,this.L,3542,3542,this.NSM,3543,3632,this.L,3633,3633,this.NSM,3634,3635,this.L,3636,3642,this.NSM,3643,3646,this.L,3647,3647,this.ET,3648,3654,this.L,3655,3662,this.NSM,3663,3760,this.L,3761,3761,this.NSM,3762,3763,this.L,3764,3769,this.NSM,3770,3770,this.L,3771,3772,this.NSM,3773,3783,this.L,3784,3789,this.NSM,3790,3863,this.L,3864,3865,this.NSM,3866,3892,this.L,3893,3893,this.NSM,3894,3894,this.L,3895,3895,this.NSM,3896,3896,this.L,3897,3897,this.NSM,3898,3901,this.ON,3902,3952,this.L,3953,3966,this.NSM,3967,3967,this.L,3968,3972,this.NSM,3973,3973,this.L,3974,3975,this.NSM,3976,3983,this.L,3984,3991,this.NSM,3992,3992,this.L,3993,4028,this.NSM,4029,4037,this.L,4038,4038,this.NSM,4039,4140,this.L,4141,4144,this.NSM,4145,4145,this.L,4146,4146,this.NSM,4147,4149,this.L,4150,4151,this.NSM,4152,4152,this.L,4153,4153,this.NSM,4154,4183,this.L,4184,4185,this.NSM,4186,5759,this.L,5760,5760,this.WS,5761,5786,this.L,5787,5788,this.ON,5789,5905,this.L,5906,5908,this.NSM,5909,5937,this.L,5938,5940,this.NSM,5941,5969,this.L,5970,5971,this.NSM,5972,6001,this.L,6002,6003,this.NSM,6004,6070,this.L,6071,6077,this.NSM,6078,6085,this.L,6086,6086,this.NSM,6087,6088,this.L,6089,6099,this.NSM,6100,6106,this.L,6107,6107,this.ET,6108,6108,this.L,6109,6109,this.NSM,6110,6127,this.L,6128,6137,this.ON,6138,6143,this.L,6144,6154,this.ON,6155,6157,this.NSM,6158,6158,this.WS,6159,6312,this.L,6313,6313,this.NSM,6314,6431,this.L,6432,6434,this.NSM,6435,6438,this.L,6439,6443,this.NSM,6444,6449,this.L,6450,6450,this.NSM,6451,6456,this.L,6457,6459,this.NSM,6460,6463,this.L,6464,6464,this.ON,6465,6467,this.L,6468,6469,this.ON,6470,6623,this.L,6624,6655,this.ON,6656,8124,this.L,8125,8125,this.ON,8126,8126,this.L,8127,8129,this.ON,8130,8140,this.L,8141,8143,this.ON,8144,8156,this.L,8157,8159,this.ON,8160,8172,this.L,8173,8175,this.ON,8176,8188,this.L,8189,8190,this.ON,8191,8191,this.L,8192,8202,this.WS,8203,8205,this.BN,8206,8206,this.L,8207,8207,this.R,8208,8231,this.ON,8232,8232,this.WS,8233,8233,this.B,8234,8234,this.LRE,8235,8235,this.RLE,8236,8236,this.PDF,8237,8237,this.LRO,8238,8238,this.RLO,8239,8239,this.WS,8240,8244,this.ET,8245,8276,this.ON,8277,8278,this.L,8279,8279,this.ON,8280,8286,this.L,8287,8287,this.WS,8288,8291,this.BN,8292,8297,this.L,8298,8303,this.BN,8304,8304,this.EN,8305,8307,this.L,8308,8313,this.EN,8314,8315,this.ET,8316,8318,this.ON,8319,8319,this.L,8320,8329,this.EN,8330,8331,this.ET,8332,8334,this.ON,8335,8351,this.L,8352,8369,this.ET,8370,8399,this.L,8400,8426,this.NSM,8427,8447,this.L,8448,8449,this.ON,8450,8450,this.L,8451,8454,this.ON,8455,8455,this.L,8456,8457,this.ON,8458,8467,this.L,8468,8468,this.ON,8469,8469,this.L,8470,8472,this.ON,8473,8477,this.L,8478,8483,this.ON,8484,8484,this.L,8485,8485,this.ON,8486,8486,this.L,8487,8487,this.ON,8488,8488,this.L,8489,8489,this.ON,8490,8493,this.L,8494,8494,this.ET,8495,8497,this.L,8498,8498,this.ON,8499,8505,this.L,8506,8507,this.ON,8508,8511,this.L,8512,8516,this.ON,8517,8521,this.L,8522,8523,this.ON,8524,8530,this.L,8531,8543,this.ON,8544,8591,this.L,8592,8721,this.ON,8722,8723,this.ET,8724,9013,this.ON,9014,9082,this.L,9083,9108,this.ON,9109,9109,this.L,9110,9168,this.ON,9169,9215,this.L,9216,9254,this.ON,9255,9279,this.L,9280,9290,this.ON,9291,9311,this.L,9312,9371,this.EN,9372,9449,this.L,9450,9450,this.EN,9451,9751,this.ON,9752,9752,this.L,9753,9853,this.ON,9854,9855,this.L,9856,9873,this.ON,9874,9887,this.L,9888,9889,this.ON,9890,9984,this.L,9985,9988,this.ON,9989,9989,this.L,9990,9993,this.ON,9994,9995,this.L,9996,10023,this.ON,10024,10024,this.L,10025,10059,this.ON,10060,10060,this.L,10061,10061,this.ON,10062,10062,this.L,10063,10066,this.ON,10067,10069,this.L,10070,10070,this.ON,10071,10071,this.L,10072,10078,this.ON,10079,10080,this.L,10081,10132,this.ON,10133,10135,this.L,10136,10159,this.ON,10160,10160,this.L,10161,10174,this.ON,10175,10191,this.L,10192,10219,this.ON,10220,10223,this.L,10224,11021,this.ON,11022,11903,this.L,11904,11929,this.ON,11930,11930,this.L,11931,12019,this.ON,12020,12031,this.L,12032,12245,this.ON,12246,12271,this.L,12272,12283,this.ON,12284,12287,this.L,12288,12288,this.WS,12289,12292,this.ON,12293,12295,this.L,12296,12320,this.ON,12321,12329,this.L,12330,12335,this.NSM,12336,12336,this.ON,12337,12341,this.L,12342,12343,this.ON,12344,12348,this.L,12349,12351,this.ON,12352,12440,this.L,12441,12442,this.NSM,12443,12444,this.ON,12445,12447,this.L,12448,12448,this.ON,12449,12538,this.L,12539,12539,this.ON,12540,12828,this.L,12829,12830,this.ON,12831,12879,this.L,12880,12895,this.ON,12896,12923,this.L,12924,12925,this.ON,12926,12976,this.L,12977,12991,this.ON,12992,13003,this.L,13004,13007,this.ON,13008,13174,this.L,13175,13178,this.ON,13179,13277,this.L,13278,13279,this.ON,13280,13310,this.L,13311,13311,this.ON,13312,19903,this.L,19904,19967,this.ON,19968,42127,this.L,42128,42182,this.ON,42183,64284,this.L,64285,64285,this.R,64286,64286,this.NSM,64287,64296,this.R,64297,64297,this.ET,64298,64310,this.R,64311,64311,this.L,64312,64316,this.R,64317,64317,this.L,64318,64318,this.R,64319,64319,this.L,64320,64321,this.R,64322,64322,this.L,64323,64324,this.R,64325,64325,this.L,64326,64335,this.R,64336,64433,this.AL,64434,64466,this.L,64467,64829,this.AL,64830,64831,this.ON,64832,64847,this.L,64848,64911,this.AL,64912,64913,this.L,64914,64967,this.AL,64968,65007,this.L,65008,65020,this.AL,65021,65021,this.ON,65022,65023,this.L,65024,65039,this.NSM,65040,65055,this.L,65056,65059,this.NSM,65060,65071,this.L,65072,65103,this.ON,65104,65104,this.CS,65105,65105,this.ON,65106,65106,this.CS,65107,65107,this.L,65108,65108,this.ON,65109,65109,this.CS,65110,65118,this.ON,65119,65119,this.ET,65120,65121,this.ON,65122,65123,this.ET,65124,65126,this.ON,65127,65127,this.L,65128,65128,this.ON,65129,65130,this.ET,65131,65131,this.ON,65132,65135,this.L,65136,65140,this.AL,65141,65141,this.L,65142,65276,this.AL,65277,65278,this.L,65279,65279,this.BN,65280,65280,this.L,65281,65282,this.ON,65283,65285,this.ET,65286,65290,this.ON,65291,65291,this.ET,65292,65292,this.CS,65293,65293,this.ET,65294,65294,this.CS,65295,65295,this.ES,65296,65305,this.EN,65306,65306,this.CS,65307,65312,this.ON,65313,65338,this.L,65339,65344,this.ON,65345,65370,this.L,65371,65381,this.ON,65382,65503,this.L,65504,65505,this.ET,65506,65508,this.ON,65509,65510,this.ET,65511,65511,this.L,65512,65518,this.ON,65519,65528,this.L,65529,65531,this.BN,65532,65533,this.ON,65534,65535,this.L];for(var t=0;t<this.charTypes.length;++t)for(var e=this.charTypes[t],i=this.charTypes[++t],r=this.charTypes[++t];e<=i;)this.rtlCharacterTypes[e++]=r}return t.prototype.getVisualOrder=function(t,e){this.types=this.getCharacterCode(t),this.textOrder=e?this.LRE:this.L,this.doVisualOrder();for(var i=[],r=0;r<this.levels.length;r++)i[r]=this.levels[r];return i},t.prototype.getCharacterCode=function(t){for(var e=[],i=0;i<t.length;i++)e[i]=this.rtlCharacterTypes[t[i].charCodeAt(0)];return e},t.prototype.setDefaultLevels=function(){for(var t=0;t<this.length;t++)this.levels[t]=this.textOrder},t.prototype.setLevels=function(){this.setDefaultLevels();for(var t=0;t<this.length;++t){var e=this.levels[t];0!=(128&e)&&(e&=127,this.result[t]=0==(1&e)?this.L:this.R),this.levels[t]=e}},t.prototype.updateLevels=function(t,e,i){if(0==(1&e))for(var r=t;r<i;++r)this.result[r]===this.R?this.levels[r]+=1:this.result[r]!==this.L&&(this.levels[r]+=2);else for(r=t;r<i;++r)this.result[r]!==this.R&&(this.levels[r]+=1)},t.prototype.doVisualOrder=function(){this.length=this.types.length,this.result=this.types,this.levels=[],this.setLevels(),this.length=this.getEmbeddedCharactersLength();for(var t=this.textOrder,e=0;e<this.length;){for(var i=this.levels[e],r=0==(1&Math.max(t,i))?this.L:this.R,n=e+1;n<this.length&&this.levels[n]===i;)++n;var o=n<this.length?this.levels[n]:this.textOrder,s=0==(1&Math.max(o,i))?this.L:this.R;this.checkNSM(e,n,i,r,s),this.updateLevels(e,i,n),t=i,e=n}this.checkEmbeddedCharacters(this.length)},t.prototype.getEmbeddedCharactersLength=function(){for(var t=0,e=0;e<this.length;++e)this.types[e]!==this.LRE&&this.types[e]!==this.RLE&&this.types[e]!==this.LRO&&this.types[e]!==this.RLO&&this.types[e]!==this.PDF&&this.types[e]!==this.BN&&(this.result[t]=this.result[e],this.levels[t]=this.levels[e],t++);return t},t.prototype.checkEmbeddedCharacters=function(t){for(var e=this.types.length-1;e>=0;--e)this.types[e]===this.LRE||this.types[e]===this.RLE||this.types[e]===this.LRO||this.types[e]===this.RLO||this.types[e]===this.PDF||this.types[e]===this.BN?(this.result[e]=this.types[e],this.levels[e]=-1):(t-=1,this.result[e]=this.result[t],this.levels[e]=this.levels[t]);for(e=0;e<this.types.length;e++)-1===this.levels[e]&&(this.levels[e]=0===e?this.textOrder:this.levels[e-1])},t.prototype.checkNSM=function(t,e,i,r,n){for(var o=r,s=t;s<e;++s)this.result[s]===this.NSM?this.result[s]=o:o=this.result[s];this.checkEuropeanDigits(t,e,i,r,n)},t.prototype.checkEuropeanDigits=function(t,e,i,r,n){for(var o=t;o<e;++o)if(this.result[o]===this.EN)for(var s=o-1;s>=t;--s)if(this.result[s]===this.L||this.result[s]===this.R||this.result[s]===this.AL){this.result[s]===this.AL&&(this.result[o]=this.AN);break}this.checkArabicCharacters(t,e,i,r,n)},t.prototype.checkArabicCharacters=function(t,e,i,r,n){for(var o=t;o<e;++o)this.result[o]===this.AL&&(this.result[o]=this.R);this.checkEuropeanNumberSeparator(t,e,i,r,n)},t.prototype.checkEuropeanNumberSeparator=function(t,e,i,r,n){for(var o=t+1;o<e-1;++o)if(this.result[o]===this.ES||this.result[o]===this.CS){var s=this.result[o-1],a=this.result[o+1];s===this.EN&&a===this.EN?this.result[o]=this.EN:this.result[o]===this.CS&&s===this.AN&&a===this.AN&&(this.result[o]=this.AN)}this.checkEuropeanNumberTerminator(t,e,i,r,n)},t.prototype.checkEuropeanNumberTerminator=function(t,e,i,r,n){for(var o=t;o<e;++o)if(this.result[o]===this.ET){var s=o,a=[];a.push(this.ET);var l=this.getLength(s,e,a),h=s===t?r:this.result[s-1];if(h!==this.EN&&(h=l===e?n:this.result[l]),h===this.EN)for(var u=s;u<l;++u)this.result[u]=this.EN;o=l}this.checkOtherNeutrals(t,e,i,r,n)},t.prototype.checkOtherNeutrals=function(t,e,i,r,n){for(var o=t;o<e;++o)this.result[o]!==this.ES&&this.result[o]!==this.ET&&this.result[o]!==this.CS||(this.result[o]=this.ON);this.checkOtherCharacters(t,e,i,r,n)},t.prototype.checkOtherCharacters=function(t,e,i,r,n){for(var o=t;o<e;++o)if(this.result[o]===this.EN){for(var s=r,a=o-1;a>=t;--a)if(this.result[a]===this.L||this.result[a]===this.R){s=this.result[a];break}s===this.L&&(this.result[o]=this.L)}this.checkCommanCharacters(t,e,i,r,n)},t.prototype.getLength=function(t,e,i){for(--t;++t<e;){for(var r=this.result[t],n=0;n<i.length;++n)r===i[n]&&(t=this.getLength(++t,e,i));return t}return e},t.prototype.checkCommanCharacters=function(t,e,i,r,n){for(var o=t;o<e;++o)if(this.result[o]===this.WS||this.result[o]===this.ON||this.result[o]===this.B||this.result[o]===this.S){var s=o,a=[this.B,this.S,this.WS,this.ON],l=this.getLength(s,e,a),h=0,u=0,c=0;s===t?h=r:(h=this.result[s-1])===this.AN?h=this.R:h===this.EN&&(h=this.R),l===e?u=n:(u=this.result[l])===this.AN?u=this.R:u===this.EN&&(u=this.R),c=h===u?h:0==(1&i)?this.L:this.R;for(var p=s;p<l;++p)this.result[p]=c;o=l}},t}(),lc=function(){function t(){this.openBracket="(",this.closeBracket=")"}return t.prototype.layout=function(t,e,i,r,n){if(null==t)throw new Error("ArgumentNullException : line");if(null==e)throw new Error("ArgumentNullException : font");var o=[];return e.Unicode?o=this.customLayout(t,i,n,e,r):(o=[])[0]=t,o},t.prototype.splitLayout=function(t,e,i,r,n){if(null==t)throw new Error("ArgumentNullException : line");if(null==e)throw new Error("ArgumentNullException : font");return this.customSplitLayout(t,e,i,r,n)},t.prototype.getGlyphIndex=function(t,e,i,r,n){if(null==t)throw new Error("ArgumentNullException : line");if(null==e)throw new Error("ArgumentNullException : font");if(r=null,0===t.length)return{success:!1,glyphs:r};var o=(new nc).shape(t,0),s=e.fontInternal.ttfReader;r=new Uint16Array(o.length);for(var a=0,l=0,h=o.length;l<h;l++){var u=o[l],c=s.getGlyph(u);null!==c&&void 0!==c&&(r[a++]=c.index)}return{success:!0,glyphs:r}},t.prototype.customLayout=function(t,e,i,r,n){if(null===n||void 0===n){if(null==t)throw new Error("ArgumentNullException : line");var o=null;if(null!==i&&void 0!==i&&i.textDirection!==gh.None){o=(new sc).getLogicalToVisualString(t,e)}return o}if(null==t)throw new Error("ArgumentNullException : line");if(null==r)throw new Error("ArgumentNullException : font");var s=null;if(null!==i&&void 0!==i&&i.textDirection!==gh.None){var a=(new nc).shape(t,0);s=this.customLayout(a,e,i)}o=[];if(n){for(var l=s.split(""),h=l.length,u=0;u<h;u++)l[u]=this.addChars(r,l[u]);o=l}else(o=[])[0]=this.addChars(r,s);return o},t.prototype.addChars=function(t,e){var i=e;if(null==t)throw new Error("ArgumentNullException : font");if(null==i)throw new Error("ArgumentNullException : line");var r=i,n=t.fontInternal.ttfReader;t.setSymbols(r),r=n.convertString(r);var o=Jl.toUnicodeArray(r,!1);return r=Jl.byteToString(o)},t.prototype.customSplitLayout=function(t,e,i,r,n){if(null==t)throw new Error("ArgumentNullException : line");if(null==e)throw new Error("ArgumentNullException : font");return this.customLayout(t,i,n).split("")},t}();!function(t){t[t.Paginate=0]="Paginate",t[t.OnePage=1]="OnePage"}(xu||(xu={}));var hc;!function(t){t[t.FitPage=0]="FitPage",t[t.FitElement=1]="FitElement",t[t.FitColumnsToPage=2]="FitColumnsToPage"}(hc||(hc={}));var uc;!function(t){t[t.Start=0]="Start",t[t.Line=1]="Line",t[t.Bezier3=3]="Bezier3",t[t.Bezier=3]="Bezier",t[t.PathTypeMask=7]="PathTypeMask",t[t.DashMode=16]="DashMode",t[t.PathMarker=32]="PathMarker",t[t.CloseSubpath=128]="CloseSubpath"}(uc||(uc={}));var cc,pc=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),dc=function(t){function e(e){var i=t.call(this)||this;return i.mbackground=new yh(255,255,255),i.mbStroking=!1,i.mfunction=null,i.dictionaryProperties=new gl,i.mpatternDictionary=new fl,i.mpatternDictionary.items.setValue(i.dictionaryProperties.type,new pl(i.dictionaryProperties.pattern)),i.mpatternDictionary.items.setValue(i.dictionaryProperties.patternType,new Nl(2)),i.shading=e,i.colorSpace=uh.Rgb,i}return pc(e,t),Object.defineProperty(e.prototype,"background",{get:function(){return this.mbackground},set:function(t){this.mbackground=t;var e=this.shading;t.isEmpty?e.remove(this.dictionaryProperties.background):e.items.setValue(this.dictionaryProperties.background,t.toArray(this.colorSpace))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"antiAlias",{get:function(){return this.shading.items.getValue(this.dictionaryProperties.antiAlias).value},set:function(t){var e=this.shading,i=e.items.getValue(this.dictionaryProperties.antiAlias);null==i&&void 0===i?(i=new Kh(t),e.items.setValue(this.dictionaryProperties.antiAlias,i)):i.value=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"function",{get:function(){return this.mfunction},set:function(t){this.mfunction=t,null!=t&&void 0!==t?this.shading.items.setValue(this.dictionaryProperties.function,new Xl(this.mfunction)):this.shading.remove(this.dictionaryProperties.function)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bBox",{get:function(){return this.shading.items.getValue(this.dictionaryProperties.bBox)},set:function(t){var e=this.shading;null==t&&void 0===t?e.remove(this.dictionaryProperties.bBox):e.items.setValue(this.dictionaryProperties.bBox,t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorSpace",{get:function(){return this.mcolorSpace},set:function(t){var e=this.shading.items.getValue(this.dictionaryProperties.colorSpace);if(t!==this.mcolorSpace||null==e){this.mcolorSpace=t;var i=this.colorSpaceToDeviceName(t);this.shading.items.setValue(this.dictionaryProperties.colorSpace,new pl(i))}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stroking",{get:function(){return this.mbStroking},set:function(t){this.mbStroking=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"patternDictionary",{get:function(){return null==this.mpatternDictionary&&(this.mpatternDictionary=new fl),this.mpatternDictionary},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shading",{get:function(){return this.mshading},set:function(t){if(null==t)throw new Error("ArgumentNullException : Shading");t!==this.mshading&&(this.mshading=t,this.patternDictionary.items.setValue(this.dictionaryProperties.shading,new Xl(this.mshading)))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"matrix",{get:function(){return this.mmatrix},set:function(t){if(null==t)throw new Error("ArgumentNullException : Matrix");if(t!==this.mmatrix){this.mmatrix=t.clone();var e=new Sl(this.mmatrix.matrix.elements);this.mpatternDictionary.items.setValue(this.dictionaryProperties.matrix,e)}},enumerable:!0,configurable:!0}),e.prototype.monitorChanges=function(t,i,r,n,o){var s=!1;if(t instanceof e){this.colorSpace!==o&&(this.colorSpace=o,this.resetFunction()),i.setColorSpace("Pattern",this.mbStroking);var a=r.getResources().getName(this);i.setColourWithPattern(null,a,this.mbStroking),s=!0}return s},e.prototype.resetChanges=function(t){},e.prototype.colorSpaceToDeviceName=function(t){var e;switch(t){case uh.Rgb:e="DeviceRGB"}return e},e.prototype.resetPatternDictionary=function(t){this.mpatternDictionary=t},e.prototype.cloneAntiAliasingValue=function(t){if(null==t)throw new Error("ArgumentNullException : brush");var e=this.shading.items.getValue(this.dictionaryProperties.antiAlias);null!=e&&t.shading.items.setValue(this.dictionaryProperties.antiAlias,new Kh(e.value))},e.prototype.cloneBackgroundValue=function(t){var e=this.background;e.isEmpty||(t.background=e)},Object.defineProperty(e.prototype,"element",{get:function(){return this.patternDictionary},enumerable:!0,configurable:!0}),e}(wh),gc=function(){function t(t,e){if(this.dictionaryProperties=new gl,this.writeTransformation=!0,void 0===t);else if(t instanceof Mh&&void 0===e){this.content=new Hl;var i=new Mh(t.width,t.height);this.setSize(i),this.initialize()}else this.content=new Hl,this.setSize(new Mh(t,e)),this.initialize()}return Object.defineProperty(t.prototype,"size",{get:function(){return this.templateSize},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.size.width},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.size.height},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"graphics",{get:function(){if(null==this.pdfGraphics||void 0===this.pdfGraphics){var t=new wc(this),e=new bc(this.size,t,this.content);this.pdfGraphics=e,this.pdfGraphics.initializeCoordinates()}return this.pdfGraphics},enumerable:!0,configurable:!0}),t.prototype.getResources=function(){return null==this.resources&&(this.resources=new yc,this.content.items.setValue(this.dictionaryProperties.resources,this.resources)),this.resources},t.prototype.initialize=function(){this.addType(),this.addSubType()},t.prototype.addType=function(){var t=new pl(this.dictionaryProperties.xObject);this.content.items.setValue(this.dictionaryProperties.type,t)},t.prototype.addSubType=function(){var t=new pl(this.dictionaryProperties.form);this.content.items.setValue(this.dictionaryProperties.subtype,t)},t.prototype.reset=function(t){void 0===t?(null!=this.resources&&(this.resources=null,this.content.remove(this.dictionaryProperties.resources)),null!=this.graphics&&this.graphics.reset(this.size)):(this.setSize(t),this.reset())},t.prototype.setSize=function(t){var e=new vh(new mh(0,0),t),i=Sl.fromRectangle(e);this.content.items.setValue(this.dictionaryProperties.bBox,i),this.templateSize=t},Object.defineProperty(t.prototype,"element",{get:function(){return this.content},enumerable:!0,configurable:!0}),t}(),fc=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),yc=function(t){function e(e){var i=t.call(this,e)||this;return i.properties=new fl,i}return fc(e,t),Object.defineProperty(e.prototype,"names",{get:function(){return this.getNames()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"document",{get:function(){return this.pdfDocument},set:function(t){this.pdfDocument=t},enumerable:!0,configurable:!0}),e.prototype.getName=function(t){var e=t.element,i=null;if(this.names.containsKey(e)&&(i=this.names.getValue(e)),null==i){var r=this.generateName();i=new pl(r),this.names.setValue(e,i),t instanceof Yh?this.add(t,i):t instanceof gc?this.add(t,i):t instanceof dc||t instanceof vc?this.add(t,i):t instanceof wu?this.add(t,i):(t instanceof Tu||t instanceof Au)&&this.add(t,i)}return i},e.prototype.getNames=function(){null==this.pdfNames&&(this.pdfNames=new bu);var t=this.items.getValue(this.dictionaryProperties.font);if(null!=t){nu.dereference(t)}return this.pdfNames},e.prototype.requireProcedureSet=function(t){if(null==t)throw new Error("ArgumentNullException:procedureSetName");var e=this.items.getValue(this.dictionaryProperties.procset);null==e&&(e=new Sl,this.items.setValue(this.dictionaryProperties.procset,e));var i=new pl(t);e.contains(i)||e.add(i)},e.prototype.removeFont=function(t){for(var e=null,i=this.pdfNames.keys(),r=0;r<this.pdfNames.size();r++)if(this.pdfNames.getValue(i[r])===new pl(t)){e=i[r];break}null!=e&&this.pdfNames.remove(e)},e.prototype.generateName=function(){return mc.getNewGuidString()},e.prototype.add=function(t,e){if(t instanceof Yh){var i=null,r=this.items.getValue(this.dictionaryProperties.font);if(null!=r){var n=r;i=r,i=r}else i=new fl,this.items.setValue(this.dictionaryProperties.font,i);i.items.setValue(e.value,new Xl(t.element))}else if(t instanceof gc){var o=void 0;null==(o=this.items.getValue(this.dictionaryProperties.xObject))&&(o=new fl,this.items.setValue(this.dictionaryProperties.xObject,o)),o.items.setValue(e.value,new Xl(t.element))}else if(t instanceof wh){if(t instanceof dc||t instanceof vc){if(null!=(a=t.element)){var s=this.items.getValue(this.dictionaryProperties.pattern);null==s&&(s=new fl,this.items.setValue(this.dictionaryProperties.pattern,s)),s.items.setValue(e.value,new Xl(a))}}}else if(t instanceof wu){var a=t.element,l=null;null==(l=this.items.getValue(this.dictionaryProperties.extGState))&&(l=new fl,this.items.setValue(this.dictionaryProperties.extGState,l)),l.items.setValue(e.value,new Xl(a))}else{o=this.Dictionary.items.getValue(this.dictionaryProperties.xObject);var h=void 0;void 0!==this.pdfDocument&&(h=this.pdfDocument.sections.element.items.getValue(this.dictionaryProperties.resources).items.getValue(this.dictionaryProperties.xObject));this.Dictionary.items.values();var u=!1,c=void 0;if(void 0===this.pdfDocument||void 0!==typeof h&&null!=h){if(void 0!==this.pdfDocument)for(var p=h.items.values(),d=0;d<p.length;d++)void 0!==p[d]&&void 0!==p[d].element&&p[d].element.data[0]===t.element.data[0]&&(c=p[d],u=!0)}else h=new fl,this.pdfDocument.sections.element.items.getValue(this.dictionaryProperties.resources).items.setValue(this.dictionaryProperties.xObject,h);if(null==o&&(o=new fl,this.Dictionary.items.setValue(this.dictionaryProperties.xObject,o)),u&&void 0!==c)o.items.setValue(e.value,c);else{n=new Xl(t.element);o.items.setValue(e.value,n),void 0!==this.pdfDocument&&h.items.setValue(e.value,n)}}},e}(fl),mc=function(){function t(){}return t.getNewGuidString=function(){return"aaaaaaaa-aaaa-4aaa-baaa-aaaaaaaaaaaa".replace(/[ab]/g,function(t){var e=16*Math.random()|0;return("a"===t?e:3&e|8).toString(16)})},t}(),Mc=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),vc=function(t){function e(e,i){var r=t.call(this)||this;r.mStroking=!1,r.mLocation=new mh(0,0),r.mDictionaryProperties=new gl;var n=null;return e instanceof bh?n=e:e instanceof Mh&&(n=new bh(0,0,e.width,e.height)),null!==i&&i instanceof Tc&&(r.mPage=i),r.brushStream=new Hl,r.mResources=new yc,r.brushStream.items.setValue(r.mDictionaryProperties.resources,r.mResources),r.setBox(n),r.setObligatoryFields(),null!==i&&i instanceof Tc&&(r.mPage=i,r.graphics.colorSpace=i.document.colorSpace),r}return Mc(e,t),e.prototype.initialize=function(t,e,i,r){this.mPage=e,this.mLocation=i,this.mTransformationMatrix=r,this.tempBrushStream=this.brushStream,this.brushStream=new Hl;var n=new yc;return this.brushStream.items.setValue(this.mDictionaryProperties.resources,n),this.setBox(t),this.setObligatoryFields(),this},Object.defineProperty(e.prototype,"location",{get:function(){return this.mLocation},set:function(t){this.mLocation=t},enumerable:!0,configurable:!0}),e.prototype.setObligatoryFields=function(){if(this.brushStream.items.setValue(this.mDictionaryProperties.patternType,new Nl(1)),this.brushStream.items.setValue(this.mDictionaryProperties.paintType,new Nl(1)),this.brushStream.items.setValue(this.mDictionaryProperties.tilingType,new Nl(1)),this.brushStream.items.setValue(this.mDictionaryProperties.xStep,new Nl(this.mBox.right-this.mBox.left)),this.brushStream.items.setValue(this.mDictionaryProperties.yStep,new Nl(this.mBox.bottom-this.mBox.top)),null!=this.mPage&&null!=this.mLocation)if(null==this.mTransformationMatrix&&void 0===this.mTransformationMatrix){var t=this.mPage.size.height%this.rectangle.size.height-this.mLocation.y;this.brushStream.items.setValue(this.mDictionaryProperties.matrix,new Sl([1,0,0,1,this.mLocation.x,t]))}else{t=0;var e=this.mTransformationMatrix.matrix.elements;t=this.mPage.size.height>this.rectangle.size.height?this.mTransformationMatrix.matrix.offsetY-this.mPage.size.height%this.rectangle.size.height:this.mPage.size.height%this.rectangle.size.height+this.mTransformationMatrix.matrix.offsetY,this.brushStream.items.setValue(this.mDictionaryProperties.matrix,new Sl([e[0],e[1],e[2],e[3],e[4],t]))}},e.prototype.setBox=function(t){this.mBox=t;var e=new vh(this.mBox.left,this.mBox.top,this.mBox.right,this.mBox.bottom);this.brushStream.items.setValue(this.mDictionaryProperties.bBox,Sl.fromRectangle(e))},Object.defineProperty(e.prototype,"rectangle",{get:function(){return this.mBox},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this.mBox.size},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"graphics",{get:function(){if(null==this.mGraphics&&void 0===this.mGraphics){var t=new wc(this),e=new bc(this.size,t,this.brushStream);this.mGraphics=e,this.mResources=this.getResources(),this.mGraphics.initializeCoordinates()}return this.mGraphics},enumerable:!0,configurable:!0}),e.prototype.getResources=function(){return this.mResources},Object.defineProperty(e.prototype,"stroking",{get:function(){return this.mStroking},set:function(t){this.mStroking=t},enumerable:!0,configurable:!0}),e.prototype.clone=function(){var t=this.initialize(this.rectangle,this.mPage,this.location,this.mTransformationMatrix);return null!=this.mTransformationMatrix&&null!=this.mTransformationMatrix.matrix&&t.brushStream.items.setValue(this.mDictionaryProperties.matrix,new Sl(this.mTransformationMatrix.matrix.elements)),t.brushStream.data=this.tempBrushStream.data,t.mResources=new yc(this.mResources),t.brushStream.items.setValue(this.mDictionaryProperties.resources,t.mResources),t},e.prototype.monitorChanges=function(t,i,r,n,o){var s=!1;if(t!==this){i.setColorSpace("Pattern",this.mStroking);var a=r.getResources().getName(this);i.setColourWithPattern(null,a,this.mStroking),s=!0}else if(t instanceof e){i.setColorSpace("Pattern",this.mStroking);var l=r.getResources().getName(this);i.setColourWithPattern(null,l,this.mStroking),s=!0}return s},e.prototype.resetChanges=function(t){},Object.defineProperty(e.prototype,"element",{get:function(){return this.brushStream},enumerable:!0,configurable:!0}),e}(wh),bc=function(){function t(t,e,i){this.currentColorSpace=uh.Rgb,this.previousTextRenderingMode=oh.Fill,this.previousCharacterSpacing=0,this.previousWordSpacing=0,this.previousTextScaling=100,this.procedureSets=new vu,this.isNormalRender=!0,this.isUseFontSize=!1,this.isItalic=!1,this.isEmfTextScaled=!1,this.isEmf=!1,this.isEmfPlus=!1,this.isBaselineFormat=!0,this.emfScalingFactor=new Mh(0,0),this.colorSpaceChanged=!1,this.dictionaryProperties=new gl,this.isOverloadWithPosition=!1,this.isPointOverload=!1,this.currentColorSpaces=["RGB","CMYK","GrayScale","Indexed"],this.isImageOptimized=!1,this.graphicsState=[],this.istransparencySet=!1,this.internalAutomaticFields=null,this.startCutIndex=-1,this.getResources=e,this.canvasSize=t,this.pdfStreamWriter=i instanceof fu?i:new fu(i),this.initialize()}return Object.defineProperty(t.prototype,"stringLayoutResult",{get:function(){return this.pdfStringLayoutResult},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.canvasSize},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mediaBoxUpperRightBound",{get:function(){return void 0===this.internalMediaBoxUpperRightBound&&(this.internalMediaBoxUpperRightBound=0),this.internalMediaBoxUpperRightBound},set:function(t){this.internalMediaBoxUpperRightBound=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clientSize",{get:function(){return new Mh(this.clipBounds.width,this.clipBounds.height)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"colorSpace",{get:function(){return this.currentColorSpace},set:function(t){this.currentColorSpace=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"streamWriter",{get:function(){return this.pdfStreamWriter},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"matrix",{get:function(){return null==this.transformationMatrix&&(this.transformationMatrix=new mu),this.transformationMatrix},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layer",{get:function(){return this.pageLayer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this.pageLayer.page},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"automaticFields",{get:function(){return null!=this.internalAutomaticFields&&void 0!==this.internalAutomaticFields||(this.internalAutomaticFields=new Nu),this.internalAutomaticFields},enumerable:!0,configurable:!0}),t.prototype.initialize=function(){this.bStateSaved=!1,this.currentPen=null,this.currentBrush=null,this.currentFont=null,this.currentColorSpace=uh.Rgb,this.bCSInitialized=!1,this.transformationMatrix=null,this.previousTextRenderingMode=-1,this.previousCharacterSpacing=-1,this.previousWordSpacing=-1,this.previousTextScaling=-100,this.currentStringFormat=null,this.clipBounds=new vh(new mh(0,0),this.size),this.getResources.getResources().requireProcedureSet(this.procedureSets.pdf)},t.prototype.drawPdfTemplate=function(t,e,i){if(void 0===i){if(null==t)throw Error("ArgumentNullException-template");this.drawPdfTemplate(t,e,t.size)}else{if(null==t)throw Error("ArgumentNullException-template");var r=t.width>0?i.width/t.width:1,n=t.height>0?i.height/t.height:1,o=!(1===r&&1===n),s=this.save(),a=new mu;null!=this.pageLayer&&this.getTranslateTransform(e.x,e.y+i.height,a),o&&this.getScaleTransform(r,n,a),this.pdfStreamWriter.modifyCtm(a);var l=this.getResources.getResources().getName(t);this.pdfStreamWriter.executeObject(l),this.restore(s);var h=t.graphics;if(null!=h)for(var u=0;u<h.automaticFields.automaticFields.length;u++){var c=h.automaticFields.automaticFields[u],p=new mh(c.location.x+e.x,c.location.y+e.y),d=0==t.size.width?0:i.width/t.size.width,g=0==t.size.height?0:i.height/t.size.height;this.automaticFields.add(new Iu(c.field,p,d,g)),this.page.dictionary.modify()}this.getResources.getResources().requireProcedureSet(this.procedureSets.imageB),this.getResources.getResources().requireProcedureSet(this.procedureSets.imageC),this.getResources.getResources().requireProcedureSet(this.procedureSets.imageI),this.getResources.getResources().requireProcedureSet(this.procedureSets.text)}},t.prototype.drawString=function(t,e,i,r,n,o,s,a,l){if("string"==typeof t&&e instanceof Yh&&(i instanceof yu||null===i)&&(r instanceof wh||null===r)&&"number"==typeof n&&"number"==typeof o&&(s instanceof Bh||null===s)&&void 0===a)this.isOverloadWithPosition=!0,this.drawString(t,e,i,r,n,o,this.clientSize.width-n,0,s);else{var h=i,u=r,c=n,p=o,d=s,g=a,f=l,y=(new Rh).layout(t,e,f,new Mh(d,g),this.isOverloadWithPosition,this.clientSize);if(!y.empty){var m=this.checkCorrectLayoutRectangle(y.actualSize,c,p,f);d<=0&&(c=m.x,d=m.width),g<=0&&(p=m.y,g=m.height),this.drawStringLayoutResult(y,e,h,u,new vh(c,p,d,g),f),this.isEmfTextScaled=!1,this.emfScalingFactor=new Mh(0,0)}this.getResources.getResources().requireProcedureSet(this.procedureSets.text),this.isNormalRender=!0,this.pdfStringLayoutResult=y,this.isUseFontSize=!1}},t.prototype.drawLine=function(t,e,i,r,n){if(e instanceof mh){var o=e,s=i;this.drawLine(t,o.x,o.y,s.x,s.y)}else{o=e,s=i;var a=r,l=n;this.stateControl(t,null,null);var h=this.streamWriter;h.beginPath(o,s),h.appendLineSegment(a,l),h.strokePath(),this.getResources.getResources().requireProcedureSet(this.procedureSets.pdf)}},t.prototype.drawRectangle=function(t,e,i,r,n,o){if(t instanceof yu&&"number"==typeof e){var s=i;this.drawRectangle(t,null,e,s,r,n)}else if(t instanceof wh&&"number"==typeof e){s=i;this.drawRectangle(null,t,e,s,r,n)}else{s=i;var a=r,l=n,h=o;if(e instanceof vc){this.bCSInitialized=!1;var u=this.matrix.matrix.offsetX+s,c=void 0;c=null!=this.layer&&null!=this.layer.page?this.layer.page.size.height-this.matrix.matrix.offsetY+a:this.clientSize.height-this.matrix.matrix.offsetY+a,e.location=new mh(u,c),e.graphics.colorSpace=this.colorSpace}else e instanceof dc&&(e.colorSpace=this.colorSpace);e instanceof Sh&&e.color.isEmpty&&(e=null);var p=t,d=e;this.stateControl(p,d,null),this.streamWriter.appendRectangle(s,a,l,h),this.drawPathHelper(p,d,!1)}},t.prototype.drawRoundedRectangle=function(t,e,i,r,n,o,s){if(null===t)throw new Error("pen");if(null===e)throw new Error("brush");if(0===s)this.drawRectangle(t,e,i,r,n,o);else{var a=[i,r,n,o],l=2*s,h=[l,l],u=[a[0],a[1],h[0],h[1]];this._pathPoints=[],this._pathTypes=[];var c=!0;c=this._addArc(u[0],u[1],u[2],u[3],180,90,c),u[0]=a[0]+a[2]-l,c=this._addArc(u[0],u[1],u[2],u[3],270,90,c),u[1]=a[1]+a[3]-l,c=this._addArc(u[0],u[1],u[2],u[3],0,90,c),u[0]=a[0],c=this._addArc(u[0],u[1],u[2],u[3],90,90,c);var p=this._pathPoints.length-1,d=this._pathTypes[p];d|=uc.CloseSubpath,this._pathTypes[p]=d,this._drawPath(t,e,this._pathPoints,this._pathTypes,hh.Alternate),this._pathPoints=[],this._pathTypes=[]}},t.prototype._addArc=function(t,e,i,r,n,o,s){for(var a=this._getBezierArcPoints(t,e,t+i,e+r,n,o),l=0;l<a.length;l+=8){var h=[a[l],a[l+1],a[l+2],a[l+3],a[l+4],a[l+5],a[l+6],a[l+7]];s=this._addArcPoints(h,uc.Bezier3,s)}return s},t.prototype._addArcPoints=function(t,e,i){for(var r=0;r<t.length;r++){var n=new mh(t[r],t[r+1]);0===r?0===this._pathPoints.length||i?(this._addPoint(n,uc.Start),i=!1):n.x===this._getLastPoint().x&&n.y===this._getLastPoint().y||this._addPoint(n,uc.Line):this._addPoint(n,e),r++}return i},t.prototype._getLastPoint=function(){var t=new mh(0,0),e=this._pathPoints.length;return e>0&&(t.x=this._pathPoints[e-1].x,t.y=this._pathPoints[e-1].y),t},t.prototype._addPoint=function(t,e){this._pathPoints.push(t),this._pathTypes.push(e)},t.prototype._getBezierArcPoints=function(t,e,i,r,n,o){if(t>i){var s=void 0;s=t,t=i,i=s}if(r>e){s=void 0;s=e,e=r,r=s}var a,l;Math.abs(o)<=90?(a=o,l=1):a=o/(l=Math.ceil(Math.abs(o)/90));for(var h=(t+i)/2,u=(e+r)/2,c=(i-t)/2,p=(r-e)/2,d=a*(Math.PI/360),g=Math.abs(4/3*(1-Math.cos(d))/Math.sin(d)),f=[],y=0;y<l;y++){var m=(n+y*a)*(Math.PI/180),M=(n+(y+1)*a)*(Math.PI/180),v=Math.cos(m),b=Math.cos(M),w=Math.sin(m),N=Math.sin(M);a>0?f.push(h+c*v,u-p*w,h+c*(v-g*w),u-p*(w+g*v),h+c*(b+g*N),u-p*(N-g*b),h+c*b,u-p*N):f.push(h+c*v,u-p*w,h+c*(v+g*w),u-p*(w-g*v),h+c*(b-g*N),u-p*(N+g*b),h+c*b,u-p*N)}return f},t.prototype.drawPathHelper=function(t,e,i,r){if("boolean"==typeof i){var n=i;this.drawPathHelper(t,e,hh.Winding,n)}else{var o=null!=t,s=null!=e,a=(n=i)===hh.Alternate;o&&s?this.streamWriter.fillStrokePath(a):o||s?o?this.streamWriter.strokePath():this.streamWriter.fillPath(a):this.streamWriter.endPath()}},t.prototype.drawImage=function(t,e,i,r,n){if("number"==typeof e&&"number"==typeof i&&void 0===r){var o=t.physicalDimension;this.drawImage(t,e,i,o.width,o.height)}else{var s=e,a=i,l=n;t.save();var h=new mu;this.getTranslateTransform(s,a+l,h),this.getScaleTransform(r,n,h),this.pdfStreamWriter.write("q"),this.pdfStreamWriter.modifyCtm(h);var u=this.getResources.getResources();void 0!==this.pageLayer&&null!=this.page&&(u.document=this.page.document);var c=u.getName(t);void 0!==this.pageLayer&&this.page.setResources(u),this.pdfStreamWriter.executeObject(c),this.pdfStreamWriter.write(dl.restoreState),this.pdfStreamWriter.write(dl.newLine);var p=this.getResources.getResources();p.requireProcedureSet(this.procedureSets.imageB),p.requireProcedureSet(this.procedureSets.imageC),p.requireProcedureSet(this.procedureSets.imageI),p.requireProcedureSet(this.procedureSets.text)}},t.prototype.getLineBounds=function(t,e,i,r,n){var o;if(!e.empty&&t<e.lineCount&&t>=0){var s=e.lines[t],a=this.getTextVerticalAlignShift(e.actualSize.height,r.height,n)+r.y+e.lineHeight*t,l=s.width,h=this.getHorizontalAlignShift(l,r.width,n),u=this.getLineIndent(s,n,r,0===t);h+=this.rightToLeft(n)?0:u;var c=r.x+h,p=this.shouldJustify(s,r.width,n)?r.width-u:l-u,d=e.lineHeight;o=new vh(c,a,p,d)}else o=new vh(0,0,0,0);return o},t.prototype.checkCorrectLayoutRectangle=function(t,e,i,r){var n=new vh(e,i,t.width,t.width);if(null!=r){switch(r.alignment){case nh.Center:n.x-=n.width/2;break;case nh.Right:n.x-=n.width}switch(r.lineAlignment){case rh.Middle:n.y-=n.height/2;break;case rh.Bottom:n.y-=n.height}}return n},t.prototype.setLayer=function(t){this.pageLayer=t;var e=t.page;null!=e&&void 0!==e&&(e.beginSave=this.pageSave)},t.prototype.pageSave=function(t){if(null!=t.graphics.automaticFields)for(var e=0;e<t.graphics.automaticFields.automaticFields.length;e++){var i=t.graphics.automaticFields.automaticFields[e];i.field.performDraw(t.graphics,i.location,i.scalingX,i.scalingY)}},t.prototype.drawStringLayoutResult=function(t,e,i,r,n,o){if(t.empty)throw new Error("ArgumentNullException:result");this.applyStringSettings(e,i,r,o,n);var s=null!=o?o.horizontalScalingFactor:100;s===this.previousTextScaling||this.isEmfTextScaled||(this.pdfStreamWriter.setTextScaling(s),this.previousTextScaling=s);var a=null==o||0===o.lineSpacing?e.height:o.lineSpacing+e.height,l=0;l=null!=o&&o.subSuperScript===Oh.SubScript?a-(e.height+e.metrics.getDescent(o)):a-e.metrics.getAscent(o),this.shift=l,this.pdfStreamWriter.startNextLine(n.x,n.y-l),this.pdfStreamWriter.setLeading(+a);for(var h=0,u="",c=0;c<t.lines.length;c++)if(h+=t.lineHeight,n.y+h>this.clientSize.height){this.startCutIndex=c;break}for(var p=this.startCutIndex;p<t.lines.length&&p>=0;p++)u+=t.lines[p].text;var d=new vh(n.x,n.y,n.width,n.height);if(this.drawLayoutResult(t,e,o,n),this.underlineStrikeoutText(i,r,t,e,d,o),this.isEmfPlus=!1,this.isUseFontSize=!1,-1!==this.startCutIndex){this.getNextPage().graphics.drawString(u,e,i,r,n.x,0,n.width,0,o)}},t.prototype.getNextPage=function(){var t=this.currentPage.section,e=t.indexOf(this.currentPage);return e===t.count-1?t.add():t.getPages()[e+1]},t.prototype.setClip=function(t,e){void 0===e?this.setClip(t,hh.Winding):(this.pdfStreamWriter.appendRectangle(t),this.pdfStreamWriter.clipPath(e===hh.Alternate))},t.prototype.applyStringSettings=function(t,e,i,r,n){i instanceof vc?(this.bCSInitialized=!1,i.graphics.colorSpace=this.colorSpace):i instanceof dc&&(this.bCSInitialized=!1,i.colorSpace=this.colorSpace);var o=this.getTextRenderingMode(e,i,r);this.stateControl(e,i,t,r),this.pdfStreamWriter.beginText(),o!==this.previousTextRenderingMode&&(this.pdfStreamWriter.setTextRenderingMode(o),this.previousTextRenderingMode=o);var s=null!=r?r.characterSpacing:0;s===this.previousCharacterSpacing||this.isEmfTextScaled||(this.pdfStreamWriter.setCharacterSpacing(s),this.previousCharacterSpacing=s);var a=null!=r?r.wordSpacing:0;a!==this.previousWordSpacing&&(this.pdfStreamWriter.setWordSpacing(a),this.previousWordSpacing=a)},t.prototype.getTextVerticalAlignShift=function(t,e,i){var r=0;if(e>=0&&null!=i&&i.lineAlignment!==rh.Top)switch(i.lineAlignment){case rh.Middle:r=(e-t)/2;break;case rh.Bottom:r=e-t}return r},t.prototype.drawLayoutResult=function(t,e,i,r){var n=this.getTextVerticalAlignShift(t.actualSize.height,r.height,i);0!==n&&this.pdfStreamWriter.startNextLine(0,n);for(var o=e,s=null!=o&&o.isUnicode,a=(null!=o&&o.isEmbedFont,t.lines),l=0,h=a.length;l<h&&l!==this.startCutIndex;l++){var u=a[l],c=(u.text,u.width),p=this.getHorizontalAlignShift(c,r.width,i),d=this.getLineIndent(u,i,r,0===l);0===(p+=this.rightToLeft(i)?0:d)||this.isEmfTextScaled||this.pdfStreamWriter.startNextLine(p,0),s?this.drawUnicodeLine(u,r,e,i):this.drawAsciiLine(u,r,e,i),0===p||this.isEmfTextScaled||this.pdfStreamWriter.startNextLine(-p,0),this.isOverloadWithPosition&&a.length>1&&(this.pdfStreamWriter.startNextLine(-r.x,0),r.x=0,r.width=this.clientSize.width,this.isOverloadWithPosition=!1,this.isPointOverload=!0)}this.getResources.getResources().requireProcedureSet(this.procedureSets.text),0!==n&&this.pdfStreamWriter.startNextLine(0,-(n-t.lineHeight)),this.pdfStreamWriter.endText()},t.prototype.drawAsciiLine=function(t,e,i,r){this.justifyLine(t,e.width,r);var n="";if(-1!==t.text.indexOf("(")||-1!==t.text.indexOf(")"))for(var o=0;o<t.text.length;o++)"("===t.text[o]?n+="\\(":")"===t.text[o]?n+="\\)":n+=t.text[o];""===n&&(n=t.text);var s="("+n+")";this.pdfStreamWriter.showNextLineText(new Jl(s))},t.prototype.drawUnicodeLine=function(t,e,i,r){var n=t.text,o=(t.width,null!==r&&void 0!==r&&r.rightToLeft),s=null!==r&&void 0!==r&&(0!==r.wordSpacing||r.alignment===nh.Justify),a=i,l=this.justifyLine(t,e.width,r),h=new lc;if(o||null!==r&&void 0!==r&&r.textDirection!==gh.None){var u=null,c=null!==r&&void 0!==r&&r.alignment===nh.Right,p=null;p=(u=null!==r&&void 0!==r&&r.textDirection!==gh.None?h.layout(n,a,r.textDirection===gh.RightToLeft,s,r):h.layout(n,a,c,s,r)).length>1?null!==r&&void 0!==r&&r.textDirection!==gh.None?h.splitLayout(n,a,r.textDirection===gh.RightToLeft,s,r):h.splitLayout(n,a,c,s,r):[n],this.drawUnicodeBlocks(u,p,a,r,l)}else if(s){var d=this.breakUnicodeLine(n,a,null);u=d.tokens,p=d.words;this.drawUnicodeBlocks(u,p,a,r,l)}else{var g=this.convertToUnicode(n,a),f=this.getUnicodeString(g);this.streamWriter.showNextLineText(f)}},t.prototype.drawUnicodeBlocks=function(t,e,i,r,n){if(null==t)throw new Error("Argument Null Exception : blocks");if(null==e)throw new Error("Argument Null Exception : words");if(null==i)throw new Error("Argument Null Exception : font");this.streamWriter.startNextLine();var o=0,s=0,a=0,l=0;try{null!==r&&void 0!==r&&(a=r.firstLineIndent,l=r.paragraphIndent,r.firstLineIndent=0,r.paragraphIndent=0);var h=i.getCharWidth(Fh.whiteSpace,r)+n,u=null!=r?r.characterSpacing:0;h+=u+(null!==r&&void 0!==r&&0===n?r.wordSpacing:0);for(var c=0;c<t.length;c++){var p=t[c],d=e[c],g=0;if(0!==o&&this.streamWriter.startNextLine(o,0),d.length>0){g+=i.measureString(d,r).width,g+=u;var f=this.getUnicodeString(p);this.streamWriter.showText(f)}c!==t.length-1&&(s+=o=g+h)}s>0&&this.streamWriter.startNextLine(-s,0)}finally{null!==r&&void 0!==r&&(r.firstLineIndent=a,r.paragraphIndent=l)}},t.prototype.breakUnicodeLine=function(t,e,i){if(null===t)throw new Error("Argument Null Exception : line");i=t.split(null);for(var r=[],n=0;n<i.length;n++){var o=i[n],s=this.convertToUnicode(o,e);r[n]=s}return{tokens:r,words:i}},t.prototype.getUnicodeString=function(t){if(null===t)throw new Error("Argument Null Exception : token");var e=new Jl(t);return e.converted=!0,e.encode=ll.ForceEncoding.Ascii,e},t.prototype.convertToUnicode=function(t,e){var i=null;if(null==t)throw new Error("Argument Null Exception : text");if(null==e)throw new Error("Argument Null Exception : ttfFont");if(e.fontInternal instanceof rc){var r=e.fontInternal.ttfReader;e.setSymbols(t),i=r.convertString(t);var n=Jl.toUnicodeArray(i,!1);i=Jl.byteToString(n)}return i},t.prototype.justifyLine=function(t,e,i){var r=t.text,n=t.width,o=this.shouldJustify(t,e,i),s=null!=i&&0!==i.wordSpacing,a=Fh.spaces,l=Fh.getCharsCount(r,a),h=0;if(o){s&&(n-=l*i.wordSpacing);h=(e-n)/l,this.pdfStreamWriter.setWordSpacing(h)}else s?this.pdfStreamWriter.setWordSpacing(i.wordSpacing):this.pdfStreamWriter.setWordSpacing(0);return h},t.prototype.reset=function(t){this.canvasSize=t,this.streamWriter.clear(),this.initialize(),this.initializeCoordinates()},t.prototype.shouldJustify=function(t,e,i){var r=t.text,n=t.width,o=null!=i&&i.alignment===nh.Justify,s=e>=0&&n<e,a=Fh.spaces,l=Fh.getCharsCount(r,a)>0&&r[0]!==Fh.whiteSpace,h=(t.lineType&kh.LayoutBreak)>0;return o&&s&&l&&(h||i.alignment===nh.Justify)},t.prototype.underlineStrikeoutText=function(t,e,i,r,n,o){if(r.underline||r.strikeout){var s=this.createUnderlineStikeoutPen(t,e,r,o);if(null!=s){var a=this.getTextVerticalAlignShift(i.actualSize.height,n.height,o),l=0;l=n.y+a+r.metrics.getAscent(o)+1.5*s.width;for(var h=n.y+a+r.metrics.getHeight(o)/2+1.5*s.width,u=i.lines,c=0,p=i.lineCount;c<p;c++){var d=u[c],g=(d.text,d.width),f=this.getHorizontalAlignShift(g,n.width,o),y=this.getLineIndent(d,o,n,0===c);f+=this.rightToLeft(o)?0:y;var m=n.x+f,M=this.shouldJustify(d,n.width,o)?m+n.width-y:m+g-y;if(r.underline){var v=l;this.drawLine(s,m,v,M,v),l+=i.lineHeight}if(r.strikeout){v=h;this.drawLine(s,m,v,M,v),h+=i.lineHeight}this.isPointOverload&&u.length>1&&(n.x=0,n.width=this.clientSize.width)}this.isPointOverload=!1}}},t.prototype.createUnderlineStikeoutPen=function(t,e,i,r){var n=i.metrics.getSize(r)/20,o=null;return null!=t?o=new yu(t.color,n):null!=e&&(o=new yu(e,n)),o},t.prototype.getTextRenderingMode=function(t,e,i){var r=oh.None;return r=null!=t&&null!=e?oh.FillStroke:null!=t?oh.Stroke:oh.Fill,null!=i&&i.clipPath&&(r|=oh.ClipFlag),r},t.prototype.getLineIndent=function(t,e,i,r){var n=0,o=(t.lineType&kh.FirstParagraphLine)>0;return null!=e&&o&&(n=r?e.firstLineIndent:e.paragraphIndent,n=i.width>0?Math.min(i.width,n):n),n},t.prototype.getHorizontalAlignShift=function(t,e,i){var r=0;if(e>=0&&null!=i&&i.alignment!==nh.Left)switch(i.alignment){case nh.Center:r=(e-t)/2;break;case nh.Right:r=e-t}return r},t.prototype.rightToLeft=function(t){var e=null!==t&&void 0!==t&&t.rightToLeft;return null!==t&&void 0!==t&&t.textDirection!==gh.None&&void 0!==t.textDirection&&(e=!0),e},t.prototype.stateControl=function(t,e,i,r){if(void 0===r)this.stateControl(t,e,i,null);else{e instanceof dc&&(this.bCSInitialized=!1,e.colorSpace=this.colorSpace),e instanceof vc&&(this.bCSInitialized=!1,e.graphics.colorSpace=this.colorSpace);null!==e?(void 0!==this.pageLayer&&null!=this.pageLayer&&!1===this.colorSpaceChanged&&(this.lastDocumentCS=this.pageLayer.page.document.colorSpace,this.lastGraphicsCS=this.pageLayer.page.graphics.colorSpace,this.colorSpace=this.pageLayer.page.document.colorSpace,this.currentColorSpace=this.pageLayer.page.document.colorSpace,this.colorSpaceChanged=!0),this.initCurrentColorSpace(this.currentColorSpace)):null!=t&&(void 0!==this.pageLayer&&null!=this.pageLayer&&(this.colorSpace=this.pageLayer.page.document.colorSpace,this.currentColorSpace=this.pageLayer.page.document.colorSpace),this.initCurrentColorSpace(this.currentColorSpace)),this.penControl(t,!1),this.brushControl(e,!1),this.fontControl(i,r,!1)}},t.prototype.initCurrentColorSpace=function(t){this.getResources.getResources();this.bCSInitialized||(this.currentColorSpace!=uh.GrayScale?(this.pdfStreamWriter.setColorSpace("Device"+this.currentColorSpaces[this.currentColorSpace],!0),this.pdfStreamWriter.setColorSpace("Device"+this.currentColorSpaces[this.currentColorSpace],!1),this.bCSInitialized=!0):(this.pdfStreamWriter.setColorSpace("DeviceGray",!0),this.pdfStreamWriter.setColorSpace("DeviceGray",!1),this.bCSInitialized=!0))},t.prototype.penControl=function(t,e){null!=t&&(this.currentPen=t,t.monitorChanges(this.currentPen,this.pdfStreamWriter,this.getResources,e,this.colorSpace,this.matrix.clone()),this.currentPen=t.clone())},t.prototype.brushControl=function(t,e){if(null!=t&&void 0!==t){var i=t.clone(),r=i;if(!(null===r||void 0===r||t instanceof Sh||t instanceof vc)){var n=r.matrix,o=this.matrix.clone();null!=n&&(n.multiply(o),o=n),r.matrix=o}this.currentBrush=r,i.monitorChanges(this.currentBrush,this.pdfStreamWriter,this.getResources,e,this.colorSpace),this.currentBrush=t,t=null}},t.prototype.fontControl=function(t,e,i){if(null!=t){var r=null!=e?e.subSuperScript:Oh.None,n=null!=this.currentStringFormat?this.currentStringFormat.subSuperScript:Oh.None;if(i||t!==this.currentFont||r!==n){var o=this.getResources.getResources();this.currentFont=t,this.currentStringFormat=e;var s=t.metrics.getSize(e);this.isEmfTextScaled=!1;var a=o.getName(t);this.pdfStreamWriter.setFont(t,a,s)}}},t.prototype.setTransparency=function(t,e,i){if(void 0===e)this.istransparencySet=!0,this.setTransparency(t,t,ch.Normal);else if("number"==typeof e&&void 0===i)this.setTransparency(t,e,ch.Normal);else{null==this.trasparencies&&(this.trasparencies=new bu);var r=null,n=new Sc(t,e,i);this.trasparencies.containsKey(n)&&(r=this.trasparencies.getValue(n)),null==r&&(r=new wu(t,e,i),this.trasparencies.setValue(n,r));var o=this.getResources.getResources().getName(r);this.streamWriter.setGraphicsState(o)}},t.prototype.clipTranslateMargins=function(t,e,i,r,n,o){if(t instanceof vh&&void 0===e)this.clipBounds=t,this.pdfStreamWriter.writeComment("Clip margins."),this.pdfStreamWriter.appendRectangle(t),this.pdfStreamWriter.closePath(),this.pdfStreamWriter.clipPath(!1),this.pdfStreamWriter.writeComment("Translate co-ordinate system."),this.translateTransform(t.x,t.y);else if("number"==typeof t){var s=new vh(i,r,this.size.width-i-n,this.size.height-r-o);this.clipBounds=s,this.pdfStreamWriter.writeComment("Clip margins."),this.pdfStreamWriter.appendRectangle(s),this.pdfStreamWriter.closePath(),this.pdfStreamWriter.clipPath(!1),this.pdfStreamWriter.writeComment("Translate co-ordinate system."),this.translateTransform(t,e)}},t.prototype.updateY=function(t){return-t},t.prototype.translateTransform=function(t,e){var i=new mu;this.getTranslateTransform(t,e,i),this.pdfStreamWriter.modifyCtm(i),this.matrix.multiply(i)},t.prototype.getTranslateTransform=function(t,e,i){return i.translate(t,this.updateY(e)),i},t.prototype.scaleTransform=function(t,e){var i=new mu;this.getScaleTransform(t,e,i),this.pdfStreamWriter.modifyCtm(i),this.matrix.multiply(i)},t.prototype.getScaleTransform=function(t,e,i){return null==i&&(i=new mu),i.scale(t,e),i},t.prototype.rotateTransform=function(t){var e=new mu;this.getRotateTransform(t,e),this.pdfStreamWriter.modifyCtm(e),this.matrix.multiply(e)},t.prototype.initializeCoordinates=function(){this.pdfStreamWriter.writeComment("Change co-ordinate system to left/top."),this.mediaBoxUpperRightBound!==-this.size.height&&null==this.cropBox&&(this.mediaBoxUpperRightBound===this.size.height||0===this.mediaBoxUpperRightBound?this.translateTransform(0,this.updateY(this.size.height)):this.translateTransform(0,this.updateY(this.mediaBoxUpperRightBound)))},t.prototype.getRotateTransform=function(t,e){return null!=e&&void 0!==e||(e=new mu),e.rotate(this.updateY(t)),e},t.prototype.save=function(){var t=new Nc(this,this.matrix.clone());return t.brush=this.currentBrush,t.pen=this.currentPen,t.font=this.currentFont,t.colorSpace=this.currentColorSpace,t.characterSpacing=this.previousCharacterSpacing,t.wordSpacing=this.previousWordSpacing,t.textScaling=this.previousTextScaling,t.textRenderingMode=this.previousTextRenderingMode,this.graphicsState.push(t),this.pdfStreamWriter.saveGraphicsState(),t},t.prototype.restore=function(t){if(void 0===t)this.graphicsState.length>0&&this.doRestoreState();else if(-1!==this.graphicsState.indexOf(t))for(;0!==this.graphicsState.length;){if(this.doRestoreState()===t)break}},t.prototype.doRestoreState=function(){var t=this.graphicsState.pop();return this.transformationMatrix=t.matrix,this.currentBrush=t.brush,this.currentPen=t.pen,this.currentFont=t.font,this.currentColorSpace=t.colorSpace,this.previousCharacterSpacing=t.characterSpacing,this.previousWordSpacing=t.wordSpacing,this.previousTextScaling=t.textScaling,this.previousTextRenderingMode=t.textRenderingMode,this.pdfStreamWriter.restoreGraphicsState(),t},t.prototype.drawPath=function(t,e,i){this._drawPath(t,e,i.pathPoints,i.pathTypes,i.fillMode)},t.prototype._drawPath=function(t,e,i,r,n){e instanceof vc?(this.bCSInitialized=!1,e.graphics.colorSpace=this.colorSpace):e instanceof dc&&(this.bCSInitialized=!1,e.colorSpace=this.colorSpace),this.stateControl(t,e,null),this.buildUpPath(i,r),this.drawPathHelper(t,e,n,!1)},t.prototype.drawArc=function(t,e,i,r,n,o,s){e instanceof vh?this.drawArc(t,e.x,e.y,e.width,e.height,i,r):0!==s&&(this.stateControl(t,null,null),this.constructArcPath(e,i,e+r,i+n,o,s),this.drawPathHelper(t,null,!1))},t.prototype.buildUpPath=function(e,i){for(var r=e.length,n=0;n<r;++n){var o=0,s=e[n];switch(i[n]&t.pathTypesValuesMask){case uc.Start:this.pdfStreamWriter.beginPath(s.x,s.y);break;case uc.Bezier3:var a=new mh(0,0),l=new mh(0,0),h=this.getBezierPoints(e,i,n,a,l);this.pdfStreamWriter.appendBezierSegment(s,h.p2,h.p3),n=h.i;break;case uc.Line:this.pdfStreamWriter.appendLineSegment(s);break;default:throw new Error("ArithmeticException - Incorrect path formation.")}o=i[n],this.checkFlags(o)}},t.prototype.getBezierPoints=function(e,i,r,n,o){if(++r,(i[r]&t.pathTypesValuesMask)!==uc.Bezier3)throw new Error("ArgumentException : errorMsg");if(n=e[r],++r,(i[r]&t.pathTypesValuesMask)!==uc.Bezier3)throw new Error("ArgumentException : errorMsg");return o=e[r],{i:r,p2:n,p3:o}},t.prototype.checkFlags=function(t){(t&uc.CloseSubpath)===uc.CloseSubpath&&this.pdfStreamWriter.closePath()},t.prototype.constructArcPath=function(t,e,i,r,n,o){var s=this.getBezierArc(t,e,i,r,n,o);if(0!==s.length){var a=[s[0],s[1],s[2],s[3],s[4],s[5],s[6],s[7]];this.pdfStreamWriter.beginPath(a[0],a[1]);var l=0;for(l=0;l<s.length;l+=8)a=[s[l],s[l+1],s[l+2],s[l+3],s[l+4],s[l+5],s[l+6],s[l+7]],this.pdfStreamWriter.appendBezierSegment(a[2],a[3],a[4],a[5],a[6],a[7])}},t.prototype.getBezierArc=function(t,e,i,r,n,o){if(t>i){var s=void 0;s=t,t=i,i=s}if(r>e){s=void 0;s=e,e=r,r=s}var a,l;Math.abs(o)<=90?(a=o,l=1):a=o/(l=Math.ceil(Math.abs(o)/90));for(var h=(t+i)/2,u=(e+r)/2,c=(i-t)/2,p=(r-e)/2,d=a*(Math.PI/360),g=Math.abs(4/3*(1-Math.cos(d))/Math.sin(d)),f=[],y=0;y<l;y++){var m=(n+y*a)*(Math.PI/180),M=(n+(y+1)*a)*(Math.PI/180),v=Math.cos(m),b=Math.cos(M),w=Math.sin(m),N=Math.sin(M);a>0?f.push(h+c*v,u-p*w,h+c*(v-g*w),u-p*(w+g*v),h+c*(b+g*N),u-p*(N-g*b),h+c*b,u-p*N):f.push(h+c*v,u-p*w,h+c*(v+g*w),u-p*(w-g*v),h+c*(b-g*N),u-p*(N+g*b),h+c*b,u-p*N)}return f},t.pathTypesValuesMask=15,t.transparencyObject=!1,t}(),wc=function(){function t(t){this.sender=t}return t.prototype.getResources=function(){return this.sender.getResources()},t}(),Nc=function(){function t(t,e){if(this.internalTextRenderingMode=oh.Fill,this.internalCharacterSpacing=0,this.internalWordSpacing=0,this.internalTextScaling=100,this.pdfColorSpace=uh.Rgb,void 0!==t){this.pdfGraphics=t;var i=[];t.matrix.matrix.elements.forEach(function(t){i.push(t)}),this.transformationMatrix=new mu,this.transformationMatrix.matrix=new Mu(i)}}return Object.defineProperty(t.prototype,"graphics",{get:function(){return this.pdfGraphics},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"matrix",{get:function(){return this.transformationMatrix},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"characterSpacing",{get:function(){return this.internalCharacterSpacing},set:function(t){this.internalCharacterSpacing=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wordSpacing",{get:function(){return this.internalWordSpacing},set:function(t){this.internalWordSpacing=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textScaling",{get:function(){return this.internalTextScaling},set:function(t){this.internalTextScaling=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pen",{get:function(){return this.pdfPen},set:function(t){this.pdfPen=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"brush",{get:function(){return this.pdfBrush},set:function(t){this.pdfBrush=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"font",{get:function(){return this.pdfFont},set:function(t){this.pdfFont=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"colorSpace",{get:function(){return this.pdfColorSpace},set:function(t){this.pdfColorSpace=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textRenderingMode",{get:function(){return this.internalTextRenderingMode},set:function(t){this.internalTextRenderingMode=t},enumerable:!0,configurable:!0}),t}(),Sc=function(){return function(t,e,i){this.alphaPen=t,this.alphaBrush=e,this.blendMode=i}}(),Dc=function(){function t(t,e){if(this.pdfColorSpace=uh.Rgb,this.isVisible=!0,this.sublayer=!1,this.contentLength=0,this.dictionaryProperties=new gl,null===t)throw new Error("ArgumentNullException:page");if(this.pdfPage=t,this.clipPageTemplates=!0,void 0===e)this.content=new Hl;else if(e instanceof Hl||null===e){if(null===e)throw new Error("ArgumentNullException:stream");this.content=e}else this.content=new Hl,this.clipPageTemplates=e}return Object.defineProperty(t.prototype,"colorSpace",{get:function(){return this.pdfColorSpace},set:function(t){this.pdfColorSpace=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this.pdfPage},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layerId",{get:function(){return this.layerid},set:function(t){this.layerid=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.layerName},set:function(t){this.layerName=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this.isVisible},set:function(t){this.isVisible=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"graphics",{get:function(){return null==this.pdfGraphics&&this.initializeGraphics(this.page),this.pdfGraphics},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layers",{get:function(){return null==this.layer?(this.layer=new Oc(this.page),this.layer.sublayer=!0,this.layer):this.layer},enumerable:!0,configurable:!0}),t.prototype.add=function(){var e=new t(this.pdfPage);return e.name="",e},t.prototype.sign=function(t){return 0===t?0:t>0?1:-1},t.prototype.initializeGraphics=function(t){var e=t,i=new wc(this.page);if(this.pdfGraphics=new bc(t.size,i,this.content),this.pdfGraphics.mediaBoxUpperRightBound=0,null!=e){var r=e.section.parent;null!=r&&(this.pdfGraphics.colorSpace=r.document.colorSpace,this.colorSpace=r.document.colorSpace)}var n=this.sign(t.origin.y)===this.sign(t.origin.x);(t.origin.x>=0&&t.origin.y>=0||!n)&&this.pdfGraphics.initializeCoordinates();var o=e.section.getActualBounds(e,!0),s=e.section.pageSettings.margins;this.clipPageTemplates?t.origin.x>=0&&t.origin.y>=0&&this.pdfGraphics.clipTranslateMargins(o):this.graphics.clipTranslateMargins(o.x,o.y,s.left,s.top,s.right,s.bottom),this.pdfGraphics.setLayer(this)},Object.defineProperty(t.prototype,"element",{get:function(){return this.content},enumerable:!0,configurable:!0}),t}(),jc=function(){function t(){}return Object.defineProperty(t.prototype,"count",{get:function(){return void 0===this.collection&&(this.collection=[]),this.collection.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"list",{get:function(){return void 0===this.collection&&(this.collection=[]),this.collection},enumerable:!0,configurable:!0}),t}(),Ic=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Oc=function(t){function e(e){var i=t.call(this)||this;if(i.parentLayerCount=0,i.sublayer=!1,i.optionalContent=new fl,e instanceof xc){i.page=e;var r=e;i.parseLayers(r)}return i}return Ic(e,t),e.prototype.items=function(t,e){if("number"==typeof t&&void 0===e){return this.list[t]}if(null==e)throw new Error("ArgumentNullException: layer");if(e.page!==this.page)throw new Error("ArgumentException: The layer belongs to another page")},e.prototype.add=function(t,e){if(void 0===t){var i=new Dc(this.page);return i.name="",this.add(i),i}if(t instanceof Dc){var r=this.list.push(t);return this.addLayer(r,t),r}return 0},e.prototype.addLayer=function(t,e){var i=new Xl(e);this.page.contents.add(i)},e.prototype.insert=function(t,e){for(var i=[],r=this.list.length,n=t;n<r;n++)i.push(this.list.pop());this.list.push(e);for(n=0;n<i.length;n++)this.list.push(i[n]);this.insertLayer(t,e)},e.prototype.insertLayer=function(t,e){if(null==e)throw new Error("ArgumentNullException:layer");var i=new Xl(e);this.page.contents.insert(t,i)},e.prototype.parseLayers=function(t){var e=this.page.contents;this.page.getResources();t.crossTable;var i=new Hl,r=new Hl,n=[];n.push("q"),i.data=n,e.insert(0,new Xl(i)),(n=[]).push("Q"),r.data=n,e.insert(e.count,new Xl(r))},e.prototype.indexOf=function(t){if(null==t)throw new Error("ArgumentNullException: layer");return this.list.indexOf(t)},e}(jc),xc=function(){function t(t){this.defLayerIndex=-1,this.modified=!1,this.dictionaryProperties=new gl,this.pageDictionary=t}return Object.defineProperty(t.prototype,"section",{get:function(){return this.pdfSection},set:function(t){this.pdfSection=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dictionary",{get:function(){return this.pageDictionary},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.pageDictionary},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"defaultLayer",{get:function(){var t=this.layers,e=this.defaultLayerIndex;return t.items(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"defaultLayerIndex",{get:function(){if(0===this.layerCollection.count||-1===this.defLayerIndex){var t=this.layerCollection.add();this.defLayerIndex=this.layerCollection.indexOf(t)}return this.defLayerIndex},set:function(t){if(t<0||t>this.layers.count-1)throw new Error("ArgumentOutOfRangeException : value, Index can not be less 0 and greater Layers.Count - 1");this.defLayerIndex=t,this.modified=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layers",{get:function(){return null!=this.layerCollection&&void 0!==this.layerCollection||(this.layerCollection=new Oc(this)),this.layerCollection},enumerable:!0,configurable:!0}),t.prototype.getResources=function(){return null==this.resources&&(this.resources=new yc,this.dictionary.items.setValue(this.dictionaryProperties.resources,this.resources)),this.resources},Object.defineProperty(t.prototype,"contents",{get:function(){var t=this.pageDictionary.items.getValue(this.dictionaryProperties.contents);return null==t&&(t=new Sl,this.pageDictionary.items.setValue(this.dictionaryProperties.contents,t)),t},enumerable:!0,configurable:!0}),t.prototype.setResources=function(t){this.resources=t,this.dictionary.items.setValue(this.dictionaryProperties.resources,this.resources),this.modified=!0},t}(),Cc=function(){function t(t){this.alreadyExistsAnnotationError="This annotatation had been already added to page",this.missingAnnotationException="Annotation is not contained in collection.",this.dictionaryProperties=new gl,this.internalAnnotations=new Sl,this.lists=[],void 0!==t&&(this.page=t)}return Object.defineProperty(t.prototype,"annotations",{get:function(){return this.internalAnnotations},set:function(t){this.internalAnnotations=t},enumerable:!0,configurable:!0}),t.prototype.add=function(t){this.doAdd(t)},t.prototype.doAdd=function(t){if(void 0===t.destination)return t.setPage(this.page),this.internalAnnotations.add(new Xl(t)),this.lists.push(t);var e=(new Rh).layout(t.text,t.font,t.stringFormat,new Mh(t.bounds.width,0),!1,new Mh(0,0)),i=t.bounds.y;if(1===e.lines.length){var r=t.font.measureString(e.lines[0].text);t.bounds=new vh(new mh(t.bounds.x,i),r),t.text=e.lines[0].text,this.page.graphics.drawString(t.text,t.font,null,t.brush,t.bounds.x,t.bounds.y,t.bounds.width,t.bounds.height,null),t.setPage(this.page),this.setColor(t),this.internalAnnotations.add(new Xl(t)),this.lists.push(t)}else for(var n=0;n<e.lines.length;n++){r=t.font.measureString(e.lines[n].text);if(0===n)t.bounds=new vh(t.bounds.x,i,r.width,r.height),t.text=e.lines[n].text,this.page.graphics.drawString(t.text,t.font,null,t.brush,t.bounds.x,i,r.width,r.height,null),t.setPage(this.page),this.setColor(t),this.internalAnnotations.add(new Xl(t)),this.lists.push(t),i+=t.bounds.height;else{var o=t.clone();o.bounds=new vh(new mh(t.bounds.x,i),r),o.text=e.lines[n].text,this.page.graphics.drawString(o.text,o.font,null,o.brush,o.bounds.x,o.bounds.y,o.bounds.width,o.bounds.height,null),o.setPage(this.page),this.setColor(o),this.internalAnnotations.add(new Xl(o)),this.lists.push(o),i+=o.bounds.height}}},t.prototype.setColor=function(t){var e=uh.Rgb,i=t.color.toArray(e);t.dictionary.items.setValue(this.dictionaryProperties.c,i)},Object.defineProperty(t.prototype,"element",{get:function(){return this.internalAnnotations},enumerable:!0,configurable:!0}),t}(),zc=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Tc=function(t){function e(){var e=t.call(this,new fl)||this;return e.annotationCollection=null,e.beginSave=null,e.initialize(),e}return zc(e,t),Object.defineProperty(e.prototype,"document",{get:function(){return null!==this.section&&null!==this.section.parent?this.section.parent.document:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"graphics",{get:function(){var t=this.defaultLayer.graphics;return t.currentPage=this,t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"crossTable",{get:function(){if(null===this.section)throw new Error("PdfDocumentException : Page is not created");return null===this.section.parent?this.section.parentDocument.crossTable:this.section.parent.document.crossTable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this.section.pageSettings.size},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"origin",{get:function(){return this.section.pageSettings.origin},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"annotations",{get:function(){return null==this.annotationCollection&&(this.annotationCollection=new Cc(this),this.dictionary.items.setValue(this.dictionaryProperties.annots,this.annotationCollection.element),this.annotationCollection.annotations=this.dictionary.items.getValue(this.dictionaryProperties.annots)),this.annotationCollection},enumerable:!0,configurable:!0}),e.prototype.initialize=function(){this.dictionary.items.setValue(this.dictionaryProperties.type,new pl("Page")),this.dictionary.pageBeginDrawTemplate=new wl(this)},e.prototype.setSection=function(t){this.section=t,this.dictionary.items.setValue(this.dictionaryProperties.parent,new Xl(t))},e.prototype.resetProgress=function(){this.isProgressOn=!1},e.prototype.getClientSize=function(){var t=this.section.getActualBounds(this,!0);return new Mh(t.width,t.height)},e.prototype.pageBeginSave=function(){var t=this.document;void 0!==typeof t&&null!=t&&this.drawPageTemplates(t),null!=this.beginSave&&void 0!==this.beginSave&&this.beginSave(this)},e.prototype.drawPageTemplates=function(t){if(this.section.containsTemplates(t,this,!1)){var e=new Dc(this,!1);if(this.layers.insert(0,e),this.section.drawTemplates(this,e,t,!1),null!==e.graphics&&void 0!==e.graphics)for(var i=0;i<e.graphics.automaticFields.automaticFields.length;i++){var r=e.graphics.automaticFields.automaticFields[i];r.field.performDraw(e.graphics,r.location,r.scalingX,r.scalingY)}}if(this.section.containsTemplates(t,this,!0)){var n=new Dc(this,!1);this.layers.add(n),this.section.drawTemplates(this,n,t,!0)}},e}(xc),Lc=function(){function t(t){this.pdfPage=void 0!==t?t:null}return Object.defineProperty(t.prototype,"page",{get:function(){return this.pdfPage},enumerable:!0,configurable:!0}),t}(),Ac=function(){function t(t){if(this.pdfSection=null,null==t)throw Error('ArgumentNullException("section")');this.section=t}return Object.defineProperty(t.prototype,"section",{get:function(){return this.pdfSection},set:function(t){this.pdfSection=t},enumerable:!0,configurable:!0}),t.prototype.contains=function(t){return this.section.contains(t)},t.prototype.remove=function(t){this.section.remove(t)},t.prototype.add=function(){return this.section.add()},t}(),Pc=function(){function t(){}return Object.defineProperty(t.prototype,"left",{get:function(){return this.leftTemplate},set:function(t){this.leftTemplate=this.checkElement(t,cu.Left)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.topTemplate},set:function(t){this.topTemplate=this.checkElement(t,cu.Top)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.rightTemplate},set:function(t){this.rightTemplate=this.checkElement(t,cu.Right)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.bottomTemplate},set:function(t){this.bottomTemplate=this.checkElement(t,cu.Bottom)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"EvenLeft",{get:function(){return this.evenLeft},set:function(t){this.evenLeft=this.checkElement(t,cu.Left)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"EvenTop",{get:function(){return this.evenTop},set:function(t){this.evenTop=this.checkElement(t,cu.Top)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"EvenRight",{get:function(){return this.evenRight},set:function(t){this.evenRight=this.checkElement(t,cu.Right)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"EvenBottom",{get:function(){return this.evenBottom},set:function(t){this.evenBottom=this.checkElement(t,cu.Bottom)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"OddLeft",{get:function(){return this.oddLeft},set:function(t){this.oddLeft=this.checkElement(t,cu.Left)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"OddTop",{get:function(){return this.oddTop},set:function(t){this.oddTop=this.checkElement(t,cu.Top)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"OddRight",{get:function(){return this.oddRight},set:function(t){this.oddRight=this.checkElement(t,cu.Right)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"OddBottom",{get:function(){return this.oddBottom},set:function(t){this.oddBottom=this.checkElement(t,cu.Bottom)},enumerable:!0,configurable:!0}),t.prototype.getLeft=function(t){if(null==t)throw new Error("ArgumentNullException:page");return this.isEven(t)?null!=this.EvenLeft?this.EvenLeft:this.left:null!=this.OddLeft?this.OddLeft:this.left},t.prototype.getTop=function(t){if(null==t)throw new Error("ArgumentNullException:page");return this.isEven(t)?null!=this.EvenTop?this.EvenTop:this.top:null!=this.OddTop?this.OddTop:this.top},t.prototype.getRight=function(t){if(null==t)throw new Error("ArgumentNullException:page");return this.isEven(t)?null!=this.EvenRight?this.EvenRight:this.right:null!=this.OddRight?this.OddRight:this.right},t.prototype.getBottom=function(t){if(null==t)throw new Error("ArgumentNullException:page");return this.isEven(t)?null!=this.EvenBottom?this.EvenBottom:this.bottom:null!=this.OddBottom?this.OddBottom:this.bottom},t.prototype.isEven=function(t){var e=t.section.document.pages;return(e.pageCollectionIndex.containsKey(t)?e.pageCollectionIndex.getValue(t)+1:e.indexOf(t)+1)%2==0},t.prototype.checkElement=function(t,e){if(null!=t){if(void 0!==t.type&&t.type!==cu.None)throw new Error("NotSupportedException:Can not reassign the template element. Please, create new one.");t.type=e}return t},t}(),Ec=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),kc=function(t){function e(){var e=t.call(this)||this;return e.leftValue=e.topValue=e.rightValue=e.bottomValue=e.stampValue=!0,e}return Ec(e,t),Object.defineProperty(e.prototype,"applyDocumentLeftTemplate",{get:function(){return this.leftValue},set:function(t){this.leftValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"applyDocumentTopTemplate",{get:function(){return this.topValue},set:function(t){this.topValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"applyDocumentRightTemplate",{get:function(){return this.rightValue},set:function(t){this.rightValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"applyDocumentBottomTemplate",{get:function(){return this.bottomValue},set:function(t){this.bottomValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"applyDocumentStamps",{get:function(){return this.stampValue},set:function(t){this.stampValue=t},enumerable:!0,configurable:!0}),e}(Pc),Bc=function(){function t(t,e){this.pageAdded=new Lc,this.pdfPages=[],this.dictionaryProperties=new gl,this.pdfDocument=t,void 0===e?(this.settings=t.pageSettings.clone(),this.initialSettings=this.settings.clone()):(this.settings=e.clone(),this.initialSettings=this.settings.clone()),this.initialize()}return Object.defineProperty(t.prototype,"parent",{get:function(){return this.sectionCollection},set:function(t){this.sectionCollection=t,this.section.items.setValue(this.dictionaryProperties.parent,new Xl(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentDocument",{get:function(){return this.pdfDocument},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageSettings",{get:function(){return this.settings},set:function(t){if(null==t)throw Error("Value can not be null.");this.settings=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.section},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return this.pagesReferences.count},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"template",{get:function(){return null==this.pageTemplate&&(this.pageTemplate=new kc),this.pageTemplate},set:function(t){this.pageTemplate=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"document",{get:function(){return this.sectionCollection.document},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pages",{get:function(){return null!=this.pagesCollection&&void 0!==this.pagesCollection||(this.pagesCollection=new Ac(this)),this.pagesCollection},enumerable:!0,configurable:!0}),t.prototype.getPages=function(){return this.pdfPages},t.prototype.pointToNativePdf=function(t,e){var i=this.getActualBounds(t,!0);return e.x+=i.x,e.y=this.pageSettings.height-e.y,e},t.prototype.setPageSettings=function(t){this.settings=t,this.state.orientation=t.orientation,this.state.rotate=t.rotate,this.state.size=t.size,this.state.origin=t.origin},t.prototype.initialize=function(){this.pagesReferences=new Sl,this.section=new fl,this.state=new Fc(this.pdfDocument),this.section.sectionBeginSave=new bl(this,this.state),this.pageCount=new Nl(0),this.section.items.setValue(this.dictionaryProperties.count,this.pageCount),this.section.items.setValue(this.dictionaryProperties.type,new pl(this.dictionaryProperties.pages)),this.section.items.setValue(this.dictionaryProperties.kids,this.pagesReferences)},t.prototype.containsTemplates=function(t,e,i){var r=this.getDocumentTemplates(t,e,i),n=this.getSectionTemplates(e,i);return r.length>0||n.length>0},t.prototype.getDocumentTemplates=function(t,e,i){var r=[];return this.template.applyDocumentTopTemplate&&null!=t.template.getTop(e)&&(!t.template.getTop(e).foreground&&!i||t.template.getTop(e).foreground&&i)&&r.push(t.template.getTop(e)),this.template.applyDocumentBottomTemplate&&null!=t.template.getBottom(e)&&(!t.template.getBottom(e).foreground&&!i||t.template.getBottom(e).foreground&&i)&&r.push(t.template.getBottom(e)),this.template.applyDocumentLeftTemplate&&null!=t.template.getLeft(e)&&(!t.template.getLeft(e).foreground&&!i||t.template.getLeft(e).foreground&&i)&&r.push(t.template.getLeft(e)),this.template.applyDocumentRightTemplate&&null!=t.template.getRight(e)&&(!t.template.getRight(e).foreground&&!i||t.template.getRight(e).foreground&&i)&&r.push(t.template.getRight(e)),r},t.prototype.getSectionTemplates=function(t,e){var i=[];if(null!=this.template.getTop(t)){(!(r=this.template.getTop(t)).foreground&&!e||r.foreground&&e)&&i.push(r)}if(null!=this.template.getBottom(t)){(!(r=this.template.getBottom(t)).foreground&&!e||r.foreground&&e)&&i.push(r)}if(null!=this.template.getLeft(t)){(!(r=this.template.getLeft(t)).foreground&&!e||r.foreground&&e)&&i.push(r)}if(null!=this.template.getRight(t)){var r;(!(r=this.template.getRight(t)).foreground&&!e||r.foreground&&e)&&i.push(r)}return i},t.prototype.add=function(t){if(void 0===t){var e=new Tc;return this.add(e),e}var i=this.checkPresence(t);this.pdfPages.push(t),this.pagesReferences.add(i),t.setSection(this),t.resetProgress(),this.pageAddedMethod(t)},t.prototype.checkPresence=function(t){for(var e=new Xl(t),i=!1,r=this.parent,n=0;n<r.section.length;n++){var o=r.section[n];i=i||o.contains(t)}return e},t.prototype.contains=function(t){return 0<=this.indexOf(t)},t.prototype.indexOf=function(t){for(var e=0;e<this.pdfPages.length;e++)if(this.pdfPages[e]===t)return this.pdfPages.indexOf(t);var i=new Xl(t);return this.pagesReferences.indexOf(i)},t.prototype.pageAddedMethod=function(t){var e=new Lc(t);this.onPageAdded(e);this.parent.document.pages.onPageAdded(e),this.pageCount.intValue=this.count},t.prototype.onPageAdded=function(t){},t.prototype.getActualBounds=function(t,e,i){if(t instanceof Tc&&"boolean"==typeof e){var r=this.parent.document;return this.getActualBounds(r,t,e)}t=t,e=e,i=i;var n=new vh(0,0,0,0);n.height=i?this.pageSettings.size.height:this.pageSettings.getActualSize().height,n.width=i?this.pageSettings.size.width:this.pageSettings.getActualSize().width;var o=this.getLeftIndentWidth(t,e,i),s=this.getTopIndentHeight(t,e,i),a=this.getRightIndentWidth(t,e,i),l=this.getBottomIndentHeight(t,e,i);return n.x+=o,n.y+=s,n.width-=o+a,n.height-=s+l,n},t.prototype.getLeftIndentWidth=function(t,e,i){if(null==t)throw new Error("ArgumentNullException:document");if(null==e)throw new Error("ArgumentNullException:page");var r=i?this.pageSettings.margins.left:0,n=null!=this.template.getLeft(e)?this.template.getLeft(e).width:0,o=null!=t.template.getLeft(e)?t.template.getLeft(e).width:0;return r+=this.template.applyDocumentLeftTemplate?Math.max(n,o):n},t.prototype.getTopIndentHeight=function(t,e,i){if(null==t)throw new Error("ArgumentNullException:document");if(null==e)throw new Error("ArgumentNullException:page");var r=i?this.pageSettings.margins.top:0,n=null!=this.template.getTop(e)?this.template.getTop(e).height:0,o=null!=t.template.getTop(e)?t.template.getTop(e).height:0;return r+=this.template.applyDocumentTopTemplate?Math.max(n,o):n},t.prototype.getRightIndentWidth=function(t,e,i){if(null==t)throw new Error("ArgumentNullException:document");if(null==e)throw new Error("ArgumentNullException:page");var r=i?this.pageSettings.margins.right:0,n=null!=this.template.getRight(e)?this.template.getRight(e).width:0,o=null!=t.template.getRight(e)?t.template.getRight(e).width:0;return r+=this.template.applyDocumentRightTemplate?Math.max(n,o):n},t.prototype.getBottomIndentHeight=function(t,e,i){if(null==t)throw new Error("ArgumentNullException:document");if(null==e)throw new Error("ArgumentNullException:page");var r=i?this.pageSettings.margins.bottom:0,n=null!=this.template.getBottom(e)?this.template.getBottom(e).height:0,o=null!=t.template.getBottom(e)?t.template.getBottom(e).height:0;return r+=this.template.applyDocumentBottomTemplate?Math.max(n,o):n},t.prototype.remove=function(t){if(null==t)throw Error('ArgumentNullException("page")');var e=this.pdfPages.indexOf(t);this.pagesReferences.removeAt(e);for(var i=[],r=0;r<e;r++)i.push(this.pdfPages[r]);for(r=e+1;r<this.pdfPages.length;r++)i.push(this.pdfPages[r]);this.pdfPages=i},t.prototype.applyPageSettings=function(t,e,i){var r=new vh(i.origin,i.size);t.items.setValue(this.dictionaryProperties.mediaBox,Sl.fromRectangle(r));var n=0;n=Rc.rotateFactor*i.rotate;var o=new Nl(n);t.items.setValue(this.dictionaryProperties.rotate,o)},t.prototype.beginSave=function(t,e){var i=e.document;this.applyPageSettings(this.section,i.pageSettings,t)},t.prototype.drawTemplates=function(t,e,i,r){var n=this.getDocumentTemplates(i,t,r),o=this.getSectionTemplates(t,r);this.drawTemplatesHelper(e,i,n),this.drawTemplatesHelper(e,i,o)},t.prototype.drawTemplatesHelper=function(t,e,i){if(null!=i&&i.length>0)for(var r=i.length,n=0;n<r;n++){i[n].draw(t,e)}},t}(),Fc=function(){function t(t){this.pageOrientation=t.pageSettings.orientation,this.pageRotate=t.pageSettings.rotate,this.pageSize=t.pageSettings.size,this.pageOrigin=t.pageSettings.origin}return Object.defineProperty(t.prototype,"orientation",{get:function(){return this.pageOrientation},set:function(t){this.pageOrientation=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rotate",{get:function(){return this.pageRotate},set:function(t){this.pageRotate=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.pageSize},set:function(t){this.pageSize=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"origin",{get:function(){return this.pageOrigin},set:function(t){this.pageOrigin=t},enumerable:!0,configurable:!0}),t}(),Rc=function(){function t(t){this.sections=[],this.dictionaryProperties=new gl,this.pdfDocument=t.clone(),this.initialize()}return Object.defineProperty(t.prototype,"section",{get:function(){return this.sections},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"document",{get:function(){return this.pdfDocument},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return this.sections.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.pages},enumerable:!0,configurable:!0}),t.prototype.initialize=function(){this.sectionCount=new Nl(0),this.sectionCollection=new Sl,this.pages=new fl,this.pages.beginSave=new yl(this),this.pages.items.setValue(this.dictionaryProperties.type,new pl("Pages")),this.pages.items.setValue(this.dictionaryProperties.kids,this.sectionCollection),this.pages.items.setValue(this.dictionaryProperties.count,this.sectionCount),this.pages.items.setValue(this.dictionaryProperties.resources,new fl),this.setPageSettings(this.pages,this.pdfDocument.pageSettings)},t.prototype.pdfSectionCollection=function(t){if(t<0||t>=this.count)throw new Error("IndexOutOfRangeException()");return this.sections[t]},t.prototype.setPageSettings=function(t,e){var i=new vh(new mh,e.size);t.items.setValue(this.dictionaryProperties.mediaBox,Sl.fromRectangle(i))},t.prototype.add=function(t){if(void 0===t){var e=new Bc(this.pdfDocument);return this.add(e),e}var i=this.checkSection(t);return this.sections.push(t),t.parent=this,this.sectionCollection.add(i),this.sections.indexOf(t)},t.prototype.checkSection=function(t){var e=new Xl(t);this.sectionCollection.contains(e);return e},t.prototype.countPages=function(){var t=0;return this.sections.forEach(function(e){return t+=e.count}),t},t.prototype.beginSave=function(){this.sectionCount.intValue=this.countPages()},t.rotateFactor=90,t}(),Uc=function(){function t(t){this.pdfPageCollectionIndex=new cl,this.document=t}return Object.defineProperty(t.prototype,"count",{get:function(){return this.countPages()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageCollectionIndex",{get:function(){return this.pdfPageCollectionIndex},enumerable:!0,configurable:!0}),t.prototype.add=function(t){if(void 0===t){var e=new Tc;return this.add(e),e}this.getLastSection().add(t)},t.prototype.getLastSection=function(){var t=this.document.sections;0===t.section.length&&t.add();return t.section[t.section.length-1]},t.prototype.onPageAdded=function(t){},t.prototype.countPages=function(){for(var t=this.document.sections,e=0,i=0;i<t.section.length;i++)e+=t.section[i].count;return e},t.prototype.getPageByIndex=function(t){return this.getPage(t)},t.prototype.getPage=function(t){if(t<0||t>=this.count)throw Error('ArgumentOutOfRangeException("index", "Value can not be less 0")');for(var e=null,i=0,r=0,n=0,o=this.document.sections.count,s=0;s<o;s++){var a=this.document.sections.section[s];if(r=a.count,n=t-i,t>=i&&n<r){e=a.getPages()[n];break}i+=r}return e},t.prototype.indexOf=function(t){var e=-1;if(null==t)throw new Error("ArgumentNullException: page");for(var i=0,r=0,n=this.document.sections.count;r<n;r++){var o=this.document.sections.pdfSectionCollection(r);if((e=o.indexOf(t))>=0){e+=i;break}e=-1,i+=o.count}return e},t.prototype.remove=function(t){if(null==t)throw Error('ArgumentNullException("page")');for(var e=null,i=0,r=this.document.sections.count;i<r;i++)if((e=this.document.sections.pdfSectionCollection(i)).pages.contains(t)){e.pages.remove(t);break}return e},t}(),_c=function(){function t(){this.referenceObjects=[],this.pdfFontCollection=new cl}return t.prototype.search=function(t){var e=null,i=this.getGroup(t);return null==i?i=this.createNewGroup():i.length>0&&(e=i[0]),i.push(t),e},t.prototype.createNewGroup=function(){var t=[];return this.referenceObjects.push(t),t},t.prototype.getGroup=function(t){var e=null;if(null!==t)for(var i=this.referenceObjects.length,r=0;r<i;r++){if(this.referenceObjects.length>0){var n=this.referenceObjects[r];if(n.length>0){var o=n[0];if(t.equalsTo(o)){e=n;break}}else this.removeGroup(n)}i=this.referenceObjects.length}return e},t.prototype.removeGroup=function(t){if(null!==t){var e=this.referenceObjects.indexOf(t);this.referenceObjects.slice(e,e+1)}},t.prototype.destroy=function(){this.pdfFontCollection=void 0,this.referenceObjects=void 0},t}(),Vc=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Yc=function(t){function e(i){var r=t.call(this)||this;r.defaultMargin=40,r.streamWriter=null,r.document=r;var n=!1;void 0===i?(e.cacheCollection=new _c,n=!1):n=i;var o=new Gh;r.setMainObjectCollection(o);var s=new nu;s.isMerging=n,s.document=r,r.setCrossTable(s);var a=new ru;return r.setCatalog(a),o.add(a),a.position=-1,r.sectionCollection=new Rc(r),r.documentPageCollection=new Uc(r),a.pages=r.sectionCollection,r}return Vc(e,t),Object.defineProperty(e,"defaultFont",{get:function(){return null==this.defaultStandardFont&&(this.defaultStandardFont=new Gc(Dh.Helvetica,8)),this.defaultStandardFont},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sections",{get:function(){return this.sectionCollection},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageSettings",{get:function(){return null==this.settings&&(this.settings=new gu(this.defaultMargin)),this.settings},set:function(t){this.settings=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pages",{get:function(){return this.documentPageCollection},enumerable:!0,configurable:!0}),Object.defineProperty(e,"cache",{get:function(){return void 0===e.cacheCollection||null==e.cacheCollection?new _c:e.cacheCollection},set:function(t){this.cacheCollection=t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"enableCache",{get:function(){return this.isCacheEnabled},set:function(t){this.isCacheEnabled=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorSpace",{get:function(){return this.pdfColorSpace===uh.Rgb||this.pdfColorSpace===uh.Cmyk||this.pdfColorSpace===uh.GrayScale?this.pdfColorSpace:uh.Rgb},set:function(t){t===uh.Rgb||t===uh.Cmyk||t===uh.GrayScale?this.pdfColorSpace=t:this.pdfColorSpace=uh.Rgb},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"template",{get:function(){return null==this.pageTemplate&&(this.pageTemplate=new Pc),this.pageTemplate},set:function(t){this.pageTemplate=t},enumerable:!0,configurable:!0}),e.prototype.docSave=function(t,e,i){if(this.checkPagesPresence(),null===t)throw new Error("ArgumentNullException : stream");this.streamWriter=t;var r=new Qh(t);if(r.document=this,"boolean"==typeof e&&void 0===i)return this.crossTable.save(r);this.crossTable.save(r,e)},e.prototype.checkPagesPresence=function(){0===this.pages.count&&this.pages.add()},e.prototype.destroy=function(){this.catalog=void 0,this.colorSpace=void 0,this.currentSavingObj=void 0,this.documentPageCollection=void 0,this.isStreamCopied=void 0,this.pageSettings=void 0,this.pageTemplate=void 0,this.pdfColorSpace=void 0,this.sectionCollection=void 0,e.cache.destroy(),this.crossTable.pdfObjects.destroy(),e.cache=void 0,this.streamWriter.destroy()},e.defaultStandardFont=null,e.isCacheEnabled=!0,e}(qh),Qc=function(){function t(){}return t.getMetrics=function(t,e,i){var r=null;switch(t){case Dh.Helvetica:r=this.getHelveticaMetrics(t,e,i);break;case Dh.Courier:r=this.getCourierMetrics(t,e,i);break;case Dh.TimesRoman:r=this.getTimesMetrics(t,e,i);break;case Dh.Symbol:r=this.getSymbolMetrics(t,e,i);break;case Dh.ZapfDingbats:r=this.getZapfDingbatsMetrics(t,e,i);break;default:r=this.getHelveticaMetrics(Dh.Helvetica,e,i)}return r.name=t.toString(),r.subScriptSizeFactor=this.subSuperScriptFactor,r.superscriptSizeFactor=this.subSuperScriptFactor,r},t.getHelveticaMetrics=function(t,e,i){var r=new tc;return(e&fh.Bold)>0&&(e&fh.Italic)>0?(r.ascent=this.helveticaBoldItalicAscent,r.descent=this.helveticaBoldItalicDescent,r.postScriptName=this.helveticaBoldItalicName,r.size=i,r.widthTable=new ic(this.arialBoldWidth),r.height=r.ascent-r.descent):(e&fh.Bold)>0?(r.ascent=this.helveticaBoldAscent,r.descent=this.helveticaBoldDescent,r.postScriptName=this.helveticaBoldName,r.size=i,r.widthTable=new ic(this.arialBoldWidth),r.height=r.ascent-r.descent):(e&fh.Italic)>0?(r.ascent=this.helveticaItalicAscent,r.descent=this.helveticaItalicDescent,r.postScriptName=this.helveticaItalicName,r.size=i,r.widthTable=new ic(this.arialWidth),r.height=r.ascent-r.descent):(r.ascent=this.helveticaAscent,r.descent=this.helveticaDescent,r.postScriptName=this.helveticaName,r.size=i,r.widthTable=new ic(this.arialWidth),r.height=r.ascent-r.descent),r},t.getCourierMetrics=function(t,e,i){var r=new tc;return(e&fh.Bold)>0&&(e&fh.Italic)>0?(r.ascent=this.courierBoldItalicAscent,r.descent=this.courierBoldItalicDescent,r.postScriptName=this.courierBoldItalicName,r.size=i,r.widthTable=new ic(this.fixedWidth),r.height=r.ascent-r.descent):(e&fh.Bold)>0?(r.ascent=this.courierBoldAscent,r.descent=this.courierBoldDescent,r.postScriptName=this.courierBoldName,r.size=i,r.widthTable=new ic(this.fixedWidth),r.height=r.ascent-r.descent):(e&fh.Italic)>0?(r.ascent=this.courierItalicAscent,r.descent=this.courierItalicDescent,r.postScriptName=this.courierItalicName,r.size=i,r.widthTable=new ic(this.fixedWidth),r.height=r.ascent-r.descent):(r.ascent=this.courierAscent,r.descent=this.courierDescent,r.postScriptName=this.courierName,r.size=i,r.widthTable=new ic(this.fixedWidth),r.height=r.ascent-r.descent),r},t.getTimesMetrics=function(t,e,i){var r=new tc;return(e&fh.Bold)>0&&(e&fh.Italic)>0?(r.ascent=this.timesBoldItalicAscent,r.descent=this.timesBoldItalicDescent,r.postScriptName=this.timesBoldItalicName,r.size=i,r.widthTable=new ic(this.timesRomanBoldItalicWidths),r.height=r.ascent-r.descent):(e&fh.Bold)>0?(r.ascent=this.timesBoldAscent,r.descent=this.timesBoldDescent,r.postScriptName=this.timesBoldName,r.size=i,r.widthTable=new ic(this.timesRomanBoldWidth),r.height=r.ascent-r.descent):(e&fh.Italic)>0?(r.ascent=this.timesItalicAscent,r.descent=this.timesItalicDescent,r.postScriptName=this.timesItalicName,r.size=i,r.widthTable=new ic(this.timesRomanItalicWidth),r.height=r.ascent-r.descent):(r.ascent=this.timesAscent,r.descent=this.timesDescent,r.postScriptName=this.timesName,r.size=i,r.widthTable=new ic(this.timesRomanWidth),r.height=r.ascent-r.descent),r},t.getSymbolMetrics=function(t,e,i){var r=new tc;return r.ascent=this.symbolAscent,r.descent=this.symbolDescent,r.postScriptName=this.symbolName,r.size=i,r.widthTable=new ic(this.symbolWidth),r.height=r.ascent-r.descent,r},t.getZapfDingbatsMetrics=function(t,e,i){var r=new tc;return r.ascent=this.zapfDingbatsAscent,r.descent=this.zapfDingbatsDescent,r.postScriptName=this.zapfDingbatsName,r.size=i,r.widthTable=new ic(this.zapfDingbatsWidth),r.height=r.ascent-r.descent,r},t.subSuperScriptFactor=1.52,t.helveticaAscent=931,t.helveticaDescent=-225,t.helveticaName="Helvetica",t.helveticaBoldAscent=962,t.helveticaBoldDescent=-228,t.helveticaBoldName="Helvetica-Bold",t.helveticaItalicAscent=931,t.helveticaItalicDescent=-225,t.helveticaItalicName="Helvetica-Oblique",t.helveticaBoldItalicAscent=962,t.helveticaBoldItalicDescent=-228,t.helveticaBoldItalicName="Helvetica-BoldOblique",t.courierAscent=805,t.courierDescent=-250,t.courierName="Courier",t.courierBoldAscent=801,t.courierBoldDescent=-250,t.courierBoldName="Courier-Bold",t.courierItalicAscent=805,t.courierItalicDescent=-250,t.courierItalicName="Courier-Oblique",t.courierBoldItalicAscent=801,t.courierBoldItalicDescent=-250,t.courierBoldItalicName="Courier-BoldOblique",t.timesAscent=898,t.timesDescent=-218,t.timesName="Times-Roman",t.timesBoldAscent=935,t.timesBoldDescent=-218,t.timesBoldName="Times-Bold",t.timesItalicAscent=883,t.timesItalicDescent=-217,t.timesItalicName="Times-Italic",t.timesBoldItalicAscent=921,t.timesBoldItalicDescent=-218,t.timesBoldItalicName="Times-BoldItalic",t.symbolAscent=1010,t.symbolDescent=-293,t.symbolName="Symbol",t.zapfDingbatsAscent=820,t.zapfDingbatsDescent=-143,t.zapfDingbatsName="ZapfDingbats",t.arialWidth=[278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,0,556,0,222,556,333,1e3,556,556,333,1e3,667,333,1e3,0,611,0,0,222,222,333,333,350,556,1e3,333,1e3,500,333,944,0,500,667,0,333,556,556,556,556,260,556,333,737,370,556,584,0,737,333,400,584,333,333,333,556,537,278,333,333,365,556,834,834,834,611,667,667,667,667,667,667,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,500,556,556,556,556,278,278,278,278,556,556,556,556,556,556,556,584,611,556,556,556,556,500,556,500],t.arialBoldWidth=[278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,0,556,0,278,556,500,1e3,556,556,333,1e3,667,333,1e3,0,611,0,0,278,278,500,500,350,556,1e3,333,1e3,556,333,944,0,500,667,0,333,556,556,556,556,280,556,333,737,370,556,584,0,737,333,400,584,333,333,333,611,556,278,333,333,365,556,834,834,834,611,722,722,722,722,722,722,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,556,556,556,556,556,278,278,278,278,611,611,611,611,611,611,611,584,611,611,611,611,611,556,611,556],t.fixedWidth=[600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600],t.timesRomanWidth=[250,333,408,500,500,833,778,180,333,333,500,564,250,333,250,278,500,500,500,500,500,500,500,500,500,500,278,278,564,564,564,444,921,722,667,667,722,611,556,722,722,333,389,722,611,889,722,722,556,722,667,556,611,722,722,944,722,722,611,333,278,333,469,500,333,444,500,444,500,444,333,500,500,278,278,500,278,778,500,500,500,500,333,389,278,500,500,722,500,500,444,480,200,480,541,0,500,0,333,500,444,1e3,500,500,333,1e3,556,333,889,0,611,0,0,333,333,444,444,350,500,1e3,333,980,389,333,722,0,444,722,0,333,500,500,500,500,200,500,333,760,276,500,564,0,760,333,400,564,300,300,333,500,453,250,333,300,310,500,750,750,750,444,722,722,722,722,722,722,889,667,611,611,611,611,333,333,333,333,722,722,722,722,722,722,722,564,722,722,722,722,722,722,556,500,444,444,444,444,444,444,667,444,444,444,444,444,278,278,278,278,500,500,500,500,500,500,500,564,500,500,500,500,500,500,500,500],t.timesRomanBoldWidth=[250,333,555,500,500,1e3,833,278,333,333,500,570,250,333,250,278,500,500,500,500,500,500,500,500,500,500,333,333,570,570,570,500,930,722,667,722,722,667,611,778,778,389,500,778,667,944,722,778,611,778,722,556,667,722,722,1e3,722,722,667,333,278,333,581,500,333,500,556,444,556,444,333,500,556,278,333,556,278,833,556,500,556,556,444,389,333,556,500,722,500,500,444,394,220,394,520,0,500,0,333,500,500,1e3,500,500,333,1e3,556,333,1e3,0,667,0,0,333,333,500,500,350,500,1e3,333,1e3,389,333,722,0,444,722,0,333,500,500,500,500,220,500,333,747,300,500,570,0,747,333,400,570,300,300,333,556,540,250,333,300,330,500,750,750,750,500,722,722,722,722,722,722,1e3,722,667,667,667,667,389,389,389,389,722,722,778,778,778,778,778,570,778,722,722,722,722,722,611,556,500,500,500,500,500,500,722,444,444,444,444,444,278,278,278,278,500,556,500,500,500,500,500,570,500,556,556,556,556,500,556,500],t.timesRomanItalicWidth=[250,333,420,500,500,833,778,214,333,333,500,675,250,333,250,278,500,500,500,500,500,500,500,500,500,500,333,333,675,675,675,500,920,611,611,667,722,611,611,722,722,333,444,667,556,833,667,722,611,722,611,500,556,722,611,833,611,556,556,389,278,389,422,500,333,500,500,444,500,444,278,500,500,278,278,444,278,722,500,500,500,500,389,389,278,500,444,667,444,444,389,400,275,400,541,0,500,0,333,500,556,889,500,500,333,1e3,500,333,944,0,556,0,0,333,333,556,556,350,500,889,333,980,389,333,667,0,389,556,0,389,500,500,500,500,275,500,333,760,276,500,675,0,760,333,400,675,300,300,333,500,523,250,333,300,310,500,750,750,750,500,611,611,611,611,611,611,889,667,611,611,611,611,333,333,333,333,722,667,722,722,722,722,722,675,722,722,722,722,722,556,611,500,500,500,500,500,500,500,667,444,444,444,444,444,278,278,278,278,500,500,500,500,500,500,500,675,500,500,500,500,500,444,500,444],t.timesRomanBoldItalicWidths=[250,389,555,500,500,833,778,278,333,333,500,570,250,333,250,278,500,500,500,500,500,500,500,500,500,500,333,333,570,570,570,500,832,667,667,667,722,667,667,722,778,389,500,667,611,889,722,722,611,722,667,556,611,722,667,889,667,611,611,333,278,333,570,500,333,500,500,444,500,444,333,500,556,278,278,500,278,778,556,500,500,500,389,389,278,556,444,667,500,444,389,348,220,348,570,0,500,0,333,500,500,1e3,500,500,333,1e3,556,333,944,0,611,0,0,333,333,500,500,350,500,1e3,333,1e3,389,333,722,0,389,611,0,389,500,500,500,500,220,500,333,747,266,500,606,0,747,333,400,570,300,300,333,576,500,250,333,300,300,500,750,750,750,500,667,667,667,667,667,667,944,667,667,667,667,667,389,389,389,389,722,722,722,722,722,722,722,570,722,722,722,722,722,611,611,500,500,500,500,500,500,500,722,444,444,444,444,444,278,278,278,278,500,556,500,500,500,500,500,570,500,556,556,556,556,444,500,444],t.symbolWidth=[250,333,713,500,549,833,778,439,333,333,500,549,250,549,250,278,500,500,500,500,500,500,500,500,500,500,278,278,549,549,549,444,549,722,667,722,612,611,763,603,722,333,631,722,686,889,722,722,768,741,556,592,611,690,439,768,645,795,611,333,863,333,658,500,500,631,549,549,494,439,521,411,603,329,603,549,549,576,521,549,549,521,549,603,439,576,713,686,493,686,494,480,200,480,549,750,620,247,549,167,713,500,753,753,753,753,1042,987,603,987,603,400,549,411,549,549,713,494,460,549,549,549,549,1e3,603,1e3,658,823,686,795,987,768,768,823,768,768,713,713,713,713,713,713,713,768,713,790,790,890,823,549,250,713,603,603,1042,987,603,987,603,494,329,790,790,786,713,384,384,384,384,384,384,494,494,494,494,329,274,686,686,686,384,384,384,384,384,384,494,494,494,-1],t.zapfDingbatsWidth=[278,974,961,974,980,719,789,790,791,690,960,939,549,855,911,933,911,945,974,755,846,762,761,571,677,763,760,759,754,494,552,537,577,692,786,788,788,790,793,794,816,823,789,841,823,833,816,831,923,744,723,749,790,792,695,776,768,792,759,707,708,682,701,826,815,789,789,707,687,696,689,786,787,713,791,785,791,873,761,762,762,759,759,892,892,788,784,438,138,277,415,392,392,668,668,390,390,317,317,276,276,509,509,410,410,234,234,334,334,732,544,544,910,667,760,760,776,595,694,626,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,894,838,1016,458,748,924,748,918,927,928,928,834,873,828,924,924,917,930,931,463,883,836,836,867,867,696,696,874,874,760,946,771,865,771,888,967,888,831,873,927,970,918],t}(),Wc=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Gc=function(t){function e(i,r,n){var o=t.call(this,r,void 0===n?i instanceof e?i.style:fh.Regular:n)||this;return o.dictionaryProperties=new gl,o.encodings=["Unknown","StandardEncoding","MacRomanEncoding","MacExpertEncoding","WinAnsiEncoding","PDFDocEncoding","IdentityH"],o.pdfFontFamily=void 0===i?Dh.Helvetica:i instanceof e?i.fontFamily:i,o.checkStyle(),o.initializeInternals(),o}return Wc(e,t),Object.defineProperty(e.prototype,"fontFamily",{get:function(){return this.pdfFontFamily},enumerable:!0,configurable:!0}),e.prototype.checkStyle=function(){if(this.fontFamily===Dh.Symbol||this.fontFamily===Dh.ZapfDingbats){var t=this.style;t&=~(fh.Bold|fh.Italic),this.setStyle(t)}},e.prototype.getLineWidth=function(t,i){if(null==t)throw new Error("ArgumentNullException:line");for(var r=0,n=(this.name,0),o=(t=e.convert(t)).length;n<o;n++){var s=t[n];r+=this.getCharWidthInternal(s,i)}var a=this.metrics.getSize(i);return r*=Yh.charSizeMultiplier*a,r=this.applyFormatSettings(t,i,r)},e.prototype.equalsToFont=function(t){var e=!1,i=t;if(null!=i){var r=this.fontFamily===i.fontFamily,n=~(fh.Underline|fh.Strikeout),o=(this.style&n)==(i.style&n);e=r&&o}return e},e.prototype.initializeInternals=function(){Yc.cache.search(this);var t=null,e=Qc.getMetrics(this.pdfFontFamily,this.style,this.size);this.metrics=e,t=this.createInternals(),this.setInternals(t)},e.prototype.createInternals=function(){var t=new fl;if(t.items.setValue(this.dictionaryProperties.type,new pl(this.dictionaryProperties.font)),t.items.setValue(this.dictionaryProperties.subtype,new pl(this.dictionaryProperties.type1)),t.items.setValue(this.dictionaryProperties.baseFont,new pl(this.metrics.postScriptName)),this.fontFamily!==Dh.Symbol&&this.fontFamily!==Dh.ZapfDingbats){var e=this.encodings[xh.WinAnsiEncoding];t.items.setValue(this.dictionaryProperties.encoding,new pl(e))}return t},e.prototype.getCharWidthInternal=function(t,i){var r=0;r=t.charCodeAt(0),"0"!==this.name&&"1"!==this.name&&"2"!==this.name&&"3"!==this.name&&"4"!==this.name||(r-=e.charOffset),r=r>=0&&128!==r?r:0;return this.metrics.widthTable.items(r)},e.convert=function(t){return t},e.charOffset=32,e}(Yh),Hc=function(){function t(t){this.dictionaryProperties=new gl,this.pdfColor=new yh(255,255,255),this.rectangle=new vh(0,0,0,0),this.pdfPage=null,this.textBrush=new Sh(new yh(0,0,0)),this.textFont=new Gc(Dh.TimesRoman,10),this.format=new Bh(nh.Left),this.content="",this.pdfDictionary=new fl,this.internalColor=new yh,this.darkness=1,void 0===t?this.initialize():(this.initialize(),this.bounds=t)}return Object.defineProperty(t.prototype,"color",{get:function(){return this.pdfColor},set:function(t){this.pdfColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"innerColor",{get:function(){return this.internalColor},set:function(t){this.internalColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bounds",{get:function(){return this.rectangle},set:function(t){this.rectangle=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this.pdfPage},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"font",{get:function(){return this.textFont},set:function(t){this.textFont=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stringFormat",{get:function(){return this.format},set:function(t){this.format=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"brush",{get:function(){return this.textBrush},set:function(t){this.textBrush=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.content},set:function(t){this.content=t,this.dictionary.items.setValue(this.dictionaryProperties.contents,new Jl(this.content))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dictionary",{get:function(){return this.pdfDictionary},set:function(t){this.pdfDictionary=t},enumerable:!0,configurable:!0}),t.prototype.initialize=function(){this.pdfDictionary.annotationBeginSave=new vl(this),this.pdfDictionary.items.setValue(this.dictionaryProperties.type,new pl(this.dictionaryProperties.annot))},t.prototype.setPage=function(t){this.pdfPage=t,this.pdfDictionary.items.setValue(this.dictionaryProperties.p,new Xl(this.pdfPage))},t.prototype.beginSave=function(){this.save()},t.prototype.save=function(){var t=new vh(this.rectangle.x,this.rectangle.y,this.rectangle.width,this.rectangle.height),e=this.pdfPage.section,i=t.height,r=e.pointToNativePdf(this.page,new mh(t.x,t.y));t.x=r.x,t.width=r.x+t.width,t.y=r.y-this.page.document.pageSettings.margins.top,t.height=t.y-i,this.pdfDictionary.items.setValue(this.dictionaryProperties.rect,Sl.fromRectangle(t)),this.dictionary.items.setValue(this.dictionaryProperties.ca,new Nl(this.darkness))},Object.defineProperty(t.prototype,"element",{get:function(){return this.pdfDictionary},enumerable:!0,configurable:!0}),t}(),qc=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),$c=function(t){function e(e){return t.call(this,e)||this}return qc(e,t),e.prototype.initialize=function(){t.prototype.initialize.call(this),this.dictionary.items.setValue(this.dictionaryProperties.subtype,new pl(this.dictionaryProperties.link))},e}(Hc),Kc=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Jc=function(t){function e(e){var i=t.call(this,e)||this;return i.pdfAction=null,i}return Kc(e,t),e.prototype.getSetAction=function(t){if(void 0===t)return this.pdfAction;this.pdfAction=t},e}($c),Zc=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Xc=(function(t){function e(e,i){var r=t.call(this,e)||this;return r.pdfDestination=null,void 0!==i&&(r.destination=i),r}Zc(e,t),Object.defineProperty(e.prototype,"destination",{get:function(){return this.pdfDestination},set:function(t){this.pdfDestination=t},enumerable:!0,configurable:!0}),e.prototype.save=function(){t.prototype.save.call(this),null!=this.pdfDestination&&this.dictionary.items.setValue(this.dictionaryProperties.dest,this.pdfDestination.element)},e.prototype.clone=function(){var t=new e(this.bounds,this.destination);return t.color=this.color,t.brush=this.brush,t.destination=this.destination,t.font=this.font,t}}($c),function(){function t(t){this.layoutElement=t}return Object.defineProperty(t.prototype,"elements",{get:function(){return this.layoutElement},enumerable:!0,configurable:!0}),t.prototype.getElement=function(){return this.layoutElement},t.prototype.layout=function(t){return this.layoutInternal(t)},t.prototype.Layouter=function(t){return this.layoutInternal(t)},t.prototype.getNextPage=function(t){return t.section.add()},t.prototype.getPaginateBounds=function(t){if(null==t)throw new Error("ArgumentNullException : param");return t.format.usePaginateBounds?t.format.paginateBounds:new vh(t.bounds.x,0,t.bounds.width,t.bounds.height)},t}()),tp=function(){function t(t){void 0===t||(this.break=t.break,this.layout=t.layout,this.paginateBounds=t.paginateBounds,this.boundsSet=t.usePaginateBounds)}return Object.defineProperty(t.prototype,"layout",{get:function(){return this.layoutType},set:function(t){this.layoutType=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"break",{get:function(){return this.breakType},set:function(t){this.breakType=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paginateBounds",{get:function(){return void 0===this.layoutPaginateBounds&&null==this.layoutPaginateBounds&&(this.layoutPaginateBounds=new vh(0,0,0,0)),this.layoutPaginateBounds},set:function(t){this.layoutPaginateBounds=t,this.boundsSet=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"usePaginateBounds",{get:function(){return this.boundsSet},enumerable:!0,configurable:!0}),t}(),ep=function(){function t(){}return Object.defineProperty(t.prototype,"page",{get:function(){return this.pdfPage},set:function(t){this.pdfPage=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bounds",{get:function(){return new vh(this.layoutBounds.x,this.layoutBounds.y,this.layoutBounds.width,this.layoutBounds.height)},set:function(t){this.layoutBounds=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"format",{get:function(){return this.layoutFormat},set:function(t){this.layoutFormat=t},enumerable:!0,configurable:!0}),t}(),ip=function(){function t(t,e){this.pdfPage=t,this.layoutBounds=e}return Object.defineProperty(t.prototype,"page",{get:function(){return this.pdfPage},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bounds",{get:function(){return this.layoutBounds},enumerable:!0,configurable:!0}),t}(),rp=function(){function t(){var t=new yu(new yh(0,0,0));t.dashStyle=lh.Solid;var e=new yu(new yh(0,0,0));e.dashStyle=lh.Solid;var i=new yu(new yh(0,0,0));i.dashStyle=lh.Solid;var r=new yu(new yh(0,0,0));r.dashStyle=lh.Solid,this.leftPen=t,this.rightPen=e,this.topPen=i,this.bottomPen=r}return Object.defineProperty(t.prototype,"left",{get:function(){return this.leftPen},set:function(t){this.leftPen=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.rightPen},set:function(t){this.rightPen=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.topPen},set:function(t){this.topPen=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.bottomPen},set:function(t){this.bottomPen=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"all",{set:function(t){this.leftPen=this.rightPen=this.topPen=this.bottomPen=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAll",{get:function(){return this.leftPen===this.rightPen&&this.leftPen===this.topPen&&this.leftPen===this.bottomPen},enumerable:!0,configurable:!0}),Object.defineProperty(t,"default",{get:function(){return new t},enumerable:!0,configurable:!0}),t}(),np=function(){function t(t,e,i,r){this.hasLeftPad=!1,this.hasRightPad=!1,this.hasTopPad=!1,this.hasBottomPad=!1,void 0===t?(this.leftPad=this.rightPad=5.76,this.bottomPad=this.topPad=.5):(this.leftPad=t,this.rightPad=e,this.topPad=i,this.bottomPad=r,this.hasLeftPad=!0,this.hasRightPad=!0,this.hasTopPad=!0,this.hasBottomPad=!0)}return Object.defineProperty(t.prototype,"left",{get:function(){return this.leftPad},set:function(t){this.leftPad=t,this.hasLeftPad=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.rightPad},set:function(t){this.rightPad=t,this.hasRightPad=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.topPad},set:function(t){this.topPad=t,this.hasTopPad=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.bottomPad},set:function(t){this.bottomPad=t,this.hasBottomPad=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"all",{set:function(t){this.leftPad=this.rightPad=this.topPad=this.bottomPad=t,this.hasLeftPad=!0,this.hasRightPad=!0,this.hasTopPad=!0,this.hasBottomPad=!0},enumerable:!0,configurable:!0}),t}(),op=function(){function t(){}return Object.defineProperty(t.prototype,"raiseBeginPageLayout",{get:function(){return void 0!==this.beginPageLayout},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"raiseEndPageLayout",{get:function(){return void 0!==this.endPageLayout},enumerable:!0,configurable:!0}),t.prototype.onBeginPageLayout=function(t){this.beginPageLayout&&this.beginPageLayout(this,t)},t.prototype.onEndPageLayout=function(t){this.endPageLayout&&this.endPageLayout(this,t)},t.prototype.drawHelper=function(t,e,i,r){if(e instanceof mh&&void 0===e.width&&void 0===i)return this.drawHelper(t,e.x,e.y);if("number"==typeof e&&"number"==typeof i&&void 0===r)return this.drawHelper(t,e,i,null);if(e instanceof vh&&void 0!==e.width&&void 0===i)return this.drawHelper(t,e,null);if(e instanceof mh&&void 0===e.width&&i instanceof tp)return this.drawHelper(t,e.x,e.y,i);if("number"==typeof e&&"number"==typeof i&&(r instanceof tp||null==r)){var n=t.graphics.clientSize.width-e,o=new vh(e,i,n,0);return this.drawHelper(t,o,r)}if(e instanceof vh&&void 0!==e.width&&"boolean"==typeof i)return this.bEmbedFonts=i,this.drawHelper(t,e,null);var s=new ep,a=e,l=i;if(s.page=t,s.bounds=a,null!=s){var h=s.bounds.x,u=s.bounds.y;0===s.bounds.x&&(h=rp.default.right.width/2),0===s.bounds.y&&(u=rp.default.top.width/2);var c=new vh(h,u,s.bounds.width,s.bounds.height);s.bounds=c}s.format=null!=l?l:new tp;return this.layout(s)},t}(),sp=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),ap=function(t){function e(e){return t.call(this,e)||this}return sp(e,t),Object.defineProperty(e.prototype,"element",{get:function(){return t.prototype.getElement.call(this)},enumerable:!0,configurable:!0}),e.prototype.layoutInternal=function(t){this.format=null!==this.element.stringFormat&&void 0!==this.element.stringFormat?this.element.stringFormat:null;var e=t.page,i=t.bounds,r=this.element.value,n=null,o=new lp;for(o.page=e,o.remainder=r;;){o=this.layoutOnPage(r,e,i,t),n=this.getLayoutResult(o);break}return n},e.prototype.getLayoutResult=function(t){return new hp(t.page,t.bounds,t.remainder,t.lastLineBounds)},e.prototype.layoutOnPage=function(t,e,i,r){var n=new lp;n.remainder=t,n.page=e,i=this.checkCorrectBounds(e,i);var o=(new Rh).layout(t,this.element.font,this.format,i,e.getClientSize().height,!1,new Mh(0,0)),s=null==o.remainder,a=(r.format.break===hc.FitElement||o.empty,e.graphics),l=this.element.getBrush();this.element instanceof fp&&(l.color=new yh(0,0,255)),a.drawStringLayoutResult(o,this.element.font,this.element.pen,l,i,this.format);o.lines[o.lineCount-1];return n.lastLineBounds=a.getLineBounds(o.lineCount-1,o,this.element.font,i,this.format),n.bounds=this.getTextPageBounds(e,i,o),n.remainder=o.remainder,n.end=s,n},e.prototype.checkCorrectBounds=function(t,e){var i=t.graphics.clientSize;return e.height=e.height>0?e.height:i.height-e.y,e},e.prototype.getTextPageBounds=function(t,e,i){var r=i.actualSize,n=e.x,o=e.y,s=e.width>0?e.width:r.width,a=r.height;n=t.graphics.checkCorrectLayoutRectangle(r,e.x,e.y,this.format).x;var l=t.graphics.getTextVerticalAlignShift(r.height,e.height,this.format);return new vh(n,o+=l,s,a)},e}(Xc),lp=function(){return function(){}}(),hp=function(t){function e(e,i,r,n){var o=t.call(this,e,i)||this;return o.remainderText=r,o.lastLineTextBounds=n,o}return sp(e,t),Object.defineProperty(e.prototype,"remainder",{get:function(){return this.remainderText},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastLineBounds",{get:function(){return this.lastLineTextBounds},enumerable:!0,configurable:!0}),e}(ip),up=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),cp=function(t){function e(e,i,r,n,o){var s=t.call(this)||this;return s.content="",s.elementValue="",s.hasPointOverload=!1,s.isPdfTextElement=!1,void 0===e||("string"==typeof e&&void 0===i?(s.content=e,s.elementValue=e):"string"==typeof e&&i instanceof Yh&&void 0===r?(s.content=e,s.elementValue=e,s.pdfFont=i):"string"==typeof e&&i instanceof Yh&&r instanceof yu&&void 0===n?(s.content=e,s.elementValue=e,s.pdfFont=i,s.pdfPen=r):"string"==typeof e&&i instanceof Yh&&r instanceof wh&&void 0===n?(s.content=e,s.elementValue=e,s.pdfFont=i,s.pdfBrush=r):(s.content=e,s.elementValue=e,s.pdfFont=i,s.pdfPen=r,s.pdfBrush=n,s.format=o)),s}return up(e,t),Object.defineProperty(e.prototype,"text",{get:function(){return this.content},set:function(t){this.elementValue=t,this.content=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.elementValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pen",{get:function(){return this.pdfPen},set:function(t){this.pdfPen=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"brush",{get:function(){return this.pdfBrush},set:function(t){this.pdfBrush=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"font",{get:function(){return this.pdfFont},set:function(t){this.pdfFont=t,this.pdfFont instanceof Gc&&null!=this.content?this.elementValue=Gc.convert(this.content):this.elementValue=this.content},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stringFormat",{get:function(){return this.format},set:function(t){this.format=t},enumerable:!0,configurable:!0}),e.prototype.getBrush=function(){return null==this.pdfBrush||void 0===this.pdfBrush?new Sh(new yh(0,0,0)):this.pdfBrush},e.prototype.layout=function(t){return new ap(this).layout(t)},e.prototype.drawText=function(t,e,i,r){if(e instanceof mh&&void 0===e.width&&void 0===i)return this.hasPointOverload=!0,this.drawText(t,e.x,e.y);if("number"==typeof e&&"number"==typeof i&&void 0===r)return this.hasPointOverload=!0,this.drawText(t,e,i,null);if(e instanceof vh&&void 0!==e.width&&void 0===i)return this.drawText(t,e,null);if(e instanceof mh&&void 0===e.width&&i instanceof tp)return this.hasPointOverload=!0,this.drawText(t,e.x,e.y,i);if("number"==typeof e&&"number"==typeof i&&(r instanceof tp||null==r)){this.hasPointOverload=!0;var n=t.graphics.clientSize.width-e,o=new vh(e,i,n,0);return this.drawText(t,o,r)}if(e instanceof vh&&void 0!==e.width&&"boolean"==typeof i)return this.drawText(t,e,null);var s=new Rh;if(this.hasPointOverload){var a=s.layout(this.value,this.font,this.stringFormat,new Mh(t.graphics.clientSize.width-e.x,0),!0,t.graphics.clientSize),l=void 0,h=e,u=i;if((y=new ep).page=t,y.bounds=h,y.format=null!=u?u:new tp,a.lines.length>1){if(this.text=a.layoutLines[0].text,y.bounds.y<=y.page.graphics.clientSize.height){var c=new mh(y.bounds.x,y.bounds.y);l=this.layout(y);for(var p=new vh(0,l.bounds.y+a.lineHeight,t.graphics.clientSize.width,a.lineHeight),d=1;d<a.lines.length;d++)if(y.page=l.page,y.bounds=new vh(new mh(p.x,p.y),new Mh(p.width,p.height)),this.text=a.layoutLines[d].text,p.y+a.lineHeight>l.page.graphics.clientSize.height&&(y.page=y.page.graphics.getNextPage(),p=c.y>l.page.graphics.clientSize.height-l.bounds.height?new vh(0,l.bounds.height,l.page.graphics.clientSize.width,a.lineHeight):new vh(0,0,l.page.graphics.clientSize.width,a.lineHeight),y.bounds=p),l=this.layout(y),d!==a.lines.length-1)p=new vh(0,l.bounds.y+a.lineHeight,l.page.graphics.clientSize.width,a.lineHeight);else{var g=this.font.measureString(this.text,this.format).width;l=this.calculateResultBounds(l,g,l.page.graphics.clientSize.width,0)}}return l}var f=this.font.measureString(this.text,this.format);return y.bounds.y<=y.page.graphics.clientSize.height&&(l=this.layout(y),l=this.calculateResultBounds(l,f.width,l.page.graphics.clientSize.width,0)),l}l=s.layout(this.value,this.font,this.stringFormat,new Mh(e.width,0),!1,t.graphics.clientSize);var y,m=void 0;h=e,u=i;if((y=new ep).page=t,y.bounds=h,y.format=null!=u?u:new tp,l.lines.length>1){if(this.text=l.layoutLines[0].text,y.bounds.y<=y.page.graphics.clientSize.height){c=new mh(y.bounds.x,y.bounds.y);m=this.layout(y);for(p=new vh(h.x,m.bounds.y+l.lineHeight,h.width,l.lineHeight),d=1;d<l.lines.length;d++)if(y.page=m.page,y.bounds=new vh(p.x,p.y,p.width,p.height),this.text=l.layoutLines[d].text,p.y+l.lineHeight>m.page.graphics.clientSize.height&&(y.page=y.page.graphics.getNextPage(),p=c.y>m.page.graphics.clientSize.height-m.bounds.height?new vh(h.x,l.lineHeight,h.width,l.lineHeight):new vh(h.x,0,h.width,l.lineHeight),y.bounds=p),m=this.layout(y),d!==l.lines.length-1)p=new vh(h.x,m.bounds.y+l.lineHeight,h.width,l.lineHeight);else{g=this.font.measureString(this.text,this.format).width;m=this.calculateResultBounds(m,g,h.width,h.x)}}return m}f=this.font.measureString(this.text,this.format);return y.bounds.y<=y.page.graphics.clientSize.height&&(m=this.layout(y),m=this.calculateResultBounds(m,f.width,h.width,h.x)),m},e.prototype.calculateResultBounds=function(t,e,i,r){return null!=this.stringFormat&&void 0!==this.stringFormat&&this.stringFormat.alignment===nh.Center?(t.bounds.x=r+(i-e)/2,t.bounds.width=e):null!=this.stringFormat&&void 0!==this.stringFormat&&this.stringFormat.alignment===nh.Right?(t.bounds.x=r+(i-e),t.bounds.width=e):null!=this.stringFormat&&void 0!==this.stringFormat&&this.stringFormat.alignment===nh.Justify?(t.bounds.x=r,t.bounds.width=i):(t.bounds.width=r,t.bounds.width=e),t},e}(op),pp=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),dp=function(t){function e(e,i){var r=t.call(this,e)||this;return void 0!==i&&(r.uri=i),r}return pp(e,t),Object.defineProperty(e.prototype,"uriAction",{get:function(){return void 0===this.pdfUriAction&&(this.pdfUriAction=new ih),this.pdfUriAction},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"uri",{get:function(){return this.uriAction.uri},set:function(t){this.uriAction.uri!==t&&(this.uriAction.uri=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"action",{get:function(){return this.getSetAction()},set:function(t){this.getSetAction(t),this.uriAction.next=t},enumerable:!0,configurable:!0}),e.prototype.initialize=function(){t.prototype.initialize.call(this),this.dictionary.items.setValue(this.dictionaryProperties.subtype,new pl(this.dictionaryProperties.link));this.uriAction.element;this.dictionary.items.setValue(this.dictionaryProperties.a,this.uriAction.element)},e}(Jc),gp=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),fp=function(t){function e(){var e=t.call(this)||this;e.uniformResourceLocator="",e.uriAnnotation=null,e.recalculateBounds=!1,e.defaultBorder=new Sl;for(var i=0;i<3;i++)e.defaultBorder.add(new Nl(0));return e}return gp(e,t),Object.defineProperty(e.prototype,"url",{get:function(){return this.uniformResourceLocator},set:function(t){if(0===t.length)throw new Error("ArgumentException : Url - string can not be empty");this.uniformResourceLocator=t},enumerable:!0,configurable:!0}),e.prototype.draw=function(t,e){if(t instanceof Tc){var i=new Rh,r=this.font.style;if(e instanceof mh){this.recalculateBounds=!0,this.font.style=fh.Underline;if(1===(a=i.layout(this.value,this.font,this.stringFormat,new Mh(t.graphics.clientSize.width-e.x,0),!0,t.graphics.clientSize)).lines.length){var n=this.font.measureString(this.value),o=new vh(e,n);o=this.calculateBounds(o,n.width,t.graphics.clientSize.width,e.x),this.uriAnnotation=new dp(o,this.url),this.uriAnnotation.dictionary.items.setValue("Border",this.defaultBorder),t.annotations.add(this.uriAnnotation);var s=this.drawText(t,e);return this.font.style=r,s}s=this.drawMultipleLineWithPoint(a,t,e);return this.font.style=r,s}var a=i.layout(this.value,this.font,this.stringFormat,new Mh(e.width,0),!1,new Mh(0,0));if(this.font.style=fh.Underline,1===a.lines.length){n=this.font.measureString(this.value),o=new vh(new mh(e.x,e.y),n);o=this.calculateBounds(o,n.width,e.width,e.x),this.uriAnnotation=new dp(o,this.url),this.uriAnnotation.dictionary.items.setValue("Border",this.defaultBorder),t.annotations.add(this.uriAnnotation);var l=this.drawText(t,e);return this.font.style=r,l}l=this.drawMultipleLineWithBounds(a,t,e);return this.font.style=r,l}var h=new Tc;return h=t.page,this.draw(h,e)},e.prototype.drawMultipleLineWithPoint=function(t,e,i){for(var r,n=0;n<t.layoutLines.length;n++){var o=this.font.measureString(t.lines[n].text),s=new vh(i,o);if(0!==n&&(s.x=0),this.text=t.lines[n].text,s.y+o.height>e.graphics.clientSize.height){if(0===n)break;e=e.graphics.getNextPage(),s=new vh(0,0,e.graphics.clientSize.width,o.height),i.y=0}s=this.calculateBounds(s,o.width,e.graphics.clientSize.width,s.x),this.uriAnnotation=new dp(s,this.url),this.uriAnnotation.dictionary.items.setValue("Border",this.defaultBorder),e.annotations.add(this.uriAnnotation),r=0!==n?this.drawText(e,new mh(0,s.y)):this.drawText(e,s.x,s.y),i.y+=o.height}return r},e.prototype.drawMultipleLineWithBounds=function(t,e,i){for(var r,n=0;n<t.layoutLines.length;n++){var o=this.font.measureString(t.lines[n].text),s=new vh(new mh(i.x,i.y),o);if(s=this.calculateBounds(s,o.width,i.width,i.x),this.text=t.lines[n].text,i.y+o.height>e.graphics.clientSize.height){if(0===n)break;e=e.graphics.getNextPage(),i=new vh(i.x,0,i.width,o.height),s.y=0}this.uriAnnotation=new dp(s,this.url),this.uriAnnotation.dictionary.items.setValue("Border",this.defaultBorder),e.annotations.add(this.uriAnnotation),r=this.drawText(e,i),i.y+=o.height}return r},e.prototype.calculateBounds=function(t,e,i,r){return null!=this.stringFormat&&void 0!==this.stringFormat&&this.stringFormat.alignment===nh.Center?(t.x=r+(i-e)/2,t.width=e):null!=this.stringFormat&&void 0!==this.stringFormat&&this.stringFormat.alignment===nh.Right?(t.x=r+(i-e),t.width=e):null!=this.stringFormat&&void 0!==this.stringFormat&&this.stringFormat.alignment===nh.Justify?(t.x=r,t.width=i):(t.width=r,t.width=e),t},e}(cp),yp=function(){function t(){}return t.convert=function(t,e){var i="";switch(e){case lu.None:i="";break;case lu.Numeric:i=t.toString();break;case lu.LowerLatin:i=this.arabicToLetter(t).toLowerCase();break;case lu.LowerRoman:i=this.arabicToRoman(t).toLowerCase();break;case lu.UpperLatin:i=this.arabicToLetter(t);break;case lu.UpperRoman:i=this.arabicToRoman(t)}return i},t.arabicToRoman=function(t){var e="",i=this.generateNumber(t,1e3,"M");e+=i.returnValue,t=i.intArabic;var r=this.generateNumber(t,900,"CM");e+=r.returnValue,t=r.intArabic;var n=this.generateNumber(t,500,"D");e+=n.returnValue,t=n.intArabic;var o=this.generateNumber(t,400,"CD");e+=o.returnValue,t=o.intArabic;var s=this.generateNumber(t,100,"C");e+=s.returnValue,t=s.intArabic;var a=this.generateNumber(t,90,"XC");e+=a.returnValue,t=a.intArabic;var l=this.generateNumber(t,50,"L");e+=l.returnValue,t=l.intArabic;var h=this.generateNumber(t,40,"XL");e+=h.returnValue,t=h.intArabic;var u=this.generateNumber(t,10,"X");e+=u.returnValue,t=u.intArabic;var c=this.generateNumber(t,9,"IX");e+=c.returnValue,t=c.intArabic;var p=this.generateNumber(t,5,"V");e+=p.returnValue,t=p.intArabic;var d=this.generateNumber(t,4,"IV");e+=d.returnValue,t=d.intArabic;var g=this.generateNumber(t,1,"I");return e+=g.returnValue,t=g.intArabic,e.toString()},t.arabicToLetter=function(t){for(var e=this.convertToLetter(t),i="";e.length>0;){var r=e.pop();i=this.appendChar(i,r)}return i.toString()},t.generateNumber=function(t,e,i){for(var r="";t>=e;)t-=e,r+=i;return{returnValue:r.toString(),intArabic:t}},t.convertToLetter=function(t){if(t<=0)throw Error("ArgumentOutOfRangeException-arabic, Value can not be less 0");for(var e=[];t>this.letterLimit;){var i=t%this.letterLimit;0===i?(t=t/this.letterLimit-1,i=this.letterLimit):t/=this.letterLimit,e.push(i)}return e.push(t),e},t.appendChar=function(e,i){return e+=String.fromCharCode(t.acsiiStartIndex+i)},t.letterLimit=26,t.acsiiStartIndex=64,t}(),mp=function(){function t(t,e){this.pdfTemplate=null,this.content="",void 0===t||(this.template=t,this.value=e)}return Object.defineProperty(t.prototype,"template",{get:function(){return this.pdfTemplate},set:function(t){this.pdfTemplate=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.content},set:function(t){this.content=t},enumerable:!0,configurable:!0}),t}(),Mp=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),vp=function(t){function e(){var e=t.call(this)||this;return e.list=new bu,e}return Mp(e,t),e.prototype.performDraw=function(e,i,r,n){t.prototype.performDrawHelper.call(this,e,i,r,n);var o=this.getValue(e),s=new gc(this.getSize());this.list.setValue(e,new mp(s,o));var a=this.getSize();s.graphics.drawString(o,this.getFont(),this.pen,this.getBrush(),0,0,a.width,a.height,this.stringFormat);var l=new mh(i.x+this.location.x,i.y+this.location.y);e.drawPdfTemplate(s,l,new Mh(s.width*r,s.height*n))},e}(ju),bp=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),wp=(function(t){function e(e,i){var r=t.call(this)||this;return r.internalNumberStyle=lu.Numeric,void 0===i?r.font=e:i instanceof wh?(r.font=e,r.brush=i):(r.font=e,r.bounds=i),r}bp(e,t),Object.defineProperty(e.prototype,"numberStyle",{get:function(){return this.internalNumberStyle},set:function(t){this.internalNumberStyle=t},enumerable:!0,configurable:!0}),e.prototype.getValue=function(t){var e=this.getPageFromGraphics(t);return this.internalGetValue(e)},e.prototype.internalGetValue=function(t){var e=t.document.pages.indexOf(t)+1;return yp.convert(e,this.numberStyle)}}(vp),function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}()),Np=(function(t){function e(e,i,r){for(var n=[],o=3;o<arguments.length;o++)n[o-3]=arguments[o];var s=t.call(this)||this;return s.internalAutomaticFields=null,s.internalText="",s.font=e,s.brush=i,s.text=r,s.automaticFields=n,s}wp(e,t),Object.defineProperty(e.prototype,"text",{get:function(){return this.internalText},set:function(t){this.internalText=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"automaticFields",{get:function(){return this.internalAutomaticFields},set:function(t){this.internalAutomaticFields=t},enumerable:!0,configurable:!0}),e.prototype.getValue=function(t){var e=this.text.toString();if(void 0!==this.automaticFields&&null!=this.automaticFields&&this.automaticFields.length>0)for(var i=0;i<this.automaticFields.length;i++){var r=this.automaticFields[i];e=e.replace("{"+i+"}",r.getValue(t))}return e}}(vp),function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}()),Sp=function(t){function e(){var e=t.call(this)||this;return e.list=new bu,e.painterGraphics=[],e}return Np(e,t),e.prototype.performDraw=function(e,i,r,n){t.prototype.performDrawHelper.call(this,e,i,r,n);var o=this.getPageFromGraphics(e).document,s=this.getValue(e);if(this.list.containsKey(o)){var a=this.list.getValue(o),l=new mh(i.x+this.location.x,i.y+this.location.y);e.drawPdfTemplate(a.template,l,new Mh(a.template.width*r,a.template.height*n)),this.painterGraphics.push(e)}else{var h=this.getSize(),u=new gc(h);this.list.setValue(o,new mp(u,s)),u.graphics.drawString(s,this.getFont(),this.pen,this.getBrush(),0,0,h.width,h.height,this.stringFormat);l=new mh(i.x+this.location.x,i.y+this.location.y);e.drawPdfTemplate(u,l,new Mh(u.width*r,u.height*n)),this.painterGraphics.push(e)}},e}(ju),Dp=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();!function(t){function e(e,i){var r=t.call(this)||this;return r.internalNumberStyle=lu.Numeric,void 0===i?r.font=e:i instanceof wh?(r.font=e,r.brush=i):(r.font=e,r.bounds=i),r}Dp(e,t),Object.defineProperty(e.prototype,"numberStyle",{get:function(){return this.internalNumberStyle},set:function(t){this.internalNumberStyle=t},enumerable:!0,configurable:!0}),e.prototype.getValue=function(t){var e=this.getPageFromGraphics(t).section.parent.document.pages.count;return yp.convert(e,this.numberStyle)}}(Sp);!function(t){t[t.Location=0]="Location",t[t.FitToPage=1]="FitToPage",t[t.FitR=2]="FitR"}(cc||(cc={}));!function(){function t(t,e){this.dictionaryProperties=new gl,this.destinationMode=cc.Location,this.zoomFactor=0,this.destinationLocation=new mh(0,0),this.bounds=new vh,this.array=new Sl;au.RotateAngle0;this.destinationLocation=new mh(0,this.destinationLocation.y),this.pdfPage=t,e instanceof mh?this.destinationLocation=e:this.bounds=e}Object.defineProperty(t.prototype,"zoom",{get:function(){return this.zoomFactor},set:function(t){this.zoomFactor=t,this.initializePrimitive()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this.pdfPage},set:function(t){this.pdfPage=t,this.initializePrimitive()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mode",{get:function(){return this.destinationMode},set:function(t){this.destinationMode=t,this.initializePrimitive()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"location",{get:function(){return this.destinationLocation},set:function(t){this.destinationLocation=t,this.initializePrimitive()},enumerable:!0,configurable:!0}),t.prototype.pointToNativePdf=function(t,e){return t.section.pointToNativePdf(t,e)},t.prototype.initializePrimitive=function(){switch(this.array.clear(),this.array.add(new Xl(this.pdfPage)),this.destinationMode){case cc.Location:var t=this.pdfPage,e=new mh;e=this.pointToNativePdf(t,this.destinationLocation),this.array.add(new pl(this.dictionaryProperties.xyz)),this.array.add(new Nl(e.x)),this.array.add(new Nl(e.y)),this.array.add(new Nl(this.zoomFactor));break;case cc.FitToPage:this.array.add(new pl(this.dictionaryProperties.fit))}},Object.defineProperty(t.prototype,"element",{get:function(){return this.initializePrimitive(),this.array},enumerable:!0,configurable:!0})}();var jp,Ip=function(){function t(t){this.mDictionary=null,this.mDictionaryProperties=new gl,this.mDictionary=t}return Object.defineProperty(t.prototype,"domain",{get:function(){return this.mDictionary.items.getValue(this.mDictionaryProperties.domain)},set:function(t){this.mDictionary.items.setValue(this.mDictionaryProperties.domain,t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"range",{get:function(){return this.mDictionary.items.getValue(this.mDictionaryProperties.range)},set:function(t){this.mDictionary.items.setValue(this.mDictionaryProperties.range,t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dictionary",{get:function(){return this.mDictionary},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.mDictionary},enumerable:!0,configurable:!0}),t}(),Op=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),xp=function(t){function e(e,i,r,n){var o=t.call(this,new Hl)||this;return void 0===e?o.dictionary.items.setValue(o.mDictionaryProperties.functionType,new Nl(0)):(o.dictionary.items.setValue(o.mDictionaryProperties.functionType,new Nl(0)),o.checkParams(e,i,r,n),o.setDomainAndRange(e,i),o.setSizeAndValues(r,n)),o}return Op(e,t),e.prototype.checkParams=function(t,e,i,r){e.length,t.length,r.length},e.prototype.setDomainAndRange=function(t,e){this.domain=new Sl(t),this.range=new Sl(e)},e.prototype.setSizeAndValues=function(t,e){var i=this.dictionary;i.isResource=!0,this.dictionary.items.setValue(this.mDictionaryProperties.size,new Sl(t)),this.dictionary.items.setValue(this.mDictionaryProperties.bitsPerSample,new Nl(8)),i.writeBytes(e)},e}(Ip);!function(t){t[t.None=0]="None",t[t.Start=1]="Start",t[t.End=2]="End",t[t.Both=3]="Both"}(jp||(jp={}));var Cp;!function(t){t[t.BackwardDiagonal=0]="BackwardDiagonal",t[t.ForwardDiagonal=1]="ForwardDiagonal",t[t.Horizontal=2]="Horizontal",t[t.Vertical=3]="Vertical"}(Cp||(Cp={}));var zp;!function(t){t[t.Function=1]="Function",t[t.Axial=2]="Axial",t[t.Radial=3]="Radial"}(zp||(zp={}));var Tp;!function(t){t[t.ActiveBorder=1]="ActiveBorder",t[t.ActiveCaption=2]="ActiveCaption",t[t.ActiveCaptionText=3]="ActiveCaptionText",t[t.AppWorkspace=4]="AppWorkspace",t[t.Control=5]="Control",t[t.ControlDark=6]="ControlDark",t[t.ControlDarkDark=7]="ControlDarkDark",t[t.ControlLight=8]="ControlLight",t[t.ControlLightLight=9]="ControlLightLight",t[t.ControlText=10]="ControlText",t[t.Desktop=11]="Desktop",t[t.GrayText=12]="GrayText",t[t.Highlight=13]="Highlight",t[t.HighlightText=14]="HighlightText",t[t.HotTrack=15]="HotTrack",t[t.InactiveBorder=16]="InactiveBorder",t[t.InactiveCaption=17]="InactiveCaption",t[t.InactiveCaptionText=18]="InactiveCaptionText",t[t.Info=19]="Info",t[t.InfoText=20]="InfoText",t[t.Menu=21]="Menu",t[t.MenuText=22]="MenuText",t[t.ScrollBar=23]="ScrollBar",t[t.Window=24]="Window",t[t.WindowFrame=25]="WindowFrame",t[t.WindowText=26]="WindowText",t[t.Transparent=27]="Transparent",t[t.AliceBlue=28]="AliceBlue",t[t.AntiqueWhite=29]="AntiqueWhite",t[t.Aqua=30]="Aqua",t[t.Aquamarine=31]="Aquamarine",t[t.Azure=32]="Azure",t[t.Beige=33]="Beige",t[t.Bisque=34]="Bisque",t[t.Black=35]="Black",t[t.BlanchedAlmond=36]="BlanchedAlmond",t[t.Blue=37]="Blue",t[t.BlueViolet=38]="BlueViolet",t[t.Brown=39]="Brown",t[t.BurlyWood=40]="BurlyWood",t[t.CadetBlue=41]="CadetBlue",t[t.Chartreuse=42]="Chartreuse",t[t.Chocolate=43]="Chocolate",t[t.Coral=44]="Coral",t[t.CornflowerBlue=45]="CornflowerBlue",t[t.Cornsilk=46]="Cornsilk",t[t.Crimson=47]="Crimson",t[t.Cyan=48]="Cyan",t[t.DarkBlue=49]="DarkBlue",t[t.DarkCyan=50]="DarkCyan",t[t.DarkGoldenrod=51]="DarkGoldenrod",t[t.DarkGray=52]="DarkGray",t[t.DarkGreen=53]="DarkGreen",t[t.DarkKhaki=54]="DarkKhaki",t[t.DarkMagenta=55]="DarkMagenta",t[t.DarkOliveGreen=56]="DarkOliveGreen",t[t.DarkOrange=57]="DarkOrange",t[t.DarkOrchid=58]="DarkOrchid",t[t.DarkRed=59]="DarkRed",t[t.DarkSalmon=60]="DarkSalmon",t[t.DarkSeaGreen=61]="DarkSeaGreen",t[t.DarkSlateBlue=62]="DarkSlateBlue",t[t.DarkSlateGray=63]="DarkSlateGray",t[t.DarkTurquoise=64]="DarkTurquoise",t[t.DarkViolet=65]="DarkViolet",t[t.DeepPink=66]="DeepPink",t[t.DeepSkyBlue=67]="DeepSkyBlue",t[t.DimGray=68]="DimGray",t[t.DodgerBlue=69]="DodgerBlue",t[t.Firebrick=70]="Firebrick",t[t.FloralWhite=71]="FloralWhite",t[t.ForestGreen=72]="ForestGreen",t[t.Fuchsia=73]="Fuchsia",t[t.Gainsboro=74]="Gainsboro",t[t.GhostWhite=75]="GhostWhite",t[t.Gold=76]="Gold",t[t.Goldenrod=77]="Goldenrod",t[t.Gray=78]="Gray",t[t.Green=79]="Green",t[t.GreenYellow=80]="GreenYellow",t[t.Honeydew=81]="Honeydew",t[t.HotPink=82]="HotPink",t[t.IndianRed=83]="IndianRed",t[t.Indigo=84]="Indigo",t[t.Ivory=85]="Ivory",t[t.Khaki=86]="Khaki",t[t.Lavender=87]="Lavender",t[t.LavenderBlush=88]="LavenderBlush",t[t.LawnGreen=89]="LawnGreen",t[t.LemonChiffon=90]="LemonChiffon",t[t.LightBlue=91]="LightBlue",t[t.LightCoral=92]="LightCoral",t[t.LightCyan=93]="LightCyan",t[t.LightGoldenrodYellow=94]="LightGoldenrodYellow",t[t.LightGray=95]="LightGray",t[t.LightGreen=96]="LightGreen",t[t.LightPink=97]="LightPink",t[t.LightSalmon=98]="LightSalmon",t[t.LightSeaGreen=99]="LightSeaGreen",t[t.LightSkyBlue=100]="LightSkyBlue",t[t.LightSlateGray=101]="LightSlateGray",t[t.LightSteelBlue=102]="LightSteelBlue",t[t.LightYellow=103]="LightYellow",t[t.Lime=104]="Lime",t[t.LimeGreen=105]="LimeGreen",t[t.Linen=106]="Linen",t[t.Magenta=107]="Magenta",t[t.Maroon=108]="Maroon",t[t.MediumAquamarine=109]="MediumAquamarine",t[t.MediumBlue=110]="MediumBlue",t[t.MediumOrchid=111]="MediumOrchid",t[t.MediumPurple=112]="MediumPurple",t[t.MediumSeaGreen=113]="MediumSeaGreen",t[t.MediumSlateBlue=114]="MediumSlateBlue",t[t.MediumSpringGreen=115]="MediumSpringGreen",t[t.MediumTurquoise=116]="MediumTurquoise",t[t.MediumVioletRed=117]="MediumVioletRed",t[t.MidnightBlue=118]="MidnightBlue",t[t.MintCream=119]="MintCream",t[t.MistyRose=120]="MistyRose",t[t.Moccasin=121]="Moccasin",t[t.NavajoWhite=122]="NavajoWhite",t[t.Navy=123]="Navy",t[t.OldLace=124]="OldLace",t[t.Olive=125]="Olive",t[t.OliveDrab=126]="OliveDrab",t[t.Orange=127]="Orange",t[t.OrangeRed=128]="OrangeRed",t[t.Orchid=129]="Orchid",t[t.PaleGoldenrod=130]="PaleGoldenrod",t[t.PaleGreen=131]="PaleGreen",t[t.PaleTurquoise=132]="PaleTurquoise",t[t.PaleVioletRed=133]="PaleVioletRed",t[t.PapayaWhip=134]="PapayaWhip",t[t.PeachPuff=135]="PeachPuff",t[t.Peru=136]="Peru",t[t.Pink=137]="Pink",t[t.Plum=138]="Plum",t[t.PowderBlue=139]="PowderBlue",t[t.Purple=140]="Purple",t[t.Red=141]="Red",t[t.RosyBrown=142]="RosyBrown",t[t.RoyalBlue=143]="RoyalBlue",t[t.SaddleBrown=144]="SaddleBrown",t[t.Salmon=145]="Salmon",t[t.SandyBrown=146]="SandyBrown",t[t.SeaGreen=147]="SeaGreen",t[t.SeaShell=148]="SeaShell",t[t.Sienna=149]="Sienna",t[t.Silver=150]="Silver",t[t.SkyBlue=151]="SkyBlue",t[t.SlateBlue=152]="SlateBlue",t[t.SlateGray=153]="SlateGray",t[t.Snow=154]="Snow",t[t.SpringGreen=155]="SpringGreen",t[t.SteelBlue=156]="SteelBlue",t[t.Tan=157]="Tan",t[t.Teal=158]="Teal",t[t.Thistle=159]="Thistle",t[t.Tomato=160]="Tomato",t[t.Turquoise=161]="Turquoise",t[t.Violet=162]="Violet",t[t.Wheat=163]="Wheat",t[t.White=164]="White",t[t.WhiteSmoke=165]="WhiteSmoke",t[t.Yellow=166]="Yellow",t[t.YellowGreen=167]="YellowGreen",t[t.ButtonFace=168]="ButtonFace",t[t.ButtonHighlight=169]="ButtonHighlight",t[t.ButtonShadow=170]="ButtonShadow",t[t.GradientActiveCaption=171]="GradientActiveCaption",t[t.GradientInactiveCaption=172]="GradientInactiveCaption",t[t.MenuBar=173]="MenuBar",t[t.MenuHighlight=174]="MenuHighlight"}(Tp||(Tp={}));!function(){function t(){}Object.defineProperty(t,"AliceBlue",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.AliceBlue)&&(t=this.sBrushes.getValue(Tp.AliceBlue)),null==t&&(t=this.getBrush(Tp.AliceBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"AntiqueWhite",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.AntiqueWhite)&&(t=this.sBrushes.getValue(Tp.AntiqueWhite)),null==t&&(t=this.getBrush(Tp.AntiqueWhite)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Aqua",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Aqua)&&(t=this.sBrushes.getValue(Tp.Aqua)),null==t&&(t=this.getBrush(Tp.Aqua)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Aquamarine",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Aquamarine)&&(t=this.sBrushes.getValue(Tp.Aquamarine)),null==t&&(t=this.getBrush(Tp.Aquamarine)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Azure",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Azure)&&(t=this.sBrushes.getValue(Tp.Azure)),null==t&&(t=this.getBrush(Tp.Azure)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Beige",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Beige)&&(t=this.sBrushes.getValue(Tp.Beige)),null==t&&(t=this.getBrush(Tp.Beige)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Bisque",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Bisque)&&(t=this.sBrushes.getValue(Tp.Bisque)),null==t&&(t=this.getBrush(Tp.Bisque)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Black",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Black)&&(t=this.sBrushes.getValue(Tp.Black)),null==t&&(t=this.getBrush(Tp.Black)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"BlanchedAlmond",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.BlanchedAlmond)&&(t=this.sBrushes.getValue(Tp.BlanchedAlmond)),null==t&&(t=this.getBrush(Tp.BlanchedAlmond)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Blue",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Blue)&&(t=this.sBrushes.getValue(Tp.Blue)),null==t&&(t=this.getBrush(Tp.Blue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"BlueViolet",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.BlueViolet)&&(t=this.sBrushes.getValue(Tp.BlueViolet)),null==t&&(t=this.getBrush(Tp.BlueViolet)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Brown",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Brown)&&(t=this.sBrushes.getValue(Tp.Brown)),null==t&&(t=this.getBrush(Tp.Brown)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"BurlyWood",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.BurlyWood)&&(t=this.sBrushes.getValue(Tp.BurlyWood)),null==t&&(t=this.getBrush(Tp.BurlyWood)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"CadetBlue",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.CadetBlue)&&(t=this.sBrushes.getValue(Tp.CadetBlue)),null==t&&(t=this.getBrush(Tp.CadetBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Chartreuse",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Chartreuse)&&(t=this.sBrushes.getValue(Tp.Chartreuse)),null==t&&(t=this.getBrush(Tp.Chartreuse)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Chocolate",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Chocolate)&&(t=this.sBrushes.getValue(Tp.Chocolate)),null==t&&(t=this.getBrush(Tp.Chocolate)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Coral",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Coral)&&(t=this.sBrushes.getValue(Tp.Coral)),null==t&&(t=this.getBrush(Tp.Coral)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"CornflowerBlue",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.CornflowerBlue)&&(t=this.sBrushes.getValue(Tp.CornflowerBlue)),null==t&&(t=this.getBrush(Tp.CornflowerBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Cornsilk",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Cornsilk)&&(t=this.sBrushes.getValue(Tp.Cornsilk)),null==t&&(t=this.getBrush(Tp.Cornsilk)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Crimson",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Crimson)&&(t=this.sBrushes.getValue(Tp.Crimson)),null==t&&(t=this.getBrush(Tp.Crimson)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Cyan",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Cyan)&&(t=this.sBrushes.getValue(Tp.Cyan)),null==t&&(t=this.getBrush(Tp.Cyan)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkBlue",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.DarkBlue)&&(t=this.sBrushes.getValue(Tp.DarkBlue)),null==t&&(t=this.getBrush(Tp.DarkBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkCyan",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.DarkCyan)&&(t=this.sBrushes.getValue(Tp.DarkCyan)),null==t&&(t=this.getBrush(Tp.DarkCyan)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkGoldenrod",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.DarkGoldenrod)&&(t=this.sBrushes.getValue(Tp.DarkGoldenrod)),null==t&&(t=this.getBrush(Tp.DarkGoldenrod)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkGray",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.DarkGray)&&(t=this.sBrushes.getValue(Tp.DarkGray)),null==t&&(t=this.getBrush(Tp.DarkGray)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkGreen",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.DarkGreen)&&(t=this.sBrushes.getValue(Tp.DarkGreen)),null==t&&(t=this.getBrush(Tp.DarkGreen)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkKhaki",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.DarkKhaki)&&(t=this.sBrushes.getValue(Tp.DarkKhaki)),null==t&&(t=this.getBrush(Tp.DarkKhaki)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkMagenta",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.DarkMagenta)&&(t=this.sBrushes.getValue(Tp.DarkMagenta)),null==t&&(t=this.getBrush(Tp.DarkMagenta)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkOliveGreen",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.DarkOliveGreen)&&(t=this.sBrushes.getValue(Tp.DarkOliveGreen)),null==t&&(t=this.getBrush(Tp.DarkOliveGreen)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkOrange",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.DarkOrange)&&(t=this.sBrushes.getValue(Tp.DarkOrange)),null==t&&(t=this.getBrush(Tp.DarkOrange)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkOrchid",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.DarkOrchid)&&(t=this.sBrushes.getValue(Tp.DarkOrchid)),null==t&&(t=this.getBrush(Tp.DarkOrchid)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkRed",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.DarkRed)&&(t=this.sBrushes.getValue(Tp.DarkRed)),null==t&&(t=this.getBrush(Tp.DarkRed)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkSalmon",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.DarkSalmon)&&(t=this.sBrushes.getValue(Tp.DarkSalmon)),null==t&&(t=this.getBrush(Tp.DarkSalmon)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkSeaGreen",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.DarkSeaGreen)&&(t=this.sBrushes.getValue(Tp.DarkSeaGreen)),null==t&&(t=this.getBrush(Tp.DarkSeaGreen)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkSlateBlue",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.DarkSlateBlue)&&(t=this.sBrushes.getValue(Tp.DarkSlateBlue)),null==t&&(t=this.getBrush(Tp.DarkSlateBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkSlateGray",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.DarkSlateGray)&&(t=this.sBrushes.getValue(Tp.DarkSlateGray)),null==t&&(t=this.getBrush(Tp.DarkSlateGray)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkTurquoise",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.DarkTurquoise)&&(t=this.sBrushes.getValue(Tp.DarkTurquoise)),null==t&&(t=this.getBrush(Tp.DarkTurquoise)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DarkViolet",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.DarkViolet)&&(t=this.sBrushes.getValue(Tp.DarkViolet)),null==t&&(t=this.getBrush(Tp.DarkViolet)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DeepPink",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.DeepPink)&&(t=this.sBrushes.getValue(Tp.DeepPink)),null==t&&(t=this.getBrush(Tp.DeepPink)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DeepSkyBlue",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.DeepSkyBlue)&&(t=this.sBrushes.getValue(Tp.DeepSkyBlue)),null==t&&(t=this.getBrush(Tp.DeepSkyBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DimGray",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.DimGray)&&(t=this.sBrushes.getValue(Tp.DimGray)),null==t&&(t=this.getBrush(Tp.DimGray)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"DodgerBlue",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.DodgerBlue)&&(t=this.sBrushes.getValue(Tp.DodgerBlue)),null==t&&(t=this.getBrush(Tp.DodgerBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Firebrick",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Firebrick)&&(t=this.sBrushes.getValue(Tp.Firebrick)),null==t&&(t=this.getBrush(Tp.Firebrick)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"FloralWhite",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.FloralWhite)&&(t=this.sBrushes.getValue(Tp.FloralWhite)),null==t&&(t=this.getBrush(Tp.FloralWhite)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"ForestGreen",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.ForestGreen)&&(t=this.sBrushes.getValue(Tp.ForestGreen)),null==t&&(t=this.getBrush(Tp.ForestGreen)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Fuchsia",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Fuchsia)&&(t=this.sBrushes.getValue(Tp.Fuchsia)),null==t&&(t=this.getBrush(Tp.Fuchsia)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Gainsboro",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Gainsboro)&&(t=this.sBrushes.getValue(Tp.Gainsboro)),null==t&&(t=this.getBrush(Tp.Gainsboro)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"GhostWhite",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.GhostWhite)&&(t=this.sBrushes.getValue(Tp.GhostWhite)),null==t&&(t=this.getBrush(Tp.GhostWhite)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Gold",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Gold)&&(t=this.sBrushes.getValue(Tp.Gold)),null==t&&(t=this.getBrush(Tp.Gold)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Goldenrod",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Goldenrod)&&(t=this.sBrushes.getValue(Tp.Goldenrod)),null==t&&(t=this.getBrush(Tp.Goldenrod)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Gray",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Gray)&&(t=this.sBrushes.getValue(Tp.Gray)),null==t&&(t=this.getBrush(Tp.Gray)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Green",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Green)&&(t=this.sBrushes.getValue(Tp.Green)),null==t&&(t=this.getBrush(Tp.Green)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"GreenYellow",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.GreenYellow)&&(t=this.sBrushes.getValue(Tp.GreenYellow)),null==t&&(t=this.getBrush(Tp.GreenYellow)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Honeydew",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Honeydew)&&(t=this.sBrushes.getValue(Tp.Honeydew)),null==t&&(t=this.getBrush(Tp.Honeydew)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"HotPink",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.HotPink)&&(t=this.sBrushes.getValue(Tp.HotPink)),null==t&&(t=this.getBrush(Tp.HotPink)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"IndianRed",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.IndianRed)&&(t=this.sBrushes.getValue(Tp.IndianRed)),null==t&&(t=this.getBrush(Tp.IndianRed)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Indigo",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Indigo)&&(t=this.sBrushes.getValue(Tp.Indigo)),null==t&&(t=this.getBrush(Tp.Indigo)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Ivory",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Ivory)&&(t=this.sBrushes.getValue(Tp.Ivory)),null==t&&(t=this.getBrush(Tp.Ivory)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Khaki",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Khaki)&&(t=this.sBrushes.getValue(Tp.Khaki)),null==t&&(t=this.getBrush(Tp.Khaki)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Lavender",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Lavender)&&(t=this.sBrushes.getValue(Tp.Lavender)),null==t&&(t=this.getBrush(Tp.Lavender)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LavenderBlush",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.LavenderBlush)&&(t=this.sBrushes.getValue(Tp.LavenderBlush)),null==t&&(t=this.getBrush(Tp.LavenderBlush)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LawnGreen",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.LawnGreen)&&(t=this.sBrushes.getValue(Tp.LawnGreen)),null==t&&(t=this.getBrush(Tp.LawnGreen)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LemonChiffon",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.LemonChiffon)&&(t=this.sBrushes.getValue(Tp.LemonChiffon)),null==t&&(t=this.getBrush(Tp.LemonChiffon)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LightBlue",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.LightBlue)&&(t=this.sBrushes.getValue(Tp.LightBlue)),null==t&&(t=this.getBrush(Tp.LightBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LightCoral",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.LightCoral)&&(t=this.sBrushes.getValue(Tp.LightCoral)),null==t&&(t=this.getBrush(Tp.LightCoral)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LightCyan",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.LightCyan)&&(t=this.sBrushes.getValue(Tp.LightCyan)),null==t&&(t=this.getBrush(Tp.LightCyan)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LightGoldenrodYellow",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.LightGoldenrodYellow)&&(t=this.sBrushes.getValue(Tp.LightGoldenrodYellow)),null==t&&(t=this.getBrush(Tp.LightGoldenrodYellow)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LightGray",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.LightGray)&&(t=this.sBrushes.getValue(Tp.LightGray)),null==t&&(t=this.getBrush(Tp.LightGray)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LightGreen",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.LightGreen)&&(t=this.sBrushes.getValue(Tp.LightGreen)),null==t&&(t=this.getBrush(Tp.LightGreen)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LightPink",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.LightPink)&&(t=this.sBrushes.getValue(Tp.LightPink)),null==t&&(t=this.getBrush(Tp.LightPink)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LightSalmon",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.LightSalmon)&&(t=this.sBrushes.getValue(Tp.LightSalmon)),null==t&&(t=this.getBrush(Tp.LightSalmon)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LightSeaGreen",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.LightSeaGreen)&&(t=this.sBrushes.getValue(Tp.LightSeaGreen)),null==t&&(t=this.getBrush(Tp.LightSeaGreen)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LightSkyBlue",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.LightSkyBlue)&&(t=this.sBrushes.getValue(Tp.LightSkyBlue)),null==t&&(t=this.getBrush(Tp.LightSkyBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LightSlateGray",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.LightSlateGray)&&(t=this.sBrushes.getValue(Tp.LightSlateGray)),null==t&&(t=this.getBrush(Tp.LightSlateGray)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LightSteelBlue",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.LightSteelBlue)&&(t=this.sBrushes.getValue(Tp.LightSteelBlue)),null==t&&(t=this.getBrush(Tp.LightSteelBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LightYellow",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.LightYellow)&&(t=this.sBrushes.getValue(Tp.LightYellow)),null==t&&(t=this.getBrush(Tp.LightYellow)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Lime",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Lime)&&(t=this.sBrushes.getValue(Tp.Lime)),null==t&&(t=this.getBrush(Tp.Lime)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LimeGreen",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.LimeGreen)&&(t=this.sBrushes.getValue(Tp.LimeGreen)),null==t&&(t=this.getBrush(Tp.LimeGreen)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Linen",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Linen)&&(t=this.sBrushes.getValue(Tp.Linen)),null==t&&(t=this.getBrush(Tp.Linen)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Magenta",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Magenta)&&(t=this.sBrushes.getValue(Tp.Magenta)),null==t&&(t=this.getBrush(Tp.Magenta)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Maroon",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Maroon)&&(t=this.sBrushes.getValue(Tp.Maroon)),null==t&&(t=this.getBrush(Tp.Maroon)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"MediumAquamarine",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.MediumAquamarine)&&(t=this.sBrushes.getValue(Tp.MediumAquamarine)),null==t&&(t=this.getBrush(Tp.MediumAquamarine)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"MediumBlue",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.MediumBlue)&&(t=this.sBrushes.getValue(Tp.MediumBlue)),null==t&&(t=this.getBrush(Tp.MediumBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"MediumOrchid",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.MediumOrchid)&&(t=this.sBrushes.getValue(Tp.MediumOrchid)),null==t&&(t=this.getBrush(Tp.MediumOrchid)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"MediumPurple",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.MediumPurple)&&(t=this.sBrushes.getValue(Tp.MediumPurple)),null==t&&(t=this.getBrush(Tp.MediumPurple)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"MediumSeaGreen",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.MediumSeaGreen)&&(t=this.sBrushes.getValue(Tp.MediumSeaGreen)),null==t&&(t=this.getBrush(Tp.MediumSeaGreen)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"MediumSlateBlue",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.MediumSlateBlue)&&(t=this.sBrushes.getValue(Tp.MediumSlateBlue)),null==t&&(t=this.getBrush(Tp.MediumSlateBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"MediumSpringGreen",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.MediumSpringGreen)&&(t=this.sBrushes.getValue(Tp.MediumSpringGreen)),null==t&&(t=this.getBrush(Tp.MediumSpringGreen)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"MediumTurquoise",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.MediumTurquoise)&&(t=this.sBrushes.getValue(Tp.MediumTurquoise)),null==t&&(t=this.getBrush(Tp.MediumTurquoise)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"MediumVioletRed",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.MediumVioletRed)&&(t=this.sBrushes.getValue(Tp.MediumVioletRed)),null==t&&(t=this.getBrush(Tp.MediumVioletRed)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"MidnightBlue",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.MidnightBlue)&&(t=this.sBrushes.getValue(Tp.MidnightBlue)),null==t&&(t=this.getBrush(Tp.MidnightBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"MintCream",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.MintCream)&&(t=this.sBrushes.getValue(Tp.MintCream)),null==t&&(t=this.getBrush(Tp.MintCream)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"MistyRose",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.MistyRose)&&(t=this.sBrushes.getValue(Tp.MistyRose)),null==t&&(t=this.getBrush(Tp.MistyRose)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Moccasin",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Moccasin)&&(t=this.sBrushes.getValue(Tp.Moccasin)),null==t&&(t=this.getBrush(Tp.Moccasin)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"NavajoWhite",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.NavajoWhite)&&(t=this.sBrushes.getValue(Tp.NavajoWhite)),null==t&&(t=this.getBrush(Tp.NavajoWhite)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Navy",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Navy)&&(t=this.sBrushes.getValue(Tp.Navy)),null==t&&(t=this.getBrush(Tp.Navy)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"OldLace",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.OldLace)&&(t=this.sBrushes.getValue(Tp.OldLace)),null==t&&(t=this.getBrush(Tp.OldLace)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Olive",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Olive)&&(t=this.sBrushes.getValue(Tp.Olive)),null==t&&(t=this.getBrush(Tp.Olive)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"OliveDrab",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.OliveDrab)&&(t=this.sBrushes.getValue(Tp.OliveDrab)),null==t&&(t=this.getBrush(Tp.OliveDrab)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Orange",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Orange)&&(t=this.sBrushes.getValue(Tp.Orange)),null==t&&(t=this.getBrush(Tp.Orange)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"OrangeRed",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.OrangeRed)&&(t=this.sBrushes.getValue(Tp.OrangeRed)),null==t&&(t=this.getBrush(Tp.OrangeRed)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Orchid",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Orchid)&&(t=this.sBrushes.getValue(Tp.Orchid)),null==t&&(t=this.getBrush(Tp.Orchid)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"PaleGoldenrod",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.PaleGoldenrod)&&(t=this.sBrushes.getValue(Tp.PaleGoldenrod)),null==t&&(t=this.getBrush(Tp.PaleGoldenrod)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"PaleGreen",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.PaleGreen)&&(t=this.sBrushes.getValue(Tp.PaleGreen)),null==t&&(t=this.getBrush(Tp.PaleGreen)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"PaleTurquoise",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.PaleTurquoise)&&(t=this.sBrushes.getValue(Tp.PaleTurquoise)),null==t&&(t=this.getBrush(Tp.PaleTurquoise)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"PaleVioletRed",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.PaleVioletRed)&&(t=this.sBrushes.getValue(Tp.PaleVioletRed)),null==t&&(t=this.getBrush(Tp.PaleVioletRed)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"PapayaWhip",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.PapayaWhip)&&(t=this.sBrushes.getValue(Tp.PapayaWhip)),null==t&&(t=this.getBrush(Tp.PapayaWhip)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"PeachPuff",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.PeachPuff)&&(t=this.sBrushes.getValue(Tp.PeachPuff)),null==t&&(t=this.getBrush(Tp.PeachPuff)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Peru",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Peru)&&(t=this.sBrushes.getValue(Tp.Peru)),null==t&&(t=this.getBrush(Tp.Peru)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Pink",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Pink)&&(t=this.sBrushes.getValue(Tp.Pink)),null==t&&(t=this.getBrush(Tp.Pink)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Plum",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Plum)&&(t=this.sBrushes.getValue(Tp.Plum)),null==t&&(t=this.getBrush(Tp.Plum)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"PowderBlue",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.PowderBlue)&&(t=this.sBrushes.getValue(Tp.PowderBlue)),null==t&&(t=this.getBrush(Tp.PowderBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Purple",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Purple)&&(t=this.sBrushes.getValue(Tp.Purple)),null==t&&(t=this.getBrush(Tp.Purple)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Red",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Red)&&(t=this.sBrushes.getValue(Tp.Red)),null==t&&(t=this.getBrush(Tp.Red)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"RosyBrown",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.RosyBrown)&&(t=this.sBrushes.getValue(Tp.RosyBrown)),null==t&&(t=this.getBrush(Tp.RosyBrown)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"RoyalBlue",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.RoyalBlue)&&(t=this.sBrushes.getValue(Tp.RoyalBlue)),null==t&&(t=this.getBrush(Tp.RoyalBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"SaddleBrown",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.SaddleBrown)&&(t=this.sBrushes.getValue(Tp.SaddleBrown)),null==t&&(t=this.getBrush(Tp.SaddleBrown)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Salmon",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Salmon)&&(t=this.sBrushes.getValue(Tp.Salmon)),null==t&&(t=this.getBrush(Tp.Salmon)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"SandyBrown",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.SandyBrown)&&(t=this.sBrushes.getValue(Tp.SandyBrown)),null==t&&(t=this.getBrush(Tp.SandyBrown)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"SeaGreen",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.SeaGreen)&&(t=this.sBrushes.getValue(Tp.SeaGreen)),null==t&&(t=this.getBrush(Tp.SeaGreen)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"SeaShell",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.SeaShell)&&(t=this.sBrushes.getValue(Tp.SeaShell)),null==t&&(t=this.getBrush(Tp.SeaShell)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Sienna",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Sienna)&&(t=this.sBrushes.getValue(Tp.Sienna)),null==t&&(t=this.getBrush(Tp.Sienna)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Silver",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Silver)&&(t=this.sBrushes.getValue(Tp.Silver)),null==t&&(t=this.getBrush(Tp.Silver)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"SkyBlue",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.SkyBlue)&&(t=this.sBrushes.getValue(Tp.SkyBlue)),null==t&&(t=this.getBrush(Tp.SkyBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"SlateBlue",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.SlateBlue)&&(t=this.sBrushes.getValue(Tp.SlateBlue)),null==t&&(t=this.getBrush(Tp.SlateBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"SlateGray",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.SlateGray)&&(t=this.sBrushes.getValue(Tp.SlateGray)),null==t&&(t=this.getBrush(Tp.SlateGray)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Snow",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Snow)&&(t=this.sBrushes.getValue(Tp.Snow)),null==t&&(t=this.getBrush(Tp.Snow)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"SpringGreen",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.SpringGreen)&&(t=this.sBrushes.getValue(Tp.SpringGreen)),null==t&&(t=this.getBrush(Tp.SpringGreen)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"SteelBlue",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.SteelBlue)&&(t=this.sBrushes.getValue(Tp.SteelBlue)),null==t&&(t=this.getBrush(Tp.SteelBlue)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Tan",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Tan)&&(t=this.sBrushes.getValue(Tp.Tan)),null==t&&(t=this.getBrush(Tp.Tan)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Teal",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Teal)&&(t=this.sBrushes.getValue(Tp.Teal)),null==t&&(t=this.getBrush(Tp.Teal)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Thistle",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Thistle)&&(t=this.sBrushes.getValue(Tp.Thistle)),null==t&&(t=this.getBrush(Tp.Thistle)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Tomato",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Tomato)&&(t=this.sBrushes.getValue(Tp.Tomato)),null==t&&(t=this.getBrush(Tp.Tomato)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Transparent",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Transparent)&&(t=this.sBrushes.getValue(Tp.Transparent)),null==t&&(t=this.getBrush(Tp.Transparent)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Turquoise",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Turquoise)&&(t=this.sBrushes.getValue(Tp.Turquoise)),null==t&&(t=this.getBrush(Tp.Turquoise)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Violet",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Violet)&&(t=this.sBrushes.getValue(Tp.Violet)),null==t&&(t=this.getBrush(Tp.Violet)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Wheat",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Wheat)&&(t=this.sBrushes.getValue(Tp.Wheat)),null==t&&(t=this.getBrush(Tp.Wheat)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"White",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.White)&&(t=this.sBrushes.getValue(Tp.White)),null==t&&(t=this.getBrush(Tp.White)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WhiteSmoke",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.WhiteSmoke)&&(t=this.sBrushes.getValue(Tp.WhiteSmoke)),null==t&&(t=this.getBrush(Tp.WhiteSmoke)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Yellow",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.Yellow)&&(t=this.sBrushes.getValue(Tp.Yellow)),null==t&&(t=this.getBrush(Tp.Yellow)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"YellowGreen",{get:function(){var t=null;return this.sBrushes.containsKey(Tp.YellowGreen)&&(t=this.sBrushes.getValue(Tp.YellowGreen)),null==t&&(t=this.getBrush(Tp.YellowGreen)),t},enumerable:!0,configurable:!0}),t.getBrush=function(t){var e=this.getColorValue(t),i=new Sh(e);return this.sBrushes.setValue(t,i),i},t.getColorValue=function(t){var e=new yh;switch(t){case Tp.Transparent:e=new yh(0,255,255,255);break;case Tp.AliceBlue:e=new yh(255,240,248,255);break;case Tp.AntiqueWhite:e=new yh(255,250,235,215);break;case Tp.Aqua:e=new yh(255,0,255,255);break;case Tp.Aquamarine:e=new yh(255,127,255,212);break;case Tp.Azure:e=new yh(255,240,255,255);break;case Tp.Beige:e=new yh(255,245,245,220);break;case Tp.Bisque:e=new yh(255,255,228,196);break;case Tp.Black:e=new yh(255,0,0,0);break;case Tp.BlanchedAlmond:e=new yh(255,255,235,205);break;case Tp.Blue:e=new yh(255,0,0,255);break;case Tp.BlueViolet:e=new yh(255,138,43,226);break;case Tp.Brown:e=new yh(255,165,42,42);break;case Tp.BurlyWood:e=new yh(255,222,184,135);break;case Tp.CadetBlue:e=new yh(255,95,158,160);break;case Tp.Chartreuse:e=new yh(255,127,255,0);break;case Tp.Chocolate:e=new yh(255,210,105,30);break;case Tp.Coral:e=new yh(255,255,127,80);break;case Tp.CornflowerBlue:e=new yh(255,100,149,237);break;case Tp.Cornsilk:e=new yh(255,255,248,220);break;case Tp.Crimson:e=new yh(255,220,20,60);break;case Tp.Cyan:e=new yh(255,0,255,255);break;case Tp.DarkBlue:e=new yh(255,0,0,139);break;case Tp.DarkCyan:e=new yh(255,0,139,139);break;case Tp.DarkGoldenrod:e=new yh(255,184,134,11);break;case Tp.DarkGray:e=new yh(255,169,169,169);break;case Tp.DarkGreen:e=new yh(255,0,100,0);break;case Tp.DarkKhaki:e=new yh(255,189,183,107);break;case Tp.DarkMagenta:e=new yh(255,139,0,139);break;case Tp.DarkOliveGreen:e=new yh(255,85,107,47);break;case Tp.DarkOrange:e=new yh(255,255,140,0);break;case Tp.DarkOrchid:e=new yh(255,153,50,204);break;case Tp.DarkRed:e=new yh(255,139,0,0);break;case Tp.DarkSalmon:e=new yh(255,233,150,122);break;case Tp.DarkSeaGreen:e=new yh(255,143,188,139);break;case Tp.DarkSlateBlue:e=new yh(255,72,61,139);break;case Tp.DarkSlateGray:e=new yh(255,47,79,79);break;case Tp.DarkTurquoise:e=new yh(255,0,206,209);break;case Tp.DarkViolet:e=new yh(255,148,0,211);break;case Tp.DeepPink:e=new yh(255,255,20,147);break;case Tp.DeepSkyBlue:e=new yh(255,0,191,255);break;case Tp.DimGray:e=new yh(255,105,105,105);break;case Tp.DodgerBlue:e=new yh(255,30,144,255);break;case Tp.Firebrick:e=new yh(255,178,34,34);break;case Tp.FloralWhite:e=new yh(255,255,250,240);break;case Tp.ForestGreen:e=new yh(255,34,139,34);break;case Tp.Fuchsia:e=new yh(255,255,0,255);break;case Tp.Gainsboro:e=new yh(255,220,220,220);break;case Tp.GhostWhite:e=new yh(255,248,248,255);break;case Tp.Gold:e=new yh(255,255,215,0);break;case Tp.Goldenrod:e=new yh(255,218,165,32);break;case Tp.Gray:e=new yh(255,128,128,128);break;case Tp.Green:e=new yh(255,0,128,0);break;case Tp.GreenYellow:e=new yh(255,173,255,47);break;case Tp.Honeydew:e=new yh(255,240,255,240);break;case Tp.HotPink:e=new yh(255,255,105,180);break;case Tp.IndianRed:e=new yh(255,205,92,92);break;case Tp.Indigo:e=new yh(255,75,0,130);break;case Tp.Ivory:e=new yh(255,255,255,240);break;case Tp.Khaki:e=new yh(255,240,230,140);break;case Tp.Lavender:e=new yh(255,230,230,250);break;case Tp.LavenderBlush:e=new yh(255,255,240,245);break;case Tp.LawnGreen:e=new yh(255,124,252,0);break;case Tp.LemonChiffon:e=new yh(255,255,250,205);break;case Tp.LightBlue:e=new yh(255,173,216,230);break;case Tp.LightCoral:e=new yh(255,240,128,128);break;case Tp.LightCyan:e=new yh(255,224,255,255);break;case Tp.LightGoldenrodYellow:e=new yh(255,250,250,210);break;case Tp.LightGreen:e=new yh(255,144,238,144);break;case Tp.LightGray:e=new yh(255,211,211,211);break;case Tp.LightPink:e=new yh(255,255,182,193);break;case Tp.LightSalmon:e=new yh(255,255,160,122);break;case Tp.LightSeaGreen:e=new yh(255,32,178,170);break;case Tp.LightSkyBlue:e=new yh(255,135,206,250);break;case Tp.LightSlateGray:e=new yh(255,119,136,153);break;case Tp.LightSteelBlue:e=new yh(255,176,196,222);break;case Tp.LightYellow:e=new yh(255,255,255,224);break;case Tp.Lime:e=new yh(255,0,255,0);break;case Tp.LimeGreen:e=new yh(255,50,205,50);break;case Tp.Linen:e=new yh(255,250,240,230);break;case Tp.Magenta:e=new yh(255,255,0,255);break;case Tp.Maroon:e=new yh(255,128,0,0);break;case Tp.MediumAquamarine:e=new yh(255,102,205,170);break;case Tp.MediumBlue:e=new yh(255,0,0,205);break;case Tp.MediumOrchid:e=new yh(255,186,85,211);break;case Tp.MediumPurple:e=new yh(255,147,112,219);break;case Tp.MediumSeaGreen:e=new yh(255,60,179,113);break;case Tp.MediumSlateBlue:e=new yh(255,123,104,238);break;case Tp.MediumSpringGreen:e=new yh(255,0,250,154);break;case Tp.MediumTurquoise:e=new yh(255,72,209,204);break;case Tp.MediumVioletRed:e=new yh(255,199,21,133);break;case Tp.MidnightBlue:e=new yh(255,25,25,112);break;case Tp.MintCream:e=new yh(255,245,255,250);break;case Tp.MistyRose:e=new yh(255,255,228,225);break;case Tp.Moccasin:e=new yh(255,255,228,181);break;case Tp.NavajoWhite:e=new yh(255,255,222,173);break;case Tp.Navy:e=new yh(255,0,0,128);break;case Tp.OldLace:e=new yh(255,253,245,230);break;case Tp.Olive:e=new yh(255,128,128,0);break;case Tp.OliveDrab:e=new yh(255,107,142,35);break;case Tp.Orange:e=new yh(255,255,165,0);break;case Tp.OrangeRed:e=new yh(255,255,69,0);break;case Tp.Orchid:e=new yh(255,218,112,214);break;case Tp.PaleGoldenrod:e=new yh(255,238,232,170);break;case Tp.PaleGreen:e=new yh(255,152,251,152);break;case Tp.PaleTurquoise:e=new yh(255,175,238,238);break;case Tp.PaleVioletRed:e=new yh(255,219,112,147);break;case Tp.PapayaWhip:e=new yh(255,255,239,213);break;case Tp.PeachPuff:e=new yh(255,255,218,185);break;case Tp.Peru:e=new yh(255,205,133,63);break;case Tp.Pink:e=new yh(255,255,192,203);break;case Tp.Plum:e=new yh(255,221,160,221);break;case Tp.PowderBlue:e=new yh(255,176,224,230);break;case Tp.Purple:e=new yh(255,128,0,128);break;case Tp.Red:e=new yh(255,255,0,0);break;case Tp.RosyBrown:e=new yh(255,188,143,143);break;case Tp.RoyalBlue:e=new yh(255,65,105,225);break;case Tp.SaddleBrown:e=new yh(255,139,69,19);break;case Tp.Salmon:e=new yh(255,250,128,114);break;case Tp.SandyBrown:e=new yh(255,244,164,96);break;case Tp.SeaGreen:e=new yh(255,46,139,87);break;case Tp.SeaShell:e=new yh(255,255,245,238);break;case Tp.Sienna:e=new yh(255,160,82,45);break;case Tp.Silver:e=new yh(255,192,192,192);break;case Tp.SkyBlue:e=new yh(255,135,206,235);break;case Tp.SlateBlue:e=new yh(255,106,90,205);break;case Tp.SlateGray:e=new yh(255,112,128,144);break;case Tp.Snow:e=new yh(255,255,250,250);break;case Tp.SpringGreen:e=new yh(255,0,255,127);break;case Tp.SteelBlue:e=new yh(255,70,130,180);break;case Tp.Tan:e=new yh(255,210,180,140);break;case Tp.Teal:e=new yh(255,0,128,128);break;case Tp.Thistle:e=new yh(255,216,191,216);break;case Tp.Tomato:e=new yh(255,255,99,71);break;case Tp.Turquoise:e=new yh(255,64,224,208);break;case Tp.Violet:e=new yh(255,238,130,238);break;case Tp.Wheat:e=new yh(255,245,222,179);break;case Tp.White:e=new yh(255,255,255,255);break;case Tp.WhiteSmoke:e=new yh(255,245,245,245);break;case Tp.Yellow:e=new yh(255,255,255,0);break;case Tp.YellowGreen:e=new yh(255,154,205,50)}return e},t.sBrushes=new cl}();var Lp,Ap=function(){function t(t){this.precision=1e3}return Object.defineProperty(t.prototype,"factors",{get:function(){return this.mFactors},set:function(t){if(null==t)throw new Error("ArgumentNullException : Factors");this.mFactors=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"positions",{get:function(){return this.mPositions},set:function(t){for(var e=t,i=0;i<e.length;i++)(e[i]<0||e[i]>1)&&(e[i]=0);this.mPositions=e,this.mPositions=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return this.mCount},enumerable:!0,configurable:!0}),t.prototype.generateColorBlend=function(t,e){if(null==t)throw new Error("ArgumentNullException : colours");null==this.positions&&(this.positions=[0]);var i=new Ep(this.count),r=this.positions,n=null;if(1===r.length)(r=[3])[0]=0,r[1]=this.positions[0],r[2]=1,(n=new Array(3))[0]=t[0],n[1]=t[0],n[2]=t[1];else{var o=t[0],s=t[1];n=new Array(this.count);var a=0,l=this.count;for(a=0;a<l;++a)n[a]=this.interpolate(this.mFactors[a],o,s,e)}return i.positions=r,i.colors=n,i},t.prototype.clonePdfBlend=function(){return null!=this.mFactors&&(this.factors=this.mFactors),null!=this.positions&&(this.positions=this.positions),this},t.prototype.gcd=function(t,e){if("number"==typeof t&&"number"==typeof e&&void 0!==e){if(t<0||t>1)throw new Error("ArgumentOutOfRangeException : u");if(e<0||e>1)throw new Error("ArgumentOutOfRangeException : v");var i=Math.max(1,t*this.precision),r=Math.max(1,e*this.precision);return this.gcdInt(i,r)/this.precision}var n=t;if(null==n)throw new Error("ArgumentNullException : values");if(n.length<1)throw new Error("ArgumentException : Not enough values in the array. - values");var o=n[0];if(n.length>1)for(var s=n.length,a=1;a<s&&(o=this.gcd(n[a],o))!==1/this.precision;++a);return o},t.prototype.gcdInt=function(t,e){if(t<=0)throw new Error("ArgumentOutOfRangeException"+t+"The arguments cannot be less or equal to zero.");if(e<=0)throw new Error("ArgumentOutOfRangeException"+e+"The arguments cannot be less or equal to zero.");if(1===t||1===e)return 1;for(var i=0;this.isEven(t,e);)++i,t>>=1,e>>=1;for(;(1&t)<=0;)t>>=1;do{for(;(1&e)<=0;)e>>=1;if(t>e){var r=e;e=t,t=r}e-=t}while(0!==e);return t<<i},t.prototype.isEven=function(t,e){if("number"==typeof e&&void 0!==e){var i=!0;return i=i&&(1&t)<=0,i=i&&(1&e)<=0}return(1&t)<=0},t.prototype.interpolate=function(t,e,i,r){if(e instanceof yh){var n=new yh;switch(r){case uh.Rgb:var o=this.interpolate(t,e.red,i.red),s=this.interpolate(t,e.green,i.green),a=this.interpolate(t,e.blue,i.blue);n=new yh(o,s,a);break;case uh.GrayScale:var l=this.interpolate(t,e.gray,i.gray);n=new yh(l);break;case uh.Cmyk:var h=this.interpolate(t,e.c,i.c),u=this.interpolate(t,e.m,i.m),c=this.interpolate(t,e.y,i.y),p=this.interpolate(t,e.k,i.k);n=new yh(h,u,c,p)}return n}return 0===t?e:1===t?i:e+(i-e)/1*(t-0)},t}(),Pp=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Ep=function(t){function e(e){var i=t.call(this)||this;return"number"==typeof e&&(i=t.call(this,e)||this),i}return Pp(e,t),Object.defineProperty(e.prototype,"colors",{get:function(){return this.mcolors},set:function(t){if(null==t)throw new Error("ArgumentNullException : Colors");this.mcolors=t},enumerable:!0,configurable:!0}),e.prototype.getFunction=function(t){var e=this.getColorComponentsCount(t),i=this.getMaxComponentValue(t),r=this.setRange(e,i),n=null;if(null==this.mbrush&&void 0===this.mbrush){var o=[1],s=void 0,a=1;if(2===this.positions.length)s=2;else{var l=this.positions,h=this.getIntervals(l),u=this.gcd(h);a=u,s=1/u+1}o[0]=s;var c=this.getSamplesValues(t,s,i,a);return n=new xp([0,1],r,o,c)}return n},e.prototype.cloneColorBlend=function(){return null!=this.mcolors&&void 0!==this.mcolors&&(this.colors=this.mcolors),null!=this.positions&&void 0!==this.positions&&(this.positions=this.positions),this},e.prototype.setRange=function(t,e){for(var i=[2*t],r=0;r<t;++r)i[2*r]=0,i[2*r+1]=1;return i},e.prototype.getColorComponentsCount=function(t){var e=0;switch(t){case uh.Rgb:e=3;break;case uh.Cmyk:e=4;break;case uh.GrayScale:e=1;break;default:throw new Error("ArgumentException - Unsupported color space: "+t+" colorSpace")}return e},e.prototype.getSamplesValues=function(t,e,i,r){var n;switch(t){case uh.GrayScale:n=this.getGrayscaleSamples(e,i,r);break;case uh.Cmyk:n=this.getCmykSamples(e,i,r);break;case uh.Rgb:n=this.getRgbSamples(e,i,r);break;default:throw new Error("ArgumentException - Unsupported color space: "+t+" colorSpace")}return n},e.prototype.getGrayscaleSamples=function(t,e,i){for(var r=[2*t],n=0;n<t;++n)this.getNextColor(n,i,uh.GrayScale);return r},e.prototype.getRgbSamples=function(t,e,i){for(var r=[3*t],n=0;n<t;++n){var o=this.getNextColor(n,i,uh.Rgb),s=3*n;r[s]=o.r,r[s+1]=o.g,r[s+2]=o.b}return r},e.prototype.getCmykSamples=function(t,e,i){for(var r=[4*t],n=0;n<t;n++){var o=this.getNextColor(n,i,uh.Cmyk),s=4*n;r[s]=o.c*e,r[s+1]=o.m*e,r[s+2]=o.y*e,r[s+3]=o.k*e}return r},e.prototype.getNextColor=function(t,e,i){var r,n,o,s=e*t,a=this.getIndices(s,n,r);if((n=a.indexLow)===(r=a.indexHi))o=this.mcolors[n];else{var l=this.positions[n],h=this.positions[r],u=this.mcolors[n],c=this.mcolors[r],p=(s-l)/(h-l);o=this.interpolate(p,u,c,i)}return o},e.prototype.getIndices=function(t,e,i){var r=this.positions;e=0,i=0;for(var n=0;n<this.mcolors.length;++n){var o=r[n];if(o===t){i=n,e=n;break}if(o>t){i=n;break}e=n,i=n}return{indexLow:e,indexHi:i}},e.prototype.getMaxComponentValue=function(t){var e=0;switch(t){case uh.Cmyk:case uh.Rgb:e=255;break;case uh.GrayScale:e=65535;break;default:throw new Error("ArgumentException - Unsupported color space: "+t+"colorSpace")}return e},e.prototype.getIntervals=function(t){for(var e=t.length,i=[e-1],r=t[0],n=1;n<e;++n){var o=t[n];i[n-1]=o-r,r=o}return i},e}(Ap),kp=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Bp=(function(t){function e(e,i,r,n){var o=t.call(this,new fl)||this;if(o.mDictionaryProperties=new gl,e instanceof mh&&i instanceof mh&&r instanceof yh&&n instanceof yh)o.initialize(r,n),o.mPointStart=e,o.mPointEnd=i,o.setPoints(o.mPointStart,o.mPointEnd);else if(e instanceof bh)if(o.initialize(i,r),n===Cp.BackwardDiagonal||n===Cp.ForwardDiagonal||n===Cp.Horizontal||n===Cp.Vertical){switch(o.mBoundaries=e,n){case Cp.BackwardDiagonal:o.mPointStart=new mh(e.right,e.top),o.mPointEnd=new mh(e.left,e.bottom);break;case Cp.ForwardDiagonal:o.mPointStart=new mh(e.left,e.top),o.mPointEnd=new mh(e.right,e.bottom);break;case Cp.Horizontal:o.mPointStart=new mh(e.left,e.top),o.mPointEnd=new mh(e.right,e.top);break;case Cp.Vertical:o.mPointStart=new mh(e.left,e.top),o.mPointEnd=new mh(e.left,e.bottom);break;default:throw new Error("ArgumentException -- Unsupported linear gradient mode: "+n+" mode")}o.setPoints(o.mPointStart,o.mPointEnd)}else if("number"==typeof n&&void 0!==n){if(o.mBoundaries=e,0===(n%=360))o.mPointStart=new mh(e.left,e.top),o.mPointEnd=new mh(e.right,e.top);else if(90===n)o.mPointStart=new mh(e.left,e.top),o.mPointEnd=new mh(e.left,e.bottom);else if(180===n)o.mPointEnd=new mh(e.left,e.top),o.mPointStart=new mh(e.right,e.top);else if(270===n)o.mPointEnd=new mh(e.left,e.top),o.mPointStart=new mh(e.left,e.bottom);else{var s=n*(Math.PI/180),a=Math.tan(s),l=o.mBoundaries.left+(o.mBoundaries.right-o.mBoundaries.left)/2,h=o.mBoundaries.top+(o.mBoundaries.bottom-o.mBoundaries.top)/2,u=new mh(l,h);h=a*(l=o.mBoundaries.width/(2*Math.cos(s))),l+=u.x,h+=u.y;var c=new mh(l,h),p=o.subPoints(c,u),d=o.choosePoint(n),g=o.mulPoints(o.subPoints(d,u),p)/o.mulPoints(p,p);o.mPointEnd=o.addPoints(u,o.mulPoint(p,g)),o.mPointStart=o.addPoints(u,o.mulPoint(p,-1*g))}o.setPoints(o.mPointEnd,o.mPointStart)}return o}kp(e,t),e.prototype.initialize=function(t,e){this.mColours=[t,e],this.mColourBlend=new Ep(2),this.mColourBlend.positions=[0,1],this.mColourBlend.colors=this.mColours,this.initShading()},Object.defineProperty(e.prototype,"blend",{get:function(){return this.mBlend},set:function(t){if(null==t)throw new Error("ArgumentNullException : Blend");if(null==this.mColours)throw new Error("NotSupportedException : There is no starting and ending colours specified.");this.mBlend=t,this.mColourBlend=this.mBlend.generateColorBlend(this.mColours,this.colorSpace),this.resetFunction()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"interpolationColors",{get:function(){return this.mColourBlend},set:function(t){if(null==t)throw new Error("ArgumentNullException : InterpolationColors");this.mBlend=null,this.mColours=null,this.mColourBlend=t,this.resetFunction()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"linearColors",{get:function(){return this.mColours},set:function(t){if(null==t)throw new Error("ArgumentNullException : LinearColors");if(t.length<2)throw new Error("ArgumentException : The array is too small - LinearColors");null==this.mColours&&void 0===this.mColours?this.mColours=[t[0],t[1]]:(this.mColours[0]=t[0],this.mColours[1]=t[1]),null==this.mBlend&&void 0===this.mBlend?(this.mColourBlend=new Ep(2),this.mColourBlend.colors=this.mColours,this.mColourBlend.positions=[0,1]):this.mColourBlend=this.mBlend.generateColorBlend(this.mColours,this.colorSpace),this.resetFunction()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rectangle",{get:function(){return this.mBoundaries},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extend",{get:function(){var t=jp.None,e=this.shading.items.getValue(this.mDictionaryProperties.extend);if(null!=e){var i=e.items(0),r=e.items(1);i.value&&(t|=jp.Start),r.value&&(t|=jp.End)}return t},set:function(t){var e,i,r=this.shading.items.getValue(this.mDictionaryProperties.extend);null==r?(e=new Kh(!1),i=new Kh(!1),(r=new Sl).add(e),r.add(i),this.shading.items.setValue(this.mDictionaryProperties.extend,r)):(e=r.items(0),i=r.items(1))},enumerable:!0,configurable:!0}),e.prototype.addPoints=function(t,e){var i=t.x+e.x,r=t.y+e.y;return new mh(i,r)},e.prototype.subPoints=function(t,e){var i=t.x-e.x,r=t.y-e.y;return new mh(i,r)},e.prototype.mulPoints=function(t,e){return t.x*e.x+t.y*e.y},e.prototype.mulPoint=function(t,e){return t.x=t.x*e,t.y=t.y*e,t},e.prototype.choosePoint=function(t){var e=new mh(0,0);if(t<90&&t>0)e=new mh(this.mBoundaries.right,this.mBoundaries.bottom);else if(t<180&&t>90)e=new mh(this.mBoundaries.left,this.mBoundaries.bottom);else if(t<270&&t>180)e=new mh(this.mBoundaries.left,this.mBoundaries.top);else{if(!(t>270))throw new Error("PdfException - Internal error.");e=new mh(this.mBoundaries.right,this.mBoundaries.top)}return e},e.prototype.setPoints=function(t,e){var i=new Sl;i.add(new Nl(t.x)),i.add(new Nl(this.updateY(t.y))),i.add(new Nl(e.x)),i.add(new Nl(this.updateY(e.y))),this.shading.items.setValue(this.mDictionaryProperties.coords,i)},e.prototype.updateY=function(t){return 0!==t?-t:t},e.prototype.initShading=function(){this.colorSpace=uh.Rgb,this.function=this.mColourBlend.getFunction(this.colorSpace),this.shading.items.setValue(this.mDictionaryProperties.shadingType,new Nl(zp.Axial))},e.prototype.clone=function(){return this.resetPatternDictionary(new fl(this.patternDictionary)),this.shading=new fl,this.initShading(),this.setPoints(this.mPointStart,this.mPointEnd),null!==this&&this instanceof e&&null!=this.matrix&&void 0!==this.matrix&&(this.matrix=this.matrix.clone()),null!=this.mColours&&void 0!==this.mColours&&(this.mColours=this.mColours),null!=this.blend&&void 0!==this.blend?this.blend=this.blend.clonePdfBlend():null!=this.interpolationColors&&void 0!==this.interpolationColors&&(this.interpolationColors=this.interpolationColors.cloneColorBlend()),this.extend=this.extend,this.cloneBackgroundValue(this),this.cloneAntiAliasingValue(this),this},e.prototype.resetFunction=function(){this.function=this.mColourBlend.getFunction(this.colorSpace)}}(dc),function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}());!function(t){function e(e,i,r,n,o,s){var a=t.call(this,new fl)||this;if(a.mDictionaryProperties=new gl,a.initialize(o,s),i<0)throw new Error("ArgumentOutOfRangeException : radiusStart - The radius cannot be less then zero.");if(n<0)throw new Error("ArgumentOutOfRangeException : radiusEnd - The radius cannpt be less then zero.");return a.mPointEnd=r,a.mPointStart=e,a.mRadiusStart=i,a.mRadiusEnd=n,a.setPoints(a.mPointStart,a.mPointEnd,a.mRadiusStart,a.mRadiusEnd),a}Bp(e,t),e.prototype.initialize=function(t,e){this.mColour=[t,e],this.mColourBlends=new Ep(2),this.mColourBlends.positions=[0,1],this.mColourBlends.colors=this.mColour,this.initShading()},Object.defineProperty(e.prototype,"blend",{get:function(){return this.mBlend},set:function(t){if(null==t)throw new Error("ArgumentNullException : Blend");if(null==this.mColour&&void 0===this.mColour)throw new Error("NotSupportedException : There is no starting and ending colours specified.");this.mBlend=t,this.mColourBlends=this.mBlend.generateColorBlend(this.mColour,this.colorSpace),this.resetFunction()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"interpolationColors",{get:function(){return this.mColourBlends},set:function(t){if(null==t)throw new Error("ArgumentNullException : InterpolationColors");this.mBlend=null,this.mColour=null,this.mColourBlends=t,this.resetFunction()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"linearColors",{get:function(){return this.mColour},set:function(t){if(null==t)throw new Error("ArgumentNullException : radial LinearColors");if(t.length<2)throw new Error("ArgumentException : The array is too small LinearColors");null==this.mColour&&void 0===this.mColour?this.mColour=[t[0],t[1]]:(this.mColour[0]=t[0],this.mColour[1]=t[1]),null==this.mBlend&&void 0===this.mBlend?(this.mColourBlends=new Ep(2),this.mColourBlends.colors=this.mColour,this.mColourBlends.positions=[0,1]):this.mColourBlends=this.mBlend.generateColorBlend(this.mColour,this.colorSpace),this.resetFunction()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rectangle",{get:function(){return this.mBoundaries},set:function(t){this.mBoundaries=t,this.bBox=Sl.fromRectangle(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extend",{get:function(){var t=jp.None,e=this.shading.items.getValue(this.mDictionaryProperties.extend);if(null!==e&&void 0!==e){var i=e.items(0),r=e.items(1);i.value&&(t|=jp.Start),r.value&&(t|=jp.End)}return t},set:function(t){var e,i,r=this.shading.items.getValue(this.mDictionaryProperties.extend);null==r&&void 0===r?(e=new Kh(!1),i=new Kh(!1),(r=new Sl).add(e),r.add(i),this.shading.items.setValue(this.mDictionaryProperties.extend,r)):(e=r.items(0),i=r.items(1))},enumerable:!0,configurable:!0}),e.prototype.setPoints=function(t,e,i,r){var n=new Sl;n.add(new Nl(t.x)),n.add(new Nl(this.updateY(t.y))),n.add(new Nl(i)),n.add(new Nl(e.x)),n.add(new Nl(this.updateY(e.y))),i!==r?n.add(new Nl(r)):n.add(new Nl(0)),this.shading.items.setValue(this.mDictionaryProperties.coords,n)},e.prototype.updateY=function(t){return 0!==t?-t:t},e.prototype.initShading=function(){this.colorSpace=uh.Rgb,this.function=this.mColourBlends.getFunction(this.colorSpace),this.shading.items.setValue(this.mDictionaryProperties.shadingType,new Nl(zp.Radial))},e.prototype.clone=function(){return this.resetPatternDictionary(new fl(this.patternDictionary)),this.shading=new fl,this.initShading(),this.setPoints(this.mPointStart,this.mPointEnd,this.mRadiusStart,this.mRadiusEnd),this instanceof e&&null!==this.matrix&&void 0!==this.matrix&&(this.matrix=this.matrix.clone()),null!==this.mColour&&void 0!==this.mColour&&(this.mColour=this.mColour),null!==this.blend&&void 0!==this.blend?this.blend=this.blend.clonePdfBlend():null!==this.interpolationColors&&void 0!==this.interpolationColors&&(this.interpolationColors=this.interpolationColors.cloneColorBlend()),this.extend=this.extend,this.cloneBackgroundValue(this),this.cloneAntiAliasingValue(this),this},e.prototype.resetFunction=function(){this.function=this.mColourBlends.getFunction(this.colorSpace)}}(dc);!function(t){t[t.Overlap=0]="Overlap",t[t.Inside=1]="Inside"}(Lp||(Lp={}));var Fp,Rp=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Up=function(){function t(){}return Object.defineProperty(t.prototype,"backgroundBrush",{get:function(){return this.gridBackgroundBrush},set:function(t){this.gridBackgroundBrush=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textBrush",{get:function(){return this.gridTextBrush},set:function(t){this.gridTextBrush=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textPen",{get:function(){return this.gridTextPen},set:function(t){this.gridTextPen=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"font",{get:function(){return this.gridFont},set:function(t){this.gridFont=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"backgroundImage",{get:function(){return this.gridBackgroundImage},set:function(t){this.gridBackgroundImage=t},enumerable:!0,configurable:!0}),t}(),_p=function(t){function e(){var e=t.call(this)||this;return e.gridBorderOverlapStyle=Lp.Overlap,e.bAllowHorizontalOverflow=!1,e.gridHorizontalOverflowType=Fp.LastPage,e}return Rp(e,t),Object.defineProperty(e.prototype,"cellSpacing",{get:function(){return void 0===this.gridCellSpacing&&(this.gridCellSpacing=0),this.gridCellSpacing},set:function(t){this.gridCellSpacing=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"horizontalOverflowType",{get:function(){return this.gridHorizontalOverflowType},set:function(t){this.gridHorizontalOverflowType=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"allowHorizontalOverflow",{get:function(){return this.bAllowHorizontalOverflow},set:function(t){this.bAllowHorizontalOverflow=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cellPadding",{get:function(){return void 0===this.gridCellPadding&&(this.gridCellPadding=new np),this.gridCellPadding},set:function(t){void 0===this.gridCellPadding?(this.gridCellPadding=new np,this.gridCellPadding=t):this.gridCellPadding=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"borderOverlapStyle",{get:function(){return this.gridBorderOverlapStyle},set:function(t){this.gridBorderOverlapStyle=t},enumerable:!0,configurable:!0}),e}(Up),Vp=function(t){function e(){var e=t.call(this)||this;return e.gridCellBorders=rp.default,e}return Rp(e,t),Object.defineProperty(e.prototype,"stringFormat",{get:function(){return this.format},set:function(t){this.format=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"borders",{get:function(){return this.gridCellBorders},set:function(t){this.gridCellBorders=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cellPadding",{get:function(){return this.gridCellPadding},set:function(t){null!=this.gridCellPadding&&void 0!==this.gridCellPadding||(this.gridCellPadding=new np),this.gridCellPadding=t},enumerable:!0,configurable:!0}),e}(Up),Yp=function(){function t(){}return Object.defineProperty(t.prototype,"backgroundBrush",{get:function(){return this.gridRowBackgroundBrush},enumerable:!0,configurable:!0}),t.prototype.setBackgroundBrush=function(t){if(this.gridRowBackgroundBrush=t,void 0!==this.parent)for(var e=0;e<this.parent.cells.count;e++)this.parent.cells.getCell(e).style.backgroundBrush=t},Object.defineProperty(t.prototype,"textBrush",{get:function(){return this.gridRowTextBrush},enumerable:!0,configurable:!0}),t.prototype.setTextBrush=function(t){if(this.gridRowTextBrush=t,void 0!==this.parent)for(var e=0;e<this.parent.cells.count;e++)this.parent.cells.getCell(e).style.textBrush=t},Object.defineProperty(t.prototype,"textPen",{get:function(){return this.gridRowTextPen},enumerable:!0,configurable:!0}),t.prototype.setTextPen=function(t){if(this.gridRowTextPen=t,void 0!==this.parent)for(var e=0;e<this.parent.cells.count;e++)this.parent.cells.getCell(e).style.textPen=t},Object.defineProperty(t.prototype,"font",{get:function(){return this.gridRowFont},enumerable:!0,configurable:!0}),t.prototype.setFont=function(t){if(this.gridRowFont=t,void 0!==this.parent)for(var e=0;e<this.parent.cells.count;e++)this.parent.cells.getCell(e).style.font=t},Object.defineProperty(t.prototype,"border",{get:function(){return void 0===this.gridRowBorder&&this.setBorder(new rp),this.gridRowBorder},enumerable:!0,configurable:!0}),t.prototype.setBorder=function(t){if(this.gridRowBorder=t,void 0!==this.parent)for(var e=0;e<this.parent.cells.count;e++)this.parent.cells.getCell(e).style.borders=t},t.prototype.setParent=function(t){this.parent=t},Object.defineProperty(t.prototype,"backgroundImage",{get:function(){return this.gridRowBackgroundImage},enumerable:!0,configurable:!0}),t.prototype.setBackgroundImage=function(t){this.gridRowBackgroundImage=t},t}();!function(t){t[t.NextPage=0]="NextPage",t[t.LastPage=1]="LastPage"}(Fp||(Fp={}));var Qp=function(){function t(t){this.cellWidth=0,this.cellHeight=0,this.tempval=0,this.fontSpilt=!1,this.finsh=!0,this.rowSpanRemainingHeight=0,this.hasRowSpan=!1,this.hasColSpan=!1,this.isFinish=!0,this.present=!1,this.gridRowSpan=1,this.colSpan=1,void 0!==t&&(this.gridRow=t)}return Object.defineProperty(t.prototype,"isCellMergeContinue",{get:function(){return this.internalIsCellMergeContinue},set:function(t){this.internalIsCellMergeContinue=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRowMergeContinue",{get:function(){return this.internalIsRowMergeContinue},set:function(t){this.internalIsRowMergeContinue=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isCellMergeStart",{get:function(){return this.internalIsCellMergeStart},set:function(t){this.internalIsCellMergeStart=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRowMergeStart",{get:function(){return this.internalIsRowMergeStart},set:function(t){this.internalIsRowMergeStart=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"remainingString",{get:function(){return this.remaining},set:function(t){this.remaining=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"FinishedDrawingCell",{get:function(){return this.isFinish},set:function(t){this.isFinish=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stringFormat",{get:function(){return null==this.format&&(this.format=new Bh),this.format},set:function(t){this.format=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.gridRow},set:function(t){this.gridRow=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.objectValue},set:function(t){if(this.objectValue=t,this.objectValue instanceof Zp){this.row.grid.isSingleGrid=!1;this.objectValue.ParentCell=this,this.objectValue.isChildGrid=!0;for(var e=this.row.grid.rows.count,i=0;i<e;i++)for(var r=this.row.grid.rows.getRow(i),n=r.cells.count,o=0;o<n;o++){r.cells.getCell(o).parent=this}}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowSpan",{get:function(){return this.gridRowSpan},set:function(t){if(t<1)throw new Error("ArgumentException : Invalid span specified, must be greater than or equal to 1");this.gridRowSpan=t,this.row.rowSpanExists=!0,this.row.grid.hasRowSpanSpan=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return null==this.cellStyle&&(this.cellStyle=new Vp),this.cellStyle},set:function(t){this.cellStyle=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return 0===this.cellHeight&&(this.cellHeight=this.measureHeight()),this.cellHeight},set:function(t){this.cellHeight=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnSpan",{get:function(){return this.colSpan},set:function(t){if(t<1)throw Error("Invalid span specified, must be greater than or equal to 1");this.colSpan=t,this.row.columnSpanExists=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return(0===this.cellWidth||this.row.grid.isComplete)&&(this.cellWidth=this.measureWidth()),Math.round(this.cellWidth)},set:function(t){this.cellWidth=t},enumerable:!0,configurable:!0}),t.prototype.measureWidth=function(){var t=0,e=new Rh;if("string"==typeof this.objectValue){t+=e.layout(this.objectValue,this.getTextFont(),this.stringFormat,new Mh(Number.MAX_VALUE,Number.MAX_VALUE),!1,new Mh(0,0)).actualSize.width,t+=2*(this.style.borders.left.width+this.style.borders.right.width)}else if(this.objectValue instanceof Zp)t=this.objectValue.size.width;else if(this.objectValue instanceof Tu||this.objectValue instanceof Au)t+=this.objectValue.width;else if(this.objectValue instanceof fp){var i=this.objectValue;t+=e.layout(i.text,i.font,i.stringFormat,new Mh(0,0),!1,new Mh(0,0)).actualSize.width,t+=2*(this.style.borders.left.width+this.style.borders.right.width)}return this.objectValue instanceof Zp?null!=this.style.cellPadding||void 0!==this.style.cellPadding?(void 0!==this.style.cellPadding.left&&this.style.cellPadding.hasLeftPad&&(t+=this.style.cellPadding.left),void 0!==this.style.cellPadding.right&&this.style.cellPadding.hasRightPad&&(t+=this.style.cellPadding.right)):(void 0!==this.row.grid.style.cellPadding.left&&this.row.grid.style.cellPadding.hasLeftPad&&(t+=this.row.grid.style.cellPadding.left),void 0!==this.row.grid.style.cellPadding.right&&this.row.grid.style.cellPadding.hasRightPad&&(t+=this.row.grid.style.cellPadding.right)):null!=this.style.cellPadding?t+=this.style.cellPadding.left+this.style.cellPadding.right:t+=this.row.grid.style.cellPadding.left+this.row.grid.style.cellPadding.right,t+=this.row.grid.style.cellSpacing},t.prototype.drawCellBackground=function(t,e){var i=this.getBackgroundBrush();if(null!=i&&(t.save(),t.drawRectangle(i,e.x,e.y,e.width,e.height),t.restore()),null!=this.style.backgroundImage){this.getBackgroundImage();t.drawImage(this.style.backgroundImage,e.x,e.y,e.width,e.height)}},t.prototype.adjustContentLayoutArea=function(t){var e=new vh(t.x,t.y,t.width,t.height);return this.objectValue instanceof Zp?(null==this.style.cellPadding||void 0===this.style.cellPadding?(void 0!==this.gridRow.grid.style.cellPadding.left&&this.gridRow.grid.style.cellPadding.hasLeftPad&&(e.x+=this.gridRow.grid.style.cellPadding.left+this.cellStyle.borders.left.width,e.width-=this.gridRow.grid.style.cellPadding.left),void 0!==this.gridRow.grid.style.cellPadding.top&&this.gridRow.grid.style.cellPadding.hasTopPad&&(e.y+=this.gridRow.grid.style.cellPadding.top+this.cellStyle.borders.top.width,e.height-=this.gridRow.grid.style.cellPadding.top),void 0!==this.gridRow.grid.style.cellPadding.right&&this.gridRow.grid.style.cellPadding.hasRightPad&&(e.width-=this.gridRow.grid.style.cellPadding.right),void 0!==this.gridRow.grid.style.cellPadding.bottom&&this.gridRow.grid.style.cellPadding.hasBottomPad&&(e.height-=this.gridRow.grid.style.cellPadding.bottom)):(void 0!==this.style.cellPadding.left&&this.style.cellPadding.hasLeftPad&&(e.x+=this.style.cellPadding.left+this.cellStyle.borders.left.width,e.width-=this.style.cellPadding.left),void 0!==this.style.cellPadding.top&&this.style.cellPadding.hasTopPad&&(e.y+=this.style.cellPadding.top+this.cellStyle.borders.top.width,e.height-=this.style.cellPadding.top),void 0!==this.style.cellPadding.right&&this.style.cellPadding.hasRightPad&&(e.width-=this.style.cellPadding.right),void 0!==this.style.cellPadding.bottom&&this.style.cellPadding.hasBottomPad&&(e.height-=this.style.cellPadding.bottom)),e.width-=this.cellStyle.borders.left.width+this.cellStyle.borders.right.width,e.height-=this.cellStyle.borders.top.width+this.cellStyle.borders.bottom.width):void 0===this.style.cellPadding||null==this.style.cellPadding?(e.x+=this.gridRow.grid.style.cellPadding.left+this.cellStyle.borders.left.width,e.y+=this.gridRow.grid.style.cellPadding.top+this.cellStyle.borders.top.width,e.width-=this.gridRow.grid.style.cellPadding.right+this.gridRow.grid.style.cellPadding.left,e.height-=this.gridRow.grid.style.cellPadding.bottom+this.gridRow.grid.style.cellPadding.top,e.height-=this.cellStyle.borders.top.width+this.cellStyle.borders.bottom.width):(e.x+=this.style.cellPadding.left+this.cellStyle.borders.left.width,e.y+=this.style.cellPadding.top+this.cellStyle.borders.top.width,e.width-=this.style.cellPadding.right+this.style.cellPadding.left,e.width-=this.cellStyle.borders.left.width+this.cellStyle.borders.right.width,e.height-=this.style.cellPadding.bottom+this.style.cellPadding.top,e.height-=this.cellStyle.borders.top.width+this.cellStyle.borders.bottom.width,1===this.rowSpan&&(e.width-=this.style.borders.left.width)),e},t.prototype.draw=function(t,e,i){var r=null;if(this.internalIsCellMergeContinue||this.internalIsRowMergeContinue){if(!this.internalIsCellMergeContinue||!this.row.grid.style.allowHorizontalOverflow)return r;if(this.row.rowOverflowIndex>0&&this.row.cells.indexOf(this)!=this.row.rowOverflowIndex+1||0==this.row.rowOverflowIndex&&this.internalIsCellMergeContinue)return r}e=this.adjustOuterLayoutArea(e,t),this.drawCellBackground(t,e);var n=this.getTextPen(),o=this.getTextBrush();void 0===n&&void 0===o&&(o=new Sh(new yh(0,0,0)));var s=this.getTextFont(),a=this.getStringFormat(),l=e;if(l.height>=t.clientSize.height&&this.row.grid.allowRowBreakAcrossPages&&(l.height-=l.y,void 0!==this._rowHeight&&null!==this._rowHeight&&l.height>this._rowHeight&&(l.height=this._rowHeight)),l=this.adjustContentLayoutArea(l),"string"==typeof this.objectValue||"string"==typeof this.remaining){var h=void 0,u=void 0;if(u=l.height<s.height?new vh(l.x,l.y,l.width,s.height):l,l.height<s.height&&this.row.grid.isChildGrid&&null!=this.row.grid.ParentCell){var c=u.height-this.row.grid.ParentCell.row.grid.style.cellPadding.bottom-this.row.grid.style.cellPadding.bottom;-1!=this.row.grid.splitChildRowIndex&&(this.fontSpilt=!0,this.row.rowFontSplit=!0),c>0&&c<s.height&&(u.height=c)}0!=this.gridRow.grid.style.cellSpacing&&(u.width-=this.gridRow.grid.style.cellSpacing,e.width-=this.gridRow.grid.style.cellSpacing),this.isFinish?(h=""===this.remaining?this.remaining:this.objectValue,t.drawString(h,s,n,o,u.x,u.y,u.width,u.height,a),-1==this.row.grid.splitChildRowIndex||this.row.grid.isChildGrid||void 0!==this.remaining||(this.remaining="")):(void 0!==this.remaining&&null!==this.remaining||(this.remaining=""),this.row.repeatFlag&&t.drawString(this.remaining,s,n,o,u.x,u.y,u.width,u.height,a),this.isFinish=!0),r=t.stringLayoutResult}else if(this.objectValue instanceof Zp){var p=this.objectValue;p.isChildGrid=!0,p.ParentCell=this;var d=void 0;d=l,0!=this.gridRow.grid.style.cellSpacing&&(e.width-=this.gridRow.grid.style.cellSpacing);var g=new td(p),f=new id;null!=this.row.grid.LayoutFormat?f=this.row.grid.LayoutFormat:f.layout=xu.Paginate;var y=new ep;if(null!=t.layer){y.page=t.page,y.bounds=d,y.format=f,p.setSpan(),p.checkSpan();var m=g.Layouter(y);this.value=p,-1!==this.row.grid.splitChildRowIndex&&(this.height=this.row.rowBreakHeightValue),y.page!=m.page&&(null!==this.row.rowBreakHeightValue&&void 0!==this.row.rowBreakHeightValue&&(m.bounds.height=this.row.rowBreakHeightValue),0==this.row.rowBreakHeight?this.row.NestedGridLayoutResult=m:this.row.rowBreakHeight=this.row.rowBreakHeightValue)}}else if(this.objectValue instanceof Tu||this.objectValue instanceof Au){var M=void 0;M=this.objectValue.width<=l.width?new vh(l.x,l.y,this.objectValue.width,l.height):l,t.drawImage(this.objectValue,M.x,M.y,M.width,M.height)}else this.objectValue instanceof fp?this.objectValue.draw(t.currentPage,l):void 0===this.objectValue&&(this.objectValue="",t.drawString(this.objectValue,s,n,o,l.x,l.y,l.width,l.height,a),null!=this.style.cellPadding&&0==this.style.cellPadding.bottom&&0==this.style.cellPadding.left&&0==this.style.cellPadding.right&&0==this.style.cellPadding.top&&(e.width-=this.style.borders.left.width+this.style.borders.right.width),0!=this.gridRow.grid.style.cellSpacing&&(e.width-=this.gridRow.grid.style.cellSpacing));return null!=this.style.borders&&(this.fontSpilt?-1!=this.row.grid.ParentCell.row.grid.splitChildRowIndex&&(this.row.rowFontSplit=!1,this.drawCellBorders(t,e)):this.drawCellBorders(t,e)),r},t.prototype.drawCellBorders=function(t,e){this.row.grid.style.borderOverlapStyle===Lp.Inside&&(e.x+=this.style.borders.left.width,e.y+=this.style.borders.top.width,e.width-=this.style.borders.right.width,e.height-=this.style.borders.bottom.width);var i=new mh(e.x,e.y+e.height),r=new mh(e.x,e.y),n=this.cellStyle.borders.left;this.cellStyle.borders.left.dashStyle===lh.Solid&&(n.lineCap=ah.Square),0!==n.width&&t.drawLine(n,i,r),i=new mh(e.x+e.width,e.y),r=new mh(e.x+e.width,e.y+e.height),n=this.cellStyle.borders.right,e.x+e.width>t.clientSize.width-n.width/2&&(i=new mh(t.clientSize.width-n.width/2,e.y),r=new mh(t.clientSize.width-n.width/2,e.y+e.height)),this.cellStyle.borders.right.dashStyle===lh.Solid&&(n.lineCap=ah.Square),0!==n.width&&t.drawLine(n,i,r),i=new mh(e.x,e.y),r=new mh(e.x+e.width,e.y),n=this.cellStyle.borders.top,this.cellStyle.borders.top.dashStyle===lh.Solid&&(n.lineCap=ah.Square),0!==n.width&&t.drawLine(n,i,r),i=new mh(e.x+e.width,e.y+e.height),r=new mh(e.x,e.y+e.height),n=this.cellStyle.borders.bottom,e.y+e.height>t.clientSize.height-n.width/2&&(i=new mh(e.x+e.width,t.clientSize.height-n.width/2),r=new mh(e.x,t.clientSize.height-n.width/2)),this.cellStyle.borders.bottom.dashStyle===lh.Solid&&(n.lineCap=ah.Square),0!==n.width&&t.drawLine(n,i,r)},t.prototype.adjustOuterLayoutArea=function(t,e){var i=!1,r=this.row.grid.style.cellSpacing;r>0&&(t=new vh(t.x+r,t.y+r,t.width-r,t.height-r));var n=this.row.cells.indexOf(this);if(this.columnSpan>1||this.row.rowOverflowIndex>0&&n==this.row.rowOverflowIndex+1&&this.isCellMergeContinue){if(1==(h=this.columnSpan)&&this.isCellMergeContinue)for(var o=n+1;o<this.row.grid.columns.count&&this.row.cells.getCell(o).isCellMergeContinue;o++)h++;for(var s=0,a=n;a<n+h;a++){if(this.row.grid.style.allowHorizontalOverflow){var l=this.row.grid.size.width<e.clientSize.width?this.row.grid.size.width:e.clientSize.width;if((this.row.grid.size.width>e.clientSize.width?t.x+s+this.row.grid.columns.getColumn(a).width:s+this.row.grid.columns.getColumn(a).width)>l)break}s+=this.row.grid.columns.getColumn(a).width}s-=this.row.grid.style.cellSpacing,t.width=s}if(this.rowSpan>1||this.row.rowSpanExists){var h=this.rowSpan,u=this.row.grid.rows.rowCollection.indexOf(this.row);-1==u&&-1!=(u=this.row.grid.headers.indexOf(this.row))&&(i=!0);var c=0;for(a=u;a<u+h;a++){c+=i?this.row.grid.headers.getHeader(a).height:this.row.grid.rows.getRow(a).height;var p=this.row.grid.rows.getRow(a);this.row.grid.rows.rowCollection.indexOf(p)}this.row.cells.indexOf(this);c-=this.row.grid.style.cellSpacing,t.height=c,this.row.rowMergeComplete||(t.height=c)}return t},t.prototype.getTextFont=function(){return void 0!==this.style.font&&null!=this.style.font?this.style.font:void 0!==this.row.style.font&&null!=this.row.style.font?this.row.style.font:void 0!==this.row.grid.style.font&&null!=this.row.grid.style.font?this.row.grid.style.font:Yc.defaultFont},t.prototype.getTextBrush=function(){return void 0!==this.style.textBrush&&null!=this.style.textBrush?this.style.textBrush:void 0!==this.row.style.textBrush&&null!=this.row.style.textBrush?this.row.style.textBrush:this.row.grid.style.textBrush},t.prototype.getTextPen=function(){return void 0!==this.style.textPen&&null!=this.style.textPen?this.style.textPen:void 0!==this.row.style.textPen&&null!=this.row.style.textPen?this.row.style.textPen:this.row.grid.style.textPen},t.prototype.getBackgroundBrush=function(){return void 0!==this.style.backgroundBrush&&null!=this.style.backgroundBrush?this.style.backgroundBrush:void 0!==this.row.style.backgroundBrush&&null!=this.row.style.backgroundBrush?this.row.style.backgroundBrush:this.row.grid.style.backgroundBrush},t.prototype.getBackgroundImage=function(){return void 0!==this.style.backgroundImage&&null!=this.style.backgroundImage?this.style.backgroundImage:void 0!==this.row.style.backgroundImage&&null!=this.row.style.backgroundImage?this.row.style.backgroundImage:this.row.grid.style.backgroundImage},t.prototype.getStringFormat=function(){return void 0!==this.style.stringFormat&&null!=this.style.stringFormat?this.style.stringFormat:this.stringFormat},t.prototype.measureHeight=function(){var t=this.calculateWidth();null==this.style.cellPadding||void 0===this.style.cellPadding?t-=this.gridRow.grid.style.cellPadding.right+this.gridRow.grid.style.cellPadding.left:(t-=this.style.cellPadding.right+this.style.cellPadding.left,t-=this.style.borders.left.width+this.style.borders.right.width);var e=0,i=new Rh;if("string"==typeof this.objectValue||"string"==typeof this.remaining){var r=this.objectValue;this.isFinish||(r=null!==this.remaining&&""!==this.remaining&&void 0!==this.remaining?this.remaining:this.objectValue);var n=this.row.cells.indexOf(this);0!=this.gridRow.grid.style.cellSpacing&&(t-=2*this.gridRow.grid.style.cellSpacing),this.row.cells.getCell(n).hasColSpan||this.row.cells.getCell(n).hasRowSpan||(this.gridRow.grid.isChildGrid?(t<0?(this.tempval=t,null==this.style.cellPadding||void 0===this.style.cellPadding?this.tempval+=this.gridRow.grid.style.cellPadding.right+this.gridRow.grid.style.cellPadding.left:(this.tempval+=this.style.cellPadding.right+this.style.cellPadding.left,this.tempval+=this.style.borders.left.width+this.style.borders.right.width)):this.tempval=t,e+=i.layout(r,this.getTextFont(),this.stringFormat,new Mh(this.tempval,0),!1,new Mh(0,0)).actualSize.height):e+=i.layout(r,this.getTextFont(),this.stringFormat,new Mh(t,0),!1,new Mh(0,0)).actualSize.height),e+=2*(this.style.borders.top.width+this.style.borders.bottom.width)}else if(this.objectValue instanceof Zp){n=this.row.cells.indexOf(this);var o=0;null!=this.style.cellPadding||void 0!==this.style.cellPadding?(o=this.calculateWidth(),void 0!==this.style.cellPadding.left&&this.style.cellPadding.hasLeftPad&&(o-=this.style.cellPadding.left),void 0!==this.style.cellPadding.right&&this.style.cellPadding.hasRightPad&&(o-=this.style.cellPadding.right)):null!=this.row.grid.style.cellPadding||void 0!==this.row.grid.style.cellPadding?(o=this.calculateWidth(),void 0!==this.row.grid.style.cellPadding.left&&this.row.grid.style.cellPadding.hasLeftPad&&(o-=this.row.grid.style.cellPadding.left),void 0!==this.row.grid.style.cellPadding.right&&this.row.grid.style.cellPadding.hasRightPad&&(o-=this.row.grid.style.cellPadding.right)):o=this.calculateWidth(),this.objectValue.tempWidth=o,this.row.cells.getCell(n).hasColSpan||this.row.cells.getCell(n).hasRowSpan?e+=2*(this.style.borders.top.width+this.style.borders.bottom.width):e=this.objectValue.size.height,0!==this.gridRow.grid.style.cellSpacing&&(t-=2*this.gridRow.grid.style.cellSpacing),null==this.style.cellPadding&&void 0===this.style.cellPadding||(void 0!==this.row.grid.style.cellPadding.top&&this.row.grid.style.cellPadding.hasTopPad&&(e+=this.row.grid.style.cellPadding.top),this.row.grid.style.cellPadding.hasBottomPad&&void 0!==this.row.grid.style.cellPadding.bottom&&(e+=this.row.grid.style.cellPadding.bottom)),e+=this.objectValue.style.cellSpacing}else if(this.objectValue instanceof Tu||this.objectValue instanceof Au)e+=this.objectValue.height;else if(this.objectValue instanceof fp){var s=this.objectValue;e+=i.layout(s.text,s.font,s.stringFormat,new Mh(t,0),!1,new Mh(0,0)).actualSize.height,e+=2*(this.style.borders.top.width+this.style.borders.bottom.width)}else void 0===this.objectValue&&(null==this.style.cellPadding||void 0===this.style.cellPadding?t-=this.gridRow.grid.style.cellPadding.right+this.gridRow.grid.style.cellPadding.left:(t-=this.style.cellPadding.right+this.style.cellPadding.left,t-=this.style.borders.left.width+this.style.borders.right.width),e+=2*(this.style.borders.top.width+this.style.borders.bottom.width));return this.objectValue instanceof Zp?null==this.style.cellPadding||void 0===this.style.cellPadding?(void 0!==this.row.grid.style.cellPadding.top&&this.row.grid.style.cellPadding.hasTopPad&&(e+=this.row.grid.style.cellPadding.top),void 0!==this.row.grid.style.cellPadding.bottom&&this.row.grid.style.cellPadding.hasBottomPad&&(e+=this.row.grid.style.cellPadding.bottom)):(void 0!==this.style.cellPadding.top&&this.style.cellPadding.hasTopPad&&(e+=this.style.cellPadding.top),void 0!==this.style.cellPadding.bottom&&this.style.cellPadding.hasBottomPad&&(e+=this.style.cellPadding.bottom)):null==this.style.cellPadding||void 0===this.style.cellPadding?e+=this.row.grid.style.cellPadding.top+this.row.grid.style.cellPadding.bottom:e+=this.style.cellPadding.top+this.style.cellPadding.bottom,e+=this.row.grid.style.cellSpacing},t.prototype.calculateWidth=function(){var t=this.row.cells.indexOf(this),e=(this.row.grid.rows.rowCollection.indexOf(this.row),this.columnSpan),i=0;if(1===e)for(var r=0;r<e;r++)i+=this.row.grid.columns.getColumn(t+r).width;else if(e>1)for(r=0;r<e;r++)i+=this.row.grid.columns.getColumn(t+r).width,r+1<e&&(this.row.cells.getCell(t+r+1).hasColSpan=!0);if(null!=this.parent&&this.parent.row.width>0&&this.row.grid.isChildGrid&&null!=this.parent&&this.row.width>this.parent.row.width){i=0;for(var n=0;n<this.parent.columnSpan;n++)i+=this.parent.row.grid.columns.getColumn(n).width;i/=this.row.cells.count}return i},t}(),Wp=function(){function t(t){this.cells=[],this.gridRow=t}return t.prototype.getCell=function(t){if(t<0||t>=this.count)throw new Error("IndexOutOfRangeException");return this.cells[t]},Object.defineProperty(t.prototype,"count",{get:function(){return this.cells.length},enumerable:!0,configurable:!0}),t.prototype.add=function(t){if(void 0===t){var e=new Qp;return this.add(e),t}t.row=this.gridRow,this.cells.push(t)},t.prototype.indexOf=function(t){return this.cells.indexOf(t)},t}(),Gp=function(){function t(t){this.columnWidth=0,this.grid=t}return Object.defineProperty(t.prototype,"width",{get:function(){return this.columnWidth},set:function(t){this.isCustomWidth=!0,this.columnWidth=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"format",{get:function(){return null==this.stringFormat&&(this.stringFormat=new Bh),this.stringFormat},set:function(t){this.stringFormat=t},enumerable:!0,configurable:!0}),t}(),Hp=function(){function t(t){this.internalColumns=[],this.columnWidth=0,this.grid=t,this.internalColumns=[]}return t.prototype.add=function(t){for(var e=0;e<t;e++){this.internalColumns.push(new Gp(this.grid));for(var i=0;i<this.grid.rows.count;i++){var r=this.grid.rows.getRow(i),n=new Qp;n.value="",r.cells.add(n)}}},Object.defineProperty(t.prototype,"count",{get:function(){return this.internalColumns.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return 0===this.columnWidth&&(this.columnWidth=this.measureColumnsWidth()),0===this.grid.initialWidth||this.columnWidth===this.grid.initialWidth||this.grid.style.allowHorizontalOverflow||(this.columnWidth=this.grid.initialWidth,this.grid.isPageWidth=!0),this.columnWidth},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.internalColumns},enumerable:!0,configurable:!0}),t.prototype.getColumn=function(t){if(t>=0&&t<=this.columns.length)return this.columns[t];throw Error("can not get the column from the index: "+t)},t.prototype.measureColumnsWidth=function(){var t=0;this.grid.measureColumnsWidth();for(var e=0,i=this.internalColumns.length;e<i;e++)t+=this.internalColumns[e].width;return t},t.prototype.getDefaultWidths=function(t){for(var e=[],i=this.count,r=0;r<this.count;r++)this.grid.isPageWidth&&t>=0&&!this.internalColumns[r].isCustomWidth?this.internalColumns[r].width=0:(e[r]=this.internalColumns[r].width,this.internalColumns[r].width>0&&this.internalColumns[r].isCustomWidth?(t-=this.internalColumns[r].width,i--):e[r]=0);for(r=0;r<this.count;r++){var n=t/i;e[r]<=0&&(e[r]=n)}return e},t}(),qp=function(){function t(t){this.gridRowOverflowIndex=0,this.rowHeight=0,this.rowWidth=0,this.isrowFinish=!1,this.isRowSpanRowHeightSet=!1,this.noOfPageCount=0,this.isRowHeightSet=!1,this.isPageBreakRowSpanApplied=!1,this.isRowMergeComplete=!0,this.repeatFlag=!1,this.rowFontSplit=!1,this.isHeaderRow=!1,this.pdfGrid=t}return Object.defineProperty(t.prototype,"rowSpanExists",{get:function(){return this.bRowSpanExists},set:function(t){this.bRowSpanExists=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cells",{get:function(){return null==this.gridCells&&(this.gridCells=new Wp(this)),this.gridCells},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"grid",{get:function(){return this.pdfGrid},set:function(t){this.pdfGrid=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return void 0===this.rowStyle&&(this.rowStyle=new Yp,this.rowStyle.setParent(this)),this.rowStyle},set:function(t){this.rowStyle=t;for(var e=0;e<this.cells.count;e++)this.cells.getCell(e).style.borders=t.border,void 0!==t.font&&(this.cells.getCell(e).style.font=t.font),void 0!==t.backgroundBrush&&(this.cells.getCell(e).style.backgroundBrush=t.backgroundBrush),void 0!==t.backgroundImage&&(this.cells.getCell(e).style.backgroundImage=t.backgroundImage),void 0!==t.textBrush&&(this.cells.getCell(e).style.textBrush=t.textBrush),void 0!==t.textPen&&(this.cells.getCell(e).style.textPen=t.textPen)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowBreakHeight",{get:function(){return void 0===this.gridRowBreakHeight&&(this.gridRowBreakHeight=0),this.gridRowBreakHeight},set:function(t){this.gridRowBreakHeight=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowOverflowIndex",{get:function(){return this.gridRowOverflowIndex},set:function(t){this.gridRowOverflowIndex=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.isRowHeightSet||(this.rowHeight=this.measureHeight()),this.rowHeight},set:function(t){this.rowHeight=t,this.isRowHeightSet=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return 0!==this.rowWidth&&void 0!==this.rowWidth||(this.rowWidth=this.measureWidth()),this.rowWidth},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"NestedGridLayoutResult",{get:function(){return this.gridResult},set:function(t){this.gridResult=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnSpanExists",{get:function(){return this.bColumnSpanExists},set:function(t){this.bColumnSpanExists=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowMergeComplete",{get:function(){return this.isRowMergeComplete},set:function(t){this.isRowMergeComplete=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowIndex",{get:function(){return this.grid.rows.rowCollection.indexOf(this)},enumerable:!0,configurable:!0}),t.prototype.measureHeight=function(){var t,e=0,i=0;t=this.cells.getCell(0).rowSpan>1?0:this.cells.getCell(0).height;for(var r=0;r<this.cells.count;r++){var n=this.cells.getCell(r);if(n.rowSpanRemainingHeight>e&&(e=n.rowSpanRemainingHeight),this.rowMergeComplete=!1,n.rowSpan>1){for(var o=r,s=this.isHeaderRow?this.grid.headers.indexOf(this):this.grid.rows.rowCollection.indexOf(this),a=0;a<n.rowSpan;a++)a+1<n.rowSpan&&((this.isHeaderRow?this.grid.headers.getHeader(s+a+1):this.grid.rows.getRow(s+a+1)).cells.getCell(o).hasRowSpan=!0);i<n.height&&(i=n.height)}else t=Math.max(t,n.height)}return i>t&&(t=i),0===t?t=i:e>0&&(t+=e),t},t.prototype.measureWidth=function(){for(var t=0,e=0;e<this.grid.columns.count;e++){t+=this.grid.columns.getColumn(e).width}return t},t}(),$p=function(){function t(t){this.rows=[],this.grid=t}return Object.defineProperty(t.prototype,"count",{get:function(){return this.rows.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowCollection",{get:function(){return this.rows},enumerable:!0,configurable:!0}),t.prototype.addRow=function(t){if(void 0===t){var e=new qp(this.grid);return this.addRow(e),e}if(t.style.setBackgroundBrush(this.grid.style.backgroundBrush),t.style.setFont(this.grid.style.font),t.style.setTextBrush(this.grid.style.textBrush),t.style.setTextPen(this.grid.style.textPen),0===t.cells.count)for(var i=0;i<this.grid.columns.count;i++)t.cells.add(new Qp);this.rows.push(t)},t.prototype.getRow=function(t){return this.rows[t]},t}(),Kp=function(){function t(t){this.rows=[],this.grid=t,this.rows=[]}return t.prototype.getHeader=function(t){return this.rows[t]},Object.defineProperty(t.prototype,"count",{get:function(){return this.rows.length},enumerable:!0,configurable:!0}),t.prototype.add=function(t){if("number"==typeof t){for(var e=void 0,i=0;i<t;i++){(e=new qp(this.grid)).isHeaderRow=!0;for(var r=0;r<this.grid.columns.count;r++)e.cells.add(new Qp);this.rows.push(e)}return this.rows}this.rows.push(t)},t.prototype.indexOf=function(t){return this.rows.indexOf(t)},t}(),Jp=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Zp=function(t){function e(){var e=t.call(this)||this;return e.gridSize=new Mh(0,0),e.isGridSplit=!1,e.isRearranged=!1,e.pageBounds=new vh,e.listOfNavigatePages=[],e.parentCellIndex=0,e.tempWidth=0,e.breakRow=!0,e.splitChildRowIndex=-1,e.hasRowSpanSpan=!1,e.hasColumnSpan=!1,e.isSingleGrid=!0,e}return Jp(e,t),Object.defineProperty(e.prototype,"raiseBeginCellDraw",{get:function(){return void 0!==this.beginCellDraw&&null!==typeof this.beginCellDraw},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"raiseEndCellDraw",{get:function(){return void 0!==this.endCellDraw&&null!==typeof this.endCellDraw},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"repeatHeader",{get:function(){return null!=this.bRepeatHeader&&void 0!==this.bRepeatHeader||(this.bRepeatHeader=!1),this.bRepeatHeader},set:function(t){this.bRepeatHeader=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"allowRowBreakAcrossPages",{get:function(){return this.breakRow},set:function(t){this.breakRow=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return null!=this.gridColumns&&void 0!==this.gridColumns||(this.gridColumns=new Hp(this)),this.gridColumns},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rows",{get:function(){return null==this.gridRows&&(this.gridRows=new $p(this)),this.gridRows},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"headers",{get:function(){return null!=this.gridHeaders&&void 0!==this.gridHeaders||(this.gridHeaders=new Kp(this)),this.gridHeaders},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"initialWidth",{get:function(){return this.gridInitialWidth},set:function(t){this.gridInitialWidth=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"style",{get:function(){return null==this.gridStyle&&(this.gridStyle=new _p),this.gridStyle},set:function(t){null==this.gridStyle&&(this.gridStyle=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isPageWidth",{get:function(){return this.ispageWidth},set:function(t){this.ispageWidth=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isChildGrid",{get:function(){return this.ischildGrid},set:function(t){this.ischildGrid=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return 0!==this.gridSize.width&&void 0!==this.gridSize.width||0!==this.gridSize.height||(this.gridSize=this.measure()),this.gridSize},set:function(t){this.gridSize=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ParentCell",{get:function(){return this.parentCell},set:function(t){this.parentCell=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"LayoutFormat",{get:function(){return this.layoutFormat},enumerable:!0,configurable:!0}),e.prototype.draw=function(t,e,i,r){if(e instanceof mh&&void 0===e.width&&void 0===i)return this.drawHelper(t,e.x,e.y);if("number"==typeof e&&"number"==typeof i&&void 0===r)return this.drawHelper(t,e,i,null);if(e instanceof vh&&void 0!==e.width&&void 0===i)return this.drawHelper(t,e,null);if(e instanceof mh&&void 0===e.width&&i instanceof tp)return this.drawHelper(t,e.x,e.y,i);if("number"==typeof e&&"number"==typeof i&&(r instanceof tp||null==r)){var n=t.graphics.clientSize.width-e,o=new vh(e,i,n,0);return this.drawHelper(t,o,r)}return e instanceof vh&&void 0!==e.width&&"boolean"==typeof i?this.drawHelper(t,e,null):this.drawHelper(t,e,i)},e.prototype.measure=function(){for(var t=0,e=this.columns.width,i=0;i<this.headers.count;i++){t+=this.headers.getHeader(i).height}for(i=0;i<this.rows.count;i++){t+=this.rows.getRow(i).height}return new Mh(e,t)},e.prototype.onBeginCellDraw=function(t){this.raiseBeginCellDraw&&this.beginCellDraw(this,t)},e.prototype.onEndCellDraw=function(t){this.raiseEndCellDraw&&this.endCellDraw(this,t)},e.prototype.layout=function(t){var e=t.bounds.width,i=t.bounds.height,r=!1;if(void 0!==t.bounds.width&&0!==t.bounds.width||(e=t.page.getClientSize().width-t.bounds.x,r=!0),void 0!==t.bounds.height&&0!==t.bounds.height||(i=t.page.getClientSize().height-t.bounds.y,r=!0),r&&(t.bounds=new vh(t.bounds.x,t.bounds.y,e,i)),0!==this.rows.count){var n=this.rows.getRow(0).cells.getCell(0).style;if(null!=n.borders&&(null!=n.borders.left&&1!==n.borders.left.width||null!=n.borders.top&&1!==n.borders.top.width)){var o=n.borders.left.width/2,s=n.borders.top.width/2;if(t.bounds.x===rp.default.right.width/2&&t.bounds.y===rp.default.right.width/2){var a=new vh(o,s,this.gridSize.width,this.gridSize.height);t.bounds=a}}}this.setSpan(),this.checkSpan(),this.layoutFormat=t.format,this.gridLocation=t.bounds;return new td(this).Layouter(t)},e.prototype.setSpan=function(){for(var t=1,e=1,i=0,r=0,n=0,o=this.headers.count,s=0;s<o;s++){var a=this.headers.getHeader(s);n=0;for(var l=a.cells.count,h=0;h<l;h++){var u=a.cells.getCell(h);if(n=Math.max(n,u.rowSpan),!u.isCellMergeContinue&&!u.isRowMergeContinue&&(u.columnSpan>1||u.rowSpan>1)){if(u.columnSpan+h>a.cells.count)throw new Error("Invalid span specified at row "+h.toString()+" column "+s.toString());if(u.rowSpan+s>this.headers.count)throw new Error("Invalid span specified at Header "+h.toString()+" column "+s.toString());if(u.columnSpan>1&&u.rowSpan>1){for(t=u.columnSpan,e=u.rowSpan,i=h,r=s,u.isCellMergeStart=!0,u.isRowMergeStart=!0;t>1;)i++,a.cells.getCell(i).isCellMergeContinue=!0,a.cells.getCell(i).isRowMergeContinue=!0,a.cells.getCell(i).rowSpan=e,t--;for(i=h,t=u.columnSpan;e>1;){for(r++,this.headers.getHeader(r).cells.getCell(h).isRowMergeContinue=!0,this.headers.getHeader(r).cells.getCell(i).isRowMergeContinue=!0,e--;t>1;)i++,this.headers.getHeader(r).cells.getCell(i).isCellMergeContinue=!0,this.headers.getHeader(r).cells.getCell(i).isRowMergeContinue=!0,t--;t=u.columnSpan,i=h}}else if(u.columnSpan>1&&1===u.rowSpan)for(t=u.columnSpan,i=h,u.isCellMergeStart=!0;t>1;)i++,a.cells.getCell(i).isCellMergeContinue=!0,t--;else if(1===u.columnSpan&&u.rowSpan>1)for(e=u.rowSpan,r=s;e>1;)r++,this.headers.getHeader(r).cells.getCell(h).isRowMergeContinue=!0,e--}}a.maximumRowSpan=n}},e.prototype.checkSpan=function(){var t,e,i=1,r=0,n=0;if(t=i=1,e=n=0,this.hasRowSpanSpan||this.hasColumnSpan)for(var o=this.rows.count,s=0;s<o;s++){var a=this.rows.getRow(s);r=0;for(var l=a.cells.count,h=0;h<l;h++){var u=a.cells.getCell(h);if(r=Math.max(r,u.rowSpan),!u.isCellMergeContinue&&!u.isRowMergeContinue&&(u.columnSpan>1||u.rowSpan>1)){if(u.columnSpan+h>a.cells.count)throw new Error("Invalid span specified at row "+h.toString()+" column "+s.toString());if(u.rowSpan+s>this.rows.count)throw new Error("Invalid span specified at row "+h.toString()+" column "+s.toString());if(u.columnSpan>1&&u.rowSpan>1){for(t=u.columnSpan,i=u.rowSpan,e=h,n=s,u.isCellMergeStart=!0,u.isRowMergeStart=!0;t>1;)e++,a.cells.getCell(e).isCellMergeContinue=!0,a.cells.getCell(e).isRowMergeContinue=!0,t--;for(e=h,t=u.columnSpan;i>1;){for(n++,this.rows.getRow(n).cells.getCell(h).isRowMergeContinue=!0,this.rows.getRow(n).cells.getCell(e).isRowMergeContinue=!0,i--;t>1;)e++,this.rows.getRow(n).cells.getCell(e).isCellMergeContinue=!0,this.rows.getRow(n).cells.getCell(e).isRowMergeContinue=!0,t--;t=u.columnSpan,e=h}}else if(u.columnSpan>1&&1===u.rowSpan)for(t=u.columnSpan,e=h,u.isCellMergeStart=!0;t>1;)e++,a.cells.getCell(e).isCellMergeContinue=!0,t--;else if(1===u.columnSpan&&u.rowSpan>1)for(i=u.rowSpan,n=s;i>1;)n++,this.rows.getRow(n).cells.getCell(h).isRowMergeContinue=!0,i--}}a.maximumRowSpan=r}},e.prototype.measureColumnsWidth=function(t){if(void 0!==t){this.isPageWidth=!1;for(var e=this.columns.getDefaultWidths(t.width-t.x),i=0,r=this.columns.count;i<r;i++)this.columns.getColumn(i).columnWidth=e[i],this.tempWidth=e[i];if(null!=this.ParentCell&&0==this.style.allowHorizontalOverflow&&0==this.ParentCell.row.grid.style.allowHorizontalOverflow){var n=0,o=0,s=this.columns.count,a=0;null==this.ParentCell.style.cellPadding&&void 0===this.ParentCell.style.cellPadding||(void 0!==this.ParentCell.style.cellPadding.left&&this.ParentCell.style.cellPadding.hasLeftPad&&(n+=this.ParentCell.style.cellPadding.left),void 0!==this.ParentCell.style.cellPadding.right&&this.ParentCell.style.cellPadding.hasRightPad&&(n+=this.ParentCell.style.cellPadding.right));for(i=0;i<this.ParentCell.columnSpan;i++)o+=this.ParentCell.row.grid.columns.getColumn(this.parentCellIndex+i).width;for(var l=0;l<this.columns.count;l++)this.gridColumns.getColumn(l).width>0&&this.gridColumns.getColumn(l).isCustomWidth&&(o-=this.gridColumns.getColumn(l).width,s--);if(null==this.ParentCell.row.grid.style.cellPadding&&void 0===this.ParentCell.row.grid.style.cellPadding||(void 0!==this.ParentCell.row.grid.style.cellPadding.top&&this.ParentCell.row.grid.style.cellPadding.hasTopPad&&(n+=this.ParentCell.row.grid.style.cellPadding.top),void 0!==this.ParentCell.row.grid.style.cellPadding.bottom&&this.ParentCell.row.grid.style.cellPadding.hasBottomPad&&(n+=this.ParentCell.row.grid.style.cellPadding.bottom)),0!=this.ParentCell.row.grid.style.cellSpacing&&(o-=2*this.ParentCell.row.grid.style.cellSpacing),o>n&&(a=(o-n)/s,this.tempWidth=a,null!=this.ParentCell))for(l=0;l<this.columns.count;l++)this.columns.getColumn(l).isCustomWidth||(this.columns.getColumn(l).columnWidth=a)}}else{e=[this.columns.count];for(var h=0;h<this.columns.count;h++)e[h]=0;var u=0;if((void 0===this.isChildGrid&&void 0!==this.gridLocation||null===this.isChildGrid&&void 0!==this.gridLocation)&&(this.initialWidth=this.gridLocation.width),this.headers.count>0){var c=this.headers.getHeader(0).cells.count,p=this.headers.count;for(i=0;i<c;i++){u=0;for(l=0;l<p;l++){var d=Math.min(this.initialWidth,this.headers.getHeader(l).cells.getCell(i).width);u=Math.max(u,d)}e[i]=u}}u=0;i=0;for(var g=this.columns.count;i<g;i++){for(l=0,p=this.rows.count;l<p;l++)if(1==this.rows.getRow(l).cells.getCell(i).columnSpan&&!this.rows.getRow(l).cells.getCell(i).isCellMergeContinue||null!=this.rows.getRow(l).cells.getCell(i).value){if(null!=this.rows.getRow(l).cells.getCell(i).value&&!this.rows.getRow(l).grid.style.allowHorizontalOverflow)this.rows.getRow(l).grid.style.cellPadding.right,this.rows.getRow(l).grid.style.cellPadding.left,this.rows.getRow(l).cells.getCell(i).style.borders.left.width;d=0;d=this.initialWidth>0?Math.min(this.initialWidth,this.rows.getRow(l).cells.getCell(i).width):this.rows.getRow(l).cells.getCell(i).width,u=Math.max(e[i],Math.max(u,d)),u=Math.max(this.columns.getColumn(i).width,u)}0!=this.rows.count&&(e[i]=u),u=0}i=0;for(var f=this.rows.count;i<f;i++){l=0;for(var y=this.columns.count;l<y;l++)if(this.rows.getRow(i).cells.getCell(l).columnSpan>1){e[l];for(var m=1;m<this.rows.getRow(i).cells.getCell(l).columnSpan;m++)e[l+m]}}for(i=0,r=this.columns.count;i<r;i++)this.columns.getColumn(i).width<=0?this.columns.getColumn(i).columnWidth=e[i]:this.columns.getColumn(i).width>0&&!this.columns.getColumn(i).isCustomWidth&&(this.columns.getColumn(i).columnWidth=e[i]);n=0;var M=0,v=this.columns.count,b=0;M=this.tempWidth;for(l=0;l<this.columns.count;l++)this.gridColumns.getColumn(l).width>0&&this.gridColumns.getColumn(l).isCustomWidth&&(M-=this.gridColumns.getColumn(l).width,v--);if(M>0&&0!=this.ParentCell.row.grid.style.cellSpacing&&(M-=2*this.ParentCell.row.grid.style.cellSpacing),M>n&&(b=M/v,null!=this.ParentCell))for(l=0;l<this.columns.count;l++)this.columns.getColumn(l).isCustomWidth||(this.columns.getColumn(l).columnWidth=b)}},e}(op),Xp=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),td=function(t){function e(e){var i=t.call(this,e)||this;return i.gridInitialWidth=0,i.gridSize=new Mh(0,0),i.parentCellIndex=0,i.tempWidth=0,i.childheight=0,i.isChildGrid=!1,i.hasRowSpanSpan=!1,i.isRearranged=!1,i.pageBounds=new vh,i.listOfNavigatePages=[],i.flag=!0,i.columnRanges=[],i.currentLocation=new mh(0,0),i.breakRow=!0,i.slr=null,i.remainderText=null,i.isPaginate=!1,i.isOverloadWithPosition=!1,i}return Xp(e,t),Object.defineProperty(e.prototype,"Grid",{get:function(){return this.elements},enumerable:!0,configurable:!0}),e.prototype.getFormat=function(t){return t},e.prototype.layoutInternal=function(t){var e=this.getFormat(t.format);if(this.gridLayoutFormat=this.getFormat(t.format),this.currentPage=t.page,null===this.currentPage)throw Error("Can not set page as null");this.currentPage.getClientSize().height,this.currentPage.getClientSize().width;this.currentPageBounds=this.currentPage.getClientSize(),this.currentGraphics=this.currentPage.graphics;var i=0;if(i=this.currentGraphics.page.section.indexOf(this.currentGraphics.page),this.listOfNavigatePages.push(i),null!=e&&e.break===hc.FitColumnsToPage?this.currentBounds=new vh(new mh(t.bounds.x,t.bounds.y),new Mh(this.Grid.columns.width,this.currentGraphics.clientSize.height)):this.currentBounds=new vh(new mh(t.bounds.x,t.bounds.y),this.currentGraphics.clientSize),0!==this.Grid.rows.count)this.currentBounds.width=t.bounds.width>0?t.bounds.width:this.currentBounds.width-this.Grid.rows.getRow(0).cells.getCell(0).style.borders.left.width/2;else{if(0===this.Grid.headers.count)throw Error("Please add row or header into grid");this.currentBounds.width=t.bounds.width}if(this.startLocation=new mh(t.bounds.x,t.bounds.y),t.bounds.height>0&&!this.Grid.isChildGrid&&(this.currentBounds.height=t.bounds.height),this.Grid.isChildGrid||(this.hType=this.Grid.style.horizontalOverflowType),this.Grid.style.allowHorizontalOverflow?(this.Grid.measureColumnsWidth(),this.determineColumnDrawRanges()):(this.columnRanges=[],void 0!==this.Grid.isChildGrid&&(this.Grid.isChildGrid,1)?this.Grid.measureColumnsWidth(this.currentBounds):this.Grid.measureColumnsWidth(new vh(this.currentBounds.x,this.currentBounds.y,this.currentBounds.x+this.currentBounds.width,this.currentBounds.height)),this.columnRanges.push([0,this.Grid.columns.count-1])),this.Grid.hasRowSpanSpan)for(var r=0;r<this.Grid.rows.count;r++)-1===this.Grid.rows.getRow(r).height||this.Grid.rows.getRow(r).isRowHeightSet||(this.Grid.rows.getRow(r).isRowHeightSet=!0);return this.layoutOnPage(t)},e.prototype.determineColumnDrawRanges=function(){for(var t=0,e=0,i=0,r=this.currentGraphics.clientSize.width-this.currentBounds.x,n=0;n<this.Grid.columns.count;n++)if((i+=this.Grid.columns.getColumn(n).width)>=r){for(var o=0,s=t;s<=n&&!((o+=this.Grid.columns.getColumn(s).width)>r);s++)e=s;this.columnRanges.push([t,e]),i=(e=t=e+1)<=n?this.Grid.columns.getColumn(n).width:0}this.columnRanges.push([t,this.Grid.columns.count-1])},e.prototype.layoutOnPage=function(t){this.pageBounds.x=t.bounds.x,this.pageBounds.y=t.bounds.y,this.pageBounds.height=t.bounds.height;for(var i=this.getFormat(t.format),r=null,n=new bu,o=t.page,s=[],a=0;a<this.columnRanges.length;a++){var l=this.columnRanges[a];this.cellStartIndex=l[0],this.cellEndIndex=l[1];var h=this.raiseBeforePageLayout(this.currentPage,this.currentBounds,this.currentRowIndex);this.currentBounds=h.currentBounds,this.currentRowIndex=h.currentRowIndex;for(var u=void 0,c=0;c<this.Grid.headers.count;c++){var p=this.Grid.headers.getHeader(c),d=this.currentBounds.y;if(this.isHeader=!0,o!=this.currentPage)for(var g=this.cellStartIndex;g<=this.cellEndIndex;g++)p.cells.getCell(g).isCellMergeContinue&&(p.cells.getCell(g).isCellMergeContinue=!1,p.cells.getCell(g).value="");var f=this.drawRow(p);d===this.currentBounds.y?(u=!0,-1===e.repeatRowIndex&&(e.repeatRowIndex=c)):u=!1,!f.isFinish&&null!==o&&i.layout!==xu.OnePage&&u&&(this.startLocation.x=this.currentBounds.x,this.currentPage=this.getNextPageformat(i),this.startLocation.y=this.currentBounds.y,void 0!==i.paginateBounds&&0===i.paginateBounds.x&&0===i.paginateBounds.y&&0===i.paginateBounds.width&&0===i.paginateBounds.height&&(this.currentBounds.x+=this.startLocation.x),this.drawRow(p)),this.isHeader=!1}var y=0,m=(this.Grid.rows.count,void 0),M=!0;s=[];for(var v=0;v<this.Grid.rows.count;v++){p=this.Grid.rows.getRow(v);y++,this.currentRowIndex=y-1;var b=this.currentBounds.y;o=this.currentPage,e.repeatRowIndex=-1,M&&p.grid.isChildGrid&&(M=!1);var w=null;if(-1==this.Grid.splitChildRowIndex)w=this.drawRow(p),p.isrowFinish=!0;else{if(!(p.grid.ParentCell.row.grid.isGridSplit&&this.Grid.splitChildRowIndex<=p.rowIndex)){if(p.isrowFinish)continue;break}w=this.drawRow(p),p.isrowFinish=!0}for(s.push(w.bounds.width),b===this.currentBounds.y?(m=!0,e.repeatRowIndex=this.Grid.rows.rowCollection.indexOf(p)):(m=!1,e.repeatRowIndex=-1);!w.isFinish&&null!=o;){var N=this.getLayoutResult();if(this.raisePageLayouted(N).cancel||m)break;if(this.Grid.allowRowBreakAcrossPages){this.currentPage=this.getNextPageformat(i),b=this.currentBounds.y;var S=new mh(rp.default.right.width/2,rp.default.top.width/2);if(0===i.paginateBounds.x&&0===i.paginateBounds.y&&0===i.paginateBounds.width&&0===i.paginateBounds.height&&this.startLocation.x===S.x&&this.startLocation.y===S.y&&(this.currentBounds.x+=this.startLocation.x,this.currentBounds.y+=this.startLocation.y),this.isPaginate&&(this.startLocation.y=this.currentBounds.y,this.isPaginate=!1),this.Grid.isChildGrid&&null!=p.grid.ParentCell&&null!=this.Grid.ParentCell.row.grid.style.cellPadding&&p.rowBreakHeight+this.Grid.ParentCell.row.grid.style.cellPadding.top<this.currentBounds.height&&(this.currentBounds.y=this.Grid.ParentCell.row.grid.style.cellPadding.top),null!=p.grid.ParentCell){p.grid.ParentCell.row.isRowBreaksNextPage=!0,p.grid.ParentCell.row.rowBreakHeightValue=p.rowBreakHeight+this.Grid.ParentCell.row.grid.style.cellPadding.top+this.Grid.ParentCell.row.grid.style.cellPadding.bottom;for(var D=p.rowIndex+1;D<p.grid.rows.count;D++)p.grid.ParentCell.row.rowBreakHeightValue+=p.grid.rows.getRow(D).height}if(p.grid.isChildGrid){p.isrowFinish=!1,p.grid.splitChildRowIndex=p.rowIndex,p.grid.ParentCell.row.grid.splitChildRowIndex=p.grid.ParentCell.row.rowIndex,p.grid.ParentCell.row.grid.isGridSplit&&(p.grid.ParentCell.row.noOfPageCount+=1,p.grid.ParentCell.row.grid.isGridSplit=!1);break}if(p.noOfPageCount<1){if(-1!=p.grid.splitChildRowIndex&&(p.grid.isGridSplit=!0),null!=p.style.border&&(null!=p.style.border.left&&1!==p.style.border.left.width||null!=p.style.border.top&&1!==p.style.border.top.width)){var j=p.style.border.left.width/2,I=p.style.border.top.width/2;if(this.currentBounds.x===rp.default.right.width/2&&this.currentBounds.y===rp.default.right.width/2){var O=new vh(j,I,this.currentBounds.width,this.currentBounds.height);this.currentBounds=O}}if(this.Grid.repeatHeader)for(var x=0;x<this.Grid.headers.count;x++){var C=this.Grid.headers.getHeader(x);this.drawRow(C)}if(w=this.drawRow(p),p.noOfPageCount>=1){p.rowBreakHeightValue;for(var z=0;z<p.noOfPageCount;z++){var T=this.getLayoutResult();if(this.raisePageLayouted(T),this.currentPage=this.getNextPageformat(i),b=this.currentBounds.y,-1!=p.grid.splitChildRowIndex&&(p.grid.isGridSplit=!0),this.currentBounds.y=.5,this.Grid.repeatHeader)for(var L=0;L<this.Grid.headers.count;L++){var A=this.Grid.headers.getHeader(L);this.drawRow(A)}this.drawRow(p)}}p.grid.splitChildRowIndex=-1,p.grid.isGridSplit=!1,w.isFinish=this.checkIsFisished(p);for(var P=0;P<p.cells.count;P++)p.cells.getCell(P).value instanceof Zp&&(p.cells.getCell(P).value.splitChildRowIndex=-1)}}}if(!w.isFinish&&null!==o&&i.layout!==xu.OnePage&&m){if(this.startLocation.x=this.currentBounds.x,this.currentPage=this.getNextPageformat(i),this.raiseBeforePageLayout(this.currentPage,this.currentBounds,this.currentRowIndex).returnValue)break;if(null!==t.format&&!t.format.usePaginateBounds&&null!==t.bounds&&t.bounds.height>0&&!this.Grid.isChildGrid&&(this.currentBounds.height=t.bounds.height),void 0===t.format||null==t.format||void 0===t.format.usePaginateBounds||t.format.usePaginateBounds||0===t.format.paginateBounds.x&&0===t.format.paginateBounds.y&&0===t.format.paginateBounds.width&&0===t.format.paginateBounds.height||0!==t.format.paginateBounds.y?(this.currentBounds.y=null==i?0:i.paginateBounds.y,null==i||0===i.paginateBounds.x&&0===i.paginateBounds.y&&0===i.paginateBounds.height&&0===i.paginateBounds.width||(this.currentBounds.x=i.paginateBounds.x,this.currentBounds.width=i.paginateBounds.width,this.currentBounds.height=i.paginateBounds.height)):this.currentBounds.y=rp.default.top.width/2,void 0!==t.format&&null!==t.format&&void 0!==t.format.usePaginateBounds&&!t.format.usePaginateBounds&&null!==t.bounds&&t.bounds.y>0&&!this.Grid.isChildGrid&&(this.currentBounds.y=t.bounds.y),this.startLocation.y=this.currentBounds.y,i.paginateBounds.x===i.paginateBounds.y&&i.paginateBounds.y===i.paginateBounds.height&&i.paginateBounds.height===i.paginateBounds.width&&0===i.paginateBounds.width&&(this.currentBounds.x+=this.startLocation.x),this.currentBounds.x===rp.default.left.width/2&&(this.currentBounds.y+=this.startLocation.x),this.Grid.repeatHeader)for(var E=0;E<this.Grid.headers.count;E++){A=this.Grid.headers.getHeader(E);this.drawRow(A)}this.drawRow(p),null===this.currentPage||n.containsKey(this.currentPage)||n.add(this.currentPage,l)}if(null!=p.NestedGridLayoutResult){this.currentPage=p.NestedGridLayoutResult.page,this.currentGraphics=this.currentPage.graphics,this.startLocation=new mh(p.NestedGridLayoutResult.bounds.x,p.NestedGridLayoutResult.bounds.y);var k=this.ReCalculateHeight(p,p.NestedGridLayoutResult.bounds.height);if(this.currentBounds.y=k,o!=this.currentPage){for(var B=(Z=this.currentPage.section).indexOf(o)+1,F=Z.indexOf(this.currentPage),R=B;R<F+1;R++){var U=Z.getPages()[R].graphics,_=new mh(i.paginateBounds.x,i.paginateBounds.y),V=R==F?p.NestedGridLayoutResult.bounds.height-t.bounds.y:this.currentBounds.height-_.y;V<=U.clientSize.height&&(V+=t.bounds.y),_.y=null==i?.5:i.paginateBounds.y;for(var Y=0;Y<p.cells.count;Y++){var Q=p.cells.getCell(Y),W=0,G=0;if(Q.value instanceof Zp)for(var H=0;H<Q.value.columns.count;H++)G+=Q.value.columns.getColumn(H).columnWidth;else G=Q.width;if(Q.columnSpan>1)for(;Y<Q.columnSpan;Y++)W+=p.grid.columns.getColumn(Y).width;else W=Math.max(G,p.grid.columns.getColumn(Y).width);Q.drawCellBorders(U,new vh(_,new Mh(W,V))),Q.drawCellBorders(U,new vh(_,new Mh(this.Grid.rows.getRow(this.Grid.rows.count-1).width,V))),_.x+=W,Y+=Q.columnSpan-1}}o=this.currentPage}}}var q=!1,$=0;s.length>0&&($=s[0]);var K=[[1,2]];for(Y=0;Y<this.Grid.rows.count;Y++)if(-1!=this.cellEndIndex&&this.Grid.rows.getRow(Y).cells.getCell(this.cellEndIndex).value instanceof Zp){var J=this.Grid.rows.getRow(Y).cells.getCell(this.cellEndIndex).value;this.rowLayoutBoundsWidth=J.rowLayoutBoundsWidth,q=!0}if(!q&&s.length>0){for(Y=0;Y<y-1;Y++)$<s[Y]&&($=s[Y]);this.rowLayoutBoundsWidth=$}else this.rowLayoutBoundsWidth=K[0][1];if(this.columnRanges.indexOf(l)<this.columnRanges.length-1&&null!=o&&i.layout!=xu.OnePage)if(this.Grid.isChildGrid,0!=K[0][0]){var Z;(Z=this.currentPage.section).indexOf(this.currentPage);this.currentGraphics=this.currentPage.graphics,this.currentBounds=new vh(new mh(0,0),this.currentPage.getClientSize());this.currentGraphics.page.section.indexOf(this.currentGraphics.page)}else this.currentPage=this.getNextPageformat(i);this.columnRanges.length-1!==a&&this.columnRanges.length>1&&i.layout!==xu.OnePage&&(this.currentPage=this.getNextPageformat(i),i.paginateBounds.x===i.paginateBounds.y&&i.paginateBounds.y===i.paginateBounds.height&&i.paginateBounds.height===i.paginateBounds.width&&0===i.paginateBounds.width&&(this.currentBounds.x+=this.startLocation.x,this.currentBounds.y+=this.startLocation.y))}return r=this.getLayoutResult(),this.Grid.style.allowHorizontalOverflow&&this.Grid.style.horizontalOverflowType==Fp.NextPage&&this.reArrangePages(n),this.raisePageLayouted(r),r},e.prototype.checkIsFisished=function(t){for(var e=!0,i=0;i<t.cells.count;i++)t.cells.getCell(i).FinishedDrawingCell||(e=!1);return e},e.prototype.getNextPageformat=function(t){var e=this.currentPage.section,i=null,r=e.indexOf(this.currentPage);this.flag=!1,i=r===e.count-1?e.add():e.getPages()[r+1],this.currentGraphics=i.graphics;var n=this.currentGraphics.page.section.indexOf(this.currentGraphics.page);return-1===this.listOfNavigatePages.indexOf(n)&&this.listOfNavigatePages.push(n),this.currentBounds=new vh(new mh(0,0),i.getClientSize()),void 0!==t&&null!=t&&t.usePaginateBounds&&void 0!==t.paginateBounds&&null!=t.paginateBounds&&t.paginateBounds.x!==t.paginateBounds.y&&t.paginateBounds.y!==t.paginateBounds.height&&t.paginateBounds.height!==t.paginateBounds.width&&0!==t.paginateBounds.width&&(this.currentBounds.x=t.paginateBounds.x,this.currentBounds.y=t.paginateBounds.y,this.currentBounds.height=t.paginateBounds.height),i},e.prototype.CheckIfDefaultFormat=function(t){var e=new Bh;return t.alignment===e.alignment&&t.characterSpacing===e.characterSpacing&&t.clipPath===e.clipPath&&t.firstLineIndent===e.firstLineIndent&&t.horizontalScalingFactor===e.horizontalScalingFactor&&t.lineAlignment===e.lineAlignment&&t.lineLimit===e.lineLimit&&t.lineSpacing===e.lineSpacing&&t.measureTrailingSpaces===e.measureTrailingSpaces&&t.noClip===e.noClip&&t.paragraphIndent===e.paragraphIndent&&t.rightToLeft===e.rightToLeft&&t.subSuperScript===e.subSuperScript&&t.wordSpacing===e.wordSpacing&&t.wordWrap===e.wordWrap},e.prototype.RaiseBeforeCellDraw=function(t,e,i,r,n,o){var s=null;return this.Grid.raiseBeginCellDraw&&(s=new nd(t,e,i,r,n,o),this.Grid.onBeginCellDraw(s),o=s.style),o},e.prototype.raiseAfterCellDraw=function(t,e,i,r,n,o){var s=null;this.Grid.raiseEndCellDraw&&(s=new od(t,e,i,r,n,o),this.Grid.onEndCellDraw(s))},e.prototype.reArrangePages=function(t){for(var e=this.currentPage.document,i=[],r=t.keys(),n=(t.values(),0);n<r.length;n++){(a=r[n]).section=null,i.push(a),e.pages.remove(a)}for(n=0;n<t.size();n++)for(var o=n,s=t.size()/this.columnRanges.length;o<t.size();o+=s){var a;void 0!==(a=i[o])&&-1===e.pages.indexOf(a)&&e.pages.add(a)}},e.prototype.getLayoutResult=function(){if(this.Grid.isChildGrid&&this.Grid.allowRowBreakAcrossPages)for(var t=0;t<this.Grid.rows.count;t++){var e=this.Grid.rows.getRow(t);e.rowBreakHeight>0&&e.repeatFlag&&(this.startLocation.y=this.currentPage.origin.y)}var i;return this.isChanged||(i=new vh(this.startLocation,new Mh(this.currentBounds.width,this.currentBounds.y-this.startLocation.y))),new ed(this.currentPage,i)},e.prototype.ReCalculateHeight=function(t,e){for(var i=0,r=this.cellStartIndex;r<=this.cellEndIndex;r++)null!==t.cells.getCell(r).remainingString&&""!==t.cells.getCell(r).remainingString&&void 0!==t.cells.getCell(r).remainingString&&(i=Math.max(i,t.cells.getCell(r).measureHeight()));return Math.max(e,i)},e.prototype.raiseBeforePageLayout=function(t,e,i){var r=!1;if(this.Grid.raiseBeginPageLayout){var n=new hd(e,t,i);this.Grid.onBeginPageLayout(n),r=void 0!==n.cancel&&n.cancel,e=n.bounds,i=n.startRowIndex}return{returnValue:r,currentBounds:e,currentRowIndex:i}},e.prototype.raisePageLayouted=function(t){var e=new ud(t);return this.Grid.raiseEndPageLayout&&this.Grid.onEndPageLayout(e),e},e.prototype.drawRow=function(t,i,r){if(void 0===i){var n=new cd,o=0,s=new Mh(0,0),a=!1;if(t.rowSpanExists){var l=0,h=this.Grid.rows.rowCollection.indexOf(t);-1===h&&-1!==(h=this.Grid.headers.indexOf(t))&&(a=!0);for(var u=0;u<t.cells.count;u++){var c=t.cells.getCell(u);l=Math.max(l,c.rowSpan)}for(u=h;u<h+l;u++)o+=a?this.Grid.headers.getHeader(u).height:this.Grid.rows.getRow(u).height}var p=t.rowBreakHeight>0?t.rowBreakHeight:t.height;if(void 0!==this.Grid.isChildGrid&&this.Grid.isChildGrid&&void 0!==this.Grid.ParentCell&&null!=this.Grid.ParentCell)this.currentBounds.y+this.Grid.ParentCell.row.grid.style.cellPadding.bottom+p>this.currentPageBounds.height||this.currentBounds.y+this.Grid.ParentCell.row.grid.style.cellPadding.bottom+p>this.currentBounds.height||this.currentBounds.y+this.Grid.ParentCell.row.grid.style.cellPadding.bottom+o>this.currentPageBounds.height?(void 0!==this.Grid.ParentCell.row.grid.LayoutFormat&&this.Grid.ParentCell.row.grid.LayoutFormat.break===hc.FitPage&&(e.repeatRowIndex=this.Grid.rows.rowCollection.indexOf(t),this.Grid.splitChildRowIndex=this.Grid.rows.rowCollection.indexOf(t)),e.repeatRowIndex>-1&&e.repeatRowIndex===t.rowIndex&&this.Grid.allowRowBreakAcrossPages&&(n.isFinish=!0,n.bounds=this.currentBounds,this.drawRowWithBreak(n,t,p),t.repeatFlag=!0,t.repeatRowNumber=e.repeatRowIndex)):(n.isFinish=!0,t.grid.ParentCell.row.rowBreakHeightValue>0?t.repeatFlag=!0:(t.repeatFlag=!1,p=t.height),this.Grid.isChildGrid&&t.rowBreakHeight>0&&null!=this.Grid.ParentCell.row.grid.style.cellPadding&&(p+=this.Grid.ParentCell.row.grid.style.cellPadding.bottom),this.drawRow(t,n,p));else if(p>this.currentPageBounds.height)this.Grid.allowRowBreakAcrossPages&&(n.isFinish=!0,this.drawRowWithBreak(n,t,p),t.isrowFinish=!0,t.repeatFlag=!0,-1!==t.grid.splitChildRowIndex&&(n.isFinish=!1));else if(this.currentBounds.y+p>this.currentPageBounds.height||this.currentBounds.y+p>this.currentBounds.height+this.startLocation.y||this.currentBounds.y+o>this.currentPageBounds.height){var d=!1;!this.Grid.allowRowBreakAcrossPages||this.Grid.repeatHeader||t.isRowHeightSet||t.rowMergeComplete?this.Grid.allowRowBreakAcrossPages&&null!=this.Grid.LayoutFormat&&this.Grid.LayoutFormat.layout==xu.Paginate&&this.Grid.LayoutFormat.break!=hc.FitElement&&t.isRowHeightSet&&this.currentBounds.y+r>this.currentPageBounds.height&&((d=this.isFitToCell(this.currentPageBounds.height-this.currentBounds.y,this.Grid,t))||(d=!(null!==this.slr&&0==this.slr.actualSize.height&&null!=this.slr.remainder&&this.slr.remainder.length>0&&this.remainderText==this.slr.remainder)),d&&null!=this.slr&&this.slr.lineCount>1&&(d=!1),this.remainderText=null):(d=null!==this.Grid.LayoutFormat&&this.Grid.LayoutFormat.paginateBounds.height>0?this.isFitToCell(this.currentBounds.height+this.startLocation.y-this.currentBounds.y,this.Grid,t):this.isFitToCell(this.currentPageBounds.height-this.currentBounds.y,this.Grid,t))&&(this.isPaginate=!0),e.repeatRowIndex>-1&&e.repeatRowIndex===t.rowIndex||d?this.Grid.allowRowBreakAcrossPages?(n.isFinish=!0,this.drawRowWithBreak(n,t,p),t.repeatFlag=!0,t.repeatRowNumber=e.repeatRowIndex,-1!==t.grid.splitChildRowIndex&&(n.isFinish=!1)):(n.isFinish=!1,this.drawRow(t,n,p)):n.isFinish=!1}else n.isFinish=!0,this.drawRow(t,n,p),t.repeatFlag=!1;return n}var g=new mh(this.currentBounds.x,this.currentBounds.y);i.bounds=new vh(g,new Mh(0,0)),r=this.ReCalculateHeight(t,r);for(u=this.cellStartIndex;u<=this.cellEndIndex;u++){var f=u>this.cellEndIndex+1&&t.cells.getCell(u).columnSpan>1;if(!f)for(var y=1;y<t.cells.getCell(u).columnSpan;y++)t.cells.getCell(u+y).isCellMergeContinue=!0;s=new Mh(this.Grid.columns.getColumn(u).width,r);!this.CheckIfDefaultFormat(this.Grid.columns.getColumn(u).format)&&this.CheckIfDefaultFormat(t.cells.getCell(u).stringFormat)&&(t.cells.getCell(u).stringFormat=this.Grid.columns.getColumn(u).format);var m=t.cells.getCell(u).style,M="string"==typeof t.cells.getCell(u).value&&null!==t.cells.getCell(u).value?t.cells.getCell(u).value:"";if(t.cells.getCell(u).style=this.RaiseBeforeCellDraw(this.currentGraphics,this.currentRowIndex,u,new vh(g,s),M,m),t.cells.getCell(u).value instanceof Zp){(b=t.cells.getCell(u).value).parentCellIndex=u}var v=t.cells.getCell(u).draw(this.currentGraphics,new vh(g,s),f);if(t.grid.style.allowHorizontalOverflow&&(t.cells.getCell(u).columnSpan>this.cellEndIndex||u+t.cells.getCell(u).columnSpan>this.cellEndIndex+1)&&this.cellEndIndex<t.cells.count-1&&(t.rowOverflowIndex=this.cellEndIndex),t.grid.style.allowHorizontalOverflow&&t.rowOverflowIndex>0&&(t.cells.getCell(u).columnSpan>this.cellEndIndex||u+t.cells.getCell(u).columnSpan>this.cellEndIndex+1)&&t.cells.getCell(u).columnSpan-this.cellEndIndex+u-1>0&&(t.cells.getCell(t.rowOverflowIndex+1).value=null!==v&&void 0!==v.remainder?v.remainder:"",t.cells.getCell(t.rowOverflowIndex+1).stringFormat=t.cells.getCell(u).stringFormat,t.cells.getCell(t.rowOverflowIndex+1).style=t.cells.getCell(u).style,t.cells.getCell(t.rowOverflowIndex+1).columnSpan=t.cells.getCell(u).columnSpan-this.cellEndIndex+u-1),M="string"==typeof t.cells.getCell(u).value&&null!==t.cells.getCell(u).value?t.cells.getCell(u).value:"",f||this.raiseAfterCellDraw(this.currentGraphics,this.currentRowIndex,u,new vh(g,s),M,t.cells.getCell(u).style),t.cells.getCell(u).value instanceof Zp){var b=t.cells.getCell(u).value;this.Grid.columns.getColumn(u).width>=this.currentGraphics.clientSize.width?(g.x=b.rowLayoutBoundsWidth,g.x+=b.style.cellSpacing):g.x+=this.Grid.columns.getColumn(u).width}else g.x+=this.Grid.columns.getColumn(u).width}t.rowMergeComplete&&!t.isRowHeightSet||(this.currentBounds.y+=r),i.bounds=new vh(new mh(i.bounds.x,i.bounds.y),new Mh(g.x,g.y))},e.prototype.isFitToCell=function(t,e,i){for(var r=!1,n=new Rh,o=0;o<i.cells.count;o++){var s=i.cells.getCell(o);if(void 0!==s.value&&null!==s.value&&"string"==typeof s.value){var a=null;a=void 0!==s.style.font&&null!=s.style.font?s.style.font:void 0!==s.row.style.font&&null!=s.row.style.font?s.row.style.font:void 0!==s.row.grid.style.font&&null!=s.row.grid.style.font?s.row.grid.style.font:Yc.defaultFont,this.remainderText=s.value;var l=s.width,h=e.columns.getColumn(o);h.isCustomWidth&&s.width>h.width&&(l=h.width),this.slr=n.layout(s.value,a,s.stringFormat,new Mh(l,t),!1,this.currentPageBounds);var u=this.slr.actualSize.height;if(""!==s.value&&0===u){r=!1;break}if(null!==s.style&&null!==s.style.borders&&null!==s.style.borders.top&&null!==s.style.borders.bottom&&(u+=2*(s.style.borders.top.width+s.style.borders.bottom.width)),this.slr.lineCount>1&&null!=s.stringFormat&&0!=s.stringFormat.lineSpacing&&(u+=(this.slr.lineCount-1)*s.style.stringFormat.lineSpacing),s.style.cellPadding,u+=e.style.cellPadding.top+e.style.cellPadding.bottom,u+=e.style.cellSpacing,t>u||void 0!==this.slr.remainder&&null!==this.slr.remainder){r=!0;break}}}return r},e.prototype.drawRowWithBreak=function(t,e,i){var r=new mh(this.currentBounds.x,this.currentBounds.y);e.grid.isChildGrid&&e.grid.allowRowBreakAcrossPages&&this.startLocation.x!==this.currentBounds.x&&(r.x=this.startLocation.x),t.bounds=new vh(r,new Mh(0,0)),this.gridHeight=e.rowBreakHeight>0?this.currentPageBounds.height:0,e.grid.style.cellPadding.top+this.currentBounds.y+e.grid.style.cellPadding.bottom<this.currentPageBounds.height&&(e.rowBreakHeight=this.currentBounds.y+i-this.currentPageBounds.height);for(var n=0;n<e.cells.count;n++){var o=e.cells.getCell(n);o.measureHeight()===i&&o.value instanceof Zp&&(e.rowBreakHeight=0)}for(n=this.cellStartIndex;n<=this.cellEndIndex;n++){var s=this.Grid.columns.getColumn(n).width,a=e.cells.getCell(n).columnSpan+n>this.cellEndIndex+1&&e.cells.getCell(n).columnSpan>1;if(!a)for(var l=1;l<e.cells.getCell(n).columnSpan;l++)e.cells.getCell(n+l).isCellMergeContinue=!0,s+=this.Grid.columns.getColumn(n+l).width;var h=new Mh(s,this.gridHeight>0?this.gridHeight:this.currentPageBounds.height),u=e.cells.getCell(n).style;e.cells.getCell(n).style=u;var c=null;if(e.cells.getCell(n)._rowHeight=e.height,c=e.cells.getCell(n).draw(this.currentGraphics,new vh(r,h),a),e.rowBreakHeight>0&&null!=c&&void 0!==c.remainder&&(e.cells.getCell(n).FinishedDrawingCell=!1,e.cells.getCell(n).remainingString=null==c.remainder?" ":c.remainder,e.rowBreakHeight=i-c.actualSize.height),t.isFinish=t.isFinish?e.cells.getCell(n).FinishedDrawingCell:t.isFinish,e.cells.getCell(n).value instanceof Zp){var p=e.cells.getCell(n).value;this.rowBreakPageHeightCellIndex=n,this.Grid.columns.getColumn(n).width>=this.currentGraphics.clientSize.width?(r.x=this.rowLayoutBoundsWidth,r.x+=p.style.cellSpacing):r.x+=this.Grid.columns.getColumn(n).width}else r.x+=this.Grid.columns.getColumn(n).width}this.currentBounds.y+=this.gridHeight>0?this.gridHeight:i,t.bounds=new vh(new mh(t.bounds.x,t.bounds.y),new Mh(r.x,r.y))},e.repeatRowIndex=-1,e}(Xc),ed=function(t){function e(e,i){return t.call(this,e,i)||this}return Xp(e,t),e}(ip),id=function(t){function e(e){return t.call(this,e)||this}return Xp(e,t),e}(tp),rd=function(){function t(t,e,i,r,n){this.gridRowIndex=e,this.gridCellIndex=i,this.internalValue=n,this.gridBounds=r,this.pdfGraphics=t}return Object.defineProperty(t.prototype,"rowIndex",{get:function(){return this.gridRowIndex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cellIndex",{get:function(){return this.gridCellIndex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.internalValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bounds",{get:function(){return this.gridBounds},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"graphics",{get:function(){return this.pdfGraphics},enumerable:!0,configurable:!0}),t}(),nd=function(t){function e(e,i,r,n,o,s){var a=t.call(this,e,i,r,n,o)||this;return a.style=s,a}return Xp(e,t),Object.defineProperty(e.prototype,"skip",{get:function(){return this.bSkip},set:function(t){this.bSkip=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"style",{get:function(){return this.cellStyle},set:function(t){this.cellStyle=t},enumerable:!0,configurable:!0}),e}(rd),od=function(t){function e(e,i,r,n,o,s){var a=t.call(this,e,i,r,n,o)||this;return a.cellStyle=s,a}return Xp(e,t),Object.defineProperty(e.prototype,"style",{get:function(){return this.cellStyle},enumerable:!0,configurable:!0}),e}(rd),sd=function(){function t(){}return Object.defineProperty(t.prototype,"cancel",{get:function(){return this.isCancel},set:function(t){this.isCancel=t},enumerable:!0,configurable:!0}),t}(),ad=function(t){function e(e,i){var r=t.call(this)||this;return r.bounds=e,r.pdfPage=i,r}return Xp(e,t),Object.defineProperty(e.prototype,"bounds",{get:function(){return this.cellBounds},set:function(t){this.cellBounds=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"page",{get:function(){return this.pdfPage},enumerable:!0,configurable:!0}),e}(sd),ld=function(t){function e(e){var i=t.call(this)||this;return i.layoutResult=e,i}return Xp(e,t),Object.defineProperty(e.prototype,"result",{get:function(){return this.layoutResult},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nextPage",{get:function(){return this.nextPdfPage},set:function(t){this.nextPdfPage=t},enumerable:!0,configurable:!0}),e}(sd),hd=function(t){function e(e,i,r){var n=t.call(this,e,i)||this;return n.startRow=r,n}return Xp(e,t),Object.defineProperty(e.prototype,"startRowIndex",{get:function(){return this.startRow},enumerable:!0,configurable:!0}),e}(ad),ud=function(t){function e(e){return t.call(this,e)||this}return Xp(e,t),e}(ld),cd=function(){function t(){this.layoutedBounds=new vh(0,0,0,0)}return Object.defineProperty(t.prototype,"isFinish",{get:function(){return this.bIsFinished},set:function(t){this.bIsFinished=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bounds",{get:function(){return this.layoutedBounds},set:function(t){this.layoutedBounds=t},enumerable:!0,configurable:!0}),t}(),pd=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),dd=function(t){function e(e){var i=t.call(this,e)||this;return i.olderPdfForm=0,i.shapeBounds=new vh,i.totalPageSize=0,i}return pd(e,t),Object.defineProperty(e.prototype,"element",{get:function(){return this.elements},enumerable:!0,configurable:!0}),e.prototype.layoutInternal=function(t){var e=t.page,i=t.bounds,r=this.element.getBounds();r.x=0,r.y=0;var n=this.shapeBounds.x===this.shapeBounds.y&&this.shapeBounds.y===this.shapeBounds.width&&this.shapeBounds.width===this.shapeBounds.height&&0===this.shapeBounds.height;this.isPdfGrid&&!n&&(r=this.shapeBounds);var o=null,s=new gd;for(s.page=e;;){var a=this.raiseBeforePageLayout(e,i);i=a.currentBounds;var l=null;if(a.cancel||(s=this.layoutOnPage(e,i,r,t),l=this.raiseEndPageLayout(s),a.cancel=null!==l&&l.cancel),s.end||a.cancel){o=this.getLayoutResult(s);break}if(i=this.getPaginateBounds(t),r=this.getNextShapeBounds(r,s),e=null===l||null===l.nextPage?this.getNextPage(e):l.nextPage,this.isPdfGrid){o=this.getLayoutResult(s);break}}return o},e.prototype.raiseBeforePageLayout=function(t,e){var i=!1;if(this.element.raiseBeginPageLayout){var r=new ad(e,t);this.element.onBeginPageLayout(r),i=r.cancel,e=r.bounds}return{currentBounds:e,cancel:i}},e.prototype.raiseEndPageLayout=function(t){var e=null;if(this.element.raiseEndPageLayout){var i=this.getLayoutResult(t);e=new ld(i),this.element.onEndPageLayout(e)}return e},e.prototype.getLayoutResult=function(t){return new ip(t.page,t.bounds)},e.prototype.getNextShapeBounds=function(t,e){var i=e.bounds;return t.y=t.y+i.height,t.height=t.height-i.height,t},e.prototype.layoutOnPage=function(t,e,i,r){var n=new gd;e=this.checkCorrectCurrentBounds(t,e,r);var o=this.fitsToBounds(e,i),s=!1;if(!(r.format.break===hc.FitElement&&!o&&t===r.page)){var a=this.getDrawBounds(e,i);this.drawShape(t.graphics,e,a),n.bounds=this.getPageResultBounds(e,i),s=e.height>=i.height}return n.end=s||r.format.layout===xu.OnePage,n.page=t,n},e.prototype.getDrawBounds=function(t,e){var i=t;return i.y=i.y-e.y,i.height=i.height+e.y,i},e.prototype.drawShape=function(t,e,i){var r=t.save();try{t.setClip(e),this.element.drawGraphicsHelper(t,new mh(i.x,i.y))}finally{t.restore(r)}},e.prototype.checkCorrectCurrentBounds=function(t,e,i){var r=t.graphics.clientSize;return e.width=e.width>0?e.width:r.width-e.x,e.height=e.height>0?e.height:r.height-e.y,this.isPdfGrid&&(e.height=e.height-this.bottomCellPadding),e},e.prototype.getPageResultBounds=function(t,e){var i=t;return i.height=Math.min(i.height,e.height),i},e.prototype.fitsToBounds=function(t,e){return e.height<=t.height},e.index=0,e.splitDiff=0,e.last=!1,e.borderWidth=0,e}(Xc),gd=function(){return function(){}}(),fd=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),yd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return fd(e,t),e.prototype.getBounds=function(){return this.getBoundsInternal()},e.prototype.drawGraphicsHelper=function(t,e){if(null==t)throw new Error("ArgumentNullException :graphics");this.drawShapeHelper(t,e.x,e.y)},e.prototype.drawShapeHelper=function(t,e,i){var r=.5!==e||.5!==i,n=null;r&&(n=t.save(),t.translateTransform(e,i)),this.drawInternal(t),r&&t.restore(n)},e.prototype.layout=function(t){return new dd(this).layout(t)},e}(op),md=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Md=function(t){function e(e){var i=t.call(this)||this;return void 0!==e&&(i.mpen=e),i}return md(e,t),Object.defineProperty(e.prototype,"pen",{get:function(){return this.mpen},set:function(t){this.mpen=t},enumerable:!0,configurable:!0}),e}(yd),vd=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),bd=function(t){function e(e,i){var r=t.call(this)||this;return r.mbrush=null,void 0===e||(e instanceof yu?r=t.call(this,e)||this:r.mbrush=i),r}return vd(e,t),Object.defineProperty(e.prototype,"brush",{get:function(){return this.mbrush},set:function(t){this.mbrush=t},enumerable:!0,configurable:!0}),e.prototype.obtainPen=function(){return null==this.mbrush&&null==this.pen?new yu(new yh(0,0,0)):this.pen},e}(Md),wd=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Nd=(function(t){function e(e,i,r,n){var o=t.call(this)||this;return o.mpoints=null,o.mpathTypes=null,o.mStartFigure=!0,o.mfillMode=hh.Alternate,o.isBeziers3=!1,o.isXps=!1,void 0===e||(e instanceof yu?(o=t.call(this,e)||this,i instanceof wh?(o=t.call(this,e,i)||this).fillMode=r:null!==i&&void 0!==i&&null!==r&&void 0!==r&&o.addPath(i,r)):e instanceof wh?(o=t.call(this,e)||this,null!==i&&void 0!==i&&(o.fillMode=i),null!==r&&void 0!==r&&null!==n&&void 0!==n&&o.addPath(r,n)):o.addPath(e,i)),o}wd(e,t),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this.mfillMode},set:function(t){this.mfillMode=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pathPoints",{get:function(){return this.points},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pathTypes",{get:function(){return this.types},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pointCount",{get:function(){var t=0;return null!=this.mpoints&&(t=this.mpoints.length),t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastPoint",{get:function(){return this.getLastPoint()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"points",{get:function(){return null==this.mpoints&&(this.mpoints=[]),this.mpoints},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"types",{get:function(){return null==this.mpathTypes&&(this.mpathTypes=[]),this.mpathTypes},enumerable:!0,configurable:!0}),e.prototype.draw=function(t,e,i,r){if(e instanceof mh&&void 0===e.width&&void 0===i)return this.drawHelper(t,e.x,e.y);if(e instanceof vh&&void 0!==e.width&&void 0===i)return this.drawHelper(t,e,null);if("number"==typeof e&&"number"==typeof i&&void 0===r)return this.drawHelper(t,e,i,null);if(e instanceof mh&&i instanceof tp)return this.drawHelper(t,e.x,e.y,i);if("number"==typeof e&&(r instanceof tp||null==r)&&"number"==typeof i){var n=t.graphics.clientSize.width-e,o=new vh(e,i,n,0);return this.drawHelper(t,o,r)}return this.drawHelper(t,e,i)},e.prototype.addArc=function(t,e,i,r,n,o){if(t instanceof vh)this.addArc(t.x,t.y,t.width,t.height,e,i);else for(var s=this.getBezierArcPoints(t,e,e+i,e+r,n,o),a=0;a<s.length;a+=8){var l=[s[a],s[a+1],s[a+2],s[a+3],s[a+4],s[a+5],s[a+6],s[a+7]];this.addPoints(l,uc.Bezier3)}},e.prototype.addBezier=function(t,e,i,r,n,o,s,a){if(t instanceof mh&&e instanceof mh&&i instanceof mh&&r instanceof mh)this.addBezier(t.x,t.y,e.x,e.y,i.x,i.y,r.x,r.y);else{var l=[];l.push(t),l.push(e),l.push(i),l.push(r),l.push(n),l.push(o),l.push(s),l.push(a),this.addPoints(l,uc.Bezier3)}},e.prototype.addEllipse=function(t,e,i,r){t instanceof vh?this.addEllipse(t.x,t.y,t.width,t.height):(this.startFigure(),this.addArc(t,e,i,r,0,360),this.closeFigure())},e.prototype.addLine=function(t,e,i,r){if(t instanceof mh&&e instanceof mh)this.addLine(t.x,t.y,e.x,e.y);else{var n=[];n.push(t),n.push(e),n.push(i),n.push(r),this.addPoints(n,uc.Line)}},e.prototype.addPath=function(t,i){if(t instanceof e)this.addPath(t.pathPoints,t.pathTypes);else{if(null==t)throw new Error("ArgumentNullException:pathPoints");if(null==i)throw new Error("ArgumentNullException:pathTypes");if(t.length!==i.length)throw new Error("The argument arrays should be of equal length.")}},e.prototype.addPie=function(t,e,i,r,n,o){t instanceof vh?this.addPie(t.x,t.y,t.width,t.height,e,i):(this.startFigure(),this.addArc(t,e,i,r,n,o),this.addPoint(new mh(t+i/2,e+r/2),uc.Line),this.closeFigure())},e.prototype.addPolygon=function(t){t.length;var e=[];this.startFigure();for(var i=0;i<t.length;i++)e.push(t[i].x),e.push(t[i].y);this.addPoints(e,uc.Line),this.closeFigure()},e.prototype.addRectangle=function(t,e,i,r){if(t instanceof vh)this.addRectangle(t.x,t.y,t.width,t.height);else{var n=[];this.startFigure(),n.push(t),n.push(e),n.push(t+i),n.push(e),n.push(t+i),n.push(e+r),n.push(t),n.push(e+r),this.addPoints(n,uc.Line),this.closeFigure()}},e.prototype.startFigure=function(){this.mStartFigure=!0},e.prototype.closeAllFigures=function(){for(var t=this.pathPoints[0],e=0;e<this.mpathTypes.length;e++){var i=this.types[e],r=!1;0!==e&&i===uc.Start?(this.closeFigure(e-1),r=!0):e===this.mpathTypes.length-1&&!r&&this.isXps&&t.x===this.pathPoints[e].y&&this.closeFigure(e)}},e.prototype.getLastPoint=function(){var t=new mh(0,0),e=this.pointCount;return e>0&&null!=this.mpoints&&(t.x=this.mpoints[e-1].x,t.y=this.mpoints[e-1].y),t},e.prototype.getBezierArcPoints=function(t,e,i,r,n,o){if(t>i){var s=void 0;s=t,t=i,i=s}if(r>e){s=void 0;s=e,e=r,r=s}var a,l;Math.abs(o)<=90?(a=o,l=1):a=o/(l=Math.ceil(Math.abs(o)/90));for(var h=(t+i)/2,u=(e+r)/2,c=(i-t)/2,p=(r-e)/2,d=a*(Math.PI/360),g=Math.abs(4/3*(1-Math.cos(d))/Math.sin(d)),f=[],y=0;y<l;y++){var m=(n+y*a)*(Math.PI/180),M=(n+(y+1)*a)*(Math.PI/180),v=Math.cos(m),b=Math.cos(M),w=Math.sin(m),N=Math.sin(M);a>0?f.push(h+c*v,u-p*w,h+c*(v-g*w),u-p*(w+g*v),h+c*(b+g*N),u-p*(N-g*b),h+c*b,u-p*N):f.push(h+c*v,u-p*w,h+c*(v+g*w),u-p*(w-g*v),h+c*(b-g*N),u-p*(N+g*b),h+c*b,u-p*N)}return f},e.prototype.getBoundsInternal=function(){var t=this.pathPoints,e=new vh(0,0,0,0);if(t.length>0){for(var i=t[0].x,r=t[0].x,n=t[0].y,o=t[0].y,s=1;s<t.length;s++){var a=t[s];i=Math.min(a.x,i),r=Math.max(a.x,r),n=Math.min(a.y,n),o=Math.max(a.y,o)}e=new vh(i,n,r-i,o-n)}return e},e.prototype.drawInternal=function(t){if(null==t)throw new Error("ArgumentNullException :graphics");t.drawPath(this.obtainPen(),this.brush,this)},e.prototype.addPoints=function(t,e,i,r){if(void 0===i&&void 0===r)this.addPoints(t,e,0,t.length);else for(var n=i;n<r;n++){var o=new mh(t[n],t[n+1]);n===i?this.pointCount<=0||this.mStartFigure?(this.addPoint(o,uc.Start),this.mStartFigure=!1):o.x===this.lastPoint.x||o.y===this.lastPoint.y||this.isBeziers3?o.x!==this.lastPoint.x&&o.y!==this.lastPoint.y&&this.addPoint(o,uc.Bezier3):this.addPoint(o,uc.Line):this.addPoint(o,e),n++}},e.prototype.addPoint=function(t,e){this.points.push(t),this.types.push(e)},e.prototype.closeFigure=function(t){if(void 0===t)this.pointCount>0&&this.closeFigure(this.pointCount-1),this.startFigure();else{if(t<0)throw new Error("IndexOutOfRangeException()");var e=this.types[t];e|=uc.CloseSubpath,this.types[t]=e}}}(bd),function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}()),Sd=function(t){function e(e,i,r,n,o,s){var a=t.call(this)||this;return a.bounds=new vh(0,0,0,0),void 0===e||(e instanceof yu?(a=t.call(this,e,i)||this).bounds=r instanceof vh?r:new vh(r,n,o,s):a.bounds=e instanceof vh?e:new vh(e,i,r,n)),a}return Nd(e,t),Object.defineProperty(e.prototype,"x",{get:function(){return this.bounds.x},set:function(t){this.bounds.x=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this.bounds.y},set:function(t){this.bounds.y=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.bounds.width},set:function(t){this.bounds.width=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.bounds.height},set:function(t){this.bounds.height=t},enumerable:!0,configurable:!0}),e.prototype.getBoundsInternal=function(){return this.bounds},e}(bd),Dd=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),jd=function(t){function e(e,i,r,n,o,s,a,l){var h=t.call(this)||this;return h.startAngle=0,h.sweepAngle=0,void 0===e||(e instanceof vh&&void 0!==i&&void 0!==r?((h=t.call(this,e)||this).startAngle=i,h.sweepAngle=r):e instanceof yu?r instanceof vh?((h=t.call(this,e,i,r)||this).startAngle=n,h.sweepAngle=o):((h=t.call(this,e,i,r,n,o,s)||this).startAngle=a,h.sweepAngle=l):((h=t.call(this,e,i,r,n)||this).startAngle=o,h.sweepAngle=s)),h}return Dd(e,t),e}(Sd),Id=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Od=(function(t){function e(e,i,r,n,o,s,a){var l=this;return void 0===e?l=t.call(this)||this:e instanceof vh?l=t.call(this,e,i,r)||this:e instanceof yu?i instanceof vh?l=t.call(this,e,null,i,r,n)||this:void 0===s&&void 0===a?l=t.call(this,e,null,0,0,i,r,n,o)||this:void 0!==s&&void 0!==a&&(l=t.call(this,e,null,i,r,n,o,s,a)||this):void 0!==e&&void 0===o&&void 0===s?l=t.call(this,0,0,e,i,r,n)||this:void 0!==e&&void 0!==o&&void 0!==s&&(l=t.call(this,e,i,r,n,o,s)||this),l}Id(e,t),e.prototype.draw=function(t,e,i,r){if(e instanceof mh&&void 0===e.width&&void 0===i)return this.drawHelper(t,e.x,e.y);if(e instanceof vh&&void 0!==e.width&&void 0===i)return this.drawHelper(t,e,null);if("number"==typeof e&&"number"==typeof i&&void 0===r)return this.drawHelper(t,e,i,null);if(e instanceof mh&&i instanceof tp)return this.drawHelper(t,e.x,e.y,i);if("number"==typeof e&&(r instanceof tp||null==r)&&"number"==typeof i){var n=t.graphics.clientSize.width-e,o=new vh(e,i,n,0);return this.drawHelper(t,o,r)}return this.drawHelper(t,e,i)},e.prototype.drawInternal=function(t){if(null==t)throw new Error("ArgumentNullException : graphics");t.drawArc(this.obtainPen(),this.bounds,this.startAngle,this.sweepAngle)}}(jd),function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}()),xd=(function(t){function e(e,i,r){var n=t.call(this,i)||this;return n.isEmbedFont=!1,n.isUnicode=!0,void 0!==r?n.createFontInternal(e,r):n.createFontInternal(e,fh.Regular),n}Od(e,t),e.prototype.equalsToFont=function(t){return!1},e.prototype.getLineWidth=function(t,e){var i=0;if(null!==e&&void 0!==e&&e.textDirection!==gh.None){i=this.getUnicodeLineWidth(t,i,e).width}else i=this.fontInternal.getLineWidth(t);var r=this.metrics.getSize(e);return i*=Yh.charSizeMultiplier*r,i=this.applyFormatSettings(t,e,i)},e.prototype.getCharWidth=function(t,e){var i=this.fontInternal.getCharWidth(t);return i*=.001*this.metrics.getSize(e)},e.prototype.createFontInternal=function(t,e){this.fontInternal=new rc(t,this.size),this.calculateStyle(e),this.initializeInternals()},e.prototype.calculateStyle=function(t){var e=this.fontInternal.ttfMetrics.macStyle;0!=(t&fh.Underline)&&(e|=fh.Underline),0!=(t&fh.Strikeout)&&(e|=fh.Strikeout),this.setStyle(e)},e.prototype.initializeInternals=function(){var t=null;Yc.enableCache&&(t=Yc.cache.search(this));var e=null;if(null!==t&&void 0!==t){e=t.getInternals();var i=t.metrics;(i=i.clone()).size=this.size,this.metrics=i,this.fontInternal=t.fontInternal}else null==t&&(this.fontInternal instanceof rc&&(this.fontInternal.isEmbed=this.isEmbedFont),this.fontInternal.createInternals(),e=this.fontInternal.getInternals(),this.metrics=this.fontInternal.metrics);this.metrics.isUnicodeFont=!0,this.setInternals(e)},e.prototype.setSymbols=function(t){var e=this.fontInternal;null!=e&&e.setSymbols(t)},Object.defineProperty(e.prototype,"Unicode",{get:function(){return this.isUnicode},enumerable:!0,configurable:!0}),e.prototype.getUnicodeLineWidth=function(t,e,i){e=0;var r=null,n=(new lc).getGlyphIndex(t,this,i.textDirection===gh.RightToLeft,r,!0),o=n.success;if(r=n.glyphs,o&&null!==r)for(var s=this.fontInternal.ttfReader,a=0,l=r.length;a<l;a++){var h=r[a],u=s.getGlyph(h);null!==u&&void 0!==u&&(e+=u.width)}return{success:o,width:e}}}(Yh),function(){function t(t,e,i,r,n){t instanceof vh&&void 0===e?this.InitiateBounds(t.x,t.y,t.width,t.height,null):t instanceof vh&&e instanceof Tc&&void 0===i?this.InitiateBounds(t.x,t.y,t.width,t.height,e):t instanceof mh&&e instanceof Mh&&void 0===i?this.InitiateBounds(t.x,t.y,e.width,e.height,null):t instanceof mh&&e instanceof Mh&&i instanceof Tc&&void 0===r?this.InitiateBounds(t.x,t.y,e.width,e.height,i):t instanceof Mh&&void 0===e?this.InitiateBounds(0,0,t.width,t.height,null):"number"==typeof t&&"number"==typeof e&&void 0===i?this.InitiateBounds(0,0,t,e,null):"number"==typeof t&&"number"==typeof e&&i instanceof Tc&&void 0===r?this.InitiateBounds(0,0,t,e,i):this.InitiateBounds(t,e,i,r,null)}Object.defineProperty(t.prototype,"dock",{get:function(){return this.dockStyle},set:function(t){this.dockStyle=t,this.resetAlignment()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"alignment",{get:function(){return this.alignmentStyle},set:function(t){this.setAlignment(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"foreground",{get:function(){return this.isForeground},set:function(t){this.isForeground=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"background",{get:function(){return!this.isForeground},set:function(t){this.isForeground=!t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"location",{get:function(){return this.currentLocation},set:function(t){this.type===cu.None&&(this.currentLocation=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return void 0!==this.currentLocation?this.currentLocation.x:0},set:function(t){this.type===cu.None&&(this.currentLocation.x=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return void 0!==this.currentLocation?this.currentLocation.y:0},set:function(t){this.type===cu.None&&(this.currentLocation.y=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.template.size},set:function(t){this.type===cu.None&&this.template.reset(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.template.width},set:function(t){if(this.template.width!==t&&this.type===cu.None){var e=this.template.size;e.width=t,this.template.reset(e)}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.template.height},set:function(t){if(this.template.height!==t&&this.type===cu.None){var e=this.template.size;e.height=t,this.template.reset(e)}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"graphics",{get:function(){return this.template.graphics},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"template",{get:function(){return this.pdfTemplate},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this.templateType},set:function(t){this.updateDocking(t),this.templateType=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bounds",{get:function(){return new vh(new mh(this.x,this.y),this.size)},set:function(t){this.type===cu.None&&(this.location=new mh(t.x,t.y),this.size=new Mh(t.width,t.height))},enumerable:!0,configurable:!0}),t.prototype.InitiateBounds=function(t,e,i,r,n){this.x=t,this.y=e,this.pdfTemplate=new gc(i,r)},t.prototype.updateDocking=function(t){if(t!==cu.None){switch(t){case cu.Top:this.dock=hu.Top;break;case cu.Bottom:this.dock=hu.Bottom;break;case cu.Left:this.dock=hu.Left;break;case cu.Right:this.dock=hu.Right}this.resetAlignment()}},t.prototype.resetAlignment=function(){this.alignment=uu.None},t.prototype.setAlignment=function(t){if(this.dock===hu.None)this.alignmentStyle=t;else{var e=!1;switch(this.dock){case hu.Left:e=t===uu.TopLeft||t===uu.MiddleLeft||t===uu.BottomLeft||t===uu.None;break;case hu.Top:e=t===uu.TopLeft||t===uu.TopCenter||t===uu.TopRight||t===uu.None;break;case hu.Right:e=t===uu.TopRight||t===uu.MiddleRight||t===uu.BottomRight||t===uu.None;break;case hu.Bottom:e=t===uu.BottomLeft||t===uu.BottomCenter||t===uu.BottomRight||t===uu.None;break;case hu.Fill:e=t===uu.MiddleCenter||t===uu.None}e&&(this.alignmentStyle=t)}},t.prototype.draw=function(t,e){var i=t.page,r=this.calculateBounds(i,e);t.graphics.drawPdfTemplate(this.template,new mh(r.x,r.y),new Mh(r.width,r.height))},t.prototype.calculateBounds=function(t,e){var i=this.bounds;return this.alignmentStyle!==uu.None?i=this.getAlignmentBounds(t,e):this.dockStyle!==hu.None&&(i=this.getDockBounds(t,e)),i},t.prototype.getAlignmentBounds=function(t,e){this.bounds;return this.type===cu.None?this.getSimpleAlignmentBounds(t,e):this.getTemplateAlignmentBounds(t,e)},t.prototype.getSimpleAlignmentBounds=function(t,e){var i=this.bounds,r=t.section.getActualBounds(e,t,!1),n=this.x,o=this.y;switch(this.alignmentStyle){case uu.TopLeft:n=0,o=0;break;case uu.TopCenter:n=(r.width-this.width)/2,o=0;break;case uu.TopRight:n=r.width-this.width,o=0;break;case uu.MiddleLeft:n=0,o=(r.height-this.height)/2;break;case uu.MiddleCenter:n=(r.width-this.width)/2,o=(r.height-this.height)/2;break;case uu.MiddleRight:n=r.width-this.width,o=(r.height-this.height)/2;break;case uu.BottomLeft:n=0,o=r.height-this.height;break;case uu.BottomCenter:n=(r.width-this.width)/2,o=r.height-this.height;break;case uu.BottomRight:n=r.width-this.width,o=r.height-this.height}return i.x=n,i.y=o,i},t.prototype.getTemplateAlignmentBounds=function(t,e){var i=this.bounds,r=t.section,n=r.getActualBounds(e,t,!1),o=this.x,s=this.y;switch(this.alignmentStyle){case uu.TopLeft:this.type===cu.Left?(o=this.convertSign(n.x),s=0):this.type===cu.Top&&(o=this.convertSign(n.x),s=this.convertSign(n.y));break;case uu.TopCenter:o=(n.width-this.width)/2,s=this.convertSign(n.y);break;case uu.TopRight:this.type===cu.Right?(o=n.width+r.getRightIndentWidth(e,t,!1)-this.width,s=0):this.type===cu.Top&&(o=n.width+r.getRightIndentWidth(e,t,!1)-this.width,s=this.convertSign(n.y));break;case uu.MiddleLeft:o=this.convertSign(n.x),s=(n.height-this.height)/2;break;case uu.MiddleCenter:o=(n.width-this.width)/2,s=(n.height-this.height)/2;break;case uu.MiddleRight:o=n.width+r.getRightIndentWidth(e,t,!1)-this.width,s=(n.height-this.height)/2;break;case uu.BottomLeft:this.type===cu.Left?(o=this.convertSign(n.x),s=n.height-this.height):this.type===cu.Bottom&&(o=this.convertSign(n.x),s=n.height+r.getBottomIndentHeight(e,t,!1)-this.height);break;case uu.BottomCenter:o=(n.width-this.width)/2,s=n.height+r.getBottomIndentHeight(e,t,!1)-this.height;break;case uu.BottomRight:this.type===cu.Right?(o=n.width+r.getRightIndentWidth(e,t,!1)-this.width,s=n.height-this.height):this.type===cu.Bottom&&(o=n.width+r.getRightIndentWidth(e,t,!1)-this.width,s=n.height+r.getBottomIndentHeight(e,t,!1)-this.height)}return i.x=o,i.y=s,i},t.prototype.getDockBounds=function(t,e){this.bounds;return this.type===cu.None?this.getSimpleDockBounds(t,e):this.getTemplateDockBounds(t,e)},t.prototype.getSimpleDockBounds=function(t,e){this.bounds;var i=t.section.getActualBounds(e,t,!1),r=this.x,n=this.y,o=this.width,s=this.height;switch(this.dockStyle){case hu.Left:r=0,n=0,o=this.width,s=i.height;break;case hu.Top:r=0,n=0,o=i.width,s=this.height;break;case hu.Right:r=i.width-this.width,n=0,o=this.width,s=i.height;break;case hu.Bottom:r=0,n=i.height-this.height,o=i.width,s=this.height;break;case hu.Fill:r=0,r=0,o=i.width,s=i.height}return new vh(r,n,o,s)},t.prototype.getTemplateDockBounds=function(t,e){this.bounds;var i=t.section,r=i.getActualBounds(e,t,!1),n=i.pageSettings.getActualSize(),o=this.x,s=this.y,a=this.width,l=this.height;switch(this.dockStyle){case hu.Left:o=this.convertSign(r.x),s=0,a=this.width,l=r.height;break;case hu.Top:o=this.convertSign(r.x),s=this.convertSign(r.y),a=n.width,l=this.height,r.height<0&&(s=n.height-r.y);break;case hu.Right:o=r.width+i.getRightIndentWidth(e,t,!1)-this.width,s=0,a=this.width,l=r.height;break;case hu.Bottom:o=this.convertSign(r.x),s=r.height+i.getBottomIndentHeight(e,t,!1)-this.height,a=n.width,l=this.height,r.height<0&&(s-=n.height);break;case hu.Fill:o=0,o=0,a=r.width,l=r.height}return new vh(o,s,a,l)},t.prototype.convertSign=function(t){return 0!==t||0===t&&1/t==-1/0?-t:t}}(),function(){function t(t){}return t.prototype.export=function(t,e,i,r,n){return new Promise(function(e,o){var s=M("canvas",{id:"ej2-canvas",attrs:{width:t.availableSize.width.toString(),height:t.availableSize.height.toString()}});r=h(r)?eu.Landscape:r;var a=t.svgObject.cloneNode(!0),l=a.childNodes[0];if(!h(l)){var u=l.getAttribute("fill");"Tailwind"!==t.theme&&"Bootstrap5"!==t.theme&&"Fluent"!==t.theme&&"Material3"!==t.theme||"rgba(255,255,255, 0.0)"!==u&&"transparent"!==u?"TailwindDark"!==t.theme&&"Bootstrap5Dark"!==t.theme&&"FluentDark"!==t.theme&&"Material3Dark"!==t.theme||"rgba(255,255,255, 0.0)"!==u&&"transparent"!==u||a.childNodes[0].setAttribute("fill","rgba(0, 0, 0, 1)"):a.childNodes[0].setAttribute("fill","rgba(255,255,255, 1)")}var c=window.URL.createObjectURL(new Blob([(new XMLSerializer).serializeToString(a)],{type:"image/svg+xml"})),p=new Image,d=s.getContext("2d");p.onload=function(){d.drawImage(p,0,0),window.URL.revokeObjectURL(c);var o=new Yc,a=s.toDataURL("image/jpeg").replace("image/jpeg","image/octet-stream");o.pageSettings.orientation=r,a=a.slice(a.indexOf(",")+1),o.pages.add().graphics.drawImage(new Au(a),0,0,t.availableSize.width-60,t.availableSize.height),n?(o.save(i+".pdf"),o.destroy()):e(null)},p.src=c})},t.prototype.getModuleName=function(){return"PdfExport"},t.prototype.destroy=function(){},t}()),Cd=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),zd=function(t,e,i,r){var n,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,i,s):n(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s},Td=function(t){function e(e,i){var r=t.call(this,e,i)||this;return r.isResize=!1,r.orientation="Horizontal",r.drilledItems=[],r.isHierarchicalData=!1,r.levelSelection=[],r.legendId=[],r}return Cd(e,t),e.prototype.preRender=function(){var t=this;this.trigger("load",{treemap:this},function(){t.initPrivateVariable(),t.unWireEVents(),t.createSvg(),t.wireEVents(),t.setCulture()})},e.prototype.render=function(){this.renderElements()},e.prototype.renderElements=function(){this.treemapLevelData=new Ld,this.treemapLevelData.levelsData=null,this.treemapLevelData.defaultLevelsData=null,this.treemapLevelData.hierarchyData=null,this.createSecondaryElement(),this.addTabIndex(),this.themeStyle=fe(this.theme),this.renderBorder(),this.renderTitle(this.titleSettings,"title",null,null),h(this.treemapLevelData.levelsData)||(this.treemapLevelData.defaultLevelsData=this.treemapLevelData.levelsData),this.processDataManager()},e.prototype.processDataManager=function(){var t,e,i,r,n=this;if(this.dataSource instanceof sl){t=this.dataSource,e=this.query instanceof Ha?this.query:new Ha;t.executeQuery(e).then(function(t){n.dataSource=t.result,n.renderTreeMapElements()})}else this.dataSource instanceof Wa?(r=this.dataSource,(i=new go(r.dataOptions,r.type,r.contentType)).onSuccess=function(t){if(h(t.type)||"application/octet-stream"!==t.type)n.dataSource=t,n.renderTreeMapElements();else{var e=new FileReader,i=n;e.onload=function(){t=JSON.parse(e.result.toString()),i.dataSource=t,i.renderTreeMapElements()},e.readAsText(t)}},i.send(r.sendData)):this.renderTreeMapElements()},e.prototype.renderTreeMapElements=function(){this.processingData(),this.treeMapLegendModule&&this.legendSettings.visible&&this.treeMapLegendModule.renderLegend(),this.layout.processLayoutPanel(),this.element.appendChild(this.svgObject),this.elementChange(),this.trigger("loaded",{treemap:this,isResized:this.isResize}),this.isResize=!1,this.renderComplete()},e.prototype.createSvg=function(){if(this.svgObject){for(;this.svgObject.childNodes.length>0;)this.svgObject.removeChild(this.svgObject.firstChild);!this.svgObject.hasChildNodes()&&this.svgObject.parentNode&&j(this.svgObject)}h(this.renderer)&&(this.renderer=new $s(this.element.id)),h(this.layout)&&(this.layout=new Ga(this)),this.clearTemplate();var t=this.element.clientWidth,e=this.element.clientHeight;this.availableSize=new Fa(ft(this.width,t)||t||600,ft(this.height,e)||e||450),this.svgObject=this.renderer.createSvg({id:this.element.id+"_svg",width:this.availableSize.width,height:this.availableSize.height})},e.prototype.initPrivateVariable=function(){if(""===this.element.id){var t=document.getElementsByClassName("e-treemap").length;this.element.id="treemap_control_"+t}this.renderer=new $s(this.element.id),this.layout=new Ga(this)},e.prototype.createSecondaryElement=function(){var t=document.getElementById(this.element.id+"_Secondary_Element");if(t&&t.childElementCount>0&&t.parentNode.removeChild(t),h(document.getElementById(this.element.id+"_Secondary_Element"))){var e=M("div",{id:this.element.id+"_Secondary_Element"});e.style.cssText="position: absolute;z-index:1;",this.element.appendChild(e)}},e.prototype.elementChange=function(){this.treeMapLegendModule&&this.legendSettings.visible&&this.treeMapLegendModule.legendGroup&&this.layout.layoutGroup&&!h(this.svgObject)&&!h(document.getElementById(this.layout.layoutGroup.id))&&!h(document.getElementById(this.treeMapLegendModule.legendGroup.id))&&this.svgObject.insertBefore(this.layout.layoutGroup,this.treeMapLegendModule.legendGroup)},e.prototype.renderBorder=function(){var t=this.border.width,e=this.svgObject.querySelector("#"+this.element.id+"_TreeMap_Border");if((this.border.width>0||this.background||this.themeStyle.backgroundColor)&&h(e)){var i=new Ua(this.element.id+"_TreeMap_Border",this.background||this.themeStyle.backgroundColor,this.border,1,new Ra(t/2,t/2,this.availableSize.width-t,this.availableSize.height-t));this.svgObject.appendChild(this.renderer.drawRectangle(i))}else e&&e.setAttribute("fill",this.background||this.themeStyle.backgroundColor)},e.prototype.renderTitle=function(t,e,i,r){var n,o={color:t.textStyle.color,size:t.textStyle.size,fontFamily:t.textStyle.fontFamily,fontStyle:t.textStyle.fontStyle,fontWeight:t.textStyle.fontWeight,opacity:t.textStyle.opacity},s=this.availableSize.width-this.margin.right-this.margin.left;if(o.fontFamily=o.fontFamily||this.themeStyle.fontFamily,o.fontWeight=o.fontWeight||this.themeStyle.titleFontWeight,o.size=o.size||("title"===e?this.themeStyle.fontSize:this.themeStyle.subtitleFontSize),t.text){h(r)&&(r=this.renderer.createGroup({id:this.element.id+"_Title_Group"}));var a=mt(s,t.text,o),l=yt(a,o),u=Mt(h(i)?new Ra(this.margin.left,this.margin.top,this.availableSize.width,this.availableSize.height):i,t.alignment,l,e),c=new Va(this.element.id+"_TreeMap_"+e,u.x,u.y,"start",a),p=new Ra(u.x,u.y,l.width,l.height),d=bt(c,o,o.color||("title"===e?this.themeStyle.titleFontColor:this.themeStyle.subTitleFontColor),r);d.setAttribute("aria-label",t.description||t.text),d.setAttribute("role","region"),d.setAttribute("tabindex",this.tabIndex.toString()),("title"===e&&!t.subtitleSettings.text||"subtitle"===e)&&(n=this.availableSize.height-p.y-10-this.margin.bottom,this.areaRect=new Ra(this.margin.left,p.y+10,s,n)),"subtitle"!==e&&t.subtitleSettings.text?this.renderTitle(t.subtitleSettings,"subtitle",p,r):this.svgObject.appendChild(r)}else n=this.availableSize.height-this.margin.top-this.margin.bottom,this.areaRect=new Ra(this.margin.left,this.margin.top,s,n)},e.prototype.processingData=function(){var t,e=this;if(this.dataSource=this.dataSource,!h(this.dataSource)&&this.dataSource.length>0&&this.weightValuePath){if(this.treemapLevelData.levelsData=[],this.dataSource.map(function(t){t[e.weightValuePath]=t[e.weightValuePath]?t[e.weightValuePath].toString():t[e.weightValuePath]}),this.leafItemSettings.labelPath=this.leafItemSettings.labelPath||this.weightValuePath,this.checkIsHierarchicalData(),0===this.levels.length){var i={};i.level=0,t=this.leafItemSettings.labelPath,i[t]=[];for(var r=0;r<this.dataSource.length;r++){var n=jt(this.dataSource[r]).values;this.isHierarchicalData&&n&&n.length>0?n.forEach(function(r){r[t]&&i[t].push({groupIndex:0,name:r[t],levelOrderName:r[t].toString(),data:r,weight:r[e.weightValuePath]})}):this.dataSource[r][t]&&i[t].push({groupIndex:0,name:this.dataSource[r][t],levelOrderName:this.dataSource[r][t].toString(),data:this.dataSource[r],weight:this.dataSource[r][this.weightValuePath]})}this.treemapLevelData.levelsData.push(i)}else{if(this.isHierarchicalData){this.treemapLevelData.hierarchyData=[],this.treemapLevelData.hierarchyData=l([],this.dataSource,this.treemapLevelData.hierarchyData,!0);for(r=0;r<this.treemapLevelData.hierarchyData.length;r++)this.processHierarchicalData(this.treemapLevelData.hierarchyData[r],r);this.treemapLevelData.levelsData=this.treemapLevelData.hierarchyData}else this.processFlatJsonData(),this.treemapLevelData.levelsData.length>1&&this.reOrderLevelData(this.treemapLevelData.levelsData.length-1);t=this.levels[0].groupPath}this.isHierarchicalData||this.findTotalWeight(this.treemapLevelData.levelsData[0][t],"Parent")}},e.prototype.checkIsHierarchicalData=function(){var t;this.dataSource=this.dataSource;for(var e=0;e<this.dataSource.length;e++){if((t=jt(this.dataSource[e]).values)&&t.length){this.isHierarchicalData=!0;break}e===this.dataSource.length-1&&(this.isHierarchicalData=!1)}},e.prototype.processHierarchicalData=function(t,e){var i,r,n,o=this,s={},a=this.leafItemSettings.labelPath?this.leafItemSettings.labelPath:this.weightValuePath;if(s=jt(t),(i=s?s.values:null)&&i.length>0){n=s.key;for(var l=0;l<this.levels.length;l++)n===this.levels[l].groupPath&&(r=l);for(var u=0;u<i.length;u++){i[u].name=i[u][a],i[u].levelOrderName=(0===r?i[u].name:t.levelOrderName+"#"+i[u].name)+"";var c=i[u].levelOrderName,p=void 0;c.search("#")>0&&(p=c.split("#").length-1),i[u].groupIndex=h(r)?p===this.levels.length?this.levels.length:p:r,0!==r&&(i[u].parent=t),i[u].groupName=n,i[u].data=i[u],i[u].isDrilled=!1,i[u].weight=i[u][this.weightValuePath]}i.forEach(function(t){o.processHierarchicalData(t,e)})}if(e===this.treemapLevelData.hierarchyData.length-1){for(var d=this.treemapLevelData.hierarchyData[0][this.levels[0].groupPath],g=0;g<this.treemapLevelData.hierarchyData.length;g++)i=jt(this.treemapLevelData.hierarchyData[g]).values,0!==g&&i&&(i.forEach(function(t){d.push(t)}),this.treemapLevelData.hierarchyData.splice(g,1),g-=1);d=this.treemapLevelData.hierarchyData[0][this.levels[0].groupPath];for(var f=0;f<d.length;f++)s[this.levels[0].groupPath]=d,d[f].parent=s}},e.prototype.print=function(t){this.allowPrint&&this.printModule&&this.printModule.print(this,t)},e.prototype.export=function(t,e,i,r){var n=this;return h(r)&&(r=!0),"PDF"===t&&this.allowPdfExport&&this.pdfExportModule?new Promise(function(o,s){o(n.pdfExportModule.export(n,t,e,i,r))}):this.allowImageExport&&"PDF"!==t&&this.imageExportModule?new Promise(function(i,o){i(n.imageExportModule.export(n,t,e,r))}):null},e.prototype.processFlatJsonData=function(){this.dataSource=this.dataSource;for(var t,e=[],i=0;i<this.levels.length+1;i++){t=this.levels[i]?this.levels[i].groupPath:this.leafItemSettings.labelPath;var r={};r.level=i,r[t]=[],this.treemapLevelData.levelsData.push(r);for(var n=0;n<this.dataSource.length;n++){var o={},s="";if(!h(t)){var a=this.dataSource[n][t];if(0!==i)for(var l=0;l<=i;l++){var u=this.levels[l]?this.levels[l].groupPath:t;s+=this.dataSource[n][u]+(l===i?"":"#")}e.length>0&&-1!==e.indexOf(s||a)||(o.name=a,o.levelOrderName=(s||a)+"",o.groupIndex=i,o.isDrilled=!1,o.groupName=t,o.data=this.dataSource[n],this.treemapLevelData.levelsData[this.treemapLevelData.levelsData.length-1][t].push(o),e.push(s||a))}}}},e.prototype.reOrderLevelData=function(t){for(var e,i=this.levels[t]?this.levels[t].groupPath:this.leafItemSettings.labelPath,r=this.levels[t-1].groupPath,n=this.treemapLevelData.levelsData[t][i],o=this.treemapLevelData.levelsData[t-1][r],s=0;s<n.length;s++){e=n[s].levelOrderName;for(var a=0;a<o.length;a++)if(o[a][i]=h(o[a][i])?[]:o[a][i],this.IsChildHierarchy(e.split("#"),o[a].levelOrderName.split("#"))){h(n[s].parent)&&(n[s].parent=o[a]),o[a][i].push(n[s]);break}}this.findTotalWeight(this.treemapLevelData.levelsData[this.treemapLevelData.levelsData.length-1][i],"Child"),this.treemapLevelData.levelsData.splice(t,1),t-1>0&&this.reOrderLevelData(t-1)},e.prototype.IsChildHierarchy=function(t,e){for(var i=!1,r=0;r<e.length;r++){if(t.length<r||e[r]!==t[r])return!1;i=!0}return i},e.prototype.findTotalWeight=function(t,e){for(var i,r,n,o=this,s={},a=function(a){i=0,n=t[a].groupName,r=t[a].levelOrderName.split("#"),l.dataSource.forEach(function(e){Dt(r,t[a].levelOrderName,e,o)&&(i+=parseFloat(e[o.weightValuePath]))}),"Parent"===e&&(s[n]=t,t[a].parent=s),t[a].weight=i},l=this,h=0;h<t.length;h++)a(h)},e.prototype.unWireEVents=function(){xo.remove(this.element,"click",this.clickOnTreeMap),xo.remove(this.element,"dblclick",this.doubleClickOnTreeMap),xo.remove(this.element,"contextmenu",this.rightClickOnTreeMap),xo.remove(this.element,Oo.touchStartEvent,this.mouseDownOnTreeMap),xo.remove(this.element,Oo.touchMoveEvent,this.mouseMoveOnTreeMap),xo.remove(this.element,Oo.touchEndEvent,this.mouseEndOnTreeMap),xo.remove(this.element,"pointerleave mouseleave",this.mouseLeaveOnTreeMap),window.removeEventListener("resize",this.resizeEvent)},e.prototype.wireEVents=function(){xo.add(this.element,"click",this.clickOnTreeMap,this),xo.add(this.element,"dblclick",this.doubleClickOnTreeMap,this),xo.add(this.element,"contextmenu",this.rightClickOnTreeMap,this),xo.add(this.element,Oo.touchStartEvent,this.mouseDownOnTreeMap,this),xo.add(this.element,Oo.touchMoveEvent,this.mouseMoveOnTreeMap,this),xo.add(this.element,Oo.touchEndEvent,this.mouseEndOnTreeMap,this),xo.add(this.element,"pointerleave mouseleave",this.mouseLeaveOnTreeMap,this),this.resizeEvent=this.resizeOnTreeMap.bind(this),window.addEventListener("resize",this.resizeEvent)},e.prototype.setCulture=function(){this.intl=new ao},e.prototype.addTabIndex=function(){this.element.setAttribute("aria-label",this.description||"TreeMap Element"),this.element.setAttribute("role","region"),this.element.setAttribute("tabindex",this.tabIndex.toString())},e.prototype.resizeOnTreeMap=function(t){var e=this;if(!this.isDestroyed){this.isResize=!0;var i={name:"resize",cancel:!1,previousSize:this.availableSize,currentSize:new Fa(0,0),treemap:this};this.resizeTo&&clearTimeout(this.resizeTo),!h(this.element)&&this.element.classList.contains("e-treemap")&&(this.resizeTo=setTimeout(function(){e.unWireEVents(),e.createSvg(),e.refreshing=!0,e.wireEVents(),i.currentSize=e.availableSize,e.trigger("resize",i,function(t){e.render(),e.refreshing=!1})},500))}},e.prototype.clickOnTreeMap=function(t){var e,i,r=this,n=t.target,o=n.id,s=n.innerHTML,a={cancel:!1,name:"click",treemap:this,mouseEvent:t};this.trigger("click",a),o.indexOf("_Item_Index")>-1&&(t.preventDefault(),i=parseFloat(o.split("_Item_Index_")[1]),e={cancel:!1,name:"itemClick",treemap:this,item:this.layout.renderItems[i],mouseEvent:t,groupIndex:this.layout.renderItems[i].groupIndex,groupName:this.layout.renderItems[i].name,text:s,contentItemTemplate:s},this.trigger("itemClick",e,function(t){t.text===s&&t.contentItemTemplate===s||(h(r.leafItemSettings.labelTemplate)?(t.text=Zt(t.text,t.item.data,t.treemap),n.textContent=t.text):wt(o,n,t.contentItemTemplate))}));var l,u=(new Date).getMilliseconds();h(this.doubleClick)||(!h(l)&&u-l<500&&this.doubleClickOnTreeMap(t),l=u)},e.prototype.doubleClickOnTreeMap=function(t){var e={cancel:!1,name:ma,treemap:this,mouseEvent:t};this.trigger(ma,e)},e.prototype.rightClickOnTreeMap=function(t){var e={cancel:!1,name:Ma,treemap:this,mouseEvent:t};this.trigger(Ma,e)},e.prototype.mouseDownOnTreeMap=function(t){t.target.id.indexOf("_Item_Index")>-1&&(this.mouseDown=!0),this.notify(Oo.touchStartEvent,t)},e.prototype.mouseMoveOnTreeMap=function(t){var e,i,r=t.target.id,n={cancel:!1,name:"mouseMove",treemap:this,mouseEvent:t};this.trigger("mouseMove",n);var o;r.indexOf("_Item_Index")>-1?(o=jt(i=this.layout.renderItems[parseFloat(r.split("_Item_Index_")[1])]).values,this.element.style.cursor=!i.isLeafItem&&o&&o.length>0&&this.enableDrillDown?"pointer":"auto",e={cancel:!1,name:"itemMove",treemap:this,item:i,mouseEvent:t},this.trigger("itemMove",e)):this.element.style.cursor="default",this.notify(Oo.touchMoveEvent,t)},e.prototype.calculateSelectedTextLevels=function(t,e){for(var i,r,n,o=e.levelOrderName.split("#"),s=0,a=Object.keys(o);s<a.length;s++)o[r=a[s]]===t&&(i=parseInt(r,10),n=t);return{drillLevel:i,currentLevelLabel:n,levelText:o}},e.prototype.calculatePreviousLevelChildItems=function(t,e,i){for(var r,n,o,s=0,a=this.layout.renderItems[0].levelOrderName.split("#").length,l=0;l<a;l++)o=0===l?t.levelText[l]:o+"#"+t.levelText[l];s=a>1?a:s;for(var u=0,c=Object.values(this.layout.renderItems);u<c.length;u++){(n=c[u]).levelOrderName.split("#")[0]===t.levelText[0]&&(r=0===s?h(o)?o:t.levelText[s]:i?o:o+"#"+t.levelText[s])===n.levelOrderName&&(this.drilledItems.push({name:n.levelOrderName,data:n}),i=!0,++s<=e.groupIndex&&(o=r=r+"#"+t.levelText[s]))}return i},e.prototype.compareSelectedLabelWithDrillDownItems=function(t,e,i){var r,n={};return t.drillLevel+1===this.drilledItems[i].data.groupIndex?((r=this.drilledItems[i].data.parent).isDrilled=!0,n[r[this.drilledItems[i].data.groupName]]=[r],this.drilledItems.splice(i,this.drilledItems.length)):t.drillLevel!==this.drilledItems.length-1&&t.drillLevel!==e.groupIndex||(n[e.groupName]=[e]),n},e.prototype.mouseEndOnTreeMap=function(t){var e,i,r,n,o,s,a,u=this,c=t.target,p=c.id,d=!1,g={},f=this.element.id+"_TreeMap_"+this.layoutType+"_Layout",y=this.element.id+"_Label_Template_Group";if(p.indexOf("_Item_Index")>-1&&this.enableDrillDown&&!this.drillMouseMove){t.cancelable&&t.preventDefault(),n=parseFloat(p.split("_Item_Index_")[1]),o=this.layout.renderItems[n];var m=c.textContent;if(this.enableBreadcrumb&&(a=this.calculateSelectedTextLevels(m,o),s=a.drillLevel,this.drillDownView||-1===m.search("[+]")||(d=this.calculatePreviousLevelChildItems(a,o,d))),0!==this.levels.length&&!o.isLeafItem&&jt(o).values&&jt(o).values.length>0){if(this.drilledItems.length>0){o=d?this.drilledItems[this.drilledItems.length-1].data:o;for(var M=0;M<this.drilledItems.length;M++){if(!h(s)){var v=this.drilledItems.length;if(g=this.compareSelectedLabelWithDrillDownItems(a,o,M),v!==this.drilledItems.length){M-=1;break}}if(o.levelOrderName===this.drilledItems[M].name&&!d&&h(s)){0===o.groupIndex&&o.parent[o.groupName]instanceof Array?(o.isDrilled=!o.isDrilled,o.isDrilled?g[o.groupName]=[o]:g=o.parent):(o.isDrilled=!1,o.parent.isDrilled=!0,o=o.parent,g[o.groupName]=[o]),this.drilledItems.splice(M,1),M-=1;break}M===this.drilledItems.length-1&&h(s)&&(o.isDrilled=!0,g[o.groupName]=[o])}}else o.isDrilled=!0,g[o.groupName]=[o];i={cancel:!1,name:da,treemap:this,element:c,groupIndex:this.enableBreadcrumb&&0!==this.drilledItems.length&&!h(s)?this.drilledItems[this.drilledItems.length-1].data.groupIndex:o.groupIndex,groupName:this.enableBreadcrumb&&0!==this.drilledItems.length&&!h(s)?this.drilledItems[this.drilledItems.length-1].data.name:o.name,rightClick:3===t.which,childItems:null,item:g},this.trigger(da,i,function(t){if(u.currentLevel=o.isDrilled&&h(s)?o.groupIndex:!h(s)&&u.enableBreadcrumb&&o.isDrilled?s:null,!t.cancel){if(document.getElementById(f)){var i=document.getElementById(f);i.parentNode.removeChild(i)}if(e=l({},u.areaRect,e,!0),u.legendSettings.visible&&!h(u.treeMapLegendModule)&&(h(g)||(u.treeMapLegendModule.legendGroup.textContent="",u.treeMapLegendModule.legendGroup=null,u.treeMapLegendModule.widthIncrement=0,u.treeMapLegendModule.heightIncrement=0,u.enableBreadcrumb&&!h(s)?u.drilledLegendItems={name:u.drilledItems[u.drilledItems.length-1].data.levelOrderName,data:u.drilledItems[u.drilledItems.length-1].data}:u.drilledLegendItems={name:o.levelOrderName,data:o},u.treeMapLegendModule.renderLegend()),e=h(u.totalRect)?e:u.totalRect),document.getElementById(y)){var r=document.getElementById(y);r.parentNode.removeChild(r)}h(t.childItems)||t.cancel?(u.layout.calculateLayoutItems(g,e),u.layout.renderLayoutItems()):u.layout.onDemandProcess(t.childItems)}}),r={cancel:!1,name:"drillEnd",treemap:this,renderItems:this.layout.renderItems},this.trigger("drillEnd",r),!d&&h(s)&&this.drilledItems.push({name:o.levelOrderName,data:o})}}this.mouseDown=!1,this.notify(Oo.touchEndEvent,t)},e.prototype.mouseLeaveOnTreeMap=function(t){this.treeMapTooltipModule&&this.treeMapTooltipModule.removeTooltip(),this.treeMapLegendModule&&this.treeMapLegendModule.removeInteractivePointer(),Kt(document.getElementsByClassName("treeMapHighLight"),"treeMapHighLight",this),this.treeMapHighlightModule&&(ae(this.treeMapHighlightModule.shapeHighlightCollection),this.treeMapHighlightModule.highLightId="")},e.prototype.selectItem=function(t,e){h(e)&&(e=!0);for(var i="",r=0;r<t.length;r++)r!==t.length-1?i+=t[r]+"#":i+=t[r];this.treeMapSelectionModule&&this.selectionSettings.enable&&this.treeMapSelectionModule.selectTreemapItem(i,e)},e.prototype.requiredModules=function(){var t=[];return this.tooltipSettings.visible&&t.push({member:"treeMapTooltip",args:[this],name:"TreeMapTooltip"}),this.highlightSettings.enable&&t.push({member:"treeMapHighlight",args:[this],name:"TreeMapHighlight"}),this.selectionSettings.enable&&t.push({member:"treeMapSelection",args:[this],name:"TreeMapSelection"}),this.legendSettings.visible&&t.push({member:"treeMapLegend",args:[this],name:"TreeMapLegend"}),this.allowPrint&&t.push({member:"Print",args:[this,hl],name:"Print"}),this.allowImageExport&&t.push({member:"ImageExport",args:[this,ul],name:"ImageExport"}),this.allowPdfExport&&t.push({member:"PdfExport",args:[this,xd],name:"PdfExport"}),t},e.prototype.onPropertyChanged=function(t,e){if(!this.isDestroyed){for(var i=!1,r=0,n=Object.keys(t);r<n.length;r++){switch(n[r]){case"background":this.renderBorder();break;case"height":case"width":case"layoutType":case"levels":case"drillDownView":case"renderDirection":case"leafItemSettings":case"legendSettings":case"dataSource":i=!0}}i&&(this.createSvg(),this.renderElements())}},e.prototype.getModuleName=function(){return"treemap"},e.prototype.destroy=function(){this.unWireEVents(),ge("treeMapMeasureText"),this.drilledItems=[],this.levelSelection=[],this.legendId=[],this.removeSvg(),t.prototype.destroy.call(this),this.areaRect=null,this.themeStyle=null,this.totalRect=null,this.drilledLegendItems=null,this.doubleTapTimer=null,this.treemapLevelData=null,this.resizeEvent=null,this.availableSize=null,this.intl=null,h(this.layout)||this.layout.destroy(),this.layout=null,this.renderer=null},e.prototype.removeSvg=function(){if(ge(this.element.id+"_Secondary_Element"),this.svgObject){for(;this.svgObject.childNodes.length>0;)this.svgObject.removeChild(this.svgObject.firstChild);!this.svgObject.hasChildNodes()&&this.svgObject.parentNode&&j(this.svgObject)}},e.prototype.getPersistData=function(){return""},zd([R(!1)],e.prototype,"allowPrint",void 0),zd([R(!1)],e.prototype,"allowImageExport",void 0),zd([R(!1)],e.prototype,"allowPdfExport",void 0),zd([R(null)],e.prototype,"width",void 0),zd([R(null)],e.prototype,"height",void 0),zd([U({},Da)],e.prototype,"border",void 0),zd([U({},ja)],e.prototype,"margin",void 0),zd([R(null)],e.prototype,"background",void 0),zd([R("Material")],e.prototype,"theme",void 0),zd([U({},Ca)],e.prototype,"titleSettings",void 0),zd([R("Squarified")],e.prototype,"layoutType",void 0),zd([R(null)],e.prototype,"dataSource",void 0),zd([R(null)],e.prototype,"query",void 0),zd([R(null)],e.prototype,"weightValuePath",void 0),zd([R("")],e.prototype,"rangeColorValuePath",void 0),zd([R("")],e.prototype,"equalColorValuePath",void 0),zd([R(null)],e.prototype,"colorValuePath",void 0),zd([R([])],e.prototype,"palette",void 0),zd([R("TopLeftBottomRight")],e.prototype,"renderDirection",void 0),zd([R(!1)],e.prototype,"enableDrillDown",void 0),zd([R(!1)],e.prototype,"enableBreadcrumb",void 0),zd([R(" - ")],e.prototype,"breadcrumbConnector",void 0),zd([R(!1)],e.prototype,"drillDownView",void 0),zd([U({},La)],e.prototype,"initialDrillDown",void 0),zd([U({},Aa)],e.prototype,"leafItemSettings",void 0),zd([_([],Ba)],e.prototype,"levels",void 0),zd([U({},ka)],e.prototype,"highlightSettings",void 0),zd([U({},Ea)],e.prototype,"selectionSettings",void 0),zd([U({},Pa)],e.prototype,"tooltipSettings",void 0),zd([U({},Ta)],e.prototype,"legendSettings",void 0),zd([R(!1)],e.prototype,"useGroupingSeparator",void 0),zd([R(null)],e.prototype,"description",void 0),zd([R(0)],e.prototype,"tabIndex",void 0),zd([R(null)],e.prototype,"format",void 0),zd([V()],e.prototype,"load",void 0),zd([V()],e.prototype,"beforePrint",void 0),zd([V()],e.prototype,"loaded",void 0),zd([V()],e.prototype,"itemRendering",void 0),zd([V()],e.prototype,"drillStart",void 0),zd([V()],e.prototype,"drillEnd",void 0),zd([V()],e.prototype,"itemSelected",void 0),zd([V()],e.prototype,"itemHighlight",void 0),zd([V()],e.prototype,"tooltipRendering",void 0),zd([V()],e.prototype,"itemClick",void 0),zd([V()],e.prototype,"itemMove",void 0),zd([V()],e.prototype,"click",void 0),zd([V()],e.prototype,"doubleClick",void 0),zd([V()],e.prototype,"rightClick",void 0),zd([V()],e.prototype,"mouseMove",void 0),zd([V()],e.prototype,"resize",void 0),zd([V()],e.prototype,"legendItemRendering",void 0),zd([V()],e.prototype,"legendRendering",void 0),e=zd([Y],e)}(es),Ld=function(){return function(){}}(),Ad=function(){function t(t){this.page=0,this.legendBorderRect=new Ra(0,0,0,0),this.currentPage=0,this.heightIncrement=0,this.widthIncrement=0,this.textMaxWidth=0,this.legendInteractiveGradient=[],this.legendItemRect=new Ra(0,0,0,0),this.treemap=t,this.addEventListener()}return t.prototype.renderLegend=function(){var t=this;this.page=0,this.legendRenderingCollections=[],this.legendCollections=[],this.legendNames=[],this.totalPages=[],this.gradientCount=1,this.widthIncrement=0,this.heightIncrement=0,this.defsElement=this.treemap.renderer.createDefs(),this.treemap.svgObject.appendChild(this.defsElement);var e={cancel:!1,name:ba,treemap:this.treemap,_changePosition:this.treemap.legendSettings.position,position:this.treemap.legendSettings.position};this.treemap.trigger(ba,e,function(e){e.cancel||e._changePosition===t.treemap.legendSettings.position||(t.treemap.legendSettings.position=e._changePosition),t.calculateLegendBounds(),t.legendCollections.length>0&&t.drawLegend()})},t.prototype.calculateLegendBounds=function(){var t=this,e=this.treemap,i=e.legendSettings;if(this.findColorMappingLegendItems(e.treemapLevelData.levelsData[0]),(this.treemap.palette.length>0||!h(e.colorValuePath))&&0===this.legendCollections.length&&this.findPaletteLegendItems(e.treemapLevelData.levelsData[0]),this.legendCollections.length>0){this.legendCollections.sort(function(t,e){return t.levelIndex>e.levelIndex?1:t.levelIndex<e.levelIndex?-1:0}),this.legendCollections.sort(function(t,e){return t.groupIndex>e.groupIndex?1:t.groupIndex<e.groupIndex?-1:0}),this.legendCollections.sort(function(t,e){return t.leafIndex>e.leafIndex?1:t.leafIndex<e.leafIndex?-1:0});var r=i.position,n=i.title.text,o=i.titleStyle,s=i.mode,a=0,l=0,u=0,c=0,p=i.shapeHeight,d=i.shapeWidth,g=[],f=[],y="None"===i.orientation?"Top"===r||"Bottom"===r||"Auto"===r&&e.availableSize.width<=e.availableSize.height?"Horizontal":"Vertical":i.orientation,m=i.width.length>1?i.width.indexOf("%")>-1?e.availableSize.width/100*parseFloat(i.width):parseFloat(i.width):null,M=i.height.length>1?i.height.indexOf("%")>-1?e.availableSize.height/100*parseFloat(i.height):parseFloat(i.height):null;o.fontFamily=o.fontFamily||e.themeStyle.fontFamily,o.fontWeight=o.fontWeight||e.themeStyle.titleFontWeight,o.size=o.size||e.themeStyle.legendFontSize;var v=yt(n,o),b=0,w=0,N=i.shapePadding,S=i.textStyle;if(S.size=S.size||e.themeStyle.legendFontSize,S.fontFamily=S.fontFamily||e.themeStyle.fontFamily,S.fontWeight=S.fontWeight||e.themeStyle.fontWeight,"Default"===s){m=h(m)?e.areaRect.width:m,M=h(M)?e.areaRect.height:M;for(var D=0,j=0;j<this.legendCollections.length;j++){var I=this.legendCollections[j];h(this.totalPages[this.page])&&(this.totalPages[this.page]={Page:this.page+1,Collection:[]});var O=yt(I.legendName,S);if(this.textMaxWidth=Math.max(this.textMaxWidth,O.width),0===j)b=a=10+d/2,w=l=10+v.height+(p>O.height?p/2:O.height/4);else{var x=O.height>p?O.height:p;if("Horizontal"===y){var C=f[D-1].x+f[D-1].width+10+d;if(C+N+O.width>m){var z=(f[D-1].y>g[D-1].y+p/2?f[D-1].y:g[D-1].y+p/2)+10;z+x>M?(this.getPageChanged(),D=0,g=[],f=[],a=b,l=w):(a=g[0].x,l=z+x/2)}else a=C-d/2,l=g[D-1].y}else{var T=f[D-1].y>g[D-1].y+p/2?f[D-1].y:g[D-1].y+p/2;if(T+10+x>M){var L=f[D-1].x+this.textMaxWidth+10;L+N+O.width>m?(a=b,l=w,f=[],g=[],this.getPageChanged(),D=0):(a=L+d/2,l=g[0].y)}else a=g[D-1].x,l=T+10+p/2}}u=a+d/2+N,c=l+O.height/4,g.push({x:a,y:l}),f.push({x:u,y:c,width:O.width,height:O.height/2}),this.totalPages[this.page].Collection.push({DisplayText:I.legendName,element:I.gradientElement,Shape:{x:a,y:l},Text:{x:u,y:c},Fill:I.legendFill,Data:I.legendData,Rect:{x:g[D].x-d/2,y:g[D].y-p/2<c-O.height?g[D].y-p/2:c-O.height,width:Math.abs(g[D].x-d/2-(u+O.width)),height:p>O.height?p:O.height}}),D++}var A=this.totalPages[0].Collection;A.forEach(function(e,i){var r=new Ra(e.Rect.x,e.Rect.y,e.Rect.width,e.Rect.height);0===i&&(b=r.x,w=r.y),t.widthIncrement=Math.max(t.widthIncrement,Math.abs(b-(r.x+r.width))),t.heightIncrement=Math.max(t.heightIncrement,Math.abs(w-(r.y+r.height)))}),m=this.widthIncrement<m?this.widthIncrement:m,M=this.heightIncrement<M?this.heightIncrement:M,this.legendItemRect={x:A[0].Rect.x,y:A[0].Rect.y,width:m,height:M}}else{var P=this.legendCollections.length,E="Horizontal"===y?h(m)?e.areaRect.width/P:m/P:h(m)?25:m,k="Horizontal"===y?h(M)?25:M:h(M)?e.areaRect.height/P:M/P;b=0,w=v.height+10;var B=i.labelPosition,F=0,R=0,U=i.labelDisplayMode,_=0,V=0;for(j=0;j<this.legendCollections.length;j++){b="Horizontal"===y?b+E:b,w="Horizontal"===y?w:w+k;var Y=this.legendCollections[j].legendName,Q=new Fa(0,0);"None"===U?Q=yt(Y,S):"Trim"===U?Q=yt(Y=mt("Horizontal"===y?E:k,Y,S),S):Y="",_=Math.max(_,Q.height),V=Math.max(V,Q.width),Q.width>0&&Q.height>0&&("Horizontal"===y?(u=b+E/2,c="After"===B?w+k+Q.height/2+10:w-10):(u="After"===B?b-Q.width/2-10:b+E+Q.width/2+10,c=w+k/2+Q.height/4)),0===j&&(F="Horizontal"===y?b:"After"===B?u-Q.width/2:b,R="Horizontal"===y?"After"===B?w:c-Q.height/2:w),j===P-1&&(m="Horizontal"===y?Math.abs(b+E-F):E+V+10,M="Horizontal"===y?k+_/2+10:Math.abs(w+k-R)),this.legendRenderingCollections.push({fill:this.legendCollections[j].legendFill,x:b,y:w,width:E,height:k,element:this.legendCollections[j].gradientElement,text:Y,textX:u,textY:c,textWidth:Q.width,textHeight:Q.height,data:this.legendCollections[j].legendData})}this.legendItemRect={x:F,y:R,width:m,height:M}}}},t.prototype.getPageChanged=function(){this.page++,h(this.totalPages[this.page])&&(this.totalPages[this.page]={Page:this.page+1,Collection:[]})},t.prototype.findColorMappingLegendItems=function(t){var e=jt(t).values;if(e&&e.length>0&&(this.calculateLegendItems(e),this.treemap.levels.length>0))for(var i=0;i<e.length;i++)this.findColorMappingLegendItems(e[i])},t.prototype.findPaletteLegendItems=function(t){var e,i;if(!h(this.treemap.drilledItems)&&0===this.treemap.drilledItems.length&&!h(this.treemap.initialDrillDown.groupName)&&h(this.treemap.drilledLegendItems))for(var r=jt(t).values,n=0;n<r.length;n++)if(r[n].Name===this.treemap.initialDrillDown.groupName){r[n].isDrilled=!r[n].isDrilled,t=r[n],this.treemap.currentLevel=this.treemap.initialDrillDown.groupIndex,i=this.treemap.palette.length>0?this.treemap.palette[n%this.treemap.palette.length]:r[n].data[this.treemap.colorValuePath];break}if(this.treemap.enableDrillDown&&!h(this.treemap.drilledLegendItems)){var o=this.treemap.drilledLegendItems;if(i=o.data.options.fill,o.data.isDrilled)e=jt(o.data).values;else{e=jt(o.data.parent).values}}else e=jt(t).values;var s;if(e&&e.length>0){for(var a=0;a<e.length;a++)(h(e[a].data[this.treemap.legendSettings.showLegendPath])||e[a].data[this.treemap.legendSettings.showLegendPath])&&(s=e[a].data[this.treemap.legendSettings.valuePath]?e[a].data[this.treemap.legendSettings.valuePath]:e[a].name,!!this.treemap.legendSettings.removeDuplicateLegend&&this.removeDuplicates(this.legendCollections,s)||this.legendCollections.push({legendName:s,legendFill:this.treemap.palette.length>0?h(this.treemap.currentLevel)?this.treemap.palette[a%this.treemap.palette.length]:i:e[a].data[this.treemap.colorValuePath],legendData:[],itemArea:e[a].weight}));if(this.legendCollections.sort(Ht),this.treemap.palette.length>0)for(var l=0;l<this.legendCollections.length;l++)this.legendCollections[l].legendFill=h(this.treemap.currentLevel)?this.treemap.palette[l%this.treemap.palette.length]:i}},t.prototype.calculateLegendItems=function(t){var e,i,r,n,o,s,a,l,u,c,p,d,g,f,y,m,M,v,b,w=!1,N=this.treemap.leafItemSettings,S=this.treemap.levels,D=this.treemap.legendSettings.position,j=!1,I=0;this.outOfRangeLegend=null;for(var O=0;O<t.length;O++){i="",y=!1,m=!1,j=!1,n=t[O].data,l=t[O].groupIndex,a=(s=0===this.treemap.levels.length||l===this.treemap.levels.length)?N.colorMapping:S[l].colorMapping;for(var x=0;x<a.length;x++){var C=a[x];if(c=null,r=Number(n[this.treemap.rangeColorValuePath]),u=n[this.treemap.equalColorValuePath],C.value=h(C.value)?C.value:C.value.toString(),!h(C.from)&&!h(C.to)&&r>=C.from&&r<=C.to&&C.showLegend?(w=!0,m=!0,g=C.from+" - "+C.to,o=h(C.label)?C.from+" - "+C.to:C.label,i=h(C.color)?i:C.color,e=this.isAddNewLegendData(g)):!h(C.value)&&u===C.value&&C.showLegend&&(w=!0,y=!0,g=C.value.toString(),o=h(C.label)?C.value.toString():C.label,i=h(C.color)?i:"[object Array]"===Object.prototype.toString.call(C.color)?C.color[0]:C.color,e=this.isAddNewLegendData(g)),w&&h(C.value)&&C.maxOpacity&&C.minOpacity&&"Interactive"===this.treemap.legendSettings.mode){var z=[];if(j=!0,"[object Array]"===Object.prototype.toString.call(C.color))for(var T=0;T<C.color.length;T++){var L={colorStop:(T*(100/(C.color.length-1))+"%").toString(),color:C.color[T]};z.push(L)}else{L={colorStop:"0%",color:i};var A={colorStop:"100%",color:i};z.push(L),z.push(A)}p="Top"===D||"Bottom"===D?"100%":"0%",d="Top"===D||"Bottom"===D?"0%":"100%";var P={id:"groupIndex_"+l+"_colorIndex_"+this.gradientCount,x1:"0%",y1:"0%",x2:p,y2:d};c=this.treemap.renderer.drawGradient("linearGradient",P,z).childNodes[0],"[object Array]"!==Object.prototype.toString.call(C.color)&&(c.childNodes[0].setAttribute("stop-opacity",C.minOpacity.toString()),c.childNodes[1].setAttribute("stop-opacity",C.maxOpacity.toString())),this.defsElement.appendChild(c),this.gradientCount++}f=!!this.treemap.legendSettings.removeDuplicateLegend&&this.removeDuplicates(this.legendCollections,o),e&&e.process&&w&&!f?(w=!1,i="[object Array]"===Object.prototype.toString.call(C.color)&&h(c)&&h(C.value)?this.legendGradientColor(C,I):i,this.legendCollections.push({actualValue:g,levelIndex:s?-1:x,leafIndex:s?x:-1,legendName:o,legendFill:i,legendData:[],groupIndex:s?-1:l,gradientElement:h(c)?h(C.value)?this.legendLinearGradient:null:c,name:t[O].name,opacity:this.treemap.legendSettings.opacity,borderColor:this.treemap.legendSettings.border.color,borderWidth:this.treemap.legendSettings.border.width}),this.legendCollections[this.legendCollections.length-1].legendData.push(t[O]),I++):w&&!f&&(w=!1,this.legendCollections[e.value].legendData.push(t[O])),m||j||y||h(C.from)&&h(C.to)&&h(C.minOpacity)&&h(C.maxOpacity)&&h(C.value)&&!h(C.color)&&(M="[object Array]"===Object.prototype.toString.call(C.color)?C.color[0]:C.color,v=h(C.label)?"Others":C.label,h(this.outOfRangeLegend)&&(this.legendCollections.push({actualValue:v,legendData:[],legendName:v,legendFill:M}),b=this.legendCollections.length,this.outOfRangeLegend=this.legendCollections[b-1],I++),this.legendCollections[b-1].legendData.push(t[O]))}}},t.prototype.removeDuplicates=function(t,e){for(var i=!1,r=0;r<t.length;r++)if(t[r].legendName===e){i=!0;break}return i},t.prototype.isAddNewLegendData=function(t){var e,i;if(0===this.legendCollections.length)e=!0;else for(var r=0;r<this.legendCollections.length;r++){if(t===this.legendCollections[r].actualValue){e=!1,i=r;break}r===this.legendCollections.length-1&&(e=!0)}return{process:e,value:i}},t.prototype.drawLegend=function(){var t,e,i=this.treemap.legendSettings,r=this.treemap.renderer,n=i.textStyle;if(this.legendGroup=r.createGroup({id:this.treemap.element.id+"_Legend_Group"}),this.renderLegendBorder(),this.renderLegendTitle(),"Default"===i.mode)this.drawLegendItem(this.currentPage);else for(var o=0;o<this.legendRenderingCollections.length;o++){var s=this.treemap.element.id+"_Legend_Index_"+o,a=this.treemap.element.id+"_Legend_Index_"+o+"_Text",l=this.legendRenderingCollections[o];t=(e=l.element)?"url(#"+e.id+")":l.fill;var h=new Ra(l.x,l.y,l.width,l.height),u=new Ya(l.textX,l.textY),c=new Ua(s,t,i.shapeBorder,i.opacity,h);this.treemap.enableRtl&&("Left"===this.treemap.legendSettings.position||"Right"===this.treemap.legendSettings.position||"Auto"===this.treemap.legendSettings.position&&this.treemap.availableSize.width>=this.treemap.availableSize.height?(c.y=this.translate.y+this.legendBorderRect.y+this.legendBorderRect.height-(this.translate.y+c.height)-Math.abs(this.legendBorderRect.y-c.y),u.y=this.translate.y+this.legendBorderRect.y+this.legendBorderRect.height-this.translate.y+l.textHeight/2-Math.abs(this.legendBorderRect.y-u.y)):(c.x=this.translate.x+this.legendBorderRect.x+this.legendBorderRect.width-(this.translate.x+c.width)-Math.abs(this.legendBorderRect.x-c.x),u.x=this.translate.x+this.legendBorderRect.x+this.legendBorderRect.width-this.translate.x-Math.abs(this.legendBorderRect.x-u.x))),bt(new Va(a,u.x,u.y,"middle",l.text,"",""),n,n.color||this.treemap.themeStyle.legendTextColor,this.legendGroup),this.legendGroup.appendChild(r.drawRectangle(c))}$t(this.treemap,this.legendGroup)},t.prototype.defaultLegendRtlLocation=function(t,e,i,r){var n=t.Shape,o=t.Text,s=yt(t.DisplayText,r.textStyle);return n.x=this.translate.x+this.legendBorderRect.x+this.legendBorderRect.width-(this.translate.x+e)-Math.abs(this.legendBorderRect.x-n.x),o.x=this.translate.x+this.legendBorderRect.x+this.legendBorderRect.width-(this.translate.x+s.width+e)-Math.abs(this.legendBorderRect.x-o.x),("Left"===i.legendSettings.position||"Right"===i.legendSettings.position||"Auto"===i.legendSettings.position&&this.treemap.availableSize.width>=this.treemap.availableSize.height)&&(n.y=this.translate.y+this.legendBorderRect.y+this.legendBorderRect.height-this.translate.y-Math.abs(Math.abs(this.legendBorderRect.y)-n.y)-r.shapeHeight/2,o.y=this.translate.y+this.legendBorderRect.y+this.legendBorderRect.height-this.translate.y-Math.abs(Math.abs(this.legendBorderRect.y)-o.y)),{shapeLocation:n,textLocation:o}},t.prototype.drawLegendItem=function(t){var e,i,r=this,n=this.treemap,o=n.legendSettings,s=new Fa(o.shapeWidth,o.shapeHeight),a=n.renderer,l=o.shapeBorder;if(t>=0&&t<this.totalPages.length){document.getElementById(this.legendGroup.id)&&document.getElementById(this.legendGroup.id).remove();for(var u="HorizontalLine"===o.shape||"VerticalLine"===o.shape||"Cross"===o.shape,c=u?h(o.fill)?"#000000":o.fill:l.color,p=u&&0===l.width?1:l.width,d=function(l){var h=g.totalPages[t].Collection[l],d=h.DisplayText,f=a.createGroup({id:n.element.id+"_Legend_Index_"+l});f.setAttribute("aria-label",d+" Legend"),f.setAttribute("role","region");var y=n.element.id+"_Legend_Shape_Index_"+l,m=n.element.id+"_Legend_Text_Index_"+l,M=h.Shape,v=h.Text;n.enableRtl&&(e=g.defaultLegendRtlLocation(h,10,n,o),M=e.shapeLocation,v=e.textLocation),i={cancel:!1,name:va,treemap:n,fill:h.Fill,shape:o.shape,imageUrl:o.imageUrl},n.trigger(va,i,function(t){var e=new _a(y,t.fill,p,u?h.Fill:c,o.opacity,"");f.appendChild(ne(M,t.shape,s,t.imageUrl,e)),bt(new Va(m,v.x,v.y,"start",d,"",""),o.textStyle,o.textStyle.color||n.themeStyle.legendTextColor,f),r.legendGroup.appendChild(f)})},g=this,f=0;f<this.totalPages[t].Collection.length;f++)d(f);var y=void 0;if(0!==this.page){var m=t+1+"/"+this.totalPages.length,M=o.textStyle,v=yt(m,M),b=this.legendItemRect.x+this.legendItemRect.width-v.width-20-10,w=this.legendItemRect.x+this.legendItemRect.width,N=this.legendItemRect.y+this.legendItemRect.height+2.5+10,S=w-10-v.width/2-5;y=a.createGroup({id:n.element.id+"_Legend_Paging_Group"});var D=a.createGroup({id:n.element.id+"_Legend_Left_Paging_Group"}),j=a.createGroup({id:n.element.id+"_Legend_Right_Paging_Group"}),I=" M "+w+" "+N+" L "+(w-10)+" "+(N-5)+" L "+(w-10)+" "+(N+5)+" z ",O=" M "+b+" "+N+" L "+(b+10)+" "+(N-5)+" L "+(b+10)+" "+(N+5)+" z ",x=new _a(n.element.id+"_Left_Page","#a6a6a6",0,"#a6a6a6",1,"",O);D.appendChild(a.drawPath(x));var C=new Ua(n.element.id+"_Left_Page_Rect","transparent",{},1,new Ra(b-5,N-10,20,20),"");D.appendChild(a.drawRectangle(C)),this.wireEvents(D);var z=new _a(n.element.id+"_Right_Page","#a6a6a6",0,"#a6a6a6",1,"",I);j.appendChild(a.drawPath(z));var T=new Ua(n.element.id+"_Right_Page_Rect","transparent",{},1,new Ra(w-10,N-5,10,10),"");j.appendChild(a.drawRectangle(T)),this.wireEvents(j),y.appendChild(D),y.appendChild(j);var L={id:n.element.id+"_Paging_Text",x:S,y:N+v.height/4,fill:"#a6a6a6","font-size":"14px","font-style":M.fontStyle,"font-family":M.fontFamily,"font-weight":M.fontWeight,"text-anchor":"middle",transform:"",opacity:1,"dominant-baseline":"",role:"region","aria-label":m};y.appendChild(a.createText(L,m)),this.legendGroup.appendChild(y)}}},t.prototype.renderLegendBorder=function(){var t=this.treemap,e=t.legendSettings,i=e.title.text,r=e.titleStyle,n=yt(mt(this.legendItemRect.width+20,i,r),r);this.legendBorderRect=new Ra(this.legendItemRect.x-10,this.legendItemRect.y-10-n.height,this.legendItemRect.width+20,this.legendItemRect.height+20+n.height+("Interactive"===e.mode?0:0!==this.page?10:0));var o=new Ua(t.element.id+"_Legend_Border",e.background,e.border,1,this.legendBorderRect,""),s=t.renderer.drawRectangle(o);s.style.pointerEvents="none",this.legendGroup.appendChild(s),this.getLegendAlignment(t,this.legendBorderRect.width,this.legendBorderRect.height,e),this.legendGroup.setAttribute("transform","translate( "+(this.translate.x+-this.legendBorderRect.x)+" "+(this.translate.y+-this.legendBorderRect.y)+" )"),t.svgObject.appendChild(this.legendGroup)},t.prototype.renderLegendTitle=function(){var t=this.treemap.legendSettings,e=t.titleStyle,i=t.title.text,r=mt(this.legendItemRect.width+20,i,e),n=yt(r,e);if(i){var o=bt(new Va(this.treemap.element.id+"_LegendTitle",this.legendItemRect.x+this.legendItemRect.width/2,this.legendItemRect.y-n.height/2-5,"middle",r,""),e,e.color||this.treemap.themeStyle.legendTitleColor,this.legendGroup);o.setAttribute("role","region"),o.setAttribute("aria-label",i)}},t.prototype.renderInteractivePointer=function(t){var e=this.treemap,i=t.target,r=e.element.id+"_Interactive_Legend";i=t.type.indexOf("touch")>-1?document.elementFromPoint(t.changedTouches[0].clientX,t.changedTouches[0].clientY):i;var n,o=e.legendSettings;if(i.id.indexOf("_Item_Index")>-1&&o.visible&&this.legendRenderingCollections.length>0){var s=void 0,a=void 0,l=void 0,u=void 0,c=void 0,p=void 0,d=void 0;n=e.layout.renderItems[parseFloat(i.id.split("_Item_Index_")[1])];for(var g=e.svgObject.getBoundingClientRect(),f=0;f<this.legendCollections.length;f++){s=this.legendCollections[f],a=(d=document.getElementById(e.element.id+"_Legend_Index_"+f)).getBoundingClientRect();var y=new Ra(Math.abs(a.left-g.left),Math.abs(a.top-g.top),a.width,a.height);if(u=d.getAttribute("fill"),c=o.shapeBorder.color,p=o.shapeBorder.width,!h(s.legendData)){l=s.legendData;for(var m=0;m<l.length;m++)if(l[m].levelOrderName===n.levelOrderName){this.drawInteractivePointer(o,u,c,r,p,y);break}}}}else this.removeInteractivePointer()},t.prototype.drawInteractivePointer=function(t,e,i,r,n,o){var s,a,l;s="Horizontal"===("None"===t.orientation?"Top"===t.position||"Bottom"===t.position?"Horizontal":"Vertical":t.orientation)?t.invertedPointer?" M "+(a=o.x+o.width/2)+" "+(l=o.y+o.height)+" L "+(a-10)+" "+(l+10)+" L "+(a+10)+" "+(l+10)+" Z ":" M "+(a=o.x+o.width/2)+" "+(l=o.y)+" L "+(a-10)+" "+(l-10)+" L "+(a+10)+" "+(l-10)+" Z ":t.invertedPointer?" M "+(a=o.x)+" "+(l=o.y+o.height/2)+" L "+(a-10)+" "+(l-10)+" L "+(a-10)+" "+(l+10)+" z ":" M "+(a=o.x+o.width)+" "+(l=o.y+o.height/2)+" L "+(a+10)+" "+(l-10)+" L "+(a+10)+" "+(l+10)+" z ";var h=new _a(r,e,n,i,1,"",s);this.treemap.svgObject.appendChild(this.treemap.renderer.drawPath(h))},t.prototype.getLegendAlignment=function(t,e,i,r){var n,o,s,a=(s=l({},t.areaRect,s,!0)).x,h=s.y,u=s.height,c=s.width,p=t.availableSize.width,d=t.availableSize.height,g="Auto"===r.position?p>d?"Right":"Bottom":r.position;if("Float"===r.position)this.translate=r.location;else{switch(g){case"Top":case"Bottom":s.height=u-i,n=p/2-e/2,o="Top"===g?h:h+s.height+10,s.y="Top"===g?h+i+10:h;break;case"Left":case"Right":s.width=c-e,n="Left"===g?a:a+s.width,o=d/2-i/2,s.x="Left"===g?a+e:a}switch(r.alignment){case"Near":"Top"===g||"Bottom"===g?n=s.x:o=s.y;break;case"Far":"Top"===g||"Bottom"===g?n=p-e:o=d-i}this.treemap.totalRect=s,this.translate=new Ya(n,o)}},t.prototype.mouseUpHandler=function(t){this.renderInteractivePointer(t),clearTimeout(this.clearTimeout),this.clearTimeout=setTimeout(this.removeInteractivePointer.bind(this),3e3)},t.prototype.removeInteractivePointer=function(){if(document.getElementById(this.treemap.element.id+"_Interactive_Legend")){var t=document.getElementById(this.treemap.element.id+"_Interactive_Legend");t.parentNode.removeChild(t)}},t.prototype.changeNextPage=function(t){this.currentPage=t.target.id.indexOf("_Left_Page_")>-1?this.currentPage-1:this.currentPage+1,this.currentPage>=0&&this.currentPage<this.totalPages.length?this.drawLegend():this.currentPage=t.target.id.indexOf("_Left_Page_")>-1?0:this.totalPages.length-1},t.prototype.wireEvents=function(t){xo.add(t,Oo.touchStartEvent,this.changeNextPage,this)},t.prototype.addEventListener=function(){this.treemap.isDestroyed||(this.treemap.on(Oo.touchMoveEvent,this.renderInteractivePointer,this),this.treemap.on(Oo.touchEndEvent,this.mouseUpHandler,this))},t.prototype.removeEventListener=function(){this.treemap.isDestroyed||(this.treemap.off(Oo.touchMoveEvent,this.renderInteractivePointer),this.treemap.off(Oo.touchEndEvent,this.mouseUpHandler))},t.prototype.getModuleName=function(){return"treeMapLegend"},t.prototype.destroy=function(){clearTimeout(this.clearTimeout),this.clearTimeout=null,this.legendRenderingCollections=[],this.legendCollections=[],this.outOfRangeLegend=null,this.totalPages=[],this.translate=null,this.legendBorderRect=null,this.legendGroup=null,this.legendNames=[],this.defsElement=null,this.legendLinearGradient=null,this.legendInteractiveGradient=[],this.legendItemRect=null,this.removeEventListener(),this.treemap=null},t.prototype.legendGradientColor=function(t,e){var i,r="http://www.w3.org/2000/svg";if(!h(t.color)&&"[object Array]"===Object.prototype.toString.call(t.color)){var n=this.treemap.renderer.createDefs(),o=document.createElementNS(r,"linearGradient"),s=this.treemap.legendSettings.position,a="Top"===s||"Bottom"===s?"100":"0",l="Top"===s||"Bottom"===s?"0":"100";o.setAttribute("id","linear_"+e),o.setAttribute("x1","0%"),o.setAttribute("y1","0%"),o.setAttribute("x2",a+"%"),o.setAttribute("y2",l+"%");for(var u=0;u<t.color.length;u++){var c=100/(t.color.length-1),p=document.createElementNS(r,"stop");p.setAttribute("offset",u*c+"%"),p.setAttribute("stop-color",t.color[u]),p.setAttribute("stop-opacity",1..toString()),o.appendChild(p)}n.appendChild(o),this.legendLinearGradient=o;var d="url(#linear_"+e+")";this.defsElement.appendChild(o),i=d}return i},t}(),Pd=function(){function t(t){this.target="highlight",this.shapeTarget="highlight",this.shapeHighlightCollection=[],this.legendHighlightCollection=[],this.currentElement=[],this.treemap=t,this.addEventListener()}return t.prototype.mouseMove=function(t){var e,i,r,n,o,s,a,l=this.treemap,h=t.target.id,u=[],c=this.treemap.highlightSettings,p=[],d=this.treemap.treeMapSelectionModule;if(h.indexOf("_Item_Index")>-1&&(!d||this.treemap.selectionId!==h)){if(this.highLightId!==h){o=document.getElementById(l.element.id+"_TreeMap_"+l.layoutType+"_Layout");var g=document.getElementsByClassName("treeMapSelection");r=this.treemap.layout.renderItems[parseFloat(h.split("_Item_Index_")[1])];var f=void 0;if(this.treemap.legendSettings.visible){var y=this.treemap.treeMapLegendModule.legendCollections;f=ce(this.treemap.treeMapLegendModule.legendCollections.length,r,l),this.shapeElement="Default"===this.treemap.legendSettings.mode?document.getElementById(this.treemap.element.id+"_Legend_Shape_Index_"+f):document.getElementById(this.treemap.element.id+"_Legend_Index_"+f),null===this.shapeElement||d&&this.shapeElement.getAttribute("id")===d.legendSelectId?this.currentElement.length>0&&this.currentElement[this.currentElement.length-1].currentElement!==this.shapeElement&&(ue(this.shapeHighlightCollection,this.currentElement,l),this.highLightId=""):d&&this.shapeElement===d.shapeElement?this.currentElement.length>0&&this.currentElement[this.currentElement.length-1].currentElement!==this.shapeElement&&(ue(this.shapeHighlightCollection,this.currentElement,l),this.highLightId=""):(this.currentElement.push({currentElement:this.shapeElement}),ae(this.shapeHighlightCollection),this.shapeHighlightCollection.push({legendEle:this.shapeElement,oldFill:y[f].legendFill,oldOpacity:y[f].opacity,oldBorderColor:y[f].borderColor,oldBorderWidth:y[f].borderWidth}),he(this.shapeElement,c.fill,c.opacity,c.border.color,c.border.width.toString()),this.target="highlight")}if(a=It(r,[],c.mode,l),!this.treemap.legendSettings.visible||(!d||(!this.shapeElement||this.shapeElement.getAttribute("id")!==d.legendSelectId)))if(this.treemap.legendSettings.visible&&(d&&this.shapeElement===d.shapeElement))e=!1;else{for(var m=0;m<o.childElementCount;m++){s=o.childNodes[m],n=!0,r=l.layout.renderItems[parseFloat(s.id.split("_Item_Index_")[1])];for(var M=0;M<g.length;M++)if(s.id===g[M].id){n=!1;break}a.indexOf(r.levelOrderName)>-1&&n&&(p.push(s),u.push(r))}Kt(document.getElementsByClassName("treeMapHighLight"),"treeMapHighLight",l);for(var v=0;v<p.length;v++)Jt((s=p[v]).childNodes[0],{border:c.border,fill:c.fill,opacity:c.opacity}),s.classList.add("treeMapHighLight"),this.highLightId=h;i={cancel:!1,name:fa,treemap:l,items:u,elements:p},l.trigger(fa,i)}}}else if(h.indexOf("_Legend_Shape")>-1||h.indexOf("_Legend_Index")>-1){if(this.treemap.legendSettings.visible&&(!d||d.legendSelectId!==h)&&(!d||d.shapeSelectId!==h)){var b,w=void 0,N=void 0,S=document.getElementById(h);"highlight"===this.shapeTarget&&le(this.legendHighlightCollection),this.shapeTarget="highlight";f="Default"===this.treemap.legendSettings.mode?parseFloat(h.split("_Legend_Shape_Index_")[1]):parseFloat(h.split("_Legend_Index_")[1]);var D=this.treemap.treeMapLegendModule.legendCollections[f].legendData.length,j=(y=this.treemap.treeMapLegendModule.legendCollections,parseInt(h[h.length-1],10));for(m=0;m<D;m++)for(M=0;M<this.treemap.layout.renderItems.length;M++)if(this.treemap.treeMapLegendModule.legendCollections[f].legendData[m].levelOrderName===this.treemap.layout.renderItems[M].levelOrderName){w=M,N=this.treemap.layout.renderItems[M].groupIndex;var I=document.getElementById(this.treemap.element.id+"_Level_Index_"+N+"_Item_Index_"+w+"_RectPath");0===m&&(this.legendHighlightCollection=[],pe(this.legendHighlightCollection,j,M,S,I,this.treemap.layout.renderItems,y),b=this.legendHighlightCollection.length,this.legendHighlightCollection[b-1].ShapeCollection={Elements:[]}),he(S,c.fill,c.opacity,c.border.color,c.border.width.toString()),he(I,c.fill,c.opacity,c.border.color,c.border.width.toString()),b=this.legendHighlightCollection.length,this.legendHighlightCollection[b-1].ShapeCollection.Elements.push(I)}}}else d&&this.shapeElement&&this.shapeElement.getAttribute("id")===d.legendSelectId||(d?this.shapeElement!==d.shapeElement:this.treemap.legendSettings.visible)&&Kt(document.getElementsByClassName("treeMapHighLight"),"treeMapHighLight",l),"highlight"!==this.shapeTarget&&"highlight"!==this.target||!this.treemap.legendSettings.visible||d&&this.shapeElement&&this.shapeElement.getAttribute("id")===d.legendSelectId||(d?this.shapeElement!==d.shapeElement:!d||d.legendSelect)&&(ae(this.shapeHighlightCollection),this.shapeHighlightCollection=[]),"highlight"===this.shapeTarget&&this.treemap.legendSettings.visible&&le(this.legendHighlightCollection),this.highLightId="",e=!1;return e},t.prototype.addEventListener=function(){this.treemap.isDestroyed||this.treemap.on(Oo.touchMoveEvent,this.mouseMove,this)},t.prototype.removeEventListener=function(){this.treemap.isDestroyed||this.treemap.off(Oo.touchMoveEvent,this.mouseMove)},t.prototype.getModuleName=function(){return"treeMapHighlight"},t.prototype.destroy=function(){this.shapeElement=null,this.shapeHighlightCollection=[],this.legendHighlightCollection=[],this.currentElement=[],this.removeEventListener(),this.treemap=null},t}(),Ed=function(){function t(t){this.shapeSelectionCollection=[],this.legendSelectionCollection=[],this.shapeSelect=!0,this.legendSelect=!0,this.treemap=t,this.addEventListener()}return t.prototype.mouseDown=function(t){var e,i=t.target,r=this.treemap;r.levelSelection=[];var n,o,s,a,l=[],h=i.id,u=i.innerHTML,c=[],p=r.selectionSettings,d=this.treemap.treeMapHighlightModule,g=r.element.id+"_TreeMap_"+r.layoutType+"_Layout";if(h.indexOf("_Item_Index")>-1)if(t.preventDefault(),this.treemap.selectionId!==h&&this.legendSelect){o=document.getElementById(g),n=r.layout.renderItems[parseFloat(h.split("_Item_Index_")[1])];var f=void 0;if(this.treemap.legendSettings.visible){this.shapeSelect=!1;var y=this.treemap.treeMapLegendModule.legendCollections.length,m=this.treemap.treeMapLegendModule.legendCollections;this.shapeElement=void 0,ae(this.shapeSelectionCollection),d&&(d.shapeTarget="selection",d.shapeHighlightCollection=[]),f=ce(y,n,r),this.shapeElement="Default"===this.treemap.legendSettings.mode?document.getElementById(this.treemap.element.id+"_Legend_Shape_Index_"+f):document.getElementById(this.treemap.element.id+"_Legend_Index_"+f),null!==this.shapeElement&&(this.shapeSelectId=this.shapeElement.getAttribute("id"),this.shapeSelectionCollection.push({legendEle:this.shapeElement,oldFill:m[f].legendFill,oldOpacity:m[f].opacity,oldBorderColor:m[f].borderColor,oldBorderWidth:m[f].borderWidth}),he(this.shapeElement,p.fill,p.opacity,p.border.color,p.border.width.toString()))}a=It(n,[],p.mode,r);for(var M=0;M<o.childElementCount;M++)s=o.childNodes[M],n=r.layout.renderItems[parseFloat(s.id.split("_Item_Index_")[1])],a.indexOf(n.levelOrderName)>-1&&(c.push(s),r.levelSelection.push(s.id),l.push(n));Kt(document.getElementsByClassName("treeMapSelection"),"treeMapSelection",r),this.treemap.selectionId=h;for(var v=document.getElementsByClassName("treeMapHighLight"),b=0;b<c.length;b++){if(s=c[b],v.length>0)for(var w=0;w<v.length;w++)v[w].id===s.id&&v[w].classList.remove("treeMapHighLight"),Jt(s.childNodes[0],{border:p.border,fill:p.fill,opacity:p.opacity}),s.classList.add("treeMapSelection");else Jt(s.childNodes[0],{border:p.border,fill:p.fill,opacity:p.opacity}),s.classList.add("treeMapSelection");e={cancel:!1,name:ga,treemap:r,items:l,elements:c,text:u,contentItemTemplate:u},r.trigger(ga,e,function(t){t.contentItemTemplate!==u&&wt(h,i,t.contentItemTemplate)})}}else ae(this.shapeSelectionCollection),this.shapeSelectionCollection=[],this.shapeElement=void 0,this.shapeSelect=!0,this.shapeSelectId="",this.treemap.legendId=[],Kt(document.getElementsByClassName("treeMapSelection"),"treeMapSelection",r),this.treemap.selectionId="";else if(h.indexOf("_Legend_Shape")>-1||h.indexOf("_Legend_Index")>-1){m=this.treemap.treeMapLegendModule.legendCollections;if(this.treemap.legendSettings.visible&&this.legendSelectId!==h&&this.shapeSelect){var N,S=void 0,D=void 0;this.legendSelectId=h,this.legendSelect=!1;var j=parseInt(h[h.length-1],10),I=document.getElementById(h);le(this.legendSelectionCollection),d&&(d.shapeTarget="selection");f="Default"===this.treemap.legendSettings.mode?parseFloat(h.split("_Legend_Shape_Index_")[1]):parseFloat(h.split("_Legend_Index_")[1]);var O=this.treemap.treeMapLegendModule.legendCollections[f].legendData.length;for(b=0;b<O;b++)for(var x=0;x<this.treemap.layout.renderItems.length;x++)if(this.treemap.treeMapLegendModule.legendCollections[f].legendData[b].levelOrderName===this.treemap.layout.renderItems[x].levelOrderName){S=x,D=this.treemap.layout.renderItems[x].groupIndex;var C=document.getElementById(this.treemap.element.id+"_Level_Index_"+D+"_Item_Index_"+S+"_RectPath");0===b&&(pe(this.legendSelectionCollection,j,x,I,C,this.treemap.layout.renderItems,m),N=this.legendSelectionCollection.length,this.legendSelectionCollection[N-1].ShapeCollection={Elements:[]}),he(I,p.fill,p.opacity,p.border.color,p.border.width.toString()),he(C,p.fill,p.opacity,p.border.color,p.border.width.toString()),N=this.legendSelectionCollection.length,this.legendSelectionCollection[N-1].ShapeCollection.Elements.push(C)}}else le(this.legendSelectionCollection),d&&(d.shapeTarget="highlight"),this.legendSelect=!0,this.legendSelectId=""}},t.prototype.selectTreemapItem=function(t,e){if(e){for(var i=void 0,r=0;r<this.treemap.layout.renderItems.length;r++)if(t===this.treemap.layout.renderItems[r].levelOrderName){i=this.treemap.layout.renderItems[r];break}var n=this.treemap.selectionSettings,o=[],s=void 0,a=void 0,l=[];this.treemap.levelSelection=[];for(var h=this.treemap.element.id+"_TreeMap_"+this.treemap.layoutType+"_Layout",u=document.getElementById(h),c=It(i,[],n.mode,this.treemap),p=0;p<u.childElementCount;p++)s=u.childNodes[p],i=this.treemap.layout.renderItems[parseFloat(s.id.split("_Item_Index_")[1])],c.indexOf(i.levelOrderName)>-1&&(o.push(s),this.treemap.levelSelection.push(s.id),l.push(i));if(this.treemap.legendSettings.visible)for(var d=0;d<l.length;d++){this.shapeSelect=!1;var g=this.treemap.treeMapLegendModule.legendCollections.length,f=this.treemap.treeMapLegendModule.legendCollections;this.shapeElement=void 0,ae(this.shapeSelectionCollection),a=ce(g,l[d],this.treemap),this.shapeElement="Default"===this.treemap.legendSettings.mode?document.getElementById(this.treemap.element.id+"_Legend_Shape_Index_"+a):document.getElementById(this.treemap.element.id+"_Legend_Index_"+a),null!==this.shapeElement&&(this.shapeSelectId=this.shapeElement.getAttribute("id"),this.treemap.legendId.push(this.shapeSelectId),this.shapeSelectionCollection.push({legendEle:this.shapeElement,oldFill:f[a].legendFill,oldOpacity:f[a].opacity,oldBorderColor:f[a].borderColor,oldBorderWidth:f[a].borderWidth}),he(this.shapeElement,n.fill,n.opacity,n.border.color,n.border.width.toString()))}Kt(document.getElementsByClassName("treeMapSelection"),"treeMapSelection",this.treemap);var y=document.getElementById(this.treemap.levelSelection[0]);this.treemap.selectionId=y.childNodes[0].id;for(var m=document.getElementsByClassName("treeMapHighLight"),M=0;M<o.length;M++)if(s=o[M],m.length>0)for(var v=0;v<m.length;v++)m[v].id===s.id&&m[v].classList.remove("treeMapHighLight"),Jt(s.childNodes[0],{border:n.border,fill:n.fill,opacity:n.opacity}),s.classList.add("treeMapSelection");else n.fill="null"===n.fill?this.treemap.layout.renderItems[parseInt(s.id.split("Item_Index_")[1],10)].options.fill:n.fill,Jt(s.childNodes[0],{border:n.border,fill:n.fill,opacity:n.opacity}),s.classList.add("treeMapSelection")}else ae(this.shapeSelectionCollection),this.shapeElement=void 0,this.treemap.levelSelection=[],this.shapeSelect=!0,this.shapeSelectId="",this.treemap.legendId=[],Kt(document.getElementsByClassName("treeMapSelection"),"treeMapSelection",this.treemap),this.treemap.selectionId=""},t.prototype.addEventListener=function(){this.treemap.isDestroyed||this.treemap.on(Oo.touchStartEvent,this.mouseDown,this)},t.prototype.removeEventListener=function(){this.treemap.isDestroyed||this.treemap.off(Oo.touchStartEvent,this.mouseDown)},t.prototype.getModuleName=function(){return"treeMapSelection"},t.prototype.destroy=function(){this.shapeElement=null,this.shapeSelectionCollection=[],this.legendSelectionCollection=[],this.removeEventListener(),this.treemap=null},t}(),kd=function(t,e){var i={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(i[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(t);n<r.length;n++)e.indexOf(r[n])<0&&(i[r[n]]=t[r[n]])}return i},Bd=function(){function t(t){this.treemap=t,this.tooltipSettings=this.treemap.tooltipSettings,this.tooltipId=this.treemap.element.id+"_TreeMapTooltip",this.addEventListener()}return t.prototype.renderTooltip=function(t){var e,i,r,n,o,s=this;-1!==t.type.indexOf("touch")?(this.isTouch=!0,e=(n=t).changedTouches[0].pageX,i=n.changedTouches[0].pageY,r=n.target):(this.isTouch="touch"===t.pointerType,e=t.pageX,i=t.pageY,r=t.target);var a,l,u,c,p=r.id,d={},g={},f=[];p.indexOf("_Item_Index")>-1?h(d=this.treemap.layout.renderItems[parseFloat(p.split("_Item_Index_")[1])])||(a=d.weight,g=d.data,h(d.options)||(c=d.options.fill),f=this.treemap.enableRtl?[(h(this.tooltipSettings.format)?null:Zt(this.tooltipSettings.format,g,this.treemap))||Xt(a,this.treemap)+" : "+this.treemap.weightValuePath.toString()]:[(h(this.tooltipSettings.format)?null:Zt(this.tooltipSettings.format,g,this.treemap))||this.treemap.weightValuePath.toString()+" : "+Xt(a,this.treemap)],document.getElementById(this.tooltipId)?l=document.getElementById(this.tooltipId):((l=M("div",{id:this.treemap.element.id+"_TreeMapTooltip",className:"EJ2-TreeMap-Tooltip"})).style.cssText="position: absolute;pointer-events:none;",document.getElementById(this.treemap.element.id+"_Secondary_Element").appendChild(l)),(u=Et(e,i,this.treemap.svgObject)).y=this.tooltipSettings.template?u.y+10:u.y,this.tooltipSettings.textStyle.size=this.tooltipSettings.textStyle.size||this.treemap.themeStyle.tooltipFontSize,this.tooltipSettings.textStyle.fontFamily=this.tooltipSettings.textStyle.fontFamily||this.treemap.themeStyle.fontFamily,this.tooltipSettings.textStyle.fontStyle=h(this.tooltipSettings.textStyle.fontStyle)?"Normal":this.tooltipSettings.textStyle.fontStyle,this.tooltipSettings.textStyle.fontWeight=this.tooltipSettings.textStyle.fontWeight||this.treemap.themeStyle.fontWeight,this.tooltipSettings.textStyle.color=this.treemap.themeStyle.tooltipFontColor||this.tooltipSettings.textStyle.color,this.tooltipSettings.textStyle.opacity=this.treemap.themeStyle.tooltipTextOpacity||this.tooltipSettings.textStyle.opacity,o={cancel:!1,name:ya,item:d,options:{location:u,text:f,data:g,textStyle:this.tooltipSettings.textStyle,template:this.tooltipSettings.template},treemap:this.treemap,element:r,eventArgs:t},this.treemap.trigger(ya,o,function(t){s.addTooltip(o,c,l)})):(this.removeTooltip(),this.treemap.clearTemplate())},t.prototype.addTooltip=function(t,e,i,r){var n,o;if(h(t))n=r.cancel,o=r;else{n=t.cancel,o=kd(t,["cancel"]).options}n?(this.removeTooltip(),this.treemap.clearTemplate()):(this.svgTooltip=new ua({enable:!0,header:"",data:o.data,template:o.template,content:o.text,shapes:[],location:o.location,palette:[e],areaBounds:this.treemap.areaRect,textStyle:o.textStyle,fill:this.treemap.tooltipSettings.fill?this.treemap.tooltipSettings.fill:this.treemap.themeStyle.tooltipFillColor,enableShadow:!0}),(this.treemap.isVue||this.treemap.isVue3)&&(this.svgTooltip.controlInstance=this.treemap),this.svgTooltip.opacity=this.treemap.themeStyle.tooltipFillOpacity||this.svgTooltip.opacity,this.svgTooltip.appendTo(i),this.treemap.renderReactTemplates())},t.prototype.mouseUpHandler=function(t){this.renderTooltip(t),clearTimeout(this.clearTimeout),this.clearTimeout=setTimeout(this.removeTooltip.bind(this),2e3)},t.prototype.removeTooltip=function(){if(document.getElementsByClassName("EJ2-TreeMap-Tooltip").length>0){var t=document.getElementsByClassName("EJ2-TreeMap-Tooltip")[0];t.parentNode.removeChild(t)}},t.prototype.addEventListener=function(){this.treemap.isDestroyed||(this.treemap.on(Oo.touchMoveEvent,this.renderTooltip,this),this.treemap.on(Oo.touchEndEvent,this.mouseUpHandler,this))},t.prototype.removeEventListener=function(){this.treemap.isDestroyed||(this.treemap.off(Oo.touchMoveEvent,this.renderTooltip),this.treemap.off(Oo.touchEndEvent,this.mouseUpHandler))},t.prototype.getModuleName=function(){return"treeMapTooltip"},t.prototype.destroy=function(){h(this.svgTooltip)||this.svgTooltip.destroy(),this.svgTooltip=null,this.tooltipSettings=null,this.removeEventListener(),this.treemap=null},t}(),Fd=Object.freeze({}),Rd=Object.prototype.toString,Ud=Ce("slot,component",!0),_d=Ce("key,ref,slot,slot-scope,is"),Vd=Object.prototype.hasOwnProperty,Yd=/-(\w)/g,Qd=Le(function(t){return t.replace(Yd,function(t,e){return e?e.toUpperCase():""})}),Wd=Le(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),Gd=/\B([A-Z])/g,Hd=Le(function(t){return t.replace(Gd,"-$1").toLowerCase()}),qd=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function i(i){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,i):t.call(e)}return i._length=t.length,i},$d=function(t,e,i){return!1},Kd=function(t){return t},Jd="data-server-rendered",Zd=["component","directive","filter"],Xd=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],tg={optionMergeStrategies:Object.create(null),silent:!1,productionTip:"production"!==process.env.NODE_ENV,devtools:"production"!==process.env.NODE_ENV,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:$d,isReservedAttr:$d,isUnknownElement:$d,getTagNamespace:ke,parsePlatformTagName:Kd,mustUseProp:$d,async:!0,_lifecycleHooks:Xd},eg=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/,ig=new RegExp("[^"+eg.source+".$_\\d]"),rg="__proto__"in{},ng="undefined"!=typeof window,og="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,sg=og&&WXEnvironment.platform.toLowerCase(),ag=ng&&window.navigator.userAgent.toLowerCase(),lg=ag&&/msie|trident/.test(ag),hg=ag&&ag.indexOf("msie 9.0")>0,ug=ag&&ag.indexOf("edge/")>0,cg=(ag&&ag.indexOf("android"),ag&&/iphone|ipad|ipod|ios/.test(ag)||"ios"===sg),pg=(ag&&/chrome\/\d+/.test(ag),ag&&/phantomjs/.test(ag),ag&&ag.match(/firefox\/(\d+)/)),dg={}.watch,gg=!1;if(ng)try{var fg={};Object.defineProperty(fg,"passive",{get:function(){gg=!0}}),window.addEventListener("test-passive",null,fg)}catch(t){}var yg,mg,Mg=function(){return void 0===yg&&(yg=!ng&&!og&&"undefined"!=typeof global&&(global.process&&"server"===global.process.env.VUE_ENV)),yg},vg=ng&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,bg="undefined"!=typeof Symbol&&Ve(Symbol)&&"undefined"!=typeof Reflect&&Ve(Reflect.ownKeys);mg="undefined"!=typeof Set&&Ve(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var wg=ke,Ng=ke,Sg=ke,Dg=ke;if("production"!==process.env.NODE_ENV){var jg="undefined"!=typeof console,Ig=/(?:^|[-_])(\w)/g;wg=function(t,e){var i=e?Sg(e):"";tg.warnHandler?tg.warnHandler.call(null,t,e,i):jg&&!tg.silent&&console.error("[Vue warn]: "+t+i)},Ng=function(t,e){jg&&!tg.silent&&console.warn("[Vue tip]: "+t+(e?Sg(e):""))},Dg=function(t,e){if(t.$root===t)return"<Root>";var i="function"==typeof t&&null!=t.cid?t.options:t._isVue?t.$options||t.constructor.options:t,r=i.name||i._componentTag,n=i.__file;if(!r&&n){var o=n.match(/([^/\\]+)\.vue$/);r=o&&o[1]}return(r?"<"+function(t){return t.replace(Ig,function(t){return t.toUpperCase()}).replace(/[-_]/g,"")}(r)+">":"<Anonymous>")+(n&&!1!==e?" at "+n:"")};Sg=function(t){if(t._isVue&&t.$parent){for(var e=[],i=0;t;){if(e.length>0){var r=e[e.length-1];if(r.constructor===t.constructor){i++,t=t.$parent;continue}i>0&&(e[e.length-1]=[r,i],i=0)}e.push(t),t=t.$parent}return"\n\nfound in\n\n"+e.map(function(t,e){return""+(0===e?"---\x3e ":function(t,e){for(var i="";e;)e%2==1&&(i+=t),e>1&&(t+=t),e>>=1;return i}(" ",5+2*e))+(Array.isArray(t)?Dg(t[0])+"... ("+t[1]+" recursive calls)":Dg(t))}).join("\n")}return"\n\n(found in "+Dg(t)+")"}}var Og=0,xg=function(){this.id=Og++,this.subs=[]};xg.prototype.addSub=function(t){this.subs.push(t)},xg.prototype.removeSub=function(t){ze(this.subs,t)},xg.prototype.depend=function(){xg.target&&xg.target.addDep(this)},xg.prototype.notify=function(){var t=this.subs.slice();"production"===process.env.NODE_ENV||tg.async||t.sort(function(t,e){return t.id-e.id});for(var e=0,i=t.length;e<i;e++)t[e].update()},xg.target=null;var Cg=[],zg=function(t,e,i,r,n,o,s,a){this.tag=t,this.data=e,this.children=i,this.text=r,this.elm=n,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=s,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=a,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},Tg={child:{configurable:!0}};Tg.child.get=function(){return this.componentInstance},Object.defineProperties(zg.prototype,Tg);var Lg=function(t){void 0===t&&(t="");var e=new zg;return e.text=t,e.isComment=!0,e},Ag=Array.prototype,Pg=Object.create(Ag);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(t){var e=Ag[t];_e(Pg,t,function(){for(var i=[],r=arguments.length;r--;)i[r]=arguments[r];var n,o=e.apply(this,i),s=this.__ob__;switch(t){case"push":case"unshift":n=i;break;case"splice":n=i.slice(2)}return n&&s.observeArray(n),s.dep.notify(),o})});var Eg=Object.getOwnPropertyNames(Pg),kg=!0,Bg=function(t){this.value=t,this.dep=new xg,this.vmCount=0,_e(t,"__ob__",this),Array.isArray(t)?(rg?function(t,e){t.__proto__=e}(t,Pg):function(t,e,i){for(var r=0,n=i.length;r<n;r++){var o=i[r];_e(t,o,e[o])}}(t,Pg,Eg),this.observeArray(t)):this.walk(t)};Bg.prototype.walk=function(t){for(var e=Object.keys(t),i=0;i<e.length;i++)$e(t,e[i])},Bg.prototype.observeArray=function(t){for(var e=0,i=t.length;e<i;e++)qe(t[e])};var Fg=tg.optionMergeStrategies;"production"!==process.env.NODE_ENV&&(Fg.el=Fg.propsData=function(t,e,i,r){return i||wg('option "'+r+'" can only be used during instance creation with the `new` keyword.'),Ug(t,e)}),Fg.data=function(t,e,i){return i?ti(t,e,i):e&&"function"!=typeof e?("production"!==process.env.NODE_ENV&&wg('The "data" option should be a function that returns a per-instance value in component definitions.',i),t):ti(t,e)},Xd.forEach(function(t){Fg[t]=ei}),Zd.forEach(function(t){Fg[t+"s"]=ii}),Fg.watch=function(t,e,i,r){if(t===dg&&(t=void 0),e===dg&&(e=void 0),!e)return Object.create(t||null);if("production"!==process.env.NODE_ENV&&ni(r,e,i),!t)return e;var n={};Pe(n,t);for(var o in e){var s=n[o],a=e[o];s&&!Array.isArray(s)&&(s=[s]),n[o]=s?s.concat(a):Array.isArray(a)?a:[a]}return n},Fg.props=Fg.methods=Fg.inject=Fg.computed=function(t,e,i,r){if(e&&"production"!==process.env.NODE_ENV&&ni(r,e,i),!t)return e;var n=Object.create(null);return Pe(n,t),e&&Pe(n,e),n},Fg.provide=ti;var Rg,Ug=function(t,e){return void 0===e?t:e},_g=/^(String|Number|Boolean|Function|Symbol|BigInt)$/,Vg=/^\s*function (\w+)/,Yg=["string","number","boolean"],Qg=!1,Wg=[],Gg=!1;if("undefined"!=typeof Promise&&Ve(Promise)){var Hg=Promise.resolve();Rg=function(){Hg.then(mi),cg&&setTimeout(ke)},Qg=!0}else if(lg||"undefined"==typeof MutationObserver||!Ve(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Rg="undefined"!=typeof setImmediate&&Ve(setImmediate)?function(){setImmediate(mi)}:function(){setTimeout(mi,0)};else{var qg=1,$g=new MutationObserver(mi),Kg=document.createTextNode(String(qg));$g.observe(Kg,{characterData:!0}),Rg=function(){qg=(qg+1)%2,Kg.data=String(qg)},Qg=!0}var Jg;if("production"!==process.env.NODE_ENV){var Zg=Ce("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,require"),Xg=function(t,e){wg('Property or method "'+e+'" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',t)},tf=function(t,e){wg('Property "'+e+'" must be accessed with "$data.'+e+'" because properties starting with "$" or "_" are not proxied in the Vue instance to prevent conflicts with Vue internals. See: https://vuejs.org/v2/api/#data',t)},ef="undefined"!=typeof Proxy&&Ve(Proxy);if(ef){var rf=Ce("stop,prevent,self,ctrl,shift,alt,meta,exact");tg.keyCodes=new Proxy(tg.keyCodes,{set:function(t,e,i){return rf(e)?(wg("Avoid overwriting built-in modifier in config.keyCodes: ."+e),!1):(t[e]=i,!0)}})}var nf={has:function(t,e){var i=e in t,r=Zg(e)||"string"==typeof e&&"_"===e.charAt(0)&&!(e in t.$data);return i||r||(e in t.$data?tf(t,e):Xg(t,e)),i||!r}},of={get:function(t,e){return"string"!=typeof e||e in t||(e in t.$data?tf(t,e):Xg(t,e)),t[e]}};Jg=function(t){if(ef){var e=t.$options,i=e.render&&e.render._withStripped?of:nf;t._renderProxy=new Proxy(t,i)}else t._renderProxy=t}}var sf,af,lf=new mg;if("production"!==process.env.NODE_ENV){var hf=ng&&window.performance;hf&&hf.mark&&hf.measure&&hf.clearMarks&&hf.clearMeasures&&(sf=function(t){return hf.mark(t)},af=function(t,e,i){hf.measure(t,e,i),hf.clearMarks(e),hf.clearMarks(i)})}var uf=Le(function(t){var e="&"===t.charAt(0),i="~"===(t=e?t.slice(1):t).charAt(0),r="!"===(t=i?t.slice(1):t).charAt(0);return t=r?t.slice(1):t,{name:t,once:i,capture:r,passive:e}});Hi(qi.prototype);var cf,pf={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var i=t;pf.prepatch(i,i)}else{(t.componentInstance=function(t,e){var i={_isComponent:!0,_parentVnode:t,parent:e},r=t.data.inlineTemplate;return Me(r)&&(i.render=r.render,i.staticRenderFns=r.staticRenderFns),new t.componentOptions.Ctor(i)}(t,mf)).$mount(e?t.elm:void 0,e)}},prepatch:function(t,e){var i=e.componentOptions;!function(t,e,i,r,n){"production"!==process.env.NODE_ENV&&(Mf=!0);var o=r.data.scopedSlots,s=t.$scopedSlots,a=!!(o&&!o.$stable||s!==Fd&&!s.$stable||o&&t.$scopedSlots.$key!==o.$key||!o&&t.$scopedSlots.$key),l=!!(n||t.$options._renderChildren||a);if(t.$options._parentVnode=r,t.$vnode=r,t._vnode&&(t._vnode.parent=r),t.$options._renderChildren=n,t.$attrs=r.data.attrs||Fd,t.$listeners=i||Fd,e&&t.$options.props){He(!1);for(var h=t._props,u=t.$options._propKeys||[],c=0;c<u.length;c++){var p=u[c],d=t.$options.props;h[p]=ai(p,d,e,t)}He(!0),t.$options.propsData=e}i=i||Fd;var g=t.$options._parentListeners;t.$options._parentListeners=i,or(t,i,g),l&&(t.$slots=Ci(n,r.context),t.$forceUpdate()),"production"!==process.env.NODE_ENV&&(Mf=!1)}(e.componentInstance=t.componentInstance,i.propsData,i.listeners,e,i.children)},insert:function(t){var e=t.context,i=t.componentInstance;i._isMounted||(i._isMounted=!0,ur(i,"mounted")),t.data.keepAlive&&(e._isMounted?function(t){t._inactive=!1,wf.push(t)}(i):lr(i,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?hr(e,!0):e.$destroy())}},df=Object.keys(pf),gf=1,ff=2,yf=null,mf=null,Mf=!1,vf=100,bf=[],wf=[],Nf={},Sf={},Df=!1,jf=!1,If=0,Of=0,xf=Date.now;if(ng&&!lg){var Cf=window.performance;Cf&&"function"==typeof Cf.now&&xf()>document.createEvent("Event").timeStamp&&(xf=function(){return Cf.now()})}var zf=0,Tf=function(t,e,i,r,n){this.vm=t,n&&(t._watcher=this),t._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=i,this.id=++zf,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new mg,this.newDepIds=new mg,this.expression="production"!==process.env.NODE_ENV?e.toString():"","function"==typeof e?this.getter=e:(this.getter=function(t){if(!ig.test(t)){var e=t.split(".");return function(t){for(var i=0;i<e.length;i++){if(!t)return;t=t[e[i]]}return t}}}(e),this.getter||(this.getter=ke,"production"!==process.env.NODE_ENV&&wg('Failed watching path: "'+e+'" Watcher only accepts simple dot-delimited paths. For full control, use a function instead.',t))),this.value=this.lazy?void 0:this.get()};Tf.prototype.get=function(){Ye(this);var t,e=this.vm;try{t=this.getter.call(e,e)}catch(t){if(!this.user)throw t;di(t,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&vi(t),Qe(),this.cleanupDeps()}return t},Tf.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},Tf.prototype.cleanupDeps=function(){for(var t=this.deps.length;t--;){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var i=this.depIds;this.depIds=this.newDepIds,this.newDepIds=i,this.newDepIds.clear(),i=this.deps,this.deps=this.newDeps,this.newDeps=i,this.newDeps.length=0},Tf.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(t){var e=t.id;if(null==Nf[e]){if(Nf[e]=!0,jf){for(var i=bf.length-1;i>If&&bf[i].id>t.id;)i--;bf.splice(i+1,0,t)}else bf.push(t);if(!Df){if(Df=!0,"production"!==process.env.NODE_ENV&&!tg.async)return void cr();Mi(cr)}}}(this)},Tf.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||we(t)||this.deep){var e=this.value;if(this.value=t,this.user){var i='callback for watcher "'+this.expression+'"';gi(this.cb,this.vm,[t,e],this.vm,i)}else this.cb.call(this.vm,t,e)}}},Tf.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Tf.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},Tf.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||ze(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var Lf={enumerable:!0,configurable:!0,get:ke,set:ke},Af={lazy:!0},Pf=0;!function(t){t.prototype._init=function(t){this._uid=Pf++;var e,i;"production"!==process.env.NODE_ENV&&tg.performance&&sf&&(e="vue-perf-start:"+this._uid,i="vue-perf-end:"+this._uid,sf(e)),this._isVue=!0,t&&t._isComponent?function(t,e){var i=t.$options=Object.create(t.constructor.options),r=e._parentVnode;i.parent=e.parent,i._parentVnode=r;var n=r.componentOptions;i.propsData=n.propsData,i._parentListeners=n.listeners,i._renderChildren=n.children,i._componentTag=n.tag,e.render&&(i.render=e.render,i.staticRenderFns=e.staticRenderFns)}(this,t):this.$options=oi(Mr(this.constructor),t||{},this),"production"!==process.env.NODE_ENV?Jg(this):this._renderProxy=this,this._self=this,function(t){var e=t.$options,i=e.parent;if(i&&!e.abstract){for(;i.$options.abstract&&i.$parent;)i=i.$parent;i.$children.push(t)}t.$parent=i,t.$root=i?i.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(this),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&or(t,e)}(this),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,i=t.$vnode=e._parentVnode,r=i&&i.context;t.$slots=Ci(e._renderChildren,r),t.$scopedSlots=Fd,t._c=function(e,i,r,n){return Zi(t,e,i,r,n,!1)},t.$createElement=function(e,i,r,n){return Zi(t,e,i,r,n,!0)};var n=i&&i.data;"production"!==process.env.NODE_ENV?($e(t,"$attrs",n&&n.attrs||Fd,function(){!Mf&&wg("$attrs is readonly.",t)},!0),$e(t,"$listeners",e._parentListeners||Fd,function(){!Mf&&wg("$listeners is readonly.",t)},!0)):($e(t,"$attrs",n&&n.attrs||Fd,null,!0),$e(t,"$listeners",e._parentListeners||Fd,null,!0))}(this),ur(this,"beforeCreate"),function(t){var e=xi(t.$options.inject,t);e&&(He(!1),Object.keys(e).forEach(function(i){"production"!==process.env.NODE_ENV?$e(t,i,e[i],function(){wg('Avoid mutating an injected value directly since the changes will be overwritten whenever the provided component re-renders. injection being mutated: "'+i+'"',t)}):$e(t,i,e[i])}),He(!0))}(this),dr(this),function(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}(this),ur(this,"created"),"production"!==process.env.NODE_ENV&&tg.performance&&sf&&(this._name=Dg(this,!1),sf(i),af("vue "+this._name+" init",e,i)),this.$options.el&&this.$mount(this.$options.el)}}(vr),function(t){var e={};e.get=function(){return this._data};var i={};i.get=function(){return this._props},"production"!==process.env.NODE_ENV&&(e.set=function(){wg("Avoid replacing instance root $data. Use nested data properties instead.",this)},i.set=function(){wg("$props is readonly.",this)}),Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",i),t.prototype.$set=Ke,t.prototype.$delete=Je,t.prototype.$watch=function(t,e,i){if(Se(e))return mr(this,t,e,i);(i=i||{}).user=!0;var r=new Tf(this,t,e,i);if(i.immediate){var n='callback for immediate watcher "'+r.expression+'"';Ye(),gi(e,this,[r.value],this,n),Qe()}return function(){r.teardown()}}}(vr),function(t){var e=/^hook:/;t.prototype.$on=function(t,i){if(Array.isArray(t))for(var r=0,n=t.length;r<n;r++)this.$on(t[r],i);else(this._events[t]||(this._events[t]=[])).push(i),e.test(t)&&(this._hasHookEvent=!0);return this},t.prototype.$once=function(t,e){function i(){r.$off(t,i),e.apply(r,arguments)}var r=this;return i.fn=e,r.$on(t,i),r},t.prototype.$off=function(t,e){if(!arguments.length)return this._events=Object.create(null),this;if(Array.isArray(t)){for(var i=0,r=t.length;i<r;i++)this.$off(t[i],e);return this}var n=this._events[t];if(!n)return this;if(!e)return this._events[t]=null,this;for(var o,s=n.length;s--;)if((o=n[s])===e||o.fn===e){n.splice(s,1);break}return this},t.prototype.$emit=function(t){if("production"!==process.env.NODE_ENV){var e=t.toLowerCase();e!==t&&this._events[e]&&Ng('Event "'+e+'" is emitted in component '+Dg(this)+' but the handler is registered for "'+t+'". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "'+Hd(t)+'" instead of "'+t+'".')}var i=this._events[t];if(i){i=i.length>1?Ae(i):i;for(var r=Ae(arguments,1),n='event handler for "'+t+'"',o=0,s=i.length;o<s;o++)gi(i[o],this,r,this,n)}return this}}(vr),function(t){t.prototype._update=function(t,e){var i=this.$el,r=this._vnode,n=sr(this);this._vnode=t,this.$el=r?this.__patch__(r,t):this.__patch__(this.$el,t,e,!1),n(),i&&(i.__vue__=null),this.$el&&(this.$el.__vue__=this),this.$vnode&&this.$parent&&this.$vnode===this.$parent._vnode&&(this.$parent.$el=this.$el)},t.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},t.prototype.$destroy=function(){if(!this._isBeingDestroyed){ur(this,"beforeDestroy"),this._isBeingDestroyed=!0;var t=this.$parent;!t||t._isBeingDestroyed||this.$options.abstract||ze(t.$children,this),this._watcher&&this._watcher.teardown();for(var e=this._watchers.length;e--;)this._watchers[e].teardown();this._data.__ob__&&this._data.__ob__.vmCount--,this._isDestroyed=!0,this.__patch__(this._vnode,null),ur(this,"destroyed"),this.$off(),this.$el&&(this.$el.__vue__=null),this.$vnode&&(this.$vnode.parent=null)}}}(vr),function(t){Hi(t.prototype),t.prototype.$nextTick=function(t){return Mi(t,this)},t.prototype._render=function(){var t=this,e=t.$options,i=e.render,r=e._parentVnode;r&&(t.$scopedSlots=Li(r.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=r;var n;try{yf=t,n=i.call(t._renderProxy,t.$createElement)}catch(e){if(di(e,t,"render"),"production"!==process.env.NODE_ENV&&t.$options.renderError)try{n=t.$options.renderError.call(t._renderProxy,t.$createElement,e)}catch(e){di(e,t,"renderError"),n=t._vnode}else n=t._vnode}finally{yf=null}return Array.isArray(n)&&1===n.length&&(n=n[0]),n instanceof zg||("production"!==process.env.NODE_ENV&&Array.isArray(n)&&wg("Multiple root nodes returned from render function. Render function should return a single root node.",t),n=Lg()),n.parent=r,n}}(vr);var Ef=[String,RegExp,Array],kf={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:Ef,exclude:Ef,max:[String,Number]},methods:{cacheVNode:function(){var t=this.cache,e=this.keys,i=this.vnodeToCache,r=this.keyToCache;if(i){var n=i.tag,o=i.componentInstance,s=i.componentOptions;t[r]={name:wr(s),tag:n,componentInstance:o},e.push(r),this.max&&e.length>parseInt(this.max)&&Dr(t,e[0],e,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Dr(this.cache,t,this.keys)},mounted:function(){var t=this;this.cacheVNode(),this.$watch("include",function(e){Sr(t,function(t){return Nr(e,t)})}),this.$watch("exclude",function(e){Sr(t,function(t){return!Nr(e,t)})})},updated:function(){this.cacheVNode()},render:function(){var t=this.$slots.default,e=er(t),i=e&&e.componentOptions;if(i){var r=wr(i),n=this.include,o=this.exclude;if(n&&(!r||!Nr(n,r))||o&&r&&Nr(o,r))return e;var s=this.cache,a=this.keys,l=null==e.key?i.Ctor.cid+(i.tag?"::"+i.tag:""):e.key;s[l]?(e.componentInstance=s[l].componentInstance,ze(a,l),a.push(l)):(this.vnodeToCache=e,this.keyToCache=l),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={};e.get=function(){return tg},"production"!==process.env.NODE_ENV&&(e.set=function(){wg("Do not replace the Vue.config object, set individual fields instead.")}),Object.defineProperty(t,"config",e),t.util={warn:wg,extend:Pe,mergeOptions:oi,defineReactive:$e},t.set=Ke,t.delete=Je,t.nextTick=Mi,t.observable=function(t){return qe(t),t},t.options=Object.create(null),Zd.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,Pe(t.options.components,kf),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var i=Ae(arguments,1);return i.unshift(this),"function"==typeof t.install?t.install.apply(t,i):"function"==typeof t&&t.apply(null,i),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=oi(this.options,t),this}}(t),br(t),function(t){Zd.forEach(function(e){t[e]=function(t,i){return i?("production"!==process.env.NODE_ENV&&"component"===e&&ri(t),"component"===e&&Se(i)&&(i.name=i.name||t,i=this.options._base.extend(i)),"directive"===e&&"function"==typeof i&&(i={bind:i,update:i}),this.options[e+"s"][t]=i,i):this.options[e+"s"][t]}})}(t)}(vr),Object.defineProperty(vr.prototype,"$isServer",{get:Mg}),Object.defineProperty(vr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(vr,"FunctionalRenderContext",{value:qi}),vr.version="2.6.14";var Bf,Ff,Rf,Uf=Ce("style,class"),_f=Ce("input,textarea,option,select,progress"),Vf=Ce("contenteditable,draggable,spellcheck"),Yf=Ce("events,caret,typing,plaintext-only"),Qf=function(t,e){return $f(e)||"false"===e?"false":"contenteditable"===t&&Yf(e)?e:"true"},Wf=Ce("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),Gf="http://www.w3.org/1999/xlink",Hf=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},qf=function(t){return Hf(t)?t.slice(6,t.length):""},$f=function(t){return null==t||!1===t},Kf={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Jf=Ce("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Zf=Ce("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Xf=function(t){return Jf(t)||Zf(t)},ty=Object.create(null),ey=Ce("text,number,password,search,email,tel,url"),iy=Object.freeze({createElement:function(t,e){var i=document.createElement(t);return"select"!==t?i:(e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&i.setAttribute("multiple","multiple"),i)},createElementNS:function(t,e){return document.createElementNS(Kf[t],e)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,i){t.insertBefore(e,i)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},setStyleScope:function(t,e){t.setAttribute(e,"")}}),ry={create:function(t,e){Cr(e)},update:function(t,e){t.data.ref!==e.data.ref&&(Cr(t,!0),Cr(e))},destroy:function(t){Cr(t,!0)}},ny=new zg("",{},[]),oy=["create","activate","update","remove","destroy"],sy={create:Lr,update:Lr,destroy:function(t){Lr(t,ny)}},ay=Object.create(null),ly=[ry,sy],hy={create:Er,update:Er},uy={create:Fr,update:Fr},cy="__r",py="__c",dy=Qg&&!(pg&&Number(pg[1])<=53),gy={create:Vr,update:Vr},fy={create:Yr,update:Yr},yy=Le(function(t){var e={},i=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach(function(t){if(t){var r=t.split(i);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}),my=/^--/,My=/\s*!important$/,vy=function(t,e,i){if(my.test(e))t.style.setProperty(e,i);else if(My.test(i))t.style.setProperty(Hd(e),i.replace(My,""),"important");else{var r=wy(e);if(Array.isArray(i))for(var n=0,o=i.length;n<o;n++)t.style[r]=i[n];else t.style[r]=i}},by=["Webkit","Moz","ms"],wy=Le(function(t){if(Rf=Rf||document.createElement("div").style,"filter"!==(t=Qd(t))&&t in Rf)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<by.length;i++){var r=by[i]+e;if(r in Rf)return r}}),Ny={create:Gr,update:Gr},Sy=/\s+/,Dy=Le(function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}}),jy=ng&&!hg,Iy="transition",Oy="animation",xy="transition",Cy="transitionend",zy="animation",Ty="animationend";jy&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(xy="WebkitTransition",Cy="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(zy="WebkitAnimation",Ty="webkitAnimationEnd"));var Ly=ng?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()},Ay=/\b(transform|all)(,|$)/,Py=function(t){function e(t){var e=S.parentNode(t);Me(e)&&S.removeChild(e,t)}function i(t,e){return!e&&!t.ns&&!(tg.ignoredElements.length&&tg.ignoredElements.some(function(e){return De(e)?e.test(t.tag):e===t.tag}))&&tg.isUnknownElement(t.tag)}function r(t,e,r,a,u,c,p){if(Me(t.elm)&&Me(c)&&(t=c[p]=Ge(t)),t.isRootInsert=!u,!function(t,e,i,r){var s=t.data;if(Me(s)){var a=Me(t.componentInstance)&&s.keepAlive;if(Me(s=s.hook)&&Me(s=s.init)&&s(t,!1),Me(t.componentInstance))return n(t,e),o(i,t.elm,r),ve(a)&&function(t,e,i,r){for(var n,s=t;s.componentInstance;)if(s=s.componentInstance._vnode,Me(n=s.data)&&Me(n=n.transition)){for(n=0;n<w.activate.length;++n)w.activate[n](ny,s);e.push(s);break}o(i,t.elm,r)}(t,e,i,r),!0}}(t,e,r,a)){var d=t.data,g=t.children,f=t.tag;Me(f)?("production"!==process.env.NODE_ENV&&(d&&d.pre&&D++,i(t,D)&&wg("Unknown custom element: <"+f+'> - did you register the component correctly? For recursive components, make sure to provide the "name" option.',t.context)),t.elm=t.ns?S.createElementNS(t.ns,f):S.createElement(f,t),h(t),s(t,g,e),Me(d)&&l(t,e),o(r,t.elm,a),"production"!==process.env.NODE_ENV&&d&&d.pre&&D--):ve(t.isComment)?(t.elm=S.createComment(t.text),o(r,t.elm,a)):(t.elm=S.createTextNode(t.text),o(r,t.elm,a))}}function n(t,e){Me(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,a(t)?(l(t,e),h(t)):(Cr(t),e.push(t))}function o(t,e,i){Me(t)&&(Me(i)?S.parentNode(i)===t&&S.insertBefore(t,e,i):S.appendChild(t,e))}function s(t,e,i){if(Array.isArray(e)){"production"!==process.env.NODE_ENV&&f(e);for(var n=0;n<e.length;++n)r(e[n],i,t.elm,null,!0,e,n)}else be(t.text)&&S.appendChild(t.elm,S.createTextNode(String(t.text)))}function a(t){for(;t.componentInstance;)t=t.componentInstance._vnode;return Me(t.tag)}function l(t,e){for(var i=0;i<w.create.length;++i)w.create[i](ny,t);Me(v=t.data.hook)&&(Me(v.create)&&v.create(ny,t),Me(v.insert)&&e.push(t))}function h(t){var e;if(Me(e=t.fnScopeId))S.setStyleScope(t.elm,e);else for(var i=t;i;)Me(e=i.context)&&Me(e=e.$options._scopeId)&&S.setStyleScope(t.elm,e),i=i.parent;Me(e=mf)&&e!==t.context&&e!==t.fnContext&&Me(e=e.$options._scopeId)&&S.setStyleScope(t.elm,e)}function u(t,e,i,n,o,s){for(;n<=o;++n)r(i[n],s,t,e,!1,i,n)}function c(t){var e,i,r=t.data;if(Me(r))for(Me(e=r.hook)&&Me(e=e.destroy)&&e(t),e=0;e<w.destroy.length;++e)w.destroy[e](t);if(Me(e=t.children))for(i=0;i<t.children.length;++i)c(t.children[i])}function p(t,i,r){for(;i<=r;++i){var n=t[i];Me(n)&&(Me(n.tag)?(d(n),c(n)):e(n.elm))}}function d(t,i){if(Me(i)||Me(t.data)){var r,n=w.remove.length+1;for(Me(i)?i.listeners+=n:i=function(t,i){function r(){0==--r.listeners&&e(t)}return r.listeners=i,r}(t.elm,n),Me(r=t.componentInstance)&&Me(r=r._vnode)&&Me(r.data)&&d(r,i),r=0;r<w.remove.length;++r)w.remove[r](t,i);Me(r=t.data.hook)&&Me(r=r.remove)?r(t,i):i()}else e(t.elm)}function g(t,e,i,n,o){var s,a,l,h=0,c=0,d=e.length-1,g=e[0],m=e[d],M=i.length-1,v=i[0],b=i[M],w=!o;for("production"!==process.env.NODE_ENV&&f(i);h<=d&&c<=M;)me(g)?g=e[++h]:me(m)?m=e[--d]:zr(g,v)?(y(g,v,n,i,c),g=e[++h],v=i[++c]):zr(m,b)?(y(m,b,n,i,M),m=e[--d],b=i[--M]):zr(g,b)?(y(g,b,n,i,M),w&&S.insertBefore(t,g.elm,S.nextSibling(m.elm)),g=e[++h],b=i[--M]):zr(m,v)?(y(m,v,n,i,c),w&&S.insertBefore(t,m.elm,g.elm),m=e[--d],v=i[++c]):(me(s)&&(s=Tr(e,h,d)),me(a=Me(v.key)?s[v.key]:function(t,e,i,r){for(var n=i;n<r;n++){var o=e[n];if(Me(o)&&zr(t,o))return n}}(v,e,h,d))?r(v,n,t,g.elm,!1,i,c):zr(l=e[a],v)?(y(l,v,n,i,c),e[a]=void 0,w&&S.insertBefore(t,l.elm,g.elm)):r(v,n,t,g.elm,!1,i,c),v=i[++c]);h>d?u(t,me(i[M+1])?null:i[M+1].elm,i,c,M,n):c>M&&p(e,h,d)}function f(t){for(var e={},i=0;i<t.length;i++){var r=t[i],n=r.key;Me(n)&&(e[n]?wg("Duplicate keys detected: '"+n+"'. This may cause an update error.",r.context):e[n]=!0)}}function y(t,e,i,r,n,o){if(t!==e){Me(e.elm)&&Me(r)&&(e=r[n]=Ge(e));var s=e.elm=t.elm;if(ve(t.isAsyncPlaceholder))Me(e.asyncFactory.resolved)?M(t.elm,e,i):e.isAsyncPlaceholder=!0;else if(ve(e.isStatic)&&ve(t.isStatic)&&e.key===t.key&&(ve(e.isCloned)||ve(e.isOnce)))e.componentInstance=t.componentInstance;else{var l,h=e.data;Me(h)&&Me(l=h.hook)&&Me(l=l.prepatch)&&l(t,e);var c=t.children,d=e.children;if(Me(h)&&a(e)){for(l=0;l<w.update.length;++l)w.update[l](t,e);Me(l=h.hook)&&Me(l=l.update)&&l(t,e)}me(e.text)?Me(c)&&Me(d)?c!==d&&g(s,c,d,i,o):Me(d)?("production"!==process.env.NODE_ENV&&f(d),Me(t.text)&&S.setTextContent(s,""),u(s,null,d,0,d.length-1,i)):Me(c)?p(c,0,c.length-1):Me(t.text)&&S.setTextContent(s,""):t.text!==e.text&&S.setTextContent(s,e.text),Me(h)&&Me(l=h.hook)&&Me(l=l.postpatch)&&l(t,e)}}}function m(t,e,i){if(ve(i)&&Me(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r<e.length;++r)e[r].data.hook.insert(e[r])}function M(t,e,r,o){var a,h=e.tag,u=e.data,c=e.children;if(o=o||u&&u.pre,e.elm=t,ve(e.isComment)&&Me(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if("production"!==process.env.NODE_ENV&&!function(t,e,r){return Me(e.tag)?0===e.tag.indexOf("vue-component")||!i(e,r)&&e.tag.toLowerCase()===(t.tagName&&t.tagName.toLowerCase()):t.nodeType===(e.isComment?8:3)}(t,e,o))return!1;if(Me(u)&&(Me(a=u.hook)&&Me(a=a.init)&&a(e,!0),Me(a=e.componentInstance)))return n(e,r),!0;if(Me(h)){if(Me(c))if(t.hasChildNodes())if(Me(a=u)&&Me(a=a.domProps)&&Me(a=a.innerHTML)){if(a!==t.innerHTML)return"production"===process.env.NODE_ENV||"undefined"==typeof console||j||(j=!0,console.warn("Parent: ",t),console.warn("server innerHTML: ",a),console.warn("client innerHTML: ",t.innerHTML)),!1}else{for(var p=!0,d=t.firstChild,g=0;g<c.length;g++){if(!d||!M(d,c[g],r,o)){p=!1;break}d=d.nextSibling}if(!p||d)return"production"===process.env.NODE_ENV||"undefined"==typeof console||j||(j=!0,console.warn("Parent: ",t),console.warn("Mismatching childNodes vs. VNodes: ",t.childNodes,c)),!1}else s(e,c,r);if(Me(u)){var f=!1;for(var y in u)if(!I(y)){f=!0,l(e,r);break}!f&&u.class&&vi(u.class)}}else t.data!==e.text&&(t.data=e.text);return!0}var v,b,w={},N=t.modules,S=t.nodeOps;for(v=0;v<oy.length;++v)for(w[oy[v]]=[],b=0;b<N.length;++b)Me(N[b][oy[v]])&&w[oy[v]].push(N[b][oy[v]]);var D=0,j=!1,I=Ce("attrs,class,staticClass,staticStyle,key");return function(t,e,i,n){if(!me(e)){var o=!1,s=[];if(me(t))o=!0,r(e,s);else{var l=Me(t.nodeType);if(!l&&zr(t,e))y(t,e,s,null,null,n);else{if(l){if(1===t.nodeType&&t.hasAttribute(Jd)&&(t.removeAttribute(Jd),i=!0),ve(i)){if(M(t,e,s))return m(e,s,!0),t;"production"!==process.env.NODE_ENV&&wg("The client-side rendered virtual DOM tree is not matching server-rendered content. This is likely caused by incorrect HTML markup, for example nesting block-level elements inside <p>, or missing <tbody>. Bailing hydration and performing full client-side render.")}t=function(t){return new zg(S.tagName(t).toLowerCase(),{},[],void 0,t)}(t)}var h=t.elm,u=S.parentNode(h);if(r(e,s,h._leaveCb?null:u,S.nextSibling(h)),Me(e.parent))for(var d=e.parent,g=a(e);d;){for(var f=0;f<w.destroy.length;++f)w.destroy[f](d);if(d.elm=e.elm,g){for(var v=0;v<w.create.length;++v)w.create[v](ny,d);var b=d.data.hook.insert;if(b.merged)for(var N=1;N<b.fns.length;N++)b.fns[N]()}else Cr(d);d=d.parent}Me(u)?p([t],0,0):Me(t.tag)&&c(t)}}return m(e,s,o),e.elm}Me(t)&&c(t)}}({nodeOps:iy,modules:[hy,uy,gy,fy,Ny,ng?{create:hn,activate:hn,remove:function(t,e){!0!==t.data.show?on(t,e):e()}}:{}].concat(ly)});hg&&document.addEventListener("selectionchange",function(){var t=document.activeElement;t&&t.vmodel&&yn(t,"input")});var Ey={inserted:function(t,e,i,r){"select"===i.tag?(r.elm&&!r.elm._vOptions?Si(i,"postpatch",function(){Ey.componentUpdated(t,e,i)}):un(t,e,i.context),t._vOptions=[].map.call(t.options,dn)):("textarea"===i.tag||ey(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",gn),t.addEventListener("compositionend",fn),t.addEventListener("change",fn),hg&&(t.vmodel=!0)))},componentUpdated:function(t,e,i){if("select"===i.tag){un(t,e,i.context);var r=t._vOptions,n=t._vOptions=[].map.call(t.options,dn);if(n.some(function(t,e){return!Be(t,r[e])})){(t.multiple?e.value.some(function(t){return pn(t,n)}):e.value!==e.oldValue&&pn(e.value,n))&&yn(t,"change")}}}},ky={model:Ey,show:{bind:function(t,e,i){var r=e.value,n=(i=mn(i)).data&&i.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&n?(i.data.show=!0,nn(i,function(){t.style.display=o})):t.style.display=r?o:"none"},update:function(t,e,i){var r=e.value;if(!r!=!e.oldValue){(i=mn(i)).data&&i.data.transition?(i.data.show=!0,r?nn(i,function(){t.style.display=t.__vOriginalDisplay}):on(i,function(){t.style.display="none"})):t.style.display=r?t.__vOriginalDisplay:"none"}},unbind:function(t,e,i,r,n){n||(t.style.display=t.__vOriginalDisplay)}}},By={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]},Fy=function(t){return t.tag||Ti(t)},Ry=function(t){return"show"===t.name},Uy={name:"transition",props:By,abstract:!0,render:function(t){var e=this,i=this.$slots.default;if(i&&(i=i.filter(Fy)).length){"production"!==process.env.NODE_ENV&&i.length>1&&wg("<transition> can only be used on a single element. Use <transition-group> for lists.",this.$parent);var r=this.mode;"production"!==process.env.NODE_ENV&&r&&"in-out"!==r&&"out-in"!==r&&wg("invalid <transition> mode: "+r,this.$parent);var n=i[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return n;var o=Mn(n);if(!o)return n;if(this._leaving)return bn(t,n);var s="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?s+"comment":s+o.tag:be(o.key)?0===String(o.key).indexOf(s)?o.key:s+o.key:o.key;var a=(o.data||(o.data={})).transition=vn(this),l=this._vnode,h=Mn(l);if(o.data.directives&&o.data.directives.some(Ry)&&(o.data.show=!0),h&&h.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(o,h)&&!Ti(h)&&(!h.componentInstance||!h.componentInstance._vnode.isComment)){var u=h.data.transition=Pe({},a);if("out-in"===r)return this._leaving=!0,Si(u,"afterLeave",function(){e._leaving=!1,e.$forceUpdate()}),bn(t,n);if("in-out"===r){if(Ti(o))return l;var c,p=function(){c()};Si(a,"afterEnter",p),Si(a,"enterCancelled",p),Si(u,"delayLeave",function(t){c=t})}}return n}}},_y=Pe({tag:String,moveClass:String},By);delete _y.mode;var Vy={Transition:Uy,TransitionGroup:{props:_y,beforeMount:function(){var t=this,e=this._update;this._update=function(i,r){var n=sr(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,n(),e.call(t,i,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",i=Object.create(null),r=this.prevChildren=this.children,n=this.$slots.default||[],o=this.children=[],s=vn(this),a=0;a<n.length;a++){var l=n[a];if(l.tag)if(null!=l.key&&0!==String(l.key).indexOf("__vlist"))o.push(l),i[l.key]=l,(l.data||(l.data={})).transition=s;else if("production"!==process.env.NODE_ENV){var h=l.componentOptions,u=h?h.Ctor.options.name||h.tag||"":l.tag;wg("<transition-group> children must be keyed: <"+u+">")}}if(r){for(var c=[],p=[],d=0;d<r.length;d++){var g=r[d];g.data.transition=s,g.data.pos=g.elm.getBoundingClientRect(),i[g.key]?c.push(g):p.push(g)}this.kept=t(e,null,c),this.removed=p}return t(e,null,o)},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(wn),t.forEach(Nn),t.forEach(Sn),this._reflow=document.body.offsetHeight,t.forEach(function(t){if(t.data.moved){var i=t.elm,r=i.style;Jr(i,e),r.transform=r.WebkitTransform=r.transitionDuration="",i.addEventListener(Cy,i._moveCb=function t(r){r&&r.target!==i||r&&!/transform$/.test(r.propertyName)||(i.removeEventListener(Cy,t),i._moveCb=null,Zr(i,e))})}}))},methods:{hasMove:function(t,e){if(!jy)return!1;if(this._hasMove)return this._hasMove;var i=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach(function(t){qr(i,t)}),Hr(i,e),i.style.display="none",this.$el.appendChild(i);var r=tn(i);return this.$el.removeChild(i),this._hasMove=r.hasTransform}}}};vr.config.mustUseProp=function(t,e,i){return"value"===i&&_f(t)&&"button"!==e||"selected"===i&&"option"===t||"checked"===i&&"input"===t||"muted"===i&&"video"===t},vr.config.isReservedTag=Xf,vr.config.isReservedAttr=Uf,vr.config.getTagNamespace=function(t){return Zf(t)?"svg":"math"===t?"math":void 0},vr.config.isUnknownElement=function(t){if(!ng)return!0;if(Xf(t))return!1;if(t=t.toLowerCase(),null!=ty[t])return ty[t];var e=document.createElement(t);return t.indexOf("-")>-1?ty[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:ty[t]=/HTMLUnknownElement/.test(e.toString())},Pe(vr.options.directives,ky),Pe(vr.options.components,Vy),vr.prototype.__patch__=ng?Py:ke,vr.prototype.$mount=function(t,e){return t=t&&ng?function(t){if("string"==typeof t){var e=document.querySelector(t);return e||("production"!==process.env.NODE_ENV&&wg("Cannot find element: "+t),document.createElement("div"))}return t}(t):void 0,function(t,e,i){t.$el=e,t.$options.render||(t.$options.render=Lg,"production"!==process.env.NODE_ENV&&(t.$options.template&&"#"!==t.$options.template.charAt(0)||t.$options.el||e?wg("You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.",t):wg("Failed to mount component: template or render function not defined.",t))),ur(t,"beforeMount");var r;return r="production"!==process.env.NODE_ENV&&tg.performance&&sf?function(){var e=t._name,r=t._uid,n="vue-perf-start:"+r,o="vue-perf-end:"+r;sf(n);var s=t._render();sf(o),af("vue "+e+" render",n,o),sf(n),t._update(s,i),sf(o),af("vue "+e+" patch",n,o)}:function(){t._update(t._render(),i)},new Tf(t,r,ke,{before:function(){t._isMounted&&!t._isDestroyed&&ur(t,"beforeUpdate")}},!0),i=!1,null==t.$vnode&&(t._isMounted=!0,ur(t,"mounted")),t}(this,t,e)},ng&&setTimeout(function(){tg.devtools&&(vg?vg.emit("init",vr):"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&console[console.info?"info":"log"]("Download the Vue Devtools extension for a better development experience:\nhttps://github.com/vuejs/vue-devtools")),"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&!1!==tg.productionTip&&"undefined"!=typeof console&&console[console.info?"info":"log"]("You are running Vue in development mode.\nMake sure to turn on production mode when deploying for production.\nSee more tips at https://vuejs.org/guide/deployment.html")},0);var Yy=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[""+i]=t[""+i]);return e.default=t,e}(Object.freeze({default:vr})),Qy=!(parseInt(Yy.version)>2),Wy=Qy?Yy.default.default?Yy.default.default:Yy.default:Yy,Gy=Yy.h,Hy=function(t){return Qy?Wy.extend(t):Wy.defineComponent(t)},qy=Hy({name:"ComponentBase",data:function(){return{tagMapper:{},tagNameMapper:{},hasInjectedModules:!1,hasChildDirective:!1,childDirObjects:"",propKeys:{},isDecorator:!1}},created:function(){var t=this;if(this.ej2Instance&&(this.ej2Instances=this.isVue3?Wy.toRaw(this.ej2Instance):this.ej2Instance),this.propKeys){for(var e=function(e){i.ej2Instances.addEventListener(e,function(i){t.$emit(e,i)})},i=this,n=0,o=this.propKeys;n<o.length;n++){e(o[n])}var s=r("$root.$options.provide",this),a=r("$parent.$options.provide",this);if(a=h(a)?r("$.parent.provides",this):a,this.hasInjectedModules&&!Qy){var l=[];s&&s.managed?(this.isDecorator=!0,l=this.getInjectedServices()||[]):s?l=s[this.ej2Instances.getModuleName()]||[]:a&&(l=this.getInjectedServices()||[]);for(var u=0,c=this.ej2Instances.getInjectedModules()||[];u<c.length;u++){var p=c[u];-1===l.indexOf(p)&&l.push(p)}this.ej2Instances.injectedModules=l}}},mounted:function(){var t=this.$el?this.$el.querySelectorAll("div.e-directive"):null;if(!Qy&&t)for(var e=0;e<t.length;e++)t[parseInt(e.toString(),10)].parentElement&&t[parseInt(e.toString(),10)].parentElement.removeChild(t[parseInt(e.toString(),10)]);this.ej2Instances.isVue=!0,this.ej2Instances.isVue3=this.isVue3,this.ej2Instances.vueInstance=this,this.isVue3&&(this.ej2Instances.ej2Instances=this.ej2Instances,this.ej2Instances.referModels=this.models,this.setModelValue()),this.ej2Instances.appendTo(this.$el)},updated:function(){this.updated()},beforeDestroy:function(){this.destroyComponent()},beforeUnmount:function(){this.destroyComponent()},methods:{setModelValue:function(){if(!h(this.modelValue)||!h(this.$attrs.modelValue)){var t=(this.models.toString().match(/checked|value/)||[])[0];h(t)||(this.ej2Instances[""+t]=h(this.modelValue)?this.$attrs.modelValue:this.modelValue)}},updated:function(){if(this.isVue3&&this.setModelValue(),this.hasChildDirective){var t={};this.fetchChildPropValues(t);var e=JSON.stringify(t);this.childDirObjects!==e&&(this.childDirObjects=e,this.assignValueToWrapper(t,!1))}},getInjectedServices:function(){var t,e=[];if(this.$root&&this.isDecorator?t=r("$root.$options.provide",this):this.$vnode?t=r("$vnode.context.$options.provide",this):this.$parent&&(t=r("$parent.$options.provide",this)),h(t)&&!h(this.$)&&(t=r("$.parent.provides",this)),t){var i=t;if("function"==typeof t)if(t.managed){var n=t.managed,o=Object.keys(n),s=void 0;this.$root&&this.isDecorator?s=Object.keys(this.$root):this.$vnode?s=Object.keys(this.$vnode.context):this.$parent&&(s=Object.keys(this.$parent));for(var a=0;a<o.length;a++)for(var l=0;l<s.length;l++)-1!==s[parseInt(l.toString(),10)].indexOf(o[parseInt(a.toString(),10)])&&(this.$root&&this.isDecorator?n[o[parseInt(l.toString(),10)]]=this.$root[s[parseInt(a.toString(),10)]]:this.$vnode?n[o[parseInt(a.toString(),10)]]=this.$vnode.context[s[parseInt(l.toString(),10)]]:this.$parent&&(n[o[parseInt(a.toString(),10)]]=this.$parent[s[parseInt(l.toString(),10)]]),i=n)}else this.$vnode?i=this.$vnode.context.$options.provide():this.$parent&&(i=this.$parent.$options.provide());e=i[this.ej2Instances.getModuleName()]||[]}return this.isDecorator=!1,e},destroyComponent:function(){var t=this;t.ej2Instances.destroy(),t.$el.style.visibility="hidden",t=null},bindProperties:function(){for(var t={},e=0,i=this.propKeys;e<i.length;e++){var r=i[e];h(this[""+r])?!this[0]||h(this[0][0])||h(this[0][0][""+r])||(t[""+r]=this[0][0][""+r]):t[""+r]=this[""+r]}if(this.hasChildDirective&&this.fetchChildPropValues(t),this.hasInjectedModules){for(var n=this.getInjectedServices()||[],o=0,s=this.ej2Instances.getInjectedModules()||[];o<s.length;o++){var a=s[o];-1===n.indexOf(a)&&n.push(a)}this.ej2Instances.injectedModules=n}this.assignValueToWrapper(t)},assignValueToWrapper:function(t,e){this.ej2Instances.setProperties(l({},{},t,!0),!!h(e)||e)},fetchChildPropValues:function(t){var e={};if(this.isVue3){var i=void 0;if(this[0]&&this[0][1].slots.default?i=this[0][1].slots.default():this&&this.$&&this.$.slots&&this.$.slots.default&&(i=this.$.slots.default()),!i)return;for(var r=0;r<i.length;r++)if(i[parseInt(r.toString(),10)].type.methods||"e-seriescollection"===i[parseInt(r.toString(),10)].type){var n="e-seriescollection"===i[parseInt(r.toString(),10)].type?"series-collection":i[parseInt(r.toString(),10)].type.methods.getTag().replace("e-",""),o=this.resolveArrayDirectives(i[parseInt(r.toString(),10)].children,n),s=n.split("-"),a=this.ej2Instances.getModuleName().toLowerCase(),l=s.length>1&&a.indexOf(s[0])>-1?s[1]:s[0];l=l.replace(a,""),l=this.tagNameMapper["e-"+n]?this.tagNameMapper["e-"+n].replace("e-",""):l,"splitter"==a&&"panes"==l?l="paneSettings":"bulletchart"==a&&"range"==l?l="ranges":"schedule"==a&&"header"==l&&(l="headerRows"),e[""+l]=o[""+n]}}else e=this.getDirectiveValues(this.$slots.default,this.tagMapper||{},this.tagNameMapper||{});this.childDirObjects||(this.childDirObjects=JSON.stringify(e));for(var h=0,u=Object.keys(e);h<u.length;h++){var c=u[h];t[""+c]=e[""+c]}},resolveArrayDirectives:function(t,e){var i,r=[];r=(r=t.default?t.default():t).flatMap(function(t){return Array.isArray(t.children)?t.children:t});var n={};n[""+e]=[];for(var o=function(t){var r={},o=t.type.methods?t.type.methods.getTag():e;if(t.children){var a=void 0;if((i=s.resolveComplexDirs(t.children,s.tagMapper["e-"+e],o)).length)r=i;else for(var l=0;l<Object.keys(i).length;l++)a=Object.keys(i)[parseInt(l.toString(),10)],r[""+a]=i[""+a]}t.props&&Object.keys(t.props).forEach(function(e){var i=e.replace(/-[a-z]/g,function(t){return t[1].toUpperCase()});i&&(r[""+i]=t.props[""+e])}),/[s]\b/.test(o)&&i&&(!/[s]\b/.test(e)||i.length)?Array.isArray(r)?r.forEach(function(t){n[""+e].push(t)}):n[""+e].push(r):r&&0!==Object.keys(r).length&&n[""+e].push(r)},s=this,a=0,l=r;a<l.length;a++){o(l[a])}return n},resolveComplexDirs:function(t,e,i){for(var r,n=[],o={},s=function(t){var s=void 0;if(e[""+i]){s=Object.keys(e[""+i]).find(function(r){return e[""+i][""+r]===t.type.methods.getTag().replace(/[s]\b/,"")});a.ej2Instances.getModuleName().toLowerCase();s=s||t.type.methods.getTag(),s=(a.tagNameMapper[""+s]?a.tagNameMapper[""+s]:s).replace("e-",""),"diagram"==a.ej2Instances.getModuleName().toLowerCase()&&-1!=s.indexOf("annotations")&&(s="annotations")}t.children&&(r=a.resolveComplexInnerDirs(t.children,e[""+i],t.type.methods.getTag()),o[""+s]||(o[""+s]=[]),r.length>1?o[""+s]=r:o[""+s].push(r)),t.props&&(t.props=a.getCamelCaseProps(t.props)),n.length>1?(o=0!=Object.keys(o).length||o.length?o:[],t.props&&o.push(t.props)):o=t.props?Object.assign(o,t.props):o},a=this,l=0,h=n=t.default?t.default():t;l<h.length;l++){s(h[l])}return o},resolveComplexInnerDirs:function(t,e,i){for(var r=[],n=(r=t.default?t.default():t).length>1?[]:{},o=0,s=r;o<s.length;o++){var a=s[o],l=null,h=a.type.methods.getTag();h=(this.tagNameMapper[h]?this.tagNameMapper[h]:h).replace("e-",""),a.children&&(l=this.resolveMultilevelComplexInnerDirs(a.children,e[""+i],a.type.methods.getTag()),/[s]\b/.test(h)||r.length>1?/[s]\b/.test(h)?(n[""+h]=n[""+h]?n[""+h]:[],l.length?n[""+h]=l:n[""+h].push(l)):l&&!a.props&&n.push(l):n=l||n),a.props&&(a.props=this.getCamelCaseProps(a.props)),r.length>1&&a.props?l?(l=a.props?Object.assign(l,a.props):l,n.push(l)):n.length>=0?n.push(a.props):n=a.props?Object.assign(n,a.props):n:n=a.props?Object.assign(n,a.props):n}return n},resolveMultilevelComplexInnerDirs:function(t,e,i){for(var r=[],n=(r=t.default?t.default():t).length>1?[]:{},o=0,s=r;o<s.length;o++){var a=s[o],l=null,h=(this.ej2Instances.getModuleName().toLowerCase(),a.type.methods.getTag());h=(this.tagNameMapper[h]?this.tagNameMapper[h]:h).replace("e-",""),a.children&&(l=this.resolveComplexInnerDirs(a.children,e[""+i],a.type.methods.getTag())),a.props&&(a.props=this.getCamelCaseProps(a.props)),/[s]\b/.test(h)?(n[""+h]=n[""+h]?n[""+h]:[],l.length?n[""+h]=l:n[""+h].push(l),a.props&&n[""+h].push(a.props)):(n=l,n=a.props?Object.assign(n,a.props):n)}return n},getDirectiveValues:function(t,e,i){var r=Object.keys(e),n={};if(t)for(var o=0,s=t;o<s.length;o++){var a=s[o];if(a.componentOptions&&a.componentOptions.children&&this.getTagName(a.componentOptions)||"e-seriescollection"===a.tag&&a.children){var l=a.componentOptions?this.getTagName(a.componentOptions):a.tag;if(l="e-seriescollection"===l?"e-seriesCollection":l,-1!==r.indexOf(l)){var h=i[""+l]?i[""+l]:l;n[h.replace("e-","")]=[];for(var u=0,c=a.componentOptions?a.componentOptions.children:a.children;u<c.length;u++){var p=c[u],d=this.getVNodeValue(p,e[""+l],i);0!==Object.keys(d).length&&n[h.replace("e-","")].push(d)}}}}return n},getMultiLevelDirValue:function(t,e,i){for(var r={},n=0,o=t;n<o.length;n++){var s=o[n],a=void 0,l=void 0;if(s.componentOptions?(a=this.getTagName(s.componentOptions),s.componentOptions.children&&(l=s.componentOptions.children)):"e-markersettings"!==s.tag&&"e-markersetting"!==s.tag||!s.children||(a="e-markersettings"===s.tag?"e-markerSettings":"e-markerSetting",l=s.children),a){var h=i[""+a]?i[""+a]:a;if(r[h.replace("e-","")]=[],l)for(var u=0,c=l;u<c.length;u++){var p=c[u],d=this.getVNodeValue(p,e[""+a],i);0!==Object.keys(d).length&&r[h.replace("e-","")].push(d)}}}return r},getVNodeValue:function(t,e,i){var r={};if(t.componentOptions||("e-markersettings"===t.tag||"e-markersetting"===t.tag)&&t.context){var n=void 0;n=t.componentOptions?this.getTagName(t.componentOptions):"e-markersettings"===t.tag?"e-markerSettings":"e-markerSetting","string"==typeof e&&n===e&&t.data?r=t.data.attrs?this.getCamelCaseProps(t.data.attrs):this.getCamelCaseProps(t.data):"object"==typeof e&&(t.componentOptions.children&&-1!==Object.keys(e).indexOf(n)?r=this.getMultiLevelDirValue(t.componentOptions.children,e[""+n],i):!t.children||-1===Object.keys(e).indexOf(n)||"e-markersettings"!==n&&"e-markersetting"!==n||(r=this.getMultiLevelDirValue(t.children,e[""+n],i)),t.data&&t.data.attrs&&(r=l(r,this.getCamelCaseProps(t.data.attrs))))}return r},getCamelCaseProps:function(t){for(var e={},i=0,r=Object.keys(t);i<r.length;i++){var n=r[i];e[n.replace(/-[a-z]/g,function(t){return t[1].toUpperCase()})]=t[""+n]}return e},dataBind:function(){this.ej2Instances.dataBind()},setProperties:function(t,e){return this.ej2Instances.setProperties(t,e)},getTagName:function(t){var e=t.tag;return!e&&t.Ctor&&t.Ctor.extendOptions&&t.Ctor.extendOptions.methods&&t.Ctor.extendOptions.methods.getTag&&(e=t.Ctor.extendOptions.methods.getTag()),e}}});Qy||Lo(Wy.toRaw);var $y=function(){return($y=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++){e=arguments[i];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t}).apply(this,arguments)},Ky=ht();lt({compile:function(t,e){var i=this;return function(n,o,s,a,h){var u;if(o){var p=o.vueInstance&&o.vueInstance.plugins?{plugins:o.vueInstance.plugins}:{},d=c("templateParentDiv"),g=c("templateDiv"),f=M("div",{id:d,innerHTML:'<div id="'+g+'"></div>'});if(document.body.appendChild(f),!Qy&&("string"==typeof t||t.prototype&&t.prototype.CSPTemplate&&"function"==typeof t)){var y=function(t,e,i){if(t||i&&i.vueInstance)return On(i&&i.vueInstance?i.vueInstance.$slots:t.$slots,e)}(o.vueInstance,t,h);if(!y)return D(f),Ky(t,e)(n);var m=Wy.createVNode({render:function(){return y[""+t]({data:n})}},p);f.innerHTML="",Dn(m,o.vueInstance,h),Wy.render(m,f),u=f.childNodes,D(f)}else if(Qy)if("string"==typeof t||t.prototype&&t.prototype.CSPTemplate&&"function"==typeof t){var v=function(t,e,i){if(t||i&&i.vueInstance)return jn(i&&i.vueInstance?i.vueInstance:t,e)}(o.vueInstance,t,h);if(!v)return D(f),Ky(t,e)(n);var b={},w=function(t){t.$parent&&w(t.$parent),t._provided&&Object.keys(t._provided).length>0&&(b=$y({},b,t._provided))},N=o.vueInstance?o.vueInstance:h&&h.vueInstance?h.vueInstance:null;N&&w(N),new Wy({provide:$y({},b),render:function(){return v[""+t]({data:n})}}).$mount("#"+g),u=f.childNodes,D(f)}else{var S=(I=t.call(i,{})).template,j=(x=r("template.propsData",I),{data:{data:l(I.data||{},n)},parent:o.vueInstance});x&&(S=I.template.extends,j.propsData=x),"function"!=typeof S&&(S=Wy.extend(S)),S.options.setup&&(j.propsData=Object.assign(j.propsData||{},n)),new S(j).$mount("#"+g),u=f.childNodes,o.vueInstance&&((k=o.vueInstance.templateCollection)||(o.vueInstance.templateCollection={},k=o.vueInstance.templateCollection),s&&(k[""+s]||(k[""+s]=[]),k[""+s].push(u[0]))),D(f)}else{var I,O=I=t.call(i,{}),x=r("template.propsData",I),C={data:{data:l(I.data||{},n)},parent:o.vueInstance};O.template||(O.template=O[Object.keys(O)[0]]);var z=void 0;if(O.template.extends)z=O.template.extends._context.components.template;else if(!(z=O.template._context.components[t.name])){var T=Object.keys(O.template._context.components)[0];z=O.template._context.components[""+T]}var L;if(x)L=z.setup?Object.assign({},x):Object.assign(z.data(),x);else if(L=z.setup?Object.assign({},C.data):Object.assign(z.data(),C.data),z.components)for(var A=function(t){var e=z.components[""+t];e&&e.data&&(e.__data||(e.__data=e.data),e.data=function(t){return Object.assign(e.__data.call(t),C.data)})},P=0,E=Object.keys(z.components)||[];P<E.length;P++)A(E[P]);if(z.setup&&(p=Object.assign(p,n)),z.data=function(){return L},m=Wy.createVNode(z,p),f.innerHTML="",Dn(m,o.vueInstance,h),Wy.render(m,f),u=f.childNodes,o.vueInstance){var k;(k=o.vueInstance.templateCollection)||(o.vueInstance.templateCollection={},k=o.vueInstance.templateCollection),s&&(k[""+s]||(k[""+s]=[]),k[""+s].push(u[0]))}D(f)}}return u||[]}}});var Jy=Hy({inject:{custom:{default:null}},render:function(t){if(!Qy){var e=Qy?t:Gy,i=null;return h(this.$slots.default)||(i=Qy?this.$slots.default:this.$slots.default()),e("div",{class:"e-directive"},i)}},updated:function(){!Qy&&this.custom&&this.custom()},methods:{getTag:function(){return"e-colorMappings"}}}),Zy={name:"e-colorMappings",install:function(t){t.component(Zy.name,Jy)}},Xy=Hy({render:function(){},methods:{getTag:function(){return"e-colorMapping"}}}),tm={name:"e-colorMapping",install:function(t){t.component(tm.name,Xy)}},em=Hy({inject:{custom:{default:null}},render:function(t){if(!Qy){var e=Qy?t:Gy,i=null;return h(this.$slots.default)||(i=Qy?this.$slots.default:this.$slots.default()),e("div",{class:"e-directive"},i)}},updated:function(){!Qy&&this.custom&&this.custom()},methods:{getTag:function(){return"e-levels"}}}),im={name:"e-levels",install:function(t){t.component(im.name,em)}},rm=Hy({render:function(){},methods:{getTag:function(){return"e-level"}}}),nm={name:"e-level",install:function(t){t.component(nm.name,rm)}},om=["isLazyUpdate","plugins","allowImageExport","allowPdfExport","allowPrint","background","border","breadcrumbConnector","colorValuePath","dataSource","description","drillDownView","enableBreadcrumb","enableDrillDown","enablePersistence","enableRtl","equalColorValuePath","format","height","highlightSettings","initialDrillDown","layoutType","leafItemSettings","legendSettings","levels","locale","margin","palette","query","rangeColorValuePath","renderDirection","selectionSettings","tabIndex","theme","titleSettings","tooltipSettings","useGroupingSeparator","weightValuePath","width","beforePrint","click","doubleClick","drillEnd","drillStart","itemClick","itemHighlight","itemMove","itemRendering","itemSelected","legendItemRendering","legendRendering","load","loaded","mouseMove","resize","rightClick","tooltipRendering"],sm=[],am=function(t){if(void 0===t&&(t={}),t.props)for(var e=function(e){(t.newprops||(t.newprops={}))[""+e]={},(t.watch||(t.watch={}))[""+e]=function(i){this.ej2Instances[""+e]=i,this.dataBind&&"DateRangePickerComponent"!==t.name&&this.dataBind()}},i=0,r=t.props;i<r.length;i++)e(r[i]);return[t.newprops,t.watch]}({props:om}),lm=am[0],hm=am[1],um=Object.keys(hm);um.push("modelchanged","update:modelValue");for(var cm=0,pm=sm;cm<pm.length;cm++){var dm=pm[cm];um.push("update:"+dm)}var gm=Hy({name:"TreeMapComponent",mixins:[qy],props:lm,watch:hm,emits:um,provide:function(){return{custom:this.custom}},data:function(){return{ej2Instances:new Td({}),propKeys:om,models:sm,hasChildDirective:!0,hasInjectedModules:!0,tagMapper:{"e-levels":{"e-level":{"e-colorMappings":"e-colorMapping"}}},tagNameMapper:{"e-colorMappings":"e-colorMapping"},isVue3:!Qy,templateCollection:{}}},created:function(){this.bindProperties(),this.ej2Instances._setProperties=this.ej2Instances.setProperties,this.ej2Instances.setProperties=this.setProperties,this.ej2Instances.clearTemplate=this.clearTemplate,this.updated=this.updated},render:function(t){var e=Qy?t:Gy,i=null;return h(this.$slots.default)||(i=Qy?this.$slots.default:this.$slots.default()),e("div",i)},methods:{clearTemplate:function(t){if(t||(t=Object.keys(this.templateCollection||{})),t.length&&this.templateCollection)for(var e=0,i=t;e<i.length;e++){var n=i[e],o=this.templateCollection[n];if(o&&o.length){for(var s=0,a=o;s<a.length;s++){var l=a[s];r("__vue__.$destroy",l)&&l.__vue__.$destroy(),l.innerHTML&&(l.innerHTML="")}delete this.templateCollection[n]}}},setProperties:function(t,e){var i=this;this.isVue3&&(this.models=this.models?this.models:this.ej2Instances.referModels),this.ej2Instances&&this.ej2Instances._setProperties&&this.ej2Instances._setProperties(t,e),t&&this.models&&this.models.length&&Object.keys(t).map(function(e){i.models.map(function(r){e!==r||/datasource/i.test(e)||(i.isVue3?i.ej2Instances.vueInstance.$emit("update:"+e,t[e]):(i.$emit("update:"+e,t[e]),i.$emit("modelchanged",t[e])))})})},custom:function(){this.updated()},doubleClickOnTreeMap:function(t){return this.ej2Instances.doubleClickOnTreeMap(t)},export:function(t,e,i,r){return this.ej2Instances.export(t,e,i,r)},print:function(t){return this.ej2Instances.print(t)},selectItem:function(t,e){return this.ej2Instances.selectItem(t,e)}}}),fm={name:"ejs-treemap",install:function(t){t.component(fm.name,gm),t.component(nm.name,rm),t.component(im.name,em),t.component(tm.name,Xy),t.component(Zy.name,Jy)}};Td.Inject(Bd,Ad,Pd,Ed,hl,xd,ul);var ym=Object.freeze({ColorMappingsDirective:Jy,ColorMappingDirective:Xy,ColorMappingsPlugin:Zy,ColorMappingPlugin:tm,LevelsDirective:em,LevelDirective:rm,LevelsPlugin:im,LevelPlugin:nm,TreeMapComponent:gm,TreeMapPlugin:fm,TreeMap:Td,LevelsData:Ld,Border:Da,Margin:ja,Font:Ia,CommonTitleSettings:Oa,SubTitleSettings:xa,TitleSettings:Ca,ColorMapping:za,LegendSettings:Ta,InitialDrillSettings:La,LeafItemSettings:Aa,TooltipSettings:Pa,SelectionSettings:Ea,HighlightSettings:ka,LevelSettings:Ba,load:"load",loaded:"loaded",beforePrint:ca,itemRendering:pa,drillStart:da,drillEnd:"drillEnd",itemSelected:ga,itemHighlight:fa,tooltipRendering:ya,itemClick:"itemClick",itemMove:"itemMove",click:"click",doubleClick:ma,rightClick:Ma,mouseMove:"mouseMove",legendItemRendering:va,legendRendering:ba,resize:"resize",defaultFont:wa,get Theme(){return is},getThemeStyle:fe,Size:Fa,stringToNumber:ft,Rect:Ra,RectOption:Ua,PathOption:_a,measureText:yt,TextOption:Va,textTrim:mt,Location:Ya,findPosition:Mt,createTextStyle:vt,renderTextElement:bt,setItemTemplateContent:wt,getElement:Nt,itemsToOrder:St,isContainsData:Dt,findChildren:jt,findHightLightItems:It,getTemplateFunction:Ot,convertElement:xt,findLabelLocation:Ct,measureElement:zt,getArea:Tt,getShortestEdge:Lt,convertToContainer:At,convertToRect:Pt,getMousePosition:Et,colorMap:kt,deSaturationColor:Bt,colorCollections:Ft,rgbToHex:Rt,getColorByValue:Ut,getGradientColor:_t,getPercentageColor:Vt,getPercentage:Yt,wordWrap:Qt,textWrap:Wt,hide:Gt,orderByArea:Ht,maintainSelection:qt,legendMaintain:$t,removeClassNames:Kt,applyOptions:Jt,textFormatter:Zt,formatValue:Xt,ColorValue:Qa,convertToHexCode:te,componentToHex:ee,convertHexToColor:ie,colorNameToHex:re,drawSymbol:ne,renderLegendShape:oe,isParentItem:se,TreeMapAjax:Wa,removeShape:ae,removeLegend:le,setColor:he,removeSelectionWithHighlight:ue,getLegendIndex:ce,pushCollection:pe,triggerDownload:de,removeElement:ge,TreeMapLegend:Ad,LayoutPanel:Ga,TreeMapHighlight:Pd,TreeMapSelection:Ed,TreeMapTooltip:Bd,ImageExport:ul,PdfExport:xd,Print:hl});return t.base=qs,t.treemap=ym,t}({});this.ejs=ej,"object"==typeof module&&"object"==typeof module.exports&&(module.exports={ej:ej}),"function"==typeof define&&define.amd&&define("ej",[],function(){return{ej:ej}});
|