/** 
 * Flexmonster Pivot Table & Charts [https://www.flexmonster.com/]
 * September 2024 (v. 2.9.86)
 * Copyright (c) 2024 Flexmonster. All rights reserved.
 *
 * Flexmonster Pivot Table & Charts commercial licenses may be obtained at
 * https://www.flexmonster.com/pivot-table-editions-and-pricing/
 * If you do not own a commercial license, this file shall be governed by the trial license terms.
 */
(function(a,b){"function"===typeof define&&define.amd&&define("flexmonster",[],b);a.Flexmonster=b()})(window,function(){return function(a){/*
 jsSHA | Copyright (c) 2008-2015 Brian Turek [https://caligatio.github.com/jsSHA/] | BSD License [https://github.com/Caligatio/jsSHA/blob/v2.3.1/LICENSE] */
'use strict';var q;
(function(e){function l(b){return window.flexmonsterTrustedTypesPolicy?window.flexmonsterTrustedTypesPolicy.createHTML(b):b}function h(b){return"undefined"===typeof b||null===b}class f{constructor(){}static GS(b,a){if(b==a)return 0;b=b.split(".");a=a.split(".");if(b.length<a.length)return-1;if(b.length>a.length)return 1;for(var c=0;c<b.length;c++){var d=parseInt(b[c]),g=parseInt(a[c]);if(d<g)return-1;if(d>g)return 1}return 0}static Zc(b){return void 0!==b&&null!==b&&("true"==b.toLowerCase()||"on"==
b.toLowerCase())}static zM(){var b=(new Date).getTime()-(new Date(2012,2,8)).getTime()*Math.round(123456789*Math.random());if(f.IEa==b)return b.toString(35)+(f.sga++).toString();f.IEa=b;f.sga=0;return b.toString(35)}static bind(b,...a){if(h(b))return b;for(var c=0;c<a.length;c++)b=b.replace(new RegExp("\\{"+c+"\\}","gi"),null==a[c]?"":a[c].toString());return b}static ey(b,a=null){return isNaN(b)?e.model.B.j.jo:u.Lh.aAa(b,a)}static $x(b,a,c){void 0===a&&(a="dd/MM/yyyy");if(isNaN(b)||0===b)return e.model.B.j.jo;
b=new Date(b);return isNaN(b.getTime())?"":u.Lh.format(b,a,c)}static HO(b,a,c){void 0===a&&(a="dd/MM/yyyy HH:mm:ss");return f.$x(b,a,c)}static HU(b){return Date.parse(b)&&this.yFa(b)}static yFa(b){return this.AEa.test(b)}static So(b){if(h(b))return 0;if("#"===b.substr(0,1))return parseInt(b.substr(1),16);"transparent"==b&&(b="rgb(255,255,255)");b=b.replace(/[^\d,]/g,"");b=b.split(",");var a=parseInt(b[0]),c=parseInt(b[1]),d=parseInt(b[2]);0===parseInt(b[3])&&(a=c=d=255);return d|c<<8|a<<16}static k6(b){for(var a=
new Uint8Array(b.length),c=0,d=b.length;c<d;++c)a[c]=b.charCodeAt(c);return a}static Ica(b){b=-1!==b.split(",")[0].indexOf("base64")?atob(b.split(",")[1]):decodeURI(b.split(",")[1]);return f.k6(b)}static hya(b){for(var a=b.length,c=Array(a);a--;)c[a]=String.fromCharCode(b[a]);return c.join("")}static contains(b,a){return h(b)?!1:-1<b.toLowerCase().indexOf(a)}static q6(b){if(null==b)return NaN;if("number"===typeof b)return b;"string"!==typeof b&&(b=b.toString());","==e.model.oc.tj.VT().Nf&&(b=b.replace(/,/gi,
""));b=b.replace(",",".");b=b.replace(/[^[,|\.|\-|\d|e]]*/gi,"");return parseFloat(b)}static trim(b,a=null){if(null==b)return"";for(var c=0;f.p3(b.charAt(c),a);)++c;for(var d=b.length-1;f.p3(b.charAt(d),a);)--d;return d>=c?b.slice(c,d+1):""}static trimLeft(b,a=null){if(null==b)return"";for(var c=0;f.p3(b.charAt(c),a);)++c;a=b.length-1;return a>=c?b.slice(c,a+1):""}static p3(b,a=null){if(null!=a&&b==a)return!1;switch(b){case " ":case "\t":case "\r":case "\n":case "\f":return!0}return!1}static NDa(b){for(var a in f.mM)if(f.mM[a]==
b)return!0;return!1}static nH(b){return"string"!==typeof b||"="!=b.charAt(0)&&"@"!=b.charAt(0)?b:"'"+b}static lza(b){return b.replace(/[\s]{2,}/g,function(a){let c="";var d=0;for(a=a.length;d<a;d++)c+="&nbsp;";return c})}static Ro(b,a=!1,c=!1){if(h(b))return"";c&&(b=f.lza(""+b));return a?b.replace(/[<>"'\/]/g,d=>f.mM[d]):b.replace(/[&<>"'\/]/g,d=>f.mM[d])}static mza(b){if(h(b))return"";b=b.replace(/[&<>"']/g,a=>f.mM[a]);b=b.replace(/[\s]{2,}/g,a=>{let c="";var d=0;for(a=a.length;d<a;d++)c+=" ";return c});
return b.replace(/[\u{0001}-\u{001F}]/gui," ")}static VAa(){return new Uint8Array([239,187,191])}static Kca(b){f.Lca.innerHTML=l(b);return f.Lca.value}}f.sga=0;f.AEa=/^(?:[\+-]?\d{4}(?!\d{2}\b))-(?:0[1-9]|1[0-2])(?:(-?)(?:(?:[12]\d|0[1-9]|3[01])?|(?:00[1-9]|0[1-9]\d|[12]\d{2}|3(?:[0-5]\d|6[1-6])))(?:[T\s](?:(?:(?:[01]\d|2[0-3])(?:(:?)[0-5]\d)?|24:?00)(?:[\.,]\d+(?!:))?)?(?:\2[0-5]\d(?:[\.]\d+)?)?(?:[zZ]|(?:[\+-])(?:[01]\d|2[0-3]):?(?:[0-5]\d)?)?)?)?$/;f.mM={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;",
"'":"&#39;","/":"&sol;"};f.Lca=document.createElement("textarea");e.P=f;e.vt=l;e.KMa=function(b){return window.flexmonsterTrustedTypesPolicy?window.flexmonsterTrustedTypesPolicy.createScriptURL(b):b};e.v=h;e.Pg=function(b){return"function"===typeof b};e.ka=function(b){if(h(b))return!0;"string"!==typeof b&&(b=""+b);return 0===b.trim().length};e.QQa=function(b){return b.replace(/\|/g,"{%7C}")};e.PQa=function(b){return b.replace(/{%7C}/g,"|")};e.gL=function(b,a){var c=new Date(b.getTime()),d=a.match(/year|y|quarter|q|month|M|week|w|day|d|hour|h|minute|m|second|s/);
if(!d)return c;d=d[0];if("year"==d||"y"==d)return c.setUTCFullYear(b.getUTCFullYear()+1),c;if("quarter"==d||"q"==d)return c.setUTCMonth(b.getUTCMonth()+3),c;if("month"==d||"M"==d)return c.setUTCMonth(b.getUTCMonth()+1),c;if("week"==d||"w"==d)return c.setUTCDate(b.getUTCDate()+7),c;if("day"==d||"d"==d)return c.setUTCDate(b.getUTCDate()+1),c;a=parseInt(a)||1;if("hour"==d||"h"==d)return c.setUTCHours(b.getUTCHours()+a),c;if("minute"==d||"m"==d)return c.setUTCMinutes(b.getUTCMinutes()+a),c;"second"!=
d&&"s"!=d||c.setUTCSeconds(b.getUTCSeconds()+a);return c};e.KJa=function(b){var a=document.createElement("a");a.href=b;b={protocol:a.protocol,host:a.host,hostname:a.hostname,port:a.port,pathname:a.pathname,search:a.search,hash:a.hash};-1<b.protocol.indexOf(":")&&(b.protocol=b.protocol.substr(0,b.protocol.length-1));return b}})(q||(q={}));
(function(e){class l{constructor(h,f={}){this.bi=0;this.Ii=this.ki=this.fv=!1;const b=void 0===f.Vy?!0:f.Vy;h instanceof Date?h=h.getTime():void 0===h&&b?h=e.v(window.flexmonster_test_now)?Date.now():(new Date(window.flexmonster_test_now)).getTime():e.ka(h)||"null"===h?(b?this.Ii=!0:this.ki=!0,h=NaN):"number"===typeof h?isNaN(h)&&(this.ki=!0):"string"===typeof h?(e.ka(f.format)?this.aEa(h)?10==h.length?h=Date.parse(h+"T00:00:00"):(h=new Date(h),h=h.getTime()+6E4*h.getTimezoneOffset()):h=8>h.length||
/\D+/.test(h.slice(1))?Date.parse(h):parseInt(h):h=this.eJa(h,f.format),isNaN(h)&&(this.ki=!0)):(this.Ii=!0,h=NaN);this.qc=isNaN(h)?new Date(NaN):new Date(h);this.Kf(this.qc.getTimezoneOffset());this.fv=!0}aEa(h){return 4==h.length||7==h.length&&"-"==h.charAt(4)||10==h.length&&"-"==h.charAt(4)&&"-"==h.charAt(7)?!0:!1}round(h){if(!e.ka(h)){var f=h.match(/[s|M|m|w|q|h|d|y]$/);h=parseFloat(h.substring(0,h.length-1));if(!isNaN(h)&&null!==f){switch(f[0]){case "s":var b=h;break;case "m":b=60*h;break;case "h":b=
3600*h;break;case "d":b=86400*h;break;case "w":this.hka();break;case "M":this.VI();break;case "q":this.gka();break;case "y":this.ika()}void 0!==b&&(b*=1E3,this.qc.setTime(Math.floor(this.qc.getTime()/b)*b))}}}getDate(){if(!this.Ii&&!this.ki)return this.qc.getUTCDate()}setDate(h){if(!this.Ii&&!this.ki)return this.qc.setUTCDate(h),this.fv&&this.Kf(this.qc.getTimezoneOffset(),!1),this}getDay(){if(!this.Ii&&!this.ki)return this.qc.getUTCDay()}getFullYear(){if(!this.Ii&&!this.ki)return this.qc.getUTCFullYear()}setFullYear(h,
f=null,b=null){if(!this.Ii&&!this.ki)return e.v(f)?this.qc.setUTCFullYear(h):e.v(b)?this.qc.setUTCFullYear(h,f):this.qc.setUTCFullYear(h,f,b),this}getHours(){if(!this.Ii&&!this.ki)return this.qc.getUTCHours()}setHours(h,f=null,b=null,a=null){if(!this.Ii&&!this.ki)return e.v(f)?this.qc.setUTCHours(h):e.v(b)?this.qc.setUTCHours(h,f):e.v(a)?this.qc.setUTCHours(h,f,b):this.qc.setUTCHours(h,f,b,a),this.fv&&this.Kf(this.qc.getTimezoneOffset(),!1),this}getMilliseconds(){if(!this.Ii&&!this.ki)return this.qc.getUTCMilliseconds()}setMilliseconds(h){if(!this.Ii&&
!this.ki)return this.qc.setUTCMilliseconds(h),this.fv&&this.Kf(this.qc.getTimezoneOffset(),!1),this}getMinutes(){if(!this.Ii&&!this.ki)return this.qc.getUTCMinutes()}setMinutes(h,f=null,b=null){if(!this.Ii&&!this.ki)return e.v(f)?this.qc.setUTCMinutes(h):e.v(b)?this.qc.setUTCMinutes(h,f):this.qc.setUTCMinutes(h,f,b),this.fv&&this.Kf(this.qc.getTimezoneOffset(),!1),this}getMonth(){if(!this.Ii&&!this.ki)return this.qc.getUTCMonth()}setMonth(h,f=null){if(!this.Ii&&!this.ki)return e.v(f)?this.qc.setUTCMonth(h):
this.qc.setUTCMonth(h,f),this.fv&&this.Kf(this.qc.getTimezoneOffset(),!1),this}getSeconds(){if(!this.Ii&&!this.ki)return this.qc.getUTCSeconds()}setSeconds(h,f=null){if(!this.Ii&&!this.ki)return e.v(f)?this.qc.setUTCSeconds(h):this.qc.setUTCSeconds(h,f),this.fv&&this.Kf(this.qc.getTimezoneOffset(),!1),this}getTimezoneOffset(){if(!this.Ii&&!this.ki)return this.bi}Kf(h,f=!0){if(!this.Ii&&!this.ki){if(isNaN(h)||e.v(h))return this;this.fv=!1;0!=h&&60>Math.abs(h)&&(h*=-60);h!==this.bi&&(f&&this.qc.setUTCMinutes(this.qc.getUTCMinutes()+
(this.bi-h)),this.bi=h);return this}}getTime(){return this.Ii||this.ki?NaN:this.qc.getTime()+6E4*this.bi}s_(h){this.setDate(this.getDate()+h);return this}nua(h){this.setMonth(this.getMonth()+h)}ika(){this.setMonth(0,1);this.Ll()}gka(){9<=this.getMonth()?this.setMonth(9,1):6<=this.getMonth()?this.setMonth(6,1):3<=this.getMonth()?this.setMonth(3,1):0<=this.getMonth()&&this.setMonth(0,1);this.Ll()}VI(){this.setDate(1);this.Ll();return this}hka(h=1){this.setDate(this.getDate()-(this.getDay()-h+7)%7);
this.Ll()}Ll(){this.setHours(0,0,0,0);return this}t6(h,f=1){"day"==h?this.Ll():"week"==h?this.hka(f):"month"==h?this.VI():"quarter"==h?this.gka():"year"==h&&this.ika()}AMa(){this.setMonth(11,31);this.ay();return this}yMa(){9<=this.getMonth()?this.setMonth(11,1):6<=this.getMonth()?this.setMonth(8,1):3<=this.getMonth()?this.setMonth(5,1):0<=this.getMonth()&&this.setMonth(2,1);this.setDate(l.F0(this.getMonth(),this.getFullYear()));this.ay();return this}xMa(){this.setDate(l.F0(this.getMonth(),this.getFullYear()));
this.ay();return this}zMa(h=1){this.setDate(this.getDate()+(6-this.getDay()+h)%7);this.ay();return this}FMa(){const h=this.getTimezoneOffset()/60;this.setHours(Math.min(Math.abs(12-h),23),59,59,999);return this}ay(){this.setHours(23,59,59,999);return this}p6(h,f=1){return"day"==h?this.ay():"week"==h?this.zMa(f):"month"==h?this.xMa():"quarter"==h?this.yMa():"year"==h?this.AMa():this}ih(){return this.Ii||this.ki?!1:!isNaN(this.qc.getTime())}format(h){return this.ki?e.model.B.j.jo:this.Ii?"":this.mEa(h)?
u.Lh.format(this.$x(),h):u.Lh.format(this.qc,"UTC:"+h)}mEa(h){return null!==u.Lh.sg(h)}toString(){return this.format("yyyy-MM-dd")+"T"+this.format("HH:mm:ss")}$x(){return new Date(this.getTime())}clone(){var h=new l;this.ki||this.Ii||(h.qc=new Date(this.qc.getTime()));h.bi=this.bi;h.fv=this.fv;return h}eJa(h,f){var b=NaN;const a="UTC"===f.slice(0,3);if("UTC"===f.slice(0,3)||"GMT"===f.slice(0,3))f=f.split(":")[1];"dd/MM/yyyy"===f?(f=h.split("/"),b=a?Date.UTC(parseInt(f[2]),parseInt(f[1])-1,parseInt(f[0])):
(new Date(parseInt(f[2]),parseInt(f[1])-1,parseInt(f[0]))).getTime()):"dd-MM-yyyy"===f?(f=h.split("-"),b=a?Date.UTC(parseInt(f[2]),parseInt(f[1])-1,parseInt(f[0])):(new Date(parseInt(f[2]),parseInt(f[1])-1,parseInt(f[0]))).getTime()):"dd/MM/yyyy HH:mm:ss"===f&&(f=h.split(" "),h=f[0].split("/"),e.ka(f[1])?b=a?Date.UTC(parseInt(h[2]),parseInt(h[1])-1,parseInt(h[0])):(new Date(parseInt(h[2]),parseInt(h[1])-1,parseInt(h[0]))).getTime():(f=e.ka(f[1])?[]:f[1].split(":"),b=a?Date.UTC(parseInt(h[2]),parseInt(h[1])-
1,parseInt(h[0]),parseInt(f[0]),parseInt(f[1]),parseInt(f[2])):(new Date(parseInt(h[2]),parseInt(h[1])-1,parseInt(h[0]),parseInt(f[0]),parseInt(f[1]),parseInt(f[2]))).getTime()));return b}static F0(h,f){return l.Lsa[h]+(1==h&&0==f%4?1:0)}static e1(h,f){return h&&f?h.getTime()==f.getTime():h==f}}l.Lsa={0:31,1:28,2:31,3:30,4:31,5:30,6:31,7:31,8:30,9:31,10:30,11:31};e.Rf=l})(q||(q={}));
(function(e){class l{constructor(){(this.isNative=e.Pg(Set))?this.qC=new Set:this.Iy=[]}add(h){if(this.isNative)return this.qC.add(h),this;0>this.Iy.indexOf(h)&&this.Iy.push(h);return this}clear(){if(this.isNative)return this.qC.clear();this.Iy.length=0}delete(h){if(this.isNative)return this.qC.delete(h);h=this.Iy.indexOf(h);if(0>h)return!1;this.Iy.splice(h,1);return!0}has(h){return this.isNative?this.qC.has(h):0<=this.Iy.indexOf(h)}get size(){return this.isNative?this.qC.size:this.Iy.length}Pc(){if(this.isNative){if(e.Pg(Array.from))return Array.from(this.qC);
const h=[];this.qC.forEach(f=>h.push(f));return h}return this.Iy}}e.BF=l})(q||(q={}));
(function(e){class l{constructor(){this.wl={}}get target(){return null}JG(c,d){return c.type===d.type&&c.lc===d.lc&&c.D6===d.D6}A2(c,d){if(e.v(this.wl[c]))return!1;for(var g=0;g<this.wl[c].length;g++)if(this.JG(this.wl[c][g],d))return!0;return!1}addEventListener(c,d,g){var k={type:c,lc:d,D6:g};this.A2(c,k)||(e.v(this.wl[c])&&(this.wl[c]=[]),this.wl[c].push(k),this.target.addEventListener(c,d,g))}removeEventListener(c,d,g){d={type:c,lc:d,D6:g};for(c in this.wl){for(var k=[],m=0;m<this.wl[c].length;m++)this.JG(this.wl[c][m],
d)?"boolean"===typeof g?this.target.removeEventListener(c,this.wl[c][m].lc,g):this.target.removeEventListener(c,this.wl[c][m].lc):k.push(this.wl[c][m]);this.wl[c]=k}}dispose(){for(var c in this.wl)for(var d=0;d<this.wl[c].length;d++)this.target.removeEventListener(c,this.wl[c][d].lc,!0),this.target.removeEventListener(c,this.wl[c][d].lc,!1);this.wl={}}}class h extends l{static R(){null===h.instance&&(h.instance=new h);return h.instance}get target(){return document.body}}h.instance=null;class f extends l{static R(){null===
f.instance&&(f.instance=new f);return f.instance}get target(){return document}}f.instance=null;class b extends l{static R(){null===b.instance&&(b.instance=new b);return b.instance}get target(){return window}}b.instance=null;class a{static dispose(){for(;0<a.GO.length;)clearTimeout(a.GO.pop());for(;0<a.lN.length;)clearInterval(a.lN.pop())}}a.GO=[];a.lN=[];e.Ora=a;e.ve=function(c,d){c=setTimeout(c,d);a.GO.push(c);return c};e.sr=function(c){clearTimeout(c);a.GO.splice(a.GO.indexOf(c),1)};e.Uda=function(c,
d){c=setInterval(c,d);a.lN.push(c);return c};e.t1=function(c){clearInterval(c);a.lN.splice(a.lN.indexOf(c),1)};e.Tn=h.R();e.Ik=f.R();e.vM=b.R()})(q||(q={}));var u;
(function(e){class l{constructor(){}static ZDa(h){return null!=h&&(0==h.indexOf("http://")||0==h.indexOf("https://"))}static xDa(h){return null!=h&&0==h.indexOf("blob:http")}static RH(h,f=!1){if(!h)return"()";h=h.trim();if(0==h.length)return"()";if(l.xDa(h))return h;f&&(h+=(-1<h.indexOf("?")?"&":"?")+Math.round(Date.now()/3600));if(l.ZDa(h)||0==h.indexOf("file")||"/"==h.substr(0,1)||"./"==h.substr(0,2))return h;if(-1!=h.indexOf("..")){f=l.h0.split("/");""==f[f.length-1]&&f.pop();for(h=h.split("/");".."==
h[0]&&(0<h.length&&h.shift(),0<f.length&&f.pop(),0!=f.length););h=f.join("/")+"/"+h.join("/");"/"==h.substr(0,1)&&(h=h.substring(1));return h}return l.h0+h}static xua(h){return h+=(-1<h.indexOf("?")?"&":"?")+Math.round(Date.now()/3600)}}l.h0="";e.Gy=l})(u||(u={}));
(function(e){class l{constructor(){}static format(h,f,b){var a=!1,c=this.sg(f);"UTC:"==f.slice(0,4)?(f=f.slice(4),a=!0):q.v(c)?q.v(b)||(h=new Date(h.getTime()+36E5*(b+h.getTimezoneOffset()/60))):(f=f.slice(f.indexOf(":")+1),h=new Date(h.getTime()+36E5*(c+h.getTimezoneOffset()/60)));var d=a?"getUTC":"get";b=h[d+"Date"]();c=h[d+"Day"]();var g=h[d+"Month"](),k=h[d+"FullYear"](),m=h[d+"Hours"](),n=h[d+"Minutes"](),p=h[d+"Seconds"]();d=h[d+"Milliseconds"]();var t=a?0:h.getTimezoneOffset(),r={d:b,dd:l.Zn(b),
ddd:l.Yu.aH[c],dddd:l.Yu.aH[c+7],D:b,DD:l.Zn(b),DDD:l.Yu.aH[c],DDDD:l.Yu.aH[c+7],M:g+1,MM:l.Zn(g+1),MMM:l.Yu.wV[g],MMMM:l.Yu.wV[g+12],yy:String(k).slice(2),yyyy:k,YY:String(k).slice(2),YYYY:k,h:m%12||12,hh:l.Zn(m%12||12),H:m,HH:l.Zn(m),k:0==m?24:m,kk:0==m?24:l.Zn(m),m:n,mm:l.Zn(n),s:p,ss:l.Zn(p),l:l.Zn(d,3),L:l.Zn(Math.round(d/10)),t:12>m?"a":"p",tt:12>m?"am":"pm",T:12>m?"A":"P",TT:12>m?"AM":"PM",Z:a?"UTC":(String(h).match(l.tMa)||[""]).pop().replace(l.uMa,""),o:(0<t?"-":"+")+l.Zn(100*Math.floor(Math.abs(t)/
60)+Math.abs(t)%60,4),S:["th","st","nd","rd"][3<b%10?0:(10!=b%100-b%10?1:0)*b%10]};return f.replace(l.nka,function(v){return v in r?r[v]:v.slice(1,v.length-1)})}static aAa(h,f){var b=0>h;0>h&&(h*=-1);var a=Math.floor(h/86400);f=null==f||""==f?0<a&&null==q.model.C.F.np?"d'd' "+this.Sca:this.Sca:f;h=Math.round(h);var c=h%60;h=(h-c)/60;var d=h%60;h=(h-d)/60;var g=h%24;b&&(f="-"+f);var k={d:a,dd:l.Zn(a),H:g,HH:l.Zn(g),HHH:h,m:d,mm:l.Zn(d),s:c,ss:l.Zn(c)};return f.replace(l.nka,function(m){return m in
k?k[m]:m.slice(1,m.length-1)})}static sg(h){h=h.substr(0,h.indexOf(":"));return"UTC"===h.slice(0,3)?0:"GMT"===h.slice(0,3)?4<h.length?parseInt(h.substr(3)):0:this.UI.hasOwnProperty(h.slice(0,2))?this.UI[h.slice(0,2)]:this.UI.hasOwnProperty(h.slice(0,3))?this.UI[h.slice(0,3)]:this.UI.hasOwnProperty(h.slice(0,4))?this.UI[h.slice(0,4)]:null}static Zn(h,f){h=""+h;for(f=f||2;h.length<f;)h="0"+h;return h}static xLa(h,f){l.Yu.aH=f.concat(h)}static JLa(h,f){l.Yu.wV=f.concat(h)}static vBa(){return l.Yu.aH.slice(7,
14)}static $Ba(){return l.Yu.wV.slice(12,24)}}l.Sca="HH:mm:ss";l.UI={CET:1,EET:2,EAT:3,GET:4,CXT:7,CST:8,JST:9,SAKT:11,IDLE:12,WAT:-1,AT:-2,ART:-3,AST:-4,EST:-5,CT:-6,MST:-7,PST:-8,AKST:-9,YST:-9,HST:-10,NT:-11,IDLW:-12};l.nka=/d{1,4}|D{1,4}|m{1,4}|M{1,4}|yy(?:yy)?|YY(?:YY)?|H{1,3}|([HhkMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g;l.tMa=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g;l.uMa=/[^-+\dA-Z]/g;l.Yu={aH:"Sun Mon Tue Wed Thu Fri Sat Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
wV:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec January February March April May June July August September October November December".split(" ")};e.Lh=l})(u||(u={}));
(function(e){class l{constructor(){}static sort(h,f=0,b){var a=1===f%2;f>>=1;var c=1===f%2;f=f>>1>>1;var d=1===(f>>1)%2?(g,k)=>{if(void 0!==b){if(e.v(k))return-1;if(e.v(g))return 1;g=b(g);k=b(k)}return isNaN(k)||null===k?-1:isNaN(g)||null===g?1:g-k}:a?(g,k)=>{if(e.ka(k))return-1;if(e.ka(g))return 1;if(void 0!==b){g=b(g);k=b(k);if(e.ka(k))return-1;if(e.ka(g))return 1}return l.localeCompare(g,k)}:(g,k)=>{if(e.ka(k))return-1;if(e.ka(g))return 1;if(void 0!==b){g=b(g);k=b(k);if(e.ka(k))return-1;if(e.ka(g))return 1}return l.localeCompare(g.toLocaleLowerCase(),
k.toLocaleLowerCase())};if(1===f%2){f=[];for(a=0;a<h.length;a++)f[a]=a;f.sort((g,k)=>d(h[g],h[k]));c&&f.reverse();return f}h.sort(d);c&&h.reverse();return h}static localeCompare(h,f){return h&&h.localeCompare?h.localeCompare(f):h===f?0:h>f?1:-1}static insert(h,f,b){for(var a=0;a<f.length;a++)h.splice(b+a,0,f[a])}static Pr(h,f){if(void 0!==h.push)return h.push(f),h;var b=new h.constructor(h.length+1);b.set(h,0);b.set([f],h.length);return b}static re(h,f,b){if(b>=h.length)return l.Pr(h,f);if(Array.isArray(h))return h.splice(b,
0,f),h;var a=new h.constructor(h.length+1);a.set(h.subarray(0,b));a.set([f],b);a.set(h.subarray(b),b+1);return a}static Qr(h,f){if(Array.isArray(h))return h.splice(f,1),h;if(h instanceof Uint8Array||h instanceof Int8Array||h instanceof Uint16Array||h instanceof Uint32Array){const b=h.length-1;let a=null;h instanceof Uint8Array?a=new Uint8Array(b):h instanceof Int8Array?a=new Int8Array(b):h instanceof Uint16Array?a=new Uint16Array(b):h instanceof Uint32Array&&(a=new Uint32Array(b));if(null==a)return h;
a.set(h.subarray(0,f),0);a.set(h.subarray(f+1,h.length),f);return a}return h}static Q3(h,f,b){h.splice(b,0,h.splice(f,1)[0])}}l.ny=1;l.tp=2;l.Tv=8;l.Ti=16;e.Ja=l})(q||(q={}));void 0===Array.prototype.findIndex&&(Array.prototype.findIndex=function(e,l){if(null==this)throw new TypeError("Array is null or undefined");for(var h=Object(this),f=h.length>>>0,b=0;b<f;b++)if(e.call(l,h[b],b,h))return b;return-1});
void 0===Array.prototype.find&&(Array.prototype.find=function(e,l){if(null==this)throw new TypeError("Array is null or undefined");for(var h=Object(this),f=h.length>>>0,b=0;b<f;b++){var a=h[b];if(e.call(l,a,b,h))return a}});void 0===Uint16Array.prototype.slice&&Object.defineProperty(Uint16Array.prototype,"slice",{value:function(e,l){return new Uint16Array(Array.prototype.slice.call(this,e,l))}});
(function(e){class l{constructor(){this.values=new Map;this.keys=[]}Ta(h,f){this.values.has(h)||this.keys.push(h);this.values.set(h,f)}fua(h){if(null!=h)for(var f in h)h.hasOwnProperty(f)&&this.Ta(f,h[f])}unshift(h,f){this.keys.unshift(h);this.values.set(h,f)}hL(h,f,b){null!=this.getItem(h)&&this.removeItem(h);this.keys.splice(b,0,h);this.values.set(h,f)}removeItem(h){null!=this.getItem(h)&&(this.keys.splice(this.indexOf(h),1),this.values.delete(h))}s5(h){var f=this.keys[h];null!=f&&(this.keys.splice(h,
1),this.values.delete(f))}set length(h){}get length(){return this.keys.length}indexOf(h){return this.keys.indexOf(h)}Bb(h){return this.values.has(h)}getItem(h){return this.values.get(h)}fa(h){return this.values.get(this.keys[h])}Uh(h){return this.keys[h]}aU(){return this.values.get(this.keys[this.keys.length-1])}R3(h,f){this.keys.splice(f,0,this.keys.splice(h,1)[0])}slice(h=0,f=0){0==f&&(f=this.length-h);for(var b=new l,a=0;a<f;a++)this.length>a+h&&(e.v(this.fa(a+h))||b.Ta(this.Uh(a+h),this.fa(a+
h)));return b}concat(h,f=!0){if(!f)return this.Isa(h),null;var b=new l;for(f=0;f<this.length;f++)b.Ta(this.Uh(f),this.fa(f));for(f=0;f<h.length;f++)b.Ta(h.Uh(f),h.fa(f));return b}Isa(h){var f,b=h.length;for(f=0;f<b;f++)this.Ta(h.Uh(f),h.fa(f))}splice(h,f=0){var b=new l;h+f>this.length&&(f=this.length-h);1>f&&(f=this.length);for(var a=0;a<this.length;a++)(a<h||a>=h+f)&&b.Ta(this.Uh(a),this.fa(a));return b}reverse(){var h,f=new l;for(h=this.length-1;-1<h;h--)f.Ta(this.Uh(h),this.fa(h));return f}Pc(h=
!1){if(h)return this.keys.slice(0);h=[];for(var f=0;f<this.length;f++)h.push(this.fa(f));return h}toString(){var h=[],f;for(f in this.keys){var b="{"+f+": "+this.getItem(f)+"}";h.push(b)}return h.join(", ")}Sa(){for(var h={},f=0;f<this.keys.length;f++){var b=this.keys[f];h[b]=this.getItem(b)}return h}clear(){this.values=new Map;this.keys.length=0}}e.ub=l})(q||(q={}));
(function(e){class l{constructor(){this.quotes=[]}parse(h){try{this.quotes=[];for(var f=[],b=!1,a="",c=0;c<h.length;c++){var d=h.charAt(c);'"'==d||"'"==d?(b&&(this.quotes.push(a),f.push(d),a=""),b=!b):b&&(a+=d)}h="  "+h;for(c=0;c<this.quotes.length;c++)if("truestyle"!=this.quotes[c].toLowerCase()){var g=f[c]+this.quotes[c]+f[c],k=h.substring(0,h.indexOf(g)+g.length+2);var m=/(\w\w\w\()['|"][^'|^"]*['|"]/i;if(m.test(k))h=h.replace(g,"@"+c);else{m=/(\W)['|"][^'|^"]*['|"]/i;var n=(-1!=k.indexOf("#value")||
-1!=k.indexOf("#updateDifference")||-1!=k.indexOf("#updatePercent"))&&-1!=k.indexOf("if(");m.test(k)&&!n?h=h.replace(g,"sum(@"+c+")"):(m=/(\W)['|"][^'|^"]*['|"]/i,h=h.replace(g,"@"+c))}}m=/#value/g;h=h.replace(m,"value()");m=/#updateDifference/g;h=h.replace(m,"updateDifference()");m=/#updatePercent/g;h=h.replace(m,"updatePercent()");h=h.toLocaleLowerCase();var p=this.Daa(h);p=p[1][0]}catch(t){return null}return p}Daa(h){for(var f=[],b="",a=h.length,c=0;c<h.length;c++){var d=h.charAt(c);if("("==d)b+=
"$"+f.length+";",d=this.Daa(h.slice(c+1)),f.push(d[1]),c=c+d[0]+1;else if(")"==d){a=c;break}else b+=d}h=[];b=b.split(",");for(c=0;c<b.length;c++)h.push(this.WZ(b[c],f));return[a,h]}WZ(h,f){for(var b=[[" or "," and "],"== != >= <= = > <".split(" "),["-","+"],["/","*"],["^"]],a=0;a<b.length;a++){var c=Number.MIN_VALUE,d=b[a][0];if(3==a){c=h.indexOf(b[a][0]);var g=h.indexOf(b[a][1]);-1!=c&&-1!=g?d=c<g?b[a][1]:b[a][0]:-1!=c?d=b[a][0]:-1!=g&&(d=b[a][1])}else for(g=0;g<b[a].length;g++){var k=h.indexOf(b[a][g]);
-1!=k&&(k>=c||2==a)&&(d=b[a][g],c=k+d.length)}c=h.split(d);2<c.length&&(g=c[c.length-1],c.pop(),c=[c.join(d),g]);if(2==c.length)return h=this.WZ(c[0],f),f=this.WZ(c[1],f),"-"==d&&"string"==typeof h&&0==h.trim().length?[d.trim(),[0,f],!0]:[d.trim(),[h,f],!0]}return this.wta(h,f)}wta(h,f){h=h.trim();if(-1!=h.indexOf("$")){var b=h.split("$");h=b[0];b=parseInt(b[1]);if(0<h.length){var a="string"!=typeof f[b][0];("min"==h||"max"==h)&&1<f[b].length&&(a=!0,"string"==typeof f[b][0]&&(f[b][0]=["sum",[f[b][0]],
!1]),"string"==typeof f[b][1]&&(f[b][1]=["sum",[f[b][1]],!1]));if("value"===h||"updatedifference"===h||"updatepercent"===h)a=!0;if("round"==h||"abs"==h)a=!0,"string"==typeof f[b][0]&&(f[b][0]=["sum",[f[b][0]],!1]);return[h,f[b],a]}return f[b][0]}if(-1!=h.indexOf("@"))return f=parseInt(h.slice(1)),this.quotes[f];if("truestyle"==h.toLowerCase()||"truestyle"==h.substring(1,h.length-1).toLowerCase())return"truestyle";f=parseFloat(h);return isNaN(f)?h:f}}e.VJ=l})(u||(u={}));
(function(e){class l{static get Yo(){return/Mac/i.test(navigator.platform)}static get aE(){return/(iPhone|iPod|iPad)/i.test(navigator.platform)||/(iPhone|iPod|iPad)/i.test(navigator.userAgent)}}e.uj=l})(u||(u={}));
(function(e){class l{constructor(f=!0){this.values=[];this.iS=[];this.root=new h("");this.mS=f}get length(){return this.values.length}add(f,b){if(q.v(f)||0===f.length)return void 0===this.yz&&(this.yz=this.values.length,this.values.push(f)),this.yz;f=""+f;if(this.mS){const a=/[^\u0000-\u007F]+/.test(f)?f.toLocaleLowerCase():f.toLowerCase();return this.root.Zaa(f,a,a===f,this.values,this.iS,b)}return this.root.$aa(f,this.values,b)}get(f){return this.mS?this.iS[f]||this.values[f]:this.values[f]}find(f){if(q.v(f)||
0===f.length)return void 0!==this.yz?this.yz:-1;f=""+f;const b=/[^\u0000-\u007F]+/.test(f);this.mS&&(f=b?f.toLocaleLowerCase():f.toLowerCase());return this.root.find(f,0,this.values,b)}sort(){var f=this.root.sort(l.e0);void 0!==this.yz&&f.unshift(this.yz);return f}clone(){var f=new l(this.mS);f.values=this.values.slice();f.iS=this.iS.slice();f.yz=this.yz;f.root=this.root.clone();return f}static e0(f,b){return f&&f.localeCompare?f.localeCompare(b):f==b?0:f>b?1:-1}}e.HQ=l;class h{constructor(f){this.dh=
[];this.prefix=f}$aa(f,b,a){var c=this.prefix.length;if(void 0!==this.children&&f.length>c)return c=f[c],this.children.has(c)||this.children.set(c,new h(this.prefix+c)),this.children.get(c).$aa(f,b,a);for(var d=0;d<this.dh.length;d++){c=b[this.dh[d]];if(f<c)return this.UQ(f,b,a,d);if(f===c){if(void 0===a)return this.dh[d];b[a]=f;this.dh.splice(d,0,a);return a}}return this.UQ(f,b,a)}Zaa(f,b,a,c,d,g){var k=this.prefix.length;if(void 0!==this.children&&b.length>k)return k=b[k],this.children.has(k)||
this.children.set(k,new h(this.prefix+k)),this.children.get(k).Zaa(f,b,a,c,d,g);for(var m=0;m<this.dh.length;m++){k=c[this.dh[m]];if(b<k)return a?this.UQ(f,c,g,m):this.B$(f,b,c,d,g,m);if(b===k){if(void 0===g)return this.dh[m];c[g]=b;a||(d[g]=f);this.dh.splice(m,0,g);return g}}return a?this.UQ(f,c,g):this.B$(f,b,c,d,g)}B$(f,b,a,c,d,g=-1){void 0===d?(d=a.length,a.push(b),c[d]=f):(a[d]=b,c[d]=f);-1===g?this.dh.push(d):this.dh.splice(g,0,d);this.dh.length>h.e9&&this.Qaa(a);return d}UQ(f,b,a,c=-1){void 0===
a?(a=b.length,b.push(f)):b[a]=f;-1===c?this.dh.push(a):this.dh.splice(c,0,a);this.dh.length>h.e9&&this.Qaa(b);return a}Qaa(f){if(!this.children){this.children=new Map;for(var b,a=this.prefix.length,c=-1,d=0,g=0;g<this.dh.length;g++)b=f[this.dh[g]],b.length===a?c=this.dh[g]:(b=b[a],this.children.has(b)||(this.children.set(b,new h(this.prefix+b)),d++),this.children.get(b).dh.push(this.dh[g]));this.dh=-1===c?[]:[c]}}sort(f){var b=0<this.dh.length?this.dh.slice():[];if(void 0!==this.children){var a=[];
for(var c of this.children.keys())a.push(c);a=a.sort(f);for(c=0;c<a.length;c++){var d=this.children.get(a[c]).sort(f);b=b.concat(d)}}return b}find(f,b,a,c){if(void 0!==this.children&&f.length!==this.prefix.length){var d=f[b];return this.children.has(d)?this.children.get(d).find(f,b+1,a,c):-1}return this.Wsa(f,a,c)}Wsa(f,b,a){for(let d=0;d<this.dh.length;d++){var c=b[this.dh[d]];if(a){if(c=c.localeCompare(f),0===c)return this.dh[d]}else if(f===c)return this.dh[d]}return-1}clone(){var f=new h(this.prefix);
f.dh=this.dh.slice();void 0!==this.children&&(f.children=new Map(this.children));return f}}h.e9=16})(u||(u={}));
(function(e){class l{static Og(h){for(var f in h)if(!q.v(h[f])&&h.hasOwnProperty(f))return!1;return!0}static jz(h){var f={},b;for(b in h)f[b]=h[b];return f}static zj(h,f){if(q.v(h))return null;if(Array.isArray(h))return l.iya(h);var b={},a;for(a in h)b[a]="object"!=typeof h[a]||null==h[a]||null!=f&&-1<f.indexOf(a)?h[a]:l.zj(h[a]);return b}static iya(h){for(var f=[],b=0;b<h.length;b++)f[b]="object"!=typeof h[b]?h[b]:l.zj(h[b]);return f}static resolve(h,f){return q.v(f)?null:f.hasOwnProperty(h)?f[h]:
h.split(".").reduce((b,a)=>b&&b[a],f)}}e.Hc=l})(u||(u={}));var w;
(function(e){class l{static Zfa(f){return-1<"fullscreenchange mozfullscreenchange webkitfullscreenchange MSFullscreenChange focusin focusout touchstart touchmove touchend touchenter touchleave touchcancel".split(" ").indexOf(f)}constructor(f,b=null,a=null){this.paa=!1;this.type=f;this.target=b;this.data=a}stopPropagation(){this.paa=!0}get nEa(){return this.paa}}l.Qc="event_complete";l.ZA="event_connected";l.te="event_progress";l.to="event_select";l.Xd="event_change";l.xa="event_error";l.OPENED="event_opened";
l.CLOSED="event_closed";l.BX="event_cancel";l.OPEN="event_open";l.eP="event_close";l.DY="event_resize";l.sp="event_clear";e.ia=l;class h{constructor(){this.dT=!1;this.Ch=[];this.vn=[];this.Xt=[]}JG(f,b){return f.type==b.type&&f.lc==b.lc}z2(f){return!q.v(this.Ch[f])}A2(f,b){if(q.v(this.Ch[f]))return!1;for(var a=0;a<this.Ch[f].length;a++)if(this.JG(this.Ch[f][a],b))return!0;return!1}N(f,b,a=0){b={type:f,lc:b,priority:a};if(!this.A2(f,b))if(this.dT)q.v(this.vn[f])&&(this.vn[f]=[]),this.vn[f].push(b);
else if(q.v(this.Ch[f])&&(this.Ch[f]=[]),0==this.Ch[f].length)this.Ch[f].push(b);else{this.Ch[f][this.Ch[f].length-1].priority>=a&&this.Ch[f].push(b);for(var c=0;c<this.Ch[f].length;c++)if(this.Ch[f][c].priority<a){this.Ch[f].splice(c,0,b);break}}}rb(f,b){if(!q.v(this.Ch[f])){b={type:f,lc:b};for(var a=this.Ch[f].slice(0),c=[],d=0;d<a.length;d++)this.JG(a[d],b)?this.dT&&(q.v(this.Xt[f])&&(this.Xt[f]=[]),this.Xt[f].push(a[d])):c.push(a[d]);this.Ch[f]=c}}Vd(f){void 0===f?(this.Ch=[],this.vn=[],this.Xt=
[]):(q.v(this.Ch)||(this.Ch[f]=[]),q.v(this.vn)||(this.vn[f]=[]),q.v(this.Xt)||(this.Xt[f]=[]))}Ha(f){if(!q.v(this.Ch[f.type])){this.dT=!0;for(var b=this.Ch[f.type].slice(0),a=0;a<b.length;a++){if(!q.v(this.Xt[f.type])){var c=!1,d;for(d in this.Xt[f.type])this.JG(b[a],this.Xt[f.type][d])&&(c=!0);if(c)continue}f instanceof q.model.jd?b[a].lc.call(this,f.data):f instanceof l&&f.nEa||b[a].lc.call(this,f)}delete this.Xt[f.type];for(var g in this.vn){if(q.v(this.Ch[g]))b=[];else if(Array.isArray(this.Ch[g]))b=
this.Ch[g].slice(0);else continue;if(!q.v(this.vn[g]))for(a=0;a<this.vn[g].length;a++)if(0==b.length)b.push(this.vn[g][a]);else for(b[b.length-1].priority==this.vn[g][a].priority&&b.push(this.vn[g][a]),f=0;f<b.length;f++)if(b[f].priority<this.vn[g][a].priority){b.splice(f,0,this.vn[g][a]);break}this.Ch[g]=b;this.vn[g]=[]}this.dT=!1}}Ya(f,b,a){f=new e.ia(f,null==b?this:b,a);this.Ha(f)}}e.Mh=h})(w||(w={}));
(function(e){e.requestIdleCallback=function(h,f=null,b=!1){if(window.requestIdleCallback&&!b)return window.requestIdleCallback(h,f);var a,c=e.bg(),d;return q.ve(()=>{h({didTimeout:!1,timeRemaining:()=>void 0===a?(a=e.bg(),d=Math.min(350,e.bg()-c+50)):Math.max(0,d-(e.bg()-a))})},1)};e.cancelIdleCallback=function(h){if(window.cancelIdleCallback)return window.cancelIdleCallback(h);q.sr(h)};class l{constructor(){throw Error("Singleton");}static Co(h){l.BI.push(h);l.Ze()}static Ze(){q.v(l.AL)&&0<l.BI.length&&
(3<l.K2&&(l.qfa=!1),l.AL=e.requestIdleCallback(l.TKa,{timeout:100},!l.qfa))}static TKa(h){if(h.didTimeout)l.K2++,l.Eia();else for(l.K2=0;0<h.timeRemaining()&&0<l.BI.length&&!l.Eia(););l.AL=null;l.Ze()}static Eia(){var h=l.BI.shift(),f=h.lp(h.M_);f?h&&h.gf&&q.ve(h.gf,1):l.BI.push(h);return f}static cancel(){null!=l.AL&&(e.cancelIdleCallback(l.AL),l.AL=null);l.BI=[]}}l.BI=[];l.qfa=!0;l.K2=0;e.Ql=l})(u||(u={}));
(function(e){function l(){var h=navigator.userAgent.toLowerCase(),f={};f.OU=/mozilla/.test(h)&&/firefox/.test(h);f.DU=/webkit/.test(h)&&/chrome/.test(h)&&!/edge/.test(h);f.W2=/edge/.test(h);f.tEa=/applewebkit/.test(h)&&/safari/.test(h)&&!/chrome/.test(h);f.bga=/opera/.test(h);f.fj=/msie/.test(h);f.pEa=/ReactNative/i.test(navigator.product);f.im=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Windows Phone/i.test(h)||/iPad|iPhone|iPod|BlackBerry/i.test(navigator.platform)||f.pEa;f.version=NaN;f.fj||f.OU||
f.DU||f.tEa||f.bga||!/trident/.test(h)||(f.fj=!0,f.version=11);if(isNaN(f.version))for(var b=["chrome","firefox","msie","safari","opera"],a=0;a<b.length;a++)try{f.version=parseInt(h.match(new RegExp("("+b[a]+")( |/)([0-9]+)"))[3]);break}catch(c){}return f}e.Nd=function(){return l()};e.bT=l;e.PU=function(){return null!=document.fullscreenElement||null!=document.mozFullScreenElement||null!=document.webkitFullscreenElement||null!=document.msFullscreenElement};e.d3=function(){return window!=top};e.Jfa=
function(){try{return!q.v(window.process.versions.electron)}catch(h){return!1}};e.VDa=function(){try{return void 0!==ArrayBuffer&&void 0!==DataView&&void 0!==Uint8Array&&(window.chrome&&navigator.userAgent.match(/chrome.\d*/gi)?12<=parseInt(navigator.userAgent.match(/chrome.\d*/gi)[0].replace(/[^\d]/g,"")):!0)&&(window.opera?15<=window.opera.version():!0)&&(navigator.userAgent.match("Safari/")?!navigator.userAgent.match("Version/5.")&&!navigator.userAgent.match("Version/6.0"):!0)}catch(h){return!1}};
e.GQa=function(h){var f=document.cookie,b=f.indexOf(" "+h+"=");-1==b&&(b=f.indexOf(h+"="));-1==b?f=null:(b=f.indexOf("=",b)+1,h=f.indexOf(";",b),-1==h&&(h=f.length),f=decodeURI(f.substring(b,h)));return f};e.LQa=function(h,f){var b=new Date;b.setDate(b.getDate()+1825);f=encodeURI(f)+"; expires="+b.toUTCString();document.cookie=h+"="+f};e.HQa=function(){return screen.orientation&&-1<screen.orientation.type.indexOf("landscape")};e.IQa=function(){return screen.orientation&&-1<screen.orientation.type.indexOf("portrait")};
e.SQa=function(){return Math.max(document.documentElement.clientWidth)};e.RQa=function(){return Math.max(document.documentElement.clientHeight)}})(u||(u={}));
(function(e){class l extends w.Mh{constructor(f,b=0){super();this.dR=0;this.UK=!1;this.Nsa=f;this.Kaa=b}NIa(){this.dR++;this.Ha(new w.ia(h.Ol));0<this.Kaa&&this.dR>=this.Kaa&&(this.stop(),this.Ha(new w.ia(h.Pl)))}start(){this.UK||(this.laa=q.Uda(()=>this.NIa(),this.Nsa),this.UK=!0)}stop(){this.UK&&!q.v(this.laa)&&(q.t1(this.laa),this.UK=!1)}reset(){this.dR=0;this.stop()}set Kw(f){}get Kw(){return this.dR}set Gl(f){}get Gl(){return this.UK}}e.Pt=l;class h{}h.Ol="timer";h.Pl="complete";e.xf=h;e.bg=
function(){return"undefined"!==typeof performance&&"function"===typeof window.performance.now?performance.now():(new Date).getTime()}})(u||(u={}));
(function(e){class l{static load(f,b,a){if(PivotApi.libsIncluded)return b();f=new h(f,l.O_);this.jI.push(f);f.lc=b;f.Xa=a;f.load()}static z3(f,b,a){null==b&&(b={});f=new h(f,l.O_);this.jI.push(f);f.wL=b.wL;f.Bj=b.Bj;f.lc=a;f.Xa=void 0;f.load()}static RMa(){var f=document.querySelector("link[data-fm-hc-theme]");f&&(f.disabled=!0)}static dispose(){for(let f=0;f<this.jI.length;f++)this.jI[f].dispose();this.jI.length=0;this.jI=null}}l.O_="";l.jI=[];e.uo=l;class h{constructor(f,b){this.wL=null;this.Bj=
!1;this.total=this.loaded=0;this.errors=[];this.y3=this.hO=null;this.url=f;this.baseURI=b;this.total="string"==typeof this.url?1:this.url.length}load(){0==this.total&&this.Jj();if("string"==typeof this.url)this.LK(this.url,this.wL);else for(var f=this.url,b=0;b<f.length;b++)this.LK(f[b],this.wL)}Jj(){this.loaded++;if(this.loaded==this.total||0==this.total)0==this.errors.length?this.lc&&this.lc():this.Xa&&this.Xa(this.errors),this.Xa=this.lc=null}LK(f,b){f=this.baseURI+f;f.lastIndexOf(".js")==f.length-
3?this.bFa(f):f.lastIndexOf(".css")==f.length-4?this.z3(f,b):this.Jj()}bFa(f){if(null==this.Pda(f)){const a=this.hO=document.createElement("script");a.type="text/javascript";a.src=q.KMa(f+"?"+q.Cg.Iq);a.async=!0;var b=()=>{a.readystate="loaded";this.Jj();if(a.onloadedlisteners){for(var c=0;c<a.onloadedlisteners.length;c++)a.onloadedlisteners[c]();delete a.onloadedlisteners}};a.onreadystatechange=b;a.onload=b;a.onerror=()=>{a.readystate="error";this.errors.push(f);this.Jj()};document.head.appendChild(a)}else b=
this.hO=this.Pda(f),"error"==b.readystate?(this.errors.push(f),this.Jj()):!0===b.async&&"loaded"!=b.readystate?(null==b.onloadedlisteners&&(b.onloadedlisteners=[]),b.onloadedlisteners.push(()=>this.Jj())):this.Jj()}z3(f,b=null){const a=this.y3=document.createElement("link");a.href=f+"?"+q.Cg.Iq;a.rel="stylesheet";a.type="text/css";if(null!=b)for(const c in b)b.hasOwnProperty(c)&&a.setAttribute(c,b[c]);a.onerror=()=>this.Rb(f);a.onreadystatechange=()=>this.Jj();a.onload=()=>this.Jj();this.Bj?document.body.appendChild(a):
document.head.appendChild(a)}Pda(f){for(var b=0;b<document.head.children.length;b++){var a=document.head.children.item(b);if(a.src&&-1<a.src.indexOf(f))return a}return null}Rb(f){this.errors.push(f);this.Jj()}dispose(){this.Xa=this.lc=this.y3=this.hO=null}}})(u||(u={}));
(function(e){class l extends w.Mh{constructor(f){super();this.GZ=!1;this.gta=b=>this.tq(b);this.hta=b=>this.v4(b);this.GEa=1E3;this.buffer=[];this.tfa=()=>this.uHa();this.TQ=null;if(null!=l.Be)throw Error("KeyboardListener is singleton");e.Nd().im||(q.Ik.addEventListener("keydown",this.gta),q.Ik.addEventListener("keyup",this.hta),this.kG=new x.Ga("div"),this.kG.V("position","fixed").V("left","0px").V("top","0px").V("opacity","0").V("width","0px").V("height","0px"),this.kG.$a(),this.$q=new x.Zv,this.$q.G.V("width",
"1px").V("height","1px").V("padding","0px"),this.$q.N("focusin",()=>{this.GZ=!0}),this.$q.N("focusout",()=>{this.GZ=!1}),this.kG.append(this.$q.G),f.append(this.kG))}static R(){null==l.Be&&(l.Be=new l(q.K.Sb.Jb.G));return l.Be}get Ofa(){return this.GZ}v4(f){this.hba(f.key,f.type)}tq(f){var b=new h(h.SP);b.keyCode=f.keyCode;b.altKey=f.altKey;b.ctrlKey=f.ctrlKey;b.metaKey=f.metaKey;b.shiftKey=f.shiftKey;b.vq=f;this.Ha(b);this.hba(f.key,f.type)}hba(f,b){f=f.toLowerCase();const a=Date.now();a-this.JEa>
this.GEa&&(this.buffer.length=0);20<this.buffer.length&&this.buffer.splice(0,this.buffer.length-6);this.buffer.push({key:f,type:b});this.JEa=a;this.Ova()&&(this.buffer.length=0,this.Ya(h.k$))}Ova(){if(6>this.buffer.length)return!1;let f=0,b=0;for(const a of this.buffer)"shift"==a.key&&("keydown"==a.type?f++:"keyup"==a.type&&b++);return 3<=f&&3<=b}uHa(){this.kG.$a();this.$q.ik("");this.$q.G.blur();this.$q.rb("keyup",this.tfa);null!=this.TQ&&(this.TQ.focus({preventScroll:!0}),this.TQ=null)}jz(f){this.TQ=
document.activeElement;this.kG.show();this.$q.ik(f);this.$q.G.focus({preventScroll:!0});this.$q.selectAll();this.$q.G.focus({preventScroll:!0});this.$q.N("keyup",this.tfa)}static dispose(){l.Be=null}}e.TP=l;class h extends w.ia{constructor(f){super(f)}}h.SP="event_keydown";h.k$="event_tripple_shift";e.KeyboardEvent=h;(function(f){f[f.yNa=8]="BACKSPACE";f[f.qQa=9]="TAB";f[f.kOa=13]="ENTER";f[f.kQa=16]="SHIFT";f[f.aOa=17]="CTRL";f[f.tNa=18]="ALT";f[f.ZPa=19]="PAUSE";f[f.WNa=20]="CAPS_LOCK";f[f.mOa=
27]="ESCAPE";f[f.nQa=32]="SPACE";f[f.YPa=33]="PAGE_UP";f[f.XPa=34]="PAGE_DOWN";f[f.eB=35]="END";f[f.QOa=36]="HOME";f[f.CPa=37]="LEFT_ARROW";f[f.zQa=38]="UP_ARROW";f[f.cQa=39]="RIGHT_ARROW";f[f.iOa=40]="DOWN_ARROW";f[f.ROa=45]="INSERT";f[f.J7=46]="DELETE";f[f.TOa=48]="KEY_0";f[f.UOa=49]="KEY_1";f[f.VOa=50]="KEY_2";f[f.WOa=51]="KEY_3";f[f.XOa=52]="KEY_4";f[f.YOa=53]="KEY_5";f[f.ZOa=54]="KEY_6";f[f.$Oa=55]="KEY_7";f[f.aPa=56]="KEY_8";f[f.bPa=57]="KEY_9";f[f.cPa=65]="KEY_A";f[f.dPa=66]="KEY_B";f[f.ePa=
67]="KEY_C";f[f.fPa=68]="KEY_D";f[f.gPa=69]="KEY_E";f[f.hPa=70]="KEY_F";f[f.iPa=71]="KEY_G";f[f.jPa=72]="KEY_H";f[f.kPa=73]="KEY_I";f[f.lPa=74]="KEY_J";f[f.mPa=75]="KEY_K";f[f.nPa=76]="KEY_L";f[f.oPa=77]="KEY_M";f[f.pPa=78]="KEY_N";f[f.qPa=79]="KEY_O";f[f.rPa=80]="KEY_P";f[f.sPa=81]="KEY_Q";f[f.tPa=82]="KEY_R";f[f.uPa=83]="KEY_S";f[f.vPa=84]="KEY_T";f[f.wPa=85]="KEY_U";f[f.xPa=86]="KEY_V";f[f.yPa=87]="KEY_W";f[f.zPa=88]="KEY_X";f[f.APa=89]="KEY_Y";f[f.BPa=90]="KEY_Z";f[f.DPa=91]="LEFT_META";f[f.dQa=
92]="RIGHT_META";f[f.to=93]="SELECT";f[f.LPa=96]="NUMPAD_0";f[f.MPa=97]="NUMPAD_1";f[f.NPa=98]="NUMPAD_2";f[f.OPa=99]="NUMPAD_3";f[f.PPa=100]="NUMPAD_4";f[f.QPa=101]="NUMPAD_5";f[f.RPa=102]="NUMPAD_6";f[f.SPa=103]="NUMPAD_7";f[f.TPa=104]="NUMPAD_8";f[f.UPa=105]="NUMPAD_9";f[f.nQ=106]="MULTIPLY";f[f.VO=107]="ADD";f[f.EQ=109]="SUBTRACT";f[f.fOa=110]="DECIMAL";f[f.yJ=111]="DIVIDE";f[f.oOa=112]="F1";f[f.sOa=113]="F2";f[f.tOa=114]="F3";f[f.uOa=115]="F4";f[f.vOa=116]="F5";f[f.wOa=117]="F6";f[f.xOa=118]=
"F7";f[f.yOa=119]="F8";f[f.zOa=120]="F9";f[f.pOa=121]="F10";f[f.qOa=122]="F11";f[f.rOa=123]="F12";f[f.VPa=144]="NUM_LOCK";f[f.fQa=145]="SCROLL_LOCK";f[f.iQa=186]="SEMICOLON";f[f.lOa=187]="EQUALS";f[f.ZNa=188]="COMMA";f[f.eOa=189]="DASH";f[f.$Pa=190]="PERIOD";f[f.LOa=191]="FORWARD_SLASH";f[f.POa=192]="GRAVE_ACCENT";f[f.WPa=219]="OPEN_BRACKET";f[f.zNa=220]="BACK_SLASH";f[f.YNa=221]="CLOSE_BRACKET";f[f.mQa=222]="SINGLE_QUOTE"})(e.Boa||(e.Boa={}))})(u||(u={}));
(function(e){class l extends w.Mh{constructor(f){super();this.c_=()=>this.bLa();this.iR=()=>this.iR();this.tG="__FMResizeTriggersStorage__";this.Vl=f;this.nDa();this.dr=new h(this.Vl.element,this.tG);this.lMa(this.Vl.element)}nDa(){!q.v(this.Vl)&&q.v(this.Vl.element[this.tG])&&(this.Vl.element[this.tG]={})}refresh(){this.u5(this.dr)}u5(f){var b=f.y5;f=b.firstElementChild;b=b.lastElementChild;var a=f.firstElementChild;b.scrollLeft=b.scrollWidth;b.scrollTop=b.scrollHeight;a.style.width=f.offsetWidth+
1+"px";a.style.height=f.offsetHeight+"px";f.scrollLeft=f.scrollWidth;f.scrollTop=f.scrollHeight}Nva(f){return f.offsetWidth!=this.dr.w5.width||f.offsetHeight!=this.dr.w5.height}bLa(){if(this.Vl&&this.Vl.element&&!q.v(this.Vl.element[this.tG])){const f=this.Vl.element,b=this.dr.w5;this.u5(this.dr);this.dr.oW&&this.Vl.cancelAnimationFrame(this.dr.oW);this.dr.oW=this.Vl.requestAnimationFrame(()=>{q.v(b.width)&&(b.width=f.offsetWidth);q.v(b.height)&&(b.height=f.offsetHeight);this.Nva(f)&&(b.width=f.offsetWidth,
b.height=f.offsetHeight,this.xya())})}}xya(){this.Ya(w.ia.DY)}lMa(f){f.attachEvent?f.attachEvent("onresize",this.iR):q.v(f)||("static"==getComputedStyle(f).position&&(f.style.position="relative"),f.appendChild(this.dr.y5),this.u5(this.dr),f.addEventListener("scroll",this.c_,!0))}nMa(f){f.detachEvent?f.detachEvent("onresize",this.iR):f.removeEventListener("scroll",this.c_,!0)}hwa(){const f=this.Vl.element[this.tG],b=Object.keys(f);for(let a=0;a<b.length;a++)if(!q.v(f[b[a]]))return;this.Vl.element[this.tG]=
null}dispose(){this.Vl&&this.Vl.element&&(this.nMa(this.Vl.element),this.dr.dispose(),this.dr=null,this.hwa());this.iR=this.c_=this.Vl=null}}e.Uqa=l;class h{constructor(f,b){this.$Z="__resizeLast__";this.Maa="__resizeListeners__";this.RK="__resizeTriggers__";this.QR="__resizeRAF__";this.Rsa="__resizeTrigger";this.vE=f;this.i6=b;this.kT=this.LAa();q.v(this.vE)||this.lDa(this.i6)}get y5(){return this.UM()[this.RK]}get w5(){return this.UM()[this.$Z]}get oW(){return this.UM()[this.QR]}set oW(f){this.UM()[this.QR]=
f}LAa(){return this.Rsa+q.K.Sb.Jb.rf.id}lDa(f){this.vE[f][this.kT]={};f=this.vE[f][this.kT];f[this.$Z]={};f[this.Maa]=[];f[this.RK]=document.createElement("div");f[this.RK].className="fm-resize-triggers";f[this.RK].innerHTML=q.vt('<div class="fm-expand-trigger"><div></div></div><div class="fm-contract-trigger"></div>');f[this.QR]=null}UM(){return this.vE[this.i6][this.kT]}dispose(){if(!q.v(this.vE)){this.vE.removeChild(this.y5);const f=this.UM();f[this.$Z]=null;f[this.Maa]=null;f[this.QR]=null;f[this.RK]=
null;this.vE[this.i6][this.kT]=null}}}e.eQa=h})(u||(u={}));(function(e){class l{constructor(){this.FO=[]}add(h,...f){this.FO.push({lc:h,M_:f})}pop(){return this.FO.pop()}Ze(h){var f=()=>{if(0==this.FO.length)h();else{var b=this.FO.shift();e.requestIdleCallback(()=>b.lc(f,...b.M_),{timeout:100})}};f()}kb(){return 0===this.FO.length}}e.FB=l})(u||(u={}));
(function(e){function l(D,E,G){var F=0,K=[],I=0,J,L,Q,N=!1,W=[],O=[],V=!1;G=G||{};var ca=G.encoding||"UTF8";var fa=G.JQa||1;if(fa!==parseInt(fa,10)||1>fa)throw Error("numRounds must a integer >= 1");if(0===D.lastIndexOf("SHA-",0))if(J=function(R,P){return H(R,P,D)},L=function(R,P,ba,Z){if("SHA-224"===D||"SHA-256"===D){var X=(P+65>>>9<<4)+15;var ja=16}else throw Error("Unexpected error in SHA-2 implementation");for(;R.length<=X;)R.push(0);R[P>>>5]|=128<<24-P%32;P+=ba;R[X]=P&4294967295;R[X-1]=P/4294967296|
0;ba=R.length;for(P=0;P<ba;P+=ja)Z=H(R.slice(P,P+ja),Z,D);if("SHA-224"===D)R=[Z[0],Z[1],Z[2],Z[3],Z[4],Z[5],Z[6]];else if("SHA-256"===D)R=Z;else throw Error("Unexpected error in SHA-2 implementation");return R},Q=function(R){return R.slice()},"SHA-224"===D){var U=512;var aa=224}else if("SHA-256"===D)U=512,aa=256;else throw Error("Chosen SHA variant is not supported");else throw Error("Chosen SHA variant is not supported");var ka=g(E,ca);var ha=B(D);this.setHMACKey=function(R,P,ba){if(!0===N)throw Error("HMAC key already set");
if(!0===V)throw Error("Cannot set HMAC key after calling update");ca=(ba||{}).encoding||"UTF8";P=g(P,ca)(R);R=P.LG;P=P.value;var Z=U>>>3;ba=Z/4-1;if(Z<R/8){for(P=L(P,R,0,B(D));P.length<=ba;)P.push(0);P[ba]&=4294967040}else if(Z>R/8){for(;P.length<=ba;)P.push(0);P[ba]&=4294967040}for(R=0;R<=ba;R+=1)W[R]=P[R]^909522486,O[R]=P[R]^1549556828;ha=J(W,ha);F=U;N=!0};this.update=function(R){var P,ba=0,Z=U>>>5;var X=ka(R,K,I);R=X.LG;var ja=X.value;X=R>>>5;for(P=0;P<X;P+=Z)ba+U<=R&&(ha=J(ja.slice(P,P+Z),ha),
ba+=U);F+=ba;K=ja.slice(ba>>>5);I=R%U;V=!0};this.getHash=function(R,P){if(!0===N)throw Error("Cannot call getHash after setting HMAC key");var ba=d(P);switch(R){case "HEX":R=function(X){return f(X,aa,ba)};break;case "B64":R=function(X){return b(X,aa,ba)};break;case "BYTES":R=function(X){return a(X,aa)};break;case "ARRAYBUFFER":try{P=new ArrayBuffer(0)}catch(X){throw Error("ARRAYBUFFER not supported by this environment");}R=function(X){return c(X,aa)};break;default:throw Error("format must be HEX, B64, BYTES, or ARRAYBUFFER");
}var Z=L(K.slice(),I,F,Q(ha));for(P=1;P<fa;P+=1)Z=L(Z,aa,0,B(D));return R(Z)};this.getHMAC=function(R,P){if(!1===N)throw Error("Cannot call getHMAC without first setting HMAC key");var ba=d(P);switch(R){case "HEX":R=function(X){return f(X,aa,ba)};break;case "B64":R=function(X){return b(X,aa,ba)};break;case "BYTES":R=function(X){return a(X,aa)};break;case "ARRAYBUFFER":try{R=new ArrayBuffer(0)}catch(X){throw Error("ARRAYBUFFER not supported by this environment");}R=function(X){return c(X,aa)};break;
default:throw Error("outputFormat must be HEX, B64, BYTES, or ARRAYBUFFER");}P=L(K.slice(),I,F,Q(ha));var Z=J(O,B(D));Z=L(P,aa,U,Z);return R(Z)}}function h(){}function f(D,E,G){var F="";E/=8;var K;for(K=0;K<E;K+=1){var I=D[K>>>2]>>>8*(3+K%4*-1);F+="0123456789abcdef".charAt(I>>>4&15)+"0123456789abcdef".charAt(I&15)}return G.TV?F.toUpperCase():F}function b(D,E,G){var F="",K=E/8,I;for(I=0;I<K;I+=3){var J=I+1<K?D[I+1>>>2]:0;var L=I+2<K?D[I+2>>>2]:0;L=(D[I>>>2]>>>8*(3+I%4*-1)&255)<<16|(J>>>8*(3+(I+1)%
4*-1)&255)<<8|L>>>8*(3+(I+2)%4*-1)&255;for(J=0;4>J;J+=1)8*I+6*J<=E?F+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(L>>>6*(3-J)&63):F+=G.lS}return F}function a(D,E){var G="";E/=8;var F;for(F=0;F<E;F+=1){var K=D[F>>>2]>>>8*(3+F%4*-1)&255;G+=String.fromCharCode(K)}return G}function c(D,E){E/=8;var G,F=new ArrayBuffer(E);var K=new Uint8Array(F);for(G=0;G<E;G+=1)K[G]=D[G>>>2]>>>8*(3+G%4*-1)&255;return F}function d(D){var E={TV:!1,lS:"=",MQa:-1};D=D||{};E.TV=D.TV||!1;!0===D.hasOwnProperty("b64Pad")&&
(E.lS=D.lS);if("boolean"!==typeof E.TV)throw Error("Invalid outputUpper formatting option");if("string"!==typeof E.lS)throw Error("Invalid b64Pad formatting option");return E}function g(D,E){switch(E){case "UTF8":case "UTF16BE":case "UTF16LE":break;default:throw Error("encoding must be UTF8, UTF16BE, or UTF16LE");}switch(D){case "HEX":D=function(G,F,K){var I=G.length,J,L;if(0!==I%2)throw Error("String of HEX type must be in byte increments");F=F||[0];K=K||0;var Q=K>>>3;for(J=0;J<I;J+=2){var N=parseInt(G.substr(J,
2),16);if(isNaN(N))throw Error("String of HEX type contains invalid characters");var W=(J>>>1)+Q;for(L=W>>>2;F.length<=L;)F.push(0);F[L]|=N<<8*(3+W%4*-1)}return{value:F,LG:4*I+K}};break;case "TEXT":D=function(G,F,K){var I=0,J,L,Q;F=F||[0];K=K||0;var N=K>>>3;if("UTF8"===E){var W=3;for(J=0;J<G.length;J+=1){var O=G.charCodeAt(J);var V=[];128>O?V.push(O):2048>O?(V.push(192|O>>>6),V.push(128|O&63)):55296>O||57344<=O?V.push(224|O>>>12,128|O>>>6&63,128|O&63):(J+=1,O=65536+((O&1023)<<10|G.charCodeAt(J)&1023),
V.push(240|O>>>18,128|O>>>12&63,128|O>>>6&63,128|O&63));for(L=0;L<V.length;L+=1){var ca=I+N;for(Q=ca>>>2;F.length<=Q;)F.push(0);F[Q]|=V[L]<<8*(W+ca%4*-1);I+=1}}}else if("UTF16BE"===E||"UTF16LE"===E)for(W=2,V="UTF16LE"===E&&!0||"UTF16LE"!==E&&!1,J=0;J<G.length;J+=1){O=G.charCodeAt(J);!0===V&&(L=O&255,O=L<<8|O>>>8);ca=I+N;for(Q=ca>>>2;F.length<=Q;)F.push(0);F[Q]|=O<<8*(W+ca%4*-1);I+=2}return{value:F,LG:8*I+K}};break;case "B64":D=function(G,F,K){var I=0,J,L;if(-1===G.search(/^[a-zA-Z0-9=+\/]+$/))throw Error("Invalid character in base-64 string");
var Q=G.indexOf("=");G=G.replace(/=/g,"");if(-1!==Q&&Q<G.length)throw Error("Invalid '=' found in base-64 string");F=F||[0];K=K||0;var N=K>>>3;for(Q=0;Q<G.length;Q+=4){var W=G.substr(Q,4);for(J=L=0;J<W.length;J+=1){var O="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(W[J]);L|=O<<18-6*J}for(J=0;J<W.length-1;J+=1){var V=I+N;for(O=V>>>2;F.length<=O;)F.push(0);F[O]|=(L>>>16-8*J&255)<<8*(3+V%4*-1);I+=1}}return{value:F,LG:8*I+K}};break;case "BYTES":D=function(G,F,K){var I;F=
F||[0];K=K||0;var J=K>>>3;for(I=0;I<G.length;I+=1){var L=G.charCodeAt(I);var Q=I+J;var N=Q>>>2;F.length<=N&&F.push(0);F[N]|=L<<8*(3+Q%4*-1)}return{value:F,LG:8*G.length+K}};break;case "ARRAYBUFFER":try{D=new ArrayBuffer(0)}catch(G){throw Error("ARRAYBUFFER not supported by this environment");}D=function(G,F,K){var I;F=F||[0];K=K||0;var J=K>>>3;var L=new Uint8Array(G);for(I=0;I<G.byteLength;I+=1){var Q=I+J;var N=Q>>>2;F.length<=N&&F.push(0);F[N]|=L[I]<<8*(3+Q%4*-1)}return{value:F,LG:8*G.byteLength+
K}};break;default:throw Error("format must be HEX, TEXT, B64, BYTES, or ARRAYBUFFER");}return D}function k(D,E){return D>>>E|D<<32-E}function m(D,E,G){return D&E^~D&G}function n(D,E,G){return D&E^D&G^E&G}function p(D){return k(D,2)^k(D,13)^k(D,22)}function t(D){return k(D,6)^k(D,11)^k(D,25)}function r(D){return k(D,7)^k(D,18)^D>>>3}function v(D){return k(D,17)^k(D,19)^D>>>10}function y(D,E){var G=(D&65535)+(E&65535);return((D>>>16)+(E>>>16)+(G>>>16)&65535)<<16|G&65535}function A(D,E,G,F){var K=(D&
65535)+(E&65535)+(G&65535)+(F&65535);return((D>>>16)+(E>>>16)+(G>>>16)+(F>>>16)+(K>>>16)&65535)<<16|K&65535}function C(D,E,G,F,K){var I=(D&65535)+(E&65535)+(G&65535)+(F&65535)+(K&65535);return((D>>>16)+(E>>>16)+(G>>>16)+(F>>>16)+(K>>>16)+(I>>>16)&65535)<<16|I&65535}function B(D){var E,G;if(0===D.lastIndexOf("SHA-",0))switch(E=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428],G=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],
D){case "SHA-224":break;case "SHA-256":E=G;break;case "SHA-384":E=[new h,new h,new h,new h,new h,new h,new h,new h];break;case "SHA-512":E=[new h,new h,new h,new h,new h,new h,new h,new h];break;default:throw Error("Unknown SHA variant");}else throw Error("No SHA variants supported");return E}function H(D,E,G){var F,K,I,J=[];if("SHA-224"===G||"SHA-256"===G){var L=64;var Q=1;var N=Number;var W=y;var O=A;var V=C;var ca=r;var fa=v;var U=p;var aa=t;var ka=n;var ha=m;var R=Y}else throw Error("Unexpected error in SHA-2 implementation");
G=E[0];var P=E[1];var ba=E[2];var Z=E[3];var X=E[4];var ja=E[5];var sa=E[6];var va=E[7];for(I=0;I<L;I+=1)16>I?(K=I*Q,F=D.length<=K?0:D[K],K=D.length<=K+1?0:D[K+1],J[I]=new N(F,K)):J[I]=O(fa(J[I-2]),J[I-7],ca(J[I-15]),J[I-16]),F=V(va,aa(X),ha(X,ja,sa),R[I],J[I]),K=W(U(G),ka(G,P,ba)),va=sa,sa=ja,ja=X,X=W(Z,F),Z=ba,ba=P,P=G,G=W(F,K);E[0]=W(G,E[0]);E[1]=W(P,E[1]);E[2]=W(ba,E[2]);E[3]=W(Z,E[3]);E[4]=W(X,E[4]);E[5]=W(ja,E[5]);E[6]=W(sa,E[6]);E[7]=W(va,E[7]);return E}class M{static hash(D){var E=new l("SHA-256",
"TEXT");E.update(D);return E.getHash("HEX")}}e.$qa=M;var Y=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,
2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]})(q||(q={}));
(function(e){class l{constructor(h){this.oDa=h;this.aM=new e.ub;this.uJa(this.oDa)}get(h){return this.has(h)?this.aM.getItem(h)[0]:null}has(h){return this.aM.Bb(h)}uJa(h){0===h.indexOf("?")&&(h=h.slice(1));h=h.split("&");for(let f=0;f<h.length;f++){const b=h[f],a=b.indexOf("=");-1<a?this.iia(this.decode(b.slice(0,a)),this.decode(b.slice(a+1))):b&&this.iia(this.decode(b),"")}}iia(h,f){this.aM.Bb(h)?this.aM.getItem(h).push(f):this.aM.Ta(h,[f])}decode(h){return h.replace(/[ +]/g,"%20").replace(/(%[a-f0-9]{2})+/ig,
function(f){return decodeURIComponent(f)})}}e.Vna=l})(q||(q={}));(function(e){class l{static M1(){return getComputedStyle(document.documentElement).getPropertyValue("--fm-version").trim().replace(/"/g,"")}static Dva(h){return l.M1()===h}}e.FX=l})(u||(u={}));var x;
(function(e){(function(l){class h{get KDa(){return this.AR}constructor(){this.distance=15;this.AR=!1;this.bC=null;this.ZE=!0;q.Ik.addEventListener("mousemove",f=>this.Jx(f));q.Ik.addEventListener("touchmove",f=>this.T4(f),!1);q.Ik.addEventListener("mouseup",f=>this.Cr(f));q.Ik.addEventListener("touchend",f=>this.RV(f));q.Ik.addEventListener("touchcancel",f=>this.RV(f))}static R(){h.instance||(h.instance=new h);return h.instance}static dispose(){h.instance=null}sFa(f,b){f.aa("fm-draggable");var a=
c=>{b.nU&&!c.target.matches(b.nU)||this.Sd==f||(null!=this.Sd&&this.h6(b,c),this.Sd=f,this.Po=b,this.Oja=this.m2(c),this.Pja=this.n2(c),this.I6=!1)};f.N("mousedown",a);f.N("touchstart",a)}m2(f){return f instanceof MouseEvent?f.clientX:f.changedTouches[0].clientX}n2(f){return f instanceof MouseEvent?f.clientY:f.changedTouches[0].clientY}Jx(f){1==f.which&&this.Sd&&(this.Yg&&this.Sd.Sc("fm-dragging")?(this.FW(f.clientX,f.clientY),this.Po.Z3&&this.Po.Z3(this.Sd,f),f.preventDefault(),window.getSelection().removeAllRanges()):
q.v(this.Po.Hx)||this.Po.Hx(this.Sd,f)?(this.AR=!0,this.Yg=this.Po.Mo(this.Sd),this.Yg.V("opacity",0),q.K.Sb.Jb.G.X(this.Yg),this.FW(f.clientX,f.clientY,!0),this.Sd.aa("fm-dragging")):(this.Sd=null,q.v(this.Yg)||(this.Yg.Qg(!0),this.Yg=null)))}Ffa(f,b){return Math.abs(this.Oja-f)>this.distance||Math.abs(this.Pja-b)>this.distance?!0:!1}FW(f,b,a=!1){if(null!=this.Yg){const d=q.K.Sb.Jb.G.sg();this.Yg.V("margin-left");this.Yg.V("margin-top");if(a&&null!=this.Sd){var c=this.Sd.sg();a=Math.max(0,Math.min(this.Sd.height,
b-c.top));c=Math.max(0,Math.min(this.Sd.width,this.Yg.width,f-c.left));this.Yg.V("margin-top",-a+"px");this.Yg.V("margin-left",-c+"px")}this.Yg.position({top:b-d.top,left:f-d.left});this.Ffa(f,b)&&(this.Yg.V("opacity",1),this.Sd.aa("fm-dragging-move"),!this.I6&&q.Pg(this.Po.DV)&&this.Po.DV(this.Sd),this.I6=!0)}}T4(f){if(this.Sd){var b=f.touches[0];if(this.Yg&&this.Sd.Sc("fm-dragging")){this.FW(b.clientX,b.clientY);this.Po.Z3&&this.Po.Z3(this.Sd,f);f.preventDefault();b=f.changedTouches[0];var a=e.Ga.Yb(document.elementFromPoint(b.clientX,
b.clientY));if(a){var c=a.closest(".fm-droppable");c&&!0===c.Hu.scroll&&this.cfa(c,b.clientY);c&&c.Hu&&c.Hu.dn&&(c.Hu.dn(this.Sd,this.Yg,c,f),this.bC=c)}(null==a||null==c)&&null!=this.bC&&this.bC.Hu&&this.bC.Hu.om&&this.bC.Hu.om(this.Sd,this.Yg,this.bC,f)}else q.v(this.Po.Hx)||this.Po.Hx(this.Sd,f)?(this.AR=!0,this.Yg=this.Po.Mo(this.Sd),this.Yg.V("opacity",0),q.K.Sb.Jb.G.X(this.Yg),this.FW(b.clientX,b.clientY,!0),this.Sd.aa("fm-dragging")):(this.Sd=null,this.Yg.Qg(!0),this.Yg=null)}}Cr(f){this.h6(this.Po,
f)}RV(f){for(var b=f.changedTouches[0],a=b=e.Ga.Yb(document.elementFromPoint(b.clientX,b.clientY));b;){if(b.Sc("fm-droppable")){q.ka(b.Hu.$z)||(a=a.closest(b.Hu.$z));b.Hu.en(this.Sd,b,a,f);break}b=b.parent}this.h6(this.Po,f)}h6(f,b){this.AR=!1;null!=this.Yg&&(this.Yg.Qg(!0),this.Yg=null);if(null!=this.Sd){this.Sd.Hd("fm-dragging");this.Sd.Hd("fm-dragging-move");if(this.I6&&this.Sd&&this.Sd.element){var a=this.Sd,c=d=>{q.v(a)||(a.rb("click",c),a=null,d.stopImmediatePropagation())};this.Sd.N("click",
c)}f.rv&&this.Ffa(this.m2(b),this.n2(b))&&f.rv(this.Sd,b);this.Sd=null}this.bC=null;this.Pja=this.Oja=NaN;this.ZE=!0;clearTimeout(this.Jia)}tFa(f,b,a){f.Sc("fm-droppable")||(f.aa("fm-droppable"),f.N("mouseenter",c=>{null!=this.Sd&&1==c.which&&a.b4&&a.b4(this.Sd,this.Yg,b,c)}),f.N("mouseleave",c=>{this.ZE=!0;null!=this.Sd&&1==c.which&&a.om&&a.om(this.Sd,this.Yg,b,c)}),f.N("mouseover",c=>{this.ZE=!0;null!=this.Sd&&1==c.which&&(!0===a.scroll&&this.cfa(f,c.clientY),a.dn&&a.dn(this.Sd,this.Yg,b,c))}),
f.N("mouseup",c=>{this.ZE=!0;if(null!=this.Sd&&1==c.which){var d=e.Ga.Yb(c.target);q.ka(a.$z)||(d=d.closest(a.$z));a.en(this.Sd,f,d,c)}}))}cfa(f,b){const a=f.element.getBoundingClientRect(),c=Math.max(0,a.bottom-b);b=Math.max(0,b-a.top);30>c?(this.ZE=!1,this.C5(f,Math.min(30/c,4))):30>b&&(this.ZE=!1,this.C5(f,Math.min(-30/b,4)))}C5(f,b){clearTimeout(this.Jia);q.v(f)||(f.Sx(f.element.scrollTop+b),0==this.ZE&&(this.Jia=setTimeout(()=>this.C5(f,b),20)))}}l.uP=h})(e.eM||(e.eM={}))})(x||(x={}));
(function(e){class l extends w.Mh{constructor(h="div",f=""){super();this.G=new e.Ga(h);this.G.aa("fm-ui "+f);u.Nd().im&&this.G.aa("fm-ui-mobile");this.validate()}validate(){this.N2={}}je(h="all"){this.N2[h]=!0;this.nb()}dv(...h){if(this.N2.all)return!0;for(var f=0;f<h.length;f++)if(this.N2[h[f]])return!0;return!1}nb(){this.validate()}Sr(){this.je()}show(){this.G.show()}$a(){this.G.$a()}U1(){return this.G.attr("id")}fja(h){this.G.attr("id",h)}nja(){this.fja("fm-"+Math.random().toString(36).substr(2,
9))}BD(){return this.name}af(h=0){this.G.af(h)}Wk(h){this.G.Wk(h)}get an(){return this.G.an}get t2(){return this.G.t2}html(h){if(void 0===h)return this.G.html();this.G.html(h);return this}ni(h){this.G.attr("title",h)}Bq(h){this.fva(!h);this.G.ab("fm-ui-disabled",!h)}KM(){return!this.G.Sc("fm-ui-disabled")}aa(h=""){this.G.aa(h)}Hd(h){this.G.Hd(h)}ab(h,f){this.G.ab(h,f)}Sc(h){return this.G.Sc(h)}get padding(){return this.G.padding}set padding(h){}cg(h){return this.G.cg(h)}Yk(h){this.cg()!==h&&(this.G.Yk(h),
this.je("size"))}zd(h=!1){return this.G.zd(h)}Mr(h){this.zd()!==h&&(this.G.Mr(h),this.je("size"))}isVisible(h){void 0!==h&&(h?this.show():this.$a());return this.G.visible}position(){return this.G.position()}X(h,f=!1){f?this.G.prepend(h.G):this.G.append(h.G)}Qg(h=!1){h?this.G.remove():this.G.detach()}m2(){return this.G.left}n2(){return this.G.top}N(h,f){this.G.N(h,f)}rb(h,f){this.G.rb(h,f)}Ha(h){this.G.Ha(h)}Ya(h,f,b){this.G.Ya(h,f,b)}wC(h=!1){h=h?this.cg(!0):q.K.Sb.Wx;this.G.ab("fm-layout-tablet",
768>h);this.G.ab("fm-layout-mobile",580>h);this.G.ab("fm-layout-mobile-small",460>h)}focus(h=null){this.G.focus(h)}blur(){this.G.blur()}Gg(h,f){return this.G.Gg(h,f)}zc(h){return this.G.Gg("label",h)}Eo(){this.G.Gg("hidden","true")}fva(h){this.G.Gg("disabled",void 0===h?void 0:`${h}`)}Dba(h){this.G.Gg("selected",void 0===h?void 0:`${h}`)}eva(h){this.G.Gg("checked",void 0===h?void 0:`${h}`)}Cba(h){this.G.Gg("expanded",void 0===h?void 0:`${h}`)}gva(h){this.G.Gg("haspopup ",void 0===h?void 0:`${h}`)}}
e.Pa=l})(x||(x={}));
(function(e){class l extends w.Mh{constructor(h="div",f="",b=!0){super();this.display="block";this.frames=[];this.Vq={};this.element="string"==typeof h?document.createElement(h):h;b&&this.aa("fm-ui-element");this.aa(f)}set element(h){(this.eG=h)&&(this.eG.uielement=this)}get element(){return this.eG}get id(){return this.element.id}set id(h){this.element.id=h}get parent(){return l.Yb(this.element.parentElement)}get nodeName(){return this.eG.nodeName.toLowerCase()}X(h){this.element.appendChild(h.element)}children(){for(var h=this.element.firstElementChild,
f=[];h;)f.push(l.Yb(h)),h=h.nextElementSibling;return f}contains(h){return this.element.contains(h.element)}KS(h){let f=this.o0(h.target);!f&&h.path&&(f=this.o0(h.path[0]));!f&&h.composedPath&&(h=h.composedPath())&&(f=this.o0(h[0]));return f}o0(h){if(null==h)return!1;for(;h!=this.element&&(h=h.parentElement,null!=h););return null!=h}append(h){h&&this.X(h);return this}prepend(h){this.element.insertBefore(h.element,this.element.firstChild);return this}before(h){this.element.parentNode&&this.element.parentNode.insertBefore(h.element,
this.element);return this}after(h){this.element.parentNode&&(this.element.nextElementSibling?this.element.parentNode.insertBefore(h.element,this.element.nextElementSibling):this.element.parentNode.appendChild(h.element));return this}uC(h){this.element.appendChild(h.G.element)}Qg(h=!0){h?this.remove():this.detach()}remove(){null!=this.element&&(this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.dispose())}detach(){if(null!=this.element&&this.element.parentNode){var h=this.element.cloneNode(!0);
this.element.parentNode.removeChild(this.element);this.element=h}}Kx(){for(;this.element&&this.element.firstChild;){var h=l.Yb(this.element.firstChild);h&&h.dispose&&h.dispose();this.element.removeChild(this.element.firstChild)}}clone(){return l.Yb(this.element.cloneNode(!0))}static Yb(h){return h&&h.nodeType==Node.ELEMENT_NODE?q.v(h.uielement)?new l(h,"",!1):h.uielement:null}get(h){var f=this.children();return 0<f.length?f[h]:null}find(h,f){if(void 0===f||0==f)return l.Yb(this.element.querySelector(h));
h=this.element.querySelectorAll(h);f=[];for(var b=0;b<h.length;b++)f.push(l.Yb(h[b]));return f}closest(h){if(!this.element)return null;for(var f=this.element;null!=f;){if(f.matches){if(f.matches(h))return f==this.element?this:l.Yb(f)}else if(f.msMatchesSelector&&f.msMatchesSelector(h))return f==this.element?this:l.Yb(f);f=f.parentElement}return null}aa(h){if(!this.element)return this;h=h.trim();for(var f=h.split(" "),b=0;b<f.length;b++)0<f[b].length&&(u.bT().fj?(h=this.element.getAttribute("class"),
q.v(h)?this.element.setAttribute("class",f[b]):-1==h.split(" ").indexOf(f[b])&&this.element.setAttribute("class",h+" "+f[b])):0==this.element.classList.contains(f[b])&&this.element.classList.add(f[b]));return this}Hd(h){if(this.element&&(h=h.trim(),0<h.length))if(u.bT().fj){var f=this.element.getAttribute("class");q.v(f)||(f=f.split(" "),h=f.indexOf(h),-1<h&&(f.splice(h,1),this.element.setAttribute("class",f.join(" "))))}else this.element.classList.contains(h)&&this.element.classList.remove(h)}ab(h,
f){f?this.aa(h):this.Hd(h)}Sc(h){return this.element.classList.contains(h)}cm(){this.aa("fm-noselect")}iza(){this.aa("fm-selectable")}cg(h=!1){if(!this.element)return 0;var f=this.iz;return this.element.clientWidth-(h?0:(parseFloat(f.paddingLeft)||0)+(parseFloat(f.paddingRight)||0))}Yk(h){"number"===typeof h?this.element.style.width=h+"px":"string"===typeof h&&(this.element.style.width=h);return this}get width(){return this.cg()}set width(h){this.Yk(h)}get padding(){var h=this.iz;return{left:parseFloat(h.paddingLeft)||
0,right:parseFloat(h.paddingRight)||0,top:parseFloat(h.paddingTop)||0,bottom:parseFloat(h.paddingBottom)||0}}set padding(h){}get borderWidth(){var h=this.iz;return{left:parseFloat(h.borderLeftWidth||h.borderWidth)||0,right:parseFloat(h.borderRightWidth||h.borderWidth)||0,top:parseFloat(h.borderTopWidth||h.borderWidth)||0,bottom:parseFloat(h.borderBottomWidth||h.borderWidth)||0}}zd(h=!1){if(!this.element)return 0;var f=this.iz;h=h?0:(parseFloat(f.paddingTop)||0)+(parseFloat(f.paddingBottom)||0);return 0>
this.element.clientHeight-h?0:this.element.clientHeight-h}Mr(h){"number"===typeof h?this.element.style.height=h+"px":"string"===typeof h&&(this.element.style.height=h)}get height(){return this.zd()}set height(h){this.Mr(h)}get left(){return this.element.getBoundingClientRect().left}set left(h){this.element.style.left=h+"px"}get top(){return this.element.getBoundingClientRect().top}set top(h){this.element.style.top=h+"px"}get right(){return this.element.getBoundingClientRect().right}set right(h){this.element.style.right=
h+"px"}get bottom(){return this.element.getBoundingClientRect().bottom}set bottom(h){this.element.style.bottom=h+"px"}html(h){if(void 0===h)return this.element.innerHTML;this.element.innerHTML=q.vt(h);return this}empty(){this.html("")}clear(){this.empty()}text(h){if(void 0===h)return this.element.textContent;"input"==this.element.tagName.toLowerCase()?this.element.value=h:this.element.textContent=h;return this}focus(h=null){this.element.focus(h);return this}blur(){this.element.blur();return this}show(){this.element.style.display=
this.display}$a(){this.element.style.display="none"}get x(){return this.element.offsetLeft}get y(){return this.element.offsetTop}offset(h){if(void 0===h)return this.sg();this.V("left",h.left+"px");this.V("top",h.top+"px")}getBoundingClientRect(){return this.element.getBoundingClientRect()}position(h){if(void 0===h)return{top:this.y,left:this.x};this.offset(h)}attr(h,f){if(void 0===f)return this.element.getAttribute(h);try{this.element.setAttribute(h,f)}catch(b){this.element&&this.element.attributes&&
(this.element.attributes[h]=f)}return this}o5(h){this.element.removeAttribute(h)}V(h,f){if(void 0===f)return this.iz[l.aka(h)];this.element.style[l.aka(h)]=f;return this}Gg(h,f){if(void 0===f)return this.attr(`aria-${h}`);this.attr(`aria-${h}`,f)}static aka(h){var f=h.split("-");if(1<f.length){for(h=1;h<f.length;h++)f[h]=f[h].charAt(0).toUpperCase()+f[h].substr(1);return f.join("")}return h}LA(h){if("input"==this.element.tagName.toLowerCase()||"textarea"==this.element.tagName.toLowerCase()){if(void 0===
h)return this.element.value;this.element.value=h}return this.element.textContent}get iz(){q.v(this.hZ)&&(this.hZ=window.getComputedStyle(this.element));return this.hZ}set iz(h){this.hZ=h}requestAnimationFrame(h){var f=0;this.iz=null;window.requestAnimationFrame?f=window.requestAnimationFrame(h):window.msRequestAnimationFrame?f=window.msRequestAnimationFrame(h):window.mozRequestAnimationFrame?f=window.mozRequestAnimationFrame(h):window.webkitRequestAnimationFrame?f=window.webkitRequestAnimationFrame(h):
h.call(null);this.frames.push(f);return f}cancelAnimationFrame(h){this.iz=null;this.frames.splice(this.frames.indexOf(h),1);0!=h&&(null!=window.cancelAnimationFrame?window.cancelAnimationFrame(h):null!=window.msCancelRequestAnimationFrame?window.msCancelRequestAnimationFrame(h):null!=window.mozCancelAnimationFrame?window.mozCancelAnimationFrame(h):null!=window.webkitCancelAnimationFrame&&window.webkitCancelAnimationFrame(h))}set visible(h){h?this.show():this.$a()}get visible(){return this.element&&
"none"!=this.V("display")}sg(h=null){if(null==h)return h=this.element.getBoundingClientRect(),{top:h.top,left:h.left};for(var f=0,b=0,a=this.element;a&&a!=h&&!isNaN(a.offsetLeft)&&!isNaN(a.offsetTop);)f+=a.offsetLeft-a.scrollLeft,b+=a.offsetTop-a.scrollTop,a=a.offsetParent;return{top:b,left:f}}Sx(h){this.element.scrollTop=h}LLa(){this.element.scrollLeft=0}N(h,f,b){"undefined"!==typeof this.element["on"+h]||w.ia.Zfa(h)?(q.v(this.Vq[h])&&(this.Vq[h]=[]),this.Vq[h][f.toString()]=a=>{f(a)},this.element.addEventListener(h,
this.Vq[h][f.toString()],b)):super.N(h,f,b)}rb(h,f){"undefined"!==typeof this.element["on"+h]||w.ia.Zfa(h)?this.Vq[h]&&this.element.removeEventListener(h,this.Vq[h][f.toString()],void 0):super.rb(h,f)}Ha(h){super.Ha(h)}Vd(h){for(var f in this.Vq)if(void 0===h||h==f)for(var b in this.Vq[f])if(this.Vq[f].hasOwnProperty(b))try{this.element.removeEventListener(f,this.Vq[f][b],!0),this.element.removeEventListener(f,this.Vq[f][b],!1)}catch(a){console.error(a)}this.Vq={};super.Vd(f)}dispose(){this.Vd();
this.Kx();this.eG&&(this.eG=this.eG.uielement=null);for(var h=0;h<this.frames.length;h++)this.cancelAnimationFrame(this.frames[h]);this.frames.length=0;this.Laa&&this.Laa.dispose()}refresh(){this.html(this.html())}draggable(h){e.eM.uP.R().sFa(this,h)}Ls(h,f){this.Psa=h;e.eM.uP.R().tFa(this,f?f:this,h)}get Hu(){return this.Psa}index(){for(var h=0,f=this.element;f=f.previousElementSibling;)h++;return h}ij(h){this.Laa=new e.ij.Tqa(this,h)}af(h=0){this.attr("tabindex",h)}Wk(h){this.attr("role",h)}get an(){return document.activeElement==
this.element}get t2(){let h=document.activeElement;for(;null!=h;){if(h==this.element)return!0;h=h.parentElement}return!1}}e.Ga=l})(x||(x={}));
(function(e){class l extends e.Pa{constructor(h="",f="a"){super(f,"fm-ui-btn");this.O3=0;this.xKa=50;this.aa(h);this.G.N("click",b=>this.Pk(b));this.G.N("mousedown",()=>this.Ix());this.G.N("mouseup",()=>this.Cr());this.G.N("mouseout",()=>this.ZHa());this.G.N("keydown",b=>this.tq(b));this.G.display="inline-block";this.Wk("button");this.af(0)}Pk(h){this.KM()&&this.Ya(l.uf,this,h);h instanceof MouseEvent&&h.stopImmediatePropagation()}tq(h){if(13==h.keyCode||32==h.keyCode)this.Pk(h),h.preventDefault()}Ix(){this.G.ab("fm-ui-pressed",
!0);this.O3=q.Uda(()=>this.vya(),this.xKa)}vya(){this.Ha(new w.ia(l.Qpa,this))}Cr(){this.G.ab("fm-ui-pressed",!1);q.t1(this.O3)}ZHa(){this.G.ab("fm-ui-pressed",!1);q.t1(this.O3)}I(){return this.label}fb(h){this.label!=h&&(this.label=h,this.G.text(this.label))}}l.Qpa="buttonmousedown";l.uf="buttonclick";e.Qd=l})(x||(x={}));(function(e){class l extends e.Qd{constructor(h=""){super(h,"button");this.G.attr("type","button")}}e.Vg=l})(x||(x={}));
(function(e){class l extends e.Pa{constructor(h=""){super("span","fm-ui fm-ui-label");this.G.display="inline-block";this.fb(h)}I(){return this.label}fb(h,f=!1){this.label!=h&&(this.label=h,f?this.G.html(this.label):this.G.text(this.label))}LW(h){h?this.G.iza():this.G.cm()}}e.Tc=l})(x||(x={}));
(function(e){class l extends e.Pa{constructor(){super("textarea","fm-ui-text-area");this.G.N("keypress",h=>this.u4(h));this.G.N("keyup",h=>this.v4(h));this.G.N("paste",()=>this.r4());this.G.N("blur",()=>this.PCa())}v4(){this.cM()}r4(){this.cM()}PCa(){this.Ya(l.PX)}cM(){this.Ha(new w.ia(e.Sj.oy,this))}bj(){return this.G.LA()}ik(h){this.bj()!=h&&(this.G.element.value=h,this.cM())}clear(){this.ik("")}Tz(h){var f=this.G.element.selectionStart,b=this.G.element.selectionEnd,a=this.bj();this.ik(a.substr(0,
f)+h+a.substr(f));this.Jf(f+h.length,b+h.length)}Jf(h,f=-1){this.G.element.focus();this.G.element.setSelectionRange(h,0>f?h:f)}selectAll(){this.Jf(0,this.bj().length)}u4(h){h.ctrlKey?(this.Ya(l.OX),h.preventDefault()):13==h.keyCode&&(this.Ya(l.fB),h.preventDefault())}}l.PX="focus_off";l.fB="ntr";l.OX="ntl";e.Zv=l})(x||(x={}));
(function(e){class l extends e.Pa{constructor(){super("input","fm-ui-text-input");this.prompt=this.text="";this.R_=0;this.S_=!0;this.G.display="inline-block";this.G.attr("type","text");this.G.attr("autocomplete","off");this.G.attr("data-placeholder","");this.G.N("change",()=>this.RIa());this.G.N("focusin",()=>this.h4());this.G.N("focusout",()=>this.fHa());this.G.N("input",()=>this.SIa());this.G.N("keypress",h=>this.u4(h));this.G.N("paste",()=>this.r4())}static YAa(h){return null==h.which?32>h.keyCode?
null:String.fromCharCode(h.keyCode):0!=h.which&&0!=h.charCode?32>h.which?null:String.fromCharCode(h.which):null}u4(h){13==h.keyCode&&this.Ya(l.fB);if(!(q.v(this.xia)||h.ctrlKey||h.altKey||h.metaKey)){var f=l.YAa(h);null!=f&&!1===this.xia.test(f)&&h.preventDefault()}}s2(){this.G.LA()!==this.text&&(this.text=this.G.LA(),this.cM())}RIa(){this.s2()}SIa(){this.s2()}r4(){this.s2()}cM(){0<this.R_?this.S_&&(this.S_=!1,q.ve(()=>this.nZ(),this.R_)):this.nZ()}nZ(){this.S_=!0;this.Ha(new w.ia(l.oy,this,this.text))}h4(){0==
this.text.length&&(this.G.text(""),this.Iu(!1))}fHa(){this.Iu(0==this.text.length)}bj(){return this.text=this.G.LA()==this.prompt?this.text:this.G.LA()}ik(h){this.text!=h&&(this.text=h,this.G.text(this.text),this.Iu(0==this.text.length))}clear(h=!0){this.ik("");h&&this.nZ();this.Ya(l.W7)}PE(h){h!=this.prompt&&(this.prompt=h,this.G.attr("data-placeholder",this.prompt),this.Iu(0==this.text.length))}Iu(h){this.G.text(h?this.prompt:this.text);this.G.ab("fm-ui-prompt",h)}QE(h){this.xia=h}yW(h){this.R_=
h}PLa(){this.G.attr("type","number")}}l.oy="_";l.fB="ntr";l.W7="clr";e.Sj=l})(x||(x={}));(function(e){class l extends e.Sj{constructor(){super();this.QE(l.Lqa);this.PLa()}La(){return parseFloat(this.bj())}oi(h){this.ik(h.toString())}}l.Lqa=/^\d+$/;l.TF=/[-\.\d]/;e.Uq=l})(x||(x={}));
(function(e){(function(h){h[h.gQa=1]="SELECTED";h[h.yQa=0]="UNSELECTED";h[h.jQa=-1]="SEMI_SELECTED"})(e.Tra||(e.Tra={}));class l extends e.Qd{constructor(){super();this.G.display="inline-block";this.G.Sc("fm-ui-btn")&&this.G.Hd("fm-ui-btn");this.G.aa("fm-ui-toggle-btn");this.selected=0}Pk(h){this.KM()&&(this.toggle(),this.Ya(w.ia.Xd,this,h));h instanceof MouseEvent&&h.stopImmediatePropagation()}toggle(){this.Jf(1==this.selected?0:1)}Jf(h){!0===h&&(h=1);!1===h&&(h=0);this.selected==h||1<h||-1>h||(this.selected=
h,this.G.ab("fm-selected",1==this.selected),1==this.selected?this.Gg("checked","true"):-1==this.selected?this.Gg("checked","mixed"):this.Gg("checked","false"))}getSelection(){return this.selected}}e.VY=l})(x||(x={}));
(function(e){class l extends e.Vg{constructor(){super();this.Wk("switch");this.G.display="inline-block";this.G.Sc("fm-ui-btn")&&this.G.Hd("fm-ui-btn");this.G.aa("fm-ui-toggle-btn");this.Jf(0)}Pk(h){this.KM()&&(this.toggle(),this.Ya(w.ia.Xd,this,h))}toggle(){this.Jf(1==this.selected?0:1)}Jf(h){!0===h&&(h=1);!1===h&&(h=0);this.selected==h||1<h||-1>h||(this.selected=h,this.G.ab("fm-selected",1==this.selected),this.eva(1==this.selected))}getSelection(){return this.selected}}e.NQ=l})(x||(x={}));
(function(e){class l extends e.VY{constructor(){super();this.G.display="inline-block";this.G.Sc("fm-ui-toggle-btn")&&this.G.Hd("fm-ui-toggle-btn");this.G.aa("fm-ui-checkbox");this.dI=new e.Tc("Label");this.G.append(this.dI.G);this.Wk("checkbox")}toggle(){super.toggle();this.G.ab("fm-ui-semi-selected",-1==this.getSelection())}fb(h,f=!1){null!=this.dI&&this.dI.fb(h,f)}I(){return null!=this.dI?this.dI.I():""}Jf(h){!0===h&&(h=1);!1===h&&(h=0);this.getSelection()==h||1<h||-1>h||(super.Jf(h),this.G.ab("fm-ui-semi-selected",
-1==this.getSelection()))}get checked(){return 1==this.getSelection()}set checked(h){this.Jf(h?1:0)}ni(h){this.dI.ni(h)}}e.pK=l})(x||(x={}));
(function(e){class l extends e.Pa{constructor(){super("div","fm-ui-divider");this.cha=h=>this.Jx(h);this.NFa=h=>this.Ix(h);this.OFa=h=>this.Cr(h);this.direction=l.PJ;this.N("mousedown",this.NFa);q.Ik.addEventListener("mouseup",this.OFa);this.G.cm()}Ix(h){this.au=this.direction==l.PJ?this.zd():this.cg();this.LB=this.G.parent.sg();q.Ik.addEventListener("mousemove",this.cha);h.preventDefault();h.stopImmediatePropagation()}Jx(h){if(this.direction==l.PJ){var f=h.clientY-this.LB.top;if(this.cG&&(f<this.cG[1]||
f>this.cG[3]))return;this.G.V("top",f-this.au/2+"px");this.Ya(l.QX,this,{top:f})}this.direction==l.XY&&(h=h.clientX-this.LB.left,this.cG&&(h<this.cG[0]||h>this.cG[2])||(this.G.V("left",h-this.au/2+"px"),this.Ya(l.QX,this,{left:h})))}Cr(){q.Ik.removeEventListener("mousemove",this.cha)}get direction(){return this.mZ}set direction(h){this.mZ=h;this.G.ab("fm-ui-horizontal",this.mZ==l.PJ);this.G.ab("fm-ui-vertical",this.mZ==l.XY);this.G.V("position","absolute")}set gxa(h){this.cG=h}}l.PJ=0;l.XY=1;l.QX=
"divider_moved_event";e.MQ=l})(x||(x={}));(function(e){class l extends e.Pa{constructor(){super("div","fm-ui-modal-overlay")}KLa(h){this.G.ab("fm-ui-transparent",!1);this.G.ab("fm-ui-opaque",h)}}e.Sra=l})(x||(x={}));
(function(e){(function(l){class h extends e.Pa{constructor(f="fm-ui-container"){super("div",f)}removeChild(f){this.contains(f)&&f.G.detach()}contains(f){return q.v(f)?!1:this.G.contains(f.G)}cg(){return this.G.width}zd(){return this.G.height}Kx(){for(var f=this.G.children(),b=f.length-1;0<=b;b--)f[b].Qg()}}l.sk=h})(e.ce||(e.ce={}))})(x||(x={}));(function(e){(function(l){class h extends l.sk{constructor(){super("fm-ui-border-container")}}l.l$=h})(e.ce||(e.ce={}))})(x||(x={}));
(function(e){(function(l){class h extends l.sk{constructor(){super();this.G.aa("fm-ui-window");this.$a()}setPosition(f,b){this.G.offset({left:Math.floor(f),top:Math.floor(b)});this.G.V("position","absolute")}}l.Vra=h})(e.ce||(e.ce={}))})(x||(x={}));(function(e){(function(l){class h extends l.sk{constructor(){super("fm-ui-hgroup")}}l.tQa=h})(e.ce||(e.ce={}))})(x||(x={}));(function(e){(function(l){class h extends l.sk{constructor(){super("fm-ui-vgroup")}}l.xQa=h})(e.ce||(e.ce={}))})(x||(x={}));
(function(e){(function(l){class h extends l.sk{constructor(){super("fm-ui-panel")}}l.uQa=h})(e.ce||(e.ce={}))})(x||(x={}));
(function(e){(function(l){class h extends l.Vra{constructor(f){super();this.jw=!1;this.Baa=()=>this.F4();this.via=b=>this.U4(b);this.AG=this.g3=!1;this.QZ=f;this.G.aa("fm-ui-popup");this.Wk("dialog");this.$a();this.br=new e.Sra;this.br.Eo();this.br.N("click",this.Baa);this.br.$a();this.QZ&&this.QZ.X(this.br.G);this.Cta=new e.EG.F8;this.zsa=new e.EG.F8}get hv(){return this.jw}U4(f){f.target===window&&(this.G.requestAnimationFrame(()=>this.Pp()),this.wC())}F4(){this.close()}open(){q.vM.addEventListener("resize",
this.via);this.br.G.ab("fm-ui-opaque",this.g3);this.show();this.Pp();this.Ya(w.ia.OPENED);this.wC();this.jw=!0;this.lw=document.activeElement;this.G.prepend(this.Cta);this.G.append(this.zsa)}show(){super.show();this.br&&this.br.show()}$a(){super.$a();this.br&&this.br.$a()}get WI(){return this.AG}set WI(f){this.AG=f;this.G.V("opacity",f?0:null);this.br&&this.br.G.V("opacity",f?0:null)}close(){q.vM.removeEventListener("resize",this.via);this.$a();this.Ya(w.ia.CLOSED);this.jw=!1;this.lw&&(this.lw.focus({preventScroll:!0}),
this.lw=null)}Pp(){var f=this.QZ,b=q.K.Sb.Jb.G.borderWidth,a=b?Math.round(b.left):0;b=b?Math.round(b.top):0;if(f){var c=Math.max(a,(f.cg(!0)-this.G.cg(!0))/2);f=Math.max(b,(f.zd(!0)-this.G.zd(!0))/2);this.setPosition(c==a?-1*c:c,f==b?-1*f:f)}}get tE(){return this.br}}l.Fy=h})(e.ce||(e.ce={}))})(x||(x={}));(function(e){(function(l){class h extends l.sk{constructor(){super("fm-ui-toolbar")}}l.vQa=h})(e.ce||(e.ce={}))})(x||(x={}));
(function(e){(function(l){class h extends l.sk{constructor(){super("fm-ui-toolbar-mobile");this.D2=new e.Tc;this.D2.aa("fm-ui-header-display");this.X(this.D2)}DLa(f){this.cj!=f&&(this.cj=f,this.D2.fb(f))}}l.wQa=h})(e.ce||(e.ce={}))})(x||(x={}));
(function(e){(function(l){class h{constructor(){this.items=[];this.pL=[]}HW(f){this.pL=f}X1(f,b){if(0>f||b>this.pL.length+1)return[];for(this.items.length=0;f<b;f++)this.items.push(this.pL[f]);return this.items}getItem(f){return this.pL[f]}IH(){return this.pL.length}}l.pQa=h})(e.cya||(e.cya={}))})(x||(x={}));
(function(e){(function(l){class h extends e.Pa{constructor(){super("ul","fm-ui-list");this.qW=NaN;this.H0=u.Nd().im?h.uma:h.tma;this.HI=[];this.ME=[];this.yi=0;this.yl=!1;this.useCache=!0;this.ZF=!1;this.J=[];this.qga=[];this.Bh=[];this.pf="label";this.kv=this.lya;this.YR=this.G;this.Wk("list");this.Hl=null;this.selectedIndex=-1;this.K5()}K5(){this.G.N("click",b=>this.KV(b));this.G.N("mousedown",b=>this.LV(b));this.G.N("keydown",b=>this.nE(b))}$d(){isNaN(this.qW)&&0<this.Bh.length&&(this.qW=this.Bh[0].zd(!0)+
parseInt(this.Bh[0].G.V("border-top-width"))+parseInt(this.Bh[0].G.V("border-bottom-width")));return isNaN(this.qW)?this.H0:this.qW}yLa(){this.H0=37}ix(){return 0}Kz(){return this.J.length}nb(){this.dv("data")&&this.Nya();this.validate()}Nya(){this.nKa();for(var b,a=this.Bc(),c=0;c<a.length;c++)b=this.getItem(a[c],c),c==this.yi&&(this.YR.Gg("activedescendant",b.U1()),b.G.aa("fm-ui-active")),this.Ta(b);this.ab("fm-ui-empty",0==a.length);this.Uza&&this.G.prepend(this.Uza);this.Tza&&this.G.append(this.Tza);
this.G.requestAnimationFrame(()=>{0<this.Bh.length&&(this.H0=this.Bh[0].zd())})}getItem(b,a){if(this.useCache&&0<this.qga.length){var c=this.qga.pop();c.setData(b);c.hn(a)}else c=this.kv(b,a),this.pf&&c.xg(this.pf),this.wx&&c.IW(this.wx),this.Np&&c.mO(this.Np);c.nja();return c}Ta(b){this.Bh.push(b);this.X(b)}nKa(){for(;0<this.Bh.length;)this.Iaa(this.Bh.pop())}removeItem(b){for(var a=0;a<this.Bh.length;a++)if(this.Bh[a]===b){this.Bh.splice(a,1);break}this.Iaa(b)}Iaa(b){null!=this.G.find(b.G.element.nodeName)&&
b.G.remove()}nE(b){if(32==b.keyCode||13==b.keyCode)this.MV(this.yi,b),b.preventDefault();40==b.keyCode&&(this.Ni(this.yi+1),b.preventDefault());38==b.keyCode&&(this.Ni(this.yi-1),b.preventDefault())}Ni(b){this.yi=Math.max(0,Math.min(this.Bh.length-1,b));for(var a of this.Bh)a.Hd("fm-ui-active");this.YR.Gg("activedescendant","");if(b=this.Bh[this.yi]){this.YR.Gg("activedescendant",b.U1());b.aa("fm-ui-active");a=this.G.parent.getBoundingClientRect();const c=b.G.getBoundingClientRect().top+this.G.parent.element.scrollTop,
d=c+b.zd();c<a.top?b.G.element.scrollIntoView(!0):d>a.bottom&&b.G.element.scrollIntoView(!1)}}mD(b){if(b=e.Ga.Yb(b).closest("li")){const a=parseInt(b.attr("data-index"));return isNaN(a)?null:{element:b,index:a,data:this.Bc()[a]}}return null}Su(){const b=this.ix()+this.yi;return 0<=b?q.v(this.Bc()[b])||q.v(this.Bh[b])?null:{index:b,data:this.Bc()[b],element:this.Bh[b].G}:null}LV(b){(b=this.mD(b.target))&&this.Ni(b.index)}KV(b){const a=this.mD(b.target);a&&this.MV(a.index,b)}MV(b,a){if(!(0>b)){var c=
this.ix()+b,d=this.Hl,g=this.selectedIndex;this.Xk(b);var k=new f;k.data={Hl:this.Hl,selectedIndex:this.selectedIndex,pLa:this.Bh[b].G,vq:a,fKa:c,XJa:d,WJa:g};this.Ha(k)}}Bc(){return this.J}gg(b,a=!0){this.J=b;this.yi=0;a&&this.je("data")}IW(b){this.wx!=b&&(this.wx=b,this.je("data"))}ur(){return this.pf}xg(b){this.pf!=b&&(this.pf=b,this.je("data"))}uH(){return this.Np}mO(b){this.Np!=b&&(this.Np=b,this.je("data"))}mi(b){this.kv=b;this.je("data")}xt(b){-1<b&&b<this.Bh.length&&this.Bh[b].Sr()}Rr(b){for(var a,
c=0;c<this.Bh.length;c++)if(a=this.Bh[c].getData(),q.Pg(b)){if(b(a)){this.Bh[c].Sr();break}}else if(a===b){this.Bh[c].Sr();break}}PH(){return this.selectedIndex}Xk(b){var a=this.Bc();-1<b&&b<a.length?this.iX(a[b],b):this.iX(null,-1)}Vh(){return this.Hl}qt(b){var a=this.Bc();if(q.Pg(b))for(var c=0;c<a.length;c++){if(!q.v(a[c])&&b(a[c])){this.iX(a[c],c);break}}else a=a.indexOf(b),-1<a&&this.iX(b,a)}iX(b,a){if(this.Do){var c=-1<this.ME.indexOf(a);!(c=!c)&&2>this.ME.length||(c?(this.ME.push(a),this.HI.push(b)):
(this.ME.splice(this.ME.indexOf(a),1),this.HI.splice(this.HI.indexOf(b),1)),this.yl&&(b.isSelected=c,this.xt(a)))}else this.yl&&null!=this.Hl&&(this.Hl.isSelected=!1,this.xt(this.selectedIndex)),this.Hl=b,this.selectedIndex=a,this.yl&&null!=this.Hl&&(this.Hl.isSelected=!0,this.xt(this.selectedIndex))}lya(b,a){var c=new e.Li.GB;c.setData(b);c.hn(a);return c}PM(){return this.$d()*this.Bc().length}set Do(b){this.ZF=b}get Do(){return this.ZF}qO(b){this.ME=b;this.HI.length=0;b=this.Bc();for(var a=0;a<
b.length;a++)-1<this.ME.indexOf(a)?(this.HI.push(b[a]),this.yl&&(b[a].isSelected=!0,this.xt(a))):this.yl&&(b[a].isSelected=!1,this.xt(a))}XM(){return this.HI}Ls(b){this.G.Ls(b,this)}jO(b){var a=this.$d();b*=a;a=b+a;const c=this.G.element.scrollTop,d=this.G.zd();c>b?this.G.Sx(b):c+d<a&&this.G.Sx(a-d)}}h.tma=21;h.uma=31;l.vj=h;class f extends w.ia{constructor(){super(w.ia.Xd)}}l.Rra=f})(e.Bd||(e.Bd={}))})(x||(x={}));
(function(e){(function(l){class h extends e.Pa{constructor(){super("div","fm-ui-dropdown");this.prompt="Choose item";this.ZF=this.KZ=this.jw=!1;this.G.display="inline-block";this.em=new l.Qra;this.em.N("click",()=>this.hv?this.close():this.open());this.em.N("keydown",b=>this.eGa(b));this.em.N("blur",()=>this.close());this.hM=new e.Pa("div","fm-ui-dropdown-list");this.hM.$a();this.jf=new f(this,this.em);this.jf.nja();this.jf.yl=!0;this.jf.mi(this.kv);this.jf.N(w.ia.Xd,b=>this.sv(b));this.hM.X(this.jf);
this.em.Gg("controls",this.jf.U1());this.X(this.em);this.X(this.hM)}get hv(){return this.jw}kv(b,a){var c=new e.Li.RY;c.setData(b);c.hn(a);return c}sv(b){this.Iu(null==b.data.Hl);this.Ya(w.ia.Xd,this,b.data);this.em.focus({preventScroll:!0});this.Do||this.close()}eGa(b){27==b.keyCode&&(this.close(),b.stopImmediatePropagation())}Iu(b){var a=this.jf.Vh();const c=b||this.Do||null==a?this.prompt:a[this.ur()];a=b||this.Do||null==a||q.ka(this.jf.uH())||q.v(a[this.uH()])?"":a[this.uH()];this.em.fb(c);q.ka(a)||
(this.em.xN.zc(a),this.em.xN.ni(a));this.G.ab("fm-ui-prompt",b)}PE(b){this.prompt!==b&&(this.prompt=b,this.Iu(!0))}open(){!this.jw&&this.KM()&&(this.jw=!0,this.hM.show(),this.em.Jf(1))}close(){0!=this.jw&&this.KM()&&(this.jw=!1,this.hM.$a(),this.em.Jf(0))}Bc(){return this.jf.Bc()}gg(b){const a=this.Su();this.jf.gg(b);this.KZ&&a&&this.Ni(a.index)}ur(){return this.jf.ur()}xg(b){this.jf.xg(b)}uH(){return this.jf.uH()}mO(b){this.jf.mO(b)}mi(b){this.jf.mi(b)}Sr(){this.jf.Sr()}xt(b){this.jf.xt(b)}PH(){return this.jf.PH()}Xk(b){this.jf.Xk(b);
this.Iu(null==this.jf.Vh())}qO(b){this.jf.qO(b);this.Iu(!0)}Vh(){return this.jf.Vh()}qt(b){this.jf.qt(b);this.Iu(null==this.jf.Vh())}XM(){return this.jf.XM()}show(){super.show()}$d(){return this.jf.$d()}Kz(){return this.jf.Kz()}Rr(){}PM(){return 0}set Do(b){this.ZF=b;this.jf.Do=b;this.ZF?this.jf.G.aa("fm-ui-dropdown-multiple-selection-list"):this.jf.G.Hd("fm-ui-dropdown-multiple-selection-list")}get Do(){return this.ZF}set yl(b){this.jf.yl=b}get rga(){return this.KZ}set rga(b){this.KZ=b}Su(){return this.jf.Su()}Ni(b){this.jf.Ni(b)}zc(b){return this.em.zc(b)}}
l.es=h;class f extends l.vj{constructor(b,a){super();this.parent=b;this.em=a;this.YR=this.em.G;this.K5();this.Wk("listbox")}K5(){this.em&&(this.N("mousedown",b=>this.KV(b)),this.em.N("keydown",b=>this.nE(b)))}nE(b){if(this.parent.hv)super.nE(b);else if(13==b.keyCode||32==b.keyCode)this.parent.open(),b.preventDefault()}}})(e.Bd||(e.Bd={}))})(x||(x={}));
(function(e){(function(l){class h extends e.Pa{constructor(){super();this.yi=0;this.aa("fm-ui-vlist");this.xi=new f;this.xi.yLa();this.xi.N(w.ia.Xd,b=>this.sv(b));this.X(this.xi);this.du=new e.Pa("div","fm-ui-vlist-placeholder");this.X(this.du);this.N("scroll",()=>this.P4());this.N("mousedown",b=>this.LV(b));this.N("keydown",b=>this.nE(b))}LV(b){(b=this.xi.mD(b.target))&&this.Ni(this.ix()+b.index)}nE(b){if(32==b.keyCode||13==b.keyCode)this.MV(this.yi,b),b.preventDefault();40==b.keyCode&&(this.Ni(this.yi+
1),this.jO(this.yi),b.preventDefault());38==b.keyCode&&(this.Ni(this.yi-1),this.jO(this.yi),b.preventDefault())}jO(b){var a=this.$d();b*=a;a=b+a;const c=this.G.element.scrollTop,d=this.G.zd();c>b?this.G.Sx(b):c+d<a&&this.G.Sx(a-d)}Ni(b){this.yi=Math.max(0,Math.min(this.vh().IH()-1,b));this.yi>=this.ix()&&this.yi<this.Cea()&&this.xi.Ni(this.yi-this.ix())}Su(){return this.xi.Su()}MV(b,a){if(!(0>b)){var c=this.Vh(),d=this.PH();this.Xk(b);var g=new l.Rra;g.data={Hl:this.Vh(),selectedIndex:this.PH(),vq:a,
fKa:b,XJa:c,WJa:d};this.Ha(g)}}sv(b){this.Ha(b)}P4(){this.je("data")}nb(){this.du.Mr(Math.min(this.PM(),h.cQ));if(this.dv("data")){this.xi.gg(this.Bc());const b=this.ix()*this.$d()*this.NH()-this.Tea();this.xi.G.top=Math.min(b,this.du.zd()-this.xi.G.height);this.Ni(this.yi)}this.validate()}NH(){return this.PM()>h.cQ?h.cQ/this.PM():1}ix(){return 1!=this.NH()?Math.floor((this.G.element.scrollTop+this.Tea())/this.NH()/this.$d()):Math.max(0,Math.floor(this.G.element.scrollTop/this.$d())-1)}Cea(){return this.ix()+
this.Kz()}Tea(){return 1!=this.NH()?(this.zd()/this.NH()-this.zd())*(this.G.element.scrollTop/h.cQ)*this.NH():0}get Do(){return this.xi.Do}set Do(b){this.xi.Do=b}ur(){return this.xi.ur()}xg(b){this.xi.xg(b)}mi(b){this.xi.mi(b)}xt(b){this.xi.xt(b)}Rr(b){this.xi.Rr(b)}$d(){return this.xi.$d()}Kz(){return 0<this.$d()?Math.ceil(this.zd()/this.$d())+3:0}PH(){return this.xi.PH()}Xk(b){this.xi.Xk(b)}qO(b){this.xi.qO(b)}Vh(){return this.xi.Vh()}qt(b){this.xi.qt(b)}XM(){return this.xi.XM()}PM(){return this.$d()*
this.vh().IH()}vh(){return this.$La}M5(b){this.$La=b}MLa(){this.G.Sx(0)}gg(b){this.vh()&&(this.vh().HW(b),this.MLa(),this.je("data"))}Bc(){return this.vh()?this.vh().X1(this.ix(),this.Cea()):[]}}h.cQ=1E6;l.Ura=h;class f extends l.vj{constructor(){super();this.yi=-1}LV(){}nE(){}gg(b,a=!0){this.J=b;this.yi=-1;a&&this.je("data")}Ni(b){this.yi=Math.max(0,Math.min(this.Bh.length-1,b));for(const a of this.Bh)a.Hd("fm-ui-active");(b=this.Bh[this.yi])&&b.aa("fm-ui-active")}}})(e.Bd||(e.Bd={}))})(x||(x={}));
(function(e){(function(l){class h extends e.VY{constructor(){super();this.aa("fm-ui-dropdown-btn");this.xN=new e.Tc;this.X(this.xN);this.G.Vd();this.Wk("combobox");this.Gg("haspopup","listbox");this.Cba(!1)}fb(f){this.xN.fb(f,!0);this.xN.ni(f)}}l.Qra=h})(e.Bd||(e.Bd={}))})(x||(x={}));
(function(e){(function(l){class h extends e.Pa{constructor(){super("li");this.pf="label";this.Wk("option")}getData(){return this.data}setData(f){null!=f&&(this.data=f,this.je("data"))}hn(f){this.G.attr("data-index",f)}ur(){return this.pf}xg(f){this.pf!=f&&(this.pf=f,this.je("data"))}uH(){return this.Np}mO(f){this.Np!=f&&(this.Np=f,this.je("data"))}IW(f){this.wx!=f&&(this.wx=f,this.je("data"))}I(){return this.wx?this.wx(this.data):this.data[this.pf]}nb(){this.dv("data")&&(this.G.text(this.data[this.pf]),
q.ka(this.Np)||q.v(this.data[this.Np])||this.zc(this.data[this.Np]));this.validate()}}l.GB=h})(e.Li||(e.Li={}))})(x||(x={}));
(function(e){(function(l){class h extends l.GB{nb(){var f=this.getData();null==this.label&&(this.label=new e.Tc,this.label.aa("fm-text-display"),this.G.append(this.label.G));this.label.fb(f[this.ur()],!0);this.Dba(!0===f.isSelected);this.G.ab("fm-selected",!0===f.isSelected);this.G.ab("fm-not-selected",!0!==f.isSelected);q.ka(this.Np)||q.v(this.data[this.Np])||this.label.zc(this.data[this.Np])}}l.RY=h})(e.Li||(e.Li={}))})(x||(x={}));var da=x||(x={}),ea=da.ij||(da.ij={}),ia=ea.ti||(ea.ti={});
ia.Rj="top";ia.pi="bottom";ia.CF="left";ia.UF="right";
(function(e){(function(l){class h{constructor(f,b){this.NK=a=>this.Ix(a);this.bu=a=>this.Cr(a);this.hC=a=>this.Jx(a);this.target=f;this.options=b;this.Ixa()}Ixa(){for(var f=0;f<this.options.RW.length;f++)this.Bu(this.options.RW[f])}Bu(f){var b=new e.Ga("div","fm-resizable-handle");b.aa("fm-"+f);b.N("mousedown",this.NK);this.target.X(b);return b}Ix(f){f=e.Ga.Yb(f.target);f.Sc("fm-left")?this.My=l.ti.CF:f.Sc("fm-right")?this.My=l.ti.UF:f.Sc("fm-top")?this.My=l.ti.Rj:f.Sc("fm-bottom")&&(this.My=l.ti.pi);
this.CO()}Cr(f){this.yha(f.clientX,f.clientY);this.DO()}Jx(f){this.yha(f.clientX,f.clientY)}yha(f,b){this.yK&&(f=Math.min(Math.max(this.yK.left,f),this.yK.right),b=Math.max(this.yK.top,b),!0!==this.options.H_&&(b=Math.min(this.yK.bottom,b)));var a={left:this.jC.left,top:this.jC.top},c={width:this.TZ.width,height:this.TZ.height};this.My==l.ti.CF&&(a.left=f,c.width+=this.jC.left-a.left);this.My==l.ti.UF&&(c.width=f-this.jC.left);this.My==l.ti.Rj&&(a.top=b,c.height+=this.jC.top-a.top);this.My==l.ti.pi&&
(c.height=b-this.jC.top);this.options.resize&&this.options.resize({WE:this.My,KQa:this.jC,W4:this.TZ,position:a,size:c})}CO(){document.addEventListener("mousemove",this.hC);document.addEventListener("mouseup",this.bu);this.TZ={width:this.target.cg(!0),height:this.target.zd(!0)};this.jC={left:this.target.sg().left,top:this.target.sg().top};this.yK=this.options.LS?this.options.LS.getBoundingClientRect():null}DO(){document.removeEventListener("mousemove",this.hC);document.removeEventListener("mouseup",
this.bu);this.options.complete&&this.options.complete()}dispose(){document.removeEventListener("mousemove",this.hC);document.removeEventListener("mouseup",this.bu)}}l.Tqa=h})(e.ij||(e.ij={}))})(x||(x={}));(function(e){(function(l){class h extends e.Li.RY{nb(){super.nb();const f=this.data.submenu&&0<this.data.submenu.length;this.G.ab("fm-has-submenu",f);this.gva(f)}}l.m$=h})(e.mr||(e.mr={}))})(x||(x={}));
(function(e){(function(l){class h extends e.ce.l${constructor(b){super();this.ZW=a=>this.JIa(a);this.parent=b;this.aa("fm-ui-context-menu");this.list=new e.Bd.vj;this.list.mi((a,c)=>this.kv(a,c));this.list.xg("caption");this.list.af();this.list.N(w.ia.Xd,a=>this.sv(a));this.X(this.list);this.EA=new f(this);this.EA.list.N(w.ia.Xd,a=>this.sv(a));this.EA.$a();this.X(this.EA);this.G.cm();this.G.N("mouseleave",()=>{this.Xba=setTimeout(()=>this.close(),500)});this.G.N("mouseover",()=>{clearTimeout(this.Xba)});
this.G.N("keydown",a=>{27==a.keyCode&&(this.close(),a.stopImmediatePropagation())})}gp(b,a,c,d=null,g=null){0!=a.length&&(this.mL=g,this.setData(a),this.show(),this.lw=document.activeElement,this.list.focus({preventScroll:!0}),b=b.sg(),c.top-=b.top,c.top+=d&&!isNaN(d.top)?d.top:-5,c.left-=b.left,c.left+=d&&!isNaN(d.left)?d.left:-5,this.G.offset(c),d=this.G.getBoundingClientRect(),b=!1,d.right>window.innerWidth&&(c.left-=d.width-10,b=!0),d.bottom>window.innerHeight&&(c.top-=d.height-10,b=!0),b&&(c.top=
Math.max(-this.G.parent.top,c.top),c.left=Math.max(-this.G.parent.left,c.left),this.G.offset(c)),u.Nd().im?q.K.Sb.Jb.N("touchstart",this.ZW):q.K.Sb.Jb.N("mousedown",this.ZW),this.rfa=!0,q.ve(()=>{this.rfa=!1},100))}JIa(b){this.G.KS(b)||this.close()}close(b=null){clearTimeout(this.Xba);if(this.G.visible){this.$a();this.EA.$a();q.K.Sb.Jb.rb("mousedown",this.ZW);q.K.Sb.Jb.rb("touchstart",this.ZW);var a=b&&!0===b.preventFocusRestore?!1:!0;this.mL&&(a=this.mL(b),this.mL=null);this.lw&&!1!==a&&this.lw.focus({preventScroll:!0})}}setData(b){this.list.gg(b.slice())}sv(b){const a=
b.data.Hl;a.submenu&&0<a.submenu.length?(this.EA.gp(b.data.pLa,a),this.EA.list.focus()):(null!=a.handler&&a.handler(a.data),b.data.vq&&b.data.vq.stopImmediatePropagation(),this.close(a))}kv(b,a){var c=new l.m$;c.setData(b);c.hn(a);q.ka(b["class"])||c.aa(b["class"]);c.N("mouseover",()=>this.$Ha(c,b));return c}$Ha(b,a){this.rfa||(a.submenu&&0<a.submenu.length?this.EA.gp(b.G,a):this.EA.$a())}focus(b=null){this.list.focus(b)}}l.XF=h;class f extends e.ce.l${constructor(b){super();this.parent=b;this.aa("fm-ui-context-submenu");
this.N("keydown",a=>this.tq(a));this.list=new e.Bd.vj;this.list.mi((a,c)=>this.pMa(a,c));this.list.xg("caption");this.list.af();this.X(this.list)}tq(b){27==b.keyCode&&(this.parent&&this.parent.focus(),this.$a(),b.stopImmediatePropagation())}pMa(b,a){var c=new l.m$;c.setData(b);c.hn(a);q.ka(b["class"])||c.aa(b["class"]);return c}gp(b,a){if(a!=this.Fha){this.Fha=a;this.list.gg(a.submenu.slice());a=b.sg(this.parent.G.element);this.G.top=a.top-1;this.G.left=b.cg(!0)-5;this.show();var c=this.G.getBoundingClientRect();
c.right>window.innerWidth&&(this.G.left=-c.width,0>this.G.left&&(this.G.left=-this.G.left));c.bottom>window.innerHeight&&(this.G.top=a.top-c.height+b.zd(!0)+1,0>this.G.top&&(this.G.top=-this.G.top))}}$a(){super.$a();this.Fha=null}}})(e.mr||(e.mr={}))})(x||(x={}));
(function(e){(function(l){class h{constructor(f){this.target=f;u.Nd().im?(new e.EG.Noa(this.target)).VEa((b,a)=>this.B4(b,a)):q.Ik.addEventListener("contextmenu",b=>this.sta(b))}B4(){}O4(){}sta(f){this.target.KS(f)&&this.O4(f)}}l.Vqa=h})(e.mr||(e.mr={}))})(x||(x={}));
(function(e){(function(l){class h extends e.Pa{constructor(){super("div","fm-ui-datepicker-input");this.HK="dd/MM/yyyy";this.Bta="HH:mm";this.mta=1900;this.kta=2100;this.iu=!1;this.Bha=b=>this.eIa(b);this.ab("fm-with-time",this.Pj);this.$C=new e.Sj;this.$C.G.N("click",()=>this.open());this.$C.N(e.Sj.oy,b=>this.sHa(b));this.$C.N(e.Sj.fB,()=>this.tHa());this.X(this.$C);const f=new e.Ga("i","fm-ui-datepicker-icon");f.N("click",()=>this.rHa());this.G.X(f);this.nda=new e.Ga("div","fm-ui-datepicker-dropdown");
this.G.X(this.nda);this.On=new l.Pra;this.On.N(w.ia.Xd,()=>this.PGa());this.On.N(w.ia.eP,()=>this.close());this.nda.X(this.On.G);this.je()}nb(){this.dv("all","date","timezone")&&(this.On.Ox?this.$C.ik(this.On.Ox.format(this.aea)):this.$C.PE(this.NBa()));super.nb()}get aea(){return this.HK+(this.Pj?" "+this.Bta:"")}open(){this.G.ab("fm-opened",!0);this.On.reset();document.body.addEventListener("mousedown",this.Bha)}close(){this.G.ab("fm-opened",!1);document.body.removeEventListener("mousedown",this.Bha);
this.je("date")}get qc(){return this.On.Ox}set qc(f){this.On.Ox=f;this.je("date")}get Pj(){return this.iu}set Pj(f){this.iu!=f&&(this.iu=f,this.ab("fm-with-time",f),this.On.Pj=f)}OLa(){this.qc=(new q.Rf).Kf(this.bi)}kJa(f){var b,a,c="MM/dd/yyyy"==this.HK;const d=this.Pj?null===(b=f.split(" ")[0])||void 0===b?void 0:b.split("/"):f.split("/");b=parseInt(d[2]);isNaN(b)||(b=Math.min(this.kta,Math.max(this.mta,b)));let g=parseInt(d[c?0:1])-1;isNaN(g)||(g=Math.min(11,Math.max(0,g)));c=parseInt(d[c?1:0]);
isNaN(c)||(c=Math.min(q.Rf.F0(g,b),Math.max(1,c)));c=(new q.Rf).Kf(this.bi).setFullYear(b,g,c);this.Pj&&(f=null===(a=f.split(" ")[1])||void 0===a?void 0:a.split(":"),a=parseInt(f[0]),isNaN(a)||(a=Math.min(23,Math.max(0,a))),f=parseInt(f[1]),isNaN(f)||(f=Math.min(59,Math.max(0,f))),c.setHours(a,f,0,0));return c.ih()?c:null}rHa(){this.G.Sc("fm-opened")?this.close():this.open()}sHa(f){f=this.kJa(f.data);q.v(f)||(this.On.Ox=f,this.Ya(w.ia.Xd,this,this.qc))}tHa(){this.je("date");this.close()}eIa(f){this.G.KS(f)||
this.close()}PGa(){this.Ya(w.ia.Xd,this,this.qc);this.je("date")}get jy(){return this.On.jy}set jy(f){this.On.jy=f}get bi(){return this.On.bi}set bi(f){this.On.bi=f;this.je("timezone")}get Fu(){return this.HK}set Fu(f){"dd/MM/yyyy"!=f&&"MM/dd/yyyy"!=f||this.HK==f||(this.HK=f,this.Sr())}NBa(){const f=new q.Rf;f.Kf(this.bi);return f.format(this.aea)}ye(){this.$C.zc(q.model.B.j.kB);this.On.ye()}}l.n$=h})(e.ZL||(e.ZL={}))})(x||(x={}));
(function(e){(function(l){class h{}h.Xr=0;h.$J=1;h.uK=2;class f extends e.Pa{constructor(){super();this.kNa=u.Lh.vBa();this.aha=u.Lh.$Ba();this.Ip=this.xn=null;this.cL=0;this.K=h.Xr;this.n_=1;this.l_=null;this.iu=!1;this.aa("fm-ui-datepicker");this.aa("fm-noselect");this.xn=(new q.Rf).Kf(this.bi).VI();var b=new e.Ga("div","fm-ui-dp-header");this.G.X(b);this.Lba=new e.Vg("fm-prev-btn");this.Lba.N(e.Qd.uf,()=>this.hha(-1));b.X(this.Lba.G);this.JN=new e.Tc;this.JN.aa("fm-ui-dp-month");this.JN.N("click",
()=>this.YHa());b.X(this.JN.G);this.fJ=new e.Tc;this.fJ.aa("fm-ui-dp-year");this.fJ.N("click",()=>this.YIa());b.X(this.fJ.G);this.Kba=new e.Vg("fm-next-btn");this.Kba.N(e.Qd.uf,()=>this.hha(1));b.X(this.Kba.G);this.J6=new e.Ga("div","fm-ui-dp-week");this.G.X(this.J6);this.oz=new e.Ga("div","fm-ui-dp-dates");this.oz.N("click",a=>this.MGa(a));this.G.X(this.oz);this.$E=new e.Ga("div","fm-ui-dp-time");this.G.X(this.$E);this.Xja=new e.Tc(q.model.B.j.t8);this.$E.X(this.Xja.G);this.TI=new e.Ga("input","fm-ui-dp-time-input");
this.TI.attr("type","time");this.TI.N("change",()=>this.LIa());this.$E.X(this.TI);b=new e.Ga("div","fm-ui-dp-footer");this.G.X(b);this.Qe=new e.Qd("fm-ui-link-btn");this.Qe.aa("fm-cancel-btn");this.Qe.aa("fm-muted");this.Qe.Hd("fm-ui-btn");this.Qe.fb("Cancel");this.Qe.N(e.Qd.uf,()=>this.at());b.X(this.Qe.G);this.je()}nb(){this.dv("all")&&this.Xya();this.dv("date","view")&&this.Qya();this.dv("date","view")&&this.K==h.Xr&&(this.Fya(),this.Vya());this.dv("view")&&this.K==h.$J&&this.Rya();this.dv("view")&&
this.K==h.uK&&this.Yya();super.nb()}get Ox(){return this.Ip}set Ox(b){q.v(b)?null!=this.Ip&&(this.Ip=null,this.je("date")):(b.Kf(this.bi),0==this.Pj&&b.setHours(0,0,0,0),this.U2(this.Ox,b,this.Pj)||(this.Ip=b,this.xn=b.clone().VI(),this.je("date")))}get view(){return this.K}set view(b){this.K!=b&&(this.K=b,this.G.ab("fm-ui-dp-view-dates",this.view==h.Xr),this.G.ab("fm-ui-dp-view-months",this.view==h.$J),this.G.ab("fm-ui-dp-view-years",this.view==h.uK),this.je("view"))}get Pj(){return this.iu}set Pj(b){this.iu!=
b&&(this.iu=b,this.je("view"))}reset(){this.xn=this.Ip?this.Ip.clone().VI():(new q.Rf).Kf(this.bi).VI();this.cL=0;this.view=h.Xr;this.je("view")}Qya(){if(this.view==h.Xr||this.view==h.$J)this.JN.fb(this.aha[this.xn.getMonth()]),this.fJ.fb(this.xn.getFullYear().toString());if(this.view==h.uK){var b=this.afa();this.fJ.fb(b+" \u2013 "+(b+19))}this.fJ.G.ab("fm-disabled",this.view!=h.Xr);this.JN.G.ab("fm-disabled",this.view!=h.Xr)}afa(){for(var b=this.xn.getFullYear()-10;0!=b%10;)b++;return b+=20*this.cL}Xya(){this.J6.empty();
for(var b=0;7>b;b++){var a=new e.Tc(this.kNa[(b+this.jy)%7].substr(0,2));a.aa("fm-ui-dp-day-title");a.aa("fm-ui-dp-col-7");this.J6.X(a.G)}}Yya(){this.oz.empty();this.$E.$a();for(var b=this.afa(),a=0;20>a;a++){var c=new e.Tc(b.toString());c.aa("fm-ui-dp-date-label");c.aa("fm-ui-dp-col-5");this.Ip?this.Ip.getFullYear()==b&&c.aa("fm-selected"):this.xn.getFullYear()==b&&c.aa("fm-highlighted");c.G.attr("data-year",b);this.oz.X(c.G);b++}}Rya(){this.oz.empty();this.$E.$a();this.aha.forEach((b,a)=>{b=new e.Tc(b);
b.aa("fm-ui-dp-date-label");b.aa("fm-ui-dp-col-3");this.Ip?this.Ip.getMonth()==a&&b.aa("fm-selected"):this.xn.getMonth()==a&&b.aa("fm-highlighted");b.G.attr("data-month",a);this.oz.X(b.G)})}Vya(){0==this.Pj?this.$E.$a():(this.$E.show(),this.Ip&&this.TI.LA(this.Ox.format("HH:mm")))}Fya(){var b=this.xn.getDay()-this.jy;0>b&&(b+=7);b=this.xn.clone().s_(-b);var a=(new q.Rf).Kf(this.bi);this.oz.empty();for(var c=0;42>c;c++){var d=new e.Tc(b.getDate().toString());d.aa("fm-ui-dp-date-label");d.aa("fm-ui-dp-col-7");
b.getMonth()!=this.xn.getMonth()&&d.aa("fm-muted");this.U2(this.Ip,b)&&d.aa("fm-selected");this.U2(a,b)&&d.aa("fm-highlighted");d.G.attr("data-date",b.getTime()/1E3);this.oz.X(d.G);b.s_(1)}}U2(b,a,c=!1){return q.v(b)||q.v(a)?!1:b.getFullYear()==a.getFullYear()&&b.getMonth()==a.getMonth()&&b.getDate()==a.getDate()?c?this.xEa(b,a):!0:!1}xEa(b,a){return q.v(b)||q.v(a)?!1:b.getHours()==a.getHours()&&b.getMinutes()==a.getMinutes()?!0:!1}YHa(){this.view=h.$J}YIa(){this.view!=h.$J&&(this.view=h.uK)}MGa(b){b=
e.Ga.Yb(b.target);var a=b.attr("data-date");q.v(a)||(a=new q.Rf(1E3*parseInt(a)),this.Pj&&(a.Kf(this.bi),this.setTime(a,this.TI.LA())),this.Ox=a,this.Ya(w.ia.Xd),this.Ya(w.ia.eP));a=b.attr("data-month");q.v(a)||(this.xn.setMonth(parseInt(a),1),this.view=h.Xr);b=b.attr("data-year");q.v(b)||(this.xn.setFullYear(parseInt(b),this.xn.getMonth(),1),this.view=h.Xr,this.cL=0)}LIa(){this.setTime(this.Ip,this.TI.LA());this.Ya(w.ia.Xd)}setTime(b,a){var c=a.split(":");a=parseInt(c[0]);c=parseInt(c[1]);isNaN(a)||
isNaN(c)||b.setHours(a,c,0,0)}hha(b){this.view==h.Xr?this.xn.nua(b):this.view==h.uK&&(this.cL+=b);this.je("view")}at(){this.view=h.Xr}get jy(){return this.n_}set jy(b){this.n_!=b&&(this.n_=b,this.je("all"))}get bi(){return this.l_}set bi(b){this.l_!=b&&(this.l_=b,this.je("all"))}ye(){this.Qe.fb(q.model.B.j.xm);this.Xja.fb(q.model.B.j.t8)}}l.Pra=f})(e.ZL||(e.ZL={}))})(x||(x={}));
(function(e){(function(l){class h{constructor(f,b=1E3){this.pka=a=>this.PIa(a);this.oka=a=>this.RV(a);this.target=f;this.delay=b}VEa(f){this.lc=f;this.target.N("touchstart",this.pka);this.target.N("touchend",this.oka)}stop(){this.target.rb("touchstart",this.pka);this.target.rb("touchend",this.oka)}PIa(f){this.timer=q.ve(()=>this.xva(f),this.delay)}RV(){this.timer&&q.sr(this.timer)}xva(f){e.Ga.Yb(f.target).Sc("fm-dragging")||this.lc(f,f&&0<f.changedTouches.length?f.changedTouches[0]:null)}}l.Noa=h})(e.EG||
(e.EG={}))})(x||(x={}));(function(e){(function(l){class h extends e.Ga{constructor(){super();this.af();this.Gg("hidden","true");this.element.addEventListener("focus",f=>this.g4(f))}g4(f){f.relatedTarget&&f.relatedTarget.focus()}}l.F8=h})(e.EG||(e.EG={}))})(x||(x={}));
(function(e){class l{constructor(m,n=0,p=l.Eoa){this.Qsa=!0;this.Jy=0;this.NB=n;this.buffer=m;this.position=0;this.jza=p}get byteOffset(){return this.NB}set byteOffset(m){this.NB=m;this.kZ=new DataView(this.Wq,this.NB);this.Jy=this.Wq.byteLength}get byteLength(){return this.Jy-this.NB}get buffer(){this.Eta();return this.Wq}set buffer(m){this.Wq=m;this.kZ=0==this.NB?new DataView(this.Wq):new DataView(this.Wq,this.NB);this.Jy=this.Wq.byteLength}seek(m){m=Math.max(0,Math.min(this.byteLength,m));this.position=
isNaN(m)||!isFinite(m)?0:m}nNa(m){this.pNa(h.encode(m))}oNa(m){this.YZ(1);this.kZ.setUint8(this.position,m);this.position+=1}pNa(m){this.YZ(1*m.length);if(m instanceof Uint8Array&&0==this.byteOffset+this.position%m.BYTES_PER_ELEMENT)this.FFa(this.Wq,this.byteOffset+this.position,m.buffer,m.byteLength),this.Qga(m.length);else for(var n=0;n<m.length;n++)this.oNa(m[n])}iW(m){return f.decode(this.Qga(m))}lia(){var m=this.kZ.getUint32(this.position,this.jza);this.position+=4;return m}Qga(m){this.YZ(1*
m);var n=new Uint8Array(this.Wq,this.byteOffset+this.position,m);this.position+=1*m;return n}YZ(m){if(this.Qsa){m=this.NB+this.position+m;var n=this.Wq.byteLength;if(m<=n)m>this.Jy&&(this.Jy=m);else{for(1>n&&(n=1);m>n;)n*=2;n=new ArrayBuffer(n);var p=new Uint8Array(this.Wq);(new Uint8Array(n,0,p.length)).set(p);this.buffer=n;this.Jy=m}}}Eta(){if(this.Jy!=this.Wq.byteLength){var m=new ArrayBuffer(this.Jy),n=new Uint8Array(m),p=new Uint8Array(this.Wq,0,n.length);n.set(p);this.buffer=m}}FFa(m,n,p,t){m=
new Uint8Array(m,n,t);p=new Uint8Array(p,0,t);m.set(p)}}l.mJ=!1;l.Eoa=!0;e.Yr=l;class h{static encode(m){m=m?String(m):"";var n=[],p=new d(n);m=new g(m);null==h.d1&&(h.d1=new a);for(;m.get()!==h.rn;)h.d1.encode(p,m);do var t=h.d1.encode(p,m);while(t!==h.Zr);return new Uint8Array(n)}}h.Zr=-1;h.rn=-1;e.TextEncoder=h;class f{static decode(m){m||(m=new Uint8Array(0));m=new Uint8Array(m.buffer,m.byteOffset,m.byteLength);m=new c(m);var n=new k;null==f.G0&&(f.G0=new b);for(;m.get()!==f.Zr;){var p=f.G0.decode(m);
null!==p&&p!==f.rn&&n.lH(p)}do p=f.G0.decode(m),null!==p&&p!==f.rn&&n.lH(p);while(p!==f.rn);return n.nw}}f.Zr=-1;f.rn=-1;e.TextDecoder=f;class b{constructor(){this.rn=this.Zr=-1;this.dJ=this.cJ=this.iy=this.Cv=0}decode(m){var n=m.get();if(n===this.Zr)return this.rn;m.offset(1);if(0===this.iy){if(this.inRange(n,0,127))return n;if(this.inRange(n,194,223))this.iy=1,this.dJ=128,this.Cv=n-192;else if(this.inRange(n,224,239))this.iy=2,this.dJ=2048,this.Cv=n-224;else if(this.inRange(n,240,244))this.iy=3,
this.dJ=65536,this.Cv=n-240;else return this.rn;this.Cv*=Math.pow(64,this.iy);return null}if(!this.inRange(n,128,191))return this.dJ=this.cJ=this.iy=this.Cv=0,m.offset(-1),this.rn;this.cJ+=1;this.Cv+=(n-128)*Math.pow(64,this.iy-this.cJ);if(this.cJ!==this.iy)return null;m=this.Cv;n=this.dJ;this.dJ=this.cJ=this.iy=this.Cv=0;return this.inRange(m,n,1114111)&&!this.inRange(m,55296,57343)?m:this.rn}inRange(m,n,p){return n<=m&&m<=p}}e.AQa=b;class a{constructor(){this.rn=this.Zr=-1}inRange(m,n,p){return n<=
m&&m<=p}cda(m,n){return Math.floor(m/n)}encode(m,n){var p=n.get();if(p===this.rn)return this.Zr;n.offset(1);if(this.inRange(p,55296,57343))return this.rn;if(this.inRange(p,0,127))return m.lH(p);if(this.inRange(p,128,2047)){var t=1;var r=192}else this.inRange(p,2048,65535)?(t=2,r=224):this.inRange(p,65536,1114111)&&(t=3,r=240);for(n=m.lH(this.cda(p,Math.pow(64,t))+r);0<t;)n=m.lH(128+this.cda(p,Math.pow(64,t-1))%64),--t;return n}}e.BQa=a;class c{constructor(m){this.Zr=-1;this.qm=0;this.zC=m}get(){return this.qm>=
this.zC.length?this.Zr:Number(this.zC[this.qm])}offset(m){this.qm+=m;if(0>this.qm)throw Error("Seeking past start of the buffer");if(this.qm>this.zC.length)throw Error("Seeking past EOF");}match(m){if(m.length>this.qm+this.zC.length)return!1;var n;for(n=0;n<m.length;n+=1)if(Number(this.zC[this.qm+n])!==m[n])return!1;return!0}}e.ANa=c;class d{constructor(m){this.Zr=-1;this.qm=0;this.zC=m}lH(m){var n=this.Zr,p;for(p=0;p<arguments.length;++p)n=Number(arguments[p]),this.zC[this.qm++]=n;return n}}e.BNa=
d;class g{constructor(m){this.qm=0;this.rn=-1;this.nw=m;this.t0=this.lBa(this.nw)}lBa(m){for(var n=[],p=0,t=m.length;p<m.length;){var r=m.charCodeAt(p);if(this.inRange(r,55296,57343))if(this.inRange(r,56320,57343))n.push(65533);else if(p===t-1)n.push(65533);else{var v=m.charCodeAt(p+1);this.inRange(v,56320,57343)?(r&=1023,v&=1023,p+=1,n.push(65536+(r<<10)+v)):n.push(65533)}else n.push(r);p+=1}return n}inRange(m,n,p){return n<=m&&m<=p}offset(m){this.qm+=m;if(0>this.qm)throw Error("Seeking past start of the buffer");
if(this.qm>this.t0.length)throw Error("Seeking past EOF");}get(){return this.qm>=this.t0.length?this.rn:this.t0[this.qm]}}e.bOa=g;class k{constructor(){this.nw=""}lH(m){65535>=m?this.nw+=String.fromCharCode(m):(m-=65536,this.nw+=String.fromCharCode(55296+(m>>10&1023)),this.nw+=String.fromCharCode(56320+(m&1023)))}}e.cOa=k})(q||(q={}));var z;
(function(e){class l extends w.Mh{constructor(){super(...arguments);this.responseType="arraybuffer";this.connected=!1;this.tc=[]}load(h){this.url=h;this.connected=!1;this.close();this.xhr=new XMLHttpRequest;this.xhr.open("GET",h,!0);this.xhr.responseType=this.responseType;this.xhr.onprogress=f=>this.bt(f);this.xhr.onerror=f=>this.Rb(f);this.xhr.onreadystatechange=f=>this.tv(f);this.tL();this.xhr.send()}iBa(){if(void 0!==this.xhr){var h=this.xhr.getResponseHeader("Content-Type"),f=/charset=([^()<>@,;:"/[\]?.=\s]*)/i;
return f.test(h)?f.exec(h)[1]:"UTF-8"}}Br(){this.response=this.xhr.response;this.Ya(w.ia.Qc)}bt(h){this.Ya(w.ia.te,this,h)}Rb(){q.v(this.xhr)||(this.response=this.xhr.response||this.xhr.responseText||this.xhr.statusText);this.Ha(new w.ia(w.ia.xa,this))}tv(){null!=this.xhr&&4===this.xhr.readyState&&(200===this.xhr.status?this.Br():this.Ya(w.ia.xa,this,this.xhr.statusText));null!=this.xhr&&3>this.xhr.readyState&&!this.connected&&(this.connected=!0,this.Ya(w.ia.ZA))}tL(){if(!q.v(this.tc))for(var h=0;h<
this.tc.length;h++)try{this.xhr.setRequestHeader(this.tc[h].cj,this.tc[h].value)}catch(f){console.error("Request headers error:",f),q.Va(f.message||f,q.model.B.j.xa,q.ob.xa)}}close(){null!=this.xhr&&this.xhr.abort()}dispose(){this.response=null;null!=this.xhr&&(this.xhr.abort(),this.xhr.onload=null,this.xhr.onprogress=null,this.xhr.onerror=null,this.xhr.onreadystatechange=null);this.tc=this.xhr=null}}e.p$=l})(z||(z={}));
(function(e){class l extends w.Mh{constructor(){super();this.dataType=h.DB;this.contentType=f.zra;this.Ir=b.dY;this.Vaa=this.connected=!1;this.MZ=0;this.cC=null;this.eia=0;this.tc=[];this.data={};this.Xi=0}load(d){q.ka(d)||(this.url=d);this.Xi=0;this.connected=!1;this.close();this.xhr=new XMLHttpRequest;try{this.xhr.open(this.Ir,this.url,!0)}catch(g){this.Rb(g);return}this.xhr.withCredentials=this.Vaa;this.xhr.onerror=g=>this.Rb(g);this.xhr.onreadystatechange=g=>this.tv(g);this.xhr.onprogress=g=>
this.bt(g);this.Ir==b.Rv&&!1!==this.contentType&&this.xhr.setRequestHeader("Content-type",this.contentType);this.tL();this.xhr.send(this.data)}retry(){this.load(this.url)}set withCredentials(d){this.Vaa=d}tL(){if(!q.v(this.tc))for(var d=0;d<this.tc.length;d++)try{this.xhr.setRequestHeader(this.tc[d].cj,this.tc[d].value)}catch(g){console.error("Request headers error:",g),q.Va(g.message||g,q.model.B.j.xa,q.ob.xa)}}$h(d){if(!q.v(d)){this.tc=[];for(let g in d)d.hasOwnProperty(g)&&this.tc.push(new e.q$(g,
d[g]))}}SI(){this.response=this.xhr.response||this.xhr.responseText;this.Xi=this.cC?this.cC.loaded:this.response.length;null!=this.cC&&this.Ya(w.ia.te,this,this.cC);this.Ha(new w.ia(w.ia.Qc,this))}tv(d){null!=this.xhr&&4===this.xhr.readyState&&(200===this.xhr.status?this.SI():this.Rb(d));null!=this.xhr&&3>this.xhr.readyState&&!this.connected&&(this.connected=!0,this.Ha(new w.ia(w.ia.ZA)))}bt(d){u.bg()-this.MZ>this.eia?(this.response=this.xhr.response||this.xhr.responseText,this.Xi=d.loaded,this.Ya(w.ia.te,
this,d),this.MZ=u.bg(),this.cC=null):this.cC=d}Rb(){q.v(this.xhr)||(this.response=this.xhr.response||this.xhr.responseText||this.xhr.statusText);this.Ha(new w.ia(w.ia.xa,this))}close(){null!=this.xhr&&(this.xhr.onprogress=null,this.xhr.onreadystatechange=null,this.xhr.abort())}dispose(){this.data=this.response=null;this.tc=[];null!=this.xhr&&(this.xhr.abort(),this.xhr.onprogress=null,this.xhr.onreadystatechange=null);this.MZ=this.cC=this.xhr=null}}e.tk=l;class h{}h.DB="text";h.ba="xml";h.Ov="html";
h.JSON="json";e.bB=h;class f{}f.zra="text/plain";f.IQ="text/xml";f.qX="application/json";f.rX="application/x-www-form-urlencoded";e.Ft=f;class b{}b.Rv="POST";b.dY="GET";e.Qt=b;class a{constructor(d,g){this.cj=d;this.value=g}}e.q$=a;class c{constructor(){this.data={}}toString(d){const g=[];if(d){for(let k in this.data)this.data.hasOwnProperty(k)&&g.push(k+"="+this.data[k]);d=g.join("&")}else d=JSON.stringify(this.data);return d}}e.Yra=c})(z||(z={}));
(function(e){class l extends w.Mh{constructor(){super();this.cT=!1;this.Ika=()=>this.g4();this.l5=!1}Iba(f=[]){this.input=document.createElement("input");this.input.setAttribute("type","file");this.input.style.display="none";document.body.appendChild(this.input);this.input.setAttribute("accept",f.join(","));this.input.addEventListener("change",()=>this.jGa());this.cT=!0;this.l5=window.location!==window.parent.location;q.vM.addEventListener("focus",this.Ika);this.input.click()}jGa(){this.cT=!1;q.v(this.input.files)||
q.v(this.input.files[0])||(this.file=this.input.files[0],this.Ya(w.ia.to))}g4(){this.l5?this.l5=!1:this.cT&&q.ve(()=>{(q.v(this.input.files)||q.v(this.input.files[0]))&&this.Ya(w.ia.BX);this.cT=!1},500)}load(f=h.DB){null!=this.file&&(this.CE=new FileReader,this.CE.onload=()=>this.CHa(),this.CE.onprogress=b=>this.bt(b),this.CE.onerror=b=>this.Rb(b),f==h.ARRAY_BUFFER?this.CE.readAsArrayBuffer(this.file):this.CE.readAsText(this.file))}CHa(){this.response=this.CE.result;this.Ha(new w.ia(w.ia.Qc,this))}bt(f){this.Ya(w.ia.te,
this,f)}Rb(f){this.Ha(f)}dispose(){this.CE=this.file=this.response=null;q.vM.removeEventListener("focus",this.Ika)}}e.B8=l;class h{}h.DB="TEXT";h.ARRAY_BUFFER="ARRAY_BUFFER";e.Rqa=h;e.Hia=function(f,b){if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(f,b);else{var a=document.createElement("a"),c=window.URL.createObjectURL(f);a.href=c;a.download=b;a.target="_blank";document.body.appendChild(a);a.click();q.ve(function(){document.body.removeChild(a);window.URL.revokeObjectURL(c)},
0)}}})(z||(z={}));
(function(e){class l{get item(){return this[0]}find(b){return void 0===this.item?this:this.item.find(b)}text(){return void 0===this.item?"":this.item.text()}attr(b,a){if(void 0!==this.item)return a?this.item.attr(b,a):this.item.attr(b)}children(){for(var b=new l,a=0;void 0!==this[a];)b[a]=h.Yb(this[a]),a++;return b}push(b){this[this.length]=b;return this}get length(){for(var b=0;void 0!==this[b];)b++;return b}}e.CQa=l;class h extends Element{text(b){return b||!1===b?(this.textContent=b.toString(),
this):b=q.v(this.textContent)?"":this.textContent}append(b){if(q.v(b)||"string"==typeof b&&q.ka(b))return this;(b instanceof CDATASection||""!=b.textContent)&&this.appendChild(b);return this}kb(){return""==this.text()}find(b){b=this.querySelectorAll(b);for(var a=new l,c=0;c<b.length;c++)a[c]=h.Yb(b[c]);return a}attr(b,a){if(a||!1===a)return this.setAttribute(b,a),this;a=this.getAttribute(b);null==a&&(a=void 0);return a}$Aa(){for(var b=new l,a=this.firstElementChild;a;)a.nodeType===Node.ELEMENT_NODE&&
b.push(h.Yb(a)),a=a.nextElementSibling;return b}get length(){return this.childNodes.length}static Yb(b){b.find=h.prototype.find;b.append=h.prototype.append;b.text=h.prototype.text;b.attr=h.prototype.attr;b.isEmpty=h.prototype.kb;b.getChildren=h.prototype.$Aa;return b}}e.$Y=h;class f{constructor(){throw Error("Singleton");}static parseFromString(b){b=(new DOMParser).parseFromString(q.vt(b),"text/xml");return f.lEa(b)?null:b}static create(b){if(null==b.firstChild){b=f.parseFromString(b);if(null==b)return null;
b=b.firstElementChild?b.firstElementChild:b.firstChild}else b=b.firstChild;return h.Yb(b)}static lEa(b){return b.getElementsByTagName("parsererror")&&b.getElementsByTagName("parsererror")[0]?0<b.getElementsByTagNameNS(b.getElementsByTagName("parsererror")[0].namespaceURI,"parsererror").length:!1}static fi(b){return f.zya.createCDATASection(b)}static Lc(b,a=!1){null==f.Sia&&(f.Sia=new XMLSerializer);b=f.Sia.serializeToString(b);1==a&&(b=f.format(b));return b.trim()}static format(b){b=b.replace(/>\s{0,}</g,
"><").replace(/</g,"~::~<").replace(/\s*xmlns:/g,"~::~xmlns:").replace(/\s*xmlns=/g,"~::~xmlns=").split("~::~");var a=b.length,c=!1,d=0,g="",k,m=["\n"];for(k=0;20>k;k++)m.push(m[k]+"    ");for(k=0;k<a;k++)if(-1<b[k].search(/<!/)){if(g+=m[d]+b[k],c=!0,-1<b[k].search(/--\x3e/)||-1<b[k].search(/\]>/)||-1<b[k].search(/!DOCTYPE/))c=!1}else-1<b[k].search(/--\x3e/)||-1<b[k].search(/\]>/)?(g+=b[k],c=!1):/^<\w/.exec(b[k-1])&&/^<\/\w/.exec(b[k])&&/^<[\w:\-\.,]+/.exec(b[k-1])[0]==/^<\/[\w:\-\.,]+/.exec(b[k])[0].replace("/",
"")?(g+=b[k],c||d--):g=-1<b[k].search(/<\w/)&&-1==b[k].search(/<\//)&&-1==b[k].search(/\/>/)?c?g+=b[k]:g+=m[d++]+b[k]:-1<b[k].search(/<\w/)&&-1<b[k].search(/<\//)?c?g+=b[k]:g+=m[d]+b[k]:-1<b[k].search(/<\//)?c?g+=b[k]:g+=m[--d]+b[k]:-1<b[k].search(/\/>/)?c?g+=b[k]:g+=m[d]+b[k]:-1<b[k].search(/<\?/)?g+(m[d]+b[k]):-1<b[k].search(/xmlns:/)||-1<b[k].search(/xmlns=/)?g+(m[d]+b[k]):g+b[k];b="\n"==g[0]?g.slice(1):g;b=b.replace(/[\r\n\s]*<!\[CDATA\[/g,"<![CDATA[");return b=b.replace(/]]\x3e\s*/g,"]]\x3e")}}
f.zya=f.parseFromString("<tmp/>");e.ba=f})(z||(z={}));(function(e){class l{static print(h,f="",b=""){var a="printer-"+(new Date).getTime(),c=(new x.Ga("iframe")).attr("name",a);c.V("width","1px").V("height","1px").V("position","absolute").V("left","-9999px");window.document.body.append(c.element);a=window.frames[a];var d=a.document;d.open();d.write(q.vt(`
                <!DOCTYPE html>
                <html>
                <head>
                    <title>${b}</title>
                    <style>${f} body{-webkit-print-color-adjust:exact;}</style>
                </head>
                <body>${h}</body>
                </html>
            `));d.close();a.focus();a.print();q.ve(()=>{c.remove()},2E3)}}e.P9=l})(z||(z={}));
(function(e){class l{constructor(){this.table=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,
2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,
2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,
2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,
3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,
1047427035,2932959818,3654703836,1088359270,936918E3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]}async $wa(f){var b=[],a=0,c=0,d=[];for(var g in f)f.hasOwnProperty(g)&&d.push(g);for(const k of d){d=this.l6(f[k]);g=await this.pya(d);const m=d.length!==g.length;d={QMa:d.length,u0:this.u0(d),gca:g.length,axa:g,cxa:m?"\b\x00":"\x00\x00",
qc:new Date};g=this.MAa(k,d,a);a+=g.Eda.length+d.gca;c+=g.$ca.length;b.push(g)}f=l.sla+"\x00\x00\x00\x00"+this.Um(b.length,2)+this.Um(b.length,2)+this.Um(c,4)+this.Um(a,4)+this.Um(0,2);a=new h(a+c+f.length);for(c=0;c<b.length;c++)a.append(b[c].Eda),a.append(b[c].bxa.axa);for(c=0;c<b.length;c++)a.append(b[c].$ca);a.append(f);return a.getData()}async pya(f){try{if(void 0!==window.CompressionStream){const b=(new Response(f)).body.pipeThrough(new window.CompressionStream("deflate-raw")),a=await (new Response(b)).arrayBuffer();
return new Uint8Array(a)}return f}catch(b){return f}}u0(f){var b=-1;for(var a=0,c=f.length;a<c;a++){var d=f[a];d=(b^d)&255;d=this.table[d];b=b>>>8^d}return b^-1}Um(f,b){for(var a="",c=0;c<b;c++)a+=String.fromCharCode(f&255),f>>>=8;return a}MAa(f,b,a){var c=b.qc,d=c.getHours();d=d<<6|c.getMinutes();d=d<<5|c.getSeconds()/2;var g=c.getFullYear()-1980;g=g<<4|c.getMonth()+1;g=g<<5|c.getDate();c="\n\x00\x00\x00"+b.cxa;c+=this.Um(d,2);c+=this.Um(g,2);c+=this.Um(b.u0,4);c+=this.Um(b.gca,4);c+=this.Um(b.QMa,
4);c+=this.Um(f.length,2);c+=this.Um(0,2);return{Eda:l.Foa+c+f,$ca:l.tla+this.Um(20,2)+c+this.Um(0,2)+"\x00\x00\x00\x00"+this.Um(0,4)+this.Um(a,4)+f,bxa:b}}l6(f){var b=this.uxa(f),a=f.length,c=new Uint8Array(b),d,g=0;for(d=0;g<b;d++){var k=f.charCodeAt(d);if(55296===(k&64512)&&d+1<a){var m=f.charCodeAt(d+1);56320===(m&64512)&&(k=65536+(k-55296<<10)+(m-56320),d++)}128>k?c[g++]=k:(2048>k?c[g++]=192|k>>>6:(65536>k?c[g++]=224|k>>>12:(c[g++]=240|k>>>18,c[g++]=128|k>>>12&63),c[g++]=128|k>>>6&63),c[g++]=
128|k&63)}return c}uxa(f){for(var b=0,a=f.length,c,d,g=0;g<a;g++)c=f.charCodeAt(g),55296===(c&64512)&&g+1<a&&(d=f.charCodeAt(g+1),56320===(d&64512)&&(c=65536+(c-55296<<10)+(d-56320),g++)),b+=128>c?1:2048>c?2:65536>c?3:4;return b}}l.Foa="PK\u0003\u0004";l.tla="PK\u0001\u0002";l.sla="PK\u0005\u0006";e.Yna=l;class h{constructor(f){this.data=new Uint8Array(f);this.index=0}append(f){0!==f.length&&(f=f instanceof Uint8Array?f:this.l6(f),this.data.set(f,this.index),this.index+=f.length)}getData(){return this.data}l6(f){for(var b=
new Uint8Array(f.length),a=0;a<f.length;++a)b[a]=f.charCodeAt(a)&255;return b}}})(z||(z={}));
(function(e){function l(){!1!==e.V2&&(0!==f.length&&f.forEach(c=>{var d=c.values[0];"string"===typeof d&&"[!]"===d.substr(0,3)&&(d=JSON.parse(d.substr(3)));h(d);if(1<c.values.length)for(var g=1;g<c.values.length;g++)d=c.values[g],"string"===typeof d&&"[!]"===d.substr(0,3)&&(d=JSON.parse(d.substr(3))),h(d)}),f=[],a())}function h(c){return"string"===typeof c&&"[Stack trace]"===c.substr(0,13)}e.V2=!1;var f=[],b,a=()=>{!1!==e.V2&&(b&&e.sr(b),b=e.ve(l,1E3))};a();e.debug=function(...c){if(!1!==e.V2){for(var d=
[],g=0;g<c.length;g++)if("object"===typeof c[g])try{d[g]="[!]"+JSON.stringify(c[g])}catch(k){d[g]="[Object]"}else d[g]=c[g];f.push({time:u.bg(),values:d})}};e.FQa=l;e.OQa=function(){var c=Error();return c&&c.stack?"[Stack trace] "+c.stack.substr(79):""}})(q||(q={}));(function(e){e.Va=function(h,f="",b=l.nk,a=null,c=null,d=!1){e.K.aP.R().ap(h,f,b,a,c,d)};class l{}l.nk="alert";l.mn="confirmation";l.xa="error";l.OP="info";e.ob=l})(q||(q={}));
(function(e){e.PMa=function(l=null){e.K.Gqa.R().ap("Please enter group name:",l)}})(q||(q={}));(function(e){e.Ca=function(l=!0,h,f,b,a){e.K.Fqa.R().show(l,h,f,b,a)}})(q||(q={}));
(function(e){(function(l){class h extends w.Mh{constructor(){super();if(null!=h.instance)throw Error("Singleton");this.ja=e.u.Ma.R();this.Fa=new l.Xb.tra;this.eJ=e.u.external.Hb.mj.u$.R();this.vba=e.u.external.jc.O6.R()}static R(){null==this.instance&&(this.instance=new h);return this.instance}RD(f){this.Kb=f;h.id=f.id?f.id:"";l.Za.CLa(f);l.B.pB.R().reset();e.K.Y.W.ne.Lw=f.customizeCell;e.K.Dd.Gv.YC=f.customizeChartElement;e.K.Y.mP.YL=f.customizeContextMenu;e.u.external.jc.SA.XL=f.customizeAPIRequest;
e.K.qd.vp.rT=f.sortFieldsList;const b=new e.Vna(location.search);if(b.has("flexmonsterreport")){const a=this.faa(f);a?this.vba.gFa("string"===typeof a?{url:a.toLowerCase(),hp:!1}:a,b.get("flexmonsterreport"),c=>{void 0!==c&&(f.report=c);this.Fa.RD(f)}):(e.Va(e.P.bind(l.B.j.k9,"The URL to the server hasn't been found."),l.B.j.xa,e.ob.xa),console.error("Can't load the shared file. The URL to the server hasn't been found."),this.Fa.RD(f))}else this.Fa.RD(f)}faa(f){return f.shareReportConnection||f.report&&
(f.report.shareReportConnection||f.report.dataSource&&f.report.dataSource.url||f.report.url)||f.url||void 0}open(){this.Fa.open()}load(f,b){this.Fa.load(f,b)}save(f,b=null,a,c,d=!1){return this.Fa.save(f,b,a,c,d)}Qx(f){this.Fa.Qx(f)}Qs(f={}){return this.Fa.Qs(f)}MW(f){f=l.hb.Yv.xb(l.hb.Yv.um(f));l.size.wd.clear();l.size.wd.L_(f);this.refresh();this.cb()}QH(){return l.size.wd.QH().Sa(this.ja.qa.kka())}clear(f=!1){this.Fa&&this.Fa.clear(f)}Pba(f){var b={};e.v(f.dataSourceType)||(b.dataSourceType=f.dataSourceType);
e.v(f.type)||(b.dataSourceType=f.type);e.v(f.proxyUrl)||(b.proxyUrl=f.proxyUrl);e.v(f.dataSourceInfo)||(b.dataSourceInfo=f.dataSourceInfo);e.v(f.catalog)||(b.catalog=f.catalog);e.v(f.cube)||(b.cube=f.cube);e.v(f.subquery)||(b.subquery=f.subquery);e.v(f.localeIdentifier)||(b.localeIdentifier=f.localeIdentifier);e.v(f.effectiveUserName)||(b.effectiveUserName=f.effectiveUserName);e.v(f.customData)||(b.customData=f.customData);e.v(f.filename)||(b.filename=f.filename);e.v(f.requestHeader)||(b.requestHeaders=
f.requestHeader);e.v(f.requestHeaders)||(b.requestHeaders=f.requestHeaders);e.v(f.fieldSeparator)||(b.fieldSeparator=f.fieldSeparator);e.v(f.thousandSeparator)||(b.thousandsSeparator=f.thousandSeparator);e.v(f.thousandsSeparator)||(b.thousandsSeparator=f.thousandsSeparator);e.v(f.recordsetDelimiter)||(b.recordsetDelimiter=f.recordsetDelimiter);e.v(f.browseForFile)||(b.browseForFile=f.browseForFile);e.v(f.data)||(b.data=f.data);e.v(f.binary)||(b.binary=f.binary);e.v(f.ignoreQuotedLineBreaks)||(b.ignoreQuotedLineBreaks=
f.ignoreQuotedLineBreaks);e.v(f.roles)||(b.roles=f.roles);e.v(f.hash)||(b.hash=f.hash);e.v(f.username)||(b.username=f.username);e.v(f.password)||(b.password=f.password);e.v(f.host)||(b.host=f.host);e.v(f.node)||(b.node=f.node);e.v(f.index)||(b.index=f.index);e.v(f.mapping)||(b.mapping=f.mapping);e.v(f.useStreamLoader)||(b.useStreamLoader=f.useStreamLoader);e.v(f.url)||(b.url=f.url);e.v(f.withCredentials)||(b.withCredentials=f.withCredentials);return b}YG(f){this.Fa.YG(this.Pba(f))}Wd(f,b){b.partial?
this.Fa.VMa(f.data,b):this.Fa.Wd(this.Pba(f),b)}getData(f,b,a){if(l.Ea.xc.Vp||l.Ea.xc.wq||l.Ea.xc.Zy)if(null!=a&&(e.Cg.instance.on("update",function(){e.Cg.instance.getData(f,a)}),this.N(l.oc.H8.A8,function(){e.Cg.instance.getData(f,a)})),null!=f&&null!=f.slice){var c=f.slice instanceof l.hb.vo?f.slice:l.hb.vo.xb(f.slice);l.SD.QP.R().kLa(c,b)}else c=l.SD.QP.R().getData(),l.SD.QP.R().bda(b,c);else e.Va(l.Ea.ca.I(l.Ea.ca.T_),l.Ea.ca.I(l.Ea.ca.gE))}H1(){return l.va.nn.dCa()}L1(f){return(f=l.va.nn.get(f))?
f.Sa():null}$R(f){l.va.nn.add(l.va.W.E7.xb(f))}kW(f){l.va.nn.remove(f)}jW(){l.va.nn.n5()}lu(f){this.ja.lu(f)}qA(f){this.ja.qA(f)}DE(){this.ja.DE()}mT(f=!0,b="all"){this.ja.iD(!0,f,b);e.u.Te.Qi.dispose();this.refresh();this.cb()}CS(){this.ja.iD(!1,!1);this.Ya(e.u.Dy.NY);e.u.Te.Qi.dispose();this.refresh();this.Ya("reset_grid");this.cb()}Cq(f){null!=f.chartActiveMeasure&&delete f.chartActiveMeasure;null!=f.chartActiveTupleIndex&&delete f.chartActiveTupleIndex;null!=f.zoom&&delete f.zoom;f.flatView&&
this.Fa.ga.Ec&&this.Fa.ga.Aa!==e.u.i.ra.API&&delete f.flatView;if(!e.v(f.useOlapFormatting)&&this.Fa.ga.Ec&&l.C.F.co!=f.useOlapFormatting){var b=this.Qs({withDefaults:!0});b.options.jE(f);this.Qx({report:b})}else{b=l.C.F.sc;const a=l.C.F.TE,c=l.C.F.me;l.C.F.Cq(l.C.Oq.xb(f),!1);a!=l.C.F.TE&&this.Fa&&this.Fa.ga&&!this.Fa.ga.Ec&&this.J.load();!e.v(this.Fa)&&this.Fa.ga.Aa==e.u.i.ra.API&&(b!=l.C.F.sc||l.C.F.sc&&c!=l.C.F.me)&&(b=this.Qs({withDefaults:!0}),b.options.jE(f),e.v(this.Fa.ga.tc)||(b.la.tc=this.Fa.ga.tc),
this.clear(!0),this.Qx({report:b}))}}print(f){l.kt.OF.R().print(f)}Gk(f,b=null,a=null){l.Dc.lo.Gk(f,b,a)}ID(f,b){return this.eJ.ID(f,b)}SH(f,b){this.eJ.rea(f,b)}aN(f,b,a){this.eJ.WAa(f,b,a)}bN(f,b,a,c){this.eJ.mBa(f,b,a,c)}yS(f,b,a,c,d){this.eJ.vS(f,b,a,c,d)}async rO(f){return new Promise((b,a)=>{var c=d=>{let g;e.v(d)?this.Fa.ga&&this.Fa.ga.Aa==e.u.i.ra.API&&(g=this.Fa.ga.$w()):g=new e.u.external.jc.SA(d);e.v(g)&&(d=this.faa(this.Kb),e.v(d)||("string"===typeof d&&(d={url:d}),g=new e.u.external.jc.SA(d)));
g?this.vba.rO(g,this.Qs()).then(k=>{b(k)}):(e.Va(e.P.bind(l.B.j.l9,"Can't find the valid connection options"),l.B.j.xa,e.ob.xa),a("Can't find the valid connection options"))};null==this.ja||null==this.ja.O?this.Fa.N(l.Xb.Vc.si,()=>c(f)):c(f)})}Ym(f){return null==this.ja||null==this.ja.O?[]:(f=this.ja.O.vc(!1).getItem(f))&&f.filter.Fh?f.filter.Sa():null}Il(f,b){f=e.u.ze.bh(f);if(f=this.ja.O.vc(!1).getItem(f)){f.xu();f.filter=l.hb.lB.xb(b,f);if(f.filter.ji&&(f.filter.query.va==e.u.i.Wb.Rj||f.filter.query.va==
e.u.i.Wb.pi))if(l.C.F.sc)this.ja.qa.$g=[{sort:f.filter.query.va==e.u.i.Wb.Rj?e.u.i.Ba.Nc:e.u.i.Ba.hc,measure:this.ja.O.fd(f.filter.measure.A)}];else{b=this.ja.qa.td(e.u.i.ha.Ia);var a=this.ja.qa.td(e.u.i.ha.Oa);b=-1!=b.Na.indexOf(f.A)?a:b;b.jn=[];b.ig=f.filter.query.va==e.u.i.Wb.Rj?e.u.i.Ba.Nc:e.u.i.Ba.hc;b.Mf=this.ja.qa.Gi(f.filter.measure)}this.Ya("reset_grid");this.ja.filter();this.cb()}}xu(f){f=e.u.ze.bh(f);if(f=this.ja.O.vc(!1).getItem(f))f.xu(),this.ja.select(),this.cb()}MH(){if(null==this.ja||
null==this.ja.qa)return[];const f=[],b=this.ja.qa.rows;for(let a=0;a<b.length;a++)f.push(b.fa(a).lj());return f}AH(){if(null==this.ja||null==this.ja.qa)return[];const f=[],b=this.ja.qa.Ka;for(let a=0;a<b.length;a++)f.push(b.fa(a).lj());return f}CD(){if(null==this.ja||null==this.ja.qa)return[];const f=[],b=this.ja.qa.qb;for(let a=0;a<b.length;a++)f.push(b.fa(a).lj());return f}gd(){if(null==this.ja||null==this.ja.qa)return[];var f=[];if(l.C.F.sc){for(var b=this.ja.qa.flatten(),a,c=0;c<b.length;c++)a=
b.fa(c),(a=this.ja.O.nf(a.A))&&f.push(a.lj());b=this.ja.qa.gd();for(c=0;c<b.length;c++)b[c].Qa&&f.push(b[c].lj())}else for(b=this.ja.qa.gd(),c=0;c<b.length;c++)f.push(b[c].lj());return f}Os(){if(null==this.ja||null==this.ja.O)return[];for(var f=[],b=this.ja.O.Da,a=0;a<b.length;a++)f.push(b.fa(a).lj());return f}nW(f){this.ja.O.vc(!1).getItem(f.name).label=f.caption}tH(){if(null==this.ja||null==this.ja.O)return[];const f=[],b=this.ja.O.vc(!1);for(let a=0;a<b.length;a++)f.push(b.fa(a).lj());return f}YW(f,
b,a,c){const d="string"===typeof c?new l.hb.oh(e.u.ze.bh(c)):l.hb.oh.xb(c);f=this.ja.qa.axes.getItem(f);if(null!=f){if(b===e.u.i.Ba.ed)f.KC();else{if(null==c||null==d)return;if(c=this.ja.qa.Gi(d))f.ig=b,f.jn=a,f.Mf=c}this.ja.sort();this.cb()}}SE(f,b){f=e.u.ze.bh(f);if(f=this.ja.O.vc(!1).getItem(f)){var a=this.ja.qa.axes.getItem(e.u.i.ha.Oa),c=this.ja.qa.axes.getItem(e.u.i.ha.Ia);-1!=a.Na.indexOf(f.A)?c.KC():-1!=c.Na.indexOf(f.A)&&a.KC();f.hg=b;l.C.F.sc&&(this.ja.qa.$g=[{sort:b,measure:this.ja.O.nf(f.A)}]);
this.cb()}this.ja.select()}EW(f){this.ja.qa.$g=e.u.O.Tq.Rda(f,this.ja.qa.Yc);this.cb();this.ja.select()}cb(){this.Ya(l.Xb.Vc.rk,null,"")}VW(f){e.K.qd.vp.rT=f}AO(f,b){f=e.u.ze.bh(f);if(f=this.ja.O.vc(!1).getItem(f))f.Xs=b;this.Fa.mc&&this.ja.select()}g2(f){if(null==this.ja||null==this.ja.O)return"";f=this.ja.O.vc(!1).getItem(f);return null!=f?f.hg:""}S1(){return null==this.ja||null==this.ja.O?null:this.ja.qa.Sda()}Hi(f,b,a){if(null==this.ja||null==this.ja.O)return[];var c=[],d=this.ja.O.vc(!1).getItem(f);
e.v(b)&&(b="");d&&(this.Fa.ga.Ec?(f=""==b?d.pd:d.Ib(b),null==a||null==f&&""!=b||(f&&f.children&&0<f.children.length&&!f.Cf?(c=this.KT(d,b),a(c)):this.ja.Nk(d,f,()=>{c=this.KT(d,b);a(c)}))):(c=this.G1(d.pd),null!=a&&a(c)));return c}c2(f,b){return new Promise((a,c)=>{var d=(g,k)=>{var m=[],n=this.ja.O.vc(!1).getItem(g);e.v(k)&&(k="");if(n){if(this.Fa.ga.Ec)if(g=""===k?n.pd:n.Ib(k),null!=g)if(g&&g.children&&0<g.children.length&&!g.Cf)m=this.KT(n,k),a(m);else{this.ja.Nk(n,g,()=>{m=this.KT(n,k);a(m)});
return}else c(`Member "${k}" is not found!`);else m=this.G1(n.pd);a(m)}else c(`Hierarchy "${g}" is not found!`)};null==this.ja||null==this.ja.O?this.Fa.N(l.Xb.Vc.si,()=>d(f,b)):d(f,b)})}KT(f,b){var a=[];b=""==b?f.pd.children:f.Ib(b).children;for(var c=0;c<b.length;c++){var d=f.za(b[c]),g=d.Sa();g.isLeaf=d.level.yb==d.hierarchy.ua.length-1;g.parentMember=d.parent.dc?d.hierarchy.pd.Fi:d.parent.Fi;d.A!=f.Lm&&a.push(g)}return a}G1(f){for(var b=[],a=f.hierarchy.jk(f,!1),c=0;c<a.length;c++){var d=f.hierarchy.za(a[c]),
g=d.Sa();g.isLeaf=d.level.yb==d.hierarchy.ua.length-1;g.uniqueName=d.Fi;g.parentMember=d.parent.dc?d.hierarchy.pd.Fi:d.parent.Fi;if(1!=d.children.length||d.hierarchy.za(d.children[0]).caption!=l.B.j.Nl)g.children=this.G1(d);b.push(g)}return b}tW(f){this.Fa.ge(e.u.O.Tq.xb(f,e.u.Ma.R().O))}ge(f){this.Fa.ge(f)}gx(){var f=l.C.F.gx(!0,!0).Sa();null!=f.chartActiveMeasure&&delete f.chartActiveMeasure;null!=f.chartActiveTupleIndex&&delete f.chartActiveTupleIndex;return f}Eh(f,b){const a=this.ja&&this.ja.O?
this.ja.O.fd(f):null;b=a&&void 0===b?a.Mm:b;const c=a&&l.C.F.sc&&e.u.i.Ra.wc==a.type;return(a?a.Eh(f,b,c):l.oc.tj.VT()).Sa(!0)}OE(f,b,a){f.hasOwnProperty("name")||(f.name=e.P.zM());try{l.oc.tj.OE(f)}catch(d){e.Va("Can't add format. Component's configuration requires more parameters.");return}try{let d=this.ja.O.fd(b);d&&void 0===a&&l.oc.tj.GI(f.name,d.A,"");d&&d.$===a&&(d.format=f.name,l.oc.tj.GI(f.name,d.A,a),f.label&&(d.label=f.label));if(""!=f.name&&(""==b||null==b))for(var c=0;c<this.ja.O.Da.length;c++)d=
this.ja.O.Da.fa(c),l.oc.tj.GI(f.name,d.A,""),d.format=f.name;const g=this.ja.qa.gd();for(c=0;c<g.length;c++)if(b===g[c].A&&a===g[c].$||void 0===a&&b===g[c].A)g[c].format=f.name,l.oc.tj.GI(f.name,g[c].A,g[c].$),f.label&&(d.label=f.label)}catch(d){e.Va("List of measures is empty. There is nothing to format.");return}this.Ha(new w.ia(l.oc.H8.A8));this.cb()}refresh(){this.ja.filter()}m5(){var f=e.Cg.instance.Qs();e.Cg.instance.clear();e.Cg.instance.Qx(f)}dispose(){e.u.Te.Qi.dispose();e.K.Y.W.ne.Lw=null;
e.K.Dd.Gv.YC=null;e.K.Y.mP.YL=null;e.u.external.jc.SA.XL=null;e.u.Ma.dispose();this.Fa&&this.Fa.dispose();this.eJ=this.J=this.Fa=this.ja=null;h.instance=null}P1(f,b){e.u.external.Ue.Rma.R().V1(f,(a,c)=>{e.Pg(b)&&b(a,c)})}}h.id="flexmonster";l.Wa=h})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){class h{constructor(b,a=null){this.type=b;this.data=a}}l.jd=h;class f extends w.Mh{constructor(){super();if(null!=f.instance)throw Error("Singleton");}static R(){null==f.instance&&(f.instance=new f);return f.instance}static dispose(){f.instance=null}static jka(b){return f.o3(b)?b:""}static o3(b){return-1<f.types.indexOf(b)}N(b,a,c=0){b=f.jka(b);f.o3(b)&&super.N(b,a,c)}rb(b,a){b=f.jka(b);f.o3(b)&&super.rb(b,a)}static CLa(b){for(var a=0;a<f.types.length;a++){var c=f.types[a];
f.BLa(c,b[c])}}static BLa(b,a){if(a){"string"==typeof a&&(a=f.Hea(a));var c=a;b!=f.tX&&b!=f.ly&&b!=f.qp&&b!=f.pX&&(c=function(...d){e.ve(function(){a.apply(null,d)},1)});f.R().N(b,c)}}static Hea(b){var a=window;b=b.split(".");for(var c=b.pop(),d=0;d<b.length;d++){if(null==a)return null;a=a[b[d]]}return a[c]}}f.MF="openingreportfile";f.vy="loadingreportfile";f.ro="reportfileloaded";f.jK="reportfileerror";f.ds="reportfilecancelled";f.DF="loadingdata";f.uJ="dataloaded";f.sJ="dataerror";f.tJ="datafilecancelled";
f.G7="datachanged";f.Z8="loadingolapstructure";f.J9="olapstructureloaded";f.I9="olapstructureerror";f.qK="unauthorizederror";f.zB="runningquery";f.hl="querycomplete";f.Ot="queryerror";f.EF="loadinglocalization";f.FF="localizationloaded";f.UJ="localizationerror";f.si="reportcomplete";f.uQ="reportchange";f.Z7="exportstart";f.lg="exportcomplete";f.M9="printstart";f.xB="printcomplete";f.S9="ready";f.o$="update";f.ly="beforegriddraw";f.qp="aftergriddraw";f.pX="afterchartdraw";f.k7="chartclick";f.j7="cellclick";
f.dP="celldoubleclick";f.sy="filteropen";f.ZX="filterclose";f.zF="fieldslistopen";f.CJ="fieldslistclose";f.C9="numberformatting";f.p7="conditionalformatting";f.tX="beforetoolbarcreated";f.P7="drillthroughopen";f.N7="drillthroughclose";f.types=[f.S9,f.MF,f.vy,f.ro,f.jK,f.ds,f.DF,f.uJ,f.sJ,f.tJ,f.G7,f.Z8,f.J9,f.I9,f.qK,f.zB,f.hl,f.Ot,f.EF,f.FF,f.UJ,f.si,f.uQ,f.M9,f.xB,f.Z7,f.lg,f.o$,f.ly,f.qp,f.pX,f.k7,f.j7,f.dP,f.sy,f.ZX,f.zF,f.CJ,f.C9,f.p7,f.tX,f.P7,f.N7];l.Za=f})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){class h{static valid(f){if(e.v(f)||"number"===typeof f)return!0;f=f.toLowerCase();return-1===f.indexOf("<script")&&-1===f.indexOf("<svg")&&-1===f.indexOf("javascript:")&&-1===f.indexOf("<iframe")&&-1===f.indexOf("<object")&&-1===f.indexOf("expression(")&&-1===f.indexOf("onmouseover")&&-1===f.indexOf("onload=")&&-1===f.indexOf("onerror")}static validate(f,b=!1){return e.P.Ro(f,b)}}l.Tb=h})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){}static R(){null==f.instance&&(f.instance=new f);return f.instance}static dispose(){f.instance=null}getData(){if(l.Ea.xc.Vp||l.Ea.xc.wq||l.Ea.xc.Zy){var b=e.u.Te.Qi.J1(l.C.F.oS);return this.HS(b)}e.Va(l.Ea.ca.I(l.Ea.ca.T_),l.Ea.ca.I(l.Ea.ca.gE))}kLa(b,a){if(l.Ea.xc.Vp||l.Ea.xc.wq||l.Ea.xc.Zy){var c=e.u.Ma.R();if(void 0!=c.ga&&!c.ga.Ec){b=e.u.O.Tq.xb(b,c.O,!0);var d=e.u.local.ZP.clone(c.ta);d.slice=b;d.select();c=new e.u.Te.cna;c.reset();
c.ta=d;c.slice=b;c.load();b=this.HS(c);this.bda(a,b);c.reset()}}else e.Va(l.Ea.ca.I(l.Ea.ca.T_),l.Ea.ca.I(l.Ea.ca.gE))}bda(b,a){try{a.PDa()?b({},a.mH.Sa()):b(a.Sa())}catch(c){console.error(c)}}HS(b){var a=new h.kqa;if(void 0==b.slice)return a;a.slice=b.slice.Sa();a.Ex={caption:l.C.F.Kn,vAmount:b.slice.gd().length,formats:[]};var c=0,d=0;if(b.$i&&!b.kb){var g="on"==l.C.F.Lf||"rows"==l.C.F.Lf?b.Fd-1:b.Fd;var k="on"==l.C.F.Lf||"columns"==l.C.F.Lf?b.Ed-1:b.Ed;a.data=[];var m=[];var n=[];var p={};for(var t=
0;t<b.Da.length;t++){var r=b.Da[t];a.Ex["v"+t+"Name"]=r.caption;var v=l.Wa.R().Eh(r.A,r.$);a.Ex.formats.push(v);r=b.La(m,n,r);p["v"+t]=r}a.data.push(p);for(v=0;v<k;v++)if(m=b.Vn(v),!e.v(m)&&0!=m.length){p={};c=Math.max(c,m.length);n=[];t=b.wb;for(r=0;r<m.length;r++){var y=r;var A=t.fa(y);var C=m[r];C=A.za(C);a.Ex["r"+y+"Name"]=A.caption;var B=this.JT(C);p["r"+y]=B;p[`r${y}_full`]=C.Fi}for(t=0;t<b.Da.length;t++)r=b.Da[t],r=b.La(m,n,r),p["v"+t]=r;a.data.push(p)}for(var H=0;H<g;H++)if(n=b.ak(H),!e.v(n)&&
0!=n.length){p={};m=[];d=Math.max(d,n.length);t=b.Fb;for(r=0;r<n.length;r++)B=r,A=t.fa(B),C=n[r],C=A.za(C),a.Ex["c"+B+"Name"]=A.caption,A=this.JT(C),p["c"+B]=A,p[`c${B}_full`]=C.Fi;for(t=0;t<b.Da.length;t++)r=b.Da[t],r=b.La(m,n,r),p["v"+t]=r;a.data.push(p)}var M=!1,Y=u.bg();if(0<b.Fb.length&&0<b.wb.length)for(v=0;v<k;v++){m=b.Vn(v);c=Math.max(c,m.length);for(H=0;H<g;H++){if(1E4<u.bg()-Y){M=!0;break}n=b.ak(H);d=Math.max(d,n.length);p={};t=b.wb;for(r=0;r<m.length;r++)y=r,A=t.fa(y),C=m[r],C=A.za(C),
B=this.JT(C),p["r"+y]=B,p[`r${y}_full`]=C.Fi;t=b.Fb;for(r=0;r<n.length;r++)B=r,A=t.fa(B),C=n[r],C=A.za(C),A=this.JT(C),p["c"+B]=A,p[`c${y}_full`]=C.Fi;for(t=0;t<b.Da.length;t++)r=b.Da[t],r=b.La(m,n,r),p["v"+t]=r;a.data.push(p)}if(M)break}}M?(a.data=[],a.Ex={},a.mH=new h.bna,a.mH.Ed=k,a.mH.Fd=g,a.mH.errorMessage=l.B.j.j9+". "+l.B.j.i9):(a.Ex.rAmount=c,a.Ex.cAmount=d);return a}JT(b){return b.level.type==e.u.i.ib.jb||b.level.type==e.u.i.ib.ec?b.nc:b.level.type==e.u.i.ib.Mc?b.nc:b.level.type==e.u.i.ib.pn?
isNaN(parseFloat(b.caption))?b.caption:parseFloat(b.caption):b.caption}}h.QP=f})(l.SD||(l.SD={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.slice={};this.Ex={};this.data=[];this.mH=null}Sa(){var a={};a.meta=this.Ex;a.data=this.data;return a}PDa(){return null!=this.mH}}h.kqa=f;class b{constructor(){this.errorMessage=null}Sa(){var a={};a.errorMessage=this.errorMessage;a.dataH=this.Ed;a.dataW=this.Fd;return a}}h.bna=b})(l.SD||(l.SD={}))})(e.model||(e.model={}))})(q||(q={}));var la=q||(q={}),ma=la.model||(la.model={}),na=ma.B||(ma.B={});class oa{}oa.JX="Flexmonster Pivot Table";
na.j=oa;
(function(e){(function(l){(function(h){class f{load(b,a,c){this.Cb=a;this.Xa=c;this.xhr=new XMLHttpRequest;this.xhr.open("GET",b,!0);this.xhr.onerror=d=>this.Rb(d);this.xhr.onreadystatechange=d=>this.tv(d);this.xhr.send()}tv(){null!=this.xhr&&4===this.xhr.readyState&&(200===this.xhr.status?this.SI():this.Xa())}SI(){this.xhr.response&&null==this.xhr.response.error?null!=this.Cb&&this.Jj(this.xhr.response):this.Xa&&this.Xa()}Rb(){null!=this.Xa&&this.Xa()}Jj(b){try{var a=JSON.parse(b);this.Cb(h.XP.xb(a))}catch(c){console.error(c),this.Xa()}}close(){null!=
this.xhr&&(this.xhr.onprogress=null,this.xhr.onreadystatechange=null,this.xhr.abort())}}h.Hoa=f})(l.B||(l.B={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){if(null!=f.instance)throw Error("Singleton");this.Gu=new h.XP;this.Gu.NE()}static R(){null==f.instance&&(f.instance=new f);return f.instance}static dispose(){null!==this.aA&&(this.aA.close(),this.aA=null);h.j.bs=null;h.j.xy=null;h.j.HB=null;h.j.IB=null;h.j.R9=null;f.instance.Gu=null;f.instance.lU=null;f.instance.kI=null;f.instance=null}updateLabels(){h.j.n8=this.I("fieldsList/flatHierarchyBox");h.j.iB=this.I("fieldsList/values");h.j.hB=
this.I("fieldsList/addCalculatedMeasure");h.j.gna=this.I("fieldsList/expandAll");h.j.m8=this.I("fieldsList/collapseAll");h.j.o8=this.I("fieldsList/formulasGroupName");h.j.Jv=this.I("fieldsList/allFields");h.j.AF=this.I("fieldsList/rows");h.j.yF=this.I("fieldsList/columns");h.j.$r=this.I("fieldsList/filters");h.j.py=this.I("fieldsList/dropField");h.j.qy=this.I("fieldsList/title");h.j.q8=this.I("fieldsList/subtitle");h.j.zP=this.I("fieldsList/search");h.j.p8=this.I("fieldsList/searchClose");h.j.CJ=
this.I("fieldsList/close");h.j.zF=this.I("fieldsList/open");h.j.fna=this.I("fieldsList/actions/select");h.j.WX=this.I("fieldsList/actions/deselect");h.j.ena=this.I("fieldsList/actions/expand");h.j.dna=this.I("fieldsList/actions/collapse");h.j.j8=this.I("fieldsList/actions/move_to_rows");h.j.h8=this.I("fieldsList/actions/move_to_columns");h.j.i8=this.I("fieldsList/actions/move_to_filters");h.j.k8=this.I("fieldsList/actions/move_to_values");h.j.l8=this.I("fieldsList/actions/move_up");h.j.g8=this.I("fieldsList/actions/move_down");
h.j.XX=this.I("fieldsList/actions/edit_calculated_value");h.j.VX=this.I("fieldsList/actions/aggregation");h.j.FJ=this.I("filter/all");h.j.LJ=this.I("filter/multipleItems");h.j.Lv=this.I("filter/selectAll");h.j.Lna=this.I("filter/selectAllResults");h.j.Ena=this.I("filter/top");h.j.vna=this.I("filter/bottom");h.j.r8=this.I("filter/ascSort");h.j.s8=this.I("filter/ascSortTooltip");h.j.v8=this.I("filter/descSort");h.j.w8=this.I("filter/descSortTooltip");h.j.$X=this.I("filter/search");h.j.ina=this.I("filter/amountSelected");
h.j.hna=this.I("filter/amountFound");h.j.Mna=this.I("filter/sort");h.j.jB=this.I("filter/filterBy");h.j.HP=this.I("filter/labelsFilter");h.j.x8=this.I("filter/numbersFilter");h.j.z8=this.I("filter/valuesFilter");h.j.u8=this.I("filter/datesFilter");h.j.y8=this.I("filter/timeFilter");h.j.HJ=this.I("filter/equal");h.j.JJ=this.I("filter/notEqual");h.j.sna=this.I("filter/before");h.j.tna=this.I("filter/beforeEqual");h.j.qna=this.I("filter/after");h.j.rna=this.I("filter/afterEqual");h.j.GJ=this.I("filter/between");
h.j.IJ=this.I("filter/notBetween");h.j.zna=this.I("filter/last");h.j.xna=this.I("filter/current");h.j.Ana=this.I("filter/next");h.j.una=this.I("filter/begin");h.j.Bna=this.I("filter/notBegin");h.j.yna=this.I("filter/end");h.j.Dna=this.I("filter/notEnd");h.j.wna=this.I("filter/contain");h.j.Cna=this.I("filter/notContain");h.j.DP=this.I("filter/greater");h.j.EP=this.I("filter/greaterEqual");h.j.FP=this.I("filter/less");h.j.GP=this.I("filter/lessEqual");h.j.Tna=this.I("filter/seconds");h.j.Rna=this.I("filter/minutes");
h.j.Pna=this.I("filter/hours");h.j.Nna=this.I("filter/days");h.j.Una=this.I("filter/secondsFull");h.j.Sna=this.I("filter/minutesFull");h.j.Qna=this.I("filter/hoursFull");h.j.Ona=this.I("filter/daysFull");h.j.Gna=this.I("filter/day");h.j.Jna=this.I("filter/week");h.j.Hna=this.I("filter/month");h.j.Ina=this.I("filter/quarter");h.j.Kna=this.I("filter/year");h.j.jna=this.I("filter/clearDateFilter");h.j.kna=this.I("filter/clearLabelFilter");h.j.lna=this.I("filter/clearNumberFilter");h.j.mna=this.I("filter/clearTimeFilter");
h.j.nna=this.I("filter/clearValueFilter");h.j.Fna=this.I("filter/noAvailableValues");h.j.CP=this.I("filter/condition");h.j.kB=this.I("filter/conditionValue");h.j.ona=this.I("filter/conditionMeasure");h.j.pna=this.I("filter/conditionTimeInterval");h.j.t8=this.I("filter/datepickerTime");h.j.Gma=this.I("drillThrough/title");h.j.Fma=this.I("drillThrough/row");h.j.Ema=this.I("drillThrough/column");h.j.Hma=this.I("drillThrough/value");h.j.AX=this.I("calculatedView/title");h.j.VNa=this.I("calculatedView/measureBox");
h.j.zX=this.I("calculatedView/measureName");h.j.cP=this.I("calculatedView/formula");h.j.g7=this.I("calculatedView/formulaPrompt");h.j.f7=this.I("calculatedView/calculateIndividualValues");h.j.i7=this.I("calculatedView/removeValue");h.j.rla=this.I("calculatedView/removeValueTitle");h.j.qla=this.I("calculatedView/removeValueMessage");h.j.pla=this.I("calculatedView/allValues");h.j.ola=this.I("calculatedView/actions/add_to_formula");h.j.DNa=this.I("calculatedView/func/add");h.j.UNa=this.I("calculatedView/func/subtract");
h.j.ONa=this.I("calculatedView/func/multiply");h.j.FNa=this.I("calculatedView/func/divide");h.j.RNa=this.I("calculatedView/func/power");h.j.GNa=this.I("calculatedView/func/equal");h.j.KNa=this.I("calculatedView/func/less");h.j.LNa=this.I("calculatedView/func/less_equal");h.j.HNa=this.I("calculatedView/func/greater");h.j.INa=this.I("calculatedView/func/greater_equal");h.j.TNa=this.I("calculatedView/func/strict_equal");h.j.PNa=this.I("calculatedView/func/not_equal");h.j.QNa=this.I("calculatedView/func/or");
h.j.ENa=this.I("calculatedView/func/and");h.j.JNa=this.I("calculatedView/func/if");h.j.CNa=this.I("calculatedView/func/abs");h.j.SNa=this.I("calculatedView/func/round");h.j.NNa=this.I("calculatedView/func/min");h.j.MNa=this.I("calculatedView/func/max");h.j.fY=this.I("grid/total");h.j.ioa=this.I("grid/totals");h.j.eY=this.I("grid/grandTotal");h.j.Nl=this.I("grid/blankMember");h.j.IX=this.I("grid/dateNullCaption");h.j.jo=this.I("grid/dateInvalidCaption");h.j.$ma=this.I("grid/reportInformation");h.j.wla=
this.I("charts/showLegend");h.j.ula=this.I("charts/hideLegend");h.j.vla=this.I("charts/selectMeasures");h.j.l7=this.I("charts/noDataTitle");h.j.xla=this.I("charts/noMeasuresTitle");h.j.yla=this.I("charts/bigDataSetWarning");h.j.LQ=this.I("tooltips/fieldList");h.j.j$=this.I("tooltips/selectAggregation");h.j.h$=this.I("tooltips/editCalculatedMeasure");h.j.Gra=this.I("tooltips/row");h.j.Fra=this.I("tooltips/headerResize");h.j.i$=this.I("tooltips/headerFit");h.j.EB=this.I("tooltips/filterIcon");h.j.UY=
this.I("tooltips/filtered");h.j.KQ=this.I("tooltips/expandIcon");h.j.JQ=this.I("tooltips/collapseIcon");h.j.Dra=this.I("tooltips/drillDown");h.j.Era=this.I("tooltips/drillUp");h.j.Jra=this.I("tooltips/sortIcon");h.j.Ira=this.I("tooltips/sortedDescIcon");h.j.Hra=this.I("tooltips/sortedAscIcon");h.j.Kra=this.I("tooltips/unsortedIcon");h.j.Cra=this.I("tooltips/close");h.j.d$=this.I("aggregations/sum/caption");h.j.oK=this.I("aggregations/sum/totalCaption");h.j.lra=this.I("aggregations/sum/grandTotalCaption");
h.j.w7=this.I("aggregations/count/caption");h.j.fP=this.I("aggregations/count/totalCaption");h.j.bma=this.I("aggregations/count/grandTotalCaption");h.j.Ama=this.I("aggregations/distinctCount/caption");h.j.pP=this.I("aggregations/distinctCount/totalCaption");h.j.Bma=this.I("aggregations/distinctCount/grandTotalCaption");h.j.Mqa=this.I("aggregations/runningTotalsOfColumn/caption");h.j.vQ=this.I("aggregations/runningTotalsOfColumn/totalCaption");h.j.Nqa=this.I("aggregations/runningTotalsOfColumn/grandTotalCaption");
h.j.Oqa=this.I("aggregations/runningTotalsOfRow/caption");h.j.xQ=this.I("aggregations/runningTotalsOfRow/totalCaption");h.j.Pqa=this.I("aggregations/runningTotalsOfRow/grandTotalCaption");h.j.wma=this.I("aggregations/differenceOfColumn/caption");h.j.wJ=this.I("aggregations/differenceOfColumn/totalCaption");h.j.xma=this.I("aggregations/differenceOfColumn/grandTotalCaption");h.j.yma=this.I("aggregations/differenceOfRow/caption");h.j.xJ=this.I("aggregations/differenceOfRow/totalCaption");h.j.zma=this.I("aggregations/differenceOfRow/grandTotalCaption");
h.j.oqa=this.I("aggregations/percentDifferenceOfColumn/caption");h.j.dK=this.I("aggregations/percentDifferenceOfColumn/totalCaption");h.j.pqa=this.I("aggregations/percentDifferenceOfColumn/grandTotalCaption");h.j.qqa=this.I("aggregations/percentDifferenceOfRow/caption");h.j.eK=this.I("aggregations/percentDifferenceOfRow/totalCaption");h.j.rqa=this.I("aggregations/percentDifferenceOfRow/grandTotalCaption");h.j.T6=this.I("aggregations/average/caption");h.j.ZO=this.I("aggregations/average/totalCaption");
h.j.cla=this.I("aggregations/average/grandTotalCaption");h.j.jpa=this.I("aggregations/median/caption");h.j.nY=this.I("aggregations/median/totalCaption");h.j.kpa=this.I("aggregations/median/grandTotalCaption");h.j.gra=this.I("aggregations/stdevp/caption");h.j.CQ=this.I("aggregations/stdevp/totalCaption");h.j.hra=this.I("aggregations/stdevp/grandTotalCaption");h.j.ira=this.I("aggregations/stdevs/caption");h.j.DQ=this.I("aggregations/stdevs/totalCaption");h.j.jra=this.I("aggregations/stdevs/grandTotalCaption");
h.j.zqa=this.I("aggregations/product/caption");h.j.tQ=this.I("aggregations/product/totalCaption");h.j.Aqa=this.I("aggregations/product/grandTotalCaption");h.j.Opa=this.I("aggregations/min/caption");h.j.mQ=this.I("aggregations/min/totalCaption");h.j.Ppa=this.I("aggregations/min/grandTotalCaption");h.j.Poa=this.I("aggregations/max/caption");h.j.dQ=this.I("aggregations/max/totalCaption");h.j.Qoa=this.I("aggregations/max/grandTotalCaption");h.j.lqa=this.I("aggregations/percent/caption");h.j.iK=this.I("aggregations/percent/totalCaption");
h.j.sqa=this.I("aggregations/percent/grandTotalCaption");h.j.mqa=this.I("aggregations/percentOfColumn/caption");h.j.cK=this.I("aggregations/percentOfColumn/totalCaption");h.j.nqa=this.I("aggregations/percentOfColumn/grandTotalCaption");h.j.xqa=this.I("aggregations/percentOfRow/caption");h.j.hK=this.I("aggregations/percentOfRow/totalCaption");h.j.yqa=this.I("aggregations/percentOfRow/grandTotalCaption");h.j.tqa=this.I("aggregations/percentOfParentColumnTotal/caption");h.j.fK=this.I("aggregations/percentOfParentColumnTotal/totalCaption");
h.j.uqa=this.I("aggregations/percentOfParentColumnTotal/grandTotalCaption");h.j.vqa=this.I("aggregations/percentOfParentRowTotal/caption");h.j.gK=this.I("aggregations/percentOfParentRowTotal/totalCaption");h.j.wqa=this.I("aggregations/percentOfParentRowTotal/grandTotalCaption");h.j.ooa=this.I("aggregations/index/caption");h.j.QJ=this.I("aggregations/index/totalCaption");h.j.poa=this.I("aggregations/index/grandTotalCaption");h.j.Zpa=this.I("aggregations/none/caption");h.j.xa=this.I("messages/error");
h.j.s$=this.I("messages/warning");h.j.VP=this.I("messages/limitation");h.j.ila=this.I("messages/browse");h.j.mn=this.I("messages/confirmation");h.j.vpa=this.I("messages/api/incorrectUrl");h.j.upa=this.I("messages/api/errorZeroStatus");h.j.npa=this.I("messages/api/error404Status");h.j.mpa=this.I("messages/api/error400Status");h.j.opa=this.I("messages/api/error500Status");h.j.h9=this.I("messages/api/selectRequestError");h.j.ppa=this.I("messages/api/selectDrillThroughError");h.j.EPa=this.I("messages/api/clientOutdated");
h.j.tpa=this.I("messages/api/serverOutdated");h.j.spa=this.I("messages/api/fieldsRequestError");h.j.oY=this.I("messages/api/membersRequestError");h.j.rpa=this.I("messages/api/expandDataError");h.j.qpa=this.I("messages/api/drillDataError");h.j.pY=this.I("messages/api/noGridChartsMode");h.j.IF=this.I("messages/loading");h.j.mg=this.I("messages/loadingData");h.j.tY=this.I("messages/loadingMapping");h.j.Jt=this.I("messages/waiting");h.j.uY=this.I("messages/progress");h.j.JF=this.I("messages/progressKnown");
h.j.Am=this.I("messages/progressUnknown");h.j.Ipa=this.I("messages/sortingMembers");h.j.fQ=this.I("messages/analyzing");h.j.gQ=this.I("messages/analyzingProgress");h.j.g9=this.I("messages/analyzingRecords");h.j.lpa=this.I("messages/analyzingRecordsWithAmount");h.j.u9=this.I("messages/saving");h.j.YJ=this.I("messages/loadingDimensions");h.j.rY=this.I("messages/loadingHierarchies");h.j.jQ=this.I("messages/loadingMeasures");h.j.r9=this.I("messages/loadingKPIs");h.j.zm=this.I("messages/loadingMembers");
h.j.sY=this.I("messages/loadingLevels");h.j.s9=this.I("messages/loadingProperties");h.j.wy=this.I("messages/exportProgress");h.j.oo=this.I("messages/exportError");h.j.KF=this.I("messages/pleaseWait");h.j.t9=this.I("messages/pagesWereGenerated");h.j.v9=this.I("messages/uploading");h.j.hQ=this.I("messages/cantSaveFile");h.j.xpa=this.I("messages/contentTypeMessageJson");h.j.WJ=this.I("messages/cantSaveFileNoDetails");h.j.Gpa=this.I("messages/saveReportToFile");h.j.Fpa=this.I("messages/saveReportForSharing");
h.j.l9=this.I("messages/cantSaveReportForSharing");h.j.k9=this.I("messages/cantLoadSharedReport");h.j.HF=this.I("messages/invalidDataSource");h.j.ypa=this.I("messages/dataStreamError");h.j.ZJ=this.I("messages/unableToOpenFile");h.j.iQ=this.I("messages/errorTextMessage");h.j.Dpa=this.I("messages/inappropriateFileFormat");h.j.XJ=this.I("messages/invalidJSONdata");h.j.Lpa=this.I("messages/wrongFormulaEmpty");h.j.w9=this.I("messages/wrongFormulaFormat");h.j.Npa=this.I("messages/wrongUniqueName");h.j.Kpa=
this.I("messages/wrongFormulaAggregation");h.j.Mpa=this.I("messages/wrongFormulaRecursive");h.j.Apa=this.I("messages/excelCsvChartsExportError");h.j.zp=this.I("messages/noDataAvailable");h.j.o9=this.I("messages/fileLoadingIncomplete");h.j.qY=this.I("messages/dataWasUpdated");h.j.wpa=this.I("messages/cantConnectToAccelerator");h.j.Epa=this.I("messages/ocsvIncompatible");h.j.kQ=this.I("messages/unknownError");h.j.p9=this.I("messages/invalidReportFormat");h.j.q9=this.I("messages/invalidReportFormat2");
h.j.m9=this.I("messages/csvHeaderParsingError");h.j.Jpa=this.I("messages/tooManyColumnsInClassicMode");h.j.i9=this.I("messages/cantExpand");h.j.j9=this.I("messages/cantExpandTitle");h.j.Hpa=this.I("messages/selectFile");h.j.Cpa=this.I("messages/flatTableIsNotSupported");h.j.Bpa=this.I("messages/exportFontLoadingError");h.j.zpa=this.I("messages/elastic/errorConnection");h.j.n9=this.I("messages/exportImageToPdfTooLargeError");h.j.uy=this.I("kpis/kpis");h.j.U8=this.I("kpis/value");h.j.P8=this.I("kpis/goal");
h.j.T8=this.I("kpis/trend");h.j.S8=this.I("kpis/status");h.j.uX=this.I("buttons/ok");h.j.Z6=this.I("buttons/copy");h.j.my=this.I("buttons/apply");h.j.xm=this.I("buttons/cancel");h.j.b7=this.I("buttons/save");h.j.jla=this.I("buttons/select");h.j.lF=this.I("buttons/yes");h.j.a7=this.I("buttons/no");h.j.r7=this.I("contextMenu/clearSorting");h.j.Dla=this.I("contextMenu/collapse");h.j.s7=this.I("contextMenu/drillThrough");h.j.Jla=this.I("contextMenu/expand");h.j.Gla=this.I("contextMenu/drillUp");h.j.Fla=
this.I("contextMenu/drillDown");h.j.u7=this.I("contextMenu/openFilter");h.j.Kla=this.I("contextMenu/filterBy");h.j.Ila=this.I("contextMenu/exclude");h.j.v7=this.I("contextMenu/removeField");h.j.Tla=this.I("contextMenu/removeMeasure");h.j.Wla=this.I("contextMenu/sortColumnAsc");h.j.Xla=this.I("contextMenu/sortColumnDesc");h.j.Yla=this.I("contextMenu/sortRowAsc");h.j.Zla=this.I("contextMenu/sortRowDesc");h.j.q7=this.I("contextMenu/aggregation");h.j.Sla=this.I("contextMenu/properties");h.j.Hla=this.I("contextMenu/editFormula");
h.j.Qla=this.I("contextMenu/moveToRows");h.j.Ola=this.I("contextMenu/moveToColumns");h.j.Pla=this.I("contextMenu/moveToReportFilters");h.j.Rla=this.I("contextMenu/numberFormatting");h.j.Ela=this.I("contextMenu/conditionalFormatting");h.j.Ula=this.I("contextMenu/showProperty");h.j.Mla=this.I("contextMenu/hideProperty");h.j.Lla=this.I("contextMenu/groupMembers");h.j.$la=this.I("contextMenu/ungroupMembers");h.j.Vla=this.I("contextMenu/showSubtotals");h.j.Nla=this.I("contextMenu/hideSubtotals");h.j.Sl=
this.I("date/year");h.j.Nt=this.I("date/quarter");h.j.nh=this.I("date/month");h.j.pn=this.I("date/day");h.j.R9=[this.I("quarters/q1"),this.I("quarters/q2"),this.I("quarters/q3"),this.I("quarters/q4")];h.j.bs=[this.I("months/january"),this.I("months/february"),this.I("months/march"),this.I("months/april"),this.I("months/may"),this.I("months/june"),this.I("months/july"),this.I("months/august"),this.I("months/september"),this.I("months/october"),this.I("months/november"),this.I("months/december")];h.j.xy=
[this.I("monthsShort/january"),this.I("monthsShort/february"),this.I("monthsShort/march"),this.I("monthsShort/april"),this.I("monthsShort/may"),this.I("monthsShort/june"),this.I("monthsShort/july"),this.I("monthsShort/august"),this.I("monthsShort/september"),this.I("monthsShort/october"),this.I("monthsShort/november"),this.I("monthsShort/december")];h.j.HB=[this.I("weekdays/first"),this.I("weekdays/second"),this.I("weekdays/third"),this.I("weekdays/fourth"),this.I("weekdays/fifth"),this.I("weekdays/sixth"),
this.I("weekdays/seventh")];h.j.IB=[this.I("weekdaysShort/first"),this.I("weekdaysShort/second"),this.I("weekdaysShort/third"),this.I("weekdaysShort/fourth"),this.I("weekdaysShort/fifth"),this.I("weekdaysShort/sixth"),this.I("weekdaysShort/seventh")];u.Lh.xLa(h.j.HB,h.j.IB);u.Lh.JLa(h.j.bs,h.j.xy)}I(b){if(!e.v(this.kI)){var a=this.kI.I(b);if(!e.v(a))return a}return e.v(this.lU)||(a=this.lU.I(b),e.v(a))?this.Gu.I(b):a}reset(){this.kI=null;this.updateLabels()}load(b,a,c=!1){"string"!==typeof b||e.ka(b)?
(b instanceof Object?this.rha(h.XP.xb(b),c):this.reset(),null!=a&&a(!0)):(null!==f.aA&&(f.aA.close(),f.aA=null),f.aA=new h.Hoa,f.aA.load(u.Gy.RH(b,!0),d=>{this.rha(d,c);null!=a&&a(!0)},()=>{null!=a&&a(!1)}))}rha(b,a=!1){a?this.lU=b:this.kI=b;this.updateLabels()}nea(){var b=new h.XP;b.NE();b.merge(this.lU);this.kI&&b.merge(this.kI);return b.Sa().toolbar}}f.aA=null;h.pB=f})(l.B||(l.B={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.labels={}}I(b){var a=this.labels;b=b.split("/");for(var c=0;c<b.length;c++){if(void 0===a[b[c]])return;a=a[b[c]]}return a}fb(b,a){var c=this.labels;b=b.split("/");for(var d=0;d<b.length-1;d++)c=c[b[d]];c[b[b.length-1]]=a}NE(){this.labels.fieldsList={};this.labels.fieldsList.flatHierarchyBox="Select and arrange columns";this.labels.fieldsList.values="Values";this.labels.fieldsList.allFields="All fields";this.labels.fieldsList.rows="Rows";
this.labels.fieldsList.columns="Columns";this.labels.fieldsList.filters="Report filters";this.labels.fieldsList.dropField="Drop field here";this.labels.fieldsList.addCalculatedMeasure="Add calculated value";this.labels.fieldsList.expandAll="Expand all";this.labels.fieldsList.collapseAll="Collapse all";this.labels.fieldsList.formulasGroupName="Calculated values";this.labels.fieldsList.title="Fields";this.labels.fieldsList.subtitle="Drag and drop fields to arrange";this.labels.fieldsList.search="Search";
this.labels.fieldsList.searchClose="Close search";this.labels.fieldsList.open="Open Field List";this.labels.fieldsList.close="Close Field List";this.labels.fieldsList.actions={};this.labels.fieldsList.actions.select="Select";this.labels.fieldsList.actions.deselect="Deselect";this.labels.fieldsList.actions.expand="Expand";this.labels.fieldsList.actions.collapse="Collapse";this.labels.fieldsList.actions.move_to_rows="Move to rows";this.labels.fieldsList.actions.move_to_columns="Move to columns";this.labels.fieldsList.actions.move_to_filters=
"Move to report filters";this.labels.fieldsList.actions.move_to_values="Move to values";this.labels.fieldsList.actions.move_up="Move up";this.labels.fieldsList.actions.move_down="Move down";this.labels.fieldsList.actions.edit_calculated_value="Edit calculated value";this.labels.fieldsList.actions.aggregation="Aggregation";this.labels.filter={};this.labels.filter.ascSort="Az";this.labels.filter.ascSortTooltip="Sort ascending";this.labels.filter.descSort="zA";this.labels.filter.descSortTooltip="Sort descending";
this.labels.filter.top="Top";this.labels.filter.bottom="Bottom";this.labels.filter.search="Search";this.labels.filter.selectAll="Select all";this.labels.filter.selectAllResults="Select all results";this.labels.filter.amountSelected="{0} of {1} selected";this.labels.filter.amountFound="{0} of {1} found are selected";this.labels.filter.multipleItems="Multiple items";this.labels.filter.all="All";this.labels.filter.sort="Sort:";this.labels.filter.filterBy="Filter by:";this.labels.filter.labelsFilter=
"Labels";this.labels.filter.numbersFilter="Labels";this.labels.filter.valuesFilter="Values";this.labels.filter.datesFilter="Dates";this.labels.filter.timeFilter="Time";this.labels.filter.equal="Equal";this.labels.filter.notEqual="Not equal";this.labels.filter.before="Before";this.labels.filter.beforeEqual="Before or equal";this.labels.filter.after="After";this.labels.filter.afterEqual="After or equal";this.labels.filter.between="Between";this.labels.filter.notBetween="Not between";this.labels.filter.last=
"Last...";this.labels.filter.current="Current...";this.labels.filter.next="Next...";this.labels.filter.begin="Begin";this.labels.filter.notBegin="Not begin";this.labels.filter.end="End";this.labels.filter.notEnd="Not end";this.labels.filter.contain="Contain";this.labels.filter.notContain="Not contain";this.labels.filter.greater="Greater";this.labels.filter.greaterEqual="Greater or equal";this.labels.filter.less="Less";this.labels.filter.lessEqual="Less or equal";this.labels.filter.day="Day";this.labels.filter.week=
"Week";this.labels.filter.month="Month";this.labels.filter.quarter="Quarter";this.labels.filter.year="Year";this.labels.filter.seconds="sec.";this.labels.filter.secondsFull="seconds";this.labels.filter.minutes="min.";this.labels.filter.minutesFull="minutes";this.labels.filter.hours="hr.";this.labels.filter.hoursFull="hours";this.labels.filter.days="d.";this.labels.filter.daysFull="days";this.labels.filter.clearDateFilter="Clear date filter";this.labels.filter.clearLabelFilter="Clear label filter";
this.labels.filter.clearNumberFilter="Clear label filter";this.labels.filter.clearTimeFilter="Clear time filter";this.labels.filter.clearValueFilter="Clear value filter";this.labels.filter.noAvailableValues="No available values";this.labels.filter.condition="Condition";this.labels.filter.conditionValue="Condition value";this.labels.filter.conditionMeasure="Measure";this.labels.filter.conditionTimeInterval="Time interval";this.labels.filter.datepickerTime="Time:";this.labels.drillThrough={};this.labels.drillThrough.title=
"Details";this.labels.drillThrough.row="Row: <b>{0}</b>";this.labels.drillThrough.column="Column: <b>{0}</b>";this.labels.drillThrough.value="{0}: <b>{1}</b>";this.labels.calculatedView={};this.labels.calculatedView.title="Calculated value";this.labels.calculatedView.measureBox="Drag values to formula";this.labels.calculatedView.measureName="Value name";this.labels.calculatedView.formula="Formula";this.labels.calculatedView.formulaPrompt="Drop values and edit formula here";this.labels.calculatedView.calculateIndividualValues=
"Calculate individual values";this.labels.calculatedView.removeValue="Remove";this.labels.calculatedView.removeValueTitle="Remove {0}?";this.labels.calculatedView.removeValueMessage="Are you sure you want to remove this calculated value?";this.labels.calculatedView.allValues="All values";this.labels.calculatedView.actions={};this.labels.calculatedView.actions.add_to_formula="Add to formula";this.labels.calculatedView.func={};this.labels.calculatedView.func.add="Add";this.labels.calculatedView.func.subtract=
"Subtract";this.labels.calculatedView.func.multiply="Multiply";this.labels.calculatedView.func.divide="Divide";this.labels.calculatedView.func.power="Power";this.labels.calculatedView.func.equal="Equal";this.labels.calculatedView.func.less="Less";this.labels.calculatedView.func.less_equal="Less or equal";this.labels.calculatedView.func.greater="Greater";this.labels.calculatedView.func.greater_equal="Greater or equal";this.labels.calculatedView.func.strict_equal="Strict equal";this.labels.calculatedView.func.not_equal=
"Not equal";this.labels.calculatedView.func.or="Or";this.labels.calculatedView.func.and="And";this.labels.calculatedView.func["if"]="If";this.labels.calculatedView.func.abs="Absolute";this.labels.calculatedView.func.round="Round";this.labels.calculatedView.func.min="Minimum";this.labels.calculatedView.func.max="Maximum";this.labels.grid={};this.labels.grid.total="Total";this.labels.grid.totals="Totals";this.labels.grid.grandTotal="Grand Total";this.labels.grid.blankMember="(blank)";this.labels.grid.dateNullCaption=
"null";this.labels.grid.dateInvalidCaption="Invalid date";this.labels.grid.reportInformation="Report information";this.labels.charts={};this.labels.charts.showLegend="Show legend";this.labels.charts.hideLegend="Hide legend";this.labels.charts.selectMeasures="Select measures";this.labels.charts.bigDataSetWarning="The dataset is too big to be displayed. Data will be trimmed to fit into the chart.";this.labels.charts.noDataTitle="No data to display.";this.labels.charts.noMeasuresTitle="No measures to display. Add at least one measure in the Field List.";
this.labels.tooltips={};this.labels.tooltips.fieldList="Click to open Fields";this.labels.tooltips.selectAggregation="Select aggregation";this.labels.tooltips.editCalculatedMeasure="Edit calculated value";this.labels.tooltips.row="Row:";this.labels.tooltips.headerResize="Drag to resize";this.labels.tooltips.headerFit="Double click to fit";this.labels.tooltips.filterIcon="Click to filter";this.labels.tooltips.filtered="Filtered";this.labels.tooltips.expandIcon="Click to expand";this.labels.tooltips.collapseIcon=
"Click to collapse";this.labels.tooltips.drillDown="Click to drill down";this.labels.tooltips.drillUp="Click to drill up";this.labels.tooltips.sortIcon="Click to sort";this.labels.tooltips.sortedDescIcon="Click to sort descending";this.labels.tooltips.sortedAscIcon="Click to sort ascending";this.labels.tooltips.unsortedIcon="Click to unsort";this.labels.tooltips.close="Click to close";this.labels.aggregations={};this.labels.aggregations.sum={};this.labels.aggregations.sum.caption="Sum";this.labels.aggregations.sum.totalCaption=
"Sum of {0}";this.labels.aggregations.sum.grandTotalCaption="Total Sum of {0}";this.labels.aggregations.count={};this.labels.aggregations.count.caption="Count";this.labels.aggregations.count.totalCaption="Count of {0}";this.labels.aggregations.count.grandTotalCaption="Total Count of {0}";this.labels.aggregations.distinctCount={};this.labels.aggregations.distinctCount.caption="Distinct Count";this.labels.aggregations.distinctCount.totalCaption="Distinct Count of {0}";this.labels.aggregations.distinctCount.grandTotalCaption=
"Total Distinct Count of {0}";this.labels.aggregations.average={};this.labels.aggregations.average.caption="Average";this.labels.aggregations.average.totalCaption="Average of {0}";this.labels.aggregations.average.grandTotalCaption="Total Average of {0}";this.labels.aggregations.median={};this.labels.aggregations.median.caption="Median";this.labels.aggregations.median.totalCaption="Median of {0}";this.labels.aggregations.median.grandTotalCaption="Total Median of {0}";this.labels.aggregations.stdevp=
{};this.labels.aggregations.stdevp.caption="Population StDev";this.labels.aggregations.stdevp.totalCaption="Population StDev of {0}";this.labels.aggregations.stdevp.grandTotalCaption="Total Population StDev of {0}";this.labels.aggregations.stdevs={};this.labels.aggregations.stdevs.caption="Sample StDev";this.labels.aggregations.stdevs.totalCaption="Sample StDev of {0}";this.labels.aggregations.stdevs.grandTotalCaption="Total Sample StDev of {0}";this.labels.aggregations.product={};this.labels.aggregations.product.caption=
"Product";this.labels.aggregations.product.totalCaption="Product of {0}";this.labels.aggregations.product.grandTotalCaption="Total Product of {0}";this.labels.aggregations.min={};this.labels.aggregations.min.caption="Min";this.labels.aggregations.min.totalCaption="Min of {0}";this.labels.aggregations.min.grandTotalCaption="Total Min of {0}";this.labels.aggregations.max={};this.labels.aggregations.max.caption="Max";this.labels.aggregations.max.totalCaption="Max of {0}";this.labels.aggregations.max.grandTotalCaption=
"Total Max of {0}";this.labels.aggregations.percent={};this.labels.aggregations.percent.caption="% of Grand Total";this.labels.aggregations.percent.totalCaption="% of Grand Total of {0}";this.labels.aggregations.percent.grandTotalCaption="Total % of Grand Total of {0}";this.labels.aggregations.percentOfColumn={};this.labels.aggregations.percentOfColumn.caption="% of Column";this.labels.aggregations.percentOfColumn.totalCaption="% of Column of {0}";this.labels.aggregations.percentOfColumn.grandTotalCaption=
"Total % of Column of {0}";this.labels.aggregations.percentOfRow={};this.labels.aggregations.percentOfRow.caption="% of Row";this.labels.aggregations.percentOfRow.totalCaption="% of Row of {0}";this.labels.aggregations.percentOfRow.grandTotalCaption="Total % of Row of {0}";this.labels.aggregations.percentOfParentColumnTotal={};this.labels.aggregations.percentOfParentColumnTotal.caption="% of Parent Column Total";this.labels.aggregations.percentOfParentColumnTotal.totalCaption="% of Parent Column Total of {0}";
this.labels.aggregations.percentOfParentColumnTotal.grandTotalCaption="% of Parent Column Total of {0}";this.labels.aggregations.percentOfParentRowTotal={};this.labels.aggregations.percentOfParentRowTotal.caption="% of Parent Row Total";this.labels.aggregations.percentOfParentRowTotal.totalCaption="% of Parent Row Total of {0}";this.labels.aggregations.percentOfParentRowTotal.grandTotalCaption="% of Parent Row Total of {0}";this.labels.aggregations.runningTotalsOfColumn={};this.labels.aggregations.runningTotalsOfColumn.caption=
"Running Totals of Column";this.labels.aggregations.runningTotalsOfColumn.totalCaption="Running Totals of Column of {0}";this.labels.aggregations.runningTotalsOfColumn.grandTotalCaption="Running Totals of Column of {0}";this.labels.aggregations.runningTotalsOfRow={};this.labels.aggregations.runningTotalsOfRow.caption="Running Totals of Row";this.labels.aggregations.runningTotalsOfRow.totalCaption="Running Totals of Row of {0}";this.labels.aggregations.runningTotalsOfRow.grandTotalCaption="Running Totals of Row of {0}";
this.labels.aggregations.index={};this.labels.aggregations.index.caption="Index";this.labels.aggregations.index.totalCaption="Index of {0}";this.labels.aggregations.index.grandTotalCaption="Index of {0}";this.labels.aggregations.differenceOfColumn={};this.labels.aggregations.differenceOfColumn.caption="Difference of Column";this.labels.aggregations.differenceOfColumn.totalCaption="Difference of Column of {0}";this.labels.aggregations.differenceOfColumn.grandTotalCaption="Difference of Column of {0}";
this.labels.aggregations.differenceOfRow={};this.labels.aggregations.differenceOfRow.caption="Difference of Row";this.labels.aggregations.differenceOfRow.totalCaption="Difference of Row of {0}";this.labels.aggregations.differenceOfRow.grandTotalCaption="Difference of Row of {0}";this.labels.aggregations.percentDifferenceOfColumn={};this.labels.aggregations.percentDifferenceOfColumn.caption="% Difference of Column";this.labels.aggregations.percentDifferenceOfColumn.totalCaption="% Difference of Column of {0}";
this.labels.aggregations.percentDifferenceOfColumn.grandTotalCaption="% Difference of Column of {0}";this.labels.aggregations.percentDifferenceOfRow={};this.labels.aggregations.percentDifferenceOfRow.caption="% Difference of Row";this.labels.aggregations.percentDifferenceOfRow.totalCaption="% Difference of Row of {0}";this.labels.aggregations.percentDifferenceOfRow.grandTotalCaption="% Difference of Row of {0}";this.labels.aggregations.none={};this.labels.aggregations.none.caption="No calculation";
this.labels.messages={};this.labels.messages.error="Error";this.labels.messages.warning="Warning";this.labels.messages.limitation="Limitation";this.labels.messages.browse="Browse";this.labels.messages.confirmation="Confirmation";this.labels.messages.loading="Loading...";this.labels.messages.loadingData="Loading data...";this.labels.messages.loadingMapping="Loading mapping...";this.labels.messages.uploading="Uploading...";this.labels.messages.waiting="Waiting for the response {0} sec.";this.labels.messages.progress=
"{0} rows";this.labels.messages.progressKnown="{0} KB loaded of {1} KB ({2}%)";this.labels.messages.progressUnknown="{0} KB loaded";this.labels.messages.sortingMembers="Sorting members...";this.labels.messages.analyzing="Analyzing data...";this.labels.messages.analyzingProgress="{0} records of {1} ({2}%)";this.labels.messages.analyzingRecords="{0}% of records";this.labels.messages.analyzingRecordsWithAmount="{0} records ({1}%)";this.labels.messages.saving="Saving...";this.labels.messages.loadingDimensions=
"Loading dimensions...";this.labels.messages.loadingHierarchies="Loading hierarchies...";this.labels.messages.loadingMeasures="Loading measures...";this.labels.messages.loadingKPIs="Loading KPIs...";this.labels.messages.loadingMembers="Loading members...";this.labels.messages.loadingProperties="Loading properties...";this.labels.messages.loadingLevels="Loading levels...";this.labels.messages.pleaseWait="Please wait.";this.labels.messages.pagesWereGenerated="pages were generated.";this.labels.messages.exportProgress=
"Export in progress...";this.labels.messages.exportError="Failed to export. An unexpected error occurred.";this.labels.messages.cantSaveFile="Can't save file. <br/>Details: {0}";this.labels.messages.contentTypeMessageJson="Please use serverContentType: json when saving to server. More details: https://www.flexmonster.com/api/save/";this.labels.messages.cantSaveFileNoDetails="Can't save file.";this.labels.messages.saveReportToFile='The report is ready to be saved to file. <br/>Please click the "Save" button to save the report.';
this.labels.messages.saveReportForSharing="Please copy the following link to share the report:<br/><u><div style='text-overflow: ellipsis; white-space: nowrap; overflow: hidden; font-style: italic;'>{0}</div></u>";this.labels.messages.cantSaveReportForSharing="Can't save the report for sharing. <br/><br/> {0}";this.labels.messages.cantLoadSharedReport="Can't load the shared report. <br/> {0}";this.labels.messages.invalidDataSource="The data source or catalog is invalid. Please check the connection details. <br/><br/><u><a href='https://www.flexmonster.com/doc/typical-errors/#invalid-datasource' target='_blank'>Read more info about this error</a></u>";
this.labels.messages.dataStreamError="A stream error occurred while loading '{0}'<br/><br/><u><a href='https://www.flexmonster.com/doc/typical-errors/#stream-error' target='_blank'>Read more info about this error</a></u>";this.labels.messages.unableToOpenFile="Unable to open the '{0}' file.<br/><br/>Check the following points to resolve the issue:<br/>- make sure the file exists<br/>- make sure the 'Access-Control-Allow-Origin' header is present in the requested resource<br/>- check the browser console for any errors<br/><br/><u><a href='https://www.flexmonster.com/doc/typical-errors/#unable-to-open-file' target='_blank'>Read more info about this error</a></u><br/>";
this.labels.messages.wrongUniqueName="The field with the <b>'{0}'</b> uniqueName is not defined.";this.labels.messages.wrongFormulaEmpty="The formula can't be empty.";this.labels.messages.wrongFormulaFormat="Wrong formula format. Please check formula details.";this.labels.messages.wrongFormulaRecursive="The formula for the <b>'{0}'</b> measure calls itself recursively. Please remove recursion from the formula.";this.labels.messages.wrongFormulaAggregation="The <b>'{0}'</b> aggregation in the <b>'{1}'</b> formula is not valid.";
this.labels.messages.inappropriateFileFormat="The data file is of inappropriate format.";this.labels.messages.invalidJSONdata="The JSON data is invalid.";this.labels.messages.excelCsvChartsExportError="The Microsoft Excel or CSV export is not available for charts.";this.labels.messages.noDataAvailable="The data source is empty.";this.labels.messages.fileLoadingIncomplete="The file is too large and cannot be loaded completely due to the browser limitations.";this.labels.messages.csvHeaderParsingError=
"A CSV header parsing error occurred.";this.labels.messages.dataWasUpdated="The data source has been updated on the server. Refresh the report?";this.labels.messages.cantConnectToAccelerator="Can't connect to the data source. Please check if Flexmonster Accelerator is running.";this.labels.messages.ocsvIncompatible="Unable to read the data source. The OCSV file might have been compressed with a newer version. Please update the component to version {0} or newer.";this.labels.messages.unknownError=
"An unknown error occurred.";this.labels.messages.invalidReportFormat="Invalid report format or access to the file is denied.";this.labels.messages.invalidReportFormat2="Invalid report format. The 'dataSource' property is required.";this.labels.messages.tooManyColumnsInClassicMode="Too many columns for classic form. The layout was switched to compact form.";this.labels.messages.cantExpand="Some fields can't be expanded. Please narrow down the dataset.";this.labels.messages.cantExpandTitle="The dataset is too large";
this.labels.messages.errorTextMessage="</br>Details: '{0}'";this.labels.messages.selectFile="Select a data file to upload.";this.labels.messages.flatTableIsNotSupported="The flat form is not supported for the {0} data source.";this.labels.messages.exportFontLoadingError="Failed to load the font. An unexpected error occurred.";this.labels.messages.exportImageToPdfTooLargeError="The image is too large to be exported to PDF. Please reduce the chart size.";this.labels.messages.api={};this.labels.messages.api.incorrectUrl=
"Custom data source API: incorrect type of the 'url' parameter.<br/><br/>";this.labels.messages.api.errorZeroStatus="Unable to connect to the custom data source API endpoint '<u><a href='{0}'>{0}</a></u>'.<br/><br/>Check the following points to resolve the issue:<br/>- make sure that the URL is correct<br/>- enable CORS<br/>- check the browser console for any errors";this.labels.messages.api.error404Status="Unable to connect to the custom data source API endpoint '<u><a href='{0}'>{0}</a></u>'.<br/><br/>Check the following points to resolve the issue:<br/>- make sure that the URL is correct<br/>- check that the endpoint is processing POST requests";
this.labels.messages.api.error400Status="Custom data source API: request error on '<u><a href='{0}'>{0}</a></u>'.<br/><br/>";this.labels.messages.api.error500Status="Custom data source API: server error on '<u><a href='{0}'>{0}</a></u>'.<br/><br/>";this.labels.messages.api.selectRequestError="Custom data source API: select request.<br/><br/>The format of the '<u><a href='{0}'>{0}</a></u>' endpoint response is incorrect.";this.labels.messages.api.selectDrillThroughError="Custom data source API: select request for drill-through view.<br/><br/>The format of the '<u><a href='{0}'>{0}</a></u>' endpoint response is incorrect.";
this.labels.messages.api.clientOutdated="Custom data source API: the flexmonster.js and server API versions are not compatible.<br/><br/>The flexmonster.js file is outdated. Please update flexmonster.js to the minimum required version: {0}";this.labels.messages.api.serverOutdated="Custom data source API: the flexmonster.js and server API versions are not compatible.<br/><br/>The server API is outdated. Please update the '<u><a href='{0}'>{0}</a></u>' server API to the minimum required version: {1}";
this.labels.messages.api.fieldsRequestError="Custom data source API: fields request.<br/><br/>The format of the '<u><a href='{0}'>{0}</a></u>' endpoint response is incorrect.";this.labels.messages.api.membersRequestError="Custom data source API: members request.<br/><br/>The format of the '<u><a href='{0}'>{0}</a></u>' endpoint response is incorrect.";this.labels.messages.api.noGridChartsMode="The grid and charts mode is not supported in flat form for the custom data source API.";this.labels.messages.api.expandDataError=
"Custom data source API: the issue with expanding data.";this.labels.messages.api.drillDataError="Custom data source API: the issue with drilling data.";this.labels.messages.elastic={};this.labels.messages.elastic.errorConnection="Unable to connect to the Elasticsearch endpoint '<u><a href='{0}'>{0}</a></u>'.<br/><br/>Check the following points to resolve the issue:<br/>- make sure that the URL is correct<br/>- enable CORS<br/>- check the browser console for any errors";this.labels.buttons={};this.labels.buttons.ok=
"OK";this.labels.buttons.apply="Apply";this.labels.buttons.copy="Copy";this.labels.buttons.cancel="Cancel";this.labels.buttons.save="Save";this.labels.buttons.select="Select";this.labels.buttons.yes="Yes";this.labels.buttons.no="No";this.labels.kpis={};this.labels.kpis.kpis="KPIs";this.labels.kpis.value="Value";this.labels.kpis.goal="Goal";this.labels.kpis.trend="Trend";this.labels.kpis.status="Status";this.labels.contextMenu={};this.labels.contextMenu.drillThrough="Drill through";this.labels.contextMenu.openFilter=
"Open filter";this.labels.contextMenu.filterBy="Filter by <b>{0}</b>";this.labels.contextMenu.exclude="Exclude <b>{0}</b>";this.labels.contextMenu.removeField="Remove field";this.labels.contextMenu.removeMeasure="Remove measure";this.labels.contextMenu.collapse="Collapse";this.labels.contextMenu.expand="Expand";this.labels.contextMenu.drillUp="Drill up";this.labels.contextMenu.drillDown="Drill down";this.labels.contextMenu.sortRowDesc="Sort row descending";this.labels.contextMenu.sortRowAsc="Sort row ascending";
this.labels.contextMenu.clearSorting="Clear sorting";this.labels.contextMenu.sortColumnDesc="Sort column descending";this.labels.contextMenu.sortColumnAsc="Sort column ascending";this.labels.contextMenu.aggregation="Aggregation";this.labels.contextMenu.properties="Properties";this.labels.contextMenu.showProperty="Show <b>{0}</b>";this.labels.contextMenu.editFormula="Edit <b>{0}</b>";this.labels.contextMenu.moveToRows="Move to rows";this.labels.contextMenu.moveToColumns="Move to columns";this.labels.contextMenu.moveToReportFilters=
"Move to report filters";this.labels.contextMenu.conditionalFormatting="Conditional formatting";this.labels.contextMenu.numberFormatting="Number formatting";this.labels.contextMenu.hideProperty="Hide <b>{0}</b>";this.labels.contextMenu.groupMembers="Group members";this.labels.contextMenu.ungroupMembers="Ungroup members";this.labels.contextMenu.showSubtotals="Show subtotals";this.labels.contextMenu.hideSubtotals="Hide subtotals";this.labels.date={};this.labels.date.year="Year";this.labels.date.quarter=
"Quarter";this.labels.date.month="Month";this.labels.date.day="Day";this.labels.quarters={};this.labels.quarters.q1="Quarter 1";this.labels.quarters.q2="Quarter 2";this.labels.quarters.q3="Quarter 3";this.labels.quarters.q4="Quarter 4";this.labels.months={};this.labels.months.january="January";this.labels.months.february="February";this.labels.months.march="March";this.labels.months.april="April";this.labels.months.may="May";this.labels.months.june="June";this.labels.months.july="July";this.labels.months.august=
"August";this.labels.months.september="September";this.labels.months.october="October";this.labels.months.november="November";this.labels.months.december="December";this.labels.monthsShort={};this.labels.monthsShort.january="Jan";this.labels.monthsShort.february="Feb";this.labels.monthsShort.march="Mar";this.labels.monthsShort.april="Apr";this.labels.monthsShort.may="May";this.labels.monthsShort.june="Jun";this.labels.monthsShort.july="Jul";this.labels.monthsShort.august="Aug";this.labels.monthsShort.september=
"Sep";this.labels.monthsShort.october="Oct";this.labels.monthsShort.november="Nov";this.labels.monthsShort.december="Dec";this.labels.weekdays={};this.labels.weekdays.first="Sunday";this.labels.weekdays.second="Monday";this.labels.weekdays.third="Tuesday";this.labels.weekdays.fourth="Wednesday";this.labels.weekdays.fifth="Thursday";this.labels.weekdays.sixth="Friday";this.labels.weekdays.seventh="Saturday";this.labels.weekdaysShort={};this.labels.weekdaysShort.first="Sun";this.labels.weekdaysShort.second=
"Mon";this.labels.weekdaysShort.third="Tue";this.labels.weekdaysShort.fourth="Wed";this.labels.weekdaysShort.fifth="Thu";this.labels.weekdaysShort.sixth="Fri";this.labels.weekdaysShort.seventh="Sat";this.labels.toolbar={};this.labels.toolbar.connect="Connect";this.labels.toolbar.connect_local_csv="To local CSV";this.labels.toolbar.connect_local_json="To local JSON";this.labels.toolbar.connect_remote_csv="To remote CSV";this.labels.toolbar.connect_remote_csv_mobile="CSV";this.labels.toolbar.connect_remote_json=
"To remote JSON";this.labels.toolbar.connect_remote_json_mobile="JSON";this.labels.toolbar.connect_olap="To OLAP (XMLA)";this.labels.toolbar.connect_olap_mobile="OLAP";this.labels.toolbar.connect_elastic="To Elasticsearch";this.labels.toolbar.connect_elastic_mobile="Elastic";this.labels.toolbar.open="Open";this.labels.toolbar.local_report="Local report";this.labels.toolbar.remote_report="Remote report";this.labels.toolbar.remote_report_mobile="Report";this.labels.toolbar.save="Save";this.labels.toolbar.share=
"Share";this.labels.toolbar.grid="Grid";this.labels.toolbar.charts="Charts";this.labels.toolbar.charts_column="Column";this.labels.toolbar.charts_bar_horizontal="Bar";this.labels.toolbar.charts_line="Line";this.labels.toolbar.charts_scatter="Scatter";this.labels.toolbar.charts_pie="Pie";this.labels.toolbar.charts_stacked_column="Stacked column";this.labels.toolbar.charts_column_line="Column line";this.labels.toolbar.charts_multiple="Multiple values";this.labels.toolbar.charts_multiple_disabled="Mutltiple values do not apply to ";
this.labels.toolbar.format="Format";this.labels.toolbar.format_cells="Format cells";this.labels.toolbar.format_cells_mobile="Format";this.labels.toolbar.conditional_formatting="Conditional formatting";this.labels.toolbar.conditional_formatting_mobile="Conditional";this.labels.toolbar.options="Options";this.labels.toolbar.fullscreen="Fullscreen";this.labels.toolbar.minimize="Minimize";this.labels.toolbar["export"]="Export";this.labels.toolbar.export_print="Print";this.labels.toolbar.export_html="To HTML";
this.labels.toolbar.export_csv="To CSV";this.labels.toolbar.export_excel="To Excel";this.labels.toolbar.export_image="To Image";this.labels.toolbar.export_pdf="To PDF";this.labels.toolbar.fields="Fields";this.labels.toolbar.ok="OK";this.labels.toolbar.apply="Apply";this.labels.toolbar.cancel="Cancel";this.labels.toolbar.value="Value";this.labels.toolbar.open_remote_csv="Open remote CSV";this.labels.toolbar.open_remote_json="Open remote JSON";this.labels.toolbar.olap_connection_tool="OLAP connection tool";
this.labels.toolbar.select_data_source="Select data source";this.labels.toolbar.select_catalog="Select catalog";this.labels.toolbar.select_cube="Select cube";this.labels.toolbar.proxy_url="Proxy URL";this.labels.toolbar.data_source_info="Data source info";this.labels.toolbar.catalog="Catalog";this.labels.toolbar.cube="Cube";this.labels.toolbar.connect_elastic_title="Connect to Elasticsearch";this.labels.toolbar.host_url="Host URL";this.labels.toolbar.index_name="Index";this.labels.toolbar.select_index=
"Select index";this.labels.toolbar.open_remote_report="Open remote report";this.labels.toolbar.choose_value="Choose value";this.labels.toolbar.text_align="Text align";this.labels.toolbar.align_left="left";this.labels.toolbar.align_right="right";this.labels.toolbar.align_center="center";this.labels.toolbar.none="None";this.labels.toolbar.space="(Space)";this.labels.toolbar.thousands_separator="Thousands separator";this.labels.toolbar.decimal_separator="Decimal separator";this.labels.toolbar.decimal_places=
"Decimal places";this.labels.toolbar.currency_symbol="Currency symbol";this.labels.toolbar.positive_currency_format="Positive currency format";this.labels.toolbar.negative_currency_format="Negative currency format";this.labels.toolbar.negative_number_format="Negative number format";this.labels.toolbar.null_value="Null value";this.labels.toolbar.is_percent="Format as percent";this.labels.toolbar.true_value="true";this.labels.toolbar.false_value="false";this.labels.toolbar.confirm_title="You have unsaved changes";
this.labels.toolbar.confirm_message="The current formatting is not saved yet and won't be applied. </br> Switch the value anyway?";this.labels.toolbar.conditional="Conditional";this.labels.toolbar.less_than="Less than";this.labels.toolbar.less_than_or_equal="Less than or equal to";this.labels.toolbar.greater_than="Greater than";this.labels.toolbar.greater_than_or_equal="Greater than or equal to";this.labels.toolbar.equal_to="Equal to";this.labels.toolbar.not_equal_to="Not equal to";this.labels.toolbar.between=
"Between";this.labels.toolbar.is_empty="Empty";this.labels.toolbar.all_values="All values";this.labels.toolbar.all="All";this.labels.toolbar.default_value="Default value";this.labels.toolbar.and_symbole="&";this.labels.toolbar.no_active_conditions="There are no active conditions.";this.labels.toolbar.add_condition_button="Add condition";this.labels.toolbar.cp_text="Text";this.labels.toolbar.cp_highlight="Highlight";this.labels.toolbar.cp_hex_value="HEX value";this.labels.toolbar.cp_shade="Shade";
this.labels.toolbar.layout_options="Layout options";this.labels.toolbar.layout="Layout";this.labels.toolbar.compact_view="Compact form";this.labels.toolbar.classic_view="Classic form";this.labels.toolbar.flat_view="Flat form";this.labels.toolbar.grand_totals="Grand totals";this.labels.toolbar.grand_totals_off="Do not show grand totals";this.labels.toolbar.grand_totals_on="Show grand totals";this.labels.toolbar.grand_totals_on_rows="Show for rows only";this.labels.toolbar.grand_totals_on_columns="Show for columns only";
this.labels.toolbar.subtotals="Subtotals";this.labels.toolbar.subtotals_off="Do not show subtotals";this.labels.toolbar.subtotals_on="Show subtotals";this.labels.toolbar.subtotals_on_rows="Show for rows only";this.labels.toolbar.subtotals_on_columns="Show for columns only";this.labels.toolbar.choose_page_orientation="Choose page orientation";this.labels.toolbar.landscape="Landscape";this.labels.toolbar.portrait="Portrait";this.labels.toolbar.tooltips={};this.labels.toolbar.tooltips.add_condition=
"Add condition";this.labels.toolbar.tooltips.remove_condition="Remove condition";this.labels.toolbar.tooltips.cp_text_color="Text color";this.labels.toolbar.tooltips.condition="Condition";this.labels.toolbar.tooltips.font="Font";this.labels.toolbar.tooltips.font_size="Font size";this.labels.toolbar.fullscreenErrorTitle="Can't enter fullscreen";this.labels.toolbar.fullscreenErrorMessage="It is not permitted to use the fullscreen feature on this page, either because of Feature Policy configuration or other access control features.<br/><br/><u><a href='https://www.flexmonster.com/doc/typical-errors/#cant-enter-fullscreen' target='_blank'>Read more info about this error</a></u>"}merge(b){e.v(b)||
(this.dha(b.labels,this.labels),this.validate())}Sa(){return this.labels}static xb(b){var a=new f;a.labels=b;return a}dha(b,a){if(!e.v(b)&&!e.v(a)&&b instanceof Object)for(var c in b){var d=b[c];e.v(d)||"function"!==typeof d&&("string"===typeof d?a[c]=d:d instanceof Object&&this.dha(d,a[c]))}}validate(){e.v(this.labels)||(e.v(this.labels.toolbar.charts_bar_stack)||(this.labels.toolbar.charts_stacked_column=this.labels.toolbar.charts_bar_stack,delete this.labels.toolbar.charts_bar_stack),e.v(this.labels.toolbar.charts_bar_line)||
(this.labels.toolbar.charts_column_line=this.labels.toolbar.charts_bar_line,delete this.labels.toolbar.charts_bar_line),e.v(this.labels.toolbar.charts_bar)||(this.labels.toolbar.charts_column=this.labels.toolbar.charts_bar,delete this.labels.toolbar.charts_bar),e.v(this.labels.toolbar.add_condition)||(e.v(this.labels.toolbar.tooltips)&&(this.labels.toolbar.tooltips={}),this.labels.toolbar.tooltips.add_condition=this.labels.toolbar.add_condition,delete this.labels.toolbar.add_condition))}}h.XP=f})(l.B||
(l.B={}))})(e.model||(e.model={}))})(q||(q={}));(function(e){(function(l){(function(h){class f{}f.ro="load";f.kK="loading_report";f.Sv="fail";f.ds="cancel";h.Ph=f;class b extends w.ia{constructor(c){super(f.ro);this.hb=c}}h.W9=b;class a extends w.ia{constructor(c,d=""){super(f.Sv);this.errorMessage="";this.message=c;this.errorMessage=d}}h.zQ=a})(l.hb||(l.hb={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends w.Mh{constructor(){super();this.JSON="json";this.ba="xml";this.kya="report.";this.vW=null}open(){this.yr=new h.Moa;this.yr.N(h.Ph.kK,()=>this.L4());this.yr.N(h.Ph.ro,b=>this.rE(b));this.yr.N(h.Ph.Sv,b=>this.QN(b));this.yr.N(h.Ph.ds,()=>this.PN());this.yr.load()}load(b,a){e.Ca(!0,l.B.j.IF);this.Bv=new h.Zra;this.Bv.N(h.Ph.ro,c=>this.rE(c));this.Bv.N(h.Ph.Sv,c=>this.QN(c));this.Bv.load(u.Gy.xua(b),a)}cancel(){this.yr&&(this.yr.Vd(h.Ph.ro),this.yr.Vd(h.Ph.Sv),
this.yr=null);this.Bv&&(this.Bv.Vd(h.Ph.ro),this.Bv.Vd(h.Ph.Sv),this.Bv=null);this.Vd(h.Ph.ro);this.Vd(h.Ph.Sv);this.Vd(h.Ph.kK);this.Vd(h.Ph.ds)}rE(b){this.Ha(new h.W9(b.hb))}QN(b){e.Va(b.message+b.errorMessage,l.B.j.xa,e.ob.xa);this.Ya(h.Ph.Sv)}L4(){this.Ya(h.Ph.kK)}PN(){this.Ya(h.Ph.ds)}save(b,a=null,c,d,g=!1,k){this.vW=c;c=!1;let m="string"==typeof b?b:null,n=d,p=this.JSON;d=g;let t=null,r=z.Ft.rX;b instanceof Object&&(b.hasOwnProperty("filename")&&(m=b.filename),b.hasOwnProperty("destination")&&
(a=b.destination),b.hasOwnProperty("url")&&(n=b.url),b.hasOwnProperty("reportType")&&(p=b.reportType),b.hasOwnProperty("embedData")&&(d=b.embedData),b.hasOwnProperty("requestHeaders")&&(t=b.requestHeaders),b.hasOwnProperty("serverContentType")&&(r=b.serverContentType));if(null==m||""==m)m=this.kya,m=p==this.ba?m+this.ba:m+this.JSON;k.la.Aa!=e.u.i.ra.ci&&k.la.Aa!=e.u.i.ra.Nq||!(k.la instanceof e.u.local.YP&&k.la.Yd||k.la instanceof e.u.local.csv.LF&&k.la.Fk||d)||k.options.U("gridType")==e.K.Y.wf.rj||
(b=new e.u.local.json.RP,k.la=b,c=!0);a=null==a?h.up.AP:a.toLowerCase();switch(a){case h.up.IY:c?(new e.u.local.json.jY).getData(v=>{k.la.data=v;this.xW(n,m,k,p,t,r)}):this.xW(n,m,k,p,t,r);break;case h.up.wB:c?(new e.u.local.json.jY).getData(v=>{k.la.data=v;this.rz(k.Sa())}):this.rz(k.Sa());break;default:c?(new e.u.local.json.jY).getData(v=>{k.la.data=v;this.gO(m,k,p)}):this.gO(m,k,p)}}rz(b=null,a=null){null!==this.vW&&this.vW(b,a)}Uca(b,a,c=!1){switch(b){case this.JSON:b=JSON.stringify(a.Sa(),null,
4);break;case this.ba:b=z.ba.Lc(a.op(),!0);break;default:b=JSON.stringify(a.Sa(),null,4)}if(c)try{b=encodeURIComponent(b)}catch(d){throw console.warn(l.B.j.WJ,d.message+".",l.B.j.xpa),Error(l.B.j.WJ);}return b}gO(b,a,c){const d=[this.Uca(c,a)];try{const g=this;e.Va(l.B.j.Gpa,l.B.j.mn,e.ob.mn,[l.B.j.b7,l.B.j.xm],[function(){z.Hia(new Blob(d,{type:"text/js;charset=utf-8"}),b);g.rz({report:a.Sa()})},function(){g.rz(null,{message:l.B.j.WJ})}])}catch(g){e.Va(l.B.j.WJ,l.B.j.xa,e.ob.xa),this.rz(null,{message:l.B.j.WJ})}}MDa(b){return z.Ft.rX===
b}xW(b,a,c,d,g,k){e.ka(b)&&e.Va("Report cannot be saved. Save report url is empty.",l.B.j.s$,e.ob.xa);try{const m=new z.Yra,n=this.MDa(k),p=c.Sa();m.data.name=a;m.data.report=n?this.Uca(d,c,n):p;m.data.type=d;const t=new z.tk;t.data=m.toString(n);t.contentType=n?z.Ft.rX:z.Ft.qX;t.Ir=z.Qt.Rv;t.N(w.ia.Qc,r=>this.wIa(r,p));t.N(w.ia.xa,r=>this.Rb(r));t.$h(g);this.s6=t;t.load(b);e.Ca(!0,l.B.j.v9)}catch(m){e.Va(m.message,l.B.j.xa,e.ob.xa),this.rz(null,{message:m.message})}}static aia(b,a=null){const c=
{};null!=b&&null!=b.target&&null!=b.target.response&&""!=b.target.response&&null!=b.target.xhr&&(c.response=b.target.response,c.status=b.target.xhr.status);b.type==w.ia.xa&&(c.message=l.B.j.hQ);b.type!=w.ia.xa&&null!=a&&(c.report=a);return c}wIa(b,a){e.Ca(!1);this.rz(f.aia(b,a))}Rb(b){e.Ca(!1);b=f.aia(b);let a=b.hasOwnProperty("response")?l.Tb.validate(b.response):"";a=700<a.length?a.substr(0,700):a;e.Va(e.P.bind(b.message,a),l.B.j.xa,e.ob.xa);this.rz(null,b)}dispose(){this.vW=null;this.yr&&this.yr.dispose();
this.Bv&&this.Bv.dispose();this.s6&&this.s6.dispose();this.s6=this.Bv=this.yr=null}}h.Sqa=f})(l.hb||(l.hb={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.PA=!1;this.la=new e.u.O.gB;this.slice=new h.vo;this.options=new l.C.Oq;this.Fe=[];this.Xc=[];this.Sm=[];this.Zx=new h.Yv;this.labels={};this.Je=null;this.WL=this.version=""}static xb(a){if(null==a)return null;a=f.um(a);var c=new f;c.la=e.u.O.Et.xb(a.connectionInfo?a.connectionInfo:a);c.options=l.C.Oq.xb(a.options?a.options:a);c.slice=h.vo.xb(a.slice?a.slice:a,c.la,c.options.U("gridType")==e.K.Y.wf.rj);null!=a.formats&&a.formats.length&&
(c.Fe=a.formats);null!=a.conditions&&a.conditions.length&&(c.Xc=a.conditions);null!=a.customFields&&(c.Sm=a.customFields);c.Zx=h.Yv.xb(a.tableSizes);null!=a.localization&&(c.Je=a.localization);null!=c.Je&&null!=c.Je.toolbar&&(null!=c.Je.toolbar.charts_bar_stack&&(c.Je.toolbar.charts_stacked_column=c.Je.toolbar.charts_bar_stack,delete c.Je.toolbar.charts_bar_stack),null!=c.Je.toolbar.charts_bar_line&&(c.Je.toolbar.charts_column_line=c.Je.toolbar.charts_bar_line,delete c.Je.toolbar.charts_bar_line),
null!=c.Je.toolbar.charts_bar&&(c.Je.toolbar.charts_column=c.Je.toolbar.charts_bar,delete c.Je.toolbar.charts_bar));null!=a.version&&0<a.version.length&&(c.version=a.version);null!=a.creationDate&&0<a.creationDate.length&&(c.WL=a.creationDate);return c}static Jk(a){var c=new f;if(null==a)return c;c.la=e.u.O.Et.Jk(a);c.slice=h.vo.Jk(a);c.options=l.C.Oq.Jk(a);c.Fe=f.bAa(a.find("format"));c.Xc=f.exa(a.find("conditions condition"));c.Zx=h.Yv.Jk(a);c.Sm=f.Wxa(a.find("customFields").children());c.labels=
f.HEa(a.find("labels"));c.Je=f.lFa(a.find("params"));return c}static Wxa(a){for(var c=[],d=0;d<a.length;d++){var g={};g.name=a[d].attr("name");g.value=a[d].attr("value");c.push(g)}return c}static bAa(a){for(var c=[],d=0;d<a.length;d++){var g=f.Zza(a[d]);c.push(g)}return c}static Zza(a){var c={};void 0!==a.attr("name")&&(c.name=a.attr("name"));0!=a.find("param[name=thousandsSeparator]").length&&(c.thousandsSeparator=a.find("param[name=thousandsSeparator]").text());0!=a.find("param[name=decimalSeparator]").length&&
(c.decimalSeparator=a.find("param[name=decimalSeparator]").text());0!=a.find("param[name=decimalPlaces]").length&&(c.decimalPlaces=parseInt(a.find("param[name=decimalPlaces]").text()));0!=a.find("param[name=maxDecimalPlaces]").length&&(c.maxDecimalPlaces=parseInt(a.find("param[name=maxDecimalPlaces]").text()));0!=a.find("param[name=maxSymbols]").length&&(c.maxSymbols=parseInt(a.find("param[name=maxSymbols]").text()));0!=a.find("param[name=currencySymbol]").length&&(c.currencySymbol=a.find("param[name=currencySymbol]").text());
0!=a.find("param[name=currencySymbolAlign]").length&&(c.currencySymbolAlign=a.find("param[name=currencySymbolAlign]").text());0!=a.find("param[name=nullValue]").length&&(c.nullValue=a.find("param[name=nullValue]").text());0!=a.find("param[name=infinityValue]").length&&(c.infinityValue=a.find("param[name=infinityValue]").text());0!=a.find("param[name=divideByZeroValue]").length&&(c.divideByZeroValue=a.find("param[name=divideByZeroValue]").text());0!=a.find("param[name=textAlign]").length&&(c.textAlign=
a.find("param[name=textAlign]").text());0!=a.find("param[name=isPercent]").length&&(c.isPercent=e.P.Zc(a.find("param[name=isPercent]").text()));return c}static HEa(a){var c={};if(0<a.length){for(var d=a.find("hierarchies").children(),g=0;g<d.length;g++){var k=d[g].attr("name");c[k]=d[g].text()}a=a.find("measures").children();for(g=0;g<a.length;g++)k=a[g].attr("name"),c[k]=a[g].text()}return c}static exa(a){for(var c=[],d=0;d<a.length;d++){var g=f.dxa(a[d]);c.push(g)}return c}static dxa(a){var c={};
c.id=e.P.zM();for(var d=0;d<a.childNodes.length;d++)if(a.childNodes[d]instanceof CDATASection){c.formula=a.childNodes[d].textContent.trim();break}void 0!==a.attr("hierarchy")&&(c.hierarchy=a.attr("hierarchy"));void 0!==a.attr("measure")&&(c.measure=a.attr("measure"));void 0!==a.attr("member")&&(c.member=a.attr("member"));void 0!==a.attr("row")&&(c.row=a.attr("row"));void 0!==a.attr("column")&&(c.column=a.attr("column"));void 0!==a.attr("isTotal")&&(c.isTotal=e.P.Zc(a.attr("isTotal")));if(0!=a.find("trueStyle").length)try{c.format=
JSON.parse(a.find("trueStyle").text())}catch(g){c.format=a.find("trueStyle").text()}return c}static lFa(a){if(0!=a.find("param[name=localization]").length)return a.find("param[name=localization]").text()}Owa(){for(var a=z.ba.create("<labels/>"),c=e.u.Ma.R().O,d,g=z.ba.create("<hierarchies/>"),k=c.vc(),m=0;m<k.length;m++){var n=k.fa(m);n.C2&&(d=z.ba.create("<label/>").text(n.label),d.attr("name",n.A),g.append(d))}0==g.kb()&&a.append(g);g=z.ba.create("<measures/>");c=c.Da;for(m=0;m<c.length;m++)k=c.fa(m),
k.C2&&(d=z.ba.create("<label/>").text(k.label),d.attr("name",k.A),g.append(d));0==g.kb()&&a.append(g);return a}vwa(){for(var a=z.ba.create("<conditions/>"),c=0;c<this.Xc.length;c++){var d=this.Xc[c],g=z.ba.create("<condition/>");g.append(z.ba.fi(d.formula));-1<d.row&&g.attr("row",d.row);-1<d.column&&g.attr("column",d.column);-1<d.isTotal&&g.attr("isTotal",1==d.isTotal?"true":"false");d.measure&&0<d.measure.length&&g.attr("measure",d.measure);d.hierarchy&&0<d.hierarchy.length&&g.attr("hierarchy",d.hierarchy);
d.member&&0<d.member.length&&g.attr("member",d.member);if(d.format&&!u.Hc.Og(d.format)){var k=z.ba.create("<trueStyle/>");k.append(z.ba.fi(JSON.stringify(d.format)));g.append(k)}a.append(g)}return a}Iwa(a){var c=z.ba.create("<format/>");c.attr("name",a.name);a.hasOwnProperty("decimalPlaces")&&c.append(z.ba.create("<param/>").attr("name","decimalPlaces").text(a.decimalPlaces));a.hasOwnProperty("maxDecimalPlaces")&&c.append(z.ba.create("<param/>").attr("name","maxDecimalPlaces").text(a.maxDecimalPlaces));
a.hasOwnProperty("maxSymbols")&&c.append(z.ba.create("<param/>").attr("name","maxSymbols").text(a.maxSymbols));a.hasOwnProperty("currencySymbolAlign")&&c.append(z.ba.create("<param/>").attr("name","currencySymbolAlign").text(a.currencySymbolAlign));a.hasOwnProperty("thousandsSeparator")&&c.append(z.ba.create("<param/>").attr("name","thousandsSeparator").append(z.ba.fi(a.thousandsSeparator)));a.hasOwnProperty("decimalSeparator")&&c.append(z.ba.create("<param/>").attr("name","decimalSeparator").append(z.ba.fi(a.decimalSeparator)));
a.hasOwnProperty("currencySymbol")&&c.append(z.ba.create("<param/>").attr("name","currencySymbol").append(z.ba.fi(a.currencySymbol)));a.hasOwnProperty("nullValue")&&c.append(z.ba.create("<param/>").attr("name","nullValue").append(z.ba.fi(a.nullValue)));a.hasOwnProperty("infinityValue")&&c.append(z.ba.create("<param/>").attr("name","infinityValue").append(z.ba.fi(a.infinityValue)));a.hasOwnProperty("divideByZeroValue")&&c.append(z.ba.create("<param/>").attr("name","divideByZeroValue").append(z.ba.fi(a.divideByZeroValue)));
a.hasOwnProperty("textAlign")&&c.append(z.ba.create("<param/>").attr("name","textAlign").text(a.textAlign));a.hasOwnProperty("isPercent")&&c.append(z.ba.create("<param/>").attr("name","isPercent").text(a.isPercent));return c}op(){var a=z.ba.create("<config/>"),c=this.la.op(this.PA);0==c.kb()&&a.append(c);c=this.slice.op(this.PA);0==c.kb()&&a.append(c);c=this.Zx.op();0==c.kb()&&a.append(c);c=this.Owa();0==c.kb()&&a.append(c);c=this.options.op();"string"==typeof this.Je&&c.append(z.ba.create("<param/>").attr("name",
"localization").append(z.ba.fi(this.Je)));a.append(c);c=this.vwa();0==c.kb()&&a.append(c);if(null!=this.Fe){c=!l.C.F.uW&&20<this.Fe.length;for(var d=0;d<this.Fe.length;d++){var g=this.Fe[d];(""==g.name||this.slice.Un.Bb(g.name)&&(!c||this.slice.Un.getItem(g.name)))&&a.append(this.Iwa(g))}}return a}Sa(){const a={};var c=this.la.Sa(this.PA);u.Hc.Og(c)||(a.dataSource=c);c=this.slice.Sa(this.PA,this.la.mapping);u.Hc.Og(c)||(a.slice=c);c=this.options.Sa();u.Hc.Og(c)||(a.options=c);c=this.uwa();0<c.length&&
(a.conditions=c);if(null!=this.Fe&&0!=this.Fe.length){c=[];const d=!l.C.F.uW&&20<this.Fe.length;for(let g=0;g<this.Fe.length;g++){const k=this.Fe[g];(""==k.name||this.slice.Un.Bb(k.name)&&(!d||this.slice.Un.getItem(k.name)))&&c.push(k)}a.formats=c}c=this.Zx.Sa(this.slice);u.Hc.Og(c)||(a.tableSizes=c);null!=this.Sm&&0!=this.Sm.length&&(a.customFields=this.Sm);null!=this.Je&&""!=this.Je&&(a.localization=this.Je);null!=this.version&&0<this.version.length&&(a.version=this.version);null!=this.WL&&0<this.WL.length&&
(a.creationDate=this.WL);return a}uwa(){for(var a=[],c=0;c<this.Xc.length;c++){var d=this.Xc[c],g={};g.formula=d.formula;-1<d.row&&(g.row=d.row);-1<d.column&&(g.column=d.column);-1<d.isTotal&&(g.isTotal=1==d.isTotal?!0:!1);d.measure&&0<d.measure.length&&(g.measure=d.measure);d.aggregation&&0<d.aggregation.length&&"none"!==d.aggregation&&(g.aggregation=d.aggregation);d.hierarchy&&0<d.hierarchy.length&&(g.hierarchy=d.hierarchy);d.member&&0<d.member.length&&(g.member=d.member);d.format&&!u.Hc.Og(d.format)&&
(g.format=d.format);a.push(g)}return a}static um(a){var c={};if(void 0==a)return c;null!=a.customFields&&(c.customFields=a.customFields);null!=a.labels&&(c.labels=a.labels);null!=a.slice&&(a.options||(a.options={}),void 0==a.options.useOlapFormatting&&void 0!=a.slice.useOlapFormatting&&(a.options.useOlapFormatting=a.slice.useOlapFormatting),void 0==a.options.showMemberProperties&&void 0!=a.slice.showMemberProperties&&(a.options.showMemberProperties=a.slice.showMemberProperties));null!=a.dataSource&&
(a.options||(a.options={}),void 0==a.options.useOlapFormatting&&void 0!=a.dataSource.useOlapFormatting&&(a.options.useOlapFormatting=a.dataSource.useOlapFormatting),void 0==a.options.showMemberProperties&&void 0!=a.dataSource.showMemberProperties&&(a.options.showMemberProperties=a.dataSource.showMemberProperties),a.slice&&void 0==a.slice.memberProperties&&void 0!=a.dataSource.memberProperties&&(a.slice.memberProperties=a.dataSource.memberProperties));c.connectionInfo=e.u.O.Et.um(a.connectionInfo?
a.connectionInfo:a);c.slice=h.vo.um(a.slice?a.slice:a);c.options=l.C.Oq.um(a.options?a.options:a);c.tableSizes=h.Yv.um(a.tableSizes?a.tableSizes:a);null!=a.formats&&0<a.formats.length&&(c.formats=a.formats);null!=a.conditions&&0<a.conditions.length&&(c.conditions=a.conditions);null!=a.localization&&(c.localization=a.localization);null!=a.version&&0<a.version.length&&(c.version=a.version);null!=a.creationDate&&0<a.creationDate.length&&(c.creationDate=a.creationDate);return c}merge(a){if(e.v(a))return this;
a=f.um(a);var c=f.um(this),d;for(d in a)a.hasOwnProperty(d)&&("connectionInfo"==d?e.u.O.Et.xb(a.connectionInfo).kb||(c[d]=a[d]):"options"==d?(this.options.jE(a[d]),c[d]=l.C.Oq.um(this.options)):c[d]=a[d]);return f.xb(c)}get kb(){return e.v(this.la)||this.la.kb}}h.By=f;class b{}b.Sm=[];h.rJ=b})(l.hb||(l.hb={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends w.Mh{ada(b){b?this.Ha(new h.W9(b)):this.Ha(new h.zQ(l.B.j.p9))}Nha(b){try{var a=-1;if(-1<(a=b.indexOf("</config>"))){var c=z.ba.create(b.substring(0,a+9));return c?h.By.Jk(c):null}a=b.indexOf("/**----**");return JSON.parse(-1<a?b.substring(0,a):b)}catch(d){return console.error(d),null}}iU(b){var a=new e.Yr(new ArrayBuffer(0),0,e.Yr.mJ);a.nNa(b);return a.byteLength}}h.X9=f})(l.hb||(l.hb={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(b){this.type=e.u.i.tb.NONE;this.Rfa=!1;this.pg=[];this.Uj=[];this.Fm=[];this.OK=[];this.naa=this.fG=this.pG=!1;this.Ac=b}clear(){this.HC();this.bwa()}HC(){this.type=e.u.i.tb.NONE;this.query=this.measure=null;this.Fm=[]}bwa(){this.pg=[];this.Uj=[];this.fG=this.pG=!1;this.kC=[];this.MR=!1}Hi(b=!1){if(b)return this.pG&&(this.Uj=[],0<this.pg.length&&(this.Uj=this.uca(this.pg)),this.pG=!1),this.Uj;this.fG&&(this.pg=[],0<this.Uj.length&&(this.pg=
this.uca(this.Uj)),this.fG=!1);return this.pg}ILa(b,a=!1,c=[]){var d=this.Ac.ua.fa(1);d=this.Ac.nv(d.A);a?(this.i3(b,d)&&(b=[]),this.fG=!0,this.Uj=b,this.pg=[]):(this.i3(b,d)&&(b=[]),this.pG=!0,this.pg=b,this.Uj=[]);this.OK=c}get Z2(){return 0<this.Uj.length}get Fh(){return this.Gh||this.ji||this.Pz||this.mx||this.hN||this.vU}get Gh(){return 0<this.pg.length||0<this.Uj.length||0<this.OK.length}get Wu(){return this.ji||this.Pz||this.mx||this.hN||this.vU}get $Ca(){return this.Wu&&0<this.Fm.length}get ZCa(){return this.Wu&&
0<this.Uj.length}get ji(){return this.type===e.u.i.tb.wo}get Pz(){return this.type===e.u.i.tb.Ua}get mx(){return this.type===e.u.i.tb.fl}get hN(){return this.type===e.u.i.tb.jb}get vU(){return this.type===e.u.i.tb.ec}get T2(){return this.naa}set T2(b){this.naa=b}clone(){var b=new f(this.Ac);b.type=this.type;b.measure=this.measure;b.query=this.query&&this.query.clone?this.query.clone():u.Hc.zj(this.query);e.v(this.pg)||(b.pg=this.pg.slice());e.v(this.Fm)||(b.Fm=this.Fm.slice());b.pG=this.pG;e.v(this.Uj)||
(b.Uj=this.Uj.slice());b.fG=this.fG;e.v(this.kC)||(b.kC=this.kC.slice());b.MR=this.MR;return b}Sa(){var b={};this.Gh&&(this.T2?this.Z2?b.exclude=this.Ac.vr(this.Hi(!0)):b.members=this.Ac.vr(this.Hi()):this.Hi().length<this.Ac.Zi/2?b.members=this.Ac.vr(this.Hi()):b.exclude=this.Ac.vr(this.Hi(!0)),l.C.F.hS&&0<this.OK.length&&(b.members?b.members=b.members.concat(this.OK):b.exclude=b.exclude.concat(this.OK)));!e.v(this.measure)&&this.ji&&(b.measure=this.measure.Sa());!e.v(this.query)&&this.Wu&&(b.query=
this.query.Sa());0<this.Fm.length&&this.Wu&&(b.include=this.Ac.vr(this.Fm));return b}static xb(b,a,c=!1){if(e.v(b))return null;f.mva(b);var d=new f(a);d.T2=c;d.type=f.rya(b,a);d.type==e.u.i.tb.wo?f.LJa(b,d):d.type==e.u.i.tb.Ua?f.jJa(b,d,a.getTimezoneOffset()):d.type==e.u.i.tb.fl?f.wJa(b,d):d.type==e.u.i.tb.jb?f.EJa(b,d):d.type==e.u.i.tb.ec&&f.JJa(b,d);f.DJa(b,d,a);!e.v(b.include)&&d.Wu&&(d.Fm=a.Td?f.YV(b.include,a):b.include);return d}static mva(b){if("top"==b.type||"bottom"==b.type)b.query={[b.type]:b.quantity},
b.type=e.u.i.tb.wo,delete b.quantity;!e.v(b.members)&&b.negation&&(b.exclude=b.members,delete b.members,delete b.negation)}static rya(b,a){return e.v(b.type)?e.v(b.query)?e.u.i.tb.NONE:e.v(b.measure)?f.ZT(a):e.u.i.tb.wo:e.u.i.tb.validate(b.type)}static YV(b,a){if(e.v(b))return null;for(var c=[],d=0;d<b.length;d++)if("number"===typeof b[d]&&-1<b[d])c.push(b[d]);else{var g="string"==typeof b[d]?b[d]:b[d].uniqueName;g=e.u.ze.Ws(g);g=a.ex(g);-1<g&&c.push(g)}return c}static ZT(b){if(e.u.Ma.R().ga.Ec&&
e.u.Ma.R().ga.Aa!==e.u.i.ra.Cc&&e.u.Ma.R().ga.Aa!==e.u.i.ra.API&&e.u.Ma.R().ga.Aa!==e.u.i.ra.kg)return e.u.i.tb.NONE;if(e.u.Ma.R().ga.Aa===e.u.i.ra.API||e.u.Ma.R().ga.Aa===e.u.i.ra.kg)return b.type===e.u.i.Ic.yp?e.u.i.tb.jb:b.type===e.u.i.Ic.Ua?e.u.i.tb.Ua:e.u.i.tb.fl;var a=b.ua.fa(1).type;return b.type===e.u.i.Ic.Ua?2!=b.ua.length||a!==e.u.i.ib.Sl&&a!==e.u.i.ib.nh&&a!==e.u.i.ib.un?e.u.i.tb.Ua:e.u.i.tb.NONE:a===e.u.i.ib.$c||e.u.Ma.R().ga.Ec?e.u.i.tb.fl:a===e.u.i.ib.jb?e.u.i.tb.jb:a===e.u.i.ib.ec?
e.u.i.tb.ec:e.u.i.tb.NONE}static DJa(b,a,c){const d=b.members||b.exclude;if(!e.v(d)){var g=[],k=[],m=[];b=e.v(b.members);for(let n=0;n<d.length;n++){if("number"==typeof d[n]&&-1<d[n]){g.push(d[n]);continue}let p="string"===typeof d[n]?d[n]:d[n].A;p=e.u.ze.Ws(p);k.push(p);const t=c.wia(p);-1<t&&!g.some(r=>r==t)?g.push(t):c.Td&&(c.Td=!1,console.warn("Error in predefined filter or members have not been loaded yet: "+p),m.push(d[n]))}e.u.Ma.R().ga.Ec&&(a.yI=b,a.Dl=k.length>g.length?k:[]);m=l.C.F.hS?m:
[];a.ILa(g,b,m)}}static LJa(b,a){a.query=h.ym.xb(b.query,e.u.i.tb.wo);a.measure="string"==typeof b.measure?new h.oh(e.u.ze.bh(b.measure)):h.oh.xb(b.measure);if(e.v(a.query)||e.v(a.measure))a.type=e.u.i.tb.NONE,a.measure=null}static jJa(b,a,c){a.query=h.ym.xb(b.query,e.u.i.tb.Ua,c);e.v(a.query)&&(a.type=e.u.i.tb.NONE)}static wJa(b,a){a.query=h.ym.xb(b.query,e.u.i.tb.fl);e.v(a.query)&&(a.type=e.u.i.tb.NONE)}static EJa(b,a){a.query=h.ym.xb(b.query,e.u.i.tb.jb);e.v(a.query)&&(a.type=e.u.i.tb.NONE)}static JJa(b,
a){a.query=h.ym.xb(b.query,e.u.i.tb.ec);e.v(a.query)&&(a.type=e.u.i.tb.NONE)}i3(b,a){return 0==a.length?!1:a.reduce((c,d)=>{if(b.some(k=>k==d))return c;const g=this.Ac.za(d).children;return c&&this.i3(b,g)},!0)}uca(b){const a=new e.BF;for(var c=1;c<this.Ac.fn;c++)a.add(c);for(c=0;c<b.length;c++){const d=this.Ac.za(b[c]);a.delete(d.ordinal);this.mW(a,d);this.ria(a,d.parent)}this.Rba(a,this.Ac.pd);this.Ac.Ts&&this.rKa(a);return a.Pc()}rKa(b){for(let a=b.size-1;0<=a;a--){const c=this.Ac.za(b[a]);c.parent||
b.delete(c.ordinal)}}Rba(b,a){for(let c=0;c<a.children.length;c++){const d=this.Ac.za(a.children[c]);0<d.children.length&&(b.has(d.ordinal)?b.has(d.children[0])&&this.mW(b,d):this.Rba(b,d))}}mW(b,a){if(a){a=a.children;for(var c=0;c<a.length;c++)b.delete(a[c]),this.mW(b,this.Ac.za(a[c]))}}ria(b,a){a&&!a.dc&&(b.delete(a.ordinal),a.parent&&this.ria(b,a.parent))}Cza(){var b=null;this.Pz&&(b=this.yza(this.query));this.mx&&(b=this.Fza(this.query));this.hN&&(b=this.Dza(this.query));this.vU&&(b=this.Gza(this.query));
if(!e.v(b)&&0<this.Fm.length)for(var a=0;a<this.Fm.length;a++)b.add(this.Fm[a]);if(!e.v(b)&&0<this.Uj.length)for(a=0;a<this.Uj.length;a++)b.delete(this.Uj[a]),this.mW(b,this.Ac.za(this.Uj[a]));return b.Pc()}yza(b){b=b.MS(this.Ac.getTimezoneOffset());var a=new e.BF,c=0<this.pg.length,d=2<this.Ac.ua.length,g=c?this.pg:null;c&&d&&(g=this.Mea(g));for(var k=c?g.length:this.Ac.Zi,m=0;m<k;m++){var n=c?g[m]:m;if(d){var p=this.Ac.za(n);if(p.level.type===e.u.i.ib.Sl||p.level.type===e.u.i.ib.Nt||p.level.type===
e.u.i.ib.nh)continue}b.va===e.u.i.Eb.ho?this.K3(this.Ac.zD(n).toLowerCase(),b)&&a.add(n):this.EFa(this.Ac.SM(n),b)&&a.add(n)}return a}Fza(b){var a=new e.BF,c=this.Ac.ic?this.Ac.ic.yb:1,d=0<this.pg.length,g=2<this.Ac.ua.length,k=d?this.pg:null;d&&g&&(k=this.Mea(k));for(var m=d?k.length:this.Ac.Zi,n=0;n<m;n++){var p=d?k[n]:n;1<c&&g&&this.Ac.za(d?k[n]:n).level.yb<c||this.K3(this.Ac.zD(p).toLowerCase(),b)&&a.add(p)}return a}Dza(b){for(var a=new e.BF,c=0<this.pg.length,d=c?this.pg:null,g=c?d.length:this.Ac.Zi,
k=0;k<g;k++){var m=c?d[k]:k;this.uV(this.Ac.SM(m),b)&&a.add(m)}return a}Gza(b){b=b.jxa();for(var a=new e.BF,c=0<this.pg.length,d=c?this.pg:null,g=c?d.length:this.Ac.Zi,k=0;k<g;k++){var m=c?d[k]:k;b.va==e.u.i.Eb.ho?this.K3(this.Ac.zD(m).toLowerCase(),b)&&a.add(m):this.uV(this.Ac.SM(m),b)&&a.add(m)}return a}K3(b,a){if(e.v(a.value))return!1;if(a.va===e.u.i.Eb.EQUAL)return b===a.value.toLowerCase();if(a.va===e.u.i.Eb.Tf)return b!==a.value.toLowerCase();if(a.va===e.u.i.Eb.kF)return 0==b.indexOf(a.value.toLowerCase());
if(a.va===e.u.i.Eb.rB)return 0!=b.indexOf(a.value.toLowerCase());if(a.va===e.u.i.Eb.eB){var c=b.lastIndexOf(a.value.toLowerCase());return 0<=c&&c+a.value.length==b.length}if(a.va===e.u.i.Eb.tB)return c=b.lastIndexOf(a.value.toLowerCase()),0>c||c+a.value.length!=b.length;if(a.va===e.u.i.Eb.ho)return c=b.indexOf(a.value.toLowerCase()),0<=c;if(a.va===e.u.i.Eb.sB)return c=b.indexOf(a.value.toLowerCase()),0>c;if(a.va===e.u.i.Eb.GREATER)return b>a.value.toLowerCase();if(a.va===e.u.i.Eb.dl)return b>=a.value.toLowerCase();
if(a.va===e.u.i.Eb.LESS)return b<a.value.toLowerCase();if(a.va===e.u.i.Eb.gl)return b<=a.value.toLowerCase();if(a.va===e.u.i.Eb.mh)return c=a.value[0].toLowerCase(),a=a.value[1].toLowerCase(),c<a?b>=c&&b<=a:b>=a&&b<=c;if(a.va===e.u.i.Eb.Tg)return c=a.value[0].toLowerCase(),a=a.value[1].toLowerCase(),c<a?b<c||b>a:b<a||b>c}uV(b,a){if(e.v(a.value))return!1;if(a.va===e.u.i.Ug.EQUAL)return b===a.value;if(a.va===e.u.i.Ug.Tf)return b!==a.value;if(a.va===e.u.i.Ug.GREATER)return b>a.value;if(a.va===e.u.i.Ug.dl)return b>=
a.value;if(a.va===e.u.i.Ug.LESS)return b<a.value;if(a.va===e.u.i.Ug.gl)return b<=a.value;if(a.va===e.u.i.Ug.mh){var c=Math.min(a.value[0],a.value[1]);a=Math.max(a.value[0],a.value[1]);return b>=c&&b<=a}if(a.va===e.u.i.Ug.Tg)return c=Math.min(a.value[0],a.value[1]),a=Math.max(a.value[0],a.value[1]),b<c||b>a}EFa(b,a){if(e.v(a.value))return!1;if(a.va===e.u.i.cc.iF){var c=a.value.getTime();return b<c}if(a.va===e.u.i.cc.jF)return c=a.value.getTime(),b<c+864E5;if(a.va===e.u.i.cc.fF)return c=a.value.getTime(),
b>=c+864E5;if(a.va===e.u.i.cc.gF)return c=a.value.getTime(),b>=c;if(a.va===e.u.i.cc.mh)return c=Math.min(a.value[0].getTime(),a.value[1].getTime()),a=Math.max(a.value[0].getTime(),a.value[1].getTime()),b>=c&&b<=a;if(a.va===e.u.i.cc.Tg)return c=Math.min(a.value[0].getTime(),a.value[1].getTime()),a=Math.max(a.value[0].getTime(),a.value[1].getTime()),b<c||b>a}set Dl(b){this.kC=b}get Dl(){null==this.kC&&(this.kC=[]);return this.kC}get yI(){return this.MR}set yI(b){this.MR=b}Fw(){if(0<this.Dl.length){let c=
e.u.Ma.R().ga;for(var b=0;b<this.Dl.length;b++){if(c.Ec&&!1===c.Nm||this.Ac.type!==e.u.i.Ic.Ua||this.Ac.ua.fa(1).type!==e.u.i.ib.Ua&&this.Ac.ua.fa(1).type!==e.u.i.ib.Mc)var a=this.Ac.Ib(this.Dl[b]);else{if(l.C.F.qr&&"null"===this.Dl[b])a=null;else if(8>this.Dl[b].length||/\D+/.test(this.Dl[b].slice(1))){a=this.Ac.ua.fa(1).type===e.u.i.ib.Mc?l.C.F.Ek:l.C.F.Up;a=this.Ac.mapping.La(this.Ac.A,"format",a);const d=new e.Rf(this.Dl[b],{Vy:!1,format:a});d.Kf(u.Lh.sg(a));a=d.getTime()}else a=parseInt(this.Dl[b]);
a=isNaN(a)?this.Ac.Ib(this.Dl[b]):this.Ac.Pu(a)}null!=a&&(this.yI?this.Uj.push(a.ordinal):this.pg.push(a.ordinal))}this.Dl=[]}if(this.Fm||0<this.Fm.length)this.Fm=f.YV(this.Fm,this.Ac)}Mea(b){for(var a=[],c=0;c<b.length;c++)a.push(b[c]),this.hia(a,this.Ac.za(b[c]));return a}hia(b,a){if(a&&a.children&&0<a.children.length){a=a.children;for(var c=0;c<a.length;c++)b.push(a[c]),this.hia(b,this.Ac.za(a[c]))}}}h.lB=f})(l.hb||(l.hb={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(b=null,a=null){this.va=b;this.value=a}clone(){return new f(this.va,this.value)}static xb(b,a,c=null){if(e.v(b))return null;let d=null;a==e.u.i.tb.wo?(e.u.i.Wb.ui.some(g=>{if(!e.v(b[g]))return d=new f(g,parseFloat(b[g])),!0}),e.u.i.Wb.Uf.some(g=>{if(!e.v(b[g]))return d=new f(g,[parseFloat(b[g][0]),parseFloat(b[g][1])]),!0})):a==e.u.i.tb.Ua?(e.u.i.cc.ui.some(g=>{if(!e.v(b[g])){const k=new e.Rf(b[g]);k.Kf(c,!1);d=new f(g,k);return!0}}),e.u.i.cc.Uf.some(g=>
{if(!e.v(b[g])){const k=new e.Rf(b[g][0]);k.Kf(c,!1);const m=new e.Rf(b[g][1]);m.Kf(c,!1);if(k&&m)return d=new f(g,k.getTime()<m.getTime()?[k,m]:[m,k]),l.C.F.rM||(d.value[1]=d.value[1].p6("day",l.C.F.Yw)),!0}}),e.u.i.cc.zy.some(g=>{if(e.u.i.cB.ih(b[g]))return d=new f(g,b[g].toLowerCase()),!0}),e.v(b[e.u.i.Eb.ho])||(d=new f(e.u.i.Eb.ho,b[e.u.i.Eb.ho]))):a==e.u.i.tb.fl?(e.u.i.Eb.ui.some(g=>{if(!e.v(b[g]))return d=new f(g,b[g]),!0}),e.u.i.Eb.Uf.some(g=>{if(!e.v(b[g]))return d=new f(g,[b[g][0],b[g][1]]),
!0})):a==e.u.i.tb.jb?(e.u.i.Ug.ui.some(g=>{if(!e.v(b[g]))return d=new f(g,parseFloat(b[g])),!0}),e.u.i.Ug.Uf.some(g=>{if(!e.v(b[g]))return d=new f(g,[parseFloat(b[g][0]),parseFloat(b[g][1])]),!0})):a==e.u.i.tb.ec&&(e.u.i.il.ui.some(g=>{if(!e.v(b[g]))return d=new f(g,b[g]),!0}),e.u.i.il.Uf.some(g=>{if(!e.v(b[g]))return d=new f(g,[b[g][0],b[g][1]]),!0}),e.v(b[e.u.i.Eb.ho])||(d=new f(e.u.i.Eb.ho,b[e.u.i.Eb.ho])));return d}Sa(){let b=this.value;const a=l.C.F.rM;b instanceof e.Rf&&(b=a?b.toString():b.format("yyyy-MM-dd"));
Array.isArray(b)&&b[0]instanceof e.Rf&&(b=[a?b[0].toString():b[0].format("yyyy-MM-dd"),a?b[1].toString():b[1].format("yyyy-MM-dd")]);return{[this.va]:b}}MS(b){if(!l.C.F.rM&&(this.va==e.u.i.cc.EQUAL||this.va==e.u.i.cc.Tf)){b=this.value.clone().Ll();var a=this.value.clone().ay();return new f(this.va==e.u.i.cc.Tf?e.u.i.cc.Tg:e.u.i.cc.mh,[b,a])}if(0<=e.u.i.cc.zy.indexOf(this.va)&&e.u.i.cB.ih(this.value)){a=(new e.Rf).Kf(b);this.va==e.u.i.cc.hP?(a.t6(this.value,l.C.F.Yw),a=(new e.Rf(a.getTime())).Kf(b).Ll()):
this.va==e.u.i.cc.oQ?(a.p6(this.value,l.C.F.Yw),a.setMilliseconds(1E3),a=(new e.Rf(a.getTime())).Kf(b).Ll()):this.va==e.u.i.cc.UP&&(a.t6(this.value,l.C.F.Yw),a.setMilliseconds(-1),a.t6(this.value,l.C.F.Yw),a=(new e.Rf(a.getTime())).Kf(b).Ll());let c=a.clone().p6(this.value,l.C.F.Yw).FMa();c=(new e.Rf(c.getTime())).Kf(b).ay();return new f(e.u.i.cc.mh,[a,c])}return this}jxa(){return 0<=e.u.i.il.ui.indexOf(this.va)?new f(this.va,this.r6(this.value)):0<=e.u.i.il.Uf.indexOf(this.va)?new f(this.va,[this.r6(this.value[0]),
this.r6(this.value[1])]):this}r6(b){const a=b.match(/[s|m|h|d]$/);if(!e.v(a)){const c=parseFloat(b.substr(0,b.length-1));if("s"==a[0])return c;if("m"==a[0])return 60*c;if("h"==a[0])return 3600*c;if("d"==a[0])return 86400*c}return parseInt(b)}}h.ym=f})(l.hb||(l.hb={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.X9{constructor(){super();this.b1="\x3c!--";this.pda="/**----**"}load(b,a){this.url=b;this.pa=new z.tk;this.pa.dataType=z.bB.DB;this.pa.N(w.ia.te,c=>this.bt(c));this.pa.N(w.ia.Qc,()=>this.Jj());this.pa.N(w.ia.xa,()=>this.Rb());this.pa.$h(a);this.pa.load(b)}bt(){var b=0;null!=this.pa&&-1<(b=this.pa.response.indexOf("</config>"))&&b+this.pda.length+1<this.pa.response.length&&this.Jj()}Jj(){if(null!=this.pa){this.pa.Vd(w.ia.Qc);var b=this.Nha(this.pa.response);
if(b instanceof h.By){if(b.la instanceof e.u.local.csv.LF&&1==b.la.Fk){var a=b.la;a.filename=this.pa.url;a.embeddedDataOffset=this.iU(this.pa.response.substring(0,this.pa.response.indexOf("</config>")+9)+"\n");var c=this.pa.response.indexOf(this.b1);a.isOCSV2Data=this.pa.response.substring(c,c+this.b1.length)==this.b1;b.la=a}}else e.v(b)||e.v(b.dataSource)?l.C.F.H6&&this.Rb(l.B.j.q9):1==b.dataSource.embedded&&(b.dataSource.filename=this.pa.url,b.dataSource.embeddedDataOffset=this.iU(this.pa.response.substring(0,
this.pa.response.indexOf(this.pda))),b.dataSource.isOCSV2Data=!0);this.ada(b);this.dispose()}}Rb(b=""){this.pa.Vd(w.ia.te);this.pa.Vd(w.ia.Qc);this.pa.Vd(w.ia.xa);if(e.ka(b)){var a="";null!=this.pa&&null!=this.pa.response&&""!=this.pa.response&&(a=l.Tb.validate(this.pa.response),a=700<a.length?a.substr(0,700):a,a=e.P.bind(l.B.j.iQ,a).replace(/'/g,""));b=l.Tb.valid(this.url)?this.url:l.Tb.validate(this.url);b=e.P.bind(l.B.j.ZJ,b);this.Ha(new h.zQ(b,a))}else this.Ha(new h.zQ(b));this.dispose()}dispose(){null!=
this.pa&&(this.pa.Vd(),this.pa.dispose(),this.pa=null)}}h.Zra=f})(l.hb||(l.hb={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.X9{constructor(){super()}load(){this.file=new z.B8;this.file.N(w.ia.to,()=>this.DIa());this.file.N(w.ia.Qc,()=>this.Jj());this.file.N(w.ia.BX,()=>this.AV());this.file.N(w.ia.xa,()=>this.Rb());this.file.Iba([".json",".js"])}DIa(){null!=this.file&&this.file.load(z.Rqa.ARRAY_BUFFER)}Jj(){try{this.wya();var b=new e.Yr(this.file.response,0,e.Yr.mJ),a=b.iW(b.byteLength),c=this.Nha(a);if(c instanceof h.By){if(c.la instanceof e.u.local.csv.LF&&1==c.la.Fk){var d=
c.la;d.qda=this.file.response;d.$0=this.iU(a.substring(0,a.indexOf("</config>")+9)+"\n");c.la=d}}else e.v(c)||e.v(c.dataSource)?l.C.F.H6&&this.Rb(l.B.j.q9):1==c.dataSource.Fk&&(c.dataSource.embeddedDataToLoad=this.file.response,c.dataSource.embeddedDataOffset=this.iU(a.substring(0,a.indexOf("/**----**"))));this.ada(c);this.dispose()}catch(g){console.error(g),this.Rb()}}Rb(b=""){e.ka(b)&&(b=e.P.bind(l.B.j.ZJ,""));this.Ha(new h.zQ(b));this.dispose()}wya(){this.Ya(h.Ph.kK)}AV(){this.Ya(h.Ph.ds);this.dispose()}dispose(){null!=
this.file&&(this.file.Vd(),this.file.dispose(),this.file=null)}}h.Moa=f})(l.hb||(l.hb={}))})(e.model||(e.model={}))})(q||(q={}));(function(e){(function(l){(function(h){class f{static MA(b){return b==f.AP||b==f.IY||b==f.Y6||b==f.wB}}f.AP="file";f.IY="server";f.Y6="binary";f.wB="plain";h.up=f})(l.hb||(l.hb={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(a,c,d){this.uk=this.A="";this.index=-1;this.label="";void 0!=a&&(this.A=a);void 0!=c&&(this.$=c);void 0!=d&&(this.index=d)}get $(){return this.uk}set $(a){e.u.i.ea.MA(a)&&(this.uk=a)}static xb(a){if(null==a)return null;var c=new f;void 0!=a.uniqueName&&(c.A=a.uniqueName);void 0!=a.aggregation&&(c.$=a.aggregation);void 0!=a.index&&(c.index=a.index);void 0!=a.label&&(c.label=a.label);return c}Sa(){var a={};a.uniqueName=this.A;""!==this.$&&(a.aggregation=
this.$);return a}}h.oh=f;class b{constructor(){this.rows=[];this.Ka=[];this.qb=[];this.Da=[];this.hk={};this.Yj={};this.Ww=[];this.Vw=[];this.Tw=[];this.Sw=[];this.Xf=this.hf=this.kf=this.lf=!1;this.Zg=[];this.$g=null;this.cd=[];this.Ij={};this.Un=new e.ub}static eha(a){if(0<=b.fd(a.rows)){var c=b.fd(a.Ka);0<=c&&(a.Ka[c]=a.Ka[0],a.Ka.shift())}}static fd(a){for(var c=0;c<a.length;c++)if("[Measures]"==a[c].uniqueName)return c;return-1}static hW(a){for(var c=[],d,g=0;g<a.length;g++){d=[];d.push(null!=
a[g].measure?a[g].measure:"");if(null!=a[g].tuple)for(var k=0;k<a[g].tuple.length;k++)d.push(a[g].tuple[k]);c.push(d)}return c}static gW(a){for(var c=[],d,g=0;g<a.length;g++){d=[];d.push(null!=a[g].level?a[g].level:"");d.push(null!=a[g].measure?a[g].measure:-1);if(null!=a[g].tuple){d.push(a[g].tuple[a[g].tuple.length-1]);for(var k=0;k<a[g].tuple.length;k++)d.push(a[g].tuple[k])}c.push(d)}return c}static xS(a,c){if(!e.v(c)&&!c.kb)for(let g=0;g<a.length;g++){var d=a[g].uniqueName;let k=c.La(d,"caption");
e.v(k)||delete a[g].caption;d=c.La(d,"aggregations");e.v(d)||delete a[g].availableAggregations}}static xb(a,c=null){if(null==a)return null;a instanceof b||(a=b.um(a));var d=new b;null!=a.measures&&a.measures.length&&(d.Da=a.measures);null==c&&(c=l.Wa.R().Fa.ga);null!=a.pages&&a.pages.length&&(d.qb=b.F2(a.pages));null!=a.columns&&a.columns.length&&(d.Ka=b.F2(a.columns));null!=a.rows&&a.rows.length&&(d.rows=b.F2(a.rows));null!=a.flatOrder&&a.flatOrder.length&&(d.Zg=a.flatOrder);null!=a.flatSort&&a.flatSort.length&&
(d.$g=a.flatSort);null!=a.drillThrough&&a.drillThrough.length&&(d.cd=a.drillThrough);if(void 0!==a.memberProperties&&Array.isArray(a.memberProperties))for(let g=0;g<a.memberProperties.length;g++){const k=a.memberProperties[g];null!=k&&(e.v(d.Ij)&&(d.Ij={}),d.Ij[k.levelName]=k.properties)}b.eha(d);b.xS(d.Da,c.mapping);b.xS(d.qb,c.mapping);b.xS(d.Ka,c.mapping);b.xS(d.rows,c.mapping);null!=a.rowSorting&&(d.hk=a.rowSorting);null!=a.columnSorting&&(d.Yj=a.columnSorting);null!=a.expandAll&&(d.lf=d.kf=a.expandAll);
null!=a.expandAllRows&&(d.lf=a.expandAllRows);null!=a.expandAllColumns&&(d.kf=a.expandAllColumns);null!=a.expandedRows&&a.expandedRows.length&&(d.Ww=a.expandedRows);null!=a.expandedColumns&&a.expandedColumns.length&&(d.Vw=a.expandedColumns);null!=a.drillAll&&(d.hf=d.Xf=a.drillAll);null!=a.drillAllRows&&(d.hf=a.drillAllRows);null!=a.drillAllColumns&&(d.Xf=a.drillAllColumns);null!=a.drilledRows&&a.drilledRows.length&&(d.Tw=a.drilledRows);null!=a.drilledColumns&&a.drilledColumns.length&&(d.Sw=a.drilledColumns);
return d}static F2(a){for(var c=[],d=0;d<a.length;d++){c[d]={};for(var g in a[d])"sort"==g?c[d].sortName=a[d].sort:c[d][g]=a[d][g]}return c}static Jk(a){var c=new b,d=a.find("defaultSlice axes axis[name=rows]");c.rows=b.G2(d.find("hierarchy"));c.hk=b.Jja(d.find("sort"));c.Ww=b.yda(d.find("expanded tuple"));c.Tw=b.lda(d.find("drilled tuple"));d=a.find("defaultSlice axes axis[name=columns]");c.Ka=b.G2(d.find("hierarchy"));c.Yj=b.Jja(d.find("sort"));c.Vw=b.yda(d.find("expanded tuple"));c.Sw=b.lda(d.find("drilled tuple"));
b.eha(c);d=a.find("defaultSlice axes axis[name=pages]");c.qb=b.G2(d.find("hierarchy"));c.Da=b.DFa(a.find("defaultSlice measures measure"));c.Zg=b.Pza(a.find("defaultSlice flatOrder hierarchyName"));d=a.find("params");0!=d.find("param[name=expandAll]").length&&(c.lf=c.kf=e.P.Zc(d.find("param[name=expandAll]").text()));0!=d.find("param[name=drillAll]").length&&(c.hf=c.Xf=e.P.Zc(d.find("param[name=drillAll]").text()));a=a.find("defaultSlice");0!=a.find("expandAll").length&&(c.lf=c.kf=e.P.Zc(a.find("expandAll").text()));
0!=a.find("drillAll").length&&(c.hf=c.Xf=e.P.Zc(a.find("drillAll").text()));return c}static G2(a){for(var c=[],d=0;d<a.length;d++){var g=b.eDa(a[d]);c.push(g)}return c}static eDa(a){var c={};c.dimensionName=a.find("dimensionName").text().trim();c.uniqueName=a.find("hierarchyName").text().trim();0<a.find("levelName").length&&(c.activeLevelName=a.find("levelName").text().trim());void 0!==a.attr("sort")&&(c.sortName=a.attr("sort"));void 0!==a.attr("sortAs")&&(c.sortAs=a.attr("sortAs"));var d=a.find("filter");
if(0<d.length){for(var g=[],k=d.find("member"),m=0;m<k.length;m++){var n=k[m].text().trim();g.push(n)}m=void 0!==d.attr("negation")?e.P.Zc(d.attr("negation")):!1;k=void 0!==d.attr("type")?d.attr("type"):e.u.i.tb.NONE;n=void 0!==d.attr("quantity")?parseInt(d.attr("quantity")):-1;var p=void 0!==d.attr("measure")?d.attr("measure"):"";if(k!=e.u.i.tb.NONE||0<g.length)c.filter={};0<g.length&&(c.filter.members=g,c.filter.negation=m);k!=e.u.i.tb.NONE&&(c.filter.type=k,c.filter.quantity=n,c.filter.measure=
p)}m=d.find("properties");if(0<m.length)for(d=m.find("property"),c.predefinedProperties=[],m=0;m<d.length;m++)g=d[m].find("propertyName").text(),k=d[m].find("levelName").text(),null==c.predefinedProperties[k]&&(c.predefinedProperties[k]=[]),c.predefinedProperties[k].push(g);d=[];k=a.find("sort member");for(m=0;m<k.length;m++)d.push(k[m].text());c.customSorting=d;void 0!==a.attr("filterEnabled")&&(c.filterEnabled="false"!=a.attr("filterEnabled"));d={};a=a.find("group");for(m=0;m<a.length;m++)for(g=
a[m].attr("name"),d[g]=[],k=a[m].find("member"),n=0;n<k.length;n++)d[g].push(k[m].text());c.groups=d;return c}static Jja(a){var c={};0<a.length&&(c.type=a.text(),c.tuple=void 0!==a.attr("tuple")?a.attr("tuple").split(","):[],c.measure=new f(a.attr("measure")),void 0!==a.attr("measureAggregation")&&(c.measure.$=a.attr("measureAggregation")));return c}static yda(a){var c=[];if(0<a.length)for(var d=0;d<a.length;d++){var g=a[d],k=g.text().split(",");if(isNaN(parseInt(k[0]))){var m=void 0!==g.attr("measure")?
new f(g.attr("measure")):null;void 0!==g.attr("measureAggregation")&&(m.$=g.attr("measureAggregation"));k.unshift(m)}else m=void 0!==g.attr("measure")?parseInt(g.attr("measure")):-1,isNaN(m)&&(m=-1),k.unshift(m);c.push(k)}return c}static lda(a){var c=[];if(0<a.length)for(var d=0;d<a.length;d++){var g=a[d],k=b.DMa(g.text().split(","));var m=-1;void 0!==g.attr("memberName")?m=g.attr("memberName"):void 0!==g.attr("member")&&(m=parseInt(g.attr("member")));k.unshift(m);isNaN(parseInt(k[0]))?(m=void 0!==
g.attr("measure")?new f(g.attr("measure")):null,void 0!==g.attr("measureAggregation")&&(m.$=g.attr("measureAggregation")),k.unshift(m)):(m=void 0!==g.attr("measure")?parseInt(g.attr("measure")):-1,isNaN(m)&&(m=-1),k.unshift(m));void 0!==g.attr("levelName")&&(g=g.attr("levelName"),k.unshift(g));c.push(k)}return c}static DMa(a){for(var c=0;c<a.length;c++)a[c]=parseInt(a[c]);return a}static DFa(a){for(var c=[],d=0;d<a.length;d++){var g=b.zFa(a[d]);c.push(g)}return c}static Pza(a){for(var c=[],d=0;d<
a.length;d++)c.push(a[d].text());return c}static zFa(a){var c={};c.uniqueName=a.text().trim();void 0!==a.attr("calculated")&&0<a.text().length&&(c.uniqueName=a.attr("uniqueName"),c.formula=a.text(),c.individual=void 0!==a.attr("individual")?e.P.Zc(a.attr("individual")):!1);void 0!==a.attr("availableAggregations")&&(c.availableAggregations=a.attr("availableAggregations").split(","));void 0!==a.attr("aggregation")&&(c.aggregation=a.attr("aggregation"));void 0!==a.attr("caption")&&(c.caption=a.attr("caption"));
void 0!==a.attr("grandTotalCaption")&&(c.grandTotalCaption=a.attr("grandTotalCaption"));void 0!==a.attr("format")&&(c.format=a.attr("format"));c.active=void 0!==a.attr("active")?e.P.Zc(a.attr("active")):!0;return c}op(a=!1){var c=z.ba.create("<defaultSlice/>"),d=z.ba.create("<axes/>"),g=z.ba.create("<axis/>");g.attr("name","rows");for(var k=0;k<this.rows.length;k++)g.append(this.J2(this.rows[k],a));null!=this.hk&&null!=this.hk.type&&this.hk.type!=e.u.i.Ba.ed&&(k=z.ba.create("<sort/>").text(this.hk.type),
k.attr("tuple",this.hk.tuple.join(",")),k.attr("measure",this.hk.measure.A),""!=this.hk.measure.$&&k.attr("measureAggregation",this.hk.measure.$),g.append(k));if(0<this.Ww.length){var m=z.ba.create("<expanded/>");for(k=0;k<this.Ww.length;k++){var n=this.Ww[k].slice(0);var p=n.shift();0!=n.length&&(n=z.ba.create("<tuple/>").append(z.ba.fi(n.toString())),p&&(n.attr("measure",p.A),""!=p.$&&n.attr("measureAggregation",p.$)),m.append(n))}g.append(m)}if(0<this.Tw.length){var t=z.ba.create("<drilled/>");
for(k=0;k<this.Tw.length;k++){n=this.Tw[k].slice(0);m="string"==typeof n[0]?n.shift():"";p=n.shift();var r=n.shift();null!=r&&0!=n.length&&(n=z.ba.create("<tuple/>").text(n.toString()),p&&(n.attr("measure",p.A),""!=p.$&&n.attr("measureAggregation",p.$)),0<r.length&&n.attr("memberName",r),0<m.length&&n.attr("levelName",m),t.append(n))}g.append(t)}m=z.ba.create("<axis/>");m.attr("name","columns");for(k=0;k<this.Ka.length;k++)m.append(this.J2(this.Ka[k],a));null!=this.Yj&&this.Yj.type&&this.Yj.type!=
e.u.i.Ba.ed&&(k=z.ba.create("<sort/>").text(this.Yj.type),k.attr("tuple",this.Yj.tuple.join(",")),k.attr("measure",this.Yj.measure.A),""!=this.Yj.measure.$&&k.attr("measureAggregation",this.Yj.measure.$),m.append(k));if(0<this.Vw.length){r=z.ba.create("<expanded/>");for(k=0;k<this.Vw.length;k++)n=this.Vw[k].slice(0),p=n.shift(),0!=n.length&&(n=z.ba.create("<tuple/>").append(z.ba.fi(n.toString())),p&&(n.attr("measure",p.A),""!=p.$&&n.attr("measureAggregation",p.$)),r.append(n));m.append(r)}if(0<this.Sw.length){t=
z.ba.create("<drilled/>");for(k=0;k<this.Sw.length;k++)n=this.Sw[k].slice(0),p=n.shift(),r=n.shift(),null!=r&&0!=n.length&&(n=z.ba.create("<tuple/>").text(n.toString()),p&&(n.attr("measure",p.A),""!=p.$&&n.attr("measureAggregation",p.$)),0<r.length&&n.attr("memberName",r),t.append(n));m.append(t)}p=z.ba.create("<axis/>");p.attr("name","pages");for(k=0;k<this.qb.length;k++)p.append(this.J2(this.qb[k],a));this.Un.clear();n=z.ba.create("<measures/>");for(k=0;k<this.Da.length;k++)r=this.Da[k],t=z.ba.create("<measure/>").text(r.A),
null!=r.Ge&&""!=r.Ge?(t=z.ba.create("<measure/>").append(z.ba.fi(r.Ge)),r.Lk&&t.attr("individual","true"),t.attr("caption",r.caption)):(a||r.$!=e.u.i.ea.NONE)&&t.attr("aggregation",r.$),(a||0==r.active)&&t.attr("active",r.active),null!=r.format&&""!=r.format&&(t.attr("format",r.format),r.active?this.Un.Ta(r.format,!0):this.Un.Bb(r.format)&&!0===this.Un.getItem(r.format)||this.Un.Ta(r.format,!1)),null!=r.Wc&&0<r.Wc.length&&t.attr("availableAggregations",r.Wc.join(",")),n.append(t);0==g.kb()&&d.append(g);
0==m.kb()&&d.append(m);0==p.kb()&&d.append(p);0==d.kb()&&c.append(d);0==n.kb()&&c.append(n);if(0<this.Zg.length){d=z.ba.create("<flatOrder/>");for(k=0;k<this.Zg.length;k++)d.append(z.ba.create("<hierarchyName/>").text(this.Zg[k]));c.append(d)}d=this.lf&&this.kf;(a||d)&&c.append(z.ba.create("<expandAll/>").text(d));d=this.hf&&this.Xf;(a||d)&&c.append(z.ba.create("<drillAll/>").text(d));return c}Sa(a=!1,c=null){var d={},g,k=[];for(g=0;g<this.qb.length;g++)k.push(this.I2(this.qb[g],a,c));0<k.length&&
(d.reportFilters=k);k=[];for(g=0;g<this.rows.length;g++)k.push(this.I2(this.rows[g],a,c));0<k.length&&(d.rows=k);k=[];for(g=0;g<this.Ka.length;g++)k.push(this.I2(this.Ka[g],a,c));0<k.length&&(d.columns=k);k=[];const m=new e.ub,n=l.oc.tj.JBa();this.Un.clear();for(g=0;g<this.Da.length;g++){var p=this.Tga(this.Da[g],a,c);m.Bb(p.uniqueName)||m.Ta(p.uniqueName,new Map);m.getItem(p.uniqueName).set(p.aggregation,!0);k.push(p)}for(g=0;g<n.length;g++){var t=n.fa(g);p=n.Uh(g);t=t.keys();for(var r of t)t=n.getItem(p).get(r),
(!m.Bb(p)||m.Bb(p)&&!m.getItem(p).has(r))&&l.C.F.uW&&(k.push({uniqueName:p,aggregation:r,active:!1,format:t}),this.Un.Ta(t,!1))}0<k.length&&(d.measures=k);if(null!=this.hk&&null!=this.hk.type&&this.hk.type!=e.u.i.Ba.ed||null!=this.Yj&&this.Yj.type&&this.Yj.type!=e.u.i.Ba.ed)d.sorting={},null!=this.hk&&null!=this.hk.type&&this.hk.type!=e.u.i.Ba.ed&&(d.sorting.row=this.hk),null!=this.Yj&&this.Yj.type&&this.Yj.type!=e.u.i.Ba.ed&&(d.sorting.column=this.Yj);r={};k=this.lf&&this.kf;if(a||k)r.expandAll=
k;if(a||this.lf&&!k)r.expandAllRows=this.lf;if(a||this.kf&&!k)r.expandAllColumns=this.kf;if(e.u.Ma.R().qa){var v=e.u.Ma.R().qa.wb;var y=e.u.Ma.R().qa.Fb}0<this.Ww.length&&v&&(r.rows=this.xda(this.Ww,v,a,c));0<this.Vw.length&&y&&(r.columns=this.xda(this.Vw,y,a,c));u.Hc.Og(r)||(d.expands=r);c={};r=this.hf&&this.Xf;if(a||r)c.drillAll=r;if(a||this.hf&&!r)c.drillAllRows=this.hf;if(a||this.Xf&&!r)c.drillAllColumns=this.Xf;0<this.Tw.length&&(c.rows=this.kda(this.Tw,v));0<this.Sw.length&&(c.columns=this.kda(this.Sw,
y));u.Hc.Og(c)||(d.drills=c);0<this.Zg.length&&(d.flatOrder=this.Zg);this.$g&&0<this.$g.length&&(d.flatSort=this.$g);0<this.cd.length&&(d.drillThrough=this.cd);if(this.Ij){a=[];for(let A in this.Ij)this.Ij.hasOwnProperty(A)&&a.push({levelName:A,properties:this.Ij[A]});0<a.length&&(d.memberProperties=a)}return d}xda(a,c,d=!1,g=null){for(var k=[],m,n,p,t=0;t<a.length;t++)if(m={},n=a[t].slice(0),p=n.shift(),0!=n.length){for(var r=[],v=0;v<n.length;v++){var y=c.fa(v).Ib(n[v]);r.push(y.Fi)}m.tuple=r;p&&
(m.measure=this.Tga(p.uniqueName?p:p.Sa(),d,g));k.push(m)}return k}kda(a,c){var d=[],g=0;a:for(;g<a.length;g++){var k={};var m=a[g].slice(0);var n=m.shift();var p=m.shift();m.shift();if(0!=m.length){for(var t=[],r=0;r<m.length;r++){var v=c.fa(r).Ib(m[r]);if(v)t.push(v.Fi);else continue a}k.tuple=t;p&&(k.measure=p.uniqueName?p:p.Sa());""!==n&&(k.level=n);d.push(k)}}return d}eEa(a){return e.u.Ma.R().ga.Aa===e.u.i.ra.Cc||e.u.Ma.R().ga.Aa===e.u.i.ra.Pd?"[Measures].["+a.name+"]"!=a.uniqueName:e.u.Ma.R().O instanceof
e.u.local.O.bQ&&void 0!==e.u.Ma.R().O.nA[a.uniqueName]?!1:a.name!=a.uniqueName}vDa(a){if(e.u.Ma.R().ga.Aa==e.u.i.ra.API)return!1;if(a.lk.length!==a.Wc.length)return!0;for(var c=0;c<a.Wc.length;c++)if(a.Wc[c]!==a.lk[c])return!0;return!1}Tga(a,c,d=null){var g={};g.uniqueName=a.uniqueName;if(e.ka(a.formula)){if(c||a.aggregation!=e.u.i.ea.NONE)g.aggregation=a.aggregation;var k=e.u.Ma.R().O.Dx(a);if(c||this.vDa(k))e.v(d)||d.kb?g.availableAggregations=a.availableAggregations:null==d.La(a.uniqueName,"aggregations")&&
d.oi(a.uniqueName,"aggregations",a.availableAggregations)}else g.formula=a.formula,a.individual&&(g.individual=!0),a.calculateNaN?a.calculateNaN&&c&&(g.calculateNaN=a.calculateNaN):g.calculateNaN=a.calculateNaN,g.caption=a.caption;this.eEa(a)&&(e.v(d)||d.kb?g.caption=a.name:null==d.La(a.uniqueName,"caption")&&void 0===a.formula&&d.oi(a.uniqueName,"caption",a.name));e.u.O.Vr.T1(a.aggregation,a.originalCaption)!=a.grandTotalCaption&&""!=a.grandTotalCaption&&(g.grandTotalCaption=a.grandTotalCaption);
if(c||0==a.active)g.active=a.active;null!=a.format&&""!=a.format&&(g.format=a.format,a.active?this.Un.Ta(a.format,!0):this.Un.Bb(a.format)&&!0===this.Un.getItem(a.format)||this.Un.Ta(a.format,!1));a.filter&&(g.filter=a.filter);return g}XDa(a){if("[Measures]"==a.uniqueName)return!1;if(e.u.Ma.R().ga.Aa==e.u.i.ra.Cc||e.u.Ma.R().ga.Aa==e.u.i.ra.Pd)return a.dimensionName+".["+a.caption+"]"!=a.uniqueName;if(e.u.Ma.R().O instanceof e.u.local.O.bQ){const c=e.u.Ma.R().O.nA,d=a.uniqueName.split(".");if(void 0!==
c[a.uniqueName]||void 0!==c[d[0]])return!1}return a.uniqueName!=a.caption}I2(a,c,d=null){var g={};g.uniqueName=a.uniqueName;this.XDa(a)&&(e.v(d)||d.kb?g.caption=a.caption:null==d.La(a.uniqueName,"caption")&&d.oi(a.uniqueName,"caption",a.caption));null!=a.activeLevelName&&(g.levelName=a.activeLevelName);e.v(a.filter)||(g.filter={},e.v(a.filter.measure)||(g.filter.measure=a.filter.measure),e.v(a.filter.query)||(g.filter.query=a.filter.query),e.v(a.filter.members)||(g.filter.members=a.filter.members),
e.v(a.filter.exclude)||(g.filter.exclude=a.filter.exclude));a.filterEnabled||(g.filterEnabled=!0);u.Hc.Og(a.groups)||(g.groups=a.groups);"[Measures]"!=a.uniqueName&&a.sortName&&(c||a.sortName!=e.u.O.Ct.vJ)&&(g.sort=a.sortName);"[Measures]"!=a.uniqueName&&a.sortAs&&(g.sortAs=a.sortAs);null!=a.customSorting&&0<a.customSorting.length&&(g.sortOrder=a.customSorting);void 0!==a.showTotals&&(g.showTotals=a.showTotals);return g}J2(a,c){var d=z.ba.create("<hierarchy/>");d.append(z.ba.create("<dimensionName/>").text(a.dimensionName));
d.append(z.ba.create("<hierarchyName/>").text(a.uniqueName));null!=a.activeLevelName&&d.append(z.ba.create("<levelName/>").text(a.activeLevelName));if(null!=a.filter&&(null!=a.filter.type&&a.filter.type!=e.u.i.tb.NONE&&d.append(this.Hza(a.filter)),null!=a.filter.members)){var g="string"==typeof a.filter.members?a.filter.members.split(","):a.filter.members;0<g.length&&(0<d.find("filter").length?this.Lda(g,d.find("filter")[0]):d.append(this.Lda(g)),!0===a.filter.negation&&d.find("filter").attr("negation",
a.filter.negation))}a.customSorting&&0<a.customSorting.length&&d.append(this.Zxa(a.customSorting));a.groups&&this.RCa(a.groups,d);a.filterEnabled||d.attr("filterEnabled","true");"[Measures]"!=a.uniqueName&&a.sortName&&(c||a.sortName!=e.u.O.Ct.vJ)&&d.attr("sort",a.sortName);"[Measures]"!=a.uniqueName&&a.sortAs&&d.attr("sortAs",a.sortAs);return d}Hza(a){var c=null;null==c&&(c=z.ba.create("<filter/>"));c.attr("type",a.type);c.attr("quantity",a.quantity);c.attr("measure",a.measure);return c}Lda(a,c=null){null==
c&&(c=z.ba.create("<filter/>"));for(var d=0;d<a.length;d++){var g=a[d];c.append(z.ba.create("<member/>").append(z.ba.fi(g)))}return c}Zxa(a){for(var c=z.ba.create("<sort/>"),d=0;d<a.length;d++){var g=a[d];c.append(z.ba.create("<member/>").append(z.ba.fi(g)))}return c}RCa(a,c){if(null!=a)for(var d in a){var g=z.ba.create("<group/>");g.attr("name",d);for(var k=0;k<a[d].length;k++){var m=a[d][k];g.append(z.ba.create("<member/>").append(z.ba.fi(m)))}c.append(g)}}static um(a){var c={};if(void 0==a)return c;
null!=a.pages&&(c.pages=a.pages);null!=a.reportFilters&&(c.pages=a.reportFilters);null!=a.rows&&(c.rows=a.rows);null!=a.columns&&(c.columns=a.columns);null!=a.measures&&(c.measures=a.measures);null!=a.rowSorting&&(c.rowSorting=a.rowSorting,null!=c.rowSorting.tuple&&"string"==typeof c.rowSorting.tuple&&(c.rowSorting.tuple=c.rowSorting.tuple.split(",")));null!=a.sorting&&null!=a.sorting.row&&(c.rowSorting=a.sorting.row);null!=a.columnSorting&&(c.columnSorting=a.columnSorting,null!=c.columnSorting.tuple&&
"string"==typeof c.columnSorting.tuple&&(c.columnSorting.tuple=c.columnSorting.tuple.split(",")));null!=a.sorting&&null!=a.sorting.column&&(c.columnSorting=a.sorting.column);null!=a.expandAll&&(c.expandAll=a.expandAll);null!=a.expandAllRows&&(c.expandAllRows=a.expandAllRows);null!=a.expandAllColumns&&(c.expandAllColumns=a.expandAllColumns);null!=a.expandedRows&&(c.expandedRows=a.expandedRows);null!=a.expandedColumns&&(c.expandedColumns=a.expandedColumns);null!=a.expands&&(null!=a.expands.expandAll&&
(c.expandAll=a.expands.expandAll),null!=a.expands.expandAllRows&&(c.expandAllRows=a.expands.expandAllRows),null!=a.expands.expandAllColumns&&(c.expandAllColumns=a.expands.expandAllColumns),null!=a.expands.rows&&(c.expandedRows=b.hW(a.expands.rows)),null!=a.expands.columns&&(c.expandedColumns=b.hW(a.expands.columns)));null!=a.drillAll&&(c.drillAll=a.drillAll);null!=a.drillAllRows&&(c.drillAllRows=a.drillAllRows);null!=a.drillAllColumns&&(c.drillAllColumns=a.drillAllColumns);null!=a.drilledRows&&(c.drilledRows=
a.drilledRows);null!=a.drilledColumns&&(c.drilledColumns=a.drilledColumns);null!=a.drills&&(null!=a.drills.drillAll&&(c.drillAll=a.drills.drillAll),null!=a.drills.drillAllRows&&(c.drillAllRows=a.drills.drillAllRows),null!=a.drills.drillAllColumns&&(c.drillAllColumns=a.drills.drillAllColumns),null!=a.drills.rows&&(c.drilledRows=b.gW(a.drills.rows)),null!=a.drills.columns&&(c.drilledColumns=b.gW(a.drills.columns)));null!=a.flatOrder&&(c.flatOrder=a.flatOrder);null!=a.flatSort&&(c.flatSort=a.flatSort);
null!=a.drillThrough&&(c.drillThrough=a.drillThrough);null!=a.memberProperties&&(c.memberProperties=a.memberProperties);null!=a.slice&&(a=a.slice,null!=a.pages&&a.pages.length&&(c.pages=a.pages),null!=a.reportFilters&&a.reportFilters.length&&(c.pages=a.reportFilters),null!=a.rows&&a.rows.length&&(c.rows=a.rows),null!=a.columns&&a.columns.length&&(c.columns=a.columns),null!=a.measures&&a.measures.length&&(c.measures=a.measures),null!=a.sorting&&null!=a.sorting.row&&(c.rowSorting=a.sorting.row),null!=
a.sorting&&null!=a.sorting.column&&(c.columnSorting=a.sorting.column),null!=a.expands&&(null!=a.expands.expandAll&&(c.expandAll=a.expands.expandAll),null!=a.expands.rows&&(c.expandedRows=b.hW(a.expands.rows)),null!=a.expands.columns&&(c.expandedColumns=b.hW(a.expands.columns))),null!=a.drills&&(null!=a.drills.drillAll&&(c.drillAll=a.drills.drillAll),null!=a.drills.rows&&(c.drilledRows=b.gW(a.drills.rows)),null!=a.drills.columns&&(c.drilledColumns=b.gW(a.drills.columns))),null!=a.flatOrder&&a.flatOrder.length&&
(c.flatOrder=a.flatOrder),null!=a.flatSort&&a.flatSort.length&&(c.flatSort=a.flatSort),null!=a.drillThrough&&a.drillThrough.length&&(c.drillThrough=a.drillThrough),null!=a.memberProperties&&(c.memberProperties=a.memberProperties));return c}YDa(a){for(var c=0;c<this.qb.length;c++)if(this.qb[c].uniqueName==a)return!0;for(c=0;c<this.rows.length;c++)if(this.rows[c].uniqueName==a)return!0;for(c=0;c<this.Ka.length;c++)if(this.Ka[c].uniqueName==a)return!0;return!1}}h.vo=b})(l.hb||(l.hb={}))})(e.model||(e.model=
{}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.If={};this.Af={};this.wg=[];this.Ig=[];this.Lj={};this.Dk={};this.zh=[];this.YE=0}static xb(b){const a=new f;if(null==b)return a;null!=b.columnSizes&&"string"!=typeof b.columnSizes&&(a.Af=b.columnSizes);null!=b.rowSizes&&"string"!=typeof b.rowSizes&&(a.If=b.rowSizes);null!=b.columnHeaderSizes&&"string"!=typeof b.columnHeaderSizes&&(a.Ig=b.columnHeaderSizes);null!=b.rowHeaderSizes&&"string"!=typeof b.rowHeaderSizes&&(a.wg=b.rowHeaderSizes);
null!=b.rowFilterSizes&&"string"!=typeof b.rowFilterSizes&&(a.zh=b.rowFilterSizes);null!=b.columnSizesByIdx&&(a.Dk=b.columnSizesByIdx);null!=b.rowSizesByIdx&&(a.Lj=b.rowSizesByIdx);return a}static um(b){var a={};if(void 0==b)return a;var c;if(null!=b.columns){var d=b.columns;for(c=0;c<d.length;c++)if(null!=d[c].idx&&(null==a.columnSizesByIdx&&(a.columnSizesByIdx={}),a.columnSizesByIdx[parseInt(d[c].idx)]=parseInt(d[c].width)),null!=d[c].tuple||null!=d[c].measure){null==a.columnSizes&&(a.columnSizes=
{});var g=null==d[c].tuple?[]:d[c].tuple.slice();null!=d[c].measure&&("string"==typeof d[c].measure?(g.push(d[c].measure),g.push("")):(g.push(d[c].measure.uniqueName?d[c].measure.uniqueName:""),g.push(d[c].measure.aggregation?d[c].measure.aggregation:"")));a.columnSizes[g.join(",")]=parseInt(d[c].width)}}if(null!=b.rows)for(d=b.rows,c=0;c<d.length;c++)if(null!=d[c].idx&&(null==a.rowSizesByIdx&&(a.rowSizesByIdx={}),a.rowSizesByIdx[parseInt(d[c].idx)]=parseInt(d[c].height)),null!=d[c].tuple||null!=
d[c].measure)null==a.rowSizes&&(a.rowSizes={}),g=null==d[c].tuple?[]:d[c].tuple.slice(),null!=d[c].measure&&("string"==typeof d[c].measure?(g.push(d[c].measure),g.push("")):(g.push(d[c].measure.uniqueName?d[c].measure.uniqueName:""),g.push(d[c].measure.aggregation?d[c].measure.aggregation:""))),a.rowSizes[g.join(",")]=parseInt(d[c].height);null!=b.columnSizes&&(a.columnSizes=b.columnSizes);null!=b.rowSizes&&(a.rowSizes=b.rowSizes);null!=b.columnHeaderSizes&&(a.columnHeaderSizes=b.columnHeaderSizes);
null!=b.rowHeaderSizes&&(a.rowHeaderSizes=b.rowHeaderSizes);null!=b.rowFilterSizes&&(a.rowFilterSizes=b.rowFilterSizes);null!=b.rowSizesByIdx&&(a.rowSizesByIdx=b.rowSizesByIdx);null!=b.columnSizesByIdx&&(a.columnSizesByIdx=b.columnSizesByIdx);return a}Sa(b){const a={};if(null!=this.Ig&&!u.Hc.Og(this.Ig)||null!=this.Af&&!u.Hc.Og(this.Af)){a.columns=[];if(null!=this.Ig&&!u.Hc.Og(this.Ig))for(var c=0;c<this.Ig.length;c++)null!=this.Ig[c]&&a.columns.push({idx:c,width:this.Ig[c]});if(null!=this.Dk&&!u.Hc.Og(this.Dk))for(var d in this.Dk)c=
parseInt(d),this.Dk.hasOwnProperty(d)&&!isNaN(c)&&a.columns.push({idx:c,width:this.Dk[d]});d=h.vo.fd(b.Ka);if(null!=this.Af&&!u.Hc.Og(this.Af))for(var g in this.Af)if(c=g.split(","),0<=d&&1<c.length){const m=c.pop(),n=c.pop();a.columns.push({tuple:c,measure:(new h.oh(n,m)).Sa(),width:this.Af[g]})}else a.columns.push({tuple:c,width:this.Af[g]})}if(null!=this.zh&&!u.Hc.Og(this.zh)||null!=this.wg&&!u.Hc.Og(this.wg)||null!=this.If&&!u.Hc.Og(this.If)){a.rows=[];if(null!=this.zh&&!u.Hc.Og(this.zh))for(g=
0;g<this.zh.length;g++)null!=this.zh[g]&&a.rows.push({idx:g,height:this.zh[g]});if(null!=this.wg&&!u.Hc.Og(this.wg))for(g=0;g<this.wg.length;g++)null!=this.wg[g]&&a.rows.push({idx:g,height:this.wg[g]});if(null!=this.Lj&&!u.Hc.Og(this.Lj))for(var k in this.Lj)g=parseInt(k),this.Lj.hasOwnProperty(k)&&!isNaN(g)&&a.rows.push({idx:g,width:this.Lj[k]});b=h.vo.fd(b.rows);if(null!=this.If&&!u.Hc.Og(this.If))for(const m in this.If)k=m.split(","),0<=b&&1<k.length?(g=k.pop(),d=k.pop(),a.rows.push({tuple:k,measure:(new h.oh(d,
g)).Sa(),height:this.If[m]})):a.rows.push({tuple:k,height:this.If[m]})}return a}op(){var b=z.ba.create("<view/>"),a;if(null!=this.Ig)for(a in this.Ig)if(null!=this.Ig[a]){var c=z.ba.create("<column/>").text(this.Ig[a]);c.attr("headerIdx",a);b.append(c)}if(null!=this.Af)for(a in this.Af)null!=this.Af[a]&&(c=z.ba.create("<column/>").append(z.ba.fi(this.Af[a])),b.append(c));if(null!=this.zh)for(a in this.zh)null!=this.zh[a]&&(c=z.ba.create("<row/>").text(this.zh[a]),c.attr("filterIdx",a),b.append(c));
if(null!=this.wg)for(a in this.wg)null!=this.wg[a]&&(c=z.ba.create("<row/>").text(this.wg[a]),c.attr("headerIdx",a),b.append(c));if(null!=this.If)for(a in this.If)null!=this.If[a]&&(c=z.ba.create("<row/>").append(z.ba.fi(this.If[a])),b.append(c));return b}clone(){const b=new f;var a={};for(const n in this.Af)this.Af.hasOwnProperty(n)&&(a[n]=this.Af[n]);b.Af=a;a={};for(var c in this.Dk)this.Dk.hasOwnProperty(c)&&(a[c]=this.Dk[c]);b.Dk=a;c=[];for(var d in this.Ig)this.Ig.hasOwnProperty(d)&&(c[parseInt(d)]=
this.Ig[d]);b.Ig=c;d={};for(var g in this.If)this.If.hasOwnProperty(g)&&(d[g]=this.If[g]);b.If=d;g={};for(var k in this.Lj)this.Lj.hasOwnProperty(k)&&(g[k]=this.Lj[k]);b.Lj=g;k=[];for(var m in this.wg)this.wg.hasOwnProperty(m)&&(k[parseInt(m)+this.YE]=this.wg[m]);b.wg=k;m=[];if(0!=this.YE)for(const n in this.zh)this.wg.hasOwnProperty(n)&&(m[parseInt(n)]=this.zh[n]);b.zh=m;return b}static Jk(b){const a=new f;a.Ig=f.lfa(b.find("view column[headerIdx]"));a.Af=f.Eja(b.find("view column"));a.wg=f.lfa(b.find("view row[headerIdx]"));
a.If=f.Eja(b.find("view row"));a.zh=f.Eza(b.find("view row[filterIdx]"));return a}static lfa(b){for(var a=[],c=0;c<b.length;c++){var d=b[c];a[parseInt(d.attr("headerIdx"))]=parseInt(d.text())}return a}static Eza(b){for(var a=[],c=0;c<b.length;c++){var d=b[c];a[parseInt(d.attr("filterIdx"))]=parseInt(d.text())}return a}static Eja(b){for(var a=[],c=0;c<b.length;c++){var d=b[c];e.v(d.attr("headerIdx"))&&e.v(d.attr("filterIdx"))&&0<d.text().length&&a.push(d.text().split(","))}return a}}h.Yv=f})(l.hb||
(l.hb={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){this.Fe=new e.ub;this.Xc=new e.ub;this.Zx=new l.hb.Yv;this.Je=null;this.labels={};this.mNa=this.PA=!1;this.Sm=[]}static HMa(a){if(null===a)return null;var c=new l.hb.By;c.PA=a.PA;c.la=a.Ab.clone();a.Pb&&(c.slice=a.Pb.kka());c.options=a.C;var d=[];for(var g=0;g<a.Fe.length;g++)d[g]=a.Fe.fa(g).Sa();c.Fe=d;d=[];for(g=0;g<a.Xc.length;g++)d[g]=a.Xc.fa(g).Sa();c.Xc=d;c.Sm=a.Sm;c.labels=a.labels;c.Zx=a.Zx.clone();c.Je=a.Je;c.version=
e.Cg.Iq;c.WL=(new Date).toISOString();return c}}f.g$=b})(h.W||(h.W={}))})(l.Xb||(l.Xb={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.Ooa=35;this.PR=!1;this.uta="a4";this.bia=()=>this.xha();this.u1=this.E2=0}static R(){null==f.Be&&(f.Be=new f);return f.Be}static dispose(){f.Be=null}print(b=null){this.PR||(this.PR=!0,this.C=b||new l.kt.Q9,l.Wa.R().N(e.ef.xB,this.bia),l.Wa.R().Ya(e.ef.yY))}xha(){l.Wa.R().rb(e.ef.xB,this.bia);this.PR=!1}Ze(b,a=""){this.Y=b;this.na=null!=b?b.na:null;this.Bva=a||"";this.start()}start(){this.Cl=0;var b=l.Dc.Ay.KH(this.uta);this.PK=b.ICa();
this.UZ=b.KBa();this.qb=new x.Ga("div");this.ut=[];this.FI=this.Mn=0;u.Ql.Co({lp:()=>this.PAa(),gf:()=>this.finish()})}clear(){this.PR=!1;this.Mn=this.Cl=this.FI=0;this.qb=this.jt=null;this.u1=this.E2=0}PAa(){return this.Nta()}Nta(){var b;const a=null===(b=this.jt)||void 0===b?void 0:b.cg(!0);if(null==this.jt)if(this.jt=this.vca(),this.cW=this.jt.find("table"),this.ZR(),1==this.shift())this.eS();else return!1;else if(a<=this.PK&&0!=this.Mn)if(this.ZR(),this.jt.cg(!0)<=this.PK)if(!0===this.shift())this.eS();
else return!1;else return this.Mn++,!1;else if(a>this.PK&&(this.Mn--,this.sKa(this.jt)),this.eS(),this.jt=this.vca(),this.cW=this.jt.find("table"),0==this.Y.dj&&(b=this.Mn,0!=this.Mn&&0<this.Y.Fp&&(this.Mn=0,this.ZR(),this.Mn=b,this.Mn+1<=this.na.coords.$l&&(this.Mn+=1))),this.ZR(),1==this.shift())this.eS();else return!1;return!0}sKa(b){b=b.find("td:last-child",!0);for(let a=0;a<b.length;a++)b[a].remove()}vca(){var b=(new x.Ga("div")).aa("page");b.V("position","absolute").V("left","-9999px");if(null!=
this.C.cj){var a=this.TL(this.C.cj);b.append(a)}var c=new x.Ga("table");0==this.Cl&&0<l.C.F.gq.length&&c.append((new x.Ga("caption")).text(l.C.F.gq));b.append(c);if(null!=this.C.Bj){var d=this.TL(this.C.Bj);b.append(d)}this.Y.G.append(b);this.E2=null!=a?a.zd():0;this.u1=null!=d?d.zd():0;return b}TL(b){var a=new x.Ga("div");b=b.replace(/##PAGE-NUMBER##/gi,(this.Cl+1).toString());b=b.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString());a.html(b);return a}eS(){this.Cl++;e.Ca(!0,l.B.j.KF,this.Cl+
" "+l.B.j.t9,!0);this.jt.detach();this.jt.V("position","").V("left","").V("padding-top",this.Ooa.toString()+"px");this.qb.append(this.jt)}shift(){++this.Mn;this.Mn>=this.Y.Bg+this.na.coords.$l&&(this.Mn=0,this.FI+=this.Vf-this.Y.vf+1);return 1E3<=this.Cl||this.FI>=this.na.coords.Tp?!0:!1}ZR(){this.rW=0;var b=this.Y.Fp+this.Mn;if(!this.na.coords.Wo(NaN,b)){var a=this.UZ-this.E2-this.u1;for(this.Vf=this.Y.Ui;this.rW<=a&&this.Vf<this.na.coords.Tp+this.Y.vf-this.FI;this.Vf++)if(this.rowIndex=this.Vf<
this.Y.vf?this.Vf:this.Vf+this.FI,!this.na.coords.Wo(this.rowIndex,b)){var c=this.na.ag(this.rowIndex,b,!0);this.rW+=this.Mta(this.Vf,c);if(this.rW>=a)break}}}Mta(b,a){const c=e.K.Y.sheet.Nh.Dt;var d=this.cW.find("tr",!0);for(d=0<d.length?d[b]:null;null==d;)this.cW.append(new x.Ga("tr")),d=this.cW.find("tr",!0)[b];d.height=e.K.Y.sheet.Nh.Ev;b="<td {0}>"+(a?a.I(!0):"")+"</td>";if(null==a)b=e.P.bind(b,"class='cell' style='width:"+c+"'");else{let g="",k="white-space:nowrap;text-overflow:ellipsis;overflow:hidden;";
a.av&&null!=a.style&&(k+=a.style.jU(),g=a.style.ST(),this.K_(a.style.XC));g=a.xh?g+(" rowHeaderCell level"+a.level):a.Ng?g+" columnHeaderCell":a.vl?g+" filterHeaderCell":a.Vz&&a.Mk&&""!=a.I(!0)?g+" grandTotalCell":a.Mk&&""!=a.I(!0)?g+" totalCell":g+" cell";""!=g.trim()&&(g="class='"+g.trim()+"'");k=""!=k.trim()?"style='"+k.trim()+"max-width:200px'":"style='width:"+c+"px;'";b=e.P.bind(b,g+" "+k)}d.element.innerHTML=e.vt(d.element.innerHTML+b);return d.zd(!0)}K_(b){for(var a=0;a<b.length;a++)0>this.ut.indexOf(b[a])&&
this.ut.push(b[a])}finish(){e.Ca(!0,l.B.j.KF,"Sending pages to printer...",!1,!0);z.P9.print(this.Bva+this.qb.html(),this.E1(),l.C.F.gq);e.Ca(!1);l.Wa.R().Ya(e.ef.xB);this.clear()}E1(){var b="",a=x.Ga.Yb(this.na.element),c=a.find(".fm-data-sheet");b+=e.P.bind("table{width:100%;border-collapse:collapse;{0}}\n",e.K.Y.W.ad.Ez(a,["font-family","font-size"]));b+=e.P.bind("caption{{0}}\n",e.K.Y.W.ad.tl(e.K.Y.W.ya.TY,a));b+=e.P.bind("td{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;{0}}\n",u.Nd().DU?
"":"border: 1px solid #eee;");b+=e.P.bind(".cell{{0}}\n",e.K.Y.W.ad.tl(e.K.Y.W.ya.Ne,c));b+=e.P.bind(".totalCell{{0}}\n",e.K.Y.W.ad.tl(e.K.Y.W.ya.Ne+" "+e.K.Y.W.ya.Xv,c));b+=e.P.bind(".grandTotalCell{{0}}\n",e.K.Y.W.ad.tl(e.K.Y.W.ya.Ne+" "+e.K.Y.W.ya.Xv+" "+e.K.Y.W.ya.NJ,c));b+=e.P.bind(".rowHeaderCell{{0}}\n",e.K.Y.W.ad.tl(e.K.Y.W.ya.Ne+" "+e.K.Y.W.ya.qk+" "+e.K.Y.W.ya.Nv,a));b+=e.P.bind(".columnHeaderCell{{0}}\n",e.K.Y.W.ad.tl(e.K.Y.W.ya.Ne+" "+e.K.Y.W.ya.qk+" "+e.K.Y.W.ya.mB,a));b+=e.P.bind(".filterHeaderCell{{0}}\n",
e.K.Y.W.ad.tl(e.K.Y.W.ya.Ne+" "+e.K.Y.W.ya.qk+" "+e.K.Y.W.ya.Kq,a));for(c=1;20>=c;c++)b+=e.P.bind(".level{0}{{1}}\n",c,e.K.Y.W.ad.tl(e.K.Y.W.ya.Nv+" "+e.K.Y.W.ya.Sf+c,a,["padding-left"]));for(c=0;c<this.ut.length;c++)b+=e.P.bind(".{0}{{1}}\n",this.ut[c],e.K.Y.W.ad.tl(this.ut[c],a));b=(b+".page:not(:last-child), svg { page-break-after: always; }").replace(/background-color:rgb\(33, 33, 33\)/g,"background-color:rgb(255, 255, 255)");return b=b.replace(/background-color:rgb\(66, 66, 66\)/g,"background-color:rgb(247, 247, 247)")}}
h.OF=f})(l.kt||(l.kt={}))})(e.model||(e.model={}))})(q||(q={}));(function(e){(function(l){(function(h){class f{static xb(b){var a=new f;null!=b&&(null!=b.header&&(a.cj=b.header),null!=b.footer&&(a.Bj=b.footer));return a}}h.Q9=f})(l.kt||(l.kt={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends w.Mh{constructor(){super();f.Rd=new h.Oq;f.Rd.NE();f.C=new h.Oq;if(f.instance)throw Error("Singleton");}static R(){e.v(f.instance)&&(f.instance=new f);return f.instance}static dispose(){f.UB&&(f.UB.Rd=null);f.UB=null;f.C=null;f.Rd=null;f.instance=null}static ALa(b){f.UB=b}static gx(b=!1,a=!1){const c=new h.Oq;b&&c.jE(f.Rd);a&&c.jE(f.UB);c.jE(f.C);!b&&c.Sva();return c}static clear(){this.C=new h.Oq}static Cq(b,a=!0,c=!0){if(e.v(f.C)||a)a=f.Qm,
f.C=new h.Oq,f.C.oa("configuratorOpened",a);b=h.Oq.um(b);a=!1;f.N0=!0;const d=f.gx(!0,!0);for(let g in b)if(void 0!=d[g]&&b[g]!=d[g]&&(a=!0,f.mA(g))){f.uv=!0;break}f.C.jE(b);e.u.O.Ct.vJ=f.Pca;f.N0=!1;a&&c&&f.cb()}static mA(b){return-1<f.tta.indexOf(b)}static U(b){return f.C&&null!=f.C[b]?f.C[b]:f.UB&&null!=f.UB[b]?f.UB[b]:f.Rd?f.Rd[b]:null}static get Qm(){return f.C.U("configuratorOpened")}static set Qm(b){f.C.oa("configuratorOpened",b)}static get UC(){return f.U("configuratorActive")}static set UC(b){if(f.C.U("configuratorActive")!=
b){const a=!e.v(f.C.U("configuratorActive"));f.C.oa("configuratorOpened",b);f.C.oa("configuratorActive",b);a&&f.cb()}}static get JS(){return this.readOnly?this.lC.configuratorButton:f.U("configuratorButton")}static set JS(b){if(f.C.U("configuratorButton")!=b){const a=!e.v(f.C.U("configuratorButton"));f.C.oa("configuratorButton",b);a&&f.cb()}}static get me(){return f.U("viewType")}static set me(b){if(f.C.U("viewType")!=b){b=e.K.Jd.ih(b)?b:f.Rd.U("viewType");const a=!(e.v(f.C.U("viewType"))&&f.Rd.U("viewType")==
b);f.C.oa("viewType",b);a&&f.cb()}}static get Kn(){return f.U("chartTitle")}static set Kn(b){if(f.C.U("chartTitle")!=b){const a=!e.v(f.C.U("chartTitle"));f.C.oa("chartTitle",b);a&&f.cb()}}static get Bk(){return f.U("gridType")==e.K.Y.wf.Fv}static set Bk(b){f.C.U("gridType")!=e.K.Y.wf.Fv&&(b=!e.v(f.C.U("gridType")),f.C.oa("gridType",e.K.Y.wf.Fv),f.uv=f.mA("gridType"),b&&f.cb())}static get sc(){return f.U("gridType")==e.K.Y.wf.rj}static set sc(b){if(1==b&&f.C.U("gridType")!=e.K.Y.wf.rj){const a=!e.v(f.C.U("gridType"));
f.C.oa("gridType",e.K.Y.wf.rj);f.uv=f.mA("gridType");a&&f.cb()}0==b&&f.C.U("gridType")==e.K.Y.wf.rj&&(f.C.oa("gridType",e.K.Y.wf.YA),f.uv=f.mA("gridType"),f.cb())}static get p2(){return f.U("gridType")}static set p2(b){if(f.C.U("gridType")!=b){const a=!e.v(f.C.U("gridType"));f.C.oa("gridType",b);a&&f.cb()}}static get gq(){return f.U("gridTitle")}static set gq(b){if(f.C.U("gridTitle")!=b){const a=!e.v(f.C.U("gridTitle"));f.C.oa("gridTitle",b);a&&f.cb()}}static get CL(){return f.U("chartType")}static set CL(b){b=
e.K.Dd.Oe.validate(b);if(f.C.U("chartType")!==b){const a=!e.v(f.C.U("chartType"))||f.Rd.U("chartType")!==b;f.C.oa("chartType",b);a&&f.cb()}}static get Ho(){return f.U("chartOneLevel")}static set Ho(b){if(f.C.U("chartOneLevel")!=b){const a=!e.v(f.C.U("chartOneLevel"));f.C.oa("chartOneLevel",b);a&&f.cb()}}static get vu(){return f.U("chartOneLevelTuple")}static set vu(b){if(f.C.U("chartOneLevelTuple")!=b){const a=!e.v(f.C.U("chartOneLevelTuple"));f.C.oa("chartOneLevelTuple",b);a&&f.cb()}}static get FC(){return f.U("chartOneLevelColumnTuple")}static set FC(b){if(f.C.U("chartOneLevelColumnTuple")!=
b){const a=!e.v(f.C.U("chartOneLevelColumnTuple"));f.C.oa("chartOneLevelColumnTuple",b);a&&f.cb()}}static get QG(){return f.U("chartMultipleMeasures")}static set QG(b){if(f.C.U("chartMultipleMeasures")!=b){const a=!e.v(f.C.U("chartMultipleMeasures"));f.C.oa("chartMultipleMeasures",b);a&&f.cb()}}static get PG(){return f.U("chartActiveMeasures")}static set PG(b){if(f.C.U("chartActiveMeasures")!=b){const a=!e.v(f.C.U("chartActiveMeasures"));f.C.oa("chartActiveMeasures",b);a&&f.cb()}}static get Fo(){return f.U("chartActiveMeasure")}static set Fo(b){if(f.C.U("chartActiveMeasure")!=
b){const a=!e.v(f.C.U("chartActiveMeasures"));f.C.oa("chartActiveMeasure",b);a&&f.cb()}}static get BL(){return f.U("chartActiveTupleIndex")}static set BL(b){if(f.C.U("chartActiveTupleIndex")!=b){const a=!e.v(f.C.U("chartActiveTupleIndex"));f.C.oa("chartActiveTupleIndex",b);a&&f.cb()}}static get ez(){return f.U("chartPosition")}static set ez(b){if(f.C.U("chartPosition")!=b){const a=!e.v(f.C.U("chartPosition"));f.C.oa("chartPosition",b);a&&f.cb()}}static get oS(){return f.U("chartReversedAxes")}static set oS(b){if(f.C.U("chartReversedAxes")!=
b){const a=!e.v(f.C.U("chartReversedAxes"));f.C.oa("chartReversedAxes",b);a&&f.cb()}}static get uu(){return f.U("chartAutoRange")}static set uu(b){if(f.C.U("chartAutoRange")!=b){const a=!e.v(f.C.U("chartAutoRange"));f.C.oa("chartAutoRange",b);a&&f.cb()}}static get EC(){return f.U("chartAxisShortNumberFormat")}static set EC(b){if(f.C.U("chartAxisShortNumberFormat")!=b){const a=!e.v(f.C.U("chartAxisShortNumberFormat"));f.C.oa("chartAxisShortNumberFormat",b);a&&f.cb()}}static get Vx(){return this.readOnly?
this.lC.showFilter:f.U("showFilter")}static set Vx(b){if(f.C.U("showFilter")!=b){const a=!e.v(f.C.U("showFilter"));f.C.oa("showFilter",b);a&&f.cb()}}static get xja(){return this.readOnly?this.lC.showFilterInCharts:f.U("showFilterInCharts")}static set xja(b){if(f.C.U("showFilterInCharts")!=b){const a=!e.v(f.C.U("showFilterInCharts"));f.C.oa("showFilterInCharts",b);a&&f.cb()}}static get T5(){return f.U("showDefaultSlice")}static set T5(b){if(f.C.U("showDefaultSlice")!=b){const a=!e.v(f.C.U("showDefaultSlice"));
f.C.oa("showDefaultSlice",b);a&&f.cb()}}static get co(){return f.U("useOlapFormatting")}static set co(b){if(f.C.U("useOlapFormatting")!=b){const a=!e.v(f.C.U("useOlapFormatting"));f.C.oa("useOlapFormatting",b);a&&f.cb()}}static get LI(){return f.U("showMemberProperties")}static set LI(b){if(f.C.U("showMemberProperties")!=b){const a=!e.v(f.C.U("showMemberProperties"));f.C.oa("showMemberProperties",b);a&&f.cb()}}static get Ux(){return f.U("showEmptyData")}static set Ux(b){if(f.C.U("showEmptyData")!=
b){const a=!e.v(f.C.U("showEmptyData"));f.C.oa("showEmptyData",b);a&&f.cb()}}static get rja(){return f.U("showChartDataLabels")}static set rja(b){if(f.C.U("showChartDataLabels")!=b){const a=!e.v(f.C.U("showChartDataLabels"));f.C.oa("showChartDataLabels",b);a&&f.cb()}}static get pja(){return f.U("showAllChartLabels")}static set pja(b){if(f.C.U("showAllChartLabels")!=b){const a=!e.v(f.C.U("showAllChartLabels"));f.C.oa("showAllChartLabels",b);a&&f.cb()}}static get Jl(){return f.U("showAggregations")}static set Jl(b){if(f.C.U("showAggregations")!=
b){const a=!e.v(f.C.U("showAggregations"));f.C.oa("showAggregations",b);a&&f.cb()}}static get st(){return f.U("showHierarchyCaptions")}static set st(b){if(f.C.U("showHierarchyCaptions")!=b){const a=!e.v(f.C.U("showHierarchyCaptions"));f.C.oa("showHierarchyCaptions",b);a&&f.cb()}}static get kH(){return f.U("drillThroughMaxRows")}static set kH(b){if(f.C.U("drillThroughMaxRows")!=b){const a=!e.v(f.C.U("drillThroughMaxRows"));f.C.oa("drillThroughMaxRows",b);a&&f.cb()}}static get O5(){return f.U("showAllFieldsDrillThrough")}static set O5(b){if(f.C.U("showAllFieldsDrillThrough")!=
b){const a=!e.v(f.C.U("showAllFieldsDrillThrough"));f.C.oa("showAllFieldsDrillThrough",b);a&&f.cb()}}static get U5(){return f.U("showFieldListSearch")}static set U5(b){if(f.C.U("showFieldListSearch")!=b){const a=!e.v(f.C.U("showFieldListSearch"));f.C.oa("showFieldListSearch",b);a&&f.cb()}}static get KI(){return f.U("showExtraTotalLabels")}static set KI(b){if(f.C.U("showExtraTotalLabels")!=b){const a=!e.v(f.C.U("showExtraTotalLabels"));f.C.oa("showExtraTotalLabels",b);a&&f.cb()}}static get Zk(){return f.U("showHeaders")}static set Zk(b){if(f.C.U("showHeaders")!=
b){const a=!e.v(f.C.U("showHeaders"));f.C.oa("showHeaders",b);a&&f.cb()}}static get Nj(){return this.readOnly?this.lC.sorting:f.U("sorting")}static set Nj(b){if(f.C.U("sorting")!=b){const a=!e.v(f.C.U("sorting"));f.C.oa("sorting",b);a&&f.cb()}}static get mU(){return e.u.Ma.R().ga.Aa===e.u.i.ra.API||e.u.Ma.R().ga.Ec?!1:f.U("grouping")}static set mU(b){if(f.C.U("grouping")!=b){const a=!e.v(f.C.U("grouping"));f.C.oa("grouping",b);a&&f.cb()}}static get gD(){return f.U("editing")}static set gD(b){if(f.C.U("editing")!=
b){const a=!e.v(f.C.U("editing"));f.C.oa("editing",b);a&&f.cb()}}static get cd(){return this.readOnly?this.lC.drillThrough:f.U("drillThrough")}static set cd(b){if(f.C.U("drillThrough")!=b){const a=!e.v(f.C.U("drillThrough"));f.C.oa("drillThrough",b);a&&f.cb()}}static get wja(){return f.U("showDrillThroughConfigurator")}static set wja(b){if(f.C.U("showDrillThroughConfigurator")!=b){const a=!e.v(f.C.U("showDrillThroughConfigurator"));f.C.oa("showDrillThroughConfigurator",b);a&&f.cb()}}static get UE(){return f.U("showHierarchies")}static set UE(b){if(f.C.U("showHierarchies")!=
b){const a=!e.v(f.C.U("showHierarchies"));f.C.oa("showHierarchies",b);a&&f.cb()}}static get uja(){return f.U("showChartsWarning")}static set uja(b){if(f.C.U("showChartsWarning")!=b){const a=!e.v(f.C.U("showChartsWarning"));f.C.oa("showChartsWarning",b);a&&f.cb()}}static get sja(){return f.U("showChartLegend")}static set sja(b){if(f.C.U("showChartLegend")!=b){const a=!e.v(f.C.U("showChartLegend"));f.C.oa("showChartLegend",b);a&&f.cb()}}static get Q5(){return f.U("showChartLegendButton")}static set Q5(b){if(f.C.U("showChartLegendButton")!=
b){const a=!e.v(f.C.U("showChartLegendButton"));f.C.oa("showChartLegendButton",b);a&&f.cb()}}static get uW(){return f.U("saveAllFormats")}static set uW(b){if(f.C.U("saveAllFormats")!=b){const a=!e.v(f.C.U("saveAllFormats"));f.C.oa("saveAllFormats",b);a&&f.cb()}}static get tu(){return f.U("calculatedValuesOLAP")}static set tu(b){if(f.C.U("calculatedValuesOLAP")!=b){const a=!e.v(f.C.U("calculatedValuesOLAP"));f.C.oa("calculatedValuesOLAP",b);a&&f.cb()}}static get L2(){return f.U("includeEmptySubtotalsOLAP")}static set L2(b){if(f.C.U("includeEmptySubtotalsOLAP")!=
b){const a=!e.v(f.C.U("includeEmptySubtotalsOLAP"));f.C.oa("includeEmptySubtotalsOLAP",b);a&&f.cb()}}static get R5(){return f.U("showChartOneMeasureSelection")}static set R5(b){if(f.C.U("showChartOneMeasureSelection")!=b){const a=!e.v(f.C.U("showChartOneMeasureSelection"));f.C.oa("showChartOneMeasureSelection",b);a&&f.cb()}}static get tja(){return this.readOnly?this.lC.showChartMeasures:f.U("showChartMeasures")}static set tja(b){if(f.C.U("showChartMeasures")!=b){const a=!e.v(f.C.U("showChartMeasures"));
f.C.oa("showChartMeasures",b);a&&f.cb()}}static get bf(){return f.U("showTotals")}static set bf(b){if(f.C.U("showTotals")!=b){const a=!e.v(f.C.U("showTotals"));f.C.oa("showTotals",b);f.uv=f.mA("showTotals");a&&f.cb()}}static get qja(){return f.U("showAutoCalculationBar")}static set qja(b){if(f.C.U("showAutoCalculationBar")!=b){const a=!e.v(f.C.U("showAutoCalculationBar"));f.C.oa("showAutoCalculationBar",b);a&&f.cb()}}static get Lf(){return f.U("showGrandTotals")}static set Lf(b){if(f.C.U("showGrandTotals")!=
b){const a=!e.v(f.C.U("showGrandTotals"));f.C.oa("showGrandTotals",b);f.uv=f.mA("showGrandTotals");a&&f.cb()}}static get Le(){return f.U("strictDataTypes")}static set Le(b){if(f.C.U("strictDataTypes")!==b){const a=!e.v(f.C.U("strictDataTypes"));f.C.oa("strictDataTypes",b);a&&f.cb()}}static get $L(){return f.U("defaultDateType")}static set $L(b){if(f.C.U("defaultDateType")!=b&&e.u.i.input.sa.valid(b)){const a=!e.v(f.C.U("defaultDateType"));f.C.oa("defaultDateType",b);a&&f.cb()}}static get Up(){return f.U("datePattern")}static set Up(b){if(f.C.U("datePattern")!=
b){const a=!e.v(f.C.U("datePattern"));f.C.oa("datePattern",b);a&&f.cb()}}static get Ek(){return f.U("dateTimePattern")}static set Ek(b){if(f.C.U("dateTimePattern")!=b){const a=!e.v(f.C.U("dateTimePattern"));f.C.oa("dateTimePattern",b);a&&f.cb()}}static get np(){return f.U("timePattern")}static set np(b){if(f.C.U("timePattern")!=b){const a=!e.v(f.C.U("timePattern"));f.C.oa("timePattern",b);a&&f.cb()}}static get $j(){return f.U("dateTimezoneOffset")}static set $j(b){if(f.C.U("dateTimezoneOffset")!=
b){const a=!e.v(f.C.U("dateTimezoneOffset"));f.C.oa("dateTimezoneOffset",b);a&&f.cb()}}static get P5(){return f.U("showCalculatedValuesButton")}static set P5(b){if(f.C.U("showCalculatedValuesButton")!=b){const a=!e.v(f.C.U("showCalculatedValuesButton"));f.C.oa("showCalculatedValuesButton",b);a&&f.cb()}}static get QW(){return f.U("showOutdatedDataAlert")}static set QW(b){if(f.C.U("showOutdatedDataAlert")!=b){const a=!e.v(f.C.U("showOutdatedDataAlert"));f.C.oa("showOutdatedDataAlert",b);a&&f.cb()}}static get Pca(){return f.U("defaultHierarchySortName")}static set Pca(b){if(f.C.U("defaultHierarchySortName")!=
b){const a=!e.v(f.C.U("defaultHierarchySortName"));f.C.oa("defaultHierarchySortName",b);a&&f.cb()}}static get Tx(){return f.U("showAggregationLabels")}static set Tx(b){if(f.C.U("showAggregationLabels")!=b){const a=!e.v(f.C.U("showAggregationLabels"));f.C.oa("showAggregationLabels",b);a&&f.cb()}}static get TH(){return f.U("grandTotalsPosition")}static set TH(b){if(f.C.U("grandTotalsPosition")!=b){const a=!e.v(f.C.U("grandTotalsPosition"));f.C.oa("grandTotalsPosition",b);f.uv=f.mA("grandTotalsPosition");
a&&f.cb()}}static get IL(){return f.U("columnTotalsPosition")}static set IL(b){if(f.C.U("columnTotalsPosition")!=b){const a=!e.v(f.C.U("columnTotalsPosition"));f.C.oa("columnTotalsPosition",b);f.uv=f.mA("columnTotalsPosition");a&&f.cb()}}static get MI(){return f.U("showReportFiltersArea")}static set MI(b){if(f.C.U("showReportFiltersArea")!=b){const a=!e.v(f.C.U("showReportFiltersArea"));f.C.oa("showReportFiltersArea",b);a&&f.cb()}}static get sz(){return this.readOnly?this.lC.dragging:f.U("dragging")}static set sz(b){if(f.C.U("dragging")!=
b){const a=!e.v(f.C.U("dragging"));f.C.oa("dragging",b);a&&f.cb()}}static get Yw(){return f.U("filterWeekOffset")}static set Yw(b){if(f.C.U("filterWeekOffset")!=b){const a=!e.v(f.C.U("filterWeekOffset"));f.C.oa("filterWeekOffset",b);a&&f.cb()}}static get p1(){return f.U("filterDateFormat")}static set p1(b){if(f.C.U("filterDateFormat")!=b){const a=!e.v(f.C.U("filterDateFormat"));f.C.oa("filterDateFormat",b);a&&f.cb()}}static get wT(){return f.U("filterLiveSearch")}static set wT(b){if(f.C.U("filterLiveSearch")!=
b){const a=!e.v(f.C.U("filterLiveSearch"));f.C.oa("filterLiveSearch",b);a&&f.cb()}}static get cn(){return f.U("liveFiltering")}static set cn(b){if(f.C.U("liveFiltering")!=b){const a=!e.v(f.C.U("liveFiltering"));f.C.oa("liveFiltering",b);a&&f.cb()}}static get jD(){return f.U("fieldListPosition")}static set jD(b){if(f.C.U("fieldListPosition")!=b){const a=!e.v(f.C.U("fieldListPosition"));f.C.oa("fieldListPosition",b);a&&f.cb()}}static get RO(){return f.U("validateFormulas")}static set RO(b){if(f.C.U("validateFormulas")!=
b){const a=!e.v(f.C.U("validateFormulas"));f.C.oa("validateFormulas",b);a&&f.cb()}}static get zw(){return f.U("caseSensitiveMembers")}static set zw(b){if(f.C.U("caseSensitiveMembers")!=b){const a=!e.v(f.C.U("caseSensitiveMembers"));f.C.oa("caseSensitiveMembers",b);a&&f.cb()}}static get Dja(){return f.U("simplifyFieldListFolders")}static set Dja(b){if(f.C.U("simplifyFieldListFolders")!=b){const a=!e.v(f.C.U("simplifyFieldListFolders"));f.C.oa("simplifyFieldListFolders",b);a&&f.cb()}}static get H6(){return f.U("validateReportFiles")}static set H6(b){if(f.C.U("validateReportFiles")!=
b){const a=!e.v(f.C.U("validateReportFiles"));f.C.oa("validateReportFiles",b);a&&f.cb()}}static get gS(){return f.U("allowBrowsersCache")}static set gS(b){if(f.C.U("allowBrowsersCache")!=b){const a=!e.v(f.C.U("allowBrowsersCache"));f.C.oa("allowBrowsersCache",b);a&&f.cb()}}static get TE(){return f.U("showEmptyValues")}static set TE(b){if(f.C.U("showEmptyValues")!=b){const a=!e.v(f.C.U("showEmptyValues"));f.C.oa("showEmptyValues",b);a&&f.cb()}}static get qr(){return f.U("distinguishNullUndefinedEmpty")}static set qr(b){if(f.C.U("distinguishNullUndefinedEmpty")!=
b){const a=!e.v(f.C.U("distinguishNullUndefinedEmpty"));f.C.oa("distinguishNullUndefinedEmpty",b);a&&f.cb()}}static get kX(){return f.U("useCaptionsInCalculatedValueEditor")}static set kX(b){if(f.C.U("useCaptionsInCalculatedValueEditor")!=b){const a=!e.v(f.C.U("useCaptionsInCalculatedValueEditor"));f.C.oa("useCaptionsInCalculatedValueEditor",b);a&&f.cb()}}static get oT(){return f.U("expandExecutionTimeout")}static set oT(b){if(f.C.U("expandExecutionTimeout")!=b){const a=!e.v(f.C.U("expandExecutionTimeout"));
f.C.oa("expandExecutionTimeout",b);a&&f.cb()}}static get readOnly(){return f.U("readOnly")}static set readOnly(b){if(f.C.U("readOnly")!=b){const a=!e.v(f.C.U("readOnly"));f.C.oa("readOnly",b);a&&f.cb()}}static get Fba(){return f.U("autoSwitchToCompact")}static set Fba(b){if(f.C.U("autoSwitchToCompact")!=b){const a=!e.v(f.C.U("autoSwitchToCompact"));f.C.oa("autoSwitchToCompact",b);a&&f.cb()}}static get rM(){return f.U("filterByDateAndTime")}static set rM(b){if(f.C.U("filterByDateAndTime")!=b){const a=
!e.v(f.C.U("filterByDateAndTime"));f.C.oa("filterByDateAndTime",b);a&&f.cb()}}static get hS(){return f.U("allowEmptyMembersFilter")}static set hS(b){if(f.C.U("allowEmptyMembersFilter")!=b){const a=!e.v(f.C.U("allowEmptyMembersFilter"));f.C.oa("allowEmptyMembersFilter",b);a&&f.cb()}}static cb(){f.N0||f.R().Ha(new w.ia(l.Xb.Vc.rk))}}f.uv=!1;f.N0=!1;f.tta=["gridType","showTotals","showGrandTotals","grandTotalsPosition","columnTotalsPosition"];f.lC={showFilter:!1,dragging:!1,showFilterInCharts:!1,showChartMeasures:!1,
configuratorButton:!1,sorting:"off",drillThrough:!1};h.F=f})(l.C||(l.C={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.Rd={configuratorActive:!1,configuratorOpened:!1,configuratorButton:!0,viewType:e.K.Jd.It,chartTitle:"",gridType:e.K.Y.wf.YA,gridTitle:"",chartType:e.K.Dd.Oe.XA,chartOneLevel:!1,chartOneLevelTuple:[],chartOneLevelColumnTuple:[],chartMultipleMeasures:!1,chartActiveMeasure:{},chartActiveMeasures:[],chartActiveTupleIndex:0,chartPosition:"bottom",chartAutoRange:!1,chartReversedAxes:!1,chartAxisShortNumberFormat:null,showFilter:!0,showFilterInCharts:!0,
showDefaultSlice:!0,useOlapFormatting:!1,showMemberProperties:!1,showEmptyData:!0,showAggregations:!0,showHierarchyCaptions:!0,drillThroughMaxRows:1E3,showAllFieldsDrillThrough:!1,showChartDataLabels:!1,showAllChartLabels:!1,showHeaders:!0,showReportFiltersArea:!0,showExtraTotalLabels:!1,showFieldListSearch:!1,drillThrough:!0,showDrillThroughConfigurator:!0,editing:!1,grouping:!1,sorting:"on",dragging:!0,showHierarchies:!0,showChartsWarning:!0,showChartLegend:!0,showChartLegendButton:!1,saveAllFormats:!1,
calculatedValuesOLAP:!1,includeEmptySubtotalsOLAP:!1,showChartOneMeasureSelection:!0,showChartMeasures:!0,showTotals:"on",showGrandTotals:"on",strictDataTypes:!1,defaultDateType:e.u.i.input.sa.Ua,datePattern:"dd/MM/yyyy",dateTimePattern:"dd/MM/yyyy HH:mm:ss",dateTimezoneOffset:null,timePattern:null,showCalculatedValuesButton:!0,showOutdatedDataAlert:!1,defaultHierarchySortName:e.u.i.Ba.hc,showAggregationLabels:!0,grandTotalsPosition:"top",columnTotalsPosition:"before",showAutoCalculationBar:!0,filterWeekOffset:1,
filterDateFormat:"dd/MM/yyyy",filterLiveSearch:!0,liveFiltering:!1,fieldListPosition:null,validateFormulas:!0,caseSensitiveMembers:!1,simplifyFieldListFolders:!1,validateReportFiles:!0,allowBrowsersCache:!1,showEmptyValues:!1,distinguishNullUndefinedEmpty:!1,useCaptionsInCalculatedValueEditor:!1,expandExecutionTimeout:9E3,readOnly:!1,autoSwitchToCompact:!0,filterByDateAndTime:!1,allowEmptyMembersFilter:!1}}oa(b,a){this[b]=a}U(b){return this[b]}NE(){for(var b in this.Rd)this[b]=this.Rd[b]}Sva(){if(!e.v(void 0))for(var b=
0;b<(void 0).length;b++){var a=(void 0)[b];void 0!=this[a]&&(this[a]==this.Rd[a]||"object"==typeof this[a]&&u.Hc.Og(this[a])&&u.Hc.Og(this.Rd[a]))&&(this[a]=void 0)}else for(a in this.Rd)if(this[a]==this.Rd[a]||"object"==typeof this[a]&&u.Hc.Og(this[a])&&u.Hc.Og(this.Rd[a]))this[a]=void 0}static xb(b){var a=new f;if(void 0==b)return a;null!=b.options&&(b=b.options);b instanceof f||(b=f.um(b));null!=b.configuratorActive&&a.oa("configuratorActive",b.configuratorActive);null!=b.configuratorButton&&a.oa("configuratorButton",
b.configuratorButton);null!=b.viewType&&e.K.Jd.ih(b.viewType)&&a.oa("viewType",b.viewType);null!=b.chartTitle&&a.oa("chartTitle",b.chartTitle);null!=b.gridTitle&&a.oa("gridTitle",b.gridTitle);null!=b.chartType&&a.oa("chartType",e.K.Dd.Oe.validate(b.chartType));null!=b.chartOneLevel&&a.oa("chartOneLevel",b.chartOneLevel);null!=b.chartOneLevelTuple&&a.oa("chartOneLevelTuple",b.chartOneLevelTuple);null!=b.chartOneLevelColumnTuple&&a.oa("chartOneLevelColumnTuple",b.chartOneLevelColumnTuple);null!=b.chartActiveMeasure&&
a.oa("chartActiveMeasure",b.chartActiveMeasure);null!=b.chartActiveMeasures&&a.oa("chartActiveMeasures",b.chartActiveMeasures);null!=b.chartActiveTupleIndex&&a.oa("chartActiveTupleIndex",b.chartActiveTupleIndex);null!=b.chartAutoRange&&a.oa("chartAutoRange",b.chartAutoRange);null!=b.chartReversedAxes&&a.oa("chartReversedAxes",b.chartReversedAxes);null!=b.chartPosition&&a.oa("chartPosition",b.chartPosition);null!=b.chartAxisShortNumberFormat&&a.oa("chartAxisShortNumberFormat",b.chartAxisShortNumberFormat);
null!=b.classicView&&1==b.classicView&&a.oa("gridType",e.K.Y.wf.Fv);null!=b.tableType&&b.tableType==e.K.Y.wf.rj&&a.oa("gridType",e.K.Y.wf.rj);null!=b.flatView&&1==b.flatView&&a.oa("gridType",e.K.Y.wf.rj);null!=b.gridType&&a.oa("gridType",b.gridType);null!=b.showAutoCalculationBar&&a.oa("showAutoCalculationBar",b.showAutoCalculationBar);null!=b.autoSwitchToCompact&&a.oa("autoSwitchToCompact",b.autoSwitchToCompact);null!=b.liveFiltering&&a.oa("liveFiltering",b.liveFiltering);null!=b.fieldListPosition&&
a.oa("fieldListPosition",b.fieldListPosition);null!=b.showFilter&&a.oa("showFilter",b.showFilter);null!=b.showDefaultSlice&&a.oa("showDefaultSlice",b.showDefaultSlice);null!=b.useOlapFormatting&&a.oa("useOlapFormatting",b.useOlapFormatting);null!=b.showMemberProperties&&a.oa("showMemberProperties",b.showMemberProperties);null!=b.showEmptyData&&a.oa("showEmptyData",b.showEmptyData);null!=b.showFilterInCharts&&a.oa("showFilterInCharts",b.showFilterInCharts);null!=b.showAggregations&&a.oa("showAggregations",
b.showAggregations);null!=b.showHierarchyCaptions&&a.oa("showHierarchyCaptions",b.showHierarchyCaptions);null!=b.drillthroughMaxRows&&a.oa("drillThroughMaxRows",b.drillthroughMaxRows);null!=b.drillThroughMaxRows&&a.oa("drillThroughMaxRows",b.drillThroughMaxRows);null!=b.showAllFieldsDrillThrough&&a.oa("showAllFieldsDrillThrough",b.showAllFieldsDrillThrough);null!=b.showFieldListSearch&&a.oa("showFieldListSearch",b.showFieldListSearch);null!=b.showChartDataLabels&&a.oa("showChartDataLabels",b.showChartDataLabels);
null!=b.showAllChartLabels&&a.oa("showAllChartLabels",b.showAllChartLabels);null!=b.chartMultipleMeasures&&a.oa("chartMultipleMeasures",b.chartMultipleMeasures);null!=b.showHeaders&&a.oa("showHeaders",b.showHeaders);null!=b.showReportFiltersArea&&a.oa("showReportFiltersArea",b.showReportFiltersArea);null!=b.showExtraTotalLabels&&a.oa("showExtraTotalLabels",b.showExtraTotalLabels);null!=b.grouping&&a.oa("grouping",b.grouping);null!=b.editing&&a.oa("editing",b.editing);null!=b.drillThrough&&a.oa("drillThrough",
b.drillThrough);null!=b.showDrillThroughConfigurator&&a.oa("showDrillThroughConfigurator",b.showDrillThroughConfigurator);null!=b.sorting&&(a.oa("sorting",b.sorting),"true"==a.U("sorting").toString().toLowerCase()&&a.oa("sorting","on"),"false"==a.U("sorting").toString().toLowerCase()&&a.oa("sorting","off"));null!=b.dragging&&a.oa("dragging",b.dragging);null!=b.showHierarchies&&a.oa("showHierarchies",b.showHierarchies);null!=b.showChartsWarning&&a.oa("showChartsWarning",b.showChartsWarning);null!=
b.showChartLegend&&a.oa("showChartLegend",b.showChartLegend);null!=b.showChartLegendButton&&a.oa("showChartLegendButton",b.showChartLegendButton);null!=b.saveAllFormats&&a.oa("saveAllFormats",b.saveAllFormats);null!=b.calculatedValuesOLAP&&a.oa("calculatedValuesOLAP",b.calculatedValuesOLAP);null!=b.includeEmptySubtotalsOLAP&&a.oa("includeEmptySubtotalsOLAP",b.includeEmptySubtotalsOLAP);null!=b.showChartOneMeasureSelection&&a.oa("showChartOneMeasureSelection",b.showChartOneMeasureSelection);null!=
b.showChartMeasures&&a.oa("showChartMeasures",b.showChartMeasures);null!=b.showTotals&&(a.oa("showTotals",b.showTotals),"true"==a.U("showTotals").toString().toLowerCase()&&a.oa("showTotals","on"),"false"==a.U("showTotals").toString().toLowerCase()&&a.oa("showTotals","off"));null!=b.showGrandTotals&&(a.oa("showGrandTotals",b.showGrandTotals),"true"==a.U("showGrandTotals").toString().toLowerCase()&&a.oa("showGrandTotals","on"),"false"==a.U("showGrandTotals").toString().toLowerCase()&&a.oa("showGrandTotals",
"off"));null!=b.defaultDateType&&a.oa("defaultDateType",b.defaultDateType);null!=b.strictDataTypes&&a.oa("strictDataTypes",b.strictDataTypes);null!=b.datePattern&&a.oa("datePattern",b.datePattern);null!=b.dateTimePattern&&a.oa("dateTimePattern",b.dateTimePattern);null!=b.dateTimezoneOffset&&a.oa("dateTimezoneOffset",b.dateTimezoneOffset);null!=b.timePattern&&a.oa("timePattern",b.timePattern);null!=b.showCalculatedValuesButton&&a.oa("showCalculatedValuesButton",b.showCalculatedValuesButton);null!=
b.showOutdatedDataAlert&&a.oa("showOutdatedDataAlert",b.showOutdatedDataAlert);null!=b.defaultHierarchySortName&&a.oa("defaultHierarchySortName",b.defaultHierarchySortName);null!=b.showAggregationLabels&&a.oa("showAggregationLabels",b.showAggregationLabels);null!=b.grandTotalsPosition&&a.oa("grandTotalsPosition",b.grandTotalsPosition);null!=b.columnTotalsPosition&&a.oa("columnTotalsPosition",b.columnTotalsPosition);e.v(b.filterWeekOffset)||a.oa("filterWeekOffset",b.filterWeekOffset);e.v(b.filterDateFormat)||
a.oa("filterDateFormat",b.filterDateFormat);e.v(b.filterLiveSearch)||a.oa("filterLiveSearch",b.filterLiveSearch);e.v(b.filterByDateAndTime)||a.oa("filterByDateAndTime",b.filterByDateAndTime);e.v(b.allowEmptyMembersFilter)||a.oa("allowEmptyMembersFilter",b.allowEmptyMembersFilter);e.v(b.caseSensitiveMembers)||a.oa("caseSensitiveMembers",b.caseSensitiveMembers);e.v(b.validateFormulas)||a.oa("validateFormulas",b.validateFormulas);e.v(b.simplifyFieldListFolders)||a.oa("simplifyFieldListFolders",b.simplifyFieldListFolders);
e.v(b.validateReportFiles)||a.oa("validateReportFiles",b.validateReportFiles);e.v(b.allowBrowsersCache)||a.oa("allowBrowsersCache",b.allowBrowsersCache);e.v(b.showEmptyValues)||a.oa("showEmptyValues",b.showEmptyValues);e.v(b.distinguishNullUndefinedEmpty)||a.oa("distinguishNullUndefinedEmpty",b.distinguishNullUndefinedEmpty);e.v(b.useCaptionsInCalculatedValueEditor)||a.oa("useCaptionsInCalculatedValueEditor",b.useCaptionsInCalculatedValueEditor);!e.v(b.expandExecutionTimeout)&&b.expandExecutionTimeout>
a.Rd.expandExecutionTimeout&&a.oa("expandExecutionTimeout",parseInt(b.expandExecutionTimeout));e.v(b.readOnly)||a.oa("readOnly",b.readOnly);e.v(b.autoSwitchToCompact)||a.oa("autoSwitchToCompact",b.autoSwitchToCompact);return a}static um(b){var a={};if(void 0==b)return a;null!=b.viewType&&(a.viewType=b.viewType);null!=b.configuratorActive&&(a.configuratorActive=b.configuratorActive);null!=b.configuratorButton&&(a.configuratorButton=b.configuratorButton);null!=b.showAggregations&&(a.showAggregations=
b.showAggregations);null!=b.showCalculatedValuesButton&&(a.showCalculatedValuesButton=b.showCalculatedValuesButton);null!=b.grouping&&(a.grouping=b.grouping);null!=b.editing&&(a.editing=b.editing);null!=b.drillThrough&&(a.drillThrough=b.drillThrough);null!=b.showDrillThroughConfigurator&&(a.showDrillThroughConfigurator=b.showDrillThroughConfigurator);null!=b.sorting&&(a.sorting=b.sorting);null!=b.strictDataTypes&&(a.strictDataTypes=b.strictDataTypes);null!=b.defaultDateType&&(a.defaultDateType=b.defaultDateType);
null!=b.datePattern&&(a.datePattern=b.datePattern);null!=b.dateTimePattern&&(a.dateTimePattern=b.dateTimePattern);null!=b.dateTimezoneOffset&&(a.dateTimezoneOffset=b.dateTimezoneOffset);null!=b.timePattern&&(a.timePattern=b.timePattern);null!=b.saveAllFormats&&(a.saveAllFormats=b.saveAllFormats);null!=b.showDefaultSlice&&(a.showDefaultSlice=b.showDefaultSlice);null!=b.useOlapFormatting&&(a.useOlapFormatting=b.useOlapFormatting);null!=b.showMemberProperties&&(a.showMemberProperties=b.showMemberProperties);
null!=b.showEmptyData&&(a.showEmptyData=b.showEmptyData);null!=b.defaultHierarchySortName&&(a.defaultHierarchySortName=b.defaultHierarchySortName);null!=b.calculatedValuesOLAP&&(a.calculatedValuesOLAP=b.calculatedValuesOLAP);null!=b.includeEmptySubtotalsOLAP&&(a.includeEmptySubtotalsOLAP=b.includeEmptySubtotalsOLAP);null!=b.showOutdatedDataAlert&&(a.showOutdatedDataAlert=b.showOutdatedDataAlert);null!=b.showAggregationLabels&&(a.showAggregationLabels=b.showAggregationLabels);null!=b.liveFiltering&&
(a.liveFiltering=b.liveFiltering);null!=b.fieldListPosition&&(a.fieldListPosition=b.fieldListPosition);null!=b.classicView&&(a.classicView=b.classicView);null!=b.flatView&&(a.flatView=b.flatView);null!=b.gridType&&(a.gridType=b.gridType);null!=b.gridTitle&&(a.gridTitle=b.gridTitle);null!=b.showFilter&&(a.showFilter=b.showFilter);null!=b.showHeaders&&(a.showHeaders=b.showHeaders);null!=b.showTotals&&(a.showTotals=b.showTotals);null!=b.showGrandTotals&&(a.showGrandTotals=b.showGrandTotals);null!=b.columnTotalsPosition&&
(a.columnTotalsPosition=b.columnTotalsPosition);null!=b.grandTotalsPosition&&(a.grandTotalsPosition=b.grandTotalsPosition);null!=b.showExtraTotalLabels&&(a.showExtraTotalLabels=b.showExtraTotalLabels);null!=b.showHierarchies&&(a.showHierarchies=b.showHierarchies);null!=b.showHierarchyCaptions&&(a.showHierarchyCaptions=b.showHierarchyCaptions);null!=b.drillthroughMaxRows&&(a.drillThroughMaxRows=b.drillthroughMaxRows);null!=b.drillThroughMaxRows&&(a.drillThroughMaxRows=b.drillThroughMaxRows);null!=
b.showAllFieldsDrillThrough&&(a.showAllFieldsDrillThrough=b.showAllFieldsDrillThrough);null!=b.showReportFiltersArea&&(a.showReportFiltersArea=b.showReportFiltersArea);null!=b.dragging&&(a.dragging=b.dragging);null!=b.showAutoCalculationBar&&(a.showAutoCalculationBar=b.showAutoCalculationBar);null!=b.autoSwitchToCompact&&(a.autoSwitchToCompact=b.autoSwitchToCompact);null!=b.showFieldListSearch&&(a.showFieldListSearch=b.showFieldListSearch);null!=b.chartType&&(a.chartType=b.chartType);null!=b.chartTitle&&
(a.chartTitle=b.chartTitle);null!=b.showFilterInCharts&&(a.showFilterInCharts=b.showFilterInCharts);null!=b.chartMultipleMeasures&&(a.chartMultipleMeasures=b.chartMultipleMeasures);null!=b.chartOneLevel&&(a.chartOneLevel=b.chartOneLevel);null!=b.chartOneLevelTuple&&(a.chartOneLevelTuple=b.chartOneLevelTuple);null!=b.chartOneLevelColumnTuple&&(a.chartOneLevelColumnTuple=b.chartOneLevelColumnTuple);null!=b.chartAutoRange&&(a.chartAutoRange=b.chartAutoRange);null!=b.chartReversedAxes&&(a.chartReversedAxes=
b.chartReversedAxes);null!=b.chartAxisShortNumberFormat&&(a.chartAxisShortNumberFormat=b.chartAxisShortNumberFormat);null!=b.showChartLegend&&(a.showChartLegend=b.showChartLegend);null!=b.showChartLegendButton&&(a.showChartLegendButton=b.showChartLegendButton);null!=b.showChartDataLabels&&(a.showChartDataLabels=b.showChartDataLabels);null!=b.showAllChartLabels&&(a.showAllChartLabels=b.showAllChartLabels);null!=b.showChartMeasures&&(a.showChartMeasures=b.showChartMeasures);null!=b.showChartOneMeasureSelection&&
(a.showChartOneMeasureSelection=b.showChartOneMeasureSelection);null!=b.showChartsWarning&&(a.showChartsWarning=b.showChartsWarning);null!=b.chartPosition&&(a.chartPosition=b.chartPosition);null!=b.chartActiveTupleIndex&&(a.chartActiveTupleIndex=b.chartActiveTupleIndex);null!=b.chartActiveMeasure&&(a.chartActiveMeasure=b.chartActiveMeasure);null!=b.chartActiveMeasures&&(a.chartActiveMeasures=b.chartActiveMeasures);e.v(b.filterWeekOffset)||(a.filterWeekOffset=b.filterWeekOffset);e.v(b.filterDateFormat)||
(a.filterDateFormat=b.filterDateFormat);e.v(b.filterLiveSearch)||(a.filterLiveSearch=b.filterLiveSearch);e.v(b.filterByDateAndTime)||(a.filterByDateAndTime=b.filterByDateAndTime);e.v(b.allowEmptyMembersFilter)||(a.allowEmptyMembersFilter=b.allowEmptyMembersFilter);e.v(b.validateFormulas)||(a.validateFormulas=b.validateFormulas);e.v(b.caseSensitiveMembers)||(a.caseSensitiveMembers=b.caseSensitiveMembers);e.v(b.simplifyFieldListFolders)||(a.simplifyFieldListFolders=b.simplifyFieldListFolders);e.v(b.validateReportFiles)||
(a.validateReportFiles=b.validateReportFiles);e.v(b.allowBrowsersCache)||(a.allowBrowsersCache=b.allowBrowsersCache);e.v(b.showEmptyValues)||(a.showEmptyValues=b.showEmptyValues);e.v(b.distinguishNullUndefinedEmpty)||(a.distinguishNullUndefinedEmpty=b.distinguishNullUndefinedEmpty);e.v(b.useCaptionsInCalculatedValueEditor)||(a.useCaptionsInCalculatedValueEditor=b.useCaptionsInCalculatedValueEditor);e.v(b.expandExecutionTimeout)||(a.expandExecutionTimeout=b.expandExecutionTimeout);e.v(b.readOnly)||
(a.readOnly=b.readOnly);if(null!=b.grid){var c=b.grid;null!=c.type&&(a.gridType=c.type);null!=c.title&&(a.gridTitle=c.title);null!=c.showFilter&&(a.showFilter=c.showFilter);null!=c.showHeaders&&(a.showHeaders=c.showHeaders);null!=c.showAutoCalculationBar&&(a.showAutoCalculationBar=c.showAutoCalculationBar);null!=c.showTotals&&(a.showTotals=c.showTotals,"true"==a.showTotals.toString().toLowerCase()&&(a.showTotals="on"),"false"==a.showTotals.toString().toLowerCase()&&(a.showTotals="off"));null!=c.showGrandTotals&&
(a.showGrandTotals=c.showGrandTotals,"true"==a.showGrandTotals.toString().toLowerCase()&&(a.showGrandTotals="on"),"false"==a.showGrandTotals.toString().toLowerCase()&&(a.showGrandTotals="off"));null!=c.grandTotalsPosition&&(a.grandTotalsPosition=c.grandTotalsPosition);null!=c.columnTotalsPosition&&(a.columnTotalsPosition=c.columnTotalsPosition);null!=c.showExtraTotalLabels&&(a.showExtraTotalLabels=c.showExtraTotalLabels);null!=c.showHierarchies&&(a.showHierarchies=c.showHierarchies);null!=c.showHierarchyCaptions&&
(a.showHierarchyCaptions=c.showHierarchyCaptions);null!=c.drillthroughMaxRows&&(a.drillThroughMaxRows=c.drillthroughMaxRows);null!=c.drillThroughMaxRows&&(a.drillThroughMaxRows=c.drillThroughMaxRows);null!=c.showReportFiltersArea&&(a.showReportFiltersArea=c.showReportFiltersArea);null!=c.dragging&&(a.dragging=c.dragging);null!=c.showEmptyValues&&(a.showEmptyValues=c.showEmptyValues);null!=c.distinguishNullUndefinedEmpty&&(a.distinguishNullUndefinedEmpty=c.distinguishNullUndefinedEmpty);null!=c.autoSwitchToCompact&&
(a.autoSwitchToCompact=c.autoSwitchToCompact)}if(null!=b.chart){c=b.chart;null!=c.type&&(a.chartType=c.type);null!=c.title&&(a.chartTitle=c.title);null!=c.showFilter&&(a.showFilterInCharts=c.showFilter);null!=c.multipleMeasures&&(a.chartMultipleMeasures=c.multipleMeasures);null!=c.oneLevel&&(a.chartOneLevel=c.oneLevel);null!=c.autoRange&&(a.chartAutoRange=c.autoRange);null!=c.reversedAxes&&(a.chartReversedAxes=c.reversedAxes);null!=c.showLegend&&(a.showChartLegend=c.showLegend);null!=c.showLegendButton&&
(a.showChartLegendButton=c.showLegendButton);null!=c.showDataLabels&&(a.showChartDataLabels=c.showDataLabels);null!=c.showAllLabels&&(a.showAllChartLabels=c.showAllLabels);null!=c.showMeasures&&(a.showChartMeasures=c.showMeasures);null!=c.showOneMeasureSelection&&(a.showChartOneMeasureSelection=c.showOneMeasureSelection);null!=c.showWarning&&(a.showChartsWarning=c.showWarning);null!=c.position&&(a.chartPosition=c.position);null!=c.pieDataIndex&&(a.chartActiveTupleIndex=parseInt(c.pieDataIndex));null!=
c.axisShortNumberFormat&&(a.chartAxisShortNumberFormat=c.axisShortNumberFormat);if(null!=c.activeMeasure)if(a.chartMultipleMeasures){a.chartActiveMeasures=[];let k;Array.isArray(c.activeMeasure)?k=c.activeMeasure:"object"===typeof c.activeMeasure?k=[c.activeMeasure]:"string"===typeof c.activeMeasure&&(k=c.activeMeasure.split(","));if(!e.v(k))for(var d=0;d<k.length;d++)if(null!=k[d].uniqueName){var g=new l.hb.oh(k[d].uniqueName);null!=k[d].aggregation&&(g.$=k[d].aggregation);a.chartActiveMeasures.push(g)}else a.chartActiveMeasures.push(new l.hb.oh(k[d]))}else a.chartActiveMeasure=
new l.hb.oh,null!=c.activeMeasure.uniqueName?(a.chartActiveMeasure.A=c.activeMeasure.uniqueName,null!=c.activeMeasure.aggregation&&(a.chartActiveMeasure.$=c.activeMeasure.aggregation)):a.chartActiveMeasure.A=c.activeMeasure;null!=c.oneLevelTuple&&(a.chartOneLevelTuple=0<c.oneLevelTuple.length?c.oneLevelTuple.split(","):void 0);null!=c.oneLevelColumnTuple&&(a.chartOneLevelColumnTuple=0<c.oneLevelColumnTuple.length?c.oneLevelColumnTuple.split(","):void 0)}e.v(b.filter)||(b=b.filter,e.v(b.weekOffset)||
(a.filterWeekOffset=b.weekOffset),e.v(b.dateFormat)||(a.filterDateFormat=b.dateFormat),e.v(b.liveSearch)||(a.filterLiveSearch=b.liveSearch),e.v(b.filterByDateAndTime)||(a.filterByDateAndTime=b.filterByDateAndTime),e.v(b.allowEmptyMembersFilter)||(a.allowEmptyMembersFilter=b.allowEmptyMembersFilter));return a}Sa(){var b={};null!=this.viewType&&(b.viewType=this.viewType);var a={};this.gridType===e.K.Y.wf.YA?a.type=e.K.Y.wf.YA:this.gridType===e.K.Y.wf.Fv?a.type=e.K.Y.wf.Fv:this.gridType===e.K.Y.wf.rj&&
(a.type=e.K.Y.wf.rj);null!=this.gridTitle&&(a.title=this.gridTitle);null!=this.showFilter&&(a.showFilter=this.showFilter);null!=this.showHeaders&&(a.showHeaders=this.showHeaders);null!=this.showTotals&&(a.showTotals=this.showTotals);null!=this.showGrandTotals&&(a.showGrandTotals=this.showGrandTotals);null!=this.columnTotalsPosition&&(a.columnTotalsPosition=this.columnTotalsPosition);null!=this.grandTotalsPosition&&(a.grandTotalsPosition=this.grandTotalsPosition);null!=this.showExtraTotalLabels&&(a.showExtraTotalLabels=
this.showExtraTotalLabels);null!=this.showHierarchies&&(a.showHierarchies=this.showHierarchies);null!=this.showHierarchyCaptions&&(a.showHierarchyCaptions=this.showHierarchyCaptions);null!=this.drillThroughMaxRows&&(a.drillThroughMaxRows=this.drillThroughMaxRows);null!=this.showReportFiltersArea&&(a.showReportFiltersArea=this.showReportFiltersArea);null!=this.dragging&&(a.dragging=this.dragging);null!=this.showAutoCalculationBar&&(a.showAutoCalculationBar=this.showAutoCalculationBar);null!=this.autoSwitchToCompact&&
(a.autoSwitchToCompact=this.autoSwitchToCompact);u.Hc.Og(a)||(b.grid=a);a={};null!=this.chartType&&(a.type=this.chartType);null!=this.chartTitle&&(a.title=this.chartTitle);null!=this.showFilterInCharts&&(a.showFilter=this.showFilterInCharts);null!=this.chartMultipleMeasures&&(a.multipleMeasures=this.chartMultipleMeasures);null!=this.chartOneLevel&&(a.oneLevel=this.chartOneLevel);null!=this.chartAutoRange&&(a.autoRange=this.chartAutoRange);null!=this.chartReversedAxes&&(a.reversedAxes=this.chartReversedAxes);
null!=this.showChartLegend&&(a.showLegend=this.showChartLegend);null!=this.showChartLegendButton&&(a.showLegendButton=this.showChartLegendButton);null!=this.showChartDataLabels&&(a.showDataLabels=this.showChartDataLabels);null!=this.showAllChartLabels&&(a.showAllLabels=this.showAllChartLabels);null!=this.showChartMeasures&&(a.showMeasures=this.showChartMeasures);null!=this.showChartOneMeasureSelection&&(a.showOneMeasureSelection=this.showChartOneMeasureSelection);null!=this.showChartsWarning&&(a.showWarning=
this.showChartsWarning);null!=this.chartAxisShortNumberFormat&&(a.axisShortNumberFormat=this.chartAxisShortNumberFormat);this.viewType==e.K.Jd.mo&&null!=this.chartPosition&&(a.position=this.chartPosition);this.chartType==e.K.Dd.Oe.Qv&&null!=this.chartActiveTupleIndex&&(a.pieDataIndex=this.chartActiveTupleIndex.toString());if(1==this.chartMultipleMeasures){if(null!=this.chartActiveMeasures){for(var c=[],d=0;d<this.chartActiveMeasures.length;d++){var g={};g.uniqueName=this.chartActiveMeasures[d].A;
null!=this.chartActiveMeasures[d].$&&""!==this.chartActiveMeasures[d].$&&(g.aggregation=this.chartActiveMeasures[d].$);c.push(g)}0<c.length&&(a.activeMeasure=c)}}else null!=this.chartActiveMeasure&&(g={},g.uniqueName=this.chartActiveMeasure.A,null!=this.chartActiveMeasure.$&&""!=this.chartActiveMeasure.$&&(g.aggregation=this.chartActiveMeasure.$),a.activeMeasure=g);!0===this.chartOneLevel&&null!=this.chartOneLevelTuple&&0<this.chartOneLevelTuple.length&&(a.oneLevelTuple=this.chartOneLevelTuple.join(","));
!0===this.chartOneLevel&&null!=this.chartOneLevelColumnTuple&&0<this.chartOneLevelColumnTuple.length&&(a.oneLevelColumnTuple=this.chartOneLevelColumnTuple.join(","));u.Hc.Og(a)||(b.chart=a);a={};e.v(this.filterWeekOffset)||(a.weekOffset=this.filterWeekOffset);e.v(this.filterDateFormat)||(a.dateFormat=this.filterDateFormat);e.v(this.filterLiveSearch)||(a.liveSearch=this.filterLiveSearch);e.v(this.filterByDateAndTime)||(a.filterByDateAndTime=this.filterByDateAndTime);e.v(this.allowEmptyMembersFilter)||
(a.allowEmptyMembersFilter=this.allowEmptyMembersFilter);u.Hc.Og(a)||(b.filter=a);null!=this.configuratorActive&&(b.configuratorActive=this.configuratorActive);null!=this.configuratorButton&&(b.configuratorButton=this.configuratorButton);null!=this.showAggregations&&(b.showAggregations=this.showAggregations);null!=this.showCalculatedValuesButton&&(b.showCalculatedValuesButton=this.showCalculatedValuesButton);null!=this.grouping&&(b.grouping=this.grouping);null!=this.editing&&(b.editing=this.editing);
null!=this.drillThrough&&(b.drillThrough=this.drillThrough);null!=this.showDrillThroughConfigurator&&(b.showDrillThroughConfigurator=this.showDrillThroughConfigurator);null!=this.sorting&&(b.sorting=this.sorting);null!=this.defaultDateType&&(b.defaultDateType=this.defaultDateType);null!=this.strictDataTypes&&(b.strictDataTypes=this.strictDataTypes);null!=this.datePattern&&(b.datePattern=this.datePattern);null!=this.dateTimePattern&&(b.dateTimePattern=this.dateTimePattern);null!=this.dateTimezoneOffset&&
(b.dateTimezoneOffset=this.dateTimezoneOffset);null!=this.timePattern&&(b.timePattern=this.timePattern);null!=this.saveAllFormats&&(b.saveAllFormats=this.saveAllFormats);null!=this.showDefaultSlice&&(b.showDefaultSlice=this.showDefaultSlice);null!=this.useOlapFormatting&&(b.useOlapFormatting=this.useOlapFormatting);null!=this.showMemberProperties&&(b.showMemberProperties=this.showMemberProperties);null!=this.showEmptyData&&(b.showEmptyData=this.showEmptyData);null!=this.defaultHierarchySortName&&
(b.defaultHierarchySortName=this.defaultHierarchySortName);!0===this.calculatedValuesOLAP&&(b.calculatedValuesOLAP=this.calculatedValuesOLAP);!0===this.includeEmptySubtotalsOLAP&&(b.includeEmptySubtotalsOLAP=this.includeEmptySubtotalsOLAP);null!=this.showOutdatedDataAlert&&(b.showOutdatedDataAlert=this.showOutdatedDataAlert);null!=this.showAggregationLabels&&(b.showAggregationLabels=this.showAggregationLabels);null!=this.showAllFieldsDrillThrough&&(b.showAllFieldsDrillThrough=this.showAllFieldsDrillThrough);
null!=this.liveFiltering&&(b.liveFiltering=this.liveFiltering);null!=this.fieldListPosition&&(b.fieldListPosition=this.fieldListPosition);null!=this.showFieldListSearch&&(b.showFieldListSearch=this.showFieldListSearch);e.v(this.validateFormulas)||(b.validateFormulas=this.validateFormulas);e.v(this.caseSensitiveMembers)||(b.caseSensitiveMembers=this.caseSensitiveMembers);e.v(this.simplifyFieldListFolders)||(b.simplifyFieldListFolders=this.simplifyFieldListFolders);e.v(this.validateReportFiles)||(b.validateReportFiles=
this.validateReportFiles);e.v(this.allowBrowsersCache)||(b.allowBrowsersCache=this.allowBrowsersCache);e.v(this.showEmptyValues)||(b.showEmptyValues=this.showEmptyValues);e.v(this.distinguishNullUndefinedEmpty)||(b.distinguishNullUndefinedEmpty=this.distinguishNullUndefinedEmpty);e.v(this.useCaptionsInCalculatedValueEditor)||(b.useCaptionsInCalculatedValueEditor=this.useCaptionsInCalculatedValueEditor);!e.v(this.expandExecutionTimeout)&&this.expandExecutionTimeout>this.Rd.expandExecutionTimeout&&
(b.expandExecutionTimeout=this.expandExecutionTimeout);e.v(this.readOnly)||(b.readOnly=this.readOnly);return b}static Jk(b){var a=b.find("params"),c=new f;0!=a.find("param[name=configuratorActive]").length&&c.oa("configuratorActive",e.P.Zc(a.find("param[name=configuratorActive]").text()));0!=a.find("param[name=configuratorButton]").length&&c.oa("configuratorButton",e.P.Zc(a.find("param[name=configuratorButton]").text()));0!=a.find("param[name=viewType]").length&&c.oa("viewType",a.find("param[name=viewType]").text());
0!=a.find("param[name=gridTitle]").length&&c.oa("gridTitle",a.find("param[name=gridTitle]").text());0!=a.find("param[name=showFilter]").length&&c.oa("showFilter",e.P.Zc(a.find("param[name=showFilter]").text()));0!=a.find("param[name=showFilterInCharts]").length&&c.oa("showFilterInCharts",e.P.Zc(a.find("param[name=showFilterInCharts]").text()));0!=a.find("param[name=showAggregations]").length&&c.oa("showAggregations",e.P.Zc(a.find("param[name=showAggregations]").text()));0!=a.find("param[name=showHierarchyCaptions]").length&&
c.oa("showHierarchyCaptions",e.P.Zc(a.find("param[name=showHierarchyCaptions]").text()));0!=a.find("param[name=showHeaders]").length&&c.oa("showHeaders",e.P.Zc(a.find("param[name=showHeaders]").text()));0!=a.find("param[name=showReportFiltersArea]").length&&c.oa("showReportFiltersArea",e.P.Zc(a.find("param[name=showReportFiltersArea]").text()));0!=a.find("param[name=showExtraTotalLabels]").length&&c.oa("showExtraTotalLabels",e.P.Zc(a.find("param[name=showExtraTotalLabels]").text()));0!=a.find("param[name=editing]").length&&
c.oa("editing",e.P.Zc(a.find("param[name=editing]").text()));0!=a.find("param[name=grouping]").length&&c.oa("grouping",e.P.Zc(a.find("param[name=grouping]").text()));0!=a.find("param[name=drillThrough]").length&&c.oa("drillThrough",e.P.Zc(a.find("param[name=drillThrough]").text()));0!=a.find("param[name=showDrillThroughConfigurator]").length&&c.oa("showDrillThroughConfigurator",e.P.Zc(a.find("param[name=showDrillThroughConfigurator]").text()));0!=a.find("param[name=sorting]").length&&c.oa("sorting",
a.find("param[name=sorting]").text());0!=a.find("param[name=showHierarchies]").length&&c.oa("showHierarchies",e.P.Zc(a.find("param[name=showHierarchies]").text()));0!=a.find("param[name=showTotals]").length&&(c.oa("showTotals",a.find("param[name=showTotals]").text()),"true"==c.U("showTotals").toString().toLowerCase()&&c.oa("showTotals","on"),"false"==c.U("showTotals").toString().toLowerCase()&&c.oa("showTotals","off"));0!=a.find("param[name=showGrandTotals]").length&&(c.oa("showGrandTotals",a.find("param[name=showGrandTotals]").text()),
"true"==c.U("showGrandTotals").toString().toLowerCase()&&c.oa("showGrandTotals","on"),"false"==c.U("showGrandTotals").toString().toLowerCase()&&c.oa("showGrandTotals","off"));0!=a.find("param[name=showDefaultSlice]").length&&c.oa("showDefaultSlice",e.P.Zc(a.find("param[name=showDefaultSlice]").text()));0!=a.find("param[name=useOlapFormatting]").length&&c.oa("useOlapFormatting",e.P.Zc(a.find("param[name=useOlapFormatting]").text()));0!=a.find("param[name=showMemberProperties]").length&&c.oa("showMemberProperties",
e.P.Zc(a.find("param[name=showMemberProperties]").text()));0!=a.find("param[name=showEmptyData]").length&&c.oa("showEmptyData",e.P.Zc(a.find("param[name=showEmptyData]").text()));0!=a.find("param[name=showChartDataLabels]").length&&c.oa("showChartDataLabels",e.P.Zc(a.find("param[name=showChartDataLabels]").text()));0!=a.find("param[name=showAllChartLabels]").length&&c.oa("showAllChartLabels",e.P.Zc(a.find("param[name=showAllChartLabels]").text()));0!=a.find("param[name=strictDataTypes]").length&&
c.oa("strictDataTypes",e.P.Zc(a.find("param[name=strictDataTypes]").text()));0!=a.find("param[name=defaultDateType]").length&&c.oa("defaultDateType",a.find("param[name = defaultDateType]").text());0!=a.find("param[name=datePattern]").length&&c.oa("datePattern",a.find("param[name = datePattern]").text());0!=a.find("param[name=dateTimePattern]").length&&c.oa("dateTimePattern",a.find("param[name = dateTimePattern]").text());0!=a.find("param[name=classicView]").length&&1==e.P.Zc(a.find("param[name=classicView]").text())&&
c.oa("gridType",e.K.Y.wf.Fv);b=b.find("dataSource");void 0!==b.attr("tableType")&&b.attr("tableType")==e.K.Y.wf.rj&&c.oa("gridType",e.K.Y.wf.rj);0!=a.find("param[name=flatView]").length&&1==e.P.Zc(a.find("param[name=flatView]").text())&&c.oa("gridType",e.K.Y.wf.rj);0!=a.find("param[name=defaultHierarchySortName]").length?c.oa("defaultHierarchySortName",e.u.i.Ba.ih(a.find("param[name = defaultHierarchySortName]").text())?a.find("param[name=defaultHierarchySortName]").text():e.u.i.Ba.hc):c.oa("defaultHierarchySortName",
c.U("gridType")==e.K.Y.wf.rj?e.u.i.Ba.ed:e.u.i.Ba.hc);0!=a.find("param[name=showCalculatedValuesButton]").length&&c.oa("showCalculatedValuesButton",e.P.Zc(a.find("param[name = showCalculatedValuesButton]").text()));0!=a.find("param[name=showOutdatedDataAlert]").length&&c.oa("showOutdatedDataAlert",e.P.Zc(a.find("param[name = showOutdatedDataAlert]").text()));if(0!=a.find("param[name=chartType]").length){var d=a.find("param[name=chartType]");c.oa("chartType",d.text());if(void 0!==d.attr("activeMeasure")){c.oa("chartActiveMeasure",
new l.hb.oh(d.attr("activeMeasure")));void 0!==d.attr("activeMeasureAggregation")&&c.oa("chartActiveMeasure.aggregation",d.attr("activeMeasureAggregation"));var g=[],k=d.attr("activeMeasure").split(","),m=void 0!==d.attr("activeMeasureAggregation")?d.attr("activeMeasureAggregation").split(","):[];for(b=0;b<k.length;b++){var n=new l.hb.oh(k[b]);m[b]&&(n.$=m[b]);g.push(n)}0<g.length&&c.oa("chartActiveMeasures",g)}void 0!==d.attr("pieDataIndex")&&c.oa("chartActiveTupleIndex",parseInt(d.attr("pieDataIndex")));
void 0!==d.attr("position")&&c.oa("chartPosition",d.attr("position"));if(void 0!==d.attr("chartOneLevelTuple")){d=d.attr("chartOneLevelTuple").split(",");c.oa("chartOneLevelTuple",[]);g=[];for(b=0;b<d.length;b++)g[b]=parseInt(d[b]);c.oa("chartOneLevelTuple",g)}}0!=a.find("param[name=chartOneLevel]").length&&c.oa("chartOneLevel",e.P.Zc(a.find("param[name=chartOneLevel]").text()));0!=a.find("param[name=chartTitle]").length&&c.oa("chartTitle",a.find("param[name=chartTitle]").text());0!=a.find("param[name=chartMultipleMeasures]").length&&
c.oa("chartMultipleMeasures",e.P.Zc(a.find("param[name=chartMultipleMeasures]").text()));0!=a.find("param[name=chartAutoRange]").length&&c.oa("chartAutoRange",e.P.Zc(a.find("param[name=chartAutoRange]").text()));0!=a.find("param[name=chartReversedAxes]").length&&c.oa("chartReversedAxes",e.P.Zc(a.find("param[name=chartReversedAxes]").text()));0!=a.find("param[name=showChartsWarning]").length&&c.oa("showChartsWarning",e.P.Zc(a.find("param[name=showChartsWarning]").text()));0!=a.find("param[name=showChartOneMeasureSelection]").length&&
c.oa("showChartOneMeasureSelection",e.P.Zc(a.find("param[name=showChartOneMeasureSelection]").text()));0!=a.find("param[name=showChartMeasures]").length&&c.oa("showChartMeasures",e.P.Zc(a.find("param[name=showChartMeasures]").text()));0!=a.find("param[name=showChartLegendButton]").length&&c.oa("showChartLegendButton",e.P.Zc(a.find("param[name=showChartLegendButton]").text()));0!=a.find("param[name=saveAllFormats]").length&&c.oa("saveAllFormats",e.P.Zc(a.find("param[name=saveAllFormats]").text()));
0!=a.find("param[name=calculatedValuesOLAP]").length&&c.oa("calculatedValuesOLAP",e.P.Zc(a.find("param[name=calculatedValuesOLAP]").text()));0!=a.find("param[name=includeEmptySubtotalsOLAP]").length&&c.oa("includeEmptySubtotalsOLAP",e.P.Zc(a.find("param[name=includeEmptySubtotalsOLAP]").text()));return c}op(){var b=z.ba.create("<params/>");null!=this.U("configuratorActive")&&b.append(z.ba.create("<param/>").attr("name","configuratorActive").text(this.U("configuratorActive")));null!=this.U("configuratorButton")&&
b.append(z.ba.create("<param/>").attr("name","configuratorButton").text(this.U("configuratorButton")));null!=this.U("viewType")&&b.append(z.ba.create("<param/>").attr("name","viewType").text(this.U("viewType")));null!=this.U("gridTitle")&&b.append(z.ba.create("<param/>").attr("name","gridTitle").text(this.U("gridTitle")));null!=this.U("chartTitle")&&b.append(z.ba.create("<param/>").attr("name","chartTitle").text(this.U("chartTitle")));null!=this.U("showFilter")&&b.append(z.ba.create("<param/>").attr("name",
"showFilter").text(this.U("showFilter")));null!=this.U("showFilterInCharts")&&b.append(z.ba.create("<param/>").attr("name","showFilterInCharts").text(this.U("showFilterInCharts")));null!=this.U("showAggregations")&&b.append(z.ba.create("<param/>").attr("name","showAggregations").text(this.U("showAggregations")));null!=this.U("showHierarchyCaptions")&&b.append(z.ba.create("<param/>").attr("name","showHierarchyCaptions").text(this.U("showHierarchyCaptions")));null!=this.U("chartOneLevel")&&b.append(z.ba.create("<param/>").attr("name",
"chartOneLevel").text(this.U("chartOneLevel")));null!=this.U("chartAutoRange")&&b.append(z.ba.create("<param/>").attr("name","chartAutoRange").text(this.U("chartAutoRange")));null!=this.U("chartReversedAxes")&&b.append(z.ba.create("<param/>").attr("name","chartReversedAxes").text(this.U("chartReversedAxes")));null!=this.U("chartMultipleMeasures")&&b.append(z.ba.create("<param/>").attr("name","chartMultipleMeasures").text(this.U("chartMultipleMeasures")));null!=this.U("showHeaders")&&b.append(z.ba.create("<param/>").attr("name",
"showHeaders").text(this.U("showHeaders")));null!=this.U("showReportFiltersArea")&&b.append(z.ba.create("<param/>").attr("name","showReportFiltersArea").text(this.U("showReportFiltersArea")));null!=this.U("showExtraTotalLabels")&&b.append(z.ba.create("<param/>").attr("name","showExtraTotalLabels").text(this.U("showExtraTotalLabels")));null!=this.U("editing")&&b.append(z.ba.create("<param/>").attr("name","editing").text(this.U("editing")));null!=this.U("grouping")&&b.append(z.ba.create("<param/>").attr("name",
"grouping").text(this.U("grouping")));null!=this.U("drillThrough")&&b.append(z.ba.create("<param/>").attr("name","drillThrough").text(this.U("drillThrough")));null!=this.U("showDrillThroughConfigurator")&&b.append(z.ba.create("<param/>").attr("name","showDrillThroughConfigurator").text(this.U("showDrillThroughConfigurator")));null!=this.U("sorting")&&b.append(z.ba.create("<param/>").attr("name","sorting").text(this.U("sorting")));null!=this.U("showTotals")&&b.append(z.ba.create("<param/>").attr("name",
"showTotals").text(this.U("showTotals")));null!=this.U("showHierarchies")&&b.append(z.ba.create("<param/>").attr("name","showHierarchies").text(this.U("showHierarchies")));null!=this.U("showGrandTotals")&&b.append(z.ba.create("<param/>").attr("name","showGrandTotals").text(this.U("showGrandTotals")));null!=this.U("defaultDateType")&&b.append(z.ba.create("<param/>").attr("name","defaultDateType").text(this.U("defaultDateType")));null!=this.U("strictDataTypes")&&b.append(z.ba.create("<param/>").attr("name",
"strictDataTypes").text(this.U("strictDataTypes")));null!=this.U("datePattern")&&b.append(z.ba.create("<param/>").attr("name","datePattern").text(this.U("datePattern")));null!=this.U("dateTimePattern")&&b.append(z.ba.create("<param/>").attr("name","dateTimePattern").text(this.U("dateTimePattern")));null!=this.U("showChartsWarning")&&b.append(z.ba.create("<param/>").attr("name","showChartsWarning").text(this.U("showChartsWarning")));null!=this.U("showChartOneMeasureSelection")&&b.append(z.ba.create("<param/>").attr("name",
"showChartOneMeasureSelection").text(this.U("showChartOneMeasureSelection")));null!=this.U("showChartMeasures")&&b.append(z.ba.create("<param/>").attr("name","showChartMeasures").text(this.U("showChartMeasures")));null!=this.U("showChartLegendButton")&&b.append(z.ba.create("<param/>").attr("name","showChartLegendButton").text(this.U("showChartLegendButton")));null!=this.U("saveAllFormats")&&b.append(z.ba.create("<param/>").attr("name","saveAllFormats").text(this.U("saveAllFormats")));1==this.U("calculatedValuesOLAP")&&
b.append(z.ba.create("<param/>").attr("name","calculatedValuesOLAP").text(this.U("calculatedValuesOLAP")));1==this.U("includeEmptySubtotalsOLAP")&&b.append(z.ba.create("<param/>").attr("name","includeEmptySubtotalsOLAP").text(this.U("includeEmptySubtotalsOLAP")));null!=this.U("defaultHierarchySortName")&&b.append(z.ba.create("<param/>").attr("name","defaultHierarchySortName").text(this.U("defaultHierarchySortName")));null!=this.U("gridType")&&this.U("gridType")==e.K.Y.wf.Fv&&b.append(z.ba.create("<param/>").attr("name",
"classicView").text(!0));null!=this.U("gridType")&&this.U("gridType")==e.K.Y.wf.rj&&b.append(z.ba.create("<param/>").attr("name","flatView").text(!0));null!=this.U("showDefaultSlice")&&b.append(z.ba.create("<param/>").attr("name","showDefaultSlice").text(this.U("showDefaultSlice")));null!=this.U("showEmptyData")&&b.append(z.ba.create("<param/>").attr("name","showEmptyData").text(this.U("showEmptyData")));null!=this.U("showMemberProperties")&&b.append(z.ba.create("<param/>").attr("name","showMemberProperties").text(this.U("showMemberProperties")));
null!=this.U("useOlapFormatting")&&b.append(z.ba.create("<param/>").attr("name","useOlapFormatting").text(this.U("useOlapFormatting")));null!=this.U("showChartDataLabels")&&b.append(z.ba.create("<param/>").attr("name","showChartDataLabels").text(this.U("showChartDataLabels")));null!=this.U("showAllChartLabels")&&b.append(z.ba.create("<param/>").attr("name","showAllChartLabels").text(this.U("showAllChartLabels")));null!=this.U("showCalculatedValuesButton")&&b.append(z.ba.create("<param/>").attr("name",
"showCalculatedValuesButton").text(this.U("showCalculatedValuesButton")));null!=this.U("showOutdatedDataAlert")&&b.append(z.ba.create("<param/>").attr("name","showOutdatedDataAlert").text(this.U("showOutdatedDataAlert")));var a=z.ba.create("<param/>").attr("name","chartType").text(null!=this.U("chartType")?this.U("chartType"):this.Rd.chartType);null!=this.U("chartActiveTupleIndex")&&a.attr("pieDataIndex",this.U("chartActiveTupleIndex").toString());a.attr("position",this.U("chartPosition"));if(this.U("chartMultipleMeasures")&&
null!=this.U("chartActiveMeasures")){for(var c=[],d=[],g=0;g<this.U("chartActiveMeasures").length;g++)c.push(this.U("chartActiveMeasures")[g].A),d.push(this.U("chartActiveMeasures")[g].$);0<c.length&&a.attr("activeMeasure",c.join(","));0<d.length&&a.attr("activeMeasureAggregation",d.join(","))}else null!=this.U("chartActiveMeasure")&&(a.attr("activeMeasure",this.U("chartActiveMeasure").A),null!=this.U("chartActiveMeasure").$&&""!=this.U("chartActiveMeasure").$&&a.attr("activeMeasureAggregation",this.U("chartActiveMeasure").$));
this.U("chartOneLevel")&&0<this.U("chartOneLevelTuple").length&&a.attr("chartOneLevelTuple",this.U("chartOneLevelTuple").join(","));b.append(a);return b}jE(b){for(var a in b)this.Rd.hasOwnProperty(a)&&void 0!=b[a]&&(this[a]=b[a])}}h.Oq=f})(l.C||(l.C={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends w.Mh{constructor(){super();if(null!=f.instance)throw Error("Singleton");}static R(){null==f.instance&&(f.instance=new f);return f.instance}static dispose(){f.Xc=null;f.instance=null}static add(b){null!=b&&(f.Xc.Ta(b.id,b),this.cb())}static get(b){return f.Xc.getItem(b)}static remove(b){f.Xc.removeItem(b);this.cb()}static n5(){f.Xc=new e.ub;this.cb()}static dCa(){for(var b=[],a=0;a<f.Xc.length;a++){var c=f.Xc.fa(a);c.m3||b.push(c.Sa())}return b}static cb(){f.R().Ya(l.Xb.Vc.rk)}}
f.Xc=new e.ub;h.nn=f})(l.va||(l.va={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){this.id="";this.Au=this.mt=-1;this.Ge=this.hierarchy=this.Vb=this.$=this.measure="";this.Ud=[];this.qH=null}get m3(){return-1<this.Ge.toLowerCase().indexOf(e.u.i.rc.OQ)||-1<this.Ge.toLowerCase().indexOf(e.u.i.rc.PQ)}Sa(){var c={};c.id=this.id;c.row=this.mt;c.column=this.Au;void 0!==this.Mk&&(c.isTotal=this.Mk);c.measure=this.measure;c.aggregation=this.$;c.member=this.Vb;c.hierarchy=this.hierarchy;c.formula=this.Ge;null!=this.format&&
(c.format=this.format.Sa(),c.formatCSS=this.format.toString());return c}static xb(c){var d=new b;d.id=null!=c.id?c.id:e.P.zM();null!=c.row&&(d.mt=c.row);null!=c.column&&(d.Au=c.column);if(null!=c.isTotal){if(1==c.isTotal||1==c.isTotal)d.Mk=!0;if(0==c.isTotal||0==c.isTotal)d.Mk=!1}null!=c.measure&&(d.measure=c.measure);null!=c.aggregation&&(d.$=c.aggregation);null!=c.member&&(d.Vb=e.u.ze.Ws(c.member));null!=c.hierarchy&&(d.hierarchy=e.u.ze.bh(c.hierarchy));d.Ge=c.formula;null!=c.format&&(d.format=
"string"===typeof c.format?a.FT(c.format):a.xb(c.format));c=new u.VJ;d.Ud=c.parse(d.Ge);return null==d.Ud?null:d}}f.E7=b;class a{static xb(c){var d=new a;if(null==c)return d;null!=c.backgroundColor&&(d.backgroundColor=a.color(c.backgroundColor));null!=c.color&&(d.color=a.color(c.color));null!=c.fontFamily&&(d.fontFamily=c.fontFamily);null!=c.fontSize&&(d.fontSize=a.size(c.fontSize));null!=c.italic&&c.italic&&(d.fontStyle="italic");null!=c.fontStyle&&(d.fontStyle=c.fontStyle);null!=c.bold&&c.bold&&
(d.fontWeight="bold");null!=c.fontWeight&&(d.fontWeight=c.fontWeight);null!=c.padding&&(d.padding=a.size(Math.round(1.5*c.padding)));null!=c.textAlign&&(d.textAlign=c.textAlign);null!=c.textIndent&&(d.textIndent=a.size(c.textIndent));return d}static FT(c){var d={};c=c.split(";");if(null!=c)for(var g=0;g<c.length;g++){var k=c[g].split(":")[0];""!=k&&(d[k]=c[g].split(":")[1])}return a.xb(d)}Sa(){var c={};null!=this.backgroundColor&&(c.backgroundColor=this.backgroundColor);null!=this.color&&(c.color=
this.color);null!=this.fontFamily&&(c.fontFamily=this.fontFamily);null!=this.fontSize&&(c.fontSize=this.fontSize);null!=this.fontStyle&&(c.fontStyle=this.fontStyle);null!=this.fontWeight&&(c.fontWeight=this.fontWeight);null!=this.padding&&(c.padding=this.padding);null!=this.textAlign&&(c.textAlign=this.textAlign);null!=this.textIndent&&(c.textIndent=this.textIndent);return c}$ja(){var c={};null!=this.backgroundColor&&(c["background-color"]=this.backgroundColor);null!=this.color&&(c.color=this.color);
null!=this.fontFamily&&(c["font-family"]=this.fontFamily);null!=this.fontSize&&(c["font-size"]=this.fontSize);null!=this.fontStyle&&(c["font-style"]=this.fontStyle);null!=this.fontWeight&&(c["font-weight"]=this.fontWeight);null!=this.padding&&(c.padding=this.padding);null!=this.textAlign&&(c["text-align"]=this.textAlign);null!=this.textIndent&&(c["text-indent"]=this.textIndent);return c}toString(){var c="",d=this.$ja(),g;for(g in d)c+=g+":"+d[g]+";";return c}static color(c){return c.replace("0x",
"#")}static size(c){return"number"==typeof c?c+"px":"string"==typeof c&&0>c.indexOf("px")?c.trim()+"px":c}}f.$Na=a})(h.W||(h.W={}))})(l.va||(l.va={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){var h;(function(f){class b extends w.Mh{constructor(){super();if(null!=b.instance)throw Error("Singleton");}static R(){null==b.instance&&(b.instance=new b);return b.instance}static dispose(){b.zh=null;b.wg=null;b.If=null;b.Lj=null;b.SR=null;b.wG=null;b.Ig=null;b.Af=null;b.Dk=null;b.aR=null;b.bG=null;b.instance=null}static get zia(){return this.SR=b.Sa(e.u.i.ha.Ia)}static get aca(){return this.aR=b.Sa(e.u.i.ha.Oa)}static clear(){b.If={};b.Af={};b.wG={};b.SR={};b.bG={};b.aR=
{};b.Lj={};b.Dk={};b.wg=[];b.Ig=[];b.zh=[]}static L_(a){if(b.Gba(a.If)||b.Gba(a.Af))b.wG=b.jca(a.If),b.bG=b.jca(a.Af),b.cia();else if(b.Hba(a.If)||b.Hba(a.Af))b.wG=a.If,b.bG=a.Af,b.cia();b.Lj=a.Lj;b.Dk=a.Dk;b.wg=a.wg;b.Ig=a.Ig;b.zh=a.zh}static cia(){l.Wa.R().Fa.GE==l.Xb.Vc.si?this.rq():e.u.Ma.R().N(e.u.Ag.hl,b.rq,1)}static Gba(a){var c=/[A-Za-z]+/,d;for(d in a)if(-1<a[d].toString().search(c))return!0;return!1}static Hba(a){var c=/[A-Za-z]+/,d;for(d in a)if(-1<d.toString().search(c))return!0;return!1}static jca(a){var c=
{};if(null!=a)for(var d in a){var g=a[d];if(Array.isArray(g)&&0<g.length){var k=parseInt(g.pop());c[g.toString()]=k}}return c}static rq(){e.u.Ma.R().rb(e.u.Ag.hl,b.rq);b.If=b.xb(e.u.i.ha.Ia);b.wG={};b.Af=b.xb(e.u.i.ha.Oa);b.bG={}}static xb(a){var c={},d=a==e.u.i.ha.Ia?b.wG:b.bG,g=e.u.Ma.R().qa.gd(),k;for(k in d){var m=k.split(","),n=d[k],p=e.u.Ma.R().qa.axes.getItem(a).bb;if(p&&!l.C.F.sc)if(e.u.i.ea.MA(m[m.length-1])||""==m[m.length-1]&&(""==m[m.length-2]||null!=g.find(B=>B.A===m[m.length-2]))){var t=
new l.hb.oh(m[m.length-2],m[m.length-1]);m.splice(m.length-2,2)}else t=new l.hb.oh(m[m.length-1]),m.splice(m.length-1,1);for(var r=!1,v=[],y=0;y<m.length;y++)if(l.C.F.sc)if(a==e.u.i.ha.Ia)v.push(m[y]);else{var A=m[y];A=e.u.Ma.R().ta.le.indexOf(A);if(-1==A){r=!0;break}v.push(A)}else{A=e.u.ze.Ws(m[y]);var C=a==e.u.i.ha.Ia?e.u.Ma.R().qa.wb.fa(y):e.u.Ma.R().qa.Fb.fa(y);if(void 0==C){r=!0;break}A=C.Ib(A);if(null==A){r=!0;break}A.dc?v.push(""):v.push(A.ordinal.toString())}if(!r){if(p&&!l.C.F.sc){p=(p=e.u.Ma.R().qa.Gi(t))?
p.index:-1;if(-1==p&&""!=t.A)continue;v.push(p)}c[v.toString()]=n}}return c}static Sa(a){var c={},d=a==e.u.i.ha.Ia?b.If:b.Af,g=e.v(e.u.Ma.R().qa)?[]:e.u.Ma.R().qa.gd(),k;for(k in d){var m=k.split(","),n=d[k],p=e.u.Ma.R().qa.axes.getItem(a).bb;if(p&&!l.C.F.sc){var t=parseInt(m[m.length-1]);m.splice(m.length-1,1)}for(var r=!1,v=[],y=0;y<m.length;y++)if(l.C.F.sc)if(a==e.u.i.ha.Ia)v.push(m[y]);else{var A=""===m[y]?0:parseInt(m[y]);A=e.u.Ma.R().ta.le[A];if(null==A){r=!0;break}v.push(A)}else{A=""===m[y]?
0:parseInt(m[y]);var C=a==e.u.i.ha.Ia?e.u.Ma.R().qa.wb.fa(y):e.u.Ma.R().qa.Fb.fa(y);if(null==C){r=!0;break}A=C.za(A);if(null==A){r=!0;break}v.push(A.Fi)}if(!r){if(p&&!l.C.F.sc){if(t>=g.length)continue;-1==t&&1==g.length&&(t=0);m=g[t];v.push(m?m.A:"");v.push(m?m.$:"")}c[v.toString()]=n}}return c}static QH(){const a=new l.hb.Yv;a.If=h.wd.zia;a.Af=h.wd.aca;a.wg=h.wd.wg;a.Ig=h.wd.Ig;a.Lj=h.wd.Lj;a.Dk=h.wd.Dk;a.zh=h.wd.zh;a.YE=h.wd.YE;return a}}b.If={};b.Af={};b.YE=0;b.Lj={};b.Dk={};b.wg=[];b.Ig=[];b.zh=
[];b.wG={};b.SR={};b.bG={};b.aR={};f.wd=b})(h=l.size||(l.size={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{static load(b,a){if(!e.v(f.zT[b]))return a(null,f.zT[b]);var c=new z.p$;c.N(w.ia.Qc,()=>{try{var d=e.P.hya(new Uint8Array(c.response)),g=window.btoa(d);f.zT[b]={name:b.substring(b.lastIndexOf("/")+1,b.lastIndexOf(".")),filename:b.substr(b.lastIndexOf("/")+1),content:g};a(null,f.zT[b])}catch(k){a(k)}});c.N(w.ia.xa,()=>{a({message:l.B.j.Bpa,name:null})});c.load(b)}}f.zT={};h.G8=f})(l.Dc||(l.Dc={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(b,a){this.PK=b;this.UZ=a}get Rk(){return this.PK}get Jh(){return this.UZ}ICa(){return Math.round(this.Rk*f.O$/f.Aaa)}KBa(){return Math.round(this.Jh*f.O$/f.Aaa)}static get mya(){return f.Msa}static Dka(b){return void 0!=b&&f.Caa.hasOwnProperty(b.toLocaleLowerCase())?b.toLocaleLowerCase():f.mya}static KH(b){return this.Caa[b]}}f.Aaa=25.4;f.Msa="a4";f.O$=72;f.Caa={a0:new f(841,1189),a1:new f(594,841),a2:new f(420,594),a3:new f(297,420),a4:new f(210,
297),a5:new f(148,210)};h.Ay=f})(l.Dc||(l.Dc={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){throw Error("Singleton");}static Ze(b,a,c=!1,d=null){switch(a.type){case h.qj.Ov:f.pT(b,a,c,d);break;case h.qj.nB:f.Cda(b,a,c,d);break;case h.qj.vB:f.rza(b,a,c,d)}}static s0(b){var a=b.find("line",!0);a=a.concat(b.find("path",!0));a=a.concat(b.find("circle",!0));for(var c=0;c<a.length;c++)if(null!=a[c]){var d=e.K.Y.W.ad.Ez(a[c],["fill","stroke","shape-rendering","stroke-width"]);u.Nd().fj&&(d+="stroke-width: 1px");a[c].attr("style",d);a[c].attr("class",
"")}a=b.find("text",!0);for(c=0;c<a.length;c++)b=parseInt(a[c].V("font-size")),a[c].attr("style",e.K.Y.W.ad.Ez(a[c],"font-family font-weight fill color text-anchor text-rendering".split(" "))+";white-space:pre"),a[c].attr("font-size",b),a[c].attr("class","")}static lca(b){b.element.querySelectorAll("text").forEach(a=>{a.innerHTML=e.vt(a.innerHTML.replace(/\s/g,"<tspan> </tspan>"))})}static xba(b,a){b.V("font-family",a.V("font-family"));b.V("font-size",a.V("font-size"));b.V("color",a.V("color"));b.V("border-top",
a.V("border-top"));b.V("background",a.V("background"));b.V("padding-top",a.V("padding-top"));b.V("padding-left",a.V("padding-left"));b.V("padding-right",a.V("padding-right"));b.V("padding-bottom",a.V("padding-bottom"));b.V("overflow","auto");for(var c=a.find(".fm-icon-display"),d=b.find(".fm-icon-display",!0),g=0;g<d.length;g++)d[g].V("display",c.V("display")),d[g].V("width",c.V("width")),d[g].V("height",c.V("height")),d[g].V("margin-right",c.V("margin-right")),d[g].V("vertical-align",c.V("vertical-align")),
d[g].V("border-radius",c.V("border-radius")),d[g].text("");c=a.find(".fm-text-display");d=b.find(".fm-text-display",!0);for(g=0;g<d.length;g++)d[g].V("color",c.V("color")),d[g].V("font-family",c.V("font-family")),d[g].V("font-size",c.V("font-size")),d[g].V("vertical-align",c.V("vertical-align")),d[g].V("margin-bottom",c.V("margin-bottom")||0);c=a.find("ul");d=b.find("ul",!0);for(g=0;g<d.length;g++)d[g].V("list-style-type",c.V("list-style-type")),d[g].V("padding-top",c.V("padding-top")||0),d[g].V("padding-right",
c.V("padding-right")||0),d[g].V("padding-bottom",c.V("padding-bottom")||0),d[g].V("padding-left",c.V("padding-left")||0),d[g].V("margin-top",c.V("margin-top")||0),d[g].V("margin-right",c.V("margin-right")||0),d[g].V("margin-bottom",c.V("margin-bottom")||0),d[g].V("margin-left",c.V("margin-left")||0);c=a.find("td");d=b.find("td",!0);for(g=0;g<d.length;g++)d[g].V("padding-top",c.V("padding-top")),d[g].V("padding-right",c.V("padding-right")),d[g].V("padding-bottom",c.V("padding-bottom")),d[g].V("padding-left",
c.V("padding-left")),d[g].V("vertical-align",c.V("vertical-align"));a=a.find("li",!0);d=b.find("li",!0);for(g=0;g<d.length;g++)d[g].V("padding-left",a[g].V("padding-left")),d[g].V("padding-top",a[g].V("padding-top")),d[g].V("padding-bottom",a[g].V("padding-bottom")),d[g].V("white-space","nowrap");b.find("table").V("width","initial")}static TL(b){var a="";e.ka(b)||(a=b.replace(/##PAGE-NUMBER##/gi,f.Cl++ +""),a=a.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString()));return a}static pT(b,a,c=!1,
d=null){var g=b.Ds.Cs.G.find("svg").clone();try{c||f.xC(l.C.F.Kn,g,b.Ds.Nr.G);c&&(g.attr("viewBox","0 0 "+g.attr("width")+" "+g.attr("height")),g.V("width","100%"));b.G.append(g);f.s0(g);g.o5("class");var k=z.ba.Lc(z.$Y.Yb(g.element));g.remove();if(b.Ds.ug){var m=b.Ds.ug.G.clone();f.xba(m,b.Ds.ug.G);c&&(m.V("max-width",""),m.V("padding-bottom","20px"));k+=m.element.outerHTML}if(c)return null!=d&&d(k),k;b="<!DOCTYPE html><html><head><meta charset='UTF-8'/><title>{0}</title></head><body>{1}{2}{3}</body></html>";
m="";e.ka(a.cj)||(m=a.cj,m=m.replace(/##PAGE-NUMBER##/gi,""),m=m.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString()));var n="";e.ka(a.Bj)||(n=a.Bj,n=n.replace(/##PAGE-NUMBER##/gi,""),n=n.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString()));b=e.P.bind(b,e.ka(l.C.F.Kn)?l.B.j.JX:l.C.F.Kn,m,k,n);b=z.ba.format(b);0==a.filename.length&&(a.filename="pivotchart.html");h.lo.save(b,a);l.Wa.R().Ha(new w.ia(e.ef.lg))}catch(p){console.error("Export Charts error:",p);g.remove();e.Va(l.B.j.oo,l.B.j.xa,
e.ob.xa);if(c)return null!=d&&d(""),"";l.Wa.R().Ha(new w.ia(e.ef.lg))}}static RS(b){if(null==b)return null;b=b.replace(/##PAGE-NUMBER##/gi,"");b=b.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString());return(new x.Ga("div")).V("background","white").V("text-align","left").V("z-index",-1).html(b)}static wza(b){const a=b.find(".fm-charts-layout");b=b.find(".fm-chart-legend-container");const c=a.parent,d=c.parent;d.element.style.border="0px";b&&(b.element.style.backgroundColor="transparent",b.element.style.border=
"0px");d.element.innerHTML=e.vt("");d.append(c);a.find(".fm-header-toolbar")&&a.find(".fm-header-toolbar").remove()}static Cda(b,a,c=!1,d=null){const g=["lib/html2canvas.v1.min.js","lib/canvg.min.js"];u.Nd().fj&&g.unshift("lib/promise.min.js");u.uo.load(g,()=>{const k=document.createElement("canvas"),m=b.Ds.Cs.G.find("svg").clone(),n=e.K.Sb.Jb.G.clone();let p=null;try{m.prepend((new x.Ga("rect")).V("width","100%").V("height","100%").V("fill","white"));f.oia(m);b.G.append(m);f.s0(m);f.lca(m);const t=
z.ba.Lc(z.$Y.Yb(m.element));canvg(k,t);m.remove();const r=(new x.Ga("img")).attr("src",k.toDataURL());c&&r.V("max-width","100%");n.find("svg").before(r);n.find("svg").remove();f.wza(n);p=new x.Ga("div");e.ka(a.cj)||p.append(this.RS(a.cj));p.append(n);p.V("padding-top","10px");p.V("padding-bottom","10px");e.ka(a.Bj)||p.append(this.RS(a.Bj));const v=window.getComputedStyle(b.G.element);if(c)return null!=d&&(p.V("position",b.G.V("position")),p.V("top",b.G.V("top")),p.V("bottom",b.G.V("bottom")),p.V("left",
b.G.V("left")),p.V("right",b.G.V("right")),p.V("width",v.width),p.V("height",v.height),d(p)),p.html();p.V("position","absolute").V("top",0).V("left",0).V("overflow","hidden").V("text-align","center").V("background","white").V("z-index",-1).V("width",v.width).V("height",v.height);e.K.Sb.Jb.G.element.ownerDocument.body.append(p.element);p.V("left",-p.left-p.width+"px");html2canvasV1(p.element).then(y=>{n.remove();p.remove();a.bD==l.hb.up.wB?h.lo.save(y,a):(y=e.P.Ica(y.toDataURL()),0==a.filename.length&&
(a.filename="pivotchart.png"),h.lo.save(y,a));l.Wa.R().Ha(new w.ia(e.ef.lg));f.clear()}).catch(y=>{console.error("Export Charts error:",y);m.remove();n.remove();null!=p&&p.remove();e.Va(l.B.j.oo,l.B.j.xa,e.ob.xa);c&&null!=d?d(""):l.Wa.R().Ha(new w.ia(e.ef.lg));f.clear()})}catch(t){console.error("Export Charts error:",t),n.remove(),m.remove(),null!=p&&p.remove(),e.Va(l.B.j.oo,l.B.j.xa,e.ob.xa),c&&null!=d?d(""):l.Wa.R().Ha(new w.ia(e.ef.lg)),f.clear()}})}static xC(b,a,c){if(0<b.length){var d=e.K.Y.W.ad.Ez(c,
["font-family","font-size","font-weight","color"]);b=(new x.Ga("text")).attr("x","50%").attr("style","text-anchor:middle;"+d).text(b);a.prepend(b);b.attr("y",c.height);b=a.find("g");d=d3v3.transform(b.attr("transform"));d.translate[1]+=c.height;b.attr("transform",d.toString());a.attr("height",parseInt(a.attr("height"))+c.height)}}static get pD(){var b=h.Ay.KH(f.Er);return"portrait"===f.pb.uE?b.Jh:b.Rk}static get qD(){var b=h.Ay.KH(f.Er);return"portrait"===f.pb.uE?b.Rk:b.Jh}static rza(b,a,c=!1,d=null){e.Ca(!0,
l.B.j.KF,"...",!0,!0);const g=["lib/html2canvas.v1.min.js","lib/jspdf.min.js"];u.Nd().fj&&g.unshift("lib/promise.min.js");u.uo.load(g,()=>{f.pb=a;f.Er=h.Ay.Dka(a.Er);f.Gd=new jspdf.jsPDF(a.uE,"mm",f.Er,!u.Nd().fj);f.gf=d;f.Cs=b;f.i5=c;f.Jh=f.pD-2*f.di;f.Rk=f.qD-2*f.di;f.rg=f.di;try{f.E3(()=>{f.TS(this.pb.cj,this.pb.Bj,()=>this.l4())})}catch(k){console.error("Export PDF error:",k),e.Va(l.B.j.oo,l.B.j.xa,e.ob.xa),e.Ca(!1),l.Wa.R().Ha(new w.ia(e.ef.lg)),f.clear()}})}static E3(b){e.v(f.pb.yT)?b():h.G8.load(f.pb.yT,
(a,c)=>{e.v(a)?e.v(c)||(f.font=c,f.Gd.addFileToVFS(c.filename,c.content),f.Gd.addFont(c.filename,c.name,"normal")):e.Va(a.message,l.B.j.xa,e.ob.xa);b()})}static TS(b,a,c){var d=null==b,g=null==a,k=!1;if(d&&g)c();else{if(!d){b=b.replace(/##PAGE-NUMBER##/gi,(f.Cl+1).toString());b=b.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString());var m=new x.Ga("div");m.V("position","absolute");m.V("background","white");m.Yk(h.df.fA(f.qD-2*f.Ri));m.html(b);e.K.Sb.Jb.G.element.ownerDocument.body.append(m.element);
html2canvasV1(m.element,{scale:h.df.Oh}).then(p=>{m.remove();f.Zm=p;d=!0;g&&c()}).catch(p=>{console.error("Export Charts error:",p);m.remove();k||(k=!0,e.Va(l.B.j.oo,l.B.j.xa,e.ob.xa),l.Wa.R().Ha(new w.ia(e.ef.lg)),f.clear())})}if(!g){a=a.replace(/##PAGE-NUMBER##/gi,(f.Cl+1).toString());a=a.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString());var n=new x.Ga("div");n.V("position","absolute");n.V("background","white");n.Yk(h.df.fA(f.qD-2*f.Ri));n.html(a);e.K.Sb.Jb.G.element.ownerDocument.body.append(n.element);
html2canvasV1(n.element,{scale:h.df.Oh}).then(p=>{n.remove();f.aq=p;g=!0;d&&c()}).catch(p=>{console.error("Export Charts error:",p);m.remove();k||(k=!0,e.Va(l.B.j.oo,l.B.j.xa,e.ob.xa),l.Wa.R().Ha(new w.ia(e.ef.lg)),f.clear())})}}}static w_(b,a){b.addImage(a,"JPEG",f.Ri,f.Ri,h.df.fg(a.width/h.df.Oh),h.df.fg(a.height/h.df.Oh))}static v_(b,a){b.addImage(a,"JPEG",f.Ri,f.pD-h.df.fg(f.aq.height/h.df.Oh)-f.Ri,h.df.fg(a.width/h.df.Oh),h.df.fg(a.height/h.df.Oh))}static cS(){null!=f.Zm&&f.w_(f.Gd,f.Zm);null!=
f.aq&&f.v_(f.Gd,f.aq);f.Jh=f.pD;f.Jh-=e.v(f.Zm)?f.di:h.df.fg(f.Zm.height/h.df.Oh)+2*f.Ri;f.Jh-=e.v(f.aq)?f.di:h.df.fg(f.aq.height/h.df.Oh)+2*f.Ri;f.rg=e.v(f.Zm)?f.di:h.df.fg(f.Zm.height/h.df.Oh)+2*f.Ri}static l4(){f.cS();f.RKa()}static Ava(b){var a=f.Cs.Ds.Cs.G.find("svg").clone(),c=document.createElement("canvas");a.prepend((new x.Ga("rect")).V("width","100%").V("height","100%").V("fill","white"));f.oia(a);a.attr("width",parseInt(a.attr("width"))*h.df.Oh);a.attr("height",parseInt(a.attr("height"))*
h.df.Oh);f.Cs.G.append(a);f.s0(a);f.lca(a);canvg(c,z.ba.Lc(z.$Y.Yb(a.element)),{scaleWidth:a.width*h.df.Oh,scaleHeight:a.height*h.df.Oh});a.detach();b(c)}static NEa(b){if(e.v(f.Cs.Ds.ug))b(null);else{var a=f.Cs.Ds.ug.G.clone();a.width=f.Cs.Ds.width;f.xba(a,f.Cs.Ds.ug.G);a.V("border","none").V("position","absolute").V("top",0).V("left",0).V("overflow","hidden").V("background","white").V("z-index",-1);f.i5&&a.V("width","100%").V("max-width","");e.K.Sb.Jb.G.element.ownerDocument.body.append(a.element);
html2canvasV1(a.element,{scale:h.df.Oh}).then(c=>{a.remove();b(c)}).catch(c=>{console.error("Export Charts error:",c);a.remove();e.Va(l.B.j.oo,l.B.j.xa,e.ob.xa);l.Wa.R().Ha(new w.ia(e.ef.lg));f.clear()})}}static RKa(){const b=["lib/html2canvas.v1.min.js","lib/canvg.min.js"];u.Nd().fj&&b.unshift("lib/promise.min.js");u.uo.load(b,()=>{try{f.Ava(a=>{f.NEa(c=>{var d=document.createElement("canvas");d.width=a.width;d.height=a.height+(c?h.df.fA(f.di)/2+c.height:0);var g=d.getContext("2d");g.fillStyle="#FFFFFF";
g.fillRect(0,0,d.width,d.height);g.drawImage(a,0,0);c&&g.drawImage(c,0,d.height-c.height);if(f.i5&&null!=f.gf)l.C.F.me==e.K.Jd.nj&&0==f.pb.filename.length&&(f.pb.filename="pivotcharts.pdf"),f.gf(d);else{f.rg+=h.df.xC(l.C.F.Kn,f.Gd,f.rg,f.font);c=f.Iia(h.df.fg(d.width),h.df.fg(d.height),f.Rk,f.Jh);if(2>d.toDataURL("image/jpeg",1).split("base64,").length)throw Error(l.B.j.n9);f.Gd.addImage(d,"JPEG",f.di+c.x,f.rg,c.width,c.height);0==f.pb.filename.length&&(f.pb.filename="pivotcharts.pdf");f.pb.bD==l.hb.up.wB?
h.lo.save(f.Gd,f.pb):h.lo.save(e.P.k6(f.Gd.output()),f.pb);f.clear();l.Wa.R().Ha(new w.ia(e.ef.lg))}})})}catch(a){e.Va(a.message===l.B.j.n9?a.message:l.B.j.oo,l.B.j.xa,e.ob.xa),f.i5&&null!=f.gf?f.gf(null):l.Wa.R().Ha(new w.ia(e.ef.lg)),f.clear()}})}static clear(){f.Cs=null;f.pb=null;f.Gd=null;f.rg=0;f.Jh=0;f.Rk=0;f.Cl=0;f.Zm=null;f.aq=null}static oia(b){b=b.find("title",!0);for(var a=0;a<b.length;a++)b[a].remove()}static Iia(b,a,c,d){var g={x:0,y:0,width:0,height:0};if(b>c-0||a>d-0)d=Math.min((c-
0)/b,(d-0)/a),b*=d,a*=d;g.x=(c-0-b)/2;g.y=0;g.width=b;g.height=a;return g}}f.font=null;f.gf=null;f.Ri=5;f.di=15;f.Er="a4";f.Cl=0;h.aB=f})(l.Dc||(l.Dc={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){throw Error("Singleton");}static Ze(b,a,c=null){b=["lib/html2canvas.v1.min.js"];u.Nd().fj&&b.unshift("lib/promise.min.js");u.uo.load(b,()=>{f.pb=a;this.Fxa();var d=e.K.Sb.Jb.G;const g=d.clone(),k=this.RS(g,c);d.element.ownerDocument.body.appendChild(k.element);d=window.getComputedStyle(d.element);k.Mr(d.height);k.Yk(d.width);k.V("left",-k.left-k.width+"px");html2canvasV1(k.element).then(m=>{f.gGa(m);k.Qg()}).catch(m=>{console.error("Export Image error:",
m);e.Va(l.B.j.oo,l.B.j.xa,e.ob.xa);k.Qg();l.Wa.R().Ha(new w.ia(e.ef.lg));f.clear()})},()=>{l.Wa.R().Ha(new w.ia(e.ef.lg));f.clear()})}static RS(b,a){a=(new x.Ga("div")).V("position","absolute").V("top","0px").V("left","0px").V("overflow","hidden").V("text-align","center").V("background","white").Yk(e.K.Sb.Wx).V("z-index",-1).append(a);null!=f.Rz&&a.append(f.Rz);b.find(".fm-fields-view-wrap").remove();a.append(b.V("position","relative"));null!=f.Bz&&a.append(f.Bz);return a}static Fxa(){const b=h.Ay.KH("a4");
let a=this.pb.cj,c=this.pb.Bj,d=null==a,g=null==c;d&&g||(d||(a=a.replace(/##PAGE-NUMBER##/gi,""),a=a.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString()),this.Rz=new x.Ga("div"),this.Rz.V("background","white"),this.Rz.V("text-align","left"),this.Rz.V("z-index",-1),this.Rz.Yk(h.df.fA(b.Rk-2*this.Ri)),this.Rz.html(a)),g||(c=c.replace(/##PAGE-NUMBER##/gi,""),c=c.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString()),this.Bz=new x.Ga("div"),this.Bz.V("background","white"),this.Bz.V("text-align",
"left"),this.Bz.V("z-index",-1),this.Bz.Yk(h.df.fA(b.Rk-2*this.Ri)),this.Bz.html(c)))}static gGa(b){if(f.pb.bD==l.hb.up.wB)h.lo.save(b,f.pb);else try{var a=e.P.Ica(b.toDataURL());0==f.pb.filename.length&&(f.pb.filename="pivotgrid.png");e.v(a)||h.lo.save(a,f.pb)}catch(c){e.Va("Due to security reason export to image cannot be completed when you run the component from the local folder.",l.B.j.xa,e.ob.xa)}l.Wa.R().Ha(new w.ia(e.ef.lg));f.clear()}static clear(){f.pb=null;f.Rz=null;f.Bz=null}}f.Ri=5;h.c8=
f})(l.Dc||(l.Dc={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{static Ze(b,a,c,d,g=null){e.Ca(!0,l.B.j.KF,"...",!0,!0);const k=["lib/html2canvas.v1.min.js","lib/jspdf.min.js"];u.Nd().fj&&k.unshift("lib/promise.min.js");u.uo.load(k,()=>{f.clear();f.$H=l.C.F.sc;f.LU=b instanceof e.K.Yf.vF;f.Y=b;f.Ed=d;f.Fd=c;f.coords=b.na.coords;f.pb=a;f.Er=h.Ay.Dka(a.Er);f.Gd=new jspdf.jsPDF(a.uE,"mm",f.Er,!u.Nd().fj);f.Bw=g;f.V4=null!=g&&l.C.F.me==e.K.Jd.nj;f.Jh=f.pD-2*f.di;f.Rk=f.qD-2*f.di;f.w6=f.Y.Bg+c;f.x6=f.Y.vf+d;f.OA={};f.rg=
f.di;try{f.Mba(),f.h2(),f.E3(()=>{f.TS(f.pb.cj,f.pb.Bj,()=>this.l4())})}catch(m){console.error("Export PDF error:",m),e.Va(l.B.j.oo,l.B.j.xa,e.ob.xa),e.Ca(!1),l.Wa.R().Ha(new w.ia(e.ef.lg)),f.clear()}})}static E3(b){e.v(f.pb.yT)?b():h.G8.load(f.pb.yT,(a,c)=>{e.v(a)?e.v(c)||(f.font=c,f.Gd.addFileToVFS(c.filename,c.content),f.Gd.addFont(c.filename,c.name,"normal")):e.Va(a.message,l.B.j.xa,e.ob.xa);b()})}static TS(b,a,c){let d=null==b||null!=f.Zm&&-1==b.search(f.qQ),g=null==a||null!=f.aq&&-1==a.search(f.qQ);
if(d&&g)c();else{if(!d){b=b.replace(f.qQ,(f.Cl+1).toString());b=b.replace(f.y7,(new Date).toLocaleString());var k=new x.Ga("div");k.V("position","absolute");k.V("background","white");k.Yk(f.fA(f.qD-2*f.Ri));k.html(b);e.K.Sb.Jb.G.prepend(k);html2canvasV1(k.element,{scale:f.Oh}).then(n=>{k.remove();f.Zm=n;d=!0;g&&c()})}if(!g){a=a.replace(f.qQ,(f.Cl+1).toString());a=a.replace(f.y7,(new Date).toLocaleString());var m=new x.Ga("div");m.V("position","absolute");m.V("background","white");m.Yk(f.fA(f.qD-2*
f.Ri));m.html(a);e.K.Sb.Jb.G.prepend(m);html2canvasV1(m.element,{scale:f.Oh}).then(n=>{m.remove();f.aq=n;g=!0;d&&c()})}}}static w_(b,a){b.addImage(a,"JPEG",f.Ri,f.Ri,f.fg(a.width/f.Oh),f.fg(a.height/f.Oh))}static v_(b,a){b.addImage(a,"JPEG",f.Ri,f.pD-f.fg(a.height/f.Oh)-f.Ri,f.fg(a.width/f.Oh),f.fg(a.height/f.Oh))}static cS(){null!=f.Zm&&f.w_(f.Gd,f.Zm);null!=f.aq&&f.v_(f.Gd,f.aq);f.Jh=f.pD;f.Jh-=e.v(f.Zm)?f.di:f.fg(f.Zm.height/f.Oh)+2*f.Ri;f.Jh-=e.v(f.aq)?f.di:f.fg(f.aq.height/f.Oh)+2*f.Ri;f.rg=
e.v(f.Zm)?f.di:f.fg(f.Zm.height/f.Oh)+2*f.Ri}static get pD(){var b=h.Ay.KH(f.Er);return"portrait"===f.pb.uE?b.Jh:b.Rk}static get qD(){var b=h.Ay.KH(f.Er);return"portrait"===f.pb.uE?b.Rk:b.Jh}static l4(){f.cS();if(null!=f.Bw){f.rg+=f.xC(l.C.F.Kn,f.Gd,f.rg,f.font);var b=h.aB.Iia(f.fg(f.Bw.width),f.fg(f.Bw.height),f.Rk,f.Jh),a=e.ka(l.C.F.Kn)?f.rg:f.rg+5;f.Gd.addImage(f.Bw,"JPEG",f.di,a,b.width,b.height);f.V4||this.jba()}f.V4?f.wha():(f.rg+=f.xC(l.C.F.gq,f.Gd,f.rg,f.font),f.UJa(),l.C.F.MI&&f.yM(),u.Ql.Co({lp:()=>
f.D1(),gf:()=>f.wha()}))}static xC(b,a,c,d){if(e.ka(b))return 0;e.v(d)?(d=a.getFont(),a.setFont(d.Vza,"bold")):a.setFont(d.name,"normal");a.setTextColor(0,0,0);a.setFontSize(12);d=12*a.getStringUnitWidth(b)/a.internal.scaleFactor;d=(a.internal.pageSize.getWidth()-d)/2;a.text(b,d,c);return f.fg(12)}static cca(b,a,c){var d=.8*Math.max(f.fg(30),6),g=.9*f.xI(f.Oca);b=f.Gd.splitTextToSize(b,g,f.Uu(c));a=f.Gd.splitTextToSize(a,g,f.Uu(c));c=1<b.length?f.fg(b.length*(11+2*f.ri)-2*f.ri):f.fg(11*b.length-f.ri);
a=1<a.length?f.fg(a.length*(11+2*f.ri)-2*f.ri):f.fg(11*a.length-f.ri);a=(c>a?c:a)/d;return 1>a?d:(a+1)*d}static yM(){if(!(f.Y instanceof e.K.Yf.vF||0==e.u.Ma.R().qa.qb.length)){var b=l.Wa.R().ja.qa.vc(),a=e.u.Ma.R().qa.qb,c=f.di,d=.9*f.xI(f.Oca);var g=!0;var k=f.Y.na.ag(0,0,!0),m=f.uT.clone();m=f.wA(k,m);for(var n=m.fontSize,p=0;p<b.length;p++){var t=b.fa(p);if(a.Bb(t.A)&&t.filter.Fh){var r=f.Iz(t);g&&(g=f.cca("",l.B.j.$r,m),f.xM(f.Gd.splitTextToSize("",d,f.Uu(m)),k,m,c,d,g),c+=d,m.fontSize=n,f.xM(f.Gd.splitTextToSize(l.B.j.$r,
d,f.Uu(m)),k,m,c,d,g),m.fontSize=n,c=f.di,f.rg+=g,f.nt+=g);g=f.cca(t.caption,r,m);f.xM(f.Gd.splitTextToSize(f.F6(t.caption),d,f.Uu(m)),k,m,c,d,g);c+=d;m.fontSize=n;f.xM(f.Gd.splitTextToSize(f.F6(r),d,f.Uu(m)),k,m,c,d,g);m.fontSize=n;c=f.di;f.rg+=g;f.nt+=g;g=!1}}f.rg=f.rg>f.di?f.rg+2*f.xI(f.Nca):f.rg;f.nt=f.rg>f.di?f.nt+2*f.xI(f.Nca):f.nt}}static F6(b){b=b.replace(/<(?:.|\n)*?>/gi,"");var a=b.match(/&#(\d{3,4});/gi);if(a)for(var c,d=0;d<a.length;d++)c=parseInt(a[d].substring(2,a[d].length-1)),b=b.replace(a[d],
String.fromCharCode(c));return b}static xM(b,a,c,d,g,k){var m=b.length,n=1<m?f.fg(b.length*(c.fontSize+2*f.ri)-2*f.ri):f.fg(b.length*c.fontSize-f.ri);n>f.Jh/2&&(n=(f.Jh-20)/2,m=Math.floor(f.fA(n)/(c.fontSize+2*f.ri)));c.fontSize*=.7;var p=e.K.Y.W.ad.b5(c.backgroundColor);f.Gd.setFillColor(p[0],p[1],p[2],0!=p[3]?void 0:0);p=e.K.Y.W.ad.b5(c.borderColor);f.Gd.setDrawColor(p[0],p[1],p[2],0!=p[3]?void 0:0);p=e.K.Y.W.ad.b5(c.color);f.Gd.setTextColor(p[0],p[1],p[2]);e.v(f.font)?(p=f.Gd.getFont(),f.Gd.setFont(p.Vza,
"bold"===c.fontWeight?"bold":"normal")):f.Gd.setFont(f.font.name,"normal");f.Gd.setFontSize(c.fontSize);f.Gd.rect(d,f.rg,g,k,"FD");k=f.rg+(k-n)/2+f.ri;if("right"==c.textAlign)if(1<b.length)for(c=0;c<m;c++)f.Gd.text(b[c],d+g-f.ri,k,{align:"right"}),k+=2*f.ri;else f.Gd.text(b[0],d+g-f.ri+("("==b[0].charAt(0)&&")"==b[0].charAt(b[0].length-1)?1.5:0),k,{align:"right"});else if("center"==c.textAlign)if(1<b.length)for(a=0;a<m;a++)f.Gd.text(b[a],d+g/2,k,{align:"center"}),k+=2*f.ri;else f.Gd.text(b[0],d+g/
2,k,{align:"center"});else if(1<b.length)for(c=0;c<m;c++)g=!l.C.F.Bk&&null!=a&&0<a.level?(a.level+1)*f.ri:f.ri,f.Gd.text(b[c],d+g,k),k+=2*f.ri;else g=!l.C.F.Bk&&null!=a&&0<a.level?(a.level+1)*f.ri:f.ri,f.Gd.text(b[0],d+g,k)}static Iz(b){var a=l.B.j.FJ;b.filter.Fh&&(a=1==b.eb.length?b.za(b.eb[0]).caption:l.B.j.LJ);return a}static h2(){var b=f.Y.na,a=b.find(".fm-data-sheet");f.nS=e.K.Y.W.ad.sl(e.K.Y.W.ya.Ne,a);f.v6=e.K.Y.W.ad.sl(e.K.Y.W.ya.Ne+" "+e.K.Y.W.ya.Xv,a);f.o2=e.K.Y.W.ad.sl(e.K.Y.W.ya.Ne+" "+
e.K.Y.W.ya.Xv+" "+e.K.Y.W.ya.NJ,a);f.z5=e.K.Y.W.ad.sl(e.K.Y.W.ya.Ne+" "+e.K.Y.W.ya.qk+" "+e.K.Y.W.ya.Nv,x.Ga.Yb(b.element));f.d0=e.K.Y.W.ad.sl(e.K.Y.W.ya.Ne+" "+e.K.Y.W.ya.qk+" "+e.K.Y.W.ya.mB,x.Ga.Yb(b.element));f.uT=e.K.Y.W.ad.sl(e.K.Y.W.ya.Ne+" "+e.K.Y.W.ya.qk+" "+e.K.Y.W.ya.Kq,x.Ga.Yb(b.element))}static zH(b){b=f.xI(f.Y.na.coords.Dh(b));b=b<f.Rk?b:f.Rk-1;return.9*b}static wA(b,a){null!=b&&b.av&&null!=b.style&&(b=0<b.style.XC.length?e.K.Y.W.ad.sl(b.style.ST()):e.K.Y.W.ad.FT(b.style.jU()),b.merge(a),
a=b);a.color=a.color||"rgb(0,0,0)";"rgb(33, 33, 33)"==a.backgroundColor&&(a.color="rgb(242, 242, 242)");a.backgroundColor=a.backgroundColor||"rgb(0,0,0,0)";a.borderColor=a.borderColor||"rgb(222,222,222)";a.fontSize=a.fontSize||11;return a}static Uu(b){return{fontSize:.85*b.fontSize,fontName:null==b.fontFamily?f.Wna:b.fontFamily,fontStyle:e.K.Y.W.foa.GBa(parseFloat(b.fontWeight))}}static UJa(){f.wU=Array(f.x6);for(var b,a=0,c,d;a<f.x6;){f.Y.na.coords.Wo(a,NaN)&&(f.wU[a]=0,a++);c=b=0;for(var g=.8*Math.max(f.fg(f.coords.$d(a)),
6);b<f.w6;){f.Y.na.coords.Wo(NaN,b)&&(f.OA[b]=0,b++);d=f.Y.na.ag(a,b,!0);new e.K.Y.W.ad;var k=f.nS.clone();k=f.wA(d,k);if(null!=d){var m=d.I();"number"===typeof m&&(d.value=m,m+="",d.numeric=!0);m=m.replace(/<(?:.|\n)*?>/gi,"");d=f.Gd.splitTextToSize(m,null!=f.OA&&null!=f.OA[b]?f.OA[b]:f.zH(b),f.Uu(k));d=(1<d.length?f.fg(d.length*(11+2*f.ri)-2*f.ri):f.fg(11*d.length-f.ri))/g;d=1>d?g:(d+1)*g;d=d>f.Jh/2?(f.Jh-1)/2:d;c=d>c?d:c}b++}f.wU[a]=c;a++}}static D1(){if(f.VQ)return!1;for(var b=0;b<f.Ur;b++){if(f.VN&&
(f.jba(),f.VQ))return!1;var a,c=f.di,d=f.Hs-f.WS<f.Y.vf&&f.Hs>f.Y.Fp?f.Hs-f.WS:f.Hs;if(f.Y.na.coords.Wo(d,NaN))f.Hs++;else{var g=f.wU[d];for(f.Cu=f.Is;f.Cu<f.lz+f.Is;){var k=(a=f.$H||f.LU?!1:f.Cu==f.Is&&f.Cu>f.Y.Fp)?f.Y.Fp:f.Cu;if(f.Y.na.coords.Wo(NaN,k))f.Cu++;else if(!f.qL()&&f.nt+g<=f.Jh){a=null!=f.OA&&null!=f.OA[k]?f.OA[k]:f.zH(k);if(.9*(c+a)>f.Rk)break;k=f.Y.na.ag(d,k,!0);var m=f.AM(k);"number"===typeof m&&(k.value=m,m+="",k.numeric=!0);m=f.F6(m);var n=[m];new e.K.Y.W.ad;if(null!=k&&k.xh){var p=
f.z5.clone();p=f.wA(k,p);n=f.Gd.splitTextToSize(m,a,f.Uu(p))}else null!=k&&k.Ng?(p=f.d0.clone(),p=f.wA(k,p),n=f.Gd.splitTextToSize(m,a,f.Uu(p))):null!=k&&k.vl?(p=f.uT.clone(),p=f.wA(k,p)):null!=k&&k.Vz&&k.Mk&&""!=k.I()?(p=f.o2.clone(),p=f.wA(k,p)):null!=k&&k.Mk&&""!=k.I()?(p=f.v6.clone(),p=f.wA(k,p)):(p=f.nS.clone(),p=f.wA(k,p),n=f.Gd.splitTextToSize(m,a,f.Uu(p)));f.xM(n,k,p,c,a,g);f.Cu++;c+=a}else{f.VN=!0;break}}f.VN||(f.rg+=g,f.nt+=g,f.Hs++);if(f.fS()&&f.qL())break}}return f.fS()&&f.qL()}static AM(b){return e.v(b)?
"":b.xh||b.Ng?b.I():b.I(!1,f.pb.PO)}static fS(){return f.Is+f.lz>=f.Fd+f.Y.Bg}static qL(){return f.Hs>=f.Ed+f.Y.vf}static jba(){f.Gd.addPage();f.Cl++;f.VN=!1;f.VQ=!0;f.TS(f.pb.cj,f.pb.Bj,()=>{f.VQ=!1;f.cS()});f.nt=0;if(null==f.Bw||1<f.Cl)f.RLa(),f.QLa();e.Ca(!0,l.B.j.KF,f.Cl+1+" "+l.B.j.t9,!0)}static RLa(){f.fS()&&!f.qL()?(f.Hs-=f.Y.vf,f.WS=f.Hs):f.Hs=f.WS}static QLa(){f.fS()?f.qL()||(f.Is=0,f.Cu=0):(f.Is+=f.lz,f.Cu=f.Is);f.Mba()}static Mba(){f.lz=0;var b=f.Is,a=0;if(f.$H||f.LU?0:f.Is>=f.Y.Bg){var c=
f.zH(f.Y.Fp);a+=c;f.lz++;f.Is--;f.Cu--}for(;b<f.w6;)if(c=f.zH(b),c>f.Rk/2-f.di&&(c=(f.Rk+f.di)/2,f.OA[b]=c),a+=c,a<=f.Rk)f.lz++,b++;else{0==f.lz&&(f.lz=1);break}}static wha(){0==f.pb.filename.length&&(f.pb.filename="pivot.pdf");if(f.pb.bD==l.hb.up.wB)h.lo.save(f.Gd,f.pb);else{var b=f.Gd.output();b=e.P.k6(b);h.lo.save(b,f.pb)}f.clear();l.Wa.R().Ha(new w.ia(e.ef.lg))}static clear(){f.Y=null;f.pb=null;f.Gd=null;f.font=null;f.Fd=0;f.Ed=0;f.w6=0;f.x6=0;f.lz=0;f.Cu=0;f.Is=0;f.Hs=0;f.WS=0;f.nt=0;f.rg=0;
f.VN=!1;f.Cl=0;f.Jh=0;f.Rk=0;f.Zm=null;f.aq=null;f.wU=null;f.$H=!1;f.LU=!1}static xI(b){return.264*b}static fA(b){return 3.779*b}static fg(b){return b/3.779}}f.di=15;f.VN=!1;f.Cl=0;f.V4=!1;f.Wna="Helvetica";f.font=null;f.Er="a4";f.Oca=100;f.Nca=30;f.qQ=/##PAGE-NUMBER##/gi;f.y7=/##CURRENT-DATE##/gi;f.$H=!1;f.LU=!1;f.Oh=4;f.Ri=5;f.VQ=!1;f.Ur=5;f.ri=f.xI(8);h.df=f})(l.Dc||(l.Dc={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){throw Error("Singleton");}static Ze(b,a,c,d,g=""){f.Y=b;f.Fd=c;f.Ed=d;f.pb=a;f.Bw=g||"";try{f.pT()}catch(k){console.error("Export HTML error:",k),e.Va(l.B.j.oo,l.B.j.xa,e.ob.xa),e.Ca(!1),l.Wa.R().Ha(new w.ia(e.ef.lg)),f.clear()}}static pT(){e.Ca(!0,l.B.j.wy);f.Wm=u.bg();f.Xu="";f.lb=f.Y.Ui;f.ut=[];l.C.F.MI&&f.yM();u.Ql.Co({lp:()=>f.D1(),gf:()=>f.nHa()})}static E1(){var b="",a=f.Y.na,c=a.find(".fm-data-sheet");b+=e.P.bind("body{{0}}\n",e.K.Y.W.ad.Ez(x.Ga.Yb(a.element),
["font-family"]));b+=e.P.bind(".grid{border-collapse:collapse;{0}border-top:1px solid #e9e9e9;border-left:1px solid #e9e9e9;}\n",e.K.Y.W.ad.Ez(x.Ga.Yb(a.element),["font-family","font-size","color"]));b+=e.P.bind(".title{{0}}\n",e.K.Y.W.ad.tl(e.K.Y.W.ya.TY,x.Ga.Yb(a.element)));b+=e.P.bind(".cell{{0}}\n",e.K.Y.W.ad.tl(e.K.Y.W.ya.Ne,c));b+=e.P.bind(".totalCell{{0}}\n",e.K.Y.W.ad.tl(e.K.Y.W.ya.Ne+" "+e.K.Y.W.ya.Xv,c));b+=e.P.bind(".grandTotalCell{{0}}\n",e.K.Y.W.ad.tl(e.K.Y.W.ya.Ne+" "+e.K.Y.W.ya.Xv+
" "+e.K.Y.W.ya.NJ,c));b+=e.P.bind(".rowHeaderCell{{0}}\n",e.K.Y.W.ad.tl(e.K.Y.W.ya.Ne+" "+e.K.Y.W.ya.qk+" "+e.K.Y.W.ya.Nv,x.Ga.Yb(a.element)));b+=e.P.bind(".columnHeaderCell{{0}}\n",e.K.Y.W.ad.tl(e.K.Y.W.ya.Ne+" "+e.K.Y.W.ya.qk+" "+e.K.Y.W.ya.mB,x.Ga.Yb(a.element)));b+=e.P.bind(".filterHeaderCell{{0}}\n",e.K.Y.W.ad.tl(e.K.Y.W.ya.Ne+" "+e.K.Y.W.ya.qk+" "+e.K.Y.W.ya.Kq,x.Ga.Yb(a.element)));for(c=1;20>=c;c++)b+=e.P.bind(".level{0}{{1}}\n",c,e.K.Y.W.ad.tl(e.K.Y.W.ya.Nv+" "+e.K.Y.W.ya.Sf+c,x.Ga.Yb(a.element),
["padding-left"]));for(c=0;c<f.ut.length;c++)b+=e.P.bind(".{0}{{1}}\n",f.ut[c],e.K.Y.W.ad.tl(f.ut[c],x.Ga.Yb(a.element)));return b}static K_(b){for(var a=0;a<b.length;a++)0>f.ut.indexOf(b[a])&&f.ut.push(b[a])}static yM(){if(!(f.Y instanceof e.K.Yf.vF||0==e.u.Ma.R().qa.qb.length))for(var b=l.Wa.R().ja.qa.vc(),a=e.u.Ma.R().qa.qb,c,d,g=!0,k,m="style='min-width:"+f.KFa+"px;'",n=0;n<b.length;n++)d=b.fa(n),k="",a.Bb(d.A)&&d.filter.Fh&&(c=f.Iz(d),g&&(k+="<td {0}></td>",k=e.P.bind(k,"class='filterHeaderCell' "+
m),k+="<td {0}>"+l.B.j.$r+"</td>",k=e.P.bind(k,"class='filterHeaderCell' "+m),f.lD+="<tr>"+k+"</tr>",k=""),k+="<td {0}>"+d.caption+"</td>",k=e.P.bind(k,"class='filterHeaderCell' "+m),k+="<td {0}>"+c+"</td>",k=e.P.bind(k,"class='filterHeaderCell' "+m),f.lD+="<tr>"+k+"</tr>",g=!1)}static Iz(b){var a=l.B.j.FJ;b.filter.Fh&&(a=1==b.eb.length?b.za(b.eb[0]).caption:l.B.j.LJ);return a}static D1(){var b="";if(f.Y.na.coords.Wo(f.lb,NaN))return f.lb++>=f.Ed+f.Y.vf;for(var a=f.Y.Fp;a<f.Fd+f.Y.Bg;a++)if(!f.Y.na.coords.Wo(NaN,
a)){var c=f.Y.na.ag(f.lb,a,!0);b+="<td {0}>"+f.AM(c)+"</td>";if(null==c)b=e.P.bind(b,"class='cell'");else{var d="",g="";c.av&&null!=c.style&&(g=c.style.jU(),d=c.style.ST(),f.K_(c.style.XC));d=c.xh?d+(" rowHeaderCell level"+c.level):c.Ng?d+" columnHeaderCell":c.vl?d+" filterHeaderCell":c.Vz&&c.Mk&&""!=c.I(!0)?d+" grandTotalCell":c.Mk&&""!=c.I(!0)?d+" totalCell":d+" cell";null!=c&&c.vl&&(d+=" level"+c.level);""!=d.trim()&&(d="class='"+d.trim()+"'");g+="width:"+f.Y.na.coords.Dh(a)+"px;";""!=g.trim()&&
(g="style='"+g.trim()+"'");b=e.P.bind(b,d+" "+g)}}f.eO+="<tr>"+b+"</tr>";200<u.bg()-f.Wm&&(e.Ca(!0,l.B.j.wy,e.P.bind("{0}%",(f.lb/(f.Ed+f.Y.vf)*100).toFixed(0))),f.Wm=u.bg());return++f.lb>=f.Ed+f.Y.vf}static AM(b){return e.v(b)?"":b.xh||b.Ng?b.I(!0):b.I(!0,f.pb.PO)}static nHa(){e.Ca(!1);f.WKa();f.clear()}static WKa(){0==f.pb.filename.length&&(f.pb.filename="pivotgrid.html");var b="";if(!e.ka(f.pb.cj)){var a=f.pb.cj;a=a.replace(/##PAGE-NUMBER##/gi,"");a=a.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString());
b+=a}e.ka(f.Bw)||(e.ka(l.C.F.Kn)||(b+="<div class='title'>"+l.C.F.Kn+"</div>"),b+=f.Bw);b+="<div class='title'>"+l.C.F.gq+"</div>";b+=0<f.lD.length?"<table class='grid'>"+f.lD+"</table><br><br><table class='grid'>"+f.eO+"</table>":"<table class='grid'>"+f.eO+"</table>";e.ka(f.pb.Bj)||(a=f.pb.Bj,a=a.replace(/##PAGE-NUMBER##/gi,""),a=a.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString()),b+=a);f.Xu="<!DOCTYPE html><html><head><meta charset='UTF-8'/>";f.Xu+="<title>"+(e.ka(l.C.F.gq)?l.B.j.JX:l.C.F.gq)+
"</title>";f.Xu+="<style>"+f.E1()+"</style></head>";f.Xu+="<body>"+b+"</body></html>";h.lo.save(f.Xu,f.pb);l.Wa.R().Ha(new w.ia(e.ef.lg))}static clear(){f.lb=0;f.Xu="";f.lD="";f.eO="";f.Fd=0;f.Ed=0;f.Y=null;f.pb=null;f.Bw=""}}f.lb=0;f.Wm=0;f.Xu="";f.lD="";f.eO="";f.KFa=100;f.Ur=10;h.b8=f})(l.Dc||(l.Dc={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){throw Error("Singleton");}static Ze(b,a,c,d){f.Y=b;f.Fd=c;f.Ed=d;f.pb=a;try{f.sza()}catch(g){console.error("Export XLS error:",g),e.Va(l.B.j.oo,l.B.j.xa,e.ob.xa),e.Ca(!1),l.Wa.R().Ha(new w.ia(e.ef.lg))}}static sza(){e.Ca(!0,l.B.j.wy);f.lb=f.Y.Ui;f.Me=0;f.Wm=u.bg();f.fO=[];f.Qf=new S.jsa;var b=l.B.j.JX;e.ka(f.pb.f1)?e.ka(l.C.F.gq)||(b=l.C.F.gq):b=f.pb.f1;b=new S.ksa(b);f.Qf.lh.push(b);f.h2();this.pb.cj?f.fba(this.pb.cj):f.zua();f.xC();l.C.F.MI&&
f.$ta();u.Ql.Co({lp:()=>f.QAa(),gf:()=>f.XIa()})}static h2(){var b=f.Y.na.element;f.nS=e.K.Y.W.ad.sl(e.K.Y.W.ya.Ne,x.Ga.Yb(b),!1);f.v6=e.K.Y.W.ad.sl(e.K.Y.W.ya.Ne+" "+e.K.Y.W.ya.Xv,x.Ga.Yb(b),!1);f.o2=e.K.Y.W.ad.sl(e.K.Y.W.ya.Ne+" "+e.K.Y.W.ya.Xv+" "+e.K.Y.W.ya.NJ,x.Ga.Yb(b),!1);f.z5=e.K.Y.W.ad.sl(e.K.Y.W.ya.Ne+" "+e.K.Y.W.ya.qk+" "+e.K.Y.W.ya.Nv,x.Ga.Yb(b),!1);f.d0=e.K.Y.W.ad.sl(e.K.Y.W.ya.Ne+" "+e.K.Y.W.ya.qk+" "+e.K.Y.W.ya.mB,x.Ga.Yb(b),!1);f.uT=e.K.Y.W.ad.sl(e.K.Y.W.ya.Ne+" "+e.K.Y.W.ya.qk+" "+
e.K.Y.W.ya.Kq,x.Ga.Yb(b),!1);for(var a=1;20>=a;a++)f.A5[a]=e.K.Y.W.ad.sl(e.K.Y.W.ya.Ne+" "+e.K.Y.W.ya.qk+" "+e.K.Y.W.ya.Nv+" "+e.K.Y.W.ya.Sf+a,x.Ga.Yb(b),!1)}static XIa(){f.fba(this.pb.Bj,!0);f.JFa();e.Ca(!1);f.aLa()}static aLa(){f.lb=f.Y.Ui;0==f.pb.filename.length&&(f.pb.filename="pivot.xlsx");f.Qf.LMa().then(b=>{h.lo.save(b,f.pb);f.Qf=null;f.pb=null;l.Wa.R().Ha(new w.ia(e.ef.lg))})}static cNa(b){return e.v(b)||e.v(b.measure)||b.measure.type!=e.u.i.Ra.Ua?!1:e.u.i.ea.dF(b.measure.$)||f.Y.na.type===
e.K.Y.sheet.flat.Mv.TYPE&&!b.Mk?!0:!1}static dF(b){return e.v(b)||e.v(b.measure)||b.measure.type!=e.u.i.Ra.Mc?!1:e.u.i.ea.dF(b.measure.$)||f.Y.na.type===e.K.Y.sheet.flat.Mv.TYPE&&!b.Mk?!0:!1}static pp(b){return e.v(b)||e.v(b.measure)||b.measure.type!=e.u.i.Ra.ec?!1:e.u.i.ea.pp(b.measure.$)||f.Y.na.type===e.K.Y.sheet.flat.Mv.TYPE&&!b.Mk?!0:!1}static QAa(){const b=f.Ed+f.Y.vf;for(let p=f.Y.Fp;p<f.Fd+f.Y.Bg;p++){var a=f.Y.na.ag(f.lb,p,!0);let t=e.v(a)?"":a.I();t=t?t:"";let r;var c=f.cNa(a);const v=f.dF(a),
y=f.pp(a);e.v(a)||isNaN(a.value)||(c?r=f.lxa(a.value,a.hierarchy.getTimezoneOffset()):v?r=f.mxa(a.value,a.hierarchy.getTimezoneOffset()):y&&(r=f.nxa(a.value)));"number"===typeof t&&(a.value=t,t+="",a.numeric=!0);var d=null!=a&&(a.xh||a.Ng);f.pb.uda&&""==t&&null!=a&&null!=a.Vb&&(t=a.Vb.caption);if(""!=t.trim()||d){new e.K.Y.W.ad;d=null!=a&&a.xh?0<a.level&&f.A5[a.level]?f.A5[a.level].clone():f.z5.clone():null!=a&&a.Ng?f.d0.clone():null!=a&&a.vl?f.uT.clone():null!=a&&a.Vz&&a.Mk&&""!=a.I()?f.o2.clone():
null!=a&&a.Mk&&""!=a.I()?f.v6.clone():f.nS.clone();if(null!=a&&a.av&&null!=a.style){var g=0<a.style.XC.length?e.K.Y.W.ad.sl(a.style.ST()):e.K.Y.W.ad.FT(a.style.jU());g.merge(d);d=g}d.color=d.color||"rgb(0,0,0)";"rgb(33, 33, 33)"==d.backgroundColor&&(d.color="rgb(242, 242, 242)");d.backgroundColor=d.backgroundColor||"rgb(255,255,255)";d.fontSize=d.fontSize?f.eKa(d.fontSize):8;var k=new S.vd.fonts.$v(e.v(d.fontFamily)?"Tahoma":d.fontFamily,d.fontSize,e.P.So(d.color));k.bold="bold"==d.fontWeight||700<=
parseInt(d.fontWeight);k.fE=!1;var m=null,n=g=!1;if(a.numeric){if(null!=a.measure){const A=a.measure.Eh(a.measure.A,a.measure.$).clone();n=""!=A.lE?!0:n;g=e.u.i.ea.de(a.measure.$);A.xe=e.u.i.ea.xe(a.measure.$);m=A.lka();if(g||A.de)A.yd="%",m=A.lka();m=new S.vd.format.Rt(""==m?0:-1,m)}}else c||v?m=a.measure.type==e.u.i.Ra.Mc?new S.vd.format.Rt(164,"dd.mm.yyyy h:mm:ss"):new S.vd.format.Rt(14,""):y&&(0<=r?m=new S.vd.format.Rt(165,f.np):(r=Math.abs(r),m=new S.vd.format.Rt(166,"-"+f.np)));m&&f.Qf.styleSheet.aua(m);
k=new S.vd.JB(k,e.P.So(d.backgroundColor),m,a.av&&void 0==d.textAlign&&a.li?"right":d.textAlign);!l.C.F.Bk&&a&&a.xh&&0<a.level&&(k.textIndent=a.level);f.Qf.styleSheet.rw(k);m=null!=a.measure?a.measure.Eh(a.measure.A,a.measure.$):null;t=e.P.nH(t);a.numeric?null==m||a.label!=m.QD&&a.label!=m.cD?a.av&&f.EDa()&&f.pb.PO?(c=a.I(),f.Qf.lh[0].Oi(f.lb-f.Y.Ui+f.Me,p,!isNaN(a.value)&&a.label==c&&a.numeric?f.Wda(a.value,m,g):e.P.nH(c),k)):(r=f.Wda(a.value,m,g),f.Qf.lh[0].Oi(f.lb-f.Y.Ui+f.Me,p,isNaN(a.value)&&
n?a.I():r,k)):f.Qf.lh[0].Oi(f.lb-f.Y.Ui+f.Me,p,a.I(),k):f.pb.KA||!a.li||null==a.measure||a.measure.type!=e.u.i.Ra.Ua&&a.measure.type!=e.u.i.Ra.Mc?!f.pb.KA&&a.li&&null!=a.measure&&a.measure.$==e.u.i.ea.NONE?f.Qf.lh[0].Oi(f.lb-f.Y.Ui+f.Me,p,a.value,k):!f.pb.KA&&a.li&&null!=a.measure&&a.measure.type==e.u.i.Ra.ec?y?f.Qf.lh[0].Oi(f.lb-f.Y.Ui+f.Me,p,r,k):f.Qf.lh[0].Oi(f.lb-f.Y.Ui+f.Me,p,a.value,k):f.Qf.lh[0].Oi(f.lb-f.Y.Ui+f.Me,p,t,k):c||v?f.Qf.lh[0].Oi(f.lb-f.Y.Ui+f.Me,p,r,k):f.Qf.lh[0].Oi(f.lb-f.Y.Ui+
f.Me,p,a.value,k);null!=a&&(0==f.Qf.lh[0].zH(p)&&f.Qf.lh[0].Xia(p,f.kxa(f.Y.na.coords.Dh(p))),p!=f.Y.Fp||f.Y.na.coords.rEa(f.lb)||(a=f.RL(f.Y.na.coords.$d(f.lb)),f.Qf.lh[0].Rx(f.lb+f.Me,a)),t.length>d.width&&f.Qf.lh[0].Xia(p,f.RL(t.length+f.cellPadding)>f.RL(f.H7)?f.RL(f.H7):f.RL(t.length+f.cellPadding)))}}200<u.bg()-f.Wm&&(e.Ca(!0,l.B.j.wy,e.P.bind("{1}% ("+l.B.j.uY+")",f.lb.toString(),(f.lb/b*100).toFixed(0))),f.Wm=u.bg());return f.lb++>=b}static Wda(b,a,c){return null==a||!c&&"%"!=a.yd?b:b/100}static lxa(b,
a){b=-f.gea(b,a)+b;return Math.floor(b/864E5)}static mxa(b,a){return(-f.gea(b,a)+b)/864E5}static gea(b,a){return null!=a?Date.parse("1899-12-30")-36E5*a:Date.parse("1899-12-30")+36E5*((new Date(b)).getTimezoneOffset()/60)}static nxa(b){return 1E3*b/864E5}static eKa(b){return.75*b}static RL(b){return 0>=b?0:f.jya/f.Mca*b*(f.Mca/e.K.Y.sheet.Nh.Ev)}static kxa(b){return 0>=b?0:((b-5)/7*100+.5)/100}static zua(){var b=l.hb.rJ.Sm;if(0<b.length){var a=getComputedStyle(e.K.Sb.Jb.G.find("."+e.K.Y.W.ya.mB).element),
c=new S.vd.fonts.$v(a.fontFamily,parseInt(a.fontSize)-2,e.P.So(a.color));c.bold="bold"===a.fontWeight;c.fE="italic"===a.fontStyle;c=new S.vd.JB(c,e.P.So(a.backgroundColor));c.textAlign=a.textAlign;f.Qf.styleSheet.rw(c);f.Qf.lh[0].Oi(f.Me,0,l.B.j.$ma,c);f.Qf.lh[0].Oi(f.Me,1,"",c);a=getComputedStyle(e.K.Sb.Jb.G.find("."+e.K.Y.W.ya.Ne).element);var d=new S.vd.fonts.$v(a.fontFamily,parseInt(a.fontSize)-2,e.P.So(a.color));d.bold="bold"===a.fontWeight;d.fE="italic"===a.fontStyle;d=new S.vd.JB(d,e.P.So(a.backgroundColor));
d.textAlign=a.textAlign;f.Qf.styleSheet.rw(d);for(a=0;a<b.length;a++)f.Qf.lh[0].Oi(a+1+f.Me,0,e.P.nH(String(b[a].name)),c),f.Qf.lh[0].Oi(a+1+f.Me,1,e.P.nH(String(b[a].value)),c)}f.Me+=0==b.length?0:b.length+2}static fba(b,a=!1){if(null!=b&&0!=b.length){var c=0;a&&(f.Me+=1,c=f.Ed+f.Y.vf);b=b.split("\n");var d=getComputedStyle(e.K.Sb.Jb.G.find("."+e.K.Y.W.ya.mB).element),g=new S.vd.fonts.$v(d.fontFamily,parseInt(d.fontSize)-2,e.P.So(d.color));g.bold="bold"===d.fontWeight;g.fE="italic"===d.fontStyle;
g=new S.vd.JB(g,e.P.So(d.backgroundColor));g.textAlign=d.textAlign;f.Qf.styleSheet.rw(g);d=f.Qf.lh[0];for(var k=0;k<b.length;k++){const m=c+k+f.Me;d.Oi(m,0,e.P.nH(String(b[k])),g);f.fO.push(m)}f.Me+=b.length+(a?0:1)}}static xC(){var b=l.C.F.gq;if(0!=b.length){var a=getComputedStyle(e.K.Sb.Jb.G.find("."+e.K.Y.W.ya.TY).element),c=new S.vd.fonts.$v(a.fontFamily,parseInt(a.fontSize)-2,e.P.So(a.color));c.bold="bold"===a.fontWeight;c.fE="italic"===a.fontStyle;a=new S.vd.JB(c,e.P.So(a.backgroundColor));
a.textAlign="center";f.Qf.styleSheet.rw(a);c=f.Me;f.Qf.lh[0].Oi(c,0,b,a);f.fO.push(c);f.Me+=1}}static JFa(){const b=f.Qf.lh[0];for(var a=0;a<f.fO.length;a++)b.Xga(f.fO[a],0,Math.min(b.pwa,10))}static EDa(){return!e.v(e.K.Y.W.ne.Lw)}static $ta(){if(!(f.Y instanceof e.K.Yf.vF||0==e.u.Ma.R().qa.qb.length)){var b=l.Wa.R().ja.qa.vc(),a=e.u.Ma.R().qa.qb,c=!0,d=getComputedStyle(e.K.Sb.Jb.G.find("."+e.K.Y.W.ya.qk).element),g=new S.vd.fonts.$v(d.fontFamily,parseInt(d.fontSize)-2,e.P.So(d.color));g.bold="bold"===
d.fontWeight;g.fE="italic"===d.fontStyle;g=new S.vd.JB(g,e.P.So(d.backgroundColor));g.textAlign=d.textAlign;f.Qf.styleSheet.rw(g);d=getComputedStyle(e.K.Sb.Jb.G.find("."+e.K.Y.W.ya.Ne).element);var k=new S.vd.fonts.$v(d.fontFamily,parseInt(d.fontSize)-2,e.P.So("rgb(0,0,0)"));k.bold="bold"===d.fontWeight;k.fE="italic"===d.fontStyle;d=new S.vd.JB(k,e.P.So(d.backgroundColor));d.textAlign="left";f.Qf.styleSheet.rw(d);k=f.Qf.lh[0];var m=0;for(let t=0;t<b.length;t++){var n=b.fa(t);var p=n.Ci.type==e.u.i.dB.qB;
(a.Bb(n.A)||f.pb.NW)&&n.filter.Fh&&(p=p?f.Bwa(n):f.pb.NW?f.Eea(n):f.Iz(n),c&&(k.Oi(m+f.Me,0,"",g),k.Oi(m+f.Me,1,l.B.j.$r,g),m++),k.Oi(m+f.Me,0,n.caption,g),k.Oi(m+f.Me,1,p,d),m++,c=!1)}if(f.Y.na.type===e.K.Y.sheet.flat.Mv.TYPE)for(b=l.Wa.R().ja.qa.Wf,a=0;a<b.length;a++)(n=l.Wa.R().ja.qa.Ok(b[a].A))&&n.filter.Fh&&(p=f.pb.NW?f.Eea(n):f.Iz(n),c&&(k.Oi(m+f.Me,0,"",g),k.Oi(m+f.Me,1,"Filters",g),m++),k.Oi(m+f.Me,0,n.caption,g),k.Oi(m+f.Me,1,p,d),m++,c=!1);f.Me+=c?0:m+1}}static Eea(b){for(var a=[],c=0;c<
b.eb.length;c++)a.push(b.zD(b.eb[c]));return a.join(", ")}static Iz(b){var a=l.B.j.FJ;b.filter.Fh&&(a=1==b.eb.length?b.za(b.eb[0]).caption:l.B.j.LJ);return a}static Bwa(b){var a,c=[];null!=f.DA&&(f.DA.length=0);f.Ija(b.pd);for(var d=f.Gwa(b),g=!1,k=0;k<f.DA.length;k++){var m=b.za(f.DA[k]);var n=k==f.DA.length-1;if(!g&&-1<b.eb.indexOf(m.ordinal)){g=!0;var p=m}g&&(-1<b.eb.indexOf(m.ordinal)&&(a=m),-1<d.indexOf(m.ordinal)&&!n||(a=null!=a?a:p,m=f.eca(p),n=a.A!=p.A?":"+f.eca(a,!0):"",a=p=null,g=!1,c.push(m+
n)))}return c.join(", ")}static Ija(b){null==f.DA&&(f.DA=[]);b.dc||f.DA.push(b.ordinal);for(var a=b.hierarchy.jk(b,!1,e.u.i.Ba.hc),c=a.length,d,g=0;g<c;g++)d=b.hierarchy.za(a[g]),0<d.children.length?f.Ija(d):f.DA.push(d.ordinal)}static eca(b,a=!1){var c=b,d=[];for(d.push(b.caption);c&&c.A!=b.A&&!c.level.ev&&0<c.children.length;)d.push(c.caption),c=c.hierarchy.jk(c,!1,e.u.i.Ba.hc),c=b.hierarchy.za(a?c[c.length-1]:c[0]);for(c=b.parent;c&&!c.dc;)d.unshift(c.caption),c=c.parent;return d.join("-")}static Gwa(b){for(var a=
[],c=b.eb,d,g=0;g<c.length;g++)if(d=b.za(c[g]),a.push(d.ordinal),a=a.concat(d.Ow),!(d.parent&&!d.parent.dc&&-1<a.indexOf(d.parent.ordinal)))for(;d.parent&&!d.parent.dc;)d=d.parent,a.push(d.ordinal);return a}}f.lb=0;f.Me=0;f.cellPadding=3;f.H7=100;f.np="[h]:mm:ss";f.A5=[];f.jya=14.3;f.Mca=38;f.fO=[];h.f8=f})(l.Dc||(l.Dc={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){}static Gk(c,d=null,g=null){f.wZ?this.M0.push({type:c,options:d,gf:g}):(c=c.toLowerCase(),c=a.MA(c)?c:a.ci,l.C.F.me==e.K.Jd.nj&&c==a.JSON?(e.Va(l.B.j.Apa,l.B.j.xa),this.Rja()):(l.Wa.R().N(e.ef.lg,f.Ada),f.wZ=!0,f.Op=g,e.v(d)&&(d=new h.e8),d.type=c,c=new b(c,d,g),l.Wa.R().Ha(c)))}static Rja(){e.Ca(!1);l.Wa.R().rb(e.ef.lg,f.Ada);f.wZ=!1}static ZGa(){f.Rja();if(0<f.M0.length){var c=f.M0.shift();this.Gk(c.type,c.options,c.gf)}}static save(c,
d){switch(d.bD.toLowerCase()){case l.hb.up.AP:f.gO(c,d);break;case l.hb.up.IY:f.xW(c,d);break;case l.hb.up.Y6:break;case l.hb.up.wB:f.YKa(c,d);break;default:f.gO(c,d)}}static xW(c,d){switch(d.type){case a.Ov:case a.wF:case a.vB:case a.nB:case a.JSON:case a.ci:f.ZKa(c,d);break;default:c=l.Tb.validate(d.type),e.Va("Unknown type of export: '"+c+"'",l.B.j.xa)}}static gO(c,d){switch(d.type){case a.Ov:var g="text/html;charset=utf-8";d.filename=f.sL(d.filename,".html");break;case a.wF:g="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
d.filename=f.sL(d.filename,".xlsx");break;case a.vB:g="application/pdf";d.filename=f.sL(d.filename,".pdf");break;case a.nB:g="image/png";d.filename=f.sL(d.filename,".png");break;case a.ci:g="text/csv;charset=utf-8";d.filename=f.sL(d.filename,".csv");break;default:g="text/plain;charset=utf-8"}var k=[c];d.type==a.ci&&k.unshift(e.P.VAa());try{z.Hia(new Blob(k,{type:g}),d.filename),f.JO({data:c,filename:d.filename,type:d.type})}catch(m){e.Va(l.B.j.hQ,l.B.j.xa,e.ob.xa),f.JO(null,{message:l.B.j.hQ})}}static sL(c,
d){c.indexOf(d)!=c.length-d.length&&(c+=d);return c}static SJa(c){var d={};null!=c&&null!=c.target&&null!=c.target.response&&""!=c.target.response&&null!=c.target.xhr&&(d.response=c.target.response,d.status=c.target.xhr.status);d.message=l.B.j.hQ;return d}static ZKa(c,d){var g=new u.Pt(500);g.N(u.xf.Ol,function(){e.Ca(!0,l.B.j.v9,(g.Kw/10).toString()+" sec")});var k=new z.tk;k.N(w.ia.xa,t=>{t=f.SJa(t);var r=t.hasOwnProperty("response")?l.Tb.validate(t.response):"";r=700<r.length?r.substr(0,700):r;
e.Va(e.P.bind(t.message,r),l.B.j.xa,e.ob.xa);g.stop();e.Ca(!1);f.JO(null,t)});k.N(w.ia.Qc,function(){g.stop();e.Ca(!1);f.JO({data:c,filename:d.filename,type:d.type,response:k.response})});var m=new Blob([c],{type:"application/octet-binary"}),n=new FormData;n.append("filedata",m,d.filename);for(var p in d.m1)n.append(p,d.m1[p]);k.Ir=z.Qt.Rv;k.data=n;k.contentType=!1;k.$h(d.tc);k.load(d.url);g.start()}static YKa(c,d){f.JO({data:c,filename:d.filename,type:d.type})}static JO(c=null,d=null){null!=f.Op&&
f.Op.call(null,c,d)}}f.wZ=!1;f.M0=[];f.Ada=()=>f.ZGa();h.lo=f;class b extends w.ia{constructor(c,d,g){super(e.ef.TX);this.Lu=c;this.pb=d;this.Op=g}}h.nOa=b;class a{static MA(c){return c===a.nB||c===a.wF||c===a.Ov||c===a.ci||c===a.JSON||c===a.vB}}a.nB="image";a.wF="excel";a.Ov="html";a.ci="csv";a.JSON="json";a.vB="pdf";h.qj=a})(l.Dc||(l.Dc={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(b="file"){this.Zk=!0;this.bD=e.model.hb.up.AP;this.filename="";this.url="()";this.tc=null;this.type=h.qj.Ov;this.uE="portrait";this.f1="";this.NW=this.uda=!1;this.KA=!0;this.m1={};this.$f=",";this.PO=!0;this.uba=!1;this.bD=b}static xb(b){var a=new f;if(e.v(b))return a;e.v(b.showHeaders)||(a.Zk="true"===b.showHeaders||!0===b.showHeaders);e.v(b.filename)||(a.filename=b.filename);e.v(b.url)||(a.url=b.url);e.v(b.excelSheetName)||(a.f1=b.excelSheetName);
e.v(b.excelExportAll)||(a.uda=b.excelExportAll);e.v(b.pageOrientation)||"portrait"!==b.pageOrientation.toLowerCase()&&"landscape"!==b.pageOrientation.toLowerCase()||(a.uE=b.pageOrientation.toLowerCase());!e.v(b.destinationType)&&e.model.hb.up.MA(b.destinationType.toString().toLowerCase())&&(a.bD=b.destinationType.toString().toLowerCase());e.ka(b.pageFormat)||(a.Er=b.pageFormat);e.ka(b.fieldSeparator)||(a.$f=b.fieldSeparator);e.v(b.showFilters)||(a.NW=b.showFilters);e.v(b.useOlapFormattingInExcel)||
(a.KA=b.useOlapFormattingInExcel);e.v(b.extendedParameters)||(a.m1=b.extendedParameters);e.v(b.header)||(a.cj=b.header);e.v(b.footer)||(a.Bj=b.footer);e.v(b.fontUrl)||(a.yT=b.fontUrl);e.v(b.useCustomizeCellForData)||(a.PO=b.useCustomizeCellForData);e.v(b.requestHeader)||(a.tc=b.requestHeader);e.v(b.requestHeaders)||(a.tc=b.requestHeaders);e.v(b.alwaysEnclose)||(a.uba=b.alwaysEnclose);return a}}h.e8=f})(l.Dc||(l.Dc={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){throw Error("Singleton");}static Ze(b,a,c,d,g=null){if(!e.v(b)){f.Y=b;f.Fd=c;f.Ed=d;f.pb=a;f.Op=g;try{f.pza()}catch(k){console.error("Export CSV error:",k),e.Va(l.B.j.oo,l.B.j.xa,e.ob.xa),e.Ca(!1),l.Wa.R().Ha(new w.ia(e.ef.lg)),f.clear()}}}static cea(b,a){if(null!=b&&0!=b.length){0<f.nr.length&&f.nr.push([].join(f.pb.$f));b=b.split("\n");for(let d=0;d<b.length;d++){var c=[];c.push('"'+b[d]+'"');f.nr.push(c.join(f.pb.$f))}0<f.nr.length&&
!a&&f.nr.push([].join(f.pb.$f))}}static yM(){if(!(f.Y instanceof e.K.Yf.vF||0==e.u.Ma.R().qa.qb.length)){for(var b,a=l.Wa.R().ja.qa.vc(),c=e.u.Ma.R().qa.qb,d,g,k=!0,m=0;m<a.length;m++)g=a.fa(m),b=[],c.Bb(g.A)&&g.filter.Fh&&(d=f.Iz(g),k&&(b.push('""'),b.push('"'+l.B.j.$r+'"'),f.nr.push(b.join(f.pb.$f)),b=[]),b.push('"'+g.caption+'"'),b.push('"'+d+'"'),f.nr.push(b.join(f.pb.$f)),k=!1);0<f.nr.length&&f.nr.push([].join(f.pb.$f))}}static Iz(b){var a=l.B.j.FJ;b.filter.Fh&&(a=1==b.eb.length?b.za(b.eb[0]).caption:
l.B.j.LJ);return a}static pza(){e.Ca(!0,l.B.j.wy);f.lb=0;f.Wm=u.bg();f.cea(this.pb.cj);l.C.F.MI&&f.yM();u.Ql.Co({lp:()=>f.JAa(),gf:()=>f.fGa()})}static JAa(){if(f.Y.na.coords.Wo(f.lb,NaN))return f.lb>=f.Ed+f.Y.vf;var b=[];for(var a=0;a<f.Fd+f.Y.Bg;a++)if(!f.Y.na.coords.Wo(NaN,a))for(b=[],a=0;a<f.Fd+f.Y.Bg;a++){if(f.Y.na.coords.Wo(NaN,a))continue;const c=f.Y.na.ag(f.lb,a,!0);let d=f.AM(c);"number"===typeof d&&(c.value=d,d+="",c.numeric=!0);d=e.P.nH(d);0<=d.indexOf(f.pb.$f)||this.pb.uba||-1<d.search(/\n|\r/gi)?
(d=d.replace(/["]/gi,'""'),b.push(`"${d}"`)):b.push(d)}f.nr.push(b.join(f.pb.$f));200<u.bg()-f.Wm&&(b=f.lb/(f.Ed+f.Y.vf)*100,100<b&&(b=100),e.Ca(!0,l.B.j.wy,e.P.bind("{1}% ("+l.B.j.uY+")",f.lb.toString(),b.toFixed(0))),f.Wm=u.bg());return++f.lb>=f.Ed+f.Y.vf}static AM(b){return e.v(b)?"":b.xh||b.Ng?b.I():b.I(!1,f.pb.PO)}static UKa(){var b=f.nr.join("\r\n");0==f.pb.filename.length&&(f.pb.filename="pivot.csv");h.lo.save(b,f.pb);l.Wa.R().Ha(new w.ia(e.ef.lg));f.clear()}static fGa(){e.Ca(!1);f.cea(this.pb.Bj,
!0);f.UKa()}static clear(){f.Y=null;f.lb=0;f.Wm=0;f.nr=[];f.pb=null;f.Op=null;f.Fd=0;f.Ed=0}}f.lb=0;f.Wm=0;f.nr=[];h.a8=f})(l.Dc||(l.Dc={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){throw Error("Singleton");}static Ze(b,a,c,d,g=null){if(!e.v(b)){f.Y=b;f.Fd=c;f.Ed=d;f.pb=a;f.Op=g;try{f.qza()}catch(k){console.error("Export JSON error:",k),e.Va(l.B.j.oo,l.B.j.xa,e.ob.xa),e.Ca(!1),l.Wa.R().Ha(new w.ia(e.ef.lg)),f.clear()}}}static qza(){e.Ca(!0,l.B.j.wy);f.kc=0;f.Wm=f.startTime=u.bg();u.Ql.Co({lp:()=>f.NAa(),gf:()=>()=>f.vHa()})}static NAa(){for(var b=Math.min(f.kc+f.Ur,f.Fd+f.Y.Bg),a;f.kc<b;f.kc++){a=[];for(var c=0;c<f.Ed+
f.Y.vf;c++){var d="",g=f.Y.na.ag(c,f.kc,!0);g&&(d=g.label);a.push(d)}f.r3.push(JSON.stringify(a))}if(50<u.bg()-f.Wm){b=f.kc/(f.Fd+f.Y.Bg)*100;if(100<b)return!0;f.ULa(b);f.Wm=u.bg()}return f.kc>=f.Fd+f.Y.Bg}static ULa(b){e.Ca(!0,l.B.j.wy,e.P.bind("{0}% ({1} rows)",b.toFixed(0),f.kc.toString()))}static XKa(){var b="["+f.r3.join(",\n")+"]";0==f.pb.filename.length&&(f.pb.filename="pivot.json");h.lo.save(b,f.pb);l.Wa.R().Ha(new w.ia(e.ef.lg));f.clear()}static vHa(){e.Ca(!1);f.XKa()}static clear(){f.Y=
null;f.kc=0;f.startTime=0;f.Wm=0;f.Fd=0;f.Ed=0;f.r3=[];f.cells=[];f.pb=null;f.Op=null}}f.kc=0;f.startTime=0;f.Wm=0;f.cells=[];f.r3=[];f.Ur=10;h.d8=f})(l.Dc||(l.Dc={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{}f.A8="formatchange";h.H8=f;class b{static Eh(a,c){a=b.HBa(a,c);return b.eaa(a)}static HBa(a,c){let d=void 0;b.tr.Bb(a)&&(d=b.tr.getItem(a).has(c)?b.tr.getItem(a).get(c):b.tr.getItem(a).values().next().value);return d}static GI(a,c,d){b.tr.Bb(c)||b.tr.Ta(c,new Map);b.tr.getItem(c).set(d,a)}static OE(a){const c=h.W.se.xb(a);b.uS.Ta(c.name,c);if(null!=b.cH&&""!=c.name)c.Yga(b.cH);else if(""==c.name)for(b.cH=a,a=0;a<b.Fe.length;a++)b.Fe.fa(a).Yga(b.cH);
b.Fe.Ta(c.name,c)}static eaa(a){return b.Fe.Bb(a)?b.Fe.getItem(a):""!=a&&b.Fe.Bb("")?b.Fe.getItem(""):b.hea()}static SAa(){return b.uS.slice()}static clear(){b.Fe=new e.ub;b.uS=new e.ub;b.cH=null;b.tr=new e.ub}static VT(){return b.eaa("")}static hea(){return new h.W.se}static Yza(a,c){return b.tr.Bb(a)&&b.tr.getItem(a).has(c)}static JBa(){return b.tr}static dispose(){b.Fe=null;b.uS=null;b.cH=null;b.tr=null}}b.Fe=new e.ub;b.uS=new e.ub;b.tr=new e.ub;b.cH=null;h.tj=b})(l.oc||(l.oc={}))})(e.model||(e.model=
{}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(a=""){this.name="";this.Kb={};this.Rd={thousandsSeparator:" ",decimalSeparator:".",decimalPlaces:-1,maxDecimalPlaces:-1,maxSymbols:20,currencySymbol:"",positiveCurrencyFormat:b.oA.$1,negativeCurrencyFormat:b.Yn["-$1"],negativeNumberFormat:b.kE["-1"],nullValue:"",infinityValue:"Infinity",divideByZeroValue:"Infinity",textAlign:b.textAlign.RIGHT,isPercent:!1,isCount:!1,beautifyFloatingPoint:!0};this.name=a}get Ud(){return this.Kb}get Nf(){return void 0!=this.Kb.thousandsSeparator?
this.Kb.thousandsSeparator:this.Rd.thousandsSeparator}set Nf(a){this.Kb.thousandsSeparator=a}get aD(){return void 0!=this.Kb.decimalSeparator?this.Kb.decimalSeparator:this.Rd.decimalSeparator}set aD(a){this.Kb.decimalSeparator=a}get am(){return void 0!=this.Kb.decimalPlaces?this.Kb.decimalPlaces:this.Rd.decimalPlaces}set am(a){this.Kb.decimalPlaces=a}get mv(){return void 0!=this.Kb.maxDecimalPlaces?this.Kb.maxDecimalPlaces:this.Rd.maxDecimalPlaces}set mv(a){this.Kb.maxDecimalPlaces=a}get Cx(){return void 0!=
this.Kb.maxSymbols?this.Kb.maxSymbols:this.Rd.maxSymbols}set Cx(a){this.Kb.maxSymbols=a}get yd(){return void 0!=this.Kb.currencySymbol?this.Kb.currencySymbol:this.Rd.currencySymbol}set yd(a){this.Kb.currencySymbol=a}get it(){return void 0!=this.Kb.positiveCurrencyFormat?this.Kb.positiveCurrencyFormat:this.Rd.positiveCurrencyFormat}set it(a){this.Kb.positiveCurrencyFormat=a}get $s(){return void 0!=this.Kb.negativeCurrencyFormat?this.Kb.negativeCurrencyFormat:this.Rd.negativeCurrencyFormat}set $s(a){this.Kb.negativeCurrencyFormat=
a}get hA(){return void 0!=this.Kb.negativeNumberFormat?this.Kb.negativeNumberFormat:this.Rd.negativeNumberFormat}set hA(a){this.Kb.negativeNumberFormat=a}get lE(){return void 0!=this.Kb.nullValue?this.Kb.nullValue:this.Rd.nullValue}set lE(a){this.Kb.nullValue=a}get QD(){return void 0!=this.Kb.infinityValue?this.Kb.infinityValue:this.Rd.infinityValue}set QD(a){this.Kb.infinityValue=a}get cD(){return void 0!=this.Kb.divideByZeroValue?this.Kb.divideByZeroValue:this.Rd.divideByZeroValue}set cD(a){this.Kb.divideByZeroValue=
a}get textAlign(){return void 0!=this.Kb.textAlign?this.Kb.textAlign:this.Rd.textAlign}set textAlign(a){this.Kb.textAlign=a}get de(){return void 0!=this.Kb.isPercent?this.Kb.isPercent:this.Rd.isPercent}set de(a){this.Kb.isPercent=a}get xe(){return void 0!=this.Kb.isCount?this.Kb.isCount:this.Rd.isCount}set xe(a){this.Kb.isCount=a}get ou(){return void 0!=this.Kb.beautifyFloatingPoint?this.Kb.beautifyFloatingPoint:this.Rd.beautifyFloatingPoint}set ou(a){this.Kb.beautifyFloatingPoint=a}set D0(a){}get D0(){return 1<
this.yd.length&&"&"==this.yd.charAt(0)&&";"==this.yd.charAt(this.yd.length-1)?1:this.yd.length}lka(){var a;if("%"==this.yd){var c=-1==this.am||this.xe?0:this.am;var d=0<c?"0.":"0";for(a=0;a<c;a++)d+="0";return d+=this.yd}d=""!=this.Nf?"#,##0":"###0";if(!this.xe)if(0<this.am)for(d+=".",a=0;a<this.am;a++)d+="0";else 0>this.am&&(d+=".0#########");""==this.yd||this.xe?""==this.yd&&(d=d+";"+u.bc.w1(d,this.hA)):(a=this.yd,d=1<a.length?this.it==b.oA.$1?"[$"+a+"]\\ "+d+";"+u.bc.wM(d,"[$"+a+"]",this.$s):d+
"\\ [$"+a+"];"+u.bc.wM(d,"[$"+a+"]",this.$s):this.it==b.oA.$1?"\\"+this.yd+d+";"+u.bc.wM(d,this.yd,this.$s):d+"\\"+this.yd+";"+u.bc.wM(d,this.yd,this.$s));return d}Sa(a=!1){var c={};c.name=this.name;if(a)c.thousandsSeparator=this.Nf,c.decimalSeparator=this.aD,c.decimalPlaces=this.am,c.maxDecimalPlaces=this.mv,c.maxSymbols=this.Cx,c.currencySymbol=this.yd,c.positiveCurrencyFormat=this.it,c.negativeCurrencyFormat=this.$s,c.negativeNumberFormat=this.hA,c.nullValue=this.lE,c.infinityValue=this.QD,c.divideByZeroValue=
this.cD,c.textAlign=""!==this.textAlign?this.textAlign:b.textAlign.RIGHT,c.isPercent=this.de,c.isCount=this.xe,c.beautifyFloatingPoint=this.ou;else for(var d in this.Kb)c[d]="textAlign"===d?""===this.textAlign?b.textAlign.RIGHT:this.textAlign:this.Kb[d];return c}static xb(a){var c=new b;null!=a.name&&(c.name=a.name);null!=a.thousandsSeparator&&l.Tb.valid(a.thousandsSeparator)&&(c.Nf=l.Tb.validate(a.thousandsSeparator,!0));null!=a.decimalSeparator&&l.Tb.valid(a.decimalSeparator)&&(c.aD=l.Tb.validate(a.decimalSeparator,
!0));null!=a.decimalPlaces&&-1<=parseInt(a.decimalPlaces)&&(c.am=isNaN(parseInt(a.decimalPlaces))?-1:parseInt(a.decimalPlaces));null!=a.maxDecimalPlaces&&-1<=parseInt(a.maxDecimalPlaces)&&(c.mv=isNaN(parseInt(a.maxDecimalPlaces))?-1:parseInt(a.maxDecimalPlaces));null!=a.maxSymbols&&1<=parseInt(a.maxSymbols)&&(c.Cx=a.maxSymbols);null!=a.currencySymbol&&l.Tb.valid(a.currencySymbol)&&(c.yd=l.Tb.validate(a.currencySymbol,!0));if(null!=a.currencySymbolAlign&&l.Tb.valid(a.currencySymbolAlign)){var d=l.Tb.validate(a.currencySymbolAlign);
d==b.Bca.LEFT?c.it=b.oA.$1:d==b.Bca.RIGHT&&(c.it=b.oA["1$"])}null!=a.positiveCurrencyFormat&&l.Tb.valid(a.positiveCurrencyFormat)&&(c.it=l.Tb.validate(a.positiveCurrencyFormat,!0));null!=a.negativeCurrencyFormat&&l.Tb.valid(a.negativeCurrencyFormat)&&(c.$s=l.Tb.validate(a.negativeCurrencyFormat,!0));null!=a.negativeNumberFormat&&l.Tb.valid(a.negativeNumberFormat)&&(c.hA=l.Tb.validate(a.negativeNumberFormat));null!=a.nullValue&&l.Tb.valid(a.nullValue)&&(c.lE=l.Tb.validate(a.nullValue,!0));null!=a.infinityValue&&
l.Tb.valid(a.infinityValue)&&(c.QD=l.Tb.validate(a.infinityValue,!0));null!=a.divideByZeroValue&&l.Tb.valid(a.divideByZeroValue)&&(c.cD=l.Tb.validate(a.divideByZeroValue,!0));null!=a.textAlign&&l.Tb.valid(a.textAlign)&&(c.textAlign=l.Tb.validate(a.textAlign));null!=a.isPercent&&(c.de=1==a.isPercent);null!=a.isCount&&(c.xe=1==a.isCount);null!=a.beautifyFloatingPoint&&(c.ou=1==a.beautifyFloatingPoint);return c}clone(){var a=new b;a.name=this.name;this.Kb.hasOwnProperty("thousandsSeparator")&&(a.Nf=
this.Nf);this.Kb.hasOwnProperty("decimalSeparator")&&(a.aD=this.aD);this.Kb.hasOwnProperty("decimalPlaces")&&(a.am=this.am);this.Kb.hasOwnProperty("maxDecimalPlaces")&&(a.mv=this.mv);this.Kb.hasOwnProperty("maxSymbols")&&(a.Cx=this.Cx);this.Kb.hasOwnProperty("currencySymbol")&&(a.yd=this.yd);this.Kb.hasOwnProperty("positiveCurrencyFormat")&&(a.it=this.it);this.Kb.hasOwnProperty("negativeCurrencyFormat")&&(a.$s=this.$s);this.Kb.hasOwnProperty("negativeNumberFormat")&&(a.hA=this.hA);this.Kb.hasOwnProperty("nullValue")&&
(a.lE=this.lE);this.Kb.hasOwnProperty("infinityValue")&&(a.QD=this.QD);this.Kb.hasOwnProperty("divideByZeroValue")&&(a.cD=this.cD);this.Kb.hasOwnProperty("textAlign")&&(a.textAlign=this.textAlign);this.Kb.hasOwnProperty("isPercent")&&(a.de=this.de);this.Kb.hasOwnProperty("isCount")&&(a.xe=this.xe);this.Kb.hasOwnProperty("beautifyFloatingPoint")&&(a.ou=this.ou);var c={},d;for(d in this.Rd)c[d]=this.Rd[d];a.Rd=c;return a}Yga(a){for(var c in a)this.Rd[c]=a[c]}}b.Bca={LEFT:"left",RIGHT:"right"};b.Yn=
{"-$1":"-$1","-1$":"-1$","$-1":"$-1","$1-":"$1-","1-$":"1-$","1$-":"1$-","1$":"1$",$1:"$1","($1)":"($1)","(1$)":"(1$)","$(1)":"$(1)","(1)$":"(1)$"};b.oA={$1:"$1","1$":"1$"};b.kE={"-1":"-1","- 1":"- 1","1-":"1-","1 -":"1 -",1:"1","(1)":"(1)"};b.textAlign={LEFT:"left",CENTER:"center",RIGHT:"right"};f.se=b})(h.W||(h.W={}))})(l.oc||(l.oc={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{static valid(b){return b==f.kg||b==f.Cc||b==f.Pd||b==f.API||b==f.JSON||b==f.ci||b==f.Nq||b==f.EMPTY}static Ec(b){return this.valid(b)&&(b==f.Pd||b==f.Cc||b==f.kg||b==f.API)}static I(b){return b==f.ci?"CSV":b==f.Nq?"OCSV":b==f.JSON?"JSON":b==f.Cc?"Microsoft Analysis Services":b==f.Pd?"Mondrian":b==f.kg?"Elasticsearch":b==f.API?"Flexmonster Custom API":""}}f.Cc="microsoft analysis services";f.Pd="mondrian";f.ci="csv";f.Nq="ocsv";f.JSON="json";f.kg="elasticsearch";
f.API="api";f.EMPTY="";h.ra=f})(l.i||(l.i={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{static validate(m){if(e.ka(m))return f.NONE;m=m.toLowerCase();return 0<=f.types.indexOf(m)?m:f.NONE}static yfa(m,n){switch(m){case h.ib.$c:return c.ih(n);case h.ib.jb:return b.ih(n);case h.ib.Ua:return d.ih(n)}return!1}}f.NONE="none";f.fl="label";f.Ua="date";f.jb="number";f.wo="value";f.ec="time";f.types=[f.NONE,f.fl,f.Ua,f.jb,f.wo,f.ec];h.tb=f;class b{static ih(m){return e.v(m)?!1:0<=b.Gq.indexOf(m.toLowerCase())}}b.EQUAL="equal";b.Tf="not_equal";b.GREATER=
"greater";b.dl="greater_equal";b.LESS="less";b.gl="less_equal";b.mh="between";b.Tg="not_between";b.ui=[b.EQUAL,b.Tf,b.GREATER,b.dl,b.LESS,b.gl];b.Uf=[b.mh,b.Tg];b.Gq=[b.EQUAL,b.Tf,b.GREATER,b.dl,b.LESS,b.gl,b.mh,b.Tg];h.Ug=b;class a extends b{}h.il=a;class c{static ih(m){return e.v(m)?!1:0<=c.Gq.indexOf(m.toLowerCase())}}c.EQUAL="equal";c.Tf="not_equal";c.kF="begin";c.rB="not_begin";c.eB="end";c.tB="not_end";c.ho="contain";c.sB="not_contain";c.GREATER="greater";c.dl="greater_equal";c.LESS="less";
c.gl="less_equal";c.mh="between";c.Tg="not_between";c.ui=[c.EQUAL,c.Tf,c.kF,c.rB,c.eB,c.tB,c.ho,c.sB,c.GREATER,c.dl,c.LESS,c.gl];c.Uf=[c.mh,c.Tg];c.Gq=[c.EQUAL,c.Tf,c.kF,c.rB,c.eB,c.tB,c.ho,c.sB,c.GREATER,c.dl,c.LESS,c.gl,c.mh,c.Tg];h.Eb=c;class d{static ih(m){return e.v(m)?!1:0<=d.Gq.indexOf(m.toLowerCase())}}d.EQUAL="equal";d.Tf="not_equal";d.iF="before";d.jF="before_equal";d.fF="after";d.gF="after_equal";d.mh="between";d.Tg="not_between";d.UP="last";d.hP="current";d.oQ="next";d.ui=[d.EQUAL,d.Tf,
d.iF,d.jF,d.fF,d.gF];d.Uf=[d.mh,d.Tg];d.zy=[d.UP,d.hP,d.oQ];d.Gq=[d.EQUAL,d.Tf,d.iF,d.jF,d.fF,d.gF,d.mh,d.Tg,d.UP,d.hP,d.oQ];h.cc=d;class g{static ih(m){return e.v(m)?!1:0<=g.types.indexOf(m.toLowerCase())}}g.pn="day";g.sK="week";g.nh="month";g.Nt="quarter";g.Sl="year";g.types=[g.pn,g.sK,g.nh,g.Nt,g.Sl];h.cB=g;class k extends b{static ih(m){return e.v(m)?!1:0<=k.Gq.indexOf(m.toLowerCase())}}k.Rj="top";k.pi="bottom";k.ui=[k.Rj,k.pi,k.EQUAL,k.Tf,k.GREATER,k.dl,k.LESS,k.gl];k.Uf=[k.mh,k.Tg];k.Gq=[k.Rj,
k.pi,k.EQUAL,k.Tf,k.GREATER,k.dl,k.LESS,k.gl,k.mh,k.Tg];h.Wb=k})(l.i||(l.i={}))})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){(function(h){class f{static ih(b){return b==f.ed||b==f.hc||b==f.Nc}static cU(b="",a=!1,c=!1){return c?b==l.i.Ba.hc?a?l.i.Ba.ed:l.i.Ba.Nc:b==l.i.Ba.Nc?a?l.i.Ba.hc:l.i.Ba.ed:a?l.i.Ba.Nc:l.i.Ba.hc:b==l.i.Ba.Nc?l.i.Ba.hc:l.i.Ba.Nc}}f.ed="unsorted";f.hc="asc";f.Nc="desc";f.bqa="numericRange";h.Ba=f})(l.i||(l.i={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){}}f.Ia="rows";f.Oa="columns";f.Lt="pages";h.ha=f})(l.i||(l.i={}))})(e.u||(e.u={}))})(q||(q={}));var pa=q||(q={}),qa=pa.u||(pa.u={}),ra=qa.i||(qa.i={});class ta{}ta.qB=1;ta.eQ=2;ra.dB=ta;
(function(e){(function(l){(function(h){class f{static nD(b){var a=f.Hv;switch(b){case h.input.Gf.N8.eQ:a=f.yp;break;case h.input.Gf.N8.qB:a=f.Ua}return a}static A1(b){return 0<=h.Ra.jM.indexOf(b)?f.yp:"date"==b?f.Ua:f.Hv}static DT(b){var a=f.Hv;switch(b){case h.input.sa.jb:case h.input.sa.ec:a=f.yp;break;case h.input.sa.oj:case h.input.sa.Mq:case h.input.sa.wp:case h.input.sa.Mc:case h.input.sa.Ua:a=f.Ua}return a}static FA(b){var a=h.input.sa.$c;switch(b){case f.yp:a=h.input.sa.jb;break;case f.Ua:a=
h.input.sa.Ua}return a}}f.Hv=0;f.Ua=1;f.yp=2;f.jM=["keyword","date","boolean"];h.Ic=f})(l.i||(l.i={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{static nD(b){switch(b){case h.input.Gf.oB.$c:case h.input.Gf.oB.$ra:return f.$c;case h.input.Gf.oB.rp:return f.rp;case h.input.Gf.oB.Ua:return f.Ua;case h.input.Gf.oB.Mc:return f.Mc;case h.input.Gf.oB.Bra:return f.ec;case h.input.Gf.oB.wc:return f.wc}return f.jb}static kAa(b){b=b.toLowerCase();switch(b){case "string":return f.Ua;case "integer":case "number":case "double":return f.jb;default:return f.jb}}static hAa(b){switch(b){case 13:return f.ec;case 15:return f.Mc;
case 3:return f.rp;case 12:return f.jb}return f.wc}static jAa(b){var a=f.wc;switch(b){case "number":a=f.jb;break;case "string":a=f.$c;break;case "boolean":a=f.rp;break;case "date":a=f.Ua;break;case "timestamp":a=f.ec;break;case "count":a=f.wc}return a}static A1(b){return 0<=h.Ic.jM.indexOf(b)?f.wc:f.jb}static FA(b){switch(b){case f.$c:return h.input.sa.$c;case f.rp:return h.input.sa.rp;case f.Ua:return h.input.sa.Ua;case f.Mc:return h.input.sa.Mc;case f.ec:return h.input.sa.ec;case f.wc:return h.input.sa.$c}return h.input.sa.jb}}
f.jb=1;f.$c=2;f.rp=3;f.Ua=4;f.ec=5;f.Mc=6;f.wc=7;f.jM="long integer short byte double float half_float scaled_float".split(" ");h.Ra=f})(l.i||(l.i={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{static qN(b){return b===f.jb||b===f.Sl||b===f.pn||b===f.MP||b===f.lQ||b===f.HY||b===f.x9||b===f.Mc||b===f.ec||b===f.Ua||b===f.oj}static GDa(b){return b===f.Ua||b===f.Mc||b===f.oj}static iAa(b){switch(b){case 2:case 4:case 5:case 6:case 14:case 16:case 17:case 18:case 19:case 20:case 21:return f.jb}return f.$c}static nD(b,a=!1,c=0){if(a)return f.iAa(c);switch(b){case h.input.Gf.el.Roa:return f.Qka;case h.input.Gf.el.Soa:case 4178:case 4561:case 4562:return f.jb;
case h.input.Gf.el.Toa:case h.input.Gf.el.epa:return f.ec;case h.input.Gf.el.Xoa:case h.input.Gf.el.Woa:case h.input.Gf.el.Yoa:return f.pn;case h.input.Gf.el.Zoa:case 4385:case 4328:case 4329:return f.gY;case h.input.Gf.el.$oa:return f.MP;case h.input.Gf.el.apa:return f.lQ;case h.input.Gf.el.bpa:return f.nh;case h.input.Gf.el.cpa:case 4336:case 4337:case 4578:return f.Nt;case h.input.Gf.el.dpa:return f.HY;case h.input.Gf.el.fpa:case 4345:case h.input.Gf.el.gpa:case 4344:return f.sK;case h.input.Gf.el.hpa:case 4759:case 4345:case 4346:return f.Sl;
case h.input.Gf.el.Voa:case h.input.Gf.el.Uoa:case 4657:case 4659:case 4292:case 4294:return f.Ua}return f.$c}static FA(b){switch(b){case f.jb:case f.MP:case f.lQ:case f.HY:case f.x9:return h.input.sa.jb;case f.Ua:case f.Sl:case f.Sl:case f.pn:return h.input.sa.Ua;case f.rp:return h.input.sa.rp;case f.nh:return h.input.sa.nh;case f.un:return h.input.sa.un;case f.ec:return h.input.sa.ec;case f.Mc:return h.input.sa.Mc;case f.oj:return h.input.sa.oj;default:return h.input.sa.$c}}static DT(b){switch(b){case h.input.sa.$c:return f.$c;
case h.input.sa.jb:return f.jb;case h.input.sa.rp:return f.rp;case h.input.sa.nh:return f.nh;case h.input.sa.un:return f.un;case h.input.sa.Ua:case h.input.sa.Mq:case h.input.sa.wp:return f.Ua;case h.input.sa.oj:return f.oj;case h.input.sa.ec:return f.ec;case h.input.sa.Mc:return f.Mc;default:return f.$c}}}f.Qka=0;f.$c=1;f.jb=2;f.rp=3;f.Ua=4;f.ec=5;f.Sl=6;f.gY=7;f.Nt=8;f.nh=9;f.sK=10;f.un=11;f.pn=12;f.MP=13;f.lQ=14;f.HY=15;f.x9=16;f.Mc=17;f.oj=18;h.ib=f})(l.i||(l.i={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){e=e.u||(e.u={});e=e.i||(e.i={});e=e.input||(e.input={});e=e.Gf||(e.Gf={});class l{}l.qB=1;l.eQ=2;e.N8=l})(q||(q={}));(function(e){e=e.u||(e.u={});e=e.i||(e.i={});e=e.input||(e.input={});e=e.Gf||(e.Gf={});class l{}l.jb=1;l.$c=2;l.rp=3;l.Ua=4;l.$ra=5;l.Bra=6;l.wc=7;l.Mc=8;e.oB=l})(q||(q={}));
(function(e){e=e.u||(e.u={});e=e.i||(e.i={});e=e.input||(e.input={});e=e.Gf||(e.Gf={});class l{}l.Roa=1;l.Soa=2;l.Toa=4;l.Voa=516;l.Zoa=36;l.$oa=772;l.apa=1028;l.bpa=132;l.cpa=68;l.dpa=2052;l.epa=4100;l.fpa=260;l.hpa=20;l.Uoa=4289;l.Woa=4296;l.Xoa=4301;l.Yoa=4302;l.gpa=4759;e.el=l})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{static valid(a){return-1<b.rL.indexOf(a)}static A6(a){return""===a?b.$c:"number"!=typeof a&&isNaN(Number(a))?e.P.HU(a)?e.model.C.F.$L:b.$c:b.jb}static fAa(a){a=a.trim();var c=b.$c;"+"==a.charAt(0)?c=b.$c:"t+"==a.substr(0,2)?c=b.ec:"dt+"==a.substr(0,3)?c=b.Mc:"n+"==a.substr(0,2)?c=b.jb:"-"==a.charAt(0)?c=b.jb:"ds+"==a.substr(0,3)?c=b.oj:"d+"==a.substr(0,2)?c=b.Ua:"m+"==a.substr(0,2)?c=b.nh:"w+"==a.substr(0,2)?c=b.un:"D+"==a.substr(0,2)?c=
b.Mq:"D4+"==a.substr(0,3)?c=b.wp:"id+"==a.substr(0,3)&&(c=b.ty);return c}}b.jb="number";b.$c="string";b.rp="boolean";b.Sf="level";b.nh="month";b.un="weekday";b.Ua="date";b.oj="date string";b.Mq="year/month/day";b.wp="year/quarter/month/day";b.ec="time";b.Mc="datetime";b.ty="id";b.J7="delete";b.M8="hidden";b.NF="property";b.iJ="any";b.rL="number;string;boolean;level;month;weekday;date;date string;year/month/day;year/quarter/month/day;time;datetime;id;delete;hidden;property;array;any".split(";");f.sa=
b})(h.input||(h.input={}))})(l.i||(l.i={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{static get hJ(){return f.QA.concat(f.RA)}static get bla(){0===f.eZ.length&&(f.eZ=f.Nka.concat(f.RA));return f.eZ}static get Zka(){0===f.dZ.length&&(f.dZ=f.Mka);return f.dZ}static get S6(){0===f.cZ.length&&(f.cZ=[f.NONE].concat(f.RA));return f.cZ}static HG(b){return b===f.Sq?e.model.B.j.d$:b===f.wc?e.model.B.j.w7:b===f.pj||b===f.oP?e.model.B.j.Ama:b===f.Hq?e.model.B.j.T6:b===f.Pv?e.model.B.j.jpa:b===f.Uv?e.model.B.j.gra:b===f.Vv?e.model.B.j.ira:b===f.Mt?
e.model.B.j.zqa:b===f.MIN?e.model.B.j.Opa:b===f.MAX?e.model.B.j.Poa:b===f.cs?e.model.B.j.lqa:b===f.Cp||b===f.rQ?e.model.B.j.mqa:b===f.Rq?e.model.B.j.xqa:b===f.Pq?e.model.B.j.tqa:b===f.Qq?e.model.B.j.vqa:b===f.Si?e.model.B.j.ooa:b===f.ko||b===f.nP?e.model.B.j.wma:b===f.qn?e.model.B.j.yma:b===f.qo||b===f.sQ?e.model.B.j.oqa:b===f.sn?e.model.B.j.qqa:b===f.tn||b===f.wQ?e.model.B.j.Mqa:b===f.so?e.model.B.j.Oqa:b===f.NONE?e.model.B.j.Zpa:b}static G_(b=null){var a=[];b=b?b:f.hJ;for(var c=0;c<b.length;c++)a.push(f.HG(b[c]));
return a}static sba(b=null){var a=[];b=b?b:f.hJ;for(var c=0;c<b.length;c++)b[c]===f.Sq?a.push(e.model.B.j.oK):b[c]===f.wc?a.push(e.model.B.j.fP):b[c]===f.pj||b[c]===f.oP?a.push(e.model.B.j.pP):b[c]===f.Hq?a.push(e.model.B.j.ZO):b[c]===f.Pv?a.push(e.model.B.j.nY):b[c]===f.Uv?a.push(e.model.B.j.CQ):b[c]===f.Vv?a.push(e.model.B.j.DQ):b[c]===f.Mt?a.push(e.model.B.j.tQ):b[c]===f.MIN?a.push(e.model.B.j.mQ):b[c]===f.MAX?a.push(e.model.B.j.dQ):b[c]===f.cs?a.push(e.model.B.j.iK):b[c]===f.Cp||b[c]===f.rQ?a.push(e.model.B.j.cK):
b[c]===f.Rq?a.push(e.model.B.j.hK):b[c]===f.Pq?a.push(e.model.B.j.fK):b[c]===f.Qq?a.push(e.model.B.j.gK):b[c]===f.Si?a.push(e.model.B.j.QJ):b[c]===f.ko||b[c]===f.nP?a.push(e.model.B.j.wJ):b[c]===f.qn?a.push(e.model.B.j.xJ):b[c]===f.qo||b[c]===f.sQ?a.push(e.model.B.j.dK):b[c]===f.sn?a.push(e.model.B.j.eK):b[c]===f.tn||b[c]===f.wQ?a.push(e.model.B.j.vQ):b[c]===f.so?a.push(e.model.B.j.xQ):b[c]===f.NONE?a.push("{0}"):-1<f.QA.indexOf(b[c])&&a.push(`{0} (${b[c]})`);return a}static MA(b){return-1!==f.hJ.indexOf(b)||
b===f.NONE}static dNa(b){return-1!==f.S6.indexOf(b)}static dF(b){return-1!==f.Kka.indexOf(b)||b===f.NONE}static pp(b){return-1!==f.Lka.indexOf(b)||b===f.NONE}static xe(b){return-1!==f.Oka.indexOf(b)}static de(b){return-1!==f.Pka.indexOf(b)}static nN(b){return b===f.ko||b===f.qn||b===f.qo||b===f.sn}static uN(b){return b===f.tn||b===f.so}static pz(b){return b===f.oP||b===f.rQ||b===f.nP||b===f.sQ||b===f.wQ}static Dz(b){switch(b){case f.oP:return f.pj;case f.rQ:return f.Cp;case f.nP:return f.ko;case f.sQ:return f.qo;
case f.wQ:return f.tn;default:return""}}static BU(b){return-1!==f.QA.indexOf(b)||b===f.NONE}}f.Sq="sum";f.wc="count";f.pj="distinctcount";f.oP="distinct count";f.Hq="average";f.Pv="median";f.Uv="stdevp";f.Vv="stdevs";f.cs="percent";f.Cp="percentofcolumn";f.Rq="percentofrow";f.Pq="percentofparentcolumntotal";f.Qq="percentofparentrowtotal";f.rQ="percent of column";f.Mt="product";f.Si="index";f.tn="runningtotalsofcolumn";f.so="runningtotalsofrow";f.wQ="runningtotals";f.MIN="min";f.MAX="max";f.NONE="none";
f.ko="differenceofcolumn";f.qn="differenceofrow";f.nP="difference";f.qo="%differenceofcolumn";f.sn="%differenceofrow";f.sQ="%difference";f.QA=[f.Sq,f.wc,f.pj,f.Hq,f.Pv,f.Mt,f.MIN,f.MAX,f.Uv,f.Vv];f.RA=[f.cs,f.Cp,f.Rq,f.Pq,f.Qq,f.Si,f.ko,f.qn,f.qo,f.sn,f.tn,f.so];f.iP=[];f.Nka=[f.wc,f.pj];f.eZ=[];f.Mka=[f.MAX,f.MIN,f.wc,f.pj];f.dZ=[];f.cZ=[];f.$ka=[f.Sq,f.wc,f.pj,f.Hq,f.MIN,f.MAX];f.ala=[f.wc,f.pj];f.Oka=[f.wc,f.pj];f.Pka=[f.cs,f.Cp,f.Rq,f.Pq,f.Qq,f.qo,f.sn];f.Kka=[f.Sq,f.Hq,f.Pv,f.Mt,f.MIN,f.MAX];
f.Lka=[f.Sq,f.Hq,f.Pv,f.Mt,f.MIN,f.MAX,f.Uv,f.Vv,f.ko,f.qn,f.tn,f.so];h.ea=f})(l.i||(l.i={}))})(e.u||(e.u={}))})(q||(q={}));var ua=q||(q={}),wa=ua.u||(ua.u={}),xa=wa.i||(wa.i={});class ya{}ya.VO="+";ya.EQ="-";ya.nQ="*";ya.yJ="/";ya.xY="^";ya.LESS="<";ya.GREATER=">";ya.EQUAL="=";ya.Qma="==";ya.Tf="!=";ya.X8="<=";ya.I8=">=";ya.L9="or";ya.L6="and";ya.NP="if";ya.oX="abs";ya.EY="round";ya.MIN="min";ya.MAX="max";ya.gla="isnan";ya.aqa="!isnan";ya.wo="value";ya.OQ="updatedifference";ya.PQ="updatepercent";
xa.rc=ya;var za=q||(q={}),Aa=za.u||(za.u={}),Ba=Aa.i||(Aa.i={});class Ca{}Ca.to="select";Ca.xF="expand";Ca.m7="collapse";Ca.sP="drillUp";Ca.Iv="drillDown";Ca.rP="drillDownTo";Ca.zJ="drillThrough";Ca.BP="filter";Ca.GY="search";Ba.Md=Ca;var Da=q||(q={}),Ea=Da.u||(Da.u={}),Fa=Ea.i||(Ea.i={});class Ga{}Ga.qP=Number.NEGATIVE_INFINITY;Fa.tP=Ga;
(function(e){(function(l){(function(h){class f{constructor(){this.Kl=()=>this.et();this.Oj=()=>this.uq()}cFa(b,a,c){try{this.dispose(),this.Cb=c,this.Nw=this.Wj=0,this.Bx=u.Gy.RH(b),this.BO(this.Bx,a)}catch(d){this.Rb(d)}}Br(){e.Ca(!1);let b;try{b=JSON.parse(this.pa.response)}catch(a){b=null}null!=this.Cb&&(this.Cb(b),this.dispose())}zGa(){e.Ca(!0,e.model.B.j.tY,"")}bt(b){const a=b.data;if(404==a.target.status)this.Rb(b);else if(!e.v(this.pa))try{const d=this.pa.response;if(null!=d&&0!=d.length&&
(this.Wj!=a.loaded||this.Nw!=d.length)){this.Wj=a.loaded;this.Nw=d.length;var c=0==a.total?e.P.bind(e.model.B.j.Am,u.bc.ah(a.loaded)):e.P.bind(e.model.B.j.JF,u.bc.ah(a.loaded),u.bc.ah(a.total),(a.loaded/a.total*100).toFixed(0));e.Ca(!0,e.model.B.j.tY,c)}}catch(d){console.error(d.stack),this.Rb(d)}}Rb(){e.Ca(!1);null!=this.Cb&&(this.Cb(null),this.dispose())}BO(b,a){this.timer=new u.Pt(100,1E5);this.timer.N(u.xf.Ol,this.Kl);this.timer.N(u.xf.Pl,this.Oj);this.timer.start();var c=new z.tk;c.dataType=
z.bB.DB;c.N(w.ia.Qc,()=>this.Br());c.N(w.ia.ZA,()=>this.zGa());c.N(w.ia.te,d=>this.bt(d));c.N(w.ia.xa,d=>this.Rb(d));c.$h(a);c.load(b);this.pa=c}et(){0<this.Wj?this.yg():null!=this.timer&&this.timer.Gl&&e.Ca(!0,e.model.B.j.tY,e.P.bind(e.model.B.j.Jt,u.bc.format(this.timer.Kw/10,new e.model.oc.W.se,!1,!1,1)))}uq(){this.timer.Gl&&this.yg()}yg(){this.timer&&this.timer.Gl&&(this.timer.stop(),this.timer.rb(u.xf.Ol,this.Kl),this.timer.rb(u.xf.Pl,this.Oj))}dispose(){this.yg();null!=this.pa&&(this.pa.Vd(),
this.pa.dispose(),this.pa=null);this.Cb=null}}h.Rpa=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(b){b.JOa="visible";b.COa="caption";b.TYPE="type";b.hY="hierarchy";b.Sf="level";b.HOa="parent";b.AOa="aggregations";b.EOa="format";b.FOa="interval";b.BOa="calendar_interval";b.DOa="fixed_interval";b.IOa="time_zone";b.GOa="min_doc_count";b.SOa="isMeasure";b.KOa="filters";b.lQa="showEmptyValues";b.bQa="preloadMemberCaptions"})(h.Spa||(h.Spa={}));class f{constructor(b=null){this.Bx=this.mapping=null;this.Gu={};this.rV=null;"string"==typeof b?this.Bx=b:
(this.mapping=b,this.lX());this.Gu.filters=!0}lX(){for(var b in this.mapping)if("aggregations"===b)this.Lp=this.mapping[b],delete this.mapping[b];else if(!e.v(this.mapping[b])&&"object"!==typeof this.mapping[b]){let a=l.i.input.sa.A6(this.mapping[b]);this.mapping[b]={uniqueName:b,caption:b,type:a}}}La(b,a,c=null){b=u.Hc.resolve(b,this.mapping);var d=null;e.v(b)||(d=b[a]);e.v(d)&&(d=c);e.v(d)&&(d=this.Gu[a]);return d}XH(b,a){b=u.Hc.resolve(b,this.mapping);return e.v(b)||e.v(b[a])?!1:!0}oi(b,a,c){var d=
u.Hc.resolve(b,this.mapping);e.v(d)&&(this.mapping[b]={},d=this.mapping[b]);e.v(d)||(d[a]=c)}Sa(b=!1){if(b&&this.$o)return this.Bx;b&&this.Lp&&(this.mapping.aggregations=this.Lp);return this.mapping}uFa(b){switch(b){case l.i.ra.API:b=new l.external.jc.XO;break;case l.i.ra.kg:b=new l.external.Ue.wP;break;case l.i.ra.Pd:case l.i.ra.Cc:new l.external.Hb.pQ;default:b=new f}return b}clone(b=""){b=this.uFa(b);b.mapping=u.Hc.zj(this.mapping);b.Bx=this.Bx;b.Lp=this.Lp;return b}isEqual(b){return JSON.stringify(this.Sa(!0))===
JSON.stringify(b.Sa(!0))&&b.$o||JSON.stringify(this.mapping)===JSON.stringify(b.Sa())}get kb(){return!this.Lfa&&e.v(this.Lp)}get Lfa(){return!e.v(this.mapping)&&0<Object.keys(this.mapping).length}get $o(){return null!==this.Bx&&0<this.Bx.length}dFa(b,a){this.gf=a;this.$o&&this.kb?(this.rV=new h.Rpa,this.rV.cFa(this.Bx,b,c=>this.JHa(c))):(this.gf(),this.gf=null)}JHa(b){null!==b&&(this.mapping=b,this.lX());this.gf();this.gf=null;this.rV.dispose();this.rV=null}static TU(b){if(e.v(b))return!1;if(!e.v(b.aggregations))return!0;
for(var a in b)if(!e.v(b[a])&&(Array.isArray(b[a])&&f.TU(b[a])||b[a].hasOwnProperty("type")||b[a].hasOwnProperty("caption")||b[a].hasOwnProperty("hierarchy")||b[a].hasOwnProperty("level")||b[a].hasOwnProperty("parent")||b[a].hasOwnProperty("dimensionUniqueName")||b[a].hasOwnProperty("dimensionCaption")||b[a].hasOwnProperty("folder")||b[a].hasOwnProperty("aggregations")||b[a].hasOwnProperty("visible")))return!0;return!1}L3(b,a){const c=u.Hc.resolve(b,this.mapping);e.v(a)&&(a={});if(Array.isArray(c)){let d=
[],g=[],k=[],m;for(let n=0;n<c.length;n++)m=this.xaa(c[n],a),e.ka(m.uniqueName)&&(m.uniqueName=b),e.ka(m.caption)&&(m.caption=b),-1!==g.indexOf(m.uniqueName)&&(m.uniqueName=`${b}.${n}`),-1!==k.indexOf(m.caption)&&(m.caption=`${m.caption} ${n}`),g.push(m.uniqueName),k.push(m.caption),d.push(m);return d}return this.xaa(c,a)}xaa(b,a){a=u.Hc.zj(a);for(var c in b)a[c]=b[c],"aggregations"===c&&(a.availableAggregations=b[c]);return a}}h.Bm=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.tc=null;this.withCredentials=!1;this.yo=l.i.ra.EMPTY;this.yEa=!1}get Aa(){return this.yo}set Aa(b){this.yo=b.toLowerCase()}get Ec(){return l.i.ra.Ec(this.yo)}set Ec(b){}get rN(){return!1}set rN(b){}isEqual(b){return b&&this.Aa==b.Aa&&this.withCredentials==b.withCredentials}get kb(){return this.yo==l.i.ra.EMPTY}set kb(b){}get mN(){return this.yo===l.i.ra.ci&&"this"===this.filename}get cv(){return!1}set cv(b){}get aI(){return!0}get KU(){return!0}get JU(){return!0}static xb(b){if(void 0==
b||e.model.Ea.xc.bk()==e.model.Ea.xp.Rl)return new h.gB;e.v(b.connectionInfo)||(b=b.connectionInfo);b instanceof f||b instanceof l.local.csv.gP||b instanceof l.local.csv.LF||b instanceof l.local.json.RP||b instanceof l.external.Hb.Bp||b instanceof l.external.Ue.T7||b instanceof l.external.jc.N6||(b=f.um(b));e.v(b.dataSourceType)||(b.dataSourceType=b.dataSourceType.toLowerCase());b.dataSourceType&&-1<b.dataSourceType.indexOf("pentaho")&&(b.dataSourceType=l.i.ra.Pd);"msolap"==b.dataSourceType&&(b.dataSourceType=
l.i.ra.Cc);!l.i.ra.valid(b.dataSourceType)&&b.proxyUrl&&(b.dataSourceType=l.i.ra.Cc);if("es"==b.dataSourceType||"elastic"==b.dataSourceType)b.dataSourceType=l.i.ra.kg;!l.i.ra.valid(b.dataSourceType)&&(b.host||b.node)&&b.index&&(b.dataSourceType=l.i.ra.kg);!l.i.ra.valid(b.dataSourceType)&&(b.url||b.discover&&b.select)&&(b.dataSourceType=l.i.ra.API);if(!e.v(b.filename)&&e.v(b.dataSourceType)){var a=b.filename.split("?")[0].toLowerCase();b.dataSourceType=".csv"==a.substr(-4)?l.i.ra.ci:".ocsv"==a.substr(-5)?
l.i.ra.Nq:".json"==a.substr(-5)||".js"==a.substr(-3)?l.i.ra.JSON:l.i.ra.ci}!e.v(b.data)&&Array.isArray(b.data)&&(b.dataSourceType=l.i.ra.JSON,b.data=b.data.slice());if(b.dataSourceType==l.i.ra.kg&&e.model.Ea.xc.bk()!=e.model.Ea.xp.kg&&e.model.Ea.xc.bk()!=e.model.Ea.xp.vP)return e.model.Ea.xc.bk()!=e.model.Ea.xp.Rl&&e.Va(e.model.Ea.ca.I(e.model.Ea.ca.nza),e.model.Ea.ca.I(e.model.Ea.ca.gE)),new h.gB;if(b.dataSourceType==l.i.ra.Cc&&e.model.Ea.xc.bk()!=e.model.Ea.xp.Rka&&e.model.Ea.xc.bk()!=e.model.Ea.xp.vP)return e.model.Ea.xc.bk()!=
e.model.Ea.xp.Rl&&e.Va(e.model.Ea.ca.I(e.model.Ea.ca.UFa),e.model.Ea.ca.I(e.model.Ea.ca.gE)),new h.gB;if(b.dataSourceType==l.i.ra.Pd&&e.model.Ea.xc.bk()!=e.model.Ea.xp.Pd&&e.model.Ea.xc.bk()!=e.model.Ea.xp.vP)return e.model.Ea.xc.bk()!=e.model.Ea.xp.Rl&&e.Va(e.model.Ea.ca.I(e.model.Ea.ca.MFa),e.model.Ea.ca.I(e.model.Ea.ca.gE)),new h.gB;if((b.dataSourceType==l.i.ra.ci||b.dataSourceType==l.i.ra.Nq||b.dataSourceType==l.i.ra.JSON)&&e.model.Ea.xc.bk()!=e.model.Ea.xp.cma&&e.model.Ea.xc.bk()!=e.model.Ea.xp.vP)return e.model.Ea.xc.bk()!=
e.model.Ea.xp.Rl&&e.Va(e.model.Ea.ca.I(e.model.Ea.ca.ZFa),e.model.Ea.ca.I(e.model.Ea.ca.gE)),new h.gB;switch(b.dataSourceType){case l.i.ra.Nq:return l.local.csv.LF.xb(b);case l.i.ra.ci:return l.local.csv.gP.xb(b);case l.i.ra.JSON:return l.local.json.RP.xb(b);case l.i.ra.Cc:case l.i.ra.Pd:return l.external.Hb.Bp.xb(b);case l.i.ra.kg:return l.external.Ue.T7.xb(b);case l.i.ra.API:return l.external.jc.N6.xb(b);default:return new h.gB}}static um(b){var a={};e.ka(b.type)||(a.dataSourceType=b.type);e.ka(b.dataSourceType)||
(a.dataSourceType=b.dataSourceType);e.ka(b.filename)||(a.filename=b.filename);e.ka(b.requestHeader)||(a.requestHeaders=b.requestHeader);e.ka(b.requestHeaders)||(a.requestHeaders=b.requestHeaders);e.ka(b.browseForFile)||(a.browseForFile=b.browseForFile);e.ka(b.requestPermission)||(a.requestPermission=b.requestPermission);e.ka(b.thousandSeparator)||(a.thousandsSeparator=b.thousandSeparator);e.ka(b.thousandsSeparator)||(a.thousandsSeparator=b.thousandsSeparator);e.ka(b.fieldSeparator)||(a.fieldSeparator=
b.fieldSeparator);e.ka(b.recordsetDelimiter)||(a.recordsetDelimiter=b.recordsetDelimiter);e.ka(b.ignoreQuotedLineBreaks)||(a.ignoreQuotedLineBreaks=b.ignoreQuotedLineBreaks);e.ka(b.embedded)||(a.embedded=b.embedded);e.ka(b.embeddedDataOffset)||(a.embeddedDataOffset=b.embeddedDataOffset);e.ka(b.embeddedDataToLoad)||(a.embeddedDataToLoad=b.embeddedDataToLoad);e.ka(b.isOCSV2Data)||(a.isOCSV2Data=b.isOCSV2Data);e.v(b.data)||(a.data=b.data);e.ka(b.checkUpdates)||(a.checkUpdates=b.checkUpdates);e.ka(b.proxyUrl)||
(a.proxyUrl=b.proxyUrl);e.ka(b.dataSourceInfo)||(a.dataSourceInfo=b.dataSourceInfo);e.ka(b.catalog)||(a.catalog=b.catalog);e.ka(b.cube)||(a.cube=b.cube);e.ka(b.subquery)||(a.subquery=b.subquery);e.ka(b.binary)||(a.binary=b.binary);e.ka(b.withCredentials)||(a.withCredentials=b.withCredentials);e.ka(b.roles)||(a.roles=b.roles);e.ka(b.localeIdentifier)||(a.localeIdentifier=b.localeIdentifier);e.ka(b.effectiveUserName)||(a.effectiveUserName=b.effectiveUserName);e.ka(b.customData)||(a.customData=b.customData);
e.ka(b.url)||(a.url=b.url);e.ka(b.handshakingUrl)||(a.handshakingUrl=b.handshakingUrl);e.ka(b.dimensionsUrl)||(a.dimensionsUrl=b.dimensionsUrl);e.ka(b.hierarchiesUrl)||(a.hierarchiesUrl=b.hierarchiesUrl);e.ka(b.levelsUrl)||(a.levelsUrl=b.levelsUrl);e.ka(b.measuresUrl)||(a.measuresUrl=b.measuresUrl);e.ka(b.membersUrl)||(a.membersUrl=b.membersUrl);e.ka(b.dataUrl)||(a.dataUrl=b.dataUrl);e.ka(b.drillThroughUrl)||(a.drillThroughUrl=b.drillThroughUrl);e.ka(b.host)||(a.host=b.host);e.ka(b.node)||(a.node=
b.node);e.ka(b.connection)||(a.connection=b.connection);e.ka(b.index)||(a.index=b.index);e.ka(b.mapping)||(a.mapping=b.mapping);e.ka(b.singleEndpoint)||(a.singleEndpoint=b.singleEndpoint);e.ka(b.concurrentRequests)||(a.concurrentRequests=b.concurrentRequests);e.ka(b.useSockets)||(a.useSockets=b.useSockets);e.ka(b.useStreamLoader)||(a.useStreamLoader=b.useStreamLoader);e.ka(b.useGranularityNamesForDateFilters)||(a.useGranularityNamesForDateFilters=b.useGranularityNamesForDateFilters);e.ka(b.dataRootPath)||
(a.dataRootPath=b.dataRootPath);e.ka(b.hash)||(a.hash=b.hash);e.ka(b.username)||(a.username=b.username);e.ka(b.password)||(a.password=b.password);e.ka(b.dataSource)||(b=b.dataSource,e.ka(b.type)||(a.dataSourceType=b.type),e.ka(b.dataSourceType)||(a.dataSourceType=b.dataSourceType),e.ka(b.filename)||(a.filename=b.filename),e.ka(b.requestHeader)||(a.requestHeaders=b.requestHeader),e.ka(b.requestHeaders)||(a.requestHeaders=b.requestHeaders),e.ka(b.browseForFile)||(a.browseForFile=b.browseForFile),e.ka(b.requestPermission)||
(a.requestPermission=b.requestPermission),e.ka(b.fieldSeparator)||(a.fieldSeparator=b.fieldSeparator),e.ka(b.thousandSeparator)||(a.thousandsSeparator=b.thousandSeparator),e.ka(b.thousandsSeparator)||(a.thousandsSeparator=b.thousandsSeparator),e.ka(b.recordsetDelimiter)||(a.recordsetDelimiter=b.recordsetDelimiter),e.ka(b.ignoreQuotedLineBreaks)||(a.ignoreQuotedLineBreaks=b.ignoreQuotedLineBreaks),e.ka(b.embedded)||(a.embedded=b.embedded),e.ka(b.embeddedDataOffset)||(a.embeddedDataOffset=b.embeddedDataOffset),
e.ka(b.embeddedDataToLoad)||(a.embeddedDataToLoad=b.embeddedDataToLoad),e.ka(b.isOCSV2Data)||(a.isOCSV2Data=b.isOCSV2Data),e.v(b.data)||(a.data=b.data),e.ka(b.proxyUrl)||(a.proxyUrl=b.proxyUrl),e.ka(b.dataSourceInfo)||(a.dataSourceInfo=b.dataSourceInfo),e.ka(b.catalog)||(a.catalog=b.catalog),e.ka(b.cube)||(a.cube=b.cube),e.ka(b.subquery)||(a.subquery=b.subquery),e.ka(b.binary)||(a.binary=b.binary),e.ka(b.withCredentials)||(a.withCredentials=b.withCredentials),e.ka(b.roles)||(a.roles=b.roles),e.ka(b.localeIdentifier)||
(a.localeIdentifier=b.localeIdentifier),e.ka(b.effectiveUserName)||(a.effectiveUserName=b.effectiveUserName),e.ka(b.customData)||(a.customData=b.customData),e.ka(b.url)||(a.url=b.url),e.ka(b.handshakingUrl)||(a.handshakingUrl=b.handshakingUrl),e.ka(b.dimensionsUrl)||(a.dimensionsUrl=b.dimensionsUrl),e.ka(b.hierarchiesUrl)||(a.hierarchiesUrl=b.hierarchiesUrl),e.ka(b.levelsUrl)||(a.levelsUrl=b.levelsUrl),e.ka(b.measuresUrl)||(a.measuresUrl=b.measuresUrl),e.ka(b.membersUrl)||(a.membersUrl=b.membersUrl),
e.ka(b.dataUrl)||(a.dataUrl=b.dataUrl),e.ka(b.drillThroughUrl)||(a.drillThroughUrl=b.drillThroughUrl),e.ka(b.host)||(a.host=b.host),e.ka(b.node)||(a.node=b.node),e.ka(b.connection)||(a.connection=b.connection),e.ka(b.index)||(a.index=b.index),e.ka(b.mapping)||(a.mapping=b.mapping),e.ka(b.singleEndpoint)||(a.singleEndpoint=b.singleEndpoint),e.ka(b.concurrentRequests)||(a.concurrentRequests=b.concurrentRequests),e.ka(b.useStreamLoader)||(a.useStreamLoader=b.useStreamLoader),e.ka(b.useGranularityNamesForDateFilters)||
(a.useGranularityNamesForDateFilters=b.useGranularityNamesForDateFilters),e.ka(b.dataRootPath)||(a.dataRootPath=b.dataRootPath),b=b.credentials,null!=b&&(e.ka(b.hash)||(a.hash=b.hash),e.ka(b.username)||(a.username=b.username),e.ka(b.password)||(a.password=b.password)));return a}static Jk(b){var a=b.find("dataSource"),c=a.attr("type");void 0!==c&&(c=c.toLowerCase());"msolap"==c&&(c=l.i.ra.Cc);c&&-1<c.indexOf("pentaho")&&(c=l.i.ra.Pd);var d=a.find("filename");if(!l.i.ra.valid(c)){var g=a.find("proxyUrl");
0<g.length&&0<g.text().length&&(c=l.i.ra.Cc);0<d.length&&0<d.text().length&&(c=l.i.ra.ci)}0<d.length&&0<d.text().length&&".ocsv"==d.text().toLocaleLowerCase().substr(-5)&&(c=l.i.ra.Nq);0<d.length&&0<d.text().length&&".json"==d.text().toLocaleLowerCase().substr(-5)&&(c=l.i.ra.JSON);0<d.length&&0<d.text().length&&".csv"==d.text().toLocaleLowerCase().substr(-4)&&(c=l.i.ra.ci);switch(c){case l.i.ra.Nq:return l.local.csv.LF.Jk(a[0]);case l.i.ra.ci:return l.local.csv.gP.Jk(b);case l.i.ra.JSON:return l.local.json.RP.Jk(a[0]);
case l.i.ra.Cc:case l.i.ra.Pd:return l.external.Hb.Bp.Jk(b);default:return l.local.csv.gP.Jk(b)}}op(){var b=z.ba.create("<dataSource/>");this.Aa!=l.i.ra.EMPTY&&b.attr("type",this.Aa);return b}}h.Et=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){class h{constructor(f){this.zb=[];this.Kc=[];this.qh=[];this.eb=[];this.Cd=[];this.Od=[];this.le=[];this.ua=[];this.dm=[];this.th=[];this.zg=[];this.Lp=[];this.su=[];this.nx=[];this.Wn=[];this.cqa=0;this.Cha=[];this.xj=[];this.Zh=[];this.sizes=[];this.filters=[];this.Yx=[];this.Mu=[];this.values=[];this.tR=[];this.wa=f}LC(){this.Wn=[];this.eb=[];this.zb=[];this.Kc=[];this.dm=[];this.ua=[];this.values=[];this.qh=[];this.filters=[]}$_(){this.le=[];this.th=[];this.zg=[];this.Lp=
[];this.su=[];this.nx=[]}wu(){this.LC();this.$_();this.Cd=[];this.Od=[];this.sizes=[];this.qh=[]}clearData(){this.LC();this.Cd=[];this.Od=[];this.sizes=[];this.qh=[]}get slice(){return null!=this.Pb?this.Pb:this.wa.qa}set slice(f){this.Pb=f}CAa(f){return isNaN(f[0])}EAa(f){return!isNaN(f[0])}qAa(f){return void 0===f[0]||"string"===typeof f[0]||void 0===f[1]||"string"===typeof f[1]?(null==f[0]||"number"===typeof f[0]&&isNaN(f[0])?"":f[0])+(null==f[1]||"number"===typeof f[1]&&isNaN(f[1])?"":f[1]):f[0]+
f[1]}IAa(f){return f[0]-f[1]}BAa(f){return f[0]*f[1]}sAa(f){return 0==f[1]||isNaN(f[1])?l.i.tP.qP:f[0]/f[1]}GAa(f){return Math.pow(f[0],f[1])}xAa(f){return f[0]<f[1]}uAa(f){return f[0]>f[1]}tAa(f){return f[0]==f[1]}DAa(f){return f[0]!=f[1]}yAa(f){return f[0]<=f[1]}vAa(f){return f[0]>=f[1]}FAa(f){return f[0]||f[1]}rAa(f){return f[0]&&f[1]}wAa(f){return f[0]?f[1]:f[2]}pAa(f){return Math.abs(f[0])}HAa(f){const b=f[1];if(isNaN(b)||0===b)return Math.round(f[0]);f=f[0];f=Math.round(Number(f+"e"+b));return Number(f+
"e"+-b)}AAa(f){return Math.min(f[0],f[1])}zAa(f){return Math.max(f[0],f[1])}Bs(f,b){for(var a=1,c=0,d,g,k=this.xj.length-1;0<=k;k--)g=this.sizes[this.Zh.length+k],0<g&&(d=void 0===b[k]?0:b[k],c+=d*a,a*=g);for(b=this.Zh.length-1;0<=b;b--)g=this.sizes[b],0<g&&(d=f&&void 0!==f[b]?f[b]:0,Math.abs(d*a)>9007199254740991-c&&(a=-a%1E6,0==a&&(a=-g)),c+=d*a,a*=g);return c}i2(f,b){for(var a=0,c=!0,d=0;d<f.length;d++){var g=this.Kc[b][f[d]];isNaN(g)||(a+=g,c=!1)}return c?NaN:a}ZBa(f,b){for(var a=Number.MAX_VALUE,
c=!0,d=0;d<f.length;d++){var g=this.Kc[b][f[d]];isNaN(g)||(g<a&&(a=g),c=!1)}return c?NaN:a}SBa(f,b){for(var a=Number.NEGATIVE_INFINITY,c=!0,d=0;d<f.length;d++){var g=this.Kc[b][f[d]];isNaN(g)||(g>a&&(a=g),c=!1)}return c?NaN:a}mCa(f,b){for(var a=1,c=!0,d=0;d<f.length;d++){var g=this.Kc[b][f[d]];isNaN(g)||(a*=g,c=!1)}return c?NaN:a}fea(f,b){let a=0,c=0;for(let d=0;d<f.length;d++){const g=this.Kc[b][f[d]];isNaN(g)||(a+=g,c++)}return 0==c?NaN:a/c}WBa(f,b){for(var a=[],c=0;c<f.length;c++){var d=this.Kc[b][f[c]];
isNaN(d)||a.push(d)}if(0===a.length)return NaN;e.Ja.sort(a,e.Ja.Ti);if(1===a.length%2)return a[Math.floor(a.length/2)];f=a.length/2;return(a[f]+a[f-1])/2}uea(f,b){for(var a=this.fea(f,b),c=0,d=0,g=0;g<f.length;g++){var k=this.Kc[b][f[g]];isNaN(k)||(c+=Math.pow(k-a,2),d++)}return{Xca:c,count:d}}CCa(f,b){f=this.uea(f,b);return 0==f.count?NaN:Math.sqrt(f.Xca/f.count)}DCa(f,b){f=this.uea(f,b);return 0==f.count?NaN:1==f.count?0:Math.sqrt(f.Xca/(f.count-1))}iCa(f,b){null==this.tR[b]&&(this.tR[b]=this.i2(this.eb,
b));return Math.abs(100*this.i2(f,b)/this.tR[b])}kBa(f,b){for(var a=0,c=0;c<f.length;c++){var d=this.Kc[b][f[c]];isNaN(d)||this.Kc[b]instanceof Uint8Array&&0==d||a++}return a}wBa(f,b,a){return l.Te.Qi.Bc("",!1).La(f,b,a)}jCa(f,b,a){return l.Te.Qi.Bc("",!1).La(f,b,a)}md(f,b){for(var a=0;a<f.length;a++){if(void 0===b)return;b=b[f[a]]}return b}BW(f,b){for(let a=0;a<f.length;a++)void 0===b[f[a]]&&(b[f[a]]=[[[]],[],[],void 0,void 0,!1]),b=b[f[a]];return b}get result(){return[this.Cd,this.Od]}set result(f){}wh(f,
b){if(0===f.length)return!0;var a=-1;void 0!==b&&(a="number"===typeof b?-1===b?-1:this.Mu[b]:this.ii(b));f=this.md(f,this.Cd);return void 0===f||void 0===f[0]||void 0===f[0][3]?!1:-1===a||void 0===f[0][3][a]?f[0][3][this.zg.length]:f[0][3][a]}ii(f,b,a){"string"!==typeof f&&(b=f.$,f=f.A);if(e.model.C.F.sc&&!a||void 0===b||b===l.i.ea.NONE)for(a=0;a<this.zg.length;a++){if(this.zg[a]===f)return a}else for(a=0;a<this.zg.length;a++)if(this.zg[a]===f&&(void 0===this.Lp[a]||this.Lp[a]===b))return a;return-1}Gj(f,
b){if(0===f.length)return!0;var a=-1;void 0!==b&&(a="number"===typeof b?this.Mu[b]:this.ii(b));f=this.md(f,this.Od);return void 0===f||void 0===f[0]||void 0===f[0][3]?!1:-1===a||void 0===f[0][3][a]?f[0][3][this.zg.length]:f[0][3][a]}collapse(f,b,a){0===this.Cd.length&&(this.Cd=[[this.eb,[],[],void 0,void 0]]);0===this.Od.length&&(this.Od=[[this.eb,[],[],void 0,void 0]]);1===this.Mu.length&&(a=void 0);b===l.i.ha.Ia&&this.nwa(f,a);b===l.i.ha.Oa&&this.lwa(f,a)}nwa(f,b){this.L$(this.md(f,this.Cd),b)}lwa(f,
b){this.L$(this.md(f,this.Od),b)}L$(f,b){void 0!==f&&(void 0===f[0][3]&&(f[0][3]=[]),void 0!==b?f[0][3][this.ii(b)]=!1:f[0][3][this.zg.length]=!1)}expand(f,b,a){0!==this.eb.length&&(1===this.Mu.length&&(a=void 0),0===this.Cd.length&&(this.Cd=[[this.eb,[],[],void 0,void 0]],this.j1([],a)),0===this.Od.length&&(this.Od=[[this.eb,[],[],void 0,void 0]],this.g1([],a)),b===l.i.ha.Ia&&this.j1(f,a),b===l.i.ha.Oa&&this.g1(f,a))}j1(f,b){var a=this.md(f,this.Cd);void 0===a&&this.vL()&&(a=this.BW(f,this.Cd));
if(void 0!==a){var c=this.Zh[f.length];f.length<this.Zh.length&&this.Ny(a,c,b)}}g1(f,b){var a=this.md(f,this.Od);void 0===a&&this.uL()&&(a=this.BW(f,this.Od));if(void 0!==a){var c=this.xj[f.length];f.length<this.xj.length&&this.Ny(a,c,b)}}Ny(f,b,a){if(void 0!==f){var c=f[0][0];if(0<c.length&&!isNaN(b))for(var d=0;d<c.length;d++){var g=this.ua[b][1]<this.zb.length?this.zb[this.ua[b][1]][c[d]]:0;0!==g&&void 0!==g&&(void 0===f[g]?(f[g]=[[[c[d]],[],[],void 0,void 0,!1]],f[0][1].push(g)):f[0][5]||f[g][0][0].push(c[d]))}void 0===
f[0][3]&&(f[0][3]=[]);void 0===a?f[0][3][this.zg.length]=!0:f[0][3][this.ii(a)]=!0;f[0][5]=!0}}Xp(f,b,a,c){1===this.Mu.length&&(c=void 0);a===l.i.ha.Ia&&this.eza(f,c);a===l.i.ha.Oa&&this.dza(f,c)}eza(f,b){var a=this.md(f,this.Cd);f=f.slice(0,-1);this.rZ(this.md(f,this.Cd),a,b)}dza(f,b){var a=this.md(f,this.Od);f=f.slice(0,-1);this.rZ(this.md(f,this.Od),a,b)}Ee(f,b,a,c){0!==b.children.length&&(1===this.Mu.length&&(c=void 0),0===this.Cd.length&&(this.Cd=[[this.eb,[],[],void 0,void 0]],this.j1([],c)),
0===this.Od.length&&(this.Od=[[this.eb,[],[],void 0,void 0]],this.g1([],c)),a===l.i.ha.Ia&&this.$ya(f,b,c),a===l.i.ha.Oa&&this.Zya(f,b,c))}$ya(f,b,a){var c=this.md(f,this.Cd);void 0===c&&this.vL(b.level)&&(c=this.BW(f,this.Cd));if(void 0!==c){f=f.slice(0,-1);var d=this.Zh[f.length];this.jR(this.md(f,this.Cd),c,d,this.ua[d][b.level.yb+1],a)}}jR(f,b,a,c,d){if(void 0!==b&&void 0!==b[0]){var g=b[0][0];if(0<g.length&&!isNaN(c)){void 0===f.indiciesMap&&(f.indiciesMap={});for(let m=0;m<g.length;m++){var k=
this.zb[c][g[m]];0!==k&&void 0!==k&&(void 0===f[k]?(f[k]=[[[g[m]],[],[],void 0,void 0]],b[0][2].push(k),this.dm[a][k]=c,f.indiciesMap[k]={[g[m]]:1}):1!==f.indiciesMap[k][g[m]]&&(f[k][0][0].push(g[m]),f.indiciesMap[k][g[m]]=1))}}void 0===b[0][4]&&(b[0][4]=[]);void 0===d?b[0][4][this.zg.length]=!0:b[0][4][this.ii(d)]=!0}}Zya(f,b,a){var c=this.md(f,this.Od);void 0===c&&this.uL(b.level)&&(c=this.BW(f,this.Od));f=f.slice(0,-1);var d=this.xj[f.length];this.jR(this.md(f,this.Od),c,d,this.ua[d][b.level.yb+
1],a)}rZ(f,b,a){const c=b[0][2];if(void 0!==c&&0<c.length)for(var d=0;d<c.length;d++){let g=c[d];void 0!==f[g][0][4]&&this.rZ(f,f[g],a);f[g]=void 0}b[0][2]=[];b[0][4][this.zg.length]=!1;void 0!==a&&(b[0][4][this.ii(a)]=!1)}Ih(f,b,a){b=this.zg.length;void 0!==a&&(b="number"===typeof a?-1===a?-1:this.Mu[a]:this.ii(a));-1===b&&(b=this.zg.length);f=this.md(f,this.Cd);return void 0!==f&&void 0!==f[0]&&void 0!==f[0][4]&&(f[0][4][b]||f[0][4][this.zg.length])}Fj(f,b,a){b=this.zg.length;void 0!==a&&(b="number"===
typeof a?-1===a?-1:this.Mu[a]:this.ii(a));-1===b&&(b=this.zg.length);f=this.md(f,this.Od);return void 0!==f&&void 0!==f[0]&&void 0!==f[0][4]&&(f[0][4][b]||f[0][4][this.zg.length])}kN(f,b,a){var c=this.le.indexOf(b.hierarchy.A),d=b.dc?f.slice(0,-1):f.slice(0);const g=a===l.i.ha.Ia?this.md(d,this.Cd):this.md(d,this.Od);1<f.length?(d=f.slice(0,-1),f=(a===l.i.ha.Ia?this.md(d,this.Cd):this.md(d,this.Od))[0][0]):f=this.eb;if(g){c=this.ua[c][b.level.yb+1];a={};for(d=0;d<g[0][0].length;d++)a[g[0][0][d]]=
1;d=[];for(let k=0;k<b.children.length;k++){const m=this.Zp(f,[b.children[k]],[c]);for(let n=0;n<m.length;n++)1!==a[m[n]]&&(d.push(m[n]),a[m[n]]=1)}for(b=0;b<d.length;b++)g[0][0].push(d[b])}}Zp(f,b,a){for(let k=0;k<b.length;k++){const m=b[k];var c=a[k];if(e.model.C.F.mU){var d=this.slice.vc().getItem(this.le[c]),g=d.za(m);e.v(d.Nz)||e.v(this.ua)||e.v(a[k])||e.v(this.ua[a[k]])||(c=this.ua[a[k]][g.level.yb])}c=e.v(this.dm[c])||e.v(this.dm[c][m])?c:this.dm[c][m];d=[];for(g=0;g<f.length;g++)e.v(this.zb[c])||
this.zb[c][f[g]]!==m||d.push(f[g]);f=d}return f}sR(f,b,a){let c=this.La(f,b,a);this.wa.ga.Aa!==l.i.ra.Cc&&this.wa.ga.Aa!==l.i.ra.Pd||!e.model.C.F.co||(f=this.La(f,b,a),c=l.Kt.R().B2(f)?l.Kt.R().d2(f):f);return c}Sea(f,b,a){return a.$===l.i.ea.tn?this.wCa(f,b,a):a.$===l.i.ea.so?this.xCa(f,b,a):NaN}wCa(f,b,a){var c=a.Qa?this.slice.gd().findIndex(r=>r.A===a.A)+this.zg.length:this.ii(a);null==this.values[c]&&(this.values[c]=[]);var d=this.Bs(f,b);if(null==this.values[c][d]){a.$=a.Mm;if(f&&0!=f.length){var g=
this.slice.wb.fa(f.length-1),k=g.za(f[f.length-1]);if(null==k||null==k.parent)return null;g=null==g.ic||k.level.yb>g.ic.yb?g.jk(k.parent,!1):g.nv(g.zf);f=f.slice(0,-1);k=this.md(f,this.Cd);if(k[0]&&k[0][1])for(var m=0,n=0;n<g.length;n++){var p=g[n];if(null!=k[p]){f.push(p);p=this.Bs(f,b);if(null==this.values[c][p]){var t=this.sR(f,b,a);isNaN(t)||(m+=t);this.values[c][p]=m}else m=this.values[c][p];f.pop()}}}else this.values[c][d]=this.sR(f,b,a);a.$=l.i.ea.tn}return this.values[c][d]}xCa(f,b,a){const c=
a.Qa?this.slice.gd().findIndex(n=>n.A===a.A)+this.zg.length:this.ii(a);null==this.values[c]&&(this.values[c]=[]);const d=this.Bs(f,b);if(null==this.values[c][d]){a.$=a.Mm;if(0===b.length)this.values[c][d]=this.sR(f,b,a);else{var g=this.slice.Fb.fa(b.length-1),k=g.za(b[b.length-1]);if(null===k||null===k.parent)return null;g=null===g.ic||k.level.yb>g.ic.yb?g.jk(k.parent,!1):g.nv(g.zf);b=b.slice(0,-1);k=this.md(b,this.Od);if(k[0]&&k[0][1]){let n=0;for(let p=0;p<g.length;p++){var m=g[p];if(void 0!==k[m]){b.push(m);
m=this.Bs(f,b);if(null==this.values[c][m]){const t=this.sR(f,b,a);isNaN(t)||(n+=t);this.values[c][m]=n}else n=this.values[c][m];b.pop()}}}}a.$=l.i.ea.so}return this.values[c][d]}zea(f,b,a,c,d,g){if(!e.v(f)&&0!=f.length)if(this.Zh.length==b.length)this.yea(f,c,d,g);else{var k=[],m={},n=this.Zh[b.length];for(var p=0;p<f.length;p++){const t=this.zb[n][f[p]];m[t]||0==t||(k.push(t),m[t]=!0)}for(m=0;m<k.length;m++)n=b.slice(0),n.push(k[m]),p=this.Zp(f,n,this.Zh),this.zea(p,n,a,c,d,g)}}xea(f,b,a,c){const d=
[];this.zea(f,b,a,c,d,{});return d.length}GM(f,b){if(e.v(f)||0==f.length)return 0;var a=this.wa.O.Ok(b.A);a=this.le.indexOf(2<a.ua.length?a.ua.Uh(a.ua.length-1):a.A);b=this.th.indexOf(b.A);for(var c=[],d=[],g,k=0;k<f.length;k++)g=this.zb[a][f[k]],d[g]||(d[g]=!0,this.Kc[b]&&isNaN(this.Kc[b][f[k]])||this.Kc[b]instanceof Uint8Array&&0==this.Kc[b][f[k]]||c.push(g));return c.length}ww(f,b,a,c){var d=this.md(f,this.Cd),g=this.md(b,this.Od),k=[];d&&0<d.length&&g&&0<g.length&&(k=f.length*g[0][0].length<b.length*
d[0][0].length?this.Zp(g[0][0],f,this.Zh):this.Zp(d[0][0],b,this.xj));return this.bq(k,a,!1,c)}sva(f,b,a){return this.bq([this.eb[f[0]]],b,!1,a)}MBa(f,b,a=0,c=null,d=null){for(var g=0,k=!0,m=0;m<f.length;m++)a=this.bq([f[m]],b,!1,a,c,d,!0),isNaN(a)||(g+=a,k=!1);return k?NaN:g}bq(f,b,a=!1,c=0,d=null,g=null,k=!0){if(a)return this.MBa(f,b,c,d,g);if(b[2]){var m=[],n;for(n in b[1]){var p=b[1][n],t=p;Array.isArray(p)&&(t=this.bq(f,p,a,c,d,g,k),t=isNaN(t)&&k&&(b[0]===l.i.rc.VO||b[0]===l.i.rc.EQ||b[0]===
l.i.rc.nQ||b[0]===l.i.rc.xY||b[0]===l.i.rc.yJ)?this.cqa:t);m.push(t)}if(b[0]===l.i.rc.wo||b[0]===l.i.rc.PQ||b[0]===l.i.rc.OQ)return c;if(b[0]===l.i.rc.gla)return this.CAa(m);if(b[0]===l.i.rc.aqa)return this.EAa(m);if(b[0]===l.i.rc.VO)return this.qAa(m);if(b[0]===l.i.rc.EQ)return this.IAa(m);if(b[0]===l.i.rc.nQ)return this.BAa(m);if(b[0]===l.i.rc.xY)return this.GAa(m);if(b[0]===l.i.rc.yJ)return this.sAa(m);if(b[0]===l.i.rc.LESS)return this.xAa(m);if(b[0]===l.i.rc.GREATER)return this.uAa(m);if(b[0]===
l.i.rc.EQUAL||b[0]==l.i.rc.Qma)return this.tAa(m);if(b[0]===l.i.rc.Tf)return this.DAa(m);if(b[0]===l.i.rc.X8)return this.yAa(m);if(b[0]===l.i.rc.I8)return this.vAa(m);if(b[0]===l.i.rc.L6)return this.rAa(m);if(b[0]===l.i.rc.L9)return this.FAa(m);if(b[0]===l.i.rc.NP)return this.wAa(m);if(b[0]===l.i.rc.EY)return this.HAa(m);if(b[0]===l.i.rc.oX)return this.pAa(m);if(b[0]===l.i.rc.MIN)return this.AAa(m);if(b[0]===l.i.rc.MAX)return this.zAa(m)}else{a=this.Q1(b[1][0],b[0]);if(void 0!==this.su[a])return this.bq(f,
this.su[a],this.nx[a],0,d,g,k);k=b[0];l.i.ea.pz(k)&&(k=l.i.ea.Dz(k));switch(k){case l.i.ea.Cp:if(null!=g&&(c=this.wa.O.fd(b[1][0]),!e.v(c)))return f=this.La([],g,c),c=this.La(d,g,c),100*c/f;break;case l.i.ea.Rq:if(null!=d&&(c=this.wa.O.fd(b[1][0]),!e.v(c)))return f=this.La(d,[],c),c=this.La(d,g,c),100*c/f;break;case l.i.ea.Si:if(null!=d&&null!=g&&(c=this.wa.O.fd(b[1][0]),!e.v(c)))return f=this.La([],[],c),b=this.La(d,[],c),k=this.La([],g,c),c=this.La(d,g,c),Math.abs(f*c/(k*b));break;case l.i.ea.tn:case l.i.ea.so:c=
this.wa.O.fd(b[1][0]);if(!e.v(c))return f=c.$,c.$=k,d=this.Sea(d,g,c),c.$=f,d;break;case l.i.ea.pj:c=this.wa.O.fd(b[1][0]);if(!e.v(c)&&c.type==l.i.Ra.wc)return this.GM(f,c);break;case l.i.ea.ko:case l.i.ea.qn:case l.i.ea.qo:case l.i.ea.sn:c=this.wa.O.fd(b[1][0]);if(!e.v(c))return f=c.$,c.$=k,d=this.wBa(d,g,c),c.$=f,d;break;case l.i.ea.Pq:case l.i.ea.Qq:if(c=this.wa.O.fd(b[1][0]),!e.v(c))return f=c.$,c.$=k,d=this.jCa(d,g,c),c.$=f,d}return this.Wg(f,a,k)}}Q1(f){var b=this.th.indexOf(f);-1===b&&-1!=
f.indexOf("[Measures]")&&(f=f.slice(12,-1),b=this.th.indexOf(f));return b}filter(){}select(f=!0){this.zI();this.filter();var b;this.Cha=[];this.Zh=[];this.xj=[];this.sizes=[];this.dm=[];this.Mu=[];this.vI=this.slice.axes.getItem(l.i.ha.Lt);this.$b=this.slice.axes.getItem(l.i.ha.Ia);this.Lb=this.slice.axes.getItem(l.i.ha.Oa);for(b=0;b<this.$b.Na.length;b++){var a=this.$b.Na.fa(b);if(!a.We){var c=this.le.indexOf(a.A);this.Zh.push(c);this.sizes.push(a.fn);this.dm[c]=[]}}this.Uk=this.Zh.length;for(b=
0;b<this.Lb.Na.length;b++)a=this.Lb.Na.fa(b),a.We||(c=this.le.indexOf(a.A),this.xj.push(c),this.sizes.push(a.fn),this.dm[c]=[]);this.Ck=this.xj.length;if(f)for(b=0;b<this.vI.Na.length;b++)a=this.vI.Na.fa(b),c=this.le.indexOf(a.A),this.Cha.push(c);else this.eb=this.qh;f=this.slice.gd();for(b=0;b<f.length;b++)c=this.ii(f[b]),this.Mu.push(c)}qZ(f,b,a,c){try{if(0===b.children.length||1===b.children.length&&(b.hierarchy.za(b.children[0]).caption===e.model.B.j.Nl||b.hierarchy.za(b.children[0]).caption===
e.model.B.j.jo))return;this.kN(f,b,c);this.Ee(f,b,c,void 0)}catch(k){}const d=this.md(f,c===l.i.ha.Ia?this.Cd:this.Od);for(var g=0;g<b.children.length;g++){const k=b.hierarchy.za(b.children[g]);try{if(k.Hh&&c===l.i.ha.Ia){f.length<this.Zh.length&&!this.wh(f)&&this.Ny(d,this.Zh[a],void 0);const m=f.slice(0);m[m.length-1]=k.ordinal;this.vZ(m,a+1,!0)}else if(k.Hh&&c===l.i.ha.Oa){f.length<this.xj.length&&!this.Gj(f)&&this.Ny(d,this.xj[a],void 0);const m=f.slice(0);m[m.length-1]=k.ordinal;this.uZ(m,a+
1,!0)}else{const m=f.slice(0,-1);m.push(k.ordinal);this.qZ(m,k,a,c)}}catch(m){}}}lf(f){if(0===this.Cd.length||0<this.Cd.length&&this.Cd[0][0].length!==this.eb.length)this.Cd=[[this.eb,[],[],void 0,void 0]];this.vZ([],0,f)}kf(f){if(0===this.Od.length||0<this.Od.length&&this.Od[0][0].length!==this.eb.length)this.Od=[[this.eb,[],[],void 0,void 0]];this.uZ([],0,f)}vZ(f,b,a){if(void 0!==this.Zh[b]){var c=this.Zh[b],d=this.md(f,this.Cd),g;f.length<this.Zh.length&&this.Ny(d,c,void 0);a&&(g=this.$b.Na.getItem(this.le[c]));
if(a&&g&&g.Ef)for(a=g.pd.children,c=0;c<a.length;c++){d=g.za(a[c]);const k=f.slice(0);k.push(d.ordinal);this.qZ(k,d,b,l.i.ha.Ia)}else for(g=d[0][1],c=0;c<g.length;c++)d=f.slice(0),d.push(g[c]),this.vZ(d,b+1,a)}}uZ(f,b,a){if(void 0!==this.xj[b]){var c=this.xj[b],d=this.md(f,this.Od),g;f.length<this.xj.length&&this.Ny(d,c,void 0);a&&(g=this.Lb.Na.getItem(this.le[c]));if(a&&g.Ef)for(a=g.pd.children,c=0;c<a.length;c++){d=g.za(g.pd.children[c]);const k=f.slice(0);k.push(d.ordinal);this.qZ(k,d,b,l.i.ha.Oa)}else for(g=
d[0][1],c=0;c<g.length;c++)d=f.slice(0),d.push(g[c]),this.uZ(d,b+1,a)}}Vm(f,b,a,c){0===this.Cd.length&&(this.expand([],l.i.ha.Ia,void 0),this.expand([],l.i.ha.Oa,void 0));try{if(0!=b.children.length&&(1!=b.children.length||b.hierarchy.za(b.children[0]).caption!=e.model.B.j.Nl&&b.hierarchy.za(b.children[0]).caption!=e.model.B.j.jo)){this.kN(f,b,a);b.dc||this.Ee(f,b,a,void 0);for(var d=b.hierarchy.ua.getItem(c),g=0;g<b.children.length;g++){var k=b.hierarchy.za(b.children[g]);if(!k.Hh&&k.level.yb<d.yb){var m=
f.slice(0,-1);m.push(k.ordinal);var n=this.md(m,a===l.i.ha.Oa?this.Od:this.Cd);void 0!==n&&void 0!==n[0]&&this.Vm(m,k,a,c)}}}}catch(p){}}La(){return 0}Wg(f,b){f=this.values&&this.values[f[0]]?this.values[f[0]][b]:NaN;this.wa.ga.Aa!==l.i.ra.Cc&&this.wa.ga.Aa!==l.i.ra.Pd||!e.model.C.F.co||(f=l.Kt.R().B2(f)?l.Kt.R().d2(f):f);return f}yea(){}Kz(){return this.eb.length}get HA(){return this.zb&&this.zb[0]?this.zb[0].length:this.zb[1]?this.zb[1].length:0}Jm(f,b){if(-1!==this.le.indexOf(f))return this.le.indexOf(f);
if(void 0===b)this.ua[this.le.length]=[-1,this.le.length];else{var a=this.le.indexOf(b);if(-1===a)return this.Jm(b),this.Jm(f,b);this.ua[a]?this.ua[a].push(this.le.length):this.ua[this.le.length]=[-1,this.le.length]}this.le.push(f);return this.le.length-1}fL(f){-1===this.th.indexOf(f.A)&&this.th.push(f.A)}Uy(f,b){var a=!1;if("string"===typeof f)var c=f;else if(c=f.A,b=f.$,a=f.Qa){var d=f.Ud;var g=f.Lk}f=this.zg.indexOf(c);if(-1!==f){if(void 0!==b&&b!==l.i.ea.NONE){if(this.Lp[f]===b)return;f=this.zg.length;
this.Lp[f]=b;this.zg[f]=c}}else f=this.zg.length,void 0!==b&&b!==l.i.ea.NONE&&(this.Lp[f]=b),this.zg.push(c);a&&(this.su[f]=d,this.nx[f]=g)}vL(f=null){var b=!0===e.model.C.F.TE||"rows"===e.model.C.F.TE;if(f){const a=f.hierarchy;b=a.mapping.La(a.A,"showEmptyValues",b);return f.hierarchy.mapping.La(f.A,"showEmptyValues",b)}return b}uL(f=null){var b=!0===e.model.C.F.TE||"columns"===e.model.C.F.TE;if(f){const a=f.hierarchy;b=a.mapping.La(a.A,"showEmptyValues",b);return f.hierarchy.mapping.La(f.A,"showEmptyValues",
b)}return b}}l.c7=h})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){class h{constructor(){}static GCa(f){var b=null;switch(f.Aa){case l.i.ra.Cc:b=f.Nm?new l.external.Hb.Kp.V6(f):new l.external.Hb.XE.dra(f);break;case l.i.ra.Pd:b=f.Nm?new l.external.Hb.Kp.V6(f):new l.external.Hb.pq.Ypa(f);break;case l.i.ra.ci:b=new l.local.csv.GX;break;case l.i.ra.Nq:b=new l.local.csv.eqa;break;case l.i.ra.JSON:b=!f.bJ||f.cv||f.Yd?new l.local.json.O8:new l.local.json.qoa;break;case l.i.ra.kg:b=new l.external.Ue.Zma(f);break;case l.i.ra.API:b=new l.external.jc.Xka(f)}return b}}
l.wra=h})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){class h{constructor(f=""){this.type=f;this.uw=l.i.ha.Ia;this.jg=[]}}l.PF=h})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){class h{static xD(f,b){switch(b.Aa){case l.i.ra.kg:f=new l.external.Ue.Xma(f,b);break;case l.i.ra.API:f=new l.external.jc.Wka(f,b);break;case l.i.ra.Pd:f=new l.external.Hb.pq.mY(f,b);break;default:f=new l.external.Hb.XE.mY(f,b)}return f}}l.yB=h})(e.u||(e.u={}))})(q||(q={}));
var Ha=q||(q={}),Ia=Ha.u||(Ha.u={});class Ja{}Ja.GF="members";Ja.R6="ascendants";Ja.vma="descendants";Ja.b$="siblings";Ja.GY="search";Ia.Ap=Ja;
(function(e){(function(l){class h{constructor(){}static O1(f){var b=null;switch(f.Aa){case l.i.ra.kg:b=new l.external.Ue.Sma;break;case l.i.ra.API:b=new l.external.jc.Ska;break;case l.i.ra.Cc:b=f.Nm?new l.external.Hb.Kp.U6:new l.external.Hb.mj.w$;break;case l.i.ra.Pd:b=f.Nm?new l.external.Hb.Kp.U6:new l.external.Hb.mj.w$}return b}}l.MX=h})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){class h{constructor(){this.values=[];this.values.push("");if(null!=h.instance)throw Error("Singleton");}static R(){null==h.instance&&(h.instance=new h);return h.instance}static dispose(){h.instance=null}oi(f){var b=this.values.indexOf(f);-1==b&&(b=this.values.push(f)-1);return b}La(f){return f>=this.values.length?"out of bounce: "+f+" of "+this.values.length:this.values[f]}}l.SY=h})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){class h{}h.PY="STRUCTURE_CONNECTED";h.Wv="STRUCTURE_LOADED";h.OY="STRUCTURE_CANCELLED";h.QY="STRUCTURE_LOADING_FAILED";h.lJ="BEFORE_QUERY";h.hl="QUERY_COMPLETE";h.Ot="QUERY_ERROR";l.Ag=h;class f{}f.nK="SLICE_CHANGED";f.NY="SLICE_DRILL_EXPAND_CLEARED";l.Dy=f;class b extends w.ia{constructor(c){super(h.lJ);this.rm=c}}l.oF=b;class a extends w.ia{constructor(c){super(h.hl);this.rm=c}}l.AY=a})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){class h{constructor(){this.KN=[NaN];this.QI=[""];if(null!=h.instance)throw Error("Singleton");}static R(){null==h.instance&&(h.instance=new h);return h.instance}static dispose(){h.instance=null}BA(f,b){var a=this.QI.indexOf(f);-1==a&&(this.QI.push(f),a=this.KN.push(b)-1);return a}ECa(f){return isNaN(f)||f>=this.QI.length||void 0==this.QI[f]?"":this.QI[f]}d2(f){return isNaN(f)||f>=this.KN.length?NaN:this.KN[f]}B2(f){return!(isNaN(f)||void 0===this.KN[f])}clear(){this.KN.length=
1;this.QI.length=1}}l.Kt=h})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){class h{static bh(f,b){if(f===b)return f;if(h.bF&&"["===f.slice(0,1)&&"]"===f.slice(-1)){b=f.split("].");1<b.length&&b.shift();f="";for(var a=0;a<b.length;a++){var c=b[a];"[Measures]"!=c&&("["==c.slice(0,1)&&(c=c.slice(1,c.length)),"]"==c.slice(-1)&&(c=c.slice(0,c.length-1)));f=""==f?c:f+"."+c}}return f}static Vs(f){if("["==f.slice(0,1)&&"]"==f.slice(-1)&&h.bF){var b=f.split("].");if(2>b.length)return h.aJ&&!e.model.C.F.zw?f.toLocaleLowerCase():f;1<b.length&&b.shift();f=
"";for(var a=0;a<b.length-1;a++){var c=b[a];"[Measures]"!=c&&("["==c.slice(0,1)&&(c=c.slice(1,c.length)),"]"==c.slice(-1)&&(c=c.slice(0,c.length-1)));f=""==f?c:f+"."+c}f=f+"."+b[b.length-1]}return h.aJ&&!e.model.C.F.zw?f.toLocaleLowerCase():f}static Ws(f){if("[Measures]"==f.slice(0,10))return h.Vs(f,void 0);h.bF&&(f=f.split(".["),2<f.length?(f.shift(),f="["+f.join(".[")):(f=f.pop(),"]"==f.slice(-1)&&(f=f.slice(0,f.length-1))));return h.aJ&&!e.model.C.F.zw?f.toLocaleLowerCase():f}static type(f){return l.i.input.sa.valid(f)?
f:"hierarchical date"===f?l.i.input.sa.Mq:"measure"===f?l.i.input.sa.jb:l.i.input.sa.$c}}h.bF=!1;h.aJ=!1;l.ze=h})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends w.Mh{constructor(){super();this.Mb=[];this.Eg=[];this.bd=[];this.og=[];this.Fc=[];this.Gc=[];this.Mi=[];this.Jc=[];this.xz=[];this.sW=[];this.BS=[];this.iC="";this.Ie=!1;this.cO=[];this.mw=[];this.JL=[];this.Tt=[];this.b3=!0;this.pA=b=>this.qE(b);this.yL=b=>this.W3(b);this.EO=()=>this.Dr();this.zha=()=>{this.slice=this.ja.qa};this.Dn=new e.ub;this.RR=[];this.$Q=[];this.Dm=new e.ub;this.KR=new e.ub;this.mb=[];this.Vj=0;this.dG=!1;this.fC=this.Ly=
this.uG=0;this.rm=l.i.Md.to;this.UR=!1;this.yZ=0;f.counter++;this.ja=l.Ma.R()}static R(){null==f.instance&&(f.instance=new f,f.instance.iC="grid"+f.counter);return f.instance}bS(){this.ja.N(l.Ag.hl,this.pA,1);this.ja.N(l.Ag.lJ,this.yL);this.ja.N(l.Ag.Wv,this.EO,1);this.ja.N(l.Dy.NY,this.zha)}rA(){this.ja.rb(l.Ag.hl,this.pA);this.ja.rb(l.Ag.lJ,this.yL);this.ja.rb(l.Ag.Wv,this.EO);this.ja.rb(l.Dy.NY,this.zha)}get ta(){return null!=this.FK?this.FK:this.ja.ta}set ta(b){this.FK=b}get slice(){return null!=
this.Pb?this.Pb:this.ja.qa}set slice(b){this.Pb=b}get Ej(){return e.model.C.F.Bk}set Ej(b){}get rows(){return this.Dn}set rows(b){}get wb(){return this.slice.wb}set wb(b){}get Fl(){return this.RR}set Fl(b){}get NC(){return this.$Q}set NC(b){}get Ka(){return this.Dm}set Ka(b){}get Fb(){return this.slice.Fb}set Fb(b){}get qb(){return this.KR}set qb(b){}get Da(){return this.mb}set Da(b){}get ke(){return this.Vj}set ke(b){}get $i(){return this.slice&&this.dG}set $i(b){this.dG=b}get EI(){return this.uG}set EI(b){}get Ln(){return this.Ly}set Ln(b){}get dA(){return this.fC}set dA(b){}get $b(){return this.Ob}set $b(b){}get Lb(){return this.Nb}set Lb(b){}get Uk(){return this.Ob?
this.Ob.bb?this.Ob.Na.length-1:this.Ob.Na.length:0}set Uk(b){}get Ck(){return this.Nb?this.Nb.bb?this.Nb.Na.length-1:this.Nb.Na.length:0}set Ck(b){}get nm(){return 1<this.mb.length||this.Nb.bb&&e.model.C.F.KI}set nm(b){}NM(){return this.Ob&&!this.WD?this.Ob.ld:[]}eja(b){this.Ob&&!this.WD&&(this.Ob.ld=b)}LM(){return this.Nb&&!this.UD?this.Nb.ld:[]}dja(b){this.Nb&&!this.UD&&(this.Nb.ld=b)}xH(){return this.Ob&&this.WD?this.Ob.ld:[]}F5(b){this.Ob&&this.WD&&(this.Ob.ld=b)}tD(){return this.Nb&&this.UD?
this.Nb.ld:[]}Wia(b){this.Nb&&this.UD&&(this.Nb.ld=b)}EH(){return this.Ob&&!this.VD?this.Ob.ue:[]}J5(b){this.Ob&&!this.VD&&(this.Ob.ue=b)}DH(){return this.Nb&&!this.TD?this.Nb.ue:[]}I5(b){this.Nb&&!this.TD&&(this.Nb.ue=b)}IM(){return this.Ob&&this.VD?this.Ob.ue:[]}bja(b){this.Ob&&this.VD&&(this.Ob.ue=b)}HM(){return this.Nb&&this.TD?this.Nb.ue:[]}aja(b){this.Nb&&this.TD&&(this.Nb.ue=b)}get VD(){return this.slice.hf}get TD(){return this.slice.Xf}get WD(){return this.slice.lf}get UD(){return this.slice.kf}set gk(b){this.Ob&&
(this.Ob.ig=b)}get gk(){var b=l.i.Ba.ed;this.Ob&&(b=this.Ob.ig,b==l.i.Ba.ed&&this.Ob.wt&&this.Ob.Or!=l.i.Ba.ed&&(b=this.Ob.Or));return b}set Mj(b){this.Ob&&(this.Ob.jn=b)}get Mj(){if(this.Ob){var b=this.Ob.jn;this.Ob.ig==l.i.Ba.ed&&this.Ob.wt&&this.Ob.Or!=l.i.Ba.ed&&(b=[])}return b}set cp(b){this.Ob&&(this.Ob.Mf=b)}get cp(){if(this.Ob){var b=this.Ob.Mf;this.Ob.ig==l.i.Ba.ed&&this.Ob.wt&&this.Ob.Or!=l.i.Ba.ed&&(b=this.Ob.wt)}return b}get MD(){if(this.gk==l.i.Ba.ed||null==this.Mj)return!1;if(1>this.Mj.length)return!0;
var b=!1;try{b=this.wh(this.Mj.slice(0,this.Mj.length-1),this.cp)}catch(a){}return b}set MD(b){}set Th(b){this.Nb&&(this.Nb.ig=b)}get Th(){var b=l.i.Ba.ed;this.Nb&&(b=this.Nb.ig,b==l.i.Ba.ed&&this.Nb.wt&&this.Nb.Or!=l.i.Ba.ed&&(b=this.Nb.Or));return b}set Xl(b){this.Nb&&(this.Nb.jn=b)}get Xl(){if(this.Nb){var b=this.Nb.jn;this.Nb.ig==l.i.Ba.ed&&this.Nb.wt&&this.Nb.Or!=l.i.Ba.ed&&(b=[])}return b}set lr(b){this.Nb&&(this.Nb.Mf=b)}get lr(){if(this.Nb){var b=this.Nb.Mf;this.Nb.ig==l.i.Ba.ed&&this.Nb.wt&&
this.Nb.Or!=l.i.Ba.ed&&(b=this.Nb.wt)}return b}get Oz(){if(this.Th==l.i.Ba.ed||null==this.Xl)return!1;if(1>this.Xl.length)return!0;var b=!1;try{b=this.Gj(this.Xl.slice(0,this.Xl.length-1),this.lr)}catch(a){}return b}set Oz(b){}set Bi(b){}get Bi(){return null}PT(){return null}reset(b=!0){this.Ie=this.$i=!1;this.mb=[];this.Dn=new e.ub;this.Dm=new e.ub;this.KR=new e.ub;this.RR=[];this.$Q=[];this.Eg=[];this.og=[];this.Mb=[];this.bd=[];this.Fc=[];this.Gc=[];this.Jc=[];this.Ly=this.uG=0;this.Mi=[];this.xz=
[];this.sW=[];this.BS=[];b&&(this.Nb&&(this.Nb.ld=[]),this.Ob&&(this.Ob.ld=[]),this.Nb&&(this.Nb.ue=[]),this.Ob&&(this.Ob.ue=[]))}W3(b){b.rm!=l.i.Md.zJ&&(this.rm=b.rm,this.b3=this.$i=!1,b.rm==l.i.Md.to&&this.reset(),b.rm!=l.i.Md.sP&&b.rm!=l.i.Md.Iv||this.reset(!1))}qE(b){b.rm!=l.i.Md.zJ&&(this.b3=!0,this.load())}Dr(){this.$i=!1;this.Ie||this.reset()}load(){if(null==this.ta&&(this.ta=this.ja.ta,null==this.ta))return;this.slice?(this.Nb=this.slice.td(l.i.ha.Oa),this.Ob=this.slice.td(l.i.ha.Ia),(0==
this.bd.length&&0==this.Mb.length||this.rm==l.i.Md.BP)&&this.b3&&(this.WD?this.ta.lf(this.slice.hf):this.ta.expand([],l.i.ha.Ia,void 0),this.UD?this.ta.kf(this.slice.Xf):this.ta.expand([],l.i.ha.Oa,void 0),(0<this.EH().length||0<this.IM().length)&&this.T$(),(0<this.DH().length||0<this.HM().length)&&this.S$(),(0<this.NM().length||0<this.xH().length||0<this.LM().length||0<this.tD().length)&&this.Y$(),(0<this.EH().length||0<this.IM().length)&&this.T$(),(0<this.DH().length||0<this.HM().length)&&this.S$(),
(0<this.NM().length||0<this.xH().length||0<this.LM().length||0<this.tD().length)&&this.Y$()),this.aW(),this.$i=!0):this.Ob=this.Nb=null}Y$(){var b=this.slice.gd();if(this.rm===l.i.Md.BP||this.rm===l.i.Md.to||this.rm===l.i.Md.Iv||this.rm===l.i.Md.sP||this.rm===l.i.Md.rP){if(this.slice.lf){var a=this.xH();if(0<a.length)for(var c=0;c<a.length;c++)try{var d=b[a[c][0]];var g=a[c].slice(1);this.ta.collapse(g,l.i.ha.Ia,d)}catch(k){}}else if(a=this.NM(),0<a.length)for(c=0;c<a.length;c++)try{d=b[a[c][0]],
g=a[c].slice(1),this.ta.expand(g,l.i.ha.Ia,d)}catch(k){}if(this.slice.kf){if(a=this.tD(),0<this.tD().length)for(c=0;c<this.tD().length;c++)try{d=b[a[c][0]],g=a[c].slice(1),this.ta.collapse(g,l.i.ha.Oa,d)}catch(k){}}else if(a=this.LM(),0<a.length)for(c=0;c<a.length;c++)try{d=b[a[c][0]],g=a[c].slice(1),this.ta.expand(g,l.i.ha.Oa,d)}catch(k){}}}T$(){let b,a,c;const d=this.$b.Na.slice();d.removeItem("[Measures]");let g;const k=this.slice.gd();if(this.VD){var m=this.IM();for(var n=0;n<m.length;n++)try{g=
k[m[n][0]],b=m[n].slice(2),a=d.fa(b.length-1),c=a.Ib(m[n][1]),this.ta.Ih(b,c,g)&&(this.ta.Xp(b,c,l.i.ha.Ia,g),this.ta.wh(b,g)&&this.ta.collapse(b,l.i.ha.Ia,g))}catch(p){}}else{n=this.EH();for(let p=0;p<n.length;p++)try{if("string"==typeof n[p][0]?(m=n[p][0],g=k[n[p][1]],b=n[p].slice(3),a=d.fa(b.length-1),c=a.Ib(n[p][2])):(g=k[n[p][0]],b=n[p].slice(2),a=d.fa(b.length-1),c=a.Ib(n[p][1])),void 0!==m)if(a.Ou(m).yb<c.level.yb){const t=this.iva(c,m);b[b.length-1]=t.ordinal;a.Z0(t);this.ta.Xp(b,t,l.i.ha.Ia,
g)}else this.ta.Ih(b,c,g)||(this.ta.kN(b,c,l.i.ha.Ia),this.ta.Ee(b,c,l.i.ha.Ia,g));else c.hierarchy.ic&&c.hierarchy.pd&&this.ta.Vm(b.slice(0),c.hierarchy.pd,l.i.ha.Ia,c.hierarchy.zf),this.ta.Ih(b,c,g)||(this.ta.kN(b,c,l.i.ha.Ia),this.ta.Ee(b,c,l.i.ha.Ia,g))}catch(t){}}}S$(){var b=this.Lb.Na.slice();b.removeItem("[Measures]");var a=this.slice.gd();if(this.TD)for(var c=this.HM(),d=0;d<c.length;d++)try{var g=a[c[d][0]];var k=c[d].slice(2);var m=b.fa(k.length-1);var n=m.Ib(c[d][1]);this.ta.Fj(k,n,g)&&
this.ta.Xp(k,n,l.i.ha.Oa,g)}catch(p){}else for(c=this.DH(),d=0;d<c.length;d++)try{g=a[c[d][0]],k=c[d].slice(2),m=b.fa(k.length-1),n=m.Ib(c[d][1]),n.hierarchy.ic&&n.hierarchy.pd&&this.ta.Vm(k.slice(0),n.hierarchy.pd,l.i.ha.Oa,n.hierarchy.zf),this.ta.Fj(k,n,g)||(this.ta.kN(k,n,l.i.ha.Oa),this.ta.Ee(k,n,l.i.ha.Oa,g))}catch(p){}}IDa(b){if(!b.Qa)return!1;b=u.Ht.RM(b.Ud,this.ja.O.Da);const a=new Map;for(let c=0;c<b.length;c++)a.set(b[c].$,!0);return a.has(l.i.ea.qn)||a.has(l.i.ea.sn)}aW(){this.UR=!1;this.slice?
(this.mb=this.slice.gd(),this.Vj=this.Ob.bb?this.Ob.ke:this.Nb.ke,this.Dn=this.slice.rows,this.Dm=this.slice.Ka,this.KR=this.slice.qb):(this.mb=[],this.Vj=0,this.Dn=new e.ub,this.Dm=new e.ub,this.KR=new e.ub);this.RR=[];this.$Q=[];this.Ie?(this.SMa(),this.mw=this.ir(this.Eg),this.cO=this.ir(this.Mb),this.Tt=this.ir(this.og),this.JL=this.ir(this.bd)):(this.Eg=[],this.Mb=[],this.og=[],this.bd=[],this.Fc=[],this.Gc=[],this.Mi=[],this.Jc=[]);this.xz=[];this.Ly=this.uG=0;this.sW=[];this.BS=[];if(!e.v(this.slice)&&
!this.slice.kb){this.fC=-1;e.v(this.Nb.Mf)||this.Nb.Mf.$!==l.i.ea.qn&&this.Nb.Mf.$!==l.i.ea.sn&&!this.IDa(this.Lb.Mf)?(this.$ha(),this.Xha()):(this.Xha(),this.$ha());for(var b=0;b<this.Gc.length;b++)this.Gc[b]>this.uG&&(this.uG=this.Gc[b]);this.uG++;for(b=0;b<this.Jc.length;b++)this.Jc[b]>this.Ly&&(this.Ly=this.Jc[b]);0<this.bd.length&&this.Ly++;!this.kb&&0<this.slice.Fb.length&&this.Nb.bb&&this.nm&&this.Ly++;-1==this.fC?this.fC=0==this.ke?0:this.Ly:this.fC++;this.Ie&&(this.qKa(),this.pKa(),this.mw=
[],this.cO=[],this.Tt=[],this.JL=[]);this.Ie||this.pack();this.UR&&e.Va(e.model.B.j.i9,e.model.B.j.j9,e.ob.nk)}}pKa(){if(this.Nb.bb){var b=this.og[0].length;for(--b;0<=b;b--){var a=this.ak(b,!0);if(null===a||0==a.length)continue;const c=this.La([],a,this.mb[0]);isNaN(c)&&(a=this.tM(this.bd,a),0<=a&&this.sA(this.bd,a),this.sA(this.og,b),this.Jc=e.Ja.Qr(this.Jc,b),this.Fc=e.Ja.Qr(this.Fc,b))}}else for(b=this.bd[0].length,--b;0<=b;b--)a=this.ak(b),null!==a&&0!=a.length&&(a=this.La([],a,this.mb[0]),isNaN(a)&&
(this.sA(this.bd,b),this.Jc=e.Ja.Qr(this.Jc,b)))}qKa(){if(this.Nb.bb){var b=this.Mb[0].length;for(--b;0<=b;b--){var a=this.Vn(b);null!==a&&0!=a.length&&(a=this.La(a,[],this.mb[0]),isNaN(a)&&(this.sA(this.Mb,b),this.Gc=e.Ja.Qr(this.Gc,b),this.Mi.splice(b,1)))}}else for(b=this.Eg[0].length,--b;0<=b;b--){a=this.Vn(b,!0);if(null===a||0==a.length)continue;const c=this.La(a,[],this.mb[0]);isNaN(c)&&(a=this.tM(this.Mb,a),0<=a&&this.sA(this.Mb,a),this.sA(this.Eg,b),this.Gc=e.Ja.Qr(this.Gc,b),this.Fc=e.Ja.Qr(this.Fc,
b),this.Mi.splice(b,1))}}sA(b,a){for(let c=0;c<b.length;c++)b[c]=e.Ja.Qr(b[c],a)}$ha(){var b=this.ta.result[0];if(!this.Ob.bb||1<this.Dn.length||this.Ej)this.o1(b,[],0),this.Ie&&this.wKa(this.Mb);if(this.S5||this.Ob.bb&&1==this.Dn.length){var a=this.wb.fa(0);if(!a||a.Xh)if(0==this.Mb.length&&(this.Mb[0]=[]),!this.Ie){for(a=0;a<this.Mb.length;a++)this.Mb[a].push(0);this.Gc.push(0)}}if(!this.Ej)if(this.Ob.bb&&this.nm){this.Ie||(this.Gc=[],this.Mi=[]);if(1<this.Dn.length)for(0!=this.ke&&this.qM(b,[],
-1,0),a=0;a<this.mb.length;a++){if(this.S5)if(this.Ie){var c=this.Cj(this.Eg,[],this.mw);0<=c&&(this.Gc=e.Ja.re(this.Gc,0,c),this.Fc=e.Ja.re(this.Fc,a,c))}else this.wj(this.Eg,[],a),this.Gc.push(0);else 0!=this.Vj||"off"!=e.model.C.F.Lf&&"rows"!=e.model.C.F.Lf||(this.Ie?(c=this.Cj(this.Eg,[],this.mw),0<=c&&(this.Gc=e.Ja.re(this.Gc,0,c),this.Fc=e.Ja.re(this.Fc,a,c))):(this.wj(this.Eg,[],a),this.Gc.push(0)));0==this.ke&&this.qM(b,[],a,1)}if(0==this.ke&&(this.S5||this.Ob.bb&&1==this.Dn.length))for(b=
0;b<this.mb.length;b++)this.Ie?(a=this.Cj(this.Eg,[],this.mw),0<=a&&(this.Gc=e.Ja.re(this.Gc,0,a),this.Fc=e.Ja.re(this.Fc,b,a))):(this.wj(this.Eg,[],b),this.Gc.push(0))}else this.Eg=this.Mb}Xha(){var b=this.ta.result[1];(!this.Nb.bb||1<this.Dm.length)&&this.Gda(b,[],0);if(this.Z5||this.Nb.bb&&1==this.Dm.length){var a=this.Fb.fa(0);if(!a||a.Xh)if(0==this.bd.length&&(this.bd[0]=[]),!this.Ie){for(a=0;a<this.bd.length;a++)this.bd[a].push(0);this.Jc.push(0)}}if(this.Nb.bb&&this.nm){this.Ie||(this.Jc=[]);
if(1<this.Dm.length)for(this.xz=[],0!=this.Vj&&this.oM(b,[],-1,0),a=0;a<this.mb.length;a++){if(this.Z5)if(this.Ie){var c=this.Cj(this.og,[],this.Tt);0<=c&&(this.Jc=e.Ja.re(this.Jc,0,c),this.Fc=e.Ja.re(this.Fc,a,c))}else this.wj(this.og,[],a),this.Jc.push(0);else 0!=this.Vj||"off"!=e.model.C.F.Lf&&"columns"!=e.model.C.F.Lf||(this.Ie?(c=this.Cj(this.og,[],this.Tt),0<=c&&(this.Jc=e.Ja.re(this.Jc,0,c),this.Fc=e.Ja.re(this.Fc,a,c))):(this.wj(this.og,[],a),this.Jc.push(0)));0==this.Vj&&this.oM(b,[],a,0)}if(0==
this.Vj&&(this.Z5||this.Nb.bb&&1==this.Dm.length))for(b=0;b<this.mb.length;b++)this.Ie?(a=this.Cj(this.og,[],this.Tt),0<=a&&(this.Jc=e.Ja.re(this.Jc,0,a),this.Fc=e.Ja.re(this.Fc,b,a))):(this.wj(this.og,[],b),this.Jc.push(0))}else this.og=this.bd}SMa(){this.hX(this.Mb);this.hX(this.Eg);this.hX(this.bd);this.hX(this.og);Array.isArray(this.Fc)||(this.Fc=Array.from(this.Fc));Array.isArray(this.Gc)||(this.Gc=Array.from(this.Gc));Array.isArray(this.Jc)||(this.Jc=Array.from(this.Jc))}hX(b){for(var a=0;a<
b.length;a++)Array.isArray(b[a])||(b[a]=Array.from(b[a]))}pack(){this.UV(this.Mb);this.UV(this.Eg);this.UV(this.bd);this.UV(this.og);15<this.Fc.length&&(this.Fc=128>this.Fc.length?new Int8Array(this.Fc):new Int16Array(this.Fc));15<this.Gc.length&&(this.Gc=new Uint8Array(this.Gc));15<this.Jc.length&&"after"!==e.model.C.F.IL&&(this.Jc=new Uint8Array(this.Jc))}ir(b){b=b.slice();for(let a=0;a<b.length;a++)b[a]=b[a].slice();return b}UV(b){for(var a=0;a<b.length;a++)if(15<b[a].length){for(var c=0,d=0;d<
b[a].length;d++)c=b[a][d]>c?b[a][d]:c;256>c?b[a]=new Uint8Array(b[a]):65536>c?b[a]=new Uint16Array(b[a]):4294967296>c&&(b[a]=new Uint32Array(b[a]))}}o1(b,a,c){var d=a.length;if(d=this.Ob.bb&&a.length>=this.Vj?this.Dn.fa(d+1):this.Dn.fa(d))0==c&&(this.yZ=Date.now()),this.Ej?this.$$(d,d.pd,b,a,c):this.Ida(d,d.pd,b,a,c)}Ufa(b){if(0==b.hierarchy.eb.length)return!0;let a=b;for(;!e.v(a);){if(0<=b.hierarchy.eb.indexOf(a.ordinal))return!0;a=a.parent}for(const c of b.hierarchy.eb)if(0<=b.Ow.indexOf(c))return!0;
return!1}Y2(b,a,c,d,g){if(this.ja.ga.Ec&&this.ja.ga.Aa!==l.i.ra.API||this.ja.ga.mN)return!1;if(g)return!this.Ufa(a);if(void 0!==c&&void 0!==d&&!l.i.ea.nN(d.$)&&(d=d.clone(),d.$=c.measure.$,a=this.La(b,[],d),!c.uV(a,c.query)))return!0;for(c=0;c<this.Da.length;c++)if(0===c&&this.Da[c].Qa||!isNaN(this.La(b,[],this.Da[c]))||l.i.ea.nN(this.Da[c].$))return!1;return!0}Kfa(b,a,c,d,g){if(this.ja.ga.Ec&&this.ja.ga.Aa!==l.i.ra.API||this.ja.ga.mN)return!1;if(g)return!this.Ufa(a);if(void 0!==c&&void 0!==d&&!l.i.ea.nN(d.$)&&
(d=d.clone(),d.$=c.measure.$,a=this.La([],b,d),!c.uV(a,c.query)))return!0;for(c=0;c<this.Da.length;c++)if(0===c&&this.Da[c].Qa||!isNaN(this.La([],b,this.Da[c]))||l.i.ea.nN(this.Da[c].$))return!1;return!0}Ida(b,a,c,d,g){if(null!=a){if(null!=b.ic&&!this.ta.Ih(d,a)){if(0<d.length){var k=d.slice(0);k.push(a.ordinal)}else k=d.slice(0);this.ta.Vm(k,a,l.i.ha.Ia,b.zf)}a=null==b.ic||a.level.yb>=b.ic.yb?b.jk(a,!1,""):b.nv(b.zf);a=this.e6(b,a,c,d);if(b.filter.ji&&b.filter.query.va!=l.i.Wb.Rj&&b.filter.query.va!=
l.i.Wb.pi){var m=b.filter;var n=this.slice.fd(m.measure.A)}k=this.wb.indexOf(b.A)<this.wb.length-1;var p=this.FD(b,l.i.ha.Ia);for(let v=0;v<a.length;v++){const y=b.za(a[v]);var t=p[y.level.A];0===v&&this.Jda(y);if(void 0===c[y.ordinal]&&!t||y.dc)continue;var r=d.slice(0);r.push(y.ordinal);if(this.Y2(r,y,m,n,t))continue;t=k&&this.ta.wh(r);const A=!y.Hh&&this.ta.Ih(r,y);if(this.Ie){const C=this.Cj(this.Mb,r,this.cO);0<=C&&!this.$b.bb&&(this.Gc=e.Ja.re(this.Gc,g,C));t||this.$b.bb||this.r5(this.Mb,r)}else this.wj(this.Mb,
r),this.Gc.push(g);if(Date.now()-this.yZ<e.model.C.F.oT)A?this.Ida(b,y,c,d,g+1):t&&this.o1(c[y.ordinal],r,g+1);else if(A||t)this.UR=!0}}}FD(b,a){const c={};for(let d=0;d<b.ua.length;d++){const g=b.ua.fa(d);a==l.i.ha.Ia?c[g.A]=this.ta.vL(g):a==l.i.ha.Oa&&(c[g.A]=this.ta.uL(g))}return c}r5(b,a){var c=b[0].length;for(--c;0<=c;c--){var d=!0;for(var g=0;g<a.length;g++)if(b[g][c]!=a[g]){d=!1;break}if(d){d=!0;for(g=a.length;g<b.length;g++)if(0!=b[g][c]){d=!1;break}d?this.Ej&&2==this.Mi[c]&&(this.Mi[c]=3):
(this.sA(b,c),this.Gc=e.Ja.Qr(this.Gc,c),this.Mi.splice(c,1),this.Ob.bb&&(this.Fc=e.Ja.Qr(this.Fc,c)))}}if(this.Ej)for(b=b[0].length,a=0;a<b;a++)3==this.Mi[a]&&(this.Mi[a]=1,this.Gc[a]=this.kea(this.Mb,a))}wKa(b){if(b&&0!=b.length){var a=b[0].length;for(let c=b.length-1;0<=c;c--){for(let d=0;d<a;d++)if(0!=b[c][d])return;--b.length}}}pia(b,a){var c=b[0].length;for(--c;0<=c;c--){var d=!0;for(var g=0;g<a.length;g++)if(b[g][c]!=a[g]){d=!1;break}if(d){d=!0;for(g=a.length;g<b.length;g++)if(0!=b[g][c]){d=
!1;break}d||(this.sA(b,c),this.Jc=e.Ja.Qr(this.Jc,c),this.Nb.bb&&(this.Fc=e.Ja.Qr(this.Fc,c)))}}}wj(b,a,c){0===b.length&&(b[0]=[]);if(a.length>b.length)for(var d=b.length;d<a.length;d++){b[d]=[];for(let g=0;g<b[0].length;g++)b[d].push(0)}for(d=0;d<a.length;d++)b[d].push(a[d]);if(b.length>a.length)for(a=a.length;a<b.length;a++)b[a].push(0);void 0!==c&&this.Fc.push(c)}Cj(b,a,c=null,d=0){if(a.length<b.length){a=a.slice(0);for(var g=a.length;g<b.length;g++)a.push(0)}if(a.length>b.length)for(g=b.length;g<
a.length;g++){b[g]=[];for(let k=0;k<b[0].length;k++)b[g].push(0)}return this.ica(null!==c?c:b,a)?-1:(c=this.Mza(b,a)+d,this.qDa(b,a,c),c)}Mza(b,a){var c=0;let d=b[0].indexOf(0);0>d&&(d=b[0].length-1);for(let g=0;g<b.length;g++){c=b[g].indexOf(a[g],c);if(-1===c)break;if(c<d)d=b[g].lastIndexOf(a[g],d-1)+1;else break}return d}qDa(b,a,c){for(let d=0;d<b.length;d++)b[d]=e.Ja.re(b[d],void 0!==a[d]?a[d]:0,c)}ica(b,a){if(a.length<b.length){a=a.slice(0);for(var c=a.length;c<b.length;c++)a.push(0)}if(a.length>
b.length){c=!0;for(let d=b.length;d<a.length;d++)if(0!=a[d]){c=!1;break}if(!c)return!1;a=a.slice(0,b.length)}return 0<=this.tM(b,a)}tM(b,a,c=!0){const d=b[0].length;for(;!c&&a.length<d;)a.push(0);for(c=0;c<d;c++){let g=!0;for(let k=0;k<b.length;k++)if(b[k][c]!=a[k]){g=!1;break}if(g)return c}return-1}GD(b,a){if(0==b.length||void 0==b[0][a])return null;for(var c=[],d=0;d<b.length;d++)0!=b[d][a]&&c.push(b[d][a]);return c}qM(b,a,c,d){if(!this.Ej){var g=a.length;(g=this.Ob.bb&&a.length>=this.Vj?this.Dn.fa(g+
1):this.Dn.fa(g))&&this.tT(g,g.pd,b,a,c,d)}}tT(b,a,c,d,g,k){if(null!=a){if(null!=b.ic&&!this.ta.Ih(d,a)){if(0<d.length){var m=d.slice(0,-1);m.push(a.ordinal)}else m=d.slice(0);this.ta.Vm(m,a,l.i.ha.Ia,b.zf)}m=d.length;a=null==b.ic||a.level.yb>=b.ic.yb?b.jk(a,!1,""):b.nv(b.zf);a=this.e6(b,a,c,d);if(b.filter.ji&&b.filter.query.va!=l.i.Wb.Rj&&b.filter.query.va!=l.i.Wb.pi){var n=b.filter;var p=this.slice.fd(n.measure.A)}var t=this.FD(b,l.i.ha.Ia);for(let C=0;C<a.length;C++){const B=b.za(a[C]);var r=t[B.level.A];
if((null!=c[B.ordinal]||r)&&!B.dc){var v=d.slice(0);v.push(B.ordinal);if(!this.Y2(v,B,n,p,r)){r=this.ta.wh(v,g);var y=this.ta.Ih(v,B);if(m<this.Vj){if(this.Ie){var A=this.Cj(this.Eg,v,this.mw);0<=A&&(this.Gc=e.Ja.re(this.Gc,k,A),this.Fc=e.Ja.re(this.Fc,-1,A))}else this.wj(this.Eg,v,-1),this.Gc.push(k);if(m==this.Vj-1&&r)for(r=0;r<this.mb.length;r++)this.ta.Ih(v,B,r)?this.tT(b,B,c,d,r,k+2):(this.Ie?(y=this.Cj(this.Eg,v,this.mw),0<=y&&(this.Gc=e.Ja.re(this.Gc,k+1,y),this.Fc=e.Ja.re(this.Fc,r,y))):(this.wj(this.Eg,
v,r),this.Gc.push(k+1)),this.ta.wh(v)&&this.qM(c[B.ordinal],v,r,k+2));else{for(A=0;A<this.mb.length;A++)if(this.Cja(b)||!r&&!y||this.Qu)if(this.Ie){const H=this.Cj(this.Eg,v,this.mw);0<=H&&(this.Gc=e.Ja.re(this.Gc,k+1,H),this.Fc=e.Ja.re(this.Fc,A,H));r||this.r5(this.Eg,v)}else this.wj(this.Eg,v,A),this.Gc.push(k+1);this.ta.Ih(v,B,g)?this.tT(b,B,c,d,g,k+2):this.ta.wh(v,g)&&this.qM(c[B.ordinal],v,g,k+2)}}else this.Ie?(y=this.Cj(this.Eg,v,this.mw),0<=y&&(this.Gc=e.Ja.re(this.Gc,k,y),this.Fc=e.Ja.re(this.Fc,
g,y))):(this.wj(this.Eg,v,g),this.Gc.push(k)),this.ta.Ih(v,B,g)?this.tT(b,B,c,d,g,k+1):r&&this.qM(c[B.ordinal],v,g,k+1)}}}}}$$(b,a,c,d,g){if(null!=a){if(null!=b.ic&&!this.ta.Ih(d,a)){if(0<d.length){var k=d.slice(0);k.push(a.ordinal)}else k=d.slice(0);this.ta.Vm(k,a,l.i.ha.Ia,b.zf)}a=null==b.ic||a.level.yb>=b.ic.yb?b.jk(a,!1,""):b.nv(a.hierarchy.zf);a=this.e6(b,a,c,d);if(b.filter.ji&&b.filter.query.va!=l.i.Wb.Rj&&b.filter.query.va!=l.i.Wb.pi){var m=b.filter;var n=this.slice.fd(m.measure.A)}k=!1;var p=
this.FD(b,l.i.ha.Ia);for(let A=0;A<a.length;A++){const C=b.za(a[A]);var t=p[C.level.A];0===A&&this.Jda(C);if(null==c[C.ordinal]&&!t||C.dc)continue;var r=d.slice(0);r.push(C.ordinal);if(this.Y2(r,C,m,n,t))continue;var v=this.ta.Ih(r,C);t=this.ta.wh(r);C.fh&&t&&!v&&(t=!1);var y=0<this.Mb.length?this.Mb[0].length:0;!this.Ie&&this.Uk>r.length&&(this.Mi[y]=1,void 0==this.Gc[y]&&(this.Gc[y]=g));const B=Date.now()-this.yZ;if(B<e.model.C.F.oT||B>=e.model.C.F.oT&&0<g)v?this.$$(b,C,c,d,g+1):t&&this.o1(c[C.ordinal],
r,g+1);else if(v||t)this.UR=!0,0===g&&t&&(this.NKa(r,y),t=!1);v||t?(this.Cja(b)&&(this.Ie?(t=this.Cj(this.Mb,r,this.cO),0<=t?(this.Mi.splice(t,0,2),this.Gc=e.Ja.re(this.Gc,g,t)):(r=this.tM(this.Mb,r,!1),0<=r&&(this.Mi[r]=2))):(this.wj(this.Mb,r),this.Gc[this.Mb[0].length-1]=g,this.Mi[this.Mb[0].length-1]=2)),v&&this.Gc[y]>g&&(this.Gc[y]=g,this.Mi[y]=0)):this.Ie?(v=1<r.length&&this.hxa(this.Mb,d),v=this.Cj(this.Mb,r,this.cO,v?-1:0),0<=v&&(this.Mi.splice(v,0,g==this.Uk-1?0:1),this.Gc=e.Ja.re(this.Gc,
g,v),1<r.length&&(0==A&&(this.Mi[v]=1,this.Gc[v]=this.kea(this.Mb,v)),0==k&&(v=d.slice(0),v.push(0),v=this.tM(this.Mb,v),0<=v&&2!=this.Mi[v]&&(k=!0,this.Mi[v]=2,this.Gc[v]=g-1)))),t||this.$b.bb||this.r5(this.Mb,r)):(this.wj(this.Mb,r),void 0==this.Mi[this.Mb[0].length-1]&&(this.Mi[this.Mb[0].length-1]=0,this.Gc[this.Mb[0].length-1]=g))}}}kea(b,a){if(0==a)return 0;let c=0;for(let d=0;d<b.length&&b[d][a]==b[d][a-1];d++)c++;return c}hxa(b,a){a=a.slice(0);a.push(0);let c=1;for(;c<a.length;){if(this.ica(b,
a))return!0;c++;a[a.length-c]=0}return!1}NKa(b,a){this.Gc[a]=0;this.ta.collapse(b,this.Ob.A,void 0);b=[-1,b[0]];a=this.xH().slice(0);a.push(b);this.F5(a)}Jda(b){this.Hda(this.RR,b)}uza(b){this.Hda(this.$Q,b)}Hda(b,a){-1===b.indexOf(a.level.A)&&(1>=(null!=a.hierarchy.ic?a.level.yb-a.hierarchy.ic.yb+1:a.level.yb)?b.push(a.level.A):b.splice(b.indexOf(a.parent.level.A)+1,0,a.level.A))}mga(b,a){for(let c=0;c<b.length;c++){const d=a.fa(c),g=this.LBa(d,b[c]);if(d.filter.Fh){let k=-1;for(let m=0;m<g.length;m++){if(0>
d.eb.indexOf(g[m])&&1===g.length)return!1;const n=d.eb.indexOf(g[m]);k=n>k?n:k}if(-1===k)return!1}}return!0}LBa(b,a){const c=[];for(b=b.za(a);0!==b.ordinal;)c.push(b.ordinal),b=b.parent;return c}e6(b,a,c,d){if(!this.Oz)return a;var g=this.Xl;if(!this.mga(g,this.Fb))return a;var k=[],m=[],n=[],p=[];const t=this.FD(b,l.i.ha.Ia);for(let v=0;v<a.length;v++){const y=b.za(a[v]);var r=t[y.level.A];null==c[y.ordinal]&&!r||y.dc||(r=d.slice(0),r.push(y.ordinal),r=this.La(r,g,this.lr),isNaN(r)?n.push(y.ordinal):
(k.push(r),m.push(y.ordinal)))}a=this.Th!==l.i.Ba.Nc?e.Ja.sort(k,e.Ja.Ti|e.Ja.Tv):e.Ja.sort(k,e.Ja.Ti|e.Ja.tp|e.Ja.Tv);for(c=0;c<a.length;c++)b=m[a[c]],null!=b&&p.push(b);for(m=0;m<n.length;m++)b=n[m],this.Th==l.i.Ba.Nc?p.push(b):p.splice(m,0,b);return p}Hja(b,a,c,d){if(!this.MD)return a;var g=this.Mj;if(!this.mga(g,this.wb))return a;var k=[],m=[],n=[],p=[];const t=this.FD(b,l.i.ha.Oa);for(let v=0;v<a.length;v++){const y=b.za(a[v]);var r=t[y.level.A];null==c[y.ordinal]&&!r||y.dc||(r=d.slice(0),r.push(y.ordinal),
r=this.La(g,r,this.cp),isNaN(r)?n.push(y.ordinal):(k.push(r),m.push(y.ordinal)))}a=this.gk!==l.i.Ba.Nc?e.Ja.sort(k,e.Ja.Ti|e.Ja.Tv):e.Ja.sort(k,e.Ja.Ti|e.Ja.tp|e.Ja.Tv);for(c=0;c<a.length;c++)b=m[a[c]],null!=b&&p.push(b);for(m=0;m<n.length;m++)b=n[m],this.gk==l.i.Ba.Nc?p.push(b):p.splice(m,0,b);return p}Gda(b,a,c){var d=a.length;(d=this.Nb.bb&&a.length>=this.Vj?this.Dm.fa(d+1):this.Dm.fa(d))&&d.pd&&this.Fda(d,d.pd,b,a,c)}Fda(b,a,c,d,g){if(null!=b.ic&&!this.ta.Fj(d,a)){if(0<d.length){var k=d.slice(0);
k.push(a.ordinal)}else k=d.slice(0);this.ta.Vm(k,a,l.i.ha.Oa,b.zf)}a=null==a.hierarchy.ic||a.level.yb>=b.ic.yb?b.jk(a,!1,""):b.nv(b.zf);a=this.Hja(b,a,c,d);if(b.filter.ji&&b.filter.query.va!=l.i.Wb.Rj&&b.filter.query.va!=l.i.Wb.pi){var m=b.filter;var n=this.slice.fd(m.measure.A)}k=this.FD(b,l.i.ha.Oa);for(let r=0;r<a.length;r++){const v=b.za(a[r]);var p=k[v.level.A];0==r&&this.uza(v);if(null==c[v.ordinal]&&!p||v.dc)continue;var t=d.slice(0);t.push(v.ordinal);if(this.Kfa(t,v,m,n,p))continue;p=this.ta.Gj(t);
const y=this.ta.Fj(t,v);if(this.JI(p,y)&&!y)this.vC(d.length);else if(this.rt(b)||!p||this.Qu)if(this.Ie){const A=this.Cj(this.bd,t,this.JL);0<=A&&!this.Lb.bb&&(this.Jc=e.Ja.re(this.Jc,g,A));p||this.Lb.bb||this.pia(this.bd,t)}else this.wj(this.bd,t),this.Jc.push(g);else this.rt(b)||this.vC(d.length);y?this.Fda(b,v,c,d,g+1):p&&this.Gda(c[v.ordinal],t,g+1);this.JI(p,y)&&(this.rt(b)||!p||this.Qu)&&(this.Ie?(t=this.Cj(this.bd,t,this.JL),0<=t&&(this.Jc=e.Ja.re(this.Jc,-1,t))):(this.wj(this.bd,t),this.Jc.push(-1)))}}oM(b,
a,c,d){var g=a.length;(g=this.Nb.bb&&a.length>=this.Vj?this.Dm.fa(g+1):this.Dm.fa(g))&&g.pd&&this.sT(g,g.pd,b,a,c,d)}get S5(){return"on"===e.model.C.F.Lf||"columns"===e.model.C.F.Lf||0===this.rows.length}get Z5(){return"on"===e.model.C.F.Lf||"rows"===e.model.C.F.Lf||0===this.Ka.length}rt(b){return e.model.C.F.Bk&&void 0!==b&&void 0!==b.bf?b.bf:"on"===e.model.C.F.bf||"columns"===e.model.C.F.bf}JI(b,a){return!b&&!a||this.Qu?!1:"after"===e.model.C.F.IL}Cja(b){return e.model.C.F.Bk&&void 0!==b&&void 0!==
b.bf?b.bf:"on"===e.model.C.F.bf||"rows"===e.model.C.F.bf}get Qu(){return!1}sT(b,a,c,d,g,k){if(null!=b.ic&&!this.ta.Fj(d,a)){if(0<d.length){var m=d.slice(0,-1);m.push(a.ordinal)}else m=d.slice(0);this.ta.Vm(m,a,l.i.ha.Oa,b.zf)}m=d.length;var n=null==b.ic||a.level.yb>=b.ic.yb?b.jk(a,!1,""):b.nv(b.zf);n=this.Hja(a.hierarchy,n,c,d);if(b.filter.ji&&b.filter.query.va!=l.i.Wb.Rj&&b.filter.query.va!=l.i.Wb.pi){var p=a.hierarchy.filter;var t=this.slice.fd(p.measure.A)}a=this.FD(b,l.i.ha.Oa);for(let B=0;B<
n.length;B++){var r=b.za(n[B]),v=a[r.level.A];if((null!=c[r.ordinal]||v)&&!r.dc){var y=d.slice(0);y.push(r.ordinal);if(!this.Kfa(y,r,p,t,v)){v=this.ta.Gj(y,g);var A=this.ta.Fj(y,r);if(m<this.Vj)if(this.Nb.bb&&this.fC<k+1&&(this.fC=k+1),m==this.Vj-1&&v)if(A){for(v=0;v<this.mb.length;v++)this.Ie?(A=this.Cj(this.og,y,this.Tt),0<=A&&(this.Jc=e.Ja.re(this.Jc,k,A),this.Fc=e.Ja.re(this.Fc,g,A))):(this.wj(this.og,y,v),this.Jc.push(k));this.sT(b,r,c,d,g,k+1)}else for(A=0;A<this.mb.length;A++){if(this.rt(b)||
!v||this.Qu)if(this.Ie){var C=this.Cj(this.og,y,this.Tt);0<=C&&(this.Jc=e.Ja.re(this.Jc,k,C),this.Fc=e.Ja.re(this.Fc,A,C))}else this.wj(this.og,y,A),this.Jc.push(k);else this.rt(b)||this.vC(m);this.ta.Gj(y,A)&&this.oM(c[r.ordinal],y,A,k+1)}else{if(this.JI(v,A)&&!A)this.vC(m);else if(this.rt(b)||!v||this.Qu)for(C=0;C<this.mb.length;C++)if(this.Ie){const H=this.Cj(this.og,y,this.Tt);0<=H&&(this.Jc=e.Ja.re(this.Jc,k,H),this.Fc=e.Ja.re(this.Fc,C,H));v||this.pia(this.og,y)}else this.wj(this.og,y,C),this.Jc.push(k);
else this.rt(b)||this.vC(m);this.ta.Fj(y,r,g)?this.sT(b,r,c,d,g,k+1):v&&this.oM(c[r.ordinal],y,g,k+1);if(this.JI(v,A)&&(this.rt(b)||!v||this.Qu))for(r=0;r<this.mb.length;r++)this.Ie?(v=this.Cj(this.og,y,this.Tt),0<=v&&(this.Jc=e.Ja.re(this.Jc,-1,v),this.Fc=e.Ja.re(this.Fc,r,v))):(this.wj(this.og,y,r),this.Jc.push(-1))}else this.JI(v,A)&&!A?this.vC(m):this.rt(b)||!v||this.Qu?this.Ie?(C=this.Cj(this.og,y,this.Tt),0<=C&&(this.Jc=e.Ja.re(this.Jc,k,C),this.Fc=e.Ja.re(this.Fc,g,C))):(this.wj(this.og,y,
g),this.Jc.push(k)):this.rt(b)||this.vC(m),this.ta.Fj(y,r,g)?this.sT(b,r,c,d,g,k+1):v&&this.oM(c[r.ordinal],y,g,k+1),this.JI(v,A)&&(this.rt(b)||!v||this.Qu)&&(this.Ie?(y=this.Cj(this.bd,y,this.JL),0<=y&&(this.Jc=e.Ja.re(this.Jc,-1,y))):(this.wj(this.bd,y),this.Jc.push(-1)))}}}}vC(b){void 0===this.xz[this.Jc.length]&&(this.xz[this.Jc.length]=[]);-1==this.xz[this.Jc.length].indexOf(b)&&this.xz[this.Jc.length].push(b)}get kb(){return 0==this.bd.length&&0==this.Mb.length}set kb(b){}dU(b){return this.Ej?
this.Gc[this.Ob.bb?Math.floor(b/this.mb.length):b]:this.Gc[b]}LH(b){return this.Ej?this.Mi[this.Ob.bb?Math.floor(b/this.mb.length):b]:this.Mi[b]}Zw(){return 1}EM(b){return this.Jc[b]}X2(b){return this.xz[b]}fU(b){return this.Ob.bb&&(b.length>this.Vj||0==this.Vj)?b.length:b.length-1}eU(b){return this.Dn.fa(this.fU(b))}MT(b){return this.Nb.bb&&(b.length>this.Vj||0==this.Vj)?b.length:b.length-1}yH(b){return this.Dm.fa(this.MT(b))}get Fd(){return 0<this.bd.length?this.bd[0].length:0}set Fd(b){}get Ed(){return 0<
this.Mb.length?this.Mb[0].length:0}set Ed(b){}get Sn(){return 0<this.og.length?this.og[0].length:0}set Sn(b){}get Rn(){return this.Ej?(this.$b&&this.$b.bb?this.mb.length:1)*(0<this.Mb.length?this.Mb[0].length:0):this.Eg&&0<this.Eg.length?this.Eg[0].length:0}set Rn(b){}wh(b,a){return this.ta.wh(b,a)}Gj(b,a){return this.ta.Gj(b,a)}Ih(b,a,c){return this.ta.Ih(b,a,c)}Fj(b,a,c){return this.ta.Fj(b,a,c)}Hz(b,a=!0){b=b.slice(0);var c=(a=a&&this.Nb.bb)?b.pop():-1,d=this.og;if(0<d.length)for(var g=0;g<d[0].length;g++){var k=
!0;if(!a||!this.nm||c==this.Fc[g]){var m=this.GD(d,g);if(m.length==b.length){for(var n=0;n<m.length;n++)if(m[n]!=b[n]){k=!1;break}if(k)return g}}}return-1}Lz(b,a=!0){b=b.slice(0);var c=(a=a&&this.Ob.bb)?b.pop():-1,d=this.Ej?this.Mb:this.Eg;if(0<d.length)for(var g=0;g<d[0].length;g++){var k=!0;if(!a||!this.nm||c==this.Fc[g]){var m=this.GD(d,g);if(m.length==b.length){for(var n=0;n<m.length;n++)if(m[n]!=b[n]){k=!1;break}if(k)return g}}}return-1}Vn(b,a=!1){return 0>b||null==this.Ob||null==this.mb?null:
a&&this.Ob.bb&&this.nm?this.Ej?(b=Math.floor(b/this.mb.length),void 0==this.Mb[0][b]?null:this.GD(this.Mb,b)):void 0==this.Eg[0][b]?null:this.GD(this.Eg,b):e.v(this.Mb[0])||e.v(this.Mb[0][b])?null:this.GD(this.Mb,b)}ak(b,a=!1){return 0>b||null==this.Nb||null==this.mb?null:a&&this.Nb.bb&&this.nm?void 0==this.og[0][b]?null:this.GD(this.og,b):void 0==this.bd[0]?[0]:void 0==this.bd[0][b]?null:this.GD(this.bd,b)}K1(){return null}hU(b){return this.Ej&&this.Ob.bb?void 0==this.Mb[0][Math.floor(b/this.Da.length)]?
-1:b%this.mb.length:void 0==this.Fc[b]?-1:this.Ob.bb&&this.nm?this.Fc[b]:-1}OT(b){return void 0===this.Fc[b]?-1:this.Nb.bb&&this.nm?this.Fc[b]:-1}Gi(b,a){if(void 0!==this.mb&&void 0!==this.Ob&&void 0!==this.Nb)return this.nm?this.Ob.bb?this.Ej?(a=b%this.mb.length,void 0==this.Mb[0][Math.floor(b/this.Da.length)]?this.mb[0]:this.mb[a]):void 0===this.Fc[b]?this.mb[0]:this.mb[this.Fc[b]]:void 0===this.Fc[a]?this.mb[0]:this.mb[this.Fc[a]]:this.mb[0]}cd(b,a,c){return this.ta.cd(b,a,c)}save(b,a,c,d,g){return this.ta.save(b,
a,c,d,g)}HD(b,a,c){return this.ta.HD(b,a,c)}Ps(b,a){return this.ja.ga.Ec?null:null==b&&null==a?null:this.ta.oCa(b,a)}Wg(b,a,c){b=this.ta.La(b,a,c);this.ja.ga.Aa!==l.i.ra.Cc&&this.ja.ga.Aa!==l.i.ra.Pd||!e.model.C.F.co||(b=!c.Qa&&l.Kt.R().B2(b)?l.Kt.R().d2(b):b);return b}La(b,a,c){if(c.$===l.i.ea.cs)return b=this.Wg(b,a,c),c=this.Wg([],[],c),isNaN(b)&&!isNaN(c)?0:Math.abs(100*b/c);if(c.$===l.i.ea.Cp)return b=this.Wg(b,a,c),c=this.Wg([],a,c),isNaN(b)&&!isNaN(c)?0:Math.abs(100*b/c);if(c.$===l.i.ea.Rq)return a=
this.Wg(b,a,c),c=this.Wg(b,[],c),isNaN(a)&&!isNaN(c)?0:Math.abs(100*a/c);if(c.$===l.i.ea.Qq){var d=this.Wg(b,a,c);b=b.slice(0,b.length-1);c=this.Wg(b,a,c);return isNaN(d)&&!isNaN(c)?0:Math.abs(100*d/c)}if(c.$===l.i.ea.Pq)return d=this.Wg(b,a,c),a=a.slice(0,a.length-1),c=this.Wg(b,a,c),isNaN(d)&&!isNaN(c)?0:Math.abs(100*d/c);if(c.$===l.i.ea.Si){d=this.Wg([],[],c);const g=this.Wg(b,[],c),k=this.Wg([],a,c);c=this.Wg(b,a,c);return Math.abs(d*c/(k*g))}return c.$===l.i.ea.ko?this.vea(b,a,c,!1):c.$===l.i.ea.qn?
this.wea(b,a,c,!1):c.$===l.i.ea.qo?this.vea(b,a,c,!0):c.$===l.i.ea.sn?this.wea(b,a,c,!0):c.$===l.i.ea.tn||c.$===l.i.ea.so?this.ta.Sea(b,a,c):this.Wg(b,a,c)}wea(b,a,c,d){var g=-1;if(0<this.Ka.length){var k=this.Nb.bb&&1<this.mb.length;g=a.slice();k&&g.push(0);g=this.Hz(g,k);if(0==g||0==a.length)return NaN;if(0>g)return 0;k=this.ak(k&&a.length<=this.Nb.ke?g-this.mb.length:g-1,k);if(null==k||a.length!=k.length&&1!=a.length)return NaN;a.length!=k.length&&1==a.length&&(k=this.kCa(g,a.length));if(null==
k)return NaN;k=this.Wg(b,k,c);isNaN(k)&&!d&&(k=0)}b=this.Wg(b,a,c);isNaN(b)&&0<g&&!d&&(b=0);return d?(b-k)/k*100:b-k}vea(b,a,c,d){var g=-1;if(0<this.rows.length){var k=this.Ob.bb&&1<this.mb.length;g=b.slice();k&&g.push(0);g=this.Lz(g,k);if(0==g||0==b.length)return NaN;if(0>g)return 0;k=this.Vn(k&&b.length<=this.Ob.ke?g-(this.mb.length+1):g-1,k);if(null==k||b.length!=k.length&&1!=b.length)return NaN;b.length!=k.length&&1==b.length&&(k=this.lCa(g,b.length));if(null==k)return NaN;k=this.Wg(k,a,c);isNaN(k)&&
!d&&(k=0)}b=this.Wg(b,a,c);isNaN(b)&&0<g&&!d&&(b=0);return d?(b-k)/k*100:b-k}lCa(b,a){if(0>b||null==this.Ob||null==this.mb||e.v(this.Mb[0])||e.v(this.Mb[0][b]))return null;b=this.Lia(this.Mb,a,b);return 0<=b&&0==this.Mb[a][b]?this.Qea(b,a,this.Mb):null}kCa(b,a){if(0>b||null==this.Ob||null==this.mb)return null;if(void 0==this.bd[0])return[0];if(void 0==this.bd[0][b])return null;b=this.Lia(this.bd,a,b);return 0<=b&&0==this.bd[a][b]?this.Qea(b,a,this.bd):null}Qea(b,a,c){let d=[];for(let g=0;g<a;g++)d.push(c[g][b]);
return d}Lia(b,a,c){if(b[a]&&0==b[a][c]){for(c--;0!=b[a][c]&&0<=c;)c--;return c}return-1}eq(b,a,c){b=this.ta.La(b,a,c);return l.Kt.R().ECa(b)}ww(b,a,c,d){return this.ta.ww(b,a,c,d)}Uw(b){this.$i&&(this.ja.ga.Ec||this.oza(b))}oza(b){var a=this.slice.rows.Bb(b.A)?l.i.ha.Ia:l.i.ha.Oa;b=a==l.i.ha.Ia?this.slice.wb.indexOf(b.A):this.slice.Fb.indexOf(b.A);if(b+1!=(a==l.i.ha.Ia?this.slice.wb.length:this.slice.Fb.length)){var c=[],d=(a==l.i.ha.Ia?this.slice.wb:this.slice.Fb).slice(0,b+1);this.$M([],d,c);d=
a==this.slice.As.A?this.slice.As.ke:-1;for(var g=this.slice.gd(),k=0;k<c.length;k++)if(0<=d&&d<=b&&1<g.length)for(var m=0;m<g.length;m++){var n=g[m];c[k].length>d?this.expand(c[k],a,n,!1):this.expand(c[k],a,void 0,!1)}else this.expand(c[k],a,void 0,!1);this.ja.Ha(new l.AY(l.i.Md.xF));this.ja.Ya(e.model.Xb.Vc.rk)}}$M(b,a,c,d=!0){if(0!=a.length){var g=a.fa(0);var k=g.filter.Gh?g.eb.length:g.Zi;for(var m=0;m<k;m++){var n=g.filter.Gh?g.za(g.eb[m]):g.za(m);if(!n.dc){var p=b.slice(0);p.push(n.ordinal);
(d||!d&&1==a.length)&&c.push(p.slice(0));this.$M(p.slice(0),a.slice(1),c,d)}}}}Ew(b){this.$i&&(this.ja.ga.Ec||this.mwa(b))}mwa(b){var a=this.slice.rows.Bb(b.A)?l.i.ha.Ia:l.i.ha.Oa;b=a==l.i.ha.Ia?this.slice.wb.indexOf(b.A):this.slice.Fb.indexOf(b.A);if(b+1!=(a==l.i.ha.Ia?this.slice.wb.length:this.slice.Fb.length)){var c=[],d=(a==l.i.ha.Ia?this.slice.wb:this.slice.Fb).slice(0,b+1);this.$M([],d,c,!1);d=a==this.slice.As.A?this.slice.As.ke:-1;for(var g=this.slice.gd(),k=0;k<c.length;k++)if(0<=d&&d<=b&&
1<g.length)for(var m=0;m<g.length;m++){var n=g[m];c[k].length>d?this.collapse(c[k],a,n,!1):this.collapse(c[k],a,void 0,!1)}else this.collapse(c[k],a,void 0,!1);this.ja.Ha(new l.AY(l.i.Md.m7));this.ja.Ya(e.model.Xb.Vc.rk)}}sort(){this.Ie=!1;this.aW();this.ja.Ya(e.model.Xb.Vc.rk)}get dV(){return this.vaa}get cV(){return this.uaa}expand(b,a,c,d=!0){a==l.i.ha.Ia&&(this.vaa=b);a==l.i.ha.Oa&&(this.uaa=b);var g=this.slice.td(a),k=b.slice(0);k.unshift(c&&g.bb?c.index:-1);if(a==l.i.ha.Ia)if(this.WD){g=this.xH();
var m=k.toString().toLocaleLowerCase(),n=-1;for(let p=0;p<g.length;p++)if(m===g[p].toString().toLocaleLowerCase()){n=p;break}0<=n&&g.splice(n,1);this.F5(g)}else g=this.NM().slice(0),g.push(k),this.eja(g);if(a==l.i.ha.Oa)if(this.UD){g=this.tD();k=k.toString().toLocaleLowerCase();m=-1;for(n=0;n<g.length;n++)if(k===g[n].toString().toLocaleLowerCase()){m=n;break}0<=m&&g.splice(m,1);this.Wia(g)}else g=this.LM().slice(0),g.push(k),this.dja(g);this.ja.expand(b,a,c,d)}collapse(b,a,c,d=!0){a==l.i.ha.Ia&&(this.vaa=
b.slice(0,b.length-1));a==l.i.ha.Oa&&(this.uaa=b.slice(0,b.length-1));var g=this.slice.td(a),k=b.slice(0);k.unshift(c&&g.bb?c.index:-1);if(a==l.i.ha.Ia)if(this.WD)g=this.xH().slice(0),g.push(k),this.F5(g);else{g=this.NM();var m=k.toString().toLocaleLowerCase(),n=-1;for(let p=0;p<g.length;p++)if(m===g[p].toString().toLocaleLowerCase()){n=p;break}0<=n&&g.splice(n,1);this.eja(g)}if(a==l.i.ha.Oa)if(this.UD)g=this.tD().slice(0),g.push(k),this.Wia(g);else{g=this.LM();k=k.toString().toLocaleLowerCase();
m=-1;for(n=0;n<g.length;n++)if(k===g[n].toString().toLocaleLowerCase()){m=n;break}0<=m&&g.splice(m,1);this.dja(g)}this.ja.collapse(b,a,c,d);d&&this.ja.Ya(e.model.Xb.Vc.rk)}Xp(b,a,c,d){var g=this.slice.td(c),k=[],m=b.slice(0);m.unshift(a.A);m.unshift(d&&g.bb?d.index:-1);if(c==l.i.ha.Ia)if(this.VD)k=this.IM().slice(0),k.push(m),this.bja(k);else{g=this.EH();for(var n=0;n<g.length;n++){var p=g[n];"string"==typeof p[0]&&(p=p.slice(1));p.toString().toLocaleLowerCase()!=m.toString().toLocaleLowerCase()&&
k.push(p)}this.J5(k)}if(c==l.i.ha.Oa)if(this.TD)k=this.HM().slice(0),k.push(m),this.aja(k);else{g=this.DH();for(n=0;n<g.length;n++)p=g[n],"string"==typeof p[0]&&(p=p.slice(1)),p.toString().toLocaleLowerCase()!=m.toString().toLocaleLowerCase()&&k.push(p);this.I5(k)}this.ja.Xp(b,a,c,d);this.ja.Ya(e.model.Xb.Vc.rk)}iva(b,a){for(;void 0!==b&&b.level.A!=a;)b=b.parent;return b}Ee(b,a,c,d){var g=this.slice.td(c),k=[],m=b.slice(0);m.unshift(a.A);m.unshift(d&&g.bb?d.index:-1);if(c==l.i.ha.Ia)if(this.VD){g=
this.IM();for(var n in g){var p=g[n];p.toString().toLocaleLowerCase()!=m.toString().toLocaleLowerCase()&&k.push(p)}this.bja(k)}else k=this.EH().slice(0),k.push(m),this.J5(k);if(c==l.i.ha.Oa)if(this.TD){g=this.HM();for(n in g)p=g[n],p.toString().toLocaleLowerCase()!=m.toString().toLocaleLowerCase()&&k.push(p);this.aja(k)}else k=this.DH().slice(0),k.push(m),this.I5(k);this.ja.Ee(b,a,c,d);this.ja.Ya(e.model.Xb.Vc.rk)}Vm(b,a,c,d,g){var k=this.slice.td(c),m=b.slice(0);m.unshift(a.A);m.unshift(d&&k.bb?
d.index:-1);m.unshift(g);c==l.i.ha.Ia?(k=this.EH().slice(0),k.push(m),this.J5(k)):(k=this.DH().slice(0),k.push(m),this.I5(k));this.ja.Vm(b,a,c,d,g)}j3(b){return!0===this.sW[b]}KW(b){this.sW[b]=!0}R2(b){return!0===this.BS[b]}G5(b,a=!0){this.BS[b]=a}static dispose(){f.instance&&(f.instance.rA(),f.instance.Vd());f.instance=null}}f.counter=0;h.QQ=f})(l.Te||(l.Te={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{static get Hca(){if(f.J)return f.J instanceof h.cY?"flat":f.J instanceof h.jP?"chart":"pivot"}static bka(b){var a=b.U("gridType");return b.U("viewType")===e.K.Jd.nj?"chart":a===e.K.Y.wf.rj?"flat":"pivot"}static Bc(b="",a=!0){""==b&&(b=e.model.C.F.me==e.K.Jd.nj?"chart":e.model.C.F.sc?"flat":"pivot");b="flat"==b?h.cY.R():"chart"==b?h.jP.R():h.QQ.R();b.bS();f.J!=b?(f.J&&f.J.rA(),f.J=b,b.load()):a&&e.model.C.F.uv&&(b.load(),e.model.C.F.uv=!1);f.J=b;return f.J}static J1(b){f.Bc("chart");
return b?h.Z9.R(f.J):f.J}static dispose(){h.cY.dispose();h.jP.dispose();h.QQ.dispose();h.Z9.dispose();f.J=null}}f.J=null;h.Qi=f;(function(b){b.aQa="pivot";b.rj="flat";b.XNa="chart"})(h.Ima||(h.Ima={}))})(l.Te||(l.Te={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends w.Mh{constructor(){super();this.mb=[];this.dG=!1;this.pA=()=>this.qE();this.g_=!1;this.Zu=[];this.ol=[];this.wa=l.Ma.R()}get ta(){return null!=this.FK?this.FK:this.wa.ta}set ta(b){this.FK=b}get slice(){return null!=this.Pb?this.Pb:this.wa.qa}set slice(b){this.Pb=b}get Da(){return this.mb}set Da(b){}get nm(){return 1<this.mb.length}set nm(b){}get $i(){return this.slice&&this.dG}set $i(b){}static R(){null==f.instance&&(f.instance=new f);return f.instance}bS(){this.wa.N(l.Ag.hl,
this.pA,1)}rA(){this.wa.rb(l.Ag.hl,this.pA)}load(){if(null==this.ta&&(this.ta=this.wa.ta,null==this.ta))return;this.slice&&(this.wa.ga.Ec||(this.ta.expand([],l.i.ha.Ia,void 0),this.ta.expand([],l.i.ha.Oa,void 0)),this.aW(),this.dG=!0)}qE(){this.reset();this.load()}aW(){var b,a=this.slice?this.slice.flatten(!0,!0):new e.ub;this.ol.length=0;this.HL=new e.ub;this.vc=this.wa.O.vc();this.mb=[];for(b=0;b<a.length;b++){var c=a.fa(b);var d=a.fa(b)instanceof l.O.Ct?this.wa.O.nf(c.A):a.fa(b);void 0===d&&(d=
this.wa.O.gr.getItem(c.A));d&&this.mb.push(d);d=this.ta.th.indexOf(c.A);if(c.Ef)for(var g=1;g<c.ua.length;g++)this.ol.push([d,g]),this.HL.Ta(c.A,this.ol.length-1);else this.ol.push(d),this.HL.Ta(c.A,this.ol.length-1);this.Bi=this.slice.$g}this.sort()}get ke(){return 0}set ke(b){}get EI(){return 0}set EI(b){}get Ln(){return 0}set Ln(b){}get dA(){return 0}set dA(b){}get rows(){return new e.ub}set rows(b){}get wb(){return new e.ub}set wb(b){}get Fl(){return[]}set Fl(b){}get NC(){return[]}set NC(b){}get Ka(){return new e.ub}set Ka(b){}get Fb(){return new e.ub}set Fb(b){}get qb(){return new e.ub}set qb(b){}get $b(){return new l.O.Tr(l.i.ha.Ia)}set $b(b){}get Lb(){return new l.O.Tr(l.i.ha.Oa)}set Lb(b){}get Uk(){return 1}set Uk(b){}get Ck(){return 0}set Ck(b){}set gk(b){}get gk(){return null}set Mj(b){}get Mj(){return null}set cp(b){}get cp(){return null}get MD(){return!1}set MD(b){}set Th(b){}get Th(){return null}set Xl(b){}get Xl(){return null}set lr(b){}get lr(){return null}get Oz(){return!e.v(this.Bi)&&
0<this.Bi.length}set Oz(b){}set Bi(b){b!==this.slice.$g&&(this.g_=!0);this.slice.$g=b}get Bi(){return this.slice.$g}PT(b){if(e.v(this.Bi))return null;for(var a=0;a<this.Bi.length;a++){var c=this.Bi[a];if(c.measure.A==b)return c}}reset(){this.dG=!1;this.mb=[];this.Zu.length=0;this.ol.length=0;this.HL=new e.ub;this.vc=null}get kb(){return 0==this.ol.length}set kb(b){}X2(){return null}dU(){return 0}LH(){return 0}Zw(){return 0}EM(){return 1}fU(){return 0}eU(b){return this.yH(b)}MT(){return 0}yH(b){e.v(this.vc)&&
(this.vc=this.wa.O.vc());return this.vc.getItem(this.ta.th[b[0]])}get Fd(){return this.ol.length}set Fd(b){}get Ed(){return this.ta?this.ta.result[0]:0}set Ed(b){}get Sn(){return this.ol.length}set Sn(b){}get Rn(){return this.ta.Kz()}set Rn(b){}wh(){return!1}Gj(){return!1}Ih(){return!1}Fj(){return!1}Hz(b){for(var a=0;a<this.ol.length;a++)if(this.ol[a]instanceof Array){if(this.ol[a][0].toString()==b.toString())return a}else if(this.ol[a].toString()==b.toString())return a;return-1}Lz(b){if(0<this.Zu.length&&
b[0]<this.Zu.length)for(var a=0;a<this.Zu.length;a++){if(this.Zu[a].toString()==b.toString())return a}else return b[0];return-1}Vn(b){return 0>b?null:0<this.Zu.length&&b<this.Zu.length?[this.Zu[b]]:[b]}ak(b,a,c=!1){return 0>b?null:0<this.ol.length&&b<this.ol.length?!c&&this.ol[b]instanceof Array?[this.ol[b][0]]:[this.ol[b]]:[b]}K1(b){b=this.HL.getItem(b);return this.ak(b,!1)}hU(){return 0}OT(){return 0}Gi(b,a){b=this.ak(a);var c=this.ta.th[b[0]];return this.mb.find(d=>d.A===c)}HD(b,a,c){return null==
b?this.ta.Fea(null,c):this.ta.Fea(b[0],c)}La(b,a,c,d){if(null==a&&null==b)return this.ta.La([],[],c,!0);if(this.ta instanceof l.local.ZP||this.ta instanceof l.external.jc.P6)return this.ta.XT(b[0],a[0],c,c.type!=l.i.Ra.wc,d)}Ps(b,a){return(null!=b||null!=a)&&this.ta instanceof l.local.ZP?this.ta.Ps(b[0]):null}sort(){this.f_();this.g_&&(this.g_=!1,this.wa.Ya(e.model.Xb.Vc.rk))}f_(){if(this.Oz){for(var b=[],a=null,c=null,d=0;d<this.Bi.length;d++){var g=this.Bi[d];g.hierarchy=this.wa.O.Ok(g.measure.A);
c=void 0!==g.hierarchy?g.hierarchy.A:g.measure.A;a=void 0!==g.hierarchy?g.hierarchy.u2:!1;if(-1!=this.HL.indexOf(c)){g.jg=this.K1(c);if(g.measure.type==l.i.Ra.wc||a)g.XS=this.sBa(g.hierarchy);b.push(g)}}this.Bi=b;b=[];for(a=0;a<this.Rn;a++){c=[];for(d=0;d<this.Bi.length;d++)g=this.Bi[d],c[d]=this.uCa(a,g.jg,g.measure,g.hierarchy,!e.v(g.XS));b[a]=[c,a]}b.sort((k,m)=>this.dMa(k[0],m[0]));this.Zu=b.map(k=>k[1])}else this.Zu.length=0}sBa(b){var a=!1;b.type==l.i.Ic.Ua&&2<b.ua.length&&(a=!0);if(b.u2||!a){a=
{};const c=b.jk(b.pd,!1,l.i.Ba.hc);for(let d=0;d<c.length;d++){const g=b.za(c[d]);a[g.A]=d}return a}return null}uCa(b,a,c,d,g){if(null!=d&&d.type==l.i.Ic.Ua&&2<d.ua.length)return g=this.La([b],a,c,d.ua.length-1),d.za(g).nc;b=this.La([b],a,c);if(c.type!=l.i.Ra.wc)return isNaN(b)?Number.NEGATIVE_INFINITY:b;d=d.za(b);return g?d.A:d.caption}dMa(b,a){let c=0;for(let d=0;d<this.Bi.length;d++){const g=this.Bi[d];if(b[d]!=a[d]){c=e.v(g.XS)?"number"==typeof b[d]&&"number"==typeof a[d]?b[d]-a[d]:e.Ja.localeCompare(b[d],
a[d]):g.XS[b[d]]-g.XS[a[d]];g.sort==l.i.Ba.Nc&&(c*=-1);break}}return c}ww(b,a,c,d){return this.ta.sva(b,c,d)}eq(){return null}Uw(){}Ew(){}get dV(){return null}get cV(){return null}expand(){}collapse(){}Xp(){}Ee(){}cd(){return[]}save(b,a,c,d){return this.ta.VKa(b,a,c,d)}get Ej(){return!1}set Ej(b){}static dispose(){f.instance&&(f.instance.Vd(),f.instance.rA());f.instance=null}j3(){return!1}KW(){}R2(){return!1}G5(){}}h.cY=f})(l.Te||(l.Te={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.QQ{constructor(){super()}static R(){null==f.Be&&(f.Be=new f,f.Be.iC="chart"+h.QQ.counter);return f.Be}get Ej(){return!1}set Ej(b){}get Qu(){return!0}static dispose(){f.Be&&(f.Be.rA(),f.Be.Vd());f.Be=null}}h.jP=f})(l.Te||(l.Te={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends w.Mh{constructor(b){super();this.J=b}static R(b){null==f.instance&&(f.instance=new f(b));return f.instance}static dispose(){f.instance&&(f.instance.Vd(),f.instance.rA());f.instance=null}get ta(){return this.J.ta}set ta(b){this.J.ta=b}get slice(){return this.J.slice}set slice(b){this.J.slice=b}get Da(){return this.J.Da}set Da(b){}get $i(){return this.J.$i}set $i(b){}bS(){this.J.bS()}rA(){this.J.rA()}load(){this.J.load()}get ke(){return this.J.ke}set ke(b){}get EI(){return this.J.Ln}set EI(b){}get nm(){return 1<
this.Da.length}set nm(b){}get Ln(){return this.J.EI}set Ln(b){}get dA(){return this.J.dA}set dA(b){}get rows(){return this.J.Ka}set rows(b){}get wb(){return this.J.Fb}set wb(b){}get Fl(){return this.J.NC}set Fl(b){}get NC(){return this.J.Fl}set NC(b){}get Ka(){return this.J.rows}set Ka(b){}get Fb(){return this.J.wb}set Fb(b){}get qb(){return this.J.qb}set qb(b){}get $b(){return this.J.Lb}set $b(b){}get Lb(){return this.J.$b}set Lb(b){}get Uk(){return this.J.Ck}set Uk(b){}get Ck(){return this.J.Uk}set Ck(b){}set gk(b){}get gk(){return this.J.Th}set Mj(b){}get Mj(){return this.J.Xl}set cp(b){}get cp(){return this.J.lr}get MD(){return this.J.Oz}set MD(b){}set Th(b){}get Th(){return this.J.gk}set Xl(b){}get Xl(){return this.J.Mj}set lr(b){}get lr(){return this.J.cp}get Oz(){return this.J.MD}set Oz(b){}set Bi(b){}get Bi(){return null}PT(){return null}reset(){}get kb(){return this.J.kb}set kb(b){}X2(){return null}dU(b){return this.J.EM(b)}LH(b){return this.J.Zw(b)}EM(b){return this.J.dU(b)}Zw(b){return this.J.LH(b)}fU(b){return this.J.fU(b)}eU(b){return this.J.eU(b)}MT(b){return this.J.MT(b)}yH(b){return this.J.yH(b)}get Fd(){return this.J.Ed}set Fd(b){}get Ed(){return this.J.Fd}set Ed(b){}get Sn(){return this.J.Rn}set Sn(b){}get Rn(){return this.J.Sn}set Rn(b){}wh(b,
a){return this.J.Gj(b,a)}Gj(b,a){return this.J.wh(b,a)}Ih(b,a,c){return this.J.Fj(b,a,c)}Fj(b,a,c){return this.J.Ih(b,a,c)}Hz(b){return this.J.Lz(b)}Lz(b){return this.J.Hz(b)}Vn(b,a=!1){return this.J.ak(b,a)}ak(b,a=!1){return this.J.Vn(b,a)}hU(b){return this.J.OT(b)}OT(b){return this.J.hU(b)}Gi(b,a){return this.J.Gi(b,a)}HD(b,a,c){return this.J.HD(b,a,c)}Ps(){return null}La(b,a,c){return this.J.La(a,b,c)}sort(){return this.J.sort()}ww(b,a,c,d){return this.J.ww(b,a,c,d)}eq(b,a,c){return this.J.eq(b,
a,c)}Uw(b){this.J.Uw(b)}Ew(b){this.J.Ew(b)}get dV(){return null}get cV(){return null}expand(b,a,c,d=!0){a=a==l.i.ha.Oa?l.i.ha.Ia:l.i.ha.Oa;this.J.expand(b,a,c,d)}collapse(b,a,c,d=!0){a=a==l.i.ha.Oa?l.i.ha.Ia:l.i.ha.Oa;this.J.collapse(b,a,c,d)}Xp(b,a,c,d){c=c==l.i.ha.Oa?l.i.ha.Ia:l.i.ha.Oa;this.J.Xp(b,a,c,d)}Ee(b,a,c,d){c=c==l.i.ha.Oa?l.i.ha.Ia:l.i.ha.Oa;this.J.Ee(b,a,c,d)}cd(b,a,c){return this.J.cd(b,a,c)}save(b,a,c,d,g){return this.J.save(b,a,c,d,g)}K1(){return null}get Ej(){return this.J.Ej}set Ej(b){}j3(){return!1}KW(){}R2(){return!1}G5(){}}
h.Z9=f})(l.Te||(l.Te={}))})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){(function(h){class f extends h.jP{constructor(){super()}}h.cna=f})(l.Te||(l.Te={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(b){void 0!==b.A&&(this.A=b.A);void 0!==b.caption&&(this.caption=b.caption);void 0!==b.Ki&&(this.Ki=b.Ki);void 0!==b.parent&&(this.parent=b.parent);void 0!==b.nc&&(this.nc=b.nc);void 0!==b.level&&(this.level=b.level);void 0!==b.ordinal&&(this.ordinal=b.ordinal);void 0!==b.fh&&(this.fh=b.fh);void 0!==b.dc&&(this.dc=b.dc);void 0!==b.Cf&&(this.Cf=b.Cf);void 0!==b.value&&(this.value=b.value);void 0!==b.Ye&&(this.Ye=b.Ye)}get l3(){return void 0!==
this.parent||void 0!==this.dc||void 0!==this.Ye||void 0!==this.eh||void 0!==this.Cf||void 0!==this.fh?!1:!0}clone(){return new f(this)}}h.be=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{TB(b){if(this.wk(b))return this.data[b]}eu(b,a){this.data||(this.data={});this.data[b]=a}Hsa(){this.data&&delete this.data._descendants_}wk(b){return this.data&&this.data.hasOwnProperty(b)}xb(b){for(var a in b)null!=this[a]&&(this[a]=b[a])}}h.r$=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.r${constructor(b,a){super();this.A=b;this.caption=a}set A(b){this.$K=b}get A(){return this.$K}set caption(b){e.v(b)&&(b="");b=""+b;""===b.trim()?this.yc=e.model.B.j.Nl:this.yc=b}get caption(){return e.model.Tb.valid(this.yc)?this.yc:e.model.Tb.validate(this.yc)}get label(){return this.wk("_label")?this.TB("_label"):this.caption}set label(b){""!=b.trim()&&this.eu("_label",b)}get C2(){return this.wk("_label")}toString(){return`{uniqueName: "${this.A}", caption: "${this.caption}"`}Sa(){var b=
{};b.uniqueName=this.A;b.caption=this.caption;return b}}h.mF=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){(function(h){class f extends h.mF{constructor(b,a,c){super(b,a);this.A$=!1;this.QO=c}get QO(){return this.Gta}set QO(b){this.Gta=b}get active(){return this.A$}set active(b){this.A$=b}}h.xX=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.mF{constructor(b,a=""){super(b,a);this.Fg=l.i.Ic.Hv;this.JR=0;this.gs=this.hR=this.$t="";this.WB=!0;this.Rh=f.vJ;this.VR=null;this.pg=[];this.Tl=new u.HQ(!e.model.C.F.zw);this.Ky=new u.HQ(!e.model.C.F.zw);this.ow=[];this.cr=[];this.ZB=!1;this.os={};this.Bn=new e.ub;this.IZ=!1;this.oR=!0;this.ER=this.DR=!1;this.OR=[];this.fR=[];this.Ry=[];this.VB={};this.NR={};this.Tj=null;this.cache=[];this.ml=[];this.hG=[]}set Ci(b){this.lZ=b}get Ci(){return this.lZ}get type(){return this.Fg}set type(b){this.Fg=
b}get origin(){return this.JR}set origin(b){this.JR=b;this.IZ=1==(b&1)}get fn(){return this.Tl.length}set fn(b){}get Zi(){return this.Tl.length}get Td(){return this.ZB}set Td(b){this.ZB=b}get Oc(){return this.$t}set Oc(b){"undefined"==b?this.$t="":this.$t=b}get Xh(){return this.WB}set Xh(b){}get mapping(){return l.Ma.R().ga.mapping}get ua(){return this.Bn}set ua(b){}get bf(){return this.e_}set bf(b){this.e_=b}get description(){return this.Tj}set description(b){this.Tj=b}get vN(){const b=2<this.ua.length&&
this.type!==l.i.Ic.Ua?this.ua.fa(1).A:this.Ci.type===l.i.dB.qB?this.Ci.A:this.A;return e.model.Wa.R().ja.ga.mapping.La(b,"filters")}Sh(b){b.hierarchy=this;this.WB||b.yb++;this.Bn.Ta(b.A,b);this.os[b.A]=[]}hua(b){b.hierarchy=this;this.WB||b.yb++;this.Bn.hL(b.A,b,1);for(var a=2;a<this.Bn.length;a++){var c=this.Bn.fa(a);c&&c.yb++}this.os[b.A]=[]}Ou(b){return this.Bn.getItem(b)}get Ef(){return this.Ts||(this.Xh?2<this.ua.length:1<this.ua.length)}set Ef(b){}get We(){return"[Measures]"==this.A}set We(b){}get Ts(){return this.DR}set Ts(b){this.DR=
b}get tN(){return this.ER}set tN(b){this.ER=b}get sM(){return this.oR}set sM(b){this.oR=b}wz(b){null!=b&&(b.eh=!0,this.os[b.level.A].push(b.ordinal))}Z0(b){b.eh=!1;this.os[b.level.A].splice(b.ordinal,1);b=b.Ow;for(var a=0;a<b.length;a++){var c=this.za(b[a]);c.eh&&this.Z0(c)}}gM(b){return this.os[b.A]}Vba(){for(let b in this.os)this.os.hasOwnProperty(b)&&(this.os[b]=[])}get jda(){for(var b=1;b<this.ua.length;b++){var a=this.ua.fa(b);if(!(this.ic&&a.yb<this.ic.yb)&&0===this.gM(a).length)return b}return 1}set jda(b){}sua(b){var a=
void 0===b.ordinal?this.Tl.add(b.A):this.Tl.add(b.A,b.ordinal);if(e.v(b.parent))if(e.v(b.Ki))var c=this.pd;else c=this.Ib(b.Ki),null!==c?this.cr[a]=c.ordinal:c=this.pd;else c=b.parent,this.cr[a]=c.ordinal;void 0!==b.nc&&(this.ow[a]=b.nc);void 0!==b.caption&&b.caption!==b.A&&this.Ky.add(b.caption,a);c.X(a);this.wW(c);this.JC();this.ml=[];return a}AD(){return new h.oJ(this)}pc(b){if(b.l3){var a=this.sua(b);return this.za(a)}var c=this.AD();void 0!==b.parent&&(c.parent=b.parent);void 0===b.dc&&void 0===
c.parent&&(c.parent=e.ka(b.Ki)?this.pd:this.Ib(b.Ki));c.parent&&(e.v(c.level)||c.level.yb<=c.parent.level.yb)&&(a=c.parent.level.yb+1,a=new h.Dv(c.parent.level.A+" "+a,this.caption+" "+a,a),this.Sh(a),this.Ts=!0);void 0!==b.ordinal?(this.Tl.add(b.A,b.ordinal),c.ordinal=b.ordinal):(a=this.Tl.add(b.A),c.ordinal=a);void 0!==b.nc&&(this.ow[c.ordinal]=b.nc,c.nc=b.nc);this.pg[c.ordinal]=c;void 0!==b.caption&&this.Ky.add(b.caption,c.ordinal);null!=c.parent&&(c.parent.X(c),this.cr[c.ordinal]=c.parent.ordinal,
this.wW(c.parent));e.v(b.fh)||(c.fh=b.fh);this.JC();this.ml=[];return c}wW(b){this.pg[b.ordinal]=b}Nda(b){b=this.Ky.find(b);return-1===b?null:this.za(b)}Oda(b){b=this.Tl.find(b);return-1===b?null:this.za(b)}Ib(b){b=this.ex(""+b);return-1<b?this.za(b):null}ex(b){var a=this.Tl.find(b);-1===a&&this.Ef&&(a=this.Tl.find(`[${b}]`));return a}za(b){if(void 0===this.pg[b]){var a=this.AD();a.ordinal=b;a.nc=this.ow[b];a.parent=this.cr[b]?this.za(this.cr[b]):this.pd;return a}return this.pg[b]}SM(b){return this.ow[b]}Pu(b){if(e.model.C.F.qr&&
(null===b||"null"===b))return b=this.ex("null"),0<=b?this.za(b):null;"number"!==typeof b&&(b=parseFloat(b));if(isNaN(b))for(var a=1;a<this.ow.length;a++)if(isNaN(this.ow[a]))return this.za(a);b=this.ow.indexOf(b);return 0<=b?this.za(b):null}vr(b){for(var a=[],c,d=0;d<b.length;d++)c=this.za(b[d]),e.v(c)||e.ka(c.Fi)||a.push(c.Fi);return a}b2(b){return this.Tl.get(b)}zD(b){var a=this.Ky.get(b);void 0===a&&(a=this.Tl.get(b));e.model.Tb.valid(a)||(a=e.model.Tb.validate(a));return a}wia(b){let a;a=this.type!==
l.i.Ic.Ua||this.ua.fa(1).type!==l.i.ib.Ua&&this.ua.fa(1).type!==l.i.ib.Mc?this.ua.fa(1).type===l.i.ib.ec?this.LKa(b):this.ex(b):this.KKa(b);-1===a&&!e.v(b)&&0<b.indexOf(".")&&(b=b.substring(b.lastIndexOf(".")+1),a=this.ex(b));return a}KKa(b){if(e.model.C.F.qr&&"null"===b)b=null;else if(8>b.length||/\D+/.test(b.slice(1))){var a=this.ua.fa(1).type===l.i.ib.Mc?e.model.C.F.Ek:e.model.C.F.Up;a=this.mapping.La(this.A,"format",a);b=new e.Rf(b,{Vy:!1,format:a});b.Kf(u.Lh.sg(a));b=b.getTime()}else b=parseInt(b);
b=this.Pu(b);return null===b?-1:b.ordinal}LKa(b){if(e.model.C.F.qr&&"null"===b)var a=null;else if(0<=b.indexOf(":")){if(b=b.split(":"),3==b.length){a=0;if(0<=b[0].indexOf("d")){var c=b[0].split("d");const d=parseInt(c[0]);isNaN(d)||(a+=86400*d);c=parseInt(c[1]);isNaN(c)||(a+=3600*c)}else c=parseInt(b[0]),isNaN(c)||(a+=3600*c);c=parseInt(b[1]);isNaN(c)||(a+=60*c);b=parseInt(b[2]);isNaN(b)||(a+=b)}}else a=parseFloat(b);b=this.Pu(a);return null===b?-1:b.ordinal}Y_(){this.hg=f.vJ;this.YK=null}JC(){this.cache=
[]}get hg(){return this.Rh}set hg(b){this.Rh=b}get TW(){return this.VR}set TW(b){this.VR=b}sort(){return this.jk(this.pd)}jk(b,a=!0,c=""){if(null==b)return[];l.i.Ba.ih(c)||(c=this.Rh);if(a){if(null!=this.ml[b.ordinal]){if(null!=this.ml[b.ordinal][c])return this.ml[b.ordinal][c];if(!this.Ef){if(c==l.i.Ba.Nc&&null!=this.ml[b.ordinal][l.i.Ba.hc])return a=this.ml[b.ordinal][l.i.Ba.hc].slice(),this.ml[b.ordinal][l.i.Ba.Nc]=a.reverse(),this.ml[b.ordinal][l.i.Ba.Nc];if(c==l.i.Ba.hc&&null!=this.ml[b.ordinal][l.i.Ba.Nc])return a=
this.ml[b.ordinal][l.i.Ba.Nc].slice(),this.ml[b.ordinal][l.i.Ba.hc]=a.reverse(),this.ml[b.ordinal][l.i.Ba.hc]}}}else if(null!=this.cache[b.ordinal]){if(null!=this.cache[b.ordinal][c])return this.cache[b.ordinal][c];if(!this.Ef){if(c==l.i.Ba.Nc&&null!=this.cache[b.ordinal][l.i.Ba.hc])return a=this.cache[b.ordinal][l.i.Ba.hc].slice(),this.cache[b.ordinal][l.i.Ba.Nc]=a.reverse(),this.cache[b.ordinal][l.i.Ba.Nc];if(c==l.i.Ba.hc&&null!=this.cache[b.ordinal][l.i.Ba.Nc])return a=this.cache[b.ordinal][l.i.Ba.Nc].slice(),
this.cache[b.ordinal][l.i.Ba.hc]=a.reverse(),this.cache[b.ordinal][l.i.Ba.hc]}}var d=this.Rh;this.Rh=c;if(this.Rh==l.i.Ba.ed){var g=a?b.Ow:b.children;g=g.slice();0<g.length&&this.za(g[0]).dc&&g.splice(0,1)}else g=this.UW(b,a);a?(null==this.ml[b.ordinal]&&(this.ml[b.ordinal]=[]),this.ml[b.ordinal][c]=g):(null==this.cache[b.ordinal]&&(this.cache[b.ordinal]=[]),this.cache[b.ordinal][c]=g);this.Rh=d;return g}ata(b){for(var a=[[]],c,d=0;d<b.length;d++)0!==b[d]&&(c=this.cr[b[d]],void 0===c?a[0].push(b[d]):
(void 0===a[c]&&(a[c]=[]),a[c].push(b[d])));return a}zta(b,a){if(e.v(this.YK)||void 0===this.YK[b.ordinal]||b.children.length!=this.YK[b.ordinal].length){var c=this.Tl.sort();this.YK=this.ata(c)}b=this.YK[b.ordinal];c=[];for(var d=0;d<b.length;d++){var g=this.za(b[d]);c.push(g.ordinal);a&&!g.Hh&&(g=this.jk(g),0<g.length&&(c=c.concat(g)))}return c}Jva(b){try{if("month"===b.level.caption.toLowerCase())return!0;if(12<b.children.length)return!1;for(var a=0;a<b.children.length;a++){var c=this.za(b.children[a]).caption.split(" ")[0];
if(-1===e.model.B.j.bs.indexOf(c)&&-1===e.model.B.j.xy.indexOf(c))return!1}var d=b.hierarchy.ua.indexOf(b.level.A);if(b.hierarchy.ua.length<d+2)return!1;b.hierarchy.ua.fa(d+1).type=l.i.ib.nh;return!0}catch(g){}return!1}UW(b,a){var c=this.ua.fa(b.level.yb+1),d=c&&c.type===l.i.ib.Sl,g=c&&c.type===l.i.ib.gY,k=c&&c.type===l.i.ib.Nt,m=c&&c.type===l.i.ib.nh,n=c&&c.type===l.i.ib.sK,p=c&&(c.type===l.i.ib.pn||c.type===l.i.ib.un),t=c&&c.type===l.i.ib.MP,r=c&&c.type===l.i.ib.lQ,v=c&&c.type===l.i.ib.jb,y=c&&
c.type===l.i.ib.ec||c&&c.type===l.i.ib.Ua,A=c&&c.type===l.i.ib.Mc,C=this.TW===l.i.Ba.bqa;if(!(k||m||n||y||p||t||r||v||A||0!==this.Oo.length||e.Pg(this.Xs))){if(1E3<b.children.length)return this.zta(b,a);this.Jva(b)&&(m=!0)}var B=this.eka(b.children);e.Pg(this.Xs)?B=this.Gja(B):k||m||n||p||t||r||A||g||d?B=this.fMa(B,c?c.type:-1):y?0<this.Oo.length?B.sort((H,M)=>this.Yxa(H,M)):B=this.cMa(B):0<this.Oo.length?B.sort((H,M)=>this.Xxa(H,M)):v?(this.Rh===l.i.Ba.hc&&e.Ja.sort(B,e.Ja.Ti,H=>H.nc),this.Rh===
l.i.Ba.Nc&&e.Ja.sort(B,e.Ja.tp|e.Ja.Ti,H=>H.nc)):C?B.sort(this.YFa):(this.Rh===l.i.Ba.hc&&e.Ja.sort(B,e.Ja.ny,H=>H.caption),this.Rh===l.i.Ba.Nc&&e.Ja.sort(B,e.Ja.tp|e.Ja.ny,H=>H.caption));c=[];g=B.length;for(k=0;k<g;k++)c.push(B[k].ordinal),a&&!b.Hh&&(d=this.jk(B[k],a),0<d.length&&(c=c.concat(d)));return c}eka(b){for(var a=[],c=0;c<b.length;c++)a.push(this.za(b[c]));return a}fMa(b,a){a===l.i.ib.nh?b=this.eMa(b):a===l.i.ib.pn||a===l.i.ib.un?b=this.gMa(b):a===l.i.ib.Nt||a===l.i.ib.gY||a===l.i.ib.Sl?
(this.hg===l.i.Ba.hc&&e.Ja.sort(b,e.Ja.ny,c=>c.caption),this.hg===l.i.Ba.Nc&&e.Ja.sort(b,e.Ja.tp|e.Ja.ny,c=>c.caption)):(this.hg===l.i.Ba.hc&&e.Ja.sort(b,e.Ja.Ti,c=>c.nc),this.hg===l.i.Ba.Nc&&e.Ja.sort(b,e.Ja.tp|e.Ja.Ti,c=>c.nc));return b}eMa(b){for(var a=[],c=[],d=0;d<b.length;++d)this.Esa(b[d].caption)?c.push(b[d]):a.push(b[d]);this.hg===l.i.Ba.hc&&e.Ja.sort(a,e.Ja.ny,g=>g.caption);this.hg===l.i.Ba.Nc&&e.Ja.sort(a,e.Ja.tp|e.Ja.ny,g=>g.caption);c.sort((g,k)=>this.gya(g,k));return c.concat(a)}gMa(b){for(var a=
[],c=[],d=0;d<b.length;++d)this.Fsa(b[d].caption)?c.push(b[d]):a.push(b[d]);this.hg===l.i.Ba.hc&&e.Ja.sort(a,e.Ja.ny|e.Ja.Ti,g=>g.caption);this.hg===l.i.Ba.Nc&&e.Ja.sort(a,e.Ja.tp|e.Ja.ny|e.Ja.Ti,g=>g.caption);c.sort((g,k)=>this.jNa(g,k));return c.concat(a)}Esa(b){return-1!==e.model.B.j.bs.indexOf(b)||-1!==e.model.B.j.xy.indexOf(b)}Fsa(b){return-1!==e.model.B.j.HB.indexOf(b)||-1!==e.model.B.j.IB.indexOf(b)}gya(b,a){var c=this.hg===l.i.Ba.hc?e.model.B.j.bs.indexOf(b.caption):e.model.B.j.bs.indexOf(a.caption);
-1===c&&(c=this.hg==l.i.Ba.hc?e.model.B.j.xy.indexOf(b.caption):e.model.B.j.xy.indexOf(a.caption));var d=this.hg===l.i.Ba.hc?e.model.B.j.bs.indexOf(a.caption):e.model.B.j.bs.indexOf(b.caption);-1===d&&(d=this.hg===l.i.Ba.hc?e.model.B.j.xy.indexOf(a.caption):e.model.B.j.xy.indexOf(b.caption));return c>d?1:c<d?-1:0}jNa(b,a){var c=this.hg===l.i.Ba.hc?e.model.B.j.HB.indexOf(b.caption):e.model.B.j.HB.indexOf(a.caption);-1===c&&(c=this.hg===l.i.Ba.hc?e.model.B.j.IB.indexOf(b.caption):e.model.B.j.IB.indexOf(a.caption));
var d=this.hg===l.i.Ba.hc?e.model.B.j.HB.indexOf(a.caption):e.model.B.j.HB.indexOf(b.caption);-1===d&&(d=this.hg===l.i.Ba.hc?e.model.B.j.IB.indexOf(a.caption):e.model.B.j.IB.indexOf(b.caption));return c>d?1:c<d?-1:0}cMa(b){this.Rh===l.i.Ba.hc&&e.Ja.sort(b,e.Ja.Ti,a=>a.nc);this.Rh===l.i.Ba.Nc&&e.Ja.sort(b,e.Ja.Ti|e.Ja.tp,a=>a.nc);return b}$T(b){return e.model.C.F.zw?this.Oo.indexOf(b):this.Oo.indexOf(b.toLocaleLowerCase())}Xxa(b,a){const c=this.Rh===l.i.Ba.hc?this.$T(b.caption):this.$T(a.caption);
b=this.Rh===l.i.Ba.hc?this.$T(a.caption):this.$T(b.caption);return c>b?1:c<b?-1:0}Yxa(b,a){const c=this.Rh===l.i.Ba.hc?this.Oo.indexOf(b.nc.toString()):this.Oo.indexOf(a.nc.toString());b=this.Rh===l.i.Ba.hc?this.Oo.indexOf(a.nc.toString()):this.Oo.indexOf(b.nc.toString());return c>b?1:c<b?-1:0}Gja(b){if(e.Pg(this.Xs)){var a=this.Rh===l.i.Ba.Nc?-1:1;b.sort((c,d)=>this.Xs(c.caption,d.caption)*a)}return b}YFa(b,a){b=b.caption.match(/(?:\d*\.)?\d+/);a=a.caption.match(/(?:\d*\.)?\d+/);b=b&&0<b.length?
parseFloat(b[0]):Number.POSITIVE_INFINITY;a=a&&0<a.length?parseFloat(a[0]):Number.POSITIVE_INFINITY;return b>a?1:b<a?-1:0}nv(b){b=this.Bn.getItem(b).yb;for(var a=[],c=this.sort(),d=0;d<c.length;d++){var g=this.za(c[d]);g&&g.level.yb===b&&a.push(c[d])}return a}get filter(){e.v(this.cw)&&(this.cw=new e.model.hb.lB(this));return this.cw}set filter(b){this.cw=b;this.hG=[]}get eb(){return 0<this.hG.length?this.hG:this.hG=this.filter.Pz||this.filter.mx||this.filter.hN||this.filter.vU?this.filter.Cza():
this.filter.Hi()}set eb(b){this.hG=b}xu(){this.filter.clear();this.eb=[]}HC(){this.filter.HC();this.eb=[]}vza(){for(var b=[],a=this.eb,c=0;c<a.length;c++){var d=this.za(a[c]);1===d.level.yb&&b.push(d.ordinal)}return b}set Lm(b){""!==b&&!e.v(b)||this.We?this.gs=b:(this.gs=this.A+".[(All)]",this.Sh(new h.Dv(this.A,this.caption+" (All)")),this.pc(new h.be({A:this.caption+" (All)",dc:!0})),this.WB=!1)}get Lm(){return this.gs}Km(b="(Total)"){return b}get pd(){this.bZ||(this.bZ=this.Ib(this.gs),this.wz(this.bZ));
return this.bZ}set pd(b){}get Js(){return this.hR}set Js(b){this.hR=b}Fw(){this.wba(this.g5);this.filter.Fw()}dca(){if(0<this.Ry.length){for(var b=0;b<this.Ry.length;b++){var a=this.za(parseInt(this.Ry[b]));null==a||a.eh||this.wz(a)}this.Ry=[]}}set g5(b){this.NR=b}get g5(){return this.NR}set Uha(b){this.OR=b}get Uha(){return this.OR}set Oo(b){this.JC();this.fR=b}get Oo(){return this.fR}set yv(b){this.Ry=b}get yv(){return this.Ry}set groups(b){this.VB=b}get groups(){return this.VB}wba(b){if(this.groups)for(var a in this.groups)this.LO(a);
for(a in b)this.eba(a,b[a])}LO(b){var a=this.Ib(this.Km("Others"));if((b="string"==typeof b?this.Ib(this.Km(b)):b)&&a){var c,d=b.children;for(c=0;c<d.length;c++){var g=this.za(d[c]);a.X(g);this.cr[g.ordinal]=a.ordinal}this.pd.removeChild(b.ordinal);this.pg[b.ordinal]=null;delete this.VB[b.caption];if(1==this.nv(this.Nz.A).length){d=a.children;for(c=0;c<d.length;c++)g=this.za(d[c]),this.pd.X(g),this.cr[g.ordinal]=this.pd.ordinal;this.pd.removeChild(a.ordinal);this.pg[a.ordinal]=null;this.Bn=this.Bn.splice(1,
1);for(c=1;c<this.Bn.length;c++)this.Bn.fa(c).yb--}this.JC();this.ml=[]}}eba(b,a){null!=this.groups[b]&&this.LO(b);if(null==this.Nz){var c=new h.Dv(this.caption+".groups","Groups",1);c.fh=!0;this.hua(c);var d=this.pd.children.slice(0),g=this.pc(new h.be({A:"others",caption:"Others"}));for(c=0;c<d.length;c++){var k=this.za(d[c]);this.pd.removeChild(k.ordinal);g.X(k.ordinal);k.parent=g;this.cr[k.ordinal]=g.ordinal}}else this.ua.fa(1);d=this.pc(new h.be({A:b,fh:!0}));this.VB[b]=[];for(c=0;c<this.Tl.length;c++)g=
this.za(c),g.hierarchy=this,!g.dc&&-1<a.indexOf(g.ordinal)&&(g.fh?this.LO(g):(g.parent&&g.parent.removeChild(g.ordinal),d.X(g),this.VB[b].push(g.ordinal),this.cr[g.ordinal]=d.ordinal));for(var m in this.groups)this.groups.hasOwnProperty(m)||(g=this.Ib(this.Km(m)))&&0==g.children.length&&this.LO(g);this.wz(d);this.JC();this.ml=[]}get Nz(){for(var b=0;b<this.ua.length;b++)if(this.ua.fa(b).fh)return this.ua.fa(b);return null}set Nz(b){}get lV(){for(var b=new e.ub,a=0;a<this.Bn.length;a++){var c=this.Bn.fa(a).Ye;
b=b.concat(c)}return b}set lV(b){}set zf(b){this.vK=b}get zf(){return this.vK}set ic(b){}get ic(){return null!=this.vK?this.Ou(this.vK):null}get Xs(){return this.lta}set Xs(b){this.JC();this.lta=b}get u2(){return e.Pg(this.Xs)||0<this.Oo.length}get fr(){for(var b=[],a=0;a<this.Zi;a++)b.push(a);return b}Sa(){var b={};b.uniqueName=this.A;b.dimensionName=this.Ci.A;b.activeLevelName=this.zf;b.caption=this.caption;b.filterEnabled=this.sM;b.sortName=this.hg;b.sortAs=this.TW;b.type=this.type;b.groups=this.groups;
b.customSorting=this.Oo;this.filter.Fh&&!this.filter.Rfa&&(b.filter=this.filter.Sa());void 0!==this.bf&&(b.showTotals=this.bf);return b}lj(){const b={};b.caption=this.caption;b.dimensionCaption=this.Ci.caption;b.dimensionUniqueName=this.Ci.A;b.folder=this.Oc;b.label=this.label;if(2<this.ua.length){b.levels=[];for(let a=1;a<this.ua.length;a++)b.levels.push(this.ua.fa(a).Sa())}b.sort=this.Rh;b.uniqueName=this.A;return b}static xb(b,a=null){var c=b.uniqueName;c=l.ze.bh(c,b.caption);null==a&&(a=new l.local.O.$P(c));
b.hasOwnProperty("caption")&&(a.caption=b.caption);b.hasOwnProperty("groups")&&f.QCa(b.groups,a);b.hasOwnProperty("sortName")&&(a.hg=b.sortName);b.hasOwnProperty("sortAs")&&(a.TW=b.sortAs);b.hasOwnProperty("filterEnabled")&&(a.sM=b.filterEnabled);b.hasOwnProperty("type")&&(a.type=b.type);b.hasOwnProperty("origin")&&(a.origin=b.origin);b.hasOwnProperty("folder")&&(a.Oc=b.folder);b.hasOwnProperty("filter")&&(a.filter=e.model.hb.lB.xb(b.filter,a,!0));b.hasOwnProperty("defaultMemberName")&&(a.Js=b.defaultMemberName);
b.hasOwnProperty("allMemberName")&&(a.Lm=b.allMemberName);b.hasOwnProperty("activeLevelName")&&(a.zf=b.activeLevelName);b.hasOwnProperty("predefinedProperties")&&(a.Uha=b.predefinedProperties);b.hasOwnProperty("customSorting")&&f.Dca(b.customSorting,a);b.hasOwnProperty("sortOrder")&&f.Dca(b.sortOrder,a);b.hasOwnProperty("showTotals")&&(a.bf=!0===b.showTotals);return a}static QCa(b,a){var c={},d;for(d in b){var g=b[d];c[d]=[];for(var k=0;k<g.length;k++){var m=l.ze.Ws(g[k]);(m=a.Ib(m))&&c[d].push(m.ordinal)}}a.Td?
a.wba(c):a.g5=c}static Dca(b,a){a.Oo=[];for(var c=0;c<b.length;c++)a.Oo.push(l.ze.Ws(b[c]))}clone(){var b=new f(this.A);b.data=this.data;b.$K=this.$K;b.lZ=this.lZ;b.Fg=this.Fg;b.JR=this.JR;b.$t=this.$t;b.hR=this.hR;b.gs=this.gs;b.WB=this.WB;b.Rh=this.Rh;b.VR=this.VR;e.v(this.cw)||(b.cw=this.cw.clone());b.pg=this.pg.slice();b.Tl=this.Tl.clone();b.Ky=this.Ky.clone();b.ow=this.ow.slice();b.cr=this.cr.slice();var a={},c;for(c in this.os)a[c]=this.os[c].slice();b.os=a;b.Bn=this.Bn.slice();b.IZ=this.IZ;
b.oR=this.oR;b.Td=this.Td;b.DR=this.DR;b.ER=this.ER;b.OR=this.OR.slice();b.fR=this.fR.slice();b.Ry=this.Ry.slice();b.vK=this.vK;b.VB=this.VB;b.NR=this.NR;b.e_=this.e_;return b}getTimezoneOffset(){return null}}f.vJ="asc";h.Ct=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.mF{constructor(b,a="",c=0){super(b,a);this.Fg=l.i.ib.$c;this.Faa=new e.ub;this.Tj=null;this.RZ=c}set yb(b){this.RZ=b}get yb(){return this.RZ}set type(b){this.Fg=b}get type(){return this.Fg}set fh(b){this.cta=b}get fh(){return this.cta}get ev(){return this.Ac.ua.length-1==this.RZ}set ev(b){}set hierarchy(b){this.Ac=b}get hierarchy(){return this.Ac}get Ye(){return this.Faa}set Ye(b){}get description(){return this.Tj}set description(b){this.Tj=
b}B_(b){this.Faa.Ta(b.A,b)}}h.Dv=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.r${constructor(b){super();this.SZ=1;this.waa=0;this.IR=-1;this.Ac=b}get ordinal(){return this.SZ}set ordinal(b){this.SZ=b}get nc(){return this.waa}set nc(b){this.waa=b}get hierarchy(){return this.Ac}set hierarchy(b){}get parent(){return this.vta}set parent(b){this.vta=b}get root(){if(2>this.level.yb)return this;var b=this;do b=b.parent;while(1<b.level.yb);return b}set root(b){}set caption(b){}get caption(){var b=this.Ac.zD(this.ordinal);if(this.level.type===
l.i.ib.Ua||this.level.type===l.i.ib.oj||this.level.type===l.i.ib.Mc||this.level.type===l.i.ib.ec){let a=this.Ac.SM(this.ordinal);e.v(a)?b=e.model.B.j.IX:this.level.type===l.i.ib.Ua||this.level.type===l.i.ib.oj?(b=this.hierarchy.Ek||this.hierarchy.mapping.La(this.hierarchy.A,"format",e.model.C.F.Up),b=e.P.$x(a,b,e.model.C.F.$j)):this.level.type===l.i.ib.Mc?(b=this.hierarchy.Ek||this.hierarchy.mapping.La(this.hierarchy.A,"format",e.model.C.F.Ek),b=e.P.HO(a,b,e.model.C.F.$j)):this.level.type===l.i.ib.ec&&
(b=this.hierarchy.Ek||this.hierarchy.mapping.La(this.hierarchy.A,"format",e.model.C.F.np),b=e.P.ey(a,b))}return b}get A(){return this.BD()}set A(b){}BD(){return this.Ac.b2(this.ordinal)}get Fi(){var b=this.Ac.Ef?2>this.level.yb?`[${this.BD()}]`:this.BD():`[${this.BD()}]`;return e.model.C.F.zw?`${this.hierarchy.A}.${b}`:`${this.hierarchy.A}.${b}`.toLocaleLowerCase()}get level(){return e.v(this.parent)?this.hierarchy.ua.fa(0):this.hierarchy.ua.fa(this.parent.level.yb+1)}set level(b){}get dc(){return null!=
this.hierarchy.pd&&this.hierarchy.pd.ordinal==this.ordinal}set dc(b){}set eh(b){this.eu("_isDrilledDown_",b)}get eh(){return this.wk("_isDrilledDown_")?this.TB("_isDrilledDown_"):!1}set fh(b){this.eu("_isGroup_",b)}get fh(){return this.wk("_isGroup_")?this.TB("_isGroup_"):!1}get children(){return this.wk("_children_")?this.TB("_children_"):[]}set children(b){}set Ow(b){}get Ow(){if(this.wk("_descendants_"))return this.TB("_descendants_");var b=[];b.push(this.ordinal);if(0==this.xV)return b;for(var a=
this.children.length,c,d=0;d<a;d++)c=this.hierarchy.za(this.children[d]),c.Hh?b.push(c.ordinal):0<c.xV?b=b.concat(c.Ow):b.push(c.ordinal);0<b.length&&this.eu("_descendants_",b);return b}set xV(b){}get xV(){if(-1<this.IR)return this.IR;if(!this.wk("_children_"))return this.IR=0;for(var b=this.children.length,a=b,c=0;c<b;c++){var d=this.hierarchy.za(this.children[c]);a+=d.xV}return a}W_(){this.wk("_descendants_")&&this.Hsa();this.parent&&this.parent.W_()}X(b){var a=this.children;b.constructor===Number?
a.push(b):a.push(b.ordinal);this.eu("_children_",a);b.constructor!==Number&&(b.parent=this);this.IR=-1;this.W_()}removeChild(b){var a=this.children.indexOf(b);-1<a&&this.children.splice(a,1);this.eu("_children_",this.children);this.hierarchy.za(b).parent=null;this.W_()}toString(){return this.A+" : "+this.SZ}set Ye(b){this.eu("_properties_",b)}get Ye(){this.wk("_properties_")||(this.Ye=new e.ub);return this.TB("_properties_")}setProperty(b,a){this.Ye.Ta(b,a)}nCa(b){return this.Ye.getItem(b)}get Hh(){return!this.wk("_children_")||
0==this.children.length}set Hh(b){}get Cf(){return this.wk("_hasMissingChildren_")?this.TB("_hasMissingChildren_"):!1}set Cf(b){this.eu("_hasMissingChildren_",b)}set pba(b){}get pba(){return this.hierarchy.Ts?this.A:this.A+".[(Total"+(0==this.ordinal?"":this.ordinal)+")]"}eu(b,a){super.eu(b,a);this.l3||e.v(this.hierarchy)||this.hierarchy.wW(this)}get l3(){if(this.wk("_children_")||this.wk("_descendants_")||this.wk("_caption_")||this.wk("_isDrilledDown_")||this.wk("_hasMissingChildren_")||this.wk("_properties_")||
this.wk("_isGroup_"))return!1}Sa(){var b={};b.uniqueName=this.A;b.caption=this.caption;b.dimensionName=this.hierarchy.Ci.A;b.hierarchyName=this.hierarchy.A;b.hierarchyCaption=this.hierarchy.caption;this.parent&&(b.parentMember=this.parent.A);0<this.Ye.length&&(b.properties=this.Ye.Sa());return b}hD(b){return e.v(b)?!1:e.model.C.F.zw?this.A==b:this.A.toLocaleLowerCase()==b.toLocaleLowerCase()}}h.oJ=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.mF{constructor(b,a=""){super(b,a);this.oc=this.$t=this.wR="";this.Fg=l.i.Ra.jb;this.uk=this.$F=this.dw="";this.Kb=[];this.rR="";this.xR=this.yR=!1;this.oG="";this.kaa=-1;this.CR=this.BR=!1;this.WQ=!0;this.Tj=this.hw=null;this.wn=[]}get Bl(){return this.yc}set Bl(b){}get Mg(){return this.wR}set Mg(b){this.wR=b}get Oc(){return this.$t}set Oc(b){this.$t=b}get mapping(){return l.Ma.R().ga.mapping}get format(){return this.Eh(this.A,this.$).name}set format(b){this.oc=
b}get Lk(){return this.yR}set Lk(b){this.yR=b}get hidden(){return this.xR}set hidden(b){this.xR=b}get index(){return this.kaa}set index(b){this.kaa=b}get type(){return this.Fg}get an(){return this.hw}set an(b){this.hw=b}set type(b){this.Fg=b}get description(){return this.Tj}set description(b){this.Tj=b}get lk(){if(this.Qa||this.gh)return[];const b=this.mapping.Lp;if(e.v(b))return this.Fg!=l.i.Ra.jb&&this.Fg!=l.i.Ra.ec?this.Fg==l.i.Ra.Ua||this.Fg==l.i.Ra.Mc?l.i.ea.Zka:l.i.ea.bla:l.i.ea.hJ;const a=
l.i.Ra.FA(this.Fg);return void 0!==b[a]?b[a]:void 0!==b.any?b.any:Array.isArray(b)?b:l.i.ea.hJ}set lk(b){}set fq(b){this.dw=b}get fq(){return this.dw?this.dw:0==e.model.C.F.Tx?this.yc:l.i.ea.NONE===this.uk?this.yc:f.T1(this.$,this.yc)}static T1(b,a){switch(b){case l.i.ea.Sq:return e.P.bind(e.model.B.j.lra,a);case l.i.ea.wc:return e.P.bind(e.model.B.j.bma,a);case l.i.ea.Mt:return e.P.bind(e.model.B.j.Aqa,a);case l.i.ea.pj:return e.P.bind(e.model.B.j.Bma,a);case l.i.ea.Hq:return e.P.bind(e.model.B.j.cla,
a);case l.i.ea.Pv:return e.P.bind(e.model.B.j.kpa,a);case l.i.ea.Uv:return e.P.bind(e.model.B.j.hra,a);case l.i.ea.Vv:return e.P.bind(e.model.B.j.jra,a);case l.i.ea.MAX:return e.P.bind(e.model.B.j.Qoa,a);case l.i.ea.MIN:return e.P.bind(e.model.B.j.Ppa,a);case l.i.ea.cs:return e.P.bind(e.model.B.j.sqa,a);case l.i.ea.Cp:return e.P.bind(e.model.B.j.nqa,a);case l.i.ea.Rq:return e.P.bind(e.model.B.j.yqa,a);case l.i.ea.Pq:return e.P.bind(e.model.B.j.uqa,a);case l.i.ea.Qq:return e.P.bind(e.model.B.j.wqa,
a);case l.i.ea.Si:return e.P.bind(e.model.B.j.poa,a);case l.i.ea.tn:return e.P.bind(e.model.B.j.Nqa,a);case l.i.ea.so:return e.P.bind(e.model.B.j.Pqa,a);case l.i.ea.ko:return e.P.bind(e.model.B.j.xma,a);case l.i.ea.qn:return e.P.bind(e.model.B.j.zma,a);case l.i.ea.qo:return e.P.bind(e.model.B.j.pqa,a);case l.i.ea.sn:return e.P.bind(e.model.B.j.rqa,a)}return a}get Mm(){if(""==this.$F)if(l.i.ea.BU(this.$))this.$F=this.$;else if(-1!=this.Wc.indexOf(l.i.ea.Sq))this.$F=l.i.ea.Sq;else for(let b=0;b<this.Wc.length;b++)if(l.i.ea.BU(this.Wc[b])){this.$F=
this.Wc[b];break}return this.$F}get $(){return""===this.uk?this.Wc[0]:this.uk}set $(b){b&&b.toLowerCase()!==this.uk?(b=b.toLowerCase(),l.i.ea.pz(b)&&(b=l.i.ea.Dz(b)),l.i.ea.MA(b)||this.Qa&&b==l.i.ea.NONE?(this.$F="",this.uk=b,this.Qa||-1!=this.Wc.indexOf(b)||(this.uk=this.Wc[0])):this.pW()):""==b&&this.pW()}pW(){this.dw=void 0;this.uk=this.Wc[0]}set Wc(b){if(e.v(b))this.wn=this.lk;else{for(var a=[],c=0;c<b.length;c++){var d=b[c].trim().toLowerCase();l.i.ea.pz(d)&&(d=l.i.ea.Dz(d));-1!==this.lk.indexOf(d)&&
a.push(d)}this.wn=0<a.length?a:this.lk}}get Wc(){return 0<this.wn.length?this.wn:this.lk}get Ud(){return this.Kb}set Ud(b){this.Kb=b}get Qa(){return!e.ka(this.Ge)}set Qa(b){}get Ge(){return this.rR}set Ge(b){this.rR=b}get xr(){return this.oG}set xr(b){this.oG=b}get gh(){return!e.v(this.oG)&&""!=this.oG}get Wz(){return this.BR}set Wz(b){this.BR=b}get Xz(){return this.CR}set Xz(b){this.CR=b}get Jn(){return this.WQ}set Jn(b){this.WQ=b}Sa(){var b={};b.uniqueName=this.A;b.name=this.Bl;this.Qa&&(b.formula=
this.Ge.trim());b.format=this.format;b.individual=this.Lk;b.supportedAggregations=this.lk;b.availableAggregations=this.Wc;b.aggregation=this.$;b.caption=this.caption;b.label=this.label;b.originalCaption=this.Bl;b.grandTotalCaption=this.fq;b.groupName=this.Mg;b.folder=this.Oc;b.type=this.type;b.kpi=this.xr;b.calculated=this.Qa;b.calculateNaN=this.Jn;b.hidden=this.hidden;return b}w2(){var b=new f("","");return this.Lk!==b.Lk||this.Ge!==b.Ge||this.format!==b.format||!1===this.an||""!==this.$&&(this.fq!==
f.T1(this.$,this.yc)&&e.model.C.F.Tx||!e.model.C.F.Tx&&this.fq!==this.caption)?!1:!0}Eh(b,a,c=!1){let d=e.model.oc.tj.Eh(b,a);e.model.oc.tj.Yza(b,a)||(d=e.model.oc.tj.Eh(b,""));c&&e.v(d.Ud.textAlign)&&this.type!=l.i.Ra.jb&&this.type!=l.i.Ra.ec&&this.type!=l.i.Ra.Mc&&(d=d.clone(),d.textAlign=e.model.oc.W.se.textAlign.LEFT);return d}clone(){var b=new f(this.A);this.SL(b);return b}SL(b){b.data=this.data;b.yc=this.yc;b.wR=this.wR;b.$t=this.$t;b.oc=this.oc;b.Fg=this.Fg;void 0!=this.dw&&(b.dw=this.dw);
b.uk=this.uk;b.wn=this.wn.slice();b.Kb=this.Kb.slice();b.rR=this.rR;b.yR=this.yR;b.xR=this.xR;b.oG=this.oG;b.BR=this.BR;b.CR=this.CR;b.WQ=this.WQ;b.Tj=this.Tj}sx(){return 0<this.Wc.length||this.Qa||this.gh}lj(){const b={};b.aggregation=this.$;b.availableAggregations=this.Wc;b.availableAggregationsCaptions=l.i.ea.G_(this.Wc);b.caption=this.caption;if(b.calculated=this.Qa)b.calculateNaN=this.Jn,b.formula=this.Ge.trim(),b.individual=this.Lk;b.folder=this.Oc;b.format=this.format;b.grandTotalCaption=this.fq;
b.label=this.label;b.name=this.Bl;b.uniqueName=this.A;b.groupName=this.Mg;return b}}h.Vr=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.mF{constructor(b,a=""){super(b,a);this.Tj=null}get value(){return this.bL}set value(b){this.bL=b}get status(){return this.Ata}set status(b){this.Ata=b}get kx(){return this.$sa}set kx(b){this.$sa=b}get gy(){return this.Dta}set gy(b){this.Dta=b}get description(){return this.Tj}set description(b){this.Tj=b}}h.nla=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.mF{constructor(b,a=""){super(b,a);this.Tj=null;this.Na=new e.ub}set Na(b){this.vb=b}get Na(){return this.vb}get type(){return this.Fg}set type(b){this.Fg=b}set JD(b){this.haa=b}get JD(){return this.haa?this.haa:[]}get Yc(){return this.O}set Yc(b){this.O=b}get description(){return this.Tj}set description(b){this.Tj=b}zi(b){b.Ci=this;this.vb.Ta(b.A,b)}uh(b){return this.vb.getItem(b)}static xb(b,a=null){var c=b.uniqueName;c=l.ze.bh(c,b.caption);
null==a&&(a=new l.local.O.b9(c));e.ka(b.caption)?a.caption=b.uniqueName:a.caption=b.caption;return a}}h.TA=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.qaa=this.ZB=!1;this.P$=new e.ub;this.mb=new e.ub;this.LZ=new e.ub;this.sH=new h.wX}get Td(){return this.ZB}set Td(b){this.ZB=b}get tx(){return this.qaa}set tx(b){this.qaa=b}get kb(){return 0<this.Pw.length-(this.Pw.Bb("[Measures]")?1:0)||0<this.Da.length||0<this.s3.length?!1:!0}get Pw(){return this.P$}set Pw(b){}get Da(){return this.mb}set Da(b){}set gr(b){}get gr(){for(var b=new e.ub,a=0;a<this.mb.length;a++){var c=this.mb.fa(a);c.Qa&&
b.Ta(c.A,c)}return b}set Hr(b){}get Hr(){for(var b=[],a=0;a<this.mb.length;a++){var c=this.mb.fa(a);c.Qa||b.push(c)}return b}set nI(b){}get nI(){var b=this.$p("[Measures]");null==b&&(b=this.z_());return b.uh("[Measures]")}z_(){var b=new h.Ct("[Measures]","Measures"),a=new h.TA("[Measures]","Measures");a.type=l.i.dB.eQ;a.zi(b);this.mu(a);return a}mu(b){null==this.$p(b.A)&&(b.Yc=this,this.Pw.Ta(b.A,b))}$p(b){return this.Pw.getItem(b)}vc(b=!1){for(var a=new e.ub,c=0;c<this.Pw.length;c++){var d=this.Pw.fa(c);
if(b||d.type!=l.i.dB.eQ)a=a.concat(d.Na)}return a}uh(b){for(let a=0;a<this.Pw.length;a++){const c=this.Pw.fa(a);if(c.Na.Bb(b))return c.Na.getItem(b)}}zk(b){this.Da.Ta(b.A,b)}fd(b){return this.Da.getItem(b)}EE(b){this.Da.removeItem(b)}clear(){this.P$=new e.ub;this.mb=new e.ub;this.LZ=new e.ub;this.Td=!1}Ok(){return null}nf(){return null}iL(){}get s3(){return this.LZ}set s3(b){}x_(b,a){this.LZ.Ta(b.A,b);if(0==e.ka(b.value)){var c=new h.Vr(b.value,this.Jz(b.value,b.caption,e.model.B.j.U8,a));c.Mg=e.model.B.j.uy;
c.Oc=b.caption;c.type=l.i.Ra.jb;c.xr=b.A;this.zk(c)}0==e.ka(b.kx)&&(c=new h.Vr(b.kx,this.Jz(b.kx,b.caption,e.model.B.j.P8,a)),c.Mg=e.model.B.j.uy,c.Oc=b.caption,c.type=l.i.Ra.jb,c.xr=b.A,this.zk(c));0==e.ka(b.status)&&(c=new h.Vr(b.status,this.Jz(b.status,b.caption,e.model.B.j.S8,a)),c.Mg=e.model.B.j.uy,c.Oc=b.caption,c.type=l.i.Ra.jb,c.xr=b.A,c.Wz=!0,this.zk(c));0==e.ka(b.gy)&&(a=new h.Vr(b.gy,this.Jz(b.gy,b.caption,e.model.B.j.T8,a)),a.Mg=e.model.B.j.uy,a.Oc=b.caption,a.type=l.i.Ra.jb,a.xr=b.A,
a.Xz=!0,this.zk(a))}Jz(b,a,c,d){d=d.La(b,"caption");return e.v(d)?0==b.indexOf("[Measures]")?b.substring(12,b.length-1):a+" "+c:d}Dx(b,a=null,c=!1){c=e.v(a)||c;var d=b.uniqueName;e.ka(b.formula)&&(d=l.ze.bh(d,b.caption));e.v(a)&&(a=new l.local.O.c9(d));b.hasOwnProperty("type")&&(a.type="string"===typeof b.type?l.i.Ra.hAa(parseInt(b.type)):b.type);if(c||a.Qa)b.hasOwnProperty("formula")&&(a.Ge=b.formula),b.hasOwnProperty("individual")&&(a.Lk=b.individual),b.hasOwnProperty("calculateNaN")&&(a.Jn=b.calculateNaN);
b.hasOwnProperty("supportedAggregations")&&(a.lk=b.supportedAggregations);b.hasOwnProperty("availableAggregations")&&(a.Wc=b.availableAggregations);if(b.hasOwnProperty("aggregation")){if(b.aggregation!==l.i.ea.NONE||l.Ma.R().ga.Ec||a.Qa)a.$=b.aggregation}else a.$=a.Qa?l.i.ea.NONE:"";b.hasOwnProperty("format")&&(a.format=b.format,e.model.oc.tj.GI(b.format,a.A,a.$));b.hasOwnProperty("caption")&&(a.caption=b.caption);b.hasOwnProperty("name")&&(a.caption=b.name);b.hasOwnProperty("grandTotalCaption")&&
(a.fq=b.grandTotalCaption);b.hasOwnProperty("groupName")&&(a.Mg=b.groupName);b.hasOwnProperty("folder")&&(a.Oc=b.folder);b.hasOwnProperty("active")?a.an=b.active:b.hasOwnProperty("uniqueName")&&b.hasOwnProperty("caption")&&b.uniqueName!=b.caption&&!b.hasOwnProperty("formula")&&(a.an=!1);a.Qa&&(!b.hasOwnProperty("caption")&&c&&(a.caption=a.A),b=new u.VJ,a.Ud=b.parse(a.Ge));return a}HLa(b){this.mapping=b}}h.yX=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){}static FCa(b){switch(b){case l.i.ra.Cc:case l.i.ra.Pd:return new l.external.Hb.O.jqa;case l.i.ra.kg:return new l.external.Ue.O.Yma;case l.i.ra.API:return new l.external.jc.O.jJ}return new l.local.O.bQ}}h.vra=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(b){this.vb=new e.ub;this.Or=l.i.Ba.ed;this.fu=this.SQ=null;this.JK=[];this.nR=[];this.lR=[];this.QB=[];this.h_=l.i.Ba.ed;this.iC=b}set jn(b){this.fu=b;this.SQ=null}get jn(){if(null!=this.SQ)return this.SQ;var b=null;if(null!=this.fu){var a=0;b=[];for(var c=0;c<this.vb.length;c++){var d=this.Na.fa(c);if(!d.We){if(!this.fu[a])break;if("number"==typeof this.fu[a]){b=this.fu;break}else{var g=this.fu[a].toString().trim();if(!/\D/.test(g)){b=this.fu;
break}}d=d.Ib(l.ze.Ws(this.fu[a].toString().trim()));if(null!=d)b.push(d.ordinal);else if(this.fu[a]){b=null;break}a++}}}return this.SQ=b}set XW(b){this.jn=b}get XW(){var b=null,a=this.jn;if(null!=a){var c=0;b=[];for(var d=0;d<this.vb.length;d++){var g=this.Na.fa(d);if(!g.We){if(!a[c])break;g=g.za(""===a[c]?0:parseInt(a[c]));if(null!=g)b.push(g.Fi);else if(a[c]){b=null;break}c++}}}return b}get ld(){return this.JK}set ld(b){if(null==b)this.JK=[];else if(this.bb)this.JK=b;else{this.JK=[];for(var a=
0;a<b.length;a++){var c=b[a];c[0]=-1;this.JK.push(c)}}}get zda(){for(var b=[],a,c,d,g,k,m=0;m<this.ld.length;m++){a=this.ld[m].slice(0);c=[];d=a.shift();g=null;-1<d&&(g=(g=this.Gi(d))?g.Sa():null);for(var n=d=0;n<a.length;n++)k=this.Na.fa(d),k.We&&(d++,k=this.Na.fa(d)),k&&k.za(a[n])&&c.push(k.za(a[n]).A),d++;c.unshift(g);b.push(c)}return b}Kha(b){for(var a=[],c,d,g,k,m,n,p=0;p<b.length;p++){c=b[p].slice(0);d=[];k=-1;g=c.shift();g="string"==typeof g?new e.model.hb.oh(g):e.model.hb.oh.xb(g);m=0;if(0<
this.Na.length)for(var t=0;t<c.length;t++){(n=this.Na.fa(m))&&n.We&&(k=(k=this.Gi(g))?k.index:-1,m++,n=this.Na.fa(m));if(n&&!n.Td&&!n.We)return this.nR=b.slice(0),[];if(n){const r=n.wia(c[t]);if(0>r){d=null;break}else d.push(r)}if(e.v(n))return[];m++}null!==d&&(d.unshift(k),a.push(d))}return a}Y4(){0<this.nR.length&&(this.ld=this.Kha(this.nR),this.nR=[]);0<this.lR.length&&(this.ue=this.Jha(this.lR),this.lR=[])}get ue(){return this.QB}set ue(b){if(e.v(b)||0===b.length)this.QB=[];else{if(this.bb)this.QB=
b;else{this.QB=[];for(var a=0;a<b.length;a++){var c=b[a];"string"===typeof c[0]?c[1]=-1:c[0]=-1;this.QB.push(c)}}this.c6(this.QB);this.hja(this.QB)}}c6(b){b.sort((a,c)=>{if(a.length!==c.length)return 0;var d=a.length-1;a=a[d];c=c[d];return-1===a?1:-1===c||a<c?-1:a>c?1:0})}hja(b){let a;const c=this.vb.slice();c.removeItem("[Measures]");let d;for(let g=0;g<b.length;g++){a=b[g].slice(0);"string"===typeof a[0]&&(d=a.shift());const k=c.fa(a.length-3);if(null==k)break;let m=a[1],n;"string"===typeof a[1]&&
(n=k.Ib(m),!n&&!isNaN(parseInt(a[1]))&&8>a[1].length&&(m=parseInt(a[1])));-1==k.yv.indexOf(m)&&k.yv.push([d,m])}}get mda(){for(var b=[],a,c,d,g,k,m,n,p=0;p<this.ue.length;p++){a=this.ue[p].slice(0);c=[];d="";k=null;"string"==typeof a[0]&&(d=a.shift());g=a.shift();m=a.shift();-1<g&&(k=(k=this.Gi(g))?k.Sa():null);for(var t=g=0;t<a.length;t++)n=this.Na.fa(g),n.We&&(g++,n=this.Na.fa(g)),(n=n.za(a[t]))&&c.push(n.A),g++;c.unshift(m);c.unshift(k);c.unshift(d);b.push(c)}return b}Jha(b){const a=[];let c,d;
for(var g,k,m,n,p,t=0;t<b.length;t++){var r=b[t].slice(0);c=[];g=-1;d=r.shift();m=r.shift();k="string"==typeof m?new e.model.hb.oh(m):e.model.hb.oh.xb(m);m=r.shift();n=0;if(0<this.Na.length)for(var v=0;v<r.length;v++){p=this.Na.fa(n);if(e.v(p))return[];p.We&&(g=(g=this.Gi(k))?g.index:-1,n++,p=this.Na.fa(n));if(!p.Td&&!p.We)return this.lR=b.slice(0),this.hja(b),[];if(p){if(p.type!==l.i.Ic.Ua||p.ua.fa(1).type!==l.i.ib.Ua&&p.ua.fa(1).type!==l.i.ib.Mc)p=p.Ib(r[v]);else{if(e.model.C.F.qr&&"null"===r[v])var y=
null;else if(8>r[v].length||/\D+/.test(r[v].slice(1))){y=p.ua.fa(1).type===l.i.ib.Mc?e.model.C.F.Ek:e.model.C.F.Up;y=p.mapping.La(p.A,"format",y);const C=new e.Rf(r[v],{Vy:!1,format:y});C.Kf(u.Lh.sg(y));y=C.getTime()}else y=parseInt(r[v]);p=p.Pu(y)}p?c.push(p.ordinal):c.push(-1)}n++}if((p=this.Na.fa(r.length-1))&&p.Td&&null!==p.ic&&null==p.Ib(m))for(r=m.slice(1,-1).split("].[");1<r.length;){r.pop();var A=1<r.length?`[${r.join("].[")}]`:r[0];null==b.find(C=>C[c.length+2]===A)&&(k=c.slice(0,-1),n=p.Ib(A),
null!=n&&(k.push(n.ordinal),k.unshift(A),k.unshift(g),""!=d&&k.unshift(d),a.push(k)))}c.unshift(m);c.unshift(g);""!=d&&c.unshift(d);a.push(c)}return a}set ig(b){b=b.toLowerCase();this.h_=b==l.i.Ba.hc||b==l.i.Ba.Nc?b:l.i.Ba.ed}get ig(){return this.h_}get A(){return this.iC}set A(b){this.iC=b}get caption(){return this.yc}set caption(b){this.yc=b}get Na(){return this.vb}set Na(b){this.ld=[];this.ue=[];this.fu=null;this.h_=l.i.Ba.ed;this.Mf=null;this.vb=b}get ke(){return this.vb.indexOf("[Measures]")}set ke(b){}get nI(){return this.vb.getItem("[Measures]")}set nI(b){}get bb(){return-1<
this.ke}set bb(b){}get depth(){for(var b=0,a=0;a<this.vb.length;a++){var c=this.vb.fa(a);b+=c.jda}return b}set depth(b){}toString(){return"[Axis:"+this.iC+" ]"}static pFa(b,a,c){"[Measures]"!==b.A&&(c=c.Da.getItem(b.A),void 0===c||c.yc===b.caption&&!a.hasOwnProperty("caption")||(c.yc!==b.caption?a.caption=c.yc:a.hasOwnProperty("caption")&&a.caption!==c.yc&&(c.yc=a.caption)))}static xb(b,a,c,d,g,k,m=null,n=!1){b=new f(b);m&&(b.Gi=t=>m(t));b.Na=new e.ub;if(a)for(let t=0;t<a.length;t++)if(null!=a[t].uniqueName){a[t].uniqueName=
l.ze.bh(a[t].uniqueName,a[t].caption);let r=k.uh(a[t].uniqueName);if(null!=r){n&&(r=r.clone(),r.JC(),r.filter.clear());this.pFa(r,a[t],k);h.Ct.xb(a[t],r);if(r.We&&b.A===l.i.ha.Lt)continue;const v=e.v(a[t].levelName)?e.v(a[t].activeLevelName)?null:a[t].activeLevelName:a[t].levelName;r.zf=v;b.Na.Ta(r.A,r)}}if(c){if(null!=c.measure){a="string"===typeof c.measure?new e.model.hb.oh(l.ze.bh(c.measure)):e.model.hb.oh.xb(c.measure);var p=b.Gi(a)}null!=p&&null!=c.tuple?b.SE(p,c.tuple,c.type):b.NQa=c}if(d&&
0<d.length){c=[];for(a=0;a<d.length;a++){k=d[a];n=[];0<k.length&&n.push(f.ofa(k[0]));for(p=1;p<k.length;p++)n.push(f.Wga(k[p]));c.push(n)}d=c}b.ld=d?b.Kha(d):[];if(g&&0<g.length){d=[];for(c=0;c<g.length;c++){a=g[c];k=[];0<a.length&&k.push(f.ofa(a[0]));for(n=1;n<a.length;n++)k.push(f.Wga(a[n]));d.push(k)}g=d}b.ue=g?b.Jha(g):[];return b}static ofa(b){if("string"===typeof b){const a=parseInt(b);if(isNaN(a)||a.toString()!==b)return l.ze.bh(b)}return b}static Wga(b){if("string"===typeof b){const a=parseInt(b);
if(isNaN(a)||a.toString()!==b)return l.ze.Ws(b)}return b}Sa(){for(var b={},a=[],c=0;c<this.Na.length;c++){var d=this.Na.fa(c).Sa();a.push(d)}b.hierarchies=a;this.ig==l.i.Ba.ed||e.v(this.jn)||e.v(this.Mf)||(b.sort={type:this.ig,tuple:this.XW,measure:{uniqueName:this.Mf.A,aggregation:this.Mf.$}});return b}SE(b,a,c){this.Mf=b;this.jn=a;this.ig=c;0==a.length&&(this.Or=this.ig,this.wt=this.Mf)}KC(){this.jn=this.Mf=null;this.Or=this.ig=l.i.Ba.ed;this.wt=null}clone(){var b=new f(this.iC);b.caption=this.caption;
b.Na=this.Na.slice(0);b.wt=this.wt;b.Or=this.Or;b.Mf=this.Mf;b.jn=this.jn;b.ig=this.ig;b.ld=this.ir(this.ld);b.ue=this.ir(this.ue);return b}ir(b){for(var a=[],c=0;c<b.length;c++)a.push(b[c].slice());return a}}h.Tr=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(b){this.hs=new e.ub;this.mb=[];this.Q$=this.R$=this.W$=this.X$=!1;this.SB=[];this.pR=[];this.kR=[];this.Ij={};this.J3=!0;this.Yc=b;this.ku(new l.O.Tr(l.i.ha.Ia));this.ku(new l.O.Tr(l.i.ha.Oa));this.ku(new l.O.Tr(l.i.ha.Lt))}get axes(){return this.hs}set axes(b){}ku(b){this.hs.Ta(b.A,b);b.bb&&(this.KB=b)}td(b){return this.hs.getItem(b)}Iza(b){if(-1!=this.$b.Na.indexOf(b))return this.$b;if(-1!=this.Lb.Na.indexOf(b))return this.Lb;if(-1!=this.vI.Na.indexOf(b))return this.vI}set As(b){}get As(){this.Cka();
return this.KB}Cka(){if(null==this.KB){for(var b=0;b<this.hs.length;b++){var a=this.hs.fa(b);if(a.bb){this.KB=a;break}}null==this.KB&&(this.KB=this.td(l.i.ha.Oa))}this.KB.bb||(b=this.Yc.nI)&&this.KB.Na.Ta(b.A,b)}get Hr(){const b=[],a={};for(var c=0;c<this.mb.length;c++){var d=this.mb[c];d.Qa||void 0!==a[d.A]||(b.push(d),a[d.A]=1)}return b}set Hr(b){}get gr(){for(var b=new e.ub,a=0;a<this.mb.length;a++){var c=this.mb[a];c.Qa&&b.Ta(c.A,c)}return b}set gr(b){}get Wf(){return this.mb}set Wf(b){this.zA(b)}gd(b=
!1){for(var a=[],c=0;c<this.mb.length;c++){var d=this.mb[c];!b&&d.hidden||a.push(d)}return a}zA(b){this.mb=b}Gi(b){for(var a=0;a<this.mb.length;a++)if(b.A==this.mb[a].A&&(""==b.$||b.$===this.mb[a].$))return this.mb[a];return null}bx(b){return b instanceof e.model.hb.oh?this.Gi(b):isNaN(b)?null:this.mb[b]}Iea(b,a){for(var c=0;c<this.mb.length;c++)if(b==this.mb[c].A&&(void 0==a||a==this.mb[c].$))return c;return-1}vc(b=!0,a=!0,c=!1,d=!1){let g=new e.ub;for(let k=0;k<this.hs.length;k++){const m=this.hs.fa(k);
g=g.concat(m.Na)}b||g.removeItem(this.Yc.nI.A);if(!a)for(b=0;b<this.qb.length;b++)g.removeItem(this.qb.Uh(b));if(c)for(c=0;c<this.mb.length;c++)b=this.mb[c],b.Qa||b.hidden&&!d||(b=this.Yc.Ok(b.A),e.v(b)||g.Ta(b.A,b));return g}clear(){for(var b=0;b<this.hs.length;b++)this.hs.fa(b).Na=new e.ub;this.mb=[]}get rows(){return this.td(l.i.ha.Ia).Na}set rows(b){var a=this.td(l.i.ha.Ia);null==a&&(a=new h.Tr(l.i.ha.Ia));a.Na=b;null==b&&(a.Na=new e.ub);a.Gi=c=>this.bx(c);this.ku(a)}get Ka(){return this.td(l.i.ha.Oa).Na}set Ka(b){var a=
this.td(l.i.ha.Oa);null==a&&(a=new h.Tr(l.i.ha.Oa));a.Na=b;null==b&&(a.Na=new e.ub);a.Gi=c=>this.bx(c);this.ku(a)}get qb(){return this.td(l.i.ha.Lt).Na}set qb(b){var a=this.td(l.i.ha.Lt);null==a&&(a=new h.Tr(l.i.ha.Lt));a.Na=b;null==b&&(a.Na=new e.ub);this.ku(a)}set wb(b){}get wb(){return this.As.A==l.i.ha.Ia?this.rows.splice(this.As.ke,1):this.rows}set Fb(b){}get Fb(){return this.As.A==l.i.ha.Oa?this.Ka.splice(this.As.ke,1):this.Ka}clone(){var b=new f(this.Yc);b.rows=this.rows.slice();b.Ka=this.Ka.slice();
b.qb=this.qb.slice();b.zA(this.gd(!0));b.Zg=this.Zg.slice(0);b.$g=this.$g.slice(0);b.cd=this.cd.slice(0);b.ku(this.$b.clone());b.$b.Gi=a=>this.bx(a);b.ku(this.Lb.clone());b.Lb.Gi=a=>this.bx(a);b.lf=this.lf;b.kf=this.kf;b.hf=this.hf;b.Xf=this.Xf;return b}static Bba(b,a){if(null==a)return!0;var c=b.rows.length!=a.rows.length;if(!c)for(var d=0;d<b.rows.length;d++)if(b.rows.fa(d).A!=a.rows.fa(d).A){c=!0;break}return c}static Aba(b,a){if(null==a)return!0;var c=b.Ka.length!=a.Ka.length;if(!c)for(var d=
0;d<b.Ka.length;d++)if(b.Ka.fa(d).A!=a.Ka.fa(d).A){c=!0;break}return c}static cva(b,a){if(null==a)return!0;b=b.gd();a=a.gd();var c=b.length!=a.length;if(!c)for(var d=0;d<b.length;d++)if(b[d].A!=a[d].A){c=!0;break}return c}static Xua(b,a){void 0!==a.caption&&null!=b&&(b.caption=a.caption)}static fEa(b){return void 0===b.formula?!0:e.model.C.F.tu&&l.Ma.R().ga.Aa===l.i.ra.Cc||!l.Ma.R().ga.Ec||l.Ma.R().ga.Aa===l.i.ra.API}static xb(b,a,c=!1,d=!1){const g=new f(a);var k=[],m=a.vc(),n=b.Da.map(r=>r.uniqueName);
for(var p=0;p<b.Da.length;p++)if(void 0!==b.Da[p].uniqueName&&this.fEa(b.Da[p])){e.ka(b.Da[p].formula)&&(a.fd(b.Da[p].uniqueName)||(b.Da[p].uniqueName=l.ze.bh(b.Da[p].uniqueName)));var t=a.Da.getItem(b.Da[p].uniqueName);if(null!=t||!e.ka(b.Da[p].formula)){this.Xua(m.getItem(b.Da[p].uniqueName),b.Da[p]);t=a.Dx(b.Da[p],t);t.hidden=!1;if(t.Qa&&!a.Da.Bb(t.A)){if(e.model.C.F.RO&&!g.eNa(t,n))continue;a.zk(t)}if(null==b.Da[p].active||b.Da[p].active)t=t.clone(),t.index=k.length,k.push(t)}e.model.C.F.sc&&
!e.v(b.Da[p].filter)&&(t=m.getItem(b.Da[p].uniqueName),e.v(t)||(t.filter=e.model.hb.lB.xb(b.Da[p].filter,t)))}g.G6(k);k=l.O.Tr.xb(l.i.ha.Ia,b.rows,b.hk,b.Ww,b.Tw,a,r=>g.bx(r),c);m=l.O.Tr.xb(l.i.ha.Oa,b.Ka,b.Yj,b.Vw,b.Sw,a,r=>g.bx(r),c);c=l.O.Tr.xb(l.i.ha.Lt,b.qb,null,[],[],a,null,c);g.rows=k.Na;g.Ka=m.Na;g.qb=c.Na;g.lf=b.lf;g.kf=b.kf;g.hf=b.hf;g.Xf=b.Xf;if(l.Ma.R().ga&&l.Ma.R().ga.aI)if(g.Zg=b.Zg,e.v(b.$g))if(m.ig==l.i.Ba.ed||e.v(m.Mf))for(c=b.rows.concat(b.Ka.concat(b.qb)),n=0;n<c.length;n++){if(t=
c[n],p=t.sortName,t=a.fd(t.uniqueName),!e.v(p)&&!e.v(t)&&l.i.Ba.ih(p)&&p!=l.i.Ba.ed){g.$g=[{sort:p,measure:t}];break}}else g.$g=[{sort:m.ig,measure:m.Mf}];else g.$g=f.Rda(b.$g,a);g.cd=b.cd;g.Ij=b.Ij;g.ku(k);g.ku(m);g.Cka();g.Eka();d||g.MKa(g);return g}static Rda(b,a){if(e.v(b))return null;const c=[];for(var d=0;d<b.length;d++){var g=b[d];const k=a.fd(g&&g.uniqueName?g.uniqueName:g.measure.uniqueName);g=String(g.sort).toLowerCase();!e.v(k)&&l.i.Ba.ih(g)&&c.push({measure:k,sort:g})}return c}Eka(){const b=
e.model.C.F.sc,a=this.mb.filter(k=>-1<l.i.ea.RA.indexOf(k.$));for(var c=0;c<this.rows.length;c++){var d=this.rows.fa(c),g=d.filter.measure;b&&d.filter.ji&&!e.v(this.Yc.fd(g.A))||this.oga(d,g,a)||d.filter.HC()}for(c=0;c<this.Ka.length;c++)d=this.Ka.fa(c),g=d.filter.measure,b&&d.filter.ji&&!e.v(this.Yc.fd(g.A))||this.oga(d,g,a)||d.filter.HC()}oga(b,a,c){c=c.find(d=>a&&d.A===a.A);return!(b.filter.ji&&null==this.fd(b.filter.measure.A)||a&&l.Ma.R().ga.Ec&&void 0!==c)}eNa(b,a){b=u.LP.pS(b.Ge,b.A,a);return 0==
b.px?(e.Va(b.errorMessage),!1):!0}MKa(b){if(null!=l.Ma.R().qa){var a=l.Ma.R().qa.As,c=b.As;null!=a&&null!=c&&a.A!=c.A||null==a.Mf||null==b.Gi(new e.model.hb.oh(a.Mf.A,a.Mf.$,a.Mf.index))||null!=c.Mf||(c.Mf=a.Mf,c.XW=a.XW,c.jn=a.jn,c.ig=a.ig)}}kka(){const b=new e.model.hb.vo,a=this.td(l.i.ha.Ia).Sa(),c=this.td(l.i.ha.Oa).Sa();var d=this.td(l.i.ha.Lt).Sa();b.rows=a.hierarchies;b.Ka=c.hierarchies;b.qb=d.hierarchies;b.Da=[];d=this.Yc.Da;const g=this.gd();for(var k=0;k<g.length;k++){var m=g[k],n=m.Sa();
n.caption=m.Bl;n.active=!0;e.model.C.F.sc&&(m=this.Yc.Ok(m.A))&&m.filter.Fh&&!b.YDa(m.A)&&(n.filter=m.filter.Sa());b.Da.push(n)}for(k=0;k<d.length;k++){const p=d.fa(k);p.hidden&&!p.Qa||p.w2()||g.find(t=>t.A===p.A)||(n=p.Sa(),n.active=!1,b.Da.push(n))}b.hk=a.sort;b.Yj=c.sort;b.lf=this.lf;b.kf=this.kf;b.Ww=this.axes.getItem(l.i.ha.Ia).zda;b.Vw=this.axes.getItem(l.i.ha.Oa).zda;b.hf=this.hf;b.Xf=this.Xf;b.Tw=this.axes.getItem(l.i.ha.Ia).mda;b.Sw=this.axes.getItem(l.i.ha.Oa).mda;b.Zg=this.Zg;b.$g=this.Sda();
b.cd=this.cd;b.Ij=this.Ij;return b}Sda(){if(e.v(this.$g))return null;const b=[];for(var a=0;a<this.$g.length;a++){var c=this.$g[a];b.push({uniqueName:c.measure.A,sort:c.sort})}return b}Sa(){var b={};b.rows=[];for(var a=0;a<this.rows.length;a++){var c=this.rows.fa(a).Sa();b.rows[a]=c}b.columns=[];for(a=0;a<this.Ka.length;a++)c=this.Ka.fa(a).Sa(),b.columns[a]=c;b.pages=[];for(a=0;a<this.qb.length;a++)c=this.qb.fa(a).Sa(),b.pages[a]=c;b.measures=[];for(a=0;a<this.mb.length;a++)this.mb[a].hidden||(c=
this.mb[a].Sa(),b.measures[a]=c);return b}Y4(){for(var b=0;b<this.hs.length;b++)this.hs.fa(b).Y4()}flatten(b=!1,a=!1){const c=this.vc(!1);for(let d=0;d<this.mb.length;d++){if(this.mb[d].hidden)continue;const g=this.mb[d];if(a)g.type===l.i.Ra.wc?c.Bb(g.A)||c.Ta(g.A,g):c.Ta(g.A,g);else{let k=this.Ok(g.A);null!=k&&c.Ta(k.A,k);g.Qa&&b&&(k=new h.Ct(g.A,g.caption),c.Ta(g.A,k))}}return this.Pua(c,this.Zg)}Pua(b,a){const c=new e.ub;for(let d=0;d<a.length;d++){const g=a[d];b.Bb(g)&&(c.Ta(g,b.getItem(g)),b.removeItem(g))}for(a=
0;a<b.length;a++)c.Ta(b.Uh(a),b.fa(a));return c}isEqual(b){if(null==b)return!1;var a=this.gd(),c=b.gd();if(this.qb.length!=b.qb.length||this.rows.length!=b.rows.length||this.Ka.length!=b.Ka.length||a.length!=c.length)return!1;for(var d=0;d<this.qb.length;d++)if(this.qb.Uh(d)!=b.qb.Uh(d))return!1;for(d=0;d<this.rows.length;d++)if(this.rows.Uh(d)!=b.rows.Uh(d))return!1;for(d=0;d<this.Ka.length;d++)if(this.Ka.Uh(d)!=b.Ka.Uh(d))return!1;for(d=0;d<a.length;d++)if(a[d].A!=c[d].A||a[d].$!=c[d].$)return!1;
return!0}Ok(b){return this.Yc.Ok(b)}nf(b){return this.Yc.nf(b)}get kb(){return 0==this.vc(!1).length&&0==this.mb.length}rFa(){if(e.model.C.F.sc){this.rows=new e.ub;this.Ka=new e.ub;this.qb=new e.ub;for(var b=[],a=[],c=0;c<this.Yc.Da.length;c++){var d=this.Yc.Da.fa(c);a.push(d.A);d.type==l.i.Ra.wc?(d=this.Yc.Ok(d.A))&&this.rows.Ta(d.A,d):(d.index=0,b.push(d))}if(e.v(this.SB)||0==this.SB.length)this.SB=a;this.mb=b}else{for(c=0;c<this.Yc.Da.length&&(d=this.Yc.Da.fa(c),d.type!=l.i.Ra.jb?null==a&&(a=this.Yc.Ok(d.A)):
null==b&&(b=d),null==a||null==b);c++);null==b?b=this.Yc.Da.fa(0):null==a?(d=this.Yc.Da.fa(0),a=this.Yc.Ok(d.A)):null==a&&null==b&&0<this.Yc.Da.length&&(b=this.Yc.Da.fa(0),a=this.Yc.Ok(b.A));null!=a&&null!=b&&(this.qb=new e.ub,this.rows=new e.ub,this.Ka=new e.ub,this.rows.Ta(a.A,a),c=[],b.index=0,c.push(b),this.mb=c)}}get lf(){return this.X$}set lf(b){this.X$=b}get kf(){return this.W$}set kf(b){this.W$=b}get hf(){return this.R$}set hf(b){this.R$=b}get Xf(){return this.Q$}set Xf(b){this.Q$=b}fwa(){this.$b.ld=
[]}$va(){this.Lb.ld=[]}ewa(){this.$b.ue=[]}Zva(){this.Lb.ue=[]}dwa(){for(let b=0;b<this.$b.Na.length;b++)this.$b.Na.fa(b).Vba()}Yva(){for(let b=0;b<this.Lb.Na.length;b++)this.Lb.Na.fa(b).Vba()}get Zg(){null==this.SB&&(this.SB=[]);return this.SB}set Zg(b){this.SB=b}get $g(){null==this.pR&&(this.pR=[]);return this.pR}set $g(b){this.pR=b}get cd(){null==this.kR&&(this.kR=[]);return this.kR}set cd(b){this.kR=b}get $b(){return this.axes.getItem(l.i.ha.Ia)}get Lb(){return this.axes.getItem(l.i.ha.Oa)}get vI(){return this.axes.getItem(l.i.ha.Lt)}G6(b){void 0===
b&&(b=this.mb);const a=[];if(this.Yc instanceof l.external.jc.O.jJ&&0<e.model.va.nn.Xc.length)for(var c=0;c<e.model.va.nn.Xc.length;c++){var d=e.model.va.nn.Xc.fa(c);if((d=u.Ht.RM(d.Ud,this.Yc.Da))&&0<d.length)for(var g=0;g<d.length;g++){var k=d[g];let n=this.Yc.Da.getItem(k.A);if(null!=n){var m=b.find(p=>p.A===n.A);if(null==m||!m.Qa&&m.$!=k.$)m=n.clone(),m.$=k.$,m.hidden=!0,a.push(m)}}}c=null;for(d=0;d<b.length;d++)if(c=b[d],c.format=this.Yc.Da.getItem(c.A).format,a.push(c),c.Qa){if((g=u.Ht.RM(c.Ud,
this.Yc.Da))&&0<g.length)for(k=0;k<g.length;k++){m=g[k];let n=this.Yc.Da.getItem(m.A);if(null!=n){let p=b.find(t=>t.A===n.A);if(null==p||!p.Qa&&p.$!=m.$)p=n.clone(),p.$=m.$,p.hidden=!0,a.push(p)}}this.Yc instanceof l.external.jc.O.jJ&&(c.Ud=u.Ht.FH(c.Ud,this.Yc.Da))}this.zA(a)}HFa(b){e.v(b)||(this.lf=b.lf,this.kf=b.kf,this.hf=b.hf,this.Xf=b.Xf,f.Bba(this,b)?(this.$b.ld=this.ZS(b.$b.ld,this.RT(this.$b.Na,b.$b.Na)),this.$b.ue=this.ZS(b.$b.ue,this.RT(this.$b.Na,b.$b.Na)+2)):(this.$b.ld=this.ir(b.$b.ld),
this.$b.ue=this.ir(b.$b.ue)),f.Aba(this,b)?(this.Lb.ld=this.ZS(b.Lb.ld,this.RT(this.Lb.Na,b.Lb.Na)),this.Lb.ue=this.ZS(b.Lb.ue,this.RT(this.Lb.Na,b.Lb.Na)+2)):(this.Lb.ld=this.ir(b.Lb.ld),this.Lb.ue=this.ir(b.Lb.ue)))}EE(b,a){const c=[];for(let d=0;d<this.mb.length;d++)(this.mb[d].A!==b||this.mb[d].$!==a&&void 0!==a)&&c.push(this.mb[d]);this.mb=c}qia(b){b.index<this.mb.length&&this.mb[b.index].A===b.A&&this.mb[b.index].$===b.$?this.mb.splice(b.index,1):this.EE(b.A,b.$)}fd(b){for(var a=0;a<this.mb.length;a++)if(this.mb[a].A==
b)return this.mb[a]}RT(b,a){for(var c=0,d=Math.min(b.length,a.length),g=0;g<d;g++){var k=b.fa(g),m=a.fa(g);if(k.A!=m.A)break;k.We||c++}return c}ZS(b,a){var c=[];if(1<a)for(var d=0;d<b.length;d++){var g=b[d];g.length<=a&&c.push(g.slice())}return c}ir(b){for(var a=[],c=0;c<b.length;c++)a.push(b[c].slice());return a}r0(b){return this.kca(b,this.wb)}q0(b){return this.kca(b,this.Fb)}kca(b,a){var c=[];if(e.v(b))return c;for(var d=0;d<b.length;d++){var g=a.fa(d);e.v(g)||(g=g.za(b[d]),e.v(g)||c.push(g.Sa()))}return c}YCa(){let b=
this.vc();for(let a=0;a<b.length;a++)if(b.fa(a).Ef)return!0;return!1}}h.Tq=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{get oL(){return!0}set oL(c){}nba(){throw"Not Implemented";}dua(c,d){e.v(this.Oy)&&(this.Oy=new e.ub);this.Oy.Ta(c,d)}Wea(c,d){return!e.v(this.Oy)&&this.Oy.Bb(c.A)?this.PS(this.Oy.getItem(c.A),d):this.CH(d)}PS(c,d){if("boolean"===typeof c)return!0===c?this.CH(d):null;const g=new a;d=this.CH(d);e.v(c.nd)||(g.nd=c.nd);e.v(c.query)||(g.query="boolean"===typeof c.query?!0===c.query?d.query:[]:c.query.slice());e.v(c.vm)||(g.vm="boolean"===typeof c.vm?!0===
c.vm?d.vm:[]:c.vm.slice());return g}CH(c){var d=new a;d.nd=!0;d.vm=l.i.Wb.Gq;switch(c){case l.i.tb.fl:d.query=l.i.Eb.Gq;break;case l.i.tb.Ua:d.query=l.i.cc.Gq;break;case l.i.tb.jb:d.query=l.i.Ug.Gq;break;case l.i.tb.ec:d.query=l.i.il.Gq}return d}}h.wX=f;class b{}h.yra=b;class a{get Wfa(){return 1==this.nd}get sN(){return!e.v(this.query)&&0<this.query.length}get pga(){return!e.v(this.vm)&&0<this.vm.length}merge(c){void 0===this.nd&&(this.nd=c.nd);void 0===this.query&&(this.query=c.query);void 0===
this.vm&&(this.vm=c.vm)}}h.xra=a})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){(function(h){class f extends h.Et{isEqual(b){return b.Aa==l.i.ra.EMPTY}clone(){return new f}Sa(){return{}}}h.gB=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends l.O.Et{constructor(){super(...arguments);this.requestPermission=this.Yd=!1;this.mapping=new l.O.Bm}isEqual(b){return super.isEqual(b)&&this.filename===b.filename&&!1===this.Yd&&!1===b.Yd&&this.mapping.isEqual(b.mapping)}}h.YP=f})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends l.c7{constructor(){super(...arguments);this.Kh=[];this.bo=[];this.aZ=[{value:"Chrome",$N:.76},{value:"Firefox",$N:.11},{value:"Safari",$N:.05},{value:"Edge/IE",$N:.06},{value:"Opera",$N:.02}]}LC(){super.LC();this.Kh=[];this.bo=[]}iwa(){this.Kh=[];this.bo=[];this.values=[]}static clone(b){var a=new f(b.wa);a.qh=b.qh.slice(0);a.Wn=b.Wn.slice(0);a.zb=b.zb.slice(0);a.Kc=b.Kc.slice(0);a.ua=b.ua.slice(0);a.le=b.le.slice(0);a.th=b.th.slice(0);a.zg=b.zg.slice(0);
a.su=b.su.slice(0);a.nx=b.nx.slice(0);return a}qya(b){var a=this.Wn.indexOf(b);if(!e.v(b)&&-1<a){for(b=0;b<this.th.length;b++)void 0===this.Kh[b]&&(this.Kh[b]=[]),void 0!==this.Kc[b]?(this.Kc[b][a]=NaN,this.Kh[b][a]={Wp:-this.Kc[b][a],ht:-1}):this.Kh[b][a]={Wp:0,ht:0};this.qh=e.Ja.Qr(this.qh,this.qh.indexOf(a));this.Wn[a]=null}}update(b,a,c){var d=this.Wn.indexOf(c);if(!e.v(c)&&-1<d){for(c=0;c<this.th.length;c++)if(this.Kc[c]&&this.Kc[c][d]!==a[c]){var g=a[c]-this.Kc[c][d];isNaN(g)||(null==this.Kh[c]&&
(this.Kh[c]=[]),this.Kh[c][d]={Wp:g,ht:g/this.Kc[c][d]})}for(c=0;c<a.length;c++)this.Kc[c][d]=a[c];for(c=0;c<b.length;c++)this.zb[c][d]=b[c]}else{d=this.HA;e.v(c)||(this.Wn[d]=c);for(c=0;c<this.th.length;c++)g=a[c],isNaN(g)||(null==this.Kh[c]&&(this.Kh[c]=[]),this.Kh[c][d]={Wp:g,ht:1});this.qh=e.Ja.Pr(this.qh,d);for(c=0;c<b.length;c++)this.zb[c]=e.Ja.Pr(this.zb[c],b[c]);for(c=0;c<a.length;c++)this.Kc[c]=e.Ja.Pr(this.Kc[c],a[c])}}insert(b,a,c){if(!(-1<b.indexOf(0))){var d;if(0===this.zb.length)for(d=
0;d<b.length;d++)this.zb[d]=[];this.qh=e.Ja.Pr(this.qh,this.HA);e.v(c)||(this.Wn[this.HA]=c);for(d=0;d<b.length;d++)this.zb[d]=e.Ja.Pr(this.zb[d],b[d]);if(0===this.Kc.length)for(d=0;d<a.length;d++)this.Kc[d]=[];for(d=0;d<a.length;d++)this.Kc[d]=e.Ja.Pr(this.Kc[d],a[d])}}yea(b,a,c,d){if(0!=b.length){var g=this.Kc[a]instanceof Uint8Array;for(let m=0;m<b.length;m++){var k=this.Kc[a][b[m]];isNaN(k)||g&&0==k||d[k]||(c.push(k),d[k]=!0)}}}VKa(b,a,c,d){b=this.eb[b[0]];a=a[0];const g=[];let k,m;this.Kh=[];
this.Kh[b]=[];this.values=[];this.bo=[];if(null!=c){let n=c.Oda(d);m=this.Oea(c.za(this.zb[a][b]),"string"==typeof d);null==n&&(n=null!=c.Ib(d)?c.pc(new l.O.be({A:e.P.zM(),caption:d})):c.pc(new l.O.be({A:d,caption:d})));this.zb[a][b]=n.ordinal;k=null!=this.Wn[b]?this.Wn[b]:b;g.push({id:k,field:c.A,value:d,oldValue:m});c=parseFloat(d)-this.Kc[a][b];this.Kh[b][a]={Wp:c,ht:c/this.Kc[a][b]};this.Kc[a][b]=parseFloat(d);0<g.length&&this.wa.Ria(g);return n.ordinal}}Oea(b,a){return null==b?"":a?b.caption:
b.nc}save(b,a,c,d,g){var k=this.md(b,this.Cd),m=this.md(a,this.Od);g=(b.length*m[0][0].length<a.length*k[0][0].length?this.Zp(m[0][0],b,this.Zh):this.Zp(k[0][0],a,this.xj))[g];b=[];a=this.th.indexOf(this.wa.O.nf(c.A).A);this.Kh=[];this.Kh[a]=[];k=parseFloat(d)-this.Kc[a][g];this.Kh[a][g]={Wp:k,ht:k/this.Kc[a][g]};this.Kc[a][g]=parseFloat(d);this.values=[];this.bo=[];if(null!=c)return m=this.le.indexOf(c.A),k=c.Oda(d),k=null===k?c.Ib(d):k,a=this.Oea(c.za(this.zb[m][g]),"string"==typeof d),null==k&&
(k=c.pc(this.BBa(c,d))),k.nc=d,this.zb[m][g]=k.ordinal,g=null!=this.Wn[g]?this.Wn[g]:g,b.push({id:g,field:c.A,value:d,oldValue:a}),0<b.length&&this.wa.Ria(b),k.ordinal}BBa(b,a){b=this.wa.O.nf(b.A);l.i.Ra.Ua==b.type?(b=e.P.$x(a,e.model.C.F.Up,e.model.C.F.$j),a=new l.O.be({A:b,caption:b,nc:a})):l.i.Ra.wc==b.type?a=new l.O.be({A:a.toString(),caption:a.toString()}):l.i.Ra.ec==b.type?(b=e.P.ey(a,e.model.C.F.np),a=new l.O.be({A:b,nc:a})):a=new l.O.be({A:a.toString(),caption:a.toString(),nc:a});return a}cd(b,
a){const c=[];c.push(this.le);var d=this.md(b,this.Cd);if(e.v(d)||e.v(d[0])||e.v(d[0][0]))return c;var g=this.md(a,this.Od);if(e.v(g)||e.v(g[0])||e.v(g[0][0]))return c;b=b.length*g[0][0].length<a.length*d[0][0].length?this.Zp(g[0][0],b,this.Zh):this.Zp(d[0][0],a,this.xj);for(a=0;a<b.length;a++){d=[];for(g=0;g<this.zb.length;g++)d.push(this.zb[g][b[a]]);c.push(d)}return c}HD(b,a,c){b=this.Bs(b,a);a=c.Qa?this.slice.gd().findIndex(d=>d.A===c.A)+this.th.length:this.th.indexOf(c.A);return void 0==this.bo[b]?
null:this.bo[b][a]}Fea(b,a){if(a.Qa)return null;a=this.th.indexOf(a.A);return null==b?this.U_(this.eb,a):void 0==this.bo[b]?null:this.bo[b][a]}Ps(b){return null==this.eb[b]||null==this.zb[0][this.eb[b]]||""==this.wa.O.id?null:this.Wn[this.eb[b]]}oCa(b,a){if(0==this.Wn.length)return null;var c=this.md(b,this.Cd);if(e.v(c)||e.v(c[0])||e.v(c[0][0]))return null;const d=this.md(a,this.Od);if(e.v(d)||e.v(d[0])||e.v(d[0][0]))return null;b=b.length*d[0][0].length<a.length*c[0][0].length?this.Zp(d[0][0],b,
this.Zh):this.Zp(c[0][0],a,this.xj);a=[];for(c=0;c<b.length;c++)a.push(this.Wn[b[c]]);return 0==a.length?null:a}XT(b,a,c,d,g){if(this.wa.ga.mN)return 0===this.zb[0][b]&&this.KAa(b),this.zb[a][b];if(null==this.eb[b]||null==this.zb[0][this.eb[b]])return NaN;if(d){!c.Qa&&this.Kh.length&&(d=this.th.indexOf(c.A),null==this.bo[b]&&(this.bo[b]=[]),this.bo[b][d]=this.U_([this.eb[b]],d));if(c.Qa){b=this.bq([this.eb[b]],c.Ud,c.Lk,0,null,null,c.Jn);if(!0===b||!1===b)b=!0===b?1:0;return b}return this.Kc[a][this.eb[b]]}this.Kc.length!=
this.zb.length&&(a=this.le.indexOf(this.th[a]),void 0!==g&&(a=this.ua[a][g]));return this.zb[a][this.eb[b]]}La(b,a,c){var d=this.Bs(b,a),g=this.ii(c);if(e.v(this.values[g])||-1==g)this.values[g]=[];g=this.values[g];if(!g[d]){var k=this.md(b,this.Cd),m=this.md(a,this.Od);if(null==k||null==k[0]||null==m||null==m[0])return NaN;var n=[],p=this.th.indexOf(c.A);0<m.length&&0<k.length&&b.length*m[0][0].length<a.length*k[0][0].length?n=this.Zp(m[0][0],b,this.Zh):0<k.length&&(n=this.Zp(k[0][0],a,this.xj));
if(c.Qa){if(b=this.bq(n,c.Ud,c.Lk,0,b,a,c.Jn),!0===b||!1===b)b=!0===b?1:0}else b=c.$==l.i.ea.pj?c.type==l.i.Ra.wc?this.GM(n,c):this.xea(n,b,a,p):this.Wg(n,p,c.$);g[d]=b;0<this.Kh.length&&(null==this.bo[d]&&(this.bo[d]=[]),this.bo[d][p]=this.U_(n,p));return b}return g[d]}U_(b,a){if(void 0==this.Kh[a])return null;for(var c=!1,d={Wp:0,ht:0},g=0;g<b.length;g++)this.Kh[a][b[g]]&&0!=this.Kh[a][b[g]].Wp&&!isNaN(this.Kh[a][b[g]].Wp)&&(d.Wp+=this.Kh[a][b[g]].Wp,d.ht+=this.Kh[a][b[g]].ht,c=!0);return c?d:null}pack(){if(!this.wa.ga.mN){var b=
this.wa.O.vc(!1);65536>this.qh.length?this.qh=new Uint16Array(this.qh):4294967296>this.qh.length&&(this.qh=new Uint32Array(this.qh));var a;for(a=0;a<b.length;a++){var c=b.fa(a),d=this.le.indexOf(c.A);-1===d&&(d=this.le.indexOf(c.caption));for(var g=1;g<this.ua[d].length;g++)256>c.Zi&&this.zb.hasOwnProperty(this.ua[d][g])?this.zb[this.ua[d][g]]=new Uint8Array(this.zb[this.ua[d][g]]):65536>c.Zi&&this.zb.hasOwnProperty(this.ua[d][g])?this.zb[this.ua[d][g]]=new Uint16Array(this.zb[this.ua[d][g]]):4294967296>
c.Zi&&this.zb.hasOwnProperty(this.ua[d][g])&&(this.zb[this.ua[d][g]]=new Uint32Array(this.zb[this.ua[d][g]]))}for(a=0;a<this.th.length;a++)c=b.getItem(this.th[a]),null!=c&&(c=this.wa.O.wD(c.A),c!==l.i.input.sa.jb&&c!==l.i.input.sa.oj&&c!==l.i.input.sa.Mc&&c!==l.i.input.sa.ec&&(this.Kc[a]=new Uint8Array(this.Kc[a])))}}filter(){this.Od=[];this.Cd=[];this.values=[];this.tR=[];this.dm=[];this.bo=[];this.Uua();this.pack();var b=e.model.C.F.sc&&e.model.C.F.me!=e.K.Jd.nj,a=this.slice.vc(!1,!0,b),c=new e.ub,
d=new e.ub,g,k,m=this.slice.gd();for(g=0;g<a.length;g++)(k=a.fa(g))&&k.filter.Fh&&(k.filter.ji?(b?d.Ta(k.A,k):m.find(n=>n.A===k.filter.measure.A)&&!this.slice.qb.Bb(k.A)&&d.Ta(k.A,k),k.filter.Gh&&c.Ta(k.A,k)):c.Ta(k.A,k));this.cw(c,this.qh);for(g=0;g<d.length;g++)k=d.fa(g),!b||k.filter.Wu&&k.filter.measure&&this.wa.O.gr.Bb(k.filter.measure.A)?this.bva(k):this.Rua(k);this.cw(d,this.eb);if(0<d.length&&!b)for(b=[],g=0;g<a.length;g++)c=a.fa(g),d=this.le.indexOf(c.A),-1===d&&(d=this.le.indexOf(c.caption)),
b.push(d),c.filter.ji&&(d=this.wa.O.Da.getItem(c.filter.measure.A),void 0!==d&&(m=this.th.indexOf(d.A),this.eb=this.Taa(b,0,this.eb.slice(),m,d,c.filter,[])))}Taa(b,a,c,d,g,k,m){let n=b[a],p=[],t;for(let r=0;r<c.length;r++)t=this.zb[n][c[r]],void 0===p[t]&&(p[t]=[]),p[t].push(c[r]);for(let r in p)this.usa(p[r],d,g,k)&&(m=a===b.length-1?m.concat(p[r]):this.Taa(b,a+1,p[r],d,g,k,m));return m}usa(b,a,c,d){if(c.Qa){var g=e.v(this.su[a])?c.Ud:this.su[a];a=e.v(this.nx[a])?c.Lk:this.nx[a];b=this.bq(b,g,a,
0,null,null,c.Jn)}else b=c.$==l.i.ea.pj?this.GM(b,c):this.Wg(b,a,c.$);if(d.query.va===l.i.Wb.Rj||d.query.va===l.i.Wb.pi)return!0;if(d.query.va===l.i.Wb.EQUAL)return b===d.query.value;if(d.query.va===l.i.Wb.Tf)return b!==d.query.value;if(d.query.va===l.i.Wb.GREATER)return b>d.query.value;if(d.query.va===l.i.Wb.dl)return b>=d.query.value;if(d.query.va===l.i.Wb.LESS)return b<d.query.value;if(d.query.va===l.i.Wb.gl)return b<=d.query.value;if(d.query.va===l.i.Wb.mh)return b>=d.query.value[0]&&b<=d.query.value[1];
if(d.query.va===l.i.Wb.Tg)return b<d.query.value[0]||b>d.query.value[1]}cw(b,a){for(var c=[],d=[],g=0;g<b.length;g++){var k=b.fa(g),m=this.le.indexOf(k.A);if(k.filter.Fh){c.push(m);d.push(k.vza().length/k.pd.children.length);this.filters[m]=[];this.Yx[m]=[];for(var n=0;n<k.eb.length;n++){var p=k.za(k.eb[n]);1===p.level.yb?this.filters[m][p.ordinal]=!0:(void 0===this.Yx[m][p.root.ordinal]&&(this.Yx[m][p.root.ordinal]=[]),void 0===this.Yx[m][p.root.ordinal][p.level.yb]&&(this.Yx[m][p.root.ordinal][p.level.yb]=
[]),this.Yx[m][p.root.ordinal][p.level.yb][p.ordinal]=!0)}}}d=e.Ja.sort(d,e.Ja.Tv|e.Ja.Ti);if(0<c.length)for(g=0;g<c.length;g++){b=c[d[g]];k=[];for(m=0;m<a.length;m++)if(n=this.zb[this.ua[b][1]][a[m]],!0===this.filters[b][n])k.push(a[m]);else if(void 0!==this.Yx[b][n])for(p=2;p<this.ua[b].length;p++)if(void 0!==this.Yx[b][n][p]&&!0===this.Yx[b][n][p][this.zb[this.ua[b][p]][a[m]]]){k.push(a[m]);break}a=k}this.eb=a}ysa(b){var a=this.le.indexOf(b.Nz.A),c=this.le.indexOf(b.A);-1===a&&(a=this.Jm(b.Nz.A,
b.A),this.ua[c].pop(),this.ua[c].splice(1,0,a));var d=[],g;for(g in b.groups)for(var k=b.Ib(b.Km(g)),m=0;m<b.groups[g].length;m++){var n=b.za(b.groups[g][m]);null!==n&&(d[n.ordinal]=k.ordinal)}b=b.Ib(b.Km("Others"));void 0===this.zb[a]&&(this.zb[a]=[]);for(g=0;g<this.HA;g++)n=this.zb[c][g],this.zb[a][g]=void 0!==d[n]?d[n]:b.ordinal}Gsa(b){var a=this.le.indexOf(b.A);if(this.ua[a]&&this.ua[a].length>b.ua.length)for(var c=0;c<this.ua[a].length;c++)if(!b.ua.Bb(this.le[this.ua[a][c]])){this.ua[a].splice(c,
1);break}}Uua(){var b,a,c=this.slice.vc(!1);for(b=0;b<c.length;b++)(a=c.fa(b))&&(null!=a.Nz?this.ysa(a):this.Gsa(a))}Rua(b){if(b.filter.ji){var a=this.wa.O.Da.getItem(b.filter.measure.A);if(void 0!==a){for(var c=[],d=[],g=this.th.indexOf(a.A),k=0;k<this.eb.length;k++)c.push(this.XT(k,g,a,!0)),d.push(this.XT(k,g,a,!1));b.filter.query.va==l.i.Wb.Rj?b.eb=this.Qua(c,d,b.filter.query.value):b.filter.query.va==l.i.Wb.pi?b.eb=this.Hua(c,d,b.filter.query.value):b.filter.query.va==l.i.Wb.EQUAL?b.eb=this.Iua(c,
d,b.filter.query.value):b.filter.query.va==l.i.Wb.Tf?b.eb=this.Oua(c,d,b.filter.query.value):b.filter.query.va==l.i.Wb.GREATER?b.eb=this.Kua(c,d,b.filter.query.value):b.filter.query.va==l.i.Wb.dl?b.eb=this.Jua(c,d,b.filter.query.value):b.filter.query.va==l.i.Wb.LESS?b.eb=this.Mua(c,d,b.filter.query.value):b.filter.query.va==l.i.Wb.gl?b.eb=this.Lua(c,d,b.filter.query.value):b.filter.query.va==l.i.Wb.mh?b.eb=this.Gua(c,d,Math.min(b.filter.query.value[0],b.filter.query.value[1]),Math.max(b.filter.query.value[0],
b.filter.query.value[1])):b.filter.query.va==l.i.Wb.Tg&&(b.eb=this.Nua(c,d,Math.min(b.filter.query.value[0],b.filter.query.value[1]),Math.max(b.filter.query.value[0],b.filter.query.value[1])))}}}Qua(b,a,c){var d=[];b=e.Ja.sort(b,e.Ja.tp|e.Ja.Tv|e.Ja.Ti);c=Math.min(c,a.length);for(var g=0;g<c;g++)d.push(a[b[g]]);return d}Hua(b,a,c){var d=[];b=e.Ja.sort(b,e.Ja.Tv|e.Ja.Ti);c=Math.min(c,a.length);for(var g=0;g<c;g++)d.push(a[b[g]]);return d}Iua(b,a,c){for(var d=[],g=a.length,k=0;k<g;k++)b[k]==c&&d.push(a[k]);
return d}Oua(b,a,c){for(var d=[],g=a.length,k=0;k<g;k++)b[k]!=c&&d.push(a[k]);return d}Kua(b,a,c){for(var d=[],g=a.length,k=0;k<g;k++)b[k]>c&&d.push(a[k]);return d}Jua(b,a,c){for(var d=[],g=a.length,k=0;k<g;k++)b[k]>=c&&d.push(a[k]);return d}Mua(b,a,c){for(var d=[],g=a.length,k=0;k<g;k++)b[k]<c&&d.push(a[k]);return d}Lua(b,a,c){for(var d=[],g=a.length,k=0;k<g;k++)b[k]<=c&&d.push(a[k]);return d}Gua(b,a,c,d){for(var g=[],k=a.length,m=0;m<k;m++)b[m]>=c&&b[m]<=d&&g.push(a[m]);return g}Nua(b,a,c,d){for(var g=
[],k=a.length,m=0;m<k;m++)(b[m]<c||b[m]>d)&&g.push(a[m]);return g}bva(b){if(b.filter.ji){var a=this.slice.Gi(b.filter.measure);if(void 0!==a){var c=[],d=[],g=[],k=this.le.indexOf(b.A);k=this.ua[k][b.ic?b.ic.yb:1];if(this.dm[k])for(var m in this.dm[k])g.push(this.dm[k][m]);else g=[k];k=[];for(m=0;m<g.length;m++)for(var n=0;n<this.eb.length;n++){var p=this.zb[g[m]][this.eb[n]];null==k[p]&&(k[p]=[]);k[p].push(this.eb[n])}g=this.th.indexOf(a.A);n=b.filter.Gh?b.filter.Hi():b.fr;p=a.Qa;var t=b.ic?b.ic.yb:
1;for(m=0;m<n.length;m++){var r=b.za(n[m]);if(!r.dc&&r.level.yb==t&&void 0!==k[r.ordinal]){if(p){var v=e.v(this.su[g])?a.Ud:this.su[g];var y=e.v(this.nx[g])?a.Lk:this.nx[g];v=this.bq(k[r.ordinal],v,y,0,null,null,a.Jn)}else v=k[r.ordinal],v=a.$==l.i.ea.pj?this.GM(v,a):this.Wg(v,g,a.$);isNaN(v)&&(v=Number.MIN_VALUE);c.push(v);d.push(r.ordinal)}}b.filter.query.va==l.i.Wb.Rj?b.eb=this.ava(c,d,b.filter.query.value):b.filter.query.va==l.i.Wb.pi?b.eb=this.Dua(c,d,b.filter.query.value):b.filter.query.va==
l.i.Wb.EQUAL?b.eb=this.Eua(c,d,b.filter.query.value):b.filter.query.va==l.i.Wb.Tf?b.eb=this.Zua(c,d,b.filter.query.value):b.filter.query.va==l.i.Wb.GREATER?b.eb=this.Tua(c,d,b.filter.query.value):b.filter.query.va==l.i.Wb.dl?b.eb=this.Sua(c,d,b.filter.query.value):b.filter.query.va==l.i.Wb.LESS?b.eb=this.Wua(c,d,b.filter.query.value):b.filter.query.va==l.i.Wb.gl?b.eb=this.Vua(c,d,b.filter.query.value):b.filter.query.va==l.i.Wb.mh?b.eb=this.Cua(c,d,Math.min(b.filter.query.value[0],b.filter.query.value[1]),
Math.max(b.filter.query.value[0],b.filter.query.value[1])):b.filter.query.va==l.i.Wb.Tg&&(b.eb=this.Yua(c,d,Math.min(b.filter.query.value[0],b.filter.query.value[1]),Math.max(b.filter.query.value[0],b.filter.query.value[1])))}}}ava(b,a,c){var d=[];b=e.Ja.sort(b,e.Ja.tp|e.Ja.Tv|e.Ja.Ti);c=Math.min(c,a.length);for(var g=0;g<c;g++)d.push(a[b[g]]);return d}Dua(b,a,c){var d=[];b=e.Ja.sort(b,e.Ja.Tv|e.Ja.Ti);c=Math.min(c,a.length);for(var g=0;g<c;g++)d.push(a[b[g]]);return d}Eua(b,a,c){for(var d=[],g=a.length,
k=0;k<g;k++)b[k]==c&&d.push(a[k]);return d}Zua(b,a,c){for(var d=[],g=a.length,k=0;k<g;k++)b[k]!=c&&d.push(a[k]);return d}Tua(b,a,c){for(var d=[],g=a.length,k=0;k<g;k++)b[k]>c&&d.push(a[k]);return d}Sua(b,a,c){for(var d=[],g=a.length,k=0;k<g;k++)b[k]>=c&&d.push(a[k]);return d}Wua(b,a,c){for(var d=[],g=a.length,k=0;k<g;k++)b[k]<c&&d.push(a[k]);return d}Vua(b,a,c){for(var d=[],g=a.length,k=0;k<g;k++)b[k]<=c&&d.push(a[k]);return d}Cua(b,a,c,d){for(var g=[],k=a.length,m=0;m<k;m++)b[m]>=c&&b[m]<=d&&g.push(a[m]);
return g}Yua(b,a,c,d){for(var g=[],k=a.length,m=0;m<k;m++)(b[m]<c||b[m]>d)&&g.push(a[m]);return g}Wg(b,a,c){return null===b||-1===a?NaN:0===b.length?c===l.i.ea.wc?0:NaN:c===l.i.ea.NONE?this.Kc[a][b[0]]:c===l.i.ea.wc?this.kBa(b,a):c===l.i.ea.pj?this.xea(b,[],[],a):c===l.i.ea.cs?this.iCa(b,a):c===l.i.ea.Uv?this.CCa(b,a):c===l.i.ea.Vv?this.DCa(b,a):1===b.length?this.Kc&&this.Kc[a]?this.Kc[a][b[0]]:NaN:c===l.i.ea.Sq||c===l.i.ea.Cp||c===l.i.ea.Rq||c===l.i.ea.Pq||c===l.i.ea.Qq||c===l.i.ea.Si||c===l.i.ea.ko||
c===l.i.ea.qn||c===l.i.ea.qo||c===l.i.ea.sn||c===l.i.ea.tn||c===l.i.ea.so?this.i2(b,a):c===l.i.ea.Mt?this.mCa(b,a):c===l.i.ea.Hq?this.fea(b,a):c===l.i.ea.Pv?this.WBa(b,a):c===l.i.ea.MAX?this.SBa(b,a):c===l.i.ea.MIN?this.ZBa(b,a):0}$M(){return this.zb}zI(){this.$_();for(var b,a=this.wa.O.N1(),c=0;c<a.length;c++){var d=a[c];b=this.wa.O.uD(d);if(b instanceof h.O.b9)l.i.dB.qB==b.type?(this.Jm(d+".Year"),this.Hn(this.wa.O.nf(d+".Year")),this.Jm(d+".Month"),this.Hn(this.wa.O.nf(d+".Month")),this.Jm(d+".Day"),
this.Hn(this.wa.O.nf(d+".Day"))):b.Na.Bb(d)&&(this.Jm(d),this.Hn(this.wa.O.nf(d)));else if(b instanceof h.O.$P)for(this.Jm(d),this.Hn(this.wa.O.nf(d)),d=2;d<b.ua.length;d++){var g=b.ua.fa(d);this.Jm(g.A,b.A)}else b instanceof h.O.aQ&&(1===b.yb?(this.Jm(b.hierarchy.A),this.Hn(this.wa.O.nf(b.hierarchy.A))):this.Jm(b.A,b.hierarchy.A))}if(this.slice){for(c=0;c<this.wa.O.Da.length;c++)b=this.wa.O.Da.fa(c),this.Jm(b.A),this.Hn(b);for(c=0;c<this.slice.Wf.length;c++)b=this.slice.Wf[c],this.Jm(b.A),this.Hn(b)}}Hn(b){b&&
(this.fL(b),this.Uy(b))}dba(b){for(var a=this.wa.O.uD("Browser"),c=0;c<b.length;c++)a.pc(new l.O.be({A:b[c].value}))}KAa(b){var a=this.Qha(b,{from:0,tm:500,Fx:30})+1,c=this.Qha(b,{from:0,tm:30,Fx:0})+1,d=.3>Math.abs(Math.sin(7*b))?1:0;this.zb[0][b]=this.MJa(5*b,this.aZ)+1;this.zb[1][b]=a*(4>c?c:10>c?Math.round(c/3):Math.round(c/7));this.zb[2][b]=c;this.zb[3][b]=d}C1(b){this.dba(this.aZ);var a=u.Nd().im?5E5:1E6;this.zb=[];this.zb[0]=new Uint8Array(a);this.zb[1]=new Uint16Array(a);this.zb[2]=new Uint8Array(a);
this.zb[3]=new Uint8Array(a);this.qh[a-1]=a;this.Cd=[];this.Cd=[[this.eb,[],[],void 0,void 0]];this.Od=[[this.eb,[],[],void 0,void 0]];this.dba(this.aZ);b()}Qha(b,a){b=Math.abs(Math.sin(1.17*b))*(a.tm-a.from)+a.from;if(b>=a.Fx){var c=(b-a.Fx)/(5*(a.tm-a.Fx));a=(b-a.Fx)*c+a.Fx}else c=(a.Fx-b)/(5*(a.Fx-a.from)),a=(a.Fx-b)*c+a.from;return Math.round(a)}MJa(b,a){b=Math.abs(Math.sin(b));for(var c=0,d=0;d<a.length;d++)if(c+=a[d].$N,c>b)return d;return a.length-1}}h.ZP=f})(l.local||(l.local={}))})(e.u||
(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends l.O.Ct{constructor(a,c=""){super(a,c);this.Le=e.model.C.F.Le;a=new f.aQ(a+".[(all)]","All",0);this.Sh(a);this.Js=this.Lm="(all member)";a=new l.O.be({A:"(all member)",caption:"All",dc:!0});super.pc(a)}pc(a,c,d){if(void 0===c)return super.pc(a);e.ka(a.value)||"null"===a.value||"undefined"===a.value?(e.model.C.F.qr?a.A=a.value+"":(a.A=void 0===a.parent?"":("["===a.parent.A.substr(0,1)?a.parent.A:"["+a.parent.A+"]")+".[]",a.caption=
a.value=""),""===a.caption&&(a.caption=e.model.B.j.Nl)):d===l.i.input.sa.jb&&(a.nc=a.value);if(c===l.i.input.sa.jb)c=this.pua(a);else if(c===l.i.input.sa.$c||c===l.i.input.sa.un||c===l.i.input.sa.nh)c=this.mba(a);else if(c===l.i.input.sa.Ua)c=this.Sta(a);else if(c===l.i.input.sa.Sf)c=this.iua(a,a.level);else if(c===l.i.input.sa.Mq)c=this.gba(a,!1);else if(c===l.i.input.sa.wp)c=this.gba(a,!0);else if(c===l.i.input.sa.oj)c=this.Uta(a);else if(c===l.i.input.sa.Mc)c=this.Wta(a);else if(c===l.i.input.sa.ec)c=
this.wua(a);else{if(c===l.i.input.sa.ty||c===l.i.input.sa.M8||c===l.i.input.sa.NF)return null;c=this.mba(a)}void 0!==a.Ye&&c.Ye.fua(a.Ye);return c}AD(){return new f.Loa(this)}Km(a="(Total)"){return a.toLocaleLowerCase()}get interval(){return this.type===l.i.Ic.Ua?this.zR:null}set interval(a){if(this.type===l.i.Ic.Ua){const c=a.substr(-1);if("y"===c||"q"===c||"M"===c||"w"===c)a="1"+c;this.zR=a}else this.zR=null}get Ek(){return this.Ksa}set Ek(a){this.Ksa=a}getTimezoneOffset(){if(this.type!==l.i.Ic.Ua)return null;
if(!e.v(this.Ek))return u.Lh.sg(this.Ek);var a=this.mapping.La(this.A,"format");if(!e.v(a))return u.Lh.sg(a);a=this.ua.fa(1);if(a.type===l.i.ib.Ua||a.type===l.i.ib.oj){if(a=u.Lh.sg(e.model.C.F.Up),null!==a)return a}else if(a.type===l.i.ib.Mc&&(a=u.Lh.sg(e.model.C.F.Ek),null!==a))return a;return e.v(e.model.C.F.$j)||isNaN(e.model.C.F.$j)?null:e.model.C.F.$j}get inputType(){return this.lG}set inputType(a){this.lG=a}get Td(){return!0}set Td(a){}mba(a){var c=void 0===a.A?a.value+"":a.A,d=this.Ib(c);null===
d&&(a.A=c,void 0===a.caption&&(a.caption=a.value+""),d=super.pc(a));return d}pua(a){var c=void 0===a.A?a.value+"":a.A;if(!this.Le){var d=this.Ib(c);null===d&&(a.A=c,void 0===a.caption&&(a.caption=a.value+""),a.nc=e.model.C.F.qr&&e.v(a.value)?a.value:e.P.q6(a.value),d=super.pc(a))}return d}Wta(a){var c=new e.Rf(a.value,{Vy:!1});c.Kf(this.getTimezoneOffset());this instanceof l.external.jc.O.WO||c.round(this.interval);c=c.getTime();let d=a.A;if(void 0===a.A||e.v(a.parent)&&e.v(a.Ki))d=isNaN(c)?e.model.B.j.jo:
""+c;var g=this.Ib(d);null===g&&(a.A=d,a.nc=c,g=super.pc(a));return g}wua(a){const c=parseFloat(a.value);var d=this.mapping.La(this.A,"format",e.model.C.F.np),g=isNaN(c)||""===String(a.value).trim()||c.toString()!==a.value.toString();d=g?"":e.P.ey(c,d);g=g?"":`${c}`;let k=this.Ib(g);null===k&&(a.A=g,a.caption=d,a.nc=c,k=super.pc(a));return k}Uta(a){var c=new e.Rf(a.value,{Vy:!1});c.Kf(this.getTimezoneOffset());this instanceof l.external.jc.O.WO||c.round(this.interval);var d=c.getTime();c=d;let g=
a.A;if(void 0===a.A||e.v(a.parent)&&e.v(a.Ki))g=isNaN(d)?e.model.B.j.jo:""+d;!e.model.C.F.qr||null!==a.value&&"null"!==a.value||(g="null",c=null);d=this.Ib(g);null===d&&(a.A=g,a.nc=c,d=super.pc(a));return d}gba(a,c){var d=new e.Rf(a.value,{Vy:!1});e.v(e.model.C.F.$j)||d.Kf(e.model.C.F.$j);var g="";if(null!=d&&!isNaN(d.getTime())&&d.ih()){var k=e.model.B.j.R9[Math.floor(d.getMonth()/3)];var m=e.model.B.j.bs[d.getMonth()];var n=d.getDate().toString();var p=d.getFullYear().toString();d=d.getTime()}else return n=
e.model.B.j.jo,p=this.Ib(n),null===p&&(a.A=n,a.caption=n,p=super.pc(a)),p;var t=""+p,r=p;p=this.Ib(t);null===p&&(a.A=t,a.caption=r,p=super.pc(a));c&&(c=`[${t}].[${k}]`,r=k,g=p,p=this.Ib(c),null===p&&(a.A=c,a.caption=r,a.parent=g,p=super.pc(a)),g=`.[${k}]`);k=m;m=`[${t}]${g}.[${m}]`;g=p;p=this.Ib(m);null===p&&(a.A=m,a.caption=k,a.parent=g,p=super.pc(a));k=n;n=`${m}.[${n}]`;g=p;p=this.Ib(n);null===p&&(a.A=n,a.caption=k,a.parent=g,a.nc=d,p=super.pc(a));return p}Sta(a){var c=[],d=new e.Rf(a.value,{Vy:!1});
e.v(e.model.C.F.$j)||d.Kf(e.model.C.F.$j);if(null!==d&&!isNaN(d.getTime())&&d.ih()){var g=e.model.B.j.bs[d.getMonth()];var k=d.getDate().toString();var m=d.getFullYear().toString();var n=d.getTime()}else{k=e.model.B.j.jo;for(n=0;3>n;n++){a=this.Ci.Na.fa(n);var p=a.Ib(k);null===p&&(p=a.pc(new l.O.be({A:k})));c.push(p)}return c}a=this.Ci.Na.fa(0);var t=this.bX(m);p=a.Ib(t);null===p&&(p=a.pc(new l.O.be({A:m,caption:t,nc:d.getFullYear()})));c.push(p);a=this.Ci.Na.fa(1);m=this.bX(g);p=a.Ib(m);null===p&&
(p=a.pc(new l.O.be({A:g,caption:m})));c.push(p);a=this.Ci.Na.fa(2);g=this.bX(k);p=a.Ib(g);null===p&&(p=a.pc(new l.O.be({A:k,caption:g,nc:n})));c.push(p);return c}bX(a){return a&&0<a.length&&"NaN"!=a?a:e.model.B.j.jo}iua(a,c){var d=void 0===a.parent?this.Ib(a.Ki):a.parent;null===d&&void 0!==a.Ki&&(d=this.Nda(a.Ki));var g=e.v(a.A)||!e.v(a.Ki)&&"["===a.Ki.substr(0,1)||!e.v(a.A)&&"["===a.A.substr(0,1)?a.value+"":a.A;if(1<c.yb){var k=c.hierarchy.ua.fa(c.yb-1);null===d&&(d=c.hierarchy.Ib(e.model.B.j.Nl),
null===d&&(d=k.hierarchy.pc(new l.O.be({A:e.model.B.j.Nl,caption:e.model.B.j.Nl}))));g=1===k.yb?`[${d.A}].[${g}]`:`${d.A}.[${g}]`}k=c.hierarchy.Ib(g);null===k&&(a.A=g,a.caption=e.v(a.caption)?a.value:a.caption,a.parent=1<c.yb?d:void 0,k=this.pc(a,l.i.ib.FA(c.type),l.i.ib.FA(c.inputType)));return k}lj(){const a=super.lj();a.type=this.inputType;return a}clone(){var a=super.clone();a.zR=this.zR;return a}}f.$P=b})(h.O||(h.O={}))})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends l.O.Dv{get inputType(){return this.lG}set inputType(a){this.lG=a}constructor(a,c="",d=0){super(a,c,d)}}f.aQ=b})(h.O||(h.O={}))})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){(function(h){(function(f){class b extends l.O.oJ{Sa(){var a=super.Sa();a.uniqueName=this.Fi;this.parent&&(a.parentMember=this.parent.Fi);return a}}f.Loa=b})(h.O||(h.O={}))})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends l.O.Vr{constructor(a,c=""){super(a,c)}get fc(){return e.model.Tb.valid(this.yc)?this.yc:e.model.Tb.validate(this.yc)}get caption(){if(!1===e.model.C.F.Tx||this.Qa)return this.fc;switch(this.$){case l.i.ea.wc:return e.P.bind(e.model.B.j.fP,this.fc);case l.i.ea.Mt:return e.P.bind(e.model.B.j.tQ,this.fc);case l.i.ea.pj:return e.P.bind(e.model.B.j.pP,this.fc);case l.i.ea.Hq:return e.P.bind(e.model.B.j.ZO,this.fc);case l.i.ea.Pv:return e.P.bind(e.model.B.j.nY,
this.fc);case l.i.ea.Uv:return e.P.bind(e.model.B.j.CQ,this.fc);case l.i.ea.Vv:return e.P.bind(e.model.B.j.DQ,this.fc);case l.i.ea.MAX:return e.P.bind(e.model.B.j.dQ,this.fc);case l.i.ea.MIN:return e.P.bind(e.model.B.j.mQ,this.fc);case l.i.ea.cs:return e.P.bind(e.model.B.j.iK,this.fc);case l.i.ea.Cp:return e.P.bind(e.model.B.j.cK,this.fc);case l.i.ea.Rq:return e.P.bind(e.model.B.j.hK,this.fc);case l.i.ea.Pq:return e.P.bind(e.model.B.j.fK,this.fc);case l.i.ea.Qq:return e.P.bind(e.model.B.j.gK,this.fc);
case l.i.ea.Si:return e.P.bind(e.model.B.j.QJ,this.fc);case l.i.ea.tn:return e.P.bind(e.model.B.j.vQ,this.fc);case l.i.ea.so:return e.P.bind(e.model.B.j.xQ,this.fc);case l.i.ea.ko:return e.P.bind(e.model.B.j.wJ,this.fc);case l.i.ea.qn:return e.P.bind(e.model.B.j.xJ,this.fc);case l.i.ea.qo:return e.P.bind(e.model.B.j.dK,this.fc);case l.i.ea.sn:return e.P.bind(e.model.B.j.eK,this.fc);case l.i.ea.NONE:return this.fc}return e.P.bind(e.model.B.j.oK,this.fc)}set caption(a){this.yc=a}get Bl(){return this.yc}set Bl(a){}clone(){var a=
new b(this.A);this.SL(a);return a}lj(){const a=super.lj(),c=l.Ma.R().O.Ok(this.A);e.v(c)?a.type=l.i.input.sa.jb:a.type=c.inputType;return a}}f.c9=b})(h.O||(h.O={}))})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){(function(h){(function(f){class b extends l.O.TA{constructor(a,c=""){super(a,c)}}f.b9=b})(h.O||(h.O={}))})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends l.O.yX{constructor(){super();this.id=this.aT="";this.ua=[];this.v2=!1;this.gC={};this.XB={};this.z_();this.mf=new e.ub;this.xw={};this.nA={};this.kl=new e.ub;this.types={};this.Ye=[];this.id=this.aT="";this.Le=e.model.C.F.Le}clear(){this.gC={};this.XB={};this.mf=new e.ub;this.xw={};this.nA={};this.kl=new e.ub;this.types={};this.id=this.aT="";super.clear()}Uo(a,c){return new f.$P(a,c)}Lea(a,c){return new f.c9(a,c)}gm(a,c,d){return new f.aQ(a,
c,d)}Ok(a){return this.gC[a]}nf(a){return this.XB[a]}wD(a){if(void 0!==this.types[a])return this.types[a];a=this.nA[a];if(!e.v(a))return this.types[a]}qea(a){return this.Ye[a]}uD(a){let c=this.mf.getItem(a);if(e.v(c)){if(a=this.xw[a],Array.isArray(a)){let d=[];for(let g=0;g<a.length;g++)c=this.mf.getItem(a[g]),e.v(c)||d.push(c);return d}}else return c}N1(a=!0){let c=this.mf.Pc(!0);if(a||0===Object.keys(this.xw).length)return c;a=[];for(let d=0;d<c.length;d++)void 0!==this.nA[c[d]]?-1===a.indexOf(this.nA[c[d]])&&
a.push(this.nA[c[d]]):a.push(c[d]);return a}iL(a,c){this.Le||(this.gC[a]=this.uh(c),this.XB[c]=this.fd(a))}Gp(a,c,d,g){c=this.Lea(a,c);c.type=d;g.hasOwnProperty("supportedAggregations")&&(c.lk=g.supportedAggregations);c.Wc=g.availableAggregations;this.zk(c);this.iL(c.A,a);return c}lba(a,c,d){var g=c.uniqueName,k=e.ka(c.caption)?d:c.caption,m=this.Uo(g,k);m.type=l.i.Ic.Hv;void 0!==c.folder&&(m.Oc=c.folder);a.zi(m);a=this.gm(m.caption==e.model.B.j.Nl?g+".[]":g,m.caption,1);a.type=l.i.ib.$c;m.Sh(a);
this.Le||this.Gp(g,k,l.i.Ra.wc,c);this.mf.Ta(d,m);this.kl.Ta(d,m);m.inputType=c.type}bua(a,c,d){var g=c.uniqueName,k=e.ka(c.caption)?d:c.caption;a.type=l.i.dB.qB;var m=this.Uo(g,k);m.type=l.i.Ic.Ua;void 0!==c.folder&&(m.Oc=c.folder);a.zi(m);var n=g+".Year";a=this.gm(n,e.model.B.j.Sl,m.ua.length);a.type=l.i.ib.Sl;m.Sh(a);this.kl.Ta(n,a);c.type==l.i.input.sa.wp&&(n=g+".Quarter",a=this.gm(n,e.model.B.j.Nt,m.ua.length),a.type=l.i.ib.Nt,m.Sh(a),this.kl.Ta(n,a));n=g+".Month";a=this.gm(n,e.model.B.j.nh,
m.ua.length);a.type=l.i.ib.nh;m.Sh(a);this.kl.Ta(n,a);n=g+".Day";a=this.gm(n,e.model.B.j.pn,m.ua.length);a.type=l.i.ib.pn;m.Sh(a);this.kl.Ta(n,a);this.Le||this.Gp(g,k,l.i.Ra.wc,c);e.v(c.interval)?m.interval=this.mapping.La(g,"interval","1d"):m.interval=c.interval;this.mf.Ta(d,m);m.inputType=c.type}iba(a,c,d){var g=c.hasOwnProperty("hierarchy")?c.hierarchy:c.uniqueName,k=a.uh(g);void 0===k&&(k=this.Uo(g,g),void 0!==c.folder&&(k.Oc=c.folder),a.zi(k));var m=0;if(c.hasOwnProperty("parent")){m=k.Ou(c.parent);
void 0===m&&(m=k.Ou(c.parent.toLowerCase()));if(void 0===m){void 0===this.ua[k.A]&&(this.ua[k.A]=[]);this.ua[k.A][c.parent]=[c,d];return}m=k.ua.indexOf(m.A)}else k.type=l.i.Ic.DT(c.levelType);var n=c.hasOwnProperty("caption")?c.caption:c.hasOwnProperty("level")?c.level:d;m=this.gm(d,n,m+1);m.type=l.i.ib.DT(c.levelType);m.inputType=l.i.ib.DT(c.inputType);k.Sh(m);this.Le||e.v(this.fd(g))&&this.Gp(g,g,l.i.Ra.wc,c);this.mf.Ta(d,m);this.kl.Ta(d,m);this.ua[k.A]&&this.ua[k.A][d]&&this.iba(a,this.ua[k.A][d][0],
this.ua[k.A][d][1]);e.v(k.inputType)&&(k.inputType=c.type)}Rta(a,c,d){var g=c.uniqueName,k=e.ka(c.caption)?d:c.caption;a.type=l.i.dB.qB;var m=g+".Year",n=k+"."+e.model.B.j.Sl;var p=this.Uo(m,n);p.type=l.i.Ic.Ua;void 0!==c.folder&&(p.Oc=c.folder);e.v(c.interval)?p.interval=this.mapping.La(g,"interval","1d"):p.interval=c.interval;a.zi(p);var t=this.gm(m+"."+n,n,1);t.type=l.i.ib.Sl;p.Sh(t);this.kl.Ta(m,t);this.Le||this.Gp(m,n,l.i.Ra.wc,c);p.inputType=c.type;m=g+".Month";n=k+"."+e.model.B.j.nh;p=this.Uo(m,
n);void 0!==c.folder&&(p.Oc=c.folder);e.v(c.interval)?p.interval=this.mapping.La(g,"interval","1d"):p.interval=c.interval;a.zi(p);var r=this.gm(m+"."+n,n,1);r.type=l.i.ib.nh;p.Sh(r);this.kl.Ta(m,t);this.Le||this.Gp(m,n,l.i.Ra.wc,c);p.inputType=c.type;m=g+".Day";k=k+"."+e.model.B.j.pn;p=this.Uo(m,k);void 0!==c.folder&&(p.Oc=c.folder);e.v(c.interval)?p.interval=this.mapping.La(g,"interval","1d"):p.interval=c.interval;a.zi(p);g=this.gm(m+"."+k,k,1);g.type=l.i.ib.pn;p.Sh(g);this.kl.Ta(m,t);this.Le||this.Gp(m,
k,l.i.Ra.wc,c);p.inputType=c.type;this.mf.Ta(d,a)}oua(a,c,d,g){var k=c.uniqueName;const m=e.ka(c.caption)?d:c.caption;this.Le?g?(k=this.Gp(k,m,l.i.Ra.jb,c),e.ka(c.folder)?e.ka(c.dimensionCaption)?e.ka(c.dimensionUniqueName)||(k.Mg=c.dimensionUniqueName):k.Mg=c.dimensionCaption:k.Mg=c.folder,this.mf.Ta(d,k)):(g=this.Uo(k,m),g.type=l.i.Ic.yp,void 0!==c.folder&&(g.Oc=c.folder),a.zi(g),k=this.gm(k,m,1),k.type=l.i.ib.jb,g.Sh(k),this.mf.Ta(d,g),this.kl.Ta(d,g),g.inputType=c.type):(g=this.Uo(k,m),g.type=
l.i.Ic.yp,void 0!==c.folder&&(g.Oc=c.folder),a.zi(g),a=this.gm(k,m,1),a.type=l.i.ib.jb,g.Sh(a),this.Gp(k,m,l.i.Ra.jb,c),this.mf.Ta(d,g),this.kl.Ta(d,g),g.inputType=c.type)}mua(a,c,d){var g=c.uniqueName,k=e.ka(c.caption)?d:c.caption,m=this.Uo(g,k);m.type=l.i.Ic.Ua;void 0!==c.folder&&(m.Oc=c.folder);a.zi(m);a=this.gm(g,k,1);a.type=l.i.ib.nh;m.Sh(a);this.Le||this.Gp(g,k,l.i.Ra.wc,c);this.mf.Ta(d,m);this.kl.Ta(d,m);m.inputType=c.type}yua(a,c,d){var g=c.uniqueName,k=e.ka(c.caption)?d:c.caption,m=this.Uo(g,
k);m.type=l.i.Ic.Hv;void 0!==c.folder&&(m.Oc=c.folder);a.zi(m);a=this.gm(g,k,1);a.type=l.i.ib.pn;m.Sh(a);this.Le||this.Gp(g,k,l.i.Ra.wc,c);this.mf.Ta(d,m);this.kl.Ta(d,m);m.inputType=c.type}Tta(a,c,d){var g=c.uniqueName,k=e.ka(c.caption)?d:c.caption,m=this.Uo(g,k);m.type=l.i.Ic.Ua;void 0!==c.folder&&(m.Oc=c.folder);a.zi(m);a=this.gm(g,k,1);a.type=l.i.ib.Ua;m.Sh(a);this.Le||this.Gp(g,k,l.i.Ra.Ua,c);e.v(c.interval)?m.interval=this.mapping.La(g,"interval","1d"):m.interval=c.interval;e.v(c.format)||(m.Ek=
c.format);this.mf.Ta(d,m);this.kl.Ta(d,m);m.inputType=c.type}vua(a,c,d){var g=c.uniqueName,k=e.ka(c.caption)?d:c.caption,m=this.Uo(g,k);m.type=l.i.Ic.yp;void 0!==c.folder&&(m.Oc=c.folder);a.zi(m);a=this.gm(g,k,1);a.type=l.i.ib.ec;m.Sh(a);this.Le||this.Gp(g,k,l.i.Ra.ec,c);this.mf.Ta(d,m);this.kl.Ta(d,m);m.inputType=c.type}Vta(a,c,d){var g=c.uniqueName,k=e.ka(c.caption)?d:c.caption,m=this.Uo(g,k);m.type=l.i.Ic.Ua;void 0!==c.folder&&(m.Oc=c.folder);a.zi(m);a=this.gm(g,k,1);a.type=l.i.ib.Mc;m.Sh(a);this.Le||
this.Gp(g,k,l.i.Ra.Mc,c);e.v(c.interval)?m.interval=this.mapping.La(g,"interval","1s"):m.interval=c.interval;e.v(c.format)||(m.Ek=c.format);this.mf.Ta(d,m);this.kl.Ta(d,m);m.inputType=c.type}Dsa(a,c){for(var d=0;d<a.length;d++)if("string"!==typeof a[d])return!1;for(var g in c)if(-1===a.indexOf(g))return!1;return!0}aS(a,c){if(a instanceof l.O.Bm){var d=a;a=a.mapping}else!e.v(c)&&l.O.Bm.TU(a)&&(d=new l.O.Bm(a));if(void 0!==d){var g={};if(Array.isArray(c)){if(this.Dsa(c,a))for(var k=0;k<c.length;k++){const p=
c[k];g[p]=d.L3(p,a[p])}for(var m in a)void 0===g[m]&&(g[m]=a[m])}else{for(m in a)g[m]=a[m];for(m in c)g[m]="object"!==typeof a[m]?{uniqueName:m,caption:m,type:l.i.input.sa.A6(c[m])}:a[m]}}void 0===g&&(g=a);for(m in g)if(void 0!==d||"string"!==typeof g[m]&&"number"!==typeof g[m])if(void 0===d&&e.v(g[m]))this.q_(m,l.i.input.sa.$c);else if(void 0===d&&g[m]instanceof Date)this.q_(m,e.model.C.F.$L);else if(void 0===d&&Array.isArray(g[m]))this.Sy(a[m],m);else if(g[m].hasOwnProperty("formula"))e.ka(g[m].formula)||
this.lu(g[m],m);else if(Array.isArray(g[m]))this.Sy(g[m],m);else{k=l.i.input.sa.$c;g[m].hasOwnProperty("type")&&(c=String(g[m].type).trim().toLowerCase(),l.i.input.sa.valid(c),k=l.ze.type(c));k!==l.i.input.sa.jb&&(a[m]&&delete a[m].isMeasure,delete g[m].isMeasure);g[m].hasOwnProperty("isMeasure")&&String(g[m].isMeasure).trim();c={};for(var n in g[m])c[n]=g[m][n];c.type=k;this.Sy(c,m)}else c=l.i.input.sa.A6(g[m]),this.q_(m,c);this.Td=!0}lu(a,c){c=new l.O.Vr(c,void 0==a.caption?c:a.caption);c.Ge=a.formula;
c.Jn=void 0==a.calculateNaN?c.Jn:a.calculateNaN;a.hasOwnProperty("grandTotalCaption")&&(c.fq=a.grandTotalCaption);e.model.C.F.RO&&(a=u.LP.pS(c.Ge,c.A),0==a.px&&e.Va(a.errorMessage));e.model.Wa.R().lu(c)}q_(a,c){this.Sy({A:a,caption:a,bM:a,type:c},a)}Sy(a,c=""){if(!Array.isArray(a)){var d={},g;for(g in a)d[g]=a[g];d.hasOwnProperty("uniqueName")||(d.uniqueName=c);d.hasOwnProperty("type")&&(d.inputType=d.type);a=this.mapping.L3(c,d)}if(!a.hasOwnProperty("visible")||!1!==a.visible)if(Array.isArray(a))for(this.xw[c]=
[],d=0;d<a.length;d++)void 0===a[d].uniqueName&&(a[d].uniqueName=`${c}.${d}`),this.C$(a[d]),this.xw[c].push(a[d].uniqueName),this.nA[a[d].uniqueName]=c;else this.C$(a)}C$(a){var c=a.uniqueName;"[Measures]"===c.substr(0,10)&&(l.ze.bF=!1);e.v(a.hierarchy)||a.type===l.i.input.sa.NF||(a.levelType=a.type===l.i.input.sa.Sf?l.i.input.sa.$c:a.type,a.type=l.i.input.sa.Sf);a.type===l.i.input.sa.Sf&&!1===l.external.jc.O.fo.VH&&(a.type=l.i.input.sa.$c,a.hasOwnProperty("level")&&(a.caption=a.level),delete a.hierarchy,
delete a.level,delete a.parent);let d=l.i.input.sa.$c;l.i.input.sa.valid(a.type)&&(d=a.type);var g;a.hasOwnProperty("dimensionUniqueName")?g=this.$p(a.dimensionUniqueName):d===l.i.input.sa.Sf&&a.hasOwnProperty("hierarchy")&&(g=this.$p(a.hierarchy));let k=!1;a.hasOwnProperty("isMeasure")&&(k=e.P.Zc(String(a.isMeasure).trim()));this.Le&&k||void 0!==g||(g=l.O.TA.xb(a),a.uniqueName=l.ze.bh(a.uniqueName,a.caption),a.hasOwnProperty("dimensionUniqueName")&&(g.caption=g.A=a.dimensionUniqueName),a.hasOwnProperty("dimensionCaption")&&
(g.caption=a.dimensionCaption),d===l.i.input.sa.Sf&&a.hasOwnProperty("hierarchy")&&!a.hasOwnProperty("dimensionUniqueName")&&(g.A=a.hierarchy),this.mu(g));this.types[c]=d;switch(d){case l.i.input.sa.$c:this.lba(g,a,c);break;case l.i.input.sa.jb:this.oua(g,a,c,k);break;case l.i.input.sa.nh:this.mua(g,a,c);break;case l.i.input.sa.un:this.yua(g,a,c);break;case l.i.input.sa.Ua:this.Rta(g,a,c);break;case l.i.input.sa.Mc:this.Vta(g,a,c);break;case l.i.input.sa.ec:this.vua(g,a,c);break;case l.i.input.sa.Sf:this.iba(g,
a,c);break;case l.i.input.sa.Mq:case l.i.input.sa.wp:this.bua(g,a,c);break;case l.i.input.sa.oj:this.Tta(g,a,c);break;case l.i.input.sa.ty:this.id=c;this.mf.Ta(c,null);break;case l.i.input.sa.J7:this.aT=c;break;case l.i.input.sa.M8:break;case l.i.input.sa.NF:this.Qta(a,c);break;default:this.lba(g,a,c)}}pc(a,c,d,g,k){if(Array.isArray(this.xw[c]))for(d=0;d<this.xw[c].length;d++)this.D$(a,this.xw[c][d],this.wD(this.xw[c][d]),g,k);else return this.D$(a,c,d,g,k)}D$(a,c,d,g,k){a=a.clone();if(this.Le&&d===
l.i.input.sa.jb)k.push(e.P.q6(a.value));else{var m=c=this.uD(c);if(!e.v(m)){switch(d){case l.i.input.sa.Ua:m=c.Na.fa(0);var n=m.pc(a,d);break;case l.i.input.sa.Sf:var p=c.hierarchy.ua.fa(c.yb-1);0<p.yb&&e.v(a.parent)&&e.v(a.Ki)&&(a.parent=c.hierarchy.za(g[this.kl.indexOf(p.A)]));a.level=c;p=c.hierarchy.pc(a,d);break;default:p=m.pc(a,d)}switch(d){case l.i.input.sa.jb:this.Le||g.push(p.ordinal);k.push(e.P.q6(a.value));break;case l.i.input.sa.Mc:case l.i.input.sa.oj:g.push(p.ordinal);this.Le||k.push(p.nc);
break;case l.i.input.sa.Mq:1===p.level.yb?(g.push(p.ordinal),g.push(NaN),g.push(NaN)):(g.push(p.parent.parent.ordinal),g.push(p.parent.ordinal),g.push(p.ordinal));this.Le||k.push(1);break;case l.i.input.sa.wp:1===p.level.yb?(g.push(p.ordinal),g.push(NaN),g.push(NaN),g.push(NaN)):(g.push(p.parent.parent.parent.ordinal),g.push(p.parent.parent.ordinal),g.push(p.parent.ordinal),g.push(p.ordinal));this.Le||k.push(1);break;case l.i.input.sa.Ua:for(d=0;d<n.length;d++)g.push(n[d].ordinal),this.Le||k.push(1);
break;case l.i.input.sa.ec:g.push(p.ordinal);this.Le||k.push(p.nc);break;case l.i.input.sa.Sf:g.push(p.ordinal);this.Le||1===p.level.yb&&k.push(1);break;default:g.push(p.ordinal),this.Le||(e.ka(a.value)?k.push(NaN):k.push(1))}return p}}}Qta(a,c){this.v2=!0;a=a.hierarchy;e.v(this.Ye[a])&&(this.Ye[a]=[]);this.mf.Ta(c,null);this.Ye[a].push(c)}}f.bQ=b})(h.O||(h.O={}))})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.qJ=1048576;this.SU=!1;this.AC=this.Wj=this.zL=0;this.encoding="UTF-8";this.Zja=()=>this.OIa();this.Oj=()=>this.uq()}BO(b,a){this.timer=new u.Pt(100,1E5);this.timer.N(u.xf.Ol,this.Zja);this.timer.N(u.xf.Pl,this.Oj);this.timer.start();this.pa=new z.p$;this.pa.responseType="blob";this.pa.N(w.ia.ZA,()=>this.AGa());this.pa.N(w.ia.te,c=>this.qta(c));this.pa.N(w.ia.Qc,()=>this.ota());this.pa.N(w.ia.xa,c=>this.pta(c));this.$h(this.pa,a);this.pa.load(b)}qta(b){const a=
b.data;404==a.target.status?this.z4(b):(this.Wj=a.loaded,this.zL=a.total,this.HHa(a))}ota(){if(!e.v(this.pa)&&!e.v(this.pa.response)){this.SU=!0;this.AC=0;this.zL=this.pa.response.size;this.encoding=this.pa.iBa();var b=new FileReader;b.addEventListener("loadend",()=>c());var a=null,c=()=>{this.oIa(b.result,()=>{this.AC+=a.size;d()},a.size==this.zL)},d=()=>{this.AC>=this.zL?this.nIa():(a=this.pa.response.slice(this.AC,this.AC+this.qJ),b.readAsText(a,this.encoding))};d()}}pta(b){this.yg();this.z4(b)}$h(b,
a){if(!e.v(a))for(var c in a)a.hasOwnProperty(c)&&b.tc.push(new z.q$(c,a[c]))}OIa(){0<this.Wj||this.SU?this.yg():null!=this.timer&&e.Ca(!0,e.model.B.j.mg,e.P.bind(e.model.B.j.Jt,u.bc.format(this.timer.Kw/10,new e.model.oc.W.se,!1,!1,1)))}uq(){this.timer.Gl&&this.yg()}yg(){this.timer&&this.timer.Gl&&(this.timer.stop(),this.timer.rb(u.xf.Ol,this.Zja),this.timer.rb(u.xf.Pl,this.Oj))}}h.ura=f})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends h.YP{constructor(){super();this.$f=null;this.Nf="";this.gn="\n";this.iq=!0;this.Aa=l.i.ra.ci}get kb(){return e.ka(this.filename)&&(null==this.Yd||0==this.Yd)}set kb(a){}get cv(){return!e.v(this.data)}set cv(a){}isEqual(a){return a==this?!0:super.isEqual(a)}static xb(a){var c=new b;e.v(a.browseForFile)||(c.Yd=a.browseForFile);e.v(a.requestPermission)||(c.requestPermission=a.requestPermission);e.v(a.filename)||""==a.filename||(c.filename=
a.filename);e.v(a.fieldSeparator)||(c.$f=a.fieldSeparator);e.v(a.thousandSeparator)||(c.Nf=a.thousandSeparator);e.v(a.thousandsSeparator)||(c.Nf=a.thousandsSeparator);e.v(a.recordsetDelimiter)||(c.gn=a.recordsetDelimiter);e.v(a.requestHeaders)||(c.tc=a.requestHeaders);e.v(a.ignoreQuotedLineBreaks)||(c.iq=a.ignoreQuotedLineBreaks);e.v(a.mapping)||(c.mapping=a.mapping instanceof l.O.Bm?a.mapping:new l.O.Bm(a.mapping));e.v(a.withCredentials)||(c.withCredentials=a.withCredentials);return c}static Jk(a){var c=
new b,d=a.find("params");0!=d.find("param[name=ignoreQuotedLineBreaks]").length&&(c.iq=e.P.Zc(d.find("param[name=ignoreQuotedLineBreaks]").text()));a=a.find("dataSource");0!=a.find("browseForFile").length&&(c.Yd=e.P.Zc(a.find("browseForFile").text()));0!=a.find("filename").length&&(c.filename=a.find("filename").text());0!=a.find("fieldSeparator").length&&(c.$f=a.find("fieldSeparator").text());0!=a.find("thousandSeparator").length&&(c.Nf=a.find("thousandSeparator").text());0!=a.find("thousandsSeparator").length&&
(c.Nf=a.find("thousandsSeparator").text());0!=a.find("recordsetDelimiter").length&&(c.gn=a.find("recordsetDelimiter").text());0!=a.find("ignoreQuotedLineBreaks").length&&(c.iq=e.P.Zc(a.find("ignoreQuotedLineBreaks").text()));return c}op(a=!1){var c=z.ba.create("<dataSource/>");c.attr("type",this.Aa);(a||this.Yd)&&c.append(z.ba.create("<browseForFile/>").text(this.Yd));this.filename&&c.append(z.ba.create("<filename/>").append(z.ba.fi(this.filename)));this.$f&&c.append(z.ba.create("<fieldSeparator/>").append(z.ba.fi(this.$f)));
this.Nf&&c.append(z.ba.create("<thousandsSeparator/>").append(z.ba.fi(this.Nf)));this.gn&&"\n"!=this.gn&&c.append(z.ba.create("<recordsetDelimiter/>").append(z.ba.fi(this.gn)));(a||0==this.iq)&&c.append(z.ba.create("<ignoreQuotedLineBreaks/>").text(this.iq));return c}Sa(a=!1){var c={};c.type=this.Aa;if(a||this.Yd)c.browseForFile=this.Yd;this.filename&&(c.filename=this.filename);this.$f&&(c.fieldSeparator=this.$f);this.Nf&&(c.thousandsSeparator=this.Nf);this.gn&&"\n"!=this.gn&&(c.recordsetDelimiter=
this.gn);if(a||0==this.iq)c.ignoreQuotedLineBreaks=this.iq;if(!this.mapping.kb||this.mapping.$o)c.mapping=this.mapping.Sa(!0);if(a||this.withCredentials)c.withCredentials=this.withCredentials;return c}clone(){var a=new b;a.Aa=this.Aa;this.Yd&&(a.Yd=this.Yd);this.filename&&(a.filename=this.filename);this.$f&&(a.$f=this.$f);this.Nf&&(a.Nf=this.Nf);this.gn&&"\n"!=this.gn&&(a.gn=this.gn);0==this.iq&&(a.iq=this.iq);if(!this.mapping.kb||this.mapping.$o)a.mapping=this.mapping.clone(this.Aa);this.withCredentials&&
(a.withCredentials=this.withCredentials);return a}}f.gP=b})(h.csv||(h.csv={}))})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends h.YP{constructor(){super();this.aga=this.Fk=!1;this.$0=0;this.Aa=l.i.ra.Nq}get kb(){return e.ka(this.filename)&&(null==this.Yd||0==this.Yd)&&(null==this.Fk||0==this.Fk)}set kb(a){}get cv(){return this.Fk}set cv(a){}isEqual(a){return super.isEqual(a)&&0==this.Fk&&0==a.Fk}static xb(a){var c=new b;e.v(a.browseForFile)||(c.Yd=a.browseForFile);e.v(a.filename)||""==a.filename||(c.filename=a.filename);e.v(a.requestHeaders)||(c.tc=a.requestHeaders);
e.v(a.embedded)||(c.Fk=a.embedded);e.v(a.embeddedDataOffset)||(c.$0=a.embeddedDataOffset);e.v(a.embeddedDataToLoad)||(c.qda=a.embeddedDataToLoad);e.v(a.isOCSV2Data)||(c.aga=a.isOCSV2Data);e.v(a.mapping)||(c.mapping=a.mapping instanceof l.O.Bm?a.mapping:new l.O.Bm(a.mapping));return c}op(a=!1){var c=z.ba.create("<dataSource/>");c.attr("type",this.Aa);(a||this.Yd)&&c.append(z.ba.create("<browseForFile/>").text(this.Yd));this.filename&&c.append(z.ba.create("<filename/>").append(z.ba.fi(this.filename)));
this.Fk&&c.append(z.ba.create("<embedded/>").text(this.Fk));return c}static Jk(a){var c=new b;0!=a.find("browseForFile").length&&(c.Yd=e.P.Zc(a.find("browseForFile").text()));0!=a.find("filename").length&&(c.filename=a.find("filename").text());0!=a.find("embedded").length&&(c.Fk=e.P.Zc(a.find("embedded").text()));return c}Sa(a=!1){var c={};c.type=this.Aa;if(a||this.Yd)c.browseForFile=this.Yd;this.filename&&(c.filename=this.filename);this.Fk&&(c.embedded=this.Fk);return c}clone(){var a=new b;a.Aa=
this.Aa;this.Yd&&(a.Yd=this.Yd);this.filename&&(a.filename=this.filename);this.Fk&&(a.Fk=this.Fk);return a}}f.LF=b})(h.csv||(h.csv={}))})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){this.Nf="";this.n1=[".csv"];this.Dya=RegExp('""',"g");this.fga=!1;this.nva=()=>this.G$();this.Kl=()=>this.et();this.Oj=()=>this.uq();this.Yh=0;this.jv=!1;this.o6=null;this.Wha=0;this.wa=l.Ma.R();this.n1=[".csv"]}clear(){this.data=[];this.Cw=this.Yh=this.Nw=this.Wj=0;this.gn="\n";this.qT='"';this.OC=[];this.We=[];this.iN=this.oN=this.Xo=this.QU=!1;this.hd="";this.lb=0;this.Ur=100;null!=this.pa&&(this.pa.Vd(),this.pa.dispose(),
this.pa=null);this.yg();e.Ca(!1)}load(c,d,g,k,m){try{this.clear(),this.filename=c.filename,this.Cb=d,this.Xa=g,this.Re=k,this.OG=m,this.$f=c.$f,this.Nf=c.Nf,this.iq=c.iq,c.mN?this.C1():(void 0!==this.filename&&""!=this.filename&&"()"!=this.filename.substr(-2)||!1!==c.Yd?this.filename=u.Gy.RH(this.filename,!e.model.C.F.gS):this.pm(),!0===c.Yd?this.Jba(c):(e.Ca(!0,e.model.B.j.mg),this.D3(this.filename,c.tc,c.withCredentials)))}catch(n){console.error(n.stack),this.pm()}}C1(){this.pt();this.$f=",";this.wE("Browser, Duration, Page Views, New Session",
"Chrome, 100, 3, true",new l.O.Bm({Browser:{type:"string"},Duration:{type:"time"},"Page Views":{type:"number"},"New Session":{type:"number"}}));this.QU=!0;this.wa.ta.C1(()=>{this.jA()})}requestPermission(){e.Va(e.model.B.j.Hpa,e.model.B.j.ila,e.ob.OP,[e.model.B.j.xm,e.model.B.j.jla],[this.nva])}Jba(c){!0===c.requestPermission?this.requestPermission():this.G$()}G$(){this.Xw=new z.B8;this.Xw.N(w.ia.to,()=>this.bHa());this.Xw.N(w.ia.Qc,()=>this.MN());this.Xw.N(w.ia.te,c=>this.NN(c));this.Xw.N(w.ia.BX,
()=>this.aHa());this.Xw.N(w.ia.xa,()=>this.pm());this.Xw.Iba(this.n1)}bHa(){e.Ca(!0,e.model.B.j.mg,"",!0,!0);this.pa=this.Xw;this.Xw.load();this.Xw=null}D3(c,d=null,g=!1){this.timer=new u.Pt(100,1E5);this.timer.N(u.xf.Ol,this.Kl);this.timer.N(u.xf.Pl,this.Oj);this.timer.start();var k=new z.tk;k.dataType=z.bB.DB;k.N(w.ia.Qc,()=>this.MN());k.N(w.ia.ZA,()=>this.f4());k.N(w.ia.te,m=>this.NN(m));k.N(w.ia.xa,m=>this.pm(m));k.$h(d);k.withCredentials=g;k.load(c);this.pa=k}et(){0<this.Wj||this.Xo||this.oN?
this.yg():null!=this.timer&&e.Ca(!0,e.model.B.j.mg,e.P.bind(e.model.B.j.Jt,u.bc.format(this.timer.Kw/10,new e.model.oc.W.se,!1,!1,1)))}uq(){this.timer.Gl&&this.yg()}yg(){this.timer&&this.timer.Gl&&(this.timer.stop(),this.timer.rb(u.xf.Ol,this.Kl),this.timer.rb(u.xf.Pl,this.Oj))}aHa(){null!=this.OG&&(this.OG(),this.OG=null);this.clear()}pm(c=null){e.Ca(!1);var d="",g="";null!=c&&null!=c.target&&null!=c.target.response&&""!=c.target.response&&(g=e.model.Tb.validate(c.target.response),d=g=700<g.length?
g.substr(0,700):g,g=e.P.bind(e.model.B.j.iQ,g).replace(/'/g,""));0==this.oN&&(this.oN=!0,c=e.model.Tb.valid(this.filename)?this.filename:e.model.Tb.validate(this.filename),e.Va(e.P.bind(e.model.B.j.ZJ,c)+g,e.model.B.j.xa,e.ob.xa));null!=this.Xa&&(this.Xa(d),this.Xa=null);this.yg()}m4(){e.Ca(!1);e.Va(e.P.bind(e.model.B.j.m9),e.model.B.j.xa,e.ob.xa)}NN(c){var d=c.data;if(404==d.target.status)this.pm(c);else if(!e.v(this.pa))try{this.Wj=d.loaded;this.iN=0<d.total&&d.lengthComputable;const k=this.pa.response;
if(null!=k&&0!=k.length&&this.Nw!=k.length&&(this.Nw=k.length,1E4<k.length-this.Yh||d.loaded==d.total)){this.Xo=d.loaded==d.total&&d.loaded>=this.pa.response.length;void 0===k||u.Nd().fj||this.Fr(k.substring(this.Yh,k.length));this.Yh=k.length;var g=0==d.total?e.P.bind(e.model.B.j.Am,u.bc.ah(d.loaded)):e.P.bind(e.model.B.j.JF,u.bc.ah(d.loaded),u.bc.ah(d.total),(d.loaded/d.total*100).toFixed(0));e.Ca(!0,e.model.B.j.mg,g)}}catch(k){console.error(k.stack),this.pm()}}f4(){e.Ca(!0,e.model.B.j.mg,"")}pt(){null!=
this.Re&&(this.Re(),this.Re=null)}MN(){if(!e.v(this.pa)){try{if(0==this.Yh||!this.iN||u.Nd().fj||this.Yh<=this.Nw||this.Yh<=this.pa.response.length){var c=this.pa.response;e.ka(c)&&!this.jv?this.jA():(this.Xo=!0,this.jv)?this.iN||(this.Yh<c.length?(this.Fr(c.substring(this.Yh,c.length)),this.Yh=c.length):this.data.push(this.hd)):this.Fr(c)}}catch(d){console.error(d.stack),this.pm()}this.pa=null}}static zfa(c){c=c.toLowerCase();return-1!=c.indexOf("<html>")||-1!=c.indexOf("<config>")||0==c.trim().length||
-1!=c.indexOf("<!doctype")?(e.Va(e.model.B.j.Dpa,e.model.B.j.xa,e.ob.xa),!1):!0}Fr(c){this.jv=!0;this.pt();0===this.Cw&&-1===c.indexOf("\n")&&-1!==c.indexOf("\r")&&(this.gn="\r");e.v(this.$f)&&(this.$f=this.Rva(-1==c.indexOf("\n")&&-1==c.indexOf("\r")?c:c.substring(0,c.indexOf(this.gn))));this.appendData(c);!1===this.QU&&(1<this.data.length||e.model.C.F.Ux)&&(this.fga&&this.data.shift(),this.wE(this.data.shift(),this.data[0],this.wa.ga.mapping),this.wa.ta.zI(),this.QU=!0);0!==this.Yh&&!u.Nd().fj||
this.oN||u.Ql.Co({lp:()=>this.wv(),gf:()=>this.jA()})}jA(){e.Ca(!1);268435456<this.Wj&&this.Wj>this.Nw?(e.Va(e.model.B.j.o9,e.model.B.j.xa,e.ob.xa),null!=this.Xa&&(this.Xa(e.model.B.j.o9),this.Xa=null)):this.QU?null!=this.Cb&&this.Cb():(e.model.C.F.Ux||e.Va(e.model.B.j.zp,e.model.B.j.xa,e.ob.nk),null!=this.Xa&&(this.Xa(e.model.B.j.zp),this.Xa=null));this.clear()}wE(c,d,g){if("string"==typeof c&&!b.zfa(c)||"object"==typeof c&&!b.zfa(c.toString()))this.pm();else try{e.v(this.$f)&&(this.$f=",");var k=
"string"==typeof c?b.Lja(c,this.$f):c,m="string"==typeof d?b.Lja(d,this.$f):e.v(d)?[]:d;this.Pm=[];for(c=0;c<k.length;c++){var n=this.QT(m[c]),p=this.Zw(k[c],n,0==m.length),t=this.W1(k[c],n,0==m.length),r=this.FM(k[c]),v=this.DM(r),y={type:p,uniqueName:r,caption:this.eBa(k[c])||v,isMeasure:t};void 0!==g&&(y=g.L3(r,y),e.v(g.La(r,"hierarchy"))||y.type===l.i.input.sa.NF||(y.type="level"));if(!y.hasOwnProperty("visible")||!1!==y.visible){this.OC[c]=y.type;this.We[c]=y.isMeasure;this.Pm[c]=r;if(p===l.i.input.sa.Sf){var A=
r.split(":");y.hierarchy=A[0];y.level=A.pop();y.parent=A.join(":")}this.wa.O.Sy(y,r)}}}catch(C){console.error(C.stack),this.m4()}}QT(c){void 0!==c&&null!==c&&"string"==typeof c&&(this.Nf&&0<this.Nf.length&&(e.v(this.o6)&&(this.o6=new RegExp(this.Nf,"g")),c=c.replace(this.o6,"")),c=c.replace(",","."));return c}DM(c){var d=c.split(a.gJ);if(1<d.length)return d[1];this.Qz(c)&&(d=c.split(":"));return d[d.length-1]}FM(c){c=c.trim().split(a.gJ)[0];c=this.p5(c);if(-1<this.Pm.indexOf(c)){for(var d=1,g=c;-1<
this.Pm.indexOf(g);)g=c+d,d++;c=g}return c}eBa(c){c=c.split(a.gJ);return 1<c.length?c[1]:null}p5(c){return c.replace(/^(\+|dt\+|t\+|n\+|-|ds\+|d\+|m\+|w\+|D\+|D4\+|url\+|img\+|id\+)/,"")}Zw(c,d,g){var k=l.i.input.sa.jb;c=c.trim();if(e.v(d)&&!g)return l.i.input.sa.$c;"+"===c.charAt(0)?k=l.i.input.sa.$c:"t+"===c.substr(0,2)?k=l.i.input.sa.ec:"dt+"===c.substr(0,3)?k=l.i.input.sa.Mc:"n+"===c.substr(0,2)?k=l.i.input.sa.jb:"-"===c.charAt(0)?k=l.i.input.sa.jb:"ds+"===c.substr(0,3)?k=l.i.input.sa.oj:"d+"===
c.substr(0,2)?k=l.i.input.sa.Ua:"m+"===c.substr(0,2)?k=l.i.input.sa.nh:"w+"===c.substr(0,2)?k=l.i.input.sa.un:"D+"===c.substr(0,2)?k=l.i.input.sa.Mq:"D4+"===c.substr(0,3)?k=l.i.input.sa.wp:"id+"===c.substr(0,3)?k=l.i.input.sa.ty:""===d||void 0===d?k=l.i.input.sa.$c:isNaN(Number(d))&&(k=e.P.HU(d)?e.model.C.F.$L:l.i.input.sa.$c);k===l.i.input.sa.$c&&this.Qz(c)&&(k=l.i.input.sa.Sf);return k}W1(c,d,g){return!e.model.C.F.Le||e.v(d)&&!g?!1:"-"===c.trim().charAt(0)}Qz(c){"+"===c.charAt(0)&&(c=c.substr(1));
return 1<c.split(":").length&&-1<this.Pm.indexOf(c.split(":")[0].trim())}wv(){if(this.lb>=this.data.length)return this.Xo;var c=this.data[this.lb];if(!e.ka(c)&&this.Pm){for(var d=!1,g="",k=0,m=[],n=[],p,t=0;t<c.length;t++){var r=c.charAt(t);if(t===c.length-1||r===this.$f&&!d){if(t===c.length-1&&r!==this.$f&&(g+=r),g=g.trim(),g=g.replace("\r",""),g.charAt(0)===this.qT&&g.charAt(g.length-1)===this.qT&&(g=g.slice(1,g.length-1),g=g.replace(this.Dya,'"')),this.OC[k]===l.i.input.sa.ty&&(p=g),void 0!==this.Pm[k]&&
(this.OC[k]===l.i.input.sa.jb&&(g=this.QT(g)),d=new l.O.be({value:g}),this.wa.O.pc(d,this.Pm[k],this.OC[k],m,n)),d=!1,g="",k++,k>=this.Pm.length)break}else r===this.qT?(g+=r,d=!d):g+=r}if(k<this.Pm.length)for(c=k;c<this.Pm.length;c++)d=new l.O.be({value:void 0}),this.wa.O.pc(d,this.Pm[c],this.OC[c],m,n);this.wa.ta.insert(m,n,p);0===this.lb%1E3&&this.Xo&&200<u.bg()-this.Wha&&(m=e.model.B.j.fQ,n=(this.lb/this.data.length*100).toFixed(0),n=e.P.bind(e.model.B.j.gQ,u.bc.Cz(this.lb.toFixed(0)),u.bc.Cz(this.data.length.toFixed(0)),
n),e.Ca(!0,m,n),this.Wha=u.bg())}this.lb++;return this.Xo&&this.lb>=this.data.length}appendData(c){void 0!==this.hd&&0<this.hd.length&&(c=this.hd+c);c=this.hMa(c);for(var d=0;d<c.length;d++)this.data.push(c[d]);1!=this.Xo&&(this.hd=this.data.pop())}hMa(c){var d=!1;c=c.split(this.gn);if(0==this.iq)for(var g=0;g<c.length;g++)d?(this.ega(c[g])&&(d=!1),c[g-1]+="<br/>"+c[g],c.splice(g,1),g--):this.ega(c[g])&&(d=!0);return c}ega(c){return 1==this.sxa(c,this.qT)%2}sxa(c,d){var g=0;if(c)for(var k=0;k<c.length;k++)c.charAt(k)==
d&&g++;return g}Rva(c){if(void 0==this.$f){var d=c.indexOf("sep=");if(-1<d){const g='"'===c[0];c=c.trim();c=c.substring(d+4,g?c.length-1:c.length);this.fga=!0;return c.trim()}return c.split(",").length>c.split(";").length?",":";"}}static Lja(c,d){if(null===c)return[];for(var g="",k=!1,m=!1,n=[],p=0;p<c.length;p++){var t=c.charAt(p);p===c.length-1||t===d&&!k?(p===c.length-1&&t===d?(n.push(g),g=""):p===c.length-1&&(g+=t),g=g.trim(),'"'===g.charAt(0)&&'"'===g.charAt(g.length-1)&&(g=g.slice(1,g.length-
1)),k=m=!1,n.push(g),g=""):'"'===t?(m||(g+=t),k=!k,m=!0):(g+=t,m=!1)}return n}static bX(c){return c&&0<c.length?c:e.model.B.j.jo}xl(){}Nk(){}cA(){}Aq(){}BC(){return!1}cancel(){this.clear();this.Re=this.Xa=this.Cb=null}}f.GX=b;class a{}a.FLOAT="F";a.gJ="+T+";f.F7=a})(h.csv||(h.csv={}))})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){this.sZ=!1;this.M$=0;this.DJ=",";this.BY="\n";this.Pe=l.Ma.R();this.ar=0;this.saa=this.raa=!1;this.Tsa="\x3c!--";this.Usa="--\x3e";this.tZ="/**----**";this.Ssa="**--!--**/";this.eR=this.ms="";this.Eaa=0;this.Kl=()=>this.et();this.Oj=()=>this.uq();this.kKa=RegExp("%d%","g");this.mKa=RegExp("%q%","g");this.lKa=RegExp("%n%","g")}load(a,c,d,g,k){try{this.clear(),this.Ab=a,this.k_=c,this.Re=g,this.OG=k,this.mR=d,this.gG=this.Ab.filename,
this.sZ=this.Ab.Fk,this.M$=this.Ab.$0,this.N$=this.Ab.qda,this.V$=!1,0==this.sZ&&(this.gG=u.Gy.RH(this.gG,!e.model.C.F.gS)),this.sZ&&null!=this.N$?this.$Ea(this.N$):(e.Ca(!0,e.model.B.j.mg),this.D3(this.gG,this.Ab.tc))}catch(m){console.error(m.stack),this.pm(null,m.message?"Error: "+m.message:"")}}D3(a,c){this.Hm=new u.Pt(100,1E5);this.Hm.N(u.xf.Ol,this.Kl);this.Hm.N(u.xf.Pl,this.Oj);this.Hm.start();var d=new z.tk;d.dataType=z.bB.DB;d.N(w.ia.Qc,()=>this.MN());d.N(w.ia.ZA,()=>this.f4());d.N(w.ia.te,
g=>this.NN(g));d.N(w.ia.xa,g=>this.pm(g));d.$h(c);d.load(a);this.Gm=d}uq(){this.Hm.Gl&&this.yg()}yg(){this.Hm&&this.Hm.Gl&&(this.Hm.stop(),this.Hm.rb(u.xf.Ol,this.Kl),this.Hm.rb(u.xf.Pl,this.Oj))}Tca(a){this.ms=-1<a.indexOf(this.tZ)?this.tZ:this.Tsa;this.eR=this.ms==this.tZ?this.Ssa:this.Usa}$Ea(a){this.Ur=100;this.Xi=0;try{var c=new e.Yr(a,this.M$,e.Yr.mJ),d=c.byteLength>this.Ur?this.Ur:c.byteLength,g=c.iW(d);this.Tca(g);g.substr(0,this.ms.length)==this.ms&&(this.GK="",this.GK+=g.substring(this.ms.length),
this.Xi+=d,this.AK=c.byteLength,this.Xi<this.AK?u.Ql.Co({lp:()=>this.XEa(c),gf:()=>this.Br(),M_:c}):this.Br())}catch(k){console.error(k.stack),this.pm(null,k.message?"Parsing error: "+k.message:"")}}XEa(a){var c=this.AK-this.Xi>this.Ur?this.Ur:this.AK-this.Xi;a=a.iW(c);this.Xi+=c;this.GK+=a;this.Y5(this.Xi,this.AK);return this.Xi>=this.AK}Y5(a,c){a=e.P.bind(e.model.B.j.g9,(a/c*100).toFixed(0));e.Ca(!0,e.model.B.j.IF,a)}Br(){e.Ca(!1);this.Py=!0;this.bKa(this.GK)}pt(){null!=this.Re&&(this.Re(),this.Re=
null)}bKa(a){a=e.P.trimLeft(a);this.Tba(a)||this.Fr(a)}et(){if(0<this.Xi||this.Py||this.FZ)this.yg();else{var a=this.Hm.Kw/10;this.DZ?(196<a&&(a=196),a=u.bc.format(a/2,new e.model.oc.W.se,!1,!1,1)+"%"):a=e.P.bind(e.model.B.j.Jt,u.bc.format(a,new e.model.oc.W.se,!1,!1,1));e.Ca(!0,e.model.B.j.mg,a)}}pm(a=null,c=""){e.Ca(!1);var d="";""==c&&null!=a&&null!=a.target&&null!=a.target.response&&""!=a.target.response&&(d=e.model.Tb.validate(a.target.response),c=d=700<d.length?d.substr(0,700):d,d=e.P.bind(e.model.B.j.iQ,
d).replace(/'/g,""));0==this.FZ&&(this.FZ=!0,a=e.model.Tb.valid(this.gG)?this.gG:e.model.Tb.validate(this.gG),e.Va(e.P.bind(e.model.B.j.ZJ,a)+d,e.model.B.j.xa,e.ob.xa));null!=this.Xa&&(this.Xa(c),this.Xa=null);this.clear()}Tba(a){if(0==this.saa&&22<a.length){if(this.iEa(a)){if(0==this.CDa(a.substr(0,a.indexOf(this.BY))))return this.yGa(),!0;this.saa=!0;return!1}this.wDa(a)?(u.Ql.cancel(),null!=this.Gm&&(this.Gm.Vd(),this.Gm.dispose(),this.Gm=null),e.Va("OCSV data format is deprecated. Please contact the support team for more information."),
this.clear()):(this.clear(),(new f.GX).load(this.Ab,this.k_,this.mR,this.Re,null));return!0}return!1}NN(a){if(null!=this.Gm&&!(null!=a.data&&a.data.target&&400<=a.data.target.status)){a=a.data;try{var c=this.Gm.response;if(this.Xi!=a.loaded&&null!=c&&0!=c.length){this.CZ=0<a.total&&a.lengthComputable;this.Xi=a.loaded;""==this.ms&&this.Tca(c);var d=0;if(-1<(d=c.indexOf(this.ms)))c=c.substring(d+this.ms.length+1),this.V$=!0;else if(this.Ab.aga&&!this.V$)return;c=e.P.trimLeft(c);if(!this.Tba(c)&&(1E4<
c.length-this.ar||a.loaded==a.total)){this.Py=a.loaded==a.total&&a.loaded>=this.Gm.response.length;void 0===c||u.Nd().W2||this.Fr(c.substring(this.ar,c.length));this.ar=c.length;var g=0==a.total?e.P.bind(e.model.B.j.Am,u.bc.ah(a.loaded)):e.P.bind(e.model.B.j.JF,u.bc.ah(a.loaded),u.bc.ah(a.total));e.Ca(!0,e.model.B.j.mg,g)}}}catch(k){console.error(k.stack),this.pm(null,k.message?"File loading error: "+k.message:"")}}}f4(){this.DZ=!0;e.Ca(!0,e.model.B.j.mg,"")}MN(){if(null!=this.Gm)try{if(0==this.ar||
!this.CZ||u.Nd().W2||this.ar<=this.Gm.response.length){var a=this.Gm.response,c=0;-1<(c=a.indexOf(this.ms))&&(a=a.substring(c+this.ms.length+1));if(this.Gm.response instanceof ArrayBuffer){var d=new e.Yr(this.Gm.response,0,e.Yr.mJ);a=d.iW(d.byteLength)}this.Py=this.DZ=!0;this.raa?this.CZ?this.ar<a.length&&(this.Fr(a.substring(this.ar,a.length)),this.ar=a.length):this.ar<a.length?(this.Fr(a.substring(this.ar,a.length)),this.ar=a.length):this.jl.push(this.Qy):this.Fr(a)}}catch(g){console.error(g.stack),
this.pm(null,g.message?"ERROR: "+g.message:"")}}Fr(a){this.raa=!0;this.pt();this.appendData(a);0==this.HZ&&1<this.jl.length&&(this.jl.shift(),this.wE(this.jl.shift()),this.HZ=!0,u.Ql.Co({lp:()=>this.wv(),gf:()=>this.jA()}))}iEa(a){return"string"==typeof a&&"___ocsv2___"==a.substr(0,11)}wDa(a){try{if("string"==typeof a)for(var c=0;c<a.length;c++){if(10>a.charCodeAt(c)||255<a.charCodeAt(c))return!0;if(50<c)return!1}if(a instanceof ArrayBuffer)return 1600085871!=(new e.Yr(a,0,e.Yr.mJ)).lia();if(a instanceof
e.Yr)return 1600085871!=a.lia()}catch(d){}return!1}appendData(a){void 0!==this.Qy&&0<this.Qy.length&&(a=this.Qy+a);a=0<=a.indexOf(this.BY)?a.split(this.BY):[];for(var c=0;c<a.length;c++)e.ka(a[c])||this.jl.push(a[c]);1!=this.Py&&(this.Qy=e.ka(a[a.length-1])?a.pop():this.jl.pop(),this.Qy=this.Qy==this.eR?this.jl.pop():this.Qy)}CDa(a){this.gZ=a.replace("___ocsv2___","").split("/")[1];return void 0!=this.gZ&&1==e.P.GS(this.gZ,e.Cg.Iq)?!1:!0}wE(a){a=a.split(this.DJ);this.ls=[];for(var c=0;c<a.length;c++){var d=
this.Zw(a[c]),g=this.FM(a[c]),k=this.DM(g);this.Ut[c]=d;this.ls.push(g);k={type:d,caption:k,A:g};d===l.i.input.sa.Sf&&(d=g.split(":"),k.hierarchy=d[0],k.level=d.pop(),k.parent=d.join(":"));this.Pe.O.Sy(k,g)}this.Pe.ta.zI()}Zw(a){var c=l.i.input.sa.fAa(a);c===l.i.input.sa.$c&&this.Qz(a)&&(c=l.i.input.sa.Sf);return c}DM(a){var c=a.split(f.F7.gJ);if(1<c.length)return c[1];this.Qz(a)&&(c=a.split(":"));return c[c.length-1]}Qz(a){"+"==a.charAt(0)&&(a=a.substr(1));return 1<a.split(":").length&&-1<this.ls.indexOf(a.split(":")[0].trim())}FM(a){a=
a.trim().split(f.F7.gJ)[0];a=this.p5(a);a=this.Jca(a);if(-1<this.ls.indexOf(a)){for(var c=1,d=a;-1<this.ls.indexOf(d);)d=a+c,c++;a=d}return a}p5(a){return a.replace(/^(\+|dt\+|t\+|n\+|-|ds\+|d\+|m\+|w\+|D\+|D4\+|url\+|img\+|id\+)/,"")}wv(){if(this.Vf>=this.jl.length)return this.Py;var a=this.jl[this.Vf];if(!e.ka(a)&&void 0!==this.ls){if(a==this.eR)return!0;if(a.split(this.DJ).length<this.ls.length)for(var c=a.split(this.DJ).length;c<this.ls.length;c++)a=a.concat(this.DJ);var d=[],g=[];a=a.split(this.DJ);
for(c=0;c<this.ls.length;c++)this.iJa(a[c],c,d,g);this.Pe.ta.insert(d,g)}this.Py&&200<u.bg()-this.Eaa&&(c=e.model.B.j.fQ,d=(this.Vf/this.jl.length*100).toFixed(0),d=e.P.bind(e.model.B.j.gQ,u.bc.Cz(this.Vf.toFixed(0)),u.bc.Cz(this.jl.length.toFixed(0)),d),e.Ca(!0,c,d),this.Eaa=u.bg());this.jl[this.Vf]="";this.Vf++;return this.Py&&this.Vf>=this.jl.length}iJa(a,c,d,g){var k=!0,m=this.Pe.O.uD(this.ls[c]);if(null!==this.ls[c]){if(this.Ut[c]===l.i.input.sa.$c||this.Ut[c]===l.i.input.sa.un||this.Ut[c]===
l.i.input.sa.nh){if("^"===a.charAt(0)){var n=parseInt(a.substring(1));!1===isNaN(n)&&(m=m.za(n+1),null!=m&&(a=m.caption==e.model.B.j.Nl?"":m.caption,k=!1))}}else if(this.Ut[c]==l.i.input.sa.Sf)"^"===a.charAt(0)&&(n=parseInt(a.substring(1)),!1===isNaN(n)&&(m=m.hierarchy.za(n+1),null!=m&&(a=m.caption==e.model.B.j.Nl?"":m.caption,k=!1)));else if(this.Ut[c]===l.i.input.sa.Ua||this.Ut[c]===l.i.input.sa.oj||this.Ut[c]===l.i.input.sa.Mq||this.Ut[c]===l.i.input.sa.wp)a=1E3*parseInt(a),k=!1;k&&(a=this.Jca(a));
a=new l.O.be({value:a});this.Pe.O.pc(a,this.ls[c],this.Ut[c],d,g)}}Jca(a){return a.replace(this.kKa,",").replace(this.mKa,'"').replace(this.lKa,"\n")}jA(){e.Ca(!1);this.HZ?this.Cb():(e.Va(e.model.B.j.zp,e.model.B.j.xa,e.ob.nk),this.Xa(),this.mR=null);this.clear()}yGa(){e.Ca(!1);e.Va(e.P.bind(e.model.B.j.Epa,this.gZ),e.model.B.j.xa,e.ob.xa);this.Xa();this.clear()}clear(){e.Ca(!1);this.jl=[];this.eR=this.ms="";this.Xi=0;this.DZ=!1;this.ar=0;this.Ut=[];this.CZ=this.FZ=this.Py=this.HZ=!1;this.Qy="";this.Vf=
0;this.Ur=100;null!=this.Gm&&(this.Gm.Vd(),this.Gm.dispose(),this.Gm=null);this.yg()}Cb(){null!=this.k_&&this.k_()}Xa(a){null!=this.mR&&this.mR(a)}xl(){}Nk(){}cA(){}Aq(){}BC(){return!1}cancel(){this.clear();this.Re=this.Xa=this.Cb=null}}f.eqa=b})(h.csv||(h.csv={}))})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends h.YP{constructor(){super();this.bJ=this.Pva=!1;this.pr=null;this.Aa=l.i.ra.JSON}get kb(){return e.ka(this.filename)&&(null==this.Yd||0==this.Yd)&&e.v(this.data)}set kb(a){}get cv(){return!e.v(this.data)}set cv(a){}isEqual(a){return a==this?!0:super.isEqual(a)&&e.v(a.data)}static xb(a){var c=new b;e.v(a.browseForFile)||(c.Yd=a.browseForFile);e.v(a.requestPermission)||(c.requestPermission=a.requestPermission);e.ka(a.filename)||(c.filename=
a.filename);e.v(a.data)||(c.data=a.data);e.v(a.checkUpdates)||(c.Pva=a.checkUpdates);e.v(a.requestHeaders)||(c.tc=a.requestHeaders);e.v(a.mapping)||(c.mapping=a.mapping instanceof l.O.Bm?a.mapping:new l.O.Bm(a.mapping));e.v(a.useStreamLoader)||(c.bJ=a.useStreamLoader);e.v(a.withCredentials)||(c.withCredentials=a.withCredentials);e.v(a.dataRootPath)||(c.pr=a.dataRootPath);return c}static Jk(a){var c=new b;0!=a.find("browseForFile").length&&(c.Yd=e.P.Zc(a.find("browseForFile").text()));0!=a.find("filename").length&&
(c.filename=a.find("filename").text());return c}op(a=!1){var c=z.ba.create("<dataSource/>");c.attr("type",this.Aa);(a||this.Yd)&&c.append(z.ba.create("<browseForFile/>").text(this.Yd));this.filename&&c.append(z.ba.create("<filename/>").append(z.ba.fi(this.filename)));return c}Sa(a=!1){var c={};c.type=this.Aa;if(a||this.Yd)c.browseForFile=this.Yd;this.filename&&(c.filename=this.filename);e.v(this.data)||(c.data=this.data);if(!this.mapping.kb||this.mapping.$o)c.mapping=this.mapping.Sa(!0);if(a||this.bJ)c.useStreamLoader=
this.bJ;if(a||this.withCredentials)c.withCredentials=this.withCredentials;if(a||!e.v(this.pr))c.dataRootPath=this.pr;return c}clone(){var a=new b;a.Aa=this.Aa;this.Yd&&(a.Yd=this.Yd);this.filename&&(a.filename=this.filename);e.v(this.data)||(a.data=this.data);if(!this.mapping.kb||this.mapping.$o)a.mapping=this.mapping.clone(this.Aa);this.withCredentials&&(a.withCredentials=this.withCredentials);a.bJ=this.bJ;a.pr=this.pr;return a}}f.RP=b})(h.json||(h.json={}))})(l.local||(l.local={}))})(e.u||(e.u=
{}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends h.csv.GX{constructor(){super();this.qJ=6553600;this.qx=!0;this.pr=null;this.Dj=void 0;this.d5=()=>this.fIa();this.Kj=this.WN=0;this.n1=[".js",".json"]}load(a,c,d,g,k){this.clear();this.ZC=this.$G=this.Nn=null;this.Kj=0;this.qx=!0;this.pr=a.pr;this.Cb=c;this.Xa=d;this.Re=g;this.OG=k;!0===a.Yd?this.Jba(a):void 0!==a.filename&&""!=a.filename&&"()"!=a.filename.substr(-2)?super.load(a,c,d,g,k):(a=a.data,this.Xo=!0,this.Dj=!e.v(a[1])&&
Array.isArray(a[1]),this.eL(a))}fIa(){if(!(e.v(this.pa)||e.v(this.pa.response)||!this.qx&&this.pa.response.length<this.qJ/100)){var a=this.pa.response.substr(this.Yh,this.qJ);this.Fr(a);this.Yh+=a.length}}NN(a){var c=a.data;if(404==c.target.status)this.pm(a);else if(!e.v(this.pa)&&!e.v(this.pa.response))try{if(0!==this.pa.response.length&&(this.Wj!=c.loaded||this.Nw!=this.pa.response.length)){this.iN=0<c.total&&c.lengthComputable;this.Nw=this.pa.response.length;this.Wj=c.loaded;this.Xo=c.loaded==
c.total;var d=0==c.total?e.P.bind(e.model.B.j.Am,u.bc.ah(c.loaded)):e.P.bind(e.model.B.j.JF,u.bc.ah(c.loaded),u.bc.ah(c.total),(c.loaded/c.total*100).toFixed(0));e.Ca(!0,e.model.B.j.mg,d);this.iN&&c.total<5*this.qJ||u.Nd().fj||!e.v(this.pr)?this.qx=!0:this.jv||(this.qx=!1,this.d5())}}catch(g){console.error(g.stack),this.pm()}}MN(){if(!e.v(this.pa)&&!e.v(this.pa.response))try{if(this.Xo=!0,0==this.Yh||!this.jv||this.qx){const a=this.pa.response;e.ka(a)&&!this.jv?this.EV():this.Fr(a);this.pa=null}}catch(a){console.error(a.stack),
this.pm()}}tBa(a){return this.qx&&!e.v(this.pr)&&0<this.pr.length?u.Hc.resolve(this.pr,a):a}Fr(a){void 0===this.Dj&&(this.Dj=b.Wca(a));let c=null;try{let d;if(this.qx)d=JSON.parse(a);else{if(0==a.length){this.Xo?this.eL([]):e.ve(this.d5,100);return}d=this.J_(a)}c=this.tBa(d);e.v(c.items)||(c=c.items);if(e.v(c.length)){this.ON();return}}catch(d){this.ON();return}this.eL(c)}J_(a){void 0!==this.hd&&0<this.hd.length&&(a=this.hd+a);let c=a;var d=a.trim();"["===d[0]?(d=d.substring(1).trim(),!0===this.Dj&&
(d=d[0],a="["!==d&&"{"!==d?"["+a:a)):"]"===d[d.length-1]&&(d=d.slice(0,-1).trim(),this.Dj&&(a=d[d.length-1],a="]"!==a&&"}"!==a?d+"]":d));!1===this.Dj?(d=a.lastIndexOf("},"),e.ka(this.hd)&&-1===d?"["!==a[0]&&(a="["+a):(this.hd=a.substring(d+2),a=a.substring(0,d+1).trim(),a="["===a[0]?a+"]":"["+a+"]")):!0===this.Dj&&(d=a.lastIndexOf("],"),e.ka(this.hd)&&-1===d?"["!==a[0]&&(a="["+a):(this.hd=a.substring(d+2),a=a.substring(0,d+1).trim(),a+="]"));d=[];try{d=JSON.parse(a)}catch(g){this.hd=c}return d}eL(a){e.v(a.items)||
(a=a.items);(e.v(a)||1>a.length)&&!e.model.C.F.Ux?!this.jv&&this.Xo&&this.EV():Array.isArray(a)?(this.jv?this.data=this.data.concat(a.slice()):(this.jv=!0,this.pt(),this.Dj&&this.wLa(a[0]),a[0]&&Array.isArray(a[0])?this.wE(a[0],a[1],this.wa.ga.mapping):this.wa.ga.mapping.Lfa?this.wa.O.aS(this.wa.ga.mapping,a[0]):this.wa.O.aS(a[0],a[1]),this.data=a.slice(),(l.O.Bm.TU(a[0])||this.Dj)&&this.data.shift()),0==this.data.length?this.qx?this.sI():this.jA(!0):this.qx?u.Ql.Co({lp:()=>this.wv(),gf:()=>this.sI()}):
this.oN||u.Ql.Co({lp:()=>this.wv(),gf:()=>this.jA()})):e.Va(e.model.B.j.XJ,e.model.B.j.xa)}jA(a=!1){if(a||e.v(this.pa)||!(this.pa.response.length>this.Yh)&&this.Xo){if(this.jv){if(!e.ka(this.hd)){this.hd=this.hd.trim();"]"==this.hd.substr(-1)&&(this.hd=this.hd.substr(0,this.hd.length-1).trim(),!0===this.Dj&&(a=this.hd.substr(this.hd.length-1),this.hd="]"!=a&&"}"!=a?this.hd+"]":this.hd));try{var c=JSON.parse(this.hd)}catch(d){c=JSON.parse(JSON.stringify(this.hd))}this.data.push(c);this.wv()}null!=
this.Cb&&(this.clear(),this.Cb())}else e.Va(e.model.B.j.zp,e.model.B.j.xa,e.ob.nk),null!=this.Xa&&(this.Xa(e.model.B.j.zp),this.Xa=null);this.clear()}else e.ve(this.d5,1)}Wd(a){if(!(e.v(a)||1>a.length)){this.wa.ta.iwa();for(var c=1<a.length?a[1]&&Array.isArray(a[1]):a[0]&&Array.isArray(a[0]),d=0;d<a.length;d++)this.insertData(a[d],!0,c)}}sI(){this.data=null;e.Ca(!1);e.Pg(this.Cb)&&this.Cb();this.clear()}e2(){return u.Nd().fj?0==this.data.length?e.P.bind(e.model.B.j.uY,this.Kj):e.P.bind(e.model.B.j.gQ,
this.Kj,this.data.length,(this.Kj/this.data.length*100).toFixed(0)):0!=this.Wj?e.P.bind(e.model.B.j.JF,u.bc.ah(this.Yh),u.bc.ah(this.Wj),(this.Yh/this.Wj*100).toFixed(0)):0==this.Wj&&0<this.data.length?e.P.bind(e.model.B.j.gQ,this.Kj,this.data.length,(this.Kj/this.data.length*100).toFixed(0)):e.P.bind(e.model.B.j.Am,u.bc.ah(this.Yh))}wv(){if(0===this.Kj%100&&200<u.bg()-this.WN){var a=e.model.B.j.fQ,c=this.e2();1==this.Xo&&e.Ca(!0,a,c);this.WN=u.bg()}if(this.Kj>=this.data.length)return!0;e.v(this.data[this.Kj])||
this.insertData(this.data[this.Kj],!1,this.Dj);this.Kj++;return this.Kj>=this.data.length}H5(){this.Nn=this.wa.O.N1(!1);this.$G=[];for(var a=0;a<this.Nn.length;a++)this.$G[a]=this.wa.O.wD(this.Nn[a]);this.wa.ta.zI()}wLa(a){this.ZC=new e.ub;if(Array.isArray(a))for(var c=0;c<a.length;c++)this.ZC.Ta(a[c],c);else{c=0;for(let d in a)a.hasOwnProperty(d)&&(e.v(a[d])||e.ka(a[d].uniqueName)?this.ZC.Ta(d,c):this.ZC.Ta(a[d].uniqueName,c),c++)}}insertData(a,c,d){null===this.Nn&&this.H5();var g=[],k=[],m=!1,n=
new Map;if(c){var p=this.wa.O.aT;""!==p&&(d?(m=this.ZC.getItem(p),m=!e.v(a[m])):m=!e.v(a[p]))}for(var t=0;t<this.Nn.length;t++){p=this.Nn[t];var r=this.$G[t];if(d){var v=this.ZC.getItem(p);var y=a.hasOwnProperty(""+v);v=a[v]}else y=a.hasOwnProperty(p),v=a[p];if(r!==l.i.input.sa.NF)if(r===l.i.input.sa.ty)var A=v;else if(!m){var C=void 0;this.wa.O.v2&&(C=this.R1(a,p,d));y=y?new l.O.be({Ye:C,value:v,caption:""+v}):new l.O.be({Ye:C});r===l.i.input.sa.Sf&&(v=this.wa.O.uD(p),v=v.hierarchy.ua.fa(v.yb-1).A,
n.has(v)?y.parent=n.get(v):void 0!==a[v]&&(y.Ki=a[v]));n.set(p,this.wa.O.pc(y,p,r,g,k))}}c?m?this.wa.ta.qya(A):this.wa.ta.update(g,k,A):this.wa.ta.insert(g,k,A)}R1(a,c,d=!1){var g=void 0;(c=this.wa.O.qea(c))&&0<c.length&&c.forEach(k=>{if(d){var m=this.ZC.getItem(k);m=a[m]}else m=a[k];e.v(m)||(e.v(g)&&(g={}),g[k]=m)});return g}ON(){e.Va(e.model.B.j.XJ,e.model.B.j.xa);e.Ca(!1);e.Pg(this.Xa)&&this.Xa(e.model.B.j.XJ);this.Cb=this.Xa=null;this.clear()}EV(){e.model.C.F.Ux||e.Va(e.model.B.j.zp,e.model.B.j.xa,
e.ob.nk);e.Ca(!1);e.Pg(this.Xa)&&this.Xa(e.model.B.j.zp);this.Cb=this.Xa=null;this.clear()}static Wca(a){a=a.trim();if(!0===/^\[[\s\n\r]*\[/gm.test(a)||!0===/^\[[\s\n\r]*\{[\s\n\r\S]*\}[\s\n\r]*,[\s\n\r]*\[/gm.test(a))return!0;if(!0===/^\[[\s\n\r]*\{/gm.test(a))return!1}}f.O8=b})(h.json||(h.json={}))})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){this.PZ=null;this.Vf=0;this.fs=this.gR=this.jl=null;this.yf=0}getData(c){this.H$=c;e.Ca(!0,e.model.B.j.u9);this.VJa();this.HS()}VJa(){this.fs=l.Ma.R().O.vc();this.PZ={};this.Em=[];for(this.yf=0;this.yf<this.fs.length;){var c=this.fs.fa(this.yf);var d=l.Ma.R().O.nf(c.A).type;d!=l.i.Ra.wc&&d!=l.i.Ra.Ua?this.aKa(l.Ma.R().O.nf(c.A)):this.ZJa(c);this.yf++}this.qwa(this.Em)}qwa(c){for(var d,g=0;g<c.length;g++)d={},c[g].type!=l.i.input.sa.Sf&&
(d.caption=c[g].caption),d.type=c[g].type,c[g].type==l.i.input.sa.Sf&&this.yJa(c[g],d),this.PZ[c[g].A]=d}yJa(c,d){var g=c.A.split(":");1==g.length?(d.hierarchy=g[0],d.level=g[0]):(d.hierarchy=g[0],d.level=g[g.length-1],d.parent=g[g.length-2],c.A=d.level)}HS(){this.Vf=0;this.jl=[];this.jl.push(this.PZ);this.Ao=l.Ma.R().ta.$M();u.Ql.Co({lp:()=>this.Qwa(),gf:()=>this.HGa()})}Qwa(){var c=u.bg();this.gR=[];this.vk=this.yf=0;for(var d=this.Ao&&this.Ao[0]?this.Ao[0].length:0;this.Vf<d;){for(this.gR=[];this.yf+
this.vk<this.Ao.length&&this.yf<this.Em.length;)this.pc(this.Swa()),this.yf++;this.Vf++;this.jl.push(this.gR);this.vk=this.yf=0;if(100<u.bg()-c)break}this.WLa(this.Vf,d);return this.Vf>=d}ZJa(c){var d=c.inputType;(d==l.i.input.sa.Sf||2<c.ua.length)&&d!=l.i.input.sa.Mq&&d!=l.i.input.sa.wp?this.$Ja(c):d==l.i.input.sa.Ua?(this.Em.push(this.QS(d,c.Ci.caption,!1,c.Ci.A)),this.yf+=2):this.Em.push(this.QS(d,c.caption,!1,c.A))}$Ja(c){c=c.ua;for(var d,g,k,m=1;m<c.length;m++){k=m;d=c.getItem(c.Uh(m));for(g=
d.caption;1<k;)k--,g=c.getItem(c.Uh(k)).A+":"+g;this.Em.push(this.QS(l.i.input.sa.Sf,d.caption,!1,g))}}pc(c){this.gR.push(c)}Swa(){var c=this.Em[this.yf].type;if(c!=l.i.input.sa.Ua)var d=this.fs.getItem(this.Em[this.yf].A).za(this.Ao[this.yf+this.vk][this.Vf]).caption;if(c==l.i.input.sa.jb)return null!=d?parseFloat(d):"";if(c==l.i.input.sa.$c||c==l.i.input.sa.un||c==l.i.input.sa.nh)return null!=d&&d!=e.model.B.j.Nl?d.toString():"";if(c==l.i.input.sa.Sf){c=this.fs.getItem(this.Em[this.yf].caption);
for(var g=0;g<c.ua.length-2;g++)this.pc(d),this.Em[this.yf],this.yf++,d=null==this.Ao[this.yf+this.vk][this.Vf]||""==this.Ao[this.yf+this.vk][this.Vf]+""?"":c.za(this.Ao[this.yf+this.vk][this.Vf]).caption}else{if(c==l.i.input.sa.oj)return this.fs.getItem(this.Em[this.yf].caption).za(this.Ao[this.yf+this.vk][this.Vf]).nc;if(c==l.i.input.sa.Ua)return d="",c=this.fs.getItem(this.Em[this.yf].caption+".Year").za(this.Ao[this.yf+this.vk][this.Vf]),d+=c.caption+"-",this.vk++,c=this.fs.getItem(this.Em[this.yf].caption+
".Month").za(this.Ao[this.yf+this.vk][this.Vf]),d+=e.model.B.j.bs.indexOf(c.caption)+1+"-",this.vk++,c=this.fs.getItem(this.Em[this.yf].caption+".Day").za(this.Ao[this.yf+this.vk][this.Vf]),d+=c.caption;if(c==l.i.input.sa.Mq||c==l.i.input.sa.wp)return this.Jwa(c);if(c==l.i.input.sa.Mc||c==l.i.input.sa.ec)return this.fs.getItem(this.Em[this.yf].A).za(this.Ao[this.yf+this.vk][this.Vf]).nc}return d}HGa(){e.Ca(!1);null!=this.H$&&this.H$(this.jl)}Jwa(c){this.vk+=2;this.vk=c==l.i.input.sa.wp?this.vk+1:
this.vk;return this.fs.getItem(this.Em[this.yf].caption).SM(this.Ao[this.yf+this.vk][this.Vf])}aKa(c){this.Em.push(this.QS(l.i.Ra.FA(c.type),c.Bl,!0,c.A))}WLa(c,d){c=e.P.bind(e.model.B.j.g9,(c/d*100).toFixed(0));e.Ca(!0,e.model.B.j.u9,c)}QS(c,d,g=!1,k){var m=new a;m.caption=d;m.type=c;m.tg=g;m.A=k;return m}}f.jY=b;class a{constructor(){}get type(){return this.Fg}set type(c){this.Fg=c}get caption(){return this.yc}get tg(){return this.dta}set tg(c){this.dta=c}set caption(c){this.yc=c}get A(){return this.$K}set A(c){this.$K=
c}}f.dOa=a})(h.json||(h.json={}))})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends h.ura{constructor(){super(...arguments);this.Kj=this.WN=0;this.Nn=null;this.f3=this.VU=!1;this.Dj=void 0}load(a,c,d,g,k){this.clear();this.Cb=c;this.Xa=d;this.Re=g;this.OG=k;this.la=a;this.filename=a.filename;!e.ka(this.filename)&&"()"!=this.filename.substr(-2)||!1!==a.Yd?(this.filename=u.Gy.RH(this.filename,!e.model.C.F.gS),e.Ca(!0,e.model.B.j.mg),this.BO(this.filename,a.tc)):this.z4()}AGa(){e.Ca(!0,e.model.B.j.mg,"")}HHa(a){a=0==
a.total?e.P.bind(e.model.B.j.Am,u.bc.ah(a.loaded)):e.P.bind(e.model.B.j.JF,u.bc.ah(a.loaded),u.bc.ah(a.total),(a.loaded/a.total*100).toFixed(0));e.Ca(!0,e.model.B.j.mg,a)}z4(a=null){e.Ca(!1);var c="",d="";null!=a&&null!=a.target&&null!=a.target.response&&""!=a.target.response&&(d=e.model.Tb.validate(a.target.response),c=d=700<d.length?d.substr(0,700):d,d=e.P.bind(e.model.B.j.iQ,d).replace(/'/g,""));0==this.f3&&(this.f3=!0,a=e.model.Tb.valid(this.filename)?this.filename:e.model.Tb.validate(this.filename),
e.Va(e.P.bind(e.model.B.j.ZJ,a)+d,e.model.B.j.xa,e.ob.xa));null!=this.Xa&&(this.Xa(c),this.Xa=null);this.yg()}oIa(a,c,d){try{a=a.replaceAll(String.fromCharCode(0),"");void 0===this.Dj&&(this.Dj=f.O8.Wca(a));const g=d?JSON.parse(a):this.J_(a);Array.isArray(g)?(this.eL(g),u.Ql.Co({lp:()=>this.wv(),gf:c})):this.ON()}catch(g){this.ON()}}J_(a){void 0!==this.hd&&0<this.hd.length&&(a=this.hd+a);let c=a;var d=a.trim();"["===d[0]?(d=d.substr(1).trim(),!0===this.Dj&&(d=d[0],a="["!=d&&"{"!=d?"["+a:a)):"]"===
d[d.length-1]&&(d=d.substr(0,d.length-1).trim(),!0===this.Dj&&(a=d[d.length-1],a="]"!=a&&"}"!=a?d+"]":d));!1===this.Dj?(d=a.lastIndexOf("},"),e.ka(this.hd)&&-1===d?"["!==a[0]&&(a="["+a):(this.hd=a.substring(d+2),a=a.substring(0,d+1).trim(),a="["===a[0]?a+"]":"["+a+"]")):!0===this.Dj&&(d=a.lastIndexOf("],"),e.ka(this.hd)&&-1===d?"["!==a[0]&&(a="["+a):(this.hd=a.substring(d+2),a=a.substring(0,d+1).trim(),a+="]"));d=[];try{d=JSON.parse(a)}catch(g){this.hd=c}return d}eL(a){e.v(a.items)||(a=a.items);(e.v(a)||
1>a.length)&&!e.model.C.F.Ux?!this.VU&&this.SU&&this.EV():Array.isArray(a)?(this.VU?this.data=this.data.concat(a.slice()):(this.VU=!0,this.pt(),this.fe=l.Ma.R().O,this.ta=l.Ma.R().ta,this.la.mapping.kb?a[0]&&Array.isArray(a[0])?this.wE(a[0],a[1]):this.fe.aS(a[0]):this.fe.aS(this.la.mapping.Sa()),this.data=a.slice(),(l.O.Bm.TU(a[0])||this.Dj)&&this.data.shift()),0==this.data.length&&this.sI()):e.Va(e.model.B.j.XJ,e.model.B.j.xa)}wE(a,c){try{var d=e.v(c)?[]:c;this.Pm=[];for(c=0;c<a.length;c++){var g=
this.QT(d[c]),k=this.Zw(a[c],g,0==d.length),m=this.W1(a[c],g,0==d.length),n=this.FM(a[c]),p=this.DM(n),t={type:k,uniqueName:n,caption:p,isMeasure:m};if(!t.hasOwnProperty("visible")||!1!==t.visible){this.OC[c]=t.type;this.We[c]=t.isMeasure;this.Pm[c]=n;if(k===l.i.input.sa.Sf){var r=n.split(":");t.hierarchy=r[0];t.level=r.pop();t.parent=r.join(":")}this.fe.Sy(t,n)}}}catch(v){console.error(v.stack),this.m4()}}m4(){e.Ca(!1);e.Va(e.P.bind(e.model.B.j.m9),e.model.B.j.xa,e.ob.xa)}QT(a){void 0!==a&&null!==
a&&"string"==typeof a&&(a=a.replace(",","."));return a}FM(a){a=a.trim();if(-1<this.Pm.indexOf(a)){for(var c=1,d=a;-1<this.Pm.indexOf(d);)d=a+c,c++;a=d}return a}DM(a){return this.Qz(a)?(a=a.split(":"),a[a.length-1]):a}W1(a,c,d){return!e.model.C.F.Le||e.v(c)&&!d?!1:"-"===a.trim().charAt(0)}Zw(a,c,d){var g=l.i.input.sa.jb;a=a.trim();if(e.v(c)&&!d)return l.i.input.sa.$c;"+"===a.charAt(0)?g=l.i.input.sa.$c:"t+"===a.substr(0,2)?g=l.i.input.sa.ec:"dt+"===a.substr(0,3)?g=l.i.input.sa.Mc:"n+"===a.substr(0,
2)?g=l.i.input.sa.jb:"-"===a.charAt(0)?g=l.i.input.sa.jb:"ds+"===a.substr(0,3)?g=l.i.input.sa.oj:"d+"===a.substr(0,2)?g=l.i.input.sa.Ua:"m+"===a.substr(0,2)?g=l.i.input.sa.nh:"w+"===a.substr(0,2)?g=l.i.input.sa.un:"D+"===a.substr(0,2)?g=l.i.input.sa.Mq:"D4+"===a.substr(0,3)?g=l.i.input.sa.wp:"id+"===a.substr(0,3)?g=l.i.input.sa.ty:""==c||void 0===c?g=l.i.input.sa.$c:isNaN(Number(c))&&(g=e.P.HU(c)?e.model.C.F.$L:l.i.input.sa.$c);g===l.i.input.sa.$c&&this.Qz(a)&&(g=l.i.input.sa.Sf);return g}Qz(a){"+"===
a.charAt(0)&&(a=a.substr(1));return 1<a.split(":").length&&-1<this.Pm.indexOf(a.split(":")[0].trim())}wv(){if(0===this.Kj%100&&200<u.bg()-this.WN){var a=e.model.B.j.fQ,c=this.e2();1==this.SU&&e.Ca(!0,a,c);this.WN=u.bg()}if(this.Kj>=this.data.length)return!0;e.v(this.data[this.Kj])||this.insertData(this.data[this.Kj],this.Dj);this.data[this.Kj]=void 0;this.Kj++;return this.Kj>=this.data.length}H5(){this.Nn=this.fe.N1(!1);this.$G=[];for(var a=0;a<this.Nn.length;a++)this.$G[a]=this.fe.wD(this.Nn[a]);
this.ta.zI()}insertData(a,c){null===this.Nn&&this.H5();for(var d,g,k=[],m=[],n,p,t,r=0;r<this.Nn.length;r++)if(d=this.Nn[r],g=this.$G[r],c?(t=a.hasOwnProperty(""+r),p=a[r]):(t=a.hasOwnProperty(d),p=a[d]),g!==l.i.input.sa.NF)if(g===l.i.input.sa.ty)n=p;else{var v=void 0;this.fe.v2&&(v=this.R1(a,d,c));p=t?new l.O.be({Ye:v,value:p,caption:String(p)}):new l.O.be({Ye:v});g===l.i.input.sa.Sf&&(t=this.fe.uD(d),t=t.hierarchy.ua.fa(t.yb-1).A,p.Ki=a[t]);this.fe.pc(p,d,g,k,m)}this.ta.insert(k,m,n)}R1(a,c,d=!1){var g=
void 0;(c=this.fe.qea(c))&&0<c.length&&c.forEach(k=>{var m=d?a[this.Nn.indexOf(k)]:a[k];e.v(m)||(e.v(g)&&(g={}),g[k]=m)});return g}e2(){return e.P.bind(e.model.B.j.lpa,u.bc.Cz(this.Kj.toString()),(this.AC/this.zL*100).toFixed(0))}sI(){this.data=null;e.Ca(!1);e.Pg(this.Cb)&&this.Cb();this.clear()}pt(){null!=this.Re&&(this.Re(),this.Re=null)}nIa(){e.Ca(!1);if(this.VU){if(!e.ka(this.hd)){this.hd=this.hd.trim();if("]"==this.hd.substr(-1)&&(this.hd=this.hd.substr(0,this.hd.length-1).trim(),!0===this.Dj)){var a=
this.hd.substr(this.hd.length-1);this.hd="]"!=a&&"}"!=a?this.hd+"]":this.hd}try{var c=JSON.parse(this.hd)}catch(d){c=JSON.parse(JSON.stringify(this.hd))}this.data.push(c);this.wv()}null!=this.Cb&&this.Cb()}else e.Va(e.model.B.j.zp,e.model.B.j.xa,e.ob.nk),null!=this.Xa&&(this.Xa(),this.Xa=null);this.clear()}ON(){e.Va(e.model.B.j.XJ,e.model.B.j.xa);e.Ca(!1);e.Pg(this.Xa)&&this.Xa();this.Cb=this.Xa=null;this.clear()}EV(){e.model.C.F.Ux||e.Va(e.model.B.j.zp,e.model.B.j.xa,e.ob.nk);e.Ca(!1);e.Pg(this.Xa)&&
this.Xa();this.Cb=this.Xa=null;this.clear()}clear(){this.data=[];this.Wj=0;this.OC=[];this.We=[];this.f3=!1;this.hd="";null!=this.pa&&(this.pa.Vd(),this.pa.dispose(),this.pa=null);this.yg()}cancel(){this.clear();this.Re=this.Xa=this.Cb=null}xl(){throw Error("Method not implemented.");}Nk(){throw Error("Method not implemented.");}cA(){throw Error("Method not implemented.");}Aq(){throw Error("Method not implemented.");}BC(){return!1}}f.qoa=b})(h.json||(h.json={}))})(l.local||(l.local={}))})(e.u||(e.u=
{}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends l.c7{zI(){this.$_();const b=[];for(var a=this.slice.vc(!1),c=0;c<a.length;c++){const g=a.fa(c);this.Jm(g.A,g.A);e.model.C.F.sc&&this.Hn(this.wa.O.nf(g.A));for(var d=1;d<g.ua.length;d++){const k=g.ua.fa(d);this.Jm(k.A,g.A)}}a=e.u.i.ra.Cc===this.wa.ga.Aa?this.Bza(this.slice.Wf):this.slice.Wf;for(c=0;c<a.length;c++)this.Hn(a[c],b);if(e.u.i.ra.Cc===this.wa.ga.Aa)for(c=0;c<a.length;c++)d=a[c],d.Qa&&(this.Uy(d.A,d.Mm),this.fL(d));this.slice.zA(b)}Bza(b){const a=
[],c={};if(void 0!==b){let k,m,n;for(var d=0;d<b.length;d++){var g=b[d].$;k=b[d].A;m=b[d].hidden;void 0===c[k+"_"+g]?(n=a.length,c[k+"_"+g]={iE:n,Pfa:m},a.push(b[d])):(g=c[k+"_"+g],g.Pfa&&!m&&(a.splice(g.iE,1),g.iE=a.length,g.Pfa=b[d].hidden,a.push(b[d])))}}return a}ii(b,a,c){let d,g;"string"!==typeof b?(d=b.A,g=l.i.ea.uN(b.$)?b.$:b.Mm):d=b;e.v(a)||(g=a);return super.ii(d,g,c)}Hn(b,a){b&&(e.u.i.ra.Cc===this.wa.ga.Aa&&b.Qa||(this.Uy(b.A,b.Mm),l.i.ea.uN(b.$)&&this.Uy(b.A,b.$),this.fL(b)),b.Qa&&this.Yaa(b,
this.slice.Yc.Da,a),void 0!==a&&a.push(b))}Yaa(b,a,c){if((a=u.Ht.RM(b.Ud,a))&&0<a.length)for(let k=0;k<a.length;k++){var d=a[k],g=this.wa.O.fd(d.A);if(null!=g){let m=this.slice.Gi(d);if(null==m){m=g.clone();m.$=d.$;d=m.hidden=!0;if(void 0!==c)for(g=0;g<c.length;g++)c[g].A===m.A&&(m.$===l.i.ea.NONE||c[g].$===b.$&&c[g].Mm===b.Mm)&&(d=!1);d&&(c.push(m),this.fL(m),this.Uy(m.A,m.Mm),l.i.ea.uN(m.$)&&this.Uy(m.A,m.$))}}}}vL(b){return this.wa.ga.Aa==l.i.ra.kg&&b?(b=b.hierarchy,0==b.mapping.La(b.A,"min_doc_count")):
this.wa.ga.Aa==l.i.ra.API?super.vL(b):!1}uL(b){return this.wa.ga.Aa==l.i.ra.kg&&b?(b=b.hierarchy,0==b.mapping.La(b.A,"min_doc_count")):this.wa.ga.Aa==l.i.ra.API?super.uL(b):!1}}h.UX=f})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));var Ka=q||(q={}),La=Ka.u||(Ka.u={}),Ma=La.external||(La.external={}),Na=Ma.Hb||(Ma.Hb={});class Oa{}Oa.NONE=0;Oa.EX=1;Oa.FY=2;Oa.MY=3;Oa.pJ=4;Oa.LX=5;Na.Qj=Oa;
(function(e){(function(l){(function(h){(function(f){class b extends l.O.Bm{constructor(a=null){super(a)}bI(a){a=this.La(a,"visible");return null==a?!0:a}}f.pQ=b})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends l.O.Et{constructor(){super(...arguments);this.Nm=!1;this.Aj=this.Hj=this.Tk=this.sf=this.cf=this.Pe=this.I$=this.gi="";this.mapping=new f.pQ;this.hy=!0;this.bw="";this.version=0}get De(){return this.I$}set De(a){a=a.replace("[","");this.I$=a=a.replace("]","")}get wa(){return this.Pe}set wa(a){a=a.replace("[","");this.Pe=a=a.replace("]","")}get Rm(){return this.Aa!=l.i.ra.Cc?"":""==this.bw&&null!=this.credentials&&this.credentials.bn?
"credentials="+this.credentials.hash:this.bw}set Rm(a){this.bw=a}get rN(){return this.Nm}get kb(){return e.ka(this.sf)}set kb(a){}get cv(){return!1}set cv(a){}get aI(){return!1}get KU(){return this.Aa!=l.i.ra.Pd||this.rN?!0:!1}get JU(){return this.Aa==l.i.ra.Cc&&this.rN}isEqual(a){return super.isEqual(a)&&this.sf===a.sf&&this.De===a.De&&this.wa===a.wa&&this.gi===a.gi&&this.Nm===a.Nm&&this.cf===a.cf&&this.mapping.isEqual(a.mapping)&&this.hy===a.hy&&(this.Aa!=l.i.ra.Pd?this.cf===a.cf:!0)&&(this.Aa===
l.i.ra.Cc?this.Hj===a.Hj:!0)&&(this.Aa===l.i.ra.Cc?this.Aj===a.Aj:!0)&&(this.Aa===l.i.ra.Cc?this.Rm===a.Rm:!0)}static xb(a){var c=new b;e.v(a.dataSourceType)||(c.Aa=a.dataSourceType);e.v(a.dataSourceInfo)||(c.gi=a.dataSourceInfo);e.v(a.catalog)||(c.De=a.catalog);e.v(a.cube)||(c.wa=a.cube);e.v(a.roles)||(c.Tk=a.roles);e.v(a.proxyUrl)||(c.sf=a.proxyUrl);e.v(a.localeIdentifier)||(c.Hj=a.localeIdentifier);e.v(a.subquery)||(c.cf=a.subquery);e.v(a.effectiveUserName)||(c.Aj=a.effectiveUserName);e.v(a.customData)||
(c.Rm=a.customData);e.v(a.binary)||(c.Nm=a.binary);e.v(a.requestHeaders)||(c.tc=a.requestHeaders);e.v(a.mapping)||(c.mapping=a.mapping instanceof f.pQ?a.mapping:new f.pQ(a.mapping));e.v(a.useGranularityNamesForDateFilters)||(c.hy=a.useGranularityNamesForDateFilters);c.credentials=f.mj.v$.xb(a);e.v(a.withCredentials)||(c.withCredentials=a.withCredentials);return c}static Jk(a){var c=new b;a=a.find("dataSource");var d=a.attr("type");void 0!==d&&(d=d.toLowerCase());"msolap"==d&&(d=l.i.ra.Cc);d&&-1<d.indexOf("pentaho")&&
(d=l.i.ra.Pd);if(!l.i.ra.valid(d)){var g=a.find("proxyUrl");0<g.length&&0<g.text().length&&(d=l.i.ra.Cc)}c.Aa=d;0!=a.find("dataSourceInfo").length&&(c.gi=a.find("dataSourceInfo").text());0!=a.find("catalog").length&&(c.De=a.find("catalog").text());0!=a.find("cube").length&&(c.wa=a.find("cube").text());0!=a.find("subquery").length&&(c.cf=a.find("subquery").text());0!=a.find("roles").length&&(c.Tk=a.find("roles").text());0!=a.find("proxyUrl").length&&(c.sf=a.find("proxyUrl").text());0!=a.find("localeIdentifier").length&&
(c.Hj=a.find("localeIdentifier").text());0!=a.find("effectiveUserName").length&&(c.Aj=a.find("effectiveUserName").text());0!=a.find("customData").length&&(c.Rm=a.find("customData").text());0!=a.find("binary").length&&(c.Nm=e.P.Zc(a.find("binary").text()));0!=a.find("credentials").length&&(d={},0!=a.find("credentials").find("hash").length&&(d.hash=a.find("credentials").find("hash").text()),0!=a.find("credentials").find("username").length&&(d.username=a.find("credentials").find("username").text()),
0!=a.find("credentials").find("password").length&&(d.password=a.find("credentials").find("password").text()),c.credentials=f.mj.v$.xb(d));return c}op(a=!1){var c=z.ba.create("<dataSource/>");c.attr("type",this.Aa);switch(this.Aa){case l.i.ra.Cc:(a||""!=this.Hj)&&c.append(z.ba.create("<localeIdentifier/>").text(this.Hj)),(a||""!=this.Aj)&&c.append(z.ba.create("<effectiveUserName/>").text(this.Aj)),(a||""!=this.bw)&&c.append(z.ba.create("<customData/>").text(this.bw));case l.i.ra.Pd:c.append(z.ba.create("<proxyUrl/>").append(z.ba.fi(this.sf))),
(a||""!=this.gi)&&c.append(z.ba.create("<dataSourceInfo/>").text(this.gi)),c.append(z.ba.create("<catalog/>").text(this.De)),c.append(z.ba.create("<cube/>").text(this.wa)),c.append(z.ba.create("<binary/>").text(this.Nm)),(a||""!=this.Tk)&&c.append(z.ba.create("<roles/>").text(this.Tk)),this.credentials&&this.credentials.bn&&(a=z.ba.create("<hash/>").text(this.credentials.hash),c.append(z.ba.create("<credentials/>").append(a)))}return c}Sa(a=!1){var c={};c.type=this.Aa;switch(this.Aa){case l.i.ra.Cc:if(a||
""!=this.Hj)c.localeIdentifier=this.Hj;if(a||""!=this.Aj)c.effectiveUserName=this.Aj;if(a||""!=this.bw)c.customData=this.bw;if(a||this.withCredentials)c.withCredentials=this.withCredentials;if(a||1!=this.hy)c.useGranularityNamesForDateFilters=this.hy;case l.i.ra.Pd:c.proxyUrl=this.sf;if(a||""!=this.gi)c.dataSourceInfo=this.gi;c.catalog=this.De;c.cube=this.wa;c.binary=this.Nm;if(a||""!=this.Tk)c.roles=this.Tk;this.credentials&&this.credentials.bn&&(c.credentials={hash:this.credentials.hash})}if(!this.mapping.kb||
this.mapping.$o)c.mapping=this.mapping.Sa(!0);return c}clone(){var a=new b;a.Aa=this.Aa;switch(this.Aa){case l.i.ra.Cc:""!==this.Hj&&(a.Hj=this.Hj),""!==this.Aj&&(a.Aj=this.Aj),""!==this.bw&&(a.Rm=this.bw),this.withCredentials&&(a.withCredentials=this.withCredentials),1!=this.hy&&(a.hy=this.hy);case l.i.ra.Pd:a.sf=this.sf,""!==this.gi&&(a.gi=this.gi),a.De=this.De,a.wa=this.wa,a.Nm=this.Nm,""!==this.Tk&&(a.Tk=this.Tk),this.credentials&&this.credentials.bn&&(a.credentials={hash:this.credentials.hash})}if(!this.mapping.kb||
this.mapping.$o)a.mapping=this.mapping.clone(this.Aa);return a}}b.sessionId=0;f.Bp=b})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends h.UX{AU(a,c,d,g,k,m){for(var n=[],p=[],t=0;t<a.length;t++){if(-1===a[t][1])return;p[t]=a[t][1];n[this.ua[this.Zh[t]][a[t][0]]]=p[t]}a=[];for(t=0;t<c.length;t++){if(-1===c[t][1])return;a[t]=c[t][1];n[this.ua[this.xj[t]][c[t][0]]]=a[t]}c=this.Bs(p,a);p=this.zb.length;void 0!==this.values[c]?p=this.Lza(n):(this.qh.push(p),this.zb.push(n));0<g.length&&(n=k===l.i.ha.Ia?this.md(g,this.Cd):this.md(g,this.Od),-1===n[0][0].indexOf(p)&&n[0][0].push(p),
m===l.i.Md.rP&&(g=g.slice(0,-1),k=k===l.i.ha.Ia?this.md(g,this.Cd):this.md(g,this.Od),-1===k[0][0].indexOf(p)&&k[0][0].push(p)));this.values[c]=d}Lza(a){for(var c,d=0;d<this.zb.length;d++)if(a.length===this.zb[d].length){c=!0;for(var g=0;g<a.length;g++)if(a[g]!==this.zb[d][g]){c=!1;break}if(c)return d}return this.zb.length}La(a,c,d){var g=this.Bs(a,c),k=this.ii(d);void 0===this.values[g]&&(this.values[g]=[]);if(!e.model.C.F.tu||!d.Qa)return e.v(this.values[g][k])?NaN:this.values[g][k];if(void 0==
this.values[g][k]){var m=this.md(a,this.Cd),n=this.md(c,this.Od);if(void 0===m||void 0===m[0]||void 0===n||void 0===n[0])return NaN;a=this.bq([g],d.Ud,d.Lk,0,a,c,d.Jn);if(!0===a||!1===a)a=!0===a?1:0;this.values[g][k]=a}return e.v(this.values[g][k])?NaN:this.values[g][k]}Ny(a,c,d){if(void 0!==a){var g=a[0][0];if(0<g.length&&!isNaN(c))for(var k=0;k<g.length;k++){var m=this.zb[g[k]][this.ua[c][1]];0!==m&&void 0!==m&&(void 0===a[m]?(a[m]=[[[g[k]],[],[],void 0,void 0,!1]],a[0][1].push(m)):a[0][5]||a[m][0][0].push(g[k]))}void 0===
a[0][3]&&(a[0][3]=[]);void 0===d?a[0][3][this.zg.length]=!0:a[0][3][this.ii(d)]=!0;a[0][5]=!0}}jR(a,c,d,g,k){var m=c[0][0];if(0<m.length&&!isNaN(g))for(var n=0;n<m.length;n++){var p=this.zb[m[n]][g];0!==p&&void 0!==p&&(void 0===a[p]?(a[p]=[[[m[n]],[],[],void 0,void 0]],c[0][2].push(p),this.dm[d][p]=g):-1===a[p][0][0].indexOf(m[n])&&a[p][0][0].push(m[n]))}void 0===c[0][4]&&(c[0][4]=[]);void 0===k?c[0][4][this.zg.length]=!0:c[0][4][this.ii(k)]=!0}Zp(a,c,d){for(var g=0;g<c.length;g++){var k=c[g],m=d[g];
if(e.model.C.F.mU){var n=this.slice.vc().getItem(this.le[m]),p=n.za(k);e.v(n.Nz)||e.v(this.ua)||e.v(d[g])||e.v(this.ua[d[g]])||(m=this.ua[d[g]][p.level.yb])}m=e.v(this.dm[m])||e.v(this.dm[m][k])?m:this.dm[m][k];n=[];for(p=0;p<a.length;p++)this.zb[a[p]][m]===k&&n.push(a[p]);a=n}return a}Hn(a,c){a&&super.Hn(a,c)}Yaa(a,c,d){a=u.Ht.RM(a.Ud,c);for(var g=0;g<a.length;g++){var k=this.wa.O.fd(a[g].A);null==k||c.Bb(k.A)||(k.hidden=!0,d.push(k),this.fL(k),this.Uy(k.A,k.Mm),l.i.ea.uN(k.$)&&this.Uy(k.A,k.$))}}}
f.fqa=b})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.nla{constructor(c,d){super(c,d)}}b.E9=a})(f.O||(f.O={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.Vr{constructor(c,d=""){super(c,d)}get lk(){return this.Qa||this.gh?[]:l.i.ea.S6}set lk(c){}get $(){return""==this.uk?this.Wc[0]:this.uk}set $(c){c&&c.toLowerCase()!=this.uk?(c=c.toLowerCase(),l.i.ea.pz(c)&&(c=l.i.ea.Dz(c)),l.i.ea.dNa(c)||this.Qa&&c==l.i.ea.NONE?(this.dw=void 0,this.uk=c,-1==this.Wc.indexOf(c)&&(this.uk=this.Wc[0])):this.pW()):""==c&&this.pW()}get fc(){return e.model.Tb.valid(this.yc)?this.yc:e.model.Tb.validate(this.yc)}get caption(){if(0==
e.model.C.F.Tx)return this.fc;switch(this.$){case l.i.ea.cs:return e.P.bind(e.model.B.j.iK,this.fc);case l.i.ea.Cp:return e.P.bind(e.model.B.j.cK,this.fc);case l.i.ea.Rq:return e.P.bind(e.model.B.j.hK,this.fc);case l.i.ea.Pq:return e.P.bind(e.model.B.j.fK,this.fc);case l.i.ea.Qq:return e.P.bind(e.model.B.j.gK,this.fc);case l.i.ea.Si:return e.P.bind(e.model.B.j.QJ,this.fc);case l.i.ea.ko:return e.P.bind(e.model.B.j.wJ,this.fc);case l.i.ea.qn:return e.P.bind(e.model.B.j.xJ,this.fc);case l.i.ea.qo:return e.P.bind(e.model.B.j.dK,
this.fc);case l.i.ea.sn:return e.P.bind(e.model.B.j.eK,this.fc)}return this.fc}set caption(c){""==c.trim()?this.yc=e.model.B.j.Nl:this.yc=c}get Bl(){return this.fc}set Bl(c){}clone(){var c=new a(this.A);this.SL(c);return c}}b.uB=a})(f.O||(f.O={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.oJ{get caption(){return this.hierarchy.zD(this.ordinal)}set caption(c){}get Hh(){return this.level.ev?!0:this.hierarchy.tN||this.hierarchy.Ts||this.level.ev?(this.eh||!this.Cf)&&0==this.children.length:!1}set Hh(c){}get Fi(){return this.A}}b.F9=a})(f.O||(f.O={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.Dv{constructor(c,d="",g=0){super(c,d,g)}}b.iqa=a})(f.O||(f.O={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.Ct{constructor(c,d=""){super(c,d);this.Haa=0}get fn(){return this.Haa}set fn(c){this.Xh||(c+=1);this.Haa=c}pc(c){c.A==this.gs&&(c.dc=!0);return super.pc(c)}set Lm(c){""!=c&&!e.v(c)||this.We?this.gs=c:(this.gs=this.A+".[(All)]",this.Sh(new l.O.Dv(this.A,this.caption+" (All)")),this.pc(new l.O.be({A:this.gs,caption:this.caption+" (All)",dc:!0})),this.WB=!1)}get Lm(){return this.gs}Km(c="(Total)"){if(this.Xh)return this.Lm+
".["+c+"]";var d=this.Js.split("].");d.pop();d.push("["+c+"]");return d.join("].")}UW(c,d){var g=this.eka(c.children);g=e.Pg(this.Xs)?this.Gja(g):this.f_(g);for(var k=[],m=0;m<g.length;m++)if(k.push(g[m].ordinal),d&&!c.Hh){var n=this.jk(g[m],d);0<n.length&&(k=k.concat(n))}return k}f_(c){this.hg===l.i.Ba.hc&&e.Ja.sort(c,e.Ja.Ti,d=>d.nc);this.hg===l.i.Ba.Nc&&e.Ja.sort(c,e.Ja.tp|e.Ja.Ti,d=>d.nc);return c}Nda(c){c=this.Ky.find(c);return this.za(c)}AD(){return new b.F9(this)}}b.wY=a})(f.O||(f.O={}))})(h.Hb||
(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.TA{constructor(c,d=""){super(c,d)}}b.gqa=a})(f.O||(f.O={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.yX{constructor(){super();this.sH=new b.hqa}x_(c,d){this.s3.Ta(c.A,c);if(0==e.ka(c.value)){var g=new b.uB(c.value,this.Jz(c.value,c.caption,e.model.B.j.U8,d));g.Mg=e.model.B.j.uy;g.Oc=c.caption;g.type=l.i.Ra.jb;g.xr=c.A;this.zk(g)}0==e.ka(c.kx)&&(g=new b.uB(c.kx,this.Jz(c.kx,c.caption,e.model.B.j.P8,d)),g.Mg=e.model.B.j.uy,g.Oc=c.caption,g.type=l.i.Ra.jb,g.xr=c.A,this.zk(g));0==e.ka(c.status)&&(g=new b.uB(c.status,
this.Jz(c.status,c.caption,e.model.B.j.S8,d)),g.Mg=e.model.B.j.uy,g.Oc=c.caption,g.type=l.i.Ra.jb,g.xr=c.A,g.Wz=!0,this.zk(g));0==e.ka(c.gy)&&(d=new b.uB(c.gy,this.Jz(c.gy,c.caption,e.model.B.j.T8,d)),d.Mg=e.model.B.j.uy,d.Oc=c.caption,d.type=l.i.Ra.jb,d.xr=c.A,d.Xz=!0,this.zk(d))}Dx(c,d=null,g=!1){var k=d?d:new b.uB(c.uniqueName);return super.Dx(c,k,e.v(d)||g)}}b.jqa=a})(f.O||(f.O={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.wX{CH(c){var d=super.CH(c);c!=l.i.tb.NONE&&(d.vm=[l.i.Wb.Rj,l.i.Wb.pi]);return d}}b.hqa=a})(f.O||(f.O={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a{constructor(){this.Ey=20;this.Jqa=RegExp("<Tuple>(.|\n|\r)*?</Tuple>","gi");this.Hqa=RegExp("<Cell (.|\n|\r)*?</Cell>","gi");this.Iqa=RegExp("<row>(.|\n|\r)*?</row>","g");this.U9=RegExp("<soap:Fault(.|\n|\r)*?</soap:Fault>","gi");this.T9=RegExp("<SOAP-ENV:Fault(.|\n|\r)*?</SOAP-ENV:Fault>","gi");this.ja=l.Ma.R();this.C6=!0;this.$B=!1;this.Kl=()=>this.et();this.Oj=()=>this.uq();this.Lga=()=>this.DHa();this.Nga=c=>this.EHa(c);
this.Mga=()=>{}}load(c,d,g,k){this.ga=c;this.xk=d;this.Cb=g;this.Xa=k;this.$B=!1;this.Ax()}cd(c,d,g,k,m,n){this.ga=c;this.xk=d;this.Cb=n;this.$B=!0;this.Ax()}Ax(){e.Ca(!0,e.model.B.j.mg,e.P.bind(e.model.B.j.Jt,"0.5"));this.$h();this.RD();b.ng.Ab=this.ga;this.pa.data=z.ba.Lc(b.ng.Gw(this.xk.body));this.pa.load(this.ga.sf);this.timer=new u.Pt(500,1E5);this.timer.N(u.xf.Ol,this.Kl);this.timer.N(u.xf.Pl,this.Oj);this.timer.start()}kM(){e.v(this.ga.withCredentials)||(this.pa.withCredentials=this.ga.withCredentials)}$h(){this.pa=
new z.tk;this.pa.eia=100;this.pa.contentType=z.Ft.IQ;this.pa.dataType=z.bB.ba;this.pa.Ir=z.Qt.Rv;const c=JSON.parse(JSON.stringify(e.v(this.ga.tc)?{}:this.ga.tc));this.C6&&(c.Accept="application/xml");this.kM();this.ga.credentials&&this.ga.credentials.bn&&(c.Authorization="Basic "+this.ga.credentials.hash,this.pa.withCredentials=!0);this.pa.$h(c)}et(){null!=this.timer&&e.Ca(!0,e.model.B.j.mg,e.P.bind(e.model.B.j.Jt,u.bc.format(this.timer.Kw/2,new e.model.oc.W.se,!1,!1,1)))}uq(){this.timer.Gl&&e.Va("Can't connect to data source!",
e.model.B.j.xa)}yg(){this.timer&&this.timer.Gl&&(this.timer.stop(),this.timer.rb(u.xf.Ol,this.Kl),this.timer.rb(u.xf.Pl,this.Oj))}RD(){this.pa.N(w.ia.Qc,this.Lga);this.pa.N(w.ia.te,this.Nga);this.pa.N(w.ia.xa,this.Mga);this.fk=f.Qj.NONE;this.bd=[];this.Mb=[];this.DC=[];this.eD=[];this.dD=[];this.jH=[];this.NZ="";this.HR=0;this.Ka=[];this.rows=[];this.Da=[];this.vc=this.ja.O.vc();this.Wf=this.ja.qa.Hr;this.xZ=this.yG=!1;this.AE=this.zE=-1;this.Kc=[]}DHa(){var c=z.ba.Lc(z.ba.create(this.pa.response));
this.xZ=!0;this.rta(c)}EHa(c){c=c.data;c.loaded!==this.Wj&&(this.yg(),this.Wj=c.loaded,this.Y5(c.loaded))}rta(c){this.Wd(c);!this.yG&&this.fk>f.Qj.NONE&&this.mMa()}Wd(c){if(0!=c.length&&this.HR!=c.length){var d=this.NZ+c.substring(this.HR);if(this.fk===f.Qj.NONE){if(this.ga.Aa==l.i.ra.Cc){if(this.U9.test(d)){this.pJa(d.match(this.U9)[0]);this.Br();return}}else if(this.ga.Aa==l.i.ra.Pd&&this.T9.test(d)){this.qJa(d.match(this.T9)[0]);this.Br();return}var g=this.jX(d);-1<g&&(d=d.substr(g))}this.fk==
f.Qj.LX&&(g=this.jX(d),0>g&&(g=d.lastIndexOf("</row>")+6),5!=g&&(this.WMa(d.substring(0,g),this.eD),d=d.substr(g)));this.fk==f.Qj.EX&&(g=this.jX(d),0>g&&(g=d.lastIndexOf("</Tuple>")+8),7!=g&&(this.Aka(d.substring(0,g),this.bd),d=d.substr(g)));this.fk==f.Qj.FY&&(g=this.jX(d),0>g&&(g=d.lastIndexOf("</Tuple>")+8),7!=g&&(this.Aka(d.substring(0,g),this.Mb),d=d.substr(g)));this.fk==f.Qj.MY&&(g=d.indexOf("<CellData>"),-1<g&&(this.fk=f.Qj.pJ,d=d.substr(g)));this.fk==f.Qj.pJ&&(g=d.indexOf("</CellData>"),0>
g&&(g=d.lastIndexOf("</Cell>")+7),6!=g&&(this.UMa(d.substring(0,g),this.DC),d=d.substr(g)));this.HR=c.length;this.NZ=d}}qJa(c){c=c.replace(/SOAP-ENV:Fault/gi,"Fault");c=c.replace(/XA:error/gi,"error");c=z.ba.create(c);null!=c.find("faultstring")&&(c=c.find("faultstring").text(),e.Va(c,e.model.B.j.xa,e.ob.xa))}pJa(c){c=c.replace(/soap:Fault/gi,"Fault");c=z.ba.create(c);null!=c.find("faultstring")&&(c=c.find("faultstring").text(),e.Va(c,e.model.B.j.xa,e.ob.xa))}jX(c){var d=-1;if(this.$B&&this.fk<f.Qj.LX){d=
c.indexOf("<row>");this.fk=f.Qj.LX;if(-1<d)return d;e.Va("No data received from the server.",e.model.B.j.xa)}if(this.fk<f.Qj.EX&&(d=c.indexOf('<Axis name="Axis0">'),-1<d))return this.fk=f.Qj.EX,d;if(this.fk<f.Qj.FY&&(d=c.indexOf('<Axis name="Axis1">'),-1<d))return this.fk=f.Qj.FY,d;if(this.fk<f.Qj.MY&&(d=c.indexOf('<Axis name="SlicerAxis">'),-1<d))return this.fk=f.Qj.MY,d;this.fk<f.Qj.pJ&&(d=c.indexOf("<CellData>"),-1<d&&(this.fk=f.Qj.pJ));return d}WMa(c,d){c=c.match(this.Iqa);for(var g=0;g<c.length;g++){var k=
c[g].replace(/xsi:/g,"");k=k.replace(/xsd:/g,"");d.push(z.ba.create(k))}}Aka(c,d){c=c.match(this.Jqa);if(!e.v(d)&&!e.v(c))for(var g=0;g<c.length;g++){var k=c[g].replace(/xsi:/g,"");d.push(z.ba.create(k))}}UMa(c,d){c=c.match(this.Hqa);if(!e.v(c)&&!e.v(d))for(var g=0;g<c.length;g++)e.v(c[g])||e.ka(c[g])||d.push(c[g])}mMa(){this.yG=!0;u.Ql.Co({lp:()=>this.parse(),gf:()=>this.Br()})}parse(){0<this.bd.length&&this.WV();0<this.Mb.length&&this.ZV();this.fk==f.Qj.pJ&&(0==this.Ka.length&&(this.Ka=[[[0,0]]]),
0==this.rows.length&&(this.rows=[[]]));0<this.DC.length&&this.fJa();0<this.eD.length&&this.lJa();return this.xZ&&0==this.bd.length&&0==this.Mb.length&&0==this.DC.length&&0==this.eD.length}fJa(){for(var c,d,g,k,m,n=this.Ey>this.DC.length?this.DC.length:this.Ey,p=this.DC.splice(0,n),t=e.model.C.F.co&&this.ga.Aa===l.i.ra.Cc,r=0;r<n;r++)c=p[r],g=null===c.match(/<Value.*>(.*)<\/Value>/)?0:parseFloat(c.match(/<Value.*>(.*)<\/Value>/)[1]),t&&(k=c.match(/<FmtValue.*>(.*)<\/FmtValue>/),k=null!=k&&1<k.length?
k[1]:""),d=parseInt(c.match(/CellOrdinal="(.*)"/)[1]),c=this.Lz(d),d=this.Hz(d),m=this.Da[d],c==this.AE&&this.Ka[this.zE].toString()==this.Ka[d].toString()||-1==this.AE||-1==this.zE||(this.ja.ta.AU(this.rows[this.AE],this.Ka[this.zE],this.Kc,this.xk.jg,this.xk.uw,this.xk.type),this.Kc=[]),this.Kc[m]=t&&this.Wf[m].$==l.i.ea.NONE?l.Kt.R().BA(k,g):g,this.AE=c,this.zE=d;-1!=this.AE&&-1!=this.zE&&this.ja.ta.AU(this.rows[this.AE],this.Ka[this.zE],this.Kc,this.xk.jg,this.xk.uw,this.xk.type)}lJa(){for(var c,
d,g=this.Ey>this.eD.length?this.eD.length:this.Ey;0<g;){c=this.eD.shift();d=[];for(var k=0;k<c.getChildren().length;k++)this.nJa(c.getChildren()[k],d,k);this.dD.push(d);g--}}nJa(c,d,g){d[c.localName]=c.text();0>this.jH.indexOf(c.localName)&&this.jH.splice(g,0,c.localName)}NJa(){for(var c=[],d=0;d<this.jH.length;d++)c[this.jH[d]]=d;for(d=0;d<this.dD.length;d++){var g=this.dD[d],k=[],m;for(m in g)k[c[m]]=g[m];this.dD[d]=k}c=this.jH.map(n=>this.mJa(n));this.dD.unshift(c)}mJa(c){c=c.replace(/_x005B_/g,
"[");c=c.replace(/_x005D_/g,"]");c=c.replace(/_x0020_/g," ");c=c.replace(/_x0024_/g,"");var d=this.vc.getItem(c);if(null!=d)return d.caption;d=this.Wf.find(g=>g.A===c);if(null!=d)return d.caption;d=c.split("].[");1<d.length&&(c=d[d.length-1].substr(0,d[d.length-1].length-1));return c}Hz(c){return c%this.Ka.length}Lz(c){return Math.floor(c/this.Ka.length)}ZV(){for(var c,d,g=this.Ey>this.Mb.length?this.Mb.length:this.Ey;0<g;){this.rowIndex=0;d=[];c=this.Mb.shift();var k=c.find("Member");for(c=0;c<k.length;c++)this.GJa(k[c],
d);this.rows.push(d);g--}}GJa(c,d){var g=c.find("HIERARCHY_UNIQUE_NAME").text();g=this.vc.getItem(g);null!=g&&(c=this.Ib(c,g),d.push([c.level.yb,c.ordinal]),this.rowIndex++)}WV(){for(var c,d,g=this.Ey>this.bd.length?this.bd.length:this.Ey;0<g;){this.owa=0;c=[];d=this.bd.shift();d=d.find("Member");for(var k=0;k<d.length;k++)this.hJa(d[k],c);this.Ka.push(c);g--}}hJa(c,d){var g=c.find("HIERARCHY_UNIQUE_NAME").text();if("Measures"!=g&&"[Measures]"!=g){var k=this.vc.getItem(g);null==k&&(k=this.vc.getItem("["+
g+"]"));null!=k&&(c=this.Ib(c,k),d.push([c.level.yb,c.ordinal]),this.owa++)}else{var m=c.find("UName").text();d=this.Wf.findIndex(n=>n.A===m);this.Da.push(d)}}Ib(c,d){var g=c.find("UName").text(),k=d.Ib(g);if(e.v(k)){var m=c.find("Caption").text();-1<m.indexOf("(Total")&&(d.Xh?g=g.substring(0,g.lastIndexOf(".[(")):(g=g.substring(0,g.lastIndexOf(".[("))+".[(All)]",null==d.Ib(g)&&(g=g.substring(0,g.length-8))),k=d.Ib(g))}e.v(k)&&(m=c.find("Caption").text(),c=c.find("PARENT_UNIQUE_NAME").text(),k=d.pc(new l.O.be({A:g,
caption:m,Cf:!0,Ki:c})));return k}Y5(c){c=u.bc.ah(c);e.Ca(!0,e.model.B.j.mg,e.P.bind(e.model.B.j.Am,c))}Br(){e.Ca(!1);this.Cb&&(this.$B?(this.NJa(),this.Cb(this.dD)):!1===e.model.C.F.Ux&&0==this.ja.ta.Kz()?(e.Va(e.model.B.j.zp,e.model.B.j.xa,e.ob.nk),this.Xa(e.model.B.j.zp)):this.Cb());this.clear()}clear(){this.pa&&(this.pa.rb(w.ia.Qc,this.Lga),this.pa.rb(w.ia.te,this.Nga),this.pa.rb(w.ia.xa,this.Mga),this.pa.close(),this.pa=null);this.timer&&this.timer.Gl&&this.timer.stop();this.fk=0;this.bd=[];
this.Mb=[];this.DC=[];this.eD=[];this.dD=[];this.jH=[];this.HR=0;this.NZ="";this.Ka=[];this.rows=[];this.Da=[];this.Wf=this.vc=null;this.xZ=this.yG=!1;this.AE=this.zE=-1;this.Kc=[]}cancel(){this.clear();this.Cb=null}}b.w$=a})(f.mj||(f.mj={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a{constructor(c){this.km=this.zl=this.qI=0;this.hr=5E3;this.$ga=1E3;this.state=l.Ap.GF;this.ud="";this.ov=!1;this.wga="";this.mca=()=>this.CGa();this.oca=()=>this.EGa();this.Kga=()=>this.Jj();this.aO=d=>this.bt(d);this.Mia=()=>this.BIa();this.Nia=d=>this.CIa(d);this.Kia=()=>this.xIa();this.nca=d=>this.DGa(d);this.Di=d=>this.Rb(d);b.ng.Ab=this.ga=c}$m(){this.pa=new z.tk;this.pa.contentType=z.Ft.IQ;this.pa.dataType=z.bB.ba;this.pa.Ir=
z.Qt.Rv;this.kM();const c=JSON.parse(JSON.stringify(e.v(this.ga.tc)?{}:this.ga.tc));this.ga.credentials&&this.ga.credentials.bn&&(c.Authorization="Basic "+this.ga.credentials.hash,this.pa.withCredentials=!0);this.pa.$h(c)}kM(){e.v(this.ga.withCredentials)||(this.pa.withCredentials=this.ga.withCredentials)}cI(){return e.ka(this.hierarchy.zf)?this.hierarchy.fn<this.$ga:this.hierarchy.fn<10*this.$ga}Ko(){return e.ka(this.ga.cf)?"["+this.ga.wa+"]":"("+this.ga.cf+")"}rxa(c,d){this.txa=c;this.Xa=d;c=this.Ko();
c=e.P.bind("with member [Measures].[CountAllMembers] as Count({0}.allmembers) select NON EMPTY {[Measures].[CountAllMembers]} ON columns FROM {1}",this.hierarchy.A,c);this.$m();this.pa.data=z.ba.Lc(b.ng.Gw(c));this.pa.N(w.ia.Qc,this.mca);this.pa.N(w.ia.xa,this.Di);this.pa.load(this.ga.sf)}CGa(){var c=z.ba.create(this.pa.response);this.NA(c)&&(this.hierarchy.fn=parseInt(c.find("root CellData Cell Value").text()));this.txa()}NA(c){return 0==c.length?(e.Va(e.model.B.j.HF,"",e.ob.xa),e.Ca(!1),!1):0<c.find("root Fault").length?
(e.Va(z.ba.Lc(c.find("root Fault faultstring")),"Query error!",e.ob.xa),!1):!0}load(c,d,g){this.ud="";this.JE&&(this.JE.length=0);this.km=this.zl=this.qI=0;this.lc=d;this.Xa=g;this.Vb=c;this.cI()?this.xl():this.count()}count(){var c=this.Ko();c=null==this.Vb?e.P.bind("with member [Measures].[CountMembers] as Count({0}.levels(1).allmembers) select  NON EMPTY {[Measures].[CountMembers]} ON columns FROM {1}",this.hierarchy.A,c):e.P.bind("with member [Measures].[CountMembers] as Count({0}.children) select NON EMPTY {[Measures].[CountMembers]} ON columns FROM {1}",
this.Vb.A,c);this.$m();this.pa.data=z.ba.Lc(b.ng.Gw(c));this.pa.N(w.ia.Qc,this.oca);this.pa.N(w.ia.xa,this.Di);this.pa.load(this.ga.sf)}EGa(){var c=z.ba.create(this.pa.response);this.NA(c)&&(this.qI=parseInt(c.find("root CellData Cell Value").text()),this.xl())}RC(){return""}k0(){return""}xl(){var c=this.k0();this.state=l.Ap.GF;this.$m();this.pa.data=z.ba.Lc(b.ng.Gw(c));this.pa.N(w.ia.Qc,this.Kga);this.pa.N(w.ia.te,this.aO);this.pa.N(w.ia.xa,this.Di);this.pa.load(this.ga.sf)}Jj(){this.km+=this.pa.Xi;
var c=z.ba.create(this.pa.response);this.pa.close();this.pa=null;this.NA(c)&&this.xE(c);this.zl+=this.hr;this.zl<this.qI&&!this.cI()?this.xl():this.zV()}xE(c){var d=c.find("root");if(0<d.find("Fault").length)e.Va(z.ba.Lc(d.find("Fault faultstring")),"Query error!",e.ob.xa);else{c=[];d=d.find('Axes Axis[name="Axis0"] Tuples Tuple Member');for(var g=this.hierarchy.Zi,k=0;k<d.length;k++)c.push(this.XV(d[k],k+g));return c}}XV(){return null}zV(){e.Ca(!1);this.lc(this.hierarchy)}bt(c){c=u.bc.ah(c.data.loaded+
this.km);e.Ca(!0,e.model.B.j.zm,this.hierarchy.caption+", "+e.P.bind(e.model.B.j.Am,c))}Rb(c){e.Va(c.message,"Error",e.ob.xa);null!=this.Xa&&(this.Xa(c.message),this.Xa=null)}N_(c,d,g,k,m){this.lc=k;this.Xa=m;this.ov=g;this.hierarchy=c;this.state=l.Ap.R6;c=[];for(g=0;g<d.length;g++)c.push(e.P.bind("Ascendants({0})",d[g]));d="{"+c.join(", ")+"}";this.km=0;this.$m();c=this.Ko();d=e.P.bind("SELECT Hierarchize(Distinct({0})) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",d,c);this.pa.data=
z.ba.Lc(b.ng.Gw(d));this.pa.N(w.ia.Qc,()=>this.V3());this.pa.N(w.ia.te,this.aO);this.pa.N(w.ia.xa,this.Di);this.pa.load(this.ga.sf)}V3(){this.km+=this.pa.Xi;var c=z.ba.create(this.pa.response);this.pa.close();this.pa=null;if(this.NA(c)){c=this.xE(c);for(var d=0;d<c.length;d++)this.hierarchy.za(c[d]).Cf=!0;this.ov?this.a6(c,this.Xa):this.hierarchy.Fw()}this.ov||this.lc(this.hierarchy)}Ow(c,d,g,k,m){this.lc=k;this.Xa=m;this.hierarchy=c;this.wga=g;this.state=l.Ap.vma;this.km=0;this.$m();c=this.Ko();
d=e.P.bind("SELECT Hierarchize(Distinct(Descendants({0}, {1}, SELF_AND_BEFORE))) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {2}",d.A,g,c);this.pa.data=z.ba.Lc(b.ng.Gw(d));this.pa.N(w.ia.Qc,()=>this.QGa());this.pa.N(w.ia.te,this.aO);this.pa.N(w.ia.xa,this.Di);this.pa.load(this.ga.sf)}QGa(){this.km+=this.pa.Xi;var c=z.ba.create(this.pa.response);this.pa.close();this.pa=null;if(this.NA(c)){c=this.xE(c);for(var d=0;d<c.length;d++){var g=this.hierarchy.za(c[d]);g.level.A==this.wga?g.Cf=!0:
this.hierarchy.wz(g)}}this.lc(this.hierarchy)}a6(c,d){this.Xa=d;d=[];for(var g=0;g<c.length;g++)d.push(e.P.bind("{0}.Siblings",this.hierarchy.za(c[g]).A));c="{"+d.join(", ")+"}";this.state=l.Ap.b$;this.km=0;this.$m();d=this.Ko();c=e.P.bind("SELECT Hierarchize(Distinct({0})) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",c,d);this.pa.data=z.ba.Lc(b.ng.Gw(c));this.pa.N(w.ia.Qc,()=>this.S4());this.pa.N(w.ia.te,this.aO);this.pa.N(w.ia.xa,this.Di);this.pa.load(this.ga.sf)}S4(){this.km+=this.pa.Xi;
var c=z.ba.create(this.pa.response);this.pa.close();this.pa=null;this.ov=!1;if(this.NA(c)){c=this.xE(c);for(var d=0;d<c.length;d++)this.hierarchy.za(c[d]).Cf=!0;this.hierarchy.Fw()}this.lc(this.hierarchy)}search(c,d,g){this.ud=c.toLowerCase().replace(RegExp('"',"g"),'""').replace(RegExp("'","g"),"''");this.lc=d;this.Xa=g;this.km=this.zl=this.qI=0;this.state=l.Ap.GY;this.JE&&0<this.JE.length?this.JE.length=0:this.JE=[];this.wxa()}n0(){var c=e.P.bind("SET [SearchMembersSet] AS 'FILTER(EXCEPT({0}.allmembers, {1}), (INSTR(1, {0}.CurrentMember.member_caption, {2}) > 0))'",
this.hierarchy.A,this.hierarchy.Lm,'"'+this.ud+'"');var d=e.P.bind("SET [SearchParentsSet] AS 'EXCEPT(GENERATE([SearchMembersSet], ASCENDANTS([SearchMembersSet].Current)), {0})'",this.hierarchy.Lm);return c+"\n"+d+"\nSET [SearchSet] AS 'HIERARCHIZE(DISTINCT({[SearchMembersSet], [SearchParentsSet]}))'"}wxa(){var c=this.Ko(),d="MEMBER [Measures].[CountSearchSet] AS 'COUNT([SearchSet])'\nSELECT NON EMPTY {[Measures].[CountSearchSet]} ON COLUMNS FROM {0}";d="WITH "+this.n0()+"\n"+e.P.bind(d,c);this.$m();
this.pa.data=z.ba.Lc(b.ng.Gw(d));this.pa.N(w.ia.Qc,this.Kia);this.pa.N(w.ia.te,this.nca);this.pa.N(w.ia.xa,this.Di);this.pa.load(this.ga.sf)}xIa(){var c=z.ba.create(this.pa.response);this.NA(c)&&(this.qI=parseInt(c.find("root CellData Cell Value").text()),this.Aq())}DGa(c){e.Ca(!0,"Counting members...",this.hierarchy.caption+", "+Math.round(c.data.loaded/1E3)+"K loaded")}Aq(){var c=this.Ko(),d="SELECT SUBSET([SearchSet], {0}, {1}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME ON COLUMNS FROM {2}";d="WITH "+
this.n0()+"\n"+e.P.bind(d,this.zl,this.hr,c);this.$m();this.pa.data=z.ba.Lc(b.ng.Gw(d));this.pa.N(w.ia.Qc,this.Mia);this.pa.N(w.ia.te,this.Nia);this.pa.N(w.ia.xa,this.Di);this.pa.load(this.ga.sf)}CIa(c){c=u.bc.ah(c.data.loaded+this.km);e.Ca(!0,e.model.B.j.zm,this.hierarchy.caption+", "+e.P.bind(e.model.B.j.Am,c))}BIa(){this.km+=this.pa.Xi;var c=z.ba.create(this.pa.response);this.pa.close();this.pa=null;this.NA(c)&&this.IJa(c);this.zl+=this.hr;this.zl<this.qI?this.Aq():this.sE()}IJa(c){c=c.find("root");
if(0<c.find("Fault").length)e.Va(z.ba.Lc(c.find("Fault faultstring")),"Query error!",e.ob.xa);else{c=c.find('Axes Axis[name="Axis0"] Tuples Tuple Member');for(var d=0;d<c.length;d++)this.HJa(c[d])}}HJa(c){var d=c.find("PARENT_UNIQUE_NAME").text();var g=c.find("Caption").text(),k=c.find("UName").text(),m=parseInt(c.find("MEMBER_ORDINAL").text()),n=this.hierarchy.Ib(k);if(null==n&&(n=this.hierarchy.pc(new l.O.be({A:k,caption:g,nc:m,Ki:d})),n.level&&0<n.level.Ye.length))for(g=0;g<n.level.Ye.length;g++)d=
n.level.Ye.fa(g),n.setProperty(d.A,c.find(d.QO).text());n.parent&&!n.parent.dc&&(n.parent.Cf=!0);this.JE.push(n.ordinal)}sE(){e.Ca(!1);this.lc(this.JE)}cancel(){this.pa&&(this.pa.rb(w.ia.Qc,this.mca),this.pa.rb(w.ia.Qc,this.oca),this.pa.rb(w.ia.Qc,this.Kga),this.pa.rb(w.ia.te,this.aO),this.pa.rb(w.ia.Qc,this.Mia),this.pa.rb(w.ia.te,this.Nia),this.pa.rb(w.ia.Qc,this.Kia),this.pa.rb(w.ia.te,this.nca),this.pa.rb(w.ia.xa,this.Di),this.pa.close());this.Xa=this.pa=null}}b.x$=a})(f.mj||(f.mj={}))})(h.Hb||
(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a{constructor(c){this.wa=l.Ma.R();this.C6=!0;this.Yca=()=>this.BV();this.Zca=d=>this.RGa(d);this.AFa=()=>this.PHa();this.CFa=d=>this.RHa(d);this.Di=d=>this.Rb(d);this.mfa=()=>this.n4();this.nfa=d=>this.qHa(d);this.yga=()=>this.w4();this.zga=d=>this.AHa(d);this.fia=()=>this.kIa();this.gia=d=>this.mIa(d);this.Uga=()=>this.C4();this.Vga=d=>this.THa(d);this.V8=()=>this.s4();this.W8=d=>this.wHa(d);this.ga=c;this.bm=new z.tk;this.hE=
new z.tk;this.hq=new z.tk;this.nq=new z.tk;this.jq=new z.tk;this.mq=new z.tk;this.xq=new z.tk}cq(c){return c.find("row")}load(c,d,g,k){this.Cb=d;this.Xa=g;this.Re=k;this.B3(this.Y3)}$m(c){this.kM(c);this.$h(c)}kM(c){e.v(this.ga.withCredentials)||(c.withCredentials=this.ga.withCredentials)}$h(c){c.contentType=z.Ft.IQ;c.dataType=z.bB.ba;c.Ir=z.Qt.Rv;const d=JSON.parse(JSON.stringify(e.v(this.ga.tc)?{}:this.ga.tc));this.C6&&(d.Accept="application/xml");this.ga.credentials&&this.ga.credentials.bn&&(d.Authorization=
"Basic "+this.ga.credentials.hash,c.withCredentials=!0);c.$h(d);return c}Rb(c){this.bm.Vd(w.ia.xa);this.bm.Vd(w.ia.Qc);this.bm.Vd(w.ia.te);c=c.target.url.trim();c=e.model.B.j.ypa.replace("{0}",'<u><a href="'+c+'">'+c+"</a></u>");e.Va(c,"",e.ob.xa);this.Xa(c)}pt(){null!=this.Re&&(this.Re(),this.Re=null)}B3(c){e.Ca(!0,e.model.B.j.YJ);this.fH=c;this.$m(this.bm);b.ng.Ab=this.ga;this.bm.data=z.ba.Lc(b.ng.Cwa());this.bm.N(w.ia.Qc,this.Yca);this.bm.N(w.ia.te,this.Zca);this.bm.N(w.ia.xa,this.Di);this.bm.load(this.ga.sf)}RGa(c){c=
u.bc.ah(c.data.loaded);e.Ca(!0,e.model.B.j.YJ,e.P.bind(e.model.B.j.Am,c))}BV(){this.pt();var c=z.ba.create(this.bm.response);c=this.cq(c);if(0<c.length){for(var d=0;d<c.length;d++)this.Iha(c[d]);this.fH()}else e.Va(e.model.B.j.HF,"",e.ob.xa),e.Ca(!1)}Iha(c){var d=c.find("DIMENSION_UNIQUE_NAME").text();const g=this.ga.mapping.La(d,"caption",c.find("DIMENSION_CAPTION").text());c=parseInt(c.find("DIMENSION_TYPE").text());this.ga.mapping.bI(d)&&(d=new l.O.TA(d,g),d.type=c,this.wa.O.mu(d))}Y3(){this.ga.Aa==
l.i.ra.Cc?this.eFa(this.QHa):this.mV(this.JV)}eFa(c){e.Ca(!0,e.model.B.j.YJ);this.BFa=c;this.$m(this.hE);b.ng.Ab=this.ga;this.hE.data=z.ba.Lc(b.ng.Rwa());this.hE.N(w.ia.Qc,this.AFa);this.hE.N(w.ia.te,this.CFa);this.hE.N(w.ia.xa,this.Di);this.hE.load(this.ga.sf)}RHa(c){c=u.bc.ah(c.data.loaded);e.Ca(!0,e.model.B.j.YJ,e.P.bind(e.model.B.j.Am,c))}PHa(){this.pt();var c=z.ba.create(this.hE.response);c=this.cq(c);for(var d=0;d<c.length;d++)this.AJa(c[d]);this.BFa()}AJa(c){var d=c.find("DIMENSION_UNIQUE_NAME").text(),
g=c.find("MEASUREGROUP_NAME").text();c=c.find("DIMENSION_GRANULARITY").text();d=this.wa.O.$p(d);if(null!=d){d.JD||(d.JD=[]);var k=d.JD;k[g]=c;d.JD=k}}QHa(){this.mV(this.JV)}mV(c){e.Ca(!0,e.model.B.j.rY);this.jN=c;this.$m(this.hq);this.hq.data=z.ba.Lc(b.ng.Hw());this.hq.N(w.ia.Qc,this.mfa);this.hq.N(w.ia.te,this.nfa);this.hq.N(w.ia.xa,this.Di);this.hq.load(this.ga.sf)}n4(){var c=z.ba.create(this.hq.response);c=this.cq(c);if(0==c.length)e.Va(e.model.B.j.HF,"",e.ob.xa),e.Ca(!1);else{for(var d=0;d<c.length;d++)this.tJa(c[d]);
this.jN()}}tJa(c){var d=c.find("DIMENSION_UNIQUE_NAME").text(),g=c.find("HIERARCHY_UNIQUE_NAME").text();const k=this.ga.mapping.La(g,"caption",c.find("HIERARCHY_CAPTION").text()),m=parseInt(c.find("DIMENSION_TYPE").text()),n=c.find("HIERARCHY_DISPLAY_FOLDER").text(),p=c.find("ALL_MEMBER").text(),t=c.find("DEFAULT_MEMBER").text();c=parseInt(c.find("STRUCTURE").text());this.ga.mapping.bI(g)&&(d=this.wa.O.$p(d),null!=d&&(g=this.ga.Aa==l.i.ra.Cc?new f.O.wY(g,k):new f.pq.O.A9(g,k),g.origin=1,g.Oc=n,g.type=
l.i.Ic.nD(m),g.Lm=p,g.Js=t,1==c&&(g.tN=!0),2==c&&(g.Ts=!0),d.zi(g)))}qHa(c){c=u.bc.ah(c.data.loaded);e.Ca(!0,e.model.B.j.rY,e.P.bind(e.model.B.j.Am,c))}JV(){this.FN(this.x4)}FN(c){e.Ca(!0,e.model.B.j.sY);this.DN=c;this.$m(this.mq);this.mq.data=z.ba.Lc(b.ng.Pwa());this.mq.N(w.ia.Qc,this.yga);this.mq.N(w.ia.te,this.zga);this.mq.N(w.ia.xa,this.Di);this.mq.load(this.ga.sf)}AHa(c){c=u.bc.ah(c.data.loaded);e.Ca(!0,e.model.B.j.sY,e.P.bind(e.model.B.j.Am,c))}w4(){var c=z.ba.create(this.mq.response);c=this.cq(c);
if(0==c.length)e.Va(e.model.B.j.HF,"",e.ob.xa),e.Ca(!1);else{for(var d=0;d<c.length;d++)this.Mha(c[d]);this.DN()}}x4(){e.model.C.F.LI?this.fFa(this.lIa):this.oV(this.PV)}Mha(c){var d=c.find("DIMENSION_UNIQUE_NAME").text(),g=c.find("HIERARCHY_UNIQUE_NAME").text(),k=c.find("LEVEL_CAPTION").text(),m=parseInt(c.find("LEVEL_TYPE").text()),n=c.find("LEVEL_UNIQUE_NAME").text();c=parseInt(c.find("LEVEL_NUMBER").text());d=this.wa.O.$p(d);null!=d&&(g=d.uh(g),null!=g&&(k=new l.O.Dv(n,k,c),k.type=l.i.ib.nD(m),
g.Sh(k),d.zi(g)))}fFa(c){e.Ca(!0,e.model.B.j.s9);this.cKa=c;this.$m(this.xq);this.xq.data=z.ba.Lc(b.ng.Uwa());this.xq.N(w.ia.Qc,this.fia);this.xq.N(w.ia.te,this.gia);this.xq.N(w.ia.xa,this.Di);this.xq.load(this.ga.sf)}mIa(c){c=u.bc.ah(c.data.loaded);e.Ca(!0,e.model.B.j.s9,e.P.bind(e.model.B.j.Am,c))}kIa(){var c=z.ba.create(this.xq.response);c=this.cq(c);if(0!=c.length)for(var d=0;d<c.length;d++)this.Z4(c[d]);this.cKa()}Z4(){}lIa(){this.oV(this.PV)}oV(c){e.Ca(!0,e.model.B.j.jQ);this.GN=c;this.$m(this.nq);
this.nq.data=z.ba.Lc(b.ng.Lo());this.nq.N(w.ia.Qc,this.Uga);this.nq.N(w.ia.te,this.Vga);this.nq.N(w.ia.xa,this.Di);this.nq.load(this.ga.sf)}THa(c){c=u.bc.ah(c.data.loaded);e.Ca(!0,e.model.B.j.jQ,e.P.bind(e.model.B.j.Am,c))}C4(){var c=z.ba.create(this.nq.response);c=this.cq(c);if(0==c.length)e.Va(e.model.B.j.HF,"",e.ob.xa),e.Ca(!1);else{for(var d=0;d<c.length;d++)this.BJa(c[d]);this.GN()}}BJa(c){const d=c.find("MEASURE_UNIQUE_NAME").text();var g=this.ga.mapping.La(d,"caption",c.find("MEASURE_CAPTION").text());
const k=c.find("MEASUREGROUP_NAME").text();c=c.find("MEASURE_DISPLAY_FOLDER").text()||"";this.ga.mapping.bI(d)&&(g=new f.O.uB(d,g),g.type=1,g.Mg=k,g.Oc=c,g.Wc=this.ga.mapping.La(d,"aggregations"),this.wa.O.zk(g))}PV(){this.nV(this.t4)}nV(c){e.Ca(!0,e.model.B.j.r9);this.wN=c;this.$m(this.jq);this.jq.data=z.ba.Lc(b.ng.Lwa());this.jq.N(w.ia.Qc,this.V8);this.jq.N(w.ia.te,this.W8);this.jq.N(w.ia.xa,this.Di);this.jq.load(this.ga.sf)}wHa(c){c=u.bc.ah(c.data.loaded);e.Ca(!0,e.model.B.j.jQ,e.P.bind(e.model.B.j.Am,
c))}s4(){var c=z.ba.create(this.jq.response);c=this.cq(c);if(0!=c.length)for(var d=0;d<c.length;d++)this.vJa(c[d]);this.wN()}vJa(c){var d=c.find("KPI_NAME").text(),g=this.ga.mapping.La(d,"caption",c.find("KPI_CAPTION").text()),k=c.find("KPI_VALUE").text(),m=c.find("KPI_STATUS").text(),n=c.find("KPI_GOAL").text();c=c.find("KPI_TREND").text();d=new f.O.E9(d,g);d.value=k;d.status=m;d.kx=n;d.gy=c;this.wa.O.x_(d,this.ga.mapping)}t4(){e.Ca(!1);null!=this.Cb&&this.Cb()}xl(c,d,g){e.Ca(!0,e.model.B.j.zm,c.caption);
this.Cb=d;this.Xa=g;this.lm.hierarchy=c;this.lm.rxa(()=>{this.Nk(c,null,k=>this.ek(k),g)},this.Xa)}ek(c){var d=c.yv;if(0<c.filter.Dl.length)this.EN(c,c.filter.Dl,c.filter.yI,k=>this.ek(k),this.Xa);else if(0<d.length){var g=d.shift();c.yv=d;d=c.Ib(g[1]);c.wz(d);null!=g[0]&&""!=g[0]?this.cA(d,g[0],k=>this.ek(k),this.Xa):this.Nk(c,d,k=>this.ek(k),this.Xa)}else this.Cb(c)}Nk(c,d,g,k){e.Ca(!0,e.model.B.j.zm,c.caption);this.lm.hierarchy=c;this.lm.load(d,g,k)}EN(c,d,g,k,m){this.lm.hierarchy=c;this.lm.N_(c,
d,g,k,m)}cA(c,d,g,k){this.lm.hierarchy=c.hierarchy;this.lm.Ow(c.hierarchy,c,d,g,k)}Aq(c,d,g,k){this.lm.hierarchy=c;this.lm.search(d,g,k)}BC(){return!0}cancel(){this.bm&&(this.bm.rb(w.ia.Qc,this.Yca),this.bm.rb(w.ia.te,this.Zca),this.bm.rb(w.ia.xa,this.Di),this.bm.close(),this.bm=null);this.hq&&(this.hq.rb(w.ia.Qc,this.mfa),this.hq.rb(w.ia.te,this.nfa),this.hq.rb(w.ia.xa,this.Di),this.hq.close(),this.hq=null);this.mq&&(this.mq.rb(w.ia.Qc,this.yga),this.mq.rb(w.ia.te,this.zga),this.mq.rb(w.ia.xa,this.Di),
this.mq.close(),this.mq=null);this.xq&&(this.xq.rb(w.ia.Qc,this.fia),this.xq.rb(w.ia.te,this.gia),this.xq.rb(w.ia.xa,this.Di),this.xq.close(),this.xq=null);this.nq&&(this.nq.rb(w.ia.Qc,this.Uga),this.nq.rb(w.ia.te,this.Vga),this.nq.rb(w.ia.xa,this.Di),this.nq.close(),this.nq=null);this.jq&&(this.jq.rb(w.ia.Qc,this.V8),this.jq.rb(w.ia.te,this.W8),this.jq.rb(w.ia.xa,this.Di),this.jq.close(),this.jq=null);this.lm&&(this.lm.cancel(),this.lm=null);this.Re=this.Xa=this.Cb=null}}b.y$=a})(f.mj||(f.mj={}))})(h.Hb||
(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a{static Gw(c){var d=z.ba.create("<DataSourceInfo/>").text(this.Ab.gi),g=z.ba.create("<Catalog/>").text(this.Ab.De),k=z.ba.create("<AxisFormat/>").text("TupleFormat"),m=z.ba.create("<Content/>").text("Data"),n=z.ba.create("<Format/>").text("Multidimensional");d=a.Fs([d,g,k,m,n]);c=z.ba.create('<Execute xmlns="urn:schemas-microsoft-com:xml-analysis"><Command><Statement><![CDATA['+c+"]]\x3e</Statement></Command>"+z.ba.Lc(d)+"</Execute>");
return a.Yp(c)}static ywa(){return a.Yp(a.Es(z.ba.create("<RequestType/>").text("DISCOVER_DATASOURCES"),z.ba.create("<Restrictions/>"),z.ba.create("<Properties/>")))}static Xwa(){var c=z.ba.create("<Content/>").text("Data"),d=z.ba.create("<DataSourceInfo/>").text(this.Ab.gi);c=a.Fs([c,d]);return a.Yp(a.Es(z.ba.create("<RequestType/>").text("DISCOVER_PROPERTIES"),z.ba.create("<Restrictions/>").append(z.ba.create("<RestrictionList/>").append(z.ba.create("<PropertyName/>").text("DBMSVersion"))),c))}static swa(){var c=
z.ba.create("<DataSourceInfo/>").text(this.Ab.gi),d=z.ba.create("<Format/>").text("Tabular");c=a.Fs([c,d]);d=z.ba.create("<RequestType/>").text("DBSCHEMA_CATALOGS");var g=z.ba.create("<Restrictions/>");return a.Yp(a.Es(d,g,c))}static xwa(){var c=z.ba.create("<DataSourceInfo/>").text(this.Ab.gi),d=z.ba.create("<Catalog/>").text(this.Ab.De),g=z.ba.create("<Format/>").text("Tabular");c=a.Fs([c,d,g]);d=z.ba.create("<CATALOG_NAME/>").text(this.Ab.De);d=a.hz([d]);g=z.ba.create("<RequestType/>").text("MDSCHEMA_CUBES");
return a.Yp(a.Es(g,d,c))}static Cwa(){var c=z.ba.create("<DataSourceInfo/>").text(this.Ab.gi),d=z.ba.create("<Catalog/>").text(this.Ab.De),g=z.ba.create("<Format/>").text("Tabular");c=a.Fs([c,d,g]);d=z.ba.create("<CATALOG_NAME/>").text(this.Ab.De);g=z.ba.create("<CUBE_NAME/>").text(this.Ab.wa);d=a.hz([d,g]);g=z.ba.create("<RequestType/>").text("MDSCHEMA_DIMENSIONS");return a.Yp(a.Es(g,d,c))}static Rwa(){var c=z.ba.create("<DataSourceInfo/>").text(this.Ab.gi),d=z.ba.create("<Catalog/>").text(this.Ab.De),
g=z.ba.create("<Format/>").text("Tabular");c=a.Fs([c,d,g]);d=z.ba.create("<CATALOG_NAME/>").text(this.Ab.De);g=z.ba.create("<CUBE_NAME/>").text(this.Ab.wa);d=a.hz([d,g]);g=z.ba.create("<RequestType/>").text("MDSCHEMA_MEASUREGROUP_DIMENSIONS");return a.Yp(a.Es(g,d,c))}static Hw(){var c=z.ba.create("<DataSourceInfo/>").text(this.Ab.gi),d=z.ba.create("<Catalog/>").text(this.Ab.De),g=z.ba.create("<Cube/>").text(this.Ab.wa),k=z.ba.create("<Format/>").text("Tabular");c=a.Fs([c,d,g,k]);d=z.ba.create("<CATALOG_NAME/>").text(this.Ab.De);
g=z.ba.create("<CUBE_NAME/>").text(this.Ab.wa);d=a.hz([d,g]);g=z.ba.create("<RequestType/>").text("MDSCHEMA_HIERARCHIES");return a.Yp(a.Es(g,d,c))}static Pwa(){var c=z.ba.create("<DataSourceInfo/>").text(this.Ab.gi),d=z.ba.create("<Catalog/>").text(this.Ab.De),g=z.ba.create("<Cube/>").text(this.Ab.wa),k=z.ba.create("<Format/>").text("Tabular");c=a.Fs([c,d,g,k]);d=z.ba.create("<CATALOG_NAME/>").text(this.Ab.De);g=z.ba.create("<CUBE_NAME/>").text(this.Ab.wa);d=a.hz([d,g]);g=z.ba.create("<RequestType/>").text("MDSCHEMA_LEVELS");
return a.Yp(a.Es(g,d,c))}static Uwa(){var c=z.ba.create("<DataSourceInfo/>").text(this.Ab.gi),d=z.ba.create("<Catalog/>").text(this.Ab.De),g=z.ba.create("<Cube/>").text(this.Ab.wa),k=z.ba.create("<Format/>").text("Tabular");c=a.Fs([c,d,g,k]);d=z.ba.create("<CATALOG_NAME/>").text(this.Ab.De);g=z.ba.create("<CUBE_NAME/>").text(this.Ab.wa);d=a.hz([d,g]);g=z.ba.create("<RequestType/>").text("MDSCHEMA_PROPERTIES");return a.Yp(a.Es(g,d,c))}static Lwa(){var c=z.ba.create("<DataSourceInfo/>").text(this.Ab.gi),
d=z.ba.create("<Catalog/>").text(this.Ab.De),g=z.ba.create("<Cube/>").text(this.Ab.wa),k=z.ba.create("<Format/>").text("Tabular");c=a.Fs([c,d,g,k]);d=z.ba.create("<CATALOG_NAME/>").text(this.Ab.De);g=z.ba.create("<CUBE_NAME/>").text(this.Ab.wa);d=a.hz([d,g]);g=z.ba.create("<RequestType/>").text("MDSCHEMA_KPIS");return a.Yp(a.Es(g,d,c))}static Lo(){var c=z.ba.create("<DataSourceInfo/>").text(this.Ab.gi),d=z.ba.create("<Catalog/>").text(this.Ab.De),g=z.ba.create("<Cube/>").text(this.Ab.wa),k=z.ba.create("<Format/>").text("Tabular");
c=a.Fs([c,d,g,k]);d=z.ba.create("<CATALOG_NAME/>").text(this.Ab.De);g=z.ba.create("<CUBE_NAME/>").text(this.Ab.wa);d=a.hz([d,g]);g=z.ba.create("<RequestType/>").text("MDSCHEMA_MEASURES");return a.Yp(a.Es(g,d,c))}static Yp(c){var d=z.ba.create('<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" flexmonster="true"><SOAP-ENV:Body></SOAP-ENV:Body></SOAP-ENV:Envelope>');
d.firstElementChild.appendChild(c);return d}static Fs(c){var d=z.ba.create("<PropertyList/>").attr("flexmonster","true"),g=z.ba.create("<Properties/>");if(""!=a.Ab.Tk){var k=z.ba.create("<Roles/>").text(a.Ab.Tk);c.push(k)}""!=a.Ab.Aj&&(k=z.ba.create("<EffectiveUserName/>").text(a.Ab.Aj),c.push(k));""!=a.Ab.Hj&&(k=z.ba.create("<LocaleIdentifier/>").text(a.Ab.Hj),c.push(k));""!=a.Ab.Rm&&(k=z.ba.create("<CustomData/>").text(a.Ab.Rm),c.push(k));for(k=0;k<c.length;k++)d.append(c[k]);g.append(d);return g}static hz(c){for(var d=
z.ba.create("<RestrictionList/>"),g=z.ba.create("<Restrictions/>"),k=0;k<c.length;k++)d.append(c[k]);g.append(d);return g}static Es(c,d,g){return z.ba.create('<Discover xmlns="urn:schemas-microsoft-com:xml-analysis">'+z.ba.Lc(c)+z.ba.Lc(d)+z.ba.Lc(g)+"</Discover>")}static twa(c,d,g){var k=z.ba.create('<ClearCache xmlns="http://schemas.microsoft.com/analysisservices/2003/engine"/>'),m=z.ba.create("<Object/>");null!=c&&m.append(z.ba.create("<DatabaseID/>").text(c));null!=d&&m.append(z.ba.create("<CubeID/>").text(d));
null!=g&&m.append(z.ba.create("<MeasureGroupID/>").text(g));k.append(m);return a.Yp(z.ba.create('<Execute xmlns="urn:schemas-microsoft-com:xml-analysis"/>').append(z.ba.create("<Command/>").append(k)).append(z.ba.create("<Properties/>")))}}b.ng=a})(f.mj||(f.mj={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a{constructor(){this.bO=this.dW="";if(null!=a.instance)throw Error("Singleton");}static R(){null==a.instance&&(a.instance=new a);return a.instance}static dispose(){a.instance=null}cq(c){return c.find("row")}JW(){this.pa=new z.tk;this.pa.contentType=z.Ft.IQ;this.pa.Ir=z.Qt.Rv}ID(c,d){this.lc=d;this.bO!=c?this.rea(c,()=>function(){d(this.dW)}):this.lc&&this.lc(this.dW);return this.dW}rea(c,d){this.lc=d;this.bO=c;this.JW();this.pa.data=
z.ba.Lc(b.ng.ywa());this.pa.N(w.ia.Qc,()=>this.KGa());this.pa.N(w.ia.xa,()=>this.LGa());this.pa.load(c)}KGa(){if(!e.ka(this.pa.response)){var c=z.ba.create(this.pa.response);c=this.cq(c);for(var d=[],g=0;g<c.length;g++){var k=c[g].find("DataSourceName").text();this.dW=c[g].find("ProviderName").text();d.push(k)}this.lc&&this.lc(d)}}LGa(){const c=e.model.Tb.valid(this.bO)?this.bO:e.model.Tb.validate(this.bO);e.Va("Error opening URL <u>"+c+"</u><br/>Please check your Internet connection.<br/><br/><u><a href='https://www.flexmonster.com/doc/typical-errors/#url-error' target='_blank'>Read more info about this error</a></u>",
e.model.B.j.xa,e.ob.xa);this.lc&&this.lc([])}WAa(c,d,g){this.lc=g;b.ng.Ab=new f.Bp;b.ng.Ab.gi=d;this.JW();this.pa.data=z.ba.Lc(b.ng.swa());this.pa.N(w.ia.Qc,()=>this.hGa());this.pa.N(w.ia.xa,()=>this.iGa());this.pa.load(c)}hGa(){var c=z.ba.create(this.pa.response);c=this.cq(c);for(var d=[],g=0;g<c.length;g++){var k=c[g].find("CATALOG_NAME").text();d.push(k)}this.lc&&this.lc(d)}iGa(){e.Va("Error discovering catalogs",e.model.B.j.xa,e.ob.xa);this.lc&&this.lc([])}mBa(c,d,g,k){this.lc=k;b.ng.Ab=new f.Bp;
b.ng.Ab.gi=d;b.ng.Ab.De=g;this.JW();this.pa.data=z.ba.Lc(b.ng.xwa());this.pa.N(w.ia.Qc,()=>this.FGa());this.pa.N(w.ia.xa,()=>this.GGa());this.pa.load(c)}FGa(){var c=z.ba.create(this.pa.response);c=this.cq(c);for(var d=[],g=0;g<c.length;g++){var k=c[g].find("CUBE_NAME").text();d.push(k)}this.lc&&this.lc(d)}GGa(){e.Va("Error discovering cubes",e.model.B.j.xa,e.ob.xa);this.lc&&this.lc([])}vS(c,d,g,k,m){this.JW();this.pa.data=z.ba.Lc(b.ng.twa(d,g,k));this.pa.N(w.ia.Qc,()=>this.oGa(m));this.pa.N(w.ia.xa,
()=>this.pGa(m));this.pa.load(c)}oGa(c){null!=c&&c({complete:!0,response:this.pa.response})}pGa(c){null!=c&&c({complete:!1})}}b.u$=a})(f.mj||(f.mj={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a{constructor(c,d=null){this.XZ=this.aL=this.iG="";null==d?this.iG=c:(this.aL=c,this.XZ=d)}set hash(c){}get hash(){return 0<this.iG.length?this.iG:u.lla.encode(this.aL+":"+this.XZ)}set bn(c){}get bn(){return this.iG&&0<this.iG.length||this.aL&&0<this.aL.length}static xb(c){var d=new a("");c.hasOwnProperty("hash")&&(d.iG=c.hash?c.hash:"");c.hasOwnProperty("username")&&(d.aL=c.username?c.username:"");c.hasOwnProperty("password")&&
(d.XZ=c.password?c.password:"");return d}}b.v$=a})(f.mj||(f.mj={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a{Al(c){if(e.model.Za.R().z2(e.model.Za.qK)){const d=new e.model.jd(e.model.Za.qK,g=>{if(!e.v(g)&&!e.v(g.requestHeaders)){const k=this.la.tc||{};for(let m in g.requestHeaders)g.requestHeaders.hasOwnProperty(m)&&(k[m]=g.requestHeaders[m]);this.la.tc=k;this.tf.tc=k}c(!0)});e.model.Za.R().Ha(d)}else c(!1)}}b.sX=a})(f.Kp||(f.Kp={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends b.sX{constructor(c){super();this.wa=l.Ma.R();this.la=c;this.pa=new b.dla(c)}load(c,d,g,k){this.la=c;this.Cb=d;this.Re=k;this.Xa=g;this.tf=new b.yQ(this.la.sf,e.model.Ea.ca.I(e.model.Ea.ca.eW),!0,this.la.tc,this.la.withCredentials);this.efa=()=>this.BO();this.UCa()}UCa(){e.Ca(!0,e.model.B.j.IF);null!=this.tf&&this.tf.call("Handshaking",{componentVersion:e.Cg.Iq,acceleratorMinVersion:a.Jka},()=>this.efa(),c=>this.Rb(c),
c=>this.Al(c))}BO(){null!=this.Re&&(this.Re(),this.Re=null);this.fH=()=>this.Y3();this.B3()}B3(){null!=this.tf&&(e.Ca(!0,e.model.B.j.YJ),this.tf.call("DiscoverDimensions",{catalog:this.la.De,cubeUniqueName:this.la.wa,credentials:this.la.credentials&&this.la.credentials.bn?this.la.credentials.hash:null,customData:this.la.Rm,localeIdentifier:this.la.Hj,effectiveUserName:this.la.Aj,roles:this.la.Tk},(c,d)=>this.BV(c,d),c=>this.Rb(c),c=>this.Al(c)))}BV(c,d){if(null!=this.fH){null!=d&&0<d.sessionId&&(f.Bp.sessionId=
d.sessionId);for(d=0;d<c.length;d++){const k=c[d];var g=k.uniqueName;const m=this.la.mapping.La(g,"caption",k.caption),n=k.type;this.la.mapping.bI(g)&&(g=new f.O.gqa(g,m),g.type=n,g.JD=k.granularityNames,g.description=k.description,this.wa.O.mu(g))}this.fH()}}Y3(){this.jN=()=>this.JV();this.mV()}mV(){null!=this.tf&&(e.Ca(!0,e.model.B.j.rY),this.tf.call("DiscoverHierarchies",{catalog:this.la.De,cubeUniqueName:this.la.wa,credentials:this.la.credentials&&this.la.credentials.bn?this.la.credentials.hash:
null,sessionId:f.Bp.sessionId,customData:this.la.Rm,localeIdentifier:this.la.Hj,effectiveUserName:this.la.Aj,roles:this.la.Tk},c=>this.n4(c),c=>this.Rb(c),c=>this.Al(c)))}n4(c){if(null!=this.jN){for(var d=0;d<c.length;d++){const m=c[d];var g=m.dimensionUniqueName,k=m.uniqueName;const n=this.la.mapping.La(k,"caption",m.caption),p=m.type,t=m.allMemberName,r=m.defaultMemberName,v=m.displayFolder||"",y=m.isParentChild||!1,A=m.isRagged||!1;this.la.mapping.bI(k)&&(g=this.wa.O.$p(g),null!=g&&(k=this.la.Aa==
l.i.ra.Cc?new f.O.wY(k,n):new f.pq.O.A9(k,n),k.origin=1,k.type=l.i.Ic.nD(p),k.Lm=t,k.Js=r,k.Oc=v,k.Ts=y,k.tN=A,k.description=m.description,g.zi(k)))}this.jN()}}JV(){this.DN=()=>this.x4();this.FN()}FN(){null!=this.tf&&(e.Ca(!0,e.model.B.j.sY),this.tf.call("DiscoverLevels",{catalog:this.la.De,cubeUniqueName:this.la.wa,credentials:this.la.credentials&&this.la.credentials.bn?this.la.credentials.hash:null,sessionId:f.Bp.sessionId,customData:this.la.Rm,localeIdentifier:this.la.Hj,effectiveUserName:this.la.Aj,
roles:this.la.Tk},c=>this.w4(c),c=>this.Rb(c),c=>this.Al(c)))}w4(c){if(null!=this.DN){for(let n=0;n<c.length;n++){var d=c[n],g=d.hierarchyUniqueName,k=d.caption,m=d.type;const p=d.dbType,t=d.uniqueName,r=d.levelNumber,v=d.properties,y=this.wa.O.$p(d.dimensionUniqueName);if(null!=y&&(g=y.uh(g),null!=g&&(k=new f.O.iqa(t,k,r),k.type=e.v(m)?l.i.ib.$c:l.i.ib.nD(m,!e.v(p)&&0==m,p),k.description=d.description,g.Sh(k),y.zi(g),e.model.C.F.LI&&null!=v&&0<v.length)))for(d=0;d<v.length;d++)m=e.v(v[d].item)?v[d]:
v[d].item,m=new l.O.xX(m[0],m[1]),k.B_(m)}this.DN()}}x4(){this.GN=()=>this.PV();this.oV()}oV(){null!=this.tf&&(e.Ca(!0,e.model.B.j.jQ),this.tf.call("DiscoverMeasures",{catalog:this.la.De,cubeUniqueName:this.la.wa,credentials:this.la.credentials&&this.la.credentials.bn?this.la.credentials.hash:null,sessionId:f.Bp.sessionId,customData:this.la.Rm,localeIdentifier:this.la.Hj,effectiveUserName:this.la.Aj,roles:this.la.Tk},c=>this.C4(c),c=>this.Rb(c),c=>this.Al(c)))}C4(c){if(null!=this.GN){for(let g=0;g<
c.length;g++){const k=c[g],m=k.uniqueName;if(!this.la.mapping.bI(m))continue;var d=this.la.mapping.La(m,"caption",k.caption);const n="String"==typeof k.type?l.i.Ra.kAa(k.type):l.i.Ra.jb,p=k.groupCaption||k.groupName||"",t=k.displayFolder||"";d=new f.O.uB(m,d);d.type=n;d.Mg=p;d.Oc=t;d.Wc=this.la.mapping.La(m,"aggregations");d.description=k.description;this.wa.O.zk(d)}this.GN()}}PV(){this.la.Aa==l.i.ra.Cc?(this.wN=()=>this.t4(),this.nV()):this.Dr()}nV(){null!=this.tf&&(e.Ca(!0,e.model.B.j.r9),this.tf.call("DiscoverKpis",
{catalog:this.la.De,cubeUniqueName:this.la.wa,credentials:this.la.credentials&&this.la.credentials.bn?this.la.credentials.hash:null,sessionId:f.Bp.sessionId,customData:this.la.Rm,localeIdentifier:this.la.Hj,effectiveUserName:this.la.Aj,roles:this.la.Tk},c=>this.s4(c),c=>this.Rb(c),c=>this.Al(c)))}s4(c){if(null!=this.wN){for(let g=0;g<c.length;g++){const k=c[g];var d=k.uniqueName;const m=this.la.mapping.La(d,"caption",k.caption),n=k.value,p=k.status,t=k.goal,r=k.trend;d=new f.O.E9(d,m);d.value=n;d.status=
p;d.kx=t;d.gy=r;d.description=k.description;this.wa.O.x_(d,this.la.mapping)}this.wN()}}t4(){this.Dr()}xl(c,d){e.Ca(!0,e.model.B.j.zm,c.caption);this.Cb=d;this.Nk(c,null,g=>this.ek(g))}Nk(c,d,g){this.pa.hierarchy=c;this.pa.iD=this.wa.qa.lf||this.wa.qa.kf;this.pa.hT=this.wa.qa.hf||this.wa.qa.Xf;this.pa.children(c,d,g,this.Xa)}ek(c){if(null!=this.Cb){var d=c.yv;if(0<c.filter.Dl.length)c.Zi<c.fn?this.EN(c,c.filter.Dl,c.filter.yI,k=>this.ek(k)):(c.Fw(),this.ek(c));else if(0<d.length){var g=d.shift();0==
d.length&&c.dca();c.yv=d;d=c.Ib(g[1]);c.wz(d);this.Nk(c,d,k=>this.ek(k))}else c.Td=!0,this.Cb(c)}}EN(c,d,g,k){this.pa.hierarchy=c;this.pa.iD=this.wa.qa.lf||this.wa.qa.kf;this.pa.hT=this.wa.qa.hf||this.wa.qa.hf;this.pa.N_(c,d,g,k)}cA(){}Aq(c,d,g){this.pa.hierarchy=c;this.pa.iD=this.wa.qa.lf||this.wa.qa.kf;this.pa.hT=this.wa.qa.hf||this.wa.qa.Xf;this.pa.search(d,g)}BC(){return!0}cancel(){this.wN=this.GN=this.DN=this.jN=this.fH=this.efa=null;null!=this.tf&&this.tf.cancel();this.tf=null;null!=this.lm&&
this.lm.cancel();this.lm=null;null!=this.pa&&this.pa.cancel();this.Re=this.Xa=this.Cb=this.pa=null}Dr(){e.Ca(!1);null!=this.Cb&&this.Cb()}Rb(c){e.Ca(!1);let d=null;e.v(c)?(d=`Cannot connect to ${e.model.Tb.valid(this.la.sf)?this.la.sf:e.model.Tb.validate(this.la.sf)}`,e.Va(d,e.model.B.j.xa)):(d=e.ka(c.message)?e.model.B.j.kQ:c.message,"Unknown error."==d?e.Va(e.model.B.j.wpa,e.model.B.j.xa):"ERROR_SESSION_EXPIRED"==d?e.model.C.F.QW?e.Va(e.model.B.j.qY,e.model.B.j.mn,e.ob.mn,[e.model.B.j.lF,e.model.B.j.xm],
[()=>this.kA(),null]):this.kA():-1<d.indexOf("2.416")||-1<d.indexOf("2.400")?e.Va("Your current version of Flexmonster Pivot Table & Charts is not compatible with Flexmonster Accelerator. Please update both products to the latest available version.",e.model.B.j.xa):e.Va(d,e.model.B.j.xa));null!=this.Xa&&this.Xa(d)}kA(){e.model.Wa.R().m5()}}a.Jka="2.7.11";b.V6=a})(f.Kp||(f.Kp={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends b.sX{constructor(c){super();this.Cw=this.oI=0;this.ud="";this.state=l.Ap.GF;this.Kl=()=>this.et();this.Oj=()=>this.uq();this.IN=[];this.eA=[];this.HN=0;this.la=c;this.tf=new b.yQ(this.la.sf,e.model.Ea.ca.I(e.model.Ea.ca.eW),!0,this.la.tc,this.la.withCredentials)}reset(){this.ud="";this.Cw=this.HN=this.oI=0;this.eA=[];this.Xa=this.ov=this.XK=this.wK=this.Vb=this.f0=this.lc=null;this.state=""}search(c,d){this.reset();this.state=
l.Ap.GY;this.lc=d;this.ud=c.toLowerCase();this.load(()=>this.sE())}sE(){for(var c=[],d=0;d<this.eA.length;d++){var g=this.eA[d];g.Cf=!0;c.push(g.ordinal)}e.Ca(!1);this.lc(c)}children(c,d,g,k){this.reset();this.state=l.Ap.GF;this.lc=g;this.Xa=k;this.Vb=d;this.hierarchy=c;null==this.Vb||this.Vb.Cf?this.load(()=>this.ek()):g(this.hierarchy)}ek(){null!=this.Vb&&(this.Vb.Cf=!1);this.lc(this.hierarchy)}N_(c,d,g,k){this.reset();this.state=l.Ap.R6;this.lc=k;this.wK=d;this.ov=g;this.hierarchy=c;this.load(()=>
this.V3())}V3(){for(var c=[],d=0;d<this.eA.length;d++){var g=this.eA[d];g.Cf=!0;c.push(g.A)}this.ov?this.a6(c,this.lc):(this.hierarchy.Fw(),this.lc(this.hierarchy))}a6(c,d){this.reset();this.state=l.Ap.b$;this.lc=d;this.XK=c;this.load(()=>this.S4())}S4(){for(var c=this.eA,d=0;d<c.length;d++)this.hierarchy.za(c[d]).Cf=!0;this.hierarchy.Fw();this.lc(this.hierarchy)}load(c){this.f0=c;e.Ca(!0,e.model.B.j.zm);this.xl();this.timer=new u.Pt(500,1E4);this.timer.N(u.xf.Ol,this.Kl);this.timer.N(u.xf.Pl,this.Oj);
this.timer.start()}RC(){for(var c=this.hierarchy.lV,d=[],g=0;g<c.length;g++)d.push(this.hierarchy.A+".["+c.fa(g).A+"]");return 0<d.length?", "+d.join(","):""}xl(){if(null!=this.tf){var c=this.RC(this.hierarchy);this.tf.call("DiscoverMembers",{catalog:this.la.De,cubeUniqueName:this.la.wa,subquery:this.la.cf,hierarchyUniqueName:this.hierarchy.A,properties:c,memberUniqueName:this.Vb?this.Vb.A:"",allMemberName:this.hierarchy.Lm,hasAllMember:this.hierarchy.Xh,loadAll:this.hT,searchPhrase:this.ud,chunkIndex:this.Cw,
ascendants:null==this.wK?"":this.wK.join(",,"),siblings:null==this.XK?"":this.XK.join(",,"),activeLevel:null==this.hierarchy.zf?"":this.hierarchy.zf,credentials:this.la.credentials&&this.la.credentials.bn?this.la.credentials.hash:null,sessionId:f.Bp.sessionId,customData:this.la.Rm,localeIdentifier:this.la.Hj,effectiveUserName:this.la.Aj,roles:this.la.Tk},d=>this.Jj(d),d=>this.Rb(d),d=>this.Al(d));this.Cw++}}et(){if(null!=this.timer){var c=this.timer.Kw/2;2<c&&e.Ca(!0,e.model.B.j.zm,e.P.bind(e.model.B.j.Jt,
u.bc.format(c,new e.model.oc.W.se,!1,!1,1)))}}uq(){this.timer.Gl&&e.Va("Can't connect to data source!",e.model.B.j.xa)}yg(){this.timer&&this.timer.Gl&&(this.timer.stop(),this.timer.rb(u.xf.Ol,this.Kl),this.timer.rb(u.xf.Pl,this.Oj))}Jj(c){null!=this.tf&&(this.yg(),1==this.Cw&&(this.oI=c.count),1>this.hierarchy.fn&&(this.hierarchy.fn=c.all),this.xE(c.members,()=>this.sI()))}xE(c,d){if(e.v(c))d();else if(this.IN=c,0==this.IN.length)this.zV();else{for(c=this.hierarchy.Zi;!this.CJa(c);)c++;d()}}CJa(c){var d=
this.IN.shift();if(null!=d){var g=d.parentUniqueName,k=d.caption,m=d.uniqueName,n=d.ordinal,p=d.properties;var t=this.hierarchy.Ib(m);if(null==t&&(d=new l.O.be({A:m,caption:k,Ki:g,ordinal:n}),""===this.ud&&null==this.wK&&null==this.XK&&(d.nc=c),t=this.hierarchy.pc(d),null!=p&&0<p.length))for(g=0;g<p.length;g++)d=e.v(p[g].item)?p[g]:p[g].item,t.setProperty(d[0],d[1]);""!=this.ud||null!=this.wK||null!=this.XK?this.eA.push(t):t.nc=c;null!=t&&!t.dc&&1E3<this.hierarchy.fn&&!this.hT&&(t.Cf=!0);this.HN++}return 0>=
this.IN.length}sI(){var c=0==this.oI?100:Math.round(this.HN/this.oI*100);100<c&&(c=100);e.Ca(!0,e.model.B.j.zm,this.hierarchy.caption+" - "+c+"% ("+this.HN+" of "+this.oI+")");this.HN>=this.oI?this.zV():this.xl()}zV(){e.Ca(!1);this.yg();this.f0();this.IN=[];this.eA=[]}Rb(c){this.yg();e.Ca(!1);c=e.ka(c.message)?e.model.B.j.kQ:c.message;"ERROR_SESSION_EXPIRED"==c?e.model.C.F.QW?e.Va(e.model.B.j.qY,e.model.B.j.mn,e.ob.mn,[e.model.B.j.lF,e.model.B.j.xm],[()=>this.kA(),null]):this.kA():(e.Va(c,e.model.B.j.xa),
null!=this.Xa&&(this.Xa(c),this.Xa=null))}kA(){e.model.Wa.R().m5()}cI(){return!1}cancel(){null!=this.tf&&this.tf.cancel();this.tf=null;null!=this.timer&&this.yg();this.f0=this.Xa=this.lc=this.timer=null}}b.dla=a})(f.Kp||(f.Kp={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends b.sX{constructor(){super(...arguments);this.Pe=l.Ma.R();this.Mb=[];this.bd=[];this.Kl=()=>this.et();this.Oj=()=>this.uq()}load(c,d,g,k){e.Ca(!0,e.model.B.j.mg,e.P.bind(e.model.B.j.Jt,"0.5"));this.la=c;this.xk=d;this.Cb=g;this.Xa=k;this.$i=this.Cw=0;this.Wf=this.Pe.qa.Hr;this.tf=new b.yQ(this.la.sf,e.model.Ea.ca.I(e.model.Ea.ca.eW),!0,this.la.tc,this.la.withCredentials);this.requestId=e.P.zM();this.Ax();this.timer=new u.Pt(500,
1E4);this.timer.N(u.xf.Ol,this.Kl);this.timer.N(u.xf.Pl,this.Oj);this.timer.start()}Ax(){if(null!=this.tf){for(var c=[],d=this.Pe.qa.Hr,g=0;g<d.length;g++)c.push(d[g].A);this.tf.call("Execute",{catalog:this.la.De,cubeUniqueName:this.la.wa,subquery:this.la.cf,queryString:this.xk.body,columns:this.Pe.qa.Fb.Pc(!0),rows:this.Pe.qa.wb.Pc(!0),measures:c,chunkIndex:this.Cw,credentials:this.la.credentials&&this.la.credentials.bn?this.la.credentials.hash:null,sessionId:f.Bp.sessionId,customData:this.la.Rm,
localeIdentifier:this.la.Hj,effectiveUserName:this.la.Aj,roles:this.la.Tk,expandAll:this.xk.type==l.i.Md.to&&(this.Pe.qa.lf||this.Pe.qa.kf),formatted:e.model.C.F.co,requestId:this.requestId},k=>this.rq(k),k=>this.Rb(k),k=>this.Al(k));this.Cw++}}et(){null!=this.timer&&e.Ca(!0,e.model.B.j.mg,e.P.bind(e.model.B.j.Jt,u.bc.format(this.timer.Kw/2,new e.model.oc.W.se,!1,!1,1)))}uq(){this.timer.Gl&&e.Va("Can't connect to data source!",e.model.B.j.xa)}yg(){this.timer&&this.timer.Gl&&(this.timer.stop(),this.timer.rb(u.xf.Ol,
this.Kl),this.timer.rb(u.xf.Pl,this.Oj))}cd(c,d,g,k,m,n){e.Ca(!0,e.model.B.j.mg,e.P.bind(e.model.B.j.Jt,"0.5"));this.la=c;this.xk=d;this.Cb=n;this.Wf=this.Pe.qa.Hr;this.tf=new b.yQ(this.la.sf,e.model.Ea.ca.I(e.model.Ea.ca.eW),!0,this.la.tc,this.la.withCredentials);c=this.yBa(this.Pe.qa,g,k);m={catalog:this.la.De,cubeUniqueName:this.la.wa,subquery:this.la.cf,measureUniqueName:m.A,members:c,credentials:this.la.credentials&&this.la.credentials.bn?this.la.credentials.hash:null,sessionId:f.Bp.sessionId,
customData:this.la.Rm,localeIdentifier:this.la.Hj,effectiveUserName:this.la.Aj,roles:this.la.Tk};this.la.Aa==l.i.ra.Cc&&(m.drillThroughMaxRows=e.model.C.F.kH);this.tf.call("DrillThrough",m,p=>this.SGa(p),p=>this.Rb(p),p=>this.Al(p));this.timer=new u.Pt(500,1E4);this.timer.N(u.xf.Ol,this.Kl);this.timer.N(u.xf.Pl,this.Oj);this.timer.start()}yBa(c,d,g){for(var k=[],m,n,p=0;p<c.Fb.length;p++){var t=c.Fb.fa(p);m=[];n=!1;if(!t.We){if(null!=g[p]){var r=t.za(g[p]);e.v(r)||e.ka(r.A)||(m.push(r.A),n=!0)}if(t.filter.Gh&&
!n)for(n=0;n<t.eb.length;n++)r=t.za(t.eb[n]),e.v(r)||e.ka(r.A)||-1==m.indexOf(r.A)&&m.push(r.A);0<m.length&&(this.la.Aa==l.i.ra.Pd?k.push(m.join(",")):k.push("{"+m.join(",")+"}"))}}for(p=0;p<c.wb.length;p++)if(t=c.wb.fa(p),n=!1,m=[],!t.We){null!=d[p]&&(r=t.za(d[p]),e.v(r)||e.ka(r.A)||(m.push(r.A),n=!0));if(t.filter.Gh&&!n)for(n=0;n<t.eb.length;n++)r=t.za(t.eb[n]),e.v(r)||e.ka(r.A)||-1==m.indexOf(r.A)&&m.push(r.A);0<m.length&&(this.la.Aa==l.i.ra.Pd?k.push(m.join(",")):k.push("{"+m.join(",")+"}"))}for(p=
0;p<c.qb.length;p++){t=c.qb.fa(p);m=[];if(t.filter.Gh)for(n=0;n<t.eb.length;n++)r=t.za(t.eb[n]),e.v(r)||e.ka(r.A)||-1==m.indexOf(r.A)&&m.push(r.A);0<m.length&&(this.la.Aa==l.i.ra.Pd?k.push(m.join(",")):k.push("{"+m.join(",")+"}"))}return k}SGa(c){if(null!=this.tf){c=c.cellData;if(null!=c&&0<c.length&&null!=c[0].item)for(var d=0;d<c.length;d++)c[d]=c[d].item;this.yg();e.Ca(!1);this.Cb(c)}}cancel(){this.la=this.Pe=null;this.Mb=[];this.bd=[];this.Xa=this.Cb=this.xk=null;null!=this.tf&&this.tf.cancel();
this.tf=null;this.yg();this.timer=null}rq(c){null!=this.tf&&(c.isComplete||this.Ax(),this.yg(),this.la.Aa==l.i.ra.Pd?(this.WV(c.columnsList?JSON.parse(c.columnsList):[]),this.ZV(c.rowsList?JSON.parse(c.rowsList):[]),this.Gha(c.cellData?JSON.parse(c.cellData):[],c.cellDataFmt?JSON.parse(c.cellDataFmt):[])):(this.WV(c.columnsList),this.ZV(c.rowsList),this.Gha(c.cellData,c.cellDataFmt)),this.$i+=this.Mb.length*this.bd.length,c.isComplete?(e.Ca(!1),!1===e.model.C.F.Ux&&0==this.Pe.ta.Kz()?(e.Va(e.model.B.j.zp,
e.model.B.j.xa,e.ob.nk),this.Xa(e.model.B.j.zp)):this.Cb()):(c=null!=c.percent?Math.round(1E4*c.percent)/100:NaN,e.Ca(!0,e.model.B.j.mg,this.$i+" items "+(isNaN(c)||0>=c?"":"("+(100<c?100:c)+"%)"))))}WV(c){this.bd=c;if(e.v(c)||0==this.bd.length)this.bd=[[[0,0]]]}ZV(c){this.Mb=[[]];e.v(c)?this.Mb=[[]]:(this.Mb=c,0==this.Mb.length&&(this.Mb=[[]]))}ODa(c,d){if(c.length!=d.length)return!1;for(var g=0;g<c.length;g++)if(1<c[g].length&&c[g][1]!=d[g][1])return!1;return!0}Gha(c,d=null){e.v(c)&&(c=[]);var g=
this.Mb.length,k=this.bd.length;var m=this.Pe.qa.Hr;for(var n=[],p=0;p<m.length;p++)n[p]=m[p].type;var t=l.SY.R();this.Pe.qa.rows.fa(1);for(p=0;p<g;p++)if(void 0!=c[p]&&null!=this.Mb[p]){m=[];for(var r=[],v,y,A=!1,C=0;C<k;C++)null!=this.bd[C]&&(v=r,r=this.bd[C].slice(0),y=r.pop()[0],this.ODa(r,v)||(A&&this.Pe.ta.AU(this.Mb[p],v,m,this.xk.jg,this.xk.uw,this.xk.type),A=!1,m=[]),void 0!=c[p][C]&&(A=!0),e.model.C.F.co&&null!=d&&this.Wf[y].$==l.i.ea.NONE?m[y]=l.Kt.R().BA(d[p][C],c[p][C]):n[y]==l.i.Ra.jb?
m[y]=c[p][C]:n[y]==l.i.Ra.Ua&&(v=c[p][C]?t.oi(c[p][C].toString()):0,m[y]=v));A&&this.Pe.ta.AU(this.Mb[p],r,m,this.xk.jg,this.xk.uw,this.xk.type)}}Rb(c){this.yg();e.Ca(!1);c=e.ka(c.message)?e.model.B.j.kQ:c.message;"ERROR_SESSION_EXPIRED"==c?e.model.C.F.QW?e.Va(e.model.B.j.qY,e.model.B.j.mn,e.ob.mn,[e.model.B.j.lF,e.model.B.j.xm],[()=>this.kA(),null]):this.kA():(e.Va(c,e.model.B.j.xa),this.Xa&&this.Xa(c))}kA(){e.model.Wa.R().m5()}}b.U6=a})(f.Kp||(f.Kp={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external=
{}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a{constructor(c,d=null,g=!0,k=null,m=!1){this.zv=null;this.withCredentials=!1;this.tc=null;this.url=c;this.url.lastIndexOf("/")==this.url.length-1&&(this.url=this.url.substr(0,this.url.length-1));g&&0>this.url.indexOf("/FlexmonsterProxy")&&this.url.lastIndexOf(":")>this.url.lastIndexOf("/")&&(this.url+="/FlexmonsterProxy");this.tc=k;this.zv=d;this.withCredentials=m}call(c,d=null,g=null,k=null,m=null){this.action=c;this.Cb=g;this.Xa=
k;this.KO=m;this.Ud=d;u.uo.load("lib/sha1.min.js",()=>{this.xhr=new XMLHttpRequest;this.xhr.open("POST",this.url+"/"+c,!0);this.xhr.withCredentials=this.withCredentials;this.xhr.onreadystatechange=n=>this.tv(n);this.xhr.setRequestHeader("Content-type","application/json; charset=UTF-8");this.xhr.setRequestHeader("Accept","application/json");this.tL(this.tc);this.xhr.send(this.YLa(d))})}tL(c){if(!e.v(c))for(var d in c)c.hasOwnProperty(d)&&this.xhr.setRequestHeader(d,c[d])}YLa(c){if(null!=this.zv){delete c.signature;
var d=this.getHash(c);d=d.replace(/[^a-zA-Z0-9]/gm,"");var g=new jsSHA("SHA-1","TEXT");g.setHMACKey(this.zv,"TEXT");g.update(d);c.signature=g.getHMAC("B64")}return JSON.stringify(c)}getHash(c){var d=[];for(g in c)d.push(g);d.sort();var g="";for(var k=0;k<d.length;k++){var m=c[d[k]];e.v(m)||"string"==typeof m&&e.ka(m)||Array.isArray(m)&&0==m.length||("sessionId"!=d[k]||0!=m)&&"customData"!=d[k]&&"localeIdentifier"!=d[k]&&"effectiveUserName"!=d[k]&&(g+=d[k]+":"+m)}return g.toLowerCase()}tv(){if(null!=
this.xhr&&4===this.xhr.readyState){if(200===this.xhr.status)return this.SI();if(401===this.xhr.status&&e.Pg(this.KO))return this.KO(c=>{c?this.call(this.action,this.Ud,this.Cb,this.Xa):this.Xa({message:this.xhr.statusText})});this.Xa({message:this.xhr.statusText})}}SI(){var c=JSON.parse(this.xhr.response);c&&null==c.error?null!=this.Cb&&this.Cb(c.data,c):this.Xa&&c&&this.Xa(c.error)}cancel(){null!=this.xhr&&(this.xhr.onerror=null,this.xhr.onreadystatechange=null,this.xhr.abort());this.zv=this.url=
this.Cb=this.xhr=this.tc=null}}b.yQ=a})(f.Kp||(f.Kp={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends f.mj.x${constructor(c){super(c)}RC(){for(var c=this.hierarchy.lV,d=[],g=0;g<c.length;g++)d.push(this.hierarchy.A+".["+c.fa(g).A+"]");return 0<d.length?", "+d.join(","):""}k0(){var c=this.RC(this.hierarchy),d=this.Ko();return null==this.Vb?this.cI()?e.P.bind("SELECT DISTINCT({{0}.allmembers}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME{1} on columns FROM {2}",this.hierarchy.A,c,d):this.hierarchy.Xh?e.P.bind("SELECT Subset(DISTINCT({{0}.levels(0).allmembers, {0}.levels(1).allmembers}), {3}, {4}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME{2} on 0 FROM {1}",
this.hierarchy.A,d,c,this.zl.toString(),this.hr.toString()):e.P.bind("SELECT Subset(DISTINCT({{0}.levels(0).allmembers}), {3}, {4}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME{2} on 0 FROM {1}",this.hierarchy.A,d,c,this.zl.toString(),this.hr.toString()):e.P.bind("SELECT Subset({0}.children, {3}, {4}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME {2} on columns FROM {1}",this.Vb.A,d,c,this.zl.toString(),this.hr.toString(),this.hierarchy.A)}XV(c,d){var g=c.find("PARENT_UNIQUE_NAME").text();var k=c.find("Caption").text(),
m=c.find("UName").text(),n=parseInt(c.find("MEMBER_ORDINAL").text());var p=this.hierarchy.Ib(m);if(null==p){p=this.hierarchy.pc(new l.O.be({A:m,caption:k,Ki:g}));if(p.level&&0<p.level.Ye.length)for(k=0;k<p.level.Ye.length;k++){g=p.level.Ye.fa(k);p.setProperty(g.A,c.find(g.QO).text());m=c.getChildren();for(var t=0;t<m.length;t++){var r=m[t];r.nodeName.toLowerCase()==g.QO.toLowerCase()&&(r=r.text(),p.setProperty(g.A,r))}}p.nc=isNaN(n)?d:n}else this.state==l.Ap.GF&&(p.nc=isNaN(n)?d:n);null==p||p.dc||
(p.Cf=!0);p.parent&&!p.parent.dc&&(p.parent.Cf=!1);return p.ordinal}}b.cra=a})(f.XE||(f.XE={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends f.mj.y${constructor(c){super(c);this.lm=new b.cra(c)}BV(){var c=z.ba.create(this.bm.response);c=this.cq(c);if(0<c.length){this.pt();for(var d=0;d<c.length;d++)this.Iha(c[d]);this.kFa();this.fH()}else c=e.model.B.j.HF,e.Va(c,"",e.ob.xa),e.Ca(!1),this.Xa(c)}kFa(){this.eF=new z.tk;this.eF=this.$h(this.eF);this.eF.data=z.ba.Lc(f.mj.ng.Xwa());this.eF.N(w.ia.Qc,()=>this.VIa());this.eF.N(w.ia.xa,c=>this.Rb(c));this.eF.load(this.ga.sf)}VIa(){var c=
z.ba.create(this.eF.response);c=this.cq(c);this.ga.version=parseFloat(c.find("Value").text().substr(0,5))}Mha(c){var d=c.find("DIMENSION_UNIQUE_NAME").text(),g=c.find("HIERARCHY_UNIQUE_NAME").text(),k=c.find("LEVEL_CAPTION").text(),m=c.find("LEVEL_UNIQUE_NAME").text(),n=parseInt(c.find("LEVEL_NUMBER").text());c=parseInt(c.find("LEVEL_TYPE").text());d=this.wa.O.$p(d);null!=d&&(g=d.uh(g),null!=g&&(k=new l.O.Dv(m,k,n),k.type=l.i.ib.nD(c),g.Sh(k),d.zi(g)))}Z4(c){var d=c.find("DIMENSION_UNIQUE_NAME").text(),
g=c.find("HIERARCHY_UNIQUE_NAME").text(),k=c.find("LEVEL_UNIQUE_NAME").text(),m=c.find("PROPERTY_CAPTION").text();c.find("PROPERTY_TYPE").text();c=c.find("PROPERTY_NAME").text();var n=(g+".["+c+"]").replace(/\[/g,"_x005B_").replace(/\]/g,"_x005D_").replace(/\s/g,"_x0020_");"NAME"!=c&&"KEY0"!=c&&"KEY1"!=c&&"KEY2"!=c&&"TRAN0"!=c&&"TRAN1"!=c&&"TRAN2"!=c&&"MEMBER_VALUE"!=c&&"CUSTOM_ROLLUP"!=c&&"UNARY_OPERATOR"!=c&&(d=this.wa.O.$p(d),null!=d&&(g=d.uh(g),null!=g&&(k=g.Ou(k),null!=k&&(m=new l.O.xX(c,m,n),
k.B_(m)))))}}b.dra=a})(f.XE||(f.XE={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a{constructor(c,d){this.slice=c;this.ga=d}get cF(){return this.ga&&this.ga.Nm&&!e.model.C.F.L2?!0:!1}IT(c){return c.Ts?"members":"allmembers"}HT(c){return c.Xh?c.Lm:e.P.bind("{0}.levels(0).{1}",c.A,this.IT(c))}qU(){return 0<this.slice.td(l.i.ha.Oa).ld.length}rU(){return 0<this.slice.td(l.i.ha.Ia).ld.length}Lo(){const c=[],d=this.slice.Hr;for(var g=0;g<d.length;g++)c.push(d[g].A);return"{"+c.join(", ")+"}"}PC(){var c=this.Lo();
if(0<this.slice.Fb.length){var d=this.KL(this.slice.Fb),g="";this.qU()&&(g=this.gz(this.slice.td(l.i.ha.Oa).ld,this.slice.Fb));return"Crossjoin("+(0<g.length?"Union("+d+", "+g+")":d)+", "+c+")"}return c}SC(){if(0<this.slice.wb.length){var c=this.KL(this.slice.wb),d="";this.rU()&&(d=this.gz(this.slice.td(l.i.ha.Ia).ld,this.slice.wb));return 0<d.length?"Union("+c+", "+d+")":c}return""}KL(c){for(var d=[],g=0;g<c.length;g++){var k=c.fa(g);k=this.j0(k,this.slice.lf||this.slice.kf||0==g,this.slice.hf||
this.slice.Xf);0<k.length&&d.push(k)}if(1<d.length){c=this.Lo();k=d[0];for(g=1;g<d.length;g++)k=e.model.C.F.L2?e.P.bind("Crossjoin({0}, {1})",k,d[g]):e.P.bind("NonEmpty(Crossjoin({0}, {1}), {2})",k,d[g],c);return k}return d[0]}j0(c,d,g){var k=this.HT(c);if(g)d="Hierarchize({"+c.A+"."+this.IT(c)+"})";else if(d)for(d=null!=c.ic?"Hierarchize({Descendants({"+c.A+".levels(0)."+this.IT(c)+"}, "+c.ic.A+", SELF_AND_BEFORE)})":c.Xh?"Hierarchize({DrilldownLevel({"+k+"})})":"{{"+c.Km()+","+k+"}}",g=1;g<c.ua.length;g++)k=
c.ua.fa(g),k=c.gM(k),0!=k.length&&(k=c.vr(k).join(","),d=10.5<this.ga.version?"DrilldownMember({{"+d+"}}, {"+k+"},,INCLUDE_CALC_MEMBERS)":"DrilldownMember({{"+d+"}}, {"+k+"})");else{if(c.Xh)return k;d="{{"+c.Km()+","+k+"}}"}return d}SW(c){return c=c.replace(/[\]|\[]/g,"")}Sp(c,d,g){for(var k=[],m,n=0;n<d.length;n++){var p=d.fa(n);if(n==c.length-1)m=p.za(c[n]),m.dc?(this.j0(p,!0,!1),k.push(this.j0(p,!0,!1))):void 0!==g&&null!=p.Ou(g)?k.push("Descendants("+m.A+", "+g+", SELF_AND_BEFORE)"):m.eh?k.push(m.A+
".CHILDREN"):k.push(m.A);else if(n<c.length){m=p.za(c[n]);if(null==m)return"";p=p.vr(m.children);m=m.fh?"{"+p.join(",")+"}":m.A;k.push(m)}else k.push(this.HT(p))}return 1<k.length?"Crossjoin({"+k.join("}, {")+"})":k[0]}gz(c,d){for(var g,k=0;k<c.length;k++){var m=c[k].slice(1);m.push(0);m=this.Sp(m,d);g=g&&!e.ka(m)?e.P.bind("Union({0}, {1})",m,g):m}return g}V0(c,d){return 0<this.slice.wb.length?this.Sp(c,this.slice.wb,d):""}U0(c,d){var g=this.Lo();return 0<this.slice.Fb.length?"Crossjoin("+this.Sp(c,
this.slice.Fb,d)+", "+g+")":g}h1(c){var d=this.Lo();return 0<this.slice.Fb.length?(c=c.slice(0),c.push(0),"Crossjoin("+this.Sp(c,this.slice.Fb)+", "+d+")"):d}l1(c){return 0<this.slice.wb.length?(c=c.slice(0),c.push(0),this.Sp(c,this.slice.wb)):""}zwa(c,d){0<=l.i.cc.zy.indexOf(d.va)&&(d=d.MS(c.getTimezoneOffset()));if(d.va==l.i.cc.EQUAL){var g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue>=CDate('{1}') AND {0}.CurrentMember.MemberValue<CDate('{2}')))";var k=d.value.clone().Ll();var m=k.clone().s_(1).Ll()}d.va==
l.i.cc.Tf&&(g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue<CDate('{1}') OR {0}.CurrentMember.MemberValue>CDate('{2}')))",k=d.value.clone().Ll(),m=k.clone());d.va==l.i.cc.iF&&(k=d.value.clone().Ll(),g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue<CDate('{1}')))");d.va==l.i.cc.jF&&(k=d.value.clone().Ll(),g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue<=CDate('{1}')))");d.va==l.i.cc.fF&&(k=d.value.clone().Ll(),g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue>CDate('{1}')))");
d.va==l.i.cc.gF&&(k=d.value.clone().Ll(),g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue>=CDate('{1}')))");d.va==l.i.cc.mh&&(k=d.value[0].clone().Ll(),m=d.value[1].clone().ay(),g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue>=CDate('{1}') AND {0}.CurrentMember.MemberValue<=CDate('{2}')))");d.va==l.i.cc.Tg&&(k=d.value[0].clone().Ll(),m=d.value[1].clone().ay(),g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue<CDate('{1}') OR {0}.CurrentMember.MemberValue>CDate('{2}')))");
d=this.slice.Hr[0].Mg;let n;this.ga.hy&&(n=c.Ci.JD[d]);e.ka(n)&&(n=c.A);g=e.P.bind(g,n,k.format("yyyy-MM-dd"),m?m.format("yyyy-MM-dd"):"",c.Xh?1:0);return[g]}Mwa(c,d){var g,k=d.value,m=k.length;d.va==l.i.Eb.EQUAL&&(g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption='{2}'))");d.va==l.i.Eb.Tf&&(g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption<>'{2}'))");d.va==l.i.Eb.kF&&(g="Filter({0}.levels({1}), (Left({0}.CurrentMember.member_caption,{3})='{2}'))");d.va==l.i.Eb.rB&&(g="Filter({0}.levels({1}), (Left({0}.CurrentMember.member_caption,{3})<>'{2}'))");
d.va==l.i.Eb.eB&&(g="Filter({0}.levels({1}), (Right({0}.CurrentMember.member_caption,{3})='{2}'))");d.va==l.i.Eb.tB&&(g="Filter({0}.levels({1}), (Right({0}.CurrentMember.member_caption,{3})<>'{2}'))");d.va==l.i.Eb.ho&&(g="Filter({0}.levels({1}), (InStr(1, {0}.CurrentMember.member_caption,'{2}')>0))");d.va==l.i.Eb.sB&&(g="Filter({0}.levels({1}), (InStr(1, {0}.CurrentMember.member_caption,'{2}')=0))");d.va==l.i.Eb.GREATER&&(g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption>'{2}'))");d.va==
l.i.Eb.dl&&(g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption>='{2}'))");d.va==l.i.Eb.LESS&&(g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption<'{2}'))");d.va==l.i.Eb.gl&&(g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption<='{2}'))");if(d.va==l.i.Eb.mh){g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption>='{2}'  AND {0}.CurrentMember.member_caption<='{4}'))";k=d.value[0];var n=d.value[1]}d.va==l.i.Eb.Tg&&(g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption<='{2}'  OR {0}.CurrentMember.member_caption>='{4}'))",
k=d.value[0],n=d.value[1]);g=e.P.bind(g,c.A,c.Xh?1:0,k,m,n);return[g]}Rp(c){for(var d=[],g="",k=0;k<c.length;k++){var m=c.fa(k),n=[];m.filter.Gh&&(n=m.vr(m.eb));m.filter.Pz&&(n=this.zwa(m,m.filter.query));m.filter.mx&&(n=this.Mwa(m,m.filter.query));if(!m.Xh){var p=m.Km();this.nd.Bb(p)||this.nd.Ta(p,this.HT(m))}0<n.length&&d.push("{"+n.join(",")+"}")}0<d.length&&(g="("+d.join(", ")+")");return g}Wwa(c,d,g){for(var k=[],m=c.indexOf(d.A),n=0;n<m;n++){var p=c.fa(n);k.push("Hierarchize("+p.A+".levels("+
(p.Xh?1:0)+")."+this.IT(d)+")")}c="Hierarchize({"+this.HT(d)+"})";0<k.length&&(c="CrossJoin("+k.join(",")+", "+c+")");return e.P.bind("( SELECT Generate({0} AS {1}, {7}( Filter( Except(  DrilldownLevel({1}.Current AS {2}, , {5}{8} ), {2}), Not IsEmpty({3})), {4}, {3})) ON COLUMNS FROM {6})",c,"["+d.caption+"___0___0]","["+d.caption+"_1_1_1]",d.filter.measure.A,d.filter.query.value,""+m,g,d.filter.query.va==l.i.Wb.Rj?"TopCount":"BottomCount",", INCLUDE_CALC_MEMBERS")}fca(c,d){for(var g=0;g<c.length;g++){var k=
c.fa(g);k.filter.ji&&this.slice.Wf.find(m=>m.A===k.filter.measure.A)&&(d=this.Wwa(c,k,d))}return d}TC(){if(0==this.nd.length)return"";for(var c="with",d=0;d<this.nd.length;d++)c+=e.P.bind(" member {0} as IIF(IsError(Aggregate({{1}})), null, Aggregate({{1}}))",this.BE(this.nd.Uh(d)),this.BE(this.nd.fa(d)));return c}Ko(c=!0){var d=e.ka(this.ga.cf)?"["+this.ga.wa+"]":"("+this.ga.cf+")";var g=this.Rp(this.slice.Fb),k=this.Rp(this.slice.wb),m="";let n="";if(0!==this.slice.qb.length)for(let t=0;t<this.slice.qb.length;t++){const r=
this.slice.qb.fa(t);if(r.filter&&r.filter.Gh){var p=r.filter.Hi();1==p.length&&c?n=0===n.length?` WHERE (${r.b2(p[0])})`:n.substring(0,n.length-1)+`, ${r.b2(p[0])})`:1<p.length&&c&&(n=0===n.length?` WHERE (${r.A+".CurrentMember"})`:n.substring(0,n.length-1)+`, ${r.A+".CurrentMember"})`)}}0<this.slice.qb.length&&(m=this.Rp(this.slice.qb));0==g.length&&0==k.length&&0==m.length?c=d:(0<g.length&&(g+=" ON COLUMNS"),0<k.length&&(0<g.length?k=", "+k+" ON ROWS":(g=k+" ON COLUMNS",k="")),0<m.length&&(m="SELECT "+
m+" ON COLUMNS FROM "+d),0<g.length||0<k.length?(c="SELECT "+g+k+" FROM ",c=0<m.length?c+("("+m+")"):c+d):c=m,c="("+c+")");c=this.fca(this.slice.wb,c);c=this.fca(this.slice.Fb,c);0<n.length&&(c+=n);return c}BE(c){-1<c.indexOf("'")&&(c=c.replace(RegExp("'","g"),"''"));return c}expand(c,d){this.nd=new e.ub;c==l.i.ha.Ia?(c=this.PC(),d=this.l1(d)):(c=this.h1(d),d=this.SC());var g=this.Ko();c="NON EMPTY "+c+" DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON COLUMNS";d=this.cF?
0<d.length?", NON EMPTY _ROWS_TOKEN_START_"+d+"_ROWS_TOKEN_END_ DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"":0<d.length?", NON EMPTY "+d+" DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"";var k=this.TC();return e.P.bind("{4} Select {0} {1} FROM {2} CELL PROPERTIES {3}",c,d,g,this.i0(),k)}Ee(c,d,g,k){this.nd=new e.ub;c==l.i.ha.Ia?(c=this.PC(),d=this.V0(d,k)):(c=this.U0(d,k),d=this.SC());k=this.Ko();c="NON EMPTY "+c+" DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON COLUMNS";
d=this.cF?0<d.length?", NON EMPTY _ROWS_TOKEN_START_"+d+"_ROWS_TOKEN_END_ DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"":0<d.length?", NON EMPTY "+d+" DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"";g=this.TC();return e.P.bind("{4} Select {0} {1} FROM {2} CELL PROPERTIES {3}",c,d,k,this.i0(),g)}select(){this.nd=new e.ub;var c=this.PC(),d=this.SC(),g=this.Ko();c="NON EMPTY "+c+" DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON COLUMNS";
d=this.cF?0<d.length?", NON EMPTY _ROWS_TOKEN_START_"+d+"_ROWS_TOKEN_END_ DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"":0<d.length?", NON EMPTY "+d+" DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"";var k=this.TC();return e.P.bind("{4} Select {0} {1} FROM {2} CELL PROPERTIES {3}",c,d,g,this.i0(),k)}i0(){return 0==e.model.C.F.co||this.ga.Aa!=l.i.ra.Cc?"VALUE":"VALUE, FORMATTED_VALUE"}cd(c,d,g){this.nd=new e.ub;for(var k=
"DRILLTHROUGH MAXROWS "+e.model.C.F.kH+" SELECT {0} ON 0 FROM {1} {2}",m,n=[],p=0;p<this.slice.Fb.length;p++)m=this.slice.Fb.fa(p),m.We||null==d[p]||(m=m.za(d[p]),null!=m&&n.push(m.A));for(p=0;p<this.slice.wb.length;p++)m=this.slice.wb.fa(p),m.We||null==c[p]||(m=m.za(c[p]),null!=m&&n.push(m.A));c=0<n.length?"where ("+n.join(",")+")":"";d=this.Ko(!1);return e.P.bind(k,g.A,d,c)}}b.mY=a})(f.XE||(f.XE={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends f.mj.x${constructor(c){super(c);this.AI=[]}n0(){var c=e.P.bind("SET [SearchMembersSet] AS 'FILTER(EXCEPT({0}.members, {{1}}), (INSTR(lcase({0}.CurrentMember.Caption), {2}) > 0))'",this.hierarchy.A,this.hierarchy.Js,'"'+this.ud+'"');var d=e.P.bind("SET [SearchParentsSet] AS 'EXCEPT(GENERATE([SearchMembersSet], ASCENDANTS([SearchMembersSet].Current)), {{0}})'",this.hierarchy.Js);return c+"\n"+d+"\nSET [SearchSet] AS 'HIERARCHIZE(DISTINCT({[SearchMembersSet], [SearchParentsSet]}))'"}k0(){var c=
this.hierarchy.lV,d=[],g=[];if(0<c.length)for(var k=0;k<c.length;k++){var m=c.fa(k).A;g.push("[Measures].["+m+"]");d.push(e.P.bind('member [Measures].[{0}] as {1}.CurrentMember.Properties("{0}")',m,this.hierarchy.A))}c=this.Ko();0<g.length?(g=0<g.length?g.join(", "):"",d=0<d.length?"with "+d.join(" "):"",d=null==this.Vb?this.cI()?e.P.bind("{3} SELECT crossjoin(DISTINCT({{0}.allmembers}), {{2}}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",this.hierarchy.A,c,g,d):this.hierarchy.Xh?
e.P.bind("{5} SELECT crossjoin(Subset(DISTINCT({{0}.levels(0).allmembers, {0}.levels(1).allmembers}), {2}, {3}), {{4}}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",this.hierarchy.A,c,this.zl.toString(),this.hr.toString(),g,d):e.P.bind("{5} SELECT crossjoin(Subset(DISTINCT({{0}.levels(0).allmembers}), {2}, {3}), {{4}}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",this.hierarchy.A,c,this.zl.toString(),this.hr.toString(),g,d):e.P.bind("{5} SELECT crossjoin(Subset({0}.children, {2}, {3}), {{4}}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",
this.Vb.A,c,this.zl.toString(),this.hr.toString(),g,d)):d=null==this.Vb?this.cI()?e.P.bind("SELECT DISTINCT({{0}.allmembers}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",this.hierarchy.A,c):this.hierarchy.Xh?e.P.bind("SELECT Subset(DISTINCT({{0}.levels(0).allmembers, {0}.levels(1).allmembers}), {2}, {3}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",this.hierarchy.A,c,this.zl.toString(),this.hr.toString()):e.P.bind("SELECT Subset(DISTINCT({{0}.levels(0).allmembers}), {2}, {3}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",
this.hierarchy.A,c,this.zl.toString(),this.hr.toString()):e.P.bind("SELECT Subset({0}.children, {2}, {3}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",this.Vb.A,c,this.zl.toString(),this.hr.toString());return d}xE(c){var d=c.find("root");if(0<d.find("Fault").length)e.Va(z.ba.Lc(d.find("Fault faultstring")),"Query error!",e.ob.xa);else{this.AI=[];c=[];for(var g=d.find('Axes Axis[name="Axis0"] Tuples Tuple Member'),k=this.hierarchy.Zi,m=0;m<g.length;m++)c.push(this.XV(g[m],m+k));d=d.find("CellData Cell");
for(m=0;m<d.length;m++)if(k=d[m],g=parseInt(k.attr("CellOrdinal")),k=k.find("Value").text(),0>k.indexOf("MondrianEvaluationException")&&!e.v(this.AI)&&!e.v(this.AI[g])){var n=this.AI[g][1];g=this.hierarchy.Ib(this.AI[g][0]);null!=g&&g.setProperty(n,k)}return c}}XV(c,d){var g=c.find("PARENT_UNIQUE_NAME").text();var k=c.find("LName").text();var m=c.find("Caption").text(),n=c.find("UName").text();c=parseInt(c.find("MEMBER_ORDINAL").text());if("[Measures].[MeasuresLevel]"==k)null!=this.tga&&this.AI.push([this.tga.A,
m]);else return k=this.hierarchy.Ib(n),null==k?(k=this.hierarchy.pc(new l.O.be({A:n,caption:m,Ki:g})),k.nc=isNaN(c)?d:c):this.state==l.Ap.GF&&(k.nc=isNaN(c)?d:c),this.tga=k,null==k||k.dc||(k.Cf=!0),k.parent&&!k.parent.dc&&(k.parent.Cf=!1),k.ordinal}}b.Xpa=a})(f.pq||(f.pq={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends f.mj.y${constructor(c){super(c);this.lm=new b.Xpa(c)}nV(){e.Ca(!1);null!=this.Cb&&this.Cb()}Z4(c){var d=c.find("DIMENSION_UNIQUE_NAME").text(),g=c.find("HIERARCHY_UNIQUE_NAME").text(),k=c.find("LEVEL_UNIQUE_NAME").text(),m=c.find("PROPERTY_CAPTION").text();c.find("PROPERTY_TYPE").text();c=c.find("PROPERTY_NAME").text();d=this.wa.O.$p(d);null!=d&&(g=d.uh(g),null!=g&&(k=g.Ou(k),null!=k&&(m=new l.O.xX(c,m),k.B_(m))))}}b.Ypa=
a})(f.pq||(f.pq={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a{constructor(c,d){this.slice=c;this.Ab=d}get cF(){return this.Ab&&this.Ab.Nm?!0:!1}qU(){return 0<this.slice.td(l.i.ha.Oa).ld.length}rU(){return 0<this.slice.td(l.i.ha.Ia).ld.length}SW(c){return c=c.replace(/[\]|\[]/g,"")}BE(c){-1<c.indexOf("'")&&(c=c.replace(RegExp("'","g"),"''"));return c}ML(c,d=!1){var g=[];var k=0!=c.eb.length||c.Xh?c.eb:c.nv(c.ua.fa(1).A);for(var m=c.vr(k),n=[],p,t=0;t<k.length;t++)if(p=c.za(k[t]),!e.ka(p.A)){g.push(p.A);
if(p.eh||this.slice.hf||this.slice.Xf)d?g.push(e.P.bind("Descendants({0})",p.A)):g.push(e.P.bind("{0}.CHILDREN",p.A));for(;null!=p.parent;){p=p.parent;for(var r=p.Ow,v=[],y=0;y<r.length;y++){var A=c.za(r[y]).A;-1<m.indexOf(A)&&v.push(A)}r=!c.Xh&&p.dc?c.Km():p.pba;if(c.type==l.i.Ic.Ua&&!c.Xh){if(p.dc)continue;r=p.A}-1==n.indexOf(r)&&n.push(r);this.nd.Bb(r)||c.Ts||this.nd.Ta(r,v.join(","))}}d=this.SW(c.A)+"FilterSet";this.Rg.Ta(d,g.join(", "));c=this.SW(c.A)+"CalculatedSet";this.Rg.Ta(c,n.join(", "));
return["["+d+"]","["+c+"]"]}NL(c,d,g){if(g)if(c.filter.Gh){var k=this.ML(c,!0);g=k[0];k=k[1];d=e.P.bind("Hierarchize(Distinct(Union({0}, {1})))",g,k)}else d="Hierarchize({"+c.A+".AllMembers})";else{var m=c.Xh?e.P.bind("Union({{0}}, {1}.levels(1).AllMembers)",c.Lm,c.A):c.type==l.i.Ic.Ua?e.P.bind("{0}.levels(0).AllMembers",c.A):e.P.bind("Union({{0}}, {1}.levels(0).AllMembers)",c.Km(),c.A);var n=this.Fwa(c);c.filter.Gh||!c.Xh&&c.type!=l.i.Ic.Ua?(k=this.ML(c,d&&0<n.length),g=k[0],k=k[1],d=d?0<n.length?
e.P.bind("Hierarchize(Distinct(Union(Intersect({0}, Union({1}, {3})), {2})))",g,n,k,m):e.P.bind("Hierarchize(Distinct(Union({0}, {1})))",g,k):c.Km()):d=d?0<n.length?e.P.bind("Hierarchize(Distinct(Union({0}, {1})))",m,n):m:e.P.bind("{0}.levels(0).AllMembers",c.A)}c="set_"+this.slice.vc().indexOf(c.A)+"_set";this.Rg.Ta(c,d);return"["+c+"]"}Fwa(c){for(var d=[],g=1;g<c.ua.length;g++){var k=c.ua.fa(g);c.ic&&c.ic.A==k.A&&d.push(e.P.bind("Descendants({{0}}, {1}, SELF_AND_BEFORE)",c.Js,c.ic.A));k=c.gM(k);
if(0!=k.length)for(var m=0;m<k.length;m++){var n=c.za(k[m]);c.type!=l.i.Ic.Ua||c.Xh?d.push(e.P.bind("{0}.CHILDREN",n.A)):(n=c.vr(n.children),d.push(e.P.bind("{"+n.join(","))+"}"))}}return 0<d.length?(c=this.SW(c.A)+"DrilledSet",this.Rg.Ta(c,d.join(",")),"["+c+"]"):""}gz(c,d){for(var g="",k=0;k<c.length;k++){var m=c[k].slice(1);m=this.Sp(m,d);""!=m&&(g=g?e.P.bind("Union({0}, {1})",m,g):m)}return g}Sp(c,d){for(var g="",k=d.length-1;0<=k;k--){var m=d.fa(k);if(null!=c[k]){var n=m.za(c[k]);if(null==n){g=
"";break}m.filter.Gh?(m=this.ML(m,!0),n=e.P.bind("Hierarchize(Distinct(Union(Intersect({{0}}, {1}), {2})))",n.A,m[0],m[1])):n="{"+n.A+"}"}else n=c.length==k?this.NL(m,!0,!1):this.NL(m,!1,!1);g=k==d.length-1?n:e.P.bind("CrossJoin({{0}}, {{1}})",n,g)}return g}KL(c){var d=[];for(var g=this.slice.gd(),k=0;k<g.length;k++)d.push("isEmpty("+g[k].A+")");d=d.join(" and ");g="";for(k=0;k<c.length;k++){var m=c.fa(k);m=this.NL(m,this.slice.lf||this.slice.kf||0==k,this.slice.hf||this.slice.Xf);m="Filter("+m+", not ("+
d+"))";g=0<k?"Crossjoin("+g+","+m+")":m}return g}PC(){if(0<this.slice.Fb.length){var c=this.KL(this.slice.Fb);this.Rg.Ta("columnHierarchiesSet",c);c="";this.qU()&&(c=this.gz(this.slice.td(l.i.ha.Oa).ld,this.slice.Fb),0<c.length&&this.Rg.Ta("columnExpandedSet",c));this.Rg.Ta("columnSet","Crossjoin("+(0<c.length?"Union([columnHierarchiesSet], [columnExpandedSet])":"[columnHierarchiesSet]")+", [measureSet])")}else this.Rg.Ta("columnSet","[measureSet]")}SC(){if(0<this.slice.wb.length){var c=this.KL(this.slice.wb);
this.Rg.Ta("rowHierarchiesSet",c);c="";this.rU()&&(c=this.gz(this.slice.td(l.i.ha.Ia).ld,this.slice.wb),0<c.length&&this.Rg.Ta("rowExpandedSet",c));this.Rg.Ta("rowSet",0<c.length?"Union([rowHierarchiesSet], [rowExpandedSet])":"[rowHierarchiesSet]")}}h1(c){0<this.slice.Fb.length?(c=this.Sp(c,this.slice.Fb),this.Rg.Ta("columnSet","Crossjoin("+c+", [measureSet])")):this.Rg.Ta("columnSet","[measureSet]")}l1(c){0<this.slice.wb.length&&(c=this.Sp(c,this.slice.wb),this.Rg.Ta("rowSet",c))}U0(c,d){0<this.slice.Fb.length?
(c=this.ida(c,d,this.slice.Fb),this.Rg.Ta("columnSet","Crossjoin("+c+", [measureSet])")):this.Rg.Ta("columnSet","[measureSet]")}V0(c,d){0<this.slice.wb.length&&(c=this.ida(c,d,this.slice.wb),this.Rg.Ta("rowSet",c))}ida(c,d,g){var k=[];for(var m=this.slice.gd(),n=0;n<m.length;n++)k.push("isEmpty("+m[n].A+")");k=k.join(" and ");m="";for(n=g.length-1;0<=n;n--){var p=g.fa(n);if(d.hierarchy.A==p.A)if(p.filter.Gh){var t=this.ML(p,!0);p=t[0];t=t[1];var r=e.P.bind("Hierarchize(Distinct(Union(Intersect({0}.CHILDREN, {1}), {2})))",
d.A,p,t)}else r=this.NL(p,!0,!1),r=e.P.bind("Intersect({0}.CHILDREN, {{1}})",d.A,r);else if(null!=c[n]){r=p.za(c[n]);if(null==r){m="";break}p.filter.Gh?(t=this.ML(p,!0),p=t[0],t=t[1],r=e.P.bind("Hierarchize(Distinct(Union(Intersect({{0}}, {1}), {2})))",r.A,p,t)):r="{"+r.A+"}"}else r=this.NL(p,!1,!1);r="Filter("+r+", not ("+k+"))";m=n==g.length-1?r:e.P.bind("CrossJoin({{0}}, {{1}})",r,m)}return m}l0(){for(var c="",d=[],g=0;g<this.slice.qb.length;g++){var k=this.slice.qb.fa(g);k.filter.Gh&&(this.nd.Ta(k.Km(),
k.vr(k.eb).join(",")),d.push(k.Km()))}0<d.length&&(c=e.P.bind("where ({0})",d.join(", ")));return c}Lo(){for(var c=[],d=0;d<this.slice.Hr.length;d++)c.push(this.slice.Hr[d].A);this.Rg.Ta("measureSet",c.join(", "))}TC(){for(var c="with",d=0;d<this.Rg.length;d++)c+=e.P.bind(" set [{0}] as '{{1}}'",this.BE(this.Rg.Uh(d)),this.BE(this.Rg.fa(d)));for(d=0;d<this.nd.length;d++)c+=e.P.bind(" member {0} as 'Aggregate({{1}})'",this.BE(this.nd.Uh(d)),this.BE(this.nd.fa(d)));return c}select(){this.Rg=new e.ub;
this.nd=new e.ub;this.Lo();this.PC();this.SC();var c=this.l0();var d=this.cF?this.Rg.Bb("rowSet")?", NON EMPTY _ROWS_TOKEN_START_[rowSet]_ROWS_TOKEN_END_ DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"":this.Rg.Bb("rowSet")?", NON EMPTY [rowSet] DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"";var g=this.TC();return e.P.bind("{0} Select {1} {2} FROM [{3}] {4} CELL PROPERTIES VALUE",g,"NON EMPTY [columnSet] DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON COLUMNS",
d,this.Ab.wa,c)}expand(c,d){this.Rg=new e.ub;this.nd=new e.ub;this.Lo();c==l.i.ha.Ia?(this.PC(),this.l1(d)):(this.h1(d),this.SC());c=this.l0();d=this.cF?this.Rg.Bb("rowSet")?", NON EMPTY _ROWS_TOKEN_START_[rowSet]_ROWS_TOKEN_END_ DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"":this.Rg.Bb("rowSet")?", NON EMPTY [rowSet] DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"";var g=this.TC();return e.P.bind("{0} Select {1} {2} FROM [{3}] {4} CELL PROPERTIES VALUE",
g,"NON EMPTY [columnSet] DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON COLUMNS",d,this.Ab.wa,c)}Ee(c,d,g){this.Rg=new e.ub;this.nd=new e.ub;this.Lo();c==l.i.ha.Ia?(this.PC(),this.V0(d,g)):(this.U0(d,g),this.SC());c=this.l0();d=this.cF?this.Rg.Bb("rowSet")?", NON EMPTY _ROWS_TOKEN_START_[rowSet]_ROWS_TOKEN_END_ DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"":this.Rg.Bb("rowSet")?", NON EMPTY [rowSet] DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":
"";g=this.TC();return e.P.bind("{0} Select {1} {2} FROM [{3}] {4} CELL PROPERTIES VALUE",g,"NON EMPTY [columnSet] DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON COLUMNS",d,this.Ab.wa,c)}cd(){return""}}b.mY=a})(f.pq||(f.pq={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){(function(a){class c extends f.O.wY{constructor(){super(...arguments);this.Tl=new u.HQ(!1);this.Ky=new u.HQ}Km(d="(Total)"){if(this.Xh)return this.Lm+".["+d+"]";var g=this.Js.split("].");g.pop();g.push("["+d+"]");return g.join("].")}AD(){return new a.Wpa(this)}Ib(d){d=this.Tl.find(d);return-1==d?null:this.za(d)}}a.A9=c})(b.O||(b.O={}))})(f.pq||(f.pq={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){(function(a){class c extends f.O.F9{get Hh(){return this.level.ev?!0:this.hierarchy.tN||this.hierarchy.Ts||this.level.ev?(this.eh||!this.Cf)&&0==this.children.length:!1}set Hh(d){}}a.Wpa=c})(b.O||(b.O={}))})(f.pq||(f.pq={}))})(h.Hb||(h.Hb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.TA{constructor(c,d=""){super(c,d)}}b.Uma=a})(f.O||(f.O={}))})(h.Ue||(h.Ue={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.Ct{constructor(c,d=""){super(c,d);this.Xfa=!1;this.lG=this.Eha="";c=new b.U7(c+".[(all)]","All",0);this.Sh(c);this.Js=this.Lm="(all member)";c=new l.O.be({A:"(all member)",caption:"All",dc:!0});this.pc(c)}AD(){return new b.Wma(this)}pc(c){void 0!==c.caption&&e.ka(c.caption)?c.caption=e.model.B.j.Nl:e.ka(c.A)&&(c.caption=e.model.B.j.Nl);return super.pc(c)}za(c){return super.za(c)}get inputType(){return this.lG}set inputType(c){this.lG=
c}lj(){const c=super.lj();c.type=this.inputType;return c}}b.Vma=a})(f.O||(f.O={}))})(h.Ue||(h.Ue={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.Dv{constructor(c,d="",g=0){super(c,d,g)}}b.U7=a})(f.O||(f.O={}))})(h.Ue||(h.Ue={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.Vr{constructor(c,d=""){super(c,d)}get lk(){return this.Qa?[]:this.type==l.i.Ra.jb?l.i.ea.$ka:l.i.ea.ala}set lk(c){}get caption(){if(0==e.model.C.F.Tx)return this.yc;switch(this.$){case l.i.ea.wc:return e.P.bind(e.model.B.j.fP,this.yc);case l.i.ea.Mt:return e.P.bind(e.model.B.j.tQ,this.yc);case l.i.ea.pj:return e.P.bind(e.model.B.j.pP,this.yc);case l.i.ea.Hq:return e.P.bind(e.model.B.j.ZO,this.yc);case l.i.ea.Uv:return e.P.bind(e.model.B.j.CQ,
this.yc);case l.i.ea.Vv:return e.P.bind(e.model.B.j.DQ,this.yc);case l.i.ea.MAX:return e.P.bind(e.model.B.j.dQ,this.yc);case l.i.ea.MIN:return e.P.bind(e.model.B.j.mQ,this.yc);case l.i.ea.cs:return e.P.bind(e.model.B.j.iK,this.yc);case l.i.ea.Cp:return e.P.bind(e.model.B.j.cK,this.yc);case l.i.ea.Rq:return e.P.bind(e.model.B.j.hK,this.yc);case l.i.ea.Pq:return e.P.bind(e.model.B.j.fK,this.yc);case l.i.ea.Qq:return e.P.bind(e.model.B.j.gK,this.yc);case l.i.ea.Si:return e.P.bind(e.model.B.j.QJ,this.yc);
case l.i.ea.tn:return e.P.bind(e.model.B.j.vQ,this.yc);case l.i.ea.so:return e.P.bind(e.model.B.j.xQ,this.yc);case l.i.ea.ko:return e.P.bind(e.model.B.j.wJ,this.yc);case l.i.ea.qn:return e.P.bind(e.model.B.j.xJ,this.yc);case l.i.ea.qo:return e.P.bind(e.model.B.j.dK,this.yc);case l.i.ea.sn:return e.P.bind(e.model.B.j.eK,this.yc);case l.i.ea.NONE:return this.yc}return e.P.bind(e.model.B.j.oK,this.yc)}set caption(c){""==c.trim()?this.yc=e.model.B.j.Nl:this.yc=c}get Bl(){return this.yc}set Bl(c){}w2(){var c=
new a("","");return this.format!=c.format||0==this.an?!1:!0}clone(){var c=new a(this.A);this.SL(c);return c}lj(){const c=super.lj(),d=l.Ma.R().O.Ok(this.A);e.v(d)?c.type=l.i.input.sa.jb:c.type=d.inputType;return c}}b.V7=a})(f.O||(f.O={}))})(h.Ue||(h.Ue={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.oJ{Sa(){var c=super.Sa();c.uniqueName=this.Fi;this.parent&&(c.parentMember=this.parent.Fi);return c}set caption(c){}get caption(){return this.hierarchy.zD(this.ordinal)}}b.Wma=a})(f.O||(f.O={}))})(h.Ue||(h.Ue={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.yX{constructor(){super();this.gC={};this.XB={};this.z_()}iL(c,d){this.gC[c]=this.uh(d);this.XB[d]=this.fd(c)}Ok(c){return this.gC[c]}nf(c){return this.XB[c]}Dx(c,d=null,g=!1){var k=d?d:new b.V7(c.uniqueName);return super.Dx(c,k,e.v(d)||g)}clear(){this.gC={};this.XB={};super.clear()}}b.Yma=a})(f.O||(f.O={}))})(h.Ue||(h.Ue={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends l.O.Et{constructor(){super();this.node=null;this.index="";this.mapping=new f.wP;this.cf=null;this.Aa=l.i.ra.kg}isEqual(a){return a.connection&&a.connection===this.connection&&this.index==a.index?!0:super.isEqual(a)&&JSON.stringify(this.node)==JSON.stringify(a.node)&&this.index==a.index&&this.mapping.isEqual(a.mapping)&&JSON.stringify(this.cf)==JSON.stringify(a.cf)}get aI(){return!1}$w(a){if(!e.v(this.connection))return a(this.connection);
var c=new Pa.B7({host:this.node,headers:this.tc,withCredentials:this.withCredentials});a(c)}static xb(a){var c=new b;e.v(a.host)||(c.node=a.host);e.v(a.node)||(c.node=a.node);e.v(a.index)||(c.index=a.index);e.v(a.mapping)||(c.mapping=a.mapping instanceof f.wP?a.mapping:new f.wP(a.mapping));e.v(a.subquery)||(c.cf=a.subquery);e.v(a.connection)||(c.connection=a.connection);e.v(a.requestHeaders)||(c.tc=a.requestHeaders);e.v(a.withCredentials)||(c.withCredentials=a.withCredentials);return c}Sa(a=!1){var c=
{};c.type=this.Aa;e.v(this.node)||(c.node=this.node);e.v(this.index)||(c.index=this.index);if(!this.mapping.kb||this.mapping.$o)c.mapping=this.mapping.Sa(!0);e.v(this.cf)||(c.subquery=this.cf);if(a||this.withCredentials)c.withCredentials=this.withCredentials;return c}clone(){var a=new b;a.Aa=this.Aa;e.v(this.node)||(a.node=this.node);e.v(this.index)||(a.index=this.index);if(!this.mapping.kb||this.mapping.$o)a.mapping=this.mapping.clone(this.Aa);e.v(this.cf)||(a.cf=this.cf);e.v(this.withCredentials)||
(a.withCredentials=this.withCredentials);return a}}f.T7=b})(h.Ue||(h.Ue={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(a,c){this.slice=a;this.la=c}select(){var a={size:0};e.v(this.la.cf)||(a.query=u.Hc.zj(this.la.cf));var c=this.slice.wb.Pc(),d=this.slice.Fb.Pc();this.slice.lf||(c=c.slice(0,1));this.slice.kf||(d=d.slice(0,1));this.Rp(a);0==c.length&&0==d.length?this.Lo(a,this.slice.gd(),!0):this.Hw(a,c.concat(d));0<d.length&&this.Hw(a,d.concat(c),!0);return a}expand(a,c){var d={size:0};e.v(this.la.cf)||(d.query=u.Hc.zj(this.la.cf));var g=a==l.i.ha.Ia;
a=this.slice.wb.Pc();var k=this.slice.Fb.Pc();this.Rp(d);this.Sp(d,c,g?a:k);if(this.slice.lf||this.slice.kf)return this.Hw(d,a.concat(k)),0<k.length&&this.Hw(d,k.concat(a),!0),d;var m=[];if(g){c=c.length+1;var n=this.Dea(l.i.ha.Oa),p=this.bfa(this.slice.td(l.i.ha.Oa).ld);for(g=1;g<=n;g++)if(!e.v(p[g])||1==g){var t=u.Hc.zj(d);1!=g&&this.gz(t,p[g],k);var r=a.slice(0,c),v=k.slice(0,g);this.Hw(t,r.concat(v));m.push(t)}}else for(g=c.length+1,n=this.Dea(l.i.ha.Ia),p=this.bfa(this.slice.td(l.i.ha.Ia).ld),
c=1;c<=n;c++)e.v(p[c])&&1!=c||(t=u.Hc.zj(d),1!=c&&this.gz(t,p[c],a),r=a.slice(0,c),v=k.slice(0,g),this.Hw(t,r.concat(v)),0<v.length&&this.Hw(t,v.concat(r),!0),m.push(t));return m}bfa(a){for(var c={},d=0;d<a.length;d++){var g=a[d].length;e.v(c[g])&&(c[g]=[]);c[g].push(a[d])}return c}cd(a,c,d,g=null){d={size:e.model.C.F.kH};e.v(this.la.cf)||(d.query=u.Hc.zj(this.la.cf));d._source=g.map(k=>{let m=this.slice.Yc.uh(k);return m&&m.Xfa?m.Eha:k});this.Rp(d);this.Sp(d,a,this.slice.wb.Pc());this.Sp(d,c,this.slice.Fb.Pc());
return d}B0(a){e.v(a.query)&&(a.query={});e.v(a.query.bool)&&(a.query.bool={});e.v(a.query.bool.must)?a.query.bool.must=[]:Array.isArray(a.query.bool.must)||(a.query.bool.must=[a.query.bool.must]);e.v(a.query.bool.must_not)?a.query.bool.must_not=[]:Array.isArray(a.query.bool.must_not)||(a.query.bool.must_not=[a.query.bool.must_not])}Sp(a,c,d){this.B0(a);c.forEach((g,k)=>{k=d[k];g=k.za(g);a.query.bool.must.push(this.OL(k,g))})}Ee(){return null}Dea(a){a=this.slice.td(a).ld;return 0<a.length?Math.max.apply(Math,
a.map(c=>c.length)):1}gz(a,c,d){var g={bool:{should:[]}};c.forEach(k=>{k=k.slice(1);d.forEach((m,n)=>{null!=k[n]&&(n=m.za(k[n]),g.bool.should.push(this.OL(m,n)))})});a.query.bool.must.push(g)}qU(){return 0<this.slice.td(l.i.ha.Oa).ld.length}rU(){return 0<this.slice.td(l.i.ha.Ia).ld.length}Hw(a,c,d=!1){for(var g=this.slice.gd(),k=0;k<c.length;k++)if(this.Lo(a,g,!0),!d||k!=c.length-1){var m=c[k];this.Kwa(a,m);a=a.aggs[m.A]}d||this.Lo(a,g)}Kwa(a,c){e.v(a.aggs)&&(a.aggs={});e.v(a.aggs[c.A])&&(a.aggs[c.A]=
{});if(c.type==l.i.Ic.Ua){const d={field:c.A,min_doc_count:this.la.mapping.La(c.A,"min_doc_count"),time_zone:this.la.mapping.La(c.A,"time_zone"),format:this.la.mapping.La(c.A,"format",e.model.C.F.Up)};this.la.mapping.XH(c.A,"interval")?d.interval=this.la.mapping.La(c.A,"interval"):this.la.mapping.XH(c.A,"fixed_interval")?d.fixed_interval=this.la.mapping.La(c.A,"fixed_interval"):d.calendar_interval=this.la.mapping.La(c.A,"calendar_interval");a.aggs[c.A].date_histogram=d}else a.aggs[c.A].terms={field:c.A,
size:c.fn}}Lo(a,c,d=!1){e.v(a.aggs)&&(a.aggs={});c.forEach(g=>{a.aggs[(d?"total_":"")+(g.$+"_")+g.A]={[this.RAa(g)]:{field:g.A}}})}RAa(a){if(a.$!=l.i.ea.Sq){if(a.$==l.i.ea.Hq)return"avg";if(a.$==l.i.ea.wc)return"value_count";if(a.$==l.i.ea.pj)return"cardinality";if(a.$==l.i.ea.MIN)return"min";if(a.$==l.i.ea.MAX)return"max"}return"sum"}Rp(a){this.slice.qb.Pc().forEach(c=>this.LL(a,c));this.slice.Fb.Pc().forEach(c=>this.LL(a,c));this.slice.wb.Pc().forEach(c=>this.LL(a,c))}LL(a,c){if(c.filter.Gh){this.B0(a);
const m={bool:{should:[]}};for(var d=c.filter.Hi(c.filter.Z2),g=0;g<d.length;g++){var k=c.za(d[g]);m.bool.should.push(this.OL(c,k))}a.query.bool[c.filter.Z2?"must_not":"must"].push(m)}else if(c.filter.mx||c.filter.hN||c.filter.Pz)this.B0(a),d={bool:{should:[]}},c=c.filter.Pz?this.Awa(c):this.Nwa(c),d.bool.should.push(c),a.query.bool[c.isExclude?"must_not":"must"].push(d),delete c.isExclude}Awa(a){const c={},d=0<=l.i.cc.zy.indexOf(a.filter.query.va)?a.filter.query.MS(a.getTimezoneOffset()):a.filter.query;
if(l.i.cc.EQUAL===d.va||l.i.cc.Tf===d.va){var g=d.value;c.range={[a.A]:{gte:g.format("yyyy-MM-dd"),lt:g.format("yyyy-MM-dd")+"||+1d/d"}};c.isExclude=l.i.cc.Tf===d.va}else if(l.i.cc.iF===d.va)c.range={[a.A]:{lt:d.value.format("yyyy-MM-dd")}},c.isExclude=!1;else if(l.i.cc.jF===d.va)c.range={[a.A]:{lt:d.value.format("yyyy-MM-dd")+"||+1d/d"}},c.isExclude=!1;else if(l.i.cc.fF===d.va)c.range={[a.A]:{gte:d.value.format("yyyy-MM-dd")+"||+1d/d"}},c.isExclude=!1;else if(l.i.cc.gF===d.va)c.range={[a.A]:{gte:d.value.format("yyyy-MM-dd")}},
c.isExclude=!1;else if(l.i.cc.mh===d.va||l.i.cc.Tg===d.va)g=d.value[1],c.range={[a.A]:{gte:d.value[0].format("yyyy-MM-dd"),lte:g.format("yyyy-MM-dd")}},c.isExclude=l.i.cc.Tg===d.va;return c}Nwa(a){const c={},d=a.filter.query;if(l.i.Eb.kF===d.va||l.i.Eb.rB===d.va)c.prefix={[a.A]:d.value},c.isExclude=l.i.Eb.rB===d.va;else if(l.i.Eb.EQUAL===d.va||l.i.Eb.Tf===d.va)c.match={[a.A]:d.value},c.isExclude=l.i.Eb.Tf===d.va;else if(l.i.Eb.eB===d.va||l.i.Eb.tB===d.va)c.wildcard={[a.A]:"*"+d.value},c.isExclude=
l.i.Eb.tB===d.va;else if(l.i.Eb.ho===d.va||l.i.Eb.sB===d.va)c.wildcard={[a.A]:"*"+d.value+"*"},c.isExclude=l.i.Eb.sB===d.va;else if(l.i.Eb.GREATER===d.va)c.range={[a.A]:{gt:d.value}},c.isExclude=!1;else if(l.i.Eb.dl===d.va)c.range={[a.A]:{gte:d.value}},c.isExclude=!1;else if(l.i.Eb.LESS===d.va)c.range={[a.A]:{lt:d.value}},c.isExclude=!1;else if(l.i.Eb.gl===d.va)c.range={[a.A]:{lte:d.value}},c.isExclude=!1;else if(l.i.Eb.mh===d.va||l.i.Eb.Tg===d.va)c.range={[a.A]:{gte:d.value[0],lte:d.value[1]}},c.isExclude=
l.i.Eb.Tg===d.va;return c}OL(a,c){if(a.type==l.i.Ic.Ua){let d=this.la.mapping.La(a.A,"calendar_interval");this.la.mapping.XH(a.A,"interval")?d=this.la.mapping.La(a.A,"interval"):this.la.mapping.XH(a.A,"fixed_interval")&&(d=this.la.mapping.La(a.A,"fixed_interval"));return{range:{[a.A]:{gte:c.nc,lt:e.gL(new Date(c.nc),d).getTime()}}}}return{term:{[a.A]:c.caption}}}}f.Xma=b})(h.Ue||(h.Ue={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));var Pa;
(function(e){class l extends z.tk{constructor(f){super();f||(f={host:"http://localhost:9200"});this.host="string"===typeof f.host?new h(f.host):h.xb(f.host);f.headers&&(this.host.headers=f.headers);this.contentType=z.Ft.qX;this.withCredentials=f.withCredentials}p_(f,b=q.model.B.j.kQ){this.Uja=()=>{this.rb(w.ia.Qc,this.Uja);f(null,JSON.parse(this.response))};this.N(w.ia.Qc,this.Uja);this.tda=()=>{this.rb(w.ia.xa,this.tda);let a=b;try{const c=JSON.parse(this.response);c&&c.message?a=c.message:c&&c.error&&
c.error.reason&&(a=c.error.reason)}catch(c){}a=q.model.Tb.valid(a)?a:q.model.Tb.validate(a);f({message:a},null)};this.N(w.ia.xa,this.tda)}search(f,b){this.p_(b);this.Ir=z.Qt.Rv;this.$h(this.host.headers);this.data="string"===typeof f.body?f.body:JSON.stringify(f.body);this.load(this.host.qV(`/${f.index}/_search`));this.data=null}V1(f){this.p_(f,this.lea());this.Ir=z.Qt.dY;this.$h(this.host.headers);this.load(this.host.qV("/_cat/indices?format=json"))}RBa(f,b){this.p_(b,this.lea());this.Ir=z.Qt.dY;
this.$h(this.host.headers);this.load(this.host.qV(`/${f}/_mapping`))}lea(){const f=q.model.B.j.zpa;let b=this.host.qV();b=q.model.Tb.valid(b)?b:q.model.Tb.validate(b);return q.P.bind(f,b)}}e.B7=l;class h{constructor(f){q.ka(f)||this.$da(f)}$da(f){f=q.KJa(f);this.host=f.hostname;this.protocol=f.protocol;this.port=f.port;this.path=f.pathname}qV(f=""){this.host&&-1<this.host.indexOf("http")&&this.$da(this.host);var b="";this.port!==h.nya[this.protocol]&&(b=":"+this.port);var a=q.ka(this.path)?"":this.path;
"/"!==a.charAt(0)&&(a="/"+a);var c=q.ka(this.protocol)?"http":this.protocol;b=this.host?c+"://"+this.host+b+a:a;"/"==b.charAt(b.length-1)&&(b=b.substr(0,b.length-1));return b+f}static xb(f){var b=new h;b.headers=f.headers;b.host=f.host;b.path=f.path;b.port=f.port;b.protocol=f.protocol;return b}}h.nya={http:80,https:443}})(Pa||(Pa={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){if(null!=b.instance)throw Error("Singleton");}static R(){null==b.instance&&(b.instance=new b);return b.instance}static dispose(){b.instance=null}V1(a,c){(new Pa.B7(a)).V1((d,g)=>{if(d)return e.Va(d.message,e.model.B.j.xa,e.ob.xa),c(d,g);if(e.v(g))return console.warn("ESConnector: empty response"),c(d,g);d=g.map(k=>k.index).filter(k=>0>k.indexOf(".kibana")&&0>k.indexOf(".security"));c(null,d)})}}f.Rma=b})(h.Ue||(h.Ue={}))})(l.external||
(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){this.wa=l.Ma.R();this.ta=this.wa.ta}load(a,c,d,g){this.la=a;this.query=c;this.Cb=d;this.Xa=g;this.la.$w(k=>{this.Qo=k;this.Ax()})}g6(a,c,d,g=!1){for(var k in c){var m=this.wa.O.uh(k),n=Math.ceil(m.fn/b.bK);if(1==n)m=u.Hc.jz(c),delete m[k],this.g6(a,m,d);else for(var p=0;p<n;p++)c[k].forEach(t=>{t.include={partition:p,num_partitions:n}}),d.push(JSON.stringify(a)),m=u.Hc.jz(c),delete m[k],this.g6(a,m,d);if(g)break}return d}Qda(a,
c){for(var d in a){var g=this.wa.O.uh(d);e.v(g)||(e.v(a[d].terms)||(e.v(c[d])&&(c[d]=[]),c[d].push(a[d].terms)),a[d].aggs&&this.Qda(a[d].aggs,c))}return c}Ax(){e.Ca(!0,e.model.B.j.mg);if(this.query.type==l.i.Md.to){var a=this.Qda(this.query.body.aggs,{}),c=this.g6(this.query.body,a,[],!0);0==c.length&&c.push(JSON.stringify(this.query.body));var d=new u.FB;c.forEach((g,k)=>{d.add(m=>this.A3(g,k,c.length,m))});d.Ze(()=>{null!=this.Cb&&this.Cb();e.Ca(!1)})}else Array.isArray(this.query.body)?(d=new u.FB,
this.query.body.forEach(g=>{d.add(k=>this.A3(g,0,0,k))}),d.Ze(()=>{null!=this.Cb&&this.Cb();e.Ca(!1)})):this.A3(this.query.body,0,0,()=>{null!=this.Cb&&this.Cb();e.Ca(!1)})}A3(a,c,d,g){0<c&&e.Ca(!0,e.model.B.j.mg,(c/d*100).toFixed(0)+"%");this.Qo.search({index:this.la.index,body:a},(k,m)=>{if(k)return this.Rb(k.message,this.Xa),g();k=this.wa.qa.wb.Pc();var n=this.wa.qa.Fb.Pc();this.query.type==l.i.Md.to&&(this.wa.qa.lf||(k=k.slice(0,1)),this.wa.qa.kf||(n=n.slice(0,1)));var p=this.wa.qa.gd();this.X4(m.aggregations,
k.concat(n),p,0,[],[]);0<n.length&&this.Hha(m.aggregations,n.concat(k),p,0,[],[]);g()})}X4(a,c,d,g,k,m){const n=c[g];if(n&&a.hasOwnProperty(n.A))a[n.A].buckets.forEach(t=>{var r=null;n.type==l.i.Ic.Ua&&(r=n.Pu(t.key));e.v(r)&&(r=n.Ib(t.key_as_string||""+t.key));const v=k.slice(),y=m.slice();r&&this.wa.qa.rows.Bb(n.A)?v.push(r.ordinal):r&&y.push(r.ordinal);this.kfa(t,d)?(r=d.map(A=>this.c5(t,A)),this.ta.insert(v,y,r)):this.X4(t,c,d,g+1,v,y)});else if(g<c.length){var p=k.slice();const t=m.slice();this.wa.qa.rows.Bb(n.A)?
p.push(null):t.push(null);this.X4(a,c,d,g+1,p,t)}p=d.map(t=>this.c5(a,t,!0));this.ta.BA(k,m,p)}c5(a,c,d=!1){if(0==a.doc_count)return c.$==l.i.ea.wc||c.$==l.i.ea.pj?0:NaN;c=(d?"total_":"")+c.$+"_"+c.A;return e.v(a[c])?NaN:a[c].value}Hha(a,c,d,g,k,m){const n=c[g];e.v(a[n.A])||a[n.A].buckets.forEach(p=>{const t=l.i.Ic.Ua==n.type?n.Ib(""+p.key):n.Ib(p.key_as_string||""+p.key),r=k.slice(),v=m.slice();this.wa.qa.rows.Bb(n.A)?r.push(t.ordinal):v.push(t.ordinal);let y;this.kfa(p,d,!0)&&(y=d.map(A=>this.c5(p,
A,!0)));this.ta.BA(r,v,y);g<c.length-2&&this.Hha(p,c,d,g+1,r,v)})}sU(a,c){return c&&a.hasOwnProperty(c.A)}kfa(a,c,d=!1){return(c=c[0])&&a.hasOwnProperty((d?"total_":"")+c.$+"_"+c.A)}cd(a,c,d,g,k,m,n){e.Ca(!0,e.model.B.j.mg,e.model.B.j.mg);a.$w(p=>{this.Qo=p;this.Qo.search({index:a.index,body:c.body},(t,r)=>{if(t)return this.Rb(t.message,n);var v=r.hits.hits.map(A=>A._source),y=c.body._source;v.forEach((A,C)=>{v[C]=y.map(B=>u.Hc.resolve(B,A))});v.unshift(y);m(v)})})}cancel(){this.Qo&&this.la&&!this.la.connection&&
this.Qo.close();this.Xa=this.Cb=this.la=this.wa=this.Qo=null}Rb(a,c){console.error(a);e.Ca(!1);e.Va(a,e.model.B.j.xa,e.ob.xa);e.Pg(c)&&c(a)}}b.bK=5E4;f.Sma=b})(h.Ue||(h.Ue={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends h.UX{La(a,c,d){a=this.Bs(a,c);d=this.ii(d);return e.v(this.values[a])?NaN:e.v(this.values[a][d])?NaN:this.values[a][d]}BA(a,c,d){a=this.Bs(a,c);e.v(this.values[a])&&(this.values[a]=d)}Wg(a,c){return null==a||0==a.length?NaN:this.Kc[c][a[0]]}Pea(a,c){var d=a.slice(0);a=a.indexOf(null);0<a&&(d.length=a);d[d.length-1]=0;return this.md(d,c)}insert(a,c,d){for(;a.length<this.Zh.length;)a.push(null);for(;c.length<this.xj.length;)c.push(null);
var g=a.concat(c);if(!(-1<g.indexOf(0))){if(0==this.zb.length)for(var k=0;k<g.length;k++)this.zb[k]=[];(k=this.Pea(a,this.Cd))&&k[0]&&k[0].push(this.HA);(k=this.Pea(c,this.Od))&&k[0]&&k[0].push(this.HA);this.qh=e.Ja.Pr(this.qh,this.HA);for(k=0;k<g.length;k++)this.zb[k]=e.Ja.Pr(this.zb[k],g[k]);if(0==this.Kc.length)for(k=0;k<d.length;k++)this.Kc[k]=[];for(k=0;k<d.length;k++)this.Kc[k]=e.Ja.Pr(this.Kc[k],d[k]);this.values[this.Bs(a,c)]=d}}filter(){}}f.Tma=b})(h.Ue||(h.Ue={}))})(l.external||(l.external=
{}))})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){(function(h){(function(f){class b extends l.O.Bm{constructor(a=null){super(a);this.Gu={};this.Gu.calendar_interval="day";this.Gu.min_doc_count=1;this.Gu.filters=!0}}f.wP=b})(h.Ue||(h.Ue={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(a){this.wa=l.Ma.R();this.bK=1E5;this.la=a}load(a,c,d,g){this.Cb=c;this.Re=g;this.Xa=d;e.Ca(!0,e.model.B.j.IF);a.$w(k=>{this.Qo=k;this.I3()})}I3(){this.Qo.RBa(this.la.index,(a,c)=>{if(a)return this.Rb(a.message,this.Xa);e.Pg(this.Re)&&this.Re();for(var d in c){a=c[d].mappings;for(var g in a)"properties"==g?this.wI(a[g]):this.wI(a[g].properties)}this.Dr()})}wI(a,c=null,d="",g="",k=""){for(var m in a)if(this.la.mapping.La(d+m,"visible",
!0)){var n=a[m];if(this.JDa(n)){var p=c?c:this.mu(m,m);this.wI(n.properties,p,d+m+".",g,k+m+"/")}else if(this.tg(n)){p=c?c:this.mu(m,m);p=this.zi(p,d+m,m,n,k);var t=this.zk(d+m,m,n);this.wa.O.iL(t.A,p.A)}else if(this.Ef(n)){p=c?c:this.mu(m,m);t=m;var r=!e.ka(g);r&&(t="keyword"==m?g:g+" ("+m+")");p=this.zi(p,d+m,t,n,k);r&&(p.Xfa=!0,p.Eha=d.substr(0,d.length-1));t=this.zk(d+m,t,n);this.wa.O.iL(t.A,p.A)}e.v(n.fields)||(p=c?c:this.mu(m,m),this.wI(n.fields,p,d+m+".",m,k+m+"/"))}}mu(a,c){var d=this.wa.O.$p(a);
e.v(d)&&(c=this.la.mapping.La(a,"caption",c),d=new f.O.Uma(a,c),this.wa.O.mu(d));return d}zi(a,c,d,g,k=null){var m=a.uh(c);e.v(m)&&(d=this.la.mapping.La(c,"caption",d),m=new f.O.Vma(c,d),m.type=l.i.Ic.A1(g.type),m.inputType=g.type,a.zi(m),e.ka(k)?m.Oc=a.caption:("/"==k.charAt(k.length-1)&&(k=k.substr(0,k.length-1)),m.Oc=k),a=new f.O.U7(c,c,1),m.type==l.i.Ic.Ua?a.type=l.i.ib.Mc:m.type==l.i.Ic.yp&&(a.type=l.i.ib.jb),m.Sh(a));return m}zk(a,c,d){var g=this.wa.O.fd(a);e.v(g)&&(c=this.la.mapping.La(a,"caption",
c),g=new f.O.V7(a,c),g.type=l.i.Ra.A1(d.type),g.Wc=this.la.mapping.La(a,"aggregations"),this.wa.O.zk(g));return g}tg(a){return 0<=l.i.Ra.jM.indexOf(a.type)}JDa(a){return!e.v(a.properties)}Ef(a){return 0<=l.i.Ic.jM.indexOf(a.type)}Dr(){e.Ca(!1);null!=this.Cb&&this.Cb()}xl(a,c,d){e.Ca(!0,e.model.B.j.zm,a.caption);a.type==l.i.Ic.Ua?this.YEa(a,g=>{if(g)return this.Rb(g,d);a.Td=!0;e.Ca(!1);c(a)}):this.vxa(a,(g,k)=>{if(g)return this.Rb(g,d);0==k?(a.Td=!0,c(a)):this.Jga(a,0,Math.ceil(k/this.bK),k,m=>{if(m)return this.Rb(m,
d);a.Td=!0;e.Ca(!1);c(a)})})}vxa(a,c){a={size:0,aggs:{count:{cardinality:{field:a.A}}}};e.v(this.la.cf)||(a.query=u.Hc.zj(this.la.cf));this.Qo.search({index:this.la.index,body:a},(d,g)=>{if(d)return c(d.message);c(null,g.aggregations.count.value)})}Jga(a,c,d,g,k){var m={size:0,aggs:{[a.A]:{terms:{field:a.A,include:{partition:c,num_partitions:d},size:2*this.bK}}}};e.v(this.la.cf)||(m.query=u.Hc.zj(this.la.cf));this.Qo.search({index:this.la.index,body:m},(n,p)=>{if(n)return k(n.message);n=p.aggregations[a.A].buckets;
for(p=0;p<n.length;p++)this.pc(a,n[p].key_as_string||n[p].key,n[p].key);c<d-1?(e.Ca(!0,e.model.B.j.zm,e.P.bind("{0}: {1} of {2} loaded",a.caption,(c+1)*this.bK,g)),this.Jga(a,c+1,d,g,k)):k()})}YEa(a,c){var d={field:a.A,min_doc_count:this.la.mapping.La(a.A,"min_doc_count"),time_zone:this.la.mapping.La(a.A,"time_zone"),format:this.la.mapping.La(a.A,"format",e.model.C.F.Up)};this.la.mapping.XH(a.A,"interval")?d.interval=this.la.mapping.La(a.A,"interval"):this.la.mapping.XH(a.A,"fixed_interval")?d.fixed_interval=
this.la.mapping.La(a.A,"fixed_interval"):d.calendar_interval=this.la.mapping.La(a.A,"calendar_interval");d={size:0,aggs:{[a.A]:{date_histogram:d}}};e.v(this.la.cf)||(d.query=u.Hc.zj(this.la.cf));this.Qo.search({index:this.la.index,body:d},(g,k)=>{if(g)return c(g.message);g=k.aggregations[a.A].buckets;for(k=0;k<g.length;k++)this.pc(a,g[k].key_as_string,g[k].key);c()})}pc(a,c,d){"string"!=typeof c&&(c=""+c);const g="number"===typeof d?d:null;let k=a.type!==l.i.Ic.Ua?a.Ib(c):a.Pu(g);null==k?(c=a.type==
l.i.Ic.Ua?new l.O.be({A:String(g),caption:c,nc:g}):new l.O.be({A:c,nc:g}),k=a.pc(c)):k.nc!=d&&a.type==l.i.Ic.Ua&&(k=a.pc(new l.O.be({A:`${c}-${d}`,caption:c,nc:g})));return k}Nk(a,c,d,g){this.xl(a,d,g)}cA(){throw"Not Implemented";}Aq(){throw"Not Implemented";}BC(){return!1}cancel(){this.Qo&&this.la&&!this.la.connection&&this.Qo.close();this.Re=this.Xa=this.Cb=this.la=this.wa=this.Qo=null}Rb(a,c){console.error(a);e.Ca(!1);e.Va(a,e.model.B.j.xa,e.ob.xa);e.Pg(c)&&c(a)}}f.Zma=b})(h.Ue||(h.Ue={}))})(l.external||
(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends l.O.Et{constructor(){super();this.index=this.url=null;this.hp=!1;this.mapping=new f.XO;this.Tia="2.8.5";this.Iw=!1;this.Aa=l.i.ra.API}isEqual(a){return super.isEqual(a)&&this.url==a.url&&this.index==a.index&&this.hp==a.hp&&this.Iw==a.Iw&&this.mapping.isEqual(a.mapping)}get aI(){return!0}static xb(a){var c=new b;e.v(a.url)||""==a.url||(c.url=a.url);e.v(a.index)||(c.index=a.index.toString());e.v(a.requestHeaders)||(c.tc=a.requestHeaders);
e.v(a.mapping)||(c.mapping=a.mapping instanceof f.XO?a.mapping:new f.XO(a.mapping));e.v(a.withCredentials)||(c.withCredentials=a.withCredentials);e.v(a.singleEndpoint)||(c.hp=a.singleEndpoint);e.v(a.concurrentRequests)||(c.Iw=a.concurrentRequests);return c}Sa(a=!1){var c={};c.type=this.Aa;e.v(this.url)||(c.url=this.url);e.v(this.index)||(c.index=this.index);if(a||this.hp)c.singleEndpoint=this.hp;if(!this.mapping.kb||this.mapping.$o)c.mapping=this.mapping.Sa(!0);if(a||this.withCredentials)c.withCredentials=
this.withCredentials;if(a||this.Iw)c.concurrentRequests=this.Iw;return c}$w(){return new f.SA({url:this.url,hp:this.hp,tc:this.tc,withCredentials:this.withCredentials})}clone(){var a=new b;a.Aa=this.Aa;e.v(this.url)||(a.url=this.url);e.v(this.index)||(a.index=this.index);e.v(this.hp)||(a.hp=this.hp);if(!this.mapping.kb||this.mapping.$o)a.mapping=this.mapping.clone(this.Aa);this.withCredentials&&(a.withCredentials=this.withCredentials);this.Iw&&(a.Iw=this.Iw);return a}}f.N6=b})(h.jc||(h.jc={}))})(l.external||
(l.external={}))})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.TA{constructor(c,d=""){super(c,d)}}b.uNa=a})(f.O||(f.O={}))})(h.jc||(h.jc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.local.O.$P{constructor(c,d=""){super(c,d);this.tx=!1}AD(){return new b.Vka(this)}get u2(){return e.Pg(this.Xs)||this.tx}UW(c,d){return this.tx||0<c.tS.length?0<c.tS.length?this.aMa(c.tS.slice()):this.bMa(c.children):super.UW(c,d)}aMa(c){return this.Rh===l.i.Ba.hc?c:this.Rh===l.i.Ba.Nc?c.reverse():c}bMa(c){this.Rh===l.i.Ba.hc&&e.Ja.sort(c,e.Ja.Ti);this.Rh===l.i.Ba.Nc&&e.Ja.sort(c,e.Ja.tp|e.Ja.Ti);return c}clone(){var c=
super.clone();c.tx=this.tx;return c}get Td(){return this.ZB}set Td(c){this.ZB=c}}b.WO=a})(f.O||(f.O={}))})(h.jc||(h.jc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.local.O.aQ{constructor(c,d="",g=0){super(c,d,g)}}b.Uka=a})(f.O||(f.O={}))})(h.jc||(h.jc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.Vr{constructor(c,d=""){super(c,d);this.zG=[];this.fw=void 0}get fc(){return e.model.Tb.valid(this.yc)?this.yc:e.model.Tb.validate(this.yc)}get caption(){if(0==e.model.C.F.Tx)return this.fc;switch(this.$){case l.i.ea.Sq:return e.P.bind(e.model.B.j.oK,this.fc);case l.i.ea.wc:return e.P.bind(e.model.B.j.fP,this.fc);case l.i.ea.Mt:return e.P.bind(e.model.B.j.tQ,this.fc);case l.i.ea.pj:return e.P.bind(e.model.B.j.pP,this.fc);
case l.i.ea.Hq:return e.P.bind(e.model.B.j.ZO,this.fc);case l.i.ea.Pv:return e.P.bind(e.model.B.j.nY,this.fc);case l.i.ea.Uv:return e.P.bind(e.model.B.j.CQ,this.fc);case l.i.ea.Vv:return e.P.bind(e.model.B.j.DQ,this.fc);case l.i.ea.MAX:return e.P.bind(e.model.B.j.dQ,this.fc);case l.i.ea.MIN:return e.P.bind(e.model.B.j.mQ,this.fc);case l.i.ea.cs:return e.P.bind(e.model.B.j.iK,this.fc);case l.i.ea.Cp:return e.P.bind(e.model.B.j.cK,this.fc);case l.i.ea.Rq:return e.P.bind(e.model.B.j.hK,this.fc);case l.i.ea.Pq:return e.P.bind(e.model.B.j.fK,
this.fc);case l.i.ea.Qq:return e.P.bind(e.model.B.j.gK,this.fc);case l.i.ea.Si:return e.P.bind(e.model.B.j.QJ,this.fc);case l.i.ea.tn:return e.P.bind(e.model.B.j.vQ,this.fc);case l.i.ea.so:return e.P.bind(e.model.B.j.xQ,this.fc);case l.i.ea.ko:return e.P.bind(e.model.B.j.wJ,this.fc);case l.i.ea.qn:return e.P.bind(e.model.B.j.xJ,this.fc);case l.i.ea.qo:return e.P.bind(e.model.B.j.dK,this.fc);case l.i.ea.sn:return e.P.bind(e.model.B.j.eK,this.fc);case l.i.ea.NONE:return this.fc}return-1<l.i.ea.iP.indexOf(this.$)?
`${this.fc} (${this.$})`:e.P.bind(e.model.B.j.oK,this.fc)}set fq(c){this.dw=c}get fq(){return-1<l.i.ea.iP.indexOf(this.uk)?`${this.fc} (${this.uk})`:super.fq}set caption(c){this.yc=c}get Bl(){return this.yc}set Bl(c){}get lk(){return this.zG}set lk(c){this.zG=[];if(!e.v(c))for(var d=0;d<c.length;d++)if("string"==typeof c[d]){var g=c[d].trim().toLowerCase();l.i.ea.pz(g)&&(g=l.i.ea.Dz(g));l.i.ea.MA(g)&&this.zG.push(g)}}set Wc(c){if(e.v(c))this.wn=this.lk,this.type==l.i.Ra.jb&&0<this.wn.length&&(this.wn=
this.wn.concat(l.i.ea.RA));else{for(var d=[],g=0;g<c.length;g++){var k=c[g].trim().toLowerCase();l.i.ea.pz(k)&&(k=l.i.ea.Dz(k));(-1!==this.lk.indexOf(k)||this.type==l.i.Ra.jb&&-1!==l.i.ea.RA.indexOf(k))&&d.push(k)}this.wn=0<d.length?d:this.lk}this.fw=void 0;this.VCa(this.wn)||(this.wn=[])}get Wc(){return!1===this.fw||0<this.wn.length?this.wn:this.lk}VCa(c){if(void 0===this.fw){this.fw=!1;for(var d=0;d<c.length;d++)if(l.i.ea.BU(c[d])){this.fw=!0;break}}return this.fw}w2(){var c=new a("","");return this.Ge!=
c.Ge||this.format!=c.format||0==this.an?!1:!0}clone(){var c=new a(this.A);this.SL(c);void 0!=this.zG&&(c.zG=this.zG.slice());void 0!=this.fw&&(c.fw=this.fw);return c}}b.Q6=a})(f.O||(f.O={}))})(h.jc||(h.jc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.oJ{constructor(){super(...arguments);this.tS=[]}get Hh(){return this.level.ev?!0:!(this.eh||this.Cf)&&0===this.children.length}}b.Vka=a})(f.O||(f.O={}))})(h.jc||(h.jc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.local.O.bQ{constructor(){super();this.sH=new b.fo}Uo(c,d){return new b.WO(c,d)}Lea(c,d){return new b.Q6(c,d)}gm(c,d,g){return new b.Uka(c,d,g)}Dx(c,d=null,g=!1){var k=d?d:new b.Q6(c.uniqueName);return super.Dx(c,k,e.v(d)||g)}}b.jJ=a})(f.O||(f.O={}))})(h.jc||(h.jc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.wX{constructor(){super(...arguments);this.E$=!1}get oL(){return this.E$}set oL(c){this.E$=c}nba(c,d){e.v(this.RB)&&(this.RB=new e.ub);this.RB.Ta(c,d)}Wea(c,d){let g=void 0;if(!e.v(this.RB)){const k=l.i.Ic.FA(c.type);this.RB.Bb(k)?g=this.PS(this.RB.getItem(k),d):this.RB.Bb(l.i.input.sa.iJ)&&(g=this.PS(this.RB.getItem(l.i.input.sa.iJ),d))}return!e.v(this.Oy)&&this.Oy.Bb(c.A)?(c=this.PS(this.Oy.getItem(c.A),d),void 0!==
g&&c.merge(g),c):g?g:this.oL?this.CH(d):null}}a.WH=!1;b.fo=a})(f.O||(f.O={}))})(h.jc||(h.jc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){this.interval=this.A=void 0}}f.vNa=b;class a{constructor(){this.Kk=void 0;this.EQa=null}}f.wNa=a;class c{constructor(d){this.rows={};this.Ka={};this.values={};this.filters={};this.slice=d}select(){var d=this.QC(l.i.ha.Ia),g=this.QC(l.i.ha.Oa),k=this.IS(),m=this.Rp(),n={aggs:{}};!m||Array.isArray(m)&&0===m.length||(n.filter=m);if(0<d.length||0<g.length)n.aggs={by:{}},0<d.length&&(n.aggs.by.rows=d),0<g.length&&(n.aggs.by.cols=
g);n.aggs.values=k;return n}lLa(){var d=this.QC(l.i.ha.Ia),g=this.IS(),k=this.Rp(!1),m={aggs:{}};!k||Array.isArray(k)&&0===k.length||(m.filter=k);m.fields=d;m.aggs.values=g;return m}Ee(d,g){var k=this.QC(l.i.ha.Ia),m=this.QC(l.i.ha.Oa),n=this.IS(),p=this.Rp();d={type:l.i.Md.Iv,axisName:d,dataKeys:u.Hc.jz(g),aggs:{}};!p||Array.isArray(p)&&0===p.length||(d.filter=p);if(0<k.length||0<m.length)d.aggs={by:{}},0<k.length&&(d.aggs.by.rows=k),0<m.length&&(d.aggs.by.cols=m);0<n.length&&(d.aggs.values=n);return d}expand(d,
g){var k=this.QC(l.i.ha.Ia),m=this.QC(l.i.ha.Oa),n=this.IS(),p=this.Rp();d={type:l.i.Md.xF,axisName:d,dataKeys:u.Hc.jz(g),aggs:{}};!p||Array.isArray(p)&&0===p.length||(d.filter=p);if(0<k.length||0<m.length)d.aggs={by:{}},0<k.length&&(d.aggs.by.rows=k),0<m.length&&(d.aggs.by.cols=m);0<n.length&&(d.aggs.values=n);return d}cd(d,g,k=!0){return k?this.bza(d):this.X0(d,g)}bza(d){d=this.Dwa(d);var g=this.Rp(),k={};k.limit=e.model.C.F.kH;!g||Array.isArray(g)&&0===g.length||(k.filter=g);k.fields=d;return k}X0(d,
g){var k,m=[];const n=this.slice.vc(!1,!0,!0,!0).Pc();var p=[];for(let y=0;y<d.length;y++){var t={uniqueName:d[y]},r=n.find(A=>A.A===d[y]);if(r){var v=r.ua.fa(1);this.gL(v,r.interval,t)}m.push(t);if(void 0!==g[d[y]]){r={};r.field={uniqueName:d[y]};t=g[d[y]];let A=null!==(k=v.inputType)&&void 0!==k?k:v.type;l.i.ib.qN(A)&&!isNaN(t)&&null!==t?t=+t:v.type===l.i.ib.$c&&(t=""+t);r.include=[{member:t}];p.push(r)}}e.v(this.filters)||p.push(...this.Ewa());g={};g.limit=e.model.C.F.kH;0<p.length&&(g.filter=
p);g.fields=m;return g}Dwa(d){const g=[],k=this.slice.Yc.vc(!1).Pc();for(var m=0;m<d.length;m++){const p={uniqueName:d[m]};var n=k.find(t=>t.A===d[m]);n&&this.gL(n.ua.fa(1),n.interval,p);g.push(p)}return g}QC(d){const g=[],k=this.slice.vc(!1,!0,!0,!0).Pc();d=d===l.i.ha.Ia?this.rows:this.Ka;for(var m=0;m<k.length;m++){const t=k[m].A;if(void 0!==d[t])if(0===d[t].length){var n={uniqueName:t};this.gL(k[m].ua.fa(1),k[m].interval,n);g.push(n)}else for(n=0;n<k[m].ua.length;n++){var p=k[m].ua.fa(n).A;-1!==
d[t].indexOf(p)&&g.push({uniqueName:p})}}return g}gL(d,g,k){if(d.type===l.i.ib.Ua||d.type===l.i.ib.Mc)k.interval=g}IS(){let d=[];for(let g in this.values)for(let k=0;k<this.values[g].length;k++)d.push({func:this.values[g][k],field:{uniqueName:g}});return d}LL(d){var g=d.A,k=d.Ef?d.ua.fa(1).A:g,m={};m.field={uniqueName:k};if(void 0!==this.filters[g].query)if(f.O.fo.WH)Array.isArray(this.filters[g].query)?m={type:"or",value:this.filters[g].query}:m.query=this.filters[g].query;else if(d.Ef){var n=Object.keys(this.filters[g].query)[0];
l.i.tb.yfa(d.ua.fa(1).type,n)&&(m.query=this.filters[g].query)}else m.query=this.filters[g].query;void 0!==this.filters[g].value&&(m.value=this.filters[g].value);if(void 0!==this.filters[g].include){n=[];for(var p=0;p<this.filters[g].include.length;p++)n.push(this.filters[g].include[p]);m.query?m={type:"or",value:[m,{field:{uniqueName:k},include:n}]}:m.include=n}if(void 0!==this.filters[g].exclude){n=[];for(p=0;p<this.filters[g].exclude.length;p++)n.push(this.filters[g].exclude[p]);m.query?m={type:"and",
value:[m,{field:{uniqueName:k},exclude:n}]}:m.exclude=n}if(void 0!==this.filters[g].intersect)if(f.O.fo.WH)void 0!==m.include?m={type:"and",value:[{field:{uniqueName:k},include:this.filters[g].intersect},{field:{uniqueName:k},include:this.filters[g].include}]}:void 0!==m.query||void 0!==m.exclude||void 0===m.field?m={type:"and",value:[{field:{uniqueName:k},include:this.filters[g].intersect},m]}:m.include=this.filters[g].intersect;else{k={};k.field={uniqueName:d.Ef?d.ua.fa(1).A:g};k.include=[this.filters[g].intersect[0]];
if(void 0!==m.include||void 0!==m.exclude||void 0!==m.query)k.include[0].filter=m;m=k}return m}Ewa(){for(var d=[],g=this.slice.vc(!1,!0,!0).Pc(),k=0;k<g.length;k++)if(void 0!==this.filters[g[k].A]){var m={};if(this.filters[g[k].A].intersect)m.include=this.filters[g[k].A].intersect;else if(this.filters[g[k].A]){var n=Object.keys(this.filters[g[k].A]),p=n[0];m[p]=this.filters[g[k].A][p];n[1]&&(p=n[1],m[p]=this.filters[g[k].A][p])}else continue;m.field={uniqueName:g[k].Ef?g[k].ua.fa(1).A:g[k].A};d.push(m)}return d}Rp(d=
!0){const g=[],k=this.slice.vc(!1,!0,!0).Pc();for(let m=0;m<k.length;m++){const n=k[m];this.t_(n,!1,!1,d);void 0!==this.filters[n.A]&&g.push(this.LL(n))}if(!f.O.fo.WH)return g;if(0<g.length)return{type:"and",value:g}}Im(d,g){this.Ty(this.rows,d,g)}Bo(d,g){this.Ty(this.Ka,d,g)}Ty(d,g,k){var m=g.A;void 0===d[m]&&(d[m]=[]);var n=this.slice.rows.Bb(g.A),p=this.slice.Ka.Bb(g.A);n=this.slice.hf&&n||this.slice.Xf&&p;if(void 0===k&&g.Ef){if(null!=g.ic||n){for(k=1;k<g.ua.length&&(p=g.ua.fa(k),-1===d[m].indexOf(p.A)&&
d[m].push(p.A),p!=g.ic||n);k++);return}k=g.ua.fa(1)}void 0!==k&&(g=k.A,-1===d[m].indexOf(g)&&d[m].push(g))}kba(d){d.forEach(g=>{this.Im(g)})}aba(d){d.forEach(g=>{this.Bo(g)})}jL(d){if(""!==d.Mm){var g=d.A,k=d.Mm;void 0===this.values[g]&&(this.values[g]=[]);d.Qa||-1!==this.values[g].indexOf(k)||this.values[g].push(k)}}Yta(d,g){void 0===this.filters[d.A]&&(this.filters[d.A]={});d.filter.Pz&&(g.query=g.query.MS(d.getTimezoneOffset()));var k=this.kia(g.query);if(f.O.fo.WH&&d.Ef){let t=[];for(var m=1;m<
d.ua.length;m++){var n=Object.keys(k)[0],p=d.ua.fa(m);l.i.tb.yfa(p.type,n)&&t.push({field:{uniqueName:p.A},query:k})}this.filters[d.A].query=t}else this.filters[d.A].query=k;if(g.$Ca){k=g.Fm;m=[];for(n=0;n<k.length;n++)(p=d.za(k[n]))&&m.push({member:p.A});this.filters[d.A].include=m}if(g.ZCa){g=g.Uj;k=[];for(m=0;m<g.length;m++)(n=d.za(g[m]))&&k.push({member:n.A});this.filters[d.A].exclude=k}}Zta(d,g,k){d=d.A;void 0===this.filters[d]&&(this.filters[d]={});this.filters[d].query=this.kia(g);this.filters[d].value=
{field:{uniqueName:k.A},func:k.$}}kia(d){let g=d.value;g instanceof e.Rf&&(g=g.getTime());Array.isArray(g)&&g[0]instanceof e.Rf&&(g=[g[0].getTime(),g[1].getTime()]);return{[d.va]:g}}zs(d,g,k,m){var n,p=d.A;f.O.fo.VH||"intersect"!==k||(k="include");void 0===this.filters[p]&&(this.filters[p]={});void 0===this.filters[p][k]&&(this.filters[p][k]=[]);for(var t,r,v;!g.dc&&void 0!==g.parent;){var y=g.level.A;r=g.A;e.model.C.F.qr&&("null"===r&&(r=null),"undefined"===r&&(r=void 0),"(blank)"===r&&(r=""));e.ka(r)||
(r=null!==(n=g.level.inputType)&&void 0!==n?n:g.level.type,r=l.i.ib.qN(r)&&!isNaN(g.nc)?g.nc:1<g.level.yb?g.A.substr(1,g.A.length-2).split("].[").pop():g.A);v={};g.parent.dc?(v.member=r,void 0!==t&&(v.filter=t)):(m?this.Im(d,g.level):this.Bo(d,g.level),v.field={uniqueName:y},v.include=[{member:r}],void 0!==t&&(v.include[0].filter=t));t=v;g=g.parent}this.filters[p][k].push(t)}t_(d,g=!1,k,m=!0){var n=d.filter.clone();if(n.Gh&&!g){var p=n.Hi().length<d.Zi/2;g=p?n.Hi():n.Hi(!0);for(var t=0;t<g.length;t++){var r=
d.za(g[t]);this.zs(d,r,p?"include":"exclude",k)}}!e.v(n.query)&&n.Wu&&(e.v(n.measure)||!n.ji||!m&&d.type===e.u.i.Ic.yp?this.Yta(d,n):(k=this.slice.Yc.fd(n.measure.A))&&!0!==k.Qa&&(l.i.ea.BU(n.measure.$)||(n.measure.$=k.Mm),this.Zta(d,n.query,n.measure)))}clone(){var d=new c(this.slice);d.rows=u.Hc.zj(this.rows);d.Ka=u.Hc.zj(this.Ka);d.values=u.Hc.zj(this.values);d.filters=u.Hc.zj(this.filters);return d}}c.PP=["type","axisName","dataKeys"];f.Bt=c})(h.jc||(h.jc={}))})(l.external||(l.external={}))})(e.u||
(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{get rDa(){return h.jc.O.fo.VH}constructor(c){this.slice=c}select(){return e.model.C.F.sc&&e.model.C.F.me!==e.K.Jd.nj?this.Hwa():this.Twa()}Hwa(){for(var c=new f.Bt(this.slice),d=this.slice.vc(!1,!0,!0,!0),g=0;g<d.length;g++){var k=this.slice.nf(d.fa(g).A);this.Sfa(k)&&c.jL(k);k=d.fa(g);if(k.Ef)for(var m=1;m<k.ua.length;m++)c.Im(k,k.ua.fa(m));else c.Im(k)}for(g=0;g<this.slice.Wf.length;g++)d=this.slice.Wf[g],this.Sfa(d)&&c.jL(d);return c.lLa()}Sfa(c){return c.type!==
l.i.Ra.wc&&c.type!==l.i.Ra.Ua}Twa(){var c=new f.Bt(this.slice),d=this.slice.wb.Pc(),g=this.slice.Fb.Pc();this.slice.lf?0<d.length&&c.kba(d):0<d.length&&c.Im(d[0]);this.slice.kf?0<g.length&&c.aba(g):0<g.length&&c.Bo(g[0]);for(d=0;d<this.slice.Wf.length;d++)g=this.slice.Wf[d],g.Qa||c.jL(g);return c.select()}expand(c,d,g={}){const k=new f.Bt(this.slice),m=c==l.i.ha.Ia;var n=this.slice.wb.Pc(),p=this.slice.Fb.Pc();if(m){0<p.length&&k.Bo(p[0]);for(p=0;p<d.length;p++)for(var t=n[p].za(d[p]);!t.dc;)k.Im(t.hierarchy,
t.level),k.zs(n[p],t,"intersect",!0),t=t.parent;n=n[d.length];if(null==n.ic)k.Im(n,n.ua.fa(1));else for(t=1;t<n.ua.length&&(p=n.ua.fa(t),k.Im(n,p),p!=n.ic);t++);}else{0<n.length&&k.Im(n[0]);for(n=0;n<d.length;n++)for(t=p[n].za(d[n]);!t.dc;)k.Bo(t.hierarchy,t.level),k.zs(p[n],t,"intersect",!1),t=t.parent;n=p[d.length];if(null==n.ic)k.Bo(n,n.ua.fa(1));else for(t=1;t<n.ua.length&&(p=n.ua.fa(t),k.Bo(n,p),p!=n.ic);t++);}for(t=0;t<this.slice.Wf.length;t++)n=this.slice.Wf[t],n.Qa||k.jL(n);t=this.Waa(k,m?
l.i.ha.Oa:l.i.ha.Ia,g);g=this.Xaa(k,m?l.i.ha.Oa:l.i.ha.Ia,g);t=t.concat(g);g={};this.z6(g,d,c);t.unshift(k.expand(c,g));return t}cza(c,d,g){c[d.Ef?g.level.A:d.A]=g.A}z6(c,d,g){g=g===l.i.ha.Ia?this.slice.wb:this.slice.Fb;-1===d[0]&&(d=d.slice(1));for(let k=0;k<d.length;k++){let m=g.fa(k),n=m.za(d[k]);c[m.Ef?n.level.A:m.A]=n.A}}Ee(c,d,g){var k={},m=new f.Bt(this.slice),n=c==l.i.ha.Ia,p=this.slice.wb.Pc(),t=this.slice.Fb.Pc();if(n)for(m.kba(p.slice(0,d.length)),0<t.length&&m.Bo(t[0]),t=0;t<d.length-
1;t++)m.zs(p[t],p[t].za(d[t]),"intersect",!0);else for(m.aba(t.slice(0,d.length)),0<p.length&&m.Im(p[0]),p=0;p<d.length-1;p++)m.zs(t[p],t[p].za(d[p]),"intersect",!1);p=g;t=p.hierarchy.ua.fa(p.level.yb+1);if(n)for(m.Im(p.hierarchy,t);!p.dc;)m.Im(p.hierarchy,p.level),p=p.parent;else for(m.Bo(p.hierarchy,t);!p.dc;)m.Bo(p.hierarchy,p.level),p=p.parent;m.zs(g.hierarchy,g,"intersect",n);for(g=0;g<this.slice.Wf.length;g++)p=this.slice.Wf[g],p.Qa||m.jL(p);g=this.Waa(m,n?l.i.ha.Oa:l.i.ha.Ia,k);k=this.Xaa(m,
n?l.i.ha.Oa:l.i.ha.Ia,k);g=g.concat(k);k={};this.z6(k,d,c);g.unshift(m.Ee(c,k));return g=this.zza(g)}Tfa(c,d){return c.sM&&c.filter.Gh&&0<c.filter.Hi().length?-1!==c.filter.Hi().indexOf(d.ordinal):!0}zza(c){const d=new Set,g=[];for(let m=0;m<c.length;m++){const n=c[m];var k={};for(let p in n)n.hasOwnProperty(p)&&-1===f.Bt.PP.indexOf(p)&&(k[p]=n[p]);k=JSON.stringify(k);d.has(k)||(d.add(k),g.push(n))}return g}Xaa(c,d,g){const k=[],m=d===l.i.ha.Ia,n=this.slice.wb.Pc(),p=this.slice.Fb.Pc(),t=m?this.slice.$b.ld:
this.slice.Lb.ld;for(let A=0;A<t.length;A++){const C=t[A],B=c.clone();if(m){for(var r=0;r<C.length-1;r++){var v=n[r],y=v.za(C[r+1]);if(!this.Tfa(v,y))break;B.Im(v);B.zs(v,y,"intersect",!0)}B.Im(n[r])}else{for(r=0;r<C.length-1;r++){v=p[r];y=v.za(C[r+1]);if(!this.Tfa(v,y))break;B.Bo(v);B.zs(v,y,"intersect",!1)}B.Bo(p[r])}this.z6(g,C,d);k.push(B.expand(d,g))}return k}Waa(c,d,g){const k=[],m=d===l.i.ha.Ia,n=this.slice.wb.Pc(),p=this.slice.Fb.Pc(),t=m?this.slice.$b.ue:this.slice.Lb.ue;for(let v=0;v<t.length;v++){var r=
t[v].slice();const y=m?n[r.length-3]:p[r.length-3],A=c.clone();r=r.pop();let C=r=y.za(r);const B=y.ua.fa(r.level.yb+1);if(m)for(A.zs(y,r,"intersect",m),A.Im(y,B);!C.dc;)A.Im(y,C.level),C=C.parent;else for(A.zs(y,r,"intersect",m),A.Bo(y,B);!C.dc;)A.Bo(y,C.level),C=C.parent;this.cza(g,y,r);k.push(A.Ee(d,g))}return k}cd(c,d,g,k=null){return this.rDa?this.aza(c,d,k):this.X0(c,d,k)}aza(c,d,g=null){const k=new f.Bt(this.slice),m=this.slice.qb.Pc(),n=this.slice.wb.Pc(),p=this.slice.Fb.Pc(),t=this.slice.Wf;
this.W0(m,[],k,g,!1);this.W0(n,c,k,g,!0);this.W0(p,d,k,g,!1);for(c=0;c<t.length;c++)-1===g.indexOf(t[c].A)&&g.push(t[c].A);return k.cd(g,!0)}W0(c,d,g,k,m){for(var n,p=0;p<c.length;p++)if(g.t_(c[p],!e.v(d[p]),m),d[p]&&(n=c[p].za(d[p]))&&g.zs(c[p],n,"intersect",m),c[p].Ef){let r=k.indexOf(c[p].A);-1!==r&&k.splice(r,1);for(n=1;n<c[p].ua.length;n++){var t=c[p].ua.fa(n);-1===k.indexOf(t.A)&&(-1===r?k.push(t.A):k.splice(r++,0,t.A))}}else-1===k.indexOf(c[p].A)&&k.push(c[p].A)}X0(c,d,g=null){const k=new f.Bt(this.slice),
m=this.slice.qb.Pc(),n=this.slice.wb.Pc(),p=this.slice.Fb.Pc(),t=this.slice.Wf,r={};this.Y0(m,[],r,k,g);this.Y0(n,c,r,k,g);this.Y0(p,d,r,k,g);for(c=0;c<t.length;c++)-1===g.indexOf(t[c].A)&&g.push(t[c].A);return k.cd(g,r,!1)}Y0(c,d,g,k,m){var n;let p,t;for(var r=0;r<c.length;r++){t=c[r].A;k.t_(c[r],!e.v(d[r]));if(d[r]&&(p=c[r].za(d[r]))){let v=null!==(n=p.level.inputType)&&void 0!==n?n:p.level.type;g[t]=l.i.ib.qN(v)?p.nc:p.A}-1===m.indexOf(t)&&m.push(t)}}}f.Wka=b;class a{constructor(c){this.page=0;
this.vv=null;this.IG=d=>{null!=this.vv?d.pageToken=this.vv:d.page=this.page};e.v(c.vv)||(this.vv=c.vv);e.v(c.page)||(this.page=c.page)}}f.cl=a})(h.jc||(h.jc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(c){this.iI=[];this.withCredentials=this.closed=!1;"string"===typeof c.url?this.url=c.url:e.Pg(c.url)&&(this.Bka=(d,g,k)=>c.url(d,g,k));this.hp=c.hp;this.tc=c.tc;this.withCredentials=c.withCredentials}$h(c){this.tc=c;for(const d of this.iI)d.$h(this.tc)}xv(c,d,g,k=null){if(e.v(this.url))e.v(this.Bka)?e.ve(()=>{g(e.model.B.j.vpa,null)},1):e.ve(()=>{d=this.Eca(d);this.Bka(JSON.stringify(d),n=>{if(!this.closed)if("object"==typeof n)g(null,
n);else if("string"==typeof n)try{var p=JSON.parse(n);g(null,p)}catch(t){g(t,null)}},n=>{if(!this.closed)if("object"==typeof n)g(n.message||n,null);else if("string"==typeof n)try{var p=JSON.parse(n);g(p.message||p,null)}catch(t){g(t,null)}})},1);else{var m=this.Pxa();m.gf=g;m.KO=k;d=this.Eca(d,m);m.data=JSON.stringify(d);m.load(this.hp?this.url:`${this.url}/${c}`)}}Pxa(){var c=z.Qt.Rv,d=new a;d.contentType=z.Ft.qX;d.Ir=c;d.withCredentials=this.withCredentials;d.$h(this.tc);d.N(w.ia.Qc,()=>this.Br(d));
d.N(w.ia.xa,g=>this.Rb(g,d));this.iI.push(d);return d}Eca(c,d){if(!e.v(b.XL)){var g=JSON.parse(JSON.stringify(c));g.requestHeaders=e.v(this.tc)?{}:this.tc;g=b.XL(g);e.v(g)||(e.v(g.requestHeaders)||(e.v(d)||d.$h(g.requestHeaders),delete g.requestHeaders),c=g)}return c}b0(c){c.close();this.iI.splice(this.iI.indexOf(c),1)}Br(c){if("object"==typeof c.response)c.gf(null,c.response);else if("string"==typeof c.response)try{var d=JSON.parse(c.response);c.gf(null,d)}catch(g){c.gf(g,null)}this.b0(c)}Rb(c,d){d.gf(this.parseError(c.data,
d),null);this.b0(d)}parseError(c,d){let g=e.v(c)?"":c;if("object"==typeof d.response)g+=d.response.message||d.response;else if("string"==typeof d.response)try{var k=JSON.parse(d.response);g+=k.message||k}catch(m){g=e.v(c)?m:c}return g}close(){for(this.closed=!0;0<this.iI.length;)this.b0(this.iI[0])}}b.XL=null;f.SA=b;class a extends z.tk{tv(c){if(null!=this.xhr&&4===this.xhr.readyState){if(200===this.xhr.status)return this.SI();if(401===this.xhr.status&&e.Pg(this.KO))return this.KO(d=>{d?this.retry():
this.Rb(c)});this.Rb(c)}null!=this.xhr&&3>this.xhr.readyState&&!this.connected&&(this.connected=!0,this.Ha(new w.ia(w.ia.ZA)))}Rb(){var c;0===this.xhr.status?c=e.P.bind(e.model.B.j.upa,this.url):404===this.xhr.status?c=e.P.bind(e.model.B.j.npa,this.url):400===this.xhr.status?c=e.P.bind(e.model.B.j.mpa,this.url):500===this.xhr.status&&(c=e.P.bind(e.model.B.j.opa,this.url));this.response=this.xhr.response||this.xhr.responseText||this.xhr.statusText;this.Ha(new w.ia(w.ia.xa,this,c))}}})(h.jc||(h.jc=
{}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{Al(a){if(e.model.Za.R().z2(e.model.Za.qK)){const c=new e.model.jd(e.model.Za.qK,d=>{if(!e.v(d)&&!e.v(d.requestHeaders)){const g=this.la.tc||{};for(let k in d.requestHeaders)d.requestHeaders.hasOwnProperty(k)&&(g[k]=d.requestHeaders[k]);this.la.tc=g;this.client.$h(g)}a(!0)});e.model.Za.R().Ha(c)}else a(!1)}}f.M6=b})(h.jc||(h.jc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends f.M6{constructor(a){super();this.wa=l.Ma.R();this.bA=new Map;this.la=a;this.client=this.la.$w()}load(a,c,d,g){this.Cb=c;this.Xa=d;this.Re=g;this.Sja=!1;this.TCa()}TCa(){this.client.xv("handshake",{type:"handshake",version:e.Cg.Iq},(a,c)=>{a=!0;let d;e.v(c)||(this.client.close(),d=c.version,a=this.Qva(d),this.la.Tia=d,this.client=this.la.$w());if(a&&!this.Sja)this.I3();else if(!e.v(d)&&this.uEa(d))return this.Rb(e.P.bind(e.model.B.j.tpa,
this.la.url,b.JY))},a=>this.Al(a));e.Ca(!0,e.model.B.j.IF)}Qva(a){return e.ka(a)?!0:-1!=e.P.GS(a,b.JY)}uEa(a){return-1==e.P.GS(a,b.JY)}I3(){this.Sja=!0;this.client.xv("fields",{index:this.la.index,type:"fields"},(a,c)=>{if(a)return this.Rb(a);this.Dr(c)},a=>this.Al(a));e.Ca(!0,e.model.B.j.IF)}Dr(a){e.Ca(!1);null!=this.Re&&this.Re();if(e.v(a)||e.v(a.fields))return this.Rb(e.P.bind(e.model.B.j.spa,this.la.url));a.sorted&&(this.wa.O.tx=!0);let c;e.v(a.aggregations)||(c=this.cJa(a.aggregations));e.v(a.filters)||
this.rJa(a.filters);this.wI(a.fields,c);null!=this.Cb&&this.Cb()}cJa(a){let c={};if(Array.isArray(a))c[l.i.input.sa.iJ]=a.map(n=>n.toString());else for(var d=0;d<l.i.input.sa.rL.length;d++){var g=l.i.input.sa.rL[d];if(!e.v(a[g])&&Array.isArray(a[g])){e.v(c[g])&&(c[g]=[]);for(var k=0;k<a[g].length;k++){var m=a[g][k].toLowerCase();c[g].push(m);-1===l.i.ea.QA.indexOf(m)&&m!==l.i.ea.NONE&&(l.i.ea.QA.push(m),l.i.ea.iP.push(m))}}}return c}eya(a){let c;switch(a){case l.i.input.sa.$c:c=l.i.tb.fl;break;case l.i.input.sa.jb:c=
l.i.tb.jb;break;case l.i.input.sa.Ua:c=l.i.tb.Ua}return c}rJa(a){if(!0===a||!1===a)this.wa.O.sH.oL=a;else{for(var c=0;c<l.i.input.sa.rL.length;c++){var d=l.i.input.sa.rL[c];if(!e.v(a[d])){const g=this.Lha(a[d],this.eya(d));this.wa.O.sH.nba(d,g)}}f.O.fo.VH=!0===a.advanced;f.O.fo.VH&&(f.O.fo.WH=1==e.P.GS(this.la.Tia,"2.8.21"))}}Lha(a,c){if(!0===a||!1===a)return a;let d=new l.O.yra;e.v(a.members)||(d.nd=!0===a.members);if(!e.v(a.query))if("boolean"===typeof a.query)d.query=a.query;else if(Array.isArray(a.query))for(let g of a.query)if(c==
l.i.tb.fl&&l.i.Eb.ih(g)||c==l.i.tb.jb&&l.i.Ug.ih(g)||c==l.i.tb.Ua&&l.i.cc.ih(g)||e.v(c)&&l.i.Eb.ih(g)&&l.i.Ug.ih(g)&&l.i.cc.ih(g))e.v(d.query)&&(d.query=[]),d.query.push(g);if(!e.v(a.valueQuery))if("boolean"===typeof a.valueQuery)d.vm=a.valueQuery;else if(Array.isArray(a.valueQuery))for(let g of a.valueQuery)l.i.Wb.ih(g)&&(e.v(d.vm)&&(d.vm=[]),d.vm.push(g));return d}wI(a,c){for(let m=0;m<a.length;m++){var d=a[m],g=d.type;if(!d.hasOwnProperty("uniqueName")||e.v(d.uniqueName)||"string"!==typeof d.uniqueName)continue;
var k=d.uniqueName;let n=void 0;if(!e.v(d.aggregations)&&Array.isArray(d.aggregations)){const p=d.aggregations;n=[];for(let t=0;t<p.length;t++){const r=p[t].toLowerCase();n.push(r);-1===l.i.ea.QA.indexOf(r)&&r!==l.i.ea.NONE&&(l.i.ea.QA.push(r),l.i.ea.iP.push(r))}}void 0!==n&&0<n.length?d.supportedAggregations=n:e.v(c)||(e.v(c[g])?e.v(c[l.i.input.sa.iJ])||(d.supportedAggregations=c[l.i.input.sa.iJ]):d.supportedAggregations=c[g]);d.type===l.i.input.sa.Ua&&(d.type=l.i.input.sa.oj);this.wa.O.Sy(d,k);
g=this.wa.O.uD(k);g instanceof f.O.WO&&!e.v(d.filters)&&(k=e.model.hb.lB.ZT(g),d=this.Lha(d.filters,k),this.wa.O.sH.dua(g.A,d))}}Rb(a){console.error(a);e.Ca(!1);a=a.message||a;e.Va(a,e.model.B.j.xa,e.ob.xa);this.Xa&&e.Pg(this.Xa)&&(this.Xa(a),this.Xa=null)}xl(a,c,d){var g=this.wa.ga.mapping.La(a.A,"filters");!1===g||!1===g.members?setTimeout(c,1,a):(this.Xa=d,e.Ca(!0,e.model.B.j.zm,a.caption),a.Ef?(d=this.wa.qa.rows.Bb(a.A),g=this.wa.qa.Ka.Bb(a.A),d=this.wa.qa.hf&&d||this.wa.qa.Xf&&g,null!==a.ic||
d?this.OJa(a,()=>{this.FN(a,k=>this.ek(k,c))}):this.Nk(a,a.pd,k=>this.ek(k,c))):this.H3(a,new f.cl({page:0}),k=>this.ek(k,c)))}OJa(a,c){const d=[];for(let k=1;k<a.ua.length;k++){const m=a.ua.fa(k);!1!==this.la.mapping.La(m.A,"preloadMemberCaptions",!1)&&d.push(m)}const g=()=>{if(0===d.length)c();else{var k=d.shift();this.F3(k,new f.cl({page:0}),g)}};g()}F3(a,c,d){const g={index:this.la.index,type:"members",field:{uniqueName:a.A}};c.IG(g);this.client.xv("members",g,(k,m)=>{if(k)return this.Rb(k);if(!this.xJa(a,
m))return this.Rb(e.P.bind(e.model.B.j.oY,this.la.url));e.v(m.nextPageToken)?!e.v(m.pageTotal)&&c.page+1<m.pageTotal?(e.Ca(!0,e.model.B.j.zm,`${a.caption} - ${Math.round((c.page+1)/m.pageTotal*100)}%`),this.F3(a,new f.cl({page:c.page+1}),d)):d():(e.Ca(!0,e.model.B.j.zm,a.caption),this.F3(a,new f.cl({vv:m.nextPageToken}),d))},k=>this.Al(k))}H3(a,c,d){var g={};if(a.ua.fa(1).type===l.i.ib.Ua||a.ua.fa(1).type===l.i.ib.Mc)g.interval=a.interval;g.uniqueName=a.A;g={index:this.la.index,type:"members",field:g};
c.IG(g);this.client.xv("members",g,(k,m)=>{if(k)return this.Rb(k);if(!this.YV(a,m))return this.Rb(e.P.bind(e.model.B.j.oY,this.la.url));e.v(m.nextPageToken)?!e.v(m.pageTotal)&&c.page+1<m.pageTotal?(e.Ca(!0,e.model.B.j.zm,`${a.caption} - ${Math.round((c.page+1)/m.pageTotal*100)}%`),this.H3(a,new f.cl({page:c.page+1}),d)):(a.Td=!0,d(a)):(e.Ca(!0,e.model.B.j.zm,a.caption),this.H3(a,new f.cl({vv:m.nextPageToken}),d))},k=>this.Al(k))}OL(a){for(var c,d;!a.dc;){var g={};if(a.level.type===l.i.ib.Ua||a.level.type===
l.i.ib.Mc)g.interval=a.level.hierarchy.interval;g.uniqueName=a.level.A;var k=a.A,m=null!==(c=a.level.inputType)&&void 0!==c?c:a.level.type;l.i.ib.qN(m)&&!isNaN(a.nc)?k=a.nc:1<a.level.yb&&(k=a.A.substr(1,a.A.length-2).split("].[").pop());m=d;d={field:g,include:[{member:k}]};m&&(d.include[0].filter=m);a=a.parent}return d}Iga(a,c,d,g){var k={};if(a.type===l.i.ib.Ua||a.type===l.i.ib.Mc)k.interval=a.hierarchy.interval;k.uniqueName=a.A;k={index:this.la.index,type:"members",field:k};var m=this.OL(c);m&&
(k.filter=f.O.fo.WH?{type:"and",value:[m]}:m);d.IG(k);this.client.xv("members",k,(n,p)=>{if(n)return this.Rb(n);if(!this.gJa(c,p))return this.Rb(e.P.bind(e.model.B.j.oY,this.la.url));!e.v(p.pageTotal)&&d.page+1<p.pageTotal?(e.Ca(!0,e.model.B.j.zm,a.caption+" - "+(d.page+1)+"/"+p.pageTotal),this.Iga(a,c,new f.cl({page:d.page+1}),g)):(c.Cf=!1,g(a.hierarchy))},n=>this.Al(n))}ek(a,c){var d=a.yv;this.c6(d);if(0<a.filter.Dl.length)this.EN(a,a.filter.Dl,a.filter.yI,k=>{k.Fw();this.ek(k,c)});else if(0<d.length){var g=
d.shift();0==d.length&&a.dca();a.yv=d;d=a.Ib(g[1]);a.wz(d);this.Nk(a,d,k=>this.ek(k,c))}else a.Td=!0,c(a)}c6(a){a.sort((c,d)=>{if(c.length!==d.length)return 0;var g=c.length-1;c=c[g];d=d[g];return e.v(d)||void 0===d.indexOf?1:e.v(c)||void 0===c.indexOf||-1!==d.indexOf(c)?-1:-1!==c.indexOf(d)?1:0})}gJa(a,c){if(e.v(c)||e.v(c.members))return!1;if(0===c.members.length||1===c.members.length&&e.ka(c.members[0].value))return a.Cf=!1,a.eh=!1,!0;const d=c.members;for(let g=0;g<d.length;g++){const k=this.pc(a.hierarchy,
a,d[g]);c.sorted&&a.tS.push(k.ordinal);k.Cf=!k.level.ev}return!0}xJa(a,c){var d;if(e.v(c)||e.v(c.members))return!1;c=c.members;const g=null!==(d=this.bA.get(a))&&void 0!==d?d:new Map;for(d=0;d<c.length;d++){var k=c[d];const m=String(k.value);k=String(k.id);0==g.has(k)&&g.set(k,m)}this.bA.set(a,g);return!0}YV(a,c){if(e.v(c)||e.v(c.members))return!1;for(var d=c.members,g=0;g<d.length;g++)this.pc(a,null,d[g]);c.sorted&&(a.tx=!0);return!0}pc(a,c,d){var g=String(d.value);var k=a.type===l.i.Ic.Hv&&void 0!==
d.id?String(d.id):c&&!c.dc?("["===c.A.substr(0,1)?c.A:"["+c.A+"]")+".["+g+"]":g;var m=a.Ib(k);e.v(m)&&(g=new l.O.be({A:k,caption:g}),e.v(c)||(g.parent=c),g.value=d.value,a.Ef?(c=a.ua.fa(c.level.yb+1),d=c.A,g.level=c,c=c.inputType,d=this.wa.O.wD(d)):(d=this.wa.O.wD(a.A),c=a.inputType),m=a.pc(g,d,c));a.wW(m);return m}Nk(a,c,d){null==c||!c.dc&&!c.Cf||c.Hh?d(a):this.Iga(a.ua.fa(c.level.yb+1),c,new f.cl({page:0}),()=>{c.Cf=!1;d(a)})}FN(a,c){this.G3(a,new f.cl({page:0}),()=>{c(a)})}G3(a,c,d){for(var g=
[],k=1;k<a.ua.length;k++){var m=a.ua.fa(k);g.push({uniqueName:m.A});if(m==a.ic)break}m=[];for(k=0;k<g.length;k++)m.push({field:g[k],func:"count"});g={type:"select",index:this.la.index,query:{aggs:{by:{rows:g},values:m}}};c.IG(g);this.client.xv("select",g,(n,p)=>{n?(this.Rb(n),d(a)):this.zJa(p,a)?e.v(p.nextPageToken)?!e.v(p.pageTotal)&&c.page+1<p.pageTotal?this.G3(a,new f.cl({page:c.page+1}),d):d(a):this.G3(a,new f.cl({vv:p.nextPageToken}),d):(this.Rb(e.P.bind(e.model.B.j.h9,this.la.url)),d(a))},n=>
this.Al(n))}zJa(a,c){if(e.v(a)||e.v(a.aggs))return!1;a=a.aggs;for(var d,g,k,m,n,p,t=0;t<a.length;t++)if(d=a[t].keys,!e.v(d)){n=void 0;g=[];for(let v=1;v<c.ua.length;v++){k=c.ua.fa(v);var r=k.A;if(!d.hasOwnProperty(r))break;r=d[r];m=this.bA.has(k)&&this.bA.get(k).has(r)?this.bA.get(k).get(r):r;g.push(r);k=1===g.length?r:`[${g.join("].[")}]`;p=c.Ib(k);null==p&&(p=this.pc(c,null!==n&&void 0!==n?n:c.pd,{A:k,caption:m,parent:n,id:r,value:m}),p.Cf=!p.level.ev);n=p}}return!0}EN(a,c,d,g){this.Wza(a,c,g)}Wza(a,
c,d){(new Promise(async g=>{for(let k=0;k<c.length;k++)await this.Xza(a,"["===c[k].substr(0,1)?c[k].substr(1,c[k].length-2).split("].["):[c[k]]);g(null)})).then(()=>{d(a)})}async Xza(a,c){for(let g=0;g<c.length;g++){var d="";if(0<g){d=[];for(let m=0;m<=g;m++)d.push("["+c[m]+"]");d=d.join(".")}else d=c[0];let k;a.type===l.i.Ic.Ua?(d=(new e.Rf(d)).getTime(),k=a.Pu(d)):k=a.Ib(d);await new Promise(m=>{this.Nk(a,k,m)})}}cA(){}Aq(a,c,d,g){d&&(this.Cb=d);g&&(this.Xa=g);throw"Not Implemented";}BC(){return!1}cancel(){this.Re=
this.Xa=this.Cb=this.la=this.wa=null;this.client&&(this.client.close(),this.client=null);this.bA&&(this.bA.clear(),this.bA=null)}}b.JY="2.8.5";f.Xka=b})(h.jc||(h.jc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends f.M6{constructor(){super(...arguments);this.wa=l.Ma.R();this.ta=this.wa.ta}load(a,c,d,g){this.la=a;this.query=c;this.Cb=d;this.Xa=g;this.client=this.la.$w();this.Ax()}Ax(){e.Ca(!0,e.model.B.j.mg);this.h5=0;if(Array.isArray(this.query.body)){const a=new u.FB;this.query.body.forEach(c=>{a.add(d=>this.pV(c,this.query.type,new f.cl({page:0}),d))});a.Ze(()=>{null!=this.Cb&&this.Cb()})}else this.pV(this.query.body,this.query.type,new f.cl({page:0}),
()=>{null!=this.Cb&&this.Cb()})}pV(a,c,d,g){let k=this.Tva(a);a={type:"select",index:this.la.index,query:k};e.model.C.F.sc||(a.querytype=c);d.IG(a);this.client.xv("select",a,(m,n)=>{if(m)return this.Rb(m,this.Xa),g();if(!this.FJa(n))return this.Rb(e.P.bind(e.model.B.j.h9,this.la.url),this.Xa),g();e.v(n.nextPageToken)?!e.v(n.pageTotal)&&d.page+1<n.pageTotal?(e.Ca(!0,e.model.B.j.mg,`${Math.round((d.page+1)/n.pageTotal*100)}%`),this.pV(k,c,new f.cl({page:d.page+1}),g)):g():this.pV(k,c,new f.cl({vv:n.nextPageToken}),
g)},m=>this.Al(m))}Tva(a){a=u.Hc.zj(a);for(let c=0;c<f.Bt.PP.length;c++)a[f.Bt.PP[c]]&&delete a[f.Bt.PP[c]];return a}FJa(a){if(e.v(a))return!1;a.aggs&&(this.dJa(a.aggs,this.$H()),(e.v(a.nextPageToken)&&e.v(a.pageTotal)||1>=a.pageTotal-a.page)&&this.h5++);a.hits&&this.sJa(a.fields,a.hits);return!0}$H(){return e.model.C.F.sc&&e.model.C.F.me!==e.K.Jd.nj}sJa(a,c){for(var d=this.Y1(this.wa.qa.vc(!1,!0,!0,!0)),g=0;g<c.length;g++){for(var k=[],m=[],n,p=0;p<a.length;p++){n=a[p].uniqueName;var t=this.ta.ii(n),
r=c[g][p];n=d.getItem(n);var v=n.hierarchy;if(v.type===l.i.Ic.Ua){var y=v.Pu(r);y=e.v(y)?-1:y.ordinal}else v.type!==l.i.Ic.Hv?l.i.ib.qN(n.level.type)?(y=v.Pu(parseFloat(r)),y=null!==y?y.ordinal:-1):y=v.ex(e.ka(r)?"":""+r):y=v.ex(e.ka(r)?"":""+r);if(-1===y)if(v.Ef){var A=n.VV;y=[];for(var C=1;C<v.ua.length;C++){var B=v.ua.fa(C),H=a.findIndex(M=>M.uniqueName===B.A);y.push(c[g][H]);if(A===B.A)break}A="["+y.join("].[")+"]";C=A+".["+r+"]";1===y.length&&(A=y[0]);y=v.ex(C);-1===y&&(B=n.level,A=v.pc(new l.O.be({A:C,
caption:r,value:r,level:B,Ki:A}),l.i.ib.FA(B.type)),null!=A&&(y=A.ordinal))}else A=this.wa.O.wD(v.A),A=v.pc(new l.O.be({A:String(r),caption:String(r),value:r}),A),null!=A&&(y=A.ordinal);k[n.nc]=y;m[t]=v.type===l.i.Ic.yp?"number"===typeof r?r:NaN:v.type===l.i.Ic.Ua?!e.model.C.F.qr||null!==r&&"null"!==r?"number"===typeof r?r:NaN:null:1}this.ta.pDa(k,m)}}Y1(a){for(var c,d=new e.ub,g=0,k=0,m=0;m<a.length;m++){c=a.fa(m);if(c.Ef){k++;for(var n=1;n<c.ua.length;n++)d.Ta(c.ua.fa(n).A,{hierarchy:c,ordinal:g,
level:c.ua.fa(n),VV:c.ua.fa(n-1).A,ic:c.ic,nc:k++})}else n=this.wa.ga.mapping.La(c.A,"filters"),d.Ta(c.A,{hierarchy:c,ordinal:g,level:c.ua.fa(1),nc:k++,Gh:!1!==n&&!1!==n.members});g++}return d}dJa(a,c){const d=this.Y1(this.wa.qa.wb),g=this.Y1(this.wa.qa.Fb);let k=!1,m,n;m=this.query.jg;if(Array.isArray(this.query.body)){var p=this.query.body[this.h5];n=p.dataKeys;0<this.h5&&(k=!0)}else p=this.query.body,n=this.query.Nn;p=p.type;for(let r=0;r<a.length;r++)if(c){var t=this.Pha(a[r].values);this.ta.BA(t)}else{if(p===
l.i.Md.xF||p===l.i.Md.Iv){if(e.v(a[r].keys))continue;if(!this.fNa(a[r].keys,n))continue}t=this.Pha(a[r].values);const v=this.Oha(a[r].keys,d),y=this.Oha(a[r].keys,g);this.nga(v)&&this.nga(y)&&this.ta.insert(v,y,t,m,this.query.uw,!k)}}fNa(a,c){if(c)for(let d in c)if(void 0===a[d]&&a[d]!==c[d])return!1;return!0}nga(a){for(let c=0;c<a.length;c++)if(e.v(a[c]))return!1;return!0}Pha(a){var c=[],d;for(d in a)if(a.hasOwnProperty(d))for(var g in a[d])if(a[d].hasOwnProperty(g)){var k=this.ta.ii(d,g,!0);c[k]=
a[d][g]}return c}Oha(a,c){const d=[];if(e.v(a))return d;const g=c.length;for(let v=0;v<g;v++){var k=c.Uh(v);if(void 0!==a[k]){var m=a[k];"string"!==typeof m&&(m=""+m);var n=c.getItem(k);const y=[];if(n.level){var p=n.VV;for(1<n.level.yb&&(m=`[${m}]`);void 0!==a[p];)m=`[${a[p]}].${m}`,p=c.getItem(p).VV}n.hierarchy.type===l.i.Ic.Hv||n.level.type!==l.i.ib.Ua&&n.level.type!==l.i.ib.Mc&&n.level.type!==l.i.ib.ec&&n.level.type!==l.i.ib.Sl?p=n.hierarchy.ex(m):(p=n.hierarchy.Pu(a[k]),p=e.v(p)?-1:p.ordinal);
const A=c.getItem(n.hierarchy.ua.fa(1).A).ordinal;var t=this.wa.qa.rows.Bb(n.hierarchy.A),r=this.wa.qa.Ka.Bb(n.hierarchy.A);if(n.ic||this.wa.qa.hf&&t||this.wa.qa.Xf&&r){if(-1===p){t=n.VV;m=[];for(r=1;r<n.hierarchy.ua.length;r++){const C=n.hierarchy.ua.fa(r);m.push(a[C.A]);if(t===C.A)break}t="["+m.join("].[")+"]";r=t+".["+a[k]+"]";1===m.length&&(t=m[0]);k=n.hierarchy.pc(new l.O.be({A:r,caption:a[k],level:n.level,Ki:t}));null!=k&&(p=k.ordinal)}y.push(n.level.yb);y.push(p);void 0===d[A]&&(d[A]=[n.ic?
n.hierarchy.ua.length-n.ic.yb:0]);d[A].push(y)}else n.level?(-1===p&&!1===n.Gh&&(k=n.hierarchy.pc(new l.O.be({A:m,caption:a[k]})),null!=k&&(p=k.ordinal)),y.push(n.level.yb),y.push(p),d[A]=y):(-1===p&&!1===n.Gh&&(n=n.hierarchy.pc(new l.O.be({A:m,caption:a[k]})),null!=n&&(p=n.ordinal)),y.push(1),y.push(p),d.push(y))}}return d}Rb(a,c){console.error(a);e.Ca(!1);e.Va(a.message||a,e.model.B.j.xa,e.ob.xa);e.Pg(c)&&c()}cd(a,c,d,g,k,m){e.Ca(!0,e.model.B.j.mg);this.la=a;e.v(this.client)&&(this.client=this.la.$w());
this.fD=[];this.C3(c,new f.cl({page:0}),m)}C3(a,c,d){const g={type:"select",index:this.la.index,query:a.body};c.IG(g);this.client.xv("select",g,(k,m)=>{if(k)return this.Rb(k,d);if(!this.oJa(m))return this.Rb(e.P.bind(e.model.B.j.ppa,this.la.url),d);e.v(m.nextPageToken)?!e.v(m.pageTotal)&&c.page+1<m.pageTotal?this.C3(a,new f.cl({page:c.page+1}),d):d(this.fD):this.C3(a,new f.cl({vv:m.nextPageToken}),d)},k=>this.Al(k))}oJa(a){if(e.v(a))return!1;if(a.fields&&0==this.fD.length){var c=a.fields.map(d=>d.A);
this.fD.push(c)}if(a.hits)for(c=0;c<a.hits.length;c++)this.fD.push(a.hits[c]);return!0}cancel(){this.Xa=this.query=this.Cb=this.la=this.ta=this.wa=null;this.client&&(this.client.close(),this.client=null);this.fD&&(this.fD.length=0,this.fD=null)}}f.Ska=b})(h.jc||(h.jc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends h.UX{constructor(){super(...arguments);this.y6=new e.ub}LC(){this.y6.clear();super.LC()}La(a,c,d,g=!1){g=g?0:this.zZ(a,c);const k=this.ii(d);if(e.v(this.values[g]))return l.i.ea.xe(d.$)?0:NaN;if(d.Qa){this.mG=!1;a=this.bq([g],d.Ud,d.Lk,0,a,c,d.Jn);if(!0===a||!1===a)a=!0===a?1:0;this.values[g][k]=a}return e.v(this.values[g][k])?l.i.ea.xe(d.$)?0:NaN:this.values[g][k]}ww(a,c,d,g){return this.bq([this.zZ(a,c)],d,!1,g)}zZ(a,c){return a+
" "+c}BA(a){this.values[0]=a}Wg(a,c){return null===a||0===a.length?NaN:this.values[a[0]]?this.values[a[0]][c]:NaN}Q1(a,c){const d=this.slice.Gi(new e.model.hb.oh(a,c));null!=d&&(c=l.i.ea.uN(d.$)?d.$:d.Mm);return this.ii(a,c,!this.mG)}GM(a,c){const d=l.i.ea.pj;c=this.Q1(c.A,d);return this.Wg(a,c,d)}Hn(a,c){super.Hn(a,c);this.Jm(a.A)}insert(a,c,d,g,k,m){var n=[],p=[];const t=[];for(var r=0;r<a.length;r++)if(Array.isArray(a[r][1])){p[r]=a[r][a[r].length-1][1];if(a[r].length>a[r][0]){var v=[];g&&(v=g.slice());
v.concat(n.slice());0<v.length&&t.push(v)}for(v=1;v<a[r].length;v++)n[this.ua[this.Zh[r]][a[r][v][0]]]=a[r][v][1]}else{if(-1===a[r][1])return;p[r]=a[r][1];n[this.ua[this.Zh[r]][a[r][0]]]=p[r]}a=[];for(r=0;r<c.length;r++)if(Array.isArray(c[r][1]))for(a[r]=c[r][c[r].length-1][1],v=[],g&&(v=g.slice()),v.concat(n.slice()),0<v.length&&t.push(v),v=1;v<c[r].length;v++)n[this.ua[this.xj[r]][c[r][v][0]]]=c[r][v][1];else{if(-1===c[r][1])return;a[r]=c[r][1];n[this.ua[this.xj[r]][c[r][0]]]=a[r]}p=this.zZ(p,a);
c=this.zb.length;void 0!==this.values[p]?(n=this.y6.getItem(n.join("-")),void 0!==n&&(c=n),m&&(this.values[p]=d)):(this.qh.push(c),this.zb.push(n),this.y6.Ta(n.join("-"),this.zb.length-1),this.values[p]=d);0<g.length&&(0===this.Cd.length&&(this.expand([],l.i.ha.Ia,void 0),this.expand([],l.i.ha.Oa,void 0)),d=k===l.i.ha.Ia?this.md(g,this.Cd):this.md(g,this.Od),void 0!=d&&-1===d[0][0].indexOf(c)&&d[0][0].push(c));if(0<t.length)for(d=0;d<t.length;d++){g=k===l.i.ha.Ia?this.md(t[d],this.Cd):this.md(t[d],
this.Od);if(void 0===g){g=[];m=void 0;for(n=0;n<t[d].length;n++)g.push(t[d][n]),m=k===l.i.ha.Ia?this.md(g,this.Cd):this.md(g,this.Od),void 0!==m&&void 0!==m[0]&&void 0!==m[0][0]&&(p=t[d][n+1])&&(m[p]=[[[c],[],[],void 0,void 0]]);g=m}void 0!==g&&void 0!==g[0]&&void 0!==g[0][0]&&-1===g[0][0].indexOf(c)&&g[0][0].push(c)}}pDa(a,c){let d;if(0===this.zb.length)for(d=0;d<a.length;d++)this.zb[d]=[];this.qh=e.Ja.Pr(this.qh,this.HA);for(d=0;d<a.length;d++)this.zb[d]=e.Ja.Pr(this.zb[d],a[d]);0===this.values.length&&
this.BA([]);this.values.push(c)}XT(a,c,d,g,k){if(void 0===this.eb[a])return NaN;if(g){this.mG=!0;if(d.Qa){a=this.bq([this.eb[a]+1],d.Ud,d.Lk,0,null,null,d.Jn);if(!0===a||!1===a)a=!0===a?1:0;return a}return this.values[this.eb[a]+1][c]}c=this.le.indexOf(this.th[c]);void 0!==k&&(c=this.ua[c][k+1]);return void 0===this.zb[c]?NaN:this.zb[c][this.eb[a]]}filter(){}Ny(a,c,d){if(null!==a){var g=a[0][0];if(0<g.length&&!isNaN(c)){for(let k=0;k<g.length;k++){const m=this.zb[g[k]][this.ua[c][1]];0!==m&&void 0!==
m&&(void 0===a[m]?(a[m]=[[[g[k]],[],[],void 0,void 0,!1]],a[0][1].push(m)):a[0][5]||a[m][0][0].push(g[k]))}void 0===a[0][3]&&(a[0][3]=[]);void 0===d?a[0][3][this.zg.length]=!0:a[0][3][this.ii(d)]=!0;a[0][5]=!0}}}jR(a,c,d,g,k){if(void 0!==c&&void 0!==c[0]){var m=c[0][0];if(0<m.length&&!isNaN(g)){for(let n=0;n<m.length;n++){const p=this.zb[m[n]][g];0!==p&&void 0!==p&&(void 0===a[p]?(a[p]=[[[m[n]],[],[],void 0,void 0]],void 0===c[0][2]&&(c[0][2]=[]),c[0][2].push(p),this.dm[d][p]=g):-1===a[p][0][0].indexOf(m[n])&&
a[p][0][0].push(m[n]))}void 0===c[0][4]&&(c[0][4]=[]);void 0===k?c[0][4][this.zg.length]=!0:c[0][4][this.ii(k)]=!0}}}}f.P6=b})(h.jc||(h.jc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{}b.e$={date:"date string","year/month/day":"date string","year/quarter/month/day":"date string"};class a extends l.O.Bm{constructor(c=null){super(c);this.lX()}lX(){this.Ita();this.Hta()}Hta(){for(let c in this.mapping)Array.isArray(this.mapping[c])&&(this.mapping[c]=this.mapping[c][0])}Ita(){var c=this.mapping;for(let d in c)c=this.La(d,"type"),null!=c&&b.e$.hasOwnProperty(c)&&this.oi(d,"type",b.e$[c])}}f.XO=a})(h.jc||(h.jc={}))})(l.external||
(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){if(null!=b.instance)throw Error("Singleton");}static R(){null==b.instance&&(b.instance=new b);return b.instance}static dispose(){b.instance=null}async rO(a,c){return new Promise((d,g)=>{u.uo.load("lib/sha1.min.js",()=>{var k=e.model.Ea.ca.I(e.model.Ea.ca.AKa);if(null!=k){var m=JSON.stringify(c.Sa());var n=new jsSHA("SHA-1","TEXT");n.setHMACKey(k,"TEXT");n.update(m);m=n.getHMAC("B64")}a.$h({"x-flexmonster":m});a.xv("save",null!==
c?c.Sa():{},(p,t)=>{if(e.v(t))p&&(e.Va(e.P.bind(e.model.B.j.l9,p),e.model.B.j.xa,e.ob.xa),a.close(),g(p));else{p=new URL(location.href);p.searchParams.set("flexmonsterreport",t);var r=p.href;e.Va(e.P.bind(e.model.B.j.Fpa,r),e.model.B.j.mn,e.ob.mn,[e.model.B.j.Z6,e.model.B.j.xm],[()=>{const v=document.createElement("textarea");v.value=r;v.setAttribute("readonly","");v.style.position="fixed";v.style.left="-9999px";document.body.appendChild(v);v.select();document.execCommand("copy");document.body.removeChild(v)},
()=>{}]);a.close();d(r)}})})})}gFa(a,c,d){var g=new f.SA(a);g.xv("load",c,(k,m)=>{e.v(m)||d&&d(m);k&&(e.Va(e.P.bind(e.model.B.j.k9,k),e.model.B.j.xa,e.ob.xa),console.error("Can't load the shared file. The URL to the server hasn't been found. "+k),d&&d());g.close()})}}f.O6=b})(h.jc||(h.jc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){class h extends x.ce.sk{get jfa(){return this.toolbar&&null!=this.toolbar.create}constructor(f,b){super();this.RU=this.e3=!1;this.pfa="theme/accessible/flexmonster.min.css";this.kga=!1;this.ma=e.model.Wa.R();this.pH=null;this.u3=this.v3=this.height=this.width=0;this.IO=!1;this.Z$=0;this.dH=[];this.fha=0;this.hda=!1;this.bz=d=>this.pv(d);this.cz=d=>this.qv(d);this.dz=()=>this.LN();this.az=null;this.Bda=()=>{h.Jb.rb(l.Vi.qp,this.Bda);this.Qb.Gk(this.pH.Lu,this.pH.pb,(...d)=>
{this.Qb.J=null;this.ma.J=e.u.Te.Qi.Bc("chart");null!=this.pH.Op&&this.pH.Op.apply(null,d);this.pH=null})};this.fja("fm-pivot-view");null!=this.rf&&this.rf.dispose();f.empty();this.rf=f;h.Jb=this;var a=b.width?"number"===typeof b.width?b.width+"px":-1<b.width.indexOf("px")||b.width.indexOf("%")==b.width.length-1?b.width:b.width+"px":"100%";f=b.height?"number"===typeof b.height?b.height+"px":-1<b.height.indexOf("px")||b.height.indexOf("%")==b.height.length-1?b.height:b.height+"px":"500px";var c=/\d+(?=px|%)/;
a=a.match(c)?a:"100%";f=f.match(c)?f:"500px";this.rf.V("width",a);this.rf.V("height",f);this.G.V("width",a);this.G.V("height",f);this.rf.append(this.G);f=[];b.toolbar?(f=["toolbar/flexmonster.toolbar.js"],this.IO=!0):this.IO=!1;u.FX.M1()||(c=new x.Ga("div","fm-csscheck"),this.rf.append(c),"flexmonster"!=window.getComputedStyle(c.element).getPropertyValue("font-family")&&'"flexmonster"'!=window.getComputedStyle(c.element).getPropertyValue("font-family")&&f.unshift("flexmonster.css"),c.remove());u.uo.load(f,
()=>{this.G.requestAnimationFrame(()=>{if(!u.Nd().fj&&!u.FX.Dva(e.Cg.Iq)){const d=`Flexmonster: CSS version mismatch.\nVersions of Flexmonster specified in the CSS and JS files do not match.\nThe version of Javascript: ${e.Cg.Iq}, the version of CSS: ${u.FX.M1()}.\nTo fix the issue, please try the following:\n1. Clear your browser cache to make sure the latest files are loaded.\n2. Check if the CSS file was updated correctly along with Flexmonster.\n3. Ask the tech team for help (https://www.flexmonster.com/technical-support/).`;
console.warn(d)}this.toolbar=b.toolbar?new FlexmonsterToolbar(this.rf.element,e.Cg.instance.jc,"html5",a,e.model.B.pB.R().nea(),e.model.Ea.xc.bk()):null;e.Cg.instance.jc.toolbar=this.toolbar;this.jfa&&(e.model.Za.R().Ha(new e.model.jd(e.model.Za.tX,this.toolbar)),this.toolbar.create());this.IO=!1;this.Ke();this.nb()})},()=>{this.IO=!1});this.ma.Fa.N(e.model.Xb.Vc.vy,()=>this.A4());this.ma.Fa.N(e.model.Xb.Vc.kY,()=>this.aIa());this.ma.Fa.N(e.model.Xb.Vc.NX,()=>this.c4());this.ma.Fa.N(e.model.Xb.Vc.DF,
()=>this.y4());this.ma.Fa.N(e.model.Xb.Vc.zB,()=>{});this.ma.Fa.N(e.model.Xb.Vc.hl,d=>this.IGa(d));this.ma.Fa.N(e.model.Xb.Vc.si,()=>this.J4());this.ma.Fa.N(e.model.Xb.Vc.QF,()=>this.K4());this.ma.Fa.N(e.model.Xb.Vc.FF,()=>this.rI());this.ma.N(e.ef.TX,d=>this.XGa(d));this.ma.N(e.ef.yY,()=>this.hIa());this.ma.N(l.Qa.pk.h7,d=>this.bIa(d));this.ma.N(l.Vi.t7,d=>this.cIa(d));this.N(l.Vi.qp,()=>this.aGa());e.Ik.addEventListener("fullscreenchange",()=>this.CV(),!1);e.Ik.addEventListener("mozfullscreenchange",
()=>this.CV(),!1);e.Ik.addEventListener("webkitfullscreenchange",()=>this.CV(),!1);e.Ik.addEventListener("MSFullscreenChange",()=>this.CV(),!1);this.rf.N("fullscreenchange",d=>this.IV(d),!1);this.rf.N("mozfullscreenchange",d=>this.IV(d),!1);this.rf.N("webkitfullscreenchange",d=>this.IV(d),!1);this.rf.N("MSFullscreenChange",d=>this.IV(d),!1);u.TP.R().N(u.KeyboardEvent.k$,()=>this.QIa())}QIa(){this.gja(!this.e3)}gja(f){this.e3=f;this.rf.ab("fm-keyboard-mode",this.e3)}get aF(){if(this.toolbar){var f=
x.Ga.Yb(this.rf.element.querySelector("#fm-toolbar-wrapper"));return null==f?0:f.height}return 0}static get Wx(){var f=h.Jb.G.borderWidth;return h.Jb.rf.cg(u.PU())-f.left-f.right}static get Nja(){var f=h.Jb.G.borderWidth;return h.Jb.rf.zd(u.PU())-f.top-f.bottom}static get Io(){return e.model.C.F.me==l.Jd.mo?h.YQ:h.Wx-h.Jb.kD}static get Go(){return e.model.C.F.me==l.Jd.mo?h.BK:h.Jb.Gr()}static get gN(){return e.model.C.F.me==l.Jd.mo?h.vR:h.Wx-h.Jb.kD}static get KD(){return e.model.C.F.me==l.Jd.mo?
h.uR:h.Jb.Gr()}get kD(){return"right"==e.model.C.F.jD&&e.model.C.F.Qm?this.Z$:0}set kD(f){this.Z$=f}Gr(){return this.oU()&&null!=this.Om?h.Nja-(this.Om.zd()+this.Om.G.borderWidth.top)-h.Jb.aF:h.Nja-h.Jb.aF}Kr(f){this.Qb&&this.Qb.na&&this.Qb.na.Kr(f)}ot(f){this.Qb&&this.Qb.na&&this.Qb.na.ot(f)}nb(f=!1){this.Uba();if(this.hda||this.kga&&(e.model.Ea.xc.error||!e.ka(e.model.Ea.xc.mz))){var b=this.G.requestAnimationFrame(()=>{this.Uba();this.oZ(f)});this.dH.push(b)}else 500>this.fha++||(this.IO||e.ka(e.model.Ea.xc.mz))&&
5E3>this.fha?this.XFa=e.ve(()=>{this.nb(f)},10):this.rf.visible&&(console.error("Something went wrong.\nTo fix the issue please try the following:\n1. Check if the componentFolder parameter is defined correctly.\n2. Check if the path to the css file is valid.\n3. Check if DevTools (press F12) has an exception.\n4. Ask the support team for help (https://www.flexmonster.com/technical-support/)"),"hidden"!=document.visibilityState&&(e.model.Ea.xc.wq||alert("Something went wrong.\nTo fix the issue please try the following:\n1. Check if the componentFolder parameter is defined correctly.\n2. Check if the path to the css file is valid.\n3. Check if DevTools (press F12) has an exception.\n4. Ask the support team for help (https://www.flexmonster.com/technical-support/)")))}Uba(){for(;0<
this.dH.length;)this.G.cancelAnimationFrame(this.dH.pop());this.dH=[];e.sr(this.XFa);e.sr(this.sia)}uka(){if(!this.rf)return!1;var f=u.PU(),b=this.rf.cg(),a=this.rf.zd();a-=this.aF;if(this.v3!==b||this.u3!==a)this.G.V("width",b+"px"),f?this.G.V("height","calc(100% - "+this.aF+"px)"):this.G.V("height",a+"px");return this.v3!==b||this.u3!==a}U4(){this.toolbar&&null!=this.toolbar.applyToolbarLayoutClasses&&this.toolbar.applyToolbarLayoutClasses();this.nb(!0)}A4(){this.ma&&this.ma.Fa.Hf==e.model.Xb.Ep.INIT&&
this.gH()}c4(){null!=this.Qb&&this.Qb.yu();this.nb()}y4(){this.ma.Fa.Hf!=e.model.Xb.Ep.rK&&this.ma.Fa.Hf!=e.model.Xb.Ep.$A&&this.gH()}aIa(){this.gH()}vha(){this.ma.Fa.ga.Ec&&(null!=this.Qb&&this.Qb.yu(),this.nb())}uha(){this.ma.Fa.Hf!=e.model.Xb.Ep.rK&&this.ma.Fa.Hf!=e.model.Xb.Ep.$A&&this.gH()}jha(){this.ma.Fa.Hf!=e.model.Xb.Ep.rK&&this.ma.Fa.Hf!=e.model.Xb.Ep.$A&&this.gH()}IGa(f){this.ma.Fa.Hf==e.model.Xb.Ep.INIT||this.ma.Fa.Hf==e.model.Xb.Ep.Y8||null==this.Qb||f.data!=e.u.i.Md.to&&f.data!=e.u.i.Md.BP||
(this.Qb.yu(),this.nb())}rI(){null!=this.toolbar&&this.toolbar.updateLabels(e.model.B.pB.R().nea());null!=this.Ei&&this.Ei.updateLabels();null!=this.Qb&&this.Qb.updateLabels()}Uw(f){f=this.ma.ja.qa.vc().getItem(f);null!=f&&this.Qfa(f)&&(this.Qb.yu(),this.ma.J.Uw(f))}WR(f,b){f=this.ma.ja.qa.td(f);let a=[],c=0;for(let g=0;g<b.length;g++){let k=f.Na.fa(c);k.We&&(c++,k=f.Na.fa(c));var d=k.Ib(b[g]);e.v(d)&&(d=k.Ib(e.u.ze.Ws(b[g])));if(e.v(d))return[];a.push(d.ordinal);c++}return a}nT(f,b,a){this.Qb.yu();
this.ma.J.expand(this.WR(f,b),f,this.ma.ja.qa.fd(a))}DS(f,b,a){this.Qb.yu();this.ma.J.collapse(this.WR(f,b),f,this.ma.ja.qa.fd(a))}jT(f,b,a,c){this.Qb.yu();var d=this.ma.ja.qa.td(f);const g=d.bb&&d.ke<=b.length?d.Na.fa(b.length+1):d.Na.fa(b.length);d=g.Ib(c);e.v(d)&&(c=e.u.ze.Ws(c),d=g.Ib(c));e.v(d)||(b=this.WR(f,b),b.push(d.ordinal),this.ma.J.Xp(b,d,f,this.ma.ja.qa.fd(a)))}iT(f,b,a,c){this.Qb.yu();var d=this.ma.ja.qa.td(f);const g=d.bb&&d.ke<=b.length?d.Na.fa(b.length+1):d.Na.fa(b.length);d=g.Ib(c);
e.v(d)&&(c=e.u.ze.Ws(c),d=g.Ib(c));e.v(d)||(b=this.WR(f,b),b.push(d.ordinal),this.ma.J.Ee(b,d,f,this.ma.ja.qa.fd(a)))}Ew(f){f=this.ma.ja.qa.vc().getItem(f);null!=f&&this.Qfa(f)&&(this.Qb.yu(),this.ma.J.Ew(f))}Qfa(f){const b=this.ma.ja.qa,a=b.rows.Bb(f.A)?e.u.i.ha.Ia:e.u.i.ha.Oa;return(a==e.u.i.ha.Ia?b.wb.indexOf(f.A):b.Fb.indexOf(f.A))+1<(a==e.u.i.ha.Ia?b.wb.length:b.Fb.length)}J4(){this.ma.Fa.Hf==e.model.Xb.Ep.sp?this.gH():this.rf&&this.nb()}K4(){this.jwa()}CV(){this.dfa()}IV(f){f.stopPropagation();
this.dfa()}dfa(){var f=u.PU();null!=e.model.Za.jsFullScreenHandler&&e.model.Za.jsFullScreenHandler.call(null,f);var b=0,a=()=>{this.rf.zd()!=parseInt(this.rf.element.style.height)&&5>b?(b++,this.rf.requestAnimationFrame(a)):this.uka()&&this.nb(!0)};this.rf.requestAnimationFrame(a)}Ke(){this.toolbar&&(this.G.height-=this.aF);this.Qb=new l.Y.joa;this.Qb.N(l.Vi.sy,f=>this.eHa(f));this.Qb.N(l.Vi.KX,f=>this.kha(f));this.X(this.Qb);this.Ei=new l.qd.vp;this.Ei.N(w.ia.OPENED,()=>{});this.Ei.N(w.ia.CLOSED,
()=>{});this.Ei.N(l.qd.vp.yP,()=>this.e4());this.Ei.N(l.qd.vp.AJ,f=>this.d4(f));this.X(this.Ei);e.Ik.addEventListener("keydown",f=>this.tq(f));this.sG=new u.Uqa(this.rf.parent);this.sG.N(w.ia.DY,f=>this.U4(f));this.kga=!0}jKa(){l.aP.R().hv&&l.aP.R().Pp()}oZ(f=!1){null==this.ma||0==this.rf.width||f&&x.eM.uP.R().KDa||(this.uka(),this.jKa(),1>e.model.Ea.xc.bk()||(this.hda=!0,this.sG.refresh(),this.oU()&&this.Eya(),this.bDa()&&(this.X(this.mX),this.mX.nb()),e.model.C.F.sc&&this.ma.ja.ga&&!this.ma.ja.ga.aI&&
(e.model.C.F.sc=!1,e.Va(e.P.bind(e.model.B.j.Cpa,e.u.i.ra.I(this.ma.ja.ga.Aa)),e.model.B.j.VP)),e.model.C.F.sc&&e.model.C.F.me==l.Jd.mo&&this.ma.ja.ga&&this.ma.ja.ga.Aa==e.u.i.ra.API&&(e.model.C.F.me=l.Jd.It,e.Va(e.P.bind(e.model.B.j.pY),e.model.B.j.VP,e.ob.nk)),null!=this.Hk&&this.Hk.nb(),e.v(this.ma.Fa.ga)||this.ma.Fa.ga.kb||!e.model.C.F.JS?this.Ei.$a():this.Ei.show(),f||e.model.C.F.UC||l.Qa.tF.kL||(e.model.C.F.Qm=!1),e.v(this.ma.ja.qa)||e.v(this.ma.ja.O)||this.ma.ja.O.kb||!this.ma.ja.qa.kb||(e.model.C.F.Qm=
!0),e.model.C.F.Qm&&null!=this.ma.Fa.ga&&!this.ma.Fa.ga.kb?this.Ei.open(this.ma.ja.O,this.ma.ja.qa,this.ma.Fa.ga.Aa):this.Ei.close(),e.model.C.F.me==l.Jd.nj?this.P0(f):e.model.C.F.me==l.Jd.mo?this.R0(f):this.Q0(f),null!=this.ql&&this.ql.isVisible()&&(e.model.C.F.sc&&e.model.C.F.me===l.Jd.It?this.ql.close():this.ql.j5()),this.v3=this.cg(),this.u3=this.zd()))}gH(){e.model.C.F.me==l.Jd.nj?this.P0(!1,!0):e.model.C.F.me==l.Jd.mo?this.R0(!1):this.Q0(!1,!0);e.v(this.Ei)||(this.Ei.close(),this.Ei.$a())}OW(){if(this.ma.Fa.ga.Aa==
e.u.i.ra.API&&e.model.C.F.sc&&e.model.C.F.me==l.Jd.nj){const f=e.model.C.F.gx(!1,!0);f.oa("viewType",l.Jd.It);this.ma.Cq(f.Sa())}else e.model.C.F.me=l.Jd.It,e.model.C.F.sc&&this.Ei&&this.Ei.hv&&this.Ei.open(this.ma.ja.O,this.ma.ja.qa,this.ma.Fa.ga.Aa),this.Q0()}Q0(f=!1,b=!1){null!=this.Qb&&(null!=this.kd&&this.kd.$a(),null!=this.bl&&this.bl.$a(),f||null==this.Hk||this.Hk.close(),this.Qb.J=b?null:this.ma.J=e.u.Te.Qi.Bc(),this.Qb.G.V("top","").V("left","").V("right","").V("bottom",""),this.Qb.G.V("position",
"absolute"),this.Qb.show(),this.Qb.G.V("height",h.KD+"px"),this.Qb.G.V("width",h.Wx+"px"),b&&this.Qb.yu(),this.Qb.nb())}tO(f="",b=!1){if(this.ma.Fa.ga.Aa==e.u.i.ra.API&&e.model.C.F.sc&&e.model.C.F.me==l.Jd.It){const a=e.model.C.F.gx(!1,!0);a.oa("viewType",l.Jd.nj);a.oa("chartType",f);a.oa("chartMultipleMeasures",l.Dd.Oe.Yfa(f)?b:!1);this.ma.Cq(a.Sa())}else e.model.C.F.me=l.Jd.nj,e.model.C.F.CL=f,e.model.C.F.QG=l.Dd.Oe.Yfa(f)?b:!1,this.P0()}P0(f=!1,b=!1){u.uo.load("lib/d3.v3.min.js",()=>{f||null==
this.Hk||this.Hk.close();null!=this.Qb&&this.Qb.$a();null!=this.bl&&this.bl.$a();null==this.kd&&this.FG();this.kd.G.V("top","").V("left","").V("right","").V("bottom","");this.kd.G.V("position","absolute");this.kd.show();this.kd.G.V("height",h.Go+"px");this.kd.G.V("width",h.Io+"px");this.kd.J=b?null:this.ma.J=e.u.Te.Qi.J1(e.model.C.F.oS);this.kd.nb();e.model.C.F.sc&&this.Ei&&this.Ei.hv&&this.Ei.open(this.ma.ja.O,this.ma.ja.qa,this.ma.Fa.ga.Aa);b||0!=this.dH.length||(this.sia=e.ve(()=>{this.Ya(l.Vi.CY)},
1))})}PW(f="",b="bottom",a=!1){this.ma.Fa.ga.Aa==e.u.i.ra.API&&e.model.C.F.sc?e.Va(e.P.bind(e.model.B.j.pY),e.model.B.j.VP,e.ob.nk):(e.model.C.F.me=l.Jd.mo,e.model.C.F.CL=f,e.model.C.F.ez=b,e.model.C.F.QG=a,this.R0())}R0(f=!1){u.uo.load("lib/d3.v3.min.js",()=>{f||null==this.Hk||this.Hk.close();null!=this.Qb&&(this.Qb.show(),this.Qb.J=this.ma.J=e.u.Te.Qi.Bc(),null==this.kd&&this.FG(),this.kd.show(),this.kd.J=e.u.Te.Qi.J1(e.model.C.F.oS),null==this.bl&&this.uua(),this.bl.show(),this.bl.direction="left"==
e.model.C.F.ez||"right"==e.model.C.F.ez?x.MQ.XY:x.MQ.PJ,this.bl.gxa=[150,150,h.Wx-150,this.Gr()-150],this.gda(e.model.C.F.ez))})}IIa(f){var b=e.model.C.F.ez;this.gda(b,"left"==b||"right"==b?f.data.left:f.data.top)}gda(f="bottom",b=NaN){var a=h.Wx-h.Jb.kD;isNaN(b)&&(b="left"==f||"right"==f?Math.round(a/2):Math.round(this.Gr()/2));switch(f){case "bottom":h.vR=a;h.uR=b;this.Qb.G.V("width",h.gN+"px");this.Qb.G.V("height",h.KD+"px");this.Qb.G.V("top",0).V("left",0).V("right","").V("bottom","");h.YQ=a;
h.BK=this.Gr()-this.Qb.G.zd()-this.bl.zd();this.kd.G.V("width",h.Io+"px");this.kd.G.V("height",h.BK+"px");this.kd.G.V("bottom",this.oU()&&!e.v(this.Om)?this.Om.zd()+"px":0).V("left",0).V("right","").V("top","");this.bl.G.V("top",b+"px").V("left","").V("right","").V("bottom","");break;case "top":h.YQ=a;h.BK=b;this.kd.G.V("width",h.Io+"px");this.kd.G.V("height",h.Go+"px");this.kd.G.V("top",0).V("left",0).V("right","").V("bottom","");h.vR=a;h.uR=this.Gr()-this.kd.G.zd()-this.bl.zd();this.Qb.G.V("width",
h.gN+"px");this.Qb.G.V("height",h.KD+"px");this.Qb.G.V("bottom",this.oU()&&!e.v(this.Om)?this.Om.zd()+"px":0).V("left",0).V("right","").V("top","");this.bl.G.V("top",b+"px").V("left","").V("right","").V("bottom","");break;case "left":h.YQ=b;h.BK=this.Gr();this.kd.G.V("width",h.Io+"px");this.kd.G.V("height",h.Go+"px");this.kd.G.V("top",0).V("left",0).V("right","").V("bottom","");h.vR=a-this.kd.G.cg()-this.bl.cg();h.uR=this.Gr();this.Qb.G.V("width",h.gN+"px");this.Qb.G.V("height",h.KD+"px");this.Qb.G.V("top",
0).V("right",h.Jb.kD+"px").V("left","").V("bottom","");this.bl.G.V("left",b+"px").V("top","").V("right","").V("bottom","");break;case "right":h.vR=b,h.uR=this.Gr(),this.Qb.G.V("width",h.gN+"px"),this.Qb.G.V("height",h.KD+"px"),this.Qb.G.V("top",0).V("left",0).V("right","").V("bottom",""),h.YQ=a-this.Qb.G.cg()-this.bl.cg(),h.BK=this.Gr(),this.kd.G.V("width",h.Io+"px"),this.kd.G.V("height",h.Go+"px"),this.kd.G.V("top",0).V("right",h.Jb.kD+"px").V("left","").V("bottom",""),this.bl.G.V("left",b+"px").V("top",
"").V("right","").V("bottom","")}this.Qb.G.V("position","absolute");this.kd.G.V("position","absolute");this.Qb.nb();this.kd.nb()}kha(f){null==this.ql&&this.Xta();for(var b,a=this.ma.ja.qa.gd(),c=0;c<a.length;c++){var d=a[c];d.A==f.measure.A&&d.$==f.measure.$&&(b=d)}this.ql.ap(this.ma.J,this.ma.ja.qa,f.Jg,f.Ah,b,f.cell)}$Ia(f){if(null!=this.ma.ja&&null!=this.ma.ja.O){var b=this.ma.ja.O.vc(!1).getItem(f),a=this.ma.ja.qa;null!=b&&(a.qb.Bb(f)||a.rows.Bb(f)||a.Ka.Bb(f))&&(f={hierarchy:b.lj()},e.model.Za.R().Ha(new e.model.jd(e.model.Za.sy,
f)),this.uI(b))}}SV(){e.v(this.ma.Fa.ga)||this.ma.Fa.ga.kb||("right"==e.model.C.F.jD?(e.model.C.F.UC=!0,e.model.C.F.Qm=!0,this.nb()):this.Ei.open(this.ma.ja.O,this.ma.ja.qa,this.ma.Fa.ga.Aa))}GL(){"right"==e.model.C.F.jD?(e.model.C.F.UC=!1,e.model.C.F.Qm=!1,this.nb()):this.Ei.close()}d4(f){if(!u.Hc.Og(this.ma.ja.qa.Ij)){var b=new e.model.hb.vo;b.Ij=this.ma.ja.qa.Ij;f.data.Ij=b.Ij}this.ma.ge(f.data)}yDa(){return!e.v(this.ma.Fa.ga)&&(!this.ma.Fa.ga.Ec||this.ma.Fa.ga.Aa===e.u.i.ra.API)&&!this.ma.ja.O.kb||
e.model.C.F.tu&&this.ma.Fa.ga.Aa===e.u.i.ra.Cc}UN(f=null,b=null){e.v(this.ma.Fa.ga)||this.ma.Fa.ga.kb||!this.yDa()||(e.v(b)||(this.az="string"==typeof b?e.model.Za.Hea(b):b),e.ka(f)||e.model.Wa.R().N(l.Qa.pk.VA,this.cz),e.model.Wa.R().Ha(new l.Qa.HX(f)),e.model.Wa.R().N(l.Qa.pk.UA,this.bz),e.model.Wa.R().N(l.Qa.pk.WA,this.dz))}pv(f){e.model.Wa.R().rb(l.Qa.pk.UA,this.bz);e.v(this.az)||this.az({uniqueName:f.Vs,isRemoved:!1});this.az=null}qv(f){e.model.Wa.R().rb(l.Qa.pk.VA,this.cz);e.v(this.az)||this.az({uniqueName:f.Vs,
isRemoved:!0});this.az=null}LN(){e.model.Wa.R().rb(l.Qa.pk.WA,this.dz);this.az=null}dHa(f){null==this.Hk&&this.u_();this.Hk.G.ab("fm-charts-filter",!0);this.HV(f)}eHa(f){null==this.Hk&&this.u_();this.Hk.G.ab("fm-charts-filter",!1);this.HV(f)}HV(f){var b={hierarchy:f.hierarchy.lj()};e.model.Za.R().Ha(new e.model.jd(e.model.Za.sy,b));this.uI(f.hierarchy)}uI(f){null==this.Hk&&this.u_();this.Hk.ap(f)}jwa(){null!=this.ql&&this.ql.close()}Eya(){null!=this.Om&&null!=this.gX||this.Jta();this.X(this.Om);this.Om.ab("fm-layout-660",
660>this.Om.cg());this.Om.ab("fm-layout-520",520>this.Om.cg());var f="";e.model.Ea.xc.Av&&(f=e.model.Ea.ca.I(e.model.Ea.ca.qka)+"("+u.Lh.format(e.model.Ea.xc.oH,e.model.Ea.ca.I(e.model.Ea.ca.Fu))+")",new Date(Date.now()+432E6)>e.model.Ea.xc.oH&&(f+=e.model.Ea.ca.I(e.model.Ea.ca.tza)));e.model.Ea.xc.Vp&&(u.Jfa()||e.model.Ea.xc.Vca||(f=e.model.Ea.ca.I(e.model.Ea.ca.uya)+e.model.Ea.xc.x3+")"));this.gX.fb(f,!0)}e4(){this.SV()}tq(f){if(this.an||this.t2)73===f.keyCode&&(f.ctrlKey||f.metaKey)&&f.altKey&&
this.Aja(),72===f.keyCode&&(f.ctrlKey||f.metaKey)&&f.altKey&&this.ELa(!this.RU),27===f.keyCode&&(null!=this.Hk&&this.Hk.close(),null!=this.ql&&(this.ql.Yt.hv?this.ql.Yt.close():this.ql.close()),null!=this.MG&&this.MG.isVisible()?this.MG.close():this.Ei.close())}ELa(f){f?(f=document.querySelector("link[data-fm-hc-theme]"))?(f.disabled=!1,this.RU=!0,this.nb()):u.uo.z3(this.pfa,{wL:{"data-fm-hc-theme":""},Bj:!0},()=>{this.RU=!0;this.nb()}):(u.uo.RMa(),this.nb(),this.RU=!1)}FLa(f){this.pfa=f}XGa(f){this.ql&&
this.ql.isVisible()?this.ql.Gk(f.Lu,f.pb,f.Op):e.model.C.F.me==l.Jd.It?(this.Qb.J=e.u.Te.Qi.Bc(e.model.C.F.p2==l.Y.wf.rj?"flat":"pivot"),this.Qb.Gk(f.Lu,f.pb,f.Op)):e.model.C.F.me!=l.Jd.nj||f.Lu!=e.model.Dc.qj.ci&&f.Lu!=e.model.Dc.qj.wF?e.model.C.F.me==l.Jd.nj?(null==this.kd&&this.FG(),this.kd.Gk(f.pb)):e.model.C.F.me==l.Jd.mo&&(f.Lu==e.model.Dc.qj.nB||f.Lu==e.model.Dc.qj.Ov||f.Lu==e.model.Dc.qj.vB?(null==this.kd&&this.FG(),this.kd.Gk(f.pb,!0,b=>{this.Qb.Gk(f.Lu,f.pb,f.Op,b)})):this.Qb.Gk(f.Lu,f.pb,
f.Op)):(this.Qb.J=e.u.Te.Qi.Bc(e.model.C.F.p2==l.Y.wf.rj?"flat":"pivot"),this.pH=f,h.Jb.N(l.Vi.qp,this.Bda),this.Qb.nb())}hIa(){e.model.C.F.me==l.Jd.It?this.Qb.print():e.model.C.F.me==l.Jd.nj?(null==this.kd&&this.FG(),this.kd.print()):e.model.C.F.me==l.Jd.mo&&(null==this.kd&&this.FG(),this.kd.print(f=>this.nGa(f)))}nGa(f){this.Qb.print(f)}oU(){e.model.Ea.xc.bk();return e.model.Ea.xc.Zy||e.model.Ea.xc.wq?!1:!0}bDa(){return!e.model.Ea.xc.wq&&!e.model.Ea.xc.Vp&&!e.model.Ea.xc.Zy}Aja(){var f=new Date(parseFloat(e.Cg.bP)/
61);let b=u.Lh.format(f,e.model.Ea.ca.I(e.model.Ea.ca.gNa))+" (v. "+e.Cg.Iq+")";b+=e.model.Ea.ca.I(e.model.Ea.ca.Xg);b+=e.P.bind(e.model.Ea.ca.I(e.model.Ea.ca.pva),u.Lh.format(f,e.model.Ea.ca.I(e.model.Ea.ca.fya)));b+=e.model.Ea.ca.I(e.model.Ea.ca.Xg);b+=e.model.Ea.ca.I(e.model.Ea.ca.dya)+e.model.Ea.xc.UEa();e.model.Ea.xc.Vp?b+=e.model.Ea.ca.I(e.model.Ea.ca.bJa)+e.model.Ea.xc.x3:e.model.Ea.xc.wq&&(b+=e.model.Ea.ca.I(e.model.Ea.ca.Aya)+e.model.Ea.xc.Aga);f=!1;e.model.Ea.xc.Av?e.model.Ea.xc.Vp||e.model.Ea.xc.wq?
b+=e.model.Ea.ca.I(e.model.Ea.ca.PEa)+u.Lh.format(e.model.Ea.xc.oH,e.model.Ea.ca.I(e.model.Ea.ca.Fu)):(f=!0,b+=e.model.Ea.ca.I(e.model.Ea.ca.MMa)+u.Lh.format(e.model.Ea.xc.oH,e.model.Ea.ca.I(e.model.Ea.ca.Fu))):b+=e.model.Ea.ca.I(e.model.Ea.ca.QEa);f||(b+=e.model.Ea.ca.I(e.model.Ea.ca.Xg),b+=e.model.Ea.ca.I(e.model.Ea.ca.Vja)+u.Lh.format(e.model.Ea.xc.aX,e.model.Ea.ca.I(e.model.Ea.ca.Fu)));b+=e.model.Ea.ca.I(e.model.Ea.ca.TEa)+e.model.Ea.xc.mz;b+=e.model.Ea.ca.I(e.model.Ea.ca.info);e.Va(b,e.model.Ea.ca.I(e.model.Ea.ca.rwa),
e.ob.OP)}ag(f,b){return this.Qb.ag(f,b)}YT(f,b){return this.Qb.YT(f,b)}OH(){return this.Qb.OH()}AA(f,b){this.Qb.AA(f,b)}FE(){this.Qb.FE()}get fN(){return this.Qb.fN}get eN(){return this.Qb.eN}bIa(f){null==this.MG&&this.Lta();this.MG.ap(f.Vs)}cIa(f){null==this.contextMenu&&this.Ota();var b=f.data.GFa;b&&0<b.length&&this.contextMenu.gp(this.G,b,f.data.coords,null,f.data.mL)}aGa(){0==this.dH.length&&(this.sia=e.ve(()=>{this.Ya(l.Vi.CY)},1))}Lta(){this.MG=new l.Qa.tF;this.X(this.MG)}FG(){this.kd=new l.Dd.Gv;
this.kd.N(l.Vi.sy,f=>this.dHa(f));this.kd.N(l.Vi.KX,f=>this.kha(f));this.X(this.kd)}Xta(){this.ql=new l.Yf.vF;this.X(this.ql)}u_(){this.Hk=new l.filter.aoa;this.Hk.N(w.ia.OPENED,()=>{});this.Hk.N(w.ia.CLOSED,()=>{});this.X(this.Hk)}uua(){this.bl=new x.MQ;this.bl.$a();this.bl.N(x.MQ.QX,f=>this.IIa(f));this.X(this.bl)}Ota(){this.contextMenu=new x.mr.XF(h.Jb.G);this.contextMenu.aa("fm-context-menu");this.contextMenu.$a();this.X(this.contextMenu)}Jta(){this.Om=new x.ce.sk;this.Om.aa("fm-branding-bar");
this.gX=new x.Tc;this.gX.aa("fm-version-label");this.Om.X(this.gX);this.fX=new x.Tc;this.fX.aa("fm-link");this.fX.fb(e.model.Ea.ca.I(e.model.Ea.ca.Rha),!0);this.Om.X(this.fX);var f=new x.Ga("span","fm-info-icon");f.N("click",()=>this.Aja());this.fX.G.append(f);this.mX=new l.isa}dispose(){this.ma=null;this.Qb&&this.Qb.dispose();this.kd&&this.kd.dispose();this.ql&&this.ql.dispose();this.G.dispose();this.rf.dispose();l.aP.dispose();l.filter.C8.dispose();l.zY.dispose();x.eM.uP.dispose();u.TP.dispose();
h.Jb=null;this.toolbar&&(this.toolbar.dispose&&this.toolbar.dispose(),this.toolbar=null);this.sG&&(this.sG.Vd(w.ia.DY),this.sG.dispose(),this.sG=null)}}l.Sb=h})(e.K||(e.K={}))})(q||(q={}));(function(e){(function(l){class h{static ih(f){if(e.v(f)||"string"!=typeof f)return!1;f=f.toLowerCase();return f==h.It||f==h.nj||f==h.mo}}h.It="grid";h.nj="charts";h.mo="grid_charts";l.Jd=h})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){class h{constructor(){this.Hm=0;this.xG=!1;this.IK=this.qG="";this.AG=!1}show(f,b,a,c=!0,d=!1){f?(d&&this.V5(f,b,a,c),0==this.xG?(this.xG=f,this.qG=b,this.IK=a,this.AG=c,this.Hm=e.ve(()=>this.Yja(),h.I7)):0==this.Hm?this.V5(f,b,a,c):(this.xG=f,this.qG=b,this.IK=a,this.AG=c)):(d&&this.V5(f,b,a,c),1==this.xG&&(this.xG=f,this.Hm=e.ve(()=>this.Yja(),h.I7)))}V5(f,b,a,c){this.uia();this.Vha(f,b,a,c)}Yja(){this.uia();this.Vha(this.xG,this.qG,this.IK,this.AG)}uia(){e.sr(this.Hm);
this.Hm=0}Vha(f,b,a,c){l.zY.R()&&l.zY.R().ap(f,b,a,c)}static R(){null==h.Be&&(h.Be=new h);return h.Be}static dispose(){h.Be=null}}h.I7=250;l.Fqa=h})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){class h extends x.ce.Fy{constructor(){if(null!=h.Be)throw Error("Singleton");super(l.Sb.Jb.G);this.aa("fm-preloader-view");this.Wk("status");this.Ke()}ap(f=!0,b="",a="",c=!0){this.qG=b;this.IK=a;this.fta=c;f?this.open():this.close()}open(){super.open();this.nb()}Ke(){this.tE.aa("fm-overlay-preloader");this.tE.rb("click",this.Baa);this.jaa=new x.Pa("div","fm-spinner");this.jaa.Eo();this.X(this.jaa);this.xs=new x.Tc;this.xs.Eo();this.xs.aa("fm-message-label");this.X(this.xs);
this.XR=new x.Tc;this.XR.Eo();this.XR.aa("fm-details-label");this.X(this.XR);this.$a();l.Sb.Jb.X(this)}nb(){this.tE.KLa(!this.fta);this.II(this.qG);this.zLa(this.IK);this.zc(this.qG);this.validate()}II(f){this.xs.fb(f)}zLa(f){this.XR.fb(f)}close(){super.close();this.clear()}clear(){this.II("");this.II("")}static R(){if(null==l.Sb.Jb)return null;null==h.Be&&(h.Be=new h);return h.Be}static dispose(){h.Be=null}}l.zY=h})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.Ga{constructor(){super("div","fm-charts-layout");this.X5=!0;this.cm();this.Ke()}Ke(){this.C0();this.Jxa()}C0(){this.Jp=new x.Tc;this.Jp.G.display="block";this.Jp.aa("fm-chart-title");this.Jp.aa("fm-pivot-title");this.Jp.LW(!0);this.Jp.G.V("position","relative");this.Jp.$a();this.uC(this.Jp)}Jxa(){this.Zq=new x.Pa("div","fm-ui-row fm-header-toolbar");this.uC(this.Zq);this.kw=new x.Pa("div","fm-ui-col-2");this.kw.G.display="inline-block";this.Zq.X(this.kw);
this.ll=new x.Bd.es;this.ll.aa("fm-chart-measures-dropdown");this.ll.N(w.ia.Xd,a=>this.KHa(a));this.ll.$a();this.kw.X(this.ll);this.qs=new x.Bd.es;this.qs.aa("fm-chart-pie-dropdown");this.qs.N(w.ia.Xd,a=>this.gIa(a));this.qs.$a();this.kw.X(this.qs);this.er=new x.Pa("div","fm-ui-col-2 fm-charts-filters-container");this.er.G.display="inline-block";this.Zq.X(this.er);this.ps=new x.Bd.es;this.ps.yl=!1;this.ps.aa("fm-charts-filters-btn");this.ps.ni(e.model.B.j.EB);this.ps.N(w.ia.Xd,a=>this.mha(a));this.ps.mi(this.Aza);
this.Zq.X(this.ps)}Aza(a,c){var d=new b;d.setData(a);d.hn(c);d.aa("fm-charts-filter");d.G.attr("title",e.model.B.j.EB);return d}get Nr(){return this.Jp}get ug(){return this.An}get Cs(){return this.Hp}resize(a,c){this.eC=a;this.dC=c}WDa(){return!this.ps.isVisible()&&!this.er.isVisible()&&!this.ll.isVisible()&&!this.qs.isVisible()}nb(){this.width=this.eC;this.height=this.dC;e.v(this.J)||this.J.kb?this.TLa&&this.Wya():(e.ka(e.model.C.F.Kn)||this.T0(),null!=this.Gb&&(this.Zq.G.ab("fm-fields-list-padding",
this.XCa),this.ll.$a(),this.qs.$a(),e.model.C.F.Vx&&e.model.C.F.xja&&this.Hya(),this.Gb.type!=h.Oe.sF&&e.model.C.F.tja&&this.Oya(),this.Gb.type==h.Oe.Qv&&1<this.Gb.Ml.length&&this.Sya(),this.WDa()&&this.Zq.$a(),e.model.C.F.sja&&this.Gb.ug&&0<this.Gb.ug.length&&this.fda(),this.dda(),e.model.Za.R().Ha(new e.model.jd(e.model.Za.pX))))}get XCa(){return e.model.C.F.JS&&!(e.model.C.F.Qm&&"right"==e.model.C.F.jD)&&!(e.model.C.F.me==l.Jd.mo&&("bottom"==e.model.C.F.ez||"left"==e.model.C.F.ez))}clear(){this.Jp.$a();
this.Zq.$a();this.ll.$a();this.qs.$a();this.er.$a();this.ps.$a();this.kw.Hd("fm-wide");this.Hp&&(this.Hp.Qg(!0),this.Hp=null);this.An&&(this.An.Qg(!0),this.An=null);this.rC&&this.rC.$a()}get TLa(){return e.model.Wa.R().Fa.GE==e.model.Xb.Vc.si&&(e.v(this.J)||this.J.kb&&!e.model.C.F.T5)}Wya(){null==this.rC&&(this.rC=new x.Tc(e.model.B.j.l7),this.rC.aa("fm-charts-msg"),this.uC(this.rC));this.rC.fb(e.model.B.j.l7);this.rC.show()}T0(){this.Jp.fb(e.model.C.F.Kn);this.Jp.show()}Oya(){var a=[],c=this.J.Da;
const d=this.Gb.dL;for(var g=0;g<c.length;g++){var k=c[g],m=new e.model.hb.oh(k.A,k.$,k.index);m.label=e.P.Ro(k.label,!0,!0);a.push(m)}if(e.model.C.F.R5||!e.model.C.F.R5&&1<a.length){this.ll.PE(e.model.B.j.vla);this.ll.rga=this.ll.Do&&this.Gb.gA;this.ll.Do=this.Gb.gA;this.ll.gg(a);if(this.Gb.gA){c=[];for(g=0;g<a.length;g++)for(k=a[g],m=0;m<d.length;m++)if(k.A==d[m].A&&(k.$==d[m].$||e.ka(d[m].$))&&(k.index==d[m].index||-1==d[m].index)){c.push(g);break}this.ll.qO(c)}else{a=d[0];const n=new e.model.hb.oh(a.A,
a.$,a.index);this.ll.qt(p=>p.A===n.A&&p.$===n.$)}this.ll.show();this.Zq.show();this.Gb.type==h.Oe.Qv&&1<this.Gb.Ml.length?this.ll.Yk(this.kw.cg()/2-10):this.ll.Yk(this.kw.cg()-10)}}Sya(){for(var a=[],c=0;c<this.Gb.Ml.length;c++)a.push({label:e.P.Ro(this.Gb.Ml[c].label,!0,!0)});this.qs.gg(a);this.qs.Xk(e.model.C.F.BL);this.qs.show();this.Zq.show();this.qs.Yk(this.kw.cg()/2-10)}Hya(){this.er.G.Kx();if(null!=e.u.Ma.R().qa){var a=e.u.Ma.R().qa.vc(!1),c=[];for(var d=0;d<a.length;d++){var g=a.fa(d);this.Mfa(g)&&
(g=this.Gxa(a.fa(d)),c.push(g),this.er.X(g))}0===c.length?this.er.$a():this.er.show();this.Zq.show();a=0;for(c=0;c<this.er.G.element.children.length;c++)d=this.er.G.element.children.item(c),a+=d.offsetWidth;a>this.er.cg()&&this.Iya()}}Mfa(a){return e.u.Ma.R().ga.mapping.La(a.A,"filters")}Iya(){const a=[],c=e.u.Ma.R().qa.vc(!1);for(let d=0;d<c.length;d++){const g=c.fa(d);this.Mfa(g)&&a.push({label:g.caption,A:g.A,NU:g.filter.Fh})}this.ps.gg(a);0===a.length?this.ps.$a():this.ps.show();this.er.$a();
this.kw.aa("fm-wide")}Gxa(a){var c=new x.Vg;c.aa("fm-ui-btn-superlight");c.aa("fm-charts-filter");c.G.ab("fm-filtered",a.filter.Fh);c.N(x.Qd.uf,d=>this.mha(d));c.fb(a.label);c.G.attr("data-hierarchy",a.A);c.G.attr("title",e.model.B.j.EB);return c}dda(){null!=this.Hp&&this.Hp.Qg(!0);this.Hp=h.jma.ZAa(this.Gb.type);this.uC(this.Hp);this.Hp.N5((c,d,g)=>this.WIa(c,d,g));var a=this.dC-this.Jp.zd(!0)-this.Zq.zd(!0)-this.Hp.padding.top-this.Hp.padding.bottom;this.An&&(a-=this.An.G.element.offsetHeight);
this.Hp.Wd(this.Gb,this.eC-20,a);this.Hp.G.V("max-width",this.eC+"px");this.Hp.G.V("max-height",a+"px")}fda(){null!=this.An&&this.An.Qg(!0);this.An=new h.ug.kma(this.X5);this.An.aa("fm-chart-legend");this.An.uLa((a,c,d)=>this.zHa(a,c,d));this.An.N(w.ia.Xd,()=>this.yHa());this.An.vLa(this.Gb.Qp);this.An.Wd(this.Gb.ug);this.An.gI.V("max-height",(this.dC-this.Jp.zd(!0)-this.Zq.zd())/2+"px");this.uC(this.An)}yHa(){this.X5=!this.X5;this.fda();this.dda()}vz(a,c,d){null==d||d.dc||d.Hh||((a==e.u.i.ha.Ia?
this.J.Ih(c,d):this.J.Fj(c,d))?this.J.Xp(c,d,a):this.J.Ee(c,d,a))}Ku(a,c){a==e.u.i.ha.Ia?this.J.wh(c)?this.J.collapse(c,e.u.i.ha.Ia):this.J.expand(c,e.u.i.ha.Ia):this.J.Gj(c)?this.J.collapse(c,e.u.i.ha.Oa):this.J.expand(c,e.u.i.ha.Oa)}vda(a,c){a==e.u.i.ha.Ia?c.length<=e.model.C.F.vu.length?this.J.collapse(c,e.u.i.ha.Ia):this.J.expand(c,e.u.i.ha.Ia):c.length<=e.model.C.F.FC.length?this.J.collapse(c,e.u.i.ha.Oa):this.J.expand(c,e.u.i.ha.Oa)}mha(a){a=a.type==w.ia.Xd?a.data.Hl.A:a.target.G.attr("data-hierarchy");
a=e.u.Ma.R().O.uh(a);this.Ha(new l.KP(a))}zHa(a,c,d){e.model.C.F.Ho?"expand"==a?this.vda(this.Gb.fI,c):"drill"==a&&this.vz(this.Gb.fI,c,d):"expand"==a?this.Ku(this.Gb.fI,c):"drill"==a&&this.vz(this.Gb.fI,c,d)}WIa(a,c,d){var g=this.Gb.fI==e.u.i.ha.Oa?e.u.i.ha.Ia:e.u.i.ha.Oa;e.model.C.F.Ho?"expand"==a?this.vda(g,c):"drill"==a&&this.vz(g,c,d):"expand"==a?this.Ku(g,c):"drill"==a&&this.vz(g,c,d)}KHa(a){if(this.Gb.gA){for(var c=[],d=this.ll.XM().slice(),g=0;g<d.length;g++)(a=d[g])&&c.push(a);e.model.C.F.PG=
c}else e.model.C.F.Fo=a.data.Hl;this.Ya("chart_changed")}gIa(a){e.model.C.F.BL=a.data.selectedIndex;this.Ya("chart_changed")}}h.nma=f;class b extends x.Li.GB{nb(){var a=this.getData();null==this.label&&(this.label=new x.Tc,this.label.aa("fm-text-display"),this.G.append(this.label.G));this.label.fb(a[this.ur()],!0);this.G.ab("fm-filtered",!0===a.NU);this.G.attr("data-hierarchy",a.A)}}})(l.Dd||(l.Dd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{static validate(a){return a==f.XA||a==f.hF||a==f.RJ||a==f.Qv||a==f.mK||a==f.CB||a==f.sF?a:a==f.fra?f.CB:a==f.zla?f.sF:a==f.X6?f.hF:f.XA}static Yfa(a){if("string"!=typeof a||e.ka(a))return!1;a=a.toLowerCase();return a==f.XA||a==f.hF||a==f.X6||a==f.RJ||a==f.mK?!0:!1}}f.XA="column";f.hF="bar_h";f.X6="bar_horizontal";f.RJ="line";f.Qv="pie";f.mK="scatter";f.CB="stacked_column";f.fra="bar_stack";f.sF="column_line";f.zla="bar_line";h.Oe=f;class b{}b.AB="series";
b.VF="series_label";b.Doa="legend";h.io=b})(l.Dd||(l.Dd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(c){if(!e.v(c))for(let d in c)c.hasOwnProperty(d)&&(this[d]=c[d])}Sa(){const c={};e.v(this.label)||(c.label=this.label);e.v(this.color)||(c.color=this.color);e.v(this.Vb)||(c.member=this.Vb.Sa());e.v(this.jg)||(c.tuple=this.OMa==e.u.i.ha.Ia?e.model.Wa.R().ja.qa.r0(this.jg):e.model.Wa.R().ja.qa.q0(this.jg));e.v(this.measure)||(c.measure={uniqueName:this.measure.A,caption:this.measure.caption,aggregation:this.measure.$});e.v(this.level)||
(c.level=this.level);e.v(this.dg)||(c.isExpanded=this.dg);e.v(this.isCollapsed)||(c.isCollapsed=this.isCollapsed);e.v(this.eh)||(c.isDrilledDown=this.eh);e.v(this.ZH)||(c.isDrilledUp=this.ZH);return c}}f.a9=b;class a{constructor(){this.gA=!1;this.ky=this.At=this.zt="";this.Ml=[];this.Pi=[];this.fI=e.u.i.ha.Oa;this.lx=[];this.data=[];this.Mw=[];this.CA=this.uu=this.jga=this.cga=this.Dfa=this.ux=this.de=this.xe=!1}}f.lma=a})(h.W||(h.W={}))})(l.Dd||(l.Dd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.ce.sk{constructor(){super();this.Io=600;this.Go=400;this.Zga=15;this.M3=3;this.J$=[];this.aa("fm-chart")}Wd(b,a,c){this.Io=a;this.Go=c;this.Gb=b;this.mDa(this.Io,this.Go)}mDa(b,a){d3v3.select(l.Sb.Jb.rf.element).select(".fm-chart").selectAll("svg").remove();this.svg=d3v3.select(l.Sb.Jb.rf.element).select(".fm-chart").append("svg").attr("width",b).attr("height",a).append("g")}N5(){}c1(b){this.G.V("overflow-y","auto");d3v3.select(l.Sb.Jb.rf.element).select(".fm-chart").selectAll("svg").attr("height",
b)}rda(b){this.G.V("overflow-x","auto");d3v3.select(l.Sb.Jb.rf.element).select(".fm-chart").selectAll("svg").attr("width",b)}get Wl(){return this.J$}set Wl(b){this.J$=b}Zl(b,a){if(e.Pg(h.Gv.YC)){var c=h.Gv.YC,d=h.Gv.Oba,g=this.Gb.type;b.each(function(k){k=d(k.data?k.data:k);k.type=a;k.chartType=g;c(this,k)})}}ZQ(b){b.forEach(a=>{Infinity===Math.abs(a.value)&&(a.value=0);a.ai&&this.ZQ(a.ai)})}}h.vX=f})(l.Dd||(l.Dd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.vX{constructor(){super();this.ky=this.At=this.zt="";this.UO=0;this.Mja=!1;this.GA=10;this.KG=200;this.I_=[0,15,30,45,60,75,90]}Wd(b,a,c){super.Wd(b,a,c);this.zt=b.zt;this.At=b.At;this.ky=b.ky}Ak(b,a){this.pw=this.Io;this.au=this.Go;this.GA=this.Gb.CA?20:10;this.KG=this.pw/5;this.ZQ(b);this.o_(b,a);this.svg.attr("transform","translate("+this.nX+", "+this.GA+")")}QM(b){return d3v3.max(b,function(a){return d3v3.max(a.ai,function(c){return c.value})})}TM(b){return d3v3.min(b,
function(a){return d3v3.min(a.ai,function(c){return c.value})})}N5(b){this.zu=b}Ku(b){if(!e.v(b)&&this.zu){var a=b.data,c=b.Mw,d=b.sh||b.Kg;b.collapsed||b.Zf?this.zu("expand",a,c):d&&this.zu("drill",a,c)}}o_(b,a){var c=this.Io,d=this.Go,g=this.QM(b),k=this.TM(b);g=0>g&&(!this.Gb.uu||k==g)?0:g;k=0>k||this.Gb.uu&&k!=g?k:0;this.wm=d3v3.scale.linear().range([d,0]).domain([k,g]).nice();var m=this.Gb.Ru,n=this.Gb.xe,p=this.Gb.de,t=this.Gb.ux,r=!0===e.model.C.F.EC||null===e.model.C.F.EC&&1E7<g,v=this.Gb.Yda,
y=d3v3.svg.axis().scale(this.wm).orient("left").tickFormat(function(aa){return e.P.Kca(v(aa,m,n,p,t,r))}),A=0,C=0,B=0;b=this.svg.append("g").attr("class","fm-y fm-axis").call(y).each(function(){A=this.getBBox().width});b.append("text").attr("class","fm-y fm-axis fm-axis-label fm-title").text(this.At).each(function(){C=this.getBBox().width}).style("text-anchor","end").attr("dy","-0.5em").attr("transform","translate(-"+A+", 0) rotate(-90)");b.each(function(){A=this.getBBox().width;c-=A});this.nX=A;
var H=!e.v(a)&&0<a.length;if(H){var M=this.QM(a),Y=this.TM(a);M=0>M&&(!this.Gb.uu||Y==M)?0:M;Y=0>Y||this.Gb.uu&&Y!=M?Y:0;var D=!0===e.model.C.F.EC||null===e.model.C.F.EC&&1E7<M;this.TO=d3v3.scale.linear().range([d,0]).domain([Y,M]).nice();var E=this.Gb.z1,G=this.Gb.Dfa,F=this.Gb.cga,K=this.Gb.jga,I=d3v3.svg.axis().scale(this.TO).orient("right").tickFormat(function(aa){return e.P.Kca(v(aa,E,G,F,K,D))}),J=0,L=this.svg.append("g").attr("class","fm-y fm-axis fm-axis-2").call(I).each(function(){J=this.getBBox().width});
L.append("text").attr("class","fm-y fm-axis fm-axis-label-2 fm-title").text(this.ky).each(function(){B=this.getBBox().width}).attr("dy","1.3em").attr("transform","translate("+(J+20)+", 0) rotate(90)");L.each(function(){J=this.getBBox().width+2;c-=J}).attr("transform","translate("+c+", 0)")}var Q=this.Gb.Ml,N=Math.max(Q.length*Math.max(this.Mja?this.M3:this.Gb.lx.length*this.M3,this.Zga),c);H&&L.attr("transform","translate("+N+", 0)");a=N>c;this.mk=d3v3.scale.ordinal().rangeRoundBands([0,N],a?0:.1).domain(Q.map(function(aa){return aa.id}));
Q=d3v3.svg.axis().scale(this.mk).tickFormat(function(){return""}).orient("bottom");Q=this.svg.append("g").attr("class","fm-x fm-axis").call(Q);this.E_(Q);var W,O=Q.each(function(){W=this.getBBox().height}).append("text").attr("class","fm-x fm-axis fm-title").attr("dy","1.2em").style("text-anchor",a?"start":"middle").text(this.zt).attr("transform","translate("+(a?0:N/2)+", "+W+")"),V=this.zt;O.each(function(){this.getBBox().width>=N&&O.append("svg:title").text(V)});d-=this.GA;d=a?d-16:d;var ca=!1;
Q.each(function(){W=this.getBBox().height;d=(ca=W>4*d/5)?1*d/5:d-W}).attr("transform","translate(0,"+d+")");b.select(".fm-y.fm-axis-label").style("text-anchor",C<d?"middle":"end").attr("transform","translate(-"+(A-20)+","+(C<d?d/2:0)+") rotate(-90)");H&&L.select(".fm-y.fm-axis-label-2").style("text-anchor",B<d?"middle":"start").attr("transform","translate("+(J+5)+","+(B<d?d/2:0)+") rotate(90)");ca&&this.c1(d+W+this.GA);var fa=Math.min(60,d/2);b.select(".tick").each(function(){var aa=this.getBBox().height;
fa=Math.max(fa,aa)});Q=Math.floor(d/fa);n&&1>(g-k)/Q&&(Q=g-k);y.ticks(Q);this.wm.range([d,0]);b.call(y);H&&(I.ticks(Q),this.TO.range([d,0]),L.call(I));this.UO=0<k&&0<g?this.wm.domain()[0]:0>k&&0>g?this.wm.domain()[1]:0;H&&(0<Y&&0<M?this.TO.domain():0>Y&&0>M&&this.TO.domain());this.pw=c;this.au=d;var U=this.wm;g=U.ticks(Q);g.shift();b.selectAll(".refline").data(g).enter().append("line").attr("class","fm-refline").attr("x1",0).attr("x2",N).attr("y1",function(aa){return U(aa)}).attr("y2",function(aa){return U(aa)});
a&&this.rda(H?A+N+J:A+N)}E_(b){var a=b.append("g").attr("class","fm-axis-dividers");b=b.selectAll(".level").data(this.Gb.Pi).enter().append("g").attr("class","fm-level");var c=b.selectAll("text").data(function(A){return A}).enter().append("text").on("click",A=>this.Ku(A)).attr("class","fm-label").style("text-anchor","middle").text(function(A){return A.Zf||A.Kg?"- "+A.label:A.collapsed||A.sh?"+ "+A.label:A.label}).style("cursor",function(A){return A.collapsed||A.Zf||A.Kg||A.sh?"pointer":"auto"});b.selectAll("text").filter(function(A){return A.Of&&
0<A.Of.length||A.collapsed||A.Zf||A.Kg||A.sh}).append("svg:title").text(function(A){return A.Of&&0<A.Of.length?A.Of:A.collapsed||A.sh?e.model.B.j.KQ:A.Zf||A.Kg?e.model.B.j.JQ:""});var d=0;for(d=0;d<c.length;d++)this.XN(c[d],0);var g=Math.floor(this.mk.rangeBand()),k=[],m=0;for(d=0;d<c.length;d++){var n=this.PBa(c[d],g);k.push(n);m=Math.max(m,n)}for(d=0;d<c.length;d++)0!=k[d]&&this.XN(c[d],-m);for(d=0;d<c.length;d++)0!=k[d]&&this.XN(c[d],-m);var p=[],t=6;b.each(function(){t+=this.getBBox().height+
6;p.push(this.getBBox().height)});b.attr("transform",function(A,C){t-=p[C]+6;return"translate(0, "+t+")"});p=p.reverse();for(var r=this.mk,v=1<r.range().length?(r.range()[1]-r.range()[0]-r.rangeBand())/2:0,y=0;y<this.Gb.Pi.length;y++)a.selectAll(".refline").data(this.Gb.Pi[y].slice(1)).enter().append("line").attr("class","fm-refline").attr("x1",function(A){return r(A.id)-v}).attr("x2",function(A){return r(A.id)-v}).attr("y1",function(){return 0}).attr("y2",function(){for(var A=0,C=p.length-y,B=0;B<
C;B++)A+=p[B]+6;return A})}XN(b,a){for(var c=0;c<b.length;c++)x.Ga.Yb(b[c]).V("text-anchor","middle"),x.Ga.Yb(b[c]).attr("dy","0.38em"),x.Ga.Yb(b[c]).attr("transform",this.j2(b[c])+(0!=a?" rotate("+a+")":""))}j2(b){var a=b.getBoundingClientRect().height/2;b=b.__data__;var c=1<this.mk.range().length?(this.mk.range()[1]-this.mk.range()[0]-this.mk.rangeBand())/2:0;return"translate("+(this.mk(b.id)+this.mk.rangeBand()*b.MC/2+c*(b.MC-1))+", "+a+")"}PBa(b,a){var c=0,d=0;b.forEach(function(g){g=g.getBBox();
c<g.width&&(c=g.width,d=g.height)});return this.rva(a,Math.sqrt(c*c+d*d),this.cka(Math.atan(d/c)))}rva(b,a,c){b=Math.min(90,this.cka(Math.acos(b/a))+c||0);if(0==b)return 0;for(a=0;a<this.I_.length;a++)if(this.I_[a]>b)return this.I_[a];return b}cka(b){return 180*b/Math.PI}gT(b,a){var c=this.Gb.Qp,d=this.mk,g=0;if(0<this.Gb.lx.length){var k=this.Gb.lx;var m=d3v3.scale.ordinal().rangeRoundBands([0,d.rangeBand()],.1).domain(k);k=m.rangeBand();var n=Math.min(k,this.KG);g=k!=n?(k-n)/2:0}b=this.svg.selectAll(".state").data(b).enter().append("g").attr("transform",
function(r){return"translate("+(d(r.id)+g)+",0)"});var p=this.UO;k=b.selectAll("rect").data(function(r){return r.ai}).enter().append("rect");k.attr("class","fm-bar").attr("x",function(r){return m(r.id)}).attr("width",n).attr("y",function(r){return 0<r.value?Math.floor(100*a(r.value))/100:Math.floor(100*a(p))/100}).attr("height",function(r){return Math.floor(100*Math.abs(a(p)-a(r.value)))/100}).style("fill",function(r){return e.v(r.kr)?c(r.id):c(r.kr)}).append("title").text(function(r){return r.Of});
this.Zl(k,h.io.AB);if(this.Gb.CA){var t=0;b=b.selectAll("text").data(function(r){return r.ai}).enter().append("text").attr("class","fm-data-label").text(function(r){return r.Ms}).each(function(){t=Math.max(t,this.getBBox().width)});t>n?b.attr("y",function(r){return m(r.id)+n/2}).attr("x",function(r){var v=0<r.value?-Math.floor(100*a(r.value))/100:-Math.floor(100*a(p))/100;this.getBBox().width+3>Math.abs(v)&&(v-=Math.min(this.getBBox().width,Math.floor(100*Math.abs(a(p)-a(r.value)))/100));return v}).attr("dx",
function(r){var v=0<r.value?-Math.floor(100*a(r.value))/100:-Math.floor(100*a(p))/100;return this.getBBox().width+3>Math.abs(v)&&this.getBBox().width+3<Math.floor(100*Math.abs(a(p)-a(r.value)))/100?"-3px":"3px"}).attr("dy","0.38em").attr("transform","rotate(-90)"):b.style("text-anchor","middle").attr("x",function(r){return m(r.id)+n/2}).attr("y",function(r){return 0<r.value?Math.floor(100*a(r.value))/100:Math.floor(100*a(p))/100}).attr("dy","-3px");b.append("title").text(function(r){return r.Of});
for(k=0;k<b.length;k++){const r=b[k][0].getBoundingClientRect();this.Wl.push({element:b[k][0],type:"bar",group:b,x:r.x,y:r.y})}this.Zl(b,h.io.VF)}}S0(b,a){for(var c=this.mk,d=d3v3.svg.line().interpolate("linear").x(function(p){return c(p.id)+c.rangeBand()/2}).y(function(p){return a(p.value)}),g=0;g<b.length;g++){var k=e.v(b[g].kr)?this.Gb.Qp(b[g].id):this.Gb.Qp(b[g].kr),m=this.svg.append("g"),n=m.append("path").datum(b[g]).attr("class","fm-line").style("stroke",k).attr("d",function(p){return d(p.ai)});
this.Zl(n,h.io.AB);k=m.selectAll("circle").data(b[g].ai).enter().append("circle").attr("class","fm-circle").style("stroke",k).attr("cx",function(p){return c(p.id)+c.rangeBand()/2}).attr("cy",function(p){return a(p.value)}).attr("r",4);k.append("title").text(function(p){return p.Of});this.Zl(k,h.io.AB);if(this.Gb.CA){m=m.selectAll("text").data(b[g].ai).enter().append("text").attr("class","fm-data-label").text(function(p){return p.Ms});m.style("text-anchor","middle").attr("x",function(p){return c(p.id)+
c.rangeBand()/2}).attr("y",function(p){p=Math.floor(100*a(p.value))/100-8;return Math.max(-10,p)});m.append("title").text(function(p){return p.Of});for(k=0;k<m[0].length;k++)n=m[0][k].getBoundingClientRect(),this.Wl.push({element:m[0][k],type:"line",group:m,x:n.x,y:n.y});this.Zl(m,h.io.VF)}}}}h.nJ=f})(l.Dd||(l.Dd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.vX{constructor(){super();this.ky=this.At=this.zt="";this.UO=0;this.GA=10;this.KG=200}Wd(b,a,c){super.Wd(b,a,c);this.zt=b.zt;this.At=b.At;this.ky=b.ky}Ak(b,a){this.pw=this.Io;this.au=this.Go;this.KG=this.pw/5;this.ZQ(b);this.o_(b,a);this.svg.attr("transform","translate("+this.nX+", "+this.GA+")")}QM(b){return d3v3.max(b,function(a){return d3v3.max(a.ai,function(c){return c.value})})}TM(b){return d3v3.min(b,function(a){return d3v3.min(a.ai,function(c){return c.value})})}N5(b){this.zu=
b}Ku(b){if(!e.v(b)&&this.zu){var a=b.data,c=b.Mw,d=b.sh||b.Kg;b.collapsed||b.Zf?this.zu("expand",a,c):d&&this.zu("drill",a,c)}}o_(b){var a=this.Io,c=this.Go,d=this.QM(b),g=this.TM(b);d=0>d&&(!this.Gb.uu||g==d)?0:d;g=0>g||this.Gb.uu&&g!=d?g:0;this.wm=d3v3.scale.linear().range([0,a]).domain([g,d]).nice();var k=this.Gb.Ru,m=this.Gb.xe,n=this.Gb.de,p=this.Gb.ux,t=!0===e.model.C.F.EC||null===e.model.C.F.EC&&1E7<d,r=this.Gb.Yda,v=d3v3.svg.axis().scale(this.wm).orient("bottom").tickFormat(function(J){return r(J,
k,m,n,p,t)}),y=this.svg.append("g").attr("class","fm-y fm-axis").call(v),A,C;y.each(function(){C=A=this.getBBox().height}).append("text").attr("class","fm-x fm-axis fm-title").attr("dy","1.2em").style("text-anchor","middle").text(this.At).attr("transform","translate("+a/2+", "+C+")");c-=this.GA;y.each(function(){A=this.getBBox().height;c-=A});var B=this.Gb.Ml,H=Math.max(B.length*Math.max(this.Gb.lx.length*this.M3,this.Zga),c);y.attr("transform","translate(0,"+H+")");b=H>c;this.mk=d3v3.scale.ordinal().rangeRoundBands([0,
H],b?0:.1).domain(B.map(function(J){return J.id}));B=d3v3.svg.axis().scale(this.mk).orient("left").tickFormat(function(){return""});var M=0;B=this.svg.append("g").attr("class","fm-x fm-axis").call(B).each(function(){M=this.getBBox().width;a-=M});this.nX=M;this.E_(B);B.each(function(){M=this.getBBox().width});var Y=B.append("text").attr("class","fm-x fm-axis fm-axis-label fm-title").text(this.zt).style("text-anchor",b?"end":"middle").attr("dy","-0.5em").attr("transform","translate(-"+M+", "+(b?0:H/
2)+") rotate(-90)"),D=this.zt;Y.each(function(){this.getBBox().width>=H&&Y.append("svg:title").text(D)});a=b?a-16:a;var E=!1;B.each(function(){M=this.getBBox().width;a=(E=M>4*a/5)?1*a/5:a-M});E&&this.rda(a+M);this.nX=M;B=10;var G=20,F=0;y.selectAll(".tick").each(function(){G=this.getBBox().width;F=Math.max(F,G)});a-=G/2;F*=1.8;a/B<F&&(B=Math.floor(a/F));m&&1>(d-g)/B&&(B=d-g);v.ticks(B);this.wm.range([0,a]);y.call(v);const K=this.G.element.querySelector("svg").getBoundingClientRect();y.select(".tick").select("text").style("text-anchor",
function(){return this.getBoundingClientRect().x<K.x?"start":"middle"});y.select(".fm-title").attr("transform","translate("+a/2+", "+C+")");this.UO=0<g&&0<d?this.wm.domain()[0]:0>g&&0>d?this.wm.domain()[1]:0;this.pw=a;this.au=c;var I=this.wm;d=I.ticks(B);d.shift();y.selectAll(".refline").data(d).enter().append("line").attr("class","fm-refline").attr("y1",0).attr("y2",-H).attr("x1",function(J){return I(J)}).attr("x2",function(J){return I(J)});d=A+H+this.GA;b&&this.c1(d)}E_(b){var a=b.append("g").attr("class",
"fm-axis-dividers");b=b.selectAll(".level").data(this.Gb.Pi).enter().append("g").attr("class","fm-level");var c=b.selectAll("text").data(function(t){return t}).enter().append("text").on("click",t=>this.Ku(t)).attr("class","fm-label").style("text-anchor","middle").text(function(t){return t.Zf||t.Kg?"- "+t.label:t.collapsed||t.sh?"+ "+t.label:t.label}).style("cursor",function(t){return t.collapsed||t.Zf||t.Kg||t.sh?"pointer":"auto"});b.selectAll("text").filter(function(t){return t.Of&&0<t.Of.length||
t.collapsed||t.Zf||t.Kg||t.sh}).append("svg:title").text(function(t){return t.Of&&0<t.Of.length?t.Of:t.collapsed||t.sh?e.model.B.j.KQ:t.Zf||t.Kg?e.model.B.j.JQ:""});var d=0;for(d=0;d<c.length;d++)this.XN(c[d],0);var g=[],k=6;b.each(function(){k+=this.getBBox().width+6;g.push(this.getBBox().width)});b.attr("transform",function(t,r){k-=g[r];t="translate("+-k+", 0)";k-=6;return t});g=g.reverse();for(var m=this.mk,n=1<m.range().length?(m.range()[1]-m.range()[0]-m.rangeBand())/2:0,p=0;p<this.Gb.Pi.length;p++)a.selectAll(".refline").data(this.Gb.Pi[p].slice(1)).enter().append("line").attr("class",
"fm-refline").attr("y1",function(t){return m(t.id)-n}).attr("y2",function(t){return m(t.id)-n}).attr("x1",function(){return 0}).attr("x2",function(){for(var t=0,r=g.length-p,v=0;v<r;v++)t+=g[v]+6;return-t})}XN(b,a){for(var c=0;c<b.length;c++)x.Ga.Yb(b[c]).V("text-anchor","end"),x.Ga.Yb(b[c]).attr("dy","0.38em"),x.Ga.Yb(b[c]).attr("transform",this.j2(b[c])+(0!=a?" rotate("+a+")":""))}j2(b){var a=b.getBoundingClientRect().height/2;b=b.__data__;b=this.mk(b.id)+this.mk.rangeBand()*b.MC/2;return"translate("+
a+", "+b+")"}gT(b,a){var c=this.Gb.Qp,d=this.mk,g=0;if(0<this.Gb.lx.length){var k=this.Gb.lx;var m=d3v3.scale.ordinal().rangeRoundBands([0,d.rangeBand()],.1).domain(k);k=m.rangeBand();var n=Math.min(k,this.KG);g=k!=n?(k-n)/2:0}b=this.svg.selectAll(".state").data(b).enter().append("g").attr("transform",function(t){return"translate(0,"+(d(t.id)+g)+")"});var p=this.UO;k=b.selectAll("rect").data(function(t){return t.ai}).enter().append("rect").attr("class","fm-bar").attr("y",function(t){return m(t.id)}).attr("height",
n).attr("x",function(t){return 0>t.value?Math.floor(100*a(t.value))/100:Math.floor(100*a(p))/100}).attr("width",function(t){return Math.floor(100*Math.abs(a(p)-a(t.value)))/100}).style("fill",function(t){return e.v(t.kr)?c(t.id):c(t.kr)});k.append("title").text(function(t){return t.Of});this.Zl(k,h.io.AB);if(this.Gb.CA){const t=this.G.find("svg").getBoundingClientRect();b=b.selectAll("text").data(function(r){return r.ai}).enter().append("text").attr("class","fm-data-label").text(function(r){return r.Ms}).attr("x",
function(r){return Math.floor(100*a(r.value))/100}).attr("y",function(r){return m(r.id)+n/2}).attr("dx",function(){const r=this.getBoundingClientRect();return r.right>t.right?`${t.right-r.right}px`:"2px"}).attr("dy","0.38em");b.append("title").text(function(r){return r.Of});this.Zl(b,h.io.VF)}}S0(b,a){for(var c=this.mk,d=d3v3.svg.line().interpolate("linear").x(function(n){return c(n.id)+c.rangeBand()/2}).y(function(n){return a(n.value)}),g=0;g<b.length;g++){var k=e.v(b[g].kr)?this.Gb.Qp(b[g].id):
this.Gb.Qp(b[g].kr),m=this.svg.append("g");m.append("path").datum(b[g]).attr("class","fm-line").style("stroke",k).attr("d",function(n){return d(n.ai)});m.selectAll("circle").data(b[g].ai).enter().append("circle").attr("class","fm-circle").style("stroke",k).attr("cx",function(n){return c(n.id)+c.rangeBand()/2}).attr("cy",function(n){return a(n.value)}).attr("r",4).append("title").text(function(n){return n.Of})}}}h.mla=f})(l.Dd||(l.Dd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.nJ{constructor(){super()}Wd(b,a,c){super.Wd(b,a,c);this.Ak(b.data)}Ak(b){super.Ak(b);this.gT(b,this.wm)}}h.C7=f})(l.Dd||(l.Dd={}))})(e.K||(e.K={}))})(q||(q={}));(function(e){(function(l){(function(h){class f extends h.nJ{constructor(){super()}Wd(b,a,c){super.Wd(b,a,c);this.Ak(b.data)}Ak(b){super.Ak(b);this.S0(b,this.wm)}}h.Joa=f})(l.Dd||(l.Dd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.nJ{constructor(){super()}Wd(b,a,c){super.Wd(b,a,c);this.Ak(b.data)}Ak(b){super.Ak(b);for(var a=this.mk,c=this.wm,d="triangle-up cross circle square triangle-down diamond".split(" "),g=0;g<b.length;g++){var k=e.v(b[g].kr)?this.Gb.Qp(b[g].id):this.Gb.Qp(b[g].kr),m=d[g%d.length],n=this.svg.append("g");m=d3v3.svg.symbol().type(m);m=n.selectAll(".scatter-point").data(b[g].ai).enter().append("path").attr("class","fm-scatter-point").attr("d",m).style("stroke",
function(){return k}).attr("transform",function(p){return"translate("+Math.round(a(p.id)+a.rangeBand()/2)+","+Math.round(c(p.value))+")"});m.append("title").text(function(p){return p.Of});this.Zl(m,h.io.AB);this.Gb.CA&&(n=n.selectAll("text").data(b[g].ai).enter().append("text").attr("class","fm-data-label").text(function(p){return p.Ms}),n.style("text-anchor","middle").attr("x",function(p){return a(p.id)+a.rangeBand()/2}).attr("y",function(p){return Math.floor(100*c(p.value))/100}).attr("dy","-8px"),
n.append("title").text(function(p){return p.Of}),this.Zl(n,h.io.VF))}}}h.mra=f})(l.Dd||(l.Dd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.vX{constructor(){super()}Wd(b,a,c){super.Wd(b,a,c);this.update(b.data)}update(b){if(0!=b.length){var a=this.Io,c=Math.max(this.Go,70),d=Math.min(a,c)/2;c>this.Go&&this.c1(c);var g=this.Gb.Qp,k=d3v3.svg.arc().outerRadius(d-20).innerRadius(0),m=d3v3.layout.pie().sort(null).value(function(y){return Math.abs(y.value)});this.svg.attr("transform","translate("+a/2+","+c/2+")");b=this.svg.selectAll(".arc").data(m(b[0].ai)).enter().append("g").attr("class",
"fm-arc");b.append("path").attr("d",k).style("fill",function(y){return g(y.data.id)}).append("title").text(function(y){return y.data.Of});var n=d3v3.svg.arc().outerRadius(d-20).innerRadius(d),p=0;d=this.svg.append("g").attr("class","fm-pie-label");d.append("text").text("Test").each(function(){p=this.getBBox().height});d.remove();var t=[],r=[],v=[];b.each(function(y){var A=n.centroid(y);if(e.model.C.F.pja||0==r.length||2==r.length&&Math.abs(A[1]-r[1])>p||0<=r[0]&&0>=A[0])v.push(y),t.push(A),r=A});
d=this.svg.selectAll(".pie-label").data(v).enter().append("g").attr("class","fm-pie-label");d.append("text").text(function(y){return y.data.label+" ("+y.data.Ms+")"}).attr("transform",function(y,A){return"translate("+t[A]+")"}).attr("class","fm-label").attr("dy",".35em").style("text-anchor",function(y,A){return 0<t[A][0]?"start":"end"});d.selectAll("text").filter(function(y){return y.data.t3&&0<y.data.t3.length}).append("svg:title").text(function(y){return y.data.t3});this.Zl(b,h.io.AB);this.Zl(d,
h.io.VF);b=this.svg[0][0].getBBox();if(b.x+b.width>a/2||b.x<-a/2)d=x.Ga.Yb(this.svg[0][0]),k=d3v3.transform(d.attr("transform")),a=a/2/(a/2+Math.max(-a/2-b.x,b.x+b.width-a/2)),k.scale=[a,a],d.attr("transform",k.toString())}}}h.Cqa=f})(l.Dd||(l.Dd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.nJ{constructor(){super();this.Mja=!0}Wd(b,a,c){super.Wd(b,a,c);this.Ak(b.data)}QM(b){return d3v3.max(b,function(a){return a.sNa})}TM(b){return d3v3.min(b,function(a){return a.rNa})}Ak(b){this.ZQ(b);b.forEach(function(p){var t=0,r=0;p.ai.forEach(function(v){0<=v.value?(v.K6=t,t+=v.value,v.y1=t):(v.y1=r,r+=v.value,v.K6=r)});p.rNa=r;p.sNa=t});super.Ak(b);var a=this.Gb.Qp,c=this.mk,d=this.wm;var g=c.rangeBand();0<this.Gb.lx.length&&(g=this.Gb.lx,
g=d3v3.scale.ordinal().rangeRoundBands([0,c.rangeBand()],.1).domain([g[0]]),g=g.rangeBand());var k=Math.min(g,this.KG),m=g!=k?(g-k)/2:0;m+=(c.rangeBand()-g)/2;b=this.svg.selectAll(".state").data(b).enter().append("g").attr("class","fm-bar-stack").attr("transform",function(p){return"translate("+(c(p.id)+m)+",0)"});g=b.selectAll("rect").data(function(p){return p.ai}).enter().append("rect").attr("width",k).attr("y",function(p){return Math.round(100*d(p.y1))/100}).attr("height",function(p){return Math.round(100*
Math.abs(d(p.K6)-d(p.y1)))/100}).style("fill",function(p){return a(p.id)});g.append("title").text(function(p){return p.Of});b.selectAll("path").data(function(p){return p.ai}).enter().append("path").attr("d",function(p){return"M0 "+Math.round(100*d(p.y1))/100+" l"+k+" 0"});this.Zl(g,h.io.AB);if(this.Gb.CA){var n=0;b=b.selectAll("text").data(function(p){return p.ai}).enter().append("text").attr("class","fm-data-label").text(function(p){return p.Ms}).each(function(){n=Math.max(n,this.getBBox().height)});
b.text(function(p){return n+1>Math.round(100*Math.abs(d(p.K6)-d(p.y1)))/100?"":p.Ms});g=Math.floor(n);b.style("text-anchor","middle").attr("x",function(){return k/2}).attr("y",function(p){return Math.round(100*d(p.y1))/100}).attr("dy",g+"px");b.append("title").text(function(p){return p.Of});this.Zl(b,h.io.VF)}}}h.sra=f})(l.Dd||(l.Dd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.nJ{constructor(){super()}Wd(b,a,c){super.Wd(b,a,c);this.Ak(b.data,b.Mw)}Ak(b,a){super.Ak(b,a);this.gT(b,this.wm);this.S0(a,this.TO);this.gKa()}gKa(){if(this.Gb.CA&&1<this.Wl.length){this.Wl.sort((b,a)=>b.y-a.y);for(let b=0;b<this.Wl.length;b++)for(let a=b+1;a<this.Wl.length;a++)if(15>Math.abs(this.Wl[b].y-this.Wl[a].y)&&15>Math.abs(this.Wl[b].x-this.Wl[a].x)&&this.Wl[b]!==this.Wl[a]){const c="line"===this.Wl[b].type?this.Wl[b].group:"line"===
this.Wl[a].type?this.Wl[a].group:null;if(c){c.attr("transform","translate(0,30)");return}}}}}h.pma=f})(l.Dd||(l.Dd={}))})(e.K||(e.K={}))})(q||(q={}));(function(e){(function(l){(function(h){class f extends h.mla{constructor(){super()}Wd(b,a,c){super.Wd(b,a,c);this.Ak(b.data)}Ak(b){super.Ak(b);this.gT(b,this.wm)}}h.kla=f})(l.Dd||(l.Dd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.Li.GB{constructor(){super();this.A0();this.UL()}A0(){null==this.PD&&(this.PD=new x.Ga("span","fm-icon-display"))}UL(){null==this.mp&&(this.mp=new x.Ga("span","fm-text-display"))}nb(){var a=this.getData();this.G.empty();0==a.dg&&this.PD.V("background-color",a.color);this.G.append(this.PD);this.mp.html(a[this.ur()]);var c=a.Of;c&&0<c.length&&this.mp.attr("title",c);a.isCollapsed||a.ZH?this.G.attr("title",e.model.B.j.KQ):(a.dg||a.eh)&&
this.G.attr("title",e.model.B.j.JQ);this.G.aa("fm-level-"+a.level);this.G.append(this.mp);e.v(a.measure)||isNaN(a.measure.index)||this.G.attr("data-measure-index",a.measure.index);this.G.ab(l.Y.W.ya.DX,a.isCollapsed||a.ZH);this.G.ab(l.Y.W.ya.SX,a.dg||a.eh);this.Zl(this.G.element,h.io.Doa)}Zl(a,c){if(e.Pg(h.Gv.YC)){var d=this.getData().Sa();d.type=c;d.chartType=e.model.C.F.CL;h.Gv.YC(a,d)}}}f.Ioa=b})(h.ug||(h.ug={}))})(l.Dd||(l.Dd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.ce.sk{constructor(a){super();this.uO=!0;this.uO=a;this.G.cm();this.color=d3v3.scale.category20c();e.model.C.F.Q5&&(this.sO=new x.Vg,this.uO?this.sO.aa("fm-chart-legend-btn fm-hide"):this.sO.aa("fm-chart-legend-btn fm-show"),this.sO.G.attr("title",this.uO?e.model.B.j.ula:e.model.B.j.wla),this.sO.N(x.Qd.uf,()=>this.FIa()),this.X(this.sO));this.gI=new x.Ga("div");this.gI.aa("fm-chart-legend-container");this.uO&&this.G.append(this.gI)}FIa(){this.Ya(w.ia.Xd)}vLa(a){this.color=
a}Wd(a){if(this.uO){this.gI.Kx();this.gI.ab("fm-legend-btn-shown",e.model.C.F.Q5);for(var c=new x.Ga("table"),d=new x.Ga("tr"),g=0;g<a.length;g++){for(var k=0;k<a[g].length;k++)a[g][k].dg||a[g][k].eh||(a[g][k].color=this.color(a[g][k].id));k=new x.Ga("td");var m=new x.Bd.vj;m.aa("fm-legend-lst-"+g);m.mi(this.kv);m.xg("label");m.useCache=!1;m.gg(a[g]);m.N(w.ia.Xd,n=>this.KV(n));k.append(m.G);d.append(k)}c.append(d);this.gI.append(c)}}uLa(a){this.zu=a}kv(a,c){var d=new f.Ioa;d.setData(a);d.hn(c);return d}KV(a){a=
a.data.Hl;var c=a.ZH||a.eh;a.isCollapsed||a.dg?this.zu("expand",a.jg,a.Vb):c&&this.zu("drill",a.jg,a.Vb)}}f.kma=b})(h.ug||(h.ug={}))})(l.Dd||(l.Dd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){}static ZAa(b){switch(b){case h.Oe.XA:b=new h.C7;break;case h.Oe.hF:b=new h.kla;break;case h.Oe.RJ:b=new h.Joa;break;case h.Oe.mK:b=new h.mra;break;case h.Oe.Qv:b=new h.Cqa;break;case h.Oe.CB:b=new h.sra;break;case h.Oe.sF:b=new h.pma;break;default:b=new h.C7}return b}}h.jma=f})(l.Dd||(l.Dd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.ce.sk{constructor(){super();this.d9=50;this.model=e.model.Wa.R();this.aa("fm-charts-view");new h.mma(this)}dispose(){this.model=this.J=null;this.Xq&&this.Xq.dispose();this.Xq=null}nb(){if(!(1>e.model.Ea.xc.bk())){null==this.Xq&&(this.Xq=this.zxa(),this.G.X(this.Xq));this.Xq.clear();this.Xq.J=this.J;this.Xq.resize(l.Sb.Io,l.Sb.Go);this.Xq.Gb=null;if(this.J&&this.J.$i){if(null==this.F1()){e.Va(e.model.B.j.xla,e.model.B.j.xa);return}this.Xq.Gb=
this.yxa()}this.Xq.nb()}}zxa(){var b=new h.nma;b.N("chart_changed",()=>this.kGa());b.N(l.Vi.sy,a=>this.HV(a));b.N("dblclick",a=>this.mGa(a));b.N("click",a=>this.lGa(a));return b}get Ds(){return this.Xq}kGa(){this.nb()}HV(b){this.Ha(b)}SDa(b){b=x.Ga.Yb(b);return b.closest(".fm-charts-filters-container")||b.closest(".fm-charts-filters-btn")?!0:!1}uI(b){b=x.Ga.Yb(b).closest(".fm-charts-filter");null!=b&&(b=e.u.Ma.R().O.uh(b.attr("data-hierarchy")),null!=b&&this.Ha(new l.KP(b)))}Gk(b,a=!1,c=null){e.model.Dc.aB.Ze(this,
b,a,c)}print(b=null){if(this.iga){var a=e.model.Dc.aB.pT(this,null,!0);a=e.model.Dc.aB.TL(e.model.kt.OF.R().C.cj)+a+e.model.Dc.aB.TL(e.model.kt.OF.R().C.Bj)}else a=e.model.Dc.aB.Cda(this,null,!0);!e.ka(e.model.C.F.Kn)&&this.iga&&(a="<center><div style='"+l.Y.W.ad.Ez(this.G.find(".fm-chart-title"))+"'>"+e.model.C.F.Kn+"</div></center>"+a);null!=b?b(a):(z.P9.print(a,"",e.model.C.F.Kn),e.model.kt.OF.R().xha());e.model.Dc.aB.clear()}get iga(){var b=new x.Ga("div");b.text("FM");b.V("font-size","10px");
b.$a();document.body.appendChild(b.element);var a="10px"==b.V("font-size");b.remove();return a}yxa(){var b=new h.W.lma;b.type=e.model.C.F.CL;b.uu=e.model.C.F.uu;b.CA=e.model.C.F.rja;b.ju=this.F1();b.gA=e.model.C.F.QG&&(b.type==h.Oe.XA||b.type==h.Oe.hF||b.type==h.Oe.RJ||b.type==h.Oe.mK);b.Ru=b.ju.Eh(b.ju.A,b.ju.$).clone();b.xe=e.u.i.ea.xe(b.ju.$);b.de=e.u.i.ea.de(b.ju.$);b.Ru.yd=b.ju.$==e.u.i.ea.Si?"":b.Ru.yd;b.ux=b.ju.type==e.u.i.Ra.ec&&e.u.i.ea.pp(b.ju.$);b.Yda=this.Xda;var a="on"==e.model.C.F.Lf||
"rows"==e.model.C.F.Lf?this.J.Fd-1:this.J.Fd,c="on"==e.model.C.F.Lf||"columns"==e.model.C.F.Lf?this.J.Ed-1:this.J.Ed;0==a&&(a=1);0==c&&(c=1);var d=3E3<c*a?3E3:-1;b.dL=b.gA?this.eea():[b.ju];e.model.C.F.Ho&&(null!=this.J.dV&&(e.model.C.F.vu=this.J.dV),null!=this.J.cV&&(e.model.C.F.FC=this.J.cV),0==this.eCa(e.model.C.F.vu)&&(e.model.C.F.vu=[]),0==this.fCa(e.model.C.F.FC)&&(e.model.C.F.FC=[]));var g=!1;switch(b.type){case h.Oe.XA:case h.Oe.hF:case h.Oe.CB:g=this.Yha(b,a,c,b.dL,b.data,b.gA&&1<b.dL.length,
void 0,d);break;case h.Oe.RJ:case h.Oe.mK:g=this.Zha(b,a,c,b.dL,b.data,b.gA&&1<b.dL.length,void 0,d);break;case h.Oe.Qv:g=this.RJa(b,a,c,b.ju,void 0,d);break;case h.Oe.sF:g=0<this.J.Da.length?this.J.Da[0]:null;var k=1<this.J.Da.length?this.J.Da[1]:null;b.Ru=g.Eh(g.A,g.$).clone();b.xe=e.u.i.ea.xe(g.$);b.de=e.u.i.ea.de(g.$);b.Ru.yd=g.$==e.u.i.ea.Si?"":b.Ru.yd;b.ux=g.type==e.u.i.Ra.ec&&e.u.i.ea.pp(g.$);e.v(k)||(b.z1=k.Eh(k.A,k.$).clone(),b.Dfa=e.u.i.ea.xe(k.$),b.cga=e.u.i.ea.de(k.$),b.z1.yd=k.$==e.u.i.ea.Si?
"":b.z1.yd,b.jga=k.type==e.u.i.Ra.ec&&e.u.i.ea.pp(k.$));g=this.QJa(b,a,c,g,k,d)}e.model.C.F.uja&&g&&e.Va(e.model.B.j.yla,e.model.B.j.s$,e.ob.nk);this.PJa(b);b.type!=h.Oe.Qv&&(b.zt=this.KCa(),b.type==h.Oe.sF?(g=0<this.J.Da.length?this.J.Da[0]:null,k=1<this.J.Da.length?this.J.Da[1]:null,b.At=null!=g?g.label:"",b.ky=null!=k?k.label:""):(e.model.C.F.QG?(a=this.eea(),b.At=1==a.length?a[0].label:""):b.At=this.F1().label,b.ky=""));return b}PJa(b){if(e.v(this.b6)||0==this.b6.length)this.b6=this.dBa();b.Qp=
d3v3.scale.ordinal().range(this.b6);if(b.ug&&0<b.ug.length){var a=[],c=[],d,g;for(d=0;d<b.ug.length;d++){var k=b.ug[d][0].id;var m=b.Qp(k);b.ug[d][0].dg||(a.push(k),c.push(m));k=[];for(g=1;g<b.ug[d].length;g++)b.ug[d][g].dg||k.push(b.ug[d][g].id);a=a.concat(k);g=d3v3.rgb(m);g=d3v3.rgb(g.r-25,g.g-25,g.b-25);m=d3v3.rgb("#EEEEEE");m=d3v3.scale.linear().domain([0,k.length+1]).range([g,m]);g=1;for(k=0;g<b.ug[d].length;g++)b.ug[d][g].dg||(c.push(m(k).toString()),k++)}b.Qp=d3v3.scale.ordinal().domain(a).range(c)}}dBa(){var b=
[],a=1,c=new x.Ga("div");c.$a();for(l.Sb.Jb.G.X(c);100>a;){c.o5("class");c.aa("fm-charts-color-"+a);var d=window.getComputedStyle(c.element).fill;e.ka(d)&&(d="#000");if("none"!=d)b.push(d);else break;a++}c.remove();return b}F1(){var b=this.J.Da.find(k=>k.A===e.model.C.F.Fo.A);if(null!=b&&(""!=e.model.C.F.Fo.$||!e.v(e.model.C.F.Fo.index))){var a=!0,c=!0;for(g=0;g<this.J.Da.length;g++){var d=this.J.Da[g];if(d.A==e.model.C.F.Fo.A)if(""==e.model.C.F.Fo.$){b=d;break}else if(d.$==e.model.C.F.Fo.$)if(a=
!1,null==e.model.C.F.Fo.index||-1==e.model.C.F.Fo.index){b=d;break}else if(d.index==e.model.C.F.Fo.index){b=d;c=!1;break}}a&&(e.model.C.F.Fo.$="");c&&(e.model.C.F.Fo.index=-1)}if(null==b)if(e.model.C.F.sc)for(var g=0;g<this.J.Da.length&&(b=this.J.Da[g],b.type==e.u.i.Ra.wc);g++);else b=this.J.Da[0];return b}eea(){var b=[],a=e.model.C.F.PG;if(0<a.length)for(var c=[],d=0;d<a.length;d++){for(var g=a[d],k,m=!0,n=!0,p=0;p<this.J.Da.length;p++){var t=this.J.Da[p];if(t.A==g.A)if(-1==c.indexOf(t.index)&&(k=
t),""==g.$)break;else if(t.$==g.$)if(m=!1,null==g.index||-1==g.index){if(-1==c.indexOf(t.index)){k=t;break}}else if(t.index==g.index){k=t;n=!1;break}}m&&(e.model.C.F.PG[d].$="");n&&(e.model.C.F.PG[d].index=-1);null!=k&&(c.push(k.index),b.push(k))}else b=this.J.Da.slice();0==b.length&&(b=this.J.Da.slice(),e.model.C.F.PG=[]);return b}eCa(b){for(var a=0,c,d=0;d<this.J.Ed;d++)c=this.J.Vn(d),this.rS(b,c)&&a++;return a}fCa(b){for(var a=0,c,d=0;d<this.J.Fd;d++)c=this.J.ak(d),this.sS(b,c)&&a++;return a}rS(b,
a){return a.length!=b.length+1||0!=b.length&&0!=a.join(",").indexOf(b.join(",")+",")?!1:!0}sS(b,a){return a.join()==b.join()||a.length==b.length+1&&(0==b.length||0==a.join(",").indexOf(b.join(",")+","))?!0:!1}KCa(){for(var b=[],a=0;a<this.J.rows.length;a++)b.push(this.J.rows.fa(a).label);return b.join(" / ")}Gea(b){for(var a=[],c,d=0;d<b.length;d++)c=b[d],c=c.Eh(c.A,c.$).clone(),a.push(c);return a}ZM(b,a,c,d,g,k=""){a=c+": "+a;b.type==h.Oe.Qv&&0<k.length&&(a+=" of "+k);c=this.J.Lb.bb&&1==this.J.Ka.length;
d=this.J.$b.bb&&1==this.J.rows.length?"":this.l2(d,e.u.i.ha.Ia,!1,null,!0);g=c?"":this.l2(g,e.u.i.ha.Oa,!1,null,!0);d=this.hx(d);g=this.hx(g);0<d.length&&(a=a+"\n"+d);0<g.length&&(a=a+"\n"+g);b.type!=h.Oe.Qv&&0<k.length&&(a=a+"\nTotal: "+k);return a}l2(b,a,c=!1,d=null,g=!1){if(c&&a==e.u.i.ha.Ia)return null!=d?d.hierarchy.label+": "+d.caption:e.model.B.j.Gra+" "+(b[0]+1).toString();c=[];a=a==e.u.i.ha.Oa?this.J.Fb:this.J.wb;for(var k,m=0;m<b.length;m++)d=a.fa(m),null!=d&&(k=b[m],c.push(this.Pga(d.za(k),
g)));return c.join(" - ")}mGa(b){this.Gfa(b.target)&&this.cd(b.target)}lGa(b){b=this.UT(b.target,!0);e.v(b)||e.model.Za.R().Ha(new e.model.jd(e.model.Za.k7,b))}Gfa(b){if(e.v(e.u.Ma.R().ga)||!e.u.Ma.R().ga.KU||!e.model.C.F.cd)return!1;b=b.__data__;null!=b&&b.data&&(b=b.data);return b&&b.measure&&null==this.model.ja.O.fd(b.measure.A)?!1:b&&b.measure&&b.Jg&&b.Ah}cd(b){var a=b.__data__;null!=a&&a.data&&(a=a.data);b=new l.R7(a.measure,a.Jg,a.Ah,this.UT(b,!0));this.Ha(b)}Pga(b,a=!1){var c="";if(!e.v(b)){for(var d=
[];!e.v(b.parent);)d.unshift(b.caption),b=b.parent;c=a?b.hierarchy.label+": ":"";c+=d.join("/")}return c}hx(b){return b=b.length<=this.d9?b:b.substr(0,this.d9)+"..."}eh(b,a){if(0==b.length)return!1;var c=a==e.u.i.ha.Oa?this.J.Ka:this.J.rows;if(0==c.length)return!1;c=c.fa((a==e.u.i.ha.Oa?this.J.Lb:this.J.$b).bb&&(0==b.length||b.length>this.J.ke)?b.length:b.length-1).za(b[b.length-1]);return a==e.u.i.ha.Oa?this.J.Fj(b,c):this.J.Ih(b,c)}y_(b,a,c){if(0!=a.length){var d=c==e.u.i.ha.Oa?this.J.Lb:this.J.$b,
g=c==e.u.i.ha.Oa?this.J.Ka:this.J.rows;if(0!=g.length){var k=d.bb&&1==g.length,m=g.fa(d.bb&&a.length>this.J.ke?a.length:a.length-1);d=m.za(a[a.length-1]);var n=g=k?m.label:d.caption;g=this.hx(g);n=g!=n?n:"";g=e.P.Ro(g,!0,!0);k=k?"":d.level.A;k=c==e.u.i.ha.Oa?this.J.NC.indexOf(k):this.J.Fl.indexOf(k);var p=this.wr(a),t=c==e.u.i.ha.Oa?this.J.Gj(a):this.J.wh(a),r=c==e.u.i.ha.Oa?this.J.Fj(a,d):this.J.Ih(a,d),v=a.length<(c==e.u.i.ha.Oa?this.J.Ck:this.J.Uk)&&!t&&!r;m=m.Ef&&!d.Hh&&!d.dc&&!d.fh&&!t&&!r;0!=
k&&0!=b.length||b.push([]);b[b.length-1].push(new h.W.a9({label:g,id:p,jg:a,OMa:c,Vb:d,level:k,dg:t,isCollapsed:v,eh:r,ZH:m,Of:n}))}}}wr(b){return b.join("-")}D_(b,a,c,d=!1,g=null,k=null){var m=c==e.u.i.ha.Oa?this.J.Lb:this.J.$b,n=c==e.u.i.ha.Oa?this.J.Fb:this.J.wb,p=m.bb&&1==n.length,t=a.length-1,r=n.fa(t);if(null==r)return b.Ml.push({label:"",id:this.wr(a)}),"";t=a[a.length-1];t=r.za(t);var v="";if(0<a.length)if(d)v=null!=g?g.caption:(a[0]+1).toString();else if(0<n.length){v=p?r.label:t.caption;
var y=p?"":t.level.A}g=this.wr(a);var A=this.hx(p?"":v);b.Ml.push({label:A,id:g});y=this.J.Fl.indexOf(y);null==b.Pi[y]&&(b.Pi[y]=[]);var C=e.model.C.F.Ho?a.length<=e.model.C.F.vu.length:p?!1:c==e.u.i.ha.Oa?this.J.Gj(a):this.J.wh(a);var B=c==e.u.i.ha.Oa?this.J.Ck:this.J.Uk;b.Pi[y].push({label:A,id:g,data:a,Mw:t,Zf:C,collapsed:p?!1:!C&&a.length<B,Kg:!1,sh:p?!1:r.Ef&&!t.Hh&&!t.dc&&!t.fh,MC:1,Of:A!=v?v:""});this.C_(b,a,t,c,g);for(d=d?0:a.length-1;0<d;)d--,t=m.bb&&d+1>this.J.ke?d+1:d,r=n.fa(t),t=a[d],
t=r.za(t),y=t.level.A,y=this.J.Fl.indexOf(y),null==b.Pi[y]&&(b.Pi[y]=[]),r=p?r.label:t.caption,A=this.hx(r),r=A!=r?r:"",C=k.pop(),void 0===C?b.Pi[y][b.Pi[y].length-1].MC++:b.Pi[y].push({label:A,id:g,data:C,Mw:t,Zf:!0,collapsed:!1,Kg:!1,sh:!1,MC:1,Of:r}),this.C_(b,a,t,c,g);return v}C_(b,a,c,d,g){try{c.level.yb}catch(r){c.level.yb}if(c&&1<c.level.yb){var k=this.J.Fl.indexOf(c.parent.level.A);null==b.Pi[k]&&(b.Pi[k]=[]);var m=c.parent.caption,n=m;m=this.hx(m);n=m!=n?n:"";if(m===(0<b.Pi[k].length?b.Pi[k][b.Pi[k].length-
1].label:""))b.Pi[k][b.Pi[k].length-1].MC++;else{var p=(d==e.u.i.ha.Oa?this.J.Fb:this.J.wb).indexOf(c.hierarchy.A),t=a.slice(0,p);t[p]=c.parent.ordinal;b.Pi[k].push({label:m,id:g,data:t,Mw:c.parent,Zf:!1,collapsed:!1,Kg:!0,sh:!1,MC:1,Of:n})}this.C_(b,a,c.parent,d,g)}}I(b,a){if(0==b.length)return"";var c=a==e.u.i.ha.Oa?this.J.Lb:this.J.$b,d=a==e.u.i.ha.Oa?this.J.Ka:this.J.rows;if(0==d.length)return"";a=c.bb&&1==d.length;c=d.fa(c.bb&&(0==b.length||b.length>this.J.ke)?b.length:b.length-1);b=b[b.length-
1];return a?c.label:this.Pga(c.za(b))}dS(b,a,c){b.push([]);b[b.length-1].push(new h.W.a9({label:a.label,id:c,measure:a,level:0,dg:!1,isCollapsed:!1,eh:!1,ZH:!1,Of:""}))}eq(b,a,c,d,g,k,m,n){return this.model.Fa.ga.Aa!=e.u.i.ra.Cc&&this.model.Fa.ga.Aa!=e.u.i.ra.Pd||!e.model.C.F.co||d.$!=e.u.i.ea.NONE?this.Xda(b,g,k,m,n):this.J.eq(a,c,d)}Xda(b,a,c,d,g,k=!1){return g?e.P.ey(b,e.model.C.F.np):d?u.bc.format(b,a,c,d):k?u.bc.SLa(b,a,c,d):u.bc.format(b,a,c,d)}Zha(b,a,c,d,g,k=!1,m=null,n=-1){var p=!0,t=!0,
r=[],v=this.J.Lb.bb&&1==this.J.Ka.length,y=this.J.$b.bb&&1==this.J.rows.length;var A="";var C=NaN,B,H=d[0],M=this.Gea(d),Y=M[0],D=e.u.i.ea.xe(H.$),E=e.u.i.ea.de(H.$);Y.yd=H.$==e.u.i.ea.Si?"":Y.yd;var G=H.type==e.u.i.Ra.ec&&e.u.i.ea.pp(H.$);if(null!=m)var F=this.J.ak(this.model.ja.qa.rows.indexOf(m.A)),K=this.model.ja.O.nf(m.A);var I=!1,J=c;for(c=0;c<a;c++){var L=c;L=this.J.ak(L);if(!e.model.C.F.Ho||this.sS(e.model.C.F.FC,L)||v||0==this.J.Ka.length){var Q=this.eh(L,e.u.i.ha.Oa);k||v||this.y_(r,L,e.u.i.ha.Oa);
if(!Q){if(0<this.J.Ka.length&&0<L.length){var N=[];if(!k&&(C=this.J.La(N,L,H),0==this.Zz(C)&&this.model.Fa.ga.Aa!=e.u.i.ra.Cc&&this.model.Fa.ga.Aa!=e.u.i.ra.Pd))continue;A=this.J.Lb.bb&&(0==L.length||L.length>this.J.ke)?L.length:L.length-1;A=this.J.Ka.fa(A);var W=L[L.length-1];A=v?A.label:A.za(W).caption}Q=0==L.length?!1:this.J.Gj(L);if(!Q){W=[];var O=[];if(k){for(var V=0;V<d.length;V++){H=d[V];D=e.u.i.ea.xe(H.$);E=e.u.i.ea.de(H.$);M[V].yd=H.$==e.u.i.ea.Si?"":M[V].yd;G=H.type==e.u.i.Ra.ec&&e.u.i.ea.pp(H.$);
t&&this.dS(r,H,V.toString());W=[];for(B=0;B<J;B++){N=this.J.Vn(B);var ca=this.wr(N);if(Q=0==N.length?!1:this.J.wh(N))if(O.push(N),!e.model.C.F.Ho)continue;Q=this.eh(N,e.u.i.ha.Ia);if(!Q&&(!e.model.C.F.Ho||this.rS(e.model.C.F.vu,N)||y||0==this.J.rows.length)){Q=p?this.D_(b,N,e.u.i.ha.Ia,null,null,O.splice(0)):this.I(N,e.u.i.ha.Ia);O=[];var fa=this.J.La(N,L,H);if(this.Zz(fa)){var U=this.eq(fa,N,L,H,M[V],D,E,G);var aa=this.ZM(b,U,H.label,N,L);W.push({label:Q,value:fa,Ms:U,id:ca,Of:aa,measure:{A:H.A,
$:H.$,index:H.index},Ah:N,Jg:L})}if(p&&0<b.Ml.length&&(ca=b.Ml.length,-1<n&&ca>=n)){J=B+1;I=!0;break}}}p=!1;ca=this.wr(L)+"-"+V;B=V.toString();g.push({label:A,value:C,id:ca,kr:B,ai:W})}t=!1}else{for(B=0;B<J;B++){N=this.J.Vn(B)||[];ca=this.wr(N);if(Q=0==N.length?!1:this.J.wh(N))if(O.push(N),!e.model.C.F.Ho)continue;Q=this.eh(N,e.u.i.ha.Ia);if(!Q&&(!e.model.C.F.Ho||this.rS(e.model.C.F.vu,N)||y||0==this.J.rows.length)){if(p){if(null!=m){var ka=this.J.La(N,F,K);ka=m.za(ka)}Q=this.D_(b,N,e.u.i.ha.Ia,!1,
ka,O.slice(0))}else Q=this.I(N,e.u.i.ha.Ia);O=[];fa=this.J.La(N,L,H);this.Zz(fa)&&(U=this.eq(fa,N,L,H,Y,D,E,G),aa=this.ZM(b,U,H.label,N,L,""),W.push({label:Q,value:fa,Ms:U,id:ca,Of:aa,measure:{A:H.A,$:H.$,index:H.index},Ah:N,Jg:L}));if(p&&0<b.Ml.length&&(ca=b.Ml.length,-1<n&&ca>=n)){J=B+1;I=!0;break}}}p=!1;ca=this.wr(L);g.push({label:A,value:C,id:ca,Jg:L,ai:W})}}}}}b.ug=r;return I}Yha(b,a,c,d,g,k=!1,m=null,n=-1){var p=!0,t=!0,r=[],v=[],y=this.J.$b.bb&&1==this.J.rows.length,A=this.J.Lb.bb&&1==this.J.Ka.length;
var C="";var B=NaN,H,M,Y,D=d[0],E=this.Gea(d),G=E[0],F=e.u.i.ea.xe(D.$),K=e.u.i.ea.de(D.$);G.yd=D.$==e.u.i.ea.Si?"":G.yd;var I=D.type==e.u.i.Ra.ec&&e.u.i.ea.pp(D.$);if(null!=m)var J=this.J.ak(this.model.ja.qa.rows.indexOf(m.A)),L=this.model.ja.O.nf(m.A);var Q=!1,N=a,W=[];for(M=0;M<c;M++){var O=this.J.Vn(M)||[];if(H=0==O.length?!1:this.J.wh(O))if(W.push(O),!e.model.C.F.Ho)continue;var V=this.eh(O,e.u.i.ha.Ia);if(!V&&(!e.model.C.F.Ho||this.rS(e.model.C.F.vu,O)||y||0==this.J.rows.length)){if(null!=m){V=
this.J.La(O,J,L);var ca=m.za(V)}var fa=this.D_(b,O,e.u.i.ha.Ia,!1,ca,W.slice(0));W=[];var U=[];if(!k&&(B=this.J.La(O,U,D),!1===this.Zz(B)&&!1===e.u.i.ea.nN(D.$)&&this.model.Fa.ga.Aa!=e.u.i.ra.Cc&&this.model.Fa.ga.Aa!=e.u.i.ra.Pd))continue;var aa=[];var ka=this.eq(B,O,U,D,b.Ru,b.xe,b.de,b.ux);for(Y=0;Y<N;Y++)if(U=Y,U=this.J.ak(U),!e.model.C.F.Ho||this.sS(e.model.C.F.FC,U)||A||0==this.J.Ka.length){var ha=this.wr(U);H=0==U.length?!1:this.J.Gj(U);V=this.eh(U,e.u.i.ha.Oa);k||(p&&!A&&this.y_(r,U,e.u.i.ha.Oa),
t&&(H||V||v.push(ha)));if(!V&&(0<this.J.Ka.length&&0<U.length&&(C=this.J.Lb.bb&&(0==U.length||U.length>this.J.ke)?U.length:U.length-1,C=this.J.Ka.fa(C),V=U[U.length-1],C=A?C.label:C.za(V).caption),!H))if(k){for(var R,P=0;P<d.length;P++){D=d[P];F=e.u.i.ea.xe(D.$);K=e.u.i.ea.de(D.$);E[P].yd=D.$==e.u.i.ea.Si?"":E[P].yd;I=D.type==e.u.i.Ra.ec&&e.u.i.ea.pp(D.$);R=ha+"-"+P;var ba=P.toString();p&&this.dS(r,D,P.toString());t&&(H||v.push(R));V=this.J.La(O,U,D);if(this.Zz(V)){var Z=this.eq(V,O,U,D,E[P],F,K,
I);var X=b.type==h.Oe.CB?ka:"";X=this.ZM(b,Z,D.label,O,U,X);aa.push({label:C,value:V,Ms:Z,id:R,kr:ba,Of:X,measure:{A:D.A,$:D.$,index:D.index},Ah:O,Jg:U})}if(-1<n&&v.length>=n){N=Y+1;break}}p=!1}else if(V=this.J.La(O,U,D),this.Zz(V)&&(Z=this.eq(V,O,U,D,G,F,K,I),X=b.type==h.Oe.CB?ka:"",X=this.ZM(b,Z,D.label,O,U,X),aa.push({label:C,value:V,Ms:Z,id:ha,Of:X,measure:{A:D.A,$:D.$,index:D.index},Ah:O,Jg:U})),-1<n&&v.length>=n){N=Y+1;break}}t=p=!1;ha=this.wr(O);g.push({label:fa,value:B,id:ha,ai:aa});O=b.type==
h.Oe.CB?b.Ml.length:b.Ml.length*a;if(-1<n&&O>=n){Q=!0;break}}}b.ug=r;b.lx=v;return Q}RJa(b,a,c,d,g=null,k=-1){b.fI=e.u.i.ha.Ia;var m=!0,n=[],p=this.J.Lb.bb&&1==this.J.Ka.length,t;var r=t="";var v,y=e.model.C.F.BL;if(y>=a||-1==y)y=e.model.C.F.BL=0;null!=g&&this.J.ak(this.model.ja.qa.rows.indexOf(g.A));var A=!1;for(g=0;g<a;g++){var C=g;C=this.J.ak(C);var B=[];var H=this.J.La(B,C,d);if(0<this.J.Ka.length&&0<C.length){var M=this.J.Lb.bb&&(0==C.length||C.length>this.J.ke)?C.length:C.length-1;r=this.J.Ka.fa(M);
M=C[C.length-1];r=p?r.label:r.za(M).caption;r=this.hx(r)}var Y=p?"":this.l2(C,e.u.i.ha.Oa);Y=this.hx(Y);b.Ml.push({label:Y,id:this.wr(C)});if(0!=this.Zz(H)||this.model.Fa.ga.Aa==e.u.i.ra.Cc||this.model.Fa.ga.Aa==e.u.i.ra.Pd)if(b.Ml.length-1==y||1==a){var D=[];var E=this.eq(H,B,C,d,b.Ru,b.xe,b.de,b.ux);Y=this.J.$b.bb&&1==this.J.rows.length;for(v=0;v<c;v++)if(B=this.J.Vn(v)||[],!e.model.C.F.Ho||this.sS(e.model.C.F.vu,B)||Y||0==this.J.rows.length){var G=this.J.La(B,C,d);if(this.Zz(G)&&(M=this.eh(B,e.u.i.ha.Ia),
m&&!Y&&this.y_(n,B,e.u.i.ha.Ia),!M&&(M=0==B.length?!1:this.J.wh(B),!M))){0<this.J.rows.length&&(M=this.J.$b.bb&&(0==B.length||B.length>this.J.ke)?B.length:B.length-1,t=this.J.rows.fa(M),M=B[B.length-1],t=Y?t.label:t.za(M).caption);M=this.wr(B);var F=this.eq(G,B,C,d,b.Ru,b.xe,b.de,b.ux);var K=this.ZM(b,F,d.label,B,C,E);var I=t;t=this.hx(t);I=Y||I==t?"":I;D.push({label:Y?"":t,value:G,Ms:F,id:M,Of:K,measure:{A:d.A,$:d.$,index:d.index},Ah:B,Jg:C,t3:I});B=D.length;if(-1<k&&B>=k){A=!0;break}}}m=!1;M=this.wr(C);
b.data.push({label:r,value:H,id:M,Jg:C,ai:D})}}b.ug=n;return A}QJa(b,a,c,d,g,k=-1){k=this.Yha(b,a,c,[d],b.data,!1,null,k);if(!e.v(g)){var m=-1;k&&(m=b.Ml.length);b.Ml=[];b.Pi=[];var n=b.ug;b.ug=[];this.Zha(b,a,c,[g],b.Mw,!1,null,m);0==n.length&&(this.dS(n,d,"0"),this.dS(n,g,"1"));b.ug=n;1==b.Mw.length&&(b.Mw[0].kr="2")}return k}UT(b,a=!1){var c=b.__data__;null!=c&&c.data&&(c=c.data);if(e.v(c)&&e.model.C.F.QG){var d=x.Ga.Yb(b).closest("li.fm-ui-element");!e.v(d)&&d.attr("data-measure-index")&&(c={iE:parseInt(d.attr("data-measure-index"))})}d=
c;a&&(d=f.Oba(c),e.v(d)||(d.element=b));return d}Zz(b){return!isNaN(b)&&e.u.i.tP.qP!=b}static Oba(b){if(e.v(b))return null;var a={};e.v(b.id)||(a.id=b.id);e.v(b.label)||(a.label=b.label);e.v(b.value)||(a.value=b.value);e.v(b.measure)||(a.measure=e.model.Wa.R().ja.qa.fd(b.measure.A).lj());e.v(b.iE)||(a.measureIndex=b.iE);e.v(b.Ah)||(a.rows=e.model.Wa.R().ja.qa.r0(b.Ah));e.v(b.Jg)||(a.columns=e.model.Wa.R().ja.qa.q0(b.Jg));return a}}f.YC=null;h.Gv=f})(l.Dd||(l.Dd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.mr.Vqa{constructor(a){super(a);this.Db=e.model.Wa.R()}Fz(a){var c=[];a.Wc.forEach(d=>{c.push({id:`aggregation_${d}`,label:e.u.i.ea.HG(d),isSelected:d==a.$,handler:()=>this.iha(a,d)})});return c}iha(a,c){const d=this.Db.ja.qa.clone();a=d.gd()[a.index];e.v(a)||(a.$=c,this.Db.ge(d))}YS(a,c,d){e.Pg(f.YL)&&(a=f.YL(a.slice(),c,d)||a);return a}eT(a,c,d=null){this.Db.Ya(e.K.Vi.t7,this,{GFa:a,coords:c,mL:d})}}f.YL=null;h.mP=f;class b extends f{constructor(a){super(a.G);
this.K=a;this.K.N(h.uc.OJ,()=>this.lHa());this.K.N(h.uc.Gt,c=>this.cHa(c))}lHa(){const a=this.K.na.Lr;if(0!=a.length){var c=a[0];const d=this.K.G.sg(),g=d.left+this.K.na.coords.hm(c.kc,this.K.na.ac)+this.K.na.coords.Dh(c.kc);c=d.top+this.K.na.coords.Vo(c.lb,this.K.na.ac)+this.K.na.coords.$d(c.lb);1==a.length?this.show(a[0],{left:g,top:c}):this.yja(a,{left:g,top:c})}}cHa(a){if(a.t5){var c=this.K.na.Tu(a.t5.G.element);a=a.t5.G.getBoundingClientRect();this.show(c,{left:a.right,top:a.bottom})}else{c=
this.K.na.ag(a.lb,a.kc,!0);c.lb=a.lb;c.kc=a.kc;var d=this.K.G.sg();a=d.left+this.K.na.coords.hm(c.kc,this.K.na.ac)+this.K.na.coords.Dh(c.kc);d=d.top+this.K.na.coords.Vo(c.lb,this.K.na.ac)+this.K.na.coords.$d(c.lb);this.show(c,{left:a,top:d})}}B4(a,c){a=this.K.na.Tu(a.target)||this.K.na.jea(c.clientX,c.clientY);null==a||e.ka(a.label)&&isNaN(a.value)||(this.show(a,{left:c.clientX,top:c.clientY}),this.K.na.Ks())}O4(a){var c=this.K.G.sg(),d=a.clientX-c.left,g=a.clientY-c.top,k=a.clientX,m=a.clientY;if(!(0>
d||0>g||d>this.K.cg()||g>this.K.zd())){d=this.K.na.Tu(a.target)||this.K.na.jea(a.clientX,a.clientY);g=this.K.na.Lr;0==a.which&&0!=g.length&&(d=g[0],k=c.left+this.K.na.coords.hm(d.kc,this.K.na.ac)+this.K.na.coords.Dh(d.kc),m=c.top+this.K.na.coords.Vo(d.lb,this.K.na.ac)+this.K.na.coords.$d(d.lb));c=!1;if(1<g.length)for(var n=0;n<g.length;n++)if(g[n].lb==d.lb&&g[n].kc==d.kc){c=!0;break}(1<g.length&&c?this.yja(g,{left:k,top:m}):this.show(d,{left:k,top:m}))&&a.preventDefault()}}yja(a,c){if(e.model.C.F.readOnly)return!1;
var d=[],g=this.K;if(this.UDa(a)){var k=a[0].hierarchy,m=a.map(n=>n.Vb.ordinal);d.push({id:"group",label:e.model.B.j.Lla,handler:()=>{e.PMa({Aha:n=>{k.eba(n,m);this.Db.ja.select();this.K.na.Ks()},AV:()=>{this.K.na.Ks()}})}})}d=this.YS(d,a.map(n=>n.Sa()),g.dj?"flat":"pivot");return 0<d.length?(this.eT(d,c),!0):!1}UDa(a){if(!e.model.C.F.mU)return!1;var c=a[0].hierarchy;if(e.v(c))return!1;for(var d=0;d<a.length;d++){var g=a[d];if(g.hierarchy!=c||e.v(g.Vb))return!1}return!0}show(a,c){if(e.model.C.F.readOnly)return!1;
let d=[];const g=this.K;var k=e.v(a)||e.ka(a.label)&&isNaN(a.value);!k&&a.li&&!isNaN(a.value)&&e.model.C.F.cd&&!e.model.C.F.sc&&e.u.Ma.R().ga&&e.u.Ma.R().ga.KU&&d.push({id:"drillthrough",label:e.model.B.j.s7,handler:()=>{g.cd(a)}});const m=this.Db.ja.qa;if(!e.v(m)){!k&&a.vl&&e.model.C.F.Vx&&d.push({id:"open_filter",label:e.model.B.j.u7,handler:()=>{this.K.Ha(new l.KP(a.hierarchy))}});if(!k&&a.vl&&!e.model.C.F.sc){var n=m.Iza(a.hierarchy.A);e.v(n)||(n.A!=e.u.i.ha.Ia&&d.push({id:"move_to_rows",label:e.model.B.j.Qla,
handler:()=>{n.Na.removeItem(a.hierarchy.A);m.$b.Na.Ta(a.hierarchy.A,a.hierarchy);this.Db.ge(m)}}),n.A!=e.u.i.ha.Oa&&d.push({id:"move_to_columns",label:e.model.B.j.Ola,handler:()=>{n.Na.removeItem(a.hierarchy.A);m.Lb.Na.Ta(a.hierarchy.A,a.hierarchy);this.Db.ge(m)}}),n.A!=e.u.i.ha.Lt&&d.push({id:"move_to_report_filters",label:e.model.B.j.Pla,handler:()=>{n.Na.removeItem(a.hierarchy.A);m.vI.Na.Ta(a.hierarchy.A,a.hierarchy);this.Db.ge(m)}}),d.push({id:"remove_field",label:e.P.bind(e.model.B.j.v7,a.hierarchy.caption),
handler:()=>{n.Na.removeItem(a.hierarchy.A);this.Db.ge(m)}}))}k||!a.xh&&!a.Ng||(a.Zf&&d.push({id:"collapse",label:e.model.B.j.Dla,handler:()=>{g.Ku(a)}}),a.collapsed&&d.push({id:"expand",label:e.model.B.j.Jla,handler:()=>{g.Ku(a)}}),!(a.hierarchy&&2<a.hierarchy.ua.length)||m.hf&&a.xh||m.Xf&&a.Ng||(a.Kg||a.sh)&&d.push({id:a.Kg?"drill_up":"drill_down",label:a.Kg?e.model.B.j.Gla:e.model.B.j.Fla,handler:()=>{g.vz(a)}}));!k&&(a.xh||a.Ng)&&a.Vb&&a.Vb.fh&&d.push({id:"ungroup",label:e.model.B.j.$la,handler:()=>
{a.hierarchy.LO(a.Vb);this.Db.ja.select()}});!k&&a.xh&&!a.vl&&a.ao&&(a.jp||d.push({id:"sort_row_desc",label:e.model.B.j.Zla,handler:()=>{g.d6(a,e.u.i.Ba.Nc)}}),a.ip||d.push({id:"sort_row_asc",label:e.model.B.j.Yla,handler:()=>{g.d6(a,e.u.i.Ba.hc)}}),(a.ip||a.jp)&&d.push({id:"clear_sorting",label:e.model.B.j.r7,handler:()=>{g.gwa()}}));!k&&a.Ng&&!a.vl&&a.ao&&(a.jp||d.push({id:"sort_column_desc",label:e.model.B.j.Xla,handler:()=>{g.yO(a,e.u.i.Ba.Nc)}}),a.ip||d.push({id:"sort_column_asc",label:e.model.B.j.Wla,
handler:()=>{g.yO(a,e.u.i.Ba.hc)}}),(a.ip||a.jp)&&d.push({id:"clear_sorting",label:e.model.B.j.r7,handler:()=>{g.awa()}}));if(!k&&(a.xh||a.Ng)){if(e.model.C.F.LI&&a.hierarchy&&a.Vb&&0<a.Vb.level.Ye.length){var p=this.YBa(a.Vb.level.Ye,a.Vb.level.A);0<p.length&&d.push({id:"member_properties",label:e.model.B.j.Sla,submenu:p})}a.Vb&&e.model.C.F.Vx&&1!==a.Vb.hierarchy.eb.length&&(d.push({id:"filter_by",label:e.P.bind(e.model.B.j.Kla,a.Vb.caption),handler:()=>{this.Db.Il(a.hierarchy.A,{members:[a.Vb.Fi]})}}),
d.push({id:"exclude",label:e.P.bind(e.model.B.j.Ila,a.Vb.caption),handler:()=>{var r=a.hierarchy.vr(a.hierarchy.filter.Hi(!0));r=0===a.hierarchy.eb.length?[a.Vb.Fi]:r.concat(a.Vb.Fi);this.Db.Il(a.hierarchy.A,{exclude:r})}}))}k||!this.tDa(a)&&!this.sDa(a)||(p=this.Fz(a.measure),0<p.length&&d.push({id:"aggregation",label:e.model.B.j.q7,submenu:p}));!k&&a.measure&&l.Sb.Jb.jfa&&(d.push({id:"number_formatting",label:e.model.B.j.Rla,handler:()=>{this.aJa(a.measure)}}),d.push({id:"conditional_formatting",
label:e.model.B.j.Ela,handler:()=>{this.ZIa(a.measure)}}));!k&&a.measure&&a.measure.Qa&&d.push({id:"edit_calculated_value",label:e.P.bind(e.model.B.j.Hla,a.measure.caption),handler:()=>{l.Sb.Jb.UN(a.measure.A)}});var t=m.gd();!k&&a.measure&&1<t.length&&!e.model.C.F.sc&&d.push({id:"remove_measure",label:e.model.B.j.Tla,handler:()=>{m.qia(a.measure);const r=e.u.O.Tq.xb(e.model.hb.vo.xb(m.Sa()),this.Db.ja.O);this.Db.ge(r)}});!k&&a.vl&&e.model.C.F.sc&&(e.v(a.measure)&&e.v(a.hierarchy)||d.push({id:"remove_field",
label:e.P.bind(e.model.B.j.v7,a.hierarchy?a.hierarchy.caption:a.measure.caption),handler:()=>{a.hierarchy&&m.Ka.Bb(a.hierarchy.A)?m.Ka.removeItem(a.hierarchy.A):a.hierarchy&&m.rows.Bb(a.hierarchy.A)?m.rows.removeItem(a.hierarchy.A):a.hierarchy&&m.qb.Bb(a.hierarchy.A)&&m.qb.removeItem(a.hierarchy.A);a.measure&&t.find(r=>r.A===a.measure.A)&&m.qia(a.measure);this.Db.ge(m)}}));if(!k&&a.vl&&!e.v(a.hierarchy)&&e.model.C.F.Bk&&(k=m.rows.Bb(a.hierarchy.A),p=m.Ka.Bb(a.hierarchy.A),(k?m.wb.indexOf(a.hierarchy.A)!=
m.wb.length-1:m.Fb.indexOf(a.hierarchy.A)!=m.Fb.length-1)&&(k||p))){let r=!0===a.hierarchy.bf;void 0===a.hierarchy.bf&&(!k||"on"!=e.model.C.F.bf&&"rows"!=e.model.C.F.bf||(r=!0),!p||"on"!=e.model.C.F.bf&&"columns"!=e.model.C.F.bf||(r=!0));d.push({id:r?"hide_hierarchy_totals":"show_hierarchy_totals",label:r?e.model.B.j.Nla:e.model.B.j.Vla,handler:()=>{a.hierarchy.bf=!r;this.Db.ge(m)}})}d=this.YS(d,a?a.Sa():null,g.dj?"flat":"pivot");return 0<d.length?(this.eT(d,c,r=>this.Aua(r,a)),!0):!1}}Aua(a,c){var d=
["open_filter","drillthrough","number_formatting","conditional_formatting","edit_calculated_value"];if(a&&0<=d.indexOf(a.id))return!1;d=["move_to_rows","move_to_columns","move_to_report_filters","remove_field"];if(a&&0<=d.indexOf(a.id))return!0;this.K.AA(c.lb,c.kc);return!1}aJa(a=null){e.model.Za.R().Ha(new e.model.jd(e.model.Za.C9,{measureName:a.A,aggregation:a.$}))}ZIa(a=null){e.model.Za.R().Ha(new e.model.jd(e.model.Za.p7,{measureName:a.A}))}tDa(a){return!e.model.C.F.sc&&e.model.C.F.Jl&&a.measure&&
!a.measure.Qa&&!a.measure.gh}sDa(a){return e.model.C.F.sc&&e.model.C.F.Jl&&a.measure&&!a.measure.Qa&&a.Vz&&a.Ss&&0<=a.measure.index}YBa(a,c){for(var d=[],g=0;g<a.length;g++){var k=a.fa(g);if(k){var m=this.Db.ja.qa.Ij;m&&m[c]&&-1<m[c].indexOf(k.A)?d.push({id:"hide_member_property",label:e.P.bind(e.model.B.j.Mla,k.caption),data:{levelName:c,propertyName:k.A},handler:n=>{this.K.zja(n,!1)}}):d.push({id:"show_member_property",label:e.P.bind(e.model.B.j.Ula,k.caption),data:{levelName:c,propertyName:k.A},
handler:n=>{this.K.zja(n,!0)}})}}return d}}h.K8=b})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.ce.sk{constructor(){super();this.Bg=this.vf=this.Fp=this.Cy=this.Ui=0;this.Db=e.model.Wa.R();this.Xc=[];this.iaa=()=>this.mHa();this.bV=b=>this.tq(b);this.aa("fm-grid-view");this.af();this.Wk("grid");new h.K8(this);this.Db.N("reset_grid",this.iaa);this.lv=u.TP.R();this.lv.N(u.KeyboardEvent.SP,this.bV)}dispose(){this.J=null;this.Db.rb("reset_grid",this.iaa);this.Db=null;this.na&&this.na.dispose();this.Ae=null}updateLabels(){this.Ae&&this.Ae.updateLabels()}tq(b){if(this.an&&
null!=this.lv&&null!=this.Ae){var a=b.ctrlKey||b.metaKey;switch(b.keyCode){case 37:this.scroll("left",a);b.vq.preventDefault();break;case 38:this.scroll("up",a);b.vq.preventDefault();break;case 39:this.scroll("right",a);b.vq.preventDefault();break;case 40:this.scroll("down",a);b.vq.preventDefault();break;case 13:case 32:null!=this.OH()?this.na.focus():this.AA(this.na.coords.Lg,this.na.coords.Bf),b.stopPropagation()}}}scroll(b,a=!1){switch(b){case "up":a?this.Ae.fLa():this.Ae.Kr(this.Ae.coords.Lg-
1);break;case "down":a?this.Ae.cLa():this.Ae.Kr(this.Ae.coords.Lg+1);break;case "left":a?this.Ae.dLa():this.Ae.ot(this.Ae.coords.Bf-1);break;case "right":a?this.Ae.eLa():this.Ae.ot(this.Ae.coords.Bf+1)}}Dxa(){var b=new h.sheet.lP;b.vD=(a,c)=>this.getData(a,c);b.N(h.uc.po,a=>this.mE(a));b.N(h.uc.aK,a=>this.j4(a));b.N(h.uc.Kv,a=>this.sq(a));b.N(h.uc.RF,a=>this.M4(a));b.N(h.uc.SF,a=>this.N4(a));b.N(h.uc.OJ,a=>this.Ha(a));b.N(h.uc.Gt,a=>this.Ha(a));this.G.append(b);return b}Axa(){var b=new h.sheet.GC.kP;
b.vD=(a,c)=>this.getData(a,c);b.N(h.uc.po,a=>this.mE(a));b.N(h.uc.aK,a=>this.j4(a));b.N(h.uc.Kv,a=>this.sq(a));b.N(h.uc.RF,a=>this.M4(a));b.N(h.uc.SF,a=>this.N4(a));b.N(h.uc.OJ,a=>this.Ha(a));b.N(h.uc.Gt,a=>this.Ha(a));this.G.append(b);return b}Hxa(){var b=new h.sheet.flat.Mv;b.vD=(a,c)=>this.getData(a,c);b.N(h.uc.po,a=>this.mE(a));b.N(h.uc.aK,a=>this.j4(a));b.N(h.uc.Kv,a=>this.sq(a));b.N(h.uc.RF,a=>this.M4(a));b.N(h.uc.SF,a=>this.N4(a));b.N(h.uc.OJ,a=>this.Ha(a));b.N(h.uc.Gt,a=>this.Ha(a));this.G.append(b);
return b}pBa(){if(e.model.C.F.Bk){if(this.na&&this.na.type==h.sheet.GC.kP.TYPE)return this.na;null!=this.na&&this.na.Qg(!0);return this.Axa()}if(e.model.C.F.sc){if(this.na&&this.na.type==h.sheet.flat.Mv.TYPE)return this.na;null!=this.na&&this.na.Qg(!0);return this.Hxa()}if(this.na&&this.na.type==h.sheet.lP.TYPE)return this.na;null!=this.na&&this.na.Qg(!0);return this.Dxa()}nb(){if(!(1>e.model.Ea.xc.bk())&&(this.Ae=this.pBa(),null!=this.na)){this.Ae.slice=e.u.Ma.R().qa;this.na.Fja=this.Db.Fa.JA?100:
1E3;if(this.J&&this.J.$i){this.na.clearData();this.Cy=this.Fp=this.Ui=0;var b=this.J.Ln,a=e.model.C.F.Bk?0<this.J.wb.length?1:0:this.J.Uk;if(a>=b+1){var c=0;var d=c+a;var g=c+(a-b)-1}else g=0,c=0<this.J.Ck?g+(b-a)+1:g,0==this.J.Fb.length&&0==this.J.wb.length&&(c+=1),d=c+a;var k=g;this.Ui=Math.min(c,k);this.Cy=k;this.Fp=0;this.vf=d;this.Bg=this.dj?0:e.model.C.F.Bk?this.J.$b.bb&&this.J.nm?e.v(this.J.LH(0))?this.J.rows.length:this.J.Fl.length+1:e.v(this.J.LH(0))?this.J.$b.bb?this.J.rows.length-1:this.J.rows.length:
this.J.Fl.length:0==this.J.rows.length?0:1;e.model.C.F.st||(this.Cy=1==a&&0==this.J.Ck?0:-1,this.vf=b);this.dj&&(this.na.iM.Gia=(m,n,p)=>this.saveData(m,n,p),this.na.iM.cja(e.model.C.F.gD));this.dj&&"on"==e.model.C.F.Lf&&"top"==e.model.C.F.TH&&this.vf++;d=this.J.Rn;this.dj&&"on"==e.model.C.F.Lf&&"bottom"==e.model.C.F.TH&&(d+=1);k=this.J.Sn;0==k&&(k=this.J.Ka.length-(this.J.Lb.bb?1:0));this.na.$ia(d,k);this.na.eAa(this.Bg);this.na.Zda(this.vf);if(this.na instanceof h.sheet.lP&&(this.na.coords.VG=this.vf-
this.J.Ln-1,this.na.ES.rowIndex=this.na.coords.VG,this.na.ES.xA(this.J.Fb),this.na.Aia.xA(this.J.wb),this.na.Dha.xA(this.J.qb),e.model.C.F.cn)){d=this.J.wb.length;for(k=1;k<=d;k++)this.na.coords.Rx(this.na.coords.he-k,52);this.na.coords.Rx(this.na.coords.VG,52)}this.na instanceof h.sheet.GC.kP&&(this.na.coords.VG=this.vf-this.J.Ln-1,this.na.ES.rowIndex=this.na.coords.VG,this.na.ES.xA(this.J.Fb),this.na.Aia.xA(this.J.wb),this.na.Dha.xA(this.J.qb));(1<this.J.Ka.length||!this.J.Lb.bb)&&e.model.C.F.st&&
this.cba(g,this.Bg,e.u.i.ha.Oa);(1<this.J.rows.length||!this.J.$b.bb)&&e.model.C.F.st&&(e.model.C.F.Bk?this.wsa(c):this.cba(c,0,e.u.i.ha.Ia));this.Db.Fa.JA||this.Db.Fa.$I||(this.DL(),this.Uva());this.FKa();this.GKa();this.EKa();this.JKa();this.HKa();this.IKa();this.G.Gg("rowcount",`${this.na.coords.dk}`);this.G.Gg("colcount",`${this.na.coords.Ji}`)}else this.na.wu();this.Xc=e.model.va.nn.Xc.Pc();this.na.resize(l.Sb.gN,l.Sb.KD);this.na.nb()}}yu(){e.v(this.na)||this.Db.Fa.JA||this.Db.Fa.$I||(this.na.TG(0),
this.na.IC(0))}getData(b,a,c=!1){if(null==this.J||!this.J.$i||b<this.Cy||a<this.Fp)return null;var d=b-this.vf,g=a-this.Bg;if((d>this.J.Rn-1||g>this.J.Sn-1)&&!(this.dj&&"on"==e.model.C.F.Lf&&"bottom"==e.model.C.F.TH&&d==this.J.Rn&&g<=this.J.Sn-1))return null;var k=this.J.Vn(d,!0),m=this.J.ak(g,!0);if(null==k&&null==m)return null;var n=this.J.Gi(d,g),p;if(this.dj){var t=this.J.ak(g,!0,!0);t instanceof Array&&(p=t[0][1])}if(this.dj&&"on"==e.model.C.F.Lf&&"top"==e.model.C.F.TH&&(e.model.C.F.st&&1==b||
!e.model.C.F.st&&0==b)||this.dj&&"on"==e.model.C.F.Lf&&"bottom"==e.model.C.F.TH&&(e.model.C.F.st&&b==this.J.Rn+1||!e.model.C.F.st&&b==this.J.Rn))return this.EBa(k,m,n);if(null==k)return c=1==(e.model.C.F.Bk?1:this.J.wb.length)&&0==this.J.Ck?b-this.Cy:b-this.Cy-1,0==this.J.wb.length&&0==this.J.Fb.length&&(c=b-this.Cy),g=this.J.EM(g),this.fBa(m,n,g,c,a,p);t=this.J.dU(d);d=this.J.LH(d);g=this.J.EM(g);return null==m?e.model.C.F.Bk?this.Zsa(k,n,t,b,a,d):this.qCa(k,n,t,b):this.BH(k,m,n,b,a,c,t,g,d,p)}BH(b,
a,c,d,g,k=!1,m=NaN,n=NaN,p=-1,t){if(e.v(c)){var r=new h.W.ne;r.li=!0;r.Jg=a;r.Ah=b;r.jm=this.J.Uk>b.length;r.vx=this.J.Ck>a.length;r.$D=0==a.length;r.Ss=0==b.length;return r}var v=c.Eh(c.A,c.$).clone();c.$==e.u.i.ea.Si?v.yd="":e.u.i.ea.xe(c.$)?v.xe=!0:e.u.i.ea.de(c.$)&&(v.de=!0,v.yd="%");r=new h.W.ne;r.li=!0;r.Jg=a;r.measure=c;r.hierarchy=this.Db.ja.O.Ok(c.A);r.Ah=b;e.model.C.F.Bk?0==b.length?r.level=0:(m=this.Z1(b),-1<m&&(r.level=m)):e.model.C.F.sc||(r.level=m);t=this.J.La(b,a,c,t);r.value=t;this.dj?
(v=c.type!=e.u.i.Ra.wc?c.Eh(c.A,c.$).clone():c.Eh(c.A,c.$,!0).clone(),c.type==e.u.i.Ra.wc?(m=this.J.yH(a).za(t),null!=m&&(r.Vb=m,r.label=m.caption)):c.type==e.u.i.Ra.jb?"string"===typeof t?r.label=t:(r.label=u.bc.format(t,v),r.numeric=!0):c.type==e.u.i.Ra.Ua?null===t?r.label=e.model.B.j.IX:(m=this.Db.ja.ga.mapping.La(c.A,"format",e.model.C.F.Up),r.label=e.P.$x(t,m,e.model.C.F.$j)):c.type==e.u.i.Ra.ec?isNaN(t)||(m=this.Db.ja.ga.mapping.La(c.A,"format",e.model.C.F.np),r.label=e.P.ey(t,m)):c.type!=e.u.i.Ra.Mc||
isNaN(t)||(m=this.Db.ja.ga.mapping.La(c.A,"format",e.model.C.F.Ek),r.label=e.P.HO(t,m,e.model.C.F.$j))):(m=(this.Db.Fa.ga.Aa==e.u.i.ra.Cc||this.Db.Fa.ga.Aa==e.u.i.ra.Pd)&&e.model.C.F.co&&c.$==e.u.i.ea.NONE,m||c.type!=e.u.i.Ra.jb&&c.type!=e.u.i.Ra.wc)?m||c.type!=e.u.i.Ra.Ua?m||c.type!=e.u.i.Ra.ec?m||c.type!=e.u.i.Ra.Mc?(r.label=m?this.J.eq(b,a,c):e.u.SY.R().La(t),r.numeric=m&&e.u.i.Ra.jb===c.type):isNaN(r.value)||(e.u.i.ea.dF(c.$)?(m=this.Db.ja.ga.mapping.La(c.A,"format",e.model.C.F.Ek),r.label=e.P.HO(t,
m,e.model.C.F.$j)):r.label=u.bc.format(t,v)):isNaN(t)||(e.u.i.ea.pp(c.$)?(m=this.Db.ja.ga.mapping.La(c.A,"format",e.model.C.F.np),r.label=e.P.ey(t,m)):r.label=u.bc.format(t,v)):isNaN(t)||(e.u.i.ea.dF(c.$)?(m=this.Db.ja.ga.mapping.La(c.A,"format",e.model.C.F.Up),r.label=e.P.$x(r.value,m,e.model.C.F.$j)):r.label=u.bc.format(t,v)):"string"===typeof t?r.label=t:(r.label=u.bc.format(t,v),r.numeric=!0);r.CI=this.J.Ps(b,a);m=!1;var y=this.J.Ih(b,void 0,c);if(this.J.Uk>b.length||y||this.J.Ck>a.length){m=
!0;r.jm=this.J.Uk>b.length||y;r.vx=this.J.Ck>a.length;if("on"!=e.model.C.F.bf&&!e.model.C.F.Bk){var A=this.J.dA;if(0!=b.length&&(this.J.wh(b)||this.J.wh(b,c)||y)&&("off"==e.model.C.F.bf||"columns"==e.model.C.F.bf)||0!=a.length&&(this.J.Gj(a)||this.J.Gj(a,c))&&("off"==e.model.C.F.bf||"rows"==e.model.C.F.bf))return null;if(0==A&&1<this.J.Da.length)if(this.J.$b.bb&&("off"==e.model.C.F.bf||"columns"==e.model.C.F.bf)){if(d<("on"==e.model.C.F.Lf||"columns"==e.model.C.F.Lf?this.vf+this.J.Rn-this.J.Da.length:
this.vf+this.J.Rn)&&this.J.wh(b,c))return null}else if(this.J.Lb.bb&&("off"==e.model.C.F.bf||"rows"==e.model.C.F.bf)&&g<("on"==e.model.C.F.Lf||"rows"==e.model.C.F.Lf?this.Bg+this.J.Sn-this.J.Da.length:this.Bg+this.J.Sn)&&this.J.Gj(a,c))return null}r.Ss=0==b.length;r.$D=0==a.length;r.EU=r.jm&&2==p&&!r.Ss;if(e.model.C.F.Bk&&r.Vz&&"on"!=e.model.C.F.Lf&&0!=this.J.Ck&&0!=this.J.Uk&&("off"==e.model.C.F.Lf||"rows"==e.model.C.F.Lf&&r.Ss||"columns"==e.model.C.F.Lf&&r.$D))return null}this.J.j3(d)&&(m=!0,r.jm=
!0);this.J.R2(g)&&(m=!0,r.vx=!0);r.measure&&(r.measure.Xz||r.measure.Wz)&&!isNaN(r.value)&&(r.label="",r.Xz=r.measure.Xz,r.Wz=r.measure.Wz);if(k)return r;""!=v.textAlign&&r.nz({"text-align":v.textAlign});if(0<this.Xc.length&&r.measure)for(k=0;k<this.Xc.length;k++)(p=this.Xc[k],p.mt!=d&&-1!=p.mt||p.Au!=g&&-1!=p.Au||!(p.measure==c.A&&""===p.$||""==p.measure&&r.numeric||p.measure=="[Measures].["+c.A+"]"||p.measure==c.A&&p.$===r.measure.$)||p.Mk!==m&&void 0!==p.Mk||""!=p.hierarchy&&!this.Hva(b,a,p.hierarchy,
p.Vb))||((this.Db.Fa.ga.Aa==e.u.i.ra.API?(e.v(p.qH)&&(p.qH=u.Ht.FH(p.Ud,this.Db.ja.O.Da)),y=p.qH.slice(0)):y=p.Ud.slice(0),p.m3)?this.Db.Fa.JA&&(v=this.J.HD(b,a,c))&&(-1<p.Ge.toLowerCase().indexOf(e.u.i.rc.OQ)?t=v.Wp:-1<p.Ge.toLowerCase().indexOf(e.u.i.rc.PQ)&&(t=100*v.ht),v=this.J.ww(b,a,y,t),null!=v&&r.Fca(v)):(v=this.J.ww(b,a,y,t),e.v(p.format)||!0!==v&&"truestyle"!==v||(r.nz(p.format.$ja()),r.Xc.push(p.id)),r.XLa=!0));"after"===e.model.C.F.IL&&this.J.Fj(a,void 0,c)&&-1!==n&&(r.label="");return r}EBa(b,
a,c){if(e.v(c))return null;var d=new h.W.ne;d.li=!0;d.Jg=a;d.measure=c;d.hierarchy=this.Db.ja.O.Ok(c.A);d.Ah=b;if(c.type==e.u.i.Ra.jb||c.type==e.u.i.Ra.ec||c.type==e.u.i.Ra.Mc){var g=c.Eh(c.A,c.$).clone();if(c.$==e.u.i.ea.Si)g.yd="";else if(e.u.i.ea.xe(c.$))g.xe=!0;else if(e.u.i.ea.de(c.$)||c.Qa&&-1<c.Ge.indexOf("percent"))g.de=!0,g.yd="%";d.value=this.J.La(null,null,c);if(c.type==e.u.i.Ra.jb)d.label=u.bc.format(d.value,g),d.numeric=!0;else if(c.type==e.u.i.Ra.ec)isNaN(d.value)||(d.label=e.u.i.ea.pp(c.$)?
e.P.ey(d.value,e.model.C.F.np):u.bc.format(d.value,g));else if(c.type==e.u.i.Ra.Mc&&!isNaN(d.value)){var k=this.Db.ja.ga.mapping.La(c.A,"format",e.model.C.F.Ek);d.label=e.u.i.ea.dF(c.$)?e.P.HO(d.value,k,e.model.C.F.$j):u.bc.format(d.value,g)}d.Ss=!0;d.jm=!0;""!=g.textAlign&&d.nz({"text-align":g.textAlign});if(0<this.Xc.length)for(g=0;g<this.Xc.length;g++){k=this.Xc[g];let p;this.Db.Fa.ga.Aa==e.u.i.ra.API?(e.v(k.qH)&&(k.qH=u.Ht.FH(k.Ud,this.Db.ja.O.Da)),p=k.qH.slice(0)):p=k.Ud.slice(0);if(k.measure==
c.A&&k.m3&&this.Db.Fa.JA){var m=this.J.HD(b,a,c);if(m){var n;-1<k.Ge.toLowerCase().indexOf(e.u.i.rc.OQ)?n=m.Wp:-1<k.Ge.toLowerCase().indexOf(e.u.i.rc.PQ)&&(n=100*m.ht);k=this.J.ww(b,a,p,n);null!=k&&d.Fca(k)}}}}return d}Hva(b,a,c,d){var g=this.J.Ka.indexOf(c);if(-1<g){if(g<a.length)return b=this.J.Ka.getItem(c),a[g]&&b.za(a[g]).hD(d)}else if(a=this.J.rows.indexOf(c),-1<a&&a<b.length)return c=this.J.rows.getItem(c),b[a]&&c.za(b[a]).hD(d);return!1}fBa(b,a,c,d,g,k){return this.dj?this.Ysa(b,a,k):this.Xsa(b,
a,c,d,g)}CK(b){if(b.Hh)return!0;if(1<b.children.length)return!1;b=b.hierarchy.za(b.children[0]);return b.caption!==e.model.B.j.Nl&&b.caption!==e.model.B.j.jo?!1:this.CK(b)}Xsa(b,a,c,d,g){if(0==b.length){if(this.J.$b.bb&&d==this.J.Ln-1)return this.GH(a,e.u.i.ha.Oa);b=this.J.Sn-this.J.Da.length+1;if(this.J.Lb.bb&&d==this.J.Ln-1&&g>=b&&1==this.J.Da.length)return this.GH(a,e.u.i.ha.Oa);b="on"==e.model.C.F.Lf||"rows"==e.model.C.F.Lf?this.Bg+this.J.Sn-this.J.Da.length:this.Bg+this.J.Sn;if(this.J.Lb.bb&&
0==d&&g>=b&&1<this.J.Ln){if(g==b){var k=this.yD();k.label=e.model.B.j.ioa;return k}return this.JM()}return this.J.Lb.bb&&0==d&&1<this.J.Ln?this.GH(a,e.u.i.ha.Oa):this.J.Lb.bb&&d==this.J.Ln-1?g>=b||1==this.J.Lb.Na.length?this.GH(a,e.u.i.ha.Oa):this.yD():this.J.Lb.bb&&0<d&&g<=b?this.yD():0<=d?this.JM():null}var m=this.J.Lb.bb&&(b.length>this.J.ke||0==this.J.ke)?b.length:b.length-1,n=this.J.Ka.fa(m),p,t=this.J.X2(g-this.Bg);void 0!==t&&-1<d&&(m=p=d,this.J.Lb.bb&&m>=this.J.ke&&1<this.J.Da.length&&(p--,
m++),p<t[0]&&(t=void 0));this.J.Lb.bb&&m>this.J.ke&&(1==this.J.Da.length?m--:c++);if(c>d&&void 0===t||0>d)return 0<=d?this.JM():null;k=new h.W.ne;k.Ng=!0;k.measure=this.J.Lb.bb&&(1<this.J.Da.length||e.model.C.F.KI)?a:void 0;k.level=c;var r=!1,v=this.J.dA;if(void 0!==t)if(e.v(b[p]))if(d==v-1)k.label=void 0!==a?a.caption:e.model.B.j.fY,k.pN=!0;else return this.JM();else{var y=b[p];n=this.J.Fb.fa(p)}else y=b[b.length-1];y=n.za(y);k.CI=this.J.Ps([],b);if(this.J.Lb.bb&&1<this.J.Da.length&&d==v-1||this.J.Lb.bb&&
e.model.C.F.KI&&d==v-1&&1!=v||this.J.Lb.bb&&e.model.C.F.KI&&d==v&&1==v&&2>this.J.Da.length)k.label=a.label,k.pN=!0,y=null;else{if(this.J.Lb.bb&&void 0!==a&&0<a.index&&d<v)return this.JM();c<d?m==d?(r=b.length-1!=this.J.Ck-1&&!y.dc,k.label=y.caption):(k.label=this.J.Ln-1==d&&e.model.C.F.KI?void 0!==a?a.caption:e.model.B.j.fY:"",y=null):(r=b.length-1!=this.J.Ck-1&&!y.dc,k.label=y.caption,this.J.Lb.bb&&d<v&&1<this.J.Da.length&&(k.measure=a=void 0));void 0!==t&&(t[t.length-1]>=p&&(r=!0),e.v(b[p])&&(r=
!1))}d=null==y?!1:this.J.Fj(b,y,a);!y||this.CK(y)||y.dc||y.Hh||!y.hierarchy.Ef||y.level.ev||(r||e.model.C.F.UE?d?k.Kg=!0:k.sh=!0:d?k.Zf=!0:k.collapsed=!0);r&&!d&&(this.J.Gj(b,a)||void 0!==t&&-1<t.indexOf(p)?k.Zf=!0:k.collapsed=!0);if("on"==e.model.C.F.Nj||"columns"==e.model.C.F.Nj){k.ao=!0;if(e.ka(k.label)||e.v(a))k.ao=!1;"off"!=e.model.C.F.bf&&"rows"!=e.model.C.F.bf||!k.Zf||(k.ao=!1);k.ao&&this.J.Xl&&this.J.Xl.toString()==b.toString()&&this.J.lr==a&&(this.J.Th==e.u.i.Ba.Nc?k.jp=!0:this.J.Th==e.u.i.Ba.hc&&
(k.ip=!0))}k.vx=this.J.Ck>b.length||k.sh||k.Kg||!e.model.C.F.UE&&(k.Zf||k.collapsed);k.vx&&"off"!=e.model.C.F.bf&&"rows"!=e.model.C.F.bf&&this.J.G5(g,!0);"after"!==e.model.C.F.IL||-1!==c||k.pN||(k.ao=!1,k.label="",k.Zf=!1,k.collapsed=!1,k.Kg=!1,k.sh=!1);k.jg=void 0!==t?b.slice(0,p+1):b;k.hierarchy=n;k.Vb=y;return k}Ysa(b,a,c){const d=this.J.yH(b);if(void 0===d){if(e.v(a))return null;b=new h.W.ne;b.Ng=!0;b.label=a.caption;b.measure=a;this.zba(b,a);return b}let g;void 0!==c&&(g=d.ua.fa(c));const k=
new h.W.ne;k.Ng=!0;k.vl=!0;k.tU=d.sM;k.eb=d.filter.Fh;k.label=void 0===g?d.label:d.label+"."+g.caption;k.jg=b;k.hierarchy=d;k.level=c;k.Vb=null;k.measure=a;k.draggable=!0;this.zba(k,a);return k}zba(b,a){if("on"===e.model.C.F.Nj||"columns"===e.model.C.F.Nj){b.ao=!0;const c=this.J.PT(a.A);!e.v(c)&&c.measure&&c.measure.A==a.A&&(c.sort==e.u.i.Ba.Nc?b.jp=!0:c.sort==e.u.i.Ba.hc&&(b.ip=!0),1<this.J.Bi.length&&(b.f6=this.J.Bi.indexOf(c)))}}yD(){var b=new h.W.ne;b.Ng=!0;return b}JM(){var b=this.yD();b.kb=
!0;return b}GH(b,a){var c=new h.W.ne;c.label=void 0===b?e.model.B.j.eY:b.fq;c.pN=void 0!==b;void 0!==b&&b.C2&&(c.label=b.label);if(a==e.u.i.ha.Oa){c.Ng=!0;c.vx=c.$D=!0;if("on"===e.model.C.F.Nj||"columns"===e.model.C.F.Nj)c.ao=!0,!this.J.Xl||""!==this.J.Xl.toString()||void 0!==b&&this.J.lr!==b||(this.J.Th===e.u.i.Ba.Nc?c.jp=!0:this.J.Th===e.u.i.Ba.hc&&(c.ip=!0));this.J.Lb.bb?c.measure=b:c.label=e.model.B.j.eY}else{c.xh=!0;c.jm=c.Ss=!0;if("on"===e.model.C.F.Nj||"rows"===e.model.C.F.Nj)c.ao=!0,!this.J.Mj||
""!==this.J.Mj.toString()||void 0!==b&&this.J.cp!==b||(this.J.gk===e.u.i.Ba.Nc?c.jp=!0:this.J.gk===e.u.i.Ba.hc&&(c.ip=!0));this.J.$b.bb?c.measure=b:c.label=e.model.B.j.eY;c.level=0}c.jg=[];return c}qCa(b,a,c,d){if(0==b.length)return this.GH(a,e.u.i.ha.Ia);var g=this.J.$b.bb&&b.length>this.J.ke?b.length:b.length-1,k=b[b.length-1],m=this.J.rows.fa(g),n=new h.W.ne;n.xh=!0;var p=!1;k=m.za(k);n.level=c;void 0!==a&&this.J.$b.bb&&this.J.nm&&g<=this.J.ke?(n.label=a.label,k=null):k&&(p=this.RC(k),n.uU=""!=
p,n.label=k.caption+p,p=b.length!=this.J.Uk&&!k.dc&&!k.fh);c=null==k?!1:this.J.Ih(b,k,a);!k||k.dc||!k.hierarchy.Ef||k.Hh||this.CK(k)||(e.model.C.F.UE?c?n.Kg=!0:n.sh=!0:c?n.Zf=!0:n.collapsed=!0);p&&!c&&(this.J.wh(b,a)?n.Zf=!0:n.collapsed=!0);if("on"==e.model.C.F.Nj||"rows"==e.model.C.F.Nj)if(!(this.J.$b.bb&&1<this.J.Da.length&&this.J.ke>=b.length)||a&&n.label==a.caption)n.ao=!0,this.J.Mj&&this.J.Mj.toString()==b.toString()&&this.J.cp==a&&(this.J.gk==e.u.i.Ba.Nc?n.jp=!0:this.J.gk==e.u.i.Ba.hc&&(n.ip=
!0));n.jm=this.J.Uk>b.length||n.Kg||n.sh||!e.model.C.F.UE&&(n.Zf||n.collapsed);n.jg=b;n.hierarchy=m;n.Vb=k;n.measure=this.J.$b.bb&&1<this.J.Da.length?a:void 0;n.CI=this.J.Ps(b,[]);n.jm&&this.J.KW(d);return n}Zsa(b,a,c,d,g,k){if(0===b.length){if(0===g)return this.GH(a,e.u.i.ha.Ia);var m=new h.W.ne;m.xh=!0;m.jm=m.Ss=!0;m.kb=!0;m.level=c;return m}var n=g;m=this.J.Fl[g];for(var p,t,r=0;r<this.J.wb.length;r++){var v=this.J.wb.fa(r);p=v.Ou(m);if(null!=p){var y=v;n=r;break}}r=null==b[n]?0:b[n];m=new h.W.ne;
m.xh=!0;m.jm=this.J.Uk>b.length;m.EU=m.jm&&2==k;p=!1;c>g&&(p=!0);c>g&&2==k&&(p=!0);c+1<g&&2==k&&(p=!0);m.level=Math.min(b.length-1,g);var A=b.slice(0);v=!1;if(g==this.J.Fl.length)m.label=a.label,v=!0;else{var C=!1;A=void 0===a?0:a.index;var B=y.za(r);t=this.J.Fl.indexOf(B.level.A)-g;var H=null!=B&&(B.fh||2!=k);if(0>t)if(B.dc)v=!0;else return m;else if(0<t)for(r=0;r<t;r++)B=B.parent;B&&(r=this.J.Fl.indexOf(B.level.A),-1<r&&(m.level=r));m.Vb=B;if(2==k)B&&c==g&&(m.label=this.J.$b.bb&&1<this.J.Da.length?
B.caption+" "+a.label:B.caption+" "+e.model.B.j.fY,v=!0);else{if(0>t)return e.ka(m.label)&&(m.kb=!0),r=this.Z1(b),-1<r&&(m.level=r),m;0<A&&(B=null);B&&0!=B.ordinal&&(r=this.RC(B),m.uU=""!=r,m.label=B.caption+r);C=1==k&&n<this.J.wb.length-1&&0>=A&&!B.fh}m.CI=this.J.Ps(b,[]);A=b.slice(0,n+1);if(H&&B){A[n]=B.ordinal;var M=this.J.Ih(A,B,a);B.dc||!B.hierarchy.Ef||B.Hh||2==k&&(!B.fh||M)||this.CK(B)||(e.model.C.F.UE?M?m.Kg=!0:(m.sh=!0,m.jm=!0):M?m.Zf=!0:(m.collapsed=!0,m.jm=!0))}C&&!M&&(this.J.wh(A,a)?m.Zf=
!0:m.collapsed=!0)}if(p)m.label="",m.ip=m.jp=m.collapsed=m.Zf=m.Kg=m.sh=!1;else if(m.jg=A,m.hierarchy=y,m.measure=this.J.$b.bb&&1<this.J.Da.length?a:void 0,"on"==e.model.C.F.Nj||"rows"==e.model.C.F.Nj)m.ao=!0,!this.J.Mj||this.J.Mj.toString()!=A.toString()||this.J.cp!=a||m.Zf||m.Kg||this.J.$b.bb&&1<this.J.Da.length&&(!(this.J.$b.bb&&1<this.J.Da.length)||null!=m.Vb&&!m.EU)||(this.J.gk==e.u.i.Ba.Nc?m.jp=!0:this.J.gk==e.u.i.Ba.hc&&(m.ip=!0));v&&(r=this.Z1(b),-1<r&&(m.level=r));e.ka(m.label)&&(m.kb=!0,
m.QDa=2==k&&B&&g-1>c?!1:!0);m.jm&&this.J.KW(d);return m}Z1(b){return(b=this.J.eU(b).za(b[b.length-1]))?this.J.Fl.indexOf(b.level.A):-1}RC(b){if(this.Db.Fa.ga.Aa!==e.u.i.ra.Cc&&this.Db.Fa.ga.Aa!==e.u.i.ra.Pd||!e.model.C.F.LI)return"";var a=this.Db.ja.qa.Ij[b.level.A];if(void 0===a||0===a.length)return"";for(var c=[],d=0;d<a.length;d++){var g=b.level.Ye.getItem(a[d]),k=b.nCa(a[d]);e.ka(k)||null==g||c.push('<br/><span class="fm-member-property-label">'+g.caption+':</span> <span class="fm-member-property-value">'+
k+"</span>")}return 0<c.length?c.join("")+"<br/>":""}mE(b){e.v(b.cell)||e.model.C.F.readOnly||!b.cell.Ng&&!b.cell.xh||(b.cell.tC==h.W.Lq.M7?this.vz(b.cell):b.cell.tC==h.W.Lq.WP&&b.cell.cEa||(e.v(b.cell.Vb)||b.cell.tC==h.W.Lq.lK?b.cell.tC==h.W.Lq.lK&&(b.cell.Ng&&this.yO(b.cell,null,!u.uj.Yo&&b.vq.ctrlKey||u.uj.Yo&&b.vq.metaKey),b.cell.xh&&this.d6(b.cell)):e.model.C.F.UE||b.cell.Vb.Hh||this.CK(b.cell.Vb)?this.Ku(b.cell):this.vz(b.cell)))}sq(b){e.model.C.F.Vx&&b.hierarchy.vN&&this.Ha(new l.KP(b.hierarchy))}vz(b){if(b.sh||
b.Kg||b.Zf||b.collapsed){var a=b.jg,c=e.model.C.F.Bk?void 0:b.measure,d=b.Vb;if(null!=d&&!d.dc&&!d.Hh){if(b.xh){b=e.u.i.ha.Ia;var g=this.J.Ih(a,d,c)}else b=e.u.i.ha.Oa,g=this.J.Fj(a,d,c);g?this.J.Xp(a,d,b,c):this.J.Ee(a,d,b,c)}}}Ku(b){if(!e.v(this.na)&&(b.Zf||b.collapsed)){var a=b.jg,c=b.Ng?e.u.i.ha.Oa:e.u.i.ha.Ia,d=e.model.C.F.Bk&&c==e.u.i.ha.Ia?void 0:b.measure;b.Zf?(this.na.clearData(),this.J.collapse(a,c,d)):b.collapsed&&(this.na.clearData(),this.J.expand(a,c,d));b.Ng?this.na.TG(b.kc+1):this.na.IC(b.lb+
1)}}j4(b){b.hga?this.ZLa(b.cell):(e.model.C.F.cd&&!e.model.C.F.sc&&this.Db.ja.ga&&this.Db.ja.ga.KU&&this.cd(b.cell),this.Cya(b.cell))}cd(b){b.li&&void 0!==b.measure&&(b=new l.R7({A:b.measure.A,$:b.measure.$},b.Jg,b.Ah,b.Sa()),this.Ha(b))}ZLa(b){var a=b.Sa();this.zW(a,b.kc,b.lb);e.model.Za.R().Ha(new e.model.jd(e.model.Za.j7,a))}Cya(b){var a=b.Sa();this.zW(a,b.kc,b.lb);e.model.Za.R().Ha(new e.model.jd(e.model.Za.dP,a))}zW(b,a,c){b.x=this.na.coords.hm(a,this.na.ac);b.y=this.na.coords.Vo(c,this.na.ac);
b.width=this.na.coords.Dh(a);b.height=this.na.coords.$d(c)}d6(b,a=""){var c=b.jg;b=b.measure;void 0===b&&(b=this.J.Da[0]);this.J.Mj&&this.J.Mj.toString()==c.toString()&&this.J.cp==b?this.J.gk=this.J.gk==e.u.i.Ba.Nc?e.u.i.Ba.hc:e.u.i.Ba.Nc:(this.J.gk=e.u.i.Ba.Nc,this.J.Mj=c,this.J.cp=b);""!=a&&(this.J.gk=a);this.J.sort();this.na.TG(0);this.nb()}yO(b,a="",c=!1){if(e.model.C.F.sc){let d=this.J.PT(b.measure.A);a=this.J.Bi.slice(0);e.v(d)?(b={measure:b.measure,sort:e.u.i.Ba.cU("",b.measure.type!=e.u.i.Ra.wc,
!0)},!e.v(a)&&c?a.push(b):a=[b]):(d.sort=e.u.i.Ba.cU(d.sort,b.measure.type!=e.u.i.Ra.wc,!0),d.sort==e.u.i.Ba.ed?a.splice(this.J.Bi.indexOf(d),1):c||(a=[d]));this.J.Bi=a}else this.J.Xl=b.jg,this.J.lr=e.v(b.measure)?this.J.Da[0]:b.measure,this.J.Th=e.ka(a)?e.u.i.Ba.cU(this.J.Th):a;this.J.sort();this.na.IC(0);this.nb()}awa(){this.J.Th=e.u.i.Ba.ed;this.J.Xl=null;this.J.lr=void 0;this.J.Lb.KC();this.J.sort();this.na.IC(0);this.nb()}gwa(){this.J.gk=e.u.i.Ba.ed;this.J.Mj=null;this.J.cp=void 0;this.J.$b.KC();
this.J.sort();this.na.TG(0);this.nb()}zja(b,a){var c=this.Db.ja.qa.Ij;c||(c={});c[b.levelName]||(c[b.levelName]=[]);var d=c[b.levelName].indexOf(b.propertyName);a?-1==d&&(c[b.levelName].push(b.propertyName),this.Db.ja.qa.Ij=c):-1<d&&c[b.levelName].splice(d,1);this.na.clearData();this.na.IC(0);this.nb()}saveData(b,a,c){b=this.getData(b,a);b.label!=c&&b.value!=c&&(this.J.save(b.Ah,b.Jg,b.hierarchy,c),this.dj&&this.nb())}cba(b,a,c){for(var d=c==e.u.i.ha.Oa?this.J.Fb:this.J.wb,g,k=0,m=0;m<d.length;m++){var n=
d.fa(m);n.We||(g=new h.W.ne,g.label=n.label,g.vl=!0,g.draggable=!0,g.tU=!0,g.eb=n.filter.Fh,g.level=k,g.hierarchy=n,c==e.u.i.ha.Oa?(g.isFrozen=!this.dj,this.na.J.AW(b,a+m,g)):(g.xh=!0,this.na.J.AW(b+k,a,g),k++))}}wsa(b){for(var a=this.J.wb,c,d=0,g=this.J.$b.bb&&1<this.J.Da.length?this.Bg-1:this.Bg,k=0;k<a.length;k++){var m=a.fa(k);c=new h.W.ne;c.label=m.label;c.vl=!0;c.draggable=!0;c.tU=!0;c.eb=m.filter.Fh;c.hierarchy=m;this.na.J.AW(b,0+d,c);d++;if(2<m.ua.length)for(var n=null==m.ic?2:m.ic.yb+1;n<
m.ua.length;n++){var p=m.ua.fa(n);-1!=this.J.Fl.indexOf(p.A)&&(c=new h.W.ne,c.label=p.caption,c.xh=!0,c.tU=!0,this.na.J.AW(b,0+d,c),d++);if(d>=g)break}if(d>=g)break}}get dj(){return e.model.C.F.sc}get na(){return this.Ae}Gk(b,a,c=null,d=null){b==e.model.Dc.qj.nB&&e.model.Dc.c8.Ze(this,a,d);b==e.model.Dc.qj.Ov&&e.model.Dc.b8.Ze(this,a,this.na.coords.$l,this.na.coords.Tp,d);b==e.model.Dc.qj.ci&&e.model.Dc.a8.Ze(this,a,this.na.coords.$l,this.na.coords.Tp,c);b==e.model.Dc.qj.JSON&&e.model.Dc.d8.Ze(this,
a,this.na.coords.$l,this.na.coords.Tp,c);b==e.model.Dc.qj.vB&&e.model.Dc.df.Ze(this,a,this.na.coords.$l,this.na.coords.Tp,d);b==e.model.Dc.qj.wF&&(a.KA=a.KA&&(this.Db.Fa.ga.Aa==e.u.i.ra.Cc||this.Db.Fa.ga.Aa==e.u.i.ra.Pd)&&e.model.C.F.co,e.model.Dc.f8.Ze(this,a,this.na.coords.$l,this.na.coords.Tp))}print(b=""){e.model.kt.OF.R().Ze(this,b)}ag(b,a){b=this.YT(b,a);a=b.Sa();this.zW(a,b.kc,b.lb);return a}YT(b,a){let c=null;this.na&&(c=this.na.ag(b,a,!0));if(null==c){c=new h.W.ne;c.lb=b;c.kc=a;const d=this.getData(b,
a,!0);c.value=d?d.value:NaN;isNaN(c.value)||(c.label=u.bc.format(c.value))}-1==c.lb&&(c.lb=b);-1==c.kc&&(c.kc=a);return c}OH(){if(e.v(this.na))return null;var b=this.na.Lr.map(a=>a.Sa());if(0==b.length)return null;if(1<b.length)return b;b=b[0];this.zW(b,b.columnIndex,b.rowIndex);return b}AA(b,a){e.v(this.na)||this.na.select(b,a,b,a)}FE(){e.v(this.na)||this.na.Ks()}get fN(){return this.J.$i?this.J.Rn+this.vf:0}get eN(){return this.J.$i?this.J.Sn+this.Bg:0}M4(b){this.yaa(b.data.kc,b.data.width)}N4(b){this.zaa(b.data.lb,
b.data.height)}yaa(b,a){if(b<this.Bg)0<a?e.model.size.wd.Ig[b]=a:delete e.model.size.wd.Ig[b];else{var c=this.J.ak(b-this.Bg,!0);null!=c&&(b=this.J.OT(b-this.Bg),this.J.Lb.bb&&c.push(b),e.model.size.wd.Af[c.join(",")]=a)}}Uva(){this.na.V_()}DL(){this.na.DL()}FKa(){const b=e.model.size.wd.Dk;e.model.size.wd.Dk={};const a=[];for(let c in b)!isNaN(b[c])&&b.hasOwnProperty(c)&&(a[parseInt(c)]=b[c]);for(let c in a)a.hasOwnProperty(c)&&(this.na.v5(parseInt(c),a[c]),this.yaa(parseInt(c),a[c]))}GKa(){var b=
e.model.size.wd.Ig;const a=[];for(let c in b)!isNaN(b[c])&&b.hasOwnProperty(c)&&(a[c]=b[c]);for(let c in a)b=parseInt(c),b<this.Bg&&a.hasOwnProperty(c)&&this.na.v5(b,a[b])}EKa(){const b=e.model.size.wd.Af,a=[];for(let d in b)if(!isNaN(b[d])&&b.hasOwnProperty(d)){var c=this.J.Hz(""==d?[]:d.split(","));-1!=c&&(c+=this.Bg,a[c]=b[d])}for(let d in a)a.hasOwnProperty(d)&&this.na.v5(parseInt(d),a[d])}JKa(){const b=e.model.size.wd.Lj;e.model.size.wd.Lj={};const a=[];for(let c in b)!isNaN(b[c])&&b.hasOwnProperty(c)&&
(a[parseInt(c)]=b[c]);for(let c in a)a.hasOwnProperty(c)&&(this.na.x5(parseInt(c),a[c]),this.zaa(parseInt(c),a[c]))}HKa(){e.model.size.wd.YE=this.Ui;const b=e.model.size.wd.wg,a=[];for(let c in b)!isNaN(b[c])&&b.hasOwnProperty(c)&&(a[parseInt(c)+this.Ui]=b[c]);for(let c in a)parseInt(c)<this.vf&&a.hasOwnProperty(c)&&this.na.x5(parseInt(c),a[c])}IKa(){const b=e.model.size.wd.If,a=[];for(let c in b)if(!isNaN(b[c])&&b.hasOwnProperty(c)){let d=this.J.Lz(""==c?[]:c.split(","));-1!=d&&(d+=this.vf,a[d]=
b[c])}for(let c in a)a.hasOwnProperty(c)&&this.na.x5(parseInt(c),a[c])}zaa(b,a){e.model.size.wd.YE=this.Ui;if(b<this.Ui)0<a?e.model.size.wd.zh[b]=a:delete e.model.size.wd.zh[b];else if(b<this.vf)0<a?e.model.size.wd.wg[b-this.Ui]=a:delete e.model.size.wd.wg[b-this.Ui];else{var c=this.J.Vn(b-this.vf,!0);null!=c&&(b=this.J.hU(b-this.vf),this.J.$b.bb&&c.push(b),e.model.size.wd.If[c.join(",")]=a)}}mHa(){this.na&&(this.na.Kr(0),this.na.ot(0),this.na.Ks())}}h.joa=f})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||
(q={}));
(function(e){(function(l){(function(h){class f{}f.po="mclick";f.aK="singledoubleclick";f.O7="dthclosed";f.Kv="filter_click";f.TJ="live_filter_change";f.RF="resize_c";f.SF="resize_r";f.Kqa="request_data_doubleclick";f.L7="dragndrop_remove";f.K7="dragndrop_move";f.Gt="filter_keyboard_select";f.OJ="grid_keyboard_select";h.uc=f;class b extends w.ia{constructor(k,m=null,n=null){super(f.po);this.cell=k;this.element=m;this.vq=n}}h.J8=b;class a extends w.ia{constructor(k,m,n=null){super(f.aK);this.cell=k;
this.hga=m;this.element=n}}h.L8=a;class c extends w.ia{constructor(k,m,n=null){super(f.Kv);this.hierarchy=k;this.cell=m;this.element=n}}h.IP=c;class d extends w.ia{constructor(k,m,n=null){super(f.Gt);this.lb=k;this.kc=m;this.t5=n}}h.JP=d;class g extends w.ia{constructor(k,m){super(f.TJ);this.bh=k;this.value=m}}h.Koa=g})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{static validate(b){return b==f.YA||b==f.Fv||b==f.rj?b:f.YA}}f.YA="compact";f.Fv="classic";f.rj="flat";h.wf=f})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){class h extends x.ce.Fy{constructor(){if(null!=h.Be)throw Error("Singleton");super(l.Sb.Jb.G);this.aa("fm-alert-view");this.Wk("alertdialog");this.Ke()}static R(){null==h.Be&&(h.Be=new h);return h.Be}static dispose(){h.Be=null}Ke(){this.tE.aa("fm-overlay-alert");this.zK=[];var f=new x.Pa("div","fm-content");this.X(f);this.ys=new x.Tc;this.ys.aa("fm-popup-title");f.X(this.ys);this.xs=new x.Tc;f.X(this.xs);this.hu=new x.Pa("div","fm-ui-btns-row");f.X(this.hu);this.YB=new x.Pa("div",
"fm-alert-icon");this.YB.Eo();this.X(this.YB);e.Ik.addEventListener("keydown",b=>this.tq(b))}ap(f="",b="",a=e.ob.nk,c=null,d=null,g=!1){this.clear();this.mja(b);this.II(f);this.GLa(a);this.sLa(c,d);l.Sb.Jb.X(this);this.g3=g;this.open();this.Rza();this.Pp()}Rza(){let f=this.hu.G.find(".fm-ui-btn-dark");null==f&&(f=this.hu.G.find(".fm-ui-btn"));f&&f.focus({preventScroll:!0})}clear(){this.mja("");for(this.II("");0<this.zK.length;)this.zK.pop().Qg();this.G.ab("fm-alert",!1);this.G.ab("fm-confirmation",
!1);this.G.ab("fm-error",!1);this.G.ab("fm-info",!1);this.G.ab("fm-question",!1)}mja(f){this.ys.LW(!1);this.ys.fb(f)}II(f){this.xs.fb(f,!0)}sLa(f,b){null==f&&(f=[e.model.B.j.uX]);f.reverse();null!=b&&b.reverse();this.BZ=b;for(var a=0;a<f.length;a++)b=new x.Vg,b.fb(f[a]),b.N(x.Qd.uf,c=>this.qva(c)),this.zK.push(b),this.isPrimary(f[a])&&b.aa("fm-ui-btn-dark"),this.isPrimary(f[a])&&(u.uj.Yo||u.uj.aE)?this.hu.X(b):this.isPrimary(f[a])?this.hu.G.prepend(b.G):this.hu.X(b)}isPrimary(f){switch(f){case e.model.B.j.uX:case e.model.B.j.b7:case e.model.B.j.Z6:case e.model.B.j.lF:return!0}return!1}qva(f){f=
f.target;for(var b=-1,a=0;a<this.zK.length;a++)if(this.zK[a]==f){b=a;break}if(!(0>b)&&(this.close(),null!=this.BZ&&null!=this.BZ[b]))this.BZ[b]()}GLa(f){this.YB.G.Kx();f==e.ob.nk?this.YB.G.X(this.Kxa()):f==e.ob.mn?this.YB.G.X(this.Lxa()):f==e.ob.xa?this.YB.G.X(this.Mxa()):f==e.ob.OP&&this.YB.G.X(this.Nxa())}Lxa(){var f=new x.Ga("span","fm-circle");f.X(new x.Ga("span","fm-ui-icon fm-icon-notif_confirm"));return f}Nxa(){var f=new x.Ga("span","fm-circle");f.X(new x.Ga("span","fm-ui-icon fm-icon-notif_info"));
return f}Kxa(){var f=new x.Ga("span","fm-triangle-wrap");f.X(new x.Ga("span","fm-triangle"));f.X(new x.Ga("span","fm-ui-icon fm-icon-notif_warning"));return f}Mxa(){var f=new x.Ga("span","fm-hexagon");f.X(new x.Ga("span","fm-ui-icon fm-icon-notif_arrow"));return f}close(){super.close();this.clear()}F4(){this.g3||super.F4()}tq(f){27===f.keyCode&&(super.close(),this.clear())}}l.aP=h})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){class h extends x.ce.Fy{constructor(){if(null!=h.Be)throw Error("Singleton");super(l.Sb.Jb.G);this.aa("fm-prompt-view");this.Ke()}static R(){null==h.Be&&(h.Be=new h);return h.Be}static dispose(){h.Be=null}Ke(){this.tE.aa("fm-overlay-alert");var f=new x.Pa("div","fm-content");this.X(f);this.xs=new x.Tc;this.xs.aa("fm-message-label");f.X(this.xs);this.ZK=new x.Sj;this.ZK.aa("fm-prompt-input");f.X(this.ZK);this.hu=new x.Pa("div","fm-ui-btns-row");f.X(this.hu);f=new x.Vg("fm-ui-btn-dark");
f.fb(e.model.B.j.uX);f.N(x.Qd.uf,()=>this.pE());this.hu.X(f);f=new x.Vg;f.fb(e.model.B.j.xm);f.N(x.Qd.uf,()=>this.at());this.hu.X(f,u.uj.Yo||u.uj.aE)}ap(f="",b=null){this.C=b;this.xs.fb(f);this.ZK.ik(b&&b.defaultValue?b.defaultValue:"");l.Sb.Jb.X(this);this.open();this.Pp();this.ZK.G.element.focus()}pE(){this.C&&this.C.Aha&&this.C.Aha(this.ZK.bj());this.close()}at(){this.C&&this.C.AV&&this.C.AV();this.close()}}l.Gqa=h})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{get lT(){return this.uU?this.label:e.P.Ro(this.label,!0,!0)}get Mk(){return this.jm||this.vx}get Vz(){return this.Ss||this.$D}constructor(){this.value=NaN;this.label="";this.level=NaN;this.jp=this.ip=this.ao=this.Kg=this.sh=this.draggable=this.collapsed=this.Zf=this.eb=this.uU=this.tU=this.XLa=this.cEa=this.li=this.EU=this.$D=this.Ss=this.vx=this.jm=this.pN=this.Ng=this.xh=this.isFrozen=this.vl=this.av=this.numeric=!1;this.kc=this.lb=this.f6=
-1;this.CI=null;this.ul=this.QDa=this.kb=!1;this.Xc=[];this.Wz=this.Xz=!1;this.tC=f.Lq.W6}xBa(){return this.Kg||this.sh?this.hierarchy.ua.fa(this.Vb.level.yb+1).caption:""}I(a=!1,c=!0){if(null!=b.Lw&&c){var d=new Qa;d.clear();d.tag="div";d.text+=this.lT;b.Lw(d.node,this.Sa());c=d.text;c=e.model.Tb.valid(c)?c:e.model.Tb.validate(c);this.av=c!=this.label?!0:this.av;d.clear();d=document.createElement("div");d.innerHTML=e.vt(c);c=d.textContent&&"number"!=typeof c?d.textContent.trim():c;a&&!this.uU&&(c=
e.P.Ro(c,!0,!0));return c}return a?this.lT:this.label}nz(a){this.av=!0;null==this.style&&(this.style=new f.z7);this.style.Kta(a)}Fca(a){this.av=!0;null==this.style&&(this.style=new f.z7);this.style.rw(a);this.style.Pta(a)}Sa(){if(this.gha)return this.gha;var a=e.model.Wa.R().ja.qa,c=[];e.model.C.F.sc||e.v(a)||(c=a.q0(this.Ng&&this.jg?this.jg:this.Jg));var d=[];e.model.C.F.sc||e.v(a)||(d=a.r0(this.xh&&this.jg?this.jg:this.Ah));a=this.value;e.v(this.measure)||(this.measure.type!=e.u.i.Ra.wc?this.measure.Eh(this.measure.A,
this.measure.$).clone():this.measure.Eh(this.measure.A,this.measure.$,!0).clone()).ou&&this.measure.type==e.u.i.Ra.jb&&(a=u.bc.ou(this.value));c={columnIndex:this.kc,columns:c,label:this.label,escapedLabel:this.lT,measure:this.measure?this.measure.lj():null,hierarchy:this.hierarchy?this.hierarchy.lj():null,member:this.Vb?this.Vb.Sa():null,rowIndex:this.lb,rows:d,type:this.Ng||this.xh||this.vl?"header":"value",value:a,expanded:this.Zf,collapsed:this.collapsed,drilledUp:this.sh,drilledDown:this.Kg,
recordId:this.CI,isTotal:this.Mk,isTotalRow:this.jm,isTotalColumn:this.vx,isClassicTotalRow:this.EU,isGrandTotal:this.Vz,isGrandTotalRow:this.Ss,isGrandTotalColumn:this.$D,isDrillThrough:this.ul};isNaN(this.level)||(c.level=this.level);0<this.Xc.length&&(c.conditions=this.Xc);return this.gha=c}}b.Lw=null;f.ne=b})(h.W||(h.W={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){this.$W=[];this.XC=[];this.V={}}rw(a){-1==this.$W.indexOf(a)&&this.$W.push(a)}Pta(a){-1==this.XC.indexOf(a)&&this.XC.push(a)}Kta(a){for(var c in a)this.V[c]=a[c]}ST(){return this.XC.join(" ")}jU(){var a="",c;for(c in this.V)a+=c+":"+this.V[c]+";";return a}}f.z7=b})(h.W||(h.W={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){}static GBa(c){return 500<c?b.hla:b.$pa}}b.$pa="";b.hla="Bold";f.foa=b;class a{merge(c){this.color=this.color||c.color;this.backgroundColor=this.backgroundColor||c.backgroundColor;this.backgroundImage=this.backgroundImage||c.backgroundImage;this.borderColor=this.borderColor||c.borderColor;this.fontSize=this.fontSize||c.fontSize;this.fontWeight=this.fontWeight||c.fontWeight;this.textAlign=this.textAlign||c.textAlign;this.fontFamily=
this.fontFamily||c.fontFamily;this.width=this.width||c.width;this.maxWidth=this.maxWidth||c.maxWidth;this.minWidth=this.minWidth||c.minWidth;this.height=this.height||c.height;this.maxHeight=this.maxHeight||c.maxHeight;this.minHeight=this.minHeight||c.minHeight}clone(){var c=new a;c.color=this.color;c.backgroundColor=this.backgroundColor;c.backgroundImage=this.backgroundImage;c.borderColor=this.borderColor;c.fontSize=this.fontSize;c.fontWeight=this.fontWeight;c.textAlign=this.textAlign;c.fontFamily=
this.fontFamily;c.width=this.width;c.maxWidth=this.maxWidth;c.minWidth=this.minWidth;c.height=this.height;c.maxHeight=this.maxHeight;c.minHeight=this.minHeight;return c}static nAa(c,d=null){var g=new a;if(null==d||null!=d&&d.V("color")!=c.V("color"))g.color=c.V("color");if(null==d||null!=d&&d.V("background-color")!=c.V("background-color"))g.backgroundColor=c.V("background-color");if(null==d||null!=d&&d.V("background-image")!=c.V("background-image"))g.backgroundImage=c.V("background-image");if(null==
d||null!=d&&d.V("border-color")!=c.V("border-color"))g.borderColor=c.V("border-color");if(null==d||null!=d&&d.V("font-size")!=c.V("font-size"))g.fontSize=parseInt(c.V("font-size"));if(null==d||null!=d&&d.V("font-weight")!=c.V("font-weight"))g.fontWeight=c.V("font-weight");if(null==d||null!=d&&d.V("fill")!=c.V("fill"))g.fill=c.V("fill");if(null==d||null!=d&&d.V("text-align")!=c.V("text-align"))g.textAlign=c.V("text-align");if(null==d||null!=d&&d.V("font-family")!=c.V("font-family"))g.fontFamily=c.V("font-family");
if(null==d||null!=d&&d.V("width")!=c.V("width"))g.width=parseInt(c.V("width"));if(null==d||null!=d&&d.V("max-width")!=c.V("max-width"))g.maxWidth=parseInt(c.V("max-width"));if(null==d||null!=d&&d.V("min-width")!=c.V("min-width"))g.minWidth=parseInt(c.V("min-width"));if(null==d||null!=d&&d.V("height")!=c.V("height"))g.height=parseInt(c.V("height"));if(null==d||null!=d&&d.V("max-height")!=c.V("max-height"))g.maxHeight=parseInt(c.V("max-height"));if(null==d||null!=d&&d.V("min-height")!=c.V("min-height"))g.minHeight=
parseInt(c.V("min-height"));return g}static sl(c,d=null,g=!0){var k=new x.Ga("div");k.aa(c).$a();c=new x.Ga("div");null==d?l.Sb.Jb.G.append(k).append(c):d.append(k).append(c);d=a.nAa(k,g?c:null);k.remove();c.remove();return d}static FT(c){var d=new a,g;for(c=c.replace(/ /g,";");-1<(g=c.indexOf(";"));)this.oya(c.substring(0,g),d),c=c.substring(g+1);return d}static yU(c){c=c.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(d,g,k,m){return g+g+k+k+m+m});c=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(c);
return null==c?"":"rgb("+parseInt(c[1],16)+","+parseInt(c[2],16)+","+parseInt(c[3],16)+")"}static oya(c,d){-1<c.indexOf("background-color")?d.backgroundColor=this.yU(c.substring(17,c.length)):-1<c.indexOf("background-image")?d.backgroundImage=c.substring(17,c.length):-1<c.indexOf("border-color")?d.borderColor=this.yU(c.substring(13,c.length)):-1<c.indexOf("color")?d.color=this.yU(c.substring(6,c.length)):-1<c.indexOf("font-size")?d.fontSize=parseInt(c.substring(10,c.length)):-1<c.indexOf("fill")?
d.fill=this.yU(c.substring(5,c.length)):-1<c.indexOf("text-align")?d.textAlign=c.substring(11,c.length):-1<c.indexOf("max-width")?d.maxWidth=parseInt(c.substring(10,c.length)):-1<c.indexOf("max-height")?d.maxHeight=parseInt(c.substring(11,c.length)):-1<c.indexOf("width")&&(d.width=parseInt(c.substring(6,c.length)))}static Ez(c,d=null,g=null){var k="";null==d&&(d=a.sma);for(var m=0;m<d.length;m++)if(null==g||null!=g&&c.V(d[m])!=g.V(d[m]))k+=d[m]+":"+c.V(d[m])+";";return k}static tl(c,d=null,g=null){var k=
new x.Ga("div");k.aa(c).$a();if(void 0===m){var m=new x.Ga("div");m.$a()}null==d?l.Sb.Jb.G.append(k).append(m):d.append(k).append(m);c=a.Ez(k,g,m);k.remove();null!=m&&m.remove();return c}static b5(c){var d=[],g=c.split("rgb");2<g.length&&(c=g[2]);c=c.replace(/[^\d,]/g,"");c=c.split(",");for(g=0;g<c.length;g++)d[g]=parseInt(c[g]);void 0==d[3]&&(d[3]=1);return d}}a.sma="background-color background-image color font-family font-size font-weight text-align padding-top padding-left padding-right padding-bottom border border-top-width border-top-color border-top-style border-bottom-width border-bottom-color border-bottom-style border-left-width border-left-color border-left-style border-right-width border-right-color border-right-style".split(" ");
f.ad=a})(h.W||(h.W={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));var Ra=q||(q={}),Sa=Ra.K||(Ra.K={}),Ta=Sa.Y||(Sa.Y={}),Ua=Ta.W||(Ta.W={});class T{}T.TY="fm-pivot-title";T.Ne="fm-cell";T.CX="fm-empty";T.BQ="fm-sheet-header";T.qk="fm-header";T.mB="fm-header-c";T.Nv="fm-header-r";T.ipa="fm-measure-header";T.Kq="fm-filter-header";T.SJ="fm-live-filtering-header";T.KJ="fm-filter-icon";T.YX="fm-filtered";T.EJ="fm-filtered-icon";T.Xv="fm-total";T.Mra="fm-total-r";T.Lra="fm-total-c";T.NJ="fm-grand-total";
T.hoa="fm-grand-total-r";T.goa="fm-grand-total-c";T.hY="fm-hierarchy-link";T.WP="fm-link";T.asa="fm-v-sort";T.dsa="fm-v-sort-icon";T.bsa="fm-v-sort-asc";T.csa="fm-v-sort-desc";T.koa="fm-h-sort";T.noa="fm-h-sort-icon";T.loa="fm-h-sort-asc";T.moa="fm-h-sort-desc";T.BB="fm-sort-icon";T.c$="fm-with-order";T.SX="fm-expanded";T.Y7="fm-expanded-icon";T.DX="fm-collapsed";T.n7="fm-collapsed-icon";T.Sf="fm-level-";T.Dma="fm-drilled-up";T.Cma="fm-drilled-down";T.iY="fm-icon";T.Q8="fm-kpi";T.roa="fm-kpi-status-bad-icon";
T.voa="fm-kpi-status-risk-icon";T.toa="fm-kpi-status-ok-icon";T.uoa="fm-kpi-status-rising-icon";T.soa="fm-kpi-status-good-icon";T.woa="fm-kpi-trend-bad-icon";T.Aoa="fm-kpi-trend-risk-icon";T.yoa="fm-kpi-trend-ok-icon";T.zoa="fm-kpi-trend-rising-icon";T.xoa="fm-kpi-trend-good-icon";Ua.ya=T;var Va=q||(q={}),Wa=Va.K||(Va.K={}),Xa=Wa.Y||(Wa.Y={}),Ya=Xa.W||(Xa.W={});class Za{}Za.Coa="left icon";Za.lK="right icon";Za.fl="label";Za.M7="drill";Za.WP="link";Za.W6="backgroud";Ya.Lq=Za;
(function(e){(function(l){(function(h){class f extends l.Y.mP{constructor(b){super(b.G);this.kd=b}B4(b,a){this.show(b.target,{left:a.clientX,top:a.clientY},b)}O4(b){this.show(b.target,{left:b.clientX,top:b.clientY},b)}TBa(b){b=this.kd.UT(b);var a=this.Db.ja.qa.gd();if(b&&!isNaN(b.iE))return a[b.iE];if(b&&b.measure)for(var c=0;c<a.length;c++)if(a[c].A==b.measure.A&&a[c].$==b.measure.$&&a[c].index==b.measure.index)return a[c];return null}show(b,a,c){if(!e.model.C.F.readOnly){var d=[];this.kd.Gfa(c.target)&&
d.push({id:"drillthrough",label:e.model.B.j.s7,handler:()=>{this.kd.cd(c.target)}});this.kd.SDa(c.target)&&d.push({id:"open_filter",label:e.model.B.j.u7,handler:()=>{this.kd.uI(c.target)}});var g=this.TBa(b);g&&!g.Qa&&!g.gh&&e.model.C.F.Jl&&(g=this.Fz(g),0<g.length&&d.push({id:"aggregation",label:e.model.B.j.q7,submenu:g}));d=this.YS(d,this.kd.UT(b,!0),"charts");0<d.length&&c.preventDefault();this.eT(d,a)}}iha(b,a){var c=this.Db.ja.qa.clone();b=c.gd()[b.index];b.$=a;e.model.C.F.Fo.$=b.$;this.Db.ge(c)}}
h.mma=f})(l.Dd||(l.Dd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{get we(){return this.cX+this.s1}constructor(){this.Vt=this.Wt=-1;this.VG=this.s1=this.cX=this.NI=this.scrollLeft=this.scrollTop=this.Bf=this.Lg=this.he=this.Zd=this.Tp=this.$l=this.d_=this.TR=0;this.nC=15E5;this.pC=this.oC=1;this.wi=[];this.ks=[];this.ts=[];this.Yq=[];this.us=[];this.OB=[];this.mC=[];this.nC=this.yCa();this.TR=b.LY;this.d_=b.KY;this.NE();this.jja()}jja(){if(void 0===this.b_||void 0===this.a_){var c=this.zCa();c&&(this.b_=
c.width,this.a_=c.height)}}zCa(){return u.Nd().im?this.Nba():u.Nd().W2?{width:15,height:15}:u.uj.Yo||u.Nd().DU||u.Nd().bga||u.Nd().OU?this.Nba():{width:17,height:17}}Nba(){if(null==l.Sb.Jb.G.element.offsetParent)return null;var c=document.createElement("div");c.style.width="100%";c.style.height="100px";var d=document.createElement("div");u.uj.Yo&&d.classList.add("fm-scrollbars");d.style.position="absolute";d.style.top="0px";d.style.left="0px";d.style.visibility="hidden";d.style.width="50px";d.style.height=
"50px";d.style.overflow="hidden";d.appendChild(c);l.Sb.Jb.G.element.appendChild(d);let g=c.offsetWidth;d.style.overflow="scroll";let k=c.offsetWidth;g==k&&(k=d.clientWidth);c.style.width="100px";c.style.height="100%";d.style.overflow="hidden";var m=c.offsetHeight;d.style.overflow="scroll";c=c.offsetHeight;m==c&&(c=d.clientHeight);l.Sb.Jb.G.element.removeChild(d);d=g-k;m-=c;u.Nd().OU&&(m=d);return{width:d,height:m}}yCa(){return u.bT().DU||u.bT().OU?1E7:15E5}TG(c){this.ks.length-1>=c&&(this.ks.length=
c);this.Yq.length-1>=c&&(this.Yq.length=c);this.OB.length-1>=c&&(this.OB.length=c);for(let d in this.wi)this.wi.hasOwnProperty(d)&&!e.v(this.wi[d])&&this.wi[d].length-1>=c&&(this.wi[d].length=c);this.Wt=-1}IC(c){this.ts.length-1>=c&&(this.ts.length=c);this.us.length-1>=c&&(this.us.length=c);this.mC.length-1>=c&&(this.mC.length=c);this.wi.length-1>=c&&(this.wi.length=c);this.Vt=-1}reset(){this.ks.length=0;this.ts.length=0;this.Yq.length=0;this.us.length=0;this.OB.length=0;this.mC.length=0;this.Vt=
this.Wt=-1;this.s1=this.cX=this.scrollLeft=this.scrollTop=this.Bf=this.Lg=this.he=this.Zd=this.Tp=this.$l=0;this.TR=b.LY;this.d_=b.KY;this.pC=this.oC=1;this.NI=this.wi.length=0;this.NE()}NE(){var c=l.Y.W.ad.sl(u.Nd().im?"fm-grid-column-mobile":"fm-grid-column");isNaN(c.minWidth)||(b.rF=c.minWidth);isNaN(c.width)||(b.Dt=Math.max(b.rF,c.width));isNaN(c.maxWidth)||(b.Jq=0>=c.maxWidth?0:Math.max(b.rF,c.maxWidth));var d=l.Y.W.ad.sl(u.Nd().im?"fm-grid-row-mobile":"fm-grid-row");isNaN(d.minHeight)||(b.qF=
d.minHeight);isNaN(d.height)||(b.Ev=Math.max(b.qF,d.height));isNaN(d.maxHeight)||(b.Wr=0>=c.maxHeight?0:Math.max(b.qF,d.maxHeight));c=l.Y.W.ad.sl(u.Nd().im?"fm-grid-header-mobile":"fm-grid-header");isNaN(c.width)||(b.LY=c.width);isNaN(c.height)||(b.KY=c.height)}setScale(){var c=this.qu(this.he,this.he+this.Tp);this.pC=c>this.nC?this.nC/c:1;c=this.ru(this.Zd,this.Zd+this.$l);this.oC=c>this.nC?this.nC/c:1}resize(c,d){this.eC=c;this.dC=d}get IE(){return this.ND?this.b_:0}get HE(){return this.LD?this.a_:
0}get lq(){return this.eC}get Us(){return this.dC}get Xy(){return this.dC-this.HE-this.we}get nu(){return this.eC-this.IE}get Fd(){return this.eC-this.zq}get Ed(){return this.dC-this.jr-this.we}get Ji(){return this.Zd+this.$l}get dk(){return this.he+this.Tp}$d(c){var d=isNaN(this.ts[c])?b.Ev:this.ts[c];return 0<b.Wr&&!this.dE(c)?Math.min(b.Wr,d):d}Rx(c,d,g=!1,k=!1){0!=d&&(d=Math.max(d,b.qF));if(g){if(isNaN(this.us[c])||d>this.us[c])this.us[c]=d}else this.ts[c]=d,this.Vt=-1;k&&(this.mC[c]=!0)}DKa(c){if(this.dE(c)){delete this.ts[c];
delete this.us[c];delete this.mC[c];this.Vt=-1;for(let d in this.wi)this.wi.hasOwnProperty(d)&&delete this.wi[d]}}DL(){this.ts.length=0;this.us.length=0;this.mC.length=0;this.Vt=-1;this.wi.length=0}V_(){this.ks.length=0;this.Yq.length=0;this.OB.length=0;this.Wt=-1;this.wi.length=0}Dh(c){if(-1==c)return this.Rs();if(c>=this.Ji)return Math.max(100,b.Dt);var d=isNaN(this.ks[c])?b.Dt:this.ks[c];return 0<b.Jq&&!this.YD(c)?Math.min(b.Jq,d):d}uM(c,d,g){return 0>=g?Math.max(d,c):Math.min(g,Math.max(d,c))}nO(c,
d,g=!1,k=!1){0!=d&&(d=this.uM(d,b.rF,b.Jq));if(g){if(isNaN(this.Yq[c])||d>this.Yq[c])this.Yq[c]=d}else-1==c?this.TR=d:this.ks[c]=d,this.Wt=-1;k&&(this.OB[c]=!0)}BKa(c){if(this.YD(c)){delete this.ks[c];delete this.Yq[c];delete this.OB[c];this.Wt=-1;for(let d in this.wi)this.wi.hasOwnProperty(d)&&(e.v(this.wi[d])||delete this.wi[d][c])}}YD(c){return!0===this.OB[c]}dE(c){return!0===this.mC[c]}kS(){const c=new a;for(var d in this.us){var g=parseInt(d);if(!isNaN(g)&&!this.dE(g)){var k=this.us[g];!isNaN(k)&&
k>this.$d(g)&&(this.Rx(g,k),c.rows.push(g))}}this.us.length=0;for(var m in this.Yq)d=parseInt(m),isNaN(d)||this.YD(d)||(g=this.Yq[d],!isNaN(g)&&g>this.Dh(d)&&(this.nO(d,g),c.Ka.push(d)));this.Yq.length=0;return c}WM(c,d=!1){var g=c/this.Du*(this.Us/this.pC-this.Us)*this.pC;if(1!=this.pC&&c+g>=this.Du-this.Us){d=this.dk;for(g=this.Du;g>c;)g-=this.$d(d),d--;return d+1}d=d?0:this.he;for(var k=0;k<c+g;)k+=this.$d(d)*this.pC,d++;return d}CM(c,d=!1){var g=c/this.Eu*(this.lq/this.oC-this.lq)*this.oC;if(1!=
this.oC&&c+g>=this.Eu-this.lq){d=this.Ji;for(g=this.Eu;g>c;)g-=this.Dh(d),d--;return d+1}d=d?0:this.Zd;for(var k=0;k<c+g;)k+=this.Dh(d)*this.oC,d++;return d}Zea(c){for(var d=0,g=0,k=this.Ed;g<k;)g+=this.$d(c+d),d++;return d}Yea(c){for(var d=0,g=0,k=this.Fd;g<k;)g+=this.Dh(c+d),d++;return d}get Eu(){return 0<=this.Wt?this.Wt:this.Wt=1>this.oC?this.nC:this.ru(this.Zd,this.Zd+this.$l)}ru(c,d){if(c>=d)return 0;var g=0,k=0,m;for(m in this.ks){var n=parseInt(m);!isNaN(n)&&!isNaN(this.ks[n])&&n>=c&&n<d&&
(k++,g+=this.Dh(n))}g+=(Math.min(d,this.Ji)-c-k)*(0<b.Jq?Math.min(b.Jq,b.Dt):b.Dt);d>=this.Ji&&(g+=(d-this.Ji)*this.Dh(d));return g}get Du(){return 0<=this.Vt?this.Vt:this.Vt=1>this.pC?this.nC:this.qu(this.he,this.he+this.Tp)}qu(c,d){if(c>=d)return 0;var g=0,k=0,m;for(m in this.ts){var n=parseInt(m);!isNaN(n)&&!isNaN(this.ts[n])&&n>=c&&n<d&&(k++,g+=this.$d(n))}return g+=(d-c-k)*(0<b.Wr?Math.min(b.Wr,b.Ev):b.Ev)}Xva(){this.wi.length=0}Afa(c,d){return e.v(this.wi[c])?!1:!0===this.wi[c][d]}tLa(c,d){e.v(this.wi[c])&&
(this.wi[c]=[]);this.wi[c][d]=!0}vS(){this.Wt=this.Vt=-1}get LFa(){for(var c=0,d=this.Zd+this.$l,g=this.Zd;g<d;g++)if(c+=this.Dh(g),c>b.y9)return b.y9;return c}get zq(){for(var c=this.Rs(),d=0;d<this.Zd;d++)c+=this.Dh(d);return c}get jr(){for(var c=this.Vu(),d=0;d<this.he;d++)c+=this.$d(d);return c}Rs(){return e.model.C.F.Zk?this.TR:0}Vu(){return e.model.C.F.Zk?this.d_:0}bBa(){for(var c=[],d=this.Zd;d<this.$l&&(this.Bfa(d)||(c.push(d),!(50<=c.length)));d++);return c}cBa(c){var d=[];c.bottom=Math.min(c.bottom,
this.dk);for(var g=c.left;g<=c.right;g++)for(var k=c.top;k<=c.bottom;k++)if(!this.Afa(k,g)){d.push(g);break}return d}Bfa(c,d=!0){return!isNaN(this.ks[c])||(d?!isNaN(this.Yq[c]):!1)}get LD(){return this.Eu+(this.Du>this.Ed?this.b_:0)>this.Fd}get ND(){return this.Du+(this.Eu>this.Fd?this.a_:0)>this.Ed}ED(c,d=!1){var g=e.model.C.F.Zk&&d?this.Vu():0;return g+=this.qu(d?0:this.he,c)}sD(c,d=!1){var g=e.model.C.F.Zk&&d?this.Rs():0;return g+=this.ru(d?0:this.Zd,c)}get yw(){return u.Nd().fj?!1:500>Math.max(this.Ji,
this.nu/b.Dt)*Math.max(this.dk,this.Xy/b.Ev)}get yva(){return u.Nd().fj?!1:(this.ND||this.LD)&&1E5>this.Ji*this.dk}To(c=!1){return new f.pF(this.vH(c),this.wH(c),this.rD(c),this.Gz(c))}wH(c=!1){return this.yw?this.he:c?Math.max(this.he,this.Lg-b.V9):Math.max(this.he,this.Lg)}vH(c=!1){return this.yw?this.Zd:c?Math.max(this.Zd,this.Bf-b.o7):Math.max(this.Zd,this.Bf)}Gz(c=!1){var d=this.Zea(this.Lg);return this.yw?this.ND?this.dk:this.Lg+d:c?Math.min(this.Lg+d+(this.ND?b.V9:0),this.ND?this.dk:Number.MAX_VALUE):
this.Lg+d}rD(c=!1){var d=this.Yea(this.Bf);return this.yw?this.LD?this.Ji:this.Bf+d:c?Math.min(this.Bf+d+(this.LD?b.o7:0),this.LD?this.Ji:Number.MAX_VALUE):this.Bf+d}bE(c=NaN){isNaN(c)&&(c=this.rD());return 0<this.scrollLeft&&c>=this.Ji}cE(c=NaN){isNaN(c)&&(c=this.Gz());return 0<this.scrollTop&&c>=this.dk}BM(c=NaN){isNaN(c)&&(c=this.Bf);return this.bE()?this.Eu-this.scrollLeft-this.ru(c,this.Ji):0}VM(c=NaN){isNaN(c)&&(c=this.Lg);return this.cE()?this.Du-this.scrollTop-this.qu(c,this.dk):0}gU(c,d){if(c<
this.we)return NaN;if(e.model.C.F.Zk&&c<this.we+this.Vu())return-1;var g=0,k=this.we+this.Vu();c>this.jr&&(g=this.Lg,k=this.we+this.jr,d&&g>this.he?(d=this.scrollTop-this.ED(g-1),0<d&&(k-=d,g--)):d||(c-=this.VM()));for(;k<c;)k+=this.$d(g),g++;return g-1}LT(c,d){if(e.model.C.F.Zk&&c<this.Rs())return-1;var g=0,k=this.Rs();c>this.zq&&(g=this.Bf,k=this.zq,d&&g>this.Zd?(d=this.scrollLeft-this.sD(g-1)+this.NI,0<d&&(k-=d,g--)):d||(c-=this.BM()));for(;k<c;)k+=this.Dh(g),g++;return g-1}Vo(c,d,g=!0){var k=
0,m=(g?this.we:0)+this.Vu();c>this.he&&(k=this.Lg,m=(g?this.we:0)+this.jr,k<=c&&(m+=d?this.ED(this.Lg)-this.scrollTop:this.VM()));return m+=this.qu(k,c)}hm(c,d){var g=0,k=this.Rs();c>this.Zd&&(g=this.Bf,k=this.zq,g<=c&&(k+=d?this.sD(this.Bf)-this.scrollLeft-this.NI:this.BM()));return k+=this.ru(g,c)}rEa(c){return isNaN(this.ts[c])}get dAa(){return this.scrollLeft+this.Fd-this.Eu-this.IE}get cAa(){return this.scrollTop+this.Ed-this.Du-this.HE}Wo(c,d){return!isNaN(c)&&0==this.$d(c)||!isNaN(d)&&0==this.Dh(d)?
!0:!1}}b.V9=5;b.o7=5;b.Dt=100;b.rF=50;b.Jq=480;b.Ev=30;b.qF=30;b.Wr=100;b.KY=25;b.LY=25;b.y9=200;f.Nh=b;class a{constructor(){this.rows=[];this.Ka=[]}}f.oQa=a})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.Ga{constructor(a,c){super("div");this.EZ=!1;this.cell=new Qa;this.da=a;this.zn=c;this.element.addEventListener("click",d=>this.QV(d))}$y(a=!1){for(var c=!1,d=this.element.children,g=0;g<d.length;g++){var k=d.item(g);c=this.yka(k,!0)||c;k=k.children;for(var m=0;m<k.length;m++){const n=k.item(m);c=this.MO(n,a)||c}}this.EZ=c}get ZD(){return this.EZ}yka(a,c=!1){if(null!=this.da){var d=!1,g=parseInt(a.getAttribute("data-r"));if(isNaN(g)||
this.da.dE(g))return!1;var k=a.clientHeight;a=a.offsetHeight;var m=a-k;a-this.da.$d(g)>m?(this.da.Rx(g,Math.ceil(a),c),d=!0):k<=f.Nh.Ev&&this.da.Rx(g,f.Nh.Ev,c);return d}}MO(a,c=!1,d=!1){if(null!=this.da){var g=!1,k=parseInt(a.getAttribute("data-c")),m=parseInt(a.getAttribute("data-r"));if(isNaN(k)||a.classList.contains(h.W.ya.BQ)&&0<=k||this.da.YD(k)||this.da.Afa(m,k)&&!d)return!1;a=a.offsetWidth;if(a>this.da.Dh(k)){if(1<a-this.da.Dh(k)||1==window.devicePixelRatio||1!=window.devicePixelRatio&&this.da.Dh(k)==
f.Nh.Dt)this.da.nO(k,Math.ceil(a+3),c),g=!0}else-1!=k&&a<=f.Nh.Dt&&!this.da.Bfa(k,!0)&&this.da.nO(k,f.Nh.Dt,c);this.da.tLa(m,k);return g}}kz(a,c){var d=this.zn?this.zn(a,c):null;this.cell.clear();this.cell.tag="div";if(this.da.Wo(a,c))return this.cell.style.display="none",this.cell;this.cell.aa(h.W.ya.Ne);var g=a>=this.da.dk||c>=this.da.Ji;!d&&g?this.cell.aa(h.W.ya.CX):(this.cell.attr.role="gridcell",this.cell.attr["aria-rowindex"]=a+1,this.cell.attr["aria-colindex"]=c+1);d&&!isNaN(d.level)&&this.cell.aa(h.W.ya.Sf+
d.level);d&&d.xh&&(this.cell.aa(h.W.ya.qk),this.cell.aa(h.W.ya.Nv),this.cell.aa(h.W.ya.Sf+d.level),this.cell.attr.role="rowheader");d&&d.Ng&&(this.cell.aa(h.W.ya.qk),this.cell.aa(h.W.ya.mB),this.cell.attr.role="columnheader");d&&d.pN&&this.cell.aa(h.W.ya.ipa);d&&d.Mk&&this.cell.aa(h.W.ya.Xv);d&&d.vx&&this.cell.aa(h.W.ya.Lra);d&&d.jm&&this.cell.aa(h.W.ya.Mra);d&&d.Vz&&this.cell.aa(h.W.ya.NJ);d&&d.$D&&this.cell.aa(h.W.ya.goa);d&&d.Ss&&this.cell.aa(h.W.ya.hoa);d&&d.Zf&&(this.cell.aa(h.W.ya.SX),this.cell.text+=
this.No(h.W.ya.Y7,e.model.B.j.JQ));d&&d.collapsed&&(this.cell.aa(h.W.ya.DX),this.cell.text+=this.No(h.W.ya.n7,e.model.B.j.KQ));d&&d.Xz&&(this.cell.aa(h.W.ya.Q8),-.75>=d.value?this.cell.aa(h.W.ya.woa):-.25>=d.value?this.cell.aa(h.W.ya.Aoa):.25>d.value?this.cell.aa(h.W.ya.yoa):.75>d.value?this.cell.aa(h.W.ya.zoa):1>=d.value&&this.cell.aa(h.W.ya.xoa));d&&d.Wz&&(this.cell.aa(h.W.ya.Q8),-.75>=d.value?this.cell.aa(h.W.ya.roa):-.25>=d.value?this.cell.aa(h.W.ya.voa):.25>d.value?this.cell.aa(h.W.ya.toa):.75>
d.value?this.cell.aa(h.W.ya.uoa):1>=d.value&&this.cell.aa(h.W.ya.soa));this.cell.text+=d?d.lT:"";d&&(d.sh||d.Kg)&&(this.cell.text+='<span class="'+h.W.ya.hY+'" title="'+(d.sh?e.model.B.j.Dra:e.model.B.j.Era)+'">'+d.xBa()+"</span>",d.sh&&this.cell.aa(h.W.ya.Dma),d.Kg&&this.cell.aa(h.W.ya.Cma));if(d&&d.Ng){if(d.ao&&!d.kb){var k="";0<=d.f6&&(k="<span>"+(d.f6+1)+"</span>");const n=e.v(d.measure)||d.measure.type!=e.u.i.Ra.wc;this.cell.text=d.ip?this.cell.text+this.No([h.W.ya.BB,h.W.ya.bsa,e.ka(k)?"":h.W.ya.c$],
this.JH(e.u.i.Ba.hc,n,e.model.C.F.sc),k):d.jp?this.cell.text+this.No([h.W.ya.BB,h.W.ya.csa,e.ka(k)?"":h.W.ya.c$],this.JH(e.u.i.Ba.Nc,n,e.model.C.F.sc),k):this.cell.text+this.No([h.W.ya.BB,h.W.ya.dsa],this.JH(e.u.i.Ba.ed,n,e.model.C.F.sc))}d.kb&&this.cell.aa(h.W.ya.CX);d.kb||this.cell.aa(h.W.ya.asa)}d&&d.xh&&(d.ao&&!d.kb&&(this.cell.text=d.ip?this.cell.text+this.No([h.W.ya.BB,h.W.ya.loa],this.JH(e.u.i.Ba.hc)):d.jp?this.cell.text+this.No([h.W.ya.BB,h.W.ya.moa],this.JH(e.u.i.Ba.Nc)):this.cell.text+this.No([h.W.ya.BB,
h.W.ya.noa],this.JH(e.u.i.Ba.ed))),this.cell.aa(h.W.ya.koa));this.cell.attr["data-c"]=c;this.cell.attr["data-r"]=a;this.cell.attr["data-n"]=0==a%2?"even":"odd";0!=c||e.model.C.F.Zk||(this.cell.style.height=this.da.$d(a)+"px");if(d&&d.style){for(k=0;k<d.style.$W.length;k++)this.cell.aa(d.style.$W[k]);k=d.style.V;for(var m in k)this.cell.style[m]=k[m]}this.Via(this.cell,a,c,d&&d.li);null==h.W.ne.Lw||g||(null==d&&(d=new h.W.ne,d.lb=a,d.kc=c),h.W.ne.Lw(this.cell.node,d.Sa()));return this.cell}JH(a,c=
!0,d=!1){a=e.u.i.Ba.cU(a,c,d);return a==e.u.i.Ba.hc?e.model.B.j.Hra:a==e.u.i.Ba.Nc?e.model.B.j.Ira:a==e.u.i.Ba.ed?e.model.B.j.Kra:e.model.B.j.Jra}P2(a,c){return this.zn?(a=this.zn(a,c),e.v(a)||e.ka(a.label)):!0}Via(a,c,d,g=!1){this.da.YD(d)||this.da.dE(c)?(a.style.width=this.da.Dh(d)+"px",a.style.height=this.da.$d(c)+"px"):(a.style["min-width"]=this.da.Dh(d)+"px",a.style[g?"height":"min-height"]=this.da.$d(c)+"px");!this.da.YD(d)&&0<f.Nh.Jq&&(a.style["max-width"]=f.Nh.Jq+"px");!this.da.dE(c)&&0<f.Nh.Wr&&
(a.style["max-height"]=f.Nh.Wr+"px")}No(a,c=null,d=""){Array.isArray(a)&&(a=a.join(" "));a='<i aria-hidden="true" class="'+h.W.ya.iY+" "+a+'"';c&&(a+='title="'+c+'"');return a+(">"+d+"</i>")}Uxa(){this.cell.clear();this.cell.tag="div";this.cell.aa(h.W.ya.Ne);this.cell.aa(h.W.ya.BQ);this.cell.style.width=this.da.Rs()+"px";this.cell.style.height=this.da.Vu()+"px";this.cell.attr["aria-hidden"]="true";return this.cell}sca(a){this.cell.clear();this.cell.tag="div";if(this.da.Wo(-1,a))return this.cell.style.display=
"none",this.cell;this.cell.aa(h.W.ya.Ne);this.cell.aa(h.W.ya.BQ);this.cell.text+=a+1;this.cell.style.width=this.da.Dh(a)+"px";0<f.Nh.Jq&&!this.da.YD(a)&&(this.cell.style["max-width"]=f.Nh.Jq+"px");this.cell.style.height=this.da.Vu()+"px";this.cell.attr["data-r"]=-1;this.cell.attr["data-c"]=a;this.cell.attr["aria-hidden"]="true";return this.cell}VS(a){this.cell.clear();this.cell.tag="div";if(this.da.Wo(a,-1))return this.cell.style.display="none",this.cell;this.cell.aa(h.W.ya.Ne);this.cell.aa(h.W.ya.BQ);
this.cell.text+=a+1;this.cell.style["min-width"]=this.da.Rs()+"px";this.cell.style.height=this.da.$d(a)+"px";this.cell.style["line-height"]=this.da.$d(a)-2+"px";0<f.Nh.Wr&&!this.da.dE(a)&&(this.cell.style["max-height"]=f.Nh.Wr+"px");this.cell.attr["data-r"]=a;this.cell.attr["data-c"]=-1;this.cell.attr["aria-hidden"]="true";return this.cell}I1(a,c){a=this.da.CM(a)-1;c=this.da.WM(c)-1;var d=null;null!=this.zn&&(d=this.zn(c,a));null==d&&(d=new h.W.ne,d.lb=c,d.kc=a);return d}Tu(a){for(;!a.Sc(h.W.ya.Ne);)if(a=
a.parent,null==a)return null;var c=parseInt(a.attr("data-c"));a=parseInt(a.attr("data-r"));var d=null!=this.zn?this.zn(a,c):l.Sb.Jb.YT(a,c);null==d&&(d=new h.W.ne,d.lb=a,d.kc=c);return d}QV(a){var c=x.Ga.Yb(a.target),d=this.Tu(c)||this.I1(a.offsetX,a.offsetY);switch(a.type){case "click":var g=new h.J8(d,c,a)}g&&this.Ha(g)}dispose(){super.dispose();this.da=this.zn=null}}f.$O=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends f.$O{constructor(a,c){super(a,c);this.GR=!1;this.aa("fm-sheet-canvas");this.Ul=new $a;this.X(this.Ul);this.Cm=new f.pF;this.vi=new f.pF}nb(){}uz(){}get ac(){return this.GR}set ac(a){this.GR!=a&&(this.GR=a,this.Ya(this.ac?b.X7:b.RX))}Wja(){0!=this.ac&&(this.Cm.reset(),this.vi.reset(),this.nb())}SG(){this.Cm.reset()}Vva(){this.vi.reset()}Dw(){this.SG();this.Vva()}$y(a=!1){for(var c=!1,d=this.Ul.content.element.children,g=0;g<d.length;g++){var k=
d.item(g);c=this.yka(k,a)||c;k=k.children;for(var m=0;m<k.length;m++){var n=k.item(m);c=this.MO(n,a)||c}}this.EZ=c}vA(){this.Ul.content.width=this.pw-this.da.IE;this.Ul.content.height=this.au-this.da.HE}get sb(){return this.Ul}get width(){return this.pw}set width(a){this.pw!=a&&(this.element.style.minWidth=a+"px",this.pw=a,this.Ul.width=a)}get height(){return this.au}set height(a){this.au!=a&&(this.element.style.height=a+"px",this.au=a,this.Ul.height=a)}XAa(a,c){a=this.da.LT(a,this.ac);c=this.da.gU(c,
this.ac);var d=null;null!=this.zn&&(d=this.zn(c,a));null==d&&(d=new h.W.ne,d.lb=c,d.kc=a);return d}QV(a){var c=this.parent.sg();var d=a.clientX-c.left;var g=a.clientY-c.top;c=a.target;c==this.sb.placeholder.element&&(this.sb.placeholder.V("pointer-events","none"),c=document.elementFromPoint(a.clientX,a.clientY),this.sb.placeholder.V("pointer-events",""));c=x.Ga.Yb(c);d=this.Tu(c)||this.XAa(d,g);null!=d&&null!=c&&(g=h.W.Lq.W6,c.Sc(h.W.ya.hY)?g=h.W.Lq.M7:c.Sc(h.W.ya.Y7)||c.Sc(h.W.ya.n7)?g=h.W.Lq.Coa:
c.Sc(h.W.ya.BB)?g=h.W.Lq.lK:c.Sc(h.W.ya.WP)&&(g=h.W.Lq.WP),d.tC=g);switch(a.type){case "click":var k=new h.J8(d,c,a)}k&&this.Ha(k)}ZG(a,c=!1,d=!1){var g=[],k=new Qa;d&&g.push(this.Bxa(a));for(d=a.top;d<a.bottom;d++){k.tag="div";k.aa("fm-row");k.attr["data-r"]=d;d<this.da.dk&&this instanceof f.Q7&&(k.attr.role="row");c&&(k.text+=ab(this.VS(d)));for(var m=a.left;m<a.right;++m)k.text+=ab(this.kz(d,m));g.push(ab(k))}return g.join("")}Bxa(a){for(var c="",d=a.left;d<a.right;++d)c+=ab(this.sca(d));a=new Qa;
a.tag="div";a.aa("fm-row");a.text=c;return c=ab(a)}Vea(){var a=this.da.wH();return this.ac?this.da.qu(this.vi.top,a)-this.sb.VC:this.da.VM(a)}Uea(){var a=this.da.vH();return this.ac?this.da.ru(this.vi.left,a)-this.sb.Gs:this.da.BM(a)}dispose(){this.sb.dispose();super.dispose()}}b.X7="switched_to_smooth";b.RX="switched_to_simple";f.nF=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(a=0,c=0,d=0,g=0){this.left=a;this.top=c;this.right=d;this.bottom=g}set(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom}reset(){this.bottom=this.right=this.top=this.left=0}contains(a){return this.left<=a.left&&this.top<=a.top&&this.right>=a.right&&this.bottom>=a.bottom}clone(){return new b(this.left,this.top,this.right,this.bottom)}}f.pF=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||
(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(a){this.oD=[];this.data=[];this.coords=a}reset(){this.data=[];this.oD=[]}setData(a,c,d,g=!1){d.lb=a;d.kc=c;if(c<this.coords.Zd||g)null==this.data[a]&&(this.data[a]=[]),this.data[a][c]=d}AW(a,c,d){null==this.oD[a]&&(this.oD[a]=[]);this.oD[a][c]=d}zva(a,c){void 0===this.data[a]&&(this.data[a]=[]);return void 0!==this.data[a][c]}getData(a,c,d=!0){if(0==this.zva(a,c)){var g=this.vD(a,c);null!=g&&(g.lb=a,g.kc=c);if(d)this.data[a][c]=g;
else return g}if(null!==this.data[a][c])return this.data[a][c]}uBa(a,c){return this.oD[a]&&this.oD[a][c]?this.oD[a][c]:null}Wva(a,c){null!=this.data[a]&&(this.data[a][c]=this.getData(a,c))}dispose(){this.reset();this.vD=null}}f.pra=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(c){this.Saa=this.caa=null;this.gj=new e.ub;this.TK={};this.EK={};this.bV=d=>this.tq(d);this.na=c;this.coords=this.na.coords;this.Vk=new f.nra(this,this.na);this.oLa=new f.fla;this.lv=u.TP.R();this.lv.N(u.KeyboardEvent.SP,this.bV)}dispose(){null!=this.gj&&0<this.gj.length&&this.X_();this.lv.rb(u.KeyboardEvent.SP,this.bV);this.lv=this.na=null;this.Vk.dispose()}nb(){this.Vk.j5()}Sha(c,d){this.Vk.XU?this.SKa(c,d):this.Fia(c,d);this.nb()}Tha(c,
d){this.Vk.GU||(null==this.Vk.ep&&(this.Vk.ep=new f.f$(this.na)),this.Vk.ep.Aw=c.toString()+"|"+d.toString(),this.nb())}mLa(c,d){this.Vk.Xx||this.select(c,d)}select(c,d){this.Ks();this.from=c;this.tm=d;this.Sha(c,d)}SKa(c,d){this.Cfa(c,d)&&!this.gj.Bb(this.WG(c,d))&&(this.X_(),this.Fia(c,d))}Fia(c,d){null!=this.Vk.ep&&(this.Vk.ep.remove(),this.Vk.ep=null);if(!this.Vk.GU||this.Cfa(c,d))if(this.gj.Bb(this.WG(c,d)))g=this.gj.getItem(this.WG(c,d)),null!=g.bp&&delete this.TK[c.y.toString()],null!=g.Jo&&
delete this.EK[c.x.toString()],g.remove(),this.gj.removeItem(this.WG(c,d));else if(null!=c&&null!=d){var g=new f.f$(this.na);g.Aw=this.WG(c,d);this.gj.Ta(g.Aw,g)}}X_(){for(;this.gj&&0<this.gj.length;)this.gj.fa(0).remove(),this.gj.s5(0);this.TK={};this.EK={}}WG(c,d){return c.x.toString()+"|"+c.y.toString()+"|"+d.x.toString()+"|"+d.y.toString()}bH(c){c=c.split("|");var d={};4==c.length?(d.from=new e.K.Y.sheet.Dp(parseInt(c[0]),parseInt(c[1])),d.tm=new e.K.Y.sheet.Dp(parseInt(c[2]),parseInt(c[3]))):
2==c.length&&(d.mt=parseInt(c[0]),d.Au=parseInt(c[1]));return d}dga(c){return this.TK.hasOwnProperty(c.y.toString())&&this.EK.hasOwnProperty(c.x.toString())&&this.TK[c.y.toString()]==f.A7.YO&&this.EK[c.x.toString()]==f.A7.YO}Cfa(c,d){return null==c||null==d||!c.hD(d)||this.dga(c)||this.dga(d)||0>c.x*c.y||0>d.x*d.y?!1:!0}selectAll(){this.select(new a(0,0),new a(this.coords.$l+this.coords.Zd-1,this.coords.Tp+this.coords.he-1))}E5(c){if(!(null==this.from||this.from.hD(c)&&this.gj.Bb(this.WG(this.from,
c)))){var d=this.from;this.Ks();this.from=d;this.tm=c;this.Sha(d,c)}}nLa(c){this.Ks();this.Tha(c,-1)}jLa(c){this.Ks();this.Tha(-1,c)}Ks(){!this.Vk.GU&&0<this.gj.length&&!this.Vk.XU&&this.X_();null!=this.Vk.ep&&(this.Vk.ep.remove(),this.Vk.ep=null);this.tm=this.from=null}clear(){this.Ks();this.nb()}updateLabels(){this.Vk&&this.Vk.updateLabels()}zDa(c){return c.li&&!isNaN(c.value)||c.ul&&c.li&&""!=c.label}dva(c){if(null==c)return!1;let d=0;for(let g=0;g<c.length;g++)if(this.zDa(c[g])&&d++,2<=d)return!0;
return!1}get Lr(){return this.gj}get tm(){return this.Saa}set tm(c){this.Saa=c}get from(){return this.caa}set from(c){this.caa=c}gAa(c,d){return c&&d?Math.min(c.x,d.x):-1}wMa(c,d){return c&&d?Math.max(c.x,d.x):-1}oAa(c,d){return c&&d?Math.min(c.y,d.y):-1}IMa(c,d){return c&&d?Math.max(c.y,d.y):-1}move(c,d,g=!1){switch(c){case 37:this.QFa(g);break;case 38:this.TFa(g);break;case 39:this.RFa(g);break;case 40:this.PFa(g)}}get Bia(){return this.TK}get bca(){return this.EK}QFa(c=!1){this.P3(-1,c)}RFa(c=
!1){this.P3(1,c)}TFa(c=!1){this.S3(-1,c)}PFa(c=!1){this.S3(1,c)}P3(c,d=!1){if(1==this.gj.length){var g=this.bH(this.gj.fa(0).Aw),k=g.from,m=g.tm;g=d?m.x:k.x;var n=d?m.x:k.x;g=this.Nza(g+c,d?m.y:k.y);this.BDa(g)?g<this.coords.Ji-1&&g>this.coords.Bf&&this.P3(0>c?c-1:c+1,d):(g<this.coords.Bf?(c=Math.max(g,this.coords.Zd),this.na.ot(c)):g>=this.coords.Yea(this.coords.Bf)+this.coords.Bf-1&&(c=this.coords.Bf+(g-n),this.na.ot(c+1)),c=d?m.y:k.y,m=g,this.select(new a(d?k.x:g,k.y),new a(m,c)))}}S3(c,d=!1){if(1==
this.gj.length){var g=this.bH(this.gj.fa(0).Aw),k=g.from,m=g.tm;g=d?m.y:k.y;var n=d?m.y:k.y;g=this.Oza(g+c,d?m.x:k.x);this.sEa(g)?g<this.coords.dk-1&&g>this.coords.Lg&&this.S3(0>c?c-1:c+1,d):(g<this.coords.Lg?(c=Math.max(g,this.coords.he),this.na.Kr(c)):g>=this.coords.Zea(this.coords.Lg)+this.coords.Lg-1&&(c=this.coords.Lg+(g-n),this.na.Kr(c+1)),c=g,m=d?m.x:k.x,this.select(new a(k.x,d?k.y:g),new a(m,c)))}}sEa(c){const d=e.model.size.wd.If;for(let k in d)if(!isNaN(d[k])&&d.hasOwnProperty(k)){var g=
k.split(",");g=e.model.Wa.R().J.Lz(g);if(!(0>g)&&g+this.coords.Lg===c&&0===d[k])return!0}return!1}BDa(c){const d=e.model.size.wd.Af;for(let k in d)if(!isNaN(d[k])&&d.hasOwnProperty(k)){var g=k.split(",");g=e.model.Wa.R().J.Hz(g);if(!(0>g)&&g+this.coords.Bf===c&&0===d[k])return!0}return!1}Oza(c,d){return Math.max(d<this.coords.Zd?this.coords.he:this.coords.VG+1,Math.min(c,this.coords.dk-1))}Nza(c,d){c=0>c&&!e.model.C.F.Zk?0:c;return Math.max(d<this.coords.he?this.coords.Zd:0,Math.min(c,this.coords.Ji-
1))}get kva(){return this.oLa}tq(c){if(null!=this.lv&&(this.na.an||this.lv.Ofa)){var d=c.ctrlKey||c.metaKey;switch(c.keyCode){case 13:case 32:d||this.na.Ya(h.uc.OJ);break;case 65:d&&(this.selectAll(),c.vq.preventDefault());break;case 37:case 39:case 38:case 40:this.move(c.keyCode,c.ctrlKey,c.shiftKey),c.vq.preventDefault()}!d||c.altKey||c.shiftKey||this.lv.Ofa||67!==c.keyCode||this.jz()}}jz(){var c="";if(0<this.gj.length)for(var d,g=0;g<this.gj.length;g++)d=this.gj.fa(g),null!=d.Xj&&(d=this.bH(d.Aw),
c+=this.oxa(d.from,d.tm),g<this.gj.length-1&&(c+="\n"));0<c.length&&this.lv.jz(c)}oxa(c,d){var g="";if(null==c||null==d)return g;var k=Math.min(c.x,d.x),m=Math.max(c.x,d.x),n=Math.max(c.y,d.y);for(d=Math.min(c.y,d.y);d<=n;d++){for(var p=k;p<=m;p++){p>k&&(g+="\t");c=this.na.ag(d,p,!0);if(null==c&&(c=d<this.coords.Lg&&p>=this.coords.Bf?this.na.ag(d,p-this.coords.Bf+this.coords.Zd,!0):null,null==c))continue;g+=null==c?"":c.I()}d<n&&(g+="\n")}return g}}f.ora=b;class a{constructor(c=0,d=0){this.x=c;this.y=
d}hD(c){return c.x==this.x&&c.y==this.y}}f.Dp=a})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(d,g){this.yG=this.gga=this.GU=!1;this.xo=this.Paa=null;this.Eba=5;this.gLa=17;this.XU=!1;this.pI=k=>this.QV(k);this.bha=k=>this.D4(k);this.yh=d;this.na=g;this.coords=this.na.coords;this.xo=new f.ela;this.xo.$a();this.na.X(this.xo);this.na.element.addEventListener("mousedown",this.pI);this.na.element.addEventListener("mouseup",this.pI)}get Xx(){return this.yG}set Xx(d){this.yG=d;this.Xx||(this.na.element.removeEventListener("mousemove",
this.pI),document.removeEventListener("mousemove",this.bha))}get ep(){return this.Paa}set ep(d){this.Paa=d}QV(d){if(1==d.which||3==d.which){var g=x.Ga.Yb(d.target);if("mousedown"!=d.type||!(g.Sc(h.W.ya.Kq)||g.Sc(h.W.ya.KJ)||g.Sc(h.W.ya.EJ)||null!=g.closest(".fm-filters")||null!=g.closest("."+h.W.ya.SJ))){var k=this.na.sg();g=d.clientX-k.left;k=d.clientY-k.top;if(!(g>this.coords.nu||k>this.coords.we+this.coords.Xy||(k=this.coords.gU(k,this.na.ac),g=this.coords.LT(g,this.na.ac),isNaN(k)||isNaN(g))))switch(this.GU=
!u.uj.Yo&&d.ctrlKey||u.uj.Yo&&d.metaKey,this.XU=3==d.which,this.gga=d.shiftKey,d.type){case "mousedown":this.Ix(k,g);break;case "mousemove":this.Jx(k,g);break;case "mouseup":this.Cr(k,g)}}}}D4(d){var g=x.Ga.Yb(this.na.element),k=d.clientX;d=d.clientY;(k<g.left||d<g.top||k>g.left+this.na.width||d>g.top+this.na.height)&&this.oMa()}select(d,g,k,m){this.Xx=!1;this.yh.select(new f.Dp(g,d),new f.Dp(m,k))}oMa(){this.Xx=!1}Ix(d,g){this.gga&&this.yh.from?this.SCa(d,g):(this.Xx=!0,this.yh.select(new f.Dp(g,
d),new f.Dp(g,d)),this.na.element.addEventListener("mousemove",this.pI),e.Ik.addEventListener("mousemove",this.bha))}SCa(d,g){d=new f.Dp(g,d);this.yh.from&&!this.yh.from.hD(d)&&this.yh.E5(d)}Cr(d,g){this.Xx&&(this.Xx=!1,this.XU||(-1==d?this.yh.jLa(g):-1==g?this.yh.nLa(d):this.yh.from&&!this.yh.from.hD(new f.Dp(g,d))&&this.yh.E5(new f.Dp(g,d))))}Jx(d,g){this.Xx&&(!this.yh.tm||this.yh.tm.x==g&&this.yh.tm.y==d||this.yh.E5(new f.Dp(g,d)))}updateLabels(){this.xo&&this.xo.updateLabels()}dispose(){this.na.element&&
this.na.element.removeEventListener("mousedown",this.pI);this.na.element&&this.na.element.removeEventListener("mouseup",this.pI);this.xo.dispose();this.coords=this.na=this.yh=null;null!=this.ep&&(this.ep.remove(),this.ep=null)}j5(){this.xo.CKa();for(var d=0;d<this.yh.Lr.length;d++){var g=this.yh.Lr.fa(d);var k=this.yh.bH(this.yh.Lr.Uh(d));this.xta(g,k.from,k.tm)}this.yta(this.xo);this.Jya(this.ep)}Jya(d){if(null!=d){d.$a();var g=this.yh.bH(d.Aw);-1!=g.mt&&this.Uya(g.mt,d);-1!=g.Au&&this.Tya(g.Au,
d)}}yta(d){d.$a();if(e.model.C.F.qja&&d.DDa()&&null!=e.u.Ma.R()&&null!=e.u.Ma.R().O){var g=this.na.Lr;if(this.yh.dva(g)&&(d.qFa(),this.TMa(d,g),!d.uDa())){d.show();d.qw.Yk("auto");d.top=d.Yl.bottom;g=this.coords.hm(this.coords.Zd,this.na.ac);for(var k=0,m=0;m<d.In.length;m++)k+=d.In.fa(m).width;k=k+2*this.Eba+2*(d.In.length-1)*this.Eba;d.qw.width=k;g-d.Yl.right+k>this.coords.scrollLeft?d.Yl.right=d.Yl.left+k:g>d.Yl.right-k?(d.qw.V("left","auto"),d.qw.right=0,k=d.Yl.right-g):d.Yl.yia>=this.coords.nu&&
(d.qw.V("left","right"),d.qw.left=0,k=k-(d.Yl.yia-this.coords.nu)-1,k=0>k?0:k);this.coords.we+this.coords.Xy<=d.Yl.bottom+d.height&&(d.top=d.Yl.bottom-this.gLa);d.left=d.Yl.right-k;d.mia.width=k;d.width=k}}}TMa(d,g){this.yh.kva.iKa(d,g)}xta(d,g,k){d.$a();var m=Math.min(g.x,k.x),n=Math.min(g.y,k.y),p=Math.max(g.x,k.x);g=Math.max(g.y,k.y);this.YJa(m,p,n,g,d);e.model.C.F.Zk&&this.Mya(m,p,n,g,d);k=this.coords.nu;var t=this.coords.we+this.coords.Xy,r=Math.max(this.coords.we,this.coords.Vo(n,this.na.ac)-
1),v=this.coords.Vo(g+1,this.na.ac),y=Math.min(t,v),A=Math.max(0,this.coords.hm(m,this.na.ac)-1),C=this.coords.hm(p+1,this.na.ac),B=Math.min(k,C),H=y-r,M=B-A;2>=M||2>=H?null!=d.Xj&&d.Xj.$a():A<k&&r<t?(null!=d.Xj&&(d.Xj.show(),d.Xj.top=r,d.Xj.left=A,d.Xj.width=M,d.Xj.height=H,this.xo.Yl.bottom*this.xo.Yl.right<=B*y&&(this.xo.Yl.left=A,this.xo.Yl.right=B,this.xo.Yl.bottom=y,this.xo.Yl.yia=C)),n<this.coords.he&&C>B&&(d.pca(),d.nl.top=r,d.nl.left=B,d.nl.width=Math.min(C,this.coords.lq)-B,d.nl.height=
Math.min(y,this.coords.we+this.coords.jr)-r,d.nl.ab("fm-clear-border-bottom",g>this.coords.he),d.nl.ab("fm-clear-border-right",C>this.coords.lq),d.nl.Hd("fm-clear-border"),d.nl.show()),m<this.coords.Zd&&v>y&&(d.wca(),d.El.top=y,d.El.left=A,d.El.width=Math.min(B,this.coords.zq)-A,d.El.height=Math.min(v,this.coords.Us)-y,d.El.ab("fm-clear-border-bottom",v>this.coords.Us),d.El.ab("fm-clear-border-right",p>this.coords.Zd),d.El.Hd("fm-clear-border"),d.El.show()),null!=d.Xj&&(d.Xj.ab("fm-clear-border-right",
C>B),d.Xj.ab("fm-clear-border-bottom",v>y))):null!=d.Xj&&d.Xj.$a()}Uya(d,g){if(!isNaN(d)){null==g.bp&&g.xca();var k=this.coords.Vo(d,this.na.ac);d=this.coords.Vo(d+1,this.na.ac);var m=Math.min(this.coords.we+this.coords.Xy,d);k<this.coords.we+this.coords.Xy?(g.bp.left=0,g.bp.top=k,g.bp.width=this.coords.nu,g.bp.height=m-k,g.bp.show(),d>m&&(g.wca(),g.El.top=m,g.El.left=0,g.El.width=this.coords.zq,g.El.height=Math.min(d,this.coords.Us)-m,g.El.aa("fm-clear-border"),g.El.show())):g.bp.$a()}}Tya(d,g){if(!isNaN(d)){null==
g.Jo&&g.qca();var k=this.coords.hm(d,this.na.ac);d=this.coords.hm(d+1,this.na.ac);var m=Math.min(this.coords.nu,d);k<this.coords.nu?(g.Jo.left=k,g.Jo.top=this.coords.we,g.Jo.width=m-k,g.Jo.height=this.coords.Xy,g.Jo.show(),d>m&&(g.pca(),g.nl.top=this.coords.we,g.nl.left=m,g.nl.width=Math.min(d,this.coords.lq)-m,g.nl.height=this.coords.jr,g.nl.aa("fm-clear-border"),g.nl.show())):g.Jo.$a()}}Mya(d,g,k,m,n){this.Kya(n.Jo,d,g);this.Lya(n.bp,k,m)}YJa(d,g,k,m,n){if(!this.yh.Bia.hasOwnProperty(k.toString())){n.xca();
for(var p=k;p<=m;p++)this.yh.Bia[p.toString()]=k==m&&d==g?a.K9:a.YO}if(!this.yh.bca.hasOwnProperty(d.toString()))for(n.qca(),p=d;p<=g;p++)this.yh.bca[p.toString()]=k==m&&d==g?a.K9:a.YO}Kya(d,g,k){null!=d&&(g=this.coords.hm(g,this.na.ac),k=Math.min(this.coords.lq,this.coords.hm(k+1,this.na.ac)),g<this.coords.lq?(d.left=g,d.top=this.coords.we,d.width=k-g,d.height=this.coords.Vu(),d.show()):d.$a())}Lya(d,g,k){null!=d&&(g=this.coords.Vo(g,this.na.ac),k=Math.min(this.coords.Us,this.coords.Vo(k+1,this.na.ac)),
d.left=0,d.top=g,d.width=this.coords.Rs(),d.height=k-g,d.show())}}f.nra=b;class a{}a.K9=1;a.YO=2;f.A7=a;class c{constructor(d){this.na=this.SK=this.DK=this.vG=this.aG=this.XQ=null;this.na=d;this.XQ=this.VL()}VL(){var d=new x.Ga("div","fm-sheet-selection-canvas");d.$a();this.na.X(d);return d}qca(){null==this.aG&&(this.aG=this.VL(),this.aG.aa("fm-sheet-selection-header"))}xca(){null==this.vG&&(this.vG=this.VL(),this.vG.aa("fm-sheet-selection-header"))}wca(){null==this.SK&&(this.SK=this.VL(),this.SK.aa("fm-clear-border-top"))}pca(){null==
this.DK&&(this.DK=this.VL(),this.DK.aa("fm-clear-border-left"))}get Aw(){return this.Asa}set Aw(d){this.Asa=d}get El(){return this.SK}get nl(){return this.DK}get bp(){return this.vG}set bp(d){this.vG=d}get Jo(){return this.aG}set Jo(d){this.aG=d}get Xj(){return this.XQ}set Xj(d){this.XQ=d}$a(){this.Jo&&this.Jo.$a();this.bp&&this.bp.$a();this.nl&&this.nl.$a();this.El&&this.El.$a();this.Xj&&this.Xj.$a()}remove(){null!=this.Xj&&(this.Xj.remove(),this.XQ=null);null!=this.Jo&&(this.Jo.remove(),this.aG=
null);null!=this.bp&&(this.bp.remove(),this.vG=null);null!=this.nl&&(this.nl.remove(),this.DK=null);null!=this.El&&(this.El.remove(),this.SK=null);this.na=null}}f.f$=c})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){this.daa=null}iKa(a,c){this.Xm=this.Kza(c);const d=null==this.Xm?e.model.oc.tj.VT().clone():this.Xm.Eh(this.Xm.A,this.Xm.$).clone();d.am=d.am==e.model.oc.tj.hea().am?2:d.am;for(var g=0;g<a.zx.length;g++){var k=this.tva(a.zx[g],c);0!=k?a.oi(a.zx[g],this.IBa(k,a.zx[g],d.clone())):a.cDa(a.zx[g])}this.Xm=null}IBa(a,c,d){var g="count"==c||null!=this.Xm&&e.u.i.ea.xe(this.Xm.$),k="count"!=c&&null!=this.Xm&&e.u.i.ea.de(this.Xm.$),m=
null!=this.Xm&&this.Xm.type==e.u.i.Ra.ec&&e.u.i.ea.pp(this.Xm.$);d.de="count"==c?!1:d.de;d.yd=null!=this.Xm&&this.Xm.$==e.u.i.ea.Si?"":d.yd;return m&&!isNaN(a)&&"count"!=c?e.P.ey(a,e.model.C.F.np):u.bc.format(a,d,g,k)}tva(a,c){switch(a){case "sum":return this.wva(c);case "average":return this.uva(c);case "count":return this.vva(c)}return 0}wva(a){for(var c=0,d=0;d<a.length;d++)c+=a[d].li&&!isNaN(a[d].value)&&this.UU(a[d])?a[d].value:0;return c}uva(a){for(var c=0,d=0,g=0;g<a.length;g++)a[g].li&&!isNaN(a[g].value)&&
this.UU(a[g])&&(c+=a[g].value,d++);return 0==d?0:c/d}vva(a){for(var c=0,d=0;d<a.length;d++)(a[d].li&&!isNaN(a[d].value)||a[d].ul&&a[d].li&&""!=a[d].label)&&c++;return c}Kza(a){for(var c=null,d=0;d<a.length;d++)if(this.UU(a[d])&&null==c&&!e.v(a[d].measure))c=a[d].measure;else if(this.UU(a[d])&&null!=c&&c.A!=a[d].measure.A){c=null;break}return c}UU(a){return a.ul&&a.li&&!isNaN(a.value)||a.li&&null!=a.measure&&!isNaN(a.value)&&e.u.i.Ra.wc!=a.measure.type&&e.u.i.Ra.Ua!=a.measure.type&&e.u.i.Ra.Mc!=a.measure.type}get Xm(){return this.daa}set Xm(a){this.daa=
a}}f.fla=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.Ga{constructor(c=null){super("div","fm-auto-calculation-bar");this.OZ=["average","count","sum"];this.nL={};this.cR={right:-1E3,bottom:1E3};this.xsa=new e.ub;this.OZ=null==c?this.OZ:c;this.sfa();this.Ke()}sfa(){this.nL.average=e.model.B.j.T6;this.nL.sum=e.model.B.j.d$;this.nL.count=e.model.B.j.w7}get In(){return this.xsa}Ke(){this.ZZ=new x.Ga("div");this.ZZ.V("position","relative");this.X(this.mia);this.vsa=new x.Ga("div","fm-auto-calculation-bar-conainer");
this.qw.V("position","absolute");this.ZZ.X(this.qw);for(var c,d=0;d<this.zx.length;d++)c=new a,c.Uia(this.nL[this.zx[d]]),this.qw.X(c),this.In.Ta(this.zx[d],c)}DDa(){return-1E3!=this.cR.right&&1E3!=this.cR.bottom}oi(c,d){this.In.getItem(c).qLa(d)}cDa(c){this.In.getItem(c).$a()}get qw(){return this.vsa}get mia(){return this.ZZ}qFa(){for(var c,d=0;d<this.In.length;d++)c=this.In.fa(d),c.visible||c.show()}uDa(){for(var c=0;c<this.In.length;c++)if(this.In.fa(c).visible)return!1;return!0}get Yl(){return this.cR}get zx(){return this.OZ}CKa(){this.cR=
{right:-1E3,bottom:1E3}}updateLabels(){this.sfa();for(var c=0;c<this.In.length;c++)this.In.fa(c).Uia(this.nL[this.zx[c]])}clear(){for(;0<this.In.length;)this.In.fa(0).dispose(),this.In.s5(0);this.dispose()}}f.ela=b;class a extends x.Ga{constructor(){super("div","fm-auto-calculation-bar-content");this.display="inline-block";this.Ke()}Ke(){this.qba=new x.Ga("div","fm-auto-calculation-bar-content-text");this.X(this.qba);this.rba=new x.Ga("div","fm-auto-calculation-bar-content-results");this.X(this.rba)}show(){this.element.style.display=
this.display}Uia(c){this.qba.text(c+":")}qLa(c){this.rba.text(c)}}f.xNa=a})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
class $a extends x.Ga{constructor(){super("div","fm-scroll-pane");this.Oaa=()=>this.P4();this.rG=!1;this.jZ=this.iZ=0;u.uj.Yo&&this.aa("fm-scrollbars");this.du=new x.Ga("div","fm-scroll-placeholder");this.bR=new x.Ga("div","fm-scroll-content");this.X(this.du);this.X(this.bR);this.element.addEventListener("scroll",this.Oaa,!0)}P4(){if(this.rG)return this.rG=!1;this.Ya(bb)}get WC(){return this.du.width}set WC(e){this.du.width=e}get p0(){return this.du.height}set p0(e){this.du.height=e}get scrollLeft(){return this.element.scrollLeft}set scrollLeft(e){this.rG=
!1;this.element.scrollLeft=Math.max(0,e)}set iO(e){this.rG=!0;this.element.scrollLeft=Math.max(0,e)}get scrollTop(){return this.element.scrollTop}set scrollTop(e){this.rG=!1;this.element.scrollTop=Math.max(0,e)}set kO(e){this.rG=!0;this.element.scrollTop=Math.max(0,e)}get placeholder(){return this.du}get content(){return this.bR}get Gs(){return this.iZ}set Gs(e){this.iZ=e;this.bR.left=-this.iZ}get VC(){return this.jZ}set VC(e){this.jZ=e;this.bR.top=-this.jZ}set fDa(e){this.element.style.overflowX=
e?"scroll":"hidden"}set hNa(e){this.element.style.overflowY=e?"scroll":"hidden"}dispose(){this.element&&this.element.removeEventListener("scroll",this.Oaa);super.dispose()}}var bb="fm_scroll_event";
(function(e){(function(l){(function(h){(function(f){class b extends f.$O{constructor(a){super(a,null);this.da=a}nb(){var a=[],c=new Qa;if(e.model.C.F.Zk){c.tag="div";c.aa("fm-row");c.text+=ab(this.Uxa());for(var d=0;d<this.da.Zd;d++)c.text+=ab(this.sca(d));a.push(ab(c));for(d=0;d<this.da.he;d++)c.text=ab(this.VS(d)),a.push(ab(c))}a=a.join("");this.element.innerHTML!=a&&this.html(a)}clear(){}}f.qra=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
class cb{constructor(){this.text=this.tag="";this.style={};this.attr={};this.classes=[];this.addClass=function(e){0>this.classes.indexOf(e)&&this.classes.push(e)};this.toHtml=function(){var e="<"+this.tag,l=[],h;for(h in this.style)l.push(h+":"+this.style[h]);0<l.length&&(e+=' style="'+l.join(";")+';"');0<this.classes.length&&(e+=' class="'+this.classes.join(" ")+'"');for(var f in this.attr)e+=" "+f+'="'+this.attr[f]+'"';return e+=">"+(this.text||"")+"</"+this.tag+">"};this.tag="div"}}
function ab(e,l=!0){var h=e.node.toHtml();l&&e.clear();null!=q.K.Y.W.ne.Lw&&(h=q.model.Tb.valid(h)?h:q.model.Tb.validate(h));return h}
class Qa{get node(){return this.nta}constructor(e="div"){this.nta=new cb;this.clear();this.tag=e}get tag(){return this.node.tag}set tag(e){this.node.tag=e}get text(){return this.node.text}set text(e){this.node.text=e}get style(){return this.node.style}set style(e){this.node.style=e}get attr(){return this.node.attr}set attr(e){this.node.attr=e}aa(e){this.node.addClass(e)}clear(){this.tag="div";this.text="";this.style={};this.attr={};this.node.classes=[]}}
(function(e){(function(l){(function(h){(function(f){class b extends f.nF{nb(){this.vA();var a=this.To();if(this.ac||this.da.cE(a.bottom)||this.da.bE(a.right)||!this.Cm.contains(a)){var c=a.clone();0!=this.da.Ji&&(c.right=Math.min(c.right,this.da.Ji));0!=this.da.dk&&(c.bottom=Math.min(c.bottom,this.da.dk));if(!this.ac||!this.vi.contains(c)||!this.da.yw&&(a.left>this.da.Zd&&a.left<=this.vi.left||a.top>this.da.he&&a.top<=this.vi.top))this.da.bE(a.right)&&(a.left=Math.max(a.left-1,this.da.Zd)),this.da.cE(a.bottom)&&
(a.top=Math.max(a.top-1,this.da.he)),this.sb.content.html(this.ZG(a)),this.ac=!1,this.Cm.set(a)}}lL(){this.ac?(this.sb.VC=this.da.scrollTop-this.da.qu(this.da.he,this.vi.top),this.sb.Gs=this.da.scrollLeft-this.da.ru(this.da.Zd,this.vi.left)):(this.sb.VC=-this.da.VM(this.Cm.top),this.sb.Gs=-this.da.BM(this.Cm.left))}uz(){var a=this.sb.WC;this.vA();a=this.sb.WC-a;var c=this.To(!0);if(!(this.ac&&this.da.yw&&this.vi.contains(c))){var d=this.Vea(),g=this.Uea(),k=this.To();this.vi=c;this.sb.content.html(this.ZG(c));
this.sb.VC=this.da.qu(this.vi.top,k.top)-d;this.sb.Gs=this.da.ru(this.vi.left,k.left)-g;this.ac||this.da.cE(this.Cm.bottom)||(this.sb.kO=this.da.ED(this.da.Lg,!1));this.ac||(this.da.bE(this.Cm.right)?(this.da.NI=a,this.sb.Gs+=this.da.NI):this.sb.iO=this.da.sD(this.da.Bf,!1));this.ac=!0}}To(a=!1){var c=new f.pF;c.top=this.da.wH(a);c.left=this.da.vH(a);c.bottom=this.da.Gz(a);c.right=this.da.rD(a);return c}vA(){this.sb.WC=Math.max(this.da.Eu,this.da.Fd-this.da.IE);this.sb.p0=Math.max(this.da.Du,this.da.Ed-
this.da.HE);this.sb.content.right=this.da.IE;this.sb.content.bottom=this.da.HE;this.sb.fDa=this.da.LD;this.sb.hNa=this.da.ND}ZN(a,c){for(var d=[],g=this.To(!0),k=g.top;k<g.bottom;k++)for(var m=0;m<a.length;m++){var n=a[m];this.P2(k,n)||(n=this.kz(k,n),delete n.attr.tabindex,d.push(ab(n)))}var p=this.Ul.content.element.querySelector(".fm-row-hidden");null==p&&(p=document.createElement("div"),p.classList.add("fm-row"),p.classList.add("fm-row-hidden"),this.Ul.content.element.appendChild(p),this.Ul.content.element.insertBefore(p,
this.Ul.content.element.childNodes[0]));p.innerHTML=e.vt(d.join(""));this.requestAnimationFrame(()=>{for(var t=0;t<p.children.length;t++)this.MO(p.children.item(t),!1,!0);c()})}dispose(){super.dispose();this.sb.dispose()}}f.Q7=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends f.nF{nb(){this.vA();var a=this.To();if(this.ac||this.da.cE(a.bottom)||!this.Cm.contains(a)){var c=a.clone();0!=this.da.dk&&(c.bottom=Math.min(c.bottom,this.da.dk));this.ac&&this.vi.contains(c)||(this.da.cE(a.bottom)&&(a.top=Math.max(a.top-1,this.da.he)),this.sb.content.html(this.ZG(a,e.model.C.F.Zk)),this.GR=!1,this.Cm.set(a))}}VS(a){this.cell=super.VS(a);this.cell.style["min-height"]=this.cell.style.height;delete this.cell.style.height;
delete this.cell.style["line-height"];return this.cell}lL(){this.sb.VC=this.ac?this.da.scrollTop-this.da.qu(this.da.he,this.vi.top):-this.da.VM(this.Cm.top)}To(a=!1){var c=new f.pF;c.top=this.da.wH(a);c.left=0;c.bottom=this.da.Gz(a);c.right=this.da.Zd;a&&c.bottom==this.da.dk&&c.bottom++;return c}uz(){var a=this.To(!0);if(!(this.ac&&this.da.yw&&this.vi.contains(a))){var c=this.Vea(),d=this.To();this.vi=a;this.sb.content.html(this.ZG(a,e.model.C.F.Zk));this.sb.VC=this.da.qu(this.vi.top,d.top)-c;this.ac||
this.da.cE(this.Cm.bottom)||(this.da.scrollTop=this.sb.kO=this.da.ED(this.da.Lg,!1));this.ac=!0}}$Ma(a){for(var c=0;c<a.Ka.length;c++){const d=this.sb.content.element.querySelectorAll(`[data-c="${c}"]`);for(let g=0;g<d.length;g++)d.item(g).style.minWidth=this.da.Dh(c)+"px"}}vA(){this.sb.p0=this.da.Du+this.da.HE;this.sb.content.bottom=0;this.sb.scrollTop=this.da.scrollTop}I1(a,c){a=this.da.CM(a,!0)-1;c=this.da.WM(c)-1;var d=this.zn(c,a);null==d&&(d=new h.W.ne,d.lb=c,d.kc=a);return d}}f.Wqa=b})(h.sheet||
(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends f.nF{constructor(a,c){super(a,c);this.Cn=new f.lY(this);this.qR=new f.eoa(this)}nb(){u.cancelIdleCallback(this.xK);this.vA();var a=this.To();if(this.ac||this.da.bE(a.right)||!this.Cm.contains(a)){var c=a.clone();0!=this.da.Ji&&(c.right=Math.min(c.right,this.da.Ji));this.ac&&this.vi.contains(c)||(this.da.bE(a.right)&&(a.left=Math.max(a.left-1,this.da.Zd)),this.Cn.Mx(),this.qR.Mx(),this.sb.content.html(this.ZG(a,!1,e.model.C.F.Zk)),
this.Cn.tA(),this.qR.tA(),this.ac=!1,this.Cm.set(a))}}lL(){this.sb.Gs=this.ac?this.da.scrollLeft-this.da.ru(this.da.Zd,this.vi.left):-this.da.BM(this.Cm.left)}To(a=!1){var c=new f.pF;c.top=0;c.left=this.da.vH(a);c.bottom=this.da.he;c.right=this.da.rD(a);a&&c.right==this.da.Ji&&c.right++;return c}uz(){var a=this.sb.WC;this.vA();a=this.sb.WC-a;var c=this.To(!0);if(!(this.ac&&this.da.yw&&this.vi.contains(c))){u.cancelIdleCallback(this.xK);var d=this.Uea(),g=this.To();this.vi=c;this.Cn.Mx();this.qR.Mx();
this.sb.content.html(this.ZG(c,!1,e.model.C.F.Zk));this.Cn.tA();this.qR.tA();this.sb.Gs=this.da.ru(this.vi.left,g.left)-d;this.ac||(this.da.bE(this.Cm.right)?this.sb.Gs+=a:this.sb.iO=this.da.sD(this.da.Bf,!1));this.ac=!0}}vA(){this.sb.WC=this.da.Eu+this.da.IE;this.sb.content.right=0}lva(){u.cancelIdleCallback(this.xK);this.xK=u.requestIdleCallback(()=>this.F$())}F$(){var a=this.da.bBa();if(0!=a.length){for(var c=[],d=0;d<this.da.he;d++)for(var g=0;g<a.length;g++){var k=a[g];this.P2(d,k)||(k=this.kz(d,
k),delete k.attr.tabindex,c.push(ab(k)))}var m=this.Ul.content.element.querySelector(".fm-row-hidden");null==m&&(m=document.createElement("div"),m.classList.add("fm-row"),m.classList.add("fm-row-hidden"),this.Ul.content.element.insertBefore(m,this.Ul.content.element.childNodes[0]));m.innerHTML=e.vt(c.join(""));this.requestAnimationFrame(()=>{for(var n=0;n<m.children.length;n++)this.MO(m.children.item(n),!1,!0);this.xK=u.requestIdleCallback(()=>this.F$())})}}ZN(a,c){for(var d=[],g=0;g<this.da.he;g++)for(var k=
0;k<a.length;k++){var m=a[k];this.P2(g,m)||(m=this.kz(g,m),delete m.attr.tabindex,d.push(ab(m)))}var n=this.Ul.content.element.querySelector(".fm-row-hidden");null==n&&(n=document.createElement("div"),n.classList.add("fm-row"),n.classList.add("fm-row-hidden"),this.Ul.content.element.insertBefore(n,this.Ul.content.element.childNodes[0]));n.innerHTML=e.vt(d.join(""));this.requestAnimationFrame(()=>{for(var p=0;p<n.children.length;p++)this.MO(n.children.item(p),!1,!0);c()})}I1(a,c){a=this.da.CM(a)-1;
c=this.da.WM(c,!0)-1;var d=this.zn(c,a);null==d&&(d=new h.W.ne,d.lb=c,d.kc=a);return d}EL(){u.cancelIdleCallback(this.xK)}dispose(){this.EL();super.dispose()}}f.D7=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.Ga{constructor(){super("div","fm-grid-layout");this.Fja=1E3;this.Wy=[];this.aC=!1;this.c0=a=>this.xGa(a);this.Cia=a=>this.uIa(a);this.oja=a=>this.EIa(a);this.FL=0;this.cm();this.da=new f.Nh;this.yn=new f.pra(this.da);this.Fn=new f.ora(this);this.Ke();this.af(-1);this.preventScroll()}Ke(){this.C0();this.Vxa();this.rca();this.Txa();this.Exa();this.Sxa()}C0(){this.ws=new x.Tc;this.ws.G.display="block";this.ws.aa("fm-grid-title");this.ws.aa("fm-pivot-title");
this.ws.LW(!0);this.ws.G.V("position","relative");this.ws.$a();this.uC(this.ws)}Vxa(){this.vs=new f.qra(this.da);this.vs.aa("fm-sheet-headers");this.X(this.vs)}rca(){this.od=new f.D7(this.da,(a,c)=>this.ag(a,c));this.od.aa("fm-cols-sheet");this.od.sb.element.addEventListener("wheel",this.c0);this.od.N(h.uc.po,a=>this.Pk(a));u.Nd().im&&(this.od.sb.V("overflow","scroll"),this.od.sb.placeholder.V("z-index","1"),this.od.sb.N(bb,()=>this.vGa(),!0));this.X(this.od)}Txa(){this.Ce=new f.Wqa(this.da,(a,c)=>
this.ag(a,c));this.Ce.aa("fm-rows-sheet");this.Ce.sb.element.addEventListener("wheel",this.Cia);this.Ce.N(h.uc.po,a=>this.Pk(a));u.Nd().im&&(this.Ce.sb.V("overflow","scroll"),this.Ce.sb.placeholder.V("z-index","1"),this.Ce.sb.N(bb,()=>this.tIa(),!0));this.X(this.Ce)}Exa(){this.Uc=new f.Q7(this.da,(a,c)=>this.ag(a,c));this.Uc.aa("fm-data-sheet");this.Uc.sb.N(bb,()=>this.JGa(),!0);this.Uc.N(f.nF.RX,a=>this.tha(a));this.Uc.N(f.nF.X7,a=>this.tha(a));this.Uc.N(h.uc.po,a=>this.Pk(a));this.X(this.Uc)}Sxa(){this.js=
new f.qma(this);this.js.aa("fm-cols-resize");this.js.N(h.uc.RF,a=>this.sGa(a));this.X(this.js);this.rs=new f.Xqa(this);this.rs.aa("fm-rows-resize");this.rs.N(h.uc.SF,a=>this.sIa(a));this.X(this.rs);this.element.addEventListener("dblclick",this.oja)}nb(a=!1){this.da.jja();this.da.vS();this.Uc.width&&this.Uc.height||this.iH();this.da.setScale();this.da.NI=0;this.oba();e.sr(this.pZ);this.O0();this.Wy.push(this.requestAnimationFrame(()=>this.oZ(a)))}O0(){for(;0<this.Wy.length;)this.cancelAnimationFrame(this.Wy.pop())}oZ(a=
!1){this.Ya(l.Vi.ly,this,{smooth:!1});l.Sb.Jb.Ya(l.Vi.ly,this,{smooth:!1});const c=this.da.kS();this.ac&&this.Ce.$Ma(c);this.hH();this.aC&&(this.Q_()&&(this.da.kS(),this.od.SG(),this.Ce.SG(),this.hH()),this.aC=!1);this.fM();e.model.Za.R().Ha(new e.model.jd(e.model.Za.qp,{smooth:!1}));this.Wy.push(this.requestAnimationFrame(()=>{this.iH();this.Fn.nb()}));this.Wy.push(this.requestAnimationFrame(()=>{var d=!a&&this.P_();d?(this.od.SG(),this.Ce.SG(),this.Uc.SG(),this.nb(!0)):this.da.yva&&(e.sr(this.pZ),
this.pZ=e.ve(()=>this.uz(),this.Fja));!d&&e.model.C.F.sz&&this.lI()}));this.Wy.push(this.requestAnimationFrame(()=>{this.Ya(l.Vi.qp,this,{smooth:!1});l.Sb.Jb.Ya(l.Vi.qp,this,{smooth:!1})}))}hH(){this.T0();this.da.cX=this.ifa()?this.ws.zd(!0):0;this.od.nb();this.od.lL();this.Ce.nb();this.Ce.lL()}fM(){this.vs.nb();this.Fn.nb();this.js.nb();this.rs.nb();this.Uc.nb();this.Uc.lL()}T0(){this.ifa()?(this.ws.fb(e.model.C.F.gq),this.ws.show()):this.ws.$a()}ifa(){return!(e.ka(e.model.C.F.gq)||this instanceof
f.flat.Mv&&this.ul)}Q_(){this.od.$y(!0);this.Ce.$y(!0);return this.od.ZD||this.Ce.ZD}P_(){this.Uc.$y(!0);this.od.$y(!0);this.Ce.$y(!0);return this.Uc.ZD||this.od.ZD||this.Ce.ZD}uz(){this.O0();this.Wy.push(this.requestAnimationFrame(()=>this.Osa()))}Osa(){this.ZN(()=>{l.Sb.Jb.Ya(l.Vi.ly,this,{smooth:!0});this.od.uz();this.Ce.uz();this.Uc.uz();this.da.scrollLeft=this.Uc.sb.scrollLeft;this.da.scrollTop=this.Uc.sb.scrollTop;e.model.Za.R().Ha(new e.model.jd(e.model.Za.qp,{smooth:!0}));this.type==f.flat.Mv.TYPE&&
e.model.C.F.sz&&this.lI();this.da.yw||0!=this.da.scrollLeft||this.od.lva();this.Wy.push(this.requestAnimationFrame(()=>{l.Sb.Jb.Ya(l.Vi.qp,this,{smooth:!0})}))})}ZN(a){var c=this.da.cBa(this.da.To(!0));0==c.length?a():this.od.ZN(c,()=>{this.Uc.ZN(c,a)})}tha(a){a.type==f.nF.RX&&this.requestAnimationFrame(()=>{this.od.Wja();this.Ce.Wja()})}JGa(){this.L5(this.Uc.sb.scrollTop,this.Uc.sb.scrollLeft)}tIa(){this.L5(this.Ce.sb.scrollTop)}vGa(){this.L5(NaN,this.od.sb.scrollLeft)}uIa(a){if(this.coords.ND){var c=
a.wheelDeltaY||a.deltaY||a.wheelDelta||0;u.Nd().fj&&(c*=-1);isNaN(c)||0==c||(this.Uc.sb.scrollTop=this.da.scrollTop-c);a.preventDefault()}}xGa(a){if(this.coords.LD){var c=a.wheelDeltaX||a.deltaX||0;u.Nd().fj&&(c*=-1);0!=c&&(this.Uc.sb.scrollLeft=this.da.scrollLeft-c);a.preventDefault()}}preventScroll(){this.element.addEventListener("scroll",a=>{a.target.scrollTo(0,0)})}get slice(){return this.Pb}set slice(a){this.Pb=a}get type(){return this.Fg}get coords(){return this.da}iH(){this.width=this.coords.lq;
this.height=this.coords.Us;this.js.left=0;this.js.top=this.coords.we;this.js.right=0;this.js.height=this.coords.Vu();this.rs.left=0;this.rs.top=this.coords.we;this.rs.bottom=0;this.rs.width=this.coords.Rs()}updateLabels(){this.lO&&this.lO.updateLabels()}get Lr(){var a=[];if(0<this.lO.Lr.length)for(var c,d=0;d<this.Fn.Lr.length;d++)null!=this.Fn.Lr.fa(d).Xj&&(c=this.Fn.bH(this.Fn.Lr.fa(d).Aw),this.ACa(a,c.from,c.tm));return a}ACa(a,c,d){if(c&&d)for(var g=this.Fn.oAa(c,d);g<=this.Fn.IMa(c,d);g++)for(var k=
this.Fn.gAa(c,d);k<=this.Fn.wMa(c,d);k++){var m=this.ag(g,k,!0);null==m&&(m=new h.W.ne,m.lb=g,m.kc=k);a.push(m)}}ag(a,c,d=!1){var g=this.yn.getData(a,c,!d);return d&&null==g?this.yn.uBa(a,c):g}insertCell(a,c,d,g=!1){this.yn.setData(a,c,d,g)}resize(a,c){this.da.resize(a,c,!0)}set vD(a){this.yn.vD=a}$ia(a,c){this.da.Tp=a;this.da.$l=c}Zda(a){a!=this.da.he&&(this.da.Lg=a+(this.da.Lg-this.da.he));this.da.he=a}eAa(a){a!=this.da.Zd&&(this.da.Bf=a+(this.da.Bf-this.da.Zd));this.da.Bf<a&&(this.da.Bf=a);this.da.Zd=
a}wu(){this.aC=!0;this.yn.reset();this.da.reset();this.od.Dw();this.Ce.Dw();this.Uc.Dw();this.Fn.clear();this.Uc.sb.scrollTop=0;this.Uc.sb.scrollLeft=0;this.EL()}clearData(){this.yn.reset();this.od.Dw();this.Ce.Dw();this.Uc.Dw();this.da.vS();this.da.Xva()}TG(a){this.aC=!0;this.da.TG(a)}IC(a){this.aC=!0;this.da.IC(a)}V_(){this.aC=!0;this.da.V_()}DL(){this.aC=!0;this.da.DL()}select(a,c,d,g){this.Fn.mLa(new f.Dp(c,a),new f.Dp(g,d));this.element.focus({preventScroll:!0})}Ks(){this.Fn.clear();this.element.blur()}EL(){this.O0();
e.sr(this.pZ);e.sr(this.Wba);this.od.EL()}dispose(){this.yn.dispose();this.Fn.dispose();this.EL();this.od.sb.element&&this.od.sb.element.removeEventListener("wheel",this.c0);this.od.dispose();this.Ce.sb.element&&this.Ce.sb.element.removeEventListener("wheel",this.Cia);this.Ce.dispose();this.Uc.dispose();this.js.dispose();this.rs.dispose();this.element&&this.element.removeEventListener("dbclick",this.oja);super.dispose()}Pk(a){null!=a.cell&&this.Ha(a);this.qGa(a)}sq(a){this.Ha(a)}qGa(a){!a.cell||void 0==
this.zS||a.cell.lb==this.zS.y&&a.cell.kc==this.zS.x?this.FL++:(e.sr(this.Wba),this.FL=1);1==this.FL&&(this.Wba=e.ve(()=>{if(1==this.FL){if(a.cell){var c=new h.L8(a.cell,!0,a.element);this.Ha(c)}}else a.cell&&(c=new h.L8(a.cell,!1,a.element),this.Ha(c));this.FL=0;this.zS=void 0},300),a.cell&&(this.zS=new f.Dp(a.cell.kc,a.cell.lb)))}L5(a=NaN,c=NaN){var d=!1;isNaN(a)||a==this.coords.scrollTop||(this.coords.scrollTop=a,this.coords.Lg=this.coords.WM(a),this.Ce.sb.kO=a,d=!0);isNaN(c)||c==this.coords.scrollLeft||
(this.coords.scrollLeft=c,this.coords.Bf=this.coords.CM(c),this.od.sb.iO=c,d=!0);d&&this.nb()}sGa(a){this.Ha(a);this.da.kS();0<a.data.width?this.da.nO(a.data.kc,a.data.width,!1,!0):this.da.BKa(a.data.kc);this.fT()}sIa(a){this.Ha(a);this.da.kS();0<a.data.height?this.da.Rx(a.data.lb,a.data.height,!1,!0):this.da.DKa(a.data.lb);this.fT()}EIa(a){if(0!=e.model.C.F.Zk){var c=this.sg(),d=a.clientX-c.left;a=a.clientY-c.top;d>this.coords.Rs()&&a>this.coords.we+this.coords.Vu()||(a=this.coords.gU(a,this.ac),
d=this.coords.LT(d,this.ac),-1!=a||isNaN(d)||this.js.Ya(h.uc.RF,this,{width:-1,kc:d}),-1!=d||isNaN(a)||(this.rs.Ya(h.uc.SF,this,{height:-1,lb:a}),this.Ya(h.uc.Kqa,this,{height:-1,lb:a})))}}fT(){this.od.Dw();this.Ce.Dw();this.Uc.Dw();this.oba();this.nb()}oba(){if(0<this.coords.scrollLeft&&0<this.coords.dAa){var a=Math.max(0,this.coords.Eu-this.coords.Fd+this.coords.IE);this.coords.scrollLeft=a;this.coords.Bf=this.coords.CM(a);this.Uc.sb.iO=a;this.od.sb.iO=a}0<this.coords.scrollTop&&0<this.coords.cAa&&
(a=Math.max(0,this.coords.Du-this.coords.Ed+this.coords.HE),this.coords.scrollTop=a,this.coords.Lg=this.coords.WM(a),this.Uc.sb.kO=a,this.Ce.sb.kO=a)}Tu(a){var c=x.Ga.Yb(a);a=c.closest(".fm-cell");return null!=a?(c=parseInt(a.attr("data-r")),a=parseInt(a.attr("data-c")),this.ag(c,a,!0)):null!=c.closest(".fm-page-filter")&&null!=c.closest(".fm-filter-header")?(a=c.closest(".fm-filter-header"),a=parseInt(a.attr("data-h")),a=this.slice.qb.fa(a),c=new h.W.ne,c.label=a.caption,c.vl=!0,c.hierarchy=a,c):
null}jea(a,c){c=this.coords.gU(c-this.offset().top,this.ac);a=this.coords.LT(a-this.offset().left,this.ac);let d=this.ag(c,a,!0);e.v(d)&&(d=new h.W.ne,d.lb=c,d.kc=a);return d}get ac(){return this.Uc.ac}Kr(a){a=Math.min(a,this.coords.dk);this.Uc.sb.scrollTop=this.coords.ED(a)}ot(a){a=Math.min(a,this.coords.Ji);this.Uc.sb.scrollLeft=this.coords.sD(a)}cLa(){this.Uc.sb.scrollTop+=this.coords.Ed}fLa(){this.Uc.sb.scrollTop-=this.coords.Ed}eLa(){this.Uc.sb.scrollLeft+=this.coords.Fd}dLa(){this.Uc.sb.scrollLeft-=
this.coords.Fd}get J(){return this.yn}get lO(){return this.Fn}v5(a,c){this.coords.nO(a,c,!1,!0)}x5(a,c){this.coords.Rx(a,c,!1,!0)}lI(){this.Ls({en:(a,c,d,g)=>this.en(a,c,d,g),dn:(a,c,d,g)=>this.dn(a,c,d,g),om:(a,c,d,g)=>this.om(a,c,d,g)})}tca(a){var c=new x.Ga("span");c.aa("fm-helper");c.aa("fm-draggable");c.aa("fm-header-helper");c.V("position","absolute");c.V("z-index",100);c.text(a.element.firstChild.textContent);a=new x.Ga("i","fm-remove-icon");c.X(a);return c}dn(a,c,d,g){a&&a.ab("fm-drag-remove",
!1);c&&c.ab("fm-drag-remove",!1);a=x.Ga.Yb(g.target);a.Sc("fm-header-drop-indicator")||this.VE(a,a)}om(a,c){this.sm();a&&a.ab("fm-drag-remove",!0);c&&c.ab("fm-drag-remove",!0)}en(){}VE(){}Jw(){return this.xd?this.xd:new x.Ga("div","fm-header-drop-indicator")}sm(){this.xd&&(this.xd.Qg(!0),this.xd=null)}OV(a){e.sr(this.WEa);var c=this.slice.Yc.uh(a.bh);if(!e.v(c)){var d=this.Oxa(c,a.value);if(c.filter.Wu||null!=d)c.filter.Wu&&a.value==c.filter.query.value||(this.WEa=e.ve(()=>{e.model.Wa.R().Il(c.A,
d);c.filter.Rfa=!0},300))}}Oxa(a,c){var d={};if(e.model.hb.lB.ZT(a)==e.u.i.tb.jb){a=parseFloat(c);if(isNaN(a))return null;d.query={equal:a}}else{if(e.ka(c))return null;d.query={contain:c}}return d}}f.e7=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends f.$O{constructor(a){super(a,null);this.da=a;this.vb=[];this.aa("fm-filters");this.N(h.uc.po,c=>this.Pk(c));this.N("keydown",c=>this.oE(c));this.Cn=new f.lY(this)}nb(){for(var a=[],c=new Qa,d=0;d<this.da.he;d++){c.tag="div";c.aa("fm-row");for(var g=0;g<this.da.Zd;g++)if(e.model.C.F.st){var k=d-this.da.he+this.vb.length;c.text+=ab(this.SS(d,g,0<=k?this.vb[k]:null))}else c.text+=ab(this.kz(d,g));a.push(ab(c))}a=a.join("");this.element.innerHTML!=
a&&(this.Cn.Mx(),this.html(a),this.Cn.tA())}SS(a,c,d){var g=this.vb.indexOf(d);this.cell.clear();this.cell.tag="div";this.cell.aa(h.W.ya.Ne);this.cell.aa(h.W.ya.qk);this.cell.aa(h.W.ya.Nv);d?(this.cell.aa(h.W.ya.Sf+g),this.cell.text=e.P.Ro(d.caption,!0,!0).replace(/\n/g,"<br>"),d.vN&&(e.model.C.F.cn?(this.Sz(this.cell,d),this.cell.aa(h.W.ya.SJ),this.cell.attr["data-h-name"]=d.A,this.cell.text+=this.Cn.z0(d)):e.model.C.F.Vx&&(this.cell.attr.title=e.model.B.j.EB,this.Sz(this.cell,d)))):this.cell.aa(h.W.ya.CX);
this.Via(this.cell,a,c);this.cell.attr["data-c"]=c;this.cell.attr["data-r"]=a;0<=g&&(this.cell.attr["data-h"]=g,this.cell.attr.tabindex="0");return this.cell}Sz(a,c){a.aa(h.W.ya.Kq);c.filter.Fh&&(a.aa(h.W.ya.YX),a.text+=this.No(h.W.ya.EJ,e.model.B.j.UY));a.text+=this.No(h.W.ya.KJ)}xA(a){for(var c=this.vb.length=0;c<a.length;c++){var d=a.fa(c);0==d.We&&this.vb.push(d)}}Pk(a){if(!e.model.C.F.cn){var c=a.element;c.Sc(h.W.ya.Kq)&&(c=parseInt(c.attr("data-h")),isNaN(c)||this.Ha(new h.IP(this.vb[c],a.cell)))}}oE(a){if(!e.model.C.F.cn&&
(32==a.keyCode||13==a.keyCode)){var c=a.target;a=parseInt(c.getAttribute("data-r"));c=parseInt(c.getAttribute("data-c"));isNaN(a)||isNaN(c)||this.Ha(new h.JP(a,c))}}clear(){this.vb.length=0;this.nb()}}f.a$=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends f.$O{constructor(a){super(a,null);this.rowIndex=0;this.da=a;this.vb=[];this.aa("fm-filters");this.$a();this.N(h.uc.po,c=>this.Pk(c));this.N("keydown",c=>this.oE(c));this.Cn=new f.lY(this)}nb(){this.Cn.Mx();this.Kx();if(e.model.C.F.st){var a=new Qa("div");a.aa("fm-row");a.style.height=this.da.$d(this.rowIndex)+"px";for(var c=0;c<this.vb.length;c++)a.text+=ab(this.SS(this.rowIndex,c,this.vb[c]));this.html(ab(a));this.Cn.tA();0==this.vb.length?
this.$a():this.show()}else this.$a()}SS(a,c,d){this.cell.clear();this.cell.tag="div";this.cell.aa(h.W.ya.Ne);this.cell.aa(h.W.ya.qk);d&&(this.cell.text=e.P.Ro(d.caption,!0,!0).replace(/\n/g,"<br>"),d.vN&&(e.model.C.F.cn?(this.Sz(this.cell,d),this.cell.aa(h.W.ya.SJ),this.cell.attr["data-h-name"]=d.A,this.cell.text+=this.Cn.z0(d)):e.model.C.F.Vx&&(this.cell.attr.title=e.model.B.j.EB,this.Sz(this.cell,d))));this.cell.style["min-height"]=this.da.$d(a)+"px";this.cell.style["max-height"]=this.da.$d(a)+
"px";this.cell.attr["data-r"]=a;this.cell.attr["data-c"]=this.da.Bf+c;this.cell.attr["data-h"]=c;this.cell.attr.tabindex="0";return this.cell}Sz(a,c){a.aa(h.W.ya.Kq);c.filter.Fh&&(a.aa(h.W.ya.YX),a.text+=this.No(h.W.ya.EJ,e.model.B.j.UY));a.text+=this.No(h.W.ya.KJ)}xA(a){for(var c=this.vb.length=0;c<a.length;c++){var d=a.fa(c);0==d.We&&this.vb.push(d)}0==this.vb.length?this.$a():this.show()}Pk(a){if(!e.model.C.F.cn&&(a=a.element,a.Sc(h.W.ya.Kq))){var c=parseInt(a.attr("data-h"));isNaN(c)||this.Ha(new h.IP(this.vb[c],
null,a))}}oE(a){if(!e.model.C.F.cn&&(32==a.keyCode||13==a.keyCode)){var c=a.target;a=parseInt(c.getAttribute("data-r"));c=parseInt(c.getAttribute("data-c"));isNaN(a)||isNaN(c)||this.Ha(new h.JP(a,c))}}clear(){this.vb.length=0;this.nb()}}f.rma=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.Ga{constructor(){super();this.vb=[];this.aa("fm-ui-hgroup");this.aa("fm-filters");this.$a()}nb(){this.Kx();if(e.model.C.F.Vx&&e.model.C.F.MI){var c=[];for(let d=0;d<this.vb.length;d++){const g=this.vb[d];if(!g.vN){c.push(d);continue}const k=new a(g,!0);k.G.attr("data-h",d);k.N("click",()=>this.Pk(k));k.N("keydown",m=>this.oE(m,k));this.X(k.G)}0==this.vb.length||c.length==this.vb.length?this.$a():this.show()}else this.$a()}xA(c){for(var d=
this.vb.length=0;d<c.length;d++){var g=c.fa(d);0==g.We&&this.vb.push(g)}this.nb()}Pk(c){this.Ha(new h.IP(c.hierarchy,null,c.G))}oE(c,d){e.model.C.F.cn||32!=c.keyCode&&13!=c.keyCode||this.Ha(new h.JP(0,0,d))}clear(){this.vb.length=0;this.nb()}get kb(){return 0==this.vb.length}}f.Bqa=b;class a extends x.Qd{constructor(c,d=!1){super();this.oaa=!1;this.G.Vd();this.Ac=c;this.oaa=d;this.fb(this.Ac.caption);this.Hd("fm-ui-btn");this.aa(h.W.ya.Kq);this.aa(h.W.ya.qk);this.G.attr("title",e.model.B.j.EB);this.aaa=
new x.Ga("i",h.W.ya.iY);this.aaa.aa(h.W.ya.KJ);this.G.append(this.aaa);this.baa=new x.Ga("i",h.W.ya.iY);this.baa.aa(h.W.ya.EJ);this.G.append(this.baa);this.NU=this.Ac.filter.Fh;this.oaa&&(this.Tj=new x.Tc,this.Tj.fb(this.DBa()),this.Tj.aa("fm-filter-desc"),this.X(this.Tj))}get hierarchy(){return this.Ac}get NU(){return this.G.Sc("fm-filtered")}set NU(c){this.G.ab("fm-filtered",c)}DBa(){var c=e.model.B.j.FJ;this.hierarchy.filter.Fh&&(c=1==this.hierarchy.eb.length?this.hierarchy.za(this.hierarchy.eb[0]).caption:
e.model.B.j.LJ);return c}}f.MOa=a})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends f.e7{constructor(){super();this.Fg=b.TYPE;this.aa("fm-compact-view")}Ke(){super.Ke();this.Rxa();this.yca();this.Cxa()}Cxa(){this.ph=new f.rma(this.da);this.ph.aa("fm-cols-filter");this.ph.N(h.uc.Kv,a=>this.sq(a));this.ph.N(h.uc.TJ,a=>this.OV(a));this.ph.N(h.uc.Gt,a=>this.Ha(a));this.X(this.ph)}yca(){this.oe=new f.a$(this.da);this.oe.aa("fm-rows-filter");this.oe.N(h.uc.Kv,a=>this.sq(a));this.oe.N(h.uc.po,a=>this.Pk(a));this.oe.N(h.uc.TJ,
a=>this.OV(a));this.oe.N(h.uc.Gt,a=>this.Ha(a));this.X(this.oe)}Rxa(){this.Yi=new f.Bqa;this.Yi.aa("fm-page-filter");this.Yi.N(h.uc.Kv,a=>this.sq(a));this.Yi.N(h.uc.Gt,a=>this.Ha(a));this.X(this.Yi)}hH(){this.da.s1=this.Yi.kb?0:this.Yi.element.offsetHeight;super.hH();this.oe.nb()}fM(){super.fM();this.ph.nb()}Q_(){this.oe.$y(!0);return super.Q_()||this.oe.ZD}P_(){this.oe.$y(!0);return super.P_()||this.oe.ZD}iH(){super.iH();this.Yi.kb||(this.Yi.top=this.da.cX,this.Yi.left=0,this.Yi.right=0);this.vs.top=
this.da.we;this.vs.left=0;this.vs.width=this.da.zq;this.vs.height=this.da.jr;this.oe.left=this.da.sD(0,!0);this.oe.top=this.da.we+this.da.ED(0,!0);this.ph.top=this.da.we+this.da.ED(this.ph.rowIndex,!0);this.ph.left=this.da.zq;this.ph.right=Math.max(0,this.da.lq-this.da.hm(this.da.Ji,this.ac));this.js.top=this.dKa()?this.da.we:this.ph.zd();this.rs.top=this.da.we;this.od.left=this.da.zq;this.od.top=this.da.we;this.od.width=this.da.Fd;this.od.height=this.da.Us-this.da.we;this.Ce.left=0;this.Ce.top=this.da.jr+
this.da.we;this.Ce.width=this.da.lq;this.Ce.height=this.da.Ed;this.Uc.left=this.da.zq-parseInt(this.Uc.V("border-left-width"));this.Uc.top=this.da.jr+this.da.we-parseInt(this.Uc.V("border-top-width"));this.Uc.width=this.da.Fd;this.Uc.height=this.da.Ed}dKa(){return!(this.ph.visible&&!e.model.C.F.Zk)}fT(){super.fT();this.oe.nb();this.ph.nb()}lI(){super.lI();for(var a={Mo:g=>this.tca(g),rv:g=>this.rv(g)},c=this.ph.find(".fm-header:not(.fm-empty)",!0),d=0;d<c.length;d++)c[d].draggable(a);c=this.oe.find(".fm-header:not(.fm-empty)",
!0);for(d=0;d<c.length;d++)c[d].draggable(a);c=this.Yi.find(".fm-header:not(.fm-empty)",!0);for(d=0;d<c.length;d++)c[d].draggable(a)}rv(a){if(a.Sc("fm-drag-remove")){var c=parseInt(a.attr("data-h"));const d=a.closest(".fm-filters");a=this.slice.clone();d==this.ph?(c=a.Fb.fa(c).A,a.Ka.removeItem(c)):d==this.oe?(c=a.wb.fa(c).A,a.rows.removeItem(c)):d==this.Yi&&a.qb.s5(c);e.model.Wa.R().ge(a)}}en(a,c,d){d=this.Bea(d);if(null==d)this.sm();else{var g=this.zBa(d,this.xd);this.sm();if(!isNaN(g)){var k=parseInt(a.attr("data-h")),
m=a.closest(".fm-filters");c=this.slice.clone();if(m==this.ph){var n=c.Fb.fa(k);k=c.Ka.indexOf(n.A)}else m==this.oe?(n=c.wb.fa(k),k=c.rows.indexOf(n.A)):m==this.Yi&&(n=c.qb.fa(k),k=c.qb.indexOf(n.A));null!=n&&(d==m&&k<g&&g--,d!=m||k!=g)&&(a.$a(),d==m?d==this.ph?(g=0<c.Ka.length&&c.Ka.aU().We&&g>=c.Ka.length-1?c.Ka.length-2:g,c.Ka.R3(k,g)):d==this.oe?(g=0<c.rows.length&&c.rows.aU().We&&g>=c.rows.length-1?c.rows.length-2:g,c.rows.R3(k,g)):d==this.Yi&&c.qb.R3(k,g):(c.Ka.removeItem(n.A),c.rows.removeItem(n.A),
c.qb.removeItem(n.A),d==this.ph?(g=0<c.Ka.length&&c.Ka.aU().We&&g>=c.Ka.length?c.Ka.length-1:g,c.Ka.hL(n.A,n,g)):d==this.oe?(g=0<c.rows.length&&c.rows.aU().We&&g>=c.rows.length?c.rows.length-1:g,c.rows.hL(n.A,n,g)):d==this.Yi&&c.qb.hL(n.A,n,g)),1<c.Ka.length&&c.Ka.fa(0).We&&(a=c.Ka.fa(0),c.Ka.splice(0,1),c.Ka.hL(a.A,a,c.Ka.length)),e.model.Wa.R().ge(c))}}}zBa(a,c){return a==this.ph?this.gBa(c):a==this.oe?this.Rea(c):a==this.Yi?this.gCa(c):NaN}gBa(a){if(null!=a){a=a.index();if(a>this.slice.Ka.length)return this.slice.Ka.length;
var c=this.slice.Ka.indexOf("[Measures]");0<=c&&c<=a&&0!=a&&a++;return a}return NaN}Rea(a){if(null!=a){a=a.parent.Sc("fm-filters")?this.slice.rows.length:(a=a.parent.find(".fm-header"))?parseInt(a.attr("data-h")):0;if(a>this.slice.rows.length)return this.slice.rows.length;var c=this.slice.rows.indexOf("[Measures]");0<=c&&c<=a&&0!=a&&a++;return a}return NaN}gCa(a){return null!=a?(a=a.index(),a>this.slice.qb.length?this.slice.qb.length:a):NaN}Bea(a){var c=a.closest(".fm-filters");if(null==c){var d=
a.closest(".fm-cell");null!=d?(d.attr("data-r"),a=parseInt(d.attr("data-c")),this.jEa(a)?c=this.ph:this.kEa(a)&&(c=this.oe)):(a=a.closest(".fm-resize-handles"),null!=a&&(a.Sc("fm-cols-resize")?c=this.ph:a.Sc("fm-rows-resize")&&(c=this.oe)))}return c}jEa(a){return a>=this.coords.Zd}kEa(a){return a<=this.coords.Zd}VE(a,c){a=this.Bea(a);if(null==a)this.sm();else{var d=c.closest(".fm-header:not(.fm-empty)");null!=c.closest(".fm-filters")&&null!=d?(this.xd=this.Jw(),a==this.Yi?d.before(this.xd):c.before(this.xd)):
(this.xd=this.Jw(),a==this.ph?this.ph.find(".fm-row").append(this.xd):a==this.oe?(a=this.oe?this.oe.find(".fm-header"):null,null!=c.closest(".fm-filters")?a&&a.before(this.xd):this.Fg==f.GC.kP.TYPE?a&&a.parent.append(this.xd):this.oe.append(this.xd)):a==this.Yi&&this.Yi.append(this.xd))}}wu(){super.wu();this.ph.clear();this.Yi.clear();this.oe.clear()}get ES(){return this.ph}get Aia(){return this.oe}get Dha(){return this.Yi}dispose(){this.ph.Vd();this.ph.dispose();this.oe.Vd();this.oe.dispose();this.Yi.Vd();
super.dispose()}}b.TYPE="compact";f.lP=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.Ga{constructor(a){super("div","fm-resize-handles");this.NK=c=>this.Ix(c);this.bu=c=>this.Cr(c);this.hC=c=>this.Jx(c);this.m_=c=>this.T4(c);this.ew=new Qa;this.Ae=a;this.da=a.coords;this.element.addEventListener("mousedown",this.NK);this.element.addEventListener("touchstart",this.NK);e.Tn.addEventListener("mouseup",this.bu);e.Tn.addEventListener("touchend",this.bu);e.Tn.addEventListener("touchcancel",this.bu);this.gw=new x.Ga("div",
"fm-indicator");this.gw.$a();this.X(this.gw);this.sC=new x.Ga("div","fm-wrapper");this.sC.attr("title",e.model.B.j.i$);this.X(this.sC);u.Nd().im&&this.aa("fm-pointer-events-none");this.Gg("hidden","true")}nb(){this.sC.attr("title",e.model.B.j.i$)}Bu(a){this.ew.tag="div";this.ew.aa("fm-handle");this.ew.attr["data-idx"]=a;this.ew.attr.title=e.model.B.j.Fra;return this.ew}Ix(a){if(a.target.classList.contains("fm-handle")){this.aw=a.target;this.aw.classList.add("fm-active");this.LB=this.sg();e.Tn.addEventListener("mousemove",
this.hC);e.Tn.addEventListener("touchmove",this.m_);a.stopImmediatePropagation();var c=parseInt(this.aw.getAttribute("data-idx"));this.CO(c);a.preventDefault();a.stopImmediatePropagation()}}CO(){}Cr(){e.Tn.removeEventListener("mousemove",this.hC);e.Tn.removeEventListener("touchmove",this.m_);if(this.aw){this.aw.classList.remove("fm-active");var a=parseInt(this.aw.getAttribute("data-idx"));this.DO(this.aw,a);this.aw=null;this.gw.$a()}}DO(){}T4(a){a=a.touches[0];this.$V(this.aw,a.clientX-this.LB.left,
a.clientY-this.LB.top);this.gw.show()}Jx(a){var c=a.clientX-this.LB.left,d=a.clientY-this.LB.top;0>c||0>d||c>this.da.lq||d>this.da.Us?this.Cr(a):(this.$V(this.aw,c,d),this.gw.show())}$V(){}dispose(){this.element&&this.element.removeEventListener("mousedown",this.NK);e.Tn.removeEventListener("mousemove",this.hC);e.Tn.removeEventListener("mouseup",this.bu);e.Tn.removeEventListener("touchmove",this.m_);e.Tn.removeEventListener("touchend",this.bu);e.Tn.removeEventListener("touchcancel",this.bu);super.dispose()}}
f.Y9=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends f.Y9{nb(){super.nb();this.sC.Kx();let a="";for(var c=0;c<this.da.he;c++)a+=ab(this.Bu(c),!0);var d=this.da.Lg;for(c=Math.min(this.da.dk,this.da.Gz());d<c;d++)a+=ab(this.Bu(d),!0);this.sC.html(a)}Bu(a){super.Bu(a);this.ew.style.top=this.da.Vo(a,this.Ae.ac,!1)+this.da.$d(a)+"px";return this.ew}CO(a){this.j_=this.da.Vo(a,this.Ae.ac,!1)}DO(a,c){a=Math.round(a.offsetTop+a.clientHeight/2-this.j_);a=this.da.uM(a,f.Nh.qF,f.Nh.Wr);this.Ya(h.uc.SF,
this,{height:a,lb:c})}$V(a,c,d){d=this.da.uM(d,this.j_+f.Nh.qF,this.j_+f.Nh.Wr);a.style.top=d+"px";this.gw.top=d;this.gw.width=this.da.nu}}f.Xqa=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends f.Y9{nb(){super.nb();this.sC.Kx();let a="";for(var c=0;c<this.da.Zd;c++)a+=ab(this.Bu(c),!0);c=Math.min(this.da.Ji,this.da.rD());for(var d=this.da.Bf;d<c;d++)a+=ab(this.Bu(d),!0);this.sC.html(a)}Bu(a){super.Bu(a);this.ew.style.left=this.da.hm(a,this.Ae.ac)+this.da.Dh(a)+"px";return this.ew}CO(a){this.i_=this.da.hm(a,this.Ae.ac)}DO(a,c){a=Math.round(a.offsetLeft+a.clientWidth/2-this.i_);a=this.da.uM(a,f.Nh.rF,f.Nh.Jq);this.Ya(h.uc.RF,
this,{width:a,kc:c})}$V(a,c){c=this.da.uM(c,this.i_+f.Nh.rF,this.i_+f.Nh.Jq);a.style.left=c+"px";this.gw.left=c;this.gw.height=this.da.Xy}}f.qma=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(a){this.maa=!1;this.Dm=[];this.Dn=[];this.sda=()=>this.UGa();this.Aca=()=>this.TGa();this.Vda=()=>this.VGa();this.Ae=a;this.da=a.coords;this.Ae.N(h.uc.po,c=>this.mE(c))}nb(){this.eda(this.Qh)}set Gia(a){this.Naa=a}cja(a=!0){this.maa=a}Qja(){this.B5();null!=this.Qh&&(this.Qh.Qg(!0),this.Qh=null)}mE(a){this.stop();this.LDa(a.cell.kc)&&a.cell.li&&this.oda(a.cell)}LDa(a){return this.maa||-1<this.Dm.indexOf(a)}clear(){this.Dm=[];this.Dn=
[];this.sd=null}oda(a){!e.model.C.F.gD||null!=this.sd&&this.sd.lb==a.lb&&this.sd.kc==a.kc||(this.sd=a,this.Gya(),this.Ae.lO.nb())}jua(a){this.sd.label=a+"\n"}get Ifa(){return null!=this.sd}stop(){e.model.C.F.gD&&(this.Qja(),this.sd=null)}save(a){if((e.model.C.F.gD||this.Ifa)&&null!=this.sd){a=a.replace(/\n/gi,"<br>");if(this.sd.measure.type==e.u.i.Ra.Ua)this.sd.value=Date.parse(a);else if(this.sd.measure.type!=e.u.i.Ra.wc){a=a.replace(/,/gi,".");a=a.replace(/[^\d|\.|\-]/gi,"");this.sd.value=parseFloat(a);
const c=this.sd.measure.Eh(this.sd.measure.A,this.sd.measure.$).clone();this.sd.label=u.bc.format(this.sd.value,c)}else this.sd.label=a;null!=this.Naa&&this.Naa(this.sd.lb,this.sd.kc,this.sd.measure.type!=e.u.i.Ra.wc?this.sd.value:a);null!=this.sd&&this.Ae.J.Wva(this.sd.lb,this.sd.kc)}}Gya(){null!=this.sd&&this.sd.li&&(null!=this.Qh&&(this.Qh.Vd(),this.Qh.Qg(),this.Qh=null),this.sd.lb<this.da.wH()||this.sd.kc<this.da.vH()||this.sd.lb>this.da.Gz()||this.sd.kc>this.da.rD()||(this.Qh=new x.Zv,this.Qh.aa("fm-editing-cell"),
this.Ae.uC(this.Qh),this.eda(this.Qh),this.sd.label=this.sd.label.replace(/<br\s*[\/]?>/gi,"\n"),this.Qh.ik(this.ABa(this.sd)),this.Qh.N(x.Zv.fB,this.sda),this.Qh.N(x.Zv.OX,this.Aca),this.Qh.N(x.Zv.PX,this.Vda),this.Qh.G.focus(),this.Qh.selectAll(),this.Qh.show()))}ABa(a){return a.measure.type==e.u.i.Ra.wc?a.label:isNaN(a.value)?"":a.measure.type==e.u.i.Ra.Ua?(new Date(a.value)).toISOString().substr(0,10):a.value.toString()}eda(a){if(a){this.sd.lb<this.da.wH()||this.sd.kc<this.da.vH()||this.sd.lb>
this.da.Gz()||this.sd.kc>this.da.rD()?a.$a():a.show();var c=Math.min(this.da.Dh(this.sd.kc),this.da.nu-this.da.hm(this.sd.kc,this.Ae.ac));a.G.V("left",this.da.hm(this.sd.kc,this.Ae.ac)-1+"px");a.G.V("top",this.da.Vo(this.sd.lb,this.Ae.ac)-1+"px");a.Yk(c+1);a.Mr(this.da.$d(this.sd.lb)+1)}}UGa(){this.nia();this.B5();var a=this.Ae.ag(this.sd.lb+1,this.sd.kc);this.stop();null!=a?(a.lb>this.da.Gz()-3&&this.Ae.Kr(this.da.Lg+1),this.oda(a)):this.stop()}VGa(){this.nia();this.B5();this.stop()}TGa(){this.Ifa&&
this.jua(this.Qh.bj());this.Qh.ik(this.sd.label)}B5(){null!=this.Qh&&this.save(this.Qh.bj());null!=this.sd&&(this.Ae.clearData(),this.Ae.nb())}nia(){this.Qh.rb(x.Zv.fB,this.sda);this.Qh.rb(x.Zv.OX,this.Aca);this.Qh.rb(x.Zv.PX,this.Vda)}}f.ana=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(a){this.focused=null;this.eE=!1;this.target=a;this.target.N("keyup",c=>this.nha(c));this.target.N("paste",c=>this.nha(c));this.target.N("focusout",()=>this.i4())}z0(a){return"<div><input type='text' class='fm-ui-text-input' value='"+((a.filter.Wu?a.filter.query.value:"")+"'></div>")}Mx(){if(e.model.C.F.cn&&(this.eE=!0,document.activeElement&&"input"==document.activeElement.tagName.toLowerCase())){var a=document.activeElement,
c=a.parentElement.parentElement.getAttribute("data-h-name");e.ka(c)?this.focused=null:this.focused={bh:c,selectionStart:a.selectionStart,selectionEnd:a.selectionEnd,value:a.value}}}tA(){if(e.model.C.F.cn){if(null!=this.focused){var a=this.target.element.querySelector("."+h.W.ya.SJ+'[data-h-name="'+this.focused.bh+'"] input');a&&(a.focus(),a.value=this.focused.value,a.selectionStart=this.focused.selectionStart,a.selectionEnd=this.focused.selectionEnd)}this.eE=!1}}i4(){this.eE||(this.focused=null)}nha(a){a=
a.target;var c=a.parentElement.parentElement.getAttribute("data-h-name");this.target.Ha(new h.Koa(c,a.value))}}f.lY=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(a){this.focused=null;this.eE=!1;this.target=a;this.target.N("focusin",()=>this.Mx());this.target.N("focusout",()=>this.i4())}Mx(){if(!e.model.C.F.cn&&(this.eE=!0,document.activeElement&&"columnheader"==document.activeElement.getAttribute("role"))){var a=document.activeElement;const c=a.getAttribute("data-c");this.focused=(a=a.getAttribute("data-r"))||c?{DQa:c,mt:a}:null}}tA(){if(!e.model.C.F.cn){if(null!=this.focused){const a=
document.querySelector("."+h.W.ya.Kq+`[data-c="${this.focused.col}"][data-r="${this.focused.row}"]`);a&&a.focus()}this.eE=!1}}i4(){this.eE||(this.focused=null)}}f.eoa=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends f.lP{constructor(){super();this.Fg=a.TYPE;this.Hd("fm-compact-view");this.aa("fm-classic-view")}yca(){this.oe=new b.oma(this.da);this.oe.aa("fm-rows-filter");this.oe.N(h.uc.Kv,c=>this.sq(c));this.oe.N(h.uc.po,c=>this.Pk(c));this.oe.N(h.uc.TJ,c=>this.OV(c));this.oe.N(h.uc.Gt,c=>this.Ha(c));this.X(this.oe)}hH(){this.ADa?super.hH():(e.Va(e.model.B.j.Jpa,e.model.B.j.mn,e.ob.mn),e.model.Wa.R().Cq({gridType:h.wf.YA}),e.model.Wa.R().refresh())}get ADa(){return 0==
e.model.C.F.Fba?!0:this.da.Fd>this.da.LFa}Rea(c){var d=this.slice;if(null!=c){c=c.index();if(c>d.rows.length)return d.rows.length;d=d.rows.indexOf("[Measures]");0<=d&&d<=c&&0!=c&&c++;return c}return NaN}}a.TYPE="classic";b.kP=a})(f.GC||(f.GC={}))})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends f.a${constructor(c){super(c)}nb(){for(var c=[],d=new Qa,g=0;g<this.da.he;g++){d.tag="div";d.aa("fm-row");for(var k=0;k<this.da.Zd;k++)d.text=e.model.C.F.st?d.text+ab(this.SS(g,k,g==this.da.he-1?this.vb[k]:null)):d.text+ab(this.kz(g,k));c.push(ab(d))}this.Cn.Mx();this.html(c.join(""));this.Cn.tA()}}b.oma=a})(f.GC||(f.GC={}))})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends f.e7{constructor(){super();this.sz=this.$B=!1;this.Fg=a.TYPE;this.aa("fm-flat-view");this.U$=new f.ana(this)}rca(){this.od=new b.coa(this.da,(c,d)=>this.ag(c,d));this.od.aa("fm-cols-sheet");this.od.sb.element.addEventListener("wheel",this.c0);this.od.sb.N(bb,()=>this.wGa());this.od.N(h.uc.po,c=>this.Pk(c));this.od.N(h.uc.Kv,c=>this.sq(c));this.od.N(h.uc.TJ,c=>this.OV(c));this.od.N(h.uc.Gt,c=>this.Ha(c));this.X(this.od)}wGa(){this.Uc.sb.scrollLeft=
this.od.sb.scrollLeft}Pk(c){this.sz||super.Pk(c)}sq(c){this.sz||super.sq(c)}iH(){super.iH();this.vs.top=this.da.we;this.vs.left=0;this.vs.width=this.da.zq;this.vs.height=this.da.jr;this.od.left=this.da.zq;this.od.top=this.da.we;this.od.width=this.da.Fd;this.od.height=this.da.Us-this.da.we;this.Ce.left=0;this.Ce.top=this.da.jr+this.da.we;this.Ce.width=this.da.lq;this.Ce.height=this.da.Ed;this.Uc.left=this.da.zq-parseInt(this.Uc.V("border-left-width"));this.Uc.top=this.da.jr+this.da.we-parseInt(this.Uc.V("border-top-width"));
this.Uc.width=this.da.Fd;this.Uc.height=this.da.Ed+parseInt(this.Uc.V("border-top-width"))}fM(){super.fM();this.U$.nb()}get iM(){return this.U$}get ul(){return this.$B}set ul(c){this.$B=c}lI(){if(!this.ul||e.u.Ma.R().ga.JU){super.lI();for(var c={Mo:k=>this.tca(k),rv:k=>this.rv(k),Hx:(k,m)=>this.Hx(k,m),DV:k=>this.DV(k)},d=this.od.find(".fm-header",!0),g=0;g<d.length;g++)d[g].draggable(c)}}Hfa(c){if(e.v(c))return!1;c=this.Tu(c.element);return e.v(c)?!0:1===c.level||void 0===c.level}VE(c,d){c=d.closest(".fm-cell");
this.Hfa(c)?(c=parseInt(c.attr("data-c")),c=Math.min(c,this.coords.$l),this.xd=this.Jw(),this.xd.left=this.coords.hm(c,this.ac)-(c==this.coords.$l?0:this.xd.width),this.xd.top=this.da.we+this.coords.Vo(0,this.ac)-1,this.xd.height=this.coords.$d(0)+1,this.append(this.xd)):this.sm()}Hx(c,d){return"input"==d.target.tagName.toLowerCase()||1<this.Tu(c.element).level?!1:!0}DV(){this.lO.clear();this.sz=!0}rv(c){setTimeout(()=>{this.sz=!1},100);if(c.Sc("fm-drag-remove"))if(this.ul){var d=parseInt(c.attr("data-c"));
this.Ya(h.uc.L7,this,{index:d})}else{d=this.slice.clone();var g=parseInt(c.attr("data-r"));c=parseInt(c.attr("data-c"));const k=(g=this.ag(g,c))?g.hierarchy:null;e.v(k)||(g=d.flatten(!0),g.removeItem(k.A),d.Ka.Bb(k.A)?d.Ka.removeItem(k.A):d.rows.Bb(k.A)?d.rows.removeItem(k.A):d.qb.Bb(k.A)&&d.qb.removeItem(k.A),d.gd().find(m=>m.A===k.A)&&d.EE(k.A),d.Zg=g.Pc(!0),e.model.Wa.R().ge(d))}}en(c,d,g){this.sm();var k=g.closest(".fm-cell");if(null!=k){d=parseInt(c.attr("data-c"));g=parseInt(k.attr("data-c"));
c=this.Tu(c.element);var m=this.Tu(k.element),n=c.hierarchy?c.hierarchy.ua.length:0;g=g>d?g-(0<n?n-2:0):g;d!==g&&(this.ul?this.Ya(h.uc.K7,this,{mAa:d,CMa:g}):this.Hfa(k)&&(k=this.slice.clone(),0==k.Zg.length&&(k.Zg=k.flatten(!0).Pc(!0)),k.YCa&&void 0===c.level&&(n=d>g?1:-1,d=k.Zg.indexOf(c.hierarchy.A),g=null===m?g:k.Zg.indexOf(m.hierarchy.A),g=d===g?g+n:g),g=Math.max(0,Math.min(g,k.Zg.length)),d<g&&g--,e.Ja.Q3(k.Zg,d,g),e.model.Wa.R().ge(k)))}}}a.TYPE="flat";b.Mv=a})(f.flat||(f.flat={}))})(h.sheet||
(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends f.D7{constructor(c,d){super(c,d);this.N(h.uc.po,g=>this.sq(g));this.N("keydown",g=>this.oE(g));this.N("focusin",g=>this.h4(g))}h4(c){const d=this.sb.content.element.scrollLeft;0!=d?(this.sb.content.LLa(),this.sb.scrollLeft=this.sb.element.scrollLeft+d):(c=parseInt(c.target.getAttribute("data-c")),!isNaN(c)&&this.da.sD(c,this.ac)<this.da.scrollLeft&&(this.sb.scrollLeft-=this.da.Fd/2))}sq(c){null!=c.cell&&c.cell.vl&&null!=
c.cell.hierarchy&&c.cell.tC!=h.W.Lq.lK&&(e.model.C.F.cn||this.Ha(new h.IP(c.cell.hierarchy,c.cell)))}oE(c){if(!e.model.C.F.cn&&(32==c.keyCode||13==c.keyCode)){var d=c.target;c=parseInt(d.getAttribute("data-r"));d=parseInt(d.getAttribute("data-c"));isNaN(c)||isNaN(d)||this.Ha(new h.JP(c,d))}}kz(c,d){this.cell=super.kz(c,d);(c=this.zn?this.zn(c,d):null)&&c.vl&&c.hierarchy.vN&&(e.model.C.F.cn?(this.Sz(this.cell,c.hierarchy),this.cell.aa(h.W.ya.SJ),this.cell.text+=this.Cn.z0(c.hierarchy),this.cell.attr["data-h-name"]=
c.hierarchy.A):e.model.C.F.Vx&&(this.Sz(this.cell,c.hierarchy),this.cell.attr.title=e.model.B.j.EB,this.cell.attr.tabindex="0",this.cell.text+=this.No(h.W.ya.KJ)));return this.cell}Sz(c,d){c.aa(h.W.ya.Kq);d.filter.Fh&&(c.aa(h.W.ya.YX),c.text+=this.No(h.W.ya.EJ,e.model.B.j.UY))}}b.coa=a})(f.flat||(f.flat={}))})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){e=e.K||(e.K={});e=e.qd||(e.qd={});e=e.Jsa||(e.Jsa={});e=e.Xna||(e.Xna={});e[e.gOa=0]="DESELECT";e[e.hOa=1]="DESELECT_ALL";e[e.rQa=2]="TOGGLE_EXPANDED";e[e.sQa=3]="TOGGLE_SELECTED";e[e.KPa=4]="MOVE_UP";e[e.FPa=5]="MOVE_DOWN";e[e.IPa=6]="MOVE_TO_ROWS";e[e.GPa=7]="MOVE_TO_COLUMNS";e[e.HPa=8]="MOVE_TO_FILTERS";e[e.JPa=9]="MOVE_TO_VALUES";e[e.jOa=10]="EDIT_CALCULATED_VALUE";e[e.hQa=11]="SELECT_AGGREGATION"})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.Pa{constructor(){super("div");this.kV=a=>this.D4(a);this.list=new x.Bd.vj;this.list.yl=!0;this.list.mi(this.kv);this.list.xg("caption");this.list.af();this.list.N(w.ia.Xd,a=>this.sv(a));this.X(this.list);this.G.cm();this.G.N("keydown",a=>{27==a.keyCode&&(this.close(),a.stopImmediatePropagation())});var b=new x.Ga("div","fm-arrow");this.G.X(b)}gp(b,a,c=-1){this.origin=a;this.nM=b;this.Dda=c;this.setData(b);this.show();this.G.N("mouseleave",this.kV);
e.Tn.addEventListener("mousedown",this.kV);b=a.sg(this.G.element.offsetParent);this.G.V("right",this.G.element.offsetParent.clientWidth-b.left+"px");this.G.V("top",b.top-this.zd()/2+a.zd()/2+"px");this.lw=document.activeElement;this.list.focus()}D4(b){"mousedown"==b.type&&this.G.KS(b)||(this.G.rb("mouseleave",this.kV),e.Tn.removeEventListener("mousedown",this.kV),this.close())}setData(b){let a=0;const c=[];for(let d=0;d<b.Wc.length;d++){const g={caption:b.xL[d],$:b.Wc[d]};void 0!=b.tw&&(g.eX=b.tw[d]);
c.push(g);b.Wc[d]==b.$&&(a=d)}this.list.gg(c);this.list.Xk(a);this.list.G.Sx(0)}sv(b){this.close();this.Ya(w.ia.Xd,this,{nM:this.nM,Dda:this.Dda,F_:b.data.Hl,origin:this.origin})}kv(b,a){var c=new x.Li.RY;c.setData(b);c.hn(a);return c}close(){this.$a();this.lw&&this.lw.focus({preventScroll:!0})}}h.kJ=f})(l.qd||(l.qd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){this.Zt=this.Gn=null}update(a,c,d,g){this.fe=a;this.Pb=c;this.yo=d;this.Zt=g;this.fz();this.Fq();this.OO()}Fq(){this.qb=this.CD();this.rows=this.MH();this.Rga(this.rows);this.Ka=this.AH();this.Rga(this.Ka);this.Da=this.gd();this.vFa(this.Da);this.Z_()}OO(){this.vb=[];this.ff=[];this.cua(this.vb,this.tH());this.qEa&&this.uKa(this.vb);this.lua(this.vb,this.Os());e.model.C.F.Dja&&this.vKa(this.vb);this.OI(this.vb);if(b.i1){b.i1=
!1;var a=this.vb.find(c=>c.A==="/"+e.model.B.j.o8);null!=a&&this.wda(a)}this.yl(this.qb);this.yl(this.Ka);this.yl(this.rows);this.yl(this.Da)}pv(a){if(null!=this.fe){var c=this.Os().find(g=>g.A===a);if(null!=c){c.tg=!0;c.Jl=this.Yz;var d=this.Da.findIndex(g=>g.A===a);0<=d?(c.Q2=!0,this.Da[d]=c):this.Da.push(c)}this.OO()}}qv(a){if(null!=this.Pb&&null!=this.fe){const c=this.Da.findIndex(d=>d.A===a);-1<c&&this.Da.splice(c,1);this.j6();this.OO()}}Z_(){this.Gn=null}j6(){this.Gn={pages:this.qb,rows:this.rows,
columns:this.Ka,measures:this.Da}}Rga(a){a=a.find(c=>"[Measures]"===c.A);null!=a&&(a.caption=e.model.B.j.iB,a.aV=!0)}vFa(a){for(var c=0;c<a.length;c++)a[c].tg=!0,a[c].Jl=e.model.C.F.Jl&&!a[c].gh}yl(a){for(var c,d=0;d<a.length;d++){a[d].Ad=!0;c=this.Mda(a[d].A,a[d].tg);var g=this.Pb.vc().getItem(a[d].A);if(null!=c&&(this.kj(c,!0),c.ej))for(var k=0;k<c.children.length;k++)g.zf==c.children[k].A&&this.kj(c.children[k],!0);a[d].ej&&null!=g.ic&&(a[d].caption=a[d].caption+" / "+g.ic.caption)}}kj(a,c){a.Ad=
c;null!=a.parent&&a.parent.Ad!=c&&(1==c?this.kj(a.parent,c):0==this.aDa(a.parent.children)&&this.kj(a.parent,c));if(a.ej&&0==c)for(var d=0;d<a.children.length;d++)this.kj(a.children[d],c)}aDa(a){for(var c=0;c<a.length;c++)if(!0===a[c].Ad)return!0;return!1}eua(a,c){var d=null;c=c.split(/[\/\\]/);for(var g="",k=null,m=0;m<c.length;m++){var n=c[m];if(!e.ka(n)){g=g+(e.ka(g)?"":"/")+n;var p="[Folder]."+g;(d=this.ff.find(t=>t.A===p))?k=d:(d=new h.W.sj,d.Df=!0,d.A=p,d.caption=n,d.children=[],this.ff.push(d),
k?(d.level=k.level+1,d.parent=k,k.children.push(d)):(d.level=0,a.push(d)),k=d)}}return d}cua(a,c){for(var d,g,k,m=0;m<c.length;m++){k=this.fe.nf(c[m].A);var n=null!=k&&k.type!=e.u.i.Ra.wc,p=this.yo==e.u.i.ra.kg||this.yo==e.u.i.ra.API||this.yo==e.u.i.ra.JSON||this.yo==e.u.i.ra.ci||this.yo==e.u.i.ra.Nq;c[m].$fa=null!=k&&k.type==e.u.i.Ra.jb;c[m].ux=null!=k&&k.type==e.u.i.Ra.ec;c[m].HDa=null!=k&&k.type==e.u.i.Ra.Mc;e.ka(c[m].Oc)||!n&&!p?(d=a.find(t=>t.A===c[m].bM),null==d&&(d=new h.W.sj,d.Df=!0,d.A=c[m].bM,
d.caption=c[m].eH,d.children=[],d.level=0,d.description=d.description,a.push(d),this.ff.push(d)),c[m].ck?(k=e.ka(c[m].Oc)?d:g,k=k.children.find(t=>t.A===c[m].bh),c[m].level=k.level+1,c[m].parent=k,null==k.children&&(k.children=[]),k.children.push(c[m]),k.ej=!0):e.ka(c[m].Oc)?(c[m].level=1,c[m].parent=d,d.children.push(c[m])):(g=d.children.find(t=>t.A===d.A+c[m].Oc),null==g&&(g=new h.W.sj,g.Df=!0,g.A=d.A+c[m].Oc,g.caption=c[m].Oc,g.children=[],g.level=1,g.parent=d,g.description=d.description,d.children.push(g),
this.ff.push(g)),c[m].level=2,c[m].parent=g,g.children.push(c[m]))):(g=c[m].ck?this.ff.find(t=>t.A===c[m].bh):this.ff.find(t=>t.A==="[Folder]."+c[m].Oc),null==g&&(g=this.eua(a,c[m].Oc)),c[m].level=g.level+1,c[m].parent=g,e.v(g.children)&&(g.children=[]),g.children.push(c[m]));this.ff.push(c[m])}}lua(a,c){for(let k=0;k<c.length;k++){c[k].tg=!0;c[k].Jl=e.model.C.F.Jl&&!c[k].gh;c[k].Qa&&(c[k].Mg=e.model.B.j.o8);var d=null;if(this.Yz){var g=this.dka(c[k].A);d=this.ff.find(m=>m.A===g&&!m.Df)}this.Yz&&
null!=d?(d.jh=c[k],d.jh.zU=d,c[k].parent=d.parent):""!==c[k].Mg?(d=this.ff.find(m=>m.A==="[Folder]."+c[k].Mg+"/"+c[k].Oc),null==d&&(d=this.kua(a,c[k].Mg,c[k].Oc,c[k].gh,c[k].Qa)),c[k].level=d.level+1,c[k].parent=d,d.children.push(c[k])):(c[k].level=0,a.push(c[k]));this.ff.push(c[k])}}kua(a,c,d,g=!1,k=!1){var m=null;d=d.split(/[\/\\]/);d.unshift(c);c="";for(var n=null,p=0;p<d.length;p++){var t=d[p];if(!e.ka(t)){c=c+(e.ka(c)?"":"/")+t;var r="[Folder]."+c;m=this.ff.find(v=>v.A===r);e.v(m)&&0==p&&(m=
this.ff.find(v=>v.caption===t))&&!m.Df&&(m=null);m?n=m:(m=new h.W.sj,m.Df=!0,m.A=r,m.caption=t,m.children=[],m.gv=!0,m.gh=g,m.YH=k,this.ff.push(m),n?(m.level=n.level+1,m.parent=n,n.children.push(m)):(m.level=0,a.push(m)),n=m)}}return m}uKa(a){for(var c,d=0;d<a.length;d++)if(!0===a[d].Df&&1==a[d].children.length&&!0!==a[d].children[0].Df&&!a[d].children[0].Qa&&(c=a[d].children[0],c.level=0,c.parent=null,a.splice(d,1,c),c.children))for(var g=0;g<c.children.length;g++)--c.children[g].level}vKa(a){for(var c=
0;c<a.length;c++)!0===a[c].Df&&!0!==a[c].YH&&(a[c]=this.Jaa(a[c].children,a[c]))}Jaa(a,c){for(var d=0;d<a.length;d++)!0===a[d].Df&&(a[d]=this.Jaa(a[d].children,a[d]));return 1==a.length&&!0!==a[0].Df?(a=a[0],a.level=c.level,a.parent=c.parent,a):c}OI(a){this.fe.tx||(e.v(this.Zt)?a.sort((c,d)=>{var g=this.OM(c),k=this.OM(d);return g==k?c.caption.localeCompare(d.caption):k-g}):a.sort((c,d)=>this.Zt(h.W.sj.dX(c),h.W.sj.dX(d),"pivot")))}OM(a){return!0===a.ck?0:e.model.C.F.Le?a.YH?-1:0:!0===a.Df&&!0!==
a.gv?3:!0!==a.Df&&!0!==a.tg?2:!0===a.Df&&!0===a.gv?1:0}Zba(a){if(!this.Zo){for(var c=this.vb.indexOf(a)+1,d=0;d<a.children.length;d++)!0===a.children[d].dg&&this.Zba(a.children[d]);this.vb.splice(c,a.children.length);a.dg=!1}}wda(a){if(!this.Zo){var c=this.vb.indexOf(a)+1;a.ej&&e.v(this.Zt)||this.OI(a.children);e.Ja.insert(this.vb,a.children,c);a.dg=!0}}dka(a){a=this.fe.Ok(a);return null!=a?a.A:""}EMa(a){a=this.fe.nf(a);return null!=a?a.A:""}uh(a){for(var c=0;c<this.ff.length;c++)if(!this.ff[c].tg&&
!this.ff[c].Df&&this.ff[c].A==a)return this.ff[c]}fd(a){for(var c=0;c<this.ff.length;c++)if(this.ff[c].tg&&!this.ff[c].Df&&this.ff[c].A==a)return this.ff[c]}Mda(a,c=!1){return c?this.fd(a):this.uh(a)}n3(){return 0<this.Da.length}YM(){const a=new h.W.rra;a.qb=this.qb.map(d=>h.W.GQ.ET(d));a.rows=this.rows.map(d=>h.W.GQ.ET(d));a.Ka=this.Ka.map(d=>h.W.GQ.ET(d));a.Da=this.Da.map(d=>h.W.GQ.ET(d));a.Zg=this.Pb?this.Pb.Zg:[];a.$g=this.Pb?this.Pb.$g:[];if(this.Pb){if(this.Pb.$b.Mf){var c=this.Pb.$b.Sa();void 0===
a.Nj&&(a.Nj={});a.Nj.row=c.sort}this.Pb.Lb.Mf&&(c=this.Pb.Lb.Sa(),void 0===a.Nj&&(a.Nj={}),a.Nj.column=c.sort)}return a}ZU(a){return null==this.Pb?!0:this.IU(a.qb,this.Pb.qb.Pc())||this.IU(a.rows,this.Pb.rows.Pc())||this.IU(a.Ka,this.Pb.Ka.Pc())||this.IU(a.Da,this.Pb.gd())}IU(a,c){if(a.length!=c.length)return!0;for(var d=0;d<c.length;d++)if(a[d].A!=c[d].A||a[d].$!=c[d].$||a[d].zf!=c[d].zf||a[d].Q2)return!0;return!1}get Yz(){var a=this.yo;return a==e.u.i.ra.ci&&!e.model.C.F.Le||a==e.u.i.ra.Nq&&!e.model.C.F.Le||
a==e.u.i.ra.JSON&&!e.model.C.F.Le||a==e.u.i.ra.kg||a==e.u.i.ra.API}get MU(){for(var a=0;a<this.vb.length;a++)if((this.vb[a].Df||this.vb[a].gv||this.vb[a].ej)&&!this.vb[a].dg)return!0;return!1}get ffa(){for(var a=0;a<this.vb.length;a++)if(this.vb[a].Df||this.vb[a].gv||this.vb[a].ej)return!0;return!1}Yba(){if(!this.Zo){for(var a=0;a<this.vb.length;a++)if(this.vb[a].Df||this.vb[a].gv||this.vb[a].ej)this.vb[a].dg=!1;var c=[];for(a=0;a<this.vb.length;a++)0==this.vb[a].level&&c.push(this.vb[a]);this.vb.splice(0,
this.vb.length);e.Ja.insert(this.vb,c,0)}}iD(){if(!this.Zo){this.Yba();for(var a=0;a<this.vb.length;a++)(this.vb[a].Df||this.vb[a].ej)&&this.Vsa(this.vb[a],a+1)}}Vsa(a,c){a.dg=!0;null!=a.children&&0<a.children.length&&(this.OI(a.children),e.Ja.insert(this.vb,a.children,c))}CD(){return null!==this.Gn?this.Gn.pages:null!=this.Pb?this.NS(this.Pb.qb):[]}MH(){return null!==this.Gn?this.Gn.rows:null!=this.Pb?this.NS(this.Pb.rows):[]}AH(){return null!==this.Gn?this.Gn.columns:null!=this.Pb?this.NS(this.Pb.Ka):
[]}gd(){return null!==this.Gn?this.Gn.measures:null!=this.Pb?h.W.sj.QL(this.Pb.gd()):[]}tH(){return null!=this.fe?this.NS(this.fe.vc(!1),!0):[]}Os(){return null!=this.fe?h.W.sj.QL(this.fe.Da.Pc()):[]}NS(a,c=!1){for(var d=[],g=0;g<a.length;g++){var k=a.fa(g),m=this.fe.nf(k.A),n=new h.W.sj;c||null==k.ic?(n.A=k.A,n.caption=k.caption,n.bM=k.Ci.A,n.eH=k.Ci.caption,n.Oc=k.Oc,n.ck=!1,n.ej=k.Ef&&c):(n.A=k.ic.A,n.caption=k.ic.caption,n.bM=k.Ci.A,n.eH=k.Ci.caption,n.bh=k.A,n.H2=k.caption,n.ck=!0,n.ej=!1);n.sx=
m?m.sx():!1;n.description=k.description;d.push(n);if(k.Ef&&c)for(m=0;m<k.ua.length;m++)if(0!=m){var p=k.ua.fa(m);n=new h.W.sj;n.A=p.A;n.caption=p.caption;n.bM=k.Ci.A;n.eH=k.Ci.caption;n.Oc=k.Oc;n.bh=k.A;n.H2=k.caption;n.ck=!0;n.ej=!1;n.sx=!1;n.description=p.description;d.push(n)}}return d}search(a){a=a.toLowerCase();if(this.ud!=a){this.ud=a;this.uA=[];for(var c=this.ff.length,d=0;d<c;d++){var g=this.ff[d];g.Df||g.tg&&this.Yz&&!g.Qa||!e.P.contains(g.caption,a)||(g.ud=a,this.rua(g,this.uA),this.uA.push(g))}}}rua(a,
c){if(a.parent&&0>c.indexOf(a.parent)){for(var d=[];null!=a.parent;)d.push(a.parent),a=a.parent;d=d.reverse();for(a=0;a<d.length;a++)0>c.indexOf(d[a])&&c.push(d[a])}}fz(){this.ud="";this.uA=null}get qEa(){return e.model.Wa.R().Fa.ga.Aa!=e.u.i.ra.Cc}get Zo(){return!e.ka(this.ud)}get YU(){return e.model.C.F.U5||this.ff&&50<this.ff.length}get XD(){return(!e.model.Wa.R().Fa.ga.Ec||e.model.Wa.R().Fa.ga.Aa===e.u.i.ra.API)&&e.model.C.F.P5||e.model.C.F.tu&&e.model.Wa.R().Fa.ga.Aa===e.u.i.ra.Cc}get CU(){return this.XD&&
!this.Yc.kb}get Na(){return this.Zo?this.uA:this.vb}get Yc(){return this.fe}RE(a){this.Pb=a}}b.i1=!1;f.O9=b})(h.cu||(h.cu={}))})(l.qd||(l.qd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends w.Mh{constructor(a,c){super();this.type="pivot";this.iw=!1;this.xO=()=>{const d=e.u.Ma.R();this.update(d.O,d.qa,d.ga.Aa)};this.bz=d=>this.pv(d);this.cz=d=>this.qv(d);this.dz=()=>this.LN();this.model=new f.O9;this.iw=c;this.view=this.Ve?new f.Eqa:new f.Dqa(this,a);this.view.N(w.ia.CLOSED,d=>this.Ha(d));this.Bd=[this.view.vg,this.view.Ff,this.view.eg,this.view.Ub];this.view.ei&&this.view.ei.N(x.Qd.uf,()=>this.pE());this.view.Qe&&this.view.Qe.N(x.Qd.uf,
()=>this.at());null!=this.view.qg&&this.view.qg.N(w.ia.Xd,d=>this.T3(d));this.view.gb&&(this.view.gb.G.N("click",d=>this.o4(d)),this.view.gb.G.N("keydown",d=>this.p4(d)),this.view.gb.Ls({en:d=>this.oHa(d),b4:(d,g)=>this.qha(d,g),dn:(d,g)=>this.qha(d,g),om:(d,g,k,m)=>this.om(d,g,k,m),$z:"li"}),this.view.gb.G.cm());a={en:(d,g,k,m)=>this.en(d,g,k,m),dn:(d,g,k,m)=>this.dn(d,g,k,m),om:(d,g,k,m)=>this.om(d,g,k,m),$z:"li",scroll:!0};this.view.vg&&(this.view.vg.Ls(a),this.view.vg.G.N("dblclick",d=>this.FV(d)),
this.view.vg.G.N("keydown",d=>this.GV(d,this.view.vg)),this.view.vg.G.cm());this.view.Ff&&(this.view.Ff.Ls(a),this.view.Ff.G.N("dblclick",d=>this.FV(d)),this.view.Ff.G.N("keydown",d=>this.GV(d,this.view.Ff)),this.view.Ff.G.cm());this.view.eg&&(this.view.eg.Ls(a),this.view.eg.G.N("dblclick",d=>this.FV(d)),this.view.eg.G.N("keydown",d=>this.GV(d,this.view.eg)),this.view.eg.G.cm());this.view.Ub&&(this.view.Ub.G.N("click",d=>this.OHa(d)),this.view.Ub.G.N("dblclick",d=>this.FV(d)),this.view.Ub.G.N("keydown",
d=>this.GV(d,this.view.Ub)),this.view.Ub.Ls(a),this.view.Ub.G.cm());this.view.Ai&&this.view.Ai.N(x.Qd.uf,()=>this.yV());this.view.yC&&this.view.yC.N(x.Qd.uf,()=>this.yV());this.view.pu&&this.view.pu.N(x.Qd.uf,()=>this.uGa());this.view.ie&&(this.view.ie.yW(500),this.view.ie.N(x.Sj.oy,()=>this.RN()));this.view.pe&&(this.view.pe.N("click",()=>this.ct()),this.view.pe.N("keydown",d=>this.lA(d,!1)));this.view.jj&&(this.view.jj.N("click",()=>this.dt()),this.view.jj.N("keydown",d=>this.lA(d,!0)))}get Ve(){return this.iw}at(){this.Ve?
e.Cg.instance.GL():this.UG()}pE(){this.ge();this.UG()}lA(a,c){if(32===a.keyCode||13===a.keyCode)c?this.dt():this.ct()}ct(){this.view.$e.aa("fm-search-opened");this.view.ie.G.focus()}dt(){this.view.$e.Hd("fm-search-opened");this.view.ie.clear();this.view.pe.G.focus()}RN(){this.model.search(this.view.ie.bj());this.view.gb.G.ab("fm-searched",this.model.Zo);this.view.gb.gg(this.model.Na);this.eo(this.view.gb);this.view.pu&&this.view.pu.isVisible(this.model.ffa&&!this.model.Zo)}wO(){this.iw&&e.u.Ma.R().N(e.u.Dy.nK,
this.xO)}vO(){this.iw&&e.u.Ma.R().rb(e.u.Dy.nK,this.xO)}ap(){this.view.open();this.wO()}UG(){this.view.close();this.vO()}ge(){var a=this.model.YM();this.model.ZU(a)&&(a=e.u.O.Tq.xb(e.model.hb.vo.xb(a.Sa()),this.model.Yc),this.Ve&&(a.J3=!1,e.Cg.instance.FE(),this.model.RE(a)),this.vO(),e.model.Wa.R().ge(a),this.wO())}pv(a){e.model.Wa.R().rb(l.Qa.pk.UA,this.bz);this.model.pv(a.Vs);this.kn();this.Ve&&this.ge()}qv(a){e.model.Wa.R().rb(l.Qa.pk.VA,this.cz);this.model.qv(a.Vs);this.kn();this.Ve&&this.ge()}LN(){this.view.WI=
!1;e.model.Wa.R().rb(l.Qa.pk.WA,this.dz);this.view.gb.focus({preventScroll:!0})}yV(){this.tI()}uGa(){this.model.MU?this.model.iD():this.model.Yba();this.eo(this.view.gb);this.view.ye()}FV(a){var c=x.Ga.Yb(a.target).closest("ul");null!=c&&(c=this.ax(c),a=x.Ga.Yb(a.target).closest("li"),null!=a&&(a=parseInt(a.attr("data-index")),this.lW(c,a)))}OHa(a){a=x.Ga.Yb(a.target);var c=a.closest("li");if(null!=c){c=parseInt(c.attr("data-index"));var d=this.model.Da[c];a.Sc("fm-aggr-display")?this.view.qg.gp(d,
a,c):a.Sc("fm-calc-display")&&this.tI(d.A)}}T3(a){this.yA(a.data.nM,a.data.F_)}yA(a,c){a.$=c.$;a.caption=e.model.C.F.Tx?e.P.bind(c.eX,a.name):a.name;this.view.Ub.Rr(a);let d=this.model.Na.find(g=>g.A===a.A);null!=d&&(this.model.Yz&&null!=d.jh&&(d=d.jh),d.$=a.$,d.caption=a.caption,this.view.gb.Rr(g=>g.A===d.A));this.Ve&&this.ge()}tI(a=null){this.view.WI=!0;e.model.Wa.R().Ha(new l.Qa.HX(a));e.model.Wa.R().N(l.Qa.pk.UA,this.bz);e.model.Wa.R().N(l.Qa.pk.WA,this.dz);e.ka(a)||e.model.Wa.R().N(l.Qa.pk.VA,
this.cz)}Fz(a){const c=[];for(let d=0;d<a.Wc.length;d++){const g={caption:a.xL[d],$:a.Wc[d]};void 0!=a.tw&&(g.eX=a.tw[d]);c.push({label:e.u.i.ea.HG(a.Wc[d]),isSelected:a.Wc[d]==a.$,handler:()=>this.yA(a,g)})}return c}GV(a,c){if(32===a.keyCode||13===a.keyCode){if(this.view.aj){const d=c.Su();if(e.v(d))return;const g=[];!0!==d.data.aV&&g.push({label:e.model.B.j.WX,handler:()=>this.Wh(0,d.data,d.index,c)});0<d.index&&g.push({label:e.model.B.j.l8,handler:()=>this.Wh(4,d.data,d.index,c)});d.index<c.Bc().length-
1&&g.push({label:e.model.B.j.g8,handler:()=>this.Wh(5,d.data,d.index,c)});d.data.tg&&!d.data.Qa&&g.push({label:e.model.B.j.VX,submenu:this.Fz(d.data)});c!=this.view.Ff&&this.bv(d.data,c,this.view.Ff)&&g.push({label:e.model.B.j.j8,handler:()=>this.Wh(6,d.data,d.index,c)});c!=this.view.eg&&this.bv(d.data,c,this.view.eg)&&g.push({label:e.model.B.j.h8,handler:()=>this.Wh(7,d.data,d.index,c)});c!=this.view.vg&&this.bv(d.data,c,this.view.vg)&&g.push({label:e.model.B.j.i8,handler:()=>this.Wh(8,d.data,d.index,
c)});c!=this.view.Ub&&this.bv(d.data,c,this.view.Ub)&&g.push({label:e.model.B.j.k8,handler:()=>this.Wh(9,d.data.jh,d.index,c)});d.data.Qa&&g.push({label:e.model.B.j.XX,handler:()=>this.Wh(10,d.data,d.index),preventFocusRestore:!0});this.view.aj.gp(this.view.G,g,d.element.sg(),{top:10,left:10})}a.preventDefault()}}p4(a){if(32===a.keyCode||13===a.keyCode){if(this.view.aj){const c=this.view.gb.Su();if(e.v(c))return;if(c.data.Df){this.Wh(2,c.data,c.index);return}const d=[];c.data.ej&&d.push({label:c.data.dg?
e.model.B.j.dna:e.model.B.j.ena,handler:()=>this.Wh(2,c.data,c.index)});this.c3(c.data)&&d.push({label:e.model.B.j.WX,handler:()=>this.Wh(1,c.data,c.index)});this.bv(c.data,this.view.gb,this.view.Ff)&&d.push({label:e.model.B.j.j8,handler:()=>this.Wh(6,c.data,c.index,this.view.gb)});this.bv(c.data,this.view.gb,this.view.eg)&&d.push({label:e.model.B.j.h8,handler:()=>this.Wh(7,c.data,c.index,this.view.gb)});this.bv(c.data,this.view.gb,this.view.vg)&&d.push({label:e.model.B.j.i8,handler:()=>this.Wh(8,
c.data,c.index,this.view.gb)});if(this.bv(c.data,this.view.gb,this.view.Ub)){const g={label:e.model.B.j.k8,handler:()=>this.Wh(9,c.data.jh,c.index,this.view.gb)};c.data.$fa?d.splice(this.c3(c.data)?1:0,0,g):d.push(g)}c.data.Qa&&d.push({label:e.model.B.j.XX,handler:()=>this.Wh(10,c.data,c.index),preventFocusRestore:!0});this.view.aj.gp(this.view.G,d,c.element.sg(),{top:10,left:10})}a.preventDefault()}}Wh(a,c,d,g=null){1==a?(1==c.Ad&&(this.model.kj(c,!1),this.Nu(c)),null!=c.jh&&1==c.jh.Ad&&(this.model.kj(c.jh,
!1),this.Nu(c.jh)),this.E6(this.view.gb,d),this.yt(),this.Ve&&this.ge()):0==a?(this.lW(g,d),g.Ni(Math.min(d,g.Bc().length-1))):6==a?(g==this.view.gb?this.Ty(g,this.view.Ff,d,this.model.rows.length):this.Zs(g,this.view.Ff,d,this.model.rows.length),g.Ni(Math.min(d,g.Bc().length-1))):7==a?(g==this.view.gb?this.Ty(g,this.view.eg,d,this.model.Ka.length):this.Zs(g,this.view.eg,d,this.model.Ka.length),g.Ni(Math.min(d,g.Bc().length-1))):8==a?(g==this.view.gb?this.Ty(g,this.view.vg,d,this.model.qb.length):
this.Zs(g,this.view.vg,d,this.model.qb.length),g.Ni(Math.min(d,g.Bc().length-1))):9==a?(g==this.view.gb?this.Ty(g,this.view.Ub,d,this.model.Da.length):this.Zs(g,this.view.Ub,d,this.model.Da.length),g.Ni(Math.min(d,g.Bc().length-1))):4==a?(this.Zs(g,g,d,d-1),g.Ni(d-1)):5==a?(this.Zs(g,g,d,d+2),g.Ni(d+1)):2==a?(c.dg?this.model.Zba(c):this.model.wda(c),this.eo(this.view.gb),this.view.ye()):10==a?this.tI(c.A):11==a&&this.view.qg.gp(c,null.find(".fm-aggr-display"))}o4(a){const c=this.view.gb.mD(a.target);
if(!e.v(c))if(a=x.Ga.Yb(a.target),a.Sc("fm-aggr-display"))this.view.qg.gp(c.data,a);else if(a.Sc("fm-calc-display"))this.Wh(10,c.data,c.index);else if(c.data.Df||c.data.ej&&!a.Sc("fm-moreicon-display"))this.Wh(2,c.data,c.index);else{if(this.c3(c.data))1==c.data.Ad&&(this.model.kj(c.data,!1),this.Nu(c.data)),null!=c.data.jh&&1==c.data.jh.Ad&&(this.model.kj(c.data.jh,!1),this.Nu(c.data.jh));else if(c.data.tg&&c.data.sx){this.model.kj(c.data,!0);a=[];for(var d in c.data)c.data[d]instanceof h.W.sj&&a.push(d);
d=u.Hc.zj(c.data,a);this.model.Da.push(d);this.eo(this.view.Ub)}else if(c.data.jh&&c.data.sx&&c.data.jh.type!=e.u.i.Ra.wc&&c.data.jh.type!=e.u.i.Ra.Ua){this.model.kj(c.data.jh,!0);a=[];for(d in c.data.jh)c.data.jh[d]instanceof h.W.sj&&a.push(d);d=u.Hc.zj(c.data.jh,a);this.model.Da.push(d);this.eo(this.view.Ub)}else{if(c.data.ck)for(c.data.parent.Ad&&this.Nu(c.data.parent),d=0;d<c.data.parent.children.length;d++)a=c.data.parent.children[d],a.A!=c.data.A&&(a.Ad&&this.Nu(a),a.Ad=!1);this.model.kj(c.data,
!0);this.model.rows.push(c.data);this.eo(this.view.Ff)}this.E6(this.view.gb,c.index);this.yt();this.Ve&&this.ge()}}E6(a,c){a.xt(c);c=a.Bc()[c];null!=c.parent&&this.SO(a,c.parent);if(c.ej)for(var d=0;d<c.children.length;d++)a.Rr(c.children[d]);if(c.ck)for(d=0;d<c.parent.children.length;d++)a.Rr(c.parent.children[d])}SO(a,c,d=null){a.Rr(d||c);c.parent&&this.SO(a,c.parent);if(c.ej)for(d=0;d<c.children.length;d++)a.Rr(c.children[d]);if(c.ck)for(d=0;d<c.parent.children.length;d++)a.Rr(c.parent.children[d])}Hx(){return!0}oHa(a){if(a&&
a.closest("ul")){var c=parseInt(a.attr("data-index"));a=this.ax(a.closest("ul"));a!=this.view.gb&&this.lW(a,c)}}qha(a,c){a&&a.closest("ul")&&(a=this.ax(a.closest("ul")),a!=this.view.gb&&(c&&c.aa("fm-drag-remove"),a.G.Sc("fm-droppable")?c&&c.aa("fm-droppable-valid"):c&&c.aa("fm-droppable-invalid")))}dn(a,c,d,g){let k;g instanceof MouseEvent?(k=x.Ga.Yb(g.target),g=g.clientY):(g=g.changedTouches[0],k=x.Ga.Yb(document.elementFromPoint(g.clientX,g.clientY)),g=g.clientY);if(!k.Sc("fm-drop-indicator")&&
(this.sm(),c&&(c.Hd("fm-no-drop"),c.Hd("fm-drag-remove")),a&&a.closest("ul"))){d instanceof x.Bd.vj||(d=this.ax(d));var m=this.ax(a.closest("ul"));m.G.Sc("fm-droppable")&&(this.bv(this.pea(a,m),m,d)?this.VE(k,g):c.aa("fm-no-drop"))}}c3(a){return a.Ad||a.jh&&a.jh.Ad}bv(a,c,d){return a.aV&&d!=this.view.eg&&d!=this.view.Ff||!1===a.sx&&d==this.view.Ub||0==this.model.Yz&&(d!=this.view.Ub&&(a.tg||a.gh)||d==this.view.Ub&&!a.tg&&!a.gh)||a.Qa&&d!=this.view.Ub||a.children&&0<a.children.length&&d==this.view.Ub?
!1:a.Qa&&d==this.view.Ub&&c==this.view.Ub?!0:a.Qa&&d==this.view.Ub?e.v(this.view.Ub.Bc().find(g=>g.A===a.A)):c==this.view.gb&&null!=d.Bc().find(g=>g.A===a.A)&&d!=this.view.Ub?!1:!0}pea(a,c){a=parseInt(a.attr("data-index"));return c.Bc()[a]}om(a,c){this.sm();c&&(c.Hd("fm-no-drop"),c.Hd("fm-drag-remove"));if(a&&a.closest("ul")&&c){c.Hd("fm-droppable-valid");c.Hd("fm-droppable-invalid");const d=this.ax(a.closest("ul"));a.Sc("fm-values")||d==this.view.gb||c.aa("fm-drag-remove")}}en(a,c){if(null!=this.xd)if(a&&
a.closest("ul")){c=c instanceof x.Bd.vj?c:this.ax(c);var d=this.ax(a.closest("ul"));if(0==this.bv(this.pea(a,d),d,c))this.sm();else{var g=c.Bc().length;this.xd.element.previousElementSibling?g=parseInt(this.xd.element.previousElementSibling.getAttribute("data-index"))+1:this.xd.element.nextElementSibling&&(g=parseInt(this.xd.element.nextElementSibling.getAttribute("data-index")));this.sm();a=parseInt(a.attr("data-index"));d==this.view.gb&&c!=this.view.gb?this.Ty(d,c,a,g):this.Zs(d,c,a,g);a=c.G.element.scrollTop;
this.Fka();c.G.Sx(a);c.jO(g)}}else this.sm()}rv(a){if(a&&a.closest("ul")){var c=parseInt(a.attr("data-index"));a=this.ax(a.closest("ul"));a!=this.view.gb&&this.lW(a,c)}}VE(a,c){const d=a.closest("li");null!=d?(this.xd=this.Jw(),a=d.getBoundingClientRect(),c>a.top+.75*a.height?d.after(this.xd):d.before(this.xd)):(c=a.closest("ul"),null!=c&&(this.xd=this.Jw(),c.append(this.xd)))}Jw(){return new x.Ga("div","fm-drop-indicator")}sm(){this.xd&&(this.xd.Qg(!0),this.xd=null)}Zs(a,c,d,g){var k=a.Bc()[d];a==
c?(a=c.Bc(),d<g&&--g,a.splice(g,0,a.splice(d,1)[0])):(k=a.Bc()[d],a.Bc().splice(d,1),a.Sr(),c==this.view.Ub&&(this.model.kj(k,!1),k=this.model.fd(this.model.EMa(k.ck?k.bh:k.A)),null!=k.zU&&this.model.kj(k.zU,!1)),a==this.view.Ub&&(-1==a.Bc().findIndex(m=>m.A===k.A)&&this.model.kj(k,!1),k=this.model.uh(this.model.dka(k.A)),null!=k.jh&&this.model.kj(k.jh,!1)),null!=k&&(this.model.kj(k,!0),this.Nu(k,null,!0),c.Bc().splice(g,0,k)));this.eo(c);this.yt();this.Ve&&this.ge()}Ty(a,c,d,g){var k=a.Bc()[d];if(k.ck){k.parent.Ad&&
this.Nu(k.parent);for(d=0;d<k.parent.children.length;d++){var m=k.parent.children[d];m.A!=k.A&&(m.Ad&&this.Nu(m),m.Ad=!1)}this.SO(this.view.gb,k)}this.model.Yz&&c==this.view.Ub&&null!=k.jh&&(k=k.jh);k.Ad&&!k.tg?(this.model.kj(k,!1),this.Nu(k,a,!0),this.model.kj(k,!0)):(this.model.kj(k,!0),a=this.view.gb.Bc().findIndex(p=>p.A===k.A),this.E6(this.view.gb,a));if(this.model.Yz&&c==this.view.Ub&&k.tg){a=[];for(var n in k)k[n]instanceof h.W.sj&&a.push(n);k=u.Hc.zj(k,a)}c.Bc().splice(g,0,k);this.eo(c);this.yt();
this.Ve&&this.ge()}lW(a,c){if(!(a.Bc().length<=c)){var d=a.Bc()[c];if(!d.aV){a.Bc().splice(c,1);this.eo(a);if(!(d.tg&&-1<this.view.Ub.Bc().findIndex(g=>g.A===d.A))){a=this.model.Mda(d.A,d.tg);if(null!=a){this.model.kj(a,!1);const g=null!=a.zU?a.zU:a;this.SO(this.view.gb,g,k=>k.A===g.A);a.ck&&(this.model.kj(a.parent,!1),this.SO(this.view.gb,a.parent))}this.yt()}this.Ve&&this.ge()}}}Nu(a,c=null,d=!1){for(var g=-1,k=0;k<this.Bd.length;k++)if(this.Bd[k]!=c&&(this.Bd[k]!=this.view.Ub||!d))for(var m=!0;m||
-1<g;)m=!1,g=this.Bd[k].Bc().findIndex(n=>n.A===a.A||n.bh===a.A),-1==g&&(g=this.Bd[k].Bc().findIndex(n=>n.A===a.A||n.bh===a.A)),-1<g&&(this.Bd[k].Bc().splice(g,1),this.eo(this.Bd[k]))}ax(a){return a.element==this.view.gb.G.element?this.view.gb:a.element==this.view.vg.G.element?this.view.vg:a.element==this.view.Ff.G.element?this.view.Ff:a.element==this.view.eg.G.element?this.view.eg:a.element==this.view.Ub.G.element?this.view.Ub:null}update(a,c,d="",g=!0,k=!1){g&&this.model.update(a,c,d,h.vp.rT);this.kn(k)}yt(){this.view.ei&&
this.view.ei.Bq(this.model.n3())}get MU(){return this.model.MU}kn(a=!1){this.view.reset&&this.view.reset();this.view.Ai&&(this.view.Ai.isVisible(this.model.XD),this.view.Ai.Bq(this.model.CU));this.view.yC&&(this.view.yC.isVisible(this.model.XD),this.view.yC.Bq(this.model.CU));this.view.gb&&this.view.gb.gg(this.model.Na,!1);this.view.vg&&this.view.vg.gg(this.model.qb,!1);this.view.Ff&&this.view.Ff.gg(this.model.rows,!1);this.view.eg&&this.view.eg.gg(this.model.Ka,!1);this.view.Ub&&this.view.Ub.gg(this.model.Da,
!1);this.view.pu&&this.view.pu.isVisible(this.model.ffa);this.view.$e&&this.view.$e.isVisible(this.model.YU);this.view.ie&&(this.view.ie.clear(!1),this.model.fz());this.view.ye();this.view.G.requestAnimationFrame(()=>{this.Fka();a&&e.model.Za.R().Ha(new e.model.jd(e.model.Za.zF))})}eo(a){a.Sr();var c={Hx:g=>this.Hx(g),Mo:g=>this.view.Mo(g)};u.Nd().im&&(c.nU=".fm-drag-handle");var d=a.G.find("li",!0);if(a==this.view.gb)for(a=0;a<d.length;a++)d[a].Sc("fm-folder")&&!d[a].Sc("fm-level-folder")||d[a].draggable(c);
else for(a.Ls({en:(g,k,m,n)=>this.en(g,k,m,n),dn:(g,k,m,n)=>this.dn(g,k,m,n),om:(g,k,m,n)=>this.om(g,k,m,n),$z:"li",scroll:!0}),c.rv=g=>this.rv(g),a=0;a<d.length;a++)d[a].draggable(c)}Fka(){try{this.yt(),this.eo(this.view.gb),this.eo(this.view.vg),this.eo(this.view.Ff),this.eo(this.view.eg),this.eo(this.view.Ub)}catch(a){}}}f.N9=b})(h.cu||(h.cu={}))})(l.qd||(l.qd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.ce.Fy{constructor(a,c){super(c);this.aF=0;this.controller=a;this.aa("fm-pivot-fields");this.Ke();this.G.cm();this.G.ij({RW:[x.ij.ti.pi,x.ij.ti.CF,x.ij.ti.UF],LS:l.Sb.Jb.G,H_:!0,resize:d=>this.TN(d),complete:()=>this.Pp()})}TN(a){a.WE==x.ij.ti.CF||a.WE==x.ij.ti.UF?(this.Yk(a.size.width+(a.size.width-a.W4.width)),this.Pp()):a.WE==x.ij.ti.pi&&this.Mr(a.size.height);this.wC()}Ke(){var a=new x.Pa("div","fm-popup-header fm-ui-row");this.X(a);
var c=new x.Pa("div","fm-ui-col fm-vam");a.X(c);this.yx=new x.Tc(e.model.B.j.qy);this.yx.aa("fm-popup-title");c.X(this.yx);this.xx=new x.Tc(e.model.B.j.q8);this.xx.aa("fm-popup-subtitle");c.X(this.xx);c=new x.Pa("div","fm-ui-col fm-vam fm-tar fm-ui-btns-row");a.X(c);this.Ai=new x.Vg("fm-btn-add-measure fm-ui-btn-light fm-icon-act_calc");this.Ai.fb(e.model.B.j.hB);c.X(this.Ai);this.Qe=new x.Vg;this.Qe.fb(e.model.B.j.xm);this.ei=new x.Vg("fm-ui-btn-dark");this.ei.fb(e.model.B.j.my);u.uj.aE||u.uj.Yo?
(c.X(this.Qe),c.X(this.ei)):(c.X(this.ei),c.X(this.Qe));a=new x.Pa("div","fm-popup-content");this.X(a);var d=new x.Pa("div","fm-ui-row");a.X(d);c=new x.Pa("div","fm-ui-col-3");d.X(c);var g=new x.Pa("div","fm-list-wrap fm-list-wrap-all");c.X(g);var k=new x.Pa("div","fm-list-header fm-list-header-wide");g.X(k);c=new x.Pa("div","fm-list-header-label-wrap");k.X(c);this.zN=new x.Tc(e.model.B.j.Jv);c.X(this.zN);this.pu=new x.Qd("fm-ui-link-btn fm-btn-collapse-expand-all");this.pu.Hd("fm-ui-btn");this.pu.fb(e.model.B.j.m8);
c.X(this.pu);this.$e=new x.Pa("div","fm-search-wrap");k.X(this.$e);this.pe=new x.Pa("a","fm-search-btn");this.pe.af(0);this.pe.Wk("button");this.$e.X(this.pe);c=new x.Pa("span","fm-ui-icon fm-icon-act_search");this.pe.X(c);this.ie=new x.Sj;this.ie.aa("fm-search-inp");this.$e.X(this.ie);this.jj=new x.Pa("span","fm-close-search fm-ui-icon fm-icon-act_close");this.jj.af(0);this.jj.Wk("button");this.$e.X(this.jj);k=new x.Pa("div","fm-list-content");g.X(k);this.gb=new x.Bd.vj;this.gb.af();this.gb.aa("fm-lst-hierarchies");
this.gb.mi((m,n)=>this.KE(m,n));this.gb.IW(m=>m.caption);k.X(this.gb);c=new x.Pa("div","fm-ui-col-3");d.X(c);g=new x.Pa("div","fm-list-wrap fm-list-wrap-pages");c.X(g);k=new x.Pa("div","fm-list-header");g.X(k);this.BN=new x.Tc(e.model.B.j.$r);k.X(this.BN);k=new x.Pa("div","fm-list-content");g.X(k);this.vg=new x.Bd.vj;this.vg.af();this.vg.aa("fm-lst-pages");this.vg.mi((m,n)=>this.Ns(m,n));this.vg.xg("caption");k.X(this.vg);this.iV=new x.Tc(e.model.B.j.py);this.iV.aa("fm-prompt");this.iV.Eo();g.X(this.iV);
g=new x.Pa("div","fm-list-wrap fm-list-wrap-rows");c.X(g);k=new x.Pa("div","fm-list-header");g.X(k);this.CN=new x.Tc(e.model.B.j.AF);k.X(this.CN);k=new x.Pa("div","fm-list-content");g.X(k);this.Ff=new x.Bd.vj;this.Ff.af();this.Ff.aa("fm-lst-rows");this.Ff.mi((m,n)=>this.Ns(m,n));this.Ff.xg("caption");k.X(this.Ff);this.jV=new x.Tc(e.model.B.j.py);this.jV.aa("fm-prompt");this.jV.Eo();g.X(this.jV);c=new x.Pa("div","fm-ui-col-3");d.X(c);g=new x.Pa("div","fm-list-wrap fm-list-wrap-columns");c.X(g);k=new x.Pa("div",
"fm-list-header");g.X(k);this.yN=new x.Tc(e.model.B.j.yF);k.X(this.yN);k=new x.Pa("div","fm-list-content");g.X(k);this.eg=new x.Bd.vj;this.eg.af();this.eg.aa("fm-lst-columns");this.eg.mi((m,n)=>this.Ns(m,n));this.eg.xg("caption");k.X(this.eg);this.fV=new x.Tc(e.model.B.j.py);this.fV.aa("fm-prompt");this.fV.Eo();g.X(this.fV);g=new x.Pa("div","fm-list-wrap fm-list-wrap-measures");c.X(g);k=new x.Pa("div","fm-list-header");g.X(k);this.AN=new x.Tc(e.model.B.j.iB);k.X(this.AN);this.yC=new x.Vg("fm-btn-add-measure-2 fm-icon-act_calc");
k.X(this.yC);k=new x.Pa("div","fm-list-content");g.X(k);this.Ub=new x.Bd.vj;this.Ub.af();this.Ub.aa("fm-lst-measures");this.Ub.mi((m,n)=>this.Ns(m,n));this.Ub.xg("caption");k.X(this.Ub);this.hV=new x.Tc(e.model.B.j.py);this.hV.aa("fm-prompt");this.hV.Eo();g.X(this.hV);this.qg=new h.kJ;this.qg.aa("fm-aggregations-view");this.qg.$a();a.X(this.qg);this.aj=new x.mr.XF(a.G);this.aj.$a();a.X(this.aj)}ye(){this.yx.fb(e.model.B.j.qy);this.xx.fb(e.model.B.j.q8);this.Qe.fb(e.model.B.j.xm);this.ei.fb(e.model.B.j.my);
this.zN.fb(e.model.B.j.Jv);this.BN.fb(e.model.B.j.$r);this.CN.fb(e.model.B.j.AF);this.yN.fb(e.model.B.j.yF);this.AN.fb(e.model.B.j.iB);this.Ai.fb(e.model.B.j.hB);this.Ai.ni(e.model.B.j.hB);this.yC.ni(e.model.B.j.hB);this.iV.fb(e.model.B.j.py);this.jV.fb(e.model.B.j.py);this.fV.fb(e.model.B.j.py);this.hV.fb(e.model.B.j.py);this.pu.fb(this.controller.MU?e.model.B.j.gna:e.model.B.j.m8);this.zc(e.model.B.j.qy);this.yx.Eo();this.xx.Eo();this.gb.zc(e.model.B.j.Jv);this.vg.zc(e.model.B.j.$r);this.Ff.zc(e.model.B.j.AF);
this.eg.zc(e.model.B.j.yF);this.Ub.zc(e.model.B.j.iB);this.pe.zc(e.model.B.j.zP);this.ie.zc(e.model.B.j.zP);this.jj.zc(e.model.B.j.p8)}Ns(a,c){var d=new h.Li.aY;d.setData(a);d.hn(c);return d}KE(a,c){a=new h.Li.FQ(a,c);a.hn(c);return a}reset(){this.$e.Hd("fm-search-opened");this.ie.clear(!1)}Mo(a){const c=new x.Ga("span");c.aa("fm-drag-handle");c.aa("fm-helper");c.aa("fm-draggable");c.ab("fm-values",a.Sc("fm-values"));c.V("width",a.V("width"));c.V("position","absolute");c.V("z-index",100);c.attr("data-index",
a.attr("data-index"));const d=new x.Ga("span","fm-label");d.text(a.text());c.X(d);c.X(new x.Ga("i","fm-drag-icon"));return c}wC(){super.wC(!0)}}f.Dqa=b})(h.cu||(h.cu={}))})(l.qd||(l.qd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.ce.sk{constructor(){super();this.aF=0;this.aa("fm-pivot-fields");this.aa("fm-instant-view");this.Ke();this.G.cm()}Ke(){var a=new x.Pa("div","fm-popup-content");this.X(a);var c=new x.Pa("div","fm-list-wrap fm-list-wrap-all");a.X(c);var d=new x.Pa("div","fm-list-header fm-list-header-wide");c.X(d);var g=new x.Pa("div","fm-list-header-label-wrap");d.X(g);this.zN=new x.Tc(e.model.B.j.Jv);g.X(this.zN);this.Ai=new x.Vg("fm-btn-add-measure");
d.X(this.Ai);this.Qe=new x.Vg("fm-btn-close-fields");d.X(this.Qe);d=new x.Pa("div","fm-list-content");c.X(d);this.gb=new x.Bd.vj;this.gb.aa("fm-lst-hierarchies");this.gb.af();this.gb.mi((k,m)=>this.KE(k,m));this.gb.xg("caption");d.X(this.gb);g=new x.Pa("div","fm-ui-row");a.X(g);d=new x.Pa("div","fm-ui-col-2");g.X(d);c=new x.Pa("div","fm-list-wrap fm-list-wrap-pages");d.X(c);d=new x.Pa("div","fm-list-header");c.X(d);this.BN=new x.Tc(e.model.B.j.$r);d.X(this.BN);d=new x.Pa("div","fm-list-content");
c.X(d);this.vg=new x.Bd.vj;this.vg.aa("fm-lst-pages");this.vg.af();this.vg.mi((k,m)=>this.Ns(k,m));this.vg.xg("caption");d.X(this.vg);d=new x.Pa("div","fm-ui-col-2");g.X(d);c=new x.Pa("div","fm-list-wrap fm-list-wrap-columns");d.X(c);d=new x.Pa("div","fm-list-header");c.X(d);this.yN=new x.Tc(e.model.B.j.yF);d.X(this.yN);d=new x.Pa("div","fm-list-content");c.X(d);this.eg=new x.Bd.vj;this.eg.aa("fm-lst-columns");this.eg.af();this.eg.mi((k,m)=>this.Ns(k,m));this.eg.xg("caption");d.X(this.eg);g=new x.Pa("div",
"fm-ui-row");a.X(g);c=new x.Pa("div","fm-list-wrap fm-list-wrap-rows");g.X(c);d=new x.Pa("div","fm-list-header");c.X(d);this.CN=new x.Tc(e.model.B.j.AF);d.X(this.CN);d=new x.Pa("div","fm-list-content");c.X(d);this.Ff=new x.Bd.vj;this.Ff.aa("fm-lst-rows");this.Ff.af();this.Ff.mi((k,m)=>this.Ns(k,m));this.Ff.xg("caption");d.X(this.Ff);g=new x.Pa("div","fm-ui-row");a.X(g);c=new x.Pa("div","fm-list-wrap fm-list-wrap-measures");g.X(c);d=new x.Pa("div","fm-list-header");c.X(d);this.AN=new x.Tc(e.model.B.j.iB);
d.X(this.AN);d=new x.Pa("div","fm-list-content");c.X(d);this.Ub=new x.Bd.vj;this.Ub.aa("fm-lst-measures");this.Ub.af();this.Ub.mi((k,m)=>this.Ns(k,m));this.Ub.xg("caption");d.X(this.Ub);this.qg=new h.kJ;this.qg.aa("fm-aggregations-view");this.qg.$a();a.X(this.qg);this.aj=new x.mr.XF(a.G);this.aj.$a();a.X(this.aj)}ye(){this.zN.fb(e.model.B.j.Jv);this.BN.fb(e.model.B.j.$r);this.CN.fb(e.model.B.j.AF);this.yN.fb(e.model.B.j.yF);this.AN.fb(e.model.B.j.iB);this.Ai.ni(e.model.B.j.hB);this.zc(e.model.B.j.qy);
this.gb.zc(e.model.B.j.Jv);this.vg.zc(e.model.B.j.$r);this.Ff.zc(e.model.B.j.AF);this.eg.zc(e.model.B.j.yF);this.Ub.zc(e.model.B.j.iB);this.Qe.zc(e.model.B.j.CJ)}Ns(a,c){var d=new h.Li.aY;d.setData(a);d.hn(c);return d}KE(a,c){a=new h.Li.FQ(a,c);a.hn(c);return a}Mo(a){const c=new x.Ga("span");c.aa("fm-drag-handle");c.aa("fm-helper");c.aa("fm-draggable");c.ab("fm-values",a.Sc("fm-values"));c.V("width",a.V("width"));c.V("position","absolute");c.V("z-index",100);c.attr("data-index",a.attr("data-index"));
const d=new x.Ga("span","fm-label");d.text(a.text());c.X(d);c.X(new x.Ga("i","fm-drag-icon"));return c}open(){this.show();this.Ya(w.ia.OPENED)}close(){this.$a();this.Ya(w.ia.CLOSED)}reset(){}}f.Eqa=b})(h.cu||(h.cu={}))})(l.qd||(l.qd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.Pa{constructor(){super();this.AS=()=>this.SN();this.aa("fm-fields-view-wrap");this.Ke()}Ke(){this.ft=new x.Vg("fm-btn-open-fields");this.ft.ni(e.model.B.j.LQ);this.ft.zc(e.model.B.j.zF);this.ft.N(x.Qd.uf,()=>this.E4());this.X(this.ft)}updateLabels(){this.ft.ni(e.model.B.j.LQ);this.ft.zc(e.model.B.j.zF)}open(b,a,c=""){if(!this.Ve||this.O2||this.Nfa||this.Efa||e.v(this.QK)){this.controller&&this.controller.rb(w.ia.CLOSED,this.AS);this.close();
this.controller&&this.controller.N(w.ia.CLOSED,this.AS);this.G.ab("fm-fields-opened",!0);this.G.ab("fm-fields-instant",this.Ve);this.Ve&&this.G.Mr(l.Sb.Jb.Gr());e.model.C.F.Qm=!0;this.controller=this.jBa();var d=e.model.C.F.Qm&&this.O2;this.controller.update(b,a,c,this.WCa,d);this.controller.view.aa("fm-fields-view");this.X(this.controller.view);this.isVisible()||this.show();this.controller.ap();!this.controller.view.WI&&this.controller.view.gb&&this.controller.view.gb.focus({preventScroll:!0});l.Sb.Jb.kD=
this.Ve?this.controller.view.cg():0;this.hw=!0;this.QK=e.u.Ma.R().qa?e.u.Ma.R().qa.clone():null;this.Ab=e.u.Ma.R().ga;this.eta=e.u.Ma.R().O&&e.u.Ma.R().O.Td;this.mG=e.model.C.F.sc;this.bta=e.model.C.F.me==l.Jd.nj;this.mG&&d&&e.model.Za.R().Ha(new e.model.jd(e.model.Za.zF))}else this.G.Mr(l.Sb.Jb.Gr())}get Ve(){return"right"==e.model.C.F.jD}get Nfa(){return this.mG!=e.model.C.F.sc||e.model.C.F.sc&&this.bta!=(e.model.C.F.me==l.Jd.nj)}get O2(){return this.hw!=e.model.C.F.Qm}get Efa(){return null==this.Ab||
null==e.u.Ma.R().O||this.eta!=e.u.Ma.R().O.Td||!this.Ab.isEqual(e.u.Ma.R().ga)}get vEa(){return null==e.u.Ma.R().qa&&null!=this.QK||null!=e.u.Ma.R().qa&&null==this.QK||e.u.Ma.R().qa&&this.QK&&!e.u.Ma.R().qa.isEqual(this.QK)}get WCa(){return this.O2||this.Efa||this.vEa||this.Nfa}jBa(){var b=null,a=e.model.C.F.sc&&e.model.C.F.me!=l.Jd.nj,c=l.Sb.Jb.G;null==this.controller?b=a?new h.flat.bY(c,this.Ve):new h.cu.N9(c,this.Ve):!a||"flat"==this.controller.type&&this.controller.Ve==this.Ve?a||"pivot"==this.controller.type&&
this.controller.Ve==this.Ve||(b=new h.cu.N9(c,this.Ve)):b=new h.flat.bY(c,this.Ve);if(null==b)return this.controller;this.controller&&this.controller.Vd();b.N(w.ia.CLOSED,this.AS);b.N(f.AJ,d=>this.U3(d));return b}U3(b){this.Ha(b)}SN(){this.hw=void 0;this.Ab=null;this.mG=void 0;this.controller.rb(w.ia.CLOSED,this.AS);e.model.Za.R().Ha(new e.model.jd(e.model.Za.CJ));e.model.C.F.R();e.model.C.F.JS?this.show():this.$a();e.model.C.F.Qm=!1;this.Ya(w.ia.CLOSED);this.G.ab("fm-fields-opened",!1);this.G.Mr("")}close(){this.controller&&
this.controller.UG()}E4(){this.Ya(f.yP)}get hv(){return this.hw}}f.AJ="EVENT_APPLY_SLICE";f.yP="EVENT_OPEN";h.vp=f})(l.qd||(l.qd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.Li.GB{constructor(){super();this.UL()}UL(){null==this.mp&&(this.mp=new x.Ga("span","fm-text-display"))}v0(){null==this.sw&&(this.sw=new x.Ga("span","fm-aggr-display"),this.sw.attr("title",e.model.B.j.j$),this.sw.Gg("hidden","true"))}w0(){null==this.vw&&(this.vw=new x.Ga("span","fm-calc-display"),this.vw.attr("title",e.model.B.j.h$),this.vw.Gg("hidden","true"))}x0(){null==this.Qw&&(this.Qw=new x.Ga("span","fm-drag-handle"),this.Qw.Gg("hidden",
"true"))}n6(a,c){return null==a?a:a.replace(new RegExp("("+c.ud+")","i"),'<b class="fm-search-highlight">$&</b>')}nb(){const a=this.getData();this.G.empty();var c=null!=this.wx?(0,this.wx)(a):a.ck?a.H2+" / "+a[this.ur()]:a[this.ur()];this.mp.html(void 0!==a.ud?this.n6(c,a):c);this.mp.attr("title",c+(e.ka(a.description)?"":`\n${a.description}`));this.zc(c);this.G.append(this.mp);1==a.tg&&!a.gh&&1==a.Jl&&1<a.Wc.length&&e.model.C.F.Jl&&(this.v0(),this.G.append(this.sw));!0===a.tg&&!0===a.Qa&&(this.w0(),
this.G.append(this.vw));this.x0();this.G.append(this.Qw);this.G.ab("fm-measure",!0===a.tg);this.G.ab("fm-values",!0===a.aV);this.G.ab("fm-selected",!0===a.Ad);this.G.ab("fm-level",!0===a.ck)}}f.aY=b})(h.Li||(h.Li={}))})(l.qd||(l.qd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.Li.GB{constructor(a=null){super();this.data=a;this.A0();this.UL()}A0(){null==this.PD&&(this.PD=new x.Ga("span","fm-icon-display"),this.PD.Gg("hidden","true"))}Qxa(){null==this.N3&&(this.N3=new x.Ga("span","fm-moreicon-display"),this.N3.Gg("hidden","true"))}UL(){null==this.mp&&(this.mp=new x.Ga("span","fm-text-display"))}v0(){null==this.sw&&(this.sw=new x.Ga("span","fm-aggr-display"),this.sw.attr("title",e.model.B.j.j$),this.sw.Gg("hidden",
"true"))}w0(){null==this.vw&&(this.vw=new x.Ga("span","fm-calc-display"),this.vw.attr("title",e.model.B.j.h$),this.vw.Gg("hidden","true"))}x0(){null==this.Qw&&(this.Qw=new x.Ga("span","fm-drag-handle"),this.Qw.Gg("hidden","true"))}n6(a,c){return null==a?a:a.replace(new RegExp("("+c.ud+")","i"),'<b class="fm-search-highlight">$&</b>')}nb(){const a=this.getData();this.G.empty();this.G.append(this.PD);a.ej&&(this.Qxa(),this.G.append(this.N3));var c=this.I();this.mp.html(void 0!==a.ud?this.n6(c,a):c);
this.mp.attr("title",this.I()+(e.ka(a.description)?"":`\n${a.description}`));this.G.append(this.mp);!0===a.tg&&!a.gh&&!0!==a.Qa&&1<a.Wc.length&&e.model.C.F.Jl&&"right"!=e.model.C.F.jD&&(this.v0(),this.G.aa("fm-has-aggs"),this.G.append(this.sw));!0!==a.tg||!0!==a.Qa||!0!==a.Jl&&!e.model.C.F.tu||(this.w0(),this.G.append(this.vw));a.Df||a.gv?null!=this.Qw&&this.Qw.remove():(this.x0(),this.G.append(this.Qw));c=!0===a.Ad||null!=a.jh&&!0===a.jh.Ad;for(var d=1;10>d;d++)this.G.ab("fm-level-"+d,a.level===
d);this.G.ab("fm-selected",!0===c);this.G.ab("fm-checked",!0!==a.Df&&!0!==a.ck&&!0===c||1==a.ck&&!0===c);this.G.ab("fm-unchecked",!0!==a.Df&&!0!==a.ck&&!0!==c||1==a.ck&&!0!==c);this.G.ab("fm-measure",a.sx&&(!0===a.tg&&!0!==a.gh||a.$fa||a.ux||a.HDa));this.G.ab("fm-folder",!0===a.Df||!0===a.ej);this.G.ab("fm-level-folder",!0===a.ej);this.G.ab("fm-level",!0===a.ck);this.G.ab("fm-measures-folder",!0===a.gv&&!0!==a.gh);this.G.ab("fm-measures-calculated-folder",!0===a.gv&&!0!==a.gh&&!0===a.YH);this.G.ab("fm-kpis-folder",
!0===a.gh&&!0===a.Df);this.G.ab("fm-kpi",!0===a.gh&&!0!==a.Df);this.G.ab("fm-calculated",!0===a.Qa);this.G.ab(l.Y.W.ya.DX,(!0===a.Df||!0===a.ej)&&!0!==a.dg);this.G.ab(l.Y.W.ya.SX,(!0===a.Df||!0===a.ej)&&!0===a.dg);this.zc(this.I());this.Dba(!0===c);!0!==a.Df&&!0!==a.ej||this.Cba(!0===a.dg)}}f.FQ=b})(h.Li||(h.Li={}))})(l.qd||(l.qd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{Sa(){const d={};e.v(this.qb)||(d.pages=this.qb.map(g=>g.Sa()));e.v(this.rows)||(d.rows=this.rows.map(g=>g.Sa()));e.v(this.Ka)||(d.columns=this.Ka.map(g=>g.Sa()));e.v(this.Da)||(d.measures=this.Da.map(g=>g.Sa()));e.v(this.Zg)||(d.flatOrder=this.Zg.slice());e.v(this.$g)||(d.flatSort=this.$g.slice());e.v(this.Nj)||(d.sorting=this.Nj);return d}}f.rra=b;class a{Sa(){const d={};e.v(this.A)||(d.uniqueName=this.A);e.v(this.$)||(d.aggregation=this.$);
e.v(this.zf)||(d.activeLevelName=this.zf);return d}static ET(d){const g=new a;g.A=d.A;d.tg&&(g.$=d.$,g.Q2=d.Q2);d.ck&&(g.zf=d.A,g.A=d.bh);return g}}f.GQ=a;class c{static QL(d){const g=[];for(let k=0;k<d.length;k++)g.push(c.OS(d[k]));return g}static dX(d){return d.ej||d.Df?c.BMa(d):c.JMa(d)}static BMa(d){const g={caption:d.caption,isFolder:!0};void 0!==d.YH&&d.YH&&(g.isCalculated=d.YH);void 0!==d.gv&&(g.isMeasureFolder=d.gv);e.v(d.parent)||(g.folder=void 0!==d.eH?d.eH:d.parent.caption);void 0!==d.gh&&
d.gh&&(g.isKPI=d.gh);return g}static JMa(d){const g={caption:d.caption,isFolder:!1};void 0!==d.Qa&&d.Qa&&(g.isCalculated=d.Qa);void 0!==d.gh&&d.gh&&(g.isKPI=d.gh);void 0!==d.Mg&&void 0!==d.Oc&&d.gh?g.folder=d.Mg+"/"+d.Oc:void 0!==d.Mg?g.folder=d.Mg:void 0!==d.Oc&&0<d.Oc.length?g.folder=d.Oc:!e.v(d.parent)&&d.parent.ck?g.folder=d.H2:e.v(d.parent)||(g.folder=d.eH);return g}static OS(d){const g=d.Wc,k=new f.sj;k.A=d.A;k.caption=d.caption;k.name=d.Bl;k.type=d.type;k.$=d.$;k.Qa=d.Qa;k.Oc=d.Oc;k.Mg=d.Mg;
k.xr=d.xr;k.gh=d.gh;k.Wc=g;k.xL=e.u.i.ea.G_(g);k.tw=e.u.i.ea.sba(g);k.sx=d.sx();k.description=d.description;return k}}f.sj=c})(h.W||(h.W={}))})(l.qd||(l.qd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{get Yc(){return this.fe}set Yc(a){this.fe=a}constructor(a){this.Yqa=40;this.Zt=null;this.yo=a}get Na(){return this.Zo?this.uA:this.vb}set Na(a){this.vb=a}n3(){return 0<this.BCa().length}fz(){this.ud="";this.uA=null}get YU(){return(e.model.C.F.U5||this.Na&&this.Na.length>this.Yqa)&&this.yo!=e.u.i.ra.Cc}get Zo(){return!e.ka(this.ud)}search(a){a=a.toLowerCase();if(this.ud!=a){this.ud=a;this.uA=[];for(var c=0;c<this.vb.length;c++){var d=this.vb[c];
e.P.contains(d.caption,a)&&(d.ud=this.ud,this.uA.push(d))}}}f2(){for(var a=0,c=0;c<this.Na.length;c++)this.Na[c].Ad&&a++;return 0==a?0:a==this.Na.length?1:-1}BCa(){const a=[];if(!e.v(this.vb))for(let c=0;c<this.vb.length;c++)this.vb[c].Ad&&a.push(this.vb[c]);return a}get XD(){return(!e.model.Wa.R().Fa.ga.Ec||e.model.Wa.R().Fa.ga.Aa===e.u.i.ra.API)&&e.model.C.F.P5||e.model.C.F.tu&&e.model.Wa.R().Fa.ga.Aa===e.u.i.ra.Cc}get CU(){return this.XD&&!this.Yc.kb}OI(a,c){if(0!==c.length||!e.v(this.Zt))if(e.v(this.Zt))a.sort((d,
g)=>this.Rca(d,g,c));else{const d=[];let g=[];if(0<c.length){for(let m=0;m<a.length;m++)a[m].Ad?d.push(a[m]):g.push(a[m]);d.sort((m,n)=>this.Rca(m,n,c))}else g=a;const k=this.CBa();g.sort((m,n)=>this.Zt(h.W.sj.dX(m),h.W.sj.dX(n),k));this.Na=[...d,...g]}}CBa(){return this instanceof f.D8?"flat":"drillThrough"}Rca(a,c,d){const g=this.OM(a,d);d=this.OM(c,d);return g==d?a.caption.localeCompare(c.caption):d-g}OM(a,c){return a.Ad?c.length-c.indexOf(a.A):0}yl(a){for(var c=0;c<this.Na.length;c++)this.Na[c].Ad=
0<=a.indexOf(this.Na[c].A)}FBa(a){return this.GMa(this.Na,a)}GMa(a,c){for(var d=[],g=0;g<c.length;g++){var k=a[c[g]];k.Ad&&d.push({A:k.A,$:k.$})}return d}fka(a,c){for(var d=[],g=0;g<c.length;g++){var k=a[c[g]];k.Ad&&d.push(k)}return d}}f.d7=b})(h.flat||(h.flat={}))})(l.qd||(l.qd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends f.d7{constructor(a){super(a);this.Gn=null}update(a,c,d){this.fe=a;this.Pb=c;this.Zt=d;this.OO();this.Fq()}OO(){this.Na=[];for(var a=this.fe.vc(!1),c=0;c<a.length;c++){var d=a.fa(c),g=this.fe.nf(d.A);e.v(g)||g.type==e.u.i.Ra.wc||g.type==e.u.i.Ra.Ua||this.Pb.rows.Bb(g.A)||this.Pb.Ka.Bb(g.A)||this.Pb.qb.Bb(g.A)?this.Na.push(this.ixa(d)):this.Na.push(this.OS(g))}a=this.fe.gr;for(c=0;c<a.length;c++)g=a.fa(c),this.Na.push(this.OS(g))}Fq(){if(null!==
this.Gn)this.Na=this.Gn.hierarchies,this.Z_();else{var a=this.Pb.flatten(!0,!0).Pc(!0);this.yl(a);this.rLa(this.Pb.gd());this.OI(this.Na,a)}}rLa(a){for(var c=0;c<a.length;c++){var d=this.Jza(a[c].A);e.v(d)||(d.$=a[c].$)}}Jza(a){for(var c=0;c<this.vb.length;c++)if(this.vb[c].A==a)return this.vb[c];return null}OS(a){var c=new h.W.sj;c.A=a.A;c.caption=a.Bl;c.$=a.$;c.Qa=a.Qa;a=a.Wc;c.Wc=a;c.xL=e.u.i.ea.G_(a);c.tw=e.u.i.ea.sba(a);c.tg=!0;c.Jl=e.model.C.F.Jl;return c}ixa(a){var c=new h.W.sj;c.A=a.A;c.caption=
a.caption;return c}YM(a){var c=this.Pb.clone(),d=this.fka(this.Na,a),g=d.map(r=>r.A),k=c.flatten(!0,!0);a=c.gd();for(var m=0;m<k.length;m++){var n=k.fa(m).A;if(0>g.indexOf(n)){c.qb.Bb(n)&&c.qb.removeItem(n);c.Ka.Bb(n)&&c.Ka.removeItem(n);c.rows.Bb(n)&&c.rows.removeItem(n);let r=this.fe.nf(n);e.v(r)&&(r=this.fe.gr.getItem(n));e.v(r)||(n=a.findIndex(v=>v.A===r.A),-1<n&&a.splice(n,1))}}for(m=0;m<d.length;m++)if(n=d[m].A,!k.Bb(n)){var p=this.fe.uh(n),t=this.fe.fd(n);e.v(t)||e.v(p)||t.type==e.u.i.Ra.wc||
p.type==e.u.i.Ic.Ua?e.v(p)?this.fe.gr.Bb(n)&&a.push(this.fe.gr.getItem(n)):c.rows.Ta(n,p):a.push(t)}for(m=0;m<d.length;m++)if(k=d[m],k.$)for(n=0;n<a.length;n++)a[n].A==k.A&&(a[n].$=k.$);c.Zg=g;for(d=0;d<a.length;d++)a[d].index=d;c.zA(a);return c}Os(){return null!=this.fe?h.W.sj.QL(this.fe.Da.Pc()):[]}pv(a){if(null!=this.Pb&&null!=this.fe){const c=this.Os().find(d=>d.A===a);if(null!=c){c.Ad=!0;let d=0;for(let g=0;g<this.Na.length;g++)this.Na[g].Ad&&(d=g);this.Na=[...this.Na.slice(0,d+1),c,...this.Na.slice(d+
1)]}}}qv(a){if(null!=this.Pb&&null!=this.fe){const c=this.Na.findIndex(d=>d.A===a);this.Na.splice(c,1);this.j6()}}Z_(){this.Gn=null}j6(){this.Gn={hierarchies:this.Na}}ZU(a){var c=this.Pb.flatten(!0,!0).Pc();if(a.length!=c.length)return!0;for(var d=0;d<a.length;d++){var g=a[d],k=c[d];if(g.A!=k.A||void 0!=g.$&&void 0!=k.$&&g.$!=k.$)return!0}return!1}RE(a){this.Pb=a}}f.D8=b})(h.flat||(h.flat={}))})(l.qd||(l.qd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends w.Mh{constructor(a,c){super();this.type="flat";this.iw=!1;this.xO=()=>{const d=e.u.Ma.R();this.update(d.O,d.qa,d.ga.Aa)};this.bz=d=>this.pv(d);this.cz=d=>this.qv(d);this.dz=()=>this.LN();this.Db=this.US(e.u.Ma.R().ga.Aa);this.iw=c;this.view=this.zca(a);this.view.N(w.ia.CLOSED,d=>this.Ha(d));this.view.ei&&this.view.ei.N(x.Qd.uf,()=>this.pE());this.view.Qe&&this.view.Qe.N(x.Qd.uf,()=>this.at());null!=this.view.qg&&this.view.qg.N(w.ia.Xd,
d=>this.T3(d));this.view.gb&&(this.view.gb.G.N("click",d=>this.o4(d)),this.view.gb.G.N("keydown",d=>this.p4(d)),this.view.gb.G.Ls({en:(d,g,k,m)=>this.en(d,g,k,m),dn:(d,g,k,m)=>this.dn(d,g,k,m),om:(d,g,k,m)=>this.om(d,g,k,m),$z:"li",scroll:!0}));this.view.ae&&this.view.ae.N(w.ia.Xd,()=>this.R4());this.view.Ai&&this.view.Ai.N(x.Qd.uf,()=>this.yV());this.view.ie&&(this.view.ie.yW(500),this.view.ie.N(x.Sj.oy,()=>this.RN()));this.view.pe&&(this.view.pe.N("click",()=>this.ct()),this.view.pe.N("keydown",
d=>this.lA(d,!1)));this.view.jj&&(this.view.jj.N("click",()=>this.dt()),this.view.jj.N("keydown",d=>this.lA(d,!0)))}get Ve(){return this.iw}zca(a){return this.Ve?new f.doa:new f.E8(a)}US(a){return new f.D8(a)}lA(a,c){if(32===a.keyCode||13===a.keyCode)c?this.dt():this.ct()}ct(){this.view.$e.aa("fm-search-opened-flat");this.view.ie.G.focus()}dt(){this.view.$e.Hd("fm-search-opened-flat");this.view.ie.clear();this.view.pe.G.focus()}dn(a,c,d,g){g instanceof MouseEvent?(d=x.Ga.Yb(g.target),g=g.clientY):
(g=g.changedTouches[0],d=x.Ga.Yb(document.elementFromPoint(g.clientX,g.clientY)),g=g.clientY);d.Sc("fm-drop-indicator")||(this.sm(),a&&a.closest("ul")&&(c&&c.aa("fm-droppable-valid"),a.aa("fm-drag-over"),this.VE(d,g)))}om(a,c){this.sm();a&&a.closest("ul")&&(c&&c.Hd("fm-droppable-valid"),c&&c.Hd("fm-droppable-invalid"),a.Hd("fm-drag-over"))}RN(){this.Db.search(this.view.ie.bj());this.view.gb.G.ab("fm-searched",this.Db.Zo);this.view.gb.gg(this.Db.Na);this.lM()}T3(a){this.yA(a.data.nM,a.data.F_)}yA(a,
c){a.$=c.$;this.view.gb.Rr(a);c=this.Db.Na.find(d=>d.A===a.A);null!=c&&(c.$=a.$,c.caption=a.caption);this.Ve&&this.ge()}en(a){if(null!=this.xd)if(a&&a.closest("ul")){a=parseInt(a.attr("data-index"));var c=this.view.gb.Bc()[a],d=this.view.gb.Bc().length;this.xd.element.previousElementSibling?d=parseInt(this.xd.element.previousElementSibling.getAttribute("data-index"))+1:this.xd.element.nextElementSibling&&(d=parseInt(this.xd.element.nextElementSibling.getAttribute("data-index")));this.sm();this.Zs(a,
d);this.view.gb.Ni(this.view.gb.Bc().indexOf(c));this.view.gb.G.Sx(this.view.gb.G.element.scrollTop);this.view.gb.jO(d)}else this.sm()}Zs(a,c){if(a!=c){var d=this.view.gb.Bc();a<c&&--c;d.splice(c,0,d.splice(a,1)[0]);this.view.gb.Sr();this.yt();this.lM();this.Ve&&this.ge()}}wO(){this.iw&&e.u.Ma.R().N(e.u.Dy.nK,this.xO)}vO(){this.iw&&e.u.Ma.R().rb(e.u.Dy.nK,this.xO)}ap(){this.view.open();this.wO()}UG(){this.view.close();this.vO()}at(){this.Ve?e.Cg.instance.GL():this.UG()}pE(){this.view.ie&&this.Db.Zo&&
(this.view.ie.clear(!1),this.Db.fz(),this.view.gb.gg(this.Db.Na),this.lM());this.ge();this.UG()}R4(){for(var a=this.view.ae.checked,c=this.Db.Na,d=0;d<c.length;d++)c[d].Ad=a;this.view.gb.Sr();this.yt();this.lM();this.Ve&&this.ge()}p4(a){if(32===a.keyCode||13===a.keyCode){if(this.view.aj){const c=this.view.gb.Su();if(e.v(c))return;const d=[];d.push({label:c.data.Ad?e.model.B.j.WX:e.model.B.j.fna,handler:()=>this.Wh(3,c.data,c.index)});0<c.index&&d.push({label:e.model.B.j.l8,handler:()=>this.Wh(4,c.data,
c.index)});c.index<this.view.gb.Bc().length-1&&d.push({label:e.model.B.j.g8,handler:()=>this.Wh(5,c.data,c.index)});c.data.tg&&d.push({label:e.model.B.j.VX,submenu:this.Fz(c.data)});c.data.Qa&&d.push({label:e.model.B.j.XX,handler:()=>this.Wh(10,c.data,c.index)});this.view.aj.gp(this.view.G,d,c.element.sg(),{top:10,left:10})}a.preventDefault()}}Fz(a){const c=[];for(let d=0;d<a.Wc.length;d++){const g={caption:a.xL[d],$:a.Wc[d]};void 0!=a.tw&&(g.eX=a.tw[d]);c.push({label:e.u.i.ea.HG(a.Wc[d]),isSelected:a.Wc[d]==
a.$,handler:()=>this.yA(a,g)})}return c}Wh(a,c,d){3==a?(c.Ad=!c.Ad,this.view.gb&&this.view.gb.xt(d),this.view.ae&&this.view.ae.Jf(this.Db.f2()),this.yt(),this.Ve&&this.ge()):4==a?(this.Zs(d,d-1),this.view.gb.Ni(d-1)):5==a?(this.Zs(d,d+2),this.view.gb.Ni(d+1)):10==a&&this.tI(c.A)}o4(a){const c=this.view.gb.mD(a.target);e.v(c)||(a=x.Ga.Yb(a.target),a.Sc("fm-aggr-display")?this.view.qg.gp(c.data,a):a.Sc("fm-calc-display")?this.Wh(10,c.data,c.index):this.Wh(3,c.data,c.index))}tI(a=null){this.view.WI=
!0;e.model.Wa.R().Ha(new l.Qa.HX(a));e.model.Wa.R().N(l.Qa.pk.WA,this.dz);e.model.Wa.R().N(l.Qa.pk.UA,this.bz);e.model.Wa.R().N(l.Qa.pk.VA,this.cz)}yV(){this.tI()}pv(a){e.model.Wa.R().rb(l.Qa.pk.UA,this.bz);this.Db.pv(a.Vs);this.kn();this.Ve&&this.ge()}qv(a){e.model.Wa.R().rb(l.Qa.pk.VA,this.cz);this.Db.qv(a.Vs);this.kn();this.Ve&&this.ge()}LN(){this.view.WI=!1;e.model.Wa.R().rb(l.Qa.pk.WA,this.dz);this.view.gb.focus({preventScroll:!0})}kn(){this.view.reset&&this.view.reset();this.view.$e&&this.view.$e.isVisible(this.Db.YU);
this.view.ie&&(this.view.ie.clear(!1),this.Db.fz());this.view.gb&&(this.view.gb.gg(this.Db.Na),this.yt(),this.lM());this.view.Ai&&(this.view.Ai.isVisible(this.Db.XD),this.view.Ai.Bq(this.Db.CU))}lM(){var a={Mo:g=>this.view.Mo(g)};u.Nd().im&&(a.nU=".fm-drag-handle");for(var c=this.view.gb.G.find("li",!0),d=0;d<c.length;d++)c[d].draggable(a)}update(a,c){e.v(a)||e.v(c)||(this.Db.update(a,c,h.vp.rT),this.kn(),this.view.ae&&this.view.ae.Jf(this.Db.f2()),this.view.ye())}yt(){this.view.ei&&this.view.ei.Bq(this.Db.n3())}ge(){for(var a=
[],c=this.view.gb.G.find("li",!0),d=0;d<c.length;d++){var g=parseInt(c[d].attr("data-index"));a.push(g)}c=this.Db.FBa(a);this.Db.ZU(c)&&(a=this.Db.YM(a),this.Ve&&a instanceof e.u.O.Tq&&(a.J3=!1,e.Cg.instance.FE(),this.Db.RE(a)),this.vO(),e.model.Wa.R().ge(a),this.wO())}VE(a,c){const d=a.closest("li");null!=d?(this.xd=this.Jw(),a=d.getBoundingClientRect(),c>a.top+a.height/2?d.after(this.xd):d.before(this.xd)):(c=a.closest("ul"),null!=c&&(this.xd=this.Jw(),c.append(this.xd)))}Jw(){return new x.Ga("div",
"fm-drop-indicator")}sm(){this.xd&&(this.xd.Qg(!0),this.xd=null)}}f.bY=b})(h.flat||(h.flat={}))})(l.qd||(l.qd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.ce.Fy{constructor(a){super(a);this.aa("fm-flat-fields");this.Ke();this.G.cm();this.G.ij({RW:[x.ij.ti.pi],LS:l.Sb.Jb.G,H_:!0,resize:c=>this.TN(c),complete:()=>this.Pp()})}TN(a){a.WE==x.ij.ti.pi&&this.Mr(a.size.height)}Ke(){var a=new x.Pa("div","fm-popup-header fm-ui-row");this.X(a);var c=new x.Pa("div","fm-ui-col fm-vam");a.X(c);this.yx=new x.Tc(e.model.B.j.qy);this.yx.aa("fm-popup-title");c.X(this.yx);this.xx=new x.Tc(e.model.B.j.n8);
this.xx.aa("fm-popup-subtitle");c.X(this.xx);c=new x.Pa("div","fm-ui-col fm-vam fm-tar fm-ui-btns-row");a.X(c);this.Ai=new x.Vg("fm-btn-add-measure fm-ui-btn-light fm-icon-act_calc");c.X(this.Ai);this.Qe=new x.Vg;this.Qe.fb(e.model.B.j.xm);this.ei=new x.Vg("fm-ui-btn-dark");this.ei.fb(e.model.B.j.my);u.uj.aE||u.uj.Yo?(c.X(this.Qe),c.X(this.ei)):(c.X(this.ei),c.X(this.Qe));a=new x.Pa("div","fm-popup-content");this.X(a);c=new x.Pa("div","fm-list-wrap");a.X(c);var d=new x.Pa("div","fm-list-header");
c.X(d);this.ae=new x.pK;this.ae.aa("fm-select-all-cbx");this.ae.fb(e.model.B.j.Lv);d.X(this.ae);this.$e=new x.Pa("div","fm-search-wrap");d.X(this.$e);this.pe=new x.Pa("a","fm-search-btn");this.pe.af(0);this.pe.Wk("button");this.$e.X(this.pe);d=new x.Pa("span","fm-ui-icon fm-icon-act_search");this.pe.X(d);this.ie=new x.Sj;this.ie.aa("fm-search-inp-flat");this.$e.X(this.ie);this.jj=new x.Pa("span","fm-close-search fm-ui-icon fm-icon-act_close");this.jj.af(0);this.jj.Wk("button");this.$e.X(this.jj);
d=new x.Pa("div","fm-list-content");c.X(d);this.gb=new x.Bd.vj;this.gb.aa("fm-lst-hierarchies");this.gb.af();this.gb.mi(this.KE);this.gb.xg("caption");d.X(this.gb);this.qg=new h.kJ;this.qg.aa("fm-aggregations-view");this.qg.$a();a.X(this.qg);this.aj=new x.mr.XF(a.G);this.aj.$a();a.X(this.aj)}KE(a,c){var d=new h.Li.FQ(a,c);d.setData(a);d.hn(c);return d}ye(){this.yx.fb(e.model.B.j.qy);this.xx.fb(e.model.B.j.n8);this.Qe.fb(e.model.B.j.xm);this.ei.fb(e.model.B.j.my);this.ae.fb(e.model.B.j.Lv);this.Ai.ni(e.model.B.j.hB);
this.zc(e.model.B.j.qy);this.yx.Eo();this.xx.Eo();this.gb.zc(e.model.B.j.Jv);this.pe.zc(e.model.B.j.zP);this.ie.zc(e.model.B.j.zP);this.jj.zc(e.model.B.j.p8)}reset(){this.$e.Hd("fm-search-opened-flat");this.ie.clear(!1)}Mo(a){var c=new x.Ga("span");c.aa("fm-drag-handle");c.aa("fm-helper");c.aa("fm-draggable");c.ab("fm-values",a.Sc("fm-values"));c.V("width",a.V("width"));c.V("position","absolute");c.V("z-index",100);c.attr("data-index",a.attr("data-index"));c.text(a.text());return c}}f.E8=b})(h.flat||
(h.flat={}))})(l.qd||(l.qd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.ce.sk{constructor(){super();this.aa("fm-flat-fields");this.aa("fm-instant-view");this.Ke()}Ke(){var a=new x.Pa("div","fm-popup-content");this.X(a);var c=new x.Pa("div","fm-list-wrap fm-list-wrap-all");a.X(c);var d=new x.Pa("div","fm-list-header");c.X(d);this.ae=new x.pK;this.ae.aa("fm-select-all-cbx");this.ae.fb(e.model.B.j.Lv);d.X(this.ae);this.Ai=new x.Vg("fm-btn-add-measure");d.X(this.Ai);this.Qe=new x.Vg("fm-btn-close-fields");
d.X(this.Qe);d=new x.Pa("div","fm-list-content");c.X(d);this.gb=new x.Bd.vj;this.gb.aa("fm-lst-hierarchies");this.gb.af();this.gb.mi(this.KE);this.gb.xg("caption");d.X(this.gb);this.qg=new h.kJ;this.qg.aa("fm-aggregations-view");this.qg.$a();a.X(this.qg);this.aj=new x.mr.XF(a.G);this.aj.$a();a.X(this.aj)}KE(a,c){var d=new h.Li.FQ(a,c);d.setData(a);d.hn(c);return d}ye(){this.ae.fb(e.model.B.j.Lv);this.Ai.ni(e.model.B.j.hB);this.zc(e.model.B.j.qy);this.gb.zc(e.model.B.j.Jv);this.Qe.zc(e.model.B.j.CJ)}Mo(a){var c=
new x.Ga("span");c.aa("fm-drag-handle");c.aa("fm-helper");c.aa("fm-draggable");c.ab("fm-values",a.Sc("fm-values"));c.V("width",a.V("width"));c.V("position","absolute");c.V("z-index",100);c.attr("data-index",a.attr("data-index"));c.text(a.text());return c}open(){this.show();this.Ya(w.ia.OPENED)}close(){this.$a();this.Ya(w.ia.CLOSED)}}f.doa=b})(h.flat||(h.flat={}))})(l.qd||(l.qd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.ce.Fy{constructor(){super(l.Sb.Jb.G);this.iNa=()=>this.SN();this.aa("fm-calculated-view");this.G.cm();this.tE.aa("fm-calculated-view-overlay");this.Se=new h.dma;this.Se.N(w.ia.eP,()=>this.close());this.X(this.Se.view);this.N(w.ia.CLOSED,this.iNa)}SN(){e.model.Wa.R().Ha(new l.Qa.hma)}ap(b){this.Se.update(b);this.open();this.Se.view.Ar.focus({preventScroll:!0});this.ye()}ye(){this.zc(e.model.B.j.AX)}close(){super.close();this.Se.clear()}}f.kL=
!1;h.tF=f})(l.Qa||(l.Qa={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{}f.UA="event_calculated_value_added";f.VA="event_calculated_value_removed";f.h7="calculated_view_open";f.WA="calculated_view_close";h.pk=f;class b extends w.ia{constructor(g){super(f.UA);this.Vs=g}}h.fma=b;class a extends w.ia{constructor(g){super(f.VA);this.Vs=g}}h.gma=a;class c extends w.ia{constructor(g=null){super(f.h7);this.Vs=g}}h.HX=c;class d extends w.ia{constructor(){super(f.WA)}}h.hma=d})(l.Qa||(l.Qa={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.Fta="- 2";this.ma=e.model.Wa.R();this.B1=[{name:"_addBtn",label:"+",pf:"CALCULATED_VIEW_FUNC_ADD",Kk:e.u.i.rc.VO},{name:"_subtractBtn",label:"-",pf:"CALCULATED_VIEW_FUNC_SUBTRACT",Kk:e.u.i.rc.EQ},{name:"_multiplyBtn",label:"\u00d7",pf:"CALCULATED_VIEW_FUNC_MULTIPLY",Kk:e.u.i.rc.nQ},{name:"_divideBtn",label:"\u00f7",pf:"CALCULATED_VIEW_FUNC_DIVIDE",Kk:e.u.i.rc.yJ},{name:"_powerBtn",label:"^",pf:"CALCULATED_VIEW_FUNC_POWER",Kk:e.u.i.rc.xY},
{name:"_equalBtn",label:"=",pf:"CALCULATED_VIEW_FUNC_EQUAL",Kk:e.u.i.rc.EQUAL},{name:"_lessBtn",label:"<",pf:"CALCULATED_VIEW_FUNC_LESS",Kk:e.u.i.rc.LESS},{name:"_greaterBtn",label:">",pf:"CALCULATED_VIEW_FUNC_GREATER",Kk:e.u.i.rc.GREATER},{name:"_lessOrEqualBtn",label:"\u2264",pf:"CALCULATED_VIEW_FUNC_LESS_EQUAL",Kk:e.u.i.rc.X8},{name:"_greaterOrEqualBtn",label:"\u2265",pf:"CALCULATED_VIEW_FUNC_GREATER_EQUAL",Kk:e.u.i.rc.I8},{name:"_notEqualBtn",label:"!=",pf:"CALCULATED_VIEW_FUNC_NOT_EQUAL",Kk:e.u.i.rc.Tf},
{name:"_orBtn",label:"OR",pf:"CALCULATED_VIEW_FUNC_OR",Kk:e.u.i.rc.L9},{name:"_andBtn",label:"AND",pf:"CALCULATED_VIEW_FUNC_AND",Kk:e.u.i.rc.L6},{name:"_ifBtn",label:"IF",pf:"CALCULATED_VIEW_FUNC_IF",Kk:e.u.i.rc.NP},{name:"_absBtn",label:"ABS",pf:"CALCULATED_VIEW_FUNC_ABS",Kk:e.u.i.rc.oX},{name:"_roundBtn",label:"RD",pf:"CALCULATED_VIEW_FUNC_ROUND",Kk:e.u.i.rc.EY},{name:"_minBtn",label:"MIN",pf:"CALCULATED_VIEW_FUNC_MIN",Kk:e.u.i.rc.MIN},{name:"_maxBtn",label:"MAX",pf:"CALCULATED_VIEW_FUNC_MAX",Kk:e.u.i.rc.MAX}]}search(b){b=
b.toLowerCase().trim();if(this.ud!==b){this.ud=b;this.D5=[];var a=this.ff.length;for(let c=0;c<a;c++){const d=this.ff[c];e.P.contains(d.caption,b)&&(d.ud=b,this.D5.push(d))}}}get Zo(){return!e.ka(this.ud)}fz(){this.ud="";this.D5=null}update(b){this.ff=l.qd.W.sj.QL(this.ma.ja.O.Da.Pc());this.fz();e.ka(b)||(this.yj=this.ma.ja.O.fd(b))}get Jl(){return!this.ma.ja.ga.Ec||this.ma.ja.ga.Aa==e.u.i.ra.API}get W5(){return this.ma.ja.ga.Aa!=e.u.i.ra.API}Os(){e.v(this.ff)&&(this.ff=l.qd.W.sj.QL(this.ma.ja.O.Da.Pc()));
return this.Zo?this.D5:this.ff}EE(b){h.tF.kL=!0;this.ma.qA(b.A);this.ma.Ha(new h.gma(b.A));e.ve(()=>{h.tF.kL=!1},1E3)}zk(b,a="",c=!1){a=a.trim();a=0<a.length?a:this.OAa();let d;if(null!=this.yj){if(this.yj.caption!=a||this.yj.Ge!=b||this.yj.Lk!=c)d={uniqueName:this.yj.A,caption:a,formula:b,individual:c,type:this.yj.type}}else{do a=null!=this.ma.ja.O.Da.getItem(a)?a+" "+this.Fta:a;while(null!=this.ma.ja.O.Da.getItem(a));d={uniqueName:a,caption:a,formula:b,individual:c,type:e.u.i.Ra.jb}}null!=d&&(h.tF.kL=
!0,l.qd.cu.O9.i1=!0,this.ma.ja.lu(d,!1),this.ma.Ha(new h.fma(d.uniqueName)),e.ve(()=>{h.tF.kL=!1},1E3))}OAa(){let b=e.model.B.j.cP+" #",a=0;const c=this.ma.ja.O.gr,d=new RegExp(e.model.B.j.cP+" #");for(let g=0;g<c.length;g++){const k=c.fa(g).A;d.test(k)&&(a=Math.max(a,Number(k.substr(e.model.B.j.cP.length+2))))}return b+(a+1)}}h.ema=f})(l.Qa||(l.Qa={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends w.Mh{constructor(){super();this.Gaa=new RegExp(/(["'])(?:(?=(\\?))\2.)*?\1/g);this.ma=new h.ema;this.view=new h.ima(this);this.view.Lx&&this.view.Lx.N(x.Qd.uf,()=>this.pIa());this.view.ie&&(this.view.ie.yW(500),this.view.ie.N(x.Sj.oy,()=>this.RN()));this.view.pe&&(this.view.pe.N("click",()=>this.ct()),this.view.pe.N("keydown",b=>this.lA(b,!1)));this.view.jj&&(this.view.jj.N("click",()=>this.dt()),this.view.jj.N("keydown",b=>this.lA(b,!0)));this.view.Ub&&
(this.view.Ub.G.N("click",b=>this.LHa(b)),this.view.Ub.G.N("dblclick",b=>this.MHa(b)),this.view.Ub.G.N("keydown",b=>this.SHa(b)),this.view.Ub.mi((b,a)=>this.Ns(b,a)));this.view.hi&&this.view.hi.G.Ls({en:b=>this.NHa(b),b4:()=>this.oha(),dn:()=>this.oha(),om:()=>this.hHa(),$z:"li"});this.view.ei&&this.view.ei.N(x.Qd.uf,()=>this.pE());this.view.Qe&&this.view.Qe.N(x.Qd.uf,()=>this.at());this.view.qg&&this.view.qg.N(w.ia.Xd,b=>this.bGa(b));if(this.view.GT)for(const b of this.view.GT)b.N(x.Qd.uf,()=>this.iHa(b))}RN(){this.ma.search(this.view.ie.bj());
this.view.Ub.G.ab("fm-searched",this.ma.Zo);this.xka()}ct(){this.view.$e.aa("fm-search-opened");this.view.ie.G.focus()}lA(b,a){if(32===b.keyCode||13===b.keyCode)a?this.dt():this.ct()}dt(){this.view.$e.Hd("fm-search-opened");this.view.ie.clear();this.view.pe.G.focus()}LHa(b){const a=x.Ga.Yb(b.target);a.Sc("fm-aggr-display")&&(b=this.view.Ub.mD(b.target),e.v(b)||this.view.qg.gp(b.data,a))}MHa(b){b=this.view.Ub.mD(b.target);e.v(b)||this.A_(b.data)}SHa(b){if(32===b.keyCode||13===b.keyCode){if(this.view.aj){const a=
this.view.Ub.Su();if(e.v(a))return;const c=[];c.push({label:e.model.B.j.ola,handler:()=>{this.A_(a.data)}});c.push({label:e.model.B.j.VX,submenu:this.Fz(a.data)});this.view.aj.gp(this.view.content.G,c,a.element.sg(),{top:10,left:10})}b.preventDefault()}}Fz(b){const a=[];for(let c=0;c<b.Wc.length;c++){const d={caption:b.xL[c],$:b.Wc[c]};void 0!=b.tw&&(d.eX=b.tw[c]);a.push({label:e.u.i.ea.HG(b.Wc[c]),isSelected:b.Wc[c]==b.$,handler:()=>this.yA(b,d)})}return a}oha(){this.view.hi.aa("fm-droppable-over")}hHa(){this.view.hi.Hd("fm-droppable-over")}NHa(b){this.view.hi.Hd("fm-droppable-over");
b=parseInt(b.attr("data-index"));b=this.view.Ub.Bc()[b];this.A_(b)}Ns(b,a){var c=new l.qd.Li.aY;c.setData(b);c.hn(a);c.IW(function(d){return d.name+" ("+e.u.i.ea.HG(d.$)+")"});return c}get B1(){return this.ma.B1}update(b){this.ma.update(b);this.view.CC.isVisible(this.ma.W5);null!=this.ma.yj?(this.view.G.ab("fm-with-delete-btn",!0),this.view.Ar&&this.view.Ar.ik(this.ma.yj.caption),this.view.hi&&(b=e.model.C.F.kX?this.zKa(this.ma.yj.Ge):this.ma.yj.Ge,this.view.hi.ik(b)),this.view.Lx&&this.view.Lx.isVisible(!0)):
(this.view.G.ab("fm-with-delete-btn",!1),this.view.Lx&&this.view.Lx.isVisible(!1));this.view.CC&&this.ma.W5&&(this.view.CC.checked=this.ma.yj?this.ma.yj.Lk:!1);this.view.ie&&(this.view.$e.Hd("fm-search-opened"),this.view.ie.clear(!1),this.ma.fz());this.view.ye();this.xka()}xka(){for(var b=this.ma.Os(),a=[],c=0;c<b.length;c++)null!=this.ma.yj&&this.ma.yj.A==b[c].A||b[c].gh||(b[c].tg=!0,b[c].Jl=this.ma.Jl&&!b[c].Qa,a.push(b[c]));a.sort(this.e0);if(this.view.Ub)for(this.view.Ub.gg(a),b={Mo:d=>this.view.Mo(d)},
u.Nd().im&&(b.nU=".fm-drag-handle"),a=this.view.Ub.G.find("li",!0),c=0;c<a.length;c++)a[c].draggable(b)}clear(){this.view.Ar&&this.view.Ar.ik("");this.view.hi&&this.view.hi.ik("");this.ma.yj=null}e0(b,a){return b.name>a.name?1:-1}pIa(){u.Nd().im?this.H4():this.VLa()}VLa(){if(u.uj.aE||u.uj.Yo){var b=[e.model.B.j.a7,e.model.B.j.lF];var a=[null,()=>this.H4()]}else b=[e.model.B.j.lF,e.model.B.j.a7],a=[()=>this.H4(),null];var c=e.model.Tb.valid(this.ma.yj.caption)?this.ma.yj.caption:e.model.Tb.validate(this.ma.yj.caption);
e.Va(e.model.B.j.qla,e.P.bind(e.model.B.j.rla,c),e.ob.nk,b,a)}H4(){this.ma.EE(this.ma.yj);this.close()}A_(b){if(void 0!==b){var a=e.model.C.F.kX?b.name:b.A;b.$===e.u.i.ea.NONE||void 0===b.$?this.Tz(e.P.bind('"{0}"',a)):this.Tz(e.P.bind('{0}("{1}")',b.$,a))}}bGa(b){this.yA(b.data.nM,b.data.F_)}yA(b,a){b.$=a.$;b.caption=a.caption+" of "+b.name;this.view.Ub.Rr(b)}iHa(b){b=b.data.Kk;b==e.u.i.rc.NP||b==e.u.i.rc.oX||b==e.u.i.rc.MIN||b==e.u.i.rc.MAX||b==e.u.i.rc.wo||b==e.u.i.rc.EY?this.tua(b):this.qua(b)}at(){this.close()}pE(){const b=
e.model.C.F.kX?this.yKa(this.view.hi.bj()):this.view.hi.bj();if(e.model.C.F.RO){var a=u.LP.pS(b,this.ma.yj?this.ma.yj.A:this.view.Ar.bj());if(0==a.px){e.Va(a.errorMessage);return}}a=this.ma.W5?this.view.CC.checked:!1;this.ma.zk(b,this.view.Ar.bj(),a);this.close()}yKa(b){let a=b.slice(0);const c=a.match(this.Gaa),d=e.u.Ma.R().O.Da;let g;if(e.v(c))return b;for(let k=0;k<c.length;k++){b=c[k].substring(1,c[k].length-1);for(g=0;g<d.length&&b!==d.fa(g).Bl;g++);g<d.length&&(a=a.replace(b,d.fa(g).A))}return a}zKa(b){let a=
b.slice(0);const c=a.match(this.Gaa),d=e.u.Ma.R().O.Da;if(e.v(c))return b;for(let g=0;g<c.length;g++)b=c[g].substring(1,c[g].length-1),a=a.replace(b,d.getItem(b).Bl);return a}close(){this.Ya(w.ia.eP)}Tz(b,a=0){var c=this.view.hi.G.element.selectionStart,d=this.view.hi.bj();-1==c&&(c=this.Yh);0==c||" "==d.charAt(c-1)?(this.view.hi.Tz(b+" "),this.Yh=c+b.length+1):(this.view.hi.Tz(" "+b+" "),this.Yh=c+b.length+2);this.Yh-=a;this.view.hi.Jf(this.Yh)}qua(b){this.Tz(b)}tua(b){const a=this.view.hi.G.element.selectionStart,
c=this.view.hi.G.element.selectionEnd,d=this.view.hi.bj();if(e.u.i.rc.NP==b)this.Tz(b+"("+d.slice(a,c)+", , )",6);else{let g=e.u.i.rc.MIN==b||e.u.i.rc.MAX==b?",":"";this.Tz(b+"("+d.slice(a,c)+g+")",2+g.length)}}}h.dma=f})(l.Qa||(l.Qa={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.Pa{constructor(a){super();this.controller=a;this.Ke()}Ke(){var a=new x.Pa("div","fm-popup-header fm-ui-row");this.X(a);var c=new x.Pa("div","fm-ui-col fm-vam");a.X(c);this.Nr=new x.Tc(e.model.B.j.AX);this.Nr.aa("fm-popup-title");c.X(this.Nr);c=new x.Pa("div","fm-ui-col fm-vam fm-tar fm-ui-btns-row");a.X(c);this.Lx=new x.Vg("fm-ui-btn-light fm-icon-act_trash fm-remove-btn");this.Lx.G.attr("title",e.model.B.j.i7);c.X(this.Lx);this.Qe=new x.Vg("fm-ui-btn");
this.Qe.fb(e.model.B.j.xm);this.ei=new x.Vg("fm-ui-btn-dark");this.ei.fb(e.model.B.j.my);u.uj.aE||u.uj.Yo?(c.X(this.Qe),c.X(this.ei)):(c.X(this.ei),c.X(this.Qe));this.content=a=new x.Pa("div","fm-popup-content");this.X(a);this.Ar=new x.Sj;this.Ar.aa("fm-name-input");this.Ar.PE(e.model.B.j.zX);a.X(this.Ar);c=new x.Pa("div","fm-list-header fm-list-header-wide");a.X(c);var d=new x.Pa("div","fm-list-header-label-wrap");c.X(d);var g=new x.Tc(e.model.B.j.Jv);d.X(g);this.$e=new x.Pa("div","fm-search-wrap");
c.X(this.$e);this.pe=new x.Pa("a","fm-search-btn");this.pe.af(0);this.pe.Wk("button");this.$e.X(this.pe);c=new x.Pa("span","fm-ui-icon fm-icon-act_search");this.pe.X(c);this.ie=new x.Sj;this.ie.aa("fm-search-inp");this.$e.X(this.ie);this.jj=new x.Pa("span","fm-close-search fm-ui-icon fm-icon-act_close");this.jj.af(0);this.jj.Wk("button");this.$e.X(this.jj);c=new x.Pa("div","fm-list-content");a.X(c);this.Ub=new x.Bd.vj;this.Ub.aa("fm-lst-measures");this.Ub.af();this.Ub.useCache=!1;this.Ub.xg("caption");
c.X(this.Ub);this.CC=new x.pK;this.CC.fb(e.model.B.j.f7);a.X(this.CC);this.bea=new x.Pa("div","fm-ui-row fm-func-btn-group");a.X(this.bea);this.GT=[];c=this.controller.B1;for(d=0;d<c.length;d++)g=new b,g.data=c[d],g.G.attr("data-index",d),g.fb(c[d].label),g.ni(e.model.B.j[g.data.pf]),g.zc(e.model.B.j[g.data.pf]),this.bea.X(g),this.GT.push(g);c=new x.Pa("div","fm-formula-wrap");a.X(c);this.hi=new x.Zv;this.hi.aa("fm-formula-input");this.hi.N(x.Sj.oy,()=>this.gHa());c.X(this.hi);this.gV=new x.Tc(e.model.B.j.g7);
this.gV.aa("fm-prompt");c.X(this.gV);this.qg=new l.qd.kJ;this.qg.aa("fm-aggregations-view");this.qg.$a();a.X(this.qg);this.aj=new x.mr.XF(a.G);this.aj.$a();a.X(this.aj)}ye(){this.Nr.fb(e.model.B.j.AX);this.ei.fb(e.model.B.j.my);this.Qe.fb(e.model.B.j.xm);this.Ar.PE(e.model.B.j.zX);this.CC.fb(e.model.B.j.f7);this.gV.fb(e.model.B.j.g7);this.Lx.ni(e.model.B.j.i7);this.Nr.Eo();this.Ar.zc(e.model.B.j.zX);this.Ub.zc(e.model.B.j.pla);this.hi.zc(e.model.B.j.cP);for(const a of this.GT)a.ni(e.model.B.j[a.data.pf]),
a.zc(e.model.B.j[a.data.pf])}Mo(a){var c=new x.Ga("span");c.aa("fm-drag-handle");c.aa("fm-helper");c.aa("fm-draggable");c.V("width",a.V("width"));c.V("position","absolute");c.V("z-index",100);c.attr("data-index",a.attr("data-index"));c.text(a.text());return c}gHa(){this.gV.isVisible(0==this.hi.bj().length)}}h.ima=f;class b extends x.Vg{constructor(){super("fm-ui-col-9 fm-calc-action");this.Hd("fm-ui-btn")}}h.OOa=b})(l.Qa||(l.Qa={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.ce.Fy{constructor(){super(l.Sb.Jb.G);this.Bg=this.vf=this.Fp=this.Cy=this.Ui=0;this.aa("fm-drillthrough-view");this.Ke()}Ke(){this.jG=new x.ce.sk("fm-header-container");this.X(this.jG);this.ys=new x.Tc;this.ys.aa("fm-popup-title");this.ys.LW(!1);this.jG.X(this.ys);this.MB=new x.Vg;this.MB.aa("fm-ui-btn-close");this.MB.ni(e.model.B.j.Cra);this.MB.N(x.Qd.uf,()=>this.close());this.jG.X(this.MB);this.PB=new x.ce.sk("fm-details-container");this.X(this.PB);
this.DG=new x.Tc;this.DG.aa("fm-ui-label-light");this.PB.X(this.DG);this.BG=new x.Tc;this.BG.aa("fm-ui-label-light");this.PB.X(this.BG);this.CG=new x.Tc;this.CG.aa("fm-ui-label-light");this.PB.X(this.CG);this.WK=new x.ce.sk("fm-grid-container");this.X(this.WK);this.na=new l.Y.sheet.flat.Mv;this.na.af(-1);this.na.ul=!0;this.WK.G.X(this.na);new h.Kma(this);this.Yt=new h.rr.Mma;this.WK.X(this.Yt)}j5(){e.v(this.Se)||this.Se.kn()}ap(b=null,a=null,c=null,d=null,g=null,k=null){this.J=b;e.v(this.Se)&&(this.Se=
new h.Lma(this));this.Se.update(a,c,d,g,k)}close(){super.close();this.Ya(l.Y.uc.O7);e.model.Za.R().Ha(new e.model.jd(e.model.Za.N7))}Gk(b,a,c=null,d=null){e.v(this.Se)||this.Se.Gk(b,a,c,d)}dispose(){this.J=null;this.na&&(this.na.dispose(),this.na=null);this.Se&&(this.Se.dispose(),this.Se=null);this.Yt.Vd();this.Yt.Qg();this.Yt=null;this.ys.Qg();this.ys=null;this.DG.Qg();this.DG=null;this.BG.Qg();this.BG=null;this.CG.Qg();this.CG=null;this.jG.Qg();this.jG=null;this.WK.Qg();this.WK=null;this.PB.Qg();
this.PB=null;this.MB.Qg();this.MB.Vd();this.MB=null;this.Vd()}}h.vF=f})(l.Yf||(l.Yf={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(b){this.view=b;this.view.N(l.Y.uc.O7,()=>this.rGa());this.view.na.N(l.Y.uc.aK,a=>this.mE(a));this.view.na.N(l.Y.uc.L7,a=>this.kHa(a));this.view.na.N(l.Y.uc.K7,a=>this.jHa(a));this.view.Yt.N(l.qd.vp.yP,()=>this.e4());this.view.Yt.N(l.qd.vp.AJ,a=>this.d4(a))}US(b){return e.model.Wa.R().Fa.ga.Ec?e.model.Wa.R().Fa.ga.Aa==e.u.i.ra.Cc?new h.Ys.z9(b):e.model.Wa.R().Fa.ga.Aa==e.u.i.ra.API?new h.Ys.Tka(b):e.model.Wa.R().Fa.ga.Aa==e.u.i.ra.Pd?new h.Ys.Vpa(b):
new h.Ys.D9(b):new h.uF(b)}update(b=null,a=null,c=null,d=null,g=null){e.v(this.model)||this.model.dispose();this.model=this.US(this.view.J);this.model.cell=g;this.model.N(h.uF.xP,()=>this.rq());this.model.update(b,a,c,d);this.view.na.slice=b;this.view.na.vD=(k,m)=>this.model.getData(k,m);this.view.na.iM.Gia=(k,m,n)=>this.saveData(k,m,n)}rq(){this.view.open();const b=()=>{this.view.na.rb(l.Vi.qp,b);e.model.Za.R().Ha(new e.model.jd(e.model.Za.P7,this.model.cell))};this.view.na.N(l.Vi.qp,b);this.kn()}kn(){this.model.k5();
this.wka();this.view.Yt.isVisible(this.model.RDa);this.view.Yk(l.Sb.Wx-70);const b=l.Sb.Jb.G.zd(!0)-this.view.PB.G.zd(!0)-this.view.jG.G.zd(!0)-30-this.view.G.padding.top-this.view.G.padding.bottom-40,a=this.view.cg()-(parseInt(this.view.G.V("border-left-width"))+parseInt(this.view.G.V("border-right-width")));this.view.na.wu();this.view.na.resize(a,b);this.view.na.width=a;this.view.na.height=b;this.view.na.Zda(1);this.view.na.iM.cja(e.model.C.F.gD&&!e.u.Ma.R().ga.Ec);this.view.na.$ia(this.model.dO,
this.model.$ba);this.view.na.nb();this.view.Pp()}wka(){this.view.ys.fb(e.model.B.j.Gma);var b=this.model.tCa();this.view.DG.fb(b,!0);this.view.DG.isVisible(!e.ka(b));b=this.model.aBa();this.view.BG.fb(b,!0);this.view.BG.isVisible(!e.ka(b));b=this.model.UBa();this.view.CG.fb(b,!0);this.view.CG.isVisible(!e.ka(b))}mE(b){e.model.Wa.R().Fa.ga.Ec||b.hga||this.yya(b.cell);b.cell&&b.cell.Ng&&b.cell.tC==l.Y.W.Lq.lK&&(this.model.yO(b.cell),this.view.na.clearData(),this.view.na.nb())}yya(b){if(e.model.Za.R().z2(e.model.Za.dP)&&
!e.v(b)){var a=this.model.rCa(b.lb);e.v(a)||(b.ul=!0,b=b.Sa(),b.rowData=a,e.model.Za.R().Ha(new e.model.jd(e.model.Za.dP,b)))}}kHa(b){this.model.Rw.tKa(b.data.index);this.model.Fq(this.model.Rw)}jHa(b){let a=b.data.mAa;b=b.data.CMa;b=Math.max(0,Math.min(b,this.model.Rw.selected.length));a<b&&b--;a!=b&&(this.model.Rw.SFa(a,b),this.model.Fq(this.model.Rw))}e4(){this.view.Yt.open(this.model.Rw)}d4(b){this.model.Fq(b.data)}Gk(b,a,c,d){const g=this.model.$ba,k=0<this.model.dO?this.model.dO+1:0;b==e.model.Dc.qj.nB&&
e.model.Dc.c8.Ze(this.view,a,d);b==e.model.Dc.qj.Ov&&e.model.Dc.b8.Ze(this.view,a,g,k,d);b==e.model.Dc.qj.ci&&e.model.Dc.a8.Ze(this.view,a,g,k,c);b==e.model.Dc.qj.JSON&&e.model.Dc.d8.Ze(this.view,a,g,k,c);b==e.model.Dc.qj.vB&&e.model.Dc.df.Ze(this.view,a,g,k,d);b==e.model.Dc.qj.wF&&(a.KA=a.KA&&(e.model.Wa.R().Fa.ga.Aa==e.u.i.ra.Cc||e.model.Wa.R().Fa.ga.Aa==e.u.i.ra.Pd)&&e.model.C.F.co,e.model.Dc.f8.Ze(this.view,a,g,k))}saveData(b,a,c){this.timer&&this.timer.Gl&&this.timer.stop();null==this.timer&&
(this.timer=new u.Pt(1E3,1));this.timer.N(u.xf.Pl,()=>this.MIa());this.timer.start();this.model.saveData(b,a,c);this.kn()}MIa(){this.wka();this.timer.stop()}rGa(){this.view.na.iM.Qja();e.model.C.F.gD&&this.model.E0&&(this.model.E0=!1,e.u.Ma.R().refresh())}dispose(){this.timer&&(this.timer.stop(),this.timer=null);this.model&&(this.model.dispose(),this.model=null);this.view=null}}h.Lma=f})(l.Yf||(l.Yf={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends w.Mh{constructor(b){super();this.DI=NaN;this.mI={};this.E0=!1;this.cell=null;this.yn=b}update(b=null,a=null,c=null,d=null){this.Pb=b;this.Dg=this.y0(b);this.Ah=c;this.Jg=a;this.measure=d;this.mI={};this.Wd()}Fq(b){this.Dg=b;b=[];if(this.Dg.fp&&0<this.Dg.fp.length){for(var a=0;a<this.Dg.fp.length;a++){var c=this.Dg.fp[a].level;b.push(void 0===c?this.Dg.fp[a].hierarchy:c)}this.Pb.cd=b}else this.Pb.cd=this.Dg.selected;this.Wd()}get Rw(){return this.Dg}y0(b){const a=
new h.rr.S7;var c=this.Pb.Yc.vc(!1);for(var d=0;d<c.length;d++){var g=c.fa(d);a.mf.Ta(g.A,{A:g.A,caption:g.caption,ua:g.ua.Pc(!0).slice(1)})}d=null!=b.cd&&0<b.cd.length?b.cd:null!=e.model.Wa.R().Fa.cN&&0<e.model.Wa.R().Fa.cN.length?e.model.Wa.R().Fa.cN:b.flatten().Pc(!0);for(c=0;c<d.length;c++)g=d[c],a.mf.Bb(g)&&a.GG(g);d={};for(c=0;c<b.Wf.length;c++)g=b.Wf[c],g.Qa&&0<g.Ud.length&&this.iea(g.Ud,d);for(const k in d)c=b.Yc.fd(k),e.v(c)||c.Qa||a.GG(k);return a}iea(b,a){if(void 0!==b[2]){var c,d;for(d in b[1]){var g=
c=b[1][d];Array.isArray(c)&&(g=this.iea(c,a));if(g==e.u.i.tP.qP&&b[0]==e.u.i.rc.yJ)break;void 0!==g&&(a[g]=1)}}}k5(){this.Wd(!1)}Wd(b=!0){this.data=this.yn.cd(this.Ah,this.Jg,this.measure);this.keys=this.data.shift();const a=this.yn.Ps(this.Ah,this.Jg);this.IFa(a);this.Y_();b&&this.Ya(f.xP)}IFa(b){this.DI=NaN;if(!e.v(b))if(Array.isArray(b)){this.DI=this.data[0].length;for(let a=0;a<b.length;a++)this.data[a].push(b[a])}else e.v(this.data[0])||(this.DI=this.data[0].length,this.data[0].push(b))}yO(b){const a=
b.measure&&b.measure.type==e.u.i.Ra.wc?e.u.i.Ba.hc:e.u.i.Ba.Nc;let c=!0;this.FS==b.hierarchy?(this.Th=this.Th==e.u.i.Ba.hc?e.u.i.Ba.Nc:this.Th==e.u.i.Ba.Nc?e.u.i.Ba.hc:a,c=!0):(this.Th=a,c=!1);this.FS=b.hierarchy;const d=this.Jea(b.hierarchy),g=b.hierarchy.jk(b.hierarchy.pd,!0,this.Th);c?this.data.reverse():this.data.sort((k,m)=>g.indexOf(k[d])-g.indexOf(m[d]))}rCa(b){if(e.v(this.data)||e.v(this.data[b-1]))return null;const a=[];for(let c=0;c<this.Rw.mf.length;c++){const d=this.sCa(b,this.Dg.mf.Uh(c));
a.push(null==d?d:d.Sa())}return a}sCa(b,a){a=this.Pb.Yc.uh(a);if(null==a)return null;const c=this.Pb.nf(a.A);return null==c?null:this.Aea(b,-1,a,c)}Y_(){this.Th=this.FS=null}get $ba(){return e.v(this.Rw)?0:this.Rw.fp.length}get dO(){return e.v(this.data)?0:this.data.length}tCa(){for(var b,a=[],c=0;c<this.Ah.length;c++){b=this.Pb.wb.fa(c);if(null==b)return null;b=b.za(this.Ah[c]);a.push(e.P.Ro(b.caption,!0,!0))}a=0<a.length?e.P.bind(e.model.B.j.Fma,a.join(" - ")):"";return a=a.replace(/<br\s*[\/]?>/gi,
" ")}aBa(){for(var b,a=[],c=0;c<this.Jg.length;c++){b=this.Pb.Fb.fa(c);if(null==b)return null;b=b.za(this.Jg[c]);a.push(e.P.Ro(b.caption,!0,!0))}a=0<a.length?e.P.bind(e.model.B.j.Ema,a.join(" - ")):"";return a=a.replace(/<br\s*[\/]?>/gi," ")}UBa(){var b=this.measure.Eh(this.measure.A,this.measure.$).clone();const a=this.yn.La(this.Ah,this.Jg,this.measure);this.measure.$==e.u.i.ea.Si?b.yd="":e.u.i.ea.xe(this.measure.$)?b.xe=!0:e.u.i.ea.de(this.measure.$)&&(b.de=!0,b.yd="%");const c=e.u.i.Ra.ec==this.measure.type&&
e.u.i.ea.pp(this.measure.$),d=e.u.i.Ra.Ua==this.measure.type||e.u.i.Ra.Mc==this.measure.type;b=c?e.P.ey(a,e.model.C.F.np):d?this.cell.label:u.bc.format(a,b);b=e.P.bind(e.model.B.j.Hma,e.P.Ro(this.measure.label,!0,!0),b);return b=b.replace(/<br\s*[\/]?>/gi," ")}get RDa(){return e.model.C.F.wja?e.u.Ma.R().ga.JU:!1}get wEa(){return!e.model.Wa.R().Fa.ga.Ec&&e.model.Wa.R().Fa.ga.Aa!=e.u.i.ra.kg&&e.model.Wa.R().Fa.ga.Aa!=e.u.i.ra.API}getData(b,a){return e.v(this.Dg)?null:0==b?this.yD(a):0>a||a>=this.Dg.fp.length?
null:this.BH(b,a)}yD(b){const a=new l.Y.W.ne;a.ul=!0;a.Ng=!0;if(0>b||b>=this.Dg.fp.length)return null;var c=this.Dg.fp[b].level;b=this.Pb.Yc.uh(this.Dg.fp[b].hierarchy);if(null==b)return null;void 0!==c&&(c=b.Ou(c),null!=c&&(a.label=b.caption+" / "+c.caption));e.ka(a.label)&&(a.label=b.caption);a.hierarchy=b;a.measure=this.Pb.Yc.nf(b.A);this.wEa&&(a.ao=!0,a.hierarchy==this.FS&&(a.ip=this.Th==e.u.i.Ba.hc,a.jp=this.Th==e.u.i.Ba.Nc));return a}BH(b,a){if(e.v(this.data)||e.v(this.data[b-1]))return null;
var c=this.Pb.Yc.uh(this.Dg.fp[a].hierarchy);if(null==c)return null;const d=this.Pb.nf(c.A);return null==d?null:this.Aea(b,a,c,d)}Aea(b,a,c,d){const g=new l.Y.W.ne;g.lb=b;g.kc=a;g.ul=!0;g.li=!0;const k=c.za(this.cCa(b,this.Jea(c)));g.label=this.XBa(k,-1!=a?this.Dg.fp[a].level:void 0);g.hierarchy=c;a=this.bU(d);d.type!=e.u.i.Ra.jb&&d.type!=e.u.i.Ra.ec&&d.type!=e.u.i.Ra.Ua&&d.type!=e.u.i.Ra.Mc||e.v(k)||(g.value=k.nc,g.label=d.type==e.u.i.Ra.jb?u.bc.format(g.value,a):k.caption,g.numeric=g.numeric||d.type!=
e.u.i.Ra.jb?g.numeric:!0);e.ka(a.textAlign)||g.nz({"text-align":a.textAlign});g.CI=this.Ps(b);g.measure=d;return g}Ps(b){return isNaN(this.DI)?void 0:this.data[b-1][this.DI]}bU(b){e.v(this.mI[b.A])&&(this.mI[b.A]=b.Eh(b.A,b.$,!0).clone());return this.mI[b.A]}cCa(b,a){for(;null==this.data[b-1][a];)a--;return this.data[b-1][a]}XBa(b,a){let c="";if(e.v(b))return c;c=b.caption;if(!e.ka(a))for(;b;){if(b.level.A==a){c=b.caption;break}b=b.parent}return c}Jea(b){var a=this.keys.indexOf(b.A);2<b.ua.length&&
(a=this.keys.indexOf(b.ua.Uh(b.ua.length-1)));return a}saveData(b,a,c){(a=this.getData(b,a))&&a.label!=c&&a.value!=c&&(c=this.yn.save(this.Ah,this.Jg,a.hierarchy,c,b-1),this.data[b-1][this.keys.indexOf(a.hierarchy.A)]=c,this.E0=!0)}dispose(){this.keys=this.data=this.measure=this.Ah=this.Jg=this.Dg=this.Pb=this.yn=null;this.DI=NaN;this.mI=this.Th=this.FS=null}}f.xP="dataloaded";h.uF=f})(l.Yf||(l.Yf={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends l.Y.K8{show(b,a){var c=[];c=this.YS(c,b?b.Sa():null,"drillthrough");return 0<c.length?(this.eT(c,a),!0):!1}}h.Kma=f})(l.Yf||(l.Yf={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){this.yk=[];this.En=[];this.mf=new e.ub}get selected(){return this.yk}set selected(a){e.v(a)||(this.yk=a,this.En=null)}GG(a){this.Ad(a)||(this.yk.push(a),this.En=null)}tKa(a){this.sU?this.En.splice(a,1):(this.yk.splice(a,1),this.En=null)}get sU(){return!e.v(this.En)&&this.yk.length!==this.En.length}SFa(a,c){this.sU?e.Ja.Q3(this.En,a,c):(e.Ja.Q3(this.yk,a,c),this.En=null)}Ad(a){return this.sU?0<=this.En.findIndex(c=>void 0!==
c.level?c.level===a:c.hierarchy===a):0<=this.yk.indexOf(a)}get fp(){if(!e.v(this.En))return this.En;this.En=[];for(let d=0;d<this.yk.length;d++){var a=this.mf.getItem(this.yk[d]);if(!e.v(a))if(a=a.ua,void 0!==a&&1<a.length)for(var c=0;c<a.length;c++)this.En.push({hierarchy:this.yk[d],level:a[c]});else this.En.push({hierarchy:this.yk[d]})}return this.En}isEqual(a){if(e.v(a)||e.v(a.yk)||this.yk.length!=a.yk.length)return!1;for(let c=0;c<this.yk.length;c++)if(this.yk[c]!=a.yk[c])return!1;return!0}clone(){const a=
new b;a.mf=this.mf.slice();a.yk=a.yk.slice();return a}}f.S7=b})(h.rr||(h.rr={}))})(l.Yf||(l.Yf={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.Pa{constructor(){super();this.aa("fm-fields-view-wrap");this.Ke();this.Se=new f.Nma(l.Sb.Jb.G);this.Se.N(w.ia.CLOSED,()=>this.SN());this.Se.N(l.qd.vp.AJ,a=>this.U3(a))}Ke(){this.ft=new x.Vg("fm-btn-open-fields");this.ft.ni(e.model.B.j.LQ);this.ft.N(x.Qd.uf,()=>this.E4());this.X(this.ft)}updateLabels(){this.ft.ni(e.model.B.j.LQ)}open(a){this.G.ab("fm-fields-opened",!0);this.Se.Fq(a);this.Se.view.open();this.hw=!0}close(){this.Se.view.$a();
this.Se.view.close()}E4(){this.Ya(l.qd.vp.yP)}SN(){this.hw=!1;this.G.ab("fm-fields-opened",!1)}U3(a){this.Ha(a)}get hv(){return this.hw}}f.Mma=b})(h.rr||(h.rr={}))})(l.Yf||(l.Yf={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends l.qd.flat.d7{constructor(a){super(a)}Fq(a,c){this.Pb=a;this.Zt=c;this.Na=a.mf.Pc();this.yl(a.selected);this.OI(this.Na,a.selected)}get slice(){return this.Pb}get XD(){return!1}get YU(){return!1}YM(a){const c=this.Pb.clone();c.selected=this.fka(this.Na,a).map(d=>d.A);return c}ZU(){return!1}pv(){}qv(){}update(){}RE(){}}f.Oma=b})(h.rr||(h.rr={}))})(l.Yf||(l.Yf={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends l.qd.flat.E8{constructor(a){super(a);this.aa("fm-fields-view");this.aa("fm-dt-fields");this.tE.aa("fm-dt-fields-overlay");l.Sb.Jb.G.X(this.G)}}f.Pma=b})(h.rr||(h.rr={}))})(l.Yf||(l.Yf={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends l.qd.flat.bY{constructor(a){super(a,!1);this.model=this.Db}US(a){return new f.Oma(a)}zca(a){return new f.Pma(a)}Fq(a){this.model.Fq(a,l.qd.vp.rT);this.kn();this.view.ae&&this.view.ae.Jf(this.Db.f2());this.view.ye()}ge(){var a=[];const c=this.view.gb.G.find("li",!0);for(let d=0;d<c.length;d++){const g=parseInt(c[d].attr("data-index"));a.push(g)}a=this.Db.YM(a);this.model.slice.isEqual(a)||this.Ya(l.qd.vp.AJ,this,a)}}f.Nma=b})(h.rr||
(h.rr={}))})(l.Yf||(l.Yf={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends h.uF{constructor(a){super(a);this.Pe=e.u.Ma.R()}get dO(){return e.v(this.data)?0:this.data.length-1}k5(){}Wd(){this.data=[];this.Pe.cd(this.Ah,this.Jg,this.measure,a=>this.rq(a),this.Dg.selected)}rq(a){this.data=a;e.Ca(!1);this.Ya(h.uF.xP)}tea(a){a=this.Pe.ga.mapping.La(a,"time_zone");return e.v(a)?e.model.C.F.$j:(a=Number(a.split(":",1)[0]),isNaN(a)?e.model.C.F.$j:a)}BH(a,c){if(e.v(this.data)||e.v(this.data[a]))return null;var d=
this.Pb.Yc.uh(this.Dg.selected[c]);if(null==d)return null;var g=this.Pb.nf(d.A);if(null==g)return null;const k=this.data[a][c];g=this.bU(g);const m=new l.Y.W.ne;m.lb=a;m.kc=c;m.ul=!0;m.li=!0;if(d.type==e.u.i.Ic.yp)"number"==typeof k&&(m.label=u.bc.format(k,g),m.value=k);else if(d.type==e.u.i.Ic.Ua)if("number"===typeof k)a=this.sea(d.A),d=this.tea(d.A),m.label=e.P.$x(k,a,d),m.value=k;else if("string"!==typeof k||e.ka(k))m.label=e.model.B.j.jo;else try{const n=e.P.HU(k),p=this.sea(d.A),t=this.tea(d.A);
m.label=n?u.Lh.format(new Date(k),p,t):k}catch(n){m.label=k}else m.label=k;e.ka(g.textAlign)||m.nz({"text-align":g.textAlign});return m}sea(a){return this.Pe.ga.mapping.La(a,"format",e.model.C.F.Up)}dispose(){super.dispose();this.Pe=null}}f.D9=b})(h.Ys||(h.Ys={}))})(l.Yf||(l.Yf={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends h.uF{constructor(a){super(a);this.Pe=e.u.Ma.R()}update(a=null,c=null,d=null,g=null){this.Pb=a;this.Ah=d;this.Jg=c;this.measure=g;this.mI={};this.Wd()}k5(){}Wd(){this.data=[];this.Pe.cd(this.Ah,this.Jg,this.measure,a=>this.rq(a))}Fq(a){this.Dg=a;this.fZ={};for(a=0;a<this.Dg.selected.length;a++){var c=this.Dg.selected[a];this.fZ[c]=this.Dg.mf.indexOf(c)}this.Ya(h.uF.xP)}rq(a){e.Ca(!1);this.data=a;this.Fq(this.y0(this.Pb))}y0(a){const c=
new h.rr.S7;for(var d of this.data[0])d=d.replace("$",""),c.mf.Ta(d,{A:d,caption:this.bCa(d)});if(!e.model.C.F.O5&&this.Pe.ga.JU){var g=a.flatten();d=c.mf.Pc(!0);for(var k=0;k<g.length;k++){var m=g.fa(k);if(2>=m.ua.length)m=this.wFa(m,d),e.ka(m)||c.GG(m);else if(null!=m.ic)m=m.zf.split("."),m=0<m.length?m[0]+"."+m[m.length-1]:null,-1<d.indexOf(m)&&c.GG(m);else{m=m.A.split(".");for(let n=0;n<d.length;n++)-1<(m[0]==d[n].split(".")[0]?n:-1)&&c.GG(d[n])}}for(g=0;g<a.Wf.length;g++)k=this.xFa(a.Wf[g],d),
e.ka(k)||c.GG(k)}if(e.model.C.F.O5||0==c.selected.length)c.selected=c.mf.Pc(!0);return c}bCa(a){a=a.split("].[").pop();a="]"==a.charAt(a.length-1)?a.substr(0,a.length-1):a;return a="["==a.charAt(0)?a.substr(1):a}wFa(a,c){for(var d=0;d<c.length;d++){var g=c[d];if(g==a.A||0<=g.indexOf(`[${a.caption}]`))return g}return null}xFa(a,c){for(var d=0;d<c.length;d++){var g=c[d];if(g==a.A)return g;var k=a.A.split(".");if(g==`[${a.Mg}].${k[k.length-1]}`)return g;k=g;k="["==k.charAt(0)?k.substr(1):k;if(0<=a.A.indexOf(k))return g}return null}yD(a){const c=
new l.Y.W.ne;c.ul=!0;c.Ng=!0;a=this.Dg.selected[a];if(e.v(a))return null;c.label=this.Dg.mf.getItem(a).caption;return c}BH(a,c){if(e.v(this.data)||e.v(this.data[a]))return null;var d=this.Dg.selected[c];const g="[Measures].["+this.Dg.mf.getItem(d).caption+"]",k=this.yn.Da.find(n=>n.A===g);d=this.data[a][this.fZ[d]];const m=new l.Y.W.ne;m.lb=a;m.kc=c;m.ul=!0;m.li=!0;e.model.C.F.co||null==k?"number"==typeof d?(m.label=e.model.C.F.co||null!=k?u.bc.format(d):u.bc.format(d,e.model.oc.tj.VT()),m.value=
d):(m.label=d,null==k&&m.nz({"text-align":"left"})):(a=this.bU(k),m.label=u.bc.format(d,a),m.value=d,""!=a.textAlign&&m.nz({"text-align":a.textAlign}));return m}dispose(){super.dispose();this.fZ=this.Pe=null}}f.z9=b})(h.Ys||(h.Ys={}))})(l.Yf||(l.Yf={}))})(e.K||(e.K={}))})(q||(q={}));var db=q||(q={}),eb=db.K||(db.K={}),fb=eb.Yf||(eb.Yf={}),gb=fb.Ys||(fb.Ys={});class hb extends gb.z9{}gb.Vpa=hb;
(function(e){(function(l){(function(h){(function(f){class b extends f.D9{BH(a,c){if(e.v(this.data)||e.v(this.data[a]))return null;var d=this.Dg.fp[c].level,g=this.Pb.Yc.uh(this.Dg.fp[c].hierarchy);if(null==g)return null;var k=d?g.Ou(d):null,m=this.Pb.nf(g.A);if(null==m)return null;d=this.data[a][c];m=this.bU(m);const n=new l.Y.W.ne;n.lb=a;n.kc=c;n.ul=!0;n.li=!0;g.type===e.u.i.Ic.yp?(n.label="number"===typeof d?u.bc.format(d,m):d,n.value=d):g.type===e.u.i.Ic.Ua||k&&e.u.i.ib.GDa(k.type)?"number"==typeof d?
(k&&k.type===e.u.i.ib.Mc?(a=this.Pe.ga.mapping.La(g.A,"format",e.model.C.F.Ek),n.label=e.P.HO(d,a,e.model.C.F.$j)):(a=this.Pe.ga.mapping.La(g.A,"format",e.model.C.F.Up),n.label=e.P.$x(d,a,e.model.C.F.$j)),n.value=d):"string"!==typeof d||e.ka(d)||"null"===d?n.label=!e.model.C.F.qr||null!==d&&"null"!==d?e.model.B.j.jo:e.model.B.j.IX:n.label=d:n.label=d;e.ka(m.textAlign)||n.nz({"text-align":m.textAlign});return n}}f.Tka=b})(h.Ys||(h.Ys={}))})(l.Yf||(l.Yf={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){class h{}h.sy="FILTER_OPEN";h.ZX="FILTER_CLOSE";h.KX="DRILL_THROUGH_OPEN";h.t7="CONTEXT_MENU_OPEN";h.CY="RENDER_COMPLETE";h.ly="beforegriddraw";h.qp="aftergriddraw";l.Vi=h;class f extends w.ia{constructor(a){super(h.sy);this.hierarchy=a}}l.KP=f;class b extends w.ia{constructor(a,c,d,g){super(h.KX);this.measure=a;this.Jg=c;this.Ah=d;this.cell=g}}l.R7=b})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.fr=[];this.Id=new e.BF;this.qe=[];this.ud="";this.He=!0}GW(b){this.rh=b}lja(b){this.ig=b;this.fr=this.rh.jk(this.rh.pd,!1,this.ig)}Qia(b,a){var c=this.Xe()?this.qe:this.fr;b=c.indexOf(b.ordinal);a=c.indexOf(a.ordinal);for(a<b&&(b=a+(a=b,0));b<=a;b++)this.select(c[b],!0)}select(b,a){this.He!=a?this.Id.add(b):this.Id.delete(b);this.Id.size!=this.fr.length||this.Xe||this.selectAll(!this.He)}search(b,a){b=b.toLowerCase();this.ud===b?a(this.qe):
(this.ud=b,0==this.ud.length?a():e.u.Ma.R().Aq(this.rh,b,a))}kja(b){null!=b?this.qe=b:this.qe.length=0}selectAll(b){if(this.Xe())for(var a=this.qe.length,c=0;c<a;c++)e.P.contains(this.rh.za(this.qe[c]).caption,this.ud)&&this.select(this.qe[c],b);else this.He=b,this.Id.clear()}Oia(){}jx(){var b=this.He||this.Xe()?this.He&&this.Xe()?this.qe.length+this.xxa()-this.Id.size:this.He||0!=this.Id.size?this.fr.length==this.Id.size?this.qe.length:this.fr.length-this.Id.size:this.Id.size:this.Id.size;return 0<
b?b:0}xxa(){let b=0;for(let a=0;a<this.qe.length;a++)this.Id.has(this.qe[a])&&b++;return this.Id.size-b}Mz(){if(this.Xe()){for(var b=0,a=0;a<this.qe.length;a++)!this.Id.has(this.qe[a])==this.He&&b++;return b}return this.jx()}DW(b){this.Id.clear();var a=b.length;this.He=e.model.C.F.hS?this.rh.filter.Gh?a===this.fr.length:0===a:0===a;if(!this.He)for(let c=0;c<a;c++)this.Id.add(b[c])}WT(){const b=[];var a=this.Xe()&&this.He?this.qe:this.Id.Pc();const c=a.length;if(this.Xe()&&this.He)for(a=0;a<this.qe.length;a++)this.Id.has(this.qe[a])||
b.push(this.qe[a]);else for(let d=0;d<c;d++)b[d]=a[d];a=this.Xe()&&this.He?!1:0==b.length?!1:this.He;return{items:b,ov:a}}HW(b){this.fr=b;this.ud="";this.qe.length=0}X1(b,a){const c=[];let d=b;var g=e.P.Ro(this.ud.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),!0,!0);g=new RegExp("("+g+")","ig");const k=this.Xe()?this.qe:this.fr;let m;for(;d<a&&!(d>k.length-1);d++){var n=this.rh.za(k[d]);m=e.P.Ro(n.caption,!0,!0);n={Vb:n,label:this.Xe()?m.replace(g,'<b class="fm-search-highlight">$&</b>'):m,Ad:(this.Id.has(n.ordinal)?
!this.He:this.He)?1:0,xga:0,QKa:a-b<k.length-1?15:0,fh:n.fh&&"Others"!==m};c.push(n)}return c}getItem(b){return(this.Xe()?this.qe:this.fr)[b]}IH(){return this.Xe()?this.qe.length:this.fr.length}getTotalLength(){return this.IH()}Xe(){return 0<this.ud.length}expand(){}collapse(){}}h.vY=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.nd=[];this.Id=[];this.qe=[];this.Sk=[];this.Az=[];this.ud="";this.He=!0;this.ig=e.u.i.Ba.ed}GW(b){this.rh=b;this.nd.length=0}lja(b){this.ig=b;this.nd.length=0;this.M2(this.rh.pd,-1)}HW(b){for(var a=0,c=b.length,d;a<c;a++)d=this.rh.za(b[a]),d.dc||(this.nd.push(b[a]),d.eh&&d.children&&0<d.children.length&&(this.Az.push(b[a]),this.HW(this.ig===e.u.i.Ba.ed?d.children.slice():this.rh.jk(d,!1,this.ig))))}X1(b,a){var c=b,d=[],g=new RegExp("("+
this.ud+")","i"),k=this.Xe()?this.qe:this.nd;let m;for(;c<a&&!(c>k.length-1);c++){var n=this.rh.za(k[c]);m=e.P.Ro(n.caption,!0,!0);n={Vb:n,xga:n.level.yb,label:this.Xe()?m.replace(g,'<b class="fm-search-highlight">$&</b>'):m,Ad:this.Ad(n),Xe:this.Xe(),dg:this.dg(n),QKa:a-b<k.length-1?17:0,fh:n.fh&&"Others"!=n.caption,pU:this.pU(n)};d.push(n)}return d}getItem(b){return(this.Xe()?this.qe:this.nd)[b]}Ad(b){var a=(-1==this.Id.indexOf(b.ordinal)?this.He:!this.He)?1:0;0<this.Id.length&&-1!=this.Sk.indexOf(b.ordinal)&&
(a=-1);return a}pU(b){return this.Xe()?!1:!b.Hh}dg(b){return this.Xe()||b.Hh?void 0:-1!=this.Az.indexOf(b.ordinal)?!0:!1}IH(){return this.Xe()?this.qe.length:this.nd.length}getTotalLength(){if(this.Xe()){let c=0;if(e.u.Ma.R().ga.Ec)for(var b=this.qe.length,a=0;a<b;a++)e.P.contains(this.rh.za(this.qe[a]).caption,this.ud)||c++;return this.qe.length-c}return this.rh?this.rh.Zi-1:0}Qia(b,a){var c=this.Xe()?this.qe:this.nd;b=c.indexOf(b.ordinal);a=c.indexOf(a.ordinal);for(a<b&&(b=a+(a=b,0));b<=a;b++)this.select(this.rh.za(c[b]),
!0)}select(b,a){var c=this.Id.indexOf(b.ordinal);this.He!==a?(-1==c&&this.Id.push(b.ordinal),0<b.children.length&&this.fW(b)):(-1!=c&&this.Id.splice(c,1),0<b.children.length&&this.q5(b));a=this.Sk.indexOf(b.ordinal);-1!=a&&this.Sk.splice(a,1);this.Pia(b);this.Id.length===this.rh.Zi-1&&(this.Id.length=0,this.Sk.length=0,this.He=!this.He)}Oia(b){-1==this.Sk.indexOf(b.ordinal)&&(-1==this.Id.indexOf(b.ordinal)?this.q5(b):this.fW(b))}Pia(b){var a=b.parent;if(a&&!a.dc){b=this.Id.indexOf(a.ordinal);var c=
this.Sk.indexOf(a.ordinal);var d=-1!=b;this.gfa(a,!1)?(this.gfa(a)?(-1==c&&this.Sk.push(a.ordinal),this.He&&d&&this.Id.splice(b,1)):(-1!=c&&this.Sk.splice(c,1),this.He&&!d&&this.Id.push(a.ordinal)),!this.He&&d&&this.Id.splice(b,1)):(-1!=c&&this.Sk.splice(c,1),this.He&&d?this.Id.splice(b,1):this.He||d||this.Id.push(a.ordinal));this.Pia(a)}}gfa(b,a=!0){var c=0;b=b.children;for(var d=b.length;c<d;c++)if(-1==this.Id.indexOf(b[c])==this.He==a||-1!=this.Sk.indexOf(b[c]))return!0;return!1}fW(b){var a=0;
b=b.children;for(var c=b.length;a<c;a++){var d=this.Id.indexOf(b[a]);var g=this.Sk.indexOf(b[a]);-1==d&&this.Id.push(b[a]);-1!=g&&this.Sk.splice(g,1);d=this.rh.za(b[a]);0<d.children.length&&this.fW(d)}}q5(b){for(var a=0,c,d,g=b.children,k=g.length;a<k;a++)d=this.rh.za(g[a]),b=this.Id.indexOf(g[a]),c=this.Sk.indexOf(g[a]),-1!=b&&this.Id.splice(b,1),-1!=c&&this.Sk.splice(c,1),0<d.children.length&&this.q5(d)}selectAll(b){if(this.Xe())for(var a=this.qe.length,c,d=0;d<a;d++)c=this.rh.za(this.qe[d]),e.P.contains(c.caption,
this.ud)&&this.select(c,b);else this.He=b,this.Id.length=0,this.Sk.length=0}Mz(){if(this.Xe()){for(var b=0,a=this.qe.length,c,d=0;d<a;d++)c=this.rh.za(this.qe[d]),e.P.contains(c.caption,this.ud)&&0>this.Id.indexOf(this.qe[d])==this.He&&b++;return b}return this.jx()}jx(){var b=this.He?this.rh.Zi-this.Id.length-this.Sk.length-1:this.Id.length;return 0>b?0:b}DW(b){var a=b.length;this.Id.length=0;this.Sk.length=0;if(0==a)this.He=!0;else{this.He=!1;for(var c,d=0;d<a;d++)for(c=this.rh.za(b[d]),this.Id.push(c.ordinal),
0<c.children.length&&this.fW(c);c.parent&&!c.parent.dc;)c=c.parent,-1==this.Sk.indexOf(c.ordinal)&&this.Sk.push(c.ordinal)}}WT(){var b=[];var a=this.Xe()&&this.He?this.qe:this.Id;for(var c=0,d=a.length;c<d;c++){var g=this.rh.za(a[c]);var k=g.parent;var m=-1;e.v(k)||(m=a.indexOf(k.ordinal));-1===m&&b.push(g.ordinal)}g=this.Xe()&&this.He?!1:0==b.length?!1:this.He;return{items:b,ov:g}}search(b,a){b=b.toLowerCase();this.ud===b?a():(this.ud=b,0==this.ud.length?a():e.u.Ma.R().Aq(this.rh,b,a))}kja(b){null!=
b?this.qe=b:this.qe.length=0}Xe(){return 0<this.ud.length}expand(b){-1==this.Az.indexOf(b.ordinal)&&this.Az.push(b.ordinal);this.vja(b,!0)}collapse(b){var a=this.Az.indexOf(b.ordinal);-1!=a&&this.Az.splice(a,1);this.vja(b,!1)}vja(b,a){var c=this.nd.indexOf(b.ordinal);a?this.M2(b,c):this.nd.splice(c+1,this.Nea(b))}M2(b,a){b=this.ig===e.u.i.Ba.ed?b.children:this.rh.jk(b,!1,this.ig);for(var c=b.length-1,d=a+1;-1<c;c--)a=this.rh.za(b[c]),this.nd.splice(d,0,b[c]),-1<this.Az.indexOf(b[c])&&this.M2(a,d)}Nea(b){b=
b.children;for(var a=b.length,c=a,d,g=0;g<a;g++)d=this.rh.za(b[g]),-1<this.Az.indexOf(b[g])&&(c+=this.Nea(d));return c}}h.Upa=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.ce.sk{constructor(){super();this.aa("fm-filter-view-content");this.Ke()}Ke(){var b=new x.Pa("div","fm-popup-header fm-ui-row");this.X(b);var a=new x.Pa("div","fm-ui-col-2 fm-vam");b.X(a);this.Nr=new x.Tc;this.Nr.aa("fm-popup-title");a.X(this.Nr);a=new x.Pa("div","fm-ui-col fm-vam fm-ui-btns-row");b.X(a);this.NG=new x.Vg("fm-ui-btn");this.NG.fb(e.model.B.j.xm);this.Mp=new x.Vg("fm-ui-btn-dark");this.Mp.fb(e.model.B.j.my);u.uj.aE||u.uj.Yo?(a.X(this.NG),
a.X(this.Mp)):(a.X(this.Mp),a.X(this.NG));b=new x.Pa("div","fm-ui-row fm-filter-sort-row");this.X(b);this.rH=new x.Pa("div","fm-ui-col fm-filters-col");b.X(this.rH);this.vT=new x.Tc;this.vT.aa("fm-filter-label");this.vT.aa("fm-ui-label-light");this.rH.X(this.vT);this.qf=new x.NQ;this.qf.aa("fm-labels-filter-btn");this.qf.aa("fm-filter-btn");this.eI=new x.Tc;this.qf.X(this.eI);this.qf.G.X(new x.Ga("div","fm-ui-arrow-up",!1));this.rH.X(this.qf);this.Pf=new x.NQ;this.Pf.aa("fm-values-filter-btn");this.Pf.aa("fm-filter-btn");
this.Gka=new x.Tc;this.Pf.X(this.Gka);this.Pf.G.X(new x.Ga("div","fm-ui-arrow-up",!1));this.rH.X(this.Pf);this.ln=new h.esa;this.ln.aa("fm-values-filter-view");this.ln.$a();this.X(this.ln);this.Pn=new h.Jma;this.Pn.aa("fm-dates-filter-view");this.Pn.$a();this.X(this.Pn);this.kq=new h.Goa;this.kq.aa("fm-labels-filter-view");this.kq.$a();this.X(this.kq);this.qq=new h.dqa;this.qq.aa("fm-numbers-filter-view");this.qq.$a();this.X(this.qq);this.Eq=new h.Nra;this.Eq.aa("fm-time-filter-view");this.Eq.$a();
this.X(this.Eq);this.zO=new x.Pa("div","fm-ui-col fm-sort-col");b.X(this.zO);this.WW=new x.Tc;this.WW.aa("fm-sort-label");this.WW.aa("fm-ui-label-light");this.WW.fb(e.model.B.j.Mna);this.zO.X(this.WW);b=new x.Pa("div","fm-sort-btns");this.zO.X(b);this.$k=new x.NQ;this.$k.aa("fm-sort-btn");this.$k.fb(e.model.B.j.r8);b.X(this.$k);this.al=new x.NQ;this.al.aa("fm-sort-btn");this.al.fb(e.model.B.j.v8);b.X(this.al);this.Zb=new h.Tpa;this.X(this.Zb)}get ae(){return this.Zb.ae}get Nx(){return this.Zb.Nx}get $n(){return this.Zb.$n}ye(){this.Mp.fb(e.model.B.j.my);
this.NG.fb(e.model.B.j.xm);this.$k.fb(e.model.B.j.r8);this.$k.ni(e.model.B.j.s8);this.$k.zc(e.model.B.j.s8);this.al.fb(e.model.B.j.v8);this.al.ni(e.model.B.j.w8);this.al.zc(e.model.B.j.w8);this.vT.fb(e.model.B.j.jB);this.eI.fb(e.model.B.j.HP);this.qf.zc(e.model.B.j.jB+" "+e.model.B.j.HP);this.Gka.fb(e.model.B.j.z8);this.Pf.zc(e.model.B.j.jB+" "+e.model.B.j.z8);this.Pn.ye();this.kq.ye();this.qq.ye();this.Eq.ye();this.ln.ye();this.Zb.ye()}}h.boa=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q=
{}));
(function(e){(function(l){(function(h){class f extends x.Li.GB{constructor(){super();this.OEa=20;this.Ju=new x.VY;this.Ju.Hd("fm-ui-toggle-btn");this.Ju.aa("fm-expand-toggle-btn");this.Ju.N(w.ia.Xd,()=>this.tGa());this.Ju.af(-1);this.G.append(this.Ju.G);this.LE=new x.pK;this.LE.G.o5("tabindex");this.LE.N(w.ia.Xd,b=>this.Q4(b.data));this.G.append(this.LE.G);this.je("all")}tGa(){var b=this.getData();b.dg=1==this.Ju.getSelection();this.G.Ya(h.MJ.BJ,this,b)}Q4(b){var a=this.getData();a.Ad=this.LE.getSelection();this.G.Ya(h.MJ.AQ,
this,{Vb:a,shiftKey:b.shiftKey})}nb(){if(this.dv("data")){const a=this.getData();if(this.Ju&&this.LE&&a){this.G.V("padding-left","");var b=this.OEa*(a.xga-1);a.Xe||void 0!==a.dg||(b+=30);0<b&&this.G.V("padding-left",b+"px");a.pU?(this.Ju.show(),this.Ju.Jf(a.dg)):this.Ju.$a();this.LE.fb(a[this.ur()],!0);this.LE.Jf(a.Ad)}}}}h.$na=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.Bd.Ura{constructor(){super();this.eV=null;this.af();this.mi((b,a)=>this.OBa(b,a))}OBa(b,a){var c=new h.$na;c.setData(b);c.hn(a);c.N(f.AQ,d=>this.Q4(d));c.N(f.BJ,d=>this.WGa(d));return c}sv(b){super.sv(b);b=b.data.Hl;b.Ad=1==b.Ad?0:1;this.u6(b)}Q4(b){this.u6(b.data.Vb,b.data.shiftKey)}u6(b,a=!1){1==b.Ad&&a&&this.eV&&this.vh().Qia(this.eV.Vb,b.Vb);this.NLa(b,1==b.Ad);this.Ha(new w.ia(f.AQ,this))}WGa(b){this.mka(b.data)}mka(b){b.dg?0===b.Vb.children.length||
b.Vb.Cf?e.model.Wa.R().ja.Nk(b.Vb.hierarchy,b.Vb,()=>this.ek(b)):this.ek(b):(this.vh().collapse(b.Vb),this.je("data"),this.Ha(new w.ia(f.BJ,this)))}ek(b){e.Ca(!1);this.vh().Oia(b.Vb);this.vh().expand(b.Vb);this.je("data");this.Ha(new w.ia(f.BJ,this))}vh(){return this.xza}M5(b){this.xza=b}WT(){return this.vh().WT()}DW(b){this.vh().DW(b);this.je("data")}Mz(){return this.vh().Mz()}jx(){return this.vh().jx()}getTotalLength(){return this.vh().IH()}kU(){return this.vh().getTotalLength()}NLa(b,a){this.vh()instanceof
h.vY?this.vh().select(b.Vb.ordinal,a):this.vh().select(b.Vb,a);this.eV=a?b:null;this.je("data")}selectAll(b){this.vh().selectAll(b);this.eV=null;this.je("data")}search(b,a){this.vh().search(b,c=>{this.vh().kja(c);this.je("data");a()});this.G.ab("fm-is-searched",this.Xe())}Xe(){return this.vh().Xe()}GW(b){this.vh().GW(b)}sort(b){b!==this.vh().ig&&(this.vh().lja(b),this.je("data"))}}f.AQ="_";f.BJ="__";h.MJ=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){if(null!=f.instance)throw"FilterModel is singleton!";this.oq=e.model.Wa.R()}static R(){null==f.instance&&(f.instance=new f);return f.instance}static dispose(){f.instance=null}update(b){this.Da=[];const a=this.oq.ja.qa.gd();for(let c=0;c<a.length;c++){const d=a[c],g=new e.model.hb.oh(d.A,d.$,d.index);g.label=d.caption;!b.filter.measure||-1!=b.filter.measure.index||g.A!=b.filter.measure.A||""!=b.filter.measure.$&&g.$!=b.filter.measure.$||
(b.filter.measure.index=g.index);this.Da.push(g)}this.rl={};this.Zia(b)}Zia(b){(this.hierarchy=b)?(this.hierarchy.filter.Fh&&(this.rl.type=this.hierarchy.filter.type,this.hierarchy.filter.measure&&(this.rl.measure=this.hierarchy.filter.measure.Sa()),this.hierarchy.filter.query&&(this.rl.query=this.hierarchy.filter.query.clone())),this.nd=this.hierarchy.hg!==e.u.i.Ba.ed?this.hierarchy.jk(this.hierarchy.pd,!1,this.hierarchy.hg):this.hierarchy.pd.children.slice(),this.taa=e.model.hb.lB.ZT(this.hierarchy)):
this.taa=e.u.i.tb.NONE;this.Raa=this.oq.ja.O.sH.Wea(this.hierarchy,this.Xn)}gd(){if(this.dj){var b=this.oq.ja.O.nf(this.hierarchy.A),a=new e.model.hb.oh(b.A,b.$,b.index);a.label=b.caption;return[a]}return this.oq.ja.ga.Ec?this.Da.filter(c=>{const d=this.oq.ja.O.fd(c.A);c=-1<e.u.i.ea.RA.indexOf(c.$);return d&&!d.Qa&&!c}):this.Da}Fua(b){var a=!1,c=!1;!e.v(this.hierarchy.filter.query)&&e.v(b.query)?(a=!0,this.hierarchy.HC(),this.oq.cb()):e.v(b.query)||(c=this.oEa(b));var d=this.Vfa(b);if(c||d)return a=
{},c&&!e.v(b.measure)&&(a.measure=b.measure),c&&!e.v(b.query)&&(a.query=b.query.Sa()),d&&!e.v(b.nd)&&(a.members=b.nd),d&&!e.v(b.zz)&&(a.exclude=b.zz),this.oq.Il(this.hierarchy.A,a),!0;a&&this.oq.refresh();return!1}xu(){this.oq.xu(this.hierarchy.A)}oEa(b){if(b.type==e.u.i.tb.Ua)return this.FDa(b);if(b.type==e.u.i.tb.fl)return this.bEa(b);if(b.type==e.u.i.tb.jb||b.type==e.u.i.tb.ec)return this.hEa(b);if(b.type==e.u.i.tb.wo)return this.zEa(b)}FDa(b){return this.hierarchy.filter.type!==b.type||this.hierarchy.filter.query.va!=
b.query.va?!0:0<=e.u.i.cc.ui.indexOf(b.query.va)?!e.Rf.e1(this.hierarchy.filter.query.value,b.query.value):0<=e.u.i.cc.Uf.indexOf(b.query.va)?this.hierarchy.filter.query.value&&b.query.value?!e.Rf.e1(this.hierarchy.filter.query.value[0],b.query.value[0])||!e.Rf.e1(this.hierarchy.filter.query.value[1],b.query.value[1]):!0:0<=e.u.i.cc.zy.indexOf(b.query.va)?this.hierarchy.filter.query.value!==b.query.value:!1}bEa(b){return this.hierarchy.filter.type!==b.type||this.hierarchy.filter.query.va!=b.query.va?
!0:0<=e.u.i.Eb.ui.indexOf(b.query.va)?this.hierarchy.filter.query.value!==b.query.value:0<=e.u.i.Eb.Uf.indexOf(b.query.va)?e.v(this.hierarchy.filter.query.value)||e.v(b.query.value)?!0:this.hierarchy.filter.query.value[0]!==b.query.value[0]||this.hierarchy.filter.query.value[1]!==b.query.value[1]:!1}hEa(b){return this.hierarchy.filter.type!==b.type||this.hierarchy.filter.query.va!==b.query.va?!0:0<=e.u.i.Ug.ui.indexOf(b.query.va)?this.hierarchy.filter.query.value!==b.query.value:0<=e.u.i.Ug.Uf.indexOf(b.query.va)?
e.v(this.hierarchy.filter.query.value)||e.v(b.query.value)?!0:this.hierarchy.filter.query.value[0]!==b.query.value[0]||this.hierarchy.filter.query.value[1]!==b.query.value[1]:!1}zEa(b){return this.hierarchy.filter.type!==b.type||this.hierarchy.filter.measure.A!==b.measure.uniqueName||this.hierarchy.filter.measure.$!==b.measure.aggregation||this.hierarchy.filter.query.va!=b.query.va?!0:0<=e.u.i.Wb.ui.indexOf(b.query.va)?this.hierarchy.filter.query.value!==b.query.value:0<=e.u.i.Wb.Uf.indexOf(b.query.va)?
e.v(this.hierarchy.filter.query.value)||e.v(b.query.value)?!0:this.hierarchy.filter.query.value[0]!==b.query.value[0]||this.hierarchy.filter.query.value[1]!==b.query.value[1]:!1}Vfa(b){if(null==b)return this.hierarchy.filter.Gh;if(null==b.nd&&null==b.zz)return!1;var a=this.hierarchy.filter.Hi();if(b.nd){var c=b.nd;if(c.length!=a.length)return!0;for(var d=0,g=c.length;d<g;d++)if(-1==a.indexOf(c[d]))return!0}if(b.zz){b=b.zz;if(a.length+b.length!==this.hierarchy.Zi-1)return!0;d=0;for(g=b.length;d<g;d++)if(-1==
a.indexOf(b[d]))return!0}return!1}$ua(b){b!=this.hierarchy.hg&&this.oq.SE(this.hierarchy.A,b)}get h3(){return!this.dj&&this.oq.ja.qa.qb.Bb(this.hierarchy.A)}get Ec(){return this.oq.Fa.ga.Ec}get dj(){return e.model.C.F.sc&&e.model.C.F.me!=l.Jd.nj}get Xn(){return this.taa}get kp(){return this.Raa?this.Raa:new e.u.O.xra}get mx(){return this.rl.type==e.u.i.tb.Ua||this.rl.type==e.u.i.tb.fl||this.rl.type==e.u.i.tb.jb||this.rl.type==e.u.i.tb.ec}get ji(){return this.rl.type==e.u.i.tb.wo}}h.C8=f})(l.filter||
(l.filter={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends w.Mh{constructor(){super();this.model=h.C8.R();this.view=new h.boa;null!=this.view.dDa&&this.view.dDa.N(w.ia.Xd,b=>this.pHa(b));null!=this.view.$n&&(this.view.$n.N(x.Sj.oy,b=>this.yIa(b.data)),this.view.$n.N(x.Sj.fB,()=>this.AIa()),this.view.$n.N(x.Sj.W7,()=>this.zIa()));this.view.Zb&&this.view.Zb.Kd&&(this.view.Zb.Kd.N(h.MJ.AQ,()=>this.WHa()),this.view.Zb.Kd.N(h.MJ.BJ,()=>this.UHa()),this.view.Zb.Kd.N("keydown",b=>this.VHa(b)));null!=this.view.ae&&
this.view.ae.N(w.ia.Xd,()=>this.R4());null!=this.view.$k&&this.view.$k.N(w.ia.Xd,()=>this.GIa());null!=this.view.al&&this.view.al.N(w.ia.Xd,()=>this.HIa());null!=this.view.qf&&this.view.qf.N(w.ia.Xd,()=>this.xHa());null!=this.view.Pn&&this.view.Pn.N(w.ia.sp,()=>this.NV());null!=this.view.kq&&this.view.kq.N(w.ia.sp,()=>this.NV());null!=this.view.qq&&this.view.qq.N(w.ia.sp,()=>this.NV());null!=this.view.Eq&&this.view.Eq.N(w.ia.sp,()=>this.NV());null!=this.view.Pf&&this.view.Pf.N(w.ia.Xd,()=>this.UIa());
null!=this.view.ln&&this.view.ln.N(w.ia.sp,()=>this.TIa());null!=this.view.Mp&&this.view.Mp.N(x.Qd.uf,()=>this.cGa());null!=this.view.NG&&this.view.NG.N(x.Qd.uf,()=>this.at())}TIa(){this.view.Pf&&(this.view.Pf.Hd("fm-has-filter"),this.view.Pf.Jf(0),this.oO(),this.YI())}NV(){this.view.qf&&(this.view.qf.Hd("fm-has-filter"),this.view.qf.Jf(0),this.oO(),this.YI())}xHa(){this.view.Pf&&this.view.Pf.Jf(0);this.oO();this.YI()}UIa(){this.view.qf&&this.view.qf.Jf(0);this.oO();this.YI()}cGa(){var b=this.model.Fua(this.oBa());
this.model.$ua(this.qBa());b||this.Ya("close")}oO(){this.view.Pn&&this.view.Pn.isVisible(this.ox&&1===this.view.qf.getSelection()&&this.model.Xn==e.u.i.tb.Ua);this.view.kq&&this.view.kq.isVisible(this.ox&&1===this.view.qf.getSelection()&&this.model.Xn==e.u.i.tb.fl);this.view.qq&&this.view.qq.isVisible(this.ox&&1===this.view.qf.getSelection()&&this.model.Xn==e.u.i.tb.jb);this.view.Eq&&this.view.Eq.isVisible(this.ox&&1===this.view.qf.getSelection()&&this.model.Xn==e.u.i.tb.ec);this.view.ln&&this.view.ln.isVisible(this.Uz&&
1===this.view.Pf.getSelection());this.view.Zb&&(this.view.Zb.isVisible(this.model.kp.Wfa&&0==this.view.Pf.getSelection()&&0==this.view.qf.getSelection()),this.view.Zb.isVisible()&&this.view.Zb.Kd.Sr());this.view.ab("fm-query-filter-opened",!1);this.view.qf&&1===this.view.qf.getSelection()&&this.view.ab("fm-query-filter-opened",!0);this.view.Pf&&1===this.view.Pf.getSelection()&&this.view.ab("fm-query-filter-opened",!0);this.view.ab("fm-no-query-filters",!this.ox&&!this.Uz);this.view.ab("fm-no-member-filters",
!this.model.kp.Wfa);this.Ya("center")}YI(){this.view.Mp&&(this.view.Zb&&this.view.Zb.isVisible()?this.view.Mp.Bq(0<this.view.Zb.Kd.jx()):this.view.Mp.Bq(!0))}qBa(){return this.view.$k&&1==this.view.$k.getSelection()?e.u.i.Ba.hc:this.view.al&&1==this.view.al.getSelection()?e.u.i.Ba.Nc:this.view.$k&&this.view.al?e.u.i.Ba.ed:this.model.hierarchy.hg}Kea(){return this.model.Xn==e.u.i.tb.Ua?this.view.Pn.Ym():this.model.Xn==e.u.i.tb.fl?this.view.kq.Ym():this.model.Xn==e.u.i.tb.jb?this.view.qq.Ym():this.model.Xn==
e.u.i.tb.ec?this.view.Eq.Ym():null}oBa(){var b=null,a=null;1==this.view.qf.getSelection()?b=this.Kea():1==this.view.Pf.getSelection()?b=this.view.ln.Ym():(a=this.view.Zb.Ym(),this.model.Vfa(a)||(a=null));null==a&&null==b&&(this.view.qf.Sc("fm-has-filter")?b=this.Kea():this.view.Pf.Sc("fm-has-filter")&&(b=this.view.ln.Ym()));var c={};b&&(c.type=b.type,c.query=b.query,c.measure=b.measure);a&&(e.v(a.nd)||(c.nd=a.nd),e.v(a.zz)||(c.zz=a.zz));return c}at(){this.Ya("close")}GIa(){1===this.view.$k.getSelection()&&
(this.view.al.Jf(0),this.view.Zb&&this.view.Zb.Kd.sort(e.u.i.Ba.hc));0===this.view.$k.getSelection()&&0===this.view.al.getSelection()&&this.view.Zb&&this.view.Zb.Kd.sort(e.u.i.Ba.ed)}HIa(){1===this.view.al.getSelection()&&(this.view.$k.Jf(0),this.view.Zb&&this.view.Zb.Kd.sort(e.u.i.Ba.Nc));0===this.view.$k.getSelection()&&0===this.view.al.getSelection()&&this.view.Zb&&this.view.Zb.Kd.sort(e.u.i.Ba.ed)}R4(){this.view.Zb&&(this.view.Zb.Kd.selectAll(1==this.view.ae.getSelection()),this.view.Mp.Bq(0<
this.view.Zb.Kd.jx()));this.NO()}VHa(b){if(32===b.keyCode||13===b.keyCode){var a=this.view.Zb.Kd.Su();e.v(a)||(a=a.data,!a.pU||b.ctrlKey||b.metaKey?(a.Ad=1==a.Ad?0:1,this.view.Zb.Kd.u6(a)):(a.dg=!a.dg,this.view.Zb.Kd.mka(a)))}}WHa(){this.view.Mp.Bq(0<this.view.Zb.Kd.jx());this.tka();this.NO()}UHa(){this.B6();this.NO()}tka(){0==this.view.Zb.Kd.Mz()?this.view.ae.Jf(0):this.view.Zb.Kd.kU()>this.view.Zb.Kd.Mz()?this.view.ae.Jf(-1):this.view.Zb.Kd.kU()==this.view.Zb.Kd.Mz()&&this.view.ae.Jf(1)}update(b){0!=
this.view.isVisible()&&(1E4<b.Zi?(e.Ca(!0,e.model.B.j.KF,e.model.B.j.Ipa,!0,!0),setTimeout(()=>{this.model.update(b);this.kn();e.Ca(!1)},50)):(this.model.update(b),this.kn()))}yIa(b){e.model.C.F.wT&&b.trim()==b&&this.view.Zb&&this.view.Zb.Kd.search(b,()=>this.sE())}AIa(){var b=this.view.$n.bj();!e.model.C.F.wT&&b.trim()==b&&this.view.Zb&&this.view.Zb.Kd.search(b,()=>this.sE())}zIa(){!e.model.C.F.wT&&this.view.Zb&&this.view.Zb.Kd.search("",()=>this.sE())}sE(){this.B6();this.NO();this.tka();this.view.Mp.Bq(0<
this.view.Zb.Kd.jx())}kn(){this.view.ye();this.view.ab("fm-filter-pages-layout",this.model.h3);this.view.ab("fm-filter-flat-layout",this.model.dj);this.view.Zb&&this.view.Zb.reset();this.view.$n&&(this.view.$n.clear(),this.view.$n.yW(e.model.Wa.R().Fa.ga.Ec?1E3:0));this.view.Pf&&(e.u.i.Ra.$c==e.u.i.Ra.jAa(this.model.hierarchy.Ci.type+"")&&e.model.C.F.sc?this.view.Pf.$a():this.view.Pf.show());this.bNa();this.YMa();this.ZMa();this.XMa();this.B6();this.NO();this.aNa();this.YI();this.Sza()}Sza(){this.view.Zb&&
this.view.Zb.isVisible()?this.view.Zb.Kd.focus({preventScroll:!0}):this.view.qf&&1==this.view.qf.getSelection()?this.view.qf.focus({preventScroll:!0}):this.view.Pf&&1==this.view.Pf.getSelection()?this.view.Pf.focus({preventScroll:!0}):this.view.Mp.focus({preventScroll:!0})}aNa(){var b=!this.model.h3&&!e.model.C.F.sc;this.view.$k&&this.view.$k.isVisible(b);this.view.al&&this.view.al.isVisible(b);this.view.zO&&this.view.zO.isVisible(b);this.view.ab("fm-sort-only",!this.ox&&!this.Uz)}get Uz(){if(e.u.Ma.R().ga.Aa==
e.u.i.ra.API&&!this.model.kp.pga)return!1;if(this.model.dj){var b=this.model.oq.ja.O.nf(this.model.hierarchy.A);return!e.v(b)&&b.type==e.u.i.Ra.jb}return this.model.h3||e.u.Ma.R().ga.Aa==e.u.i.ra.Pd||e.u.Ma.R().ga.Aa==e.u.i.ra.kg||!this.gEa()?!1:!0}gEa(){return 0<this.model.gd().length}get ox(){return this.model.kp.sN&&e.u.Ma.R().ga.Aa!=e.u.i.ra.Pd&&!(this.model.dj&&this.model.Xn==e.u.i.tb.jb)}ZMa(){var b=this.model.hierarchy;this.view.ae&&this.view.ae.Jf(0<b.filter.Hi().length?-1:!b.filter.Gh);if(this.view.Zb){var a=
2<b.ua.length;this.view.Zb.Kd.ab("fm-tree-list",a);this.view.Zb.Kd.M5(a?new h.Upa:new h.vY);this.view.Zb.Kd.GW(b);this.view.Zb.Kd.gg(this.model.nd);this.view.Zb.Kd.DW(b.filter.Hi());this.view.Zb.Kd.sort(b.hg)}}YMa(){this.view.Nr&&(this.view.Nr.fb(this.model.hierarchy.caption),this.view.Nr.ni(this.model.hierarchy.caption));this.view.toolbar&&this.view.toolbar.DLa(this.model.hierarchy.caption)}B6(){this.view.Zb&&0<this.view.Zb.Kd.getTotalLength()?this.view.ae&&this.view.ae.show():this.view.ae&&this.view.ae.$a()}bNa(){this.view.$k&&
this.view.$k.Jf(this.model.hierarchy.hg==e.u.i.Ba.hc?1:0);this.view.al&&this.view.al.Jf(this.model.hierarchy.hg==e.u.i.Ba.Nc?1:0)}XMa(){this.view.rH&&this.view.rH.isVisible(this.ox||this.Uz);this.view.qf&&(this.model.Xn==e.u.i.tb.Ua?(this.view.eI.fb(e.model.B.j.u8),this.view.qf.zc(e.model.B.j.jB+" "+e.model.B.j.u8)):this.model.Xn==e.u.i.tb.fl?(this.view.eI.fb(e.model.B.j.HP),this.view.qf.zc(e.model.B.j.jB+" "+e.model.B.j.HP)):this.model.Xn==e.u.i.tb.jb?(this.view.eI.fb(e.model.B.j.x8),this.view.qf.zc(e.model.B.j.jB+
" "+e.model.B.j.x8)):this.model.Xn==e.u.i.tb.ec&&(this.view.eI.fb(e.model.B.j.y8),this.view.qf.zc(e.model.B.j.jB+" "+e.model.B.j.y8)),this.view.qf.isVisible(this.ox&&this.model.Xn!=e.u.i.tb.NONE),this.view.qf.ab("fm-has-filter",this.model.mx),this.view.qf.Jf(this.model.mx));this.view.Pf&&(this.model.dj&&!this.Uz&&this.model.hierarchy.filter.ji?(this.view.Pf.isVisible(!0),this.view.Pf.Bq(!1)):(this.view.Pf.isVisible(this.Uz),this.view.Pf.Bq(this.Uz)),this.view.Pf.ab("fm-has-filter",this.model.ji),
this.view.Pf.Jf(this.Uz&&this.model.ji));this.view.Pn&&(this.view.Pn.Pj=e.model.C.F.rM,this.view.Pn.Kf(this.model.hierarchy.getTimezoneOffset()),this.view.Pn.Px(this.model.kp.sN?this.model.kp.query:[]),this.view.Pn.reset(),this.model.rl.type==e.u.i.tb.Ua&&this.view.Pn.Il(this.model.rl));this.view.kq&&(this.view.kq.Px(this.model.kp.sN?this.model.kp.query:[]),this.view.kq.reset(),this.model.rl.type==e.u.i.tb.fl&&this.view.kq.Il(this.model.rl));this.view.qq&&(this.view.qq.Px(this.model.kp.sN?this.model.kp.query:
[]),this.view.qq.reset(),this.model.rl.type==e.u.i.tb.jb&&this.view.qq.Il(this.model.rl));this.view.Eq&&(this.view.Eq.Px(this.model.kp.sN?this.model.kp.query:[]),this.view.Eq.reset(),this.model.rl.type==e.u.i.tb.ec&&this.view.Eq.Il(this.model.rl));this.view.ln&&(this.view.ln.Px(this.model.kp.pga?this.model.kp.vm:[]),this.view.ln.reset(),this.view.ln.zA(this.model.gd()),this.model.rl.type==e.u.i.tb.wo&&this.view.ln.Il(this.model.rl),this.view.ln.ab("fm-arrow-first",!this.ox));this.oO();this.YI()}NO(){var b=
"";this.view.Zb&&(b=this.view.Zb.Kd.Xe()?e.P.bind(e.model.B.j.hna,this.view.Zb.Kd.Mz(),this.view.Zb.Kd.kU()):e.P.bind(e.model.B.j.ina,this.view.Zb.Kd.Mz(),this.view.Zb.Kd.kU()));this.view.Nx&&(this.view.Nx.fb(b),this.view.Nx.ni(b));this.view.ae&&this.view.ae.fb(this.view.Zb&&this.view.Zb.Kd.Xe()?e.model.B.j.Lna:e.model.B.j.Lv)}pHa(b){var a=b.data.Hl;-1<b.data.selectedIndex&&(this.model.Zia(a),this.kn())}}h.Zna=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.ce.Fy{constructor(){super(l.Sb.Jb.G);this.aa("fm-filter-view");this.aa("fm-noselect");this.Se=new h.Zna;this.Se.N("close",()=>this.close());this.Se.N("center",()=>this.Pp());this.X(this.Se.view);this.Se.view.show();this.G.ij({RW:[x.ij.ti.pi,x.ij.ti.CF,x.ij.ti.UF],LS:l.Sb.Jb.G,H_:!0,resize:b=>this.TN(b),complete:()=>this.Pp()})}TN(b){b.WE==x.ij.ti.CF||b.WE==x.ij.ti.UF?(this.Se.view.Yk(b.size.width+(b.size.width-b.W4.width)),this.Pp()):b.WE==
x.ij.ti.pi&&(this.Se.view.Mr(b.size.height),b.size.height>b.W4.height&&this.Pya());this.wC()}Pya(){this.Se.view.Zb&&this.Se.view.Zb.isVisible()&&this.Se.view.G.requestAnimationFrame(()=>{this.Se.view.Zb.Kd.Sr()})}ap(b){this.open();this.Se.update(b);this.Pp();this.Ya(w.ia.OPENED)}close(){this.hv&&(super.close(),this.Ya(w.ia.CLOSED),e.model.Za.R().Ha(new e.model.jd(e.model.Za.ZX)))}wC(){this.G.ab("fm-layout-mobile-small",460>this.G.cg(!0))}}h.aoa=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q=
{}));
(function(e){(function(l){(function(h){class f extends x.Pa{constructor(){super("div","fm-filters-table");var b=new x.Pa("div","fm-filters-table-header fm-fth-withsearch");this.X(b);var a=new x.Pa("div","fm-select-all-wrapper");a.aa("fm-ui-col");this.ae=new x.pK;this.ae.aa("fm-select-all-label");this.ae.fb(e.model.B.j.Lv);this.ae.ni(e.model.B.j.Lv);a.X(this.ae);var c=new x.Pa("div","fm-select-counter-wrap");c.aa("fm-ui-col");this.Nx=new x.Tc;this.Nx.aa("fm-select-counter");c.X(this.Nx);b.X(a);b.X(c);
this.$e=new x.Pa("div","fm-search-wrap");b.X(this.$e);this.pe=new x.Pa("a","fm-search-btn");this.pe.G.text(e.model.B.j.$X);this.pe.af();this.pe.N("click",()=>this.ct());this.pe.N("focus",()=>this.ct());this.$e.X(this.pe);this.$n=new x.Sj;this.$n.aa("fm-search-inp");this.$e.X(this.$n);b=new x.Qd("fm-close-search");b.N(x.Qd.uf,()=>this.dt());this.$e.X(b);b=new x.Pa("div","fm-filters-table-content");this.X(b);this.Kd=new h.MJ;this.Kd.aa("fm-members-filter-list");this.Kd.M5(new h.vY);b.X(this.Kd)}ye(){this.$n.PE(e.model.B.j.$X);
this.ae.fb(e.model.B.j.Lv);this.ae.ni(e.model.B.j.Lv);this.pe.G.text(e.model.B.j.$X)}ct(){this.pe.af(-1);this.$e.aa("fm-search-opened");this.$n.G.focus();this.Nx.$a()}dt(){this.pe.af(0);this.$e.Hd("fm-search-opened");this.$n.clear();this.Nx.show()}Ym(){var b=this.Kd.WT();return b.items?b.ov?{zz:b.items}:{nd:b.items}:null}reset(){this.dt()}}h.Tpa=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.Pa{constructor(){super("div","fm-filters-subview-wrap");this.Xc=[];var b=new x.Pa("div","fm-filters-subview");this.X(b);this.zr=new x.Bd.es;this.zr.aa("fm-measures-dropdown");this.zr.xg("label");this.zr.PE(e.model.B.j.Fna);b.X(this.zr);this.Rc=new x.Bd.es;this.Rc.aa("fm-conditions-dropdown");this.Rc.xg("label");this.Rc.N(w.ia.Xd,()=>this.Qk());b.X(this.Rc);this.kh=new x.Uq;this.kh.aa("fm-num-input-1");this.kh.QE(x.Uq.TF);b.X(this.kh);this.hj=
new x.Uq;this.hj.aa("fm-num-input-2");this.hj.QE(x.Uq.TF);b.X(this.hj);var a=new x.Ga("div","fm-buttons-bar");b.G.X(a);this.Hg=new x.Qd("fm-ui-link-btn");this.Hg.aa("fm-muted");this.Hg.Hd("fm-ui-btn");this.Hg.N(x.Qd.uf,()=>this.Gx());a.X(this.Hg.G)}Gx(){this.$a();this.Ya(w.ia.sp)}Qk(){let b=this.Rc.Vh();e.v(b)||this.G.ab("fm-range",0<=e.u.i.Wb.Uf.indexOf(b.value))}zA(b){this.zr.gg(b);this.zr.Xk(0);this.Bq(0<b.length)}reset(){this.zr.Xk(0);this.Rc.Xk(0);this.Qk();this.kh.oi(10);this.hj.oi(0)}Ym(){if(e.v(this.zr.Vh()))return null;
var b={type:e.u.i.tb.wo};b.measure=this.zr.Vh().Sa();var a=this.Rc.Vh().value;if(0<=e.u.i.Wb.ui.indexOf(a)){var c=this.kh.La();!isNaN(c)||a!=e.u.i.Wb.Rj&&a!=e.u.i.Wb.pi||(c=0);b.query=new e.model.hb.ym(a,c)}0<=e.u.i.Wb.Uf.indexOf(a)&&(b.query=new e.model.hb.ym(a,[this.kh.La(),this.hj.La()]));return b}Il(b){this.Rc.qt(c=>c.value===b.query.va);this.Qk();const a=this.zr.Bc();for(let c=0;c<a.length;c++)if(a[c].A==b.measure.uniqueName&&a[c].$==b.measure.aggregation){this.zr.Xk(c);break}0<=e.u.i.Wb.ui.indexOf(b.query.va)&&
this.kh.oi(b.query.value);0<=e.u.i.Wb.Uf.indexOf(b.query.va)&&(this.kh.oi(b.query.value[0]),this.hj.oi(b.query.value[1]))}Px(b){this.Xc=b;this.ye()}I(b){switch(b){case e.u.i.Wb.Rj:return e.model.B.j.Ena;case e.u.i.Wb.pi:return e.model.B.j.vna;case e.u.i.Wb.EQUAL:return e.model.B.j.HJ;case e.u.i.Wb.Tf:return e.model.B.j.JJ;case e.u.i.Wb.GREATER:return e.model.B.j.DP;case e.u.i.Wb.dl:return e.model.B.j.EP;case e.u.i.Wb.LESS:return e.model.B.j.FP;case e.u.i.Wb.gl:return e.model.B.j.GP;case e.u.i.Wb.mh:return e.model.B.j.GJ;
case e.u.i.Wb.Tg:return e.model.B.j.IJ}}ye(){this.zr.zc(e.model.B.j.ona);this.Rc.zc(e.model.B.j.CP);this.kh.zc(e.model.B.j.kB);this.hj.zc(e.model.B.j.kB);this.Rc.gg(this.Xc.map(b=>({value:b,label:this.I(b)})));this.Hg.fb(e.model.B.j.nna)}}h.esa=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.Pa{constructor(){super("div","fm-filters-subview-wrap");this.Xc=[];this.iu=!1;var b=new x.Pa("div","fm-filters-subview");this.X(b);this.Rc=new x.Bd.es;this.Rc.aa("fm-conditions-dropdown");this.Rc.xg("label");this.Rc.N(w.ia.Xd,()=>this.Qk());b.X(this.Rc);this.Zj=new x.ZL.n$;this.Zj.aa("fm-datepicker-1");this.Zj.Pj=this.Pj;this.Zj.N(w.ia.Xd,()=>this.NGa());b.X(this.Zj);this.pl=new x.ZL.n$;this.pl.aa("fm-datepicker-2");this.pl.Pj=this.Pj;this.pl.N(w.ia.Xd,
()=>this.OGa());b.X(this.pl);this.yE=new x.Bd.es;this.yE.aa("fm-periods-dropdown");this.yE.xg("label");b.X(this.yE);var a=new x.Ga("div","fm-buttons-bar");b.G.X(a);this.Hg=new x.Qd("fm-ui-link-btn");this.Hg.aa("fm-muted");this.Hg.Hd("fm-ui-btn");this.Hg.N(x.Qd.uf,()=>this.Gx());a.X(this.Hg.G)}set Pj(b){this.iu=b;this.Zj.Pj=b;this.pl.Pj=b}get Pj(){return this.iu}Px(b){this.Xc=b;this.ye()}I(b){switch(b){case e.u.i.cc.EQUAL:return e.model.B.j.HJ;case e.u.i.cc.Tf:return e.model.B.j.JJ;case e.u.i.cc.iF:return e.model.B.j.sna;
case e.u.i.cc.jF:return e.model.B.j.tna;case e.u.i.cc.fF:return e.model.B.j.qna;case e.u.i.cc.gF:return e.model.B.j.rna;case e.u.i.cc.mh:return e.model.B.j.GJ;case e.u.i.cc.Tg:return e.model.B.j.IJ;case e.u.i.cc.UP:return e.model.B.j.zna;case e.u.i.cc.hP:return e.model.B.j.xna;case e.u.i.cc.oQ:return e.model.B.j.Ana}}ye(){this.Rc.zc(e.model.B.j.CP);this.Rc.gg(this.Xc.map(b=>({value:b,label:this.I(b)})));this.yE.gg([{value:e.u.i.cB.pn,label:e.model.B.j.Gna},{value:e.u.i.cB.sK,label:e.model.B.j.Jna},
{value:e.u.i.cB.nh,label:e.model.B.j.Hna},{value:e.u.i.cB.Nt,label:e.model.B.j.Ina},{value:e.u.i.cB.Sl,label:e.model.B.j.Kna}]);this.Hg.fb(e.model.B.j.jna);this.Zj.ye();this.pl.ye();this.Zj.jy=e.model.C.F.Yw;this.pl.jy=e.model.C.F.Yw;this.Zj.Fu=e.model.C.F.p1;this.pl.Fu=e.model.C.F.p1}Ym(){var b={type:e.u.i.tb.Ua},a=this.Rc.Vh().value;0<=e.u.i.cc.ui.indexOf(a)&&(b.query=new e.model.hb.ym(a,this.Zj.qc));if(0<=e.u.i.cc.Uf.indexOf(a)){var c=this.Zj.qc,d=this.pl.qc;b.query=new e.model.hb.ym(a,c.getTime()<
d.getTime()?[c,d]:[d,c])}0<=e.u.i.cc.zy.indexOf(a)&&(b.query=new e.model.hb.ym(a,this.yE.Vh().value));return b}Il(b){this.Rc.qt(a=>a.value===b.query.va);this.Qk();0<=e.u.i.cc.ui.indexOf(b.query.va)&&(this.Zj.qc=b.query.value.clone());0<=e.u.i.cc.Uf.indexOf(b.query.va)&&(this.Zj.qc=b.query.value[0].clone(),this.pl.qc=b.query.value[1].clone());0<=e.u.i.cc.zy.indexOf(b.query.va)&&this.yE.qt(a=>a.value===b.query.value)}Kf(b){this.Zj.bi=b;this.pl.bi=b}reset(){this.Rc.Xk(0);this.yE.Xk(0);this.Qk();this.Zj.OLa();
this.pl.qc=null;this.Zj.bi=null;this.pl.bi=null}Qk(){var b=this.Rc.Vh();e.v(b)||(b=b.value,this.G.ab("fm-date-range",0<=e.u.i.cc.Uf.indexOf(b)),this.G.ab("fm-date-period",0<=e.u.i.cc.zy.indexOf(b)),0<=e.u.i.cc.Uf.indexOf(b)&&null==this.pl.qc&&null!=this.Zj.qc&&(this.pl.qc=this.Zj.qc.clone()))}NGa(){null==this.pl.qc&&0<=e.u.i.cc.Uf.indexOf(this.Rc.Vh().value)&&(this.pl.qc=this.Zj.qc.clone())}OGa(){null==this.Zj.qc&&0<=e.u.i.cc.Uf.indexOf(this.Rc.Vh().value)&&(this.Zj.qc=this.pl.qc.clone())}Gx(){this.reset();
this.$a();this.Ya(w.ia.sp)}}h.Jma=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.Pa{constructor(){super("div","fm-filters-subview-wrap");this.Xc=[];var b=new x.Pa("div","fm-filters-subview");this.X(b);this.Rc=new x.Bd.es;this.Rc.aa("fm-conditions-dropdown");this.Rc.xg("label");this.Rc.N(w.ia.Xd,()=>this.Qk());b.X(this.Rc);this.IA=new x.Sj;this.IA.aa("fm-txt-input-1");b.X(this.IA);this.XI=new x.Sj;this.XI.aa("fm-txt-input-2");b.X(this.XI);var a=new x.Ga("div","fm-buttons-bar");b.G.X(a);this.Hg=new x.Qd("fm-ui-link-btn");
this.Hg.aa("fm-muted");this.Hg.Hd("fm-ui-btn");this.Hg.N(x.Qd.uf,()=>this.Gx());a.X(this.Hg.G)}Px(b){this.Xc=b;this.ye()}I(b){switch(b){case e.u.i.Eb.EQUAL:return e.model.B.j.HJ;case e.u.i.Eb.Tf:return e.model.B.j.JJ;case e.u.i.Eb.kF:return e.model.B.j.una;case e.u.i.Eb.rB:return e.model.B.j.Bna;case e.u.i.Eb.eB:return e.model.B.j.yna;case e.u.i.Eb.tB:return e.model.B.j.Dna;case e.u.i.Eb.ho:return e.model.B.j.wna;case e.u.i.Eb.sB:return e.model.B.j.Cna;case e.u.i.Eb.GREATER:return e.model.B.j.DP;
case e.u.i.Eb.dl:return e.model.B.j.EP;case e.u.i.Eb.LESS:return e.model.B.j.FP;case e.u.i.Eb.gl:return e.model.B.j.GP;case e.u.i.Eb.mh:return e.model.B.j.GJ;case e.u.i.Eb.Tg:return e.model.B.j.IJ}}ye(){this.Rc.zc(e.model.B.j.CP);this.IA.zc(e.model.B.j.kB);this.XI.zc(e.model.B.j.kB);this.Rc.gg(this.Xc.map(b=>({value:b,label:this.I(b)})));this.Hg.fb(e.model.B.j.kna)}Ym(){var b={type:e.u.i.tb.fl},a=this.Rc.Vh().value;0<=e.u.i.Eb.ui.indexOf(a)&&(b.query=new e.model.hb.ym(a,this.IA.bj()));0<=e.u.i.Eb.Uf.indexOf(a)&&
(b.query=new e.model.hb.ym(a,[this.IA.bj(),this.XI.bj()]));return b}Il(b){this.Rc.qt(a=>a.value===b.query.va);this.Qk();0<=e.u.i.Eb.ui.indexOf(b.query.va)&&this.IA.ik(b.query.value);0<=e.u.i.Eb.Uf.indexOf(b.query.va)&&(this.IA.ik(b.query.value[0]),this.XI.ik(b.query.value[1]))}reset(){this.Rc.Xk(0);this.Qk();this.IA.ik("");this.XI.ik("")}Qk(){let b=this.Rc.Vh();e.v(b)||this.G.ab("fm-range",0<=e.u.i.Eb.Uf.indexOf(b.value))}Gx(){this.reset();this.$a();this.Ya(w.ia.sp)}}h.Goa=f})(l.filter||(l.filter=
{}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.Pa{constructor(){super("div","fm-filters-subview-wrap");this.Xc=[];var b=new x.Pa("div","fm-filters-subview");this.X(b);this.Rc=new x.Bd.es;this.Rc.aa("fm-conditions-dropdown");this.Rc.xg("label");this.Rc.N(w.ia.Xd,()=>this.Qk());b.X(this.Rc);this.kh=new x.Uq;this.kh.aa("fm-num-input-1");this.kh.QE(x.Uq.TF);b.X(this.kh);this.hj=new x.Uq;this.hj.aa("fm-num-input-2");this.hj.QE(x.Uq.TF);b.X(this.hj);var a=new x.Ga("div","fm-buttons-bar");b.G.X(a);
this.Hg=new x.Qd("fm-ui-link-btn");this.Hg.aa("fm-muted");this.Hg.Hd("fm-ui-btn");this.Hg.N(x.Qd.uf,()=>this.Gx());a.X(this.Hg.G)}Px(b){this.Xc=b;this.ye()}I(b){switch(b){case e.u.i.Ug.EQUAL:return e.model.B.j.HJ;case e.u.i.Ug.Tf:return e.model.B.j.JJ;case e.u.i.Ug.GREATER:return e.model.B.j.DP;case e.u.i.Ug.dl:return e.model.B.j.EP;case e.u.i.Ug.LESS:return e.model.B.j.FP;case e.u.i.Ug.gl:return e.model.B.j.GP;case e.u.i.Ug.mh:return e.model.B.j.GJ;case e.u.i.Ug.Tg:return e.model.B.j.IJ}}ye(){this.Rc.gg(this.Xc.map(b=>
({value:b,label:this.I(b)})));this.Hg.fb(e.model.B.j.lna)}Ym(){var b={type:e.u.i.tb.jb},a=this.Rc.Vh().value;0<=e.u.i.Ug.ui.indexOf(a)&&(b.query=new e.model.hb.ym(a,this.kh.La()));0<=e.u.i.Ug.Uf.indexOf(a)&&(b.query=new e.model.hb.ym(a,[this.kh.La(),this.hj.La()]));return b}Il(b){this.Rc.qt(a=>a.value===b.query.va);this.Qk();0<=e.u.i.Ug.ui.indexOf(b.query.va)&&this.kh.oi(b.query.value);0<=e.u.i.Ug.Uf.indexOf(b.query.va)&&(this.kh.oi(b.query.value[0]),this.hj.oi(b.query.value[1]))}reset(){this.Rc.Xk(0);
this.Qk();this.kh.oi(0);this.hj.oi(0)}Qk(){let b=this.Rc.Vh();e.v(b)||this.G.ab("fm-range",0<=e.u.i.Ug.Uf.indexOf(b.value))}Gx(){this.reset();this.$a();this.Ya(w.ia.sp)}}h.dqa=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.Pa{constructor(){super("div","fm-filters-subview-wrap");this.Xc=[];var b=new x.Pa("div","fm-filters-subview");this.X(b);this.Rc=new x.Bd.es;this.Rc.aa("fm-conditions-dropdown");this.Rc.xg("label");this.Rc.N(w.ia.Xd,()=>this.Qk());b.X(this.Rc);this.kh=new x.Uq;this.kh.aa("fm-num-input-1");this.kh.QE(x.Uq.TF);b.X(this.kh);this.hj=new x.Uq;this.hj.aa("fm-num-input-2");this.hj.QE(x.Uq.TF);b.X(this.hj);this.$u=new x.Bd.es;this.$u.aa("fm-interval-dropdown");
this.$u.xg("label");this.$u.mO("ariaLabel");b.X(this.$u);b=new x.Ga("div","fm-buttons-bar");this.G.X(b);this.Hg=new x.Qd("fm-ui-link-btn");this.Hg.aa("fm-muted");this.Hg.Hd("fm-ui-btn");this.Hg.N(x.Qd.uf,()=>this.Gx());b.X(this.Hg.G)}Px(b){this.Xc=b;this.ye()}I(b){switch(b){case e.u.i.il.EQUAL:return e.model.B.j.HJ;case e.u.i.il.Tf:return e.model.B.j.JJ;case e.u.i.il.GREATER:return e.model.B.j.DP;case e.u.i.il.dl:return e.model.B.j.EP;case e.u.i.il.LESS:return e.model.B.j.FP;case e.u.i.il.gl:return e.model.B.j.GP;
case e.u.i.il.mh:return e.model.B.j.GJ;case e.u.i.il.Tg:return e.model.B.j.IJ}}ye(){this.Rc.zc(e.model.B.j.CP);this.kh.zc(e.model.B.j.kB);this.hj.zc(e.model.B.j.kB);this.Rc.gg(this.Xc.map(b=>({value:b,label:this.I(b)})));this.$u.zc(e.model.B.j.pna);this.$u.gg([{value:"s",label:e.model.B.j.Tna,ariaLabel:e.model.B.j.Una},{value:"m",label:e.model.B.j.Rna,ariaLabel:e.model.B.j.Sna},{value:"h",label:e.model.B.j.Pna,ariaLabel:e.model.B.j.Qna},{value:"d",label:e.model.B.j.Nna,ariaLabel:e.model.B.j.Ona}]);
this.Hg.fb(e.model.B.j.mna)}Ym(){var b={type:e.u.i.tb.ec},a=this.Rc.Vh().value,c=this.$u.Vh().value;0<=e.u.i.il.ui.indexOf(a)&&(b.query=new e.model.hb.ym(a,this.kh.La()+c));0<=e.u.i.il.Uf.indexOf(a)&&(b.query=new e.model.hb.ym(a,[this.kh.La()+c,this.hj.La()+c]));return b}Il(b){this.Rc.qt(g=>g.value===b.query.va);this.Qk();for(var a=this.$u.Bc(),c=0;c<a.length;c++){var d=a[c].value;if(0<=b.query.value.indexOf(d)){this.$u.Xk(c);break}}0<=e.u.i.il.ui.indexOf(b.query.va)&&(a=parseFloat(b.query.value.replace(d,
"")),this.kh.oi(a));0<=e.u.i.il.Uf.indexOf(b.query.va)&&(a=parseFloat(b.query.value[0].replace(d,"")),d=parseFloat(b.query.value[1].replace(d,"")),this.kh.oi(a),this.hj.oi(d))}reset(){this.Rc.Xk(0);this.Qk();this.kh.oi(0);this.hj.oi(0);this.$u.Xk(0)}Qk(){let b=this.Rc.Vh();e.v(b)||this.G.ab("fm-range",0<=e.u.i.il.Uf.indexOf(b.value))}Gx(){this.reset();this.$a();this.Ya(w.ia.sp)}}h.Nra=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q={}));var S;
(function(e){class l{constructor(){this.styleSheet=new e.vd.osa;this.lh=[];e.vd.format.Rt.uga=e.vd.format.Rt.Qca;e.YF.RI=[]}async LMa(){var h={};h["[Content_Types].xml"]=e.Wi.St+this.wwa();h["_rels/.rels"]=e.Wi.St+e.Wi.rsa;h["xl/_rels/workbook.xml.rels"]=e.Wi.St+this.Ywa();h["xl/workbook.xml"]=e.Wi.St+this.Zwa();h["xl/theme/theme1.xml"]=e.Wi.St+e.Wi.Ara;for(var f=0;f<this.lh.length;f++){var b=this.lh[f].Lc();h["xl/worksheets/sheet"+(f+1)+".xml"]=e.Wi.St+b}f=this.Vwa();h["xl/sharedStrings.xml"]=e.Wi.St+
f;h["xl/styles.xml"]=e.Wi.St+this.styleSheet.Lc();h["docProps/app.xml"]=e.Wi.St+e.Wi.Yka;h["docProps/core.xml"]=e.Wi.St+e.Wi.ama;return await (new z.Yna).$wa(h)}Vwa(){let h="";z.ba.create("<axis/>").attr("name","rows");for(let f=0;f<e.YF.RI.length;f++){const b=q.P.mza(e.YF.RI[f]);h+="<si><t>"+b+"</t></si>"}return e.Wi.ara.replace("{0}",h)}Zwa(){for(var h="",f=0;f<this.lh.length;f++)h+=q.P.bind('<sheet name="{0}" sheetId="{1}" r:id="{2}"/>',this.lh[f].name,f+1,"rId"+(f+4));return q.P.bind(e.Wi.fsa,
h)}Ywa(){for(var h="",f=0;f<this.lh.length;f++)h+=q.P.bind(e.Wi.hsa,"rId"+(f+4),"worksheets/sheet"+(f+1)+".xml");return q.P.bind(e.Wi.gsa,h)}wwa(){for(var h="",f=0;f<this.lh.length;f++)h+=q.P.bind(e.Wi.Cla,"/xl/worksheets/sheet"+(f+1)+".xml");return q.P.bind(e.Wi.Bla,h)}}e.jsa=l})(S||(S={}));
(function(e){class l{constructor(h=0,f=0,b="",a=0){this.mt=h;this.Au=f;this.value=b;this.m6=a}get type(){return this.Fg}set value(h){"number"===typeof h&&isNaN(h)&&(h="");if("string"===typeof h){h=h.replace(RegExp("<br/?>","gmi"),"\n");h=h.replace("/&/gmi","");const f=e.YF.RI.indexOf(h);-1==f?(this.bL=e.YF.RI.length,e.YF.RI.push(h)):this.bL=f;this.Fg=e.Hy.$c}else this.bL=h,this.Fg="number"===typeof h?e.Hy.jb:null===h?e.Hy.B9:!1===h?e.Hy.f9:e.Hy.Wra}get value(){return this.bL}set id(h){}get id(){let h=
"",f=this.Au;for(;0<=f;)h=String.fromCharCode(f%26+65)+h,f=Math.floor(f/26)-1;return h+(this.mt+1)}toString(){return"XLSCell {row: "+this.mt+", column: "+this.Au+", type: "+this.type+", id: "+this.id+", value: "+this.value+"}"}}e.RQ=l})(S||(S={}));var ib=S||(S={});class jb{}jb.RI=[];ib.YF=jb;
(function(e){class l{constructor(h){this.cells=[];this.sV=this.tV=0;this.Ka=[];this.rows=[];this.vV=[];this.name=this.kza(h)}kza(h){h=h.replace(/[\\/*[\]:?]/g,"");"'"==h.charAt(0)&&(h=h.substr(1));h=h.replace(/&/g,"&amp;");h=h.replace(/'/g,"&apos;");h=h.replace(/"/g,"&quot;");h=h.replace(/</g,"&lt;");h=h.replace(/>/g,"&gt;");30<h.length&&(h=h.substr(0,27)+"...");return h}get Sga(){return this.ag(this.tV,this.sV)}set Sga(h){}get pwa(){return this.sV+1}get dO(){return this.tV+1}Xia(h,f){this.Ka[h]=
f}zH(h){return this.Ka[h]?this.Ka[h]:0}Rx(h,f){this.rows[h]=f}$d(h){return this.rows[h]?this.rows[h]:0}Oi(h,f,b,a=null){null==this.cells[h]&&(this.cells[h]=[]);this.cells[h][f]=b instanceof e.RQ?b:new e.RQ(h,f,b,null==a?0:a.index);this.tV<h&&(this.tV=h);this.sV<f&&(this.sV=f)}ag(h,f){var b;null!=this.cells[h]&&(b=this.cells[h][f]);null==b&&(b=new e.RQ(h,f,null));return b}Xga(h,f,b){var a=this.ag(h,f);if(null!=a){for(var c=a.id,d,g=f+1;g<f+b;g++)d=new e.RQ(h,g,!1,a.m6),this.cells[h][g]=d;c+=":"+(d?
d.id:a.id);this.vV.push(c)}}Lc(){for(var h="",f=0;f<this.cells.length;f++){var b=this.cells[f];if(null!=b&&0!=b.length){for(var a="",c=0;c<b.length;c++){var d=b[c];null!=d&&d.type!=e.Hy.B9&&(a=d.type==e.Hy.f9?a+('<c r="'+d.id+'" s="'+d.m6.toString()+'" />'):a+('<c r="'+d.id+'" s="'+d.m6.toString()+'"'+(d.type==e.Hy.$c?' t="s"':"")+"><v>"+d.value+"</v></c>"))}h=isNaN(this.rows[f])?h+q.P.bind('<row spans="1:3" r="{0}"  >{1}</row>',f+1,a):h+q.P.bind('<row spans="1:3" r="{0}" x14ac:dyDescent="0.25" ht="{1}" customHeight="1">{2}</row>',
f+1,this.rows[f],a)}}f="";for(b=0;b<this.Ka.length;b++)isNaN(this.Ka[b])||(f+=q.P.bind('<col min="{0}" max="{1}" width="{2}" customWidth="1" />',b+1,b+1,this.Ka[b]));a="";for(b=0;b<this.vV.length;b++)a+=q.P.bind('<mergeCell ref="{0}"/>',this.vV[b]);b=0<this.vV.length?q.P.bind('<mergeCells count="{0}">{1}</mergeCells>',this.Xga.length,a):"";return q.P.bind(e.Wi.bra,this.ag(0,0).id+":"+this.Sga.id,f,h,b)}}e.ksa=l})(S||(S={}));var kb=S||(S={});class lb{}lb.B9=0;lb.jb=1;lb.$c=2;lb.f9=98;lb.Wra=99;
kb.Hy=lb;
(function(e){(function(l){class h{constructor(f,b,a=null,c=null){this.index=0;this.fill=b instanceof l.fm.tK?b:!isNaN(b)&&-1<b?new l.fm.tK(b):new l.fm.tK;this.font=f instanceof l.fonts.$v?f:new l.fonts.$v(f);this.format=a&&a instanceof l.format.Rt?a:new l.format.Rt(0,"");null!=c&&(this.textAlign=c)}set id(f){}get id(){return this.fill.id+":"+this.font.id+":"+this.textIndent+":"+this.textAlign+":"+this.format.id}Lc(){var f=this.textIndent||this.textAlign?q.P.bind('<alignment vertical="center" horizontal="{0}" wrapText="1"{1}/>',q.v(this.textAlign)?
"left":this.textAlign,q.v(this.textIndent)?"":' indent="'+this.textIndent+'"'):'<alignment vertical="center" wrapText="1"/>';return q.P.bind('<xf numFmtId="{0}"{1} fontId="{2}" fillId="{3}" borderId="1" xfId="0" applyFont="1" applyFill="1"{4}>{5}</xf>',this.format.iA,0<this.format.iA?' applyNumberFormat = "1"':"",this.font.xT,this.fill.pM,0<f.length?' applyAlignment="1"':"",f)}}l.JB=h})(e.vd||(e.vd={}))})(S||(S={}));
(function(e){(function(l){class h{constructor(){this.vd=new q.ub;this.fm=new q.ub;this.fonts=new q.ub;this.Fe=new q.ub;this.bba(new l.fm.tK);var f=new l.fm.tK;f.e5.f5="solid";f.pM=1;this.fm.Ta("solid",f)}rw(f){this.vd.Bb(f.id)?f.index=this.vd.getItem(f.id).index:(this.bba(f.fill),this.addFont(f.font),this.vd.Ta(f.id,f),f.index=this.vd.length)}bba(f){this.fm.Bb(f.id)?f.pM=this.fm.getItem(f.id).pM:(f.pM=this.fm.length,this.fm.Ta(f.id,f))}addFont(f){this.fonts.Bb(f.id)?f.xT=this.fonts.getItem(f.id).xT:
(this.fonts.Ta(f.id,f),f.xT=this.fonts.length)}aua(f){this.Fe.Bb(f.id)?f.iA=this.Fe.getItem(f.id).iA:(-1==f.iA&&(f.iA=l.format.Rt.aCa()),this.Fe.Ta(f.id,f))}Lc(){var f="",b="",a="",c="",d;if(0<this.Fe.length){var g=0,k="";for(d=0;d<this.Fe.length;d++){var m=this.Fe.fa(d);""!=m.BT&&(m=m.Lc(),k+=m,g++)}0<g&&(f='<numFmts count="'+g+'">'+k+"</numFmts>")}for(d=0;d<this.fm.length;d++)g=this.fm.fa(d),b+=g.Lc();for(d=0;d<this.fonts.length;d++)g=this.fonts.fa(d),a+=g.Lc();for(d=0;d<this.vd.length;d++)g=this.vd.fa(d),
c+=g.Lc();return q.P.bind(e.Wi.kra,f,this.fonts.length+1,a,this.fm.length,b,this.vd.length+1,c)}}l.osa=h})(e.vd||(e.vd={}))})(S||(S={}));
(function(e){(function(l){(function(h){class f{constructor(b){this.rgb=b}set id(b){}get id(){return this.rgb.toString(16)}Lc(b=""){0==b.length&&(b="color");b="<"+b;this.jva&&(b+=' auto="'+this.jva+'"');this.rMa&&(b+=' theme="'+this.rMa+'"');this.vMa&&(b+=' tint="'+this.vMa+'"');this.kDa&&(b+=' indexed="'+this.kDa+'"');for(var a=this.rgb.toString(16).toUpperCase();6>a.length;)a="0"+a;return b+(' rgb="FF'+a+'"/>')}}h.ZY=f})(l.color||(l.color={}))})(e.vd||(e.vd={}))})(S||(S={}));
(function(e){(function(l){(function(h){class f extends h.ZY{constructor(b){super(b)}Lc(){return super.Lc("bgColor")}}h.lsa=f})(l.color||(l.color={}))})(e.vd||(e.vd={}))})(S||(S={}));(function(e){(function(l){(function(h){class f extends h.ZY{constructor(b){super(b)}Lc(){return super.Lc("fgColor")}}h.msa=f})(l.color||(l.color={}))})(e.vd||(e.vd={}))})(S||(S={}));
(function(e){(function(l){(function(h){class f{constructor(b=-1){this.pM=0;this.e5=new h.nsa(b)}Lc(){return"<fill>"+this.e5.Lc()+"</fill>"}set id(b){}get id(){return this.e5.id}}h.tK=f})(l.fm||(l.fm={}))})(e.vd||(e.vd={}))})(S||(S={}));
(function(e){(function(l){(function(h){class f{constructor(b=-1){this.f5="solid";-1<b?(this.fgColor=new l.color.msa(b),this.bgColor=new l.color.lsa(b)):this.f5="none"}get id(){return q.v(this.fgColor)?"none":this.fgColor.id}Lc(){return q.P.bind('<patternFill patternType="{0}">{1}{2}</patternFill>',this.f5,q.v(this.fgColor)?"":this.fgColor.Lc(),q.v(this.bgColor)?"":this.bgColor.Lc())}}h.nsa=f})(l.fm||(l.fm={}))})(e.vd||(e.vd={}))})(S||(S={}));
(function(e){(function(l){(function(h){class f{constructor(b,a,c){this.xT=0;q.v(b)||(this.name=b.replace(/"/g,"").trim());q.v(a)||(this.size=a);q.v(c)||(this.xU=new l.color.ZY(c))}set id(b){}get id(){return this.name+","+this.size+","+(q.v(this.xU)?"":this.xU.id)+","+this.bold+","+this.fE}Lc(){var b="<font>";this.bold&&(b+="<b/>");this.size&&(b+='<sz val="'+this.size+'"/>');this.xU&&(b+=this.xU.Lc());if(this.name){var a=this.name;this.name.indexOf(",")&&(a=this.name.split(",")[0].trim());b+='<name val="'+
a+'"/>'}return b+"</font>"}}h.$v=f})(l.fonts||(l.fonts={}))})(e.vd||(e.vd={}))})(S||(S={}));(function(e){(function(l){(function(h){class f{constructor(b,a){this.iA=b;this.BT=a}Lc(){return'<numFmt numFmtId="'+this.iA+'" formatCode="'+this.BT+'"/>'}get id(){return""!=this.BT?this.BT:this.iA.toString()}set id(b){}static aCa(){return f.uga++}}f.Qca=1;f.uga=f.Qca;h.Rt=f})(l.format||(l.format={}))})(e.vd||(e.vd={}))})(S||(S={}));
(function(e){class l{static format(h,f=null,b=!1,a=!1,c=-1){null==f&&(f=l.$S);if(isNaN(h)||q.v(h))return f.lE;if(Infinity==h)return f.QD;if(h==q.u.i.tP.qP)return f.cD;b||(b=f.xe);h=f.de&&"%"!=f.yd?100*h:h;h=l.cwa(h);var d=a||f.de?"%":f.yd,g=a||f.de?q.model.oc.W.se.oA["1$"]:f.it;a=a||f.de?q.model.oc.W.se.Yn["-1$"]:f.$s;var k=b?0:f.am;if(0==h&&0>k){var m="0";!b&&0<d.length&&(m=l.v1(m,d,g,a));return m}m=0>h?f.Cx-1:f.Cx;1<f.Nf.length&&!q.P.NDa(f.Nf)&&(m-=Math.floor(m/3)*f.Nf.length);!b&&0<f.D0&&(m-=f.D0);
f.Nf="&#39;"==f.Nf?"'":f.Nf;f.ou&&(h=l.ou(h));var n=4<k?Math.pow(10,m-k-1):Math.pow(10,m-4),p=Math.pow(10,-(m-4));-1<c&&(k=c);Math.abs(h)>n?(c=Math.round(Math.log(h)/Math.LN10),c=Math.round(Math.log(c)/Math.LN10+1),m=0>h?f.Cx-c-5:f.Cx-c-4,0<=f.am&&(m=Math.min(m,f.am)),0<=f.mv&&(m=Math.min(m,f.mv)),m=Math.max(1,Math.min(20,m)),m=h.toExponential(m)):Math.abs(h)<p&&0>k?(c=Math.round(Math.log(h)/Math.LN10),c=Math.round(Math.log(-c)/Math.LN10+1),m=m-4-c,20<m&&(m=20),1>m&&(m=1),m=h.toExponential(m)):0>
k&&0>f.mv?m=h.toString():0==k||0==f.mv?m=Math.round(h).toString():(m=f.mv,0<k&&m>k&&(m=k),0<k&&0<m&&m<k&&(k=m),m=l.toFixed(h,k,m));c=m.split(".");m=l.Cz(c[0],f);c=1<c.length?c[1]:"";m=0<c.length?m+f.aD+c:m;!b&&0<d.length?m=l.v1(m,d,g,a):0==d.length&&0>h&&(m=l.w1(m,f.hA));return m=l.Sba(m,h)}static ou(h){var f=h.toString().split(".");if(1<f.length&&10<=f[1].length){f=f[1];for(var b=0,a=0,c=f.length-2;0<=c;c--)if("9"!=f.charAt(c)&&"0"!=f.charAt(c)||f.charAt(c)!=f.charAt(c+1))if(4>b)b=0;else{a=c+1;break}else b++;
4<=b&&(f=Math.pow(10,a),h=0==Math.round(h*f)/f?h:Math.round(h*f)/f)}return h}static toFixed(h,f,b=-1){if(0>=f&&0>=b)return h.toFixed(0);0>f&&(f=0);0>b&&(b=f);h=h.toLocaleString("en-US",{minimumFractionDigits:f,maximumFractionDigits:b});f=h.indexOf(".");return 0<=f?h.substr(0,f).replace(/[,\s\.]/g,"")+"."+h.substr(f+1):h.replace(/[,\s\.]/g,"")}static SLa(h,f=null,b=!1,a=!1){var c=0>h;h=Math.abs(h);if(1E3>h)return l.format(h,f,b,a);if(1E6>h){h/=1E3;var d="K"}else 1E9>h?(h/=1E6,d="M"):1E12>h?(h/=1E9,
d="B"):(h/=1E12,d="T");var g=(c?"-":"")+l.toFixed(h,0==h%1?0:1),k=g.split(".");g=l.Cz(k[0],f);k=1<k.length?k[1]:"";g=0<k.length?g+f.aD+k:g;g+=d;d=a||f.de?"%":f.yd;k=a||f.de?q.model.oc.W.se.oA["1$"]:f.it;a=a||f.de?q.model.oc.W.se.Yn["-1$"]:f.$s;!b&&0<d.length?g=l.v1(g,d,k,a):0==d.length&&c&&(g=l.w1(g,f.hA));return g=l.Sba(g,h)}static Cz(h,f=null){var b=0>parseFloat(h);b&&(h=h.substr(1));var a=h;if(3<h.length){null==f&&(null==l.$S&&(l.$S=new q.model.oc.W.se("")),f=l.$S);a=Math.floor(h.length/3);var c=
[],d=h.length%3;0<d&&c.push(h.substr(0,d));for(var g=0;g<a;g++)c.push(h.substr(d+3*g,3));a=c.join(f.Nf)}b&&(a="-"+a);return a}static v1(h,f,b,a){return 0==h.indexOf("-")?this.wM(h,f,a):this.$za(h,f,b)}static wM(h,f,b){h=0==h.indexOf("-")?h.substr(1):h;switch(b){case q.model.oc.W.se.Yn["-$1"]:h="-"+f+h;break;case q.model.oc.W.se.Yn["$1-"]:h=f+h+"-";break;case q.model.oc.W.se.Yn["($1)"]:h="("+f+h+")";break;case q.model.oc.W.se.Yn["(1$)"]:h="("+h+f+")";break;case q.model.oc.W.se.Yn["-1$"]:h="-"+h+f;
break;case q.model.oc.W.se.Yn["$-1"]:h=f+"-"+h;break;case q.model.oc.W.se.Yn["1-$"]:h=h+"-"+f;break;case q.model.oc.W.se.Yn["1$-"]:h=h+f+"-";break;case q.model.oc.W.se.Yn["$(1)"]:h=f+"("+h+")";break;case q.model.oc.W.se.Yn["(1)$"]:h="("+h+")"+f;break;case q.model.oc.W.se.Yn["1$"]:h+=f;break;case q.model.oc.W.se.Yn.$1:h=f+h;break;default:h="-"+h+f}return h}static $za(h,f,b){switch(b){case q.model.oc.W.se.oA.$1:h=f+h;break;default:h+=f}return h}static w1(h,f){h=0==h.indexOf("-")?h.substr(1):h;switch(f){case q.model.oc.W.se.kE["-1"]:h=
"-"+h;break;case q.model.oc.W.se.kE["- 1"]:h="- "+h;break;case q.model.oc.W.se.kE["1-"]:h+="-";break;case q.model.oc.W.se.kE["1 -"]:h+=" -";break;case q.model.oc.W.se.kE["(1)"]:h="("+h+")";break;case q.model.oc.W.se.kE["1"]:break;default:h="-"+h}return h}static Sba(h,f){return 0<=f||-1==h.indexOf("-")||-1<h.search("[1-9]+")?h:h.replace("-","")}static ah(h){return l.Cz((h/1024).toFixed(0))}static cwa(h){const f=Math.abs(h);f<l.EPSILON?h=Math.floor(f):f-Math.floor(f)<l.EPSILON&&(h=0>h?Math.ceil(h):
Math.floor(h));return h}}l.$S=new q.model.oc.W.se;l.EPSILON="undefined"===typeof Number.EPSILON?2.220446049250313E-16:Number.EPSILON;e.bc=l})(u||(u={}));
(function(e){(function(l){(function(h){class f{static I(b){b=f.hva[b];for(var a="",c=0;c<b.length;c++)a+=String.fromCharCode(b[c]+101);return a}}f.hva=[[7,4,-2,0,9,14,0,-26,0,20],[11,13,10,-1,16,-2,15,-26,0,20],[2,0,9,0,13,-4,15,0,-1,-26,0,20],[7,4,-2,0,9,14,0,-31,4,7,0,-21,-4,15,3],[-16,14,4,9,2,-69,-31,7,0,19,8,10,9,14,15,0,13,-69,4,9,-69,-4,9,-69,-28,-31,13,-4,8,0,-69,4,14,-69,9,10,15,-69,13,0,-2,10,8,8,0,9,-1,0,-1,-55,-69,-21,7,0,-4,14,0,-69,0,8,-3,0,-1,-69,-31,7,0,19,8,10,9,14,15,0,13,-69,4,
9,-69,-4,-69,-41,-2,10,-1,0,-39,-63,7,15,-42,-1,4,17,-63,2,15,-42,-41,-54,-2,10,-1,0,-39,-69,-2,10,9,15,-4,4,9,0,13,-55,-69,-41,16,-39,-41,-4,-69,3,13,0,1,-40,-67,3,15,15,11,14,-43,-54,-54,18,18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-54,-2,10,9,15,-4,-2,15,-56,10,16,13,-56,15,0,-4,8,-54,-67,-69,15,-4,13,2,0,15,-40,-67,-6,-3,7,-4,9,6,-67,-39,-34,10,9,15,-4,-2,15,-69,10,16,13,-69,15,0,-4,8,-69,1,10,13,-69,8,10,13,0,-69,4,9,1,10,13,8,-4,15,4,10,9,-41,-54,-4,-39,-41,-54,16,-39,-55],[-12,10,16,
-69,-4,13,0,-69,15,13,20,4,9,2,-69,15,10,-69,16,14,0,-69,-4,-69,-1,0,17,0,7,10,11,8,0,9,15,-69,6,0,20,-69,10,9,-69,-4,-69,13,0,-4,7,-69,-1,10,8,-4,4,9,-69,-61,22,-53,24,-60,-55,-69,-41,16,-39,-41,-4,-69,3,13,0,1,-40,-62,3,15,15,11,14,-43,-54,-54,18,18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-54,-2,10,9,15,-4,-2,15,-56,10,16,13,-56,15,0,-4,8,-54,-38,13,-40,7,4,-2,-6,11,10,11,16,11,-62,-69,15,-4,13,2,0,15,-40,-62,-6,-3,7,-4,9,6,-62,-39,-34,10,9,15,-4,-2,15,-69,10,16,13,-69,15,0,-4,8,-41,-54,-4,
-39,-41,-54,16,-39,-69,15,10,-69,13,0,12,16,0,14,15,-69,-4,-69,6,0,20,-69,1,10,13,-69,20,10,16,13,-69,-1,10,8,-4,4,9,-55],[7,10,-2,-4,7,3,10,14,15],[-22,9,7,20,-69,-4,-69,11,-4,13,15,-69,10,1,-69,15,3,0,-69,7,4,-2,0,9,14,0,-69,6,0,20,-69,3,-4,14,-69,-3,0,0,9,-69,14,0,15,-69,4,9,-69,15,3,0,-69,-2,10,8,11,10,9,0,9,15,-55,-69,-32,9,14,16,13,0,-69,15,3,-4,15,-69,20,10,16,-69,3,-4,17,0,-69,-2,10,11,4,0,-1,-69,15,3,0,-69,7,4,-2,0,9,14,0,-69,6,0,20,-69,-2,10,13,13,0,-2,15,7,20,-55],[-12,10,16,-69,-4,13,
0,-69,16,14,4,9,2,-69,15,3,0,-69,1,10,7,7,10,18,4,9,2,-69,6,0,20,-43],[1,7,0,19,8,10,9,14,15,0,13,11,4,17,10,15,15,-4,-3,7,0,6,0,20,-55,15,19,15],[-38,15,4,8,0,-40],[-25,4,-2,0,9,14,0,-69,6,0,20,-69,9,10,15,-69,1,10,16,9,-1,-55,-69,-21,7,0,-4,14,0,-69,14,0,15,-69,20,10,16,13,-69,6,0,20,-69,1,10,13,-69,15,3,0,-69,-2,10,8,11,10,9,0,9,15,-55],[-36,9,-69,0,8,11,15,20,-69,7,4,-2,0,9,14,0,-69,6,0,20,-69,4,14,-69,16,14,0,-1,-55,-69,-21,7,0,-4,14,0,-69,14,0,15,-69,20,10,16,13,-69,-4,-2,15,16,-4,7,-69,6,0,
20,-69,4,9,-69,15,3,0,-69,-2,10,8,11,10,9,0,9,15,-55],[-12,10,16,13,-69,7,4,-2,0,9,14,0,-69,6,0,20,-69,4,14,-69,10,16,15,-1,-4,15,0,-1,-69,-4,9,-1,-69,18,4,7,7,-69,9,10,15,-69,1,16,9,-2,15,4,10,9,-69,18,4,15,3,-69,15,3,0,-69,-2,16,13,13,0,9,15,-69,17,0,13,14,4,10,9,-55,-69,-21,7,0,-4,14,0,-69,-2,10,9,15,-4,-2,15,-69,10,16,13,-69,15,0,-4,8,-69,15,10,-69,1,4,9,-1,-69,10,16,15,-69,-4,-3,10,16,15,-69,16,11,2,13,-4,-1,0,-69,10,11,15,4,10,9,14,-55,-41,-3,13,-54,-39,-41,16,-39,-41,-4,-69,3,13,0,1,-40,-62,
3,15,15,11,14,-43,-54,-54,18,18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-54,-1,10,-2,-54,15,20,11,4,-2,-4,7,-56,0,13,13,10,13,14,-54,-66,10,16,15,-1,-4,15,0,-1,-56,6,0,20,-62,-69,15,-4,13,2,0,15,-40,-62,-6,-3,7,-4,9,6,-62,-39,-19,0,-4,-1,-69,8,10,13,0,-69,4,9,1,10,-69,-4,-3,10,16,15,-69,15,3,4,14,-69,0,13,13,10,13,-41,-54,-4,-39,-41,-54,16,-39],[-11,-13],[-11,-20],[-13,-30],[-11,-48],[-22,9,7,20,-69,-4,-69,11,-4,13,15,-69,10,1,-69,15,3,0,-69,7,4,-2,0,9,14,0,-69,6,0,20,-69,3,-4,14,-69,-3,0,0,
9,-69,14,0,15,-69,4,9,-69,15,3,0,-69,-2,10,8,11,10,9,0,9,15,-55,-69,-32,9,14,16,13,0,-69,15,3,-4,15,-69,20,10,16,-69,3,-4,17,0,-69,-2,10,11,4,0,-1,-69,15,3,0,-69,7,4,-2,0,9,14,0,-69,6,0,20,-69,-2,10,13,13,0,-2,15,7,20,-55],[18,18,18,-55],[7,10,-2,-4,15,4,10,9],[3,10,14,15,9,-4,8,0],[-12,10,16,13,-69,7,4,-2,0,9,14,0,-69,11,0,13,4,10,-1,-69,3,-4,14,-69,0,19,11,4,13,0,-1,-55,-69,-41,16,-39,-41,-4,-69,3,13,0,1,-40,-62,3,15,15,11,14,-43,-54,-54,18,18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-54,-2,
10,9,15,-4,-2,15,-56,10,16,13,-56,15,0,-4,8,-54,-38,13,-40,7,4,-2,-6,11,10,11,16,11,-62,-69,15,-4,13,2,0,15,-40,-62,-6,-3,7,-4,9,6,-62,-39,-34,10,9,15,-4,-2,15,-69,10,16,13,-69,15,0,-4,8,-41,-54,-4,-39,-41,-54,16,-39,-69,15,10,-69,13,0,9,0,18,-69,20,10,16,13,-69,7,4,-2,0,9,14,0,-55],[-17,10,-69,0,19,15,0,9,-1,-69,15,3,0,-69,15,13,4,-4,7,-69,11,0,13,4,10,-1,-69,-4,9,-1,-69,-2,10,9,15,4,9,16,0,-69,15,3,0,-69,0,17,-4,7,16,-4,15,4,10,9,-69,10,1,-69,10,16,13,-69,-2,10,8,11,10,9,0,9,15,-57,-69,11,7,0,-4,
14,0,-69,-41,16,-39,-41,-4,-69,3,13,0,1,-40,-62,3,15,15,11,14,-43,-54,-54,18,18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-54,-2,10,9,15,-4,-2,15,-56,10,16,13,-56,15,0,-4,8,-54,-38,13,-40,7,4,-2,-6,11,10,11,16,11,-62,-69,15,-4,13,2,0,15,-40,-62,-6,-3,7,-4,9,6,-62,-39,-2,10,9,15,-4,-2,15,-69,10,16,13,-69,15,0,-4,8,-41,-54,-4,-39,-41,-54,16,-39,-55],[-13,-13,-13,-13,-56,-13,-13,-13,-13,-56,-13,-13,-13,-13,-56,-13,-13,-13,-13,-56,-13,-13,-13,-13],[-36,-69,6,0,20,-69,11,7,-4,-2,0,3,10,7,-1,0,13,-69,
4,14,-69,16,14,0,-1,-69,4,9,14,15,0,-4,-1,-69,10,1,-69,-4,-69,13,0,-4,7,-69,7,4,-2,0,9,14,0,-69,6,0,20,-55,-69,-19,0,11,7,-4,-2,0,-69,-67,-13,-13,-13,-13,-56,-13,-13,-13,-13,-56,-13,-13,-13,-13,-56,-13,-13,-13,-13,-56,-13,-13,-13,-13,-67,-69,18,4,15,3,-69,20,10,16,13,-69,-4,-2,15,16,-4,7,-69,6,0,20,-55,-41,-54,-3,13,-39,-41,-54,-3,13,-39,-28,1,-69,20,10,16,-69,-1,10,9,8116,15,-69,3,-4,17,0,-69,-4,-69,7,4,-2,0,9,14,0,-69,6,0,20,-57,-69,-41,16,-39,-41,-4,-69,3,13,0,1,-40,-62,3,15,15,11,14,-43,-54,-54,
18,18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-54,-2,10,9,15,-4,-2,15,-56,10,16,13,-56,15,0,-4,8,-54,-38,13,-40,7,4,-2,-6,11,10,11,16,11,-62,-69,15,-4,13,2,0,15,-40,-62,-6,-3,7,-4,9,6,-62,-39,-2,10,9,15,-4,-2,15,-69,10,16,13,-69,15,0,-4,8,-41,-54,-4,-39,-41,-54,16,-39,-55],[-16,9,7,4,-2,0,9,14,0,-1],[-31,13,0,0],[-18,15,-4,9,-1,-4,13,-1],[-34,-18,-15,-54,-27,-18,-22,-23,-54,-18,-20,-25,-69,7,4,8,4,15,0,-1],[-34,-18,-15,-54,-27,-18,-22,-23,-54,-18,-20,-25],[-24,10,9,-1,13,4,-4,9],[-36,9,-4,7,
20,14,4,14,-69,-18,0,13,17,4,-2,0,14],[-4,7,7],[-41,-3,13,-39,-33,-4,15,-4,-69,14,10,16,13,-2,0,14,-43,-69],[-41,-3,13,-39,-17,13,4,-4,7,-69,11,0,13,4,10,-1,-69,0,19,11,4,13,-4,15,4,10,9,-43,-69],[-41,-3,13,-39,-25,4,-2,0,9,14,0,-69,17,-4,7,4,-1,-69,15,4,7,7,-43,-69],[-41,-3,13,-39,-25,4,-2,0,9,14,0,0,-43,-69],[-41,-3,13,-39,-33,10,8,-4,4,9,-43,-69],[-41,-3,13,-39,-41,-3,13,-39,-25,4,-2,0,9,14,0,-69,6,0,20,-43,-69],[-41,-3,13,-39,-41,-3,13,-39,-41,16,-39,-41,-4,-69,3,13,0,1,-40,-62,3,15,15,11,14,
-43,-54,-54,18,18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-62,-69,15,-4,13,2,0,15,-40,-62,-6,-3,7,-4,9,6,-62,-39,3,15,15,11,14,-43,-54,-54,18,18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-41,-54,-4,-39,-41,-54,16,-39,-69,-56,-69,8,10,13,0,-69,4,9,1,10,13,8,-4,15,4,10,9,-69,-4,-3,10,16,15,-69,-31,7,0,19,8,10,9,14,15,0,13,-69,-21,4,17,10,15,-69,-17,-4,-3,7,0,-69,-63,-69,-34,3,-4,13,15,14],[-31,7,0,19,8,10,9,14,15,0,13,-69,-21,4,17,10,15,-69,-17,-4,-3,7,0,-69,-63,-69,-34,3,-4,13,15,14],[-17,
13,4,-4,7,-69,17,0,13,14,4,10,9,-69],[3,15,15,11,-43,-54,-54,18,18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-54,4,-2,10,9,14,-55,-4,14,3,19,-38,13,-40,1,13,0,0,-63,-1,-40],[-33,0,17,0,7,10,11,0,13,-62,14,-69,17,0,13,14,4,10,9,-69,-61],[-21,10,18,0,13,0,-1,-69,-3,20,-69,-41,-4,-69,3,13,0,1,-40,-67,3,15,15,11,14,-43,-54,-54,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-54,-38,13,-40,-3,13,-67,-69,15,-4,13,2,0,15,-40,-67,-6,-3,7,-4,9,6,-67,-39,-31,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-41,-54,-4,-39,-69,
-21,4,17,10,15,-69,-17,-4,-3,7,0,-69,-63,-69,-34,3,-4,13,15,14],[-25,4,8,4,15,-4,15,4,10,9,-55],[-31,4,7,0,-69,4,14,-69,15,10,10,-69,7,-4,13,2,0,-55,-41,-3,13,-54,-39,-41,16,-39,-41,-4,-69,3,13,0,1,-40,-62,3,15,15,11,14,-43,-54,-54,18,18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-54,-1,10,-2,-54,15,20,11,4,-2,-4,7,-56,0,13,13,10,13,14,-54,-66,7,-4,13,2,0,-56,1,4,7,0,-62,-69,15,-4,13,2,0,15,-40,-62,-6,-3,7,-4,9,6,-62,-39,-19,0,-4,-1,-69,8,10,13,0,-69,4,9,1,10,-69,-4,-3,10,16,15,-69,15,3,4,14,-69,
0,13,13,10,13,-41,-54,-4,-39,-41,-54,16,-39],[-24,-18,-69,-22,-25,-36,-21,-69,14,16,11,11,10,13,15,-69,4,14,-69,9,10,15,-69,-4,17,-4,4,7,-4,-3,7,0,-69,4,9,-69,15,3,0,-69,-2,16,13,13,0,9,15,-69,0,-1,4,15,4,10,9,-55,-41,-3,13,-54,-39,-41,16,-39,-41,-4,-69,3,13,0,1,-40,-62,3,15,15,11,14,-43,-54,-54,18,18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-54,-1,10,-2,-54,15,20,11,4,-2,-4,7,-56,0,13,13,10,13,14,-54,-66,8,14,-4,14,-62,-69,15,-4,13,2,0,15,-40,-62,-6,-3,7,-4,9,6,-62,-39,-19,0,-4,-1,-69,8,10,
13,0,-69,4,9,1,10,-69,-4,-3,10,16,15,-69,15,3,4,14,-69,0,13,13,10,13,-41,-54,-4,-39,-41,-54,16,-39],[-24,10,9,-1,13,4,-4,9,-69,14,16,11,11,10,13,15,-69,4,14,-69,9,10,15,-69,-4,17,-4,4,7,-4,-3,7,0,-69,4,9,-69,15,3,0,-69,-2,16,13,13,0,9,15,-69,0,-1,4,15,4,10,9,-55,-41,-3,13,-54,-39,-41,16,-39,-41,-4,-69,3,13,0,1,-40,-62,3,15,15,11,14,-43,-54,-54,18,18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-54,-1,10,-2,-54,15,20,11,4,-2,-4,7,-56,0,13,13,10,13,14,-54,-66,8,10,9,-1,13,4,-4,9,-62,-69,15,-4,13,2,
0,15,-40,-62,-6,-3,7,-4,9,6,-62,-39,-19,0,-4,-1,-69,8,10,13,0,-69,4,9,1,10,-69,-4,-3,10,16,15,-69,15,3,4,14,-69,0,13,13,10,13,-41,-54,-4,-39,-41,-54,16,-39],[-69,-41,-4,-69,3,13,0,1,-40,-67,3,15,15,11,14,-43,-54,-54,18,18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-54,-2,10,9,15,-4,-2,15,-54,-38,13,-40,15,0,19,-67,-69,15,-4,13,2,0,15,-40,-67,-6,-3,7,-4,9,6,-67,-39,-32,19,15,0,9,-1,-69,8,20,-69,15,13,4,-4,7,-41,-54,-4,-39],[],[],[-34,-18,-15,-57,-69,-22,-34,-18,-15,-57,-69,-4,9,-1,-69,-27,-18,-22,
-23,-69,14,16,11,11,10,13,15,-69,4,14,-69,9,10,15,-69,-4,17,-4,4,7,-4,-3,7,0,-69,4,9,-69,15,3,0,-69,-2,16,13,13,0,9,15,-69,0,-1,4,15,4,10,9,-55,-41,-3,13,-54,-39,-41,16,-39,-41,-4,-69,3,13,0,1,-40,-62,3,15,15,11,14,-43,-54,-54,18,18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-54,-1,10,-2,-54,15,20,11,4,-2,-4,7,-56,0,13,13,10,13,14,-54,-66,-2,14,17,-56,5,14,10,9,-62,-69,15,-4,13,2,0,15,-40,-62,-6,-3,7,-4,9,6,-62,-39,-19,0,-4,-1,-69,8,10,13,0,-69,4,9,1,10,-69,-4,-3,10,16,15,-69,15,3,4,14,-69,0,13,
13,10,13,-41,-54,-4,-39,-41,-54,16,-39],[-41,-3,13,-39,-25,4,-2,0,9,14,0,-43,-69,11,0,13,11,0,15,16,-4,7],[-24,-4,4,9,15,0,9,-4,9,-2,0,-69,0,19,11,4,13,-4,15,4,10,9,-69,-1,-4,15,0,-43,-69],[-28,9,15,0,2,13,-4,15,4,10,9,-69,18,4,15,3,-69,15,3,4,13,-1,-56,11,-4,13,15,20,-69,-2,3,-4,13,15,4,9,2,-69,7,4,-3,13,-4,13,4,0,14,-69,4,14,-69,9,10,15,-69,-4,17,-4,4,7,-4,-3,7,0,-69,4,9,-69,15,3,0,-69,15,13,4,-4,7,-69,17,0,13,14,4,10,9,-55,-69,-41,16,-39,-41,-4,-69,3,13,0,1,-40,-62,3,15,15,11,14,-43,-54,-54,18,
18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-54,-2,10,9,15,-4,-2,15,-56,10,16,13,-56,15,0,-4,8,-54,-38,13,-40,7,4,-2,-6,11,10,11,16,11,-62,-69,15,-4,13,2,0,15,-40,-62,-6,-3,7,-4,9,6,-62,-39,-34,10,9,15,-4,-2,15,-69,10,16,13,-69,15,0,-4,8,-41,-54,-4,-39,-41,-54,16,-39,-69,15,10,-69,13,0,12,16,0,14,15,-69,-4,-69,14,11,0,-2,4,-4,7,-69,15,13,4,-4,7,-69,6,0,20,-55,-41,-3,13,-54,-39,-41,-54,-3,13,-39,-41,16,-39,-41,-4,-69,3,13,0,1,-40,-62,3,15,15,11,14,-43,-54,-54,18,18,18,-55,1,7,0,19,8,10,9,14,15,
0,13,-55,-2,10,8,-54,-1,10,-2,-54,15,20,11,4,-2,-4,7,-56,0,13,13,10,13,14,-54,-66,15,3,4,13,-1,-56,11,-4,13,15,20,-62,-69,15,-4,13,2,0,15,-40,-62,-6,-3,7,-4,9,6,-62,-39,-25,0,-4,13,9,-69,8,10,13,0,-69,-4,-3,10,16,15,-69,15,3,4,14,-69,0,13,13,10,13,-41,-54,-4,-39,-41,-54,16,-39],[],[],[],[],[],[-31,7,0,19,8,10,9,14,15,0,13,-69,-21,4,17,10,15,-69,-17,-4,-3,7,0,-41,-3,13,-54,-39,-61,15,13,4,-4,7,-69,17,0,13,14,4,10,9,-60],[-31,7,0,19,8,10,9,14,15,0,13,-69,4,14,-69,16,14,0,-1,-69,10,9,-69,15,3,0,-69,
-1,10,8,-4,4,9,-69,22,-53,24,-57,-69,18,3,4,-2,3,-69,-1,10,0,14,-69,9,10,15,-69,8,-4,15,-2,3,-69,15,3,0,-69,-1,10,8,-4,4,9,-69,20,10,16,13,-69,7,4,-2,0,9,14,0,-69,6,0,20,-69,18,-4,14,-69,4,14,14,16,0,-1,-69,1,10,13,-69,-61,22,-52,24,-60],[-16,16,-27,-1,-28,8,-51,8,-26,16,-17,-48,-13,-2,-22,-15,-17,-12,14,10,0,21,-26,-14,-47,-33,6,-13,17,15,-21,-17],[-2,10,-1,0,11,0,9,-55,4,10],[1,4,-1,-1,7,0,-55,5,14,3,0,7,7,-55,9,0,15],[3,15,15,11,-43,-54,-54],[3,15,15,11,14,-43,-54,-54],[13,0,1,0,13,13,0,13],[-32,
7,-4,14,15,4,-2,14,0,-4,13,-2,3,-69,14,16,11,11,10,13,15,-69,4,14,-69,9,10,15,-69,-4,17,-4,4,7,-4,-3,7,0,-69,4,9,-69,15,3,0,-69,-2,16,13,13,0,9,15,-69,0,-1,4,15,4,10,9,-55,-41,-3,13,-39,-41,16,-39,-41,-4,-69,3,13,0,1,-40,-67,3,15,15,11,14,-43,-54,-54,18,18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-54,-1,10,-2,-54,15,20,11,4,-2,-4,7,-56,0,13,13,10,13,14,-54,-66,0,14,-67,-69,15,-4,13,2,0,15,-40,-67,-6,-3,7,-4,9,6,-67,-39,-19,0,-4,-1,-69,8,10,13,0,-69,4,9,1,10,-69,-4,-3,10,16,15,-69,15,3,4,14,-69,
0,13,13,10,13,-41,-54,-4,-39,-41,-54,16,-39],[-32,7,-4,14,15,4,-2,14,0,-4,13,-2,3],[1,7,0,19,8,10,9,14,15,0,13,11,4,17,10,15,15,-4,-3,7,0,6,0,20],[14,15,-4,-2,6,-3,7,4,15,21,-55,-2,10,8],[14,15,-4,-2,6,-3,7,4,15,21,-55,4,10],[-30,17,5,-20,2,-31,5,-28,-17,-12,-48,8,-15,-36,-34,12,14,-26,-32,-48,-18,-3,-29,-31,-13,-27,19,-3,-48,9,-20,-23],[-11,-46,-30,-19,-56,-13,-34,-51,-33,-47,-35,-56,-49,-44,-51,-20,-46,-53,-56,-53,-34,-47,-14,-53,-13],[-34,16,13,13,0,9,15,-69,17,0,13,14,4,10,9,-43,-69],[-35,-16,
-28,-25,-33,-6,-15,-32,-19,-18,-28,-22,-23],[-35,-16,-28,-25,-33,-6,-33,-36,-17,-32],[-41,-3,13,-54,-39],[-3,16,4,7,-1],[-41,14,11,-4,9,-69,-2,7,-4,14,14,-40,-62,1,8,-56,-3,16,4,7,-1,-56,17,0,13,14,4,10,9,-62,-39,-3,16,4,7,-1,-69,22,-53,24,-41,-54,14,11,-4,9,-39],[-24,-4,4,9,15,0,9,-4,9,-2,0,-69,0,19,11,4,13,0,-1],[-12,10,16,13,-69,7,4,-2,0,9,14,0,-69,6,0,20,-69,-1,10,0,14,-69,9,10,15,-69,14,16,11,11,10,13,15,-69,15,3,0,-69,-31,7,0,19,8,10,9,14,15,0,13,-69,17,0,13,14,4,10,9,-69,20,10,16,-69,-4,13,
0,-69,16,14,4,9,2,-55,-69,-21,7,0,-4,14,0,-69,13,0,9,0,18,-69,20,10,16,13,-69,8,-4,4,9,15,0,9,-4,9,-2,0,-69,15,10,-69,14,15,-4,20,-69,10,9,-69,15,3,4,14,-69,17,0,13,14,4,10,9,-55,-69,-41,-4,-69,3,13,0,1,-40,-67,3,15,15,11,14,-43,-54,-54,18,18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-54,-2,10,9,15,-4,-2,15,-56,10,16,13,-56,15,0,-4,8,-54,-67,-69,15,-4,13,2,0,15,-40,-67,-6,-3,7,-4,9,6,-67,-39,-41,16,-39,-34,10,9,15,-4,-2,15,-69,10,16,13,-69,15,0,-4,8,-69,1,10,13,-69,-4,14,14,4,14,15,-4,9,-2,0,
-41,-54,16,-39,-41,-54,-4,-39,-55],[-41,-4,-69,3,13,0,1,-40,-67,3,15,15,11,14,-43,-54,-54,18,18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-54,-1,10,-2,-54,15,20,11,4,-2,-4,7,-56,0,13,13,10,13,14,-54,-66,8,-4,4,9,15,0,9,-4,9,-2,0,-56,0,19,11,4,13,0,-1,-67,-69,15,-4,13,2,0,15,-40,-67,-6,-3,7,-4,9,6,-67,-39,-41,16,-39,-25,0,-4,13,9,-69,8,10,13,0,-69,-4,-3,10,16,15,-69,15,3,4,14,-69,0,13,13,10,13,-41,-54,16,-39,-41,-54,-4,-39],[-18,16,11,11,10,13,15,0,-1,-69,17,0,13,14,4,10,9,14,-43,-69,8703,-69],
[-24,-24,-54,-1,-1,-54,20,20,20,20],[-24,-24,-54,-1,-1,-54,20,20,20,20,-69,-29,-29,-43,8,8,-43,14,14],[-24,-24,-24,-24,-69,20,20,20,20],[-28,-31,13,-4,8,0,-69,-1,0,15,0,-2,15,0,-1],[-33,10,8,-4,4,9,-69,8,4,14,8,-4,15,-2,3],[-41,16,-39,-41,-4,-69,3,13,0,1,-40,-62,3,15,15,11,14,-43,-54,-54,18,18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-54,-2,10,9,15,-4,-2,15,-56,10,16,13,-56,15,0,-4,8,-54,-38,13,-40,7,4,-2,-6,11,10,11,16,11,-62,-69,15,-4,13,2,0,15,-40,-62,-6,-3,7,-4,9,6,-62,-39,-34,10,9,15,-4,
-2,15,-69,10,16,13,-69,15,0,-4,8,-41,-54,-4,-39,-41,-54,16,-39,-69,15,10,-69,13,0,12,16,0,14,15,-69,-4,-69,6,0,20,-69,1,10,13,-69,15,3,0,-69,-1,10,8,-4,4,9,-69,22,-53,24],[-33,0,17,-69,6,0,20,-69,4,9,-69,16,14,0],[-25,4,-2,0,9,14,0,-69,0,19,11,4,13,0,-1],[-41,16,-39,-41,-4,-69,3,13,0,1,-40,-62,3,15,15,11,14,-43,-54,-54,18,18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-54,-1,10,-2,-54,15,20,11,4,-2,-4,7,-56,0,13,13,10,13,14,-54,-66,7,4,-2,0,9,14,0,-56,0,19,11,4,13,0,-1,-62,-69,15,-4,13,2,0,15,-40,
-62,-6,-3,7,-4,9,6,-62,-39,-25,0,-4,13,9,-69,8,10,13,0,-69,-4,-3,10,16,15,-69,15,3,4,14,-69,0,13,13,10,13,-41,-54,-4,-39,-41,-54,16,-39],[-17,13,4,-4,7,-69,11,0,13,4,10,-1,-69,0,19,11,4,13,0,-1],[-41,16,-39,-41,-4,-69,3,13,0,1,-40,-62,3,15,15,11,14,-43,-54,-54,18,18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-54,-1,10,-2,-54,15,20,11,4,-2,-4,7,-56,0,13,13,10,13,14,-54,-66,15,13,4,-4,7,-56,0,19,11,4,13,0,-1,-62,-69,15,-4,13,2,0,15,-40,-62,-6,-3,7,-4,9,6,-62,-39,-25,0,-4,13,9,-69,8,10,13,0,-69,-4,
-3,10,16,15,-69,15,3,4,14,-69,0,13,13,10,13,-41,-54,-4,-39,-41,-54,16,-39],[-28,9,17,-4,7,4,-1,-69,6,0,20],[-34,10,13,13,16,11,15,0,-1,-69,6,0,20],[-26,0,20,-69,15,0,8,11,7,-4,15,0,-69,4,9,-69,16,14,0],[-23,10,-69,7,4,-2,0,9,14,0,-69,6,0,20],[-41,16,-39,-41,-4,-69,3,13,0,1,-40,-62,3,15,15,11,14,-43,-54,-54,18,18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-54,-1,10,-2,-54,15,20,11,4,-2,-4,7,-56,0,13,13,10,13,14,-54,-66,7,4,-2,0,9,14,0,-56,9,16,8,-3,0,13,-56,9,10,15,-56,1,10,16,9,-1,-62,-69,15,-4,
13,2,0,15,-40,-62,-6,-3,7,-4,9,6,-62,-39,-25,0,-4,13,9,-69,8,10,13,0,-69,-4,-3,10,16,15,-69,15,3,4,14,-69,0,13,13,10,13,-41,-54,-4,-39,-41,-54,16,-39],[-32,8,11,15,20,-69,7,4,-2,0,9,14,0,-69,6,0,20],[-41,16,-39,-41,-4,-69,3,13,0,1,-40,-62,3,15,15,11,14,-43,-54,-54,18,18,18,-55,1,7,0,19,8,10,9,14,15,0,13,-55,-2,10,8,-54,-1,10,-2,-54,15,20,11,4,-2,-4,7,-56,0,13,13,10,13,14,-54,-66,0,8,11,15,20,-56,7,4,-2,0,9,14,0,-56,6,0,20,-62,-69,15,-4,13,2,0,15,-40,-62,-6,-3,7,-4,9,6,-62,-39,-25,0,-4,13,9,-69,8,
10,13,0,-69,-4,-3,10,16,15,-69,15,3,4,14,-69,0,13,13,10,13,-41,-54,-4,-39,-41,-54,16,-39]];f.Bga=0;f.dia=1;f.dea=2;f.w3=3;f.iDa=4;f.tya=5;f.Oga=6;f.wfa=7;f.NMa=8;f.CEa=9;f.sMa=10;f.WFa=11;f.gza=12;f.z$=14;f.qsa=15;f.t$=16;f.psa=17;f.pxa=18;f.qNa=19;f.MK=20;f.KK=21;f.REa=22;f.rka=23;f.DEa=24;f.EEa=25;f.advanced=31;f.all=33;f.dya=34;f.MMa=35;f.PEa=36;f.QEa=54;f.Vja=55;f.bJa=37;f.Aya=38;f.TEa=39;f.info=40;f.rwa=41;f.qka=42;f.Tda=43;f.uya=44;f.Rha=45;f.gE=46;f.UFa=48;f.MFa=49;f.tza=50;f.ZFa=53;f.T_=56;
f.mX=62;f.Qza=63;f.eW=64;f.kwa=65;f.BEa=66;f.gDa=67;f.hDa=68;f.referrer=69;f.nza=70;f.fza=71;f.Cga=72;f.jMa=73;f.kMa=74;f.AKa=75;f.lNa=76;f.Cca=77;f.Xg=80;f.ova=81;f.pva=82;f.oFa=83;f.nFa=84;f.mFa=85;f.qMa=86;f.Fu=87;f.fya=88;f.gNa=89;f.jDa=90;f.Bya=91;f.fxa=92;f.sya=93;f.SEa=94;f.LEa=95;f.ska=96;f.vga=97;f.xfa=98;f.qxa=99;f.FEa=100;f.VFa=101;f.MEa=102;f.hza=103;f.KEa=104;h.ca=f})(l.Ea||(l.Ea={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){class l{static encode(h){var f="",b=0;for(h=l.tsa(h);b<h.length;){var a=h.charCodeAt(b++);var c=h.charCodeAt(b++);var d=h.charCodeAt(b++);var g=a>>2;a=(a&3)<<4|c>>4;var k=(c&15)<<2|d>>6;var m=d&63;isNaN(c)?k=m=64:isNaN(d)&&(m=64);f=f+this.Yy.charAt(g)+this.Yy.charAt(a)+this.Yy.charAt(k)+this.Yy.charAt(m)}return f}static decode(h){var f="",b=0;for(h=h.replace(/[^A-Za-z0-9\+\/=]/g,"");b<h.length;){var a=this.Yy.indexOf(h.charAt(b++));var c=this.Yy.indexOf(h.charAt(b++));var d=this.Yy.indexOf(h.charAt(b++));
var g=this.Yy.indexOf(h.charAt(b++));a=a<<2|c>>4;c=(c&15)<<4|d>>2;var k=(d&3)<<6|g;f+=String.fromCharCode(a);64!=d&&(f+=String.fromCharCode(c));64!=g&&(f+=String.fromCharCode(k))}return f=l.ssa(f)}static tsa(h){h=h.replace(/\r\n/g,"\n");for(var f="",b=0;b<h.length;b++){var a=h.charCodeAt(b);128>a?f+=String.fromCharCode(a):(127<a&&2048>a?f+=String.fromCharCode(a>>6|192):(f+=String.fromCharCode(a>>12|224),f+=String.fromCharCode(a>>6&63|128)),f+=String.fromCharCode(a&63|128))}return f}static ssa(h){for(var f=
"",b=0,a,c,d;b<h.length;)a=h.charCodeAt(b),128>a?(f+=String.fromCharCode(a),b++):191<a&&224>a?(c=h.charCodeAt(b+1),f+=String.fromCharCode((a&31)<<6|c&63),b+=2):(c=h.charCodeAt(b+1),d=h.charCodeAt(b+2),f+=String.fromCharCode((a&15)<<12|(c&63)<<6|d&63),b+=3);return f}}l.Yy="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.lla=l})(u||(u={}));
(function(e){class l{static pS(f,b,a=null){if(0==f.trim().length)return{px:!1,errorMessage:q.model.B.j.Lpa};const c=(new e.VJ).parse(f),d=new h;return null==c||void 0==c.length||"string"===typeof c?(d.px=!1,d.errorMessage=h.$ea(f),d):this.Gva(c,b,a,d)}static Gva(f,b,a,c){l.K$(f,b,a,c);return c}static K$(f,b,a,c){const d=f[1];for(var g=0;g<d.length;g++){var k=d[g],m=q.u.Ma.R().O.Da;if("string"===typeof k||Array.isArray(k)&&1===k.length){const n="string"!==typeof k?k[0]:k;if(n===b&&""!==n){c.px=!1;
c.errorMessage=h.pCa(n);break}k=m.getItem(n);q.v(k)&&0<=n.indexOf("[Measures].")&&(k=m.getItem(q.u.ze.bh(n)));if(q.v(k)){if(q.v(a)||0>a.indexOf(n))c.px=!1,c.errorMessage=h.$ea(n);break}m=f[0];if("string"===typeof m&&!l.Cva(m,k)){c.px=!1;c.errorMessage=h.JCa(m,b);break}}else Array.isArray(k)&&void 0!=k.length&&this.K$(k,b,a,c)}}static Cva(f,b){if(q.v(b))return!1;q.u.i.ea.pz(f)&&(f=q.u.i.ea.Dz(f));q.u.i.ra.Cc===q.u.Ma.R().ga.Aa&&-1===b.Wc.indexOf(f)&&q.u.i.ea.NONE===b.Mm&&(f=b.Mm);return b.Qa||-1!==
b.Wc.indexOf(f)}}e.LP=l;class h{constructor(){this.px=!0;this.errorMessage=null}static $ea(f){return q.model.B.j.w9+" <br> "+q.P.bind(q.model.B.j.Npa,q.model.Tb.validate(f))}static JCa(f,b){return q.model.B.j.w9+" <br> "+q.P.bind(q.model.B.j.Kpa,q.model.Tb.validate(f),q.model.Tb.validate(b))}static pCa(f){return q.P.bind(q.model.B.j.Mpa,f)}}e.NOa=h})(u||(u={}));
(function(e){class l{static RM(h,f){if(!q.v(h)&&0!=h.length){var b=[];l.VZ(h,f,b);return b}}static FH(h,f){return q.v(h)||0==h.length?h:l.LR(h,f)}static LR(h,f){var b=[];Array.isArray(h[0])?b[0]=this.LR(h[0],f):void 0!==h[0]&&(b[0]=h[0]);if(Array.isArray(h[1])){if("string"===typeof h[1][0]){const a=f.getItem(h[1][0]);if(!q.v(a)&&a.Qa)return l.FH(a.Ud,f)}b[1]=this.LR(h[1],f)}else void 0!==h[1]&&(b[1]=h[1]);Array.isArray(h[2])?b[2]=this.LR(h[2],f):void 0!==h[2]&&(b[2]=h[2]);return b}static VZ(h,f,b){if(!0===
h[2])for(var a in h[1])this.VZ(h[1][a],f,b);else if(!1===h[2]){a=h[1][0];h=h[0];const c=f.getItem(a);c&&c.Qa?this.VZ(c.Ud,f,b):b.push(new q.model.hb.oh(a,h))}}}e.Ht=l})(u||(u={}));
(function(e){(function(l){(function(h){class f{}f.WY="UNDEFINED";f.WF="START_REPORT";f.MF="OPENING_REPORT_FILE";f.vy="LOADING_REPORT_FILE";f.ro="REPORT_FILE_LOADED";f.jK="REPORT_FILE_ERROR";f.ds="REPORT_FILE_CANCELLED";f.rk="REPORT_CHANGED";f.QF="REPORT_DEFINED";f.DF="LOADING_DATA";f.uJ="DATA_LOADED";f.sJ="DATA_ERROR";f.tJ="DATA_FILE_CANCELLED";f.Wv="STRUCTURE_LOADED";f.kY="LOADING_OLAP_STRUCTURE";f.H9="OLAPstructure__LOADED";f.G9="OLAPstructure__ERROR";f.Ala="CONNECTED_TO_DATA_SOURCE";f.NX="EMPTY_SLICE";
f.zB="RUNNING_QUERY";f.hl="QUERY_COMPLETE";f.Ot="QUERY_ERROR";f.EF="LOADING_LOCALIZATION";f.FF="LOCALIZATION_LOADED";f.UJ="LOCALIZATION_ERROR";f.si="REPORT_COMPLETE";f.x7="CREATION_COMPLETE";h.Vc=f;class b{}b.WY="UNDEFINED";b.INIT="INIT";b.sp="CLEAR";b.Zqa="SET_REPORT";b.Qqa="RUN_QUERY";b.rK="UPDATE_DATA";b.Xra="UPDATE_DATA_PARTIAL";b.$A="CONNECT_TO";b.Y8="LOAD";b.OPEN="OPEN";b.Qc="COMPLETE";h.Ep=b;class a extends w.Mh{get ga(){return e.v(this.Ab)||this.Ab.kb?this.zo:this.Ab}set ga(c){this.Ab=c}get mc(){return this.nG}get WU(){return this.FR}get $U(){return this.JZ}constructor(){super();
this.ja=e.u.Ma.R();this.AZ=null;this.Hf=b.WY;this.GE=f.WY;this.Uaa=this.JZ=this.FR=this.nG=!1;this.ZI={};this.$I=this.JA=!1;this.hca=()=>this.BGa();this.EO=()=>this.Dr();this.Gca=()=>this.X3();this.Tja=c=>this.KIa(c);this.yL=()=>this.W3();this.pA=c=>this.qE(c);this.jia=c=>this.G4(c);this.tia=()=>this.cb();this.yq=new l.hb.Sqa;l.C.F.R()}RD(c){e.v(c)&&(c={});this.Hf=b.INIT;l.Ea.xc.R().Kva(c,d=>{if(d)if(this.ee(f.WF),this.dN=l.hb.By.xb(c.global?c.global:{}),l.C.F.R().N(f.rk,()=>this.cb()),l.size.wd.R().N(f.rk,
()=>this.cb()),l.va.nn.R().N(f.rk,()=>this.cb()),this.iMa(this.dN),this.jS(),"string"===typeof c.report)this.LK(c.report);else{var g=c.report||{};this.ija(g);l.C.F.Cq(g.options||g,!0,!1);e.ve(()=>{this.Hf===b.INIT&&this.VK(g)},1)}})}ee(c,d=null,g=!0){this.GE=c;if(c==f.WF||c==f.MF||c==f.vy)this.JZ=this.FR=this.nG=!1;c==f.zB&&(this.Uaa=this.nG,this.nG=!1);c!=f.hl&&c!=f.Ot||!0!==this.Uaa||(this.nG=!0);c==f.si&&(this.FR=this.nG=!0);c==f.QF&&(this.FR=!0);c==f.Wv&&(this.JZ=!0);g&&this.Ya(c,null,d)}Qx(c){e.v(c)&&
(c={});this.Hf=b.Zqa;this.cancel();this.ee(f.WF);this.VK(c.report||{})}ge(c){this.Hf=b.Qqa;c=c instanceof e.u.O.Tq?c:e.u.O.Tq.xb(l.hb.vo.xb(c),this.ja.O);var d=e.u.O.Tq.Bba(c,this.ja.qa),g=e.u.O.Tq.Aba(c,this.ja.qa);if(e.u.O.Tq.cva(c,this.ja.qa)&&!d&&!g){const k=new l.hb.Yv;k.If=l.size.wd.zia;k.Af=l.size.wd.aca;k.Lj=l.size.wd.Lj;k.wg=l.size.wd.wg;k.Ig=l.size.wd.Ig;k.zh=l.size.wd.zh;l.size.wd.L_(k)}d&&(l.size.wd.If={});g&&(l.size.wd.Af={});c.HFa(this.ja.qa);c.G6();c.Eka();l.Wa.R().Ya("reset_grid");
e.u.Te.Qi.Bc().Ie=!1;this.ja.RE(c);this.ja.filter();l.Za.R().Ha(new l.jd(l.Za.uQ))}Wd(c,d){this.Hf=b.rK;this.cancel();this.ee(f.WF);const g=this.Qs();d.ignoreSorting&&(g.slice.Yj={},g.slice.hk={});d.ignoreScroll&&l.Wa.R().Ya("reset_grid");e.ka(g.Je)||delete g.Je;const k=g.la.mapping;g.la=e.u.O.Et.xb(c);g.la.mapping=g.la.kb||g.la.mapping.kb&&!g.la.mapping.$o&&void 0!==k?k:g.la.mapping;c=g.Sa();null==g.la.tc||e.v(c.dataSource)||(c.dataSource.requestHeaders=g.la.tc);g.la.Ec&&(this.$I=!0);this.$Ka();
this.VK(c,!0,d)}$Ka(){this.ZI={};if(this.ja&&this.ja.O){const c=new Map,d=this.ja.O.vc(!0);for(let g=0;g<d.length;g++){const k=d.fa(g);k.Xs&&c.set(k.A,k.Xs)}0<c.size&&(this.ZI.Kja=c)}}PKa(){if(this.ZI&&this.ZI.Kja){const c=this.ZI.Kja;for(const [d,g]of c)l.Wa.R().AO(d,g)}}VMa(c,d){this.Hf=b.Xra;var g=this.ja.qa.clone();this.cancel();this.Yia();this.ee(f.WF);d.ignoreSorting&&(g.Lb.KC(),g.$b.KC());d.ignoreScroll&&l.Wa.R().Ya("reset_grid");this.Ld.la.data&&(d=this.Ld.la.data,d=d.concat(c),this.Ld.la.data=
d);this.ja.Wd(c);this.r_();e.u.Te.Qi.Bc().reset(!1);this.JA=!0;e.ve(()=>{this.JA=!1},500);this.ja.qa=g;this.ja.filter()}YG(c){this.Hf=b.$A;this.cancel();this.ee(f.WF);this.VK(c)}load(c,d){this.Hf=b.Y8;this.cancel();this.LK(c,d)}LK(c,d){this.ee(f.vy);this.yq.N(l.hb.Ph.ro,g=>this.rE(g));this.yq.N(l.hb.Ph.Sv,()=>this.QN());this.yq.load(c,d)}open(){this.Hf=b.OPEN;this.ee(f.MF);this.yq.cancel();this.yq.N(l.hb.Ph.kK,()=>this.L4());this.yq.N(l.hb.Ph.ro,c=>this.rE(c));this.yq.N(l.hb.Ph.Sv,()=>this.QN());
this.yq.N(l.hb.Ph.ds,()=>this.PN());this.yq.open()}ija(c){null!=c&&c.hasOwnProperty("dataSource")&&c.dataSource.hasOwnProperty("browseForFile")&&c.dataSource.browseForFile&&(c.dataSource.requestPermission=!0)}rE(c){this.ija(c.hb);e.Ca(!1);this.ee(f.ro);this.VK(c.hb)}QN(){e.Ca(!1);this.ee(f.jK);this.ee(f.QF);this.ee(f.si)}L4(){this.Ya(f.vy,null,"")}PN(){this.ee(f.ds);this.ee(f.QF);this.ee(f.si)}cb(){this.Ya(f.rk,null,"")}VK(c,d=!1,g=null){1>l.Ea.xc.bk()||e.v(this.ja)||(this.Ld=c instanceof l.hb.By?
c:l.hb.By.xb(c),this.Ld.la.yEa=d,this.Ld.la.vka=g,d||l.Wa.R().Ya("reset_grid"),this.Iva(this.Ld),this.Yia(),this.Ld.la.kb?this.Hga():this.Ld.la.mapping.dFa(this.Ld.la.tc,()=>this.Hga()))}Yia(){this.Ld.la.kb?this.zo&&!this.zo.kb&&(e.u.ze.bF=!this.zo.Ec||this.zo.Aa==e.u.i.ra.kg||this.zo.Aa==e.u.i.ra.API,e.u.ze.aJ=!this.zo.Ec||this.zo.Aa==e.u.i.ra.kg||this.zo.Aa==e.u.i.ra.API):(e.u.ze.bF=!this.Ld.la.Ec||this.Ld.la.Aa==e.u.i.ra.kg||this.Ld.la.Aa==e.u.i.ra.API,e.u.ze.aJ=!this.Ld.la.Ec||this.Ld.la.Aa==
e.u.i.ra.kg||this.Ld.la.Aa==e.u.i.ra.API)}Iva(c){"flat"!=c.options.U("gridType")||c.options.U("viewType")!=e.K.Jd.mo||c.la.kb||c.la.Aa!=e.u.i.ra.API||(c.options.oa("viewType",e.K.Jd.It),e.Va(e.P.bind(l.B.j.pY),l.B.j.VP,e.ob.nk))}Qs(c={}){return h.W.g$.HMa(this.rBa(c))}clear(c=!1){this.cancel();this.Hf=b.sp;this.jS();c?this.ja.clearData():this.ja.cancel();this.ee(f.si)}cancel(){this.yq.cancel();this.oKa();this.$I=this.JA=!1;e.u.ze.bF=!1;e.u.ze.aJ=!1;this.ZI={};e.Ca(!1)}Hga(){e.ka(this.dN.Je)?this.pha(null):
(this.ee(f.EF),l.B.pB.R().load(this.dN.Je,c=>this.pha(c),!0),this.dN.Je=null)}pha(c){e.ka(this.Ld.Je)?(l.B.pB.R().reset(),this.rI(c)):(this.ee(f.EF),l.B.pB.R().load(this.Ld.Je,d=>this.rI(d)))}rI(c){c?this.ee(f.FF):!1===c&&this.ee(f.UJ);this.jFa()}jFa(){this.Hf!=b.$A&&this.Hf!=b.rK&&(this.Hf!=b.OPEN&&this.jS(),l.C.F.Cq(this.Ld.options,!0,!1),this.Hf!=b.OPEN&&(l.C.F.Qm=l.C.F.UC));var c=this.Hf;this.ee(f.QF);c==this.Hf&&((c=this.Ld.la,!e.v(this.ga)&&!this.ga.kb&&this.ga.isEqual(c)&&!l.C.F.LI&&this.ja.ga&&
this.ja.O&&this.ja.O.Td)?(this.ga.Aa===e.u.i.ra.API&&this.Ld.la.Aa===e.u.i.ra.API&&e.u.Te.Qi.Hca!==e.u.Te.Qi.bka(this.Ld.options)&&this.ja.ta.clearData(),c=e.u.Te.Qi.Bc(),this.Ld.la.vka&&this.Ld.la.vka.keepMembersOrder?c.Ie=!0:c.reset(),this.r_(),this.ja.hKa()):(c.kb&&this.zo&&!this.zo.kb&&(c=this.zo),c.kb)?(this.ga=c,this.ja.cancel(),this.ee(f.si),e.Ca(!1)):(c.Ec?this.ee(f.kY):this.ee(f.DF),null!==this.ja.ta&&(this.Hf==b.$A||this.Hf==b.OPEN||e.v(this.ga)||this.ga.kb||c.Aa===this.ga.Aa?this.ga.Aa===
e.u.i.ra.API&&this.Ld.la.Aa===e.u.i.ra.API&&e.u.Te.Qi.Hca!==e.u.Te.Qi.bka(this.Ld.options)&&(this.ja.ta.wu(),this.ja.ta=null):(this.ja.ta.wu(),this.ja.ta=null)),this.Fva(c),e.u.Te.Qi.Bc(),this.r_(),this.ja.connect(c)))}Fva(c){!l.C.F.sc||e.v(c)||c.kb||c.aI||(l.C.F.sc=!1)}BGa(){this.Hf===b.$A?(this.jS(),this.ja.qa&&this.ja.qa.clear(),this.ja.O&&this.ja.O.clear()):this.yba(!1);this.ee(f.Ala);this.ga=this.Ld.la}Dr(){this.ee(f.Wv);const c=e.u.O.Tq.xb(this.Ld.slice,this.ja.O,!1,e.u.i.ra.API!==this.Ld.la.Aa);
this.PKa();this.yba(!0);this.ja.RE(c);this.ga.Ec?(this.ee(f.H9),c.kb?(this.ee(f.NX),this.ee(f.si)):(l.C.F.Qm=l.C.F.UC,this.ja.filter())):(this.ee(f.uJ),l.C.F.Qm=l.C.F.UC,this.ja.filter())}X3(){this.ee(f.tJ);this.ee(f.si)}KIa(c){var d=this.Ld.la;l.C.F.Cq(this.Ld.options);this.ja.cancel();e.Ca(!1);d.Ec?this.ee(f.G9,c.data):this.ee(f.sJ,c.data);this.ee(f.si)}W3(){this.ee(f.zB)}qE(c){this.ee(f.hl,c.rm);this.GE!=f.si&&this.ee(f.si,null,c.rm!=e.u.i.Md.zJ);this.$I&&e.ve(()=>{this.$I=!1},500)}G4(c){this.ee(f.Ot,
c.data);this.GE!=f.si&&this.ee(f.si)}r_(){this.ja.N(e.u.Ag.PY,this.hca);this.ja.N(e.u.Ag.Wv,this.EO);this.ja.N(e.u.Ag.OY,this.Gca);this.ja.N(e.u.Ag.QY,this.Tja);this.ja.N(e.u.Ag.lJ,this.yL);this.ja.N(e.u.Ag.hl,this.pA);this.ja.N(e.u.Ag.Ot,this.jia);this.ja.N(f.rk,this.tia)}oKa(){this.ja.rb(e.u.Ag.PY,this.hca);this.ja.rb(e.u.Ag.Wv,this.EO);this.ja.rb(e.u.Ag.OY,this.Gca);this.ja.rb(e.u.Ag.QY,this.Tja);this.ja.rb(e.u.Ag.lJ,this.yL);this.ja.rb(e.u.Ag.hl,this.pA);this.ja.rb(e.u.Ag.Ot,this.jia);this.ja.rb(f.rk,
this.tia)}save(c,d,g,k,m=!1){return this.yq.save(c,d,g,k,m,this.Qs(c instanceof Object?c:{}))}rBa(c){if(void 0===this.Ab&&void 0===this.ja.O&&void 0===this.ja.qa)return null;var d=c.hasOwnProperty("withDefaults")?1==c.withDefaults:!1;c=c.hasOwnProperty("withGlobals")?1==c.withGlobals:!1;var g=new h.W.g$;g.PA=d;g.mNa=c;g.Ab=c&&this.Ab.kb&&!this.zo.kb?this.zo:this.Ab;g.O=this.ja.O;g.Pb=this.ja.qa;g.C=l.C.F.gx(d,c);g.Fe=l.oc.tj.SAa();g.Xc=l.va.nn.Xc;g.Sm=l.hb.rJ.Sm;g.Zx=l.size.wd.QH();this.Ld&&(g.Je=
c&&null==this.Ld.Je&&null!=this.AZ?this.AZ:this.Ld.Je);return g}get cN(){return this.gaa}set cN(c){this.gaa=c}iMa(c){this.zo=c.la;this.cN=c.slice.cd;l.C.F.ALa(c.options);this.AZ=c.Je}jS(){e.u.Te.Qi.dispose();l.size.wd.clear();l.va.nn.n5();l.oc.tj.clear();l.hb.rJ.Sm=[];l.C.F.clear()}yba(c=!1){l.C.F.Cq(this.Ld.options,!1);c&&(l.size.wd.clear(),l.size.wd.L_(this.Ld.Zx));l.va.nn.n5();for(c=0;c<this.Ld.Xc.length;c++){var d=l.va.W.E7.xb(this.Ld.Xc[c]);l.va.nn.add(d)}l.oc.tj.clear();for(c=0;c<this.Ld.Fe.length;c++)l.oc.tj.OE(this.Ld.Fe[c]);
for(c=0;c<this.Ld.slice.Da.length;c++)if(d=this.Ld.slice.Da[c],void 0!==d.format){let g=void 0===d.aggregation?"":d.aggregation;g=e.u.i.ea.pz(g)?e.u.i.ea.Dz(g):g;l.oc.tj.GI(d.format,d.uniqueName,g)}l.hb.rJ.Sm=this.Ld.Sm}dispose(){this.cancel();l.va.nn.dispose();l.C.F.dispose();l.kt.OF.dispose();l.SD.QP.dispose();l.B.pB.dispose();l.Ea.xc.dispose();l.size.wd.dispose();l.oc.tj.dispose();this.yq.dispose();l.hb.rJ.Sm=[];this.ja=this.Ld=this.gaa=this.dN=this.Ab=this.yq=null}}h.tra=a})(l.Xb||(l.Xb={}))})(e.model||
(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){}static BD(a){return a==f.kg?h.ca.I(h.ca.fza):h.ca.I(a+28)}}f.Rl=0;f.cma=2;f.Pd=3;f.Rka=4;f.vP=5;f.kg=6;h.xp=f;class b{constructor(){b.zv=[123,11,92,19,144,53,22,7,190,81,45,201,45,88,130,173,165,9,34,54,31,233,245,40,65,55,23,183,102,109,34,45,177,103,51,20,119,17,3,49,90,92,90,134,182,199,92,230,241,2,117,108,124,54,32,190,251,16,4,5,231,253,201,2,39,96,91,55,82,160,32,84,193,149,189,152,29,102,119,234]}static R(){null==b.instance&&(b.instance=
new b);return b.instance}static dispose(){b.aX=null;b.oH=null;b.Aga=null;b.x3=null;b.mz=null;b.zv=null;b.instance=null}Kva(a,c){this.lc=c;a[h.ca.I(h.ca.Bga)]?this.pO(a[h.ca.I(h.ca.Bga)]):a[h.ca.I(h.ca.dia)]?this.pO(a[h.ca.I(h.ca.dia)]):a[h.ca.I(h.ca.dea)]?this.pO(a[h.ca.I(h.ca.dea)]):a[h.ca.I(h.ca.w3)]?this.Gga(a[h.ca.I(h.ca.w3)]):window[h.ca.I(h.ca.Cga)]?this.pO(window[h.ca.I(h.ca.Cga)]):this.Gga(a[h.ca.I(h.ca.w3)])}pO(a){if(Array.isArray(a)){let c=null;for(const d of a)if(this.Qba(d,!1)!=f.Rl){c=
d;break}a=null!==c&&void 0!==c?c:a[0]}a=l.Tb.validate(a);b.mz=b[h.ca.I(h.ca.Tda)+h.ca.I(h.ca.t$)]=a;b.error=!1;this.lc(!0)}Qba(a,c=!0){if(void 0==a)return f.Rl;if(a.trim()==h.ca.I(h.ca.lNa))return this.Jr(h.ca.I(h.ca.rka),!0,h.ca.I(h.ca.ska),h.ca.I(h.ca.Xg)+h.ca.I(h.ca.Xg)+h.ca.I(h.ca.vga)),f.Rl;a=a.trim();var d=this.TDa(a);d&&(a=this.lAa(a));if(!this.lga(a,c))return f.Rl;a=this.OKa(a);var g=this.QBa(a);d&&(b.Zy=!0);var k=this.nBa(),m=this.dEa(k),n=this.$Da(k);if(!b.tba&&this.d3())return c&&this.Jr(h.ca.I(h.ca.iDa),
!0,h.ca.I(h.ca.jDa)),f.Rl;if(d&&b.Av)if(this.qS(a))b.Vp=!0;else return;if(b.Av&&!this.qS(a))return f.Rl;if(b.Vp)if(m||n||d){if(!this.Eva(a))return f.Rl}else return this.Jr(e.P.bind(h.ca.I(h.ca.tya),k),!0,h.ca.I(h.ca.sya)),f.Rl;if(b.wq&&!this.Lva(a,m||n?h.ca.I(h.ca.Oga):k,c))return f.Rl;if(g==f.Rl||e.v(g))c&&this.Jr(h.ca.I(h.ca.wfa),!0,h.ca.I(h.ca.xfa));else if(!this.Mva(a))return f.Rl;b.Av||b.Vp||b.wq||(g=f.Rl);return g}static bk(){var a=[h.ca.I(h.ca.Tda),"G"].join("X");return b.R().Qba(b[a])}Jr(a,
c=!0,d=l.B.j.xa,g=""){c&&!e.ka(b.mz)&&(a+=h.ca.I(h.ca.Xg)+h.ca.I(h.ca.Xg)+this.mea());a+=h.ca.I(h.ca.Xg)+h.ca.I(h.ca.Xg)+h.ca.I(h.ca.Cca)+this.oea();a+=g;e.Ca(!1);this.lc(!1);e.Va(a,d,e.ob.xa,[],null,!0)}Gga(a){a||(a=u.Gy.RH(h.ca.I(h.ca.CEa)));a=a+h.ca.I(h.ca.sMa)+Date.now();this.xhr=new XMLHttpRequest;this.xhr.open("GET",a,!0);this.xhr.onerror=()=>this.lha();this.xhr.onreadystatechange=c=>this.tv(c);this.xhr.send()}tv(){null!=this.xhr&&4===this.xhr.readyState&&(200===this.xhr.status?this.BHa(this.xhr.responseText):
this.lha())}BHa(a){this.pO(a)}lha(){this.Jr(h.ca.I(h.ca.WFa),!1,h.ca.I(h.ca.VFa),h.ca.I(h.ca.Xg)+h.ca.I(h.ca.Xg)+h.ca.I(h.ca.MEa))}dEa(a){return null==a||-1==a.indexOf(".")?!0:!1}$Da(a){return/^((?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))*$/.test(a)}TDa(a){return a.substr(0,2)==h.ca.I(h.ca.t$)}lAa(a){a=a.substr(2);var c=Math.floor((new Date).getTime()/6048E5),d=parseInt(a.substr(0,2),16);a=a.replace(RegExp("-","g"),"").substr(2);for(var g=0;2>g;g++){for(var k=
0;5>k;k++){for(var m=d*c*k,n="",p=0;p<a.length;p+=2){var t=m%256;m=(m-t)/256;n+=String.fromCharCode(parseInt(a.charAt(p)+a.charAt(p+1),16)^t);256>m&&(m*=c)}if(this.lga(n,!1))return n}c++}return"-"}d3(){if(self==top||-1<window[h.ca.I(h.ca.MK)][h.ca.I(h.ca.KK)].toLowerCase().indexOf(h.ca.I(h.ca.kwa))||-1<window[h.ca.I(h.ca.MK)][h.ca.I(h.ca.KK)].toLowerCase().indexOf(h.ca.I(h.ca.BEa))||-1<window[h.ca.I(h.ca.MK)][h.ca.I(h.ca.KK)].toLowerCase().indexOf(h.ca.I(h.ca.jMa))||-1<window[h.ca.I(h.ca.MK)][h.ca.I(h.ca.KK)].toLowerCase().indexOf(h.ca.I(h.ca.kMa)))return!1;
try{window.parent.document}catch(a){return!0}return!1}lga(a,c=!0){if(null==a||0==a.length)return c&&this.Jr(h.ca.I(h.ca.gza),!1,h.ca.I(h.ca.hza),h.ca.I(h.ca.Xg)+h.ca.I(h.ca.Xg)+h.ca.I(h.ca.KEa)),!1;if(a.trim()==h.ca.I(h.ca.DEa))return c&&this.Jr(h.ca.I(h.ca.EEa),!1,h.ca.I(h.ca.FEa)),!1;a=a.trim().replace(/-/gi,"");if(a.substr(0,2)==h.ca.I(h.ca.z$).substr(0,1)+7){var d=parseInt(a.substr(2,2),36);var g=a.substr(4,4);"X"==g.substr(0,1)&&(g=g.substr(1,3));g=parseInt(g,20)-3227;a=a.substring(8).toLowerCase()}else return a.substr(0,
2)==h.ca.I(h.ca.z$)||a.substr(0,2)==h.ca.I(h.ca.qsa)||a.substr(0,2)==h.ca.I(h.ca.psa)?c&&this.Bja():c&&this.Jr(h.ca.I(h.ca.wfa),!0,h.ca.I(h.ca.xfa)),!1;for(var k=0;k<a.length;k+=2){var m=parseInt(a.substr(k,2),36);isNaN(m)||(d+=m)}return g!=d||1>g?(c&&this.Jr(h.ca.I(h.ca.pxa),!0,h.ca.I(h.ca.qxa)),!1):!0}OKa(a){a=a.trim().replace(/-/gi,"");var c=parseInt(a.substring(2,4),36);a=a.substring(8).toLowerCase();for(var d="",g=0;g<a.length;g+=2)d+=String.fromCharCode(parseInt(a.substr(g,2),36)^Math.abs(Math.sin(g/
2+2)*c*(g/2+7))%256);return d}QBa(a){b.Vca=u.Jfa();a=a.charCodeAt(0);b.tba=256<=a;a%=256;b.Vp=128<=a;a%=128;b.hfa=64<=a;a%=64;b.wq=32<=a;a%=32;b.Zy=16<=a;a%=16;b.Av=8<=a;return a%8}nBa(){var a;if(this.d3()){if(a=document[h.ca.I(h.ca.referrer)])a=a.replace(h.ca.I(h.ca.gDa),""),a=a.replace(h.ca.I(h.ca.hDa),""),a=a.split("/")[0]}else{a=h.ca.I(h.ca.MK);var c=h.ca.I(h.ca.KK);a=window[a][c]}if(null==a)return null;a=a.replace(h.ca.I(h.ca.qNa),"");return a=a.split(":")[0]}Mva(a){var c=b.Av?a.substr(-6,3):
a.substr(-3);a=new Uint8Array(c.length);for(var d=0;d<c.length;d++)a[d]=c.charCodeAt(d)^b.zv[d];c="";for(d=0;d<a.byteLength;d++)c+=String.fromCharCode(a[d]);a=new Date(864E5*(parseInt(c,34)+17002)+6E4*(new Date).getTimezoneOffset());b.aX=a;d=new Date(parseFloat(e.Cg.bP)/61);return!a||isNaN(a.getTime())||a<d?(this.Bja(this.HCa(a)),!1):!0}Bja(a=null){const c=h.ca.I(h.ca.oFa);let d=h.ca.I(h.ca.nFa);d+=h.ca.I(h.ca.Xg)+h.ca.I(h.ca.Xg)+h.ca.I(h.ca.Vja)+u.Lh.format(b.aX,h.ca.I(h.ca.Fu));e.ka(a)||(d+=h.ca.I(h.ca.Xg)+
h.ca.I(h.ca.qMa)+a);d+=h.ca.I(h.ca.Xg)+h.ca.I(h.ca.Cca)+this.oea();e.ka(b.mz)||(d+=h.ca.I(h.ca.Xg)+h.ca.I(h.ca.Xg)+this.mea());d+=h.ca.I(h.ca.Xg)+h.ca.I(h.ca.Xg)+h.ca.I(h.ca.mFa);b.error=!0;e.Ca(!1);this.lc(!1);e.Va(d,c,e.ob.xa,[],null,!0)}oea(){const a=new Date(parseFloat(e.Cg.bP)/61);return e.Cg.Iq+` (${h.ca.I(h.ca.ova)} ${u.Lh.format(a,h.ca.I(h.ca.Fu))})`}mea(){return h.ca.I(h.ca.NMa)+h.ca.I(h.ca.Xg)+b.mz}HCa(a){const c=new Date(parseFloat(e.Cg.bP)/61),d=e.Cg.Iq.split(".").map(g=>parseInt(g));
for(;-1<d[2];){c.setUTCDate(c.getUTCDate()-14);this.Hka(d);if(c.getTime()<a.getTime())return this.Hka(d).join(".");if(8==d[1]&&0==d[2])break}return null}Hka(a){--a[2];2==a[0]&&9==a[1]&&-1==a[2]&&(a[1]=8,a[2]=33);2==a[0]&&8==a[1]&&-1==a[2]&&(a[1]=7,a[2]=24);return a}qS(a,c=!0){var d=a.substr(-3);a=new Uint8Array(d.length);for(var g=0;g<d.length;g++)a[g]=d.charCodeAt(g)^b.zv[g];d="";for(g=0;g<a.byteLength;g++)d+=String.fromCharCode(a[g]);a=new Date(864E5*(parseInt(d,34)+17001)+6E4*(new Date).getTimezoneOffset());
b.oH=a;a=new Date(864E5*(parseInt(d,34)+17002)+6E4*(new Date).getTimezoneOffset());return!a||isNaN(a.getTime())||a<new Date?(b.wq||b.Vp?c&&this.Jr(h.ca.I(h.ca.REa),!0,h.ca.I(h.ca.SEa),h.ca.I(h.ca.Xg)+h.ca.I(h.ca.Xg)+h.ca.I(h.ca.LEa)):c&&this.Jr(h.ca.I(h.ca.rka),!0,h.ca.I(h.ca.ska),h.ca.I(h.ca.Xg)+h.ca.I(h.ca.Xg)+h.ca.I(h.ca.vga)),!1):!0}Eva(a){var c=a;a=a.substr(1);for(var d=new Uint8Array(a.length),g=0;g<a.length;g++)d[g]=a.charCodeAt(g)^b.zv[g];a="";for(g=0;g<d.byteLength;g++)a+=String.fromCharCode(d[g]);
b.x3=a.split(String.fromCharCode(224))[0];return b.Av&&!this.qS(c)?!1:!0}Lva(a,c,d=!0){var g=a;a=a.substr(1);for(var k=new Uint8Array(a.length),m=0;m<a.length;m++)k[m]=a.charCodeAt(m)^b.zv[m];a="";for(m=0;m<k.byteLength;m++)a+=String.fromCharCode(k[m]);k=a.split(String.fromCharCode(224));a=k[0];b.Aga=k.shift();if(b.Av&&!this.qS(g,d))return!1;if(c==h.ca.I(h.ca.Oga))return!0;g=" ";b.hfa&&c.length>=a.length-2&&(g="*."+c.substring(c.length-a.length+2));return a!=c&&a!=g&&a!=e.$qa.hash(c)?(d&&(c=e.P.bind(h.ca.I(h.ca.Qza),
c,a)+h.ca.I(h.ca.Xg)+h.ca.I(h.ca.Xg)+e.P.bind(h.ca.I(h.ca.fxa),c),this.Jr(c,!0,h.ca.I(h.ca.Bya))),!1):!0}static UEa(){return f.BD(b.bk())}}b.error=!1;b.Av=!1;b.wq=!1;b.Vp=!1;b.Vca=!1;b.oH=new Date(2009,9,30);b.aX=new Date(2009,9,30);b.Zy=!1;b.mz="";b.hfa=!1;b.tba=!1;h.xc=b})(l.Ea||(l.Ea={}))})(e.model||(e.model={}))})(q||(q={}));var mb=S||(S={});class nb{}nb.Bla='<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/><Default Extension="xml" ContentType="application/xml"/><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"/><Override PartName="/xl/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/><Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"/><Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"/><Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/><Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/>{0}</Types>';
nb.Cla='<Override PartName="{0}" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/>';nb.rsa='<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/></Relationships>';
nb.Yka='<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"><Application>Flexmonster Pivot Table</Application><DocSecurity>0</DocSecurity><ScaleCrop>false</ScaleCrop><HeadingPairs><vt:vector size="2" baseType="variant"><vt:variant><vt:lpstr>Worksheets</vt:lpstr></vt:variant><vt:variant><vt:i4>3</vt:i4></vt:variant></vt:vector></HeadingPairs><TitlesOfParts><vt:vector size="3" baseType="lpstr"><vt:lpstr>Sheet1</vt:lpstr><vt:lpstr>Sheet2</vt:lpstr><vt:lpstr>Sheet3</vt:lpstr></vt:vector></TitlesOfParts><LinksUpToDate>false</LinksUpToDate><SharedDoc>false</SharedDoc><HyperlinksChanged>false</HyperlinksChanged><AppVersion>14.0300</AppVersion></Properties>';
nb.ama='<cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><dc:creator></dc:creator><cp:lastModifiedBy></cp:lastModifiedBy></cp:coreProperties>';nb.fsa='<workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"><fileVersion appName="xl" lastEdited="5" lowestEdited="5" rupBuild="9302"/><workbookPr defaultThemeVersion="124226"/><bookViews><workbookView xWindow="360" yWindow="210" windowWidth="16860" windowHeight="9150"/></bookViews><sheets>{0}</sheets><calcPr calcId="144525"/></workbook>';
nb.gsa='<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/>{0}</Relationships>';
nb.hsa='<Relationship Id="{0}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="{1}"/>';nb.Ara='<a:theme name="Office Theme" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"><a:themeElements><a:clrScheme name="Office"><a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1><a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1><a:dk2><a:srgbClr val="1F497D"/></a:dk2><a:lt2><a:srgbClr val="EEECE1"/></a:lt2><a:accent1><a:srgbClr val="4F81BD"/></a:accent1><a:accent2><a:srgbClr val="C0504D"/></a:accent2><a:accent3><a:srgbClr val="9BBB59"/></a:accent3><a:accent4><a:srgbClr val="8064A2"/></a:accent4><a:accent5><a:srgbClr val="4BACC6"/></a:accent5><a:accent6><a:srgbClr val="F79646"/></a:accent6><a:hlink><a:srgbClr val="0000FF"/></a:hlink><a:folHlink><a:srgbClr val="800080"/></a:folHlink></a:clrScheme><a:fontScheme name="Office"><a:majorFont><a:latin typeface="Cambria"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"/><a:font script="Hang" typeface="\ub9d1\uc740 \uace0\ub515"/><a:font script="Hans" typeface="\u5b8b\u4f53"/><a:font script="Hant" typeface="\u65b0\u7d30\u660e\u9ad4"/><a:font script="Arab" typeface="Times New Roman"/><a:font script="Hebr" typeface="Times New Roman"/><a:font script="Thai" typeface="Tahoma"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="MoolBoran"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface ="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Times New Roman"/><a:font script="Uigh" typeface="Microsoft Uighur"/></a:majorFont><a:minorFont><a:latin typeface="Calibri"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"/><a:font script="Hang" typeface="\ub9d1\uc740 \uace0\ub515"/><a:font script="Hans" typeface="\u5b8b\u4f53"/><a:font script="Hant" typeface="\u65b0\u7d30\u660e\u9ad4"/><a:font script="Arab" typeface="Arial"/><a:font script="Hebr" typeface="Arial"/><a:font script="Thai" typeface="Tahoma"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="DaunPenh"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface ="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Arial"/><a:font script="Uigh" typeface="Microsoft Uighur"/></a:minorFont></a:fontScheme><a:fmtScheme name="Office"><a:fillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs><a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="16200000" scaled="1"/></a:gradFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:shade val="51000"/><a:satMod val="130000"/></a:schemeClr></a:gs><a:gs pos="80000"><a:schemeClr val="phClr"><a:shade val="93000"/><a:satMod val="130000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="94000"/><a:satMod val="135000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="16200000" scaled="0"/></a:gradFill></a:fillStyleLst><a:lnStyleLst><a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln><a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln><a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln></a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst><a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw></a:effectLst></a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw></a:effectLst></a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw></a:effectLst><a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d><a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d></a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs><a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs></a:gsLst><a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path></a:gradFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs></a:gsLst><a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path></a:gradFill></a:bgFillStyleLst></a:fmtScheme></a:themeElements><a:objectDefaults><a:spDef><a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style></a:spDef><a:lnDef><a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style></a:lnDef></a:objectDefaults><a:extraClrSchemeLst/></a:theme>';
nb.kra='<styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac">{0}<fonts count="{1}" x14ac:knownFonts="1"><font><sz val="11"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font>{2}</fonts><fills count="{3}">{4}</fills><borders count="2"><border><left/><right/><top/><bottom/><diagonal/></border><border><left style="thin"><color theme="0" tint="-0.14996795556505021"/></left><right style="thin"><color theme="0" tint="-0.14996795556505021"/></right><top style="thin"><color theme="0" tint="-0.14996795556505021"/></top><bottom style="thin"><color theme="0" tint="-0.14996795556505021"/></bottom><diagonal/></border></borders><cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs><cellXfs count="{5}"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0"/>{6}</cellXfs><cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles><dxfs count="0"/><tableStyles count="0" defaultTableStyle="TableStyleMedium2" defaultPivotStyle="PivotStyleLight16"/><extLst><ext uri="{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"><x14:slicerStyles defaultSlicerStyle="SlicerStyleLight1"/></ext></extLst></styleSheet>';
nb.ara='<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="5" uniqueCount="5">{0}</sst>';nb.bra='<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"><dimension ref="{0}"/><sheetViews><sheetView tabSelected="1" workbookViewId="0"><selection activeCell="A1" sqref="A1"/></sheetView></sheetViews><sheetFormatPr defaultRowHeight="15" defaultColWidth="15" x14ac:dyDescent="0.25"/><cols>{1}</cols><sheetData>{2}</sheetData>{3}<pageMargins left="0.7" right="0.7" top="0.75" bottom="0.75" header="0.3" footer="0.3"/></worksheet>';
nb.St='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';mb.Wi=nb;
(function(e){(function(l){class h extends w.Mh{constructor(){super();this.PL=[];this.OD=new e.ub;this.UH=new e.ub;this.g0=0;if(null!=h.instance)throw Error("Singleton");}static R(){void 0==h.instance&&(h.instance=new h);return h.instance}RE(f){this.ga.Ec||f.kb&&e.model.C.F.T5&&f.J3&&f.rFa();for(var b=0;b<f.qb.length;b++){var a=f.qb.fa(b);a.filter.ji&&a.filter.HC()}var c=f.vc(!1,!1);for(b=0;b<c.length;b++)if(a=c.fa(b),a.eb=[],a.filter.ji&&a.filter.measure){var d=f.bx(a.filter.measure.index);if(-1==
a.filter.measure.index||d&&d.A!==a.filter.measure.A)if(a.filter.measure.index=f.Iea(a.filter.measure.A,a.filter.measure.$),d=f.bx(a.filter.measure.index),-1==a.filter.measure.index||d&&d.A!==a.filter.measure.A)a.filter.measure.index=f.Iea(a.filter.measure.A);-1!=a.filter.measure.index&&(d=f.bx(a.filter.measure.index),e.v(d)||d.A!==a.filter.measure.A||(a.filter.measure.$=d.$))}this.qa=f;this.Ya(l.Dy.nK)}hKa(){!this.ga.Ec&&this.O&&(this.O.Td=!1,this.DE());for(var f=this.O.vc(!1),b=0;b<f.length;b++){var a=
f.fa(b);a.xu();a.Y_();this.ga.Ec?0<a.gM.length&&(a.Td=!1):a.Td=!1}this.qa&&this.qa.clear();this.dM()}connect(f){e.v(this.gu)||this.gu.cancel();this.gu=l.wra.GCa(f);this.gu.load(f,()=>this.dM(),b=>{this.Ya(l.Ag.QY,null,{error:b})},()=>{this.cancel(!1);this.ga=f;this.Dq=this.gu;this.ta=this.ga.Aa==l.i.ra.kg?new l.external.Ue.Tma(this):this.ga.Aa==l.i.ra.API?new l.external.jc.P6(this):this.ga.Ec?new l.external.Hb.fqa(this):new l.local.ZP(this);this.gu=null;this.Tm=l.MX.O1(this.ga);null!=this.O&&this.O.clear();
this.O=l.O.vra.FCa(this.ga.Aa);this.O.HLa(f.mapping);this.Ya(l.Ag.PY)},()=>{this.Ya(l.Ag.OY)})}dM(){this.O.Td=!0;this.Ya(l.Ag.Wv)}cancel(f=!0){u.Ql.cancel();this.Dq&&(this.Dq.cancel(),this.Dq=null);this.Tm&&(this.wS(),this.Tm.cancel(),this.Tm=null);this.OD=new e.ub;this.UH=new e.ub;f&&this.O&&(this.O.clear(),this.O=null);f&&this.qa&&(this.qa.clear(),this.qa=null);f&&this.ta&&(this.ta.wu(),this.ta=null);f&&this.gu&&(this.gu.cancel(),this.gu=null);this.g0=0}clearData(){this.wS();this.Tm&&(this.Tm.cancel(),
this.Tm=null);this.ta&&this.ta.clearData()}hI(f,b){if(null!=f){var a=this.S2(this.ga);this.ta.select(!1);null===this.Tm||a||this.Tm.cancel();this.Tm=l.MX.O1(this.ga);a&&this.PL.push(this.Tm);this.Tm.load(this.ga,f,b,c=>this.qz(c))}}Qn(f=""){e.Ca(!1);this.wS();this.Ha(new l.AY(f))}qz(f){e.Ca(!1);this.Ya(l.Ag.Ot,null,{error:f})}filter(){this.select(l.i.Md.BP)}sort(){this.Qn()}expand(f,b,a,c=!0){this.Ha(new l.oF(l.i.Md.xF));this.YN(f,b,a,()=>{this.ta.expand(f,b,a);c&&(this.Qn(l.i.Md.xF),e.ve(()=>{this.Ya(e.model.Xb.Vc.rk)},
1))})}Csa(f,b,a){a=e.v(a)?this.qa.Wf:[a];for(var c=!0,d=0;d<a.length;d++){var g=b===l.i.ha.Ia?this.ta.La(f,[],a[d]):this.ta.La([],f,a[d]);if(!isNaN(g)){c=!1;break}}return c}YN(f,b,a,c){this.ga.Ec?this.Csa(f,b,a)?c(!0):(a=new l.PF(l.i.Md.xF),a.jg=f,a.uw=b,a.body=l.yB.xD(this.qa,this.ga).expand(b,f),void 0===a.body?c(!0):this.hI(a,c)):c(!0)}Bsa(f,b,a){if(null!=b.hierarchy.ic)return!1;var c=e.v(void 0)?this.qa.Wf:[void 0],d=!0;f=f.slice(0);f[f.length-1]=b.ordinal;for(b=0;b<c.length;b++){var g=a===l.i.ha.Ia?
this.ta.La(f,[],c[b]):this.ta.La([],f,c[b]);if(!isNaN(g)){d=!1;break}}return d}bW(f,b,a,c){if(this.ga.Ec)if(this.Bsa(f,b,a))c(!0);else{var d=new l.PF(l.i.Md.Iv);d.jg=f;d.uw=a;d.body=l.yB.xD(this.qa,this.ga).Ee(a,f,b,b.level.A);void 0===d.body?c(!0):this.hI(d,c)}else c(!0)}collapse(f,b,a,c=!0){this.ta.collapse(f,b,a);c&&this.Qn(l.i.Md.m7)}cd(f,b,a,c,d=null){var g=new l.PF(l.i.Md.zJ);g.body=l.yB.xD(this.qa,this.ga).cd(f,b,a,d?d.slice(0):null);e.Ca(!0,e.model.B.j.mg);d=new l.oF(l.i.Md.zJ);this.Ha(d);
this.Tm.cancel();this.Tm=l.MX.O1(this.ga);this.Tm.cd(this.ga,g,f,b,a,k=>{c(k);this.Qn(g.type)},()=>{c();this.Qn(g.type)})}iD(f,b,a="all"){if("all"==a||"rows"==a)this.qa.lf=f,this.qa.hf=b,this.qa.fwa(),this.qa.ewa(),this.qa.dwa();if("all"==a||"columns"==a)this.qa.kf=f,this.qa.Xf=b,this.qa.$va(),this.qa.Zva(),this.qa.Yva();this.ga.Ec&&this.ta.LC()}Ee(f,b,a,c){b.hierarchy.wz(b);var d=new l.oF(l.i.Md.Iv);this.Ha(d);this.ga.Ec?b.fh?(this.ta.Ee(f,b,a,c),this.Qn(l.i.Md.Iv)):this.Nk(b.hierarchy,b,()=>{var g=
new l.PF(l.i.Md.Iv);g.jg=f;g.uw=a;g.body=l.yB.xD(this.qa,this.ga).Ee(a,f,b);this.hI(g,()=>{this.ta.Ee(f,b,a,c);for(var k=[],m=b.level.yb+1;m<b.hierarchy.ua.length;m++){var n=b.hierarchy.ua.fa(m);n&&(k=k.concat(b.hierarchy.gM(n)))}if(0<k.length){n=[];var p,t;for(m=0;m<k.length;m++)for(t=p=b.hierarchy.za(k[m]);void 0!==p&&void 0!==p.parent;){if(p.parent.ordinal===b.ordinal){n.push(t);break}p=p.parent}this.Dga(g,f,a,n,c)}else this.Qn(g.type)})}):(this.ta.Ee(f,b,a,c),this.Qn(l.i.Md.Iv))}Dga(f,b,a,c,d){if(0<
c.length){var g=c.shift(),k=b.slice(0);k[k.length-1]=g.ordinal;f.jg=k;f.body=l.yB.xD(this.qa,this.ga).Ee(a,k,g);this.hI(f,()=>{this.ta.Ee(k,g,a,d);this.Dga(f,b,a,c,d)})}else this.Qn(f.type)}Vm(f,b,a,c,d){var g=l.yB.xD(this.qa,this.ga);c=new l.oF(l.i.Md.rP);this.Ha(c);this.Dq.cA(b,d,()=>{var k=new l.PF;k.type=l.i.Md.rP;k.jg=f;k.uw=a;k.body=g.Ee(a,f,b,d);this.hI(k,()=>{this.ta.Vm(f,b,a,d);this.Qn(k.type)})},k=>this.qz(k))}Xp(f,b,a,c){b.hierarchy.Z0(b);this.ta.Xp(f,b,a,c);f=new l.oF(l.i.Md.sP);this.Ha(f);
this.Qn(l.i.Md.sP)}select(f=l.i.Md.to){!e.model.Ea.xc.Av||e.model.Ea.xc.wq||e.model.Ea.xc.Vp||e.model.Ea.xc.Zy||0==(new Date).getTime()%378&&e.Va(e.model.Ea.ca.I(e.model.Ea.ca.Rha),e.model.Ea.ca.I(e.model.Ea.ca.qka));var b=new l.oF(f);this.Ha(b);this.ga.Ec?(this.ta.wu(),this.TJa()):(this.ta.select(),this.Qn(f))}lu(f,b=!0){f=f instanceof l.O.Vr?f:this.O.Dx(f);if(e.model.C.F.RO){var a=u.LP.pS(f.Ge,f.A);0==a.px&&e.Va(a.errorMessage)}if(!this.ga.Ec||!f.Qa||e.model.C.F.tu||this.ga.Aa===l.i.ra.API){if(null==
this.O.fd(f.A)){f.Qa&&(a=new u.VJ,f.Ud=a.parse(f.Ge),this.O instanceof l.external.jc.O.jJ&&(f.Ud=u.Ht.FH(f.Ud,this.O.Da)));if(f.Qa&&null==f.Ud)return;this.O.nI&&this.O.zk(f);null!=this.qa&&!this.qa.gr.Bb(f.A)&&f.an&&this.ufa(f);b&&(this.O.Td&&!this.ga.Ec||this.O.Td&&this.ga.Aa==e.u.i.ra.API||this.O.Td&&this.ga.rN&&this.ga.Aa==e.u.i.ra.Cc&&e.model.C.F.tu)&&this.refresh()}else{a=new u.VJ;f.Ud=a.parse(f.Ge);this.O instanceof l.external.jc.O.jJ&&(f.Ud=u.Ht.FH(f.Ud,this.O.Da));if(f.Qa&&null==f.Ud)return;
b=this.O.fd(f.A);b.caption=f.caption;b.fq=f.fq;b.Ge=f.Ge;b.Lk=f.Lk;b.Ud=f.Ud;b.Jn=f.Jn;b.an=f.an;(this.qa.gr.Bb(b.A)||b.an)&&this.ufa(b);(this.O.Td&&!this.ga.Ec||this.O.Td&&this.ga.Aa==e.u.i.ra.API||this.ga.Aa==e.u.i.ra.Cc&&e.model.C.F.tu)&&this.refresh()}this.cb()}}ufa(f){let b=-1;const a=this.qa.gd();for(let c=0;c<a.length;c++)if(f.A==a[c].A){b=c;break}0<=b?(f.index=b,a[b]=f):(a.push(f),f.index=a.length);this.qa.zA(a);this.qa.G6();this.zka(this.qa.Lb,f);this.zka(this.qa.$b,f)}zka(f,b){null!=f.Mf&&
f.Mf.A==b.A&&(f.Mf=b)}qA(f,b=!0){var a=this.O.fd(f);a&&a.Qa&&(this.O.EE(f),this.qa.EE(f),b&&this.O.Td&&this.refresh(),this.cb())}DE(){for(var f=0;f<this.O.Da.length;){var b=this.O.Da.fa(f);b.Qa?this.qA(b.A,!1):f++}this.O.Td&&this.refresh();this.cb()}cb(){e.model.Za.R().Ya(e.model.Za.uQ)}refresh(){this.O.Td?(this.ga.Aa==l.i.ra.EMPTY&&e.v(this.qa)&&this.dM(),this.filter()):this.ga.Aa==l.i.ra.EMPTY&&this.dM()}xl(f,b){(0<f.yv.length||this.qa.hf&&this.qa.rows.Bb(f.A)||this.qa.Xf&&this.qa.Ka.Bb(f.A))&&
f.fn!=f.Zi&&(f.Td=!1);if(!f.We&&!f.Td||null!=f.ic){0==this.OD.length&&this.Dq.xl(f,c=>this.sha(c),c=>this.qz(c));this.OD.Ta(f.A,f);var a=null!=this.UH.getItem(f.A)?this.UH.getItem(f.A):[];a.push(b);this.UH.Ta(f.A,a)}else b(f)}Nk(f,b,a){this.Dq.Nk(f,b,a,c=>this.qz(c))}Aq(f,b,a){this.Dq.BC()?this.Dq.Aq(f,b,a,c=>this.qz(c)):(f=2<f.ua.length?this.iLa(f,b):this.hLa(f,b),a(f))}hLa(f,b){const a=[],c=f.Zi;let d;for(d=0;d<c;d++){if(f.pd.ordinal==d)continue;const g=f.za(d);void 0!==g&&e.P.contains(g.caption,
b)&&a.push(d)}return a}iLa(f,b){var a=[];this.Kda(a,f.pd,b);var c;for(c=0;c<a.length;c++)b=this.vfa(a,f.za(a[c]),c),c+=b;return a}vfa(f,b,a){b=b.parent;var c=0;e.v(b)||b.dc||(-1==f.indexOf(b.ordinal)&&(c++,f.splice(a,0,b.ordinal)),c+=this.vfa(f,b,a));return c}Kda(f,b,a){for(var c=b.children,d=c.length,g=b.hierarchy,k=0;k<d;k++)b=g.za(c[k]),e.P.contains(b.caption,a)&&f.push(b.ordinal),this.Kda(f,b,a)}sha(f){f.Fw();f.Td=!0;this.OD.removeItem(f.A);var b=this.UH.getItem(f.A);if(null!=b)for(var a=0;a<
b.length;a++)(0,b[a])(f);this.UH.removeItem(f.A);0<this.OD.length&&(f=this.OD.fa(0),null!=this.Dq?this.Dq.xl(f,c=>this.sha(c),c=>this.qz(c)):this.OD=null)}S2(f){return f.Aa===l.i.ra.API&&f.Iw}TJa(){if(this.qa.kb)this.Qn();else{var f=this.qa.vc(!0,!0,e.model.C.F.sc);this.g0=f.length;for(var b=0;b<f.length;b++){var a=f.fa(b);this.xl(a,()=>this.XHa())}}}Fga(f){try{this.S2(this.ga)?this.aFa(f):this.jta(f)}catch(b){e.Va(e.model.B.j.rpa+"<br/>"+b.message||b,e.model.B.j.xa,e.ob.xa),this.qz(b)}}XHa(){if(0==
--this.g0){this.ga.Ec&&this.qa.Y4();var f=new l.PF(l.i.Md.to);f.body=l.yB.xD(this.qa,this.ga).select();this.hI(f,()=>{e.model.C.F.sc||this.ga.Aa!=l.i.ra.kg&&this.ga.Aa!=l.i.ra.API?this.Qn(f.type):(e.Ca(!0,e.model.B.j.mg),this.Ega(()=>{this.Fga(()=>{this.Ega(()=>{this.Fga(()=>{this.Qn(f.type)})})})}))})}}aFa(f){var b=this.qa.td(l.i.ha.Ia).ld;const a=this.qa.td(l.i.ha.Oa).ld,c={cols:[],rows:[]};let d=0;for(var g=0;g<b.length;g++){const n=b[g].length-1;d=n>d?n:d;void 0==c.rows[n]&&(c.rows[n]=[]);c.rows[n].push(g)}for(b=
0;b<a.length;b++)g=a[b].length-1,d=g>d?g:d,void 0==c.cols[g]&&(c.cols[g]=[]),c.cols[g].push(b);let k=0;const m=()=>{k++;k>d?f():this.iFa(c,k,m)};m()}iFa(f,b,a){const c=new u.FB;var d=this.qa.td(l.i.ha.Ia).ld;const g=this.qa.td(l.i.ha.Oa).ld;var k=f.rows[b];f=f.cols[b];let m=(k?k.length:0)+(f?f.length:0);if(k)for(b=0;b<k.length;b++){const n=d[k[b]].slice(1),p=this.qa.wb.fa(n.length-1);if(p&&null!=p.ic){const t=p.za(n[n.length-1]);null!=t&&this.ta.Vm(n.slice(0,-1),t.parent,l.i.ha.Ia,p.zf)}this.ta.wh(n)?
m--:(c.add((t,r)=>{this.ta.expand(r,l.i.ha.Ia,void 0);t()},n),this.YN(n,l.i.ha.Ia,void 0,(t=!1)=>{t?(c.pop(),this.ta.expand(n,l.i.ha.Ia,void 0),--m):(1===m&&c.Ze(a),m--)}))}if(f)for(d=0;d<f.length;d++){const n=g[f[d]].slice(1);(k=this.qa.Fb.fa(n.length-1))&&null!=k.ic&&(b=k.za(n[n.length-1]),null!=b&&this.ta.Vm(n.slice(0,-1),b.parent,l.i.ha.Oa,k.zf));this.ta.Gj(n)?--m:(c.add((p,t)=>{this.ta.expand(t,l.i.ha.Oa,void 0);p()},n),this.YN(n,l.i.ha.Oa,void 0,(p=!1)=>{p?(c.pop(),this.ta.expand(n,l.i.ha.Oa,
void 0),--m):(1===m&&c.Ze(a),m--)}))}(c.kb()||0===m)&&a()}jta(f){const b=new u.FB;for(var a=this.qa.td(l.i.ha.Ia).ld,c=0;c<a.length;c++){var d=a[c];b.add((g,k)=>{var m=this.qa.wb.fa(k.length-1);if(m&&null!=m.ic){var n=m.za(k[k.length-1]);null!=n&&this.ta.Vm(k.slice(0,-1),n.parent,l.i.ha.Ia,m.zf)}this.ta.wh(k)?g():this.YN(k,l.i.ha.Ia,void 0,()=>{this.ta.expand(k,l.i.ha.Ia,void 0);g()})},d.slice(1))}a=this.qa.td(l.i.ha.Oa).ld;for(c=0;c<a.length;c++)d=a[c],b.add((g,k)=>{var m=this.qa.Fb.fa(k.length-
1);if(m&&null!=m.ic){var n=m.za(k[k.length-1]);null!=n&&this.ta.Vm(k.slice(0,-1),n.parent,l.i.ha.Oa,m.zf)}this.ta.Gj(k)?g():this.YN(k,l.i.ha.Oa,void 0,()=>{this.ta.expand(k,l.i.ha.Oa,void 0);g()})},d.slice(1));b.Ze(f)}Ega(f){try{this.S2(this.ga)?this.ZEa(f):this.ita(f)}catch(b){e.Va(e.model.B.j.qpa+"<br/>"+b.message||b,e.model.B.j.xa,e.ob.xa),this.qz(b)}}ZEa(f){if(this.ga.Aa!==l.i.ra.API||l.external.jc.O.fo.VH){var b=this.qa.td(l.i.ha.Ia).ue;const c=this.qa.td(l.i.ha.Oa).ue,d={cols:[],rows:[]};let g=
0;for(var a=0;a<b.length;a++){const n=b[a][1].split("].[").length;g=n>g?n:g;void 0==d.rows[n]&&(d.rows[n]=[]);d.rows[n].push(a)}for(b=0;b<c.length;b++)a=c[b][1].split("].[").length,g=a>g?a:g,void 0==d.cols[a]&&(d.cols[a]=[]),d.cols[a].push(b);let k=0;const m=()=>{k++;k>g?f():this.hFa(d,k,m)};m()}else f()}hFa(f,b,a){const c=new u.FB;var d=this.qa.td(l.i.ha.Ia).ue;const g=this.qa.td(l.i.ha.Oa).ue;var k=f.rows[b];f=f.cols[b];let m=(k?k.length:0)+(f?f.length:0);if(k)for(b=0;b<k.length;b++){let n=d[k[b]].slice(0);
const p=this.qa.wb.fa(n.length-3);if(e.v(p)){m--;continue}const t=p.Ib(n[1]);null==t?m--:(n=n.slice(2),this.ta.Ih(n,t)||(c.add((r,v)=>{this.ta.Ee(v,t,l.i.ha.Ia,void 0);r()},n),this.bW(n,t,l.i.ha.Ia,(r=!1)=>{r?(c.pop(),this.ta.Ee(n,t,l.i.ha.Ia,void 0)):1===m&&c.Ze(a);m--})))}if(f)for(d=0;d<f.length;d++){let n=g[f[d]].slice(0);k=this.qa.Fb.fa(n.length-3);if(e.v(k)){m--;continue}const p=k.Ib(n[1]);null==p?m--:(n=n.slice(2),this.ta.Fj(n,p)||(c.add((t,r)=>{this.ta.Ee(r,p,l.i.ha.Oa,void 0);t()},n),this.bW(n,
p,l.i.ha.Oa,t=>{t?(c.pop(),this.ta.Ee(n,p,l.i.ha.Oa,void 0)):1===m&&c.Ze(a);m--})))}(c.kb()||0===m)&&a()}ita(f){if(this.ga.Aa!==l.i.ra.API||l.external.jc.O.fo.VH){for(var b=new u.FB,a=this.qa.td(l.i.ha.Ia).ue,c=0;c<a.length;c++)b.add((d,g)=>{var k=this.qa.wb.fa(g.length-3);if(e.v(k))d();else{var m=k.Ib(g[1]);g=g.slice(2);null==m?d():this.ta.Ih(g,m)?d():this.bW(g,m,l.i.ha.Ia,()=>{this.ta.Ee(g,m,l.i.ha.Ia,void 0);d()})}},a[c].slice(0));a=this.qa.td(l.i.ha.Oa).ue;for(c=0;c<a.length;c++)b.add((d,g)=>
{var k=this.qa.Fb.fa(g.length-3);if(e.v(k))d();else{var m=k.Ib(g[1]);g=g.slice(2);null==m?d():this.ta.Fj(g,m)?d():this.bW(g,m,l.i.ha.Oa,()=>{this.ta.Ee(g,m,l.i.ha.Oa,void 0);d()})}},a[c].slice(0));b.Ze(f)}else f()}Ria(f){e.ve(()=>{e.model.Za.R().Ya(e.model.Za.G7,null,f)},1)}Wd(f){this.Dq.Wd(f);this.dM()}wS(){if(0<this.PL.length){for(let f=0;f<this.PL.length;f++)this.PL[f].cancel();this.PL=[]}}static dispose(){l.Kt.dispose();l.SY.dispose();l.external.Hb.mj.u$.dispose();l.external.jc.O6.dispose();u.Ql.cancel();
if(h.instance){h.instance.qa=null;try{h.instance.ta.wu()}catch(f){}h.instance.ta=null;try{h.instance.wS(),h.instance.Tm.cancel()}catch(f){}h.instance.Tm=null;try{h.instance.Dq.cancel()}catch(f){}h.instance.Dq=null;try{h.instance.gu.cancel()}catch(f){}h.instance.gu=null;try{h.instance.O.clear()}catch(f){}h.instance.Vd();h.instance.O=null;h.instance=null}}}l.Ma=h})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){class h extends x.Pa{constructor(){super("div");this.G.cm()}nb(){this.G.html(e.model.Ea.ca.I(e.model.Ea.ca.mX));this.G.element.setAttribute("style",`z-index:1!important;left:${(l.Sb.Wx-this.cg())/2}px!important;top:${(l.Sb.KD-this.zd())/2}px!important;color:#ffffff!important;position:absolute!important;pointer-events:none;display:block!important;font-size:60px!important;text-shadow:0 0 10px #000000 !important;text-align:center!important;opacity:0.2!important;`)}}l.isa=h})(e.K||
(e.K={}))})(q||(q={}));
(function(e){class l{constructor(f,b){this.FU=!1;this.jc=null;this.J0=[];this.L0=[];this.K0=[];this.I0=[];this.I4=()=>{this.ma&&this.ma.Fa&&(this.ma.Fa.GE==e.model.Xb.Vc.si||this.ma.Fa.GE==e.model.Xb.Vc.hl?e.model.Za.R().Ha(new e.model.jd(e.model.Za.uQ)):this.ma.ja&&this.ma.ja.ga&&this.ma.ja.ga.Ec&&this.rd(()=>this.I4(),2))};l.instance=this;this.jc=b;e.v(f)&&(f={});if(0!=u.VDa()||0!=confirm("Flexmonster Pivot Table is not completely supported by this version of browser. Please update your browser. Continue anyway?")){b="flexmonster/";
void 0!==f.componentFolder&&(b=f.componentFolder);u.Gy.h0=b;u.uo.O_=b;window.trustedTypes&&!window.flexmonsterTrustedTypesPolicy&&(window.flexmonsterTrustedTypesPolicy=window.trustedTypes.createPolicy("flexmonster",{createHTML:c=>c,createScriptURL:c=>c}));var a;f.container instanceof HTMLElement?a=f.container:e.v(f.container)||(a=document.getElementById("#"==f.container.substr(0,1)?f.container.substring(1):f.container));null==a?(f=0==e.ka(f.container)?"Flexmonster:\nUnable to create the component. DOM element with id '"+
f.container+"' is not found.":"Flexmonster:\nUnable to create the component. DOM element is null.",console.error(f),alert(f)):(b=this.Xea(a),e.v(b)||void 0===b.flexmonster||(b.flexmonster.dispose(),b.flexmonster=void 0),this.ma=e.model.Wa.R(),this.ma.Fa.N(e.model.Xb.Vc.MF,()=>this.dIa()),this.ma.Fa.N(e.model.Xb.Vc.vy,()=>this.A4()),this.ma.Fa.N(e.model.Xb.Vc.ro,()=>this.rE()),this.ma.Fa.N(e.model.Xb.Vc.jK,()=>this.rIa()),this.ma.Fa.N(e.model.Xb.Vc.ds,()=>this.PN()),this.ma.Fa.N(e.model.Xb.Vc.QF,()=>
this.K4()),this.ma.Fa.N(e.model.Xb.Vc.DF,()=>this.y4()),this.ma.Fa.N(e.model.Xb.Vc.uJ,()=>this.rq()),this.ma.Fa.N(e.model.Xb.Vc.sJ,c=>this.jha(c)),this.ma.Fa.N(e.model.Xb.Vc.tJ,()=>this.X3()),this.ma.Fa.N(e.model.Xb.Vc.Wv,()=>this.Dr()),this.ma.Fa.N(e.model.Xb.Vc.kY,()=>this.GHa()),this.ma.Fa.N(e.model.Xb.Vc.H9,()=>this.vha()),this.ma.Fa.N(e.model.Xb.Vc.G9,c=>this.uha(c)),this.ma.Fa.N(e.model.Xb.Vc.EF,()=>this.FHa()),this.ma.Fa.N(e.model.Xb.Vc.FF,()=>this.rI()),this.ma.Fa.N(e.model.Xb.Vc.UJ,()=>this.IHa()),
this.ma.Fa.N(e.model.Xb.Vc.NX,()=>this.c4()),this.ma.Fa.N(e.model.Xb.Vc.zB,()=>this.vIa()),this.ma.Fa.N(e.model.Xb.Vc.hl,()=>this.qE()),this.ma.Fa.N(e.model.Xb.Vc.Ot,c=>this.G4(c)),this.ma.N(e.model.Xb.Vc.rk,()=>this.I4()),this.ma.Fa.N(e.model.Xb.Vc.rk,()=>this.I4()),this.ma.Fa.N(e.model.Xb.Vc.si,()=>this.J4()),this.ma.N(h.TX,()=>this.$Ga()),this.ma.N(h.lg,()=>this.YGa()),this.ma.N(h.yY,()=>this.jIa()),this.ma.N(h.xB,()=>this.iIa()),this.Sg=new e.K.Sb(x.Ga.Yb(a),f),this.Sg.N(e.K.Vi.ly,c=>this.dGa(c)),
this.Sg.N(e.K.Vi.CY,()=>this.qIa()),this.ma.RD(f),this.Bua(f.accessibility),this.Xea(this.Sg.rf.element).flexmonster=this.jc,this.FU=!0,this.ma.Fa.Ya(e.model.Xb.Vc.x7))}}Bua(f){e.v(f)||"object"!==typeof f||(e.v(f.keyboardMode)||this.Sg.gja(!0===f.keyboardMode),e.v(f.highContrastTheme)||this.Sg.FLa(f.highContrastTheme))}Xea(f){return void 0===f.uielement?f:f.uielement}get mc(){return this.ma&&this.ma.Fa&&this.ma.Fa.mc}get WU(){return this.ma&&this.ma.Fa&&this.ma.Fa.WU}get $U(){return this.ma&&this.ma.Fa&&
this.ma.Fa.$U}Dia(){e.ve(()=>{for(;0<this.K0.length;)this.K0.shift().call(this)},1)}rd(f,b=10){e.ve(()=>{0==b?this.J0.push(f):1==b?this.L0.push(f):2==b?this.I0.push(f):this.K0.push(f)},1)}dIa(){e.model.Za.R().Ha(new e.model.jd(e.model.Za.MF))}A4(){e.model.Za.R().Ha(new e.model.jd(e.model.Za.vy))}rE(){e.model.Za.R().Ha(new e.model.jd(e.model.Za.ro))}rIa(){e.model.Za.R().Ha(new e.model.jd(e.model.Za.jK))}PN(){e.model.Za.R().Ha(new e.model.jd(e.model.Za.ds))}K4(){for(this.ma&&this.ma.Fa&&this.ma.Fa.Hf==
e.model.Xb.Ep.INIT&&e.ve(()=>{e.model.Za.R().Ha(new e.model.jd(e.model.Za.S9))},1);0<this.J0.length;)this.J0.shift().call(this)}FHa(){e.model.Za.R().Ha(new e.model.jd(e.model.Za.EF))}rI(){e.model.Za.R().Ha(new e.model.jd(e.model.Za.FF))}IHa(){e.model.Za.R().Ha(new e.model.jd(e.model.Za.UJ))}y4(){e.model.Za.R().Ha(new e.model.jd(e.model.Za.DF))}rq(){e.model.Za.R().Ha(new e.model.jd(e.model.Za.uJ))}X3(){e.model.Za.R().Ha(new e.model.jd(e.model.Za.tJ))}jha(f){e.model.Za.R().Ha(new e.model.jd(e.model.Za.sJ,
f.data))}Dr(){for(;0<this.L0.length;)this.L0.shift().call(this)}GHa(){e.model.Za.R().Ha(new e.model.jd(e.model.Za.Z8))}vha(){e.model.Za.R().Ha(new e.model.jd(e.model.Za.J9))}uha(f){e.model.Za.R().Ha(new e.model.jd(e.model.Za.I9,f.data))}c4(){}vIa(){e.model.Za.R().Ha(new e.model.jd(e.model.Za.zB))}qE(){for(e.model.Za.R().Ha(new e.model.jd(e.model.Za.hl));0<this.I0.length;)this.I0.shift().call(this);e.model.Za.R().Ha(new e.model.jd(e.model.Za.o$))}G4(f){e.model.Za.R().Ha(new e.model.jd(e.model.Za.Ot,
f.data))}J4(){}dGa(f){e.model.Za.R().Ha(new e.model.jd(e.model.Za.ly,f.data))}qIa(){this.mc&&(this.ma.Fa.Hf!==e.model.Xb.Ep.Qc?(this.ma.Fa.Hf=e.model.Xb.Ep.Qc,e.ve(()=>{this.Dia();e.model.Za.R().Ha(new e.model.jd(e.model.Za.si))},1)):e.ve(()=>{this.Dia()},1))}$Ga(){e.model.Za.R().Ha(new e.model.jd(e.model.Za.Z7))}YGa(){e.ve(()=>{e.model.Za.R().Ha(new e.model.jd(e.model.Za.lg))},1)}jIa(){e.model.Za.R().Ha(new e.model.jd(e.model.Za.M9))}iIa(){e.ve(()=>{e.model.Za.R().Ha(new e.model.jd(e.model.Za.xB))},
1)}H1(){return this.mc?this.ma.H1():null}L1(f){return this.mc?this.ma.L1(f):null}$R(f){this.mc?null!=f&&this.ma.$R(f):this.rd(()=>this.$R(f))}kW(f){this.mc?this.ma.kW(f):this.rd(()=>this.kW(f))}jW(){this.mc?this.ma.jW():this.rd(()=>this.jW())}open(){this.ma.open()}load(f,b){this.ma.load(f,b)}Qs(f="object"){let b="object";f instanceof Object?f.hasOwnProperty("type")&&(b=f.type,b=b.toLowerCase()):f&&(b=f.toLowerCase());f=this.ma.Qs(f instanceof Object?f:{});return e.v(f)||f.kb?null:"xmlstring"==b?z.ba.Lc(f.op(),
!0):f.Sa()}Qx(f){if(this.mc){if("string"==typeof f)try{if(-1<f.indexOf("<config>")){var b=z.ba.create(f);f=e.model.hb.By.Jk(b)}else f=JSON.parse(f)}catch(a){e.Va(e.model.B.j.p9,e.model.B.j.xa,e.ob.xa);return}this.ma.Qx({report:f})}else this.rd(()=>this.Qx(f))}getData(f,b,a){this.mc?this.ma.getData(f,b,a):this.rd(()=>this.getData(f,b,a))}save(f={filename:"report.json"},b=null,a=null,c=null,d=!1){var g=a;this.mc?(f instanceof Object&&f.hasOwnProperty("callbackHandler")&&(g=f.callbackHandler),this.ma.save(f,
b,null!=g?(k,m)=>g(k,m):null,c,d)):this.rd(()=>this.save(f,b,a,c,d))}Wd(f,b){null!=f&&(e.v(b)?b={partial:!1}:"boolean"===typeof b&&(b={partial:b}),this.WU?this.ma.Wd(f,b):this.rd(()=>this.Wd(f,b),0))}YG(f){null!=f&&(this.WU?this.ma.YG(f):this.rd(()=>this.YG(f),0))}gua(f){this.Wd({data:f})}lu(f){this.mc?null!=f&&this.ma.lu(f):this.rd(()=>this.lu(f))}qA(f){this.mc?this.ma.qA(f):this.rd(()=>this.qA(f))}DE(){this.mc?this.ma.DE():this.rd(()=>this.DE())}clear(){this.ma&&this.ma.clear()}dispose(){e.Tn.dispose();
e.Ik.dispose();e.vM.dispose();e.Ora.dispose();u.uo.dispose();this.jc=null;this.ma.dispose();this.Sg.dispose();this.ma=this.Sg=null;l.instance=null;e.model.Za.dispose()}refresh(){this.mc?this.Sg.nb():this.rd(()=>this.refresh())}OW(){this.mc?this.Sg.OW():this.rd(()=>this.OW())}tO(f="column",b=!1){this.mc?this.Sg.tO(f,b):this.rd(()=>this.tO(f,b))}PW(f="column",b="bottom",a=!1){this.mc?this.Sg.PW(f,b,a):this.rd(()=>this.PW(f,b,a))}mT(f=!0,b="all"){this.mc?this.ma.mT(f,b):this.rd(()=>this.mT(f,b))}Uw(f){this.mc?
this.Sg.Uw(f):this.rd(()=>this.Uw(f))}CS(){this.mc?this.ma.CS():this.rd(()=>this.CS())}Ew(f){this.mc?this.Sg.Ew(f):this.rd(()=>this.Ew(f))}print(f=null){this.mc?this.ma.print(e.model.kt.Q9.xb(f)):this.rd(()=>this.print(f))}Gk(f,b=null,a=null){if(this.mc){if(null!=f){var c=null!=a?(...d)=>a.apply(null,d):null;this.ma.Gk(f,e.model.Dc.e8.xb(b),c)}}else this.rd(()=>this.Gk(f,b,a))}Ym(f){return this.mc?this.ma.Ym(f):null}uI(f){this.mc&&this.Sg.$Ia(f)}Il(f,b){this.mc?this.ma.Il(f,b):this.rd(()=>this.Il(f,
b))}xu(f){this.mc?this.ma.xu(f):this.rd(()=>this.xu(f))}on(f,b){e.model.Za.R().N(f,b)}$Fa(f,b){null==b?e.model.Za.R().Vd(f):e.model.Za.R().rb(f,b)}MH(){return this.mc?this.ma.MH():null}m0(f){new Promise(b=>{this.FU?b(f()):this.ma.Fa.N(e.model.Xb.Vc.x7,()=>{b(f())})})}XG(f){return new Promise(b=>{this.mc?b(f()):this.ma.Fa.N(e.model.Xb.Vc.si,()=>{b(f())})})}vCa(){return this.XG(()=>this.ma.MH())}AH(){return this.mc?this.ma.AH():null}hBa(){return this.XG(()=>this.ma.AH())}CD(){return this.mc?this.ma.CD():
null}hCa(){return this.XG(()=>this.ma.CD())}gd(){return this.mc?this.ma.gd():null}VBa(){return this.XG(()=>this.ma.gd())}Os(){return this.mc?this.ma.Os():null}UAa(){return this.XG(()=>this.ma.Os())}fN(){return this.Sg.fN}eN(){return this.Sg.eN}VW(f){this.$U?this.ma.VW(f):this.rd(()=>this.VW(f),1)}YW(f,b,a,c){this.mc?this.ma.YW(f,b,a,c):this.rd(()=>this.YW(f,b,a,c))}AO(f,b){this.$U?this.ma.AO(f,b):this.rd(()=>this.AO(f,b),1)}SE(f,b){this.mc?this.ma.SE(f,b):this.rd(()=>this.SE(f,b))}EW(f){this.mc?this.ma.EW(f):
this.rd(()=>this.EW(f))}UN(f,b){this.mc?this.Sg.UN(f,b):this.rd(()=>this.UN(f,b))}g2(f){return this.mc?this.ma.g2(f):null}S1(){return this.mc?this.ma.S1():null}gx(){return this.mc?this.ma.gx():null}Cq(f){e.v(f)||(this.mc?this.ma.Cq(f):this.rd(()=>this.Cq(f)))}Hi(f,b,a){if(this.mc)return this.ma.Hi(f,b,a);this.rd(()=>this.Hi(f,b,a))}c2(f,b){return this.ma.c2(f,b)}ID(f,b){if(this.mc)return this.ma.ID(f,b);this.rd(()=>this.ID(f,b))}OCa(f){return new Promise(b=>{this.ma.SH(f,()=>{this.ma.ID(f,a=>b(a))})})}SH(f,
b){this.mc?this.ma.SH(f,b):this.rd(()=>this.SH(f,b))}NCa(f){return new Promise(b=>{this.ma.SH(f,a=>b(a))})}aN(f,b,a){this.mc?this.ma.aN(f,b,a):this.rd(()=>this.aN(f,b,a))}LCa(f,b){return new Promise(a=>{this.ma.aN(f,b,c=>a(c))})}bN(f,b,a,c){this.mc?this.ma.bN(f,b,a,c):this.rd(()=>this.bN(f,b,a,c))}MCa(f,b,a){return new Promise(c=>{this.ma.bN(f,b,a,d=>c(d))})}yS(f,b,a,c=null,d=null){this.mc?this.ma.yS(f,b,c,d,a):this.rd(()=>this.yS(f,b,c,d,a))}rO(f){return this.ma.rO(f)}tW(f){this.mc?null!=f&&this.ma.tW(e.model.hb.vo.xb(f)):
this.rd(()=>this.tW(f))}tH(){return this.mc?this.ma.tH():null}TAa(){return this.XG(()=>this.ma.tH())}nW(f){this.mc?this.ma.nW(f):this.rd(()=>this.nW(f))}Eh(f,b){return this.mc?this.ma.Eh(f,b):null}OE(f,b,a){this.mc?null!=f&&this.ma.OE(f,b,a):this.rd(()=>this.OE(f,b))}ag(f,b){return this.mc?this.Sg.ag(f,b):null}OH(){return this.mc?this.Sg.OH():null}AA(f,b){this.mc?this.Sg.AA(f,b):this.rd(()=>this.AA(f,b))}QH(){return this.mc?this.ma.QH():null}MW(f){this.mc?this.ma.MW(f):this.rd(()=>this.MW(f))}FE(){this.m0(()=>
this.Sg.FE())}SV(){this.m0(()=>this.Sg.SV())}GL(){this.m0(()=>this.Sg.GL())}aya(f){e.K.Y.W.ne.Lw=f;this.FU&&this.refresh()}Zl(f){e.K.Dd.Gv.YC=f;this.FU&&this.refresh()}bya(f){e.K.Y.mP.YL=f}$xa(f){e.u.external.jc.SA.XL=f}P1(f,b){this.ma.P1(f,b)}Kr(f){this.mc?this.Sg.Kr(f):this.rd(()=>this.Kr(f))}ot(f){this.mc?this.Sg.ot(f):this.rd(()=>this.ot(f))}nT(f,b,a){this.mc?this.Sg.nT(f,b,a):this.rd(()=>this.nT(f,b,a))}DS(f,b,a){this.mc?this.Sg.DS(f,b,a):this.rd(()=>this.DS(f,b,a))}jT(f,b,a,c){this.mc?this.Sg.jT(f,
b,a,c):this.rd(()=>this.jT(f,b,a,c))}iT(f,b,a,c){this.mc?this.Sg.iT(f,b,a,c):this.rd(()=>this.iT(f,b,a,c))}}l.Iq="2.9.86";l.bP="105314838432224";e.Cg=l;class h{}h.yY="print";h.xB="printcomplete";h.TX="export";h.lg="exportcomplete";e.ef=h})(q||(q={}));
function PivotApi(e){q.v(window.flexmonster)||(window.flexmonster=null);var l={version:q.Cg.Iq},h=new q.Cg(e,l);l.alert=b=>{if(void 0!=b.message&&""!=b.message||void 0!=b.title&&""!=b.title){var a=void 0!=b.message?q.model.Tb.valid(b.message)?b.message:q.model.Tb.validate(b.message):"",c=void 0!=b.title?q.model.Tb.valid(b.title)?b.title:q.model.Tb.validate(b.title):"",d=b.type==q.ob.nk||b.type==q.ob.mn||b.type==q.ob.xa||b.type==q.ob.OP?b.type:q.ob.nk,g=null,k=null;if(void 0!=b.buttons)for(var m=0;m<
b.buttons.length;m++){var n=b.buttons[m],p=n.label;p=q.model.Tb.valid(p)?p:q.model.Tb.validate(p);null==g&&(g=[]);g.push(p);n="function"==typeof n.handler?n.handler:null;null==k&&(k=[]);k.push(n)}q.Va(a,c,d,g,k,void 0==b.blocking||1!=b.blocking&&0!=b.blocking?!1:b.blocking)}};l.openCalculatedValueEditor=(b,a)=>h.UN(b,a);l.getAllConditions=()=>h.H1();l.getCondition=b=>h.L1(b);l.addCondition=b=>h.$R(b);l.removeCondition=b=>h.kW(b);l.removeAllConditions=()=>h.jW();l.open=()=>h.open();l.load=(b,a)=>h.load(b,
a);l.getReport=(b="object")=>h.Qs(b);l.setReport=b=>h.Qx(b);l.getData=(b,a,c)=>h.getData(b,a,c);l.save=(b={filename:"report.json"},a=null,c=null,d=null,g=!1)=>h.save(b,a,c,d,g);l.updateData=(b,a)=>h.Wd(b,a);l.connectTo=b=>h.YG(b);l.addJSON=b=>h.gua(b);l.addCalculatedMeasure=b=>h.lu(b);l.removeCalculatedMeasure=b=>h.qA(b);l.removeAllCalculatedMeasures=()=>h.DE();l.clear=()=>h.clear();l.dispose=()=>{q.v(window.flexmonster)||(window.flexmonster=null);h.dispose()};l.refresh=()=>h.refresh();l.showGrid=
()=>h.OW();l.showCharts=(b="column",a=!1)=>h.tO(b,a);l.showChart=(b="column",a=!1)=>h.tO(b,a);l.showGridAndCharts=(b="column",a="bottom",c=!1)=>h.PW(b,a,c);l.expandAllData=(b=!0,a="all")=>h.mT(b,a);l.expandData=b=>h.Uw(b);l.collapseAllData=()=>h.CS();l.collapseData=b=>h.Ew(b);l.expandCell=(b,a,c)=>h.nT(b,a,c);l.collapseCell=(b,a,c)=>h.DS(b,a,c);l.drillUpCell=(b,a,c,d)=>h.jT(b,a,c,d);l.drillDownCell=(b,a,c,d)=>h.iT(b,a,c,d);l.print=(b=null)=>h.print(b);l.exportTo=(b,a=null,c=null)=>h.Gk(b,a,c);l.openFilter=
b=>h.uI(b);l.getFilter=b=>h.Ym(b);l.setFilter=(b,a)=>h.Il(b,a);l.clearFilter=b=>h.xu(b);l.on=(b,a)=>h.on(b,a);l.off=(b,a)=>h.$Fa(b,a);l.getRows=()=>h.MH();l.getRowsAsync=()=>h.vCa();l.getColumns=()=>h.AH();l.getColumnsAsync=()=>h.hBa();l.getPages=()=>h.CD();l.getReportFilters=()=>h.CD();l.getReportFiltersAsync=()=>h.hCa();l.getMeasures=()=>h.gd();l.getMeasuresAsync=()=>h.VBa();l.getAllMeasures=()=>h.Os();l.getAllMeasuresAsync=()=>h.UAa();l.sortFieldsList=b=>h.VW(b);l.sortValues=(b,a,c,d)=>h.YW(b,
a,c,d);l.sortingMethod=(b,a)=>h.AO(b,a);l.setSort=(b,a)=>h.SE(b,a);l.getSort=b=>h.g2(b);l.setFlatSort=b=>h.EW(b);l.getFlatSort=()=>h.S1();l.getOptions=()=>h.gx();l.setOptions=b=>h.Cq(b);l.getMembers=(b,a,c)=>h.Hi(b,a,c);l.getMembersAsync=(b,a)=>h.c2(b,a);l.gridRowCount=()=>h.fN();l.gridColumnCount=()=>h.eN();l.getXMLAProviderName=(b,a)=>h.ID(b,a);l.getXMLAProviderNameAsync=b=>h.OCa(b);l.getXMLADataSources=(b,a)=>h.SH(b,a);l.getXMLADataSourcesAsync=b=>h.NCa(b);l.getXMLACatalogs=(b,a,c)=>h.aN(b,a,c);
l.getXMLACatalogsAsync=(b,a)=>h.LCa(b,a);l.getXMLACubes=(b,a,c,d)=>h.bN(b,a,c,d);l.getXMLACubesAsync=(b,a,c)=>h.MCa(b,a,c);l.clearXMLACache=(b,a,c,d=null,g=null)=>h.yS(b,a,c,d,g);l.shareReport=b=>h.rO(b);l.getElasticIndices=(b,a)=>h.P1(b,a);l.runQuery=b=>h.tW(b);l.getAllHierarchies=()=>h.tH();l.getAllHierarchiesAsync=()=>h.TAa();l.replaceHierarchyCaption=b=>h.nW(b);l.getFormat=(b,a)=>h.Eh(b,a);l.setFormat=(b,a,c)=>h.OE(b,a,c);l.getCell=(b,a)=>h.ag(b,a);l.getSelectedCell=()=>h.OH();l.setSelectedCell=
(b,a)=>h.AA(b,a);l.removeSelection=()=>h.FE();l.getTableSizes=()=>h.QH();l.setTableSizes=b=>h.MW(b);l.openFieldsList=()=>h.SV();l.closeFieldsList=()=>h.GL();l.scrollToRow=b=>h.Kr(b);l.scrollToColumn=b=>h.ot(b);l.customizeCell=b=>h.aya(b);l.customizeChartElement=b=>h.Zl(b);l.customizeContextMenu=b=>h.bya(b);l.customizeAPIRequest=b=>h.$xa(b);if(void 0!==window.FlexmonsterHighcharts){l.highcharts={instance:l};for(var f in window.FlexmonsterHighcharts)l.highcharts[f]=window.FlexmonsterHighcharts[f]}if(void 0!==
window.FlexmonsterFusioncharts)for(f in l.fusioncharts={instance:l},window.FlexmonsterFusioncharts)l.fusioncharts[f]=window.FlexmonsterFusioncharts[f];if(void 0!==window.FlexmonsterGooglecharts)for(f in l.googlecharts={instance:l},window.FlexmonsterGooglecharts)l.googlecharts[f]=window.FlexmonsterGooglecharts[f];if(void 0!==window.FlexmonsterAmcharts)for(f in l.amcharts={instance:l},window.FlexmonsterAmcharts)l.amcharts[f]=window.FlexmonsterAmcharts[f];q.v(window.flexmonster)||q.v(window.flexmonster.embedPivotComponent)||
(l.embedPivotComponent=window.flexmonster.embedPivotComponent);return window.flexmonster=l};
;return PivotApi(a)}});
void 0!==window.jQuery&&(window.jQuery.fn.flexmonster=function(a){a=a||{};a.container=this.get(0);a=window.Flexmonster?window.Flexmonster(a):window.PivotApi(a);this.data("flexmonster",a);return a});
void 0!==window.angular&&window.angular.module("flexmonster",[]).directive("fmPivot",function(){function g(a,d){void 0!==a.fmComponentFolder&&(d.componentFolder=a.fmComponentFolder);void 0!==a.fmWidth&&(d.width=a.fmWidth);void 0!==a.fmHeight&&(d.height=a.fmHeight);if(void 0!==a.fmToolbar){var e=a.fmToolbar;d.toolbar=!0===e||"true"==e||"on"==e}void 0!==a.fmLicenseKey&&(d.licenseKey=a.fmLicenseKey)}return{restrict:"A",scope:{report:"=fmReport",global:"=fmGlobal",accessibility:"=fmAccessibility",customizeAPIRequest:"&fmCustomizeAPIRequest",
customizeCell:"&fmCustomizeCell",customizeChartElement:"&fmCustomizeChartElement",customizeContextMenu:"&fmCustomizeContextMenu",cellclick:"&fmCellClick",celldoubleclick:"&fmCellDoubleClick",dataerror:"&fmDataError",datafilecancelled:"&fmDataFileCancelled",dataloaded:"&fmDataLoaded",datachanged:"&fmDataChanged",fieldslistclose:"&fmFieldsListClose",fieldslistopen:"&fmFieldsListOpen",filteropen:"&fmFilteropen",fullscreen:"&fmFullscreen",loadingdata:"&fmLoadingData",loadinglocalization:"&fmLoadingLocalization",
loadingolapstructure:"&fmLoadingOlapStructure",loadingreportfile:"&fmLoadingReportFile",localizationerror:"&fmLocalizationError",localizationloaded:"&fmLocalizationLoaded",olapstructureerror:"&fmOlapStructureError",olapstructureloaded:"&fmOlapStructureLoaded",openingreportfile:"&fmOpeningReportFile",querycomplete:"&fmQueryComplete",queryerror:"&fmQueryError",ready:"&fmReady",reportchange:"&fmReportChange",reportcomplete:"&fmReportComplete",reportfilecancelled:"&fmReportFileCancelled",reportfileerror:"&fmReportFileError",
reportfileloaded:"&fmReportFileLoaded",runningquery:"&fmRunningQuery",unauthorizederror:"&fmUnauthorizedError",update:"&fmUpdate",beforetoolbarcreated:"&fmBeforeToolbarCreated",beforegriddraw:"&fmBeforeGridDraw",aftergriddraw:"&fmAfterGridDraw",afterchartdraw:"&fmAfterChartDraw",chartclick:"&fmChartClick",drillthroughopen:"&fmDrillThroughOpen",drillthroughclose:"&fmDrillThroughClose"},link:function(a,d,e,b){b={};b.container=d[0];g(e,b);a.customizeAPIRequest&&(b.customizeAPIRequest=function(c){return a.customizeAPIRequest({request:c})});
a.customizeCell&&(b.customizeCell=function(c,f){return a.customizeCell({html:c,data:f})});a.customizeChartElement&&(b.customizeChartElement=function(c,f){return a.customizeChartElement({element:c,data:f})});a.customizeContextMenu&&(b.customizeContextMenu=function(c,f,h){return a.customizeContextMenu({items:c,data:f,viewType:h})});a.cellclick&&(b.cellclick=function(c){a.cellclick({cell:c})});a.celldoubleclick&&(b.celldoubleclick=function(c){a.celldoubleclick({cell:c})});b.dataerror&&(b.dataerror=function(c){a.dataerror({event:c})});
b.datafilecancelled=a.datafilecancelled;b.dataloaded=a.dataloaded;b.datachanged&&(b.datachanged=function(c){a.datachanged({event:c})});b.fieldslistclose=a.fieldslistclose;b.fieldslistopen=a.fieldslistopen;b.filterclose=a.filterclose;b.filteropen&&(b.filteropen=function(c){a.filteropen({params:c})});b.drillthroughclose=a.drillthroughclose;b.drillthroughopen&&(b.drillthroughopen=function(c){a.drillthroughopen({cell:c})});b.fullscreen&&(b.fullscreen=function(c){a.fullscreen({fullScreenMode:c})});b.loadingdata=
a.loadingdata;b.loadinglocalization=a.loadinglocalization;b.loadingolapstructure=a.loadingolapstructure;b.loadingreportfile=a.loadingreportfile;b.localizationerror=a.localizationerror;b.localizationloaded=a.localizationloaded;b.olapstructureerror&&(b.olapstructureerror=function(c){a.olapstructureerror({event:c})});b.olapstructureloaded=a.olapstructureloaded;b.openingreportfile=a.openingreportfile;b.querycomplete=a.querycomplete;b.queryerror&&(b.queryerror=function(c){a.queryerror({event:c})});a.ready&&
(b.ready=function(){a.ready({pivot:k})});b.reportchange=a.reportchange;b.reportcomplete=a.reportcomplete;b.reportfilecancelled=a.reportfilecancelled;b.reportfileerror=a.reportfileerror;b.reportfileloaded=a.reportfileloaded;b.runningquery=a.runningquery;b.loadingdata=a.loadingdata;b.loadingdata=a.loadingdata;b.loadingdata=a.loadingdata;a.unauthorizederror&&(b.unauthorizederror=function(c){a.unauthorizederror({done:c})});b.update=a.update;a.beforetoolbarcreated&&(b.beforetoolbarcreated=function(c){a.beforetoolbarcreated({toolbar:c})});
a.beforegriddraw&&(b.beforegriddraw=function(c){a.beforegriddraw({params:c})});a.aftergriddraw&&(b.aftergriddraw=function(c){a.aftergriddraw({params:c})});b.afterchartdraw=a.afterchartdraw;a.chartclick&&(b.chartclick=function(c){a.chartclick({data:c})});a.report&&(b.report=a.report);a.global&&(b.global=a.global);a.accessibility&&(b.accessibility=a.accessibility);var k=new Flexmonster(b)}}});
if(void 0!==window.React&&void 0!==window.React.createClass&&(void 0!==window.React.PropTypes||void 0!==window.PropTypes)){var React_PropTypes=void 0!==window.React.PropTypes?window.React.PropTypes:window.PropTypes;window.FlexmonsterReact={Pivot:React.createClass({propTypes:{componentFolder:React_PropTypes.string,global:React_PropTypes.object,width:React_PropTypes.oneOfType([React_PropTypes.string,React_PropTypes.number]),height:React_PropTypes.oneOfType([React_PropTypes.string,React_PropTypes.number]),
report:React_PropTypes.oneOfType([React_PropTypes.string,React_PropTypes.object]),licenseKey:React_PropTypes.string,toolbar:React_PropTypes.bool,customizeAPIRequest:React_PropTypes.func,customizeCell:React_PropTypes.func,customizeChartElement:React_PropTypes.func,customizeContextMenu:React_PropTypes.func,accessibility:React_PropTypes.object,cellclick:React_PropTypes.func,celldoubleclick:React_PropTypes.func,dataerror:React_PropTypes.func,datafilecancelled:React_PropTypes.func,dataloaded:React_PropTypes.func,
datachanged:React_PropTypes.func,fieldslistclose:React_PropTypes.func,fieldslistopen:React_PropTypes.func,filteropen:React_PropTypes.func,filterclose:React_PropTypes.func,fullscreen:React_PropTypes.func,loadingdata:React_PropTypes.func,loadinglocalization:React_PropTypes.func,loadingolapstructure:React_PropTypes.func,loadingreportfile:React_PropTypes.func,localizationerror:React_PropTypes.func,localizationloaded:React_PropTypes.func,olapstructureerror:React_PropTypes.func,olapstructureloaded:React_PropTypes.func,
openingreportfile:React_PropTypes.func,querycomplete:React_PropTypes.func,queryerror:React_PropTypes.func,ready:React_PropTypes.func,reportchange:React_PropTypes.func,reportcomplete:React_PropTypes.func,reportfilecancelled:React_PropTypes.func,reportfileerror:React_PropTypes.func,reportfileloaded:React_PropTypes.func,runningquery:React_PropTypes.func,unauthorizederror:React_PropTypes.func,update:React_PropTypes.func,beforetoolbarcreated:React_PropTypes.func,beforegriddraw:React_PropTypes.func,aftergriddraw:React_PropTypes.func,
afterchartdraw:React_PropTypes.func,chartclick:React_PropTypes.func,drillthroughopen:React_PropTypes.func,drillthroughclose:React_PropTypes.func},render:function(){return React.DOM.div()},componentDidMount:function(){var a={};a.container=ReactDOM.findDOMNode(this);this.parseProps(a);this.flexmonster=new window.Flexmonster(a)},shouldComponentUpdate:function(){return!1},componentWillUnmount:function(){this.flexmonster.dispose()},parseProps:function(a){for(var b in this.props)a[b]=this.props[b]}})}};
window.flexmonster={embedPivotComponent:function(d,e,f,g,a,b,h){var c=b;"string"==typeof b&&(c=h);config={};config.componentFolder=d;config.container=e;config.width=f;config.height=parseInt(g);config.toolbar=c;config.report=a;a.hasOwnProperty("configUrl")&&(config.configUrl=a.configUrl);a.hasOwnProperty("licenseKey")&&(config.licenseKey=a.licenseKey);a.hasOwnProperty("jsCellClickHandler")&&(config.cellclick=a.jsCellClickHandler);a.hasOwnProperty("jsCellDoubleClickHandler")&&(config.celldoubleclick=
a.jsCellDoubleClickHandler);a.hasOwnProperty("jsFullScreenHandler")&&(config.fullscreen=a.jsFullScreenHandler);a.hasOwnProperty("jsFilterOpenHandler")&&(config.filteropen=a.jsFilterOpenHandler);a.hasOwnProperty("jsFieldsListCloseHandler")&&(config.fieldslistclose=a.jsFieldsListCloseHandler);a.hasOwnProperty("jsFieldsListOpenHandler")&&(config.fieldslistopen=a.jsFieldsListOpenHandler);a.hasOwnProperty("jsPivotCreationCompleteHandler")&&(config.ready=a.jsPivotCreationCompleteHandler);a.hasOwnProperty("jsPivotUpdateHandler")&&
(config.update=a.jsPivotUpdateHandler);a.hasOwnProperty("jsReportChangeHandler")&&(config.reportchange=a.jsReportChangeHandler);a.hasOwnProperty("jsReportLoadedHandler")&&(config.reportcomplete=a.jsReportLoadedHandler);a.hasOwnProperty("beforetoolbarcreated")&&(config.beforetoolbarcreated=a.beforetoolbarcreated);a.hasOwnProperty("beforegriddraw")&&(config.beforegriddraw=a.beforegriddraw);a.hasOwnProperty("aftergriddraw")&&(config.aftergriddraw=a.aftergriddraw);a.hasOwnProperty("afterchartdraw")&&
(config.afterchartdraw=a.afterchartdraw);a.hasOwnProperty("customizeCell")&&(config.customizeCell=a.customizeCell);a.hasOwnProperty("customizeContextMenu")&&(config.customizeContextMenu=a.customizeContextMenu);return Flexmonster(config)}};

            if("object"===typeof module&&module.exports){module.exports=Flexmonster;}
        
// SIG // Begin signature block
// SIG // MIIY2AYJKoZIhvcNAQcCoIIYyTCCGMUCAQExDzANBglg
// SIG // hkgBZQMEAgEFADB3BgorBgEEAYI3AgEEoGkwZzAyBgor
// SIG // BgEEAYI3AgEeMCQCAQEEEBDgyQbOONQRoqMAEEvTUJAC
// SIG // AQACAQACAQACAQACAQAwMTANBglghkgBZQMEAgEFAAQg
// SIG // k4mAR4JDmEbcy0dh9mTjYOxEic8P4fHagkdPz9tHLbWg
// SIG // ggeZMIIDgjCCAwmgAwIBAgIQbt1PJecxfTmBVzE0z8Hc
// SIG // oDAKBggqhkjOPQQDAzB/MQswCQYDVQQGEwJVUzEOMAwG
// SIG // A1UECAwFVGV4YXMxEDAOBgNVBAcMB0hvdXN0b24xGDAW
// SIG // BgNVBAoMD1NTTCBDb3Jwb3JhdGlvbjE0MDIGA1UEAwwr
// SIG // U1NMLmNvbSBFViBSb290IENlcnRpZmljYXRpb24gQXV0
// SIG // aG9yaXR5IEVDQzAeFw0xOTAzMDcxOTM3NDVaFw0zNDAz
// SIG // MDMxOTM3NDVaMHsxCzAJBgNVBAYTAlVTMQ4wDAYDVQQI
// SIG // DAVUZXhhczEQMA4GA1UEBwwHSG91c3RvbjERMA8GA1UE
// SIG // CgwIU1NMIENvcnAxNzA1BgNVBAMMLlNTTC5jb20gRVYg
// SIG // Q29kZSBTaWduaW5nIEludGVybWVkaWF0ZSBDQSBFQ0Mg
// SIG // UjIwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAQ60OHak+K8
// SIG // VtFJNLiBLDRE0hslk6Ky/0+05B8zwSb7THpAhtrs5VRv
// SIG // 6JFzU5Apim4F0e63Drg7IAnoY4ygUaAU+xbjMiuOQqRB
// SIG // QHtQ6qKW53l4g1ywGcy/DiOgs+UUqbGjggFMMIIBSDAS
// SIG // BgNVHRMBAf8ECDAGAQH/AgEAMB8GA1UdIwQYMBaAFFvK
// SIG // XuXe0oGqzagtZFG22XKbl+ZPMHsGCCsGAQUFBwEBBG8w
// SIG // bTBJBggrBgEFBQcwAoY9aHR0cDovL3d3dy5zc2wuY29t
// SIG // L3JlcG9zaXRvcnkvU1NMY29tLVJvb3RDQS1FVi1FQ0Mt
// SIG // Mzg0LVIxLmNydDAgBggrBgEFBQcwAYYUaHR0cDovL29j
// SIG // c3BzLnNzbC5jb20wEQYDVR0gBAowCDAGBgRVHSAAMBMG
// SIG // A1UdJQQMMAoGCCsGAQUFBwMDMD0GA1UdHwQ2MDQwMqAw
// SIG // oC6GLGh0dHA6Ly9jcmxzLnNzbC5jb20vc3NsLmNvbS1F
// SIG // VmVjYy1Sb290Q0EuY3JsMB0GA1UdDgQWBBQBiZS5/rQz
// SIG // XfDx+oX5JEaEo1dpXjAOBgNVHQ8BAf8EBAMCAYYwCgYI
// SIG // KoZIzj0EAwMDZwAwZAIwSlvqgJ+6NpLPjDHt7KWZ7jIn
// SIG // vMMX64ePV1AwBb91lfc8+T8ZUoM0IOERVu45PrfuAjAC
// SIG // tbjZ+HgSR8HARf8V9qBmu0PiT0MOWHeXpKJVNCSEWlYZ
// SIG // z6ZVIBvZEJpTAPuJXnAwggQPMIIDlqADAgECAhBgEBmn
// SIG // vbyFqr6zS8J2Fwv3MAoGCCqGSM49BAMDMHsxCzAJBgNV
// SIG // BAYTAlVTMQ4wDAYDVQQIDAVUZXhhczEQMA4GA1UEBwwH
// SIG // SG91c3RvbjERMA8GA1UECgwIU1NMIENvcnAxNzA1BgNV
// SIG // BAMMLlNTTC5jb20gRVYgQ29kZSBTaWduaW5nIEludGVy
// SIG // bWVkaWF0ZSBDQSBFQ0MgUjIwHhcNMjQwMTE1MTEzMjAw
// SIG // WhcNMjYwMTE0MTEzMjAwWjCB7zELMAkGA1UEBhMCVVMx
// SIG // EzARBgNVBAgMCkNhbGlmb3JuaWExGDAWBgNVBAcMD1Jh
// SIG // bmNobyBTYW50YSBGZTElMCMGA1UECgwcTm9ydGggQW1l
// SIG // cmljYW4gUmVzZWxsZXJzIExMQzEVMBMGA1UEBRMMTDA5
// SIG // MDAwMDU3MjExMSUwIwYDVQQDDBxOb3J0aCBBbWVyaWNh
// SIG // biBSZXNlbGxlcnMgTExDMR0wGwYDVQQPDBRQcml2YXRl
// SIG // IE9yZ2FuaXphdGlvbjEYMBYGCysGAQQBgjc8AgECDAdG
// SIG // bG9yaWRhMRMwEQYLKwYBBAGCNzwCAQMTAlVTMFkwEwYH
// SIG // KoZIzj0CAQYIKoZIzj0DAQcDQgAEZj2Ce35misOd8hDG
// SIG // YvpX5EOTMoO5YpmqlT0v5BqWyVlQDI6kaRsH0cqOoXTt
// SIG // 4MODEqlMAYmSHS4AkAf3J5ysY6OCAYUwggGBMAwGA1Ud
// SIG // EwEB/wQCMAAwHwYDVR0jBBgwFoAUAYmUuf60M13w8fqF
// SIG // +SRGhKNXaV4wWgYIKwYBBQUHAQEETjBMMEoGCCsGAQUF
// SIG // BzAChj5odHRwOi8vY2VydC5zc2wuY29tL1NTTGNvbS1T
// SIG // dWJDQS1FVi1jb2RlU2lnbmluZy1FQ0MtMzg0LVIyLmNl
// SIG // cjBfBgNVHSAEWDBWMAcGBWeBDAEDMA0GCyqEaAGG9ncC
// SIG // BQEHMDwGDCsGAQQBgqkwAQMDAjAsMCoGCCsGAQUFBwIB
// SIG // Fh5odHRwczovL3d3dy5zc2wuY29tL3JlcG9zaXRvcnkw
// SIG // EwYDVR0lBAwwCgYIKwYBBQUHAwMwTwYDVR0fBEgwRjBE
// SIG // oEKgQIY+aHR0cDovL2NybHMuc3NsLmNvbS9TU0xjb20t
// SIG // U3ViQ0EtRVYtY29kZVNpZ25pbmctRUNDLTM4NC1SMi5j
// SIG // cmwwHQYDVR0OBBYEFIICUYXtNuOAaALIaTVlG9TYqIjP
// SIG // MA4GA1UdDwEB/wQEAwIHgDAKBggqhkjOPQQDAwNnADBk
// SIG // AjAJ/24hyIjFy7AIlpMM2jAeKBhSYCLDP68g10+rsZsT
// SIG // uHOMxOiclZ9M1rphsYM/PO8CMH5iYRBxcJEsXhoXw7oD
// SIG // XmVBtGGhMKiJDKJhf+p6Jgmq1t/AT9auLIL0ohJ/rF78
// SIG // oTGCEJcwghCTAgEBMIGPMHsxCzAJBgNVBAYTAlVTMQ4w
// SIG // DAYDVQQIDAVUZXhhczEQMA4GA1UEBwwHSG91c3RvbjER
// SIG // MA8GA1UECgwIU1NMIENvcnAxNzA1BgNVBAMMLlNTTC5j
// SIG // b20gRVYgQ29kZSBTaWduaW5nIEludGVybWVkaWF0ZSBD
// SIG // QSBFQ0MgUjICEGAQGae9vIWqvrNLwnYXC/cwDQYJYIZI
// SIG // AWUDBAIBBQCgfDAQBgorBgEEAYI3AgEMMQIwADAZBgkq
// SIG // hkiG9w0BCQMxDAYKKwYBBAGCNwIBBDAcBgorBgEEAYI3
// SIG // AgELMQ4wDAYKKwYBBAGCNwIBFTAvBgkqhkiG9w0BCQQx
// SIG // IgQge+ZGhvSfxEYwh6TiZNVYt4ZN1Kb7oGAtIwa5gJZA
// SIG // wlwwCwYHKoZIzj0CAQUABEgwRgIhAIkrwoOxGOvqPOQd
// SIG // RUzgom4ss6iZJjoQaNEblNC/Bsu2AiEA8EB5Ut67DNQ/
// SIG // gAgUa+Wodk9ol3kzXQqix1t6lUoSfOahgg8WMIIPEgYK
// SIG // KwYBBAGCNwMDATGCDwIwgg7+BgkqhkiG9w0BBwKggg7v
// SIG // MIIO6wIBAzENMAsGCWCGSAFlAwQCATB3BgsqhkiG9w0B
// SIG // CRABBKBoBGYwZAIBAQYMKwYBBAGCqTABAwYBMDEwDQYJ
// SIG // YIZIAWUDBAIBBQAEICekuMUKJ6BTz0kb5IL/Yo+5vZfb
// SIG // REuh2bZJjvNnxbSMAgh4SzU8wTfLUhgPMjAyNDA5MTYw
// SIG // ODE3NDhaMAMCAQGgggwAMIIE/DCCAuSgAwIBAgIQWlqs
// SIG // 6Bo1brRiho1XfeA9xzANBgkqhkiG9w0BAQsFADBzMQsw
// SIG // CQYDVQQGEwJVUzEOMAwGA1UECAwFVGV4YXMxEDAOBgNV
// SIG // BAcMB0hvdXN0b24xETAPBgNVBAoMCFNTTCBDb3JwMS8w
// SIG // LQYDVQQDDCZTU0wuY29tIFRpbWVzdGFtcGluZyBJc3N1
// SIG // aW5nIFJTQSBDQSBSMTAeFw0yNDAyMTkxNjE4MTlaFw0z
// SIG // NDAyMTYxNjE4MThaMG4xCzAJBgNVBAYTAlVTMQ4wDAYD
// SIG // VQQIDAVUZXhhczEQMA4GA1UEBwwHSG91c3RvbjERMA8G
// SIG // A1UECgwIU1NMIENvcnAxKjAoBgNVBAMMIVNTTC5jb20g
// SIG // VGltZXN0YW1waW5nIFVuaXQgMjAyNCBFMTBZMBMGByqG
// SIG // SM49AgEGCCqGSM49AwEHA0IABKdhcvUw6XrEgxSWBULj
// SIG // 3Oid25Rt2TJvSmLLaLy3cmVATADvhyMryD2ZELwYfVwA
// SIG // BUwivwzYd1mlWCRXUtcEsHyjggFaMIIBVjAfBgNVHSME
// SIG // GDAWgBQMnRAljpqnG5mHQ88IfuG9gZD0zzBRBggrBgEF
// SIG // BQcBAQRFMEMwQQYIKwYBBQUHMAKGNWh0dHA6Ly9jZXJ0
// SIG // LnNzbC5jb20vU1NMLmNvbS10aW1lU3RhbXBpbmctSS1S
// SIG // U0EtUjEuY2VyMFEGA1UdIARKMEgwPAYMKwYBBAGCqTAB
// SIG // AwYBMCwwKgYIKwYBBQUHAgEWHmh0dHBzOi8vd3d3LnNz
// SIG // bC5jb20vcmVwb3NpdG9yeTAIBgZngQwBBAIwFgYDVR0l
// SIG // AQH/BAwwCgYIKwYBBQUHAwgwRgYDVR0fBD8wPTA7oDmg
// SIG // N4Y1aHR0cDovL2NybHMuc3NsLmNvbS9TU0wuY29tLXRp
// SIG // bWVTdGFtcGluZy1JLVJTQS1SMS5jcmwwHQYDVR0OBBYE
// SIG // FFBPJKzvtT5jEyMJkibsujqW5F0iMA4GA1UdDwEB/wQE
// SIG // AwIHgDANBgkqhkiG9w0BAQsFAAOCAgEAmKCPAwCRvKvE
// SIG // ZEF/QiHiv6tsIHnuVO7BWILqcfZ9lJyIyiCmpLOtJ5Vn
// SIG // Z4hvm+GP2tPuOpZdmfTYWdyzhhOsDVDLElbfrKMLiOXn
// SIG // 9uwUJpa5fMZe3Zjoh+n/8DdnSw1MxZNMGhuZx4zeyqei
// SIG // 91f1OhEU/7b2vnJCc9yBFMjY++tVKovFj0TKT3/Ry+Iz
// SIG // dbb1gGXTzQQ1uVFy7djxGx/NG1VP/aye4OhxHG9FiZ3R
// SIG // M9oyAiPbEgjrnVCc+nWGKr3FTQDKi8vNuyLnCVHkiniL
// SIG // +Lz7H4fBgk163Llxi11Ynu5A/phpm1b+M2genvqo1+2r
// SIG // 8iVLHrERgFGMUHEdKrZ/OFRDmgFrCTY6xnaPTA5/ursC
// SIG // qMK3q3/59uZaOsBZhZkaP9EuOW2p0U8Gkgqp2GNUjFoa
// SIG // DNWFoT/EcoGDiTgN8VmQFgn0Fa4/3dOb6lpYEPBcjsWD
// SIG // dqUaxugStY9aW/AwCal4lSN4otljbok8u31lZx5NVa4j
// SIG // K6N6upvkgyZ6osmbmIWr9DLhg8bI+KiXDnDWT0547gSu
// SIG // ZLYUq+TV6O/DhJZH5LVXJaeS1jjjZZqhK3EEIJVZl0xY
// SIG // V4H4Skvy6hA2rUyFK3+whSNS52TJkshsxVCOPtvqA9ec
// SIG // PqZLwWBaIICG4zVr+GAD7qjWwlaLMd2ZylgOHI3Oit/0
// SIG // pVETqJHutyYwggb8MIIE5KADAgECAhBtUhhwh+gjTYVg
// SIG // ANCAj5NWMA0GCSqGSIb3DQEBCwUAMHwxCzAJBgNVBAYT
// SIG // AlVTMQ4wDAYDVQQIDAVUZXhhczEQMA4GA1UEBwwHSG91
// SIG // c3RvbjEYMBYGA1UECgwPU1NMIENvcnBvcmF0aW9uMTEw
// SIG // LwYDVQQDDChTU0wuY29tIFJvb3QgQ2VydGlmaWNhdGlv
// SIG // biBBdXRob3JpdHkgUlNBMB4XDTE5MTExMzE4NTAwNVoX
// SIG // DTM0MTExMjE4NTAwNVowczELMAkGA1UEBhMCVVMxDjAM
// SIG // BgNVBAgMBVRleGFzMRAwDgYDVQQHDAdIb3VzdG9uMREw
// SIG // DwYDVQQKDAhTU0wgQ29ycDEvMC0GA1UEAwwmU1NMLmNv
// SIG // bSBUaW1lc3RhbXBpbmcgSXNzdWluZyBSU0EgQ0EgUjEw
// SIG // ggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCu
// SIG // URAT0vk8IKAghd7JUBxkyeH9xek0/wp/MUjoclrFXqhh
// SIG // /fGH91Fc+7fm0MHCE7A+wmOiqBj9ODrJAYGq3rm33jCn
// SIG // HSsCBNWAQYyoauLq8IjqsS1JlXL29qDNMMdwZ8UNzQS7
// SIG // vWZMDJ40JSGNphMGTIA2qn2bohGtgRc4p1395ESypUOa
// SIG // GvJ3t0FNL3BuKmb6YctMcQUF2sqooMzd89h0E6ujdvBD
// SIG // o6ZwNnWoxj7YmfWjSXg33A5GuY9ym4QZM5OEVgo8ebz/
// SIG // B+gyhyCLNNhh4Mb/4xvCTCMVmNYrBviGgdPZYrym8Zb8
// SIG // 4TQCmSuX0JlLLa6WK1aO6qlwISbb9bVGh866ekKblC/X
// SIG // RP20gAu1CjvcYciUgNTrGFg8f8AJgQPOCc1/CCdaJSYw
// SIG // hJpSdheKOnQgESgNmYZPhFOC6IKaMAUXk5U1tjTcFCgF
// SIG // vvArXtK4azAWUOO1Y3fdldIBL6LjkzLUCYJNkFXqhsBV
// SIG // cPMuB0nUDWvLJfPimstjJ8lF4S6ECxWnlWi7OElVwTnt
// SIG // 1GtRqeY9ydvvGLntU+FecK7DbqHDUd366UreMkSBtzev
// SIG // Ac9aqoZPnjVMjvFqV1pYOjzmTiVHZtAc80bAfFe5LLfJ
// SIG // zPI6DntNyqobpwTevQpHqPDN9qqNO83r3kaw8A9j+HZi
// SIG // Sw2AX5cGdQP0kG0vhzfgBwIDAQABo4IBgTCCAX0wEgYD
// SIG // VR0TAQH/BAgwBgEB/wIBADAfBgNVHSMEGDAWgBTdBAkH
// SIG // ovV6fVJTEpKV7jiAJQ2mWTCBgwYIKwYBBQUHAQEEdzB1
// SIG // MFEGCCsGAQUFBzAChkVodHRwOi8vd3d3LnNzbC5jb20v
// SIG // cmVwb3NpdG9yeS9TU0xjb21Sb290Q2VydGlmaWNhdGlv
// SIG // bkF1dGhvcml0eVJTQS5jcnQwIAYIKwYBBQUHMAGGFGh0
// SIG // dHA6Ly9vY3Nwcy5zc2wuY29tMD8GA1UdIAQ4MDYwNAYE
// SIG // VR0gADAsMCoGCCsGAQUFBwIBFh5odHRwczovL3d3dy5z
// SIG // c2wuY29tL3JlcG9zaXRvcnkwEwYDVR0lBAwwCgYIKwYB
// SIG // BQUHAwgwOwYDVR0fBDQwMjAwoC6gLIYqaHR0cDovL2Ny
// SIG // bHMuc3NsLmNvbS9zc2wuY29tLXJzYS1Sb290Q0EuY3Js
// SIG // MB0GA1UdDgQWBBQMnRAljpqnG5mHQ88IfuG9gZD0zzAO
// SIG // BgNVHQ8BAf8EBAMCAYYwDQYJKoZIhvcNAQELBQADggIB
// SIG // AJIZdQ2mWkLPGQfZ8vyU+sCb8BXpRJZaL3Ez3VDlE3uZ
// SIG // k3cPxPtybVfLuqaci0W6SB22JTMttCiQMnIVOsXWnIuA
// SIG // bD/aFTcUkTLBI3xys+wEajzXaXJYWACDS47BRjDtYlDW
// SIG // 14gLJxf8W6DQoH3jHDGGy8kGJFOlDKG7/YrK7UGfHtBA
// SIG // EDVe6lyZ+FtCsrk7dD/IiL/+Q3Q6SFASJLQ2XI89ihFu
// SIG // gdYL77CiDNXrI2MFspQGswXEAGpHuaQDTHUp/LdR3Tyr
// SIG // IsLlnzoLskUGswF/KF8+kpWUiKJNC4rPWtNrxlbXYRGg
// SIG // dEdx8SMjUTDClldcrknlFxbqHsVmr9xkT2QtFmG+dEq1
// SIG // v5fsIK0vHaHrWjMMmaJ9i+4qGJSD0stYfQ6v0PddT7Ep
// SIG // GxGd867Ada6FZyHwbuQSadMb0K0P0OC2r7rwqBUe0BaM
// SIG // qTa6LWzWItgBjGcObXeMxmbQqlEz2YtAcErkZvh0WABD
// SIG // DE4U8GyV/32FdaAvJgTfe9MiL2nSBioYe/g5mHUSWAay
// SIG // /Ip1RQmQCvmF9sNfqlhJwkjy/1U1ibUkTIUBX3HgymyQ
// SIG // vqQTZLLys6pL2tCdWcjI9YuLw30rgZm8+K387L7ycUvq
// SIG // rmQ3ZJlujHl3r1hgV76s3WwMPgKk1bAEFMj+rRXimSC+
// SIG // Ev30hXZdqyMdl/il5Ksd0vhGMYICWDCCAlQCAQEwgYcw
// SIG // czELMAkGA1UEBhMCVVMxDjAMBgNVBAgMBVRleGFzMRAw
// SIG // DgYDVQQHDAdIb3VzdG9uMREwDwYDVQQKDAhTU0wgQ29y
// SIG // cDEvMC0GA1UEAwwmU1NMLmNvbSBUaW1lc3RhbXBpbmcg
// SIG // SXNzdWluZyBSU0EgQ0EgUjECEFparOgaNW60YoaNV33g
// SIG // PccwCwYJYIZIAWUDBAIBoIIBYTAaBgkqhkiG9w0BCQMx
// SIG // DQYLKoZIhvcNAQkQAQQwHAYJKoZIhvcNAQkFMQ8XDTI0
// SIG // MDkxNjA4MTc0OFowKAYJKoZIhvcNAQk0MRswGTALBglg
// SIG // hkgBZQMEAgGhCgYIKoZIzj0EAwIwLwYJKoZIhvcNAQkE
// SIG // MSIEIOCWxeBTEipK1h6Q3RW7kBYyj8b3A7BnhCdmSS5c
// SIG // EZJkMIHJBgsqhkiG9w0BCRACLzGBuTCBtjCBszCBsAQg
// SIG // nXF/jcI3ZarOXkqw4fV115oX1Bzu2P2v7wP9Pb2JR+cw
// SIG // gYswd6R1MHMxCzAJBgNVBAYTAlVTMQ4wDAYDVQQIDAVU
// SIG // ZXhhczEQMA4GA1UEBwwHSG91c3RvbjERMA8GA1UECgwI
// SIG // U1NMIENvcnAxLzAtBgNVBAMMJlNTTC5jb20gVGltZXN0
// SIG // YW1waW5nIElzc3VpbmcgUlNBIENBIFIxAhBaWqzoGjVu
// SIG // tGKGjVd94D3HMAoGCCqGSM49BAMCBEcwRQIgYc/2tRHf
// SIG // bDnxJKTLF3UTN3HAzSnPqbKToEAYTPM+re0CIQCWIV7J
// SIG // X96O0veQOqbSolE09CK6cDYdNUtYQHQoLn+KpQ==
// SIG // End signature block
